2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for bacula 9.0.7.
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='9.0.7'
591 PACKAGE_STRING='bacula 9.0.7'
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
665 SHARED_CATALOG_TARGETS
736 INTL_LIBTOOL_SUFFIX_PREFIX
743 BUILD_INCLUDED_LIBINTL
766 HAVE_KFREEBSD_OS_FALSE
767 HAVE_KFREEBSD_OS_TRUE
776 HAVE_OPENBSD_OS_FALSE
780 HAVE_FREEBSD_OS_FALSE
794 INCLUDE_UNINSTALL_TARGET
795 INCLUDE_INSTALL_TARGET
799 LIBTOOL_UNINSTALL_TARGET
800 LIBTOOL_INSTALL_TARGET
801 DEFAULT_SHARED_OBJECT_TYPE
880 LIBBACFIND_LT_RELEASE
881 LIBBACCATS_LT_RELEASE
932 program_transform_name
943 ac_subst_files='MCOMMON'
945 enable_option_checking
959 with_included_gettext
994 with_mon_dir_password
1025 ac_precious_vars='build_alias
1041 # Initialize some variables set by options.
1043 ac_init_version=false
1044 ac_unrecognized_opts=
1045 ac_unrecognized_sep=
1046 # The variables have the same names as the options, with
1047 # dashes changed to underlines.
1048 cache_file=/dev/null
1055 program_transform_name=s,x,x,
1063 # Installation directory options.
1064 # These are left unexpanded so users can "make install exec_prefix=/foo"
1065 # and all the variables that are supposed to be based on exec_prefix
1066 # by default will actually change.
1067 # Use braces instead of parens because sh, perl, etc. also accept them.
1068 # (The list follows the same order as the GNU Coding Standards.)
1069 bindir='${exec_prefix}/bin'
1070 sbindir='${exec_prefix}/sbin'
1071 libexecdir='${exec_prefix}/libexec'
1072 datarootdir='${prefix}/share'
1073 datadir='${datarootdir}'
1074 sysconfdir='${prefix}/etc'
1075 sharedstatedir='${prefix}/com'
1076 localstatedir='${prefix}/var'
1077 runstatedir='${localstatedir}/run'
1078 includedir='${prefix}/include'
1079 oldincludedir='/usr/include'
1080 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1081 infodir='${datarootdir}/info'
1086 libdir='${exec_prefix}/lib'
1087 localedir='${datarootdir}/locale'
1088 mandir='${datarootdir}/man'
1094 # If the previous option needs an argument, assign it.
1095 if test -n "$ac_prev"; then
1096 eval $ac_prev=\$ac_option
1102 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1107 # Accept the important Cygnus configure options, so we can diagnose typos.
1109 case $ac_dashdash$ac_option in
1113 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1115 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1116 bindir=$ac_optarg ;;
1118 -build | --build | --buil | --bui | --bu)
1119 ac_prev=build_alias ;;
1120 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1121 build_alias=$ac_optarg ;;
1123 -cache-file | --cache-file | --cache-fil | --cache-fi \
1124 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1125 ac_prev=cache_file ;;
1126 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1127 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1128 cache_file=$ac_optarg ;;
1130 --config-cache | -C)
1131 cache_file=config.cache ;;
1133 -datadir | --datadir | --datadi | --datad)
1135 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1136 datadir=$ac_optarg ;;
1138 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1139 | --dataroo | --dataro | --datar)
1140 ac_prev=datarootdir ;;
1141 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1142 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1143 datarootdir=$ac_optarg ;;
1145 -disable-* | --disable-*)
1146 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1147 # Reject names that are not valid shell variable names.
1148 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1149 as_fn_error $? "invalid feature name: $ac_useropt"
1150 ac_useropt_orig=$ac_useropt
1151 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1152 case $ac_user_opts in
1154 "enable_$ac_useropt"
1156 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1157 ac_unrecognized_sep=', ';;
1159 eval enable_$ac_useropt=no ;;
1161 -docdir | --docdir | --docdi | --doc | --do)
1163 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1164 docdir=$ac_optarg ;;
1166 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1168 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1169 dvidir=$ac_optarg ;;
1171 -enable-* | --enable-*)
1172 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1173 # Reject names that are not valid shell variable names.
1174 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1175 as_fn_error $? "invalid feature name: $ac_useropt"
1176 ac_useropt_orig=$ac_useropt
1177 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1178 case $ac_user_opts in
1180 "enable_$ac_useropt"
1182 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1183 ac_unrecognized_sep=', ';;
1185 eval enable_$ac_useropt=\$ac_optarg ;;
1187 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1188 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1189 | --exec | --exe | --ex)
1190 ac_prev=exec_prefix ;;
1191 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1192 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1193 | --exec=* | --exe=* | --ex=*)
1194 exec_prefix=$ac_optarg ;;
1196 -gas | --gas | --ga | --g)
1197 # Obsolete; use --with-gas.
1200 -help | --help | --hel | --he | -h)
1201 ac_init_help=long ;;
1202 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1203 ac_init_help=recursive ;;
1204 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1205 ac_init_help=short ;;
1207 -host | --host | --hos | --ho)
1208 ac_prev=host_alias ;;
1209 -host=* | --host=* | --hos=* | --ho=*)
1210 host_alias=$ac_optarg ;;
1212 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1214 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1216 htmldir=$ac_optarg ;;
1218 -includedir | --includedir | --includedi | --included | --include \
1219 | --includ | --inclu | --incl | --inc)
1220 ac_prev=includedir ;;
1221 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1222 | --includ=* | --inclu=* | --incl=* | --inc=*)
1223 includedir=$ac_optarg ;;
1225 -infodir | --infodir | --infodi | --infod | --info | --inf)
1227 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1228 infodir=$ac_optarg ;;
1230 -libdir | --libdir | --libdi | --libd)
1232 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1233 libdir=$ac_optarg ;;
1235 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1236 | --libexe | --libex | --libe)
1237 ac_prev=libexecdir ;;
1238 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1239 | --libexe=* | --libex=* | --libe=*)
1240 libexecdir=$ac_optarg ;;
1242 -localedir | --localedir | --localedi | --localed | --locale)
1243 ac_prev=localedir ;;
1244 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1245 localedir=$ac_optarg ;;
1247 -localstatedir | --localstatedir | --localstatedi | --localstated \
1248 | --localstate | --localstat | --localsta | --localst | --locals)
1249 ac_prev=localstatedir ;;
1250 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1251 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1252 localstatedir=$ac_optarg ;;
1254 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1256 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1257 mandir=$ac_optarg ;;
1259 -nfp | --nfp | --nf)
1260 # Obsolete; use --without-fp.
1263 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1264 | --no-cr | --no-c | -n)
1267 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1268 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1271 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1272 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1273 | --oldin | --oldi | --old | --ol | --o)
1274 ac_prev=oldincludedir ;;
1275 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1276 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1277 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1278 oldincludedir=$ac_optarg ;;
1280 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1282 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1283 prefix=$ac_optarg ;;
1285 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1286 | --program-pre | --program-pr | --program-p)
1287 ac_prev=program_prefix ;;
1288 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1289 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1290 program_prefix=$ac_optarg ;;
1292 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1293 | --program-suf | --program-su | --program-s)
1294 ac_prev=program_suffix ;;
1295 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1296 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1297 program_suffix=$ac_optarg ;;
1299 -program-transform-name | --program-transform-name \
1300 | --program-transform-nam | --program-transform-na \
1301 | --program-transform-n | --program-transform- \
1302 | --program-transform | --program-transfor \
1303 | --program-transfo | --program-transf \
1304 | --program-trans | --program-tran \
1305 | --progr-tra | --program-tr | --program-t)
1306 ac_prev=program_transform_name ;;
1307 -program-transform-name=* | --program-transform-name=* \
1308 | --program-transform-nam=* | --program-transform-na=* \
1309 | --program-transform-n=* | --program-transform-=* \
1310 | --program-transform=* | --program-transfor=* \
1311 | --program-transfo=* | --program-transf=* \
1312 | --program-trans=* | --program-tran=* \
1313 | --progr-tra=* | --program-tr=* | --program-t=*)
1314 program_transform_name=$ac_optarg ;;
1316 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1318 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1319 pdfdir=$ac_optarg ;;
1321 -psdir | --psdir | --psdi | --psd | --ps)
1323 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1326 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1327 | -silent | --silent | --silen | --sile | --sil)
1330 -runstatedir | --runstatedir | --runstatedi | --runstated \
1331 | --runstate | --runstat | --runsta | --runst | --runs \
1332 | --run | --ru | --r)
1333 ac_prev=runstatedir ;;
1334 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1335 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1336 | --run=* | --ru=* | --r=*)
1337 runstatedir=$ac_optarg ;;
1339 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1341 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1343 sbindir=$ac_optarg ;;
1345 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1346 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1347 | --sharedst | --shareds | --shared | --share | --shar \
1349 ac_prev=sharedstatedir ;;
1350 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1351 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1352 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1354 sharedstatedir=$ac_optarg ;;
1356 -site | --site | --sit)
1358 -site=* | --site=* | --sit=*)
1361 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1363 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1364 srcdir=$ac_optarg ;;
1366 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1367 | --syscon | --sysco | --sysc | --sys | --sy)
1368 ac_prev=sysconfdir ;;
1369 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1370 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1371 sysconfdir=$ac_optarg ;;
1373 -target | --target | --targe | --targ | --tar | --ta | --t)
1374 ac_prev=target_alias ;;
1375 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1376 target_alias=$ac_optarg ;;
1378 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1381 -version | --version | --versio | --versi | --vers | -V)
1382 ac_init_version=: ;;
1385 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1386 # Reject names that are not valid shell variable names.
1387 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1388 as_fn_error $? "invalid package name: $ac_useropt"
1389 ac_useropt_orig=$ac_useropt
1390 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1391 case $ac_user_opts in
1395 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1396 ac_unrecognized_sep=', ';;
1398 eval with_$ac_useropt=\$ac_optarg ;;
1400 -without-* | --without-*)
1401 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1402 # Reject names that are not valid shell variable names.
1403 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1404 as_fn_error $? "invalid package name: $ac_useropt"
1405 ac_useropt_orig=$ac_useropt
1406 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1407 case $ac_user_opts in
1411 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1412 ac_unrecognized_sep=', ';;
1414 eval with_$ac_useropt=no ;;
1417 # Obsolete; use --with-x.
1420 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1421 | --x-incl | --x-inc | --x-in | --x-i)
1422 ac_prev=x_includes ;;
1423 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1424 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1425 x_includes=$ac_optarg ;;
1427 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1428 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1429 ac_prev=x_libraries ;;
1430 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1431 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1432 x_libraries=$ac_optarg ;;
1434 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1435 Try \`$0 --help' for more information"
1439 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1440 # Reject names that are not valid shell variable names.
1441 case $ac_envvar in #(
1442 '' | [0-9]* | *[!_$as_cr_alnum]* )
1443 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1445 eval $ac_envvar=\$ac_optarg
1446 export $ac_envvar ;;
1449 # FIXME: should be removed in autoconf 3.0.
1450 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1451 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1452 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1453 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1459 if test -n "$ac_prev"; then
1460 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1461 as_fn_error $? "missing argument to $ac_option"
1464 if test -n "$ac_unrecognized_opts"; then
1465 case $enable_option_checking in
1467 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1468 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1472 # Check all directory arguments for consistency.
1473 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1474 datadir sysconfdir sharedstatedir localstatedir includedir \
1475 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1476 libdir localedir mandir runstatedir
1478 eval ac_val=\$$ac_var
1479 # Remove trailing slashes.
1482 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1483 eval $ac_var=\$ac_val;;
1485 # Be sure to have absolute directory names.
1487 [\\/$]* | ?:[\\/]* ) continue;;
1488 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1490 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1493 # There might be people who depend on the old broken behavior: `$host'
1494 # used to hold the argument of --host etc.
1495 # FIXME: To remove some day.
1498 target=$target_alias
1500 # FIXME: To remove some day.
1501 if test "x$host_alias" != x; then
1502 if test "x$build_alias" = x; then
1503 cross_compiling=maybe
1504 elif test "x$build_alias" != "x$host_alias"; then
1510 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1512 test "$silent" = yes && exec 6>/dev/null
1515 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1516 ac_ls_di=`ls -di .` &&
1517 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1518 as_fn_error $? "working directory cannot be determined"
1519 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1520 as_fn_error $? "pwd does not report name of working directory"
1523 # Find the source files, if location was not specified.
1524 if test -z "$srcdir"; then
1525 ac_srcdir_defaulted=yes
1526 # Try the directory containing this script, then the parent directory.
1527 ac_confdir=`$as_dirname -- "$as_myself" ||
1528 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1529 X"$as_myself" : 'X\(//\)[^/]' \| \
1530 X"$as_myself" : 'X\(//\)$' \| \
1531 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1532 $as_echo X"$as_myself" |
1533 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1551 if test ! -r "$srcdir/$ac_unique_file"; then
1555 ac_srcdir_defaulted=no
1557 if test ! -r "$srcdir/$ac_unique_file"; then
1558 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1559 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1561 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1563 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1565 # When building in place, set srcdir=.
1566 if test "$ac_abs_confdir" = "$ac_pwd"; then
1569 # Remove unnecessary trailing slashes from srcdir.
1570 # Double slashes in file names in object file debugging info
1571 # mess up M-x gdb in Emacs.
1573 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1575 for ac_var in $ac_precious_vars; do
1576 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1577 eval ac_env_${ac_var}_value=\$${ac_var}
1578 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1579 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1583 # Report the --help message.
1585 if test "$ac_init_help" = "long"; then
1586 # Omit some internal or obsolete options to make the list less imposing.
1587 # This message is too long to be a string in the A/UX 3.1 sh.
1589 \`configure' configures bacula 9.0.7 to adapt to many kinds of systems.
1591 Usage: $0 [OPTION]... [VAR=VALUE]...
1593 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1594 VAR=VALUE. See below for descriptions of some of the useful variables.
1596 Defaults for the options are specified in brackets.
1599 -h, --help display this help and exit
1600 --help=short display options specific to this package
1601 --help=recursive display the short help of all the included packages
1602 -V, --version display version information and exit
1603 -q, --quiet, --silent do not print \`checking ...' messages
1604 --cache-file=FILE cache test results in FILE [disabled]
1605 -C, --config-cache alias for \`--cache-file=config.cache'
1606 -n, --no-create do not create output files
1607 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1609 Installation directories:
1610 --prefix=PREFIX install architecture-independent files in PREFIX
1611 [$ac_default_prefix]
1612 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1615 By default, \`make install' will install all the files in
1616 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1617 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1618 for instance \`--prefix=\$HOME'.
1620 For better control, use the options below.
1622 Fine tuning of the installation directories:
1623 --bindir=DIR user executables [EPREFIX/bin]
1624 --sbindir=DIR system admin executables [EPREFIX/sbin]
1625 --libexecdir=DIR program executables [EPREFIX/libexec]
1626 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1627 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1628 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1629 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1630 --libdir=DIR object code libraries [EPREFIX/lib]
1631 --includedir=DIR C header files [PREFIX/include]
1632 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1633 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1634 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1635 --infodir=DIR info documentation [DATAROOTDIR/info]
1636 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1637 --mandir=DIR man documentation [DATAROOTDIR/man]
1638 --docdir=DIR documentation root [DATAROOTDIR/doc/bacula]
1639 --htmldir=DIR html documentation [DOCDIR]
1640 --dvidir=DIR dvi documentation [DOCDIR]
1641 --pdfdir=DIR pdf documentation [DOCDIR]
1642 --psdir=DIR ps documentation [DOCDIR]
1648 --x-includes=DIR X include files are in DIR
1649 --x-libraries=DIR X library files are in DIR
1652 --build=BUILD configure for building on BUILD [guessed]
1653 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1657 if test -n "$ac_init_help"; then
1658 case $ac_init_help in
1659 short | recursive ) echo "Configuration of bacula 9.0.7:";;
1664 --disable-option-checking ignore unrecognized --enable/--with options
1665 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1666 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1667 --enable-libtool enable building using GNU libtool [default=yes]
1668 --enable-shared[=PKGS] build shared libraries [default=yes]
1669 --enable-static[=PKGS] build static libraries [default=no]
1670 --enable-fast-install[=PKGS]
1671 optimize for fast installation [default=yes]
1672 --disable-libtool-lock avoid locking (might break parallel builds)
1673 --enable-includes enable installing of include files [default=no]
1674 --disable-nls do not use Native Language Support
1675 --disable-rpath do not hardcode runtime library paths
1676 --enable-bat enable build of bat Qt GUI [default=no]
1677 --enable-smartalloc enable smartalloc debugging support [default=no]
1678 --enable-lockmgr enable lock manager support [default=no]
1679 --enable-static-tools enable static tape tools [default=no]
1680 --enable-static-fd enable static File daemon [default=no]
1681 --enable-static-sd enable static Storage daemon [default=no]
1682 --enable-static-dir enable static Director [default=no]
1683 --enable-static-cons enable static Console [default=no]
1684 --enable-client-only build client (File daemon) only [default=no]
1685 --enable-build-dird enable building of dird (Director) [default=yes]
1686 --enable-build-stored enable building of stored (Storage daemon)
1688 --disable-conio disable conio support [default=no]
1689 --enable-ipv6 enable ipv6 support [default=yes]
1690 --disable-readline disable readline support [default=yes]
1691 --enable-batch-insert enable the DB batch insert code [default=yes]
1692 --disable-largefile omit support for large files
1693 --disable-afs disable afs support [default=auto]
1694 --disable-lzo disable lzo support [default=yes]
1695 --disable-acl disable acl support [default=auto]
1696 --disable-xattr disable xattr support [default=auto]
1699 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1700 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1701 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1703 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1704 --with-sysroot=DIR Search for dependent libraries within DIR
1705 (or the compiler's sysroot if not specified).
1706 --with-gnu-ld assume the C compiler uses GNU ld default=no
1707 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1708 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1709 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1710 --without-libintl-prefix don't search for libintl in includedir and libdir
1711 --with-included-gettext use the GNU gettext library included here
1712 --with-readline[=DIR] specify readline library directory
1713 --with-tcp-wrappers[=DIR]
1714 enable tcpwrappers support
1715 --with-openssl[=DIR] Include OpenSSL support. DIR is the OpenSSL base
1716 --with-working-dir=PATH specify path of Bacula working directory
1717 --with-archivedir=PATH specify path of SD archive directory
1718 --with-basename=RESNAME specify base resource name for daemons
1719 --with-hostname=RESNAME specify host name for daemons
1720 --with-scriptdir=PATH specify path of Bacula scripts directory
1721 --with-bsrdir=PATH specify path of Bacula bsrs directory
1722 --with-logdir=PATH specify path of Bacula logs directory
1723 --with-plugindir=PATH specify path of Bacula plugins directory
1724 --with-dump-email=EMAIL dump email address
1725 --with-job-email=EMAIL job output email address
1726 --with-smtp-host=HOST SMTP mail host address
1727 --with-pid-dir=PATH specify location of Bacula pid files
1728 --with-subsys-dir=PATH specify location of Bacula subsys file
1729 --with-baseport=PORT specify base port address for daemons
1730 --with-dir-password=PASSWORD
1731 specify Director's password
1732 --with-fd-password=PASSWORD
1733 specify Client's password
1734 --with-sd-password=PASSWORD
1735 specify Storage daemon's password
1736 --with-mon-dir-password=PASSWORD
1737 specify Director's password used by the monitor
1738 --with-mon-fd-password=PASSWORD
1739 specify Client's password used by the monitor
1740 --with-mon-sd-password=PASSWORD
1741 specify Storage daemon's password used by the
1743 --with-db-name=DBNAME specify database name [default=bacula]
1744 --with-db-user=UNAME specify database user [default=bacula]
1745 --with-db-password=PWD specify database password [default=*none*]
1746 --with-db-port=DBPORT specify a database port [default=null]
1747 --with-db-ssl-options=DBSSLOPTIONS
1748 specify SSL options for database user connection
1750 --with-dir-user=USER specify user for Director daemon
1751 --with-dir-group=GROUP specify group for Director daemon
1752 --with-sd-user=USER specify user for Storage daemon
1753 --with-sd-group=GROUP specify group for Storage daemon
1754 --with-fd-user=USER specify user for File daemon
1755 --with-fd-group=GROUP specify group for File daemon
1756 --with-sbin-perm=MODE specify permissions for sbin binaries [default=0750]
1757 --with-postgresql[=DIR] Include PostgreSQL support. DIR is the PostgreSQL
1758 base install directory, [default=/usr/local/pgsql]
1759 --with-mysql[=DIR] Include MySQL support. DIR is the MySQL base install
1760 directory, default is to search through a number of
1761 common places for the MySQL files.
1762 --with-embedded-mysql[=DIR]
1763 Include MySQL support. DIR is the MySQL base install
1764 directory, default is to search through a number of
1765 common places for the MySQL files.
1766 --with-sqlite3[=DIR] Include SQLite3 support. DIR is the SQLite3 base
1767 install directory, default is to search through a
1768 number of common places for the SQLite3 files.
1769 --with-x use the X Window System
1770 --with-s3[=DIR] specify s3 library directory
1771 --with-afsdir[=DIR] Directory holding AFS includes/libs
1772 --with-lzo[=DIR] specify lzo library directory
1773 --with-systemd[=UNITDIR]
1774 Include systemd support. UNITDIR is where systemd
1775 system .service files are located, default is to ask
1778 Some influential environment variables:
1779 CC C compiler command
1780 CFLAGS C compiler flags
1781 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1782 nonstandard directory <lib dir>
1783 LIBS libraries to pass to the linker, e.g. -l<library>
1784 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1785 you have headers in a nonstandard directory <include dir>
1786 CXX C++ compiler command
1787 CXXFLAGS C++ compiler flags
1789 CXXCPP C++ preprocessor
1790 XMKMF Path to xmkmf, Makefile generator for X Window System
1792 Use these variables to override the choices made by `configure' or to help
1793 it to find libraries and programs with nonstandard names/locations.
1795 Report bugs to the package provider.
1800 if test "$ac_init_help" = "recursive"; then
1801 # If there are subdirs, report their specific --help.
1802 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1803 test -d "$ac_dir" ||
1804 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1809 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1811 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1812 # A ".." for each directory in $ac_dir_suffix.
1813 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1814 case $ac_top_builddir_sub in
1815 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1816 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1819 ac_abs_top_builddir=$ac_pwd
1820 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1821 # for backward compatibility:
1822 ac_top_builddir=$ac_top_build_prefix
1825 .) # We are building in place.
1827 ac_top_srcdir=$ac_top_builddir_sub
1828 ac_abs_top_srcdir=$ac_pwd ;;
1829 [\\/]* | ?:[\\/]* ) # Absolute name.
1830 ac_srcdir=$srcdir$ac_dir_suffix;
1831 ac_top_srcdir=$srcdir
1832 ac_abs_top_srcdir=$srcdir ;;
1834 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1835 ac_top_srcdir=$ac_top_build_prefix$srcdir
1836 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1838 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1840 cd "$ac_dir" || { ac_status=$?; continue; }
1841 # Check for guested configure.
1842 if test -f "$ac_srcdir/configure.gnu"; then
1844 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1845 elif test -f "$ac_srcdir/configure"; then
1847 $SHELL "$ac_srcdir/configure" --help=recursive
1849 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1851 cd "$ac_pwd" || { ac_status=$?; break; }
1855 test -n "$ac_init_help" && exit $ac_status
1856 if $ac_init_version; then
1858 bacula configure 9.0.7
1859 generated by GNU Autoconf 2.69
1861 Copyright (C) 2012 Free Software Foundation, Inc.
1862 This configure script is free software; the Free Software Foundation
1863 gives unlimited permission to copy, distribute and modify it.
1868 ## ------------------------ ##
1869 ## Autoconf initialization. ##
1870 ## ------------------------ ##
1872 # ac_fn_c_try_compile LINENO
1873 # --------------------------
1874 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1875 ac_fn_c_try_compile ()
1877 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1878 rm -f conftest.$ac_objext
1879 if { { ac_try="$ac_compile"
1881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1882 *) ac_try_echo=$ac_try;;
1884 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1885 $as_echo "$ac_try_echo"; } >&5
1886 (eval "$ac_compile") 2>conftest.err
1888 if test -s conftest.err; then
1889 grep -v '^ *+' conftest.err >conftest.er1
1890 cat conftest.er1 >&5
1891 mv -f conftest.er1 conftest.err
1893 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1894 test $ac_status = 0; } && {
1895 test -z "$ac_c_werror_flag" ||
1896 test ! -s conftest.err
1897 } && test -s conftest.$ac_objext; then :
1900 $as_echo "$as_me: failed program was:" >&5
1901 sed 's/^/| /' conftest.$ac_ext >&5
1905 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1906 as_fn_set_status $ac_retval
1908 } # ac_fn_c_try_compile
1910 # ac_fn_cxx_try_compile LINENO
1911 # ----------------------------
1912 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1913 ac_fn_cxx_try_compile ()
1915 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1916 rm -f conftest.$ac_objext
1917 if { { ac_try="$ac_compile"
1919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1920 *) ac_try_echo=$ac_try;;
1922 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1923 $as_echo "$ac_try_echo"; } >&5
1924 (eval "$ac_compile") 2>conftest.err
1926 if test -s conftest.err; then
1927 grep -v '^ *+' conftest.err >conftest.er1
1928 cat conftest.er1 >&5
1929 mv -f conftest.er1 conftest.err
1931 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1932 test $ac_status = 0; } && {
1933 test -z "$ac_cxx_werror_flag" ||
1934 test ! -s conftest.err
1935 } && test -s conftest.$ac_objext; then :
1938 $as_echo "$as_me: failed program was:" >&5
1939 sed 's/^/| /' conftest.$ac_ext >&5
1943 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1944 as_fn_set_status $ac_retval
1946 } # ac_fn_cxx_try_compile
1948 # ac_fn_c_try_cpp LINENO
1949 # ----------------------
1950 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1953 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1954 if { { ac_try="$ac_cpp conftest.$ac_ext"
1956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1957 *) ac_try_echo=$ac_try;;
1959 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1960 $as_echo "$ac_try_echo"; } >&5
1961 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1963 if test -s conftest.err; then
1964 grep -v '^ *+' conftest.err >conftest.er1
1965 cat conftest.er1 >&5
1966 mv -f conftest.er1 conftest.err
1968 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1969 test $ac_status = 0; } > conftest.i && {
1970 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1971 test ! -s conftest.err
1975 $as_echo "$as_me: failed program was:" >&5
1976 sed 's/^/| /' conftest.$ac_ext >&5
1980 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1981 as_fn_set_status $ac_retval
1985 # ac_fn_c_try_link LINENO
1986 # -----------------------
1987 # Try to link conftest.$ac_ext, and return whether this succeeded.
1990 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1991 rm -f conftest.$ac_objext conftest$ac_exeext
1992 if { { ac_try="$ac_link"
1994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1995 *) ac_try_echo=$ac_try;;
1997 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1998 $as_echo "$ac_try_echo"; } >&5
1999 (eval "$ac_link") 2>conftest.err
2001 if test -s conftest.err; then
2002 grep -v '^ *+' conftest.err >conftest.er1
2003 cat conftest.er1 >&5
2004 mv -f conftest.er1 conftest.err
2006 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2007 test $ac_status = 0; } && {
2008 test -z "$ac_c_werror_flag" ||
2009 test ! -s conftest.err
2010 } && test -s conftest$ac_exeext && {
2011 test "$cross_compiling" = yes ||
2012 test -x conftest$ac_exeext
2016 $as_echo "$as_me: failed program was:" >&5
2017 sed 's/^/| /' conftest.$ac_ext >&5
2021 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2022 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2023 # interfere with the next link command; also delete a directory that is
2024 # left behind by Apple's compiler. We do this before executing the actions.
2025 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2026 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2027 as_fn_set_status $ac_retval
2029 } # ac_fn_c_try_link
2031 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2032 # -------------------------------------------------------
2033 # Tests whether HEADER exists and can be compiled using the include files in
2034 # INCLUDES, setting the cache variable VAR accordingly.
2035 ac_fn_c_check_header_compile ()
2037 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2039 $as_echo_n "checking for $2... " >&6; }
2040 if eval \${$3+:} false; then :
2041 $as_echo_n "(cached) " >&6
2043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2044 /* end confdefs.h. */
2048 if ac_fn_c_try_compile "$LINENO"; then :
2053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2057 $as_echo "$ac_res" >&6; }
2058 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2060 } # ac_fn_c_check_header_compile
2062 # ac_fn_c_try_run LINENO
2063 # ----------------------
2064 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2065 # that executables *can* be run.
2068 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2069 if { { ac_try="$ac_link"
2071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2072 *) ac_try_echo=$ac_try;;
2074 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2075 $as_echo "$ac_try_echo"; } >&5
2076 (eval "$ac_link") 2>&5
2078 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2079 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2080 { { case "(($ac_try" in
2081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2082 *) ac_try_echo=$ac_try;;
2084 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2085 $as_echo "$ac_try_echo"; } >&5
2086 (eval "$ac_try") 2>&5
2088 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2089 test $ac_status = 0; }; }; then :
2092 $as_echo "$as_me: program exited with status $ac_status" >&5
2093 $as_echo "$as_me: failed program was:" >&5
2094 sed 's/^/| /' conftest.$ac_ext >&5
2096 ac_retval=$ac_status
2098 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2099 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2100 as_fn_set_status $ac_retval
2104 # ac_fn_c_check_func LINENO FUNC VAR
2105 # ----------------------------------
2106 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2107 ac_fn_c_check_func ()
2109 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2111 $as_echo_n "checking for $2... " >&6; }
2112 if eval \${$3+:} false; then :
2113 $as_echo_n "(cached) " >&6
2115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2116 /* end confdefs.h. */
2117 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2118 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2119 #define $2 innocuous_$2
2121 /* System header to define __stub macros and hopefully few prototypes,
2122 which can conflict with char $2 (); below.
2123 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2124 <limits.h> exists even on freestanding compilers. */
2127 # include <limits.h>
2129 # include <assert.h>
2134 /* Override any GCC internal prototype to avoid an error.
2135 Use char because int might match the return type of a GCC
2136 builtin and then its argument prototype would still apply. */
2141 /* The GNU C library defines this for functions which it implements
2142 to always fail with ENOSYS. Some functions are actually named
2143 something starting with __ and the normal name is an alias. */
2144 #if defined __stub_$2 || defined __stub___$2
2156 if ac_fn_c_try_link "$LINENO"; then :
2161 rm -f core conftest.err conftest.$ac_objext \
2162 conftest$ac_exeext conftest.$ac_ext
2165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2166 $as_echo "$ac_res" >&6; }
2167 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2169 } # ac_fn_c_check_func
2171 # ac_fn_cxx_try_cpp LINENO
2172 # ------------------------
2173 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2174 ac_fn_cxx_try_cpp ()
2176 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2177 if { { ac_try="$ac_cpp conftest.$ac_ext"
2179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2180 *) ac_try_echo=$ac_try;;
2182 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2183 $as_echo "$ac_try_echo"; } >&5
2184 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2186 if test -s conftest.err; then
2187 grep -v '^ *+' conftest.err >conftest.er1
2188 cat conftest.er1 >&5
2189 mv -f conftest.er1 conftest.err
2191 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2192 test $ac_status = 0; } > conftest.i && {
2193 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2194 test ! -s conftest.err
2198 $as_echo "$as_me: failed program was:" >&5
2199 sed 's/^/| /' conftest.$ac_ext >&5
2203 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2204 as_fn_set_status $ac_retval
2206 } # ac_fn_cxx_try_cpp
2208 # ac_fn_cxx_try_link LINENO
2209 # -------------------------
2210 # Try to link conftest.$ac_ext, and return whether this succeeded.
2211 ac_fn_cxx_try_link ()
2213 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2214 rm -f conftest.$ac_objext conftest$ac_exeext
2215 if { { ac_try="$ac_link"
2217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2218 *) ac_try_echo=$ac_try;;
2220 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2221 $as_echo "$ac_try_echo"; } >&5
2222 (eval "$ac_link") 2>conftest.err
2224 if test -s conftest.err; then
2225 grep -v '^ *+' conftest.err >conftest.er1
2226 cat conftest.er1 >&5
2227 mv -f conftest.er1 conftest.err
2229 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2230 test $ac_status = 0; } && {
2231 test -z "$ac_cxx_werror_flag" ||
2232 test ! -s conftest.err
2233 } && test -s conftest$ac_exeext && {
2234 test "$cross_compiling" = yes ||
2235 test -x conftest$ac_exeext
2239 $as_echo "$as_me: failed program was:" >&5
2240 sed 's/^/| /' conftest.$ac_ext >&5
2244 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2245 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2246 # interfere with the next link command; also delete a directory that is
2247 # left behind by Apple's compiler. We do this before executing the actions.
2248 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2249 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2250 as_fn_set_status $ac_retval
2252 } # ac_fn_cxx_try_link
2254 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2255 # ---------------------------------------------
2256 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2258 ac_fn_c_check_decl ()
2260 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2261 as_decl_name=`echo $2|sed 's/ *(.*//'`
2262 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2264 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2265 if eval \${$3+:} false; then :
2266 $as_echo_n "(cached) " >&6
2268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2269 /* end confdefs.h. */
2274 #ifndef $as_decl_name
2276 (void) $as_decl_use;
2278 (void) $as_decl_name;
2286 if ac_fn_c_try_compile "$LINENO"; then :
2291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2295 $as_echo "$ac_res" >&6; }
2296 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2298 } # ac_fn_c_check_decl
2300 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2301 # -------------------------------------------
2302 # Tests whether TYPE exists after having included INCLUDES, setting cache
2303 # variable VAR accordingly.
2304 ac_fn_c_check_type ()
2306 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2308 $as_echo_n "checking for $2... " >&6; }
2309 if eval \${$3+:} false; then :
2310 $as_echo_n "(cached) " >&6
2313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2314 /* end confdefs.h. */
2325 if ac_fn_c_try_compile "$LINENO"; then :
2326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2327 /* end confdefs.h. */
2338 if ac_fn_c_try_compile "$LINENO"; then :
2343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2349 $as_echo "$ac_res" >&6; }
2350 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2352 } # ac_fn_c_check_type
2354 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2355 # -------------------------------------------------------
2356 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2357 # the include files in INCLUDES and setting the cache variable VAR
2359 ac_fn_c_check_header_mongrel ()
2361 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2362 if eval \${$3+:} false; then :
2363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2364 $as_echo_n "checking for $2... " >&6; }
2365 if eval \${$3+:} false; then :
2366 $as_echo_n "(cached) " >&6
2369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2370 $as_echo "$ac_res" >&6; }
2372 # Is the header compilable?
2373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2374 $as_echo_n "checking $2 usability... " >&6; }
2375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2376 /* end confdefs.h. */
2380 if ac_fn_c_try_compile "$LINENO"; then :
2381 ac_header_compiler=yes
2383 ac_header_compiler=no
2385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2387 $as_echo "$ac_header_compiler" >&6; }
2389 # Is the header present?
2390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2391 $as_echo_n "checking $2 presence... " >&6; }
2392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2393 /* end confdefs.h. */
2396 if ac_fn_c_try_cpp "$LINENO"; then :
2397 ac_header_preproc=yes
2399 ac_header_preproc=no
2401 rm -f conftest.err conftest.i conftest.$ac_ext
2402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2403 $as_echo "$ac_header_preproc" >&6; }
2405 # So? What about this header?
2406 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2408 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2409 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2410 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2411 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2414 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2415 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2416 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2417 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2418 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2419 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2420 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2421 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2422 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2423 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2427 $as_echo_n "checking for $2... " >&6; }
2428 if eval \${$3+:} false; then :
2429 $as_echo_n "(cached) " >&6
2431 eval "$3=\$ac_header_compiler"
2434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2435 $as_echo "$ac_res" >&6; }
2437 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2439 } # ac_fn_c_check_header_mongrel
2441 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2442 # --------------------------------------------
2443 # Tries to find the compile-time value of EXPR in a program that includes
2444 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2446 ac_fn_c_compute_int ()
2448 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2449 if test "$cross_compiling" = yes; then
2450 # Depending upon the size, compute the lo and hi bounds.
2451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2452 /* end confdefs.h. */
2457 static int test_array [1 - 2 * !(($2) >= 0)];
2459 return test_array [0];
2465 if ac_fn_c_try_compile "$LINENO"; then :
2468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2469 /* end confdefs.h. */
2474 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2476 return test_array [0];
2482 if ac_fn_c_try_compile "$LINENO"; then :
2483 ac_hi=$ac_mid; break
2485 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2486 if test $ac_lo -le $ac_mid; then
2490 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2496 /* end confdefs.h. */
2501 static int test_array [1 - 2 * !(($2) < 0)];
2503 return test_array [0];
2509 if ac_fn_c_try_compile "$LINENO"; then :
2512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2513 /* end confdefs.h. */
2518 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2520 return test_array [0];
2526 if ac_fn_c_try_compile "$LINENO"; then :
2527 ac_lo=$ac_mid; break
2529 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2530 if test $ac_mid -le $ac_hi; then
2534 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2544 # Binary search between lo and hi bounds.
2545 while test "x$ac_lo" != "x$ac_hi"; do
2546 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2548 /* end confdefs.h. */
2553 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2555 return test_array [0];
2561 if ac_fn_c_try_compile "$LINENO"; then :
2564 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2569 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2574 /* end confdefs.h. */
2576 static long int longval () { return $2; }
2577 static unsigned long int ulongval () { return $2; }
2584 FILE *f = fopen ("conftest.val", "w");
2589 long int i = longval ();
2592 fprintf (f, "%ld", i);
2596 unsigned long int i = ulongval ();
2599 fprintf (f, "%lu", i);
2601 /* Do not output a trailing newline, as this causes \r\n confusion
2602 on some platforms. */
2603 return ferror (f) || fclose (f) != 0;
2609 if ac_fn_c_try_run "$LINENO"; then :
2610 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2614 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2615 conftest.$ac_objext conftest.beam conftest.$ac_ext
2619 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2620 as_fn_set_status $ac_retval
2622 } # ac_fn_c_compute_int
2624 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2625 # ----------------------------------------------------
2626 # Tries to find if the field MEMBER exists in type AGGR, after including
2627 # INCLUDES, setting cache variable VAR accordingly.
2628 ac_fn_c_check_member ()
2630 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2632 $as_echo_n "checking for $2.$3... " >&6; }
2633 if eval \${$4+:} false; then :
2634 $as_echo_n "(cached) " >&6
2636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2637 /* end confdefs.h. */
2649 if ac_fn_c_try_compile "$LINENO"; then :
2652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2653 /* end confdefs.h. */
2659 if (sizeof ac_aggr.$3)
2665 if ac_fn_c_try_compile "$LINENO"; then :
2670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2676 $as_echo "$ac_res" >&6; }
2677 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2679 } # ac_fn_c_check_member
2681 # ac_fn_cxx_try_run LINENO
2682 # ------------------------
2683 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2684 # that executables *can* be run.
2685 ac_fn_cxx_try_run ()
2687 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2688 if { { ac_try="$ac_link"
2690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2691 *) ac_try_echo=$ac_try;;
2693 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2694 $as_echo "$ac_try_echo"; } >&5
2695 (eval "$ac_link") 2>&5
2697 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2698 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2699 { { case "(($ac_try" in
2700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2701 *) ac_try_echo=$ac_try;;
2703 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2704 $as_echo "$ac_try_echo"; } >&5
2705 (eval "$ac_try") 2>&5
2707 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2708 test $ac_status = 0; }; }; then :
2711 $as_echo "$as_me: program exited with status $ac_status" >&5
2712 $as_echo "$as_me: failed program was:" >&5
2713 sed 's/^/| /' conftest.$ac_ext >&5
2715 ac_retval=$ac_status
2717 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2718 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2719 as_fn_set_status $ac_retval
2721 } # ac_fn_cxx_try_run
2723 # ac_fn_cxx_check_func LINENO FUNC VAR
2724 # ------------------------------------
2725 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2726 ac_fn_cxx_check_func ()
2728 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2730 $as_echo_n "checking for $2... " >&6; }
2731 if eval \${$3+:} false; then :
2732 $as_echo_n "(cached) " >&6
2734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2735 /* end confdefs.h. */
2736 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2737 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2738 #define $2 innocuous_$2
2740 /* System header to define __stub macros and hopefully few prototypes,
2741 which can conflict with char $2 (); below.
2742 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2743 <limits.h> exists even on freestanding compilers. */
2746 # include <limits.h>
2748 # include <assert.h>
2753 /* Override any GCC internal prototype to avoid an error.
2754 Use char because int might match the return type of a GCC
2755 builtin and then its argument prototype would still apply. */
2760 /* The GNU C library defines this for functions which it implements
2761 to always fail with ENOSYS. Some functions are actually named
2762 something starting with __ and the normal name is an alias. */
2763 #if defined __stub_$2 || defined __stub___$2
2775 if ac_fn_cxx_try_link "$LINENO"; then :
2780 rm -f core conftest.err conftest.$ac_objext \
2781 conftest$ac_exeext conftest.$ac_ext
2784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2785 $as_echo "$ac_res" >&6; }
2786 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2788 } # ac_fn_cxx_check_func
2789 cat >config.log <<_ACEOF
2790 This file contains any messages produced by compilers while
2791 running configure, to aid debugging if configure makes a mistake.
2793 It was created by bacula $as_me 9.0.7, which was
2794 generated by GNU Autoconf 2.69. Invocation command line was
2806 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2807 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2808 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2809 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2810 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2812 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2813 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2815 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2816 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2817 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2818 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2819 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2820 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2821 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2829 test -z "$as_dir" && as_dir=.
2830 $as_echo "PATH: $as_dir"
2846 # Keep a trace of the command line.
2847 # Strip out --no-create and --no-recursion so they do not pile up.
2848 # Strip out --silent because we don't want to record it for future runs.
2849 # Also quote any args containing shell meta-characters.
2850 # Make two passes to allow for proper duplicate-argument suppression.
2854 ac_must_keep_next=false
2860 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2861 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2862 | -silent | --silent | --silen | --sile | --sil)
2865 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2868 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2870 as_fn_append ac_configure_args1 " '$ac_arg'"
2871 if test $ac_must_keep_next = true; then
2872 ac_must_keep_next=false # Got value, back to normal.
2875 *=* | --config-cache | -C | -disable-* | --disable-* \
2876 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2877 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2878 | -with-* | --with-* | -without-* | --without-* | --x)
2879 case "$ac_configure_args0 " in
2880 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2883 -* ) ac_must_keep_next=true ;;
2886 as_fn_append ac_configure_args " '$ac_arg'"
2891 { ac_configure_args0=; unset ac_configure_args0;}
2892 { ac_configure_args1=; unset ac_configure_args1;}
2894 # When interrupted or exit'd, cleanup temporary files, and complete
2895 # config.log. We remove comments because anyway the quotes in there
2896 # would cause problems or look ugly.
2897 # WARNING: Use '\'' to represent an apostrophe within the trap.
2898 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2899 trap 'exit_status=$?
2900 # Save into config.log some information that might help in debugging.
2904 $as_echo "## ---------------- ##
2905 ## Cache variables. ##
2906 ## ---------------- ##"
2908 # The following way of writing the cache mishandles newlines in values,
2910 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2911 eval ac_val=\$$ac_var
2915 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2916 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2919 _ | IFS | as_nl) ;; #(
2920 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2921 *) { eval $ac_var=; unset $ac_var;} ;;
2926 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2927 *${as_nl}ac_space=\ *)
2929 "s/'\''/'\''\\\\'\'''\''/g;
2930 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2933 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2940 $as_echo "## ----------------- ##
2941 ## Output variables. ##
2942 ## ----------------- ##"
2944 for ac_var in $ac_subst_vars
2946 eval ac_val=\$$ac_var
2948 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2950 $as_echo "$ac_var='\''$ac_val'\''"
2954 if test -n "$ac_subst_files"; then
2955 $as_echo "## ------------------- ##
2956 ## File substitutions. ##
2957 ## ------------------- ##"
2959 for ac_var in $ac_subst_files
2961 eval ac_val=\$$ac_var
2963 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2965 $as_echo "$ac_var='\''$ac_val'\''"
2970 if test -s confdefs.h; then
2971 $as_echo "## ----------- ##
2978 test "$ac_signal" != 0 &&
2979 $as_echo "$as_me: caught signal $ac_signal"
2980 $as_echo "$as_me: exit $exit_status"
2982 rm -f core *.core core.conftest.* &&
2983 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2986 for ac_signal in 1 2 13 15; do
2987 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2991 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2992 rm -f -r conftest* confdefs.h
2994 $as_echo "/* confdefs.h */" > confdefs.h
2996 # Predefined preprocessor variables.
2998 cat >>confdefs.h <<_ACEOF
2999 #define PACKAGE_NAME "$PACKAGE_NAME"
3002 cat >>confdefs.h <<_ACEOF
3003 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3006 cat >>confdefs.h <<_ACEOF
3007 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3010 cat >>confdefs.h <<_ACEOF
3011 #define PACKAGE_STRING "$PACKAGE_STRING"
3014 cat >>confdefs.h <<_ACEOF
3015 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3018 cat >>confdefs.h <<_ACEOF
3019 #define PACKAGE_URL "$PACKAGE_URL"
3023 # Let the site file select an alternate cache file if it wants to.
3024 # Prefer an explicitly selected file to automatically selected ones.
3027 if test -n "$CONFIG_SITE"; then
3028 # We do not want a PATH search for config.site.
3029 case $CONFIG_SITE in #((
3030 -*) ac_site_file1=./$CONFIG_SITE;;
3031 */*) ac_site_file1=$CONFIG_SITE;;
3032 *) ac_site_file1=./$CONFIG_SITE;;
3034 elif test "x$prefix" != xNONE; then
3035 ac_site_file1=$prefix/share/config.site
3036 ac_site_file2=$prefix/etc/config.site
3038 ac_site_file1=$ac_default_prefix/share/config.site
3039 ac_site_file2=$ac_default_prefix/etc/config.site
3041 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3043 test "x$ac_site_file" = xNONE && continue
3044 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3045 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3046 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3047 sed 's/^/| /' "$ac_site_file" >&5
3049 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3050 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3051 as_fn_error $? "failed to load site script $ac_site_file
3052 See \`config.log' for more details" "$LINENO" 5; }
3056 if test -r "$cache_file"; then
3057 # Some versions of bash will fail to source /dev/null (special files
3058 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3059 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3060 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3061 $as_echo "$as_me: loading cache $cache_file" >&6;}
3063 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3064 *) . "./$cache_file";;
3068 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3069 $as_echo "$as_me: creating cache $cache_file" >&6;}
3073 as_fn_append ac_header_list " stdlib.h"
3074 as_fn_append ac_header_list " unistd.h"
3075 as_fn_append ac_header_list " sys/param.h"
3076 # Check that the precious variables saved in the cache have kept the same
3078 ac_cache_corrupted=false
3079 for ac_var in $ac_precious_vars; do
3080 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3081 eval ac_new_set=\$ac_env_${ac_var}_set
3082 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3083 eval ac_new_val=\$ac_env_${ac_var}_value
3084 case $ac_old_set,$ac_new_set in
3086 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3087 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3088 ac_cache_corrupted=: ;;
3090 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3091 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3092 ac_cache_corrupted=: ;;
3095 if test "x$ac_old_val" != "x$ac_new_val"; then
3096 # differences in whitespace do not lead to failure.
3097 ac_old_val_w=`echo x $ac_old_val`
3098 ac_new_val_w=`echo x $ac_new_val`
3099 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3100 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3101 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3102 ac_cache_corrupted=:
3104 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3105 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3106 eval $ac_var=\$ac_old_val
3108 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3109 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3110 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3111 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3114 # Pass precious variables to config.status.
3115 if test "$ac_new_set" = set; then
3117 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3118 *) ac_arg=$ac_var=$ac_new_val ;;
3120 case " $ac_configure_args " in
3121 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3122 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3126 if $ac_cache_corrupted; then
3127 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3128 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3129 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3130 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3131 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3133 ## -------------------- ##
3134 ## Main body of script. ##
3135 ## -------------------- ##
3138 ac_cpp='$CPP $CPPFLAGS'
3139 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3140 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3141 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3153 for ac_dir in ${BUILD_DIR}/autoconf "$srcdir"/${BUILD_DIR}/autoconf; do
3154 if test -f "$ac_dir/install-sh"; then
3156 ac_install_sh="$ac_aux_dir/install-sh -c"
3158 elif test -f "$ac_dir/install.sh"; then
3160 ac_install_sh="$ac_aux_dir/install.sh -c"
3162 elif test -f "$ac_dir/shtool"; then
3164 ac_install_sh="$ac_aux_dir/shtool install -c"
3168 if test -z "$ac_aux_dir"; then
3169 as_fn_error $? "cannot find install-sh, install.sh, or shtool in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" "$LINENO" 5
3172 # These three variables are undocumented and unsupported,
3173 # and are intended to be withdrawn in a future Autoconf release.
3174 # They can cause serious problems if a builder's source tree is in a directory
3175 # whose full name contains unusual characters.
3176 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3177 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3178 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3181 ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
3184 WIN32BUILDDIR=${BUILD_DIR}/src/win32
3185 WIN32MAINDIR=${BUILD_DIR}
3186 WIN32TOPDIR=${TOP_DIR}
3193 # Extract the first word of "$ac_prog", so it can be a program name with args.
3194 set dummy $ac_prog; ac_word=$2
3195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3196 $as_echo_n "checking for $ac_word... " >&6; }
3197 if ${ac_cv_path_TRUEPRG+:} false; then :
3198 $as_echo_n "(cached) " >&6
3202 ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
3205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3209 test -z "$as_dir" && as_dir=.
3210 for ac_exec_ext in '' $ac_executable_extensions; do
3211 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3212 ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
3213 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3223 TRUEPRG=$ac_cv_path_TRUEPRG
3224 if test -n "$TRUEPRG"; then
3225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TRUEPRG" >&5
3226 $as_echo "$TRUEPRG" >&6; }
3228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3229 $as_echo "no" >&6; }
3233 test -n "$TRUEPRG" && break
3235 test -n "$TRUEPRG" || TRUEPRG=":"
3237 for ac_prog in false
3239 # Extract the first word of "$ac_prog", so it can be a program name with args.
3240 set dummy $ac_prog; ac_word=$2
3241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3242 $as_echo_n "checking for $ac_word... " >&6; }
3243 if ${ac_cv_path_FALSEPRG+:} false; then :
3244 $as_echo_n "(cached) " >&6
3248 ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
3251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3255 test -z "$as_dir" && as_dir=.
3256 for ac_exec_ext in '' $ac_executable_extensions; do
3257 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3258 ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
3259 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3269 FALSEPRG=$ac_cv_path_FALSEPRG
3270 if test -n "$FALSEPRG"; then
3271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FALSEPRG" >&5
3272 $as_echo "$FALSEPRG" >&6; }
3274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3275 $as_echo "no" >&6; }
3279 test -n "$FALSEPRG" && break
3281 test -n "$FALSEPRG" || FALSEPRG=":"
3286 if test "x$BACULA" != x; then
3287 post_host=`echo -${BACULA} | tr 'A-Z ' 'a-z-'`
3289 BACULA=${BACULA:-Bacula}
3290 VERSION=`sed -n -e 's/^#define VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3291 RELEASE=`sed -n -e 's/^#define RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3292 DATE=`sed -n -e 's/^#define BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3293 LSMDATE=`sed -n -e 's/^#define LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3294 BDB_VERSION=`sed -n -e 's/^#define BDB_VERSION \(.*\)$/\1/p' ${srcdir}/src/cats/cats.h`
3295 DEPKGS_VERSION=`sed -n -e 's/^#define DEPKGS_VERSION \(.*\)$/\1/p' ${srcdir}/src/cats/cats.h`
3296 DEPKGS_QT_VERSION=`sed -n -e 's/^#define DEPKGS_QT_VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3297 BQT_VERSION=`sed -n -e 's/^#define BQT_VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3298 VIX_VERSION=`sed -n -e 's/^#define VIX_VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3299 JAVA_VERSION=`sed -n -e 's/^#define JAVA_VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3300 NDMP_VERSION=`sed -n -e 's/^#define NDMP_VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3301 LIBRSYNC_VERSION=`sed -n -e 's/^#define LIBRSYNC_VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3304 LIBBAC_LT_RELEASE=`sed -n -e 's/^#.*LIBBAC_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3305 LIBBACCFG_LT_RELEASE=`sed -n -e 's/^#.*LIBBACCFG_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3306 LIBBACPY_LT_RELEASE=`sed -n -e 's/^#.*LIBBACPY_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3308 LIBBAC_LT_RELEASE=${LIBBAC_LT_RELEASE:-$VERSION}
3309 LIBBACCFG_LT_RELEASE=${LIBBACCFG_LT_RELEASE:-$VERSION}
3312 LIBBACSQL_LT_RELEASE=`sed -n -e 's/^#.*LIBBACSQL_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3313 LIBBACCATS_LT_RELEASE=`sed -n -e 's/^#.*LIBBACCATS_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3315 LIBBACSQL_LT_RELEASE=${LIBBACSQL_LT_RELEASE:-$VERSION}
3316 LIBBACCATS_LT_RELEASE=${LIBBACCATS_LT_RELEASE:-$VERSION}
3319 LIBBACFIND_LT_RELEASE=`sed -n -e 's/^#.*LIBBACFIND_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3321 LIBBACFIND_LT_RELEASE=${LIBBACFIND_LT_RELEASE:-$VERSION}
3324 PFILES="platforms/Makefile"
3326 echo "configuring for ${BACULA} $VERSION ($DATE)"
3331 ac_cpp='$CPP $CPPFLAGS'
3332 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3333 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3334 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3335 if test -n "$ac_tool_prefix"; then
3336 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3337 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3339 $as_echo_n "checking for $ac_word... " >&6; }
3340 if ${ac_cv_prog_CC+:} false; then :
3341 $as_echo_n "(cached) " >&6
3343 if test -n "$CC"; then
3344 ac_cv_prog_CC="$CC" # Let the user override the test.
3346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3350 test -z "$as_dir" && as_dir=.
3351 for ac_exec_ext in '' $ac_executable_extensions; do
3352 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3353 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3354 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3364 if test -n "$CC"; then
3365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3366 $as_echo "$CC" >&6; }
3368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3369 $as_echo "no" >&6; }
3374 if test -z "$ac_cv_prog_CC"; then
3376 # Extract the first word of "gcc", so it can be a program name with args.
3377 set dummy gcc; ac_word=$2
3378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3379 $as_echo_n "checking for $ac_word... " >&6; }
3380 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3381 $as_echo_n "(cached) " >&6
3383 if test -n "$ac_ct_CC"; then
3384 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3390 test -z "$as_dir" && as_dir=.
3391 for ac_exec_ext in '' $ac_executable_extensions; do
3392 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3393 ac_cv_prog_ac_ct_CC="gcc"
3394 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3403 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3404 if test -n "$ac_ct_CC"; then
3405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3406 $as_echo "$ac_ct_CC" >&6; }
3408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3409 $as_echo "no" >&6; }
3412 if test "x$ac_ct_CC" = x; then
3415 case $cross_compiling:$ac_tool_warned in
3417 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3418 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3419 ac_tool_warned=yes ;;
3427 if test -z "$CC"; then
3428 if test -n "$ac_tool_prefix"; then
3429 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3430 set dummy ${ac_tool_prefix}cc; ac_word=$2
3431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3432 $as_echo_n "checking for $ac_word... " >&6; }
3433 if ${ac_cv_prog_CC+:} false; then :
3434 $as_echo_n "(cached) " >&6
3436 if test -n "$CC"; then
3437 ac_cv_prog_CC="$CC" # Let the user override the test.
3439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3443 test -z "$as_dir" && as_dir=.
3444 for ac_exec_ext in '' $ac_executable_extensions; do
3445 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3446 ac_cv_prog_CC="${ac_tool_prefix}cc"
3447 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3457 if test -n "$CC"; then
3458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3459 $as_echo "$CC" >&6; }
3461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3462 $as_echo "no" >&6; }
3468 if test -z "$CC"; then
3469 # Extract the first word of "cc", so it can be a program name with args.
3470 set dummy cc; ac_word=$2
3471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3472 $as_echo_n "checking for $ac_word... " >&6; }
3473 if ${ac_cv_prog_CC+:} false; then :
3474 $as_echo_n "(cached) " >&6
3476 if test -n "$CC"; then
3477 ac_cv_prog_CC="$CC" # Let the user override the test.
3480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3484 test -z "$as_dir" && as_dir=.
3485 for ac_exec_ext in '' $ac_executable_extensions; do
3486 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3487 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3488 ac_prog_rejected=yes
3492 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3499 if test $ac_prog_rejected = yes; then
3500 # We found a bogon in the path, so make sure we never use it.
3501 set dummy $ac_cv_prog_CC
3503 if test $# != 0; then
3504 # We chose a different compiler from the bogus one.
3505 # However, it has the same basename, so the bogon will be chosen
3506 # first if we set CC to just the basename; use the full file name.
3508 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3514 if test -n "$CC"; then
3515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3516 $as_echo "$CC" >&6; }
3518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3519 $as_echo "no" >&6; }
3524 if test -z "$CC"; then
3525 if test -n "$ac_tool_prefix"; then
3526 for ac_prog in cl.exe
3528 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3529 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3531 $as_echo_n "checking for $ac_word... " >&6; }
3532 if ${ac_cv_prog_CC+:} false; then :
3533 $as_echo_n "(cached) " >&6
3535 if test -n "$CC"; then
3536 ac_cv_prog_CC="$CC" # Let the user override the test.
3538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3542 test -z "$as_dir" && as_dir=.
3543 for ac_exec_ext in '' $ac_executable_extensions; do
3544 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3545 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3546 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3556 if test -n "$CC"; then
3557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3558 $as_echo "$CC" >&6; }
3560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3561 $as_echo "no" >&6; }
3565 test -n "$CC" && break
3568 if test -z "$CC"; then
3570 for ac_prog in cl.exe
3572 # Extract the first word of "$ac_prog", so it can be a program name with args.
3573 set dummy $ac_prog; ac_word=$2
3574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3575 $as_echo_n "checking for $ac_word... " >&6; }
3576 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3577 $as_echo_n "(cached) " >&6
3579 if test -n "$ac_ct_CC"; then
3580 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3586 test -z "$as_dir" && as_dir=.
3587 for ac_exec_ext in '' $ac_executable_extensions; do
3588 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3589 ac_cv_prog_ac_ct_CC="$ac_prog"
3590 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3599 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3600 if test -n "$ac_ct_CC"; then
3601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3602 $as_echo "$ac_ct_CC" >&6; }
3604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3605 $as_echo "no" >&6; }
3609 test -n "$ac_ct_CC" && break
3612 if test "x$ac_ct_CC" = x; then
3615 case $cross_compiling:$ac_tool_warned in
3617 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3618 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3619 ac_tool_warned=yes ;;
3628 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3629 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3630 as_fn_error $? "no acceptable C compiler found in \$PATH
3631 See \`config.log' for more details" "$LINENO" 5; }
3633 # Provide some information about the compiler.
3634 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3637 for ac_option in --version -v -V -qversion; do
3638 { { ac_try="$ac_compiler $ac_option >&5"
3640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3641 *) ac_try_echo=$ac_try;;
3643 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3644 $as_echo "$ac_try_echo"; } >&5
3645 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3647 if test -s conftest.err; then
3649 ... rest of stderr output deleted ...
3650 10q' conftest.err >conftest.er1
3651 cat conftest.er1 >&5
3653 rm -f conftest.er1 conftest.err
3654 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3655 test $ac_status = 0; }
3658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3659 /* end confdefs.h. */
3669 ac_clean_files_save=$ac_clean_files
3670 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3671 # Try to create an executable without -o first, disregard a.out.
3672 # It will help us diagnose broken compilers, and finding out an intuition
3674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3675 $as_echo_n "checking whether the C compiler works... " >&6; }
3676 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3678 # The possible output files:
3679 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3682 for ac_file in $ac_files
3685 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3686 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3691 if { { ac_try="$ac_link_default"
3693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3694 *) ac_try_echo=$ac_try;;
3696 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3697 $as_echo "$ac_try_echo"; } >&5
3698 (eval "$ac_link_default") 2>&5
3700 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3701 test $ac_status = 0; }; then :
3702 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3703 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3704 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3705 # so that the user can short-circuit this test for compilers unknown to
3707 for ac_file in $ac_files ''
3709 test -f "$ac_file" || continue
3711 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3714 # We found the default executable, but exeext='' is most
3718 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3720 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3722 # We set ac_cv_exeext here because the later test for it is not
3723 # safe: cross compilers may not add the suffix if given an `-o'
3724 # argument, so we may need to know it at that point already.
3725 # Even if this section looks crufty: it has the advantage of
3732 test "$ac_cv_exeext" = no && ac_cv_exeext=
3737 if test -z "$ac_file"; then :
3738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3739 $as_echo "no" >&6; }
3740 $as_echo "$as_me: failed program was:" >&5
3741 sed 's/^/| /' conftest.$ac_ext >&5
3743 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3744 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3745 as_fn_error 77 "C compiler cannot create executables
3746 See \`config.log' for more details" "$LINENO" 5; }
3748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3749 $as_echo "yes" >&6; }
3751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3752 $as_echo_n "checking for C compiler default output file name... " >&6; }
3753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3754 $as_echo "$ac_file" >&6; }
3755 ac_exeext=$ac_cv_exeext
3757 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3758 ac_clean_files=$ac_clean_files_save
3759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3760 $as_echo_n "checking for suffix of executables... " >&6; }
3761 if { { ac_try="$ac_link"
3763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3764 *) ac_try_echo=$ac_try;;
3766 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3767 $as_echo "$ac_try_echo"; } >&5
3768 (eval "$ac_link") 2>&5
3770 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3771 test $ac_status = 0; }; then :
3772 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3773 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3774 # work properly (i.e., refer to `conftest.exe'), while it won't with
3776 for ac_file in conftest.exe conftest conftest.*; do
3777 test -f "$ac_file" || continue
3779 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3780 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3786 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3787 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3788 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3789 See \`config.log' for more details" "$LINENO" 5; }
3791 rm -f conftest conftest$ac_cv_exeext
3792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3793 $as_echo "$ac_cv_exeext" >&6; }
3795 rm -f conftest.$ac_ext
3796 EXEEXT=$ac_cv_exeext
3798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3799 /* end confdefs.h. */
3804 FILE *f = fopen ("conftest.out", "w");
3805 return ferror (f) || fclose (f) != 0;
3811 ac_clean_files="$ac_clean_files conftest.out"
3812 # Check that the compiler produces executables we can run. If not, either
3813 # the compiler is broken, or we cross compile.
3814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3815 $as_echo_n "checking whether we are cross compiling... " >&6; }
3816 if test "$cross_compiling" != yes; then
3817 { { ac_try="$ac_link"
3819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3820 *) ac_try_echo=$ac_try;;
3822 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3823 $as_echo "$ac_try_echo"; } >&5
3824 (eval "$ac_link") 2>&5
3826 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3827 test $ac_status = 0; }
3828 if { ac_try='./conftest$ac_cv_exeext'
3829 { { case "(($ac_try" in
3830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3831 *) ac_try_echo=$ac_try;;
3833 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3834 $as_echo "$ac_try_echo"; } >&5
3835 (eval "$ac_try") 2>&5
3837 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3838 test $ac_status = 0; }; }; then
3841 if test "$cross_compiling" = maybe; then
3844 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3845 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3846 as_fn_error $? "cannot run C compiled programs.
3847 If you meant to cross compile, use \`--host'.
3848 See \`config.log' for more details" "$LINENO" 5; }
3852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3853 $as_echo "$cross_compiling" >&6; }
3855 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3856 ac_clean_files=$ac_clean_files_save
3857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3858 $as_echo_n "checking for suffix of object files... " >&6; }
3859 if ${ac_cv_objext+:} false; then :
3860 $as_echo_n "(cached) " >&6
3862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3863 /* end confdefs.h. */
3873 rm -f conftest.o conftest.obj
3874 if { { ac_try="$ac_compile"
3876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3877 *) ac_try_echo=$ac_try;;
3879 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3880 $as_echo "$ac_try_echo"; } >&5
3881 (eval "$ac_compile") 2>&5
3883 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3884 test $ac_status = 0; }; then :
3885 for ac_file in conftest.o conftest.obj conftest.*; do
3886 test -f "$ac_file" || continue;
3888 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3889 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3894 $as_echo "$as_me: failed program was:" >&5
3895 sed 's/^/| /' conftest.$ac_ext >&5
3897 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3898 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3899 as_fn_error $? "cannot compute suffix of object files: cannot compile
3900 See \`config.log' for more details" "$LINENO" 5; }
3902 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3905 $as_echo "$ac_cv_objext" >&6; }
3906 OBJEXT=$ac_cv_objext
3908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3909 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3910 if ${ac_cv_c_compiler_gnu+:} false; then :
3911 $as_echo_n "(cached) " >&6
3913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3914 /* end confdefs.h. */
3927 if ac_fn_c_try_compile "$LINENO"; then :
3932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3933 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3937 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3938 if test $ac_compiler_gnu = yes; then
3943 ac_test_CFLAGS=${CFLAGS+set}
3944 ac_save_CFLAGS=$CFLAGS
3945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3946 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3947 if ${ac_cv_prog_cc_g+:} false; then :
3948 $as_echo_n "(cached) " >&6
3950 ac_save_c_werror_flag=$ac_c_werror_flag
3951 ac_c_werror_flag=yes
3954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3955 /* end confdefs.h. */
3965 if ac_fn_c_try_compile "$LINENO"; then :
3969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3970 /* end confdefs.h. */
3980 if ac_fn_c_try_compile "$LINENO"; then :
3983 ac_c_werror_flag=$ac_save_c_werror_flag
3985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3986 /* end confdefs.h. */
3996 if ac_fn_c_try_compile "$LINENO"; then :
3999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4004 ac_c_werror_flag=$ac_save_c_werror_flag
4006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4007 $as_echo "$ac_cv_prog_cc_g" >&6; }
4008 if test "$ac_test_CFLAGS" = set; then
4009 CFLAGS=$ac_save_CFLAGS
4010 elif test $ac_cv_prog_cc_g = yes; then
4011 if test "$GCC" = yes; then
4017 if test "$GCC" = yes; then
4023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4024 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4025 if ${ac_cv_prog_cc_c89+:} false; then :
4026 $as_echo_n "(cached) " >&6
4028 ac_cv_prog_cc_c89=no
4030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4031 /* end confdefs.h. */
4035 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4036 struct buf { int x; };
4037 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4038 static char *e (p, i)
4044 static char *f (char * (*g) (char **, int), char **p, ...)
4049 s = g (p, va_arg (v,int));
4054 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4055 function prototypes and stuff, but not '\xHH' hex character constants.
4056 These don't provoke an error unfortunately, instead are silently treated
4057 as 'x'. The following induces an error, until -std is added to get
4058 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4059 array size at least. It's necessary to write '\x00'==0 to get something
4060 that's true only with -std. */
4061 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4063 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4064 inside strings and character constants. */
4066 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4068 int test (int i, double x);
4069 struct s1 {int (*f) (int a);};
4070 struct s2 {int (*f) (double a);};
4071 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4077 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4082 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4083 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4085 CC="$ac_save_CC $ac_arg"
4086 if ac_fn_c_try_compile "$LINENO"; then :
4087 ac_cv_prog_cc_c89=$ac_arg
4089 rm -f core conftest.err conftest.$ac_objext
4090 test "x$ac_cv_prog_cc_c89" != "xno" && break
4092 rm -f conftest.$ac_ext
4097 case "x$ac_cv_prog_cc_c89" in
4099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4100 $as_echo "none needed" >&6; } ;;
4102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4103 $as_echo "unsupported" >&6; } ;;
4105 CC="$CC $ac_cv_prog_cc_c89"
4106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4107 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4109 if test "x$ac_cv_prog_cc_c89" != xno; then :
4114 ac_cpp='$CPP $CPPFLAGS'
4115 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4116 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4117 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4119 ac_cpp='$CXXCPP $CPPFLAGS'
4120 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4121 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4122 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4123 if test -z "$CXX"; then
4124 if test -n "$CCC"; then
4127 if test -n "$ac_tool_prefix"; then
4128 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4130 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4131 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4133 $as_echo_n "checking for $ac_word... " >&6; }
4134 if ${ac_cv_prog_CXX+:} false; then :
4135 $as_echo_n "(cached) " >&6
4137 if test -n "$CXX"; then
4138 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4144 test -z "$as_dir" && as_dir=.
4145 for ac_exec_ext in '' $ac_executable_extensions; do
4146 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4147 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4148 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4158 if test -n "$CXX"; then
4159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4160 $as_echo "$CXX" >&6; }
4162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4163 $as_echo "no" >&6; }
4167 test -n "$CXX" && break
4170 if test -z "$CXX"; then
4172 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4174 # Extract the first word of "$ac_prog", so it can be a program name with args.
4175 set dummy $ac_prog; ac_word=$2
4176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4177 $as_echo_n "checking for $ac_word... " >&6; }
4178 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4179 $as_echo_n "(cached) " >&6
4181 if test -n "$ac_ct_CXX"; then
4182 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4188 test -z "$as_dir" && as_dir=.
4189 for ac_exec_ext in '' $ac_executable_extensions; do
4190 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4191 ac_cv_prog_ac_ct_CXX="$ac_prog"
4192 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4201 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4202 if test -n "$ac_ct_CXX"; then
4203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4204 $as_echo "$ac_ct_CXX" >&6; }
4206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4207 $as_echo "no" >&6; }
4211 test -n "$ac_ct_CXX" && break
4214 if test "x$ac_ct_CXX" = x; then
4217 case $cross_compiling:$ac_tool_warned in
4219 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4220 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4221 ac_tool_warned=yes ;;
4229 # Provide some information about the compiler.
4230 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4233 for ac_option in --version -v -V -qversion; do
4234 { { ac_try="$ac_compiler $ac_option >&5"
4236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4237 *) ac_try_echo=$ac_try;;
4239 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4240 $as_echo "$ac_try_echo"; } >&5
4241 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4243 if test -s conftest.err; then
4245 ... rest of stderr output deleted ...
4246 10q' conftest.err >conftest.er1
4247 cat conftest.er1 >&5
4249 rm -f conftest.er1 conftest.err
4250 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4251 test $ac_status = 0; }
4254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4255 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4256 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4257 $as_echo_n "(cached) " >&6
4259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4260 /* end confdefs.h. */
4273 if ac_fn_cxx_try_compile "$LINENO"; then :
4278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4279 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4283 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4284 if test $ac_compiler_gnu = yes; then
4289 ac_test_CXXFLAGS=${CXXFLAGS+set}
4290 ac_save_CXXFLAGS=$CXXFLAGS
4291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4292 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4293 if ${ac_cv_prog_cxx_g+:} false; then :
4294 $as_echo_n "(cached) " >&6
4296 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4297 ac_cxx_werror_flag=yes
4300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4301 /* end confdefs.h. */
4311 if ac_fn_cxx_try_compile "$LINENO"; then :
4312 ac_cv_prog_cxx_g=yes
4315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4316 /* end confdefs.h. */
4326 if ac_fn_cxx_try_compile "$LINENO"; then :
4329 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4332 /* end confdefs.h. */
4342 if ac_fn_cxx_try_compile "$LINENO"; then :
4343 ac_cv_prog_cxx_g=yes
4345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4350 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4353 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4354 if test "$ac_test_CXXFLAGS" = set; then
4355 CXXFLAGS=$ac_save_CXXFLAGS
4356 elif test $ac_cv_prog_cxx_g = yes; then
4357 if test "$GXX" = yes; then
4363 if test "$GXX" = yes; then
4370 ac_cpp='$CPP $CPPFLAGS'
4371 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4372 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4373 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4375 if test "x$CC" != xcc; then
4376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4377 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4380 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4382 set dummy $CC; ac_cc=`$as_echo "$2" |
4383 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4384 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
4385 $as_echo_n "(cached) " >&6
4387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4388 /* end confdefs.h. */
4398 # Make sure it works both with $CC and with simple cc.
4399 # We do the test twice because some compilers refuse to overwrite an
4400 # existing .o file with -o, though they will create one.
4401 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4403 if { { case "(($ac_try" in
4404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4405 *) ac_try_echo=$ac_try;;
4407 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4408 $as_echo "$ac_try_echo"; } >&5
4409 (eval "$ac_try") 2>&5
4411 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4412 test $ac_status = 0; } &&
4413 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4415 *) ac_try_echo=$ac_try;;
4417 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4418 $as_echo "$ac_try_echo"; } >&5
4419 (eval "$ac_try") 2>&5
4421 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4422 test $ac_status = 0; };
4424 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4425 if test "x$CC" != xcc; then
4426 # Test first that cc exists at all.
4427 if { ac_try='cc -c conftest.$ac_ext >&5'
4428 { { case "(($ac_try" in
4429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4430 *) ac_try_echo=$ac_try;;
4432 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4433 $as_echo "$ac_try_echo"; } >&5
4434 (eval "$ac_try") 2>&5
4436 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4437 test $ac_status = 0; }; }; then
4438 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4440 if { { case "(($ac_try" in
4441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4442 *) ac_try_echo=$ac_try;;
4444 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4445 $as_echo "$ac_try_echo"; } >&5
4446 (eval "$ac_try") 2>&5
4448 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4449 test $ac_status = 0; } &&
4450 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4452 *) ac_try_echo=$ac_try;;
4454 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4455 $as_echo "$ac_try_echo"; } >&5
4456 (eval "$ac_try") 2>&5
4458 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4459 test $ac_status = 0; };
4464 # cc exists but doesn't like -o.
4465 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4470 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4472 rm -f core conftest*
4475 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4477 $as_echo "yes" >&6; }
4479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4480 $as_echo "no" >&6; }
4482 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4487 ac_cpp='$CPP $CPPFLAGS'
4488 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4489 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4490 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4492 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4493 # On Suns, sometimes $CPP names a directory.
4494 if test -n "$CPP" && test -d "$CPP"; then
4497 if test -z "$CPP"; then
4498 if ${ac_cv_prog_CPP+:} false; then :
4499 $as_echo_n "(cached) " >&6
4501 # Double quotes because CPP needs to be expanded
4502 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4505 for ac_c_preproc_warn_flag in '' yes
4507 # Use a header file that comes with gcc, so configuring glibc
4508 # with a fresh cross-compiler works.
4509 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4510 # <limits.h> exists even on freestanding compilers.
4511 # On the NeXT, cc -E runs the code through the compiler's parser,
4512 # not just through cpp. "Syntax error" is here to catch this case.
4513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4514 /* end confdefs.h. */
4516 # include <limits.h>
4518 # include <assert.h>
4522 if ac_fn_c_try_cpp "$LINENO"; then :
4525 # Broken: fails on valid input.
4528 rm -f conftest.err conftest.i conftest.$ac_ext
4530 # OK, works on sane cases. Now check whether nonexistent headers
4531 # can be detected and how.
4532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4533 /* end confdefs.h. */
4534 #include <ac_nonexistent.h>
4536 if ac_fn_c_try_cpp "$LINENO"; then :
4537 # Broken: success on invalid input.
4540 # Passes both tests.
4544 rm -f conftest.err conftest.i conftest.$ac_ext
4547 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4548 rm -f conftest.i conftest.err conftest.$ac_ext
4549 if $ac_preproc_ok; then :
4561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4562 $as_echo "$CPP" >&6; }
4564 for ac_c_preproc_warn_flag in '' yes
4566 # Use a header file that comes with gcc, so configuring glibc
4567 # with a fresh cross-compiler works.
4568 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4569 # <limits.h> exists even on freestanding compilers.
4570 # On the NeXT, cc -E runs the code through the compiler's parser,
4571 # not just through cpp. "Syntax error" is here to catch this case.
4572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4573 /* end confdefs.h. */
4575 # include <limits.h>
4577 # include <assert.h>
4581 if ac_fn_c_try_cpp "$LINENO"; then :
4584 # Broken: fails on valid input.
4587 rm -f conftest.err conftest.i conftest.$ac_ext
4589 # OK, works on sane cases. Now check whether nonexistent headers
4590 # can be detected and how.
4591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4592 /* end confdefs.h. */
4593 #include <ac_nonexistent.h>
4595 if ac_fn_c_try_cpp "$LINENO"; then :
4596 # Broken: success on invalid input.
4599 # Passes both tests.
4603 rm -f conftest.err conftest.i conftest.$ac_ext
4606 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4607 rm -f conftest.i conftest.err conftest.$ac_ext
4608 if $ac_preproc_ok; then :
4611 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4612 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4613 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4614 See \`config.log' for more details" "$LINENO" 5; }
4618 ac_cpp='$CPP $CPPFLAGS'
4619 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4620 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4621 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4625 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4626 if ${ac_cv_path_GREP+:} false; then :
4627 $as_echo_n "(cached) " >&6
4629 if test -z "$GREP"; then
4630 ac_path_GREP_found=false
4631 # Loop through the user's path and test for each of PROGNAME-LIST
4632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4633 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4636 test -z "$as_dir" && as_dir=.
4637 for ac_prog in grep ggrep; do
4638 for ac_exec_ext in '' $ac_executable_extensions; do
4639 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4640 as_fn_executable_p "$ac_path_GREP" || continue
4641 # Check for GNU ac_path_GREP and select it if it is found.
4642 # Check for GNU $ac_path_GREP
4643 case `"$ac_path_GREP" --version 2>&1` in
4645 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4648 $as_echo_n 0123456789 >"conftest.in"
4651 cat "conftest.in" "conftest.in" >"conftest.tmp"
4652 mv "conftest.tmp" "conftest.in"
4653 cp "conftest.in" "conftest.nl"
4654 $as_echo 'GREP' >> "conftest.nl"
4655 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4656 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4657 as_fn_arith $ac_count + 1 && ac_count=$as_val
4658 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4659 # Best one so far, save it but keep looking for a better one
4660 ac_cv_path_GREP="$ac_path_GREP"
4661 ac_path_GREP_max=$ac_count
4663 # 10*(2^10) chars as input seems more than enough
4664 test $ac_count -gt 10 && break
4666 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4669 $ac_path_GREP_found && break 3
4674 if test -z "$ac_cv_path_GREP"; then
4675 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4678 ac_cv_path_GREP=$GREP
4682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4683 $as_echo "$ac_cv_path_GREP" >&6; }
4684 GREP="$ac_cv_path_GREP"
4687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4688 $as_echo_n "checking for egrep... " >&6; }
4689 if ${ac_cv_path_EGREP+:} false; then :
4690 $as_echo_n "(cached) " >&6
4692 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4693 then ac_cv_path_EGREP="$GREP -E"
4695 if test -z "$EGREP"; then
4696 ac_path_EGREP_found=false
4697 # Loop through the user's path and test for each of PROGNAME-LIST
4698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4699 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4702 test -z "$as_dir" && as_dir=.
4703 for ac_prog in egrep; do
4704 for ac_exec_ext in '' $ac_executable_extensions; do
4705 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4706 as_fn_executable_p "$ac_path_EGREP" || continue
4707 # Check for GNU ac_path_EGREP and select it if it is found.
4708 # Check for GNU $ac_path_EGREP
4709 case `"$ac_path_EGREP" --version 2>&1` in
4711 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4714 $as_echo_n 0123456789 >"conftest.in"
4717 cat "conftest.in" "conftest.in" >"conftest.tmp"
4718 mv "conftest.tmp" "conftest.in"
4719 cp "conftest.in" "conftest.nl"
4720 $as_echo 'EGREP' >> "conftest.nl"
4721 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4722 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4723 as_fn_arith $ac_count + 1 && ac_count=$as_val
4724 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4725 # Best one so far, save it but keep looking for a better one
4726 ac_cv_path_EGREP="$ac_path_EGREP"
4727 ac_path_EGREP_max=$ac_count
4729 # 10*(2^10) chars as input seems more than enough
4730 test $ac_count -gt 10 && break
4732 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4735 $ac_path_EGREP_found && break 3
4740 if test -z "$ac_cv_path_EGREP"; then
4741 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4744 ac_cv_path_EGREP=$EGREP
4749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4750 $as_echo "$ac_cv_path_EGREP" >&6; }
4751 EGREP="$ac_cv_path_EGREP"
4754 if test $ac_cv_c_compiler_gnu = yes; then
4755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
4756 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
4757 if ${ac_cv_prog_gcc_traditional+:} false; then :
4758 $as_echo_n "(cached) " >&6
4760 ac_pattern="Autoconf.*'x'"
4761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4762 /* end confdefs.h. */
4766 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4767 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4768 ac_cv_prog_gcc_traditional=yes
4770 ac_cv_prog_gcc_traditional=no
4775 if test $ac_cv_prog_gcc_traditional = no; then
4776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4777 /* end confdefs.h. */
4781 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4782 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4783 ac_cv_prog_gcc_traditional=yes
4789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
4790 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
4791 if test $ac_cv_prog_gcc_traditional = yes; then
4792 CC="$CC -traditional"
4796 BASECC=`basename $CC`
4798 if test x"$GCC" = "xyes"; then
4799 $as_echo "#define HAVE_GCC 1" >>confdefs.h
4803 # Extract the first word of "$CXX", so it can be a program name with args.
4804 set dummy $CXX; ac_word=$2
4805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4806 $as_echo_n "checking for $ac_word... " >&6; }
4807 if ${ac_cv_path_CXX+:} false; then :
4808 $as_echo_n "(cached) " >&6
4812 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
4815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4819 test -z "$as_dir" && as_dir=.
4820 for ac_exec_ext in '' $ac_executable_extensions; do
4821 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4822 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
4823 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4830 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="$CXX"
4835 if test -n "$CXX"; then
4836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4837 $as_echo "$CXX" >&6; }
4839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4840 $as_echo "no" >&6; }
4844 if test ! -e $CXX; then
4845 as_fn_error $? "Unable to find C++ compiler" "$LINENO" 5
4848 # Find a good install program. We prefer a C program (faster),
4849 # so one script is as good as another. But avoid the broken or
4850 # incompatible versions:
4851 # SysV /etc/install, /usr/sbin/install
4852 # SunOS /usr/etc/install
4853 # IRIX /sbin/install
4855 # AmigaOS /C/install, which installs bootblocks on floppy discs
4856 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4857 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4858 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4859 # OS/2's system install, which has a completely different semantic
4860 # ./install, which can be erroneously created by make from ./install.sh.
4861 # Reject install programs that cannot install multiple files.
4862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4863 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4864 if test -z "$INSTALL"; then
4865 if ${ac_cv_path_install+:} false; then :
4866 $as_echo_n "(cached) " >&6
4868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4872 test -z "$as_dir" && as_dir=.
4873 # Account for people who put trailing slashes in PATH elements.
4874 case $as_dir/ in #((
4875 ./ | .// | /[cC]/* | \
4876 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4877 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4880 # OSF1 and SCO ODT 3.0 have their own names for install.
4881 # Don't use installbsd from OSF since it installs stuff as root
4883 for ac_prog in ginstall scoinst install; do
4884 for ac_exec_ext in '' $ac_executable_extensions; do
4885 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4886 if test $ac_prog = install &&
4887 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4888 # AIX install. It has an incompatible calling convention.
4890 elif test $ac_prog = install &&
4891 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4892 # program-specific install script used by HP pwplus--don't use.
4895 rm -rf conftest.one conftest.two conftest.dir
4896 echo one > conftest.one
4897 echo two > conftest.two
4899 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4900 test -s conftest.one && test -s conftest.two &&
4901 test -s conftest.dir/conftest.one &&
4902 test -s conftest.dir/conftest.two
4904 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4917 rm -rf conftest.one conftest.two conftest.dir
4920 if test "${ac_cv_path_install+set}" = set; then
4921 INSTALL=$ac_cv_path_install
4923 # As a last resort, use the slow shell script. Don't cache a
4924 # value for INSTALL within a source directory, because that will
4925 # break other packages using the cache if that directory is
4926 # removed, or if the value is a relative name.
4927 INSTALL=$ac_install_sh
4930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4931 $as_echo "$INSTALL" >&6; }
4933 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4934 # It thinks the first close brace ends the variable substitution.
4935 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4937 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4939 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4941 # Extract the first word of "mv", so it can be a program name with args.
4942 set dummy mv; ac_word=$2
4943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4944 $as_echo_n "checking for $ac_word... " >&6; }
4945 if ${ac_cv_path_MV+:} false; then :
4946 $as_echo_n "(cached) " >&6
4950 ac_cv_path_MV="$MV" # Let the user override the test with a path.
4953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4957 test -z "$as_dir" && as_dir=.
4958 for ac_exec_ext in '' $ac_executable_extensions; do
4959 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4960 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4961 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4968 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4973 if test -n "$MV"; then
4974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
4975 $as_echo "$MV" >&6; }
4977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4978 $as_echo "no" >&6; }
4982 # Extract the first word of "rm", so it can be a program name with args.
4983 set dummy rm; ac_word=$2
4984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4985 $as_echo_n "checking for $ac_word... " >&6; }
4986 if ${ac_cv_path_REMOVE+:} false; then :
4987 $as_echo_n "(cached) " >&6
4991 ac_cv_path_REMOVE="$REMOVE" # Let the user override the test with a path.
4994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4998 test -z "$as_dir" && as_dir=.
4999 for ac_exec_ext in '' $ac_executable_extensions; do
5000 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5001 ac_cv_path_REMOVE="$as_dir/$ac_word$ac_exec_ext"
5002 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5009 test -z "$ac_cv_path_REMOVE" && ac_cv_path_REMOVE="rm"
5013 REMOVE=$ac_cv_path_REMOVE
5014 if test -n "$REMOVE"; then
5015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $REMOVE" >&5
5016 $as_echo "$REMOVE" >&6; }
5018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5019 $as_echo "no" >&6; }
5023 # Extract the first word of "cp", so it can be a program name with args.
5024 set dummy cp; ac_word=$2
5025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5026 $as_echo_n "checking for $ac_word... " >&6; }
5027 if ${ac_cv_path_CP+:} false; then :
5028 $as_echo_n "(cached) " >&6
5032 ac_cv_path_CP="$CP" # Let the user override the test with a path.
5035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5039 test -z "$as_dir" && as_dir=.
5040 for ac_exec_ext in '' $ac_executable_extensions; do
5041 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5042 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5043 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5050 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5055 if test -n "$CP"; then
5056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
5057 $as_echo "$CP" >&6; }
5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5060 $as_echo "no" >&6; }
5064 # Extract the first word of "sed", so it can be a program name with args.
5065 set dummy sed; ac_word=$2
5066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5067 $as_echo_n "checking for $ac_word... " >&6; }
5068 if ${ac_cv_path_SED+:} false; then :
5069 $as_echo_n "(cached) " >&6
5073 ac_cv_path_SED="$SED" # Let the user override the test with a path.
5076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5080 test -z "$as_dir" && as_dir=.
5081 for ac_exec_ext in '' $ac_executable_extensions; do
5082 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5083 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
5084 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5091 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
5096 if test -n "$SED"; then
5097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
5098 $as_echo "$SED" >&6; }
5100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5101 $as_echo "no" >&6; }
5105 # Extract the first word of "echo", so it can be a program name with args.
5106 set dummy echo; ac_word=$2
5107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5108 $as_echo_n "checking for $ac_word... " >&6; }
5109 if ${ac_cv_path_ECHO+:} false; then :
5110 $as_echo_n "(cached) " >&6
5114 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
5117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5121 test -z "$as_dir" && as_dir=.
5122 for ac_exec_ext in '' $ac_executable_extensions; do
5123 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5124 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
5125 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5132 test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
5136 ECHO=$ac_cv_path_ECHO
5137 if test -n "$ECHO"; then
5138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
5139 $as_echo "$ECHO" >&6; }
5141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5142 $as_echo "no" >&6; }
5146 # Extract the first word of "cmp", so it can be a program name with args.
5147 set dummy cmp; ac_word=$2
5148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5149 $as_echo_n "checking for $ac_word... " >&6; }
5150 if ${ac_cv_path_CMP+:} false; then :
5151 $as_echo_n "(cached) " >&6
5155 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5162 test -z "$as_dir" && as_dir=.
5163 for ac_exec_ext in '' $ac_executable_extensions; do
5164 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5165 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5166 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5173 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5178 if test -n "$CMP"; then
5179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5
5180 $as_echo "$CMP" >&6; }
5182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5183 $as_echo "no" >&6; }
5187 # Extract the first word of "tbl", so it can be a program name with args.
5188 set dummy tbl; ac_word=$2
5189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5190 $as_echo_n "checking for $ac_word... " >&6; }
5191 if ${ac_cv_path_TBL+:} false; then :
5192 $as_echo_n "(cached) " >&6
5196 ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
5199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5203 test -z "$as_dir" && as_dir=.
5204 for ac_exec_ext in '' $ac_executable_extensions; do
5205 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5206 ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
5207 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5214 test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
5219 if test -n "$TBL"; then
5220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TBL" >&5
5221 $as_echo "$TBL" >&6; }
5223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5224 $as_echo "no" >&6; }
5228 # Extract the first word of "ar", so it can be a program name with args.
5229 set dummy ar; ac_word=$2
5230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5231 $as_echo_n "checking for $ac_word... " >&6; }
5232 if ${ac_cv_path_AR+:} false; then :
5233 $as_echo_n "(cached) " >&6
5237 ac_cv_path_AR="$AR" # Let the user override the test with a path.
5240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5244 test -z "$as_dir" && as_dir=.
5245 for ac_exec_ext in '' $ac_executable_extensions; do
5246 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5247 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
5248 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5255 test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
5260 if test -n "$AR"; then
5261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5262 $as_echo "$AR" >&6; }
5264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5265 $as_echo "no" >&6; }
5269 # Extract the first word of "openssl", so it can be a program name with args.
5270 set dummy openssl; ac_word=$2
5271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5272 $as_echo_n "checking for $ac_word... " >&6; }
5273 if ${ac_cv_path_OPENSSL+:} false; then :
5274 $as_echo_n "(cached) " >&6
5278 ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
5281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5285 test -z "$as_dir" && as_dir=.
5286 for ac_exec_ext in '' $ac_executable_extensions; do
5287 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5288 ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
5289 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5296 test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
5300 OPENSSL=$ac_cv_path_OPENSSL
5301 if test -n "$OPENSSL"; then
5302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENSSL" >&5
5303 $as_echo "$OPENSSL" >&6; }
5305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5306 $as_echo "no" >&6; }
5310 # Extract the first word of "mtx", so it can be a program name with args.
5311 set dummy mtx; ac_word=$2
5312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5313 $as_echo_n "checking for $ac_word... " >&6; }
5314 if ${ac_cv_path_MTX+:} false; then :
5315 $as_echo_n "(cached) " >&6
5319 ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
5322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5326 test -z "$as_dir" && as_dir=.
5327 for ac_exec_ext in '' $ac_executable_extensions; do
5328 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5329 ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
5330 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5337 test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
5342 if test -n "$MTX"; then
5343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MTX" >&5
5344 $as_echo "$MTX" >&6; }
5346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5347 $as_echo "no" >&6; }
5351 # Extract the first word of "dd", so it can be a program name with args.
5352 set dummy dd; ac_word=$2
5353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5354 $as_echo_n "checking for $ac_word... " >&6; }
5355 if ${ac_cv_path_DD+:} false; then :
5356 $as_echo_n "(cached) " >&6
5360 ac_cv_path_DD="$DD" # Let the user override the test with a path.
5363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5367 test -z "$as_dir" && as_dir=.
5368 for ac_exec_ext in '' $ac_executable_extensions; do
5369 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5370 ac_cv_path_DD="$as_dir/$ac_word$ac_exec_ext"
5371 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5378 test -z "$ac_cv_path_DD" && ac_cv_path_DD="dd"
5383 if test -n "$DD"; then
5384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DD" >&5
5385 $as_echo "$DD" >&6; }
5387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5388 $as_echo "no" >&6; }
5392 # Extract the first word of "mkisofs", so it can be a program name with args.
5393 set dummy mkisofs; ac_word=$2
5394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5395 $as_echo_n "checking for $ac_word... " >&6; }
5396 if ${ac_cv_path_MKISOFS+:} false; then :
5397 $as_echo_n "(cached) " >&6
5401 ac_cv_path_MKISOFS="$MKISOFS" # Let the user override the test with a path.
5404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5408 test -z "$as_dir" && as_dir=.
5409 for ac_exec_ext in '' $ac_executable_extensions; do
5410 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5411 ac_cv_path_MKISOFS="$as_dir/$ac_word$ac_exec_ext"
5412 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5419 test -z "$ac_cv_path_MKISOFS" && ac_cv_path_MKISOFS="mkisofs"
5423 MKISOFS=$ac_cv_path_MKISOFS
5424 if test -n "$MKISOFS"; then
5425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKISOFS" >&5
5426 $as_echo "$MKISOFS" >&6; }
5428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5429 $as_echo "no" >&6; }
5433 # Extract the first word of "python", so it can be a program name with args.
5434 set dummy python; ac_word=$2
5435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5436 $as_echo_n "checking for $ac_word... " >&6; }
5437 if ${ac_cv_path_PYTHON+:} false; then :
5438 $as_echo_n "(cached) " >&6
5442 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
5445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5449 test -z "$as_dir" && as_dir=.
5450 for ac_exec_ext in '' $ac_executable_extensions; do
5451 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5452 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
5453 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5460 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="python"
5464 PYTHON=$ac_cv_path_PYTHON
5465 if test -n "$PYTHON"; then
5466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
5467 $as_echo "$PYTHON" >&6; }
5469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5470 $as_echo "no" >&6; }
5474 # Extract the first word of "growisofs", so it can be a program name with args.
5475 set dummy growisofs; ac_word=$2
5476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5477 $as_echo_n "checking for $ac_word... " >&6; }
5478 if ${ac_cv_path_GROWISOFS+:} false; then :
5479 $as_echo_n "(cached) " >&6
5483 ac_cv_path_GROWISOFS="$GROWISOFS" # Let the user override the test with a path.
5486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5490 test -z "$as_dir" && as_dir=.
5491 for ac_exec_ext in '' $ac_executable_extensions; do
5492 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5493 ac_cv_path_GROWISOFS="$as_dir/$ac_word$ac_exec_ext"
5494 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5501 test -z "$ac_cv_path_GROWISOFS" && ac_cv_path_GROWISOFS="growisofs"
5505 GROWISOFS=$ac_cv_path_GROWISOFS
5506 if test -n "$GROWISOFS"; then
5507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GROWISOFS" >&5
5508 $as_echo "$GROWISOFS" >&6; }
5510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5511 $as_echo "no" >&6; }
5515 # Extract the first word of "dvd+rw-mediainfo", so it can be a program name with args.
5516 set dummy dvd+rw-mediainfo; ac_word=$2
5517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5518 $as_echo_n "checking for $ac_word... " >&6; }
5519 if ${ac_cv_path_DVDRWMEDIAINFO+:} false; then :
5520 $as_echo_n "(cached) " >&6
5522 case $DVDRWMEDIAINFO in
5524 ac_cv_path_DVDRWMEDIAINFO="$DVDRWMEDIAINFO" # Let the user override the test with a path.
5527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5531 test -z "$as_dir" && as_dir=.
5532 for ac_exec_ext in '' $ac_executable_extensions; do
5533 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5534 ac_cv_path_DVDRWMEDIAINFO="$as_dir/$ac_word$ac_exec_ext"
5535 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5542 test -z "$ac_cv_path_DVDRWMEDIAINFO" && ac_cv_path_DVDRWMEDIAINFO="dvd+rw-mediainfo"
5546 DVDRWMEDIAINFO=$ac_cv_path_DVDRWMEDIAINFO
5547 if test -n "$DVDRWMEDIAINFO"; then
5548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVDRWMEDIAINFO" >&5
5549 $as_echo "$DVDRWMEDIAINFO" >&6; }
5551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5552 $as_echo "no" >&6; }
5556 # Extract the first word of "dvd+rw-format", so it can be a program name with args.
5557 set dummy dvd+rw-format; ac_word=$2
5558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5559 $as_echo_n "checking for $ac_word... " >&6; }
5560 if ${ac_cv_path_DVDRWFORMAT+:} false; then :
5561 $as_echo_n "(cached) " >&6
5563 case $DVDRWFORMAT in
5565 ac_cv_path_DVDRWFORMAT="$DVDRWFORMAT" # Let the user override the test with a path.
5568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5572 test -z "$as_dir" && as_dir=.
5573 for ac_exec_ext in '' $ac_executable_extensions; do
5574 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5575 ac_cv_path_DVDRWFORMAT="$as_dir/$ac_word$ac_exec_ext"
5576 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5583 test -z "$ac_cv_path_DVDRWFORMAT" && ac_cv_path_DVDRWFORMAT="dvd+rw-format"
5587 DVDRWFORMAT=$ac_cv_path_DVDRWFORMAT
5588 if test -n "$DVDRWFORMAT"; then
5589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVDRWFORMAT" >&5
5590 $as_echo "$DVDRWFORMAT" >&6; }
5592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5593 $as_echo "no" >&6; }
5597 # Extract the first word of "pkg-config", so it can be a program name with args.
5598 set dummy pkg-config; ac_word=$2
5599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5600 $as_echo_n "checking for $ac_word... " >&6; }
5601 if ${ac_cv_path_PKGCONFIG+:} false; then :
5602 $as_echo_n "(cached) " >&6
5606 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
5609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5613 test -z "$as_dir" && as_dir=.
5614 for ac_exec_ext in '' $ac_executable_extensions; do
5615 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5616 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
5617 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5624 test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
5628 PKGCONFIG=$ac_cv_path_PKGCONFIG
5629 if test -n "$PKGCONFIG"; then
5630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
5631 $as_echo "$PKGCONFIG" >&6; }
5633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5634 $as_echo "no" >&6; }
5638 # Extract the first word of "qmake", so it can be a program name with args.
5639 set dummy qmake; ac_word=$2
5640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5641 $as_echo_n "checking for $ac_word... " >&6; }
5642 if ${ac_cv_path_QMAKE+:} false; then :
5643 $as_echo_n "(cached) " >&6
5647 ac_cv_path_QMAKE="$QMAKE" # Let the user override the test with a path.
5650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5654 test -z "$as_dir" && as_dir=.
5655 for ac_exec_ext in '' $ac_executable_extensions; do
5656 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5657 ac_cv_path_QMAKE="$as_dir/$ac_word$ac_exec_ext"
5658 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5665 test -z "$ac_cv_path_QMAKE" && ac_cv_path_QMAKE="none"
5669 QMAKE=$ac_cv_path_QMAKE
5670 if test -n "$QMAKE"; then
5671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QMAKE" >&5
5672 $as_echo "$QMAKE" >&6; }
5674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5675 $as_echo "no" >&6; }
5679 # Extract the first word of "gmake", so it can be a program name with args.
5680 set dummy gmake; ac_word=$2
5681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5682 $as_echo_n "checking for $ac_word... " >&6; }
5683 if ${ac_cv_path_GMAKE+:} false; then :
5684 $as_echo_n "(cached) " >&6
5688 ac_cv_path_GMAKE="$GMAKE" # Let the user override the test with a path.
5691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5695 test -z "$as_dir" && as_dir=.
5696 for ac_exec_ext in '' $ac_executable_extensions; do
5697 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5698 ac_cv_path_GMAKE="$as_dir/$ac_word$ac_exec_ext"
5699 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5706 test -z "$ac_cv_path_GMAKE" && ac_cv_path_GMAKE="none"
5710 GMAKE=$ac_cv_path_GMAKE
5711 if test -n "$GMAKE"; then
5712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMAKE" >&5
5713 $as_echo "$GMAKE" >&6; }
5715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5716 $as_echo "no" >&6; }
5720 # Extract the first word of "pidof", so it can be a program name with args.
5721 set dummy pidof; ac_word=$2
5722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5723 $as_echo_n "checking for $ac_word... " >&6; }
5724 if ${ac_cv_path_PIDOF+:} false; then :
5725 $as_echo_n "(cached) " >&6
5729 ac_cv_path_PIDOF="$PIDOF" # Let the user override the test with a path.
5732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5736 test -z "$as_dir" && as_dir=.
5737 for ac_exec_ext in '' $ac_executable_extensions; do
5738 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5739 ac_cv_path_PIDOF="$as_dir/$ac_word$ac_exec_ext"
5740 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5747 test -z "$ac_cv_path_PIDOF" && ac_cv_path_PIDOF="pidof"
5751 PIDOF=$ac_cv_path_PIDOF
5752 if test -n "$PIDOF"; then
5753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PIDOF" >&5
5754 $as_echo "$PIDOF" >&6; }
5756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5757 $as_echo "no" >&6; }
5761 for ac_prog in gawk mawk nawk awk
5763 # Extract the first word of "$ac_prog", so it can be a program name with args.
5764 set dummy $ac_prog; ac_word=$2
5765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5766 $as_echo_n "checking for $ac_word... " >&6; }
5767 if ${ac_cv_prog_AWK+:} false; then :
5768 $as_echo_n "(cached) " >&6
5770 if test -n "$AWK"; then
5771 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5777 test -z "$as_dir" && as_dir=.
5778 for ac_exec_ext in '' $ac_executable_extensions; do
5779 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5780 ac_cv_prog_AWK="$ac_prog"
5781 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5791 if test -n "$AWK"; then
5792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5793 $as_echo "$AWK" >&6; }
5795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5796 $as_echo "no" >&6; }
5800 test -n "$AWK" && break
5803 # Some AWK programs fail, so test it and warn the user
5804 if echo xfoo | $AWK 'BEGIN { prog=ARGV1; ARGC=1 }
5805 { if ((prog == $2) || (("(" prog ")") == $2) ||
5806 (("" prog "") == $2) ||
5807 ((prog ":") == $2)) { print $1 ; exit 0 } }' xfoo>/dev/null; then :;
5809 as_fn_error $? "!!!!!!!!! WARNING !!!!!!!!!!!!!!
5810 The regex engine of $AWK is too broken to be used you
5811 might want to install GNU AWK.
5812 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" "$LINENO" 5
5815 # Extract the first word of "$THE_AWK", so it can be a program name with args.
5816 set dummy $THE_AWK; ac_word=$2
5817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5818 $as_echo_n "checking for $ac_word... " >&6; }
5819 if ${ac_cv_path_AWK+:} false; then :
5820 $as_echo_n "(cached) " >&6
5824 ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
5827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5831 test -z "$as_dir" && as_dir=.
5832 for ac_exec_ext in '' $ac_executable_extensions; do
5833 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5834 ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
5835 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5842 test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="$THE_AWK"
5847 if test -n "$AWK"; then
5848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5849 $as_echo "$AWK" >&6; }
5851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5852 $as_echo "no" >&6; }
5858 test -n "$ARFLAG" || ARFLAGS="cr"
5870 # Check whether --enable-libtool was given.
5871 if test "${enable_libtool+set}" = set; then :
5872 enableval=$enable_libtool;
5873 if test x$enableval = xno; then
5882 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5883 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5888 macro_version='2.4.2'
5889 macro_revision='1.3337'
5903 ltmain="$ac_aux_dir/ltmain.sh"
5905 # Make sure we can run config.sub.
5906 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5907 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5910 $as_echo_n "checking build system type... " >&6; }
5911 if ${ac_cv_build+:} false; then :
5912 $as_echo_n "(cached) " >&6
5914 ac_build_alias=$build_alias
5915 test "x$ac_build_alias" = x &&
5916 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5917 test "x$ac_build_alias" = x &&
5918 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5919 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5920 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5924 $as_echo "$ac_cv_build" >&6; }
5925 case $ac_cv_build in
5927 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5930 ac_save_IFS=$IFS; IFS='-'
5936 # Remember, the first character of IFS is used to create $*,
5937 # except with old shells:
5940 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5944 $as_echo_n "checking host system type... " >&6; }
5945 if ${ac_cv_host+:} false; then :
5946 $as_echo_n "(cached) " >&6
5948 if test "x$host_alias" = x; then
5949 ac_cv_host=$ac_cv_build
5951 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5952 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5957 $as_echo "$ac_cv_host" >&6; }
5960 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5963 ac_save_IFS=$IFS; IFS='-'
5969 # Remember, the first character of IFS is used to create $*,
5970 # except with old shells:
5973 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5976 # Backslashify metacharacters that are still active within
5977 # double-quoted strings.
5978 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5980 # Same as above, but do not quote variable references.
5981 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5983 # Sed substitution to delay expansion of an escaped shell variable in a
5984 # double_quote_subst'ed string.
5985 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5987 # Sed substitution to delay expansion of an escaped single quote.
5988 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5990 # Sed substitution to avoid accidental globbing in evaled expressions
5991 no_glob_subst='s/\*/\\\*/g'
5993 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5994 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5995 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5998 $as_echo_n "checking how to print strings... " >&6; }
5999 # Test print first, because it will be a builtin if present.
6000 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
6001 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6003 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6006 # Use this function as a fallback that always works.
6007 func_fallback_echo ()
6009 eval 'cat <<_LTECHO_EOF
6013 ECHO='func_fallback_echo'
6016 # func_echo_all arg...
6017 # Invoke $ECHO with all args, space-separated.
6024 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6025 $as_echo "printf" >&6; } ;;
6026 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6027 $as_echo "print -r" >&6; } ;;
6028 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6029 $as_echo "cat" >&6; } ;;
6045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6046 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6047 if ${ac_cv_path_SED+:} false; then :
6048 $as_echo_n "(cached) " >&6
6050 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6051 for ac_i in 1 2 3 4 5 6 7; do
6052 ac_script="$ac_script$as_nl$ac_script"
6054 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6055 { ac_script=; unset ac_script;}
6056 if test -z "$SED"; then
6057 ac_path_SED_found=false
6058 # Loop through the user's path and test for each of PROGNAME-LIST
6059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6063 test -z "$as_dir" && as_dir=.
6064 for ac_prog in sed gsed; do
6065 for ac_exec_ext in '' $ac_executable_extensions; do
6066 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6067 as_fn_executable_p "$ac_path_SED" || continue
6068 # Check for GNU ac_path_SED and select it if it is found.
6069 # Check for GNU $ac_path_SED
6070 case `"$ac_path_SED" --version 2>&1` in
6072 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6075 $as_echo_n 0123456789 >"conftest.in"
6078 cat "conftest.in" "conftest.in" >"conftest.tmp"
6079 mv "conftest.tmp" "conftest.in"
6080 cp "conftest.in" "conftest.nl"
6081 $as_echo '' >> "conftest.nl"
6082 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6083 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6084 as_fn_arith $ac_count + 1 && ac_count=$as_val
6085 if test $ac_count -gt ${ac_path_SED_max-0}; then
6086 # Best one so far, save it but keep looking for a better one
6087 ac_cv_path_SED="$ac_path_SED"
6088 ac_path_SED_max=$ac_count
6090 # 10*(2^10) chars as input seems more than enough
6091 test $ac_count -gt 10 && break
6093 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6096 $ac_path_SED_found && break 3
6101 if test -z "$ac_cv_path_SED"; then
6102 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6110 $as_echo "$ac_cv_path_SED" >&6; }
6111 SED="$ac_cv_path_SED"
6114 test -z "$SED" && SED=sed
6115 Xsed="$SED -e 1s/^X//"
6127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6128 $as_echo_n "checking for fgrep... " >&6; }
6129 if ${ac_cv_path_FGREP+:} false; then :
6130 $as_echo_n "(cached) " >&6
6132 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6133 then ac_cv_path_FGREP="$GREP -F"
6135 if test -z "$FGREP"; then
6136 ac_path_FGREP_found=false
6137 # Loop through the user's path and test for each of PROGNAME-LIST
6138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6139 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6142 test -z "$as_dir" && as_dir=.
6143 for ac_prog in fgrep; do
6144 for ac_exec_ext in '' $ac_executable_extensions; do
6145 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6146 as_fn_executable_p "$ac_path_FGREP" || continue
6147 # Check for GNU ac_path_FGREP and select it if it is found.
6148 # Check for GNU $ac_path_FGREP
6149 case `"$ac_path_FGREP" --version 2>&1` in
6151 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6154 $as_echo_n 0123456789 >"conftest.in"
6157 cat "conftest.in" "conftest.in" >"conftest.tmp"
6158 mv "conftest.tmp" "conftest.in"
6159 cp "conftest.in" "conftest.nl"
6160 $as_echo 'FGREP' >> "conftest.nl"
6161 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6162 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6163 as_fn_arith $ac_count + 1 && ac_count=$as_val
6164 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6165 # Best one so far, save it but keep looking for a better one
6166 ac_cv_path_FGREP="$ac_path_FGREP"
6167 ac_path_FGREP_max=$ac_count
6169 # 10*(2^10) chars as input seems more than enough
6170 test $ac_count -gt 10 && break
6172 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6175 $ac_path_FGREP_found && break 3
6180 if test -z "$ac_cv_path_FGREP"; then
6181 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6184 ac_cv_path_FGREP=$FGREP
6189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6190 $as_echo "$ac_cv_path_FGREP" >&6; }
6191 FGREP="$ac_cv_path_FGREP"
6194 test -z "$GREP" && GREP=grep
6214 # Check whether --with-gnu-ld was given.
6215 if test "${with_gnu_ld+set}" = set; then :
6216 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6222 if test "$GCC" = yes; then
6223 # Check if gcc -print-prog-name=ld gives a path.
6224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6225 $as_echo_n "checking for ld used by $CC... " >&6; }
6228 # gcc leaves a trailing carriage return which upsets mingw
6229 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6231 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6234 # Accept absolute paths.
6236 re_direlt='/[^/][^/]*/\.\./'
6237 # Canonicalize the pathname of ld
6238 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6239 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6240 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6242 test -z "$LD" && LD="$ac_prog"
6245 # If it fails, then pretend we aren't using GCC.
6249 # If it is relative, then search for the first ld in PATH.
6253 elif test "$with_gnu_ld" = yes; then
6254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6255 $as_echo_n "checking for GNU ld... " >&6; }
6257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6258 $as_echo_n "checking for non-GNU ld... " >&6; }
6260 if ${lt_cv_path_LD+:} false; then :
6261 $as_echo_n "(cached) " >&6
6263 if test -z "$LD"; then
6264 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6265 for ac_dir in $PATH; do
6267 test -z "$ac_dir" && ac_dir=.
6268 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6269 lt_cv_path_LD="$ac_dir/$ac_prog"
6270 # Check to see if the program is GNU ld. I'd rather use --version,
6271 # but apparently some variants of GNU ld only accept -v.
6272 # Break only if it was the GNU/non-GNU ld that we prefer.
6273 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6274 *GNU* | *'with BFD'*)
6275 test "$with_gnu_ld" != no && break
6278 test "$with_gnu_ld" != yes && break
6285 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6290 if test -n "$LD"; then
6291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6292 $as_echo "$LD" >&6; }
6294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6295 $as_echo "no" >&6; }
6297 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6299 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6300 if ${lt_cv_prog_gnu_ld+:} false; then :
6301 $as_echo_n "(cached) " >&6
6303 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6304 case `$LD -v 2>&1 </dev/null` in
6305 *GNU* | *'with BFD'*)
6306 lt_cv_prog_gnu_ld=yes
6309 lt_cv_prog_gnu_ld=no
6313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6314 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6315 with_gnu_ld=$lt_cv_prog_gnu_ld
6325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6326 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6327 if ${lt_cv_path_NM+:} false; then :
6328 $as_echo_n "(cached) " >&6
6330 if test -n "$NM"; then
6331 # Let the user override the test.
6334 lt_nm_to_check="${ac_tool_prefix}nm"
6335 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6336 lt_nm_to_check="$lt_nm_to_check nm"
6338 for lt_tmp_nm in $lt_nm_to_check; do
6339 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6340 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6342 test -z "$ac_dir" && ac_dir=.
6343 tmp_nm="$ac_dir/$lt_tmp_nm"
6344 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6345 # Check to see if the nm accepts a BSD-compat flag.
6346 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6347 # nm: unknown option "B" ignored
6348 # Tru64's nm complains that /dev/null is an invalid object file
6349 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6350 */dev/null* | *'Invalid file or object type'*)
6351 lt_cv_path_NM="$tmp_nm -B"
6355 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6357 lt_cv_path_NM="$tmp_nm -p"
6361 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6362 continue # so that we can try to find one that supports BSD flags
6371 : ${lt_cv_path_NM=no}
6374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6375 $as_echo "$lt_cv_path_NM" >&6; }
6376 if test "$lt_cv_path_NM" != "no"; then
6379 # Didn't find any BSD compatible name lister, look for dumpbin.
6380 if test -n "$DUMPBIN"; then :
6381 # Let the user override the test.
6383 if test -n "$ac_tool_prefix"; then
6384 for ac_prog in dumpbin "link -dump"
6386 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6387 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6389 $as_echo_n "checking for $ac_word... " >&6; }
6390 if ${ac_cv_prog_DUMPBIN+:} false; then :
6391 $as_echo_n "(cached) " >&6
6393 if test -n "$DUMPBIN"; then
6394 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6400 test -z "$as_dir" && as_dir=.
6401 for ac_exec_ext in '' $ac_executable_extensions; do
6402 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6403 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6404 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6413 DUMPBIN=$ac_cv_prog_DUMPBIN
6414 if test -n "$DUMPBIN"; then
6415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6416 $as_echo "$DUMPBIN" >&6; }
6418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6419 $as_echo "no" >&6; }
6423 test -n "$DUMPBIN" && break
6426 if test -z "$DUMPBIN"; then
6427 ac_ct_DUMPBIN=$DUMPBIN
6428 for ac_prog in dumpbin "link -dump"
6430 # Extract the first word of "$ac_prog", so it can be a program name with args.
6431 set dummy $ac_prog; ac_word=$2
6432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6433 $as_echo_n "checking for $ac_word... " >&6; }
6434 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6435 $as_echo_n "(cached) " >&6
6437 if test -n "$ac_ct_DUMPBIN"; then
6438 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6444 test -z "$as_dir" && as_dir=.
6445 for ac_exec_ext in '' $ac_executable_extensions; do
6446 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6447 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6448 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6457 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6458 if test -n "$ac_ct_DUMPBIN"; then
6459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6460 $as_echo "$ac_ct_DUMPBIN" >&6; }
6462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6463 $as_echo "no" >&6; }
6467 test -n "$ac_ct_DUMPBIN" && break
6470 if test "x$ac_ct_DUMPBIN" = x; then
6473 case $cross_compiling:$ac_tool_warned in
6475 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6476 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6477 ac_tool_warned=yes ;;
6479 DUMPBIN=$ac_ct_DUMPBIN
6483 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6485 DUMPBIN="$DUMPBIN -symbols"
6493 if test "$DUMPBIN" != ":"; then
6497 test -z "$NM" && NM=nm
6504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6505 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6506 if ${lt_cv_nm_interface+:} false; then :
6507 $as_echo_n "(cached) " >&6
6509 lt_cv_nm_interface="BSD nm"
6510 echo "int some_variable = 0;" > conftest.$ac_ext
6511 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6512 (eval "$ac_compile" 2>conftest.err)
6513 cat conftest.err >&5
6514 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6515 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6516 cat conftest.err >&5
6517 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6518 cat conftest.out >&5
6519 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6520 lt_cv_nm_interface="MS dumpbin"
6524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6525 $as_echo "$lt_cv_nm_interface" >&6; }
6527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6528 $as_echo_n "checking whether ln -s works... " >&6; }
6530 if test "$LN_S" = "ln -s"; then
6531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6532 $as_echo "yes" >&6; }
6534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6535 $as_echo "no, using $LN_S" >&6; }
6538 # find the maximum length of command line arguments
6539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6540 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6541 if ${lt_cv_sys_max_cmd_len+:} false; then :
6542 $as_echo_n "(cached) " >&6
6549 # On DJGPP, this test can blow up pretty badly due to problems in libc
6550 # (any single argument exceeding 2000 bytes causes a buffer overrun
6551 # during glob expansion). Even if it were fixed, the result of this
6552 # check would be larger than it should be.
6553 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6557 # Under GNU Hurd, this test is not required because there is
6558 # no limit to the length of command line arguments.
6559 # Libtool will interpret -1 as no limit whatsoever
6560 lt_cv_sys_max_cmd_len=-1;
6563 cygwin* | mingw* | cegcc*)
6564 # On Win9x/ME, this test blows up -- it succeeds, but takes
6565 # about 5 minutes as the teststring grows exponentially.
6566 # Worse, since 9x/ME are not pre-emptively multitasking,
6567 # you end up with a "frozen" computer, even though with patience
6568 # the test eventually succeeds (with a max line length of 256k).
6569 # Instead, let's just punt: use the minimum linelength reported by
6570 # all of the supported platforms: 8192 (on NT/2K/XP).
6571 lt_cv_sys_max_cmd_len=8192;
6575 # On MiNT this can take a long time and run out of memory.
6576 lt_cv_sys_max_cmd_len=8192;
6580 # On AmigaOS with pdksh, this test takes hours, literally.
6581 # So we just punt and use a minimum line length of 8192.
6582 lt_cv_sys_max_cmd_len=8192;
6585 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6586 # This has been around since 386BSD, at least. Likely further.
6587 if test -x /sbin/sysctl; then
6588 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6589 elif test -x /usr/sbin/sysctl; then
6590 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6592 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6594 # And add a safety zone
6595 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6596 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6600 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6601 lt_cv_sys_max_cmd_len=196608
6605 # The test takes a long time on OS/2.
6606 lt_cv_sys_max_cmd_len=8192
6610 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6611 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6612 # nice to cause kernel panics so lets avoid the loop below.
6613 # First set a reasonable default.
6614 lt_cv_sys_max_cmd_len=16384
6616 if test -x /sbin/sysconfig; then
6617 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6618 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6623 lt_cv_sys_max_cmd_len=102400
6625 sysv5* | sco5v6* | sysv4.2uw2*)
6626 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6627 if test -n "$kargmax"; then
6628 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6630 lt_cv_sys_max_cmd_len=32768
6634 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6635 if test -n "$lt_cv_sys_max_cmd_len" && \
6636 test undefined != "$lt_cv_sys_max_cmd_len"; then
6637 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6638 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6640 # Make teststring a little bigger before we do anything with it.
6641 # a 1K string should be a reasonable start.
6642 for i in 1 2 3 4 5 6 7 8 ; do
6643 teststring=$teststring$teststring
6645 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6646 # If test is not a shell built-in, we'll probably end up computing a
6647 # maximum length that is only half of the actual maximum length, but
6649 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
6650 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6651 test $i != 17 # 1/2 MB should be enough
6654 teststring=$teststring$teststring
6656 # Only check the string length outside the loop.
6657 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6659 # Add a significant safety factor because C++ compilers can tack on
6660 # massive amounts of additional arguments before passing them to the
6661 # linker. It appears as though 1/2 is a usable value.
6662 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6669 if test -n $lt_cv_sys_max_cmd_len ; then
6670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6671 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6674 $as_echo "none" >&6; }
6676 max_cmd_len=$lt_cv_sys_max_cmd_len
6687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6688 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6689 # Try some XSI features
6692 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
6694 && eval 'test $(( 1 + 1 )) -eq 2 \
6695 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6698 $as_echo "$xsi_shell" >&6; }
6701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6702 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6704 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6706 && lt_shell_append=yes
6707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6708 $as_echo "$lt_shell_append" >&6; }
6711 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6721 # test EBCDIC or ASCII
6722 case `echo X|tr X '\101'` in
6723 A) # ASCII based system
6724 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6725 lt_SP2NL='tr \040 \012'
6726 lt_NL2SP='tr \015\012 \040\040'
6728 *) # EBCDIC based system
6729 lt_SP2NL='tr \100 \n'
6730 lt_NL2SP='tr \r\n \100\100'
6742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6743 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6744 if ${lt_cv_to_host_file_cmd+:} false; then :
6745 $as_echo_n "(cached) " >&6
6750 *-*-mingw* ) # actually msys
6751 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6754 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6756 * ) # otherwise, assume *nix
6757 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6763 *-*-mingw* ) # actually msys
6764 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6767 lt_cv_to_host_file_cmd=func_convert_file_noop
6769 * ) # otherwise, assume *nix
6770 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6774 * ) # unhandled hosts (and "normal" native builds)
6775 lt_cv_to_host_file_cmd=func_convert_file_noop
6781 to_host_file_cmd=$lt_cv_to_host_file_cmd
6782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6783 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
6789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6790 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6791 if ${lt_cv_to_tool_file_cmd+:} false; then :
6792 $as_echo_n "(cached) " >&6
6794 #assume ordinary cross tools, or native build.
6795 lt_cv_to_tool_file_cmd=func_convert_file_noop
6799 *-*-mingw* ) # actually msys
6800 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6808 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6810 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6817 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6818 if ${lt_cv_ld_reload_flag+:} false; then :
6819 $as_echo_n "(cached) " >&6
6821 lt_cv_ld_reload_flag='-r'
6823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6824 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6825 reload_flag=$lt_cv_ld_reload_flag
6826 case $reload_flag in
6828 *) reload_flag=" $reload_flag" ;;
6830 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6832 cygwin* | mingw* | pw32* | cegcc*)
6833 if test "$GCC" != yes; then
6838 if test "$GCC" = yes; then
6839 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6841 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6854 if test -n "$ac_tool_prefix"; then
6855 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6856 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6858 $as_echo_n "checking for $ac_word... " >&6; }
6859 if ${ac_cv_prog_OBJDUMP+:} false; then :
6860 $as_echo_n "(cached) " >&6
6862 if test -n "$OBJDUMP"; then
6863 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6869 test -z "$as_dir" && as_dir=.
6870 for ac_exec_ext in '' $ac_executable_extensions; do
6871 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6872 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6873 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6882 OBJDUMP=$ac_cv_prog_OBJDUMP
6883 if test -n "$OBJDUMP"; then
6884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6885 $as_echo "$OBJDUMP" >&6; }
6887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6888 $as_echo "no" >&6; }
6893 if test -z "$ac_cv_prog_OBJDUMP"; then
6894 ac_ct_OBJDUMP=$OBJDUMP
6895 # Extract the first word of "objdump", so it can be a program name with args.
6896 set dummy objdump; ac_word=$2
6897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6898 $as_echo_n "checking for $ac_word... " >&6; }
6899 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6900 $as_echo_n "(cached) " >&6
6902 if test -n "$ac_ct_OBJDUMP"; then
6903 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6909 test -z "$as_dir" && as_dir=.
6910 for ac_exec_ext in '' $ac_executable_extensions; do
6911 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6912 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6913 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6922 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6923 if test -n "$ac_ct_OBJDUMP"; then
6924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6925 $as_echo "$ac_ct_OBJDUMP" >&6; }
6927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6928 $as_echo "no" >&6; }
6931 if test "x$ac_ct_OBJDUMP" = x; then
6934 case $cross_compiling:$ac_tool_warned in
6936 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6937 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6938 ac_tool_warned=yes ;;
6940 OBJDUMP=$ac_ct_OBJDUMP
6943 OBJDUMP="$ac_cv_prog_OBJDUMP"
6946 test -z "$OBJDUMP" && OBJDUMP=objdump
6956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6957 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6958 if ${lt_cv_deplibs_check_method+:} false; then :
6959 $as_echo_n "(cached) " >&6
6961 lt_cv_file_magic_cmd='$MAGIC_CMD'
6962 lt_cv_file_magic_test_file=
6963 lt_cv_deplibs_check_method='unknown'
6964 # Need to set the preceding variable on all platforms that support
6965 # interlibrary dependencies.
6966 # 'none' -- dependencies not supported.
6967 # `unknown' -- same as none, but documents that we really don't know.
6968 # 'pass_all' -- all dependencies passed with no checks.
6969 # 'test_compile' -- check by making test program.
6970 # 'file_magic [[regex]]' -- check by looking for files in library path
6971 # which responds to the $file_magic_cmd with a given extended regex.
6972 # If you have `file' or equivalent on your system and you're not sure
6973 # whether `pass_all' will *always* work, you probably want this one.
6977 lt_cv_deplibs_check_method=pass_all
6981 lt_cv_deplibs_check_method=pass_all
6985 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6986 lt_cv_file_magic_cmd='/usr/bin/file -L'
6987 lt_cv_file_magic_test_file=/shlib/libc.so
6991 # func_win32_libid is a shell function defined in ltmain.sh
6992 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6993 lt_cv_file_magic_cmd='func_win32_libid'
6997 # Base MSYS/MinGW do not provide the 'file' command needed by
6998 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6999 # unless we find 'file', for example because we are cross-compiling.
7000 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
7001 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
7002 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7003 lt_cv_file_magic_cmd='func_win32_libid'
7005 # Keep this pattern in sync with the one in func_win32_libid.
7006 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
7007 lt_cv_file_magic_cmd='$OBJDUMP -f'
7012 # use the weaker test based on 'objdump'. See mingw*.
7013 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7014 lt_cv_file_magic_cmd='$OBJDUMP -f'
7017 darwin* | rhapsody*)
7018 lt_cv_deplibs_check_method=pass_all
7021 freebsd* | dragonfly*)
7022 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7025 # Not sure whether the presence of OpenBSD here was a mistake.
7026 # Let's accept both of them until this is cleared up.
7027 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7028 lt_cv_file_magic_cmd=/usr/bin/file
7029 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7033 lt_cv_deplibs_check_method=pass_all
7038 lt_cv_deplibs_check_method=pass_all
7041 hpux10.20* | hpux11*)
7042 lt_cv_file_magic_cmd=/usr/bin/file
7045 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7046 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7049 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]'
7050 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7053 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7054 lt_cv_file_magic_test_file=/usr/lib/libc.sl
7060 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7061 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7064 irix5* | irix6* | nonstopux*)
7066 *-32|*"-32 ") libmagic=32-bit;;
7067 *-n32|*"-n32 ") libmagic=N32;;
7068 *-64|*"-64 ") libmagic=64-bit;;
7069 *) libmagic=never-match;;
7071 lt_cv_deplibs_check_method=pass_all
7074 # This must be glibc/ELF.
7075 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
7076 lt_cv_deplibs_check_method=pass_all
7079 netbsd* | netbsdelf*-gnu)
7080 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7081 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7083 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7088 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7089 lt_cv_file_magic_cmd=/usr/bin/file
7090 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7094 lt_cv_deplibs_check_method=pass_all
7098 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7099 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7101 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7105 osf3* | osf4* | osf5*)
7106 lt_cv_deplibs_check_method=pass_all
7110 lt_cv_deplibs_check_method=pass_all
7114 lt_cv_deplibs_check_method=pass_all
7117 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7118 lt_cv_deplibs_check_method=pass_all
7122 case $host_vendor in
7124 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]'
7125 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7128 lt_cv_deplibs_check_method=pass_all
7131 lt_cv_file_magic_cmd='/bin/file'
7132 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7135 lt_cv_file_magic_cmd='/bin/file'
7136 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7137 lt_cv_file_magic_test_file=/lib/libc.so
7140 lt_cv_deplibs_check_method=pass_all
7143 lt_cv_deplibs_check_method=pass_all
7149 lt_cv_deplibs_check_method=pass_all
7154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7155 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7159 if test "$build" = "$host"; then
7162 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
7165 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
7171 file_magic_cmd=$lt_cv_file_magic_cmd
7172 deplibs_check_method=$lt_cv_deplibs_check_method
7173 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7196 if test -n "$ac_tool_prefix"; then
7197 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7198 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7200 $as_echo_n "checking for $ac_word... " >&6; }
7201 if ${ac_cv_prog_DLLTOOL+:} false; then :
7202 $as_echo_n "(cached) " >&6
7204 if test -n "$DLLTOOL"; then
7205 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7211 test -z "$as_dir" && as_dir=.
7212 for ac_exec_ext in '' $ac_executable_extensions; do
7213 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7214 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7215 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7224 DLLTOOL=$ac_cv_prog_DLLTOOL
7225 if test -n "$DLLTOOL"; then
7226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7227 $as_echo "$DLLTOOL" >&6; }
7229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7230 $as_echo "no" >&6; }
7235 if test -z "$ac_cv_prog_DLLTOOL"; then
7236 ac_ct_DLLTOOL=$DLLTOOL
7237 # Extract the first word of "dlltool", so it can be a program name with args.
7238 set dummy dlltool; ac_word=$2
7239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7240 $as_echo_n "checking for $ac_word... " >&6; }
7241 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7242 $as_echo_n "(cached) " >&6
7244 if test -n "$ac_ct_DLLTOOL"; then
7245 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7251 test -z "$as_dir" && as_dir=.
7252 for ac_exec_ext in '' $ac_executable_extensions; do
7253 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7254 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7255 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7264 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7265 if test -n "$ac_ct_DLLTOOL"; then
7266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7267 $as_echo "$ac_ct_DLLTOOL" >&6; }
7269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7270 $as_echo "no" >&6; }
7273 if test "x$ac_ct_DLLTOOL" = x; then
7276 case $cross_compiling:$ac_tool_warned in
7278 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7279 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7280 ac_tool_warned=yes ;;
7282 DLLTOOL=$ac_ct_DLLTOOL
7285 DLLTOOL="$ac_cv_prog_DLLTOOL"
7288 test -z "$DLLTOOL" && DLLTOOL=dlltool
7299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
7300 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
7301 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
7302 $as_echo_n "(cached) " >&6
7304 lt_cv_sharedlib_from_linklib_cmd='unknown'
7307 cygwin* | mingw* | pw32* | cegcc*)
7308 # two different shell functions defined in ltmain.sh
7309 # decide which to use based on capabilities of $DLLTOOL
7310 case `$DLLTOOL --help 2>&1` in
7311 *--identify-strict*)
7312 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
7315 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
7320 # fallback: assume linklib IS sharedlib
7321 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
7326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7327 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7328 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7329 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7337 if test -n "$ac_tool_prefix"; then
7340 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7341 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7343 $as_echo_n "checking for $ac_word... " >&6; }
7344 if ${ac_cv_prog_AR+:} false; then :
7345 $as_echo_n "(cached) " >&6
7347 if test -n "$AR"; then
7348 ac_cv_prog_AR="$AR" # Let the user override the test.
7350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7354 test -z "$as_dir" && as_dir=.
7355 for ac_exec_ext in '' $ac_executable_extensions; do
7356 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7357 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7358 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7368 if test -n "$AR"; then
7369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7370 $as_echo "$AR" >&6; }
7372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7373 $as_echo "no" >&6; }
7377 test -n "$AR" && break
7380 if test -z "$AR"; then
7384 # Extract the first word of "$ac_prog", so it can be a program name with args.
7385 set dummy $ac_prog; ac_word=$2
7386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7387 $as_echo_n "checking for $ac_word... " >&6; }
7388 if ${ac_cv_prog_ac_ct_AR+:} false; then :
7389 $as_echo_n "(cached) " >&6
7391 if test -n "$ac_ct_AR"; then
7392 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7398 test -z "$as_dir" && as_dir=.
7399 for ac_exec_ext in '' $ac_executable_extensions; do
7400 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7401 ac_cv_prog_ac_ct_AR="$ac_prog"
7402 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7411 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7412 if test -n "$ac_ct_AR"; then
7413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7414 $as_echo "$ac_ct_AR" >&6; }
7416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7417 $as_echo "no" >&6; }
7421 test -n "$ac_ct_AR" && break
7424 if test "x$ac_ct_AR" = x; then
7427 case $cross_compiling:$ac_tool_warned in
7429 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7430 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7431 ac_tool_warned=yes ;;
7450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7451 $as_echo_n "checking for archiver @FILE support... " >&6; }
7452 if ${lt_cv_ar_at_file+:} false; then :
7453 $as_echo_n "(cached) " >&6
7456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7457 /* end confdefs.h. */
7467 if ac_fn_c_try_compile "$LINENO"; then :
7468 echo conftest.$ac_objext > conftest.lst
7469 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7470 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7471 (eval $lt_ar_try) 2>&5
7473 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7474 test $ac_status = 0; }
7475 if test "$ac_status" -eq 0; then
7476 # Ensure the archiver fails upon bogus file names.
7477 rm -f conftest.$ac_objext libconftest.a
7478 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7479 (eval $lt_ar_try) 2>&5
7481 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7482 test $ac_status = 0; }
7483 if test "$ac_status" -ne 0; then
7487 rm -f conftest.* libconftest.a
7490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7494 $as_echo "$lt_cv_ar_at_file" >&6; }
7496 if test "x$lt_cv_ar_at_file" = xno; then
7499 archiver_list_spec=$lt_cv_ar_at_file
7508 if test -n "$ac_tool_prefix"; then
7509 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7510 set dummy ${ac_tool_prefix}strip; ac_word=$2
7511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7512 $as_echo_n "checking for $ac_word... " >&6; }
7513 if ${ac_cv_prog_STRIP+:} false; then :
7514 $as_echo_n "(cached) " >&6
7516 if test -n "$STRIP"; then
7517 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7523 test -z "$as_dir" && as_dir=.
7524 for ac_exec_ext in '' $ac_executable_extensions; do
7525 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7526 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7527 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7536 STRIP=$ac_cv_prog_STRIP
7537 if test -n "$STRIP"; then
7538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7539 $as_echo "$STRIP" >&6; }
7541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7542 $as_echo "no" >&6; }
7547 if test -z "$ac_cv_prog_STRIP"; then
7549 # Extract the first word of "strip", so it can be a program name with args.
7550 set dummy strip; ac_word=$2
7551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7552 $as_echo_n "checking for $ac_word... " >&6; }
7553 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7554 $as_echo_n "(cached) " >&6
7556 if test -n "$ac_ct_STRIP"; then
7557 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7563 test -z "$as_dir" && as_dir=.
7564 for ac_exec_ext in '' $ac_executable_extensions; do
7565 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7566 ac_cv_prog_ac_ct_STRIP="strip"
7567 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7576 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7577 if test -n "$ac_ct_STRIP"; then
7578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7579 $as_echo "$ac_ct_STRIP" >&6; }
7581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7582 $as_echo "no" >&6; }
7585 if test "x$ac_ct_STRIP" = x; then
7588 case $cross_compiling:$ac_tool_warned in
7590 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7591 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7592 ac_tool_warned=yes ;;
7597 STRIP="$ac_cv_prog_STRIP"
7600 test -z "$STRIP" && STRIP=:
7607 if test -n "$ac_tool_prefix"; then
7608 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7609 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7611 $as_echo_n "checking for $ac_word... " >&6; }
7612 if ${ac_cv_prog_RANLIB+:} false; then :
7613 $as_echo_n "(cached) " >&6
7615 if test -n "$RANLIB"; then
7616 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7622 test -z "$as_dir" && as_dir=.
7623 for ac_exec_ext in '' $ac_executable_extensions; do
7624 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7625 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7626 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7635 RANLIB=$ac_cv_prog_RANLIB
7636 if test -n "$RANLIB"; then
7637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7638 $as_echo "$RANLIB" >&6; }
7640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7641 $as_echo "no" >&6; }
7646 if test -z "$ac_cv_prog_RANLIB"; then
7647 ac_ct_RANLIB=$RANLIB
7648 # Extract the first word of "ranlib", so it can be a program name with args.
7649 set dummy ranlib; ac_word=$2
7650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7651 $as_echo_n "checking for $ac_word... " >&6; }
7652 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7653 $as_echo_n "(cached) " >&6
7655 if test -n "$ac_ct_RANLIB"; then
7656 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7662 test -z "$as_dir" && as_dir=.
7663 for ac_exec_ext in '' $ac_executable_extensions; do
7664 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7665 ac_cv_prog_ac_ct_RANLIB="ranlib"
7666 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7675 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7676 if test -n "$ac_ct_RANLIB"; then
7677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7678 $as_echo "$ac_ct_RANLIB" >&6; }
7680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7681 $as_echo "no" >&6; }
7684 if test "x$ac_ct_RANLIB" = x; then
7687 case $cross_compiling:$ac_tool_warned in
7689 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7690 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7691 ac_tool_warned=yes ;;
7693 RANLIB=$ac_ct_RANLIB
7696 RANLIB="$ac_cv_prog_RANLIB"
7699 test -z "$RANLIB" && RANLIB=:
7706 # Determine commands to create old-style static archives.
7707 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7708 old_postinstall_cmds='chmod 644 $oldlib'
7709 old_postuninstall_cmds=
7711 if test -n "$RANLIB"; then
7714 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7717 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7720 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7725 lock_old_archive_extraction=yes ;;
7727 lock_old_archive_extraction=no ;;
7768 # If no C compiler was specified, use CC.
7771 # If no C compiler flags were specified, use CFLAGS.
7772 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7774 # Allow CC to be a program name with arguments.
7778 # Check for command to grab the raw symbol name followed by C symbol from nm.
7779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7780 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7781 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7782 $as_echo_n "(cached) " >&6
7785 # These are sane defaults that work on at least a few old systems.
7786 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7788 # Character class describing NM global symbol codes.
7789 symcode='[BCDEGRST]'
7791 # Regexp to match symbols that can be accessed directly from C.
7792 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7794 # Define system-specific variables.
7799 cygwin* | mingw* | pw32* | cegcc*)
7800 symcode='[ABCDGISTW]'
7803 if test "$host_cpu" = ia64; then
7804 symcode='[ABCDEGRST]'
7808 symcode='[BCDEGRST]'
7811 symcode='[BCDEGQRST]'
7822 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7830 # If we're using GNU nm, then use its standard symbol codes.
7831 case `$NM -V 2>&1` in
7832 *GNU* | *'with BFD'*)
7833 symcode='[ABCDGIRSTW]' ;;
7836 # Transform an extracted symbol line into a proper C declaration.
7837 # Some systems (esp. on ia64) link data and code symbols differently,
7838 # so use this general approach.
7839 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7841 # Transform an extracted symbol line into symbol name and symbol address
7842 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7843 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'"
7845 # Handle CRLF in mingw tool chain
7849 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7853 # Try without a prefix underscore, then with it.
7854 for ac_symprfx in "" "_"; do
7856 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7857 symxfrm="\\1 $ac_symprfx\\2 \\2"
7859 # Write the raw and C identifiers.
7860 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7861 # Fake it for dumpbin and say T for any non-static function
7862 # and D for any global variable.
7863 # Also find C++ and __fastcall symbols from MSVC++,
7864 # which start with @ or ?.
7865 lt_cv_sys_global_symbol_pipe="$AWK '"\
7866 " {last_section=section; section=\$ 3};"\
7867 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7868 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7869 " \$ 0!~/External *\|/{next};"\
7870 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7871 " {if(hide[section]) next};"\
7872 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7873 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7874 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7875 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7876 " ' prfx=^$ac_symprfx"
7878 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7880 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7882 # Check to see that the pipe works correctly.
7886 cat > conftest.$ac_ext <<_LT_EOF
7891 void nm_test_func(void);
7892 void nm_test_func(void){}
7896 int main(){nm_test_var='a';nm_test_func();return(0);}
7899 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7900 (eval $ac_compile) 2>&5
7902 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7903 test $ac_status = 0; }; then
7904 # Now try to grab the symbols.
7906 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7907 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7909 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7910 test $ac_status = 0; } && test -s "$nlist"; then
7911 # Try sorting and uniquifying the output.
7912 if sort "$nlist" | uniq > "$nlist"T; then
7913 mv -f "$nlist"T "$nlist"
7918 # Make sure that we snagged all the symbols we need.
7919 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7920 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7921 cat <<_LT_EOF > conftest.$ac_ext
7922 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7923 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
7924 /* DATA imports from DLLs on WIN32 con't be const, because runtime
7925 relocations are performed -- see ld's documentation on pseudo-relocs. */
7926 # define LT_DLSYM_CONST
7927 #elif defined(__osf__)
7928 /* This system does not cope well with relocations in const data. */
7929 # define LT_DLSYM_CONST
7931 # define LT_DLSYM_CONST const
7939 # Now generate the symbol file.
7940 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7942 cat <<_LT_EOF >> conftest.$ac_ext
7944 /* The mapping between symbol names and symbols. */
7945 LT_DLSYM_CONST struct {
7949 lt__PROGRAM__LTX_preloaded_symbols[] =
7951 { "@PROGRAM@", (void *) 0 },
7953 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7954 cat <<\_LT_EOF >> conftest.$ac_ext
7958 /* This works around a problem in FreeBSD linker */
7959 #ifdef FREEBSD_WORKAROUND
7960 static const void *lt_preloaded_setup() {
7961 return lt__PROGRAM__LTX_preloaded_symbols;
7969 # Now try linking the two files.
7970 mv conftest.$ac_objext conftstm.$ac_objext
7971 lt_globsym_save_LIBS=$LIBS
7972 lt_globsym_save_CFLAGS=$CFLAGS
7973 LIBS="conftstm.$ac_objext"
7974 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7975 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7976 (eval $ac_link) 2>&5
7978 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7979 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7982 LIBS=$lt_globsym_save_LIBS
7983 CFLAGS=$lt_globsym_save_CFLAGS
7985 echo "cannot find nm_test_func in $nlist" >&5
7988 echo "cannot find nm_test_var in $nlist" >&5
7991 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7994 echo "$progname: failed program was:" >&5
7995 cat conftest.$ac_ext >&5
7997 rm -rf conftest* conftst*
7999 # Do not use the global_symbol_pipe unless it works.
8000 if test "$pipe_works" = yes; then
8003 lt_cv_sys_global_symbol_pipe=
8009 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8010 lt_cv_sys_global_symbol_to_cdecl=
8012 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8014 $as_echo "failed" >&6; }
8016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8017 $as_echo "ok" >&6; }
8020 # Response file support.
8021 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8022 nm_file_list_spec='@'
8023 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
8024 nm_file_list_spec='@'
8053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
8054 $as_echo_n "checking for sysroot... " >&6; }
8056 # Check whether --with-sysroot was given.
8057 if test "${with_sysroot+set}" = set; then :
8058 withval=$with_sysroot;
8065 case ${with_sysroot} in #(
8067 if test "$GCC" = yes; then
8068 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
8072 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
8077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
8078 $as_echo "${with_sysroot}" >&6; }
8079 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
8083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
8084 $as_echo "${lt_sysroot:-no}" >&6; }
8090 # Check whether --enable-libtool-lock was given.
8091 if test "${enable_libtool_lock+set}" = set; then :
8092 enableval=$enable_libtool_lock;
8095 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8097 # Some flags need to be propagated to the compiler or linker for good
8101 # Find out which ABI we are using.
8102 echo 'int i;' > conftest.$ac_ext
8103 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8104 (eval $ac_compile) 2>&5
8106 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8107 test $ac_status = 0; }; then
8108 case `/usr/bin/file conftest.$ac_objext` in
8120 # Find out which ABI we are using.
8121 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8122 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8123 (eval $ac_compile) 2>&5
8125 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8126 test $ac_status = 0; }; then
8127 if test "$lt_cv_prog_gnu_ld" = yes; then
8128 case `/usr/bin/file conftest.$ac_objext` in
8130 LD="${LD-ld} -melf32bsmip"
8133 LD="${LD-ld} -melf32bmipn32"
8136 LD="${LD-ld} -melf64bmip"
8140 case `/usr/bin/file conftest.$ac_objext` in
8156 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
8157 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8158 # Find out which ABI we are using.
8159 echo 'int i;' > conftest.$ac_ext
8160 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8161 (eval $ac_compile) 2>&5
8163 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8164 test $ac_status = 0; }; then
8165 case `/usr/bin/file conftest.o` in
8168 x86_64-*kfreebsd*-gnu)
8169 LD="${LD-ld} -m elf_i386_fbsd"
8172 case `/usr/bin/file conftest.o` in
8174 LD="${LD-ld} -m elf32_x86_64"
8177 LD="${LD-ld} -m elf_i386"
8182 LD="${LD-ld} -m elf32lppclinux"
8185 LD="${LD-ld} -m elf32ppclinux"
8188 LD="${LD-ld} -m elf_s390"
8191 LD="${LD-ld} -m elf32_sparc"
8197 x86_64-*kfreebsd*-gnu)
8198 LD="${LD-ld} -m elf_x86_64_fbsd"
8201 LD="${LD-ld} -m elf_x86_64"
8204 LD="${LD-ld} -m elf64lppc"
8207 LD="${LD-ld} -m elf64ppc"
8209 s390*-*linux*|s390*-*tpf*)
8210 LD="${LD-ld} -m elf64_s390"
8213 LD="${LD-ld} -m elf64_sparc"
8223 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8224 SAVE_CFLAGS="$CFLAGS"
8225 CFLAGS="$CFLAGS -belf"
8226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8227 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8228 if ${lt_cv_cc_needs_belf+:} false; then :
8229 $as_echo_n "(cached) " >&6
8232 ac_cpp='$CPP $CPPFLAGS'
8233 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8234 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8235 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8238 /* end confdefs.h. */
8248 if ac_fn_c_try_link "$LINENO"; then :
8249 lt_cv_cc_needs_belf=yes
8251 lt_cv_cc_needs_belf=no
8253 rm -f core conftest.err conftest.$ac_objext \
8254 conftest$ac_exeext conftest.$ac_ext
8256 ac_cpp='$CPP $CPPFLAGS'
8257 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8258 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8259 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8263 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8264 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8265 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8266 CFLAGS="$SAVE_CFLAGS"
8270 # Find out which ABI we are using.
8271 echo 'int i;' > conftest.$ac_ext
8272 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8273 (eval $ac_compile) 2>&5
8275 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8276 test $ac_status = 0; }; then
8277 case `/usr/bin/file conftest.o` in
8279 case $lt_cv_prog_gnu_ld in
8283 LD="${LD-ld} -m elf_x86_64"
8286 LD="${LD-ld} -m elf64_sparc"
8289 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
8290 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8295 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8307 need_locks="$enable_libtool_lock"
8309 if test -n "$ac_tool_prefix"; then
8310 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8311 set dummy ${ac_tool_prefix}mt; ac_word=$2
8312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8313 $as_echo_n "checking for $ac_word... " >&6; }
8314 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
8315 $as_echo_n "(cached) " >&6
8317 if test -n "$MANIFEST_TOOL"; then
8318 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8324 test -z "$as_dir" && as_dir=.
8325 for ac_exec_ext in '' $ac_executable_extensions; do
8326 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8327 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8328 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8337 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8338 if test -n "$MANIFEST_TOOL"; then
8339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8340 $as_echo "$MANIFEST_TOOL" >&6; }
8342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8343 $as_echo "no" >&6; }
8348 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8349 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8350 # Extract the first word of "mt", so it can be a program name with args.
8351 set dummy mt; ac_word=$2
8352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8353 $as_echo_n "checking for $ac_word... " >&6; }
8354 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
8355 $as_echo_n "(cached) " >&6
8357 if test -n "$ac_ct_MANIFEST_TOOL"; then
8358 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8364 test -z "$as_dir" && as_dir=.
8365 for ac_exec_ext in '' $ac_executable_extensions; do
8366 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8367 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8368 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8377 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8378 if test -n "$ac_ct_MANIFEST_TOOL"; then
8379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8380 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
8382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8383 $as_echo "no" >&6; }
8386 if test "x$ac_ct_MANIFEST_TOOL" = x; then
8389 case $cross_compiling:$ac_tool_warned in
8391 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8392 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8393 ac_tool_warned=yes ;;
8395 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8398 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8401 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8403 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8404 if ${lt_cv_path_mainfest_tool+:} false; then :
8405 $as_echo_n "(cached) " >&6
8407 lt_cv_path_mainfest_tool=no
8408 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8409 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8410 cat conftest.err >&5
8411 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8412 lt_cv_path_mainfest_tool=yes
8416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8417 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
8418 if test "x$lt_cv_path_mainfest_tool" != xyes; then
8428 rhapsody* | darwin*)
8429 if test -n "$ac_tool_prefix"; then
8430 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8431 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8433 $as_echo_n "checking for $ac_word... " >&6; }
8434 if ${ac_cv_prog_DSYMUTIL+:} false; then :
8435 $as_echo_n "(cached) " >&6
8437 if test -n "$DSYMUTIL"; then
8438 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8444 test -z "$as_dir" && as_dir=.
8445 for ac_exec_ext in '' $ac_executable_extensions; do
8446 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8447 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8448 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8457 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8458 if test -n "$DSYMUTIL"; then
8459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8460 $as_echo "$DSYMUTIL" >&6; }
8462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8463 $as_echo "no" >&6; }
8468 if test -z "$ac_cv_prog_DSYMUTIL"; then
8469 ac_ct_DSYMUTIL=$DSYMUTIL
8470 # Extract the first word of "dsymutil", so it can be a program name with args.
8471 set dummy dsymutil; ac_word=$2
8472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8473 $as_echo_n "checking for $ac_word... " >&6; }
8474 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8475 $as_echo_n "(cached) " >&6
8477 if test -n "$ac_ct_DSYMUTIL"; then
8478 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8484 test -z "$as_dir" && as_dir=.
8485 for ac_exec_ext in '' $ac_executable_extensions; do
8486 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8487 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8488 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8497 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8498 if test -n "$ac_ct_DSYMUTIL"; then
8499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8500 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8503 $as_echo "no" >&6; }
8506 if test "x$ac_ct_DSYMUTIL" = x; then
8509 case $cross_compiling:$ac_tool_warned in
8511 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8512 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8513 ac_tool_warned=yes ;;
8515 DSYMUTIL=$ac_ct_DSYMUTIL
8518 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8521 if test -n "$ac_tool_prefix"; then
8522 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8523 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8525 $as_echo_n "checking for $ac_word... " >&6; }
8526 if ${ac_cv_prog_NMEDIT+:} false; then :
8527 $as_echo_n "(cached) " >&6
8529 if test -n "$NMEDIT"; then
8530 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8536 test -z "$as_dir" && as_dir=.
8537 for ac_exec_ext in '' $ac_executable_extensions; do
8538 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8539 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8540 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8549 NMEDIT=$ac_cv_prog_NMEDIT
8550 if test -n "$NMEDIT"; then
8551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8552 $as_echo "$NMEDIT" >&6; }
8554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8555 $as_echo "no" >&6; }
8560 if test -z "$ac_cv_prog_NMEDIT"; then
8561 ac_ct_NMEDIT=$NMEDIT
8562 # Extract the first word of "nmedit", so it can be a program name with args.
8563 set dummy nmedit; ac_word=$2
8564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8565 $as_echo_n "checking for $ac_word... " >&6; }
8566 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8567 $as_echo_n "(cached) " >&6
8569 if test -n "$ac_ct_NMEDIT"; then
8570 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8576 test -z "$as_dir" && as_dir=.
8577 for ac_exec_ext in '' $ac_executable_extensions; do
8578 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8579 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8580 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8589 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8590 if test -n "$ac_ct_NMEDIT"; then
8591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8592 $as_echo "$ac_ct_NMEDIT" >&6; }
8594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8595 $as_echo "no" >&6; }
8598 if test "x$ac_ct_NMEDIT" = x; then
8601 case $cross_compiling:$ac_tool_warned in
8603 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8604 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8605 ac_tool_warned=yes ;;
8607 NMEDIT=$ac_ct_NMEDIT
8610 NMEDIT="$ac_cv_prog_NMEDIT"
8613 if test -n "$ac_tool_prefix"; then
8614 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8615 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8617 $as_echo_n "checking for $ac_word... " >&6; }
8618 if ${ac_cv_prog_LIPO+:} false; then :
8619 $as_echo_n "(cached) " >&6
8621 if test -n "$LIPO"; then
8622 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8628 test -z "$as_dir" && as_dir=.
8629 for ac_exec_ext in '' $ac_executable_extensions; do
8630 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8631 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8632 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8641 LIPO=$ac_cv_prog_LIPO
8642 if test -n "$LIPO"; then
8643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8644 $as_echo "$LIPO" >&6; }
8646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8647 $as_echo "no" >&6; }
8652 if test -z "$ac_cv_prog_LIPO"; then
8654 # Extract the first word of "lipo", so it can be a program name with args.
8655 set dummy lipo; ac_word=$2
8656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8657 $as_echo_n "checking for $ac_word... " >&6; }
8658 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8659 $as_echo_n "(cached) " >&6
8661 if test -n "$ac_ct_LIPO"; then
8662 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8668 test -z "$as_dir" && as_dir=.
8669 for ac_exec_ext in '' $ac_executable_extensions; do
8670 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8671 ac_cv_prog_ac_ct_LIPO="lipo"
8672 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8681 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8682 if test -n "$ac_ct_LIPO"; then
8683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8684 $as_echo "$ac_ct_LIPO" >&6; }
8686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8687 $as_echo "no" >&6; }
8690 if test "x$ac_ct_LIPO" = x; then
8693 case $cross_compiling:$ac_tool_warned in
8695 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8696 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8697 ac_tool_warned=yes ;;
8702 LIPO="$ac_cv_prog_LIPO"
8705 if test -n "$ac_tool_prefix"; then
8706 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8707 set dummy ${ac_tool_prefix}otool; ac_word=$2
8708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8709 $as_echo_n "checking for $ac_word... " >&6; }
8710 if ${ac_cv_prog_OTOOL+:} false; then :
8711 $as_echo_n "(cached) " >&6
8713 if test -n "$OTOOL"; then
8714 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8720 test -z "$as_dir" && as_dir=.
8721 for ac_exec_ext in '' $ac_executable_extensions; do
8722 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8723 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8724 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8733 OTOOL=$ac_cv_prog_OTOOL
8734 if test -n "$OTOOL"; then
8735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8736 $as_echo "$OTOOL" >&6; }
8738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8739 $as_echo "no" >&6; }
8744 if test -z "$ac_cv_prog_OTOOL"; then
8746 # Extract the first word of "otool", so it can be a program name with args.
8747 set dummy otool; ac_word=$2
8748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8749 $as_echo_n "checking for $ac_word... " >&6; }
8750 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8751 $as_echo_n "(cached) " >&6
8753 if test -n "$ac_ct_OTOOL"; then
8754 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8760 test -z "$as_dir" && as_dir=.
8761 for ac_exec_ext in '' $ac_executable_extensions; do
8762 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8763 ac_cv_prog_ac_ct_OTOOL="otool"
8764 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8773 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8774 if test -n "$ac_ct_OTOOL"; then
8775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8776 $as_echo "$ac_ct_OTOOL" >&6; }
8778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8779 $as_echo "no" >&6; }
8782 if test "x$ac_ct_OTOOL" = x; then
8785 case $cross_compiling:$ac_tool_warned in
8787 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8788 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8789 ac_tool_warned=yes ;;
8794 OTOOL="$ac_cv_prog_OTOOL"
8797 if test -n "$ac_tool_prefix"; then
8798 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8799 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8801 $as_echo_n "checking for $ac_word... " >&6; }
8802 if ${ac_cv_prog_OTOOL64+:} false; then :
8803 $as_echo_n "(cached) " >&6
8805 if test -n "$OTOOL64"; then
8806 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8812 test -z "$as_dir" && as_dir=.
8813 for ac_exec_ext in '' $ac_executable_extensions; do
8814 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8815 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8816 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8825 OTOOL64=$ac_cv_prog_OTOOL64
8826 if test -n "$OTOOL64"; then
8827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8828 $as_echo "$OTOOL64" >&6; }
8830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8831 $as_echo "no" >&6; }
8836 if test -z "$ac_cv_prog_OTOOL64"; then
8837 ac_ct_OTOOL64=$OTOOL64
8838 # Extract the first word of "otool64", so it can be a program name with args.
8839 set dummy otool64; ac_word=$2
8840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8841 $as_echo_n "checking for $ac_word... " >&6; }
8842 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8843 $as_echo_n "(cached) " >&6
8845 if test -n "$ac_ct_OTOOL64"; then
8846 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8852 test -z "$as_dir" && as_dir=.
8853 for ac_exec_ext in '' $ac_executable_extensions; do
8854 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8855 ac_cv_prog_ac_ct_OTOOL64="otool64"
8856 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8865 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8866 if test -n "$ac_ct_OTOOL64"; then
8867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8868 $as_echo "$ac_ct_OTOOL64" >&6; }
8870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8871 $as_echo "no" >&6; }
8874 if test "x$ac_ct_OTOOL64" = x; then
8877 case $cross_compiling:$ac_tool_warned in
8879 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8880 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8881 ac_tool_warned=yes ;;
8883 OTOOL64=$ac_ct_OTOOL64
8886 OTOOL64="$ac_cv_prog_OTOOL64"
8915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8916 $as_echo_n "checking for -single_module linker flag... " >&6; }
8917 if ${lt_cv_apple_cc_single_mod+:} false; then :
8918 $as_echo_n "(cached) " >&6
8920 lt_cv_apple_cc_single_mod=no
8921 if test -z "${LT_MULTI_MODULE}"; then
8922 # By default we will add the -single_module flag. You can override
8923 # by either setting the environment variable LT_MULTI_MODULE
8924 # non-empty at configure time, or by adding -multi_module to the
8926 rm -rf libconftest.dylib*
8927 echo "int foo(void){return 1;}" > conftest.c
8928 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8929 -dynamiclib -Wl,-single_module conftest.c" >&5
8930 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8931 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8933 # If there is a non-empty error log, and "single_module"
8934 # appears in it, assume the flag caused a linker warning
8935 if test -s conftest.err && $GREP single_module conftest.err; then
8936 cat conftest.err >&5
8937 # Otherwise, if the output was created with a 0 exit code from
8938 # the compiler, it worked.
8939 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
8940 lt_cv_apple_cc_single_mod=yes
8942 cat conftest.err >&5
8944 rm -rf libconftest.dylib*
8948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8949 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8952 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8953 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8954 $as_echo_n "(cached) " >&6
8956 lt_cv_ld_exported_symbols_list=no
8957 save_LDFLAGS=$LDFLAGS
8958 echo "_main" > conftest.sym
8959 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8961 /* end confdefs.h. */
8971 if ac_fn_c_try_link "$LINENO"; then :
8972 lt_cv_ld_exported_symbols_list=yes
8974 lt_cv_ld_exported_symbols_list=no
8976 rm -f core conftest.err conftest.$ac_objext \
8977 conftest$ac_exeext conftest.$ac_ext
8978 LDFLAGS="$save_LDFLAGS"
8981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8982 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8985 $as_echo_n "checking for -force_load linker flag... " >&6; }
8986 if ${lt_cv_ld_force_load+:} false; then :
8987 $as_echo_n "(cached) " >&6
8989 lt_cv_ld_force_load=no
8990 cat > conftest.c << _LT_EOF
8991 int forced_loaded() { return 2;}
8993 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8994 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8995 echo "$AR cru libconftest.a conftest.o" >&5
8996 $AR cru libconftest.a conftest.o 2>&5
8997 echo "$RANLIB libconftest.a" >&5
8998 $RANLIB libconftest.a 2>&5
8999 cat > conftest.c << _LT_EOF
9000 int main() { return 0;}
9002 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
9003 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
9005 if test -s conftest.err && $GREP force_load conftest.err; then
9006 cat conftest.err >&5
9007 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
9008 lt_cv_ld_force_load=yes
9010 cat conftest.err >&5
9012 rm -f conftest.err libconftest.a conftest conftest.c
9013 rm -rf conftest.dSYM
9016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9017 $as_echo "$lt_cv_ld_force_load" >&6; }
9019 rhapsody* | darwin1.[012])
9020 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
9022 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9023 darwin*) # darwin 5.x on
9024 # if running on 10.5 or later, the deployment target defaults
9025 # to the OS version, if on x86, and 10.4, the deployment
9026 # target defaults to 10.4. Don't you love it?
9027 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9028 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
9029 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9031 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9033 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9037 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
9038 _lt_dar_single_mod='$single_module'
9040 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
9041 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
9043 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
9045 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
9046 _lt_dsymutil='~$DSYMUTIL $lib || :'
9053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
9054 $as_echo_n "checking for ANSI C header files... " >&6; }
9055 if ${ac_cv_header_stdc+:} false; then :
9056 $as_echo_n "(cached) " >&6
9058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9059 /* end confdefs.h. */
9073 if ac_fn_c_try_compile "$LINENO"; then :
9074 ac_cv_header_stdc=yes
9076 ac_cv_header_stdc=no
9078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9080 if test $ac_cv_header_stdc = yes; then
9081 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9083 /* end confdefs.h. */
9087 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9088 $EGREP "memchr" >/dev/null 2>&1; then :
9091 ac_cv_header_stdc=no
9097 if test $ac_cv_header_stdc = yes; then
9098 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9100 /* end confdefs.h. */
9104 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9105 $EGREP "free" >/dev/null 2>&1; then :
9108 ac_cv_header_stdc=no
9114 if test $ac_cv_header_stdc = yes; then
9115 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9116 if test "$cross_compiling" = yes; then :
9119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9120 /* end confdefs.h. */
9123 #if ((' ' & 0x0FF) == 0x020)
9124 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9125 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9127 # define ISLOWER(c) \
9128 (('a' <= (c) && (c) <= 'i') \
9129 || ('j' <= (c) && (c) <= 'r') \
9130 || ('s' <= (c) && (c) <= 'z'))
9131 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9134 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9139 for (i = 0; i < 256; i++)
9140 if (XOR (islower (i), ISLOWER (i))
9141 || toupper (i) != TOUPPER (i))
9146 if ac_fn_c_try_run "$LINENO"; then :
9149 ac_cv_header_stdc=no
9151 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9152 conftest.$ac_objext conftest.beam conftest.$ac_ext
9157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
9158 $as_echo "$ac_cv_header_stdc" >&6; }
9159 if test $ac_cv_header_stdc = yes; then
9161 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
9165 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
9166 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
9167 inttypes.h stdint.h unistd.h
9169 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9170 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
9172 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9173 cat >>confdefs.h <<_ACEOF
9174 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9182 for ac_header in dlfcn.h
9184 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9186 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
9187 cat >>confdefs.h <<_ACEOF
9188 #define HAVE_DLFCN_H 1
9198 func_stripname_cnf ()
9201 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
9202 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
9204 } # func_stripname_cnf
9211 # Check whether --enable-shared was given.
9212 if test "${enable_shared+set}" = set; then :
9213 enableval=$enable_shared; p=${PACKAGE-default}
9215 yes) enable_shared=yes ;;
9216 no) enable_shared=no ;;
9219 # Look at the argument we got. We use all the common list separators.
9220 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9221 for pkg in $enableval; do
9223 if test "X$pkg" = "X$p"; then
9240 # Check whether --enable-static was given.
9241 if test "${enable_static+set}" = set; then :
9242 enableval=$enable_static; p=${PACKAGE-default}
9244 yes) enable_static=yes ;;
9245 no) enable_static=no ;;
9248 # Look at the argument we got. We use all the common list separators.
9249 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9250 for pkg in $enableval; do
9252 if test "X$pkg" = "X$p"; then
9281 # Check whether --with-pic was given.
9282 if test "${with_pic+set}" = set; then :
9283 withval=$with_pic; lt_p=${PACKAGE-default}
9285 yes|no) pic_mode=$withval ;;
9288 # Look at the argument we got. We use all the common list separators.
9289 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9290 for lt_pkg in $withval; do
9292 if test "X$lt_pkg" = "X$lt_p"; then
9304 test -z "$pic_mode" && pic_mode=default
9312 # Check whether --enable-fast-install was given.
9313 if test "${enable_fast_install+set}" = set; then :
9314 enableval=$enable_fast_install; p=${PACKAGE-default}
9316 yes) enable_fast_install=yes ;;
9317 no) enable_fast_install=no ;;
9319 enable_fast_install=no
9320 # Look at the argument we got. We use all the common list separators.
9321 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9322 for pkg in $enableval; do
9324 if test "X$pkg" = "X$p"; then
9325 enable_fast_install=yes
9332 enable_fast_install=yes
9345 # This can be used to rebuild libtool when needed
9346 LIBTOOL_DEPS="$ltmain"
9348 # Always use our own libtool.
9349 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9380 test -z "$LN_S" && LN_S="ln -s"
9395 if test -n "${ZSH_VERSION+set}" ; then
9396 setopt NO_GLOB_SUBST
9399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9400 $as_echo_n "checking for objdir... " >&6; }
9401 if ${lt_cv_objdir+:} false; then :
9402 $as_echo_n "(cached) " >&6
9404 rm -f .libs 2>/dev/null
9405 mkdir .libs 2>/dev/null
9406 if test -d .libs; then
9409 # MS-DOS does not allow filenames that begin with a dot.
9412 rmdir .libs 2>/dev/null
9414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9415 $as_echo "$lt_cv_objdir" >&6; }
9416 objdir=$lt_cv_objdir
9422 cat >>confdefs.h <<_ACEOF
9423 #define LT_OBJDIR "$lt_cv_objdir/"
9431 # AIX sometimes has problems with the GCC collect2 program. For some
9432 # reason, if we set the COLLECT_NAMES environment variable, the problems
9433 # vanish in a puff of smoke.
9434 if test "X${COLLECT_NAMES+set}" != Xset; then
9436 export COLLECT_NAMES
9443 can_build_shared=yes
9445 # All known linkers require a `.a' archive for static linking (except MSVC,
9446 # which needs '.lib').
9449 with_gnu_ld="$lt_cv_prog_gnu_ld"
9452 old_CFLAGS="$CFLAGS"
9454 # Set sane defaults for various variables
9455 test -z "$CC" && CC=cc
9456 test -z "$LTCC" && LTCC=$CC
9457 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9458 test -z "$LD" && LD=ld
9459 test -z "$ac_objext" && ac_objext=o
9461 for cc_temp in $compiler""; do
9463 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9464 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9469 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9472 # Only perform the check for file, if the check method requires it
9473 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9474 case $deplibs_check_method in
9476 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9478 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9479 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9480 $as_echo_n "(cached) " >&6
9484 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9487 lt_save_MAGIC_CMD="$MAGIC_CMD"
9488 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9489 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9490 for ac_dir in $ac_dummy; do
9492 test -z "$ac_dir" && ac_dir=.
9493 if test -f $ac_dir/${ac_tool_prefix}file; then
9494 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9495 if test -n "$file_magic_test_file"; then
9496 case $deplibs_check_method in
9498 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9499 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9500 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9501 $EGREP "$file_magic_regex" > /dev/null; then
9506 *** Warning: the command libtool uses to detect shared libraries,
9507 *** $file_magic_cmd, produces output that libtool cannot recognize.
9508 *** The result is that libtool may fail to recognize shared libraries
9509 *** as such. This will affect the creation of libtool libraries that
9510 *** depend on shared libraries, but programs linked with such libtool
9511 *** libraries will work regardless of this problem. Nevertheless, you
9512 *** may want to report the problem to your system manager and/or to
9513 *** bug-libtool@gnu.org
9523 MAGIC_CMD="$lt_save_MAGIC_CMD"
9528 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9529 if test -n "$MAGIC_CMD"; then
9530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9531 $as_echo "$MAGIC_CMD" >&6; }
9533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9534 $as_echo "no" >&6; }
9541 if test -z "$lt_cv_path_MAGIC_CMD"; then
9542 if test -n "$ac_tool_prefix"; then
9543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9544 $as_echo_n "checking for file... " >&6; }
9545 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9546 $as_echo_n "(cached) " >&6
9550 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9553 lt_save_MAGIC_CMD="$MAGIC_CMD"
9554 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9555 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9556 for ac_dir in $ac_dummy; do
9558 test -z "$ac_dir" && ac_dir=.
9559 if test -f $ac_dir/file; then
9560 lt_cv_path_MAGIC_CMD="$ac_dir/file"
9561 if test -n "$file_magic_test_file"; then
9562 case $deplibs_check_method in
9564 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9565 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9566 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9567 $EGREP "$file_magic_regex" > /dev/null; then
9572 *** Warning: the command libtool uses to detect shared libraries,
9573 *** $file_magic_cmd, produces output that libtool cannot recognize.
9574 *** The result is that libtool may fail to recognize shared libraries
9575 *** as such. This will affect the creation of libtool libraries that
9576 *** depend on shared libraries, but programs linked with such libtool
9577 *** libraries will work regardless of this problem. Nevertheless, you
9578 *** may want to report the problem to your system manager and/or to
9579 *** bug-libtool@gnu.org
9589 MAGIC_CMD="$lt_save_MAGIC_CMD"
9594 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9595 if test -n "$MAGIC_CMD"; then
9596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9597 $as_echo "$MAGIC_CMD" >&6; }
9599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9600 $as_echo "no" >&6; }
9613 # Use C for the default configuration in the libtool script
9617 ac_cpp='$CPP $CPPFLAGS'
9618 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9619 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9620 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9623 # Source file extension for C test sources.
9626 # Object file extension for compiled C test sources.
9630 # Code to be used in simple compile tests
9631 lt_simple_compile_test_code="int some_variable = 0;"
9633 # Code to be used in simple link tests
9634 lt_simple_link_test_code='int main(){return(0);}'
9642 # If no C compiler was specified, use CC.
9645 # If no C compiler flags were specified, use CFLAGS.
9646 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9648 # Allow CC to be a program name with arguments.
9651 # Save the default compiler, since it gets overwritten when the other
9652 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9653 compiler_DEFAULT=$CC
9655 # save warnings/boilerplate of simple test code
9656 ac_outfile=conftest.$ac_objext
9657 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9658 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9659 _lt_compiler_boilerplate=`cat conftest.err`
9662 ac_outfile=conftest.$ac_objext
9663 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9664 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9665 _lt_linker_boilerplate=`cat conftest.err`
9670 ## There is no encapsulation within the following macros, do not change
9671 ## the running order or otherwise move them around unless you know exactly
9672 ## what you are doing...
9673 if test -n "$compiler"; then
9675 lt_prog_compiler_no_builtin_flag=
9677 if test "$GCC" = yes; then
9678 case $cc_basename in
9680 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9682 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9686 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9687 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9688 $as_echo_n "(cached) " >&6
9690 lt_cv_prog_compiler_rtti_exceptions=no
9691 ac_outfile=conftest.$ac_objext
9692 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9693 lt_compiler_flag="-fno-rtti -fno-exceptions"
9694 # Insert the option either (1) after the last *FLAGS variable, or
9695 # (2) before a word containing "conftest.", or (3) at the end.
9696 # Note that $ac_compile itself does not contain backslashes and begins
9697 # with a dollar sign (not a hyphen), so the echo should work correctly.
9698 # The option is referenced via a variable to avoid confusing sed.
9699 lt_compile=`echo "$ac_compile" | $SED \
9700 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9701 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9702 -e 's:$: $lt_compiler_flag:'`
9703 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9704 (eval "$lt_compile" 2>conftest.err)
9706 cat conftest.err >&5
9707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9708 if (exit $ac_status) && test -s "$ac_outfile"; then
9709 # The compiler can only warn and ignore the option if not recognized
9710 # So say no if there are warnings other than the usual output.
9711 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9712 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9713 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9714 lt_cv_prog_compiler_rtti_exceptions=yes
9720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9721 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9723 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9724 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9736 lt_prog_compiler_wl=
9737 lt_prog_compiler_pic=
9738 lt_prog_compiler_static=
9741 if test "$GCC" = yes; then
9742 lt_prog_compiler_wl='-Wl,'
9743 lt_prog_compiler_static='-static'
9747 # All AIX code is PIC.
9748 if test "$host_cpu" = ia64; then
9749 # AIX 5 now supports IA64 processor
9750 lt_prog_compiler_static='-Bstatic'
9757 # see comment about AmigaOS4 .so support
9758 lt_prog_compiler_pic='-fPIC'
9761 # FIXME: we need at least 68020 code to build shared libraries, but
9762 # adding the `-m68020' flag to GCC prevents building anything better,
9764 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9769 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9770 # PIC is the default for these OSes.
9773 mingw* | cygwin* | pw32* | os2* | cegcc*)
9774 # This hack is so that the source file can tell whether it is being
9775 # built for inclusion in a dll (and should export symbols for example).
9776 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9777 # (--disable-auto-import) libraries
9778 lt_prog_compiler_pic='-DDLL_EXPORT'
9781 darwin* | rhapsody*)
9782 # PIC is the default on this platform
9783 # Common symbols not allowed in MH_DYLIB files
9784 lt_prog_compiler_pic='-fno-common'
9788 # PIC is the default for Haiku.
9789 # The "-static" flag exists, but is broken.
9790 lt_prog_compiler_static=
9794 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9795 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9796 # sets the default TLS model and affects inlining.
9802 lt_prog_compiler_pic='-fPIC'
9808 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9809 # Instead, we relocate shared libraries at runtime.
9813 # Just because we use GCC doesn't mean we suddenly get shared libraries
9814 # on systems that don't support them.
9815 lt_prog_compiler_can_build_shared=no
9820 # QNX uses GNU C++, but need to define -shared option too, otherwise
9822 lt_prog_compiler_pic='-fPIC -shared'
9826 if test -d /usr/nec; then
9827 lt_prog_compiler_pic=-Kconform_pic
9832 lt_prog_compiler_pic='-fPIC'
9836 case $cc_basename in
9837 nvcc*) # Cuda Compiler Driver 2.2
9838 lt_prog_compiler_wl='-Xlinker '
9839 if test -n "$lt_prog_compiler_pic"; then
9840 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9845 # PORTME Check for flag to pass linker flags through the system compiler.
9848 lt_prog_compiler_wl='-Wl,'
9849 if test "$host_cpu" = ia64; then
9850 # AIX 5 now supports IA64 processor
9851 lt_prog_compiler_static='-Bstatic'
9853 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9857 mingw* | cygwin* | pw32* | os2* | cegcc*)
9858 # This hack is so that the source file can tell whether it is being
9859 # built for inclusion in a dll (and should export symbols for example).
9860 lt_prog_compiler_pic='-DDLL_EXPORT'
9863 hpux9* | hpux10* | hpux11*)
9864 lt_prog_compiler_wl='-Wl,'
9865 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9872 lt_prog_compiler_pic='+Z'
9875 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9876 lt_prog_compiler_static='${wl}-a ${wl}archive'
9879 irix5* | irix6* | nonstopux*)
9880 lt_prog_compiler_wl='-Wl,'
9881 # PIC (with -KPIC) is the default.
9882 lt_prog_compiler_static='-non_shared'
9885 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9886 case $cc_basename in
9887 # old Intel for x86_64 which still supported -KPIC.
9889 lt_prog_compiler_wl='-Wl,'
9890 lt_prog_compiler_pic='-KPIC'
9891 lt_prog_compiler_static='-static'
9893 # icc used to be incompatible with GCC.
9894 # ICC 10 doesn't accept -KPIC any more.
9896 lt_prog_compiler_wl='-Wl,'
9897 lt_prog_compiler_pic='-fPIC'
9898 lt_prog_compiler_static='-static'
9900 # Lahey Fortran 8.1.
9902 lt_prog_compiler_wl='-Wl,'
9903 lt_prog_compiler_pic='--shared'
9904 lt_prog_compiler_static='--static'
9907 # NAG Fortran compiler
9908 lt_prog_compiler_wl='-Wl,-Wl,,'
9909 lt_prog_compiler_pic='-PIC'
9910 lt_prog_compiler_static='-Bstatic'
9912 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9913 # Portland Group compilers (*not* the Pentium gcc compiler,
9914 # which looks to be a dead project)
9915 lt_prog_compiler_wl='-Wl,'
9916 lt_prog_compiler_pic='-fpic'
9917 lt_prog_compiler_static='-Bstatic'
9920 lt_prog_compiler_wl='-Wl,'
9921 # All Alpha code is PIC.
9922 lt_prog_compiler_static='-non_shared'
9924 xl* | bgxl* | bgf* | mpixl*)
9925 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9926 lt_prog_compiler_wl='-Wl,'
9927 lt_prog_compiler_pic='-qpic'
9928 lt_prog_compiler_static='-qstaticlink'
9931 case `$CC -V 2>&1 | sed 5q` in
9932 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9933 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9934 lt_prog_compiler_pic='-KPIC'
9935 lt_prog_compiler_static='-Bstatic'
9936 lt_prog_compiler_wl=''
9938 *Sun\ F* | *Sun*Fortran*)
9939 lt_prog_compiler_pic='-KPIC'
9940 lt_prog_compiler_static='-Bstatic'
9941 lt_prog_compiler_wl='-Qoption ld '
9945 lt_prog_compiler_pic='-KPIC'
9946 lt_prog_compiler_static='-Bstatic'
9947 lt_prog_compiler_wl='-Wl,'
9949 *Intel*\ [CF]*Compiler*)
9950 lt_prog_compiler_wl='-Wl,'
9951 lt_prog_compiler_pic='-fPIC'
9952 lt_prog_compiler_static='-static'
9955 lt_prog_compiler_wl='-Wl,'
9956 lt_prog_compiler_pic='-fpic'
9957 lt_prog_compiler_static='-Bstatic'
9965 lt_prog_compiler_pic='-KPIC'
9966 lt_prog_compiler_static='-Bstatic'
9970 # QNX uses GNU C++, but need to define -shared option too, otherwise
9972 lt_prog_compiler_pic='-fPIC -shared'
9975 osf3* | osf4* | osf5*)
9976 lt_prog_compiler_wl='-Wl,'
9977 # All OSF/1 code is PIC.
9978 lt_prog_compiler_static='-non_shared'
9982 lt_prog_compiler_static='-non_shared'
9986 lt_prog_compiler_pic='-KPIC'
9987 lt_prog_compiler_static='-Bstatic'
9988 case $cc_basename in
9989 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9990 lt_prog_compiler_wl='-Qoption ld ';;
9992 lt_prog_compiler_wl='-Wl,';;
9997 lt_prog_compiler_wl='-Qoption ld '
9998 lt_prog_compiler_pic='-PIC'
9999 lt_prog_compiler_static='-Bstatic'
10002 sysv4 | sysv4.2uw2* | sysv4.3*)
10003 lt_prog_compiler_wl='-Wl,'
10004 lt_prog_compiler_pic='-KPIC'
10005 lt_prog_compiler_static='-Bstatic'
10009 if test -d /usr/nec ;then
10010 lt_prog_compiler_pic='-Kconform_pic'
10011 lt_prog_compiler_static='-Bstatic'
10015 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10016 lt_prog_compiler_wl='-Wl,'
10017 lt_prog_compiler_pic='-KPIC'
10018 lt_prog_compiler_static='-Bstatic'
10022 lt_prog_compiler_wl='-Wl,'
10023 lt_prog_compiler_can_build_shared=no
10027 lt_prog_compiler_pic='-pic'
10028 lt_prog_compiler_static='-Bstatic'
10032 lt_prog_compiler_can_build_shared=no
10038 # For platforms which do not support PIC, -DPIC is meaningless:
10040 lt_prog_compiler_pic=
10043 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10048 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10049 if ${lt_cv_prog_compiler_pic+:} false; then :
10050 $as_echo_n "(cached) " >&6
10052 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
10054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10055 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
10056 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10059 # Check to make sure the PIC flag actually works.
10061 if test -n "$lt_prog_compiler_pic"; then
10062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10063 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10064 if ${lt_cv_prog_compiler_pic_works+:} false; then :
10065 $as_echo_n "(cached) " >&6
10067 lt_cv_prog_compiler_pic_works=no
10068 ac_outfile=conftest.$ac_objext
10069 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10070 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
10071 # Insert the option either (1) after the last *FLAGS variable, or
10072 # (2) before a word containing "conftest.", or (3) at the end.
10073 # Note that $ac_compile itself does not contain backslashes and begins
10074 # with a dollar sign (not a hyphen), so the echo should work correctly.
10075 # The option is referenced via a variable to avoid confusing sed.
10076 lt_compile=`echo "$ac_compile" | $SED \
10077 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10078 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10079 -e 's:$: $lt_compiler_flag:'`
10080 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10081 (eval "$lt_compile" 2>conftest.err)
10083 cat conftest.err >&5
10084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10085 if (exit $ac_status) && test -s "$ac_outfile"; then
10086 # The compiler can only warn and ignore the option if not recognized
10087 # So say no if there are warnings other than the usual output.
10088 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10089 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10090 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10091 lt_cv_prog_compiler_pic_works=yes
10097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10098 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10100 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
10101 case $lt_prog_compiler_pic in
10103 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10106 lt_prog_compiler_pic=
10107 lt_prog_compiler_can_build_shared=no
10123 # Check to make sure the static flag actually works.
10125 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10127 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10128 if ${lt_cv_prog_compiler_static_works+:} false; then :
10129 $as_echo_n "(cached) " >&6
10131 lt_cv_prog_compiler_static_works=no
10132 save_LDFLAGS="$LDFLAGS"
10133 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10134 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10135 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10136 # The linker can only warn and ignore the option if not recognized
10137 # So say no if there are warnings
10138 if test -s conftest.err; then
10139 # Append any errors to the config.log.
10140 cat conftest.err 1>&5
10141 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10142 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10143 if diff conftest.exp conftest.er2 >/dev/null; then
10144 lt_cv_prog_compiler_static_works=yes
10147 lt_cv_prog_compiler_static_works=yes
10151 LDFLAGS="$save_LDFLAGS"
10154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10155 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10157 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
10160 lt_prog_compiler_static=
10169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10170 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10171 if ${lt_cv_prog_compiler_c_o+:} false; then :
10172 $as_echo_n "(cached) " >&6
10174 lt_cv_prog_compiler_c_o=no
10175 $RM -r conftest 2>/dev/null
10179 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10181 lt_compiler_flag="-o out/conftest2.$ac_objext"
10182 # Insert the option either (1) after the last *FLAGS variable, or
10183 # (2) before a word containing "conftest.", or (3) at the end.
10184 # Note that $ac_compile itself does not contain backslashes and begins
10185 # with a dollar sign (not a hyphen), so the echo should work correctly.
10186 lt_compile=`echo "$ac_compile" | $SED \
10187 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10188 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10189 -e 's:$: $lt_compiler_flag:'`
10190 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10191 (eval "$lt_compile" 2>out/conftest.err)
10193 cat out/conftest.err >&5
10194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10195 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10197 # The compiler can only warn and ignore the option if not recognized
10198 # So say no if there are warnings
10199 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10200 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10201 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10202 lt_cv_prog_compiler_c_o=yes
10207 # SGI C++ compiler will create directory out/ii_files/ for
10208 # template instantiation
10209 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10210 $RM out/* && rmdir out
10216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10217 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10225 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10226 if ${lt_cv_prog_compiler_c_o+:} false; then :
10227 $as_echo_n "(cached) " >&6
10229 lt_cv_prog_compiler_c_o=no
10230 $RM -r conftest 2>/dev/null
10234 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10236 lt_compiler_flag="-o out/conftest2.$ac_objext"
10237 # Insert the option either (1) after the last *FLAGS variable, or
10238 # (2) before a word containing "conftest.", or (3) at the end.
10239 # Note that $ac_compile itself does not contain backslashes and begins
10240 # with a dollar sign (not a hyphen), so the echo should work correctly.
10241 lt_compile=`echo "$ac_compile" | $SED \
10242 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10243 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10244 -e 's:$: $lt_compiler_flag:'`
10245 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10246 (eval "$lt_compile" 2>out/conftest.err)
10248 cat out/conftest.err >&5
10249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10250 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10252 # The compiler can only warn and ignore the option if not recognized
10253 # So say no if there are warnings
10254 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10255 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10256 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10257 lt_cv_prog_compiler_c_o=yes
10262 # SGI C++ compiler will create directory out/ii_files/ for
10263 # template instantiation
10264 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10265 $RM out/* && rmdir out
10271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10272 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10277 hard_links="nottested"
10278 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10279 # do not overwrite the value of need_locks provided by the user
10280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10281 $as_echo_n "checking if we can lock with hard links... " >&6; }
10284 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10286 ln conftest.a conftest.b 2>&5 || hard_links=no
10287 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10289 $as_echo "$hard_links" >&6; }
10290 if test "$hard_links" = no; then
10291 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10292 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10305 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10308 allow_undefined_flag=
10309 always_export_symbols=no
10311 archive_expsym_cmds=
10312 compiler_needs_object=no
10313 enable_shared_with_static_runtimes=no
10314 export_dynamic_flag_spec=
10315 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10316 hardcode_automatic=no
10318 hardcode_direct_absolute=no
10319 hardcode_libdir_flag_spec=
10320 hardcode_libdir_separator=
10321 hardcode_minus_L=no
10322 hardcode_shlibpath_var=unsupported
10324 link_all_deplibs=unknown
10326 module_expsym_cmds=
10327 old_archive_from_new_cmds=
10328 old_archive_from_expsyms_cmds=
10329 thread_safe_flag_spec=
10330 whole_archive_flag_spec=
10331 # include_expsyms should be a list of space-separated symbols to be *always*
10332 # included in the symbol list
10334 # exclude_expsyms can be an extended regexp of symbols to exclude
10335 # it will be wrapped by ` (' and `)$', so one must not match beginning or
10336 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10337 # as well as any symbol that contains `d'.
10338 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10339 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10340 # platforms (ab)use it in PIC code, but their linkers get confused if
10341 # the symbol is explicitly referenced. Since portable code cannot
10342 # rely on this symbol name, it's probably fine to never include it in
10343 # preloaded symbol tables.
10344 # Exclude shared library initialization/finalization symbols.
10345 extract_expsyms_cmds=
10348 cygwin* | mingw* | pw32* | cegcc*)
10349 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10350 # When not using gcc, we currently assume that we are using
10351 # Microsoft Visual C++.
10352 if test "$GCC" != yes; then
10357 # we just hope/assume this is gcc and not c89 (= MSVC++)
10363 linux* | k*bsd*-gnu | gnu*)
10364 link_all_deplibs=no
10370 # On some targets, GNU ld is compatible enough with the native linker
10371 # that we're better off using the native interface for both.
10372 lt_use_gnu_ld_interface=no
10373 if test "$with_gnu_ld" = yes; then
10376 # The AIX port of GNU ld has always aspired to compatibility
10377 # with the native linker. However, as the warning in the GNU ld
10378 # block says, versions before 2.19.5* couldn't really create working
10379 # shared libraries, regardless of the interface used.
10380 case `$LD -v 2>&1` in
10381 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10382 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10383 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10385 lt_use_gnu_ld_interface=yes
10390 lt_use_gnu_ld_interface=yes
10395 if test "$lt_use_gnu_ld_interface" = yes; then
10396 # If archive_cmds runs LD, not CC, wlarc should be empty
10399 # Set some defaults for GNU ld with shared library support. These
10400 # are reset later if shared libraries are not supported. Putting them
10401 # here allows them to be overridden if necessary.
10402 runpath_var=LD_RUN_PATH
10403 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10404 export_dynamic_flag_spec='${wl}--export-dynamic'
10405 # ancient GNU ld didn't support --whole-archive et. al.
10406 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10407 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10409 whole_archive_flag_spec=
10411 supports_anon_versioning=no
10412 case `$LD -v 2>&1` in
10413 *GNU\ gold*) supports_anon_versioning=yes ;;
10414 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10415 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10416 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10417 *\ 2.11.*) ;; # other 2.11 versions
10418 *) supports_anon_versioning=yes ;;
10421 # See if GNU ld supports shared libraries.
10424 # On AIX/PPC, the GNU linker is very broken
10425 if test "$host_cpu" != ia64; then
10429 *** Warning: the GNU linker, at least up to release 2.19, is reported
10430 *** to be unable to reliably create shared libraries on AIX.
10431 *** Therefore, libtool is disabling shared libraries support. If you
10432 *** really care for shared libraries, you may want to install binutils
10433 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10434 *** You will then need to restart the configuration process.
10443 # see comment about AmigaOS4 .so support
10444 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10445 archive_expsym_cmds=''
10448 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)'
10449 hardcode_libdir_flag_spec='-L$libdir'
10450 hardcode_minus_L=yes
10456 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10457 allow_undefined_flag=unsupported
10458 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10459 # support --undefined. This deserves some investigation. FIXME
10460 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10466 cygwin* | mingw* | pw32* | cegcc*)
10467 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10468 # as there is no search path for DLLs.
10469 hardcode_libdir_flag_spec='-L$libdir'
10470 export_dynamic_flag_spec='${wl}--export-all-symbols'
10471 allow_undefined_flag=unsupported
10472 always_export_symbols=no
10473 enable_shared_with_static_runtimes=yes
10474 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'
10475 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10477 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10478 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10479 # If the export-symbols file already is a .def file (1st line
10480 # is EXPORTS), use it as is; otherwise, prepend...
10481 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10482 cp $export_symbols $output_objdir/$soname.def;
10484 echo EXPORTS > $output_objdir/$soname.def;
10485 cat $export_symbols >> $output_objdir/$soname.def;
10487 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10494 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10495 link_all_deplibs=yes
10500 hardcode_shlibpath_var=no
10501 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10502 export_dynamic_flag_spec='${wl}-E'
10503 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10504 # Instead, shared libraries are loaded at an image base (0x10000000 by
10505 # default) and relocated if they conflict, which is a slow very memory
10506 # consuming and fragmenting process. To avoid this, we pick a random,
10507 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10508 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10509 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10510 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'
10513 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10515 if test "$host_os" = linux-dietlibc; then
10516 case $cc_basename in
10517 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10520 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10521 && test "$tmp_diet" = no
10523 tmp_addflag=' $pic_flag'
10524 tmp_sharedflag='-shared'
10525 case $cc_basename,$host_cpu in
10526 pgcc*) # Portland Group C compiler
10527 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'
10528 tmp_addflag=' $pic_flag'
10530 pgf77* | pgf90* | pgf95* | pgfortran*)
10531 # Portland Group f77 and f90 compilers
10532 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'
10533 tmp_addflag=' $pic_flag -Mnomain' ;;
10534 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10535 tmp_addflag=' -i_dynamic' ;;
10536 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10537 tmp_addflag=' -i_dynamic -nofor_main' ;;
10538 ifc* | ifort*) # Intel Fortran compiler
10539 tmp_addflag=' -nofor_main' ;;
10540 lf95*) # Lahey Fortran 8.1
10541 whole_archive_flag_spec=
10542 tmp_sharedflag='--shared' ;;
10543 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10544 tmp_sharedflag='-qmkshrobj'
10546 nvcc*) # Cuda Compiler Driver 2.2
10547 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'
10548 compiler_needs_object=yes
10551 case `$CC -V 2>&1 | sed 5q` in
10552 *Sun\ C*) # Sun C 5.9
10553 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'
10554 compiler_needs_object=yes
10555 tmp_sharedflag='-G' ;;
10556 *Sun\ F*) # Sun Fortran 8.3
10557 tmp_sharedflag='-G' ;;
10559 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10561 if test "x$supports_anon_versioning" = xyes; then
10562 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10563 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10564 echo "local: *; };" >> $output_objdir/$libname.ver~
10565 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10568 case $cc_basename in
10569 xlf* | bgf* | bgxlf* | mpixlf*)
10570 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10571 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10572 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10573 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10574 if test "x$supports_anon_versioning" = xyes; then
10575 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10576 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10577 echo "local: *; };" >> $output_objdir/$libname.ver~
10578 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10587 netbsd* | netbsdelf*-gnu)
10588 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10589 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10592 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10593 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10598 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10602 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10603 *** create shared libraries on Solaris systems. Therefore, libtool
10604 *** is disabling shared libraries support. We urge you to upgrade GNU
10605 *** binutils to release 2.9.1 or newer. Another option is to modify
10606 *** your PATH or compiler configuration so that the native linker is
10607 *** used, and then restart.
10610 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10611 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10612 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10618 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10619 case `$LD -v 2>&1` in
10620 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10624 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10625 *** reliably create shared libraries on SCO systems. Therefore, libtool
10626 *** is disabling shared libraries support. We urge you to upgrade GNU
10627 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10628 *** your PATH or compiler configuration so that the native linker is
10629 *** used, and then restart.
10634 # For security reasons, it is highly recommended that you always
10635 # use absolute paths for naming shared libraries, and exclude the
10636 # DT_RUNPATH tag from executables and libraries. But doing so
10637 # requires that you compile everything twice, which is a pain.
10638 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10639 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10640 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10641 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10650 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10652 hardcode_direct=yes
10653 hardcode_shlibpath_var=no
10657 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10658 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10659 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10666 if test "$ld_shlibs" = no; then
10668 hardcode_libdir_flag_spec=
10669 export_dynamic_flag_spec=
10670 whole_archive_flag_spec=
10673 # PORTME fill in a description of your system's linker (not GNU ld)
10676 allow_undefined_flag=unsupported
10677 always_export_symbols=yes
10678 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'
10679 # Note: this linker hardcodes the directories in LIBPATH if there
10680 # are no directories specified by -L.
10681 hardcode_minus_L=yes
10682 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10683 # Neither direct hardcoding nor static linking is supported with a
10685 hardcode_direct=unsupported
10690 if test "$host_cpu" = ia64; then
10691 # On IA64, the linker does run time linking by default, so we don't
10692 # have to do anything special.
10693 aix_use_runtimelinking=no
10694 exp_sym_flag='-Bexport'
10697 # If we're using GNU nm, then we don't want the "-C" option.
10698 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10699 # Also, AIX nm treats weak defined symbols like other global
10700 # defined symbols, whereas GNU nm marks them as "W".
10701 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10702 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'
10704 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'
10706 aix_use_runtimelinking=no
10708 # Test if we are trying to use run time linking or normal
10709 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10710 # need to do runtime linking.
10711 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10712 for ld_flag in $LDFLAGS; do
10713 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10714 aix_use_runtimelinking=yes
10721 exp_sym_flag='-bexport'
10722 no_entry_flag='-bnoentry'
10725 # When large executables or shared objects are built, AIX ld can
10726 # have problems creating the table of contents. If linking a library
10727 # or program results in "error TOC overflow" add -mminimal-toc to
10728 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10729 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10732 hardcode_direct=yes
10733 hardcode_direct_absolute=yes
10734 hardcode_libdir_separator=':'
10735 link_all_deplibs=yes
10736 file_list_spec='${wl}-f,'
10738 if test "$GCC" = yes; then
10739 case $host_os in aix4.[012]|aix4.[012].*)
10740 # We only want to do this on AIX 4.2 and lower, the check
10741 # below for broken collect2 doesn't work under 4.3+
10742 collect2name=`${CC} -print-prog-name=collect2`
10743 if test -f "$collect2name" &&
10744 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10746 # We have reworked collect2
10749 # We have old collect2
10750 hardcode_direct=unsupported
10751 # It fails to find uninstalled libraries when the uninstalled
10752 # path is not listed in the libpath. Setting hardcode_minus_L
10753 # to unsupported forces relinking
10754 hardcode_minus_L=yes
10755 hardcode_libdir_flag_spec='-L$libdir'
10756 hardcode_libdir_separator=
10760 shared_flag='-shared'
10761 if test "$aix_use_runtimelinking" = yes; then
10762 shared_flag="$shared_flag "'${wl}-G'
10764 link_all_deplibs=no
10767 if test "$host_cpu" = ia64; then
10768 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10769 # chokes on -Wl,-G. The following line is correct:
10772 if test "$aix_use_runtimelinking" = yes; then
10773 shared_flag='${wl}-G'
10775 shared_flag='${wl}-bM:SRE'
10780 export_dynamic_flag_spec='${wl}-bexpall'
10781 # It seems that -bexpall does not export symbols beginning with
10782 # underscore (_), so it is better to generate a list of symbols to export.
10783 always_export_symbols=yes
10784 if test "$aix_use_runtimelinking" = yes; then
10785 # Warning - without using the other runtime loading flags (-brtl),
10786 # -berok will link without error, but may produce a broken library.
10787 allow_undefined_flag='-berok'
10788 # Determine the default libpath from the value encoded in an
10789 # empty executable.
10790 if test "${lt_cv_aix_libpath+set}" = set; then
10791 aix_libpath=$lt_cv_aix_libpath
10793 if ${lt_cv_aix_libpath_+:} false; then :
10794 $as_echo_n "(cached) " >&6
10796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10797 /* end confdefs.h. */
10807 if ac_fn_c_try_link "$LINENO"; then :
10809 lt_aix_libpath_sed='
10810 /Import File Strings/,/^$/ {
10812 s/^0 *\([^ ]*\) *$/\1/
10816 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10817 # Check for a 64-bit object if we didn't find anything.
10818 if test -z "$lt_cv_aix_libpath_"; then
10819 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10822 rm -f core conftest.err conftest.$ac_objext \
10823 conftest$ac_exeext conftest.$ac_ext
10824 if test -z "$lt_cv_aix_libpath_"; then
10825 lt_cv_aix_libpath_="/usr/lib:/lib"
10830 aix_libpath=$lt_cv_aix_libpath_
10833 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10834 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"
10836 if test "$host_cpu" = ia64; then
10837 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10838 allow_undefined_flag="-z nodefs"
10839 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"
10841 # Determine the default libpath from the value encoded in an
10842 # empty executable.
10843 if test "${lt_cv_aix_libpath+set}" = set; then
10844 aix_libpath=$lt_cv_aix_libpath
10846 if ${lt_cv_aix_libpath_+:} false; then :
10847 $as_echo_n "(cached) " >&6
10849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10850 /* end confdefs.h. */
10860 if ac_fn_c_try_link "$LINENO"; then :
10862 lt_aix_libpath_sed='
10863 /Import File Strings/,/^$/ {
10865 s/^0 *\([^ ]*\) *$/\1/
10869 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10870 # Check for a 64-bit object if we didn't find anything.
10871 if test -z "$lt_cv_aix_libpath_"; then
10872 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10875 rm -f core conftest.err conftest.$ac_objext \
10876 conftest$ac_exeext conftest.$ac_ext
10877 if test -z "$lt_cv_aix_libpath_"; then
10878 lt_cv_aix_libpath_="/usr/lib:/lib"
10883 aix_libpath=$lt_cv_aix_libpath_
10886 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10887 # Warning - without using the other run time loading flags,
10888 # -berok will link without error, but may produce a broken library.
10889 no_undefined_flag=' ${wl}-bernotok'
10890 allow_undefined_flag=' ${wl}-berok'
10891 if test "$with_gnu_ld" = yes; then
10892 # We only use this code for GNU lds that support --whole-archive.
10893 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10895 # Exported symbols can be pulled into shared objects from archives
10896 whole_archive_flag_spec='$convenience'
10898 archive_cmds_need_lc=yes
10899 # This is similar to how AIX traditionally builds its shared libraries.
10900 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'
10908 # see comment about AmigaOS4 .so support
10909 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10910 archive_expsym_cmds=''
10913 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)'
10914 hardcode_libdir_flag_spec='-L$libdir'
10915 hardcode_minus_L=yes
10921 export_dynamic_flag_spec=-rdynamic
10924 cygwin* | mingw* | pw32* | cegcc*)
10925 # When not using gcc, we currently assume that we are using
10926 # Microsoft Visual C++.
10927 # hardcode_libdir_flag_spec is actually meaningless, as there is
10928 # no search path for DLLs.
10929 case $cc_basename in
10932 hardcode_libdir_flag_spec=' '
10933 allow_undefined_flag=unsupported
10934 always_export_symbols=yes
10936 # Tell ltmain to make .lib files, not .a files.
10938 # Tell ltmain to make .dll files, not .so files.
10940 # FIXME: Setting linknames here is a bad hack.
10941 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
10942 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10943 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
10945 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
10947 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10949 # The linker will not automatically build a static lib if we build a DLL.
10950 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10951 enable_shared_with_static_runtimes=yes
10952 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10953 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10955 old_postinstall_cmds='chmod 644 $oldlib'
10956 postlink_cmds='lt_outputfile="@OUTPUT@"~
10957 lt_tool_outputfile="@TOOL_OUTPUT@"~
10958 case $lt_outputfile in
10961 lt_outputfile="$lt_outputfile.exe"
10962 lt_tool_outputfile="$lt_tool_outputfile.exe"
10965 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10966 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10967 $RM "$lt_outputfile.manifest";
10971 # Assume MSVC wrapper
10972 hardcode_libdir_flag_spec=' '
10973 allow_undefined_flag=unsupported
10974 # Tell ltmain to make .lib files, not .a files.
10976 # Tell ltmain to make .dll files, not .so files.
10978 # FIXME: Setting linknames here is a bad hack.
10979 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10980 # The linker will automatically build a .lib file if we build a DLL.
10981 old_archive_from_new_cmds='true'
10982 # FIXME: Should let the user specify the lib program.
10983 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10984 enable_shared_with_static_runtimes=yes
10989 darwin* | rhapsody*)
10992 archive_cmds_need_lc=no
10994 hardcode_automatic=yes
10995 hardcode_shlibpath_var=unsupported
10996 if test "$lt_cv_ld_force_load" = "yes"; then
10997 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\"`'
11000 whole_archive_flag_spec=''
11002 link_all_deplibs=yes
11003 allow_undefined_flag="$_lt_dar_allow_undefined"
11004 case $cc_basename in
11005 ifort*) _lt_dar_can_shared=yes ;;
11006 *) _lt_dar_can_shared=$GCC ;;
11008 if test "$_lt_dar_can_shared" = "yes"; then
11009 output_verbose_link_cmd=func_echo_all
11010 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
11011 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11012 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}"
11013 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}"
11022 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11023 hardcode_libdir_flag_spec='-L$libdir'
11024 hardcode_shlibpath_var=no
11027 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11028 # support. Future versions do this automatically, but an explicit c++rt0.o
11029 # does not break anything, and helps significantly (at the cost of a little
11032 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11033 hardcode_libdir_flag_spec='-R$libdir'
11034 hardcode_direct=yes
11035 hardcode_shlibpath_var=no
11038 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11040 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11041 hardcode_direct=yes
11042 hardcode_minus_L=yes
11043 hardcode_shlibpath_var=no
11046 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11047 freebsd* | dragonfly*)
11048 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11049 hardcode_libdir_flag_spec='-R$libdir'
11050 hardcode_direct=yes
11051 hardcode_shlibpath_var=no
11055 if test "$GCC" = yes; then
11056 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'
11058 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'
11060 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11061 hardcode_libdir_separator=:
11062 hardcode_direct=yes
11064 # hardcode_minus_L: Not really in the search PATH,
11065 # but as the default location of the library.
11066 hardcode_minus_L=yes
11067 export_dynamic_flag_spec='${wl}-E'
11071 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11072 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11074 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11076 if test "$with_gnu_ld" = no; then
11077 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11078 hardcode_libdir_separator=:
11079 hardcode_direct=yes
11080 hardcode_direct_absolute=yes
11081 export_dynamic_flag_spec='${wl}-E'
11082 # hardcode_minus_L: Not really in the search PATH,
11083 # but as the default location of the library.
11084 hardcode_minus_L=yes
11089 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11092 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11095 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11098 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11104 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11107 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11111 # Older versions of the 11.00 compiler do not understand -b yet
11112 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11114 $as_echo_n "checking if $CC understands -b... " >&6; }
11115 if ${lt_cv_prog_compiler__b+:} false; then :
11116 $as_echo_n "(cached) " >&6
11118 lt_cv_prog_compiler__b=no
11119 save_LDFLAGS="$LDFLAGS"
11120 LDFLAGS="$LDFLAGS -b"
11121 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11122 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11123 # The linker can only warn and ignore the option if not recognized
11124 # So say no if there are warnings
11125 if test -s conftest.err; then
11126 # Append any errors to the config.log.
11127 cat conftest.err 1>&5
11128 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11129 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11130 if diff conftest.exp conftest.er2 >/dev/null; then
11131 lt_cv_prog_compiler__b=yes
11134 lt_cv_prog_compiler__b=yes
11138 LDFLAGS="$save_LDFLAGS"
11141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11142 $as_echo "$lt_cv_prog_compiler__b" >&6; }
11144 if test x"$lt_cv_prog_compiler__b" = xyes; then
11145 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11147 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11153 if test "$with_gnu_ld" = no; then
11154 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11155 hardcode_libdir_separator=:
11160 hardcode_shlibpath_var=no
11163 hardcode_direct=yes
11164 hardcode_direct_absolute=yes
11165 export_dynamic_flag_spec='${wl}-E'
11167 # hardcode_minus_L: Not really in the search PATH,
11168 # but as the default location of the library.
11169 hardcode_minus_L=yes
11175 irix5* | irix6* | nonstopux*)
11176 if test "$GCC" = yes; then
11177 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'
11178 # Try to use the -exported_symbol ld option, if it does not
11179 # work, assume that -exports_file does not work either and
11180 # implicitly export all symbols.
11181 # This should be the same for all languages, so no per-tag cache variable.
11182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11183 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11184 if ${lt_cv_irix_exported_symbol+:} false; then :
11185 $as_echo_n "(cached) " >&6
11187 save_LDFLAGS="$LDFLAGS"
11188 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
11189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11190 /* end confdefs.h. */
11191 int foo (void) { return 0; }
11193 if ac_fn_c_try_link "$LINENO"; then :
11194 lt_cv_irix_exported_symbol=yes
11196 lt_cv_irix_exported_symbol=no
11198 rm -f core conftest.err conftest.$ac_objext \
11199 conftest$ac_exeext conftest.$ac_ext
11200 LDFLAGS="$save_LDFLAGS"
11202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11203 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
11204 if test "$lt_cv_irix_exported_symbol" = yes; then
11205 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'
11208 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'
11209 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'
11211 archive_cmds_need_lc='no'
11212 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11213 hardcode_libdir_separator=:
11215 link_all_deplibs=yes
11218 netbsd* | netbsdelf*-gnu)
11219 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11220 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11222 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11224 hardcode_libdir_flag_spec='-R$libdir'
11225 hardcode_direct=yes
11226 hardcode_shlibpath_var=no
11230 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11231 hardcode_direct=yes
11232 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11233 hardcode_libdir_separator=:
11234 hardcode_shlibpath_var=no
11241 if test -f /usr/libexec/ld.so; then
11242 hardcode_direct=yes
11243 hardcode_shlibpath_var=no
11244 hardcode_direct_absolute=yes
11245 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11246 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11247 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
11248 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11249 export_dynamic_flag_spec='${wl}-E'
11252 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
11253 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11254 hardcode_libdir_flag_spec='-R$libdir'
11257 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11258 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11268 hardcode_libdir_flag_spec='-L$libdir'
11269 hardcode_minus_L=yes
11270 allow_undefined_flag=unsupported
11271 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'
11272 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11276 if test "$GCC" = yes; then
11277 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11278 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'
11280 allow_undefined_flag=' -expect_unresolved \*'
11281 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'
11283 archive_cmds_need_lc='no'
11284 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11285 hardcode_libdir_separator=:
11288 osf4* | osf5*) # as osf3* with the addition of -msym flag
11289 if test "$GCC" = yes; then
11290 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11291 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'
11292 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11294 allow_undefined_flag=' -expect_unresolved \*'
11295 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'
11296 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~
11297 $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'
11299 # Both c and cxx compiler support -rpath directly
11300 hardcode_libdir_flag_spec='-rpath $libdir'
11302 archive_cmds_need_lc='no'
11303 hardcode_libdir_separator=:
11307 no_undefined_flag=' -z defs'
11308 if test "$GCC" = yes; then
11310 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11311 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11312 $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'
11314 case `$CC -V 2>&1` in
11317 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11318 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11319 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11323 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11324 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11325 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11329 hardcode_libdir_flag_spec='-R$libdir'
11330 hardcode_shlibpath_var=no
11332 solaris2.[0-5] | solaris2.[0-5].*) ;;
11334 # The compiler driver will combine and reorder linker options,
11335 # but understands `-z linker_flag'. GCC discards it without `$wl',
11336 # but is careful enough not to reorder.
11337 # Supported since Solaris 2.6 (maybe 2.5.1?)
11338 if test "$GCC" = yes; then
11339 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11341 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11345 link_all_deplibs=yes
11349 if test "x$host_vendor" = xsequent; then
11350 # Use $CC to link under sequent, because it throws in some extra .o
11351 # files that make .init and .fini sections work.
11352 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11354 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11356 hardcode_libdir_flag_spec='-L$libdir'
11357 hardcode_direct=yes
11358 hardcode_minus_L=yes
11359 hardcode_shlibpath_var=no
11363 case $host_vendor in
11365 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11366 hardcode_direct=yes # is this really true???
11369 ## LD is ld it makes a PLAMLIB
11370 ## CC just makes a GrossModule.
11371 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11372 reload_cmds='$CC -r -o $output$reload_objs'
11376 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11377 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11380 runpath_var='LD_RUN_PATH'
11381 hardcode_shlibpath_var=no
11385 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11386 hardcode_shlibpath_var=no
11387 export_dynamic_flag_spec='-Bexport'
11391 if test -d /usr/nec; then
11392 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11393 hardcode_shlibpath_var=no
11394 runpath_var=LD_RUN_PATH
11395 hardcode_runpath_var=yes
11400 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11401 no_undefined_flag='${wl}-z,text'
11402 archive_cmds_need_lc=no
11403 hardcode_shlibpath_var=no
11404 runpath_var='LD_RUN_PATH'
11406 if test "$GCC" = yes; then
11407 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11408 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11410 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11411 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11415 sysv5* | sco3.2v5* | sco5v6*)
11416 # Note: We can NOT use -z defs as we might desire, because we do not
11417 # link with -lc, and that would cause any symbols used from libc to
11418 # always be unresolved, which means just about no library would
11419 # ever link correctly. If we're not using GNU ld we use -z text
11420 # though, which does catch some bad symbols but isn't as heavy-handed
11422 no_undefined_flag='${wl}-z,text'
11423 allow_undefined_flag='${wl}-z,nodefs'
11424 archive_cmds_need_lc=no
11425 hardcode_shlibpath_var=no
11426 hardcode_libdir_flag_spec='${wl}-R,$libdir'
11427 hardcode_libdir_separator=':'
11428 link_all_deplibs=yes
11429 export_dynamic_flag_spec='${wl}-Bexport'
11430 runpath_var='LD_RUN_PATH'
11432 if test "$GCC" = yes; then
11433 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11434 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11436 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11437 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11442 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11443 hardcode_libdir_flag_spec='-L$libdir'
11444 hardcode_shlibpath_var=no
11452 if test x$host_vendor = xsni; then
11454 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11455 export_dynamic_flag_spec='${wl}-Blargedynsym'
11461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11462 $as_echo "$ld_shlibs" >&6; }
11463 test "$ld_shlibs" = no && can_build_shared=no
11465 with_gnu_ld=$with_gnu_ld
11482 # Do we need to explicitly link libc?
11484 case "x$archive_cmds_need_lc" in
11486 # Assume -lc should be added
11487 archive_cmds_need_lc=yes
11489 if test "$enable_shared" = yes && test "$GCC" = yes; then
11490 case $archive_cmds in
11492 # FIXME: we may have to deal with multi-command sequences.
11495 # Test whether the compiler implicitly links with -lc since on some
11496 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11497 # to ld, don't add -lc before -lgcc.
11498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11499 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11500 if ${lt_cv_archive_cmds_need_lc+:} false; then :
11501 $as_echo_n "(cached) " >&6
11504 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11506 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11507 (eval $ac_compile) 2>&5
11509 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11510 test $ac_status = 0; } 2>conftest.err; then
11513 libobjs=conftest.$ac_objext
11515 wl=$lt_prog_compiler_wl
11516 pic_flag=$lt_prog_compiler_pic
11522 lt_save_allow_undefined_flag=$allow_undefined_flag
11523 allow_undefined_flag=
11524 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11525 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11527 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11528 test $ac_status = 0; }
11530 lt_cv_archive_cmds_need_lc=no
11532 lt_cv_archive_cmds_need_lc=yes
11534 allow_undefined_flag=$lt_save_allow_undefined_flag
11536 cat conftest.err 1>&5
11541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11542 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11543 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11702 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11704 if test "$GCC" = yes; then
11706 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11707 *) lt_awk_arg="/^libraries:/" ;;
11710 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11711 *) lt_sed_strip_eq="s,=/,/,g" ;;
11713 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11714 case $lt_search_path_spec in
11716 # if the path contains ";" then we assume it to be the separator
11717 # otherwise default to the standard path separator (i.e. ":") - it is
11718 # assumed that no part of a normal pathname contains ";" but that should
11719 # okay in the real world where ";" in dirpaths is itself problematic.
11720 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11723 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11726 # Ok, now we have the path, separated by spaces, we can step through it
11727 # and add multilib dir if necessary.
11728 lt_tmp_lt_search_path_spec=
11729 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11730 for lt_sys_path in $lt_search_path_spec; do
11731 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11732 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11734 test -d "$lt_sys_path" && \
11735 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11738 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11739 BEGIN {RS=" "; FS="/|\n";} {
11742 for (lt_i = NF; lt_i > 0; lt_i--) {
11743 if ($lt_i != "" && $lt_i != ".") {
11744 if ($lt_i == "..") {
11747 if (lt_count == 0) {
11748 lt_foo="/" $lt_i lt_foo;
11755 if (lt_foo != "") { lt_freq[lt_foo]++; }
11756 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11758 # AWK program above erroneously prepends '/' to C:/dos/paths
11761 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11762 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11764 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11766 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11768 library_names_spec=
11769 libname_spec='lib$name'
11773 postuninstall_cmds=
11777 shlibpath_overrides_runpath=unknown
11779 dynamic_linker="$host_os ld.so"
11780 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11781 need_lib_prefix=unknown
11782 hardcode_into_libs=no
11784 # when you set need_version to no, make sure it does not cause -set_version
11785 # flags to be left without arguments
11786 need_version=unknown
11790 version_type=linux # correct to gnu/linux during the next big refactor
11791 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11792 shlibpath_var=LIBPATH
11794 # AIX 3 has no versioning support, so we append a major version to the name.
11795 soname_spec='${libname}${release}${shared_ext}$major'
11799 version_type=linux # correct to gnu/linux during the next big refactor
11802 hardcode_into_libs=yes
11803 if test "$host_cpu" = ia64; then
11804 # AIX 5 supports IA64
11805 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11806 shlibpath_var=LD_LIBRARY_PATH
11808 # With GCC up to 2.95.x, collect2 would create an import file
11809 # for dependence libraries. The import file would start with
11810 # the line `#! .'. This would cause the generated library to
11811 # depend on `.', always an invalid library. This was fixed in
11812 # development snapshots of GCC prior to 3.0.
11814 aix4 | aix4.[01] | aix4.[01].*)
11815 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11817 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11820 can_build_shared=no
11824 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11825 # soname into executable. Probably we can add versioning support to
11826 # collect2, so additional links can be useful in future.
11827 if test "$aix_use_runtimelinking" = yes; then
11828 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11829 # instead of lib<name>.a to let people know that these are not
11830 # typical AIX shared libraries.
11831 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11833 # We preserve .a as extension for shared libraries through AIX4.2
11834 # and later when we are not doing run time linking.
11835 library_names_spec='${libname}${release}.a $libname.a'
11836 soname_spec='${libname}${release}${shared_ext}$major'
11838 shlibpath_var=LIBPATH
11845 # Since July 2007 AmigaOS4 officially supports .so libraries.
11846 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11847 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11850 library_names_spec='$libname.ixlibrary $libname.a'
11851 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11852 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'
11858 library_names_spec='${libname}${shared_ext}'
11859 dynamic_linker="$host_os ld.so"
11860 shlibpath_var=LIBRARY_PATH
11864 version_type=linux # correct to gnu/linux during the next big refactor
11866 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11867 soname_spec='${libname}${release}${shared_ext}$major'
11868 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11869 shlibpath_var=LD_LIBRARY_PATH
11870 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11871 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11872 # the default ld.so.conf also contains /usr/contrib/lib and
11873 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11874 # libtool to hard-code these into programs
11877 cygwin* | mingw* | pw32* | cegcc*)
11878 version_type=windows
11883 case $GCC,$cc_basename in
11886 library_names_spec='$libname.dll.a'
11887 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11888 postinstall_cmds='base_file=`basename \${file}`~
11889 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11890 dldir=$destdir/`dirname \$dlpath`~
11891 test -d \$dldir || mkdir -p \$dldir~
11892 $install_prog $dir/$dlname \$dldir/$dlname~
11893 chmod a+x \$dldir/$dlname~
11894 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11895 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11897 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11898 dlpath=$dir/\$dldll~
11900 shlibpath_overrides_runpath=yes
11904 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11905 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11907 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11910 # MinGW DLLs use traditional 'lib' prefix
11911 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11914 # pw32 DLLs use 'pw' prefix rather than 'lib'
11915 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11918 dynamic_linker='Win32 ld.exe'
11923 libname_spec='$name'
11924 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11925 library_names_spec='${libname}.dll.lib'
11929 sys_lib_search_path_spec=
11932 for lt_path in $LIB
11935 # Let DOS variable expansion print the short 8.3 style file name.
11936 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11937 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11940 # Convert to MSYS style.
11941 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11944 # Convert to unix form, then to dos form, then back to unix form
11945 # but this time dos style (no spaces!) so that the unix form looks
11946 # like /cygdrive/c/PROGRA~1:/cygdr...
11947 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11948 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11949 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11952 sys_lib_search_path_spec="$LIB"
11953 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11954 # It is most probably a Windows format PATH.
11955 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11957 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11959 # FIXME: find the short name or the path components, as spaces are
11960 # common. (e.g. "Program Files" -> "PROGRA~1")
11964 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11965 postinstall_cmds='base_file=`basename \${file}`~
11966 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11967 dldir=$destdir/`dirname \$dlpath`~
11968 test -d \$dldir || mkdir -p \$dldir~
11969 $install_prog $dir/$dlname \$dldir/$dlname'
11970 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11971 dlpath=$dir/\$dldll~
11973 shlibpath_overrides_runpath=yes
11974 dynamic_linker='Win32 link.exe'
11978 # Assume MSVC wrapper
11979 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11980 dynamic_linker='Win32 ld.exe'
11983 # FIXME: first we should search . and the directory the executable is in
11987 darwin* | rhapsody*)
11988 dynamic_linker="$host_os dyld"
11989 version_type=darwin
11992 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11993 soname_spec='${libname}${release}${major}$shared_ext'
11994 shlibpath_overrides_runpath=yes
11995 shlibpath_var=DYLD_LIBRARY_PATH
11996 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11998 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11999 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12003 version_type=linux # correct to gnu/linux during the next big refactor
12006 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12007 soname_spec='${libname}${release}${shared_ext}$major'
12008 shlibpath_var=LD_LIBRARY_PATH
12011 freebsd* | dragonfly*)
12012 # DragonFly does not have aout. When/if they implement a new
12013 # versioning mechanism, adjust this.
12014 if test -x /usr/bin/objformat; then
12015 objformat=`/usr/bin/objformat`
12018 freebsd[23].*) objformat=aout ;;
12019 *) objformat=elf ;;
12022 version_type=freebsd-$objformat
12023 case $version_type in
12025 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12030 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12034 shlibpath_var=LD_LIBRARY_PATH
12037 shlibpath_overrides_runpath=yes
12039 freebsd3.[01]* | freebsdelf3.[01]*)
12040 shlibpath_overrides_runpath=yes
12041 hardcode_into_libs=yes
12043 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12044 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12045 shlibpath_overrides_runpath=no
12046 hardcode_into_libs=yes
12048 *) # from 4.6 on, and DragonFly
12049 shlibpath_overrides_runpath=yes
12050 hardcode_into_libs=yes
12056 version_type=linux # correct to gnu/linux during the next big refactor
12059 dynamic_linker="$host_os runtime_loader"
12060 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12061 soname_spec='${libname}${release}${shared_ext}$major'
12062 shlibpath_var=LIBRARY_PATH
12063 shlibpath_overrides_runpath=yes
12064 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12065 hardcode_into_libs=yes
12068 hpux9* | hpux10* | hpux11*)
12069 # Give a soname corresponding to the major version so that dld.sl refuses to
12070 # link against other versions.
12077 hardcode_into_libs=yes
12078 dynamic_linker="$host_os dld.so"
12079 shlibpath_var=LD_LIBRARY_PATH
12080 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12081 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12082 soname_spec='${libname}${release}${shared_ext}$major'
12083 if test "X$HPUX_IA64_MODE" = X32; then
12084 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12086 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12088 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12092 hardcode_into_libs=yes
12093 dynamic_linker="$host_os dld.sl"
12094 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12095 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12096 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12097 soname_spec='${libname}${release}${shared_ext}$major'
12098 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12099 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12103 dynamic_linker="$host_os dld.sl"
12104 shlibpath_var=SHLIB_PATH
12105 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12106 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12107 soname_spec='${libname}${release}${shared_ext}$major'
12110 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12111 postinstall_cmds='chmod 555 $lib'
12112 # or fails outright, so override atomically:
12113 install_override_mode=555
12117 version_type=linux # correct to gnu/linux during the next big refactor
12120 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12121 soname_spec='${libname}${release}${shared_ext}$major'
12122 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12123 shlibpath_var=LD_LIBRARY_PATH
12124 shlibpath_overrides_runpath=no
12125 hardcode_into_libs=yes
12128 irix5* | irix6* | nonstopux*)
12130 nonstopux*) version_type=nonstopux ;;
12132 if test "$lt_cv_prog_gnu_ld" = yes; then
12133 version_type=linux # correct to gnu/linux during the next big refactor
12140 soname_spec='${libname}${release}${shared_ext}$major'
12141 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12143 irix5* | nonstopux*)
12144 libsuff= shlibsuff=
12147 case $LD in # libtool.m4 will add one of these switches to LD
12148 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12149 libsuff= shlibsuff= libmagic=32-bit;;
12150 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12151 libsuff=32 shlibsuff=N32 libmagic=N32;;
12152 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12153 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12154 *) libsuff= shlibsuff= libmagic=never-match;;
12158 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12159 shlibpath_overrides_runpath=no
12160 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12161 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12162 hardcode_into_libs=yes
12165 # No shared lib support for Linux oldld, aout, or coff.
12166 linux*oldld* | linux*aout* | linux*coff*)
12170 # This must be glibc/ELF.
12171 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12172 version_type=linux # correct to gnu/linux during the next big refactor
12175 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12176 soname_spec='${libname}${release}${shared_ext}$major'
12177 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12178 shlibpath_var=LD_LIBRARY_PATH
12179 shlibpath_overrides_runpath=no
12181 # Some binutils ld are patched to set DT_RUNPATH
12182 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
12183 $as_echo_n "(cached) " >&6
12185 lt_cv_shlibpath_overrides_runpath=no
12186 save_LDFLAGS=$LDFLAGS
12187 save_libdir=$libdir
12188 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12189 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12191 /* end confdefs.h. */
12201 if ac_fn_c_try_link "$LINENO"; then :
12202 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12203 lt_cv_shlibpath_overrides_runpath=yes
12206 rm -f core conftest.err conftest.$ac_objext \
12207 conftest$ac_exeext conftest.$ac_ext
12208 LDFLAGS=$save_LDFLAGS
12209 libdir=$save_libdir
12213 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12215 # This implies no fast_install, which is unacceptable.
12216 # Some rework will be needed to allow for fast_install
12217 # before this can be enabled.
12218 hardcode_into_libs=yes
12220 # Append ld.so.conf contents to the search path
12221 if test -f /etc/ld.so.conf; then
12222 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' ' '`
12223 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12226 # We used to test for /lib/ld.so.1 and disable shared libraries on
12227 # powerpc, because MkLinux only supported shared libraries with the
12228 # GNU dynamic linker. Since this was broken with cross compilers,
12229 # most powerpc-linux boxes support dynamic linking these days and
12230 # people can always --disable-shared, the test was removed, and we
12231 # assume the GNU/Linux dynamic linker is in use.
12232 dynamic_linker='GNU/Linux ld.so'
12239 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12240 soname_spec='${libname}${release}${shared_ext}$major'
12241 shlibpath_var=LD_LIBRARY_PATH
12242 shlibpath_overrides_runpath=no
12243 hardcode_into_libs=yes
12244 dynamic_linker='NetBSD ld.elf_so'
12251 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12252 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12253 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12254 dynamic_linker='NetBSD (a.out) ld.so'
12256 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12257 soname_spec='${libname}${release}${shared_ext}$major'
12258 dynamic_linker='NetBSD ld.elf_so'
12260 shlibpath_var=LD_LIBRARY_PATH
12261 shlibpath_overrides_runpath=yes
12262 hardcode_into_libs=yes
12266 version_type=linux # correct to gnu/linux during the next big refactor
12267 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12268 shlibpath_var=LD_LIBRARY_PATH
12269 shlibpath_overrides_runpath=yes
12276 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12277 soname_spec='${libname}${release}${shared_ext}$major'
12278 shlibpath_var=LD_LIBRARY_PATH
12279 shlibpath_overrides_runpath=no
12280 hardcode_into_libs=yes
12281 dynamic_linker='ldqnx.so'
12286 sys_lib_dlsearch_path_spec="/usr/lib"
12288 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12290 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12291 *) need_version=no ;;
12293 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12294 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12295 shlibpath_var=LD_LIBRARY_PATH
12296 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12298 openbsd2.[89] | openbsd2.[89].*)
12299 shlibpath_overrides_runpath=no
12302 shlibpath_overrides_runpath=yes
12306 shlibpath_overrides_runpath=yes
12311 libname_spec='$name'
12314 library_names_spec='$libname${shared_ext} $libname.a'
12315 dynamic_linker='OS/2 ld.exe'
12316 shlibpath_var=LIBPATH
12319 osf3* | osf4* | osf5*)
12323 soname_spec='${libname}${release}${shared_ext}$major'
12324 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12325 shlibpath_var=LD_LIBRARY_PATH
12326 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12327 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12335 version_type=linux # correct to gnu/linux during the next big refactor
12338 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12339 soname_spec='${libname}${release}${shared_ext}$major'
12340 shlibpath_var=LD_LIBRARY_PATH
12341 shlibpath_overrides_runpath=yes
12342 hardcode_into_libs=yes
12343 # ldd complains unless libraries are executable
12344 postinstall_cmds='chmod +x $lib'
12349 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12350 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12351 shlibpath_var=LD_LIBRARY_PATH
12352 shlibpath_overrides_runpath=yes
12353 if test "$with_gnu_ld" = yes; then
12360 version_type=linux # correct to gnu/linux during the next big refactor
12361 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12362 soname_spec='${libname}${release}${shared_ext}$major'
12363 shlibpath_var=LD_LIBRARY_PATH
12364 case $host_vendor in
12366 shlibpath_overrides_runpath=no
12368 runpath_var=LD_RUN_PATH
12376 shlibpath_overrides_runpath=no
12377 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12383 if test -d /usr/nec ;then
12384 version_type=linux # correct to gnu/linux during the next big refactor
12385 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12386 soname_spec='$libname${shared_ext}.$major'
12387 shlibpath_var=LD_LIBRARY_PATH
12391 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12392 version_type=freebsd-elf
12395 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12396 soname_spec='${libname}${release}${shared_ext}$major'
12397 shlibpath_var=LD_LIBRARY_PATH
12398 shlibpath_overrides_runpath=yes
12399 hardcode_into_libs=yes
12400 if test "$with_gnu_ld" = yes; then
12401 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12403 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12406 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12410 sys_lib_dlsearch_path_spec='/usr/lib'
12414 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12415 version_type=linux # correct to gnu/linux during the next big refactor
12418 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12419 shlibpath_var=LD_LIBRARY_PATH
12420 shlibpath_overrides_runpath=no
12421 hardcode_into_libs=yes
12425 version_type=linux # correct to gnu/linux during the next big refactor
12426 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12427 soname_spec='${libname}${release}${shared_ext}$major'
12428 shlibpath_var=LD_LIBRARY_PATH
12435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12436 $as_echo "$dynamic_linker" >&6; }
12437 test "$dynamic_linker" = no && can_build_shared=no
12439 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12440 if test "$GCC" = yes; then
12441 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12444 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12445 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12447 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12448 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12543 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12545 if test -n "$hardcode_libdir_flag_spec" ||
12546 test -n "$runpath_var" ||
12547 test "X$hardcode_automatic" = "Xyes" ; then
12549 # We can hardcode non-existent directories.
12550 if test "$hardcode_direct" != no &&
12551 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12552 # have to relink, otherwise we might link with an installed library
12553 # when we should be linking with a yet-to-be-installed one
12554 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12555 test "$hardcode_minus_L" != no; then
12556 # Linking always hardcodes the temporary library directory.
12557 hardcode_action=relink
12559 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12560 hardcode_action=immediate
12563 # We cannot hardcode anything, or else we can only hardcode existing
12565 hardcode_action=unsupported
12567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12568 $as_echo "$hardcode_action" >&6; }
12570 if test "$hardcode_action" = relink ||
12571 test "$inherit_rpath" = yes; then
12572 # Fast installation is not supported
12573 enable_fast_install=no
12574 elif test "$shlibpath_overrides_runpath" = yes ||
12575 test "$enable_shared" = no; then
12576 # Fast installation is not necessary
12577 enable_fast_install=needless
12585 if test "x$enable_dlopen" != xyes; then
12586 enable_dlopen=unknown
12587 enable_dlopen_self=unknown
12588 enable_dlopen_self_static=unknown
12595 lt_cv_dlopen="load_add_on"
12597 lt_cv_dlopen_self=yes
12600 mingw* | pw32* | cegcc*)
12601 lt_cv_dlopen="LoadLibrary"
12606 lt_cv_dlopen="dlopen"
12611 # if libdl is installed we need to link against it
12612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12613 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12614 if ${ac_cv_lib_dl_dlopen+:} false; then :
12615 $as_echo_n "(cached) " >&6
12617 ac_check_lib_save_LIBS=$LIBS
12619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12620 /* end confdefs.h. */
12622 /* Override any GCC internal prototype to avoid an error.
12623 Use char because int might match the return type of a GCC
12624 builtin and then its argument prototype would still apply. */
12637 if ac_fn_c_try_link "$LINENO"; then :
12638 ac_cv_lib_dl_dlopen=yes
12640 ac_cv_lib_dl_dlopen=no
12642 rm -f core conftest.err conftest.$ac_objext \
12643 conftest$ac_exeext conftest.$ac_ext
12644 LIBS=$ac_check_lib_save_LIBS
12646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12647 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12648 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12649 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12652 lt_cv_dlopen="dyld"
12654 lt_cv_dlopen_self=yes
12661 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12662 if test "x$ac_cv_func_shl_load" = xyes; then :
12663 lt_cv_dlopen="shl_load"
12665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12666 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12667 if ${ac_cv_lib_dld_shl_load+:} false; then :
12668 $as_echo_n "(cached) " >&6
12670 ac_check_lib_save_LIBS=$LIBS
12672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12673 /* end confdefs.h. */
12675 /* Override any GCC internal prototype to avoid an error.
12676 Use char because int might match the return type of a GCC
12677 builtin and then its argument prototype would still apply. */
12685 return shl_load ();
12690 if ac_fn_c_try_link "$LINENO"; then :
12691 ac_cv_lib_dld_shl_load=yes
12693 ac_cv_lib_dld_shl_load=no
12695 rm -f core conftest.err conftest.$ac_objext \
12696 conftest$ac_exeext conftest.$ac_ext
12697 LIBS=$ac_check_lib_save_LIBS
12699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12700 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12701 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12702 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12704 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12705 if test "x$ac_cv_func_dlopen" = xyes; then :
12706 lt_cv_dlopen="dlopen"
12708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12709 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12710 if ${ac_cv_lib_dl_dlopen+:} false; then :
12711 $as_echo_n "(cached) " >&6
12713 ac_check_lib_save_LIBS=$LIBS
12715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12716 /* end confdefs.h. */
12718 /* Override any GCC internal prototype to avoid an error.
12719 Use char because int might match the return type of a GCC
12720 builtin and then its argument prototype would still apply. */
12733 if ac_fn_c_try_link "$LINENO"; then :
12734 ac_cv_lib_dl_dlopen=yes
12736 ac_cv_lib_dl_dlopen=no
12738 rm -f core conftest.err conftest.$ac_objext \
12739 conftest$ac_exeext conftest.$ac_ext
12740 LIBS=$ac_check_lib_save_LIBS
12742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12743 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12744 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12745 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12748 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12749 if ${ac_cv_lib_svld_dlopen+:} false; then :
12750 $as_echo_n "(cached) " >&6
12752 ac_check_lib_save_LIBS=$LIBS
12753 LIBS="-lsvld $LIBS"
12754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12755 /* end confdefs.h. */
12757 /* Override any GCC internal prototype to avoid an error.
12758 Use char because int might match the return type of a GCC
12759 builtin and then its argument prototype would still apply. */
12772 if ac_fn_c_try_link "$LINENO"; then :
12773 ac_cv_lib_svld_dlopen=yes
12775 ac_cv_lib_svld_dlopen=no
12777 rm -f core conftest.err conftest.$ac_objext \
12778 conftest$ac_exeext conftest.$ac_ext
12779 LIBS=$ac_check_lib_save_LIBS
12781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12782 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12783 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12784 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12787 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12788 if ${ac_cv_lib_dld_dld_link+:} false; then :
12789 $as_echo_n "(cached) " >&6
12791 ac_check_lib_save_LIBS=$LIBS
12793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12794 /* end confdefs.h. */
12796 /* Override any GCC internal prototype to avoid an error.
12797 Use char because int might match the return type of a GCC
12798 builtin and then its argument prototype would still apply. */
12806 return dld_link ();
12811 if ac_fn_c_try_link "$LINENO"; then :
12812 ac_cv_lib_dld_dld_link=yes
12814 ac_cv_lib_dld_dld_link=no
12816 rm -f core conftest.err conftest.$ac_objext \
12817 conftest$ac_exeext conftest.$ac_ext
12818 LIBS=$ac_check_lib_save_LIBS
12820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12821 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12822 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12823 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12844 if test "x$lt_cv_dlopen" != xno; then
12850 case $lt_cv_dlopen in
12852 save_CPPFLAGS="$CPPFLAGS"
12853 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12855 save_LDFLAGS="$LDFLAGS"
12856 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12859 LIBS="$lt_cv_dlopen_libs $LIBS"
12861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12862 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12863 if ${lt_cv_dlopen_self+:} false; then :
12864 $as_echo_n "(cached) " >&6
12866 if test "$cross_compiling" = yes; then :
12867 lt_cv_dlopen_self=cross
12869 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12870 lt_status=$lt_dlunknown
12871 cat > conftest.$ac_ext <<_LT_EOF
12872 #line $LINENO "configure"
12873 #include "confdefs.h"
12882 # define LT_DLGLOBAL RTLD_GLOBAL
12885 # define LT_DLGLOBAL DL_GLOBAL
12887 # define LT_DLGLOBAL 0
12891 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12892 find out it does not work in some platform. */
12893 #ifndef LT_DLLAZY_OR_NOW
12895 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12898 # define LT_DLLAZY_OR_NOW DL_LAZY
12901 # define LT_DLLAZY_OR_NOW RTLD_NOW
12904 # define LT_DLLAZY_OR_NOW DL_NOW
12906 # define LT_DLLAZY_OR_NOW 0
12913 /* When -fvisbility=hidden is used, assume the code has been annotated
12914 correspondingly for the symbols needed. */
12915 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12916 int fnord () __attribute__((visibility("default")));
12919 int fnord () { return 42; }
12922 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12923 int status = $lt_dlunknown;
12927 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12930 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12931 else puts (dlerror ());
12933 /* dlclose (self); */
12941 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12942 (eval $ac_link) 2>&5
12944 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12945 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12946 (./conftest; exit; ) >&5 2>/dev/null
12948 case x$lt_status in
12949 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12950 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12951 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12954 # compilation failed
12955 lt_cv_dlopen_self=no
12962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12963 $as_echo "$lt_cv_dlopen_self" >&6; }
12965 if test "x$lt_cv_dlopen_self" = xyes; then
12966 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12968 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12969 if ${lt_cv_dlopen_self_static+:} false; then :
12970 $as_echo_n "(cached) " >&6
12972 if test "$cross_compiling" = yes; then :
12973 lt_cv_dlopen_self_static=cross
12975 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12976 lt_status=$lt_dlunknown
12977 cat > conftest.$ac_ext <<_LT_EOF
12978 #line $LINENO "configure"
12979 #include "confdefs.h"
12988 # define LT_DLGLOBAL RTLD_GLOBAL
12991 # define LT_DLGLOBAL DL_GLOBAL
12993 # define LT_DLGLOBAL 0
12997 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12998 find out it does not work in some platform. */
12999 #ifndef LT_DLLAZY_OR_NOW
13001 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13004 # define LT_DLLAZY_OR_NOW DL_LAZY
13007 # define LT_DLLAZY_OR_NOW RTLD_NOW
13010 # define LT_DLLAZY_OR_NOW DL_NOW
13012 # define LT_DLLAZY_OR_NOW 0
13019 /* When -fvisbility=hidden is used, assume the code has been annotated
13020 correspondingly for the symbols needed. */
13021 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13022 int fnord () __attribute__((visibility("default")));
13025 int fnord () { return 42; }
13028 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13029 int status = $lt_dlunknown;
13033 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13036 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13037 else puts (dlerror ());
13039 /* dlclose (self); */
13047 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13048 (eval $ac_link) 2>&5
13050 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13051 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13052 (./conftest; exit; ) >&5 2>/dev/null
13054 case x$lt_status in
13055 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13056 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13057 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13060 # compilation failed
13061 lt_cv_dlopen_self_static=no
13068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13069 $as_echo "$lt_cv_dlopen_self_static" >&6; }
13072 CPPFLAGS="$save_CPPFLAGS"
13073 LDFLAGS="$save_LDFLAGS"
13078 case $lt_cv_dlopen_self in
13079 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13080 *) enable_dlopen_self=unknown ;;
13083 case $lt_cv_dlopen_self_static in
13084 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13085 *) enable_dlopen_self_static=unknown ;;
13107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13108 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
13109 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13110 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13111 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13113 $as_echo "yes" >&6; }
13115 # FIXME - insert some real tests, host_os isn't really good enough
13118 if test -n "$STRIP" ; then
13119 striplib="$STRIP -x"
13120 old_striplib="$STRIP -S"
13121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13122 $as_echo "yes" >&6; }
13124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13125 $as_echo "no" >&6; }
13129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13130 $as_echo "no" >&6; }
13146 # Report which library types will actually be built
13147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13148 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13150 $as_echo "$can_build_shared" >&6; }
13152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13153 $as_echo_n "checking whether to build shared libraries... " >&6; }
13154 test "$can_build_shared" = "no" && enable_shared=no
13156 # On AIX, shared libraries and static libraries use the same namespace, and
13157 # are all built from PIC.
13160 test "$enable_shared" = yes && enable_static=no
13161 if test -n "$RANLIB"; then
13162 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13163 postinstall_cmds='$RANLIB $lib'
13168 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13169 test "$enable_shared" = yes && enable_static=no
13173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13174 $as_echo "$enable_shared" >&6; }
13176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13177 $as_echo_n "checking whether to build static libraries... " >&6; }
13178 # Make sure either enable_shared or enable_static is yes.
13179 test "$enable_shared" = yes || enable_static=yes
13180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13181 $as_echo "$enable_static" >&6; }
13188 ac_cpp='$CPP $CPPFLAGS'
13189 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13190 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13191 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13195 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
13196 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
13197 (test "X$CXX" != "Xg++"))) ; then
13199 ac_cpp='$CXXCPP $CPPFLAGS'
13200 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13201 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13202 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
13204 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
13205 if test -z "$CXXCPP"; then
13206 if ${ac_cv_prog_CXXCPP+:} false; then :
13207 $as_echo_n "(cached) " >&6
13209 # Double quotes because CXXCPP needs to be expanded
13210 for CXXCPP in "$CXX -E" "/lib/cpp"
13212 ac_preproc_ok=false
13213 for ac_cxx_preproc_warn_flag in '' yes
13215 # Use a header file that comes with gcc, so configuring glibc
13216 # with a fresh cross-compiler works.
13217 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13218 # <limits.h> exists even on freestanding compilers.
13219 # On the NeXT, cc -E runs the code through the compiler's parser,
13220 # not just through cpp. "Syntax error" is here to catch this case.
13221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13222 /* end confdefs.h. */
13224 # include <limits.h>
13226 # include <assert.h>
13230 if ac_fn_cxx_try_cpp "$LINENO"; then :
13233 # Broken: fails on valid input.
13236 rm -f conftest.err conftest.i conftest.$ac_ext
13238 # OK, works on sane cases. Now check whether nonexistent headers
13239 # can be detected and how.
13240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13241 /* end confdefs.h. */
13242 #include <ac_nonexistent.h>
13244 if ac_fn_cxx_try_cpp "$LINENO"; then :
13245 # Broken: success on invalid input.
13248 # Passes both tests.
13252 rm -f conftest.err conftest.i conftest.$ac_ext
13255 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13256 rm -f conftest.i conftest.err conftest.$ac_ext
13257 if $ac_preproc_ok; then :
13262 ac_cv_prog_CXXCPP=$CXXCPP
13265 CXXCPP=$ac_cv_prog_CXXCPP
13267 ac_cv_prog_CXXCPP=$CXXCPP
13269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
13270 $as_echo "$CXXCPP" >&6; }
13271 ac_preproc_ok=false
13272 for ac_cxx_preproc_warn_flag in '' yes
13274 # Use a header file that comes with gcc, so configuring glibc
13275 # with a fresh cross-compiler works.
13276 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13277 # <limits.h> exists even on freestanding compilers.
13278 # On the NeXT, cc -E runs the code through the compiler's parser,
13279 # not just through cpp. "Syntax error" is here to catch this case.
13280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13281 /* end confdefs.h. */
13283 # include <limits.h>
13285 # include <assert.h>
13289 if ac_fn_cxx_try_cpp "$LINENO"; then :
13292 # Broken: fails on valid input.
13295 rm -f conftest.err conftest.i conftest.$ac_ext
13297 # OK, works on sane cases. Now check whether nonexistent headers
13298 # can be detected and how.
13299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13300 /* end confdefs.h. */
13301 #include <ac_nonexistent.h>
13303 if ac_fn_cxx_try_cpp "$LINENO"; then :
13304 # Broken: success on invalid input.
13307 # Passes both tests.
13311 rm -f conftest.err conftest.i conftest.$ac_ext
13314 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13315 rm -f conftest.i conftest.err conftest.$ac_ext
13316 if $ac_preproc_ok; then :
13319 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13320 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13321 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
13322 See \`config.log' for more details" "$LINENO" 5; }
13326 ac_cpp='$CPP $CPPFLAGS'
13327 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13328 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13329 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13332 _lt_caught_CXX_error=yes
13336 ac_cpp='$CXXCPP $CPPFLAGS'
13337 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13338 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13339 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13341 archive_cmds_need_lc_CXX=no
13342 allow_undefined_flag_CXX=
13343 always_export_symbols_CXX=no
13344 archive_expsym_cmds_CXX=
13345 compiler_needs_object_CXX=no
13346 export_dynamic_flag_spec_CXX=
13347 hardcode_direct_CXX=no
13348 hardcode_direct_absolute_CXX=no
13349 hardcode_libdir_flag_spec_CXX=
13350 hardcode_libdir_separator_CXX=
13351 hardcode_minus_L_CXX=no
13352 hardcode_shlibpath_var_CXX=unsupported
13353 hardcode_automatic_CXX=no
13354 inherit_rpath_CXX=no
13356 module_expsym_cmds_CXX=
13357 link_all_deplibs_CXX=unknown
13358 old_archive_cmds_CXX=$old_archive_cmds
13359 reload_flag_CXX=$reload_flag
13360 reload_cmds_CXX=$reload_cmds
13361 no_undefined_flag_CXX=
13362 whole_archive_flag_spec_CXX=
13363 enable_shared_with_static_runtimes_CXX=no
13365 # Source file extension for C++ test sources.
13368 # Object file extension for compiled C++ test sources.
13372 # No sense in running all these tests if we already determined that
13373 # the CXX compiler isn't working. Some variables (like enable_shared)
13374 # are currently assumed to apply to all compilers on this platform,
13375 # and will be corrupted by setting them based on a non-working compiler.
13376 if test "$_lt_caught_CXX_error" != yes; then
13377 # Code to be used in simple compile tests
13378 lt_simple_compile_test_code="int some_variable = 0;"
13380 # Code to be used in simple link tests
13381 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13383 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13390 # If no C compiler was specified, use CC.
13393 # If no C compiler flags were specified, use CFLAGS.
13394 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13396 # Allow CC to be a program name with arguments.
13400 # save warnings/boilerplate of simple test code
13401 ac_outfile=conftest.$ac_objext
13402 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13403 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13404 _lt_compiler_boilerplate=`cat conftest.err`
13407 ac_outfile=conftest.$ac_objext
13408 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13409 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13410 _lt_linker_boilerplate=`cat conftest.err`
13414 # Allow CC to be a program name with arguments.
13416 lt_save_CFLAGS=$CFLAGS
13420 lt_save_with_gnu_ld=$with_gnu_ld
13421 lt_save_path_LD=$lt_cv_path_LD
13422 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13423 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13425 $as_unset lt_cv_prog_gnu_ld
13427 if test -n "${lt_cv_path_LDCXX+set}"; then
13428 lt_cv_path_LD=$lt_cv_path_LDCXX
13430 $as_unset lt_cv_path_LD
13432 test -z "${LDCXX+set}" || LD=$LDCXX
13437 for cc_temp in $compiler""; do
13439 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13440 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13445 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13448 if test -n "$compiler"; then
13449 # We don't want -fno-exception when compiling C++ code, so set the
13450 # no_builtin_flag separately
13451 if test "$GXX" = yes; then
13452 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13454 lt_prog_compiler_no_builtin_flag_CXX=
13457 if test "$GXX" = yes; then
13458 # Set up default GNU C++ configuration
13462 # Check whether --with-gnu-ld was given.
13463 if test "${with_gnu_ld+set}" = set; then :
13464 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13470 if test "$GCC" = yes; then
13471 # Check if gcc -print-prog-name=ld gives a path.
13472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13473 $as_echo_n "checking for ld used by $CC... " >&6; }
13476 # gcc leaves a trailing carriage return which upsets mingw
13477 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13479 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13482 # Accept absolute paths.
13484 re_direlt='/[^/][^/]*/\.\./'
13485 # Canonicalize the pathname of ld
13486 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13487 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13488 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13490 test -z "$LD" && LD="$ac_prog"
13493 # If it fails, then pretend we aren't using GCC.
13497 # If it is relative, then search for the first ld in PATH.
13498 with_gnu_ld=unknown
13501 elif test "$with_gnu_ld" = yes; then
13502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13503 $as_echo_n "checking for GNU ld... " >&6; }
13505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13506 $as_echo_n "checking for non-GNU ld... " >&6; }
13508 if ${lt_cv_path_LD+:} false; then :
13509 $as_echo_n "(cached) " >&6
13511 if test -z "$LD"; then
13512 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13513 for ac_dir in $PATH; do
13515 test -z "$ac_dir" && ac_dir=.
13516 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13517 lt_cv_path_LD="$ac_dir/$ac_prog"
13518 # Check to see if the program is GNU ld. I'd rather use --version,
13519 # but apparently some variants of GNU ld only accept -v.
13520 # Break only if it was the GNU/non-GNU ld that we prefer.
13521 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13522 *GNU* | *'with BFD'*)
13523 test "$with_gnu_ld" != no && break
13526 test "$with_gnu_ld" != yes && break
13533 lt_cv_path_LD="$LD" # Let the user override the test with a path.
13537 LD="$lt_cv_path_LD"
13538 if test -n "$LD"; then
13539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13540 $as_echo "$LD" >&6; }
13542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13543 $as_echo "no" >&6; }
13545 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13547 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13548 if ${lt_cv_prog_gnu_ld+:} false; then :
13549 $as_echo_n "(cached) " >&6
13551 # I'd rather use --version here, but apparently some GNU lds only accept -v.
13552 case `$LD -v 2>&1 </dev/null` in
13553 *GNU* | *'with BFD'*)
13554 lt_cv_prog_gnu_ld=yes
13557 lt_cv_prog_gnu_ld=no
13561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13562 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
13563 with_gnu_ld=$lt_cv_prog_gnu_ld
13571 # Check if GNU C++ uses GNU ld as the underlying linker, since the
13572 # archiving commands below assume that GNU ld is being used.
13573 if test "$with_gnu_ld" = yes; then
13574 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13575 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'
13577 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13578 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13580 # If archive_cmds runs LD, not CC, wlarc should be empty
13581 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13582 # investigate it a little bit more. (MM)
13585 # ancient GNU ld didn't support --whole-archive et. al.
13586 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13587 $GREP 'no-whole-archive' > /dev/null; then
13588 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13590 whole_archive_flag_spec_CXX=
13596 # A generic and very simple default shared library creation
13597 # command for GNU C++ for the case where it uses the native
13598 # linker, instead of GNU ld. If possible, this setting should
13599 # overridden to take advantage of the native linker features on
13600 # the platform it is being used on.
13601 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13604 # Commands to make compiler produce verbose output that lists
13605 # what "hidden" libraries, object files and flags are used when
13606 # linking a shared library.
13607 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13615 # PORTME: fill in a description of your system's C++ link characteristics
13616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13617 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13621 # FIXME: insert proper C++ library support
13625 if test "$host_cpu" = ia64; then
13626 # On IA64, the linker does run time linking by default, so we don't
13627 # have to do anything special.
13628 aix_use_runtimelinking=no
13629 exp_sym_flag='-Bexport'
13632 aix_use_runtimelinking=no
13634 # Test if we are trying to use run time linking or normal
13635 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13636 # need to do runtime linking.
13637 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13638 for ld_flag in $LDFLAGS; do
13641 aix_use_runtimelinking=yes
13649 exp_sym_flag='-bexport'
13650 no_entry_flag='-bnoentry'
13653 # When large executables or shared objects are built, AIX ld can
13654 # have problems creating the table of contents. If linking a library
13655 # or program results in "error TOC overflow" add -mminimal-toc to
13656 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13657 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13659 archive_cmds_CXX=''
13660 hardcode_direct_CXX=yes
13661 hardcode_direct_absolute_CXX=yes
13662 hardcode_libdir_separator_CXX=':'
13663 link_all_deplibs_CXX=yes
13664 file_list_spec_CXX='${wl}-f,'
13666 if test "$GXX" = yes; then
13667 case $host_os in aix4.[012]|aix4.[012].*)
13668 # We only want to do this on AIX 4.2 and lower, the check
13669 # below for broken collect2 doesn't work under 4.3+
13670 collect2name=`${CC} -print-prog-name=collect2`
13671 if test -f "$collect2name" &&
13672 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13674 # We have reworked collect2
13677 # We have old collect2
13678 hardcode_direct_CXX=unsupported
13679 # It fails to find uninstalled libraries when the uninstalled
13680 # path is not listed in the libpath. Setting hardcode_minus_L
13681 # to unsupported forces relinking
13682 hardcode_minus_L_CXX=yes
13683 hardcode_libdir_flag_spec_CXX='-L$libdir'
13684 hardcode_libdir_separator_CXX=
13687 shared_flag='-shared'
13688 if test "$aix_use_runtimelinking" = yes; then
13689 shared_flag="$shared_flag "'${wl}-G'
13693 if test "$host_cpu" = ia64; then
13694 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13695 # chokes on -Wl,-G. The following line is correct:
13698 if test "$aix_use_runtimelinking" = yes; then
13699 shared_flag='${wl}-G'
13701 shared_flag='${wl}-bM:SRE'
13706 export_dynamic_flag_spec_CXX='${wl}-bexpall'
13707 # It seems that -bexpall does not export symbols beginning with
13708 # underscore (_), so it is better to generate a list of symbols to
13710 always_export_symbols_CXX=yes
13711 if test "$aix_use_runtimelinking" = yes; then
13712 # Warning - without using the other runtime loading flags (-brtl),
13713 # -berok will link without error, but may produce a broken library.
13714 allow_undefined_flag_CXX='-berok'
13715 # Determine the default libpath from the value encoded in an empty
13717 if test "${lt_cv_aix_libpath+set}" = set; then
13718 aix_libpath=$lt_cv_aix_libpath
13720 if ${lt_cv_aix_libpath__CXX+:} false; then :
13721 $as_echo_n "(cached) " >&6
13723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13724 /* end confdefs.h. */
13734 if ac_fn_cxx_try_link "$LINENO"; then :
13736 lt_aix_libpath_sed='
13737 /Import File Strings/,/^$/ {
13739 s/^0 *\([^ ]*\) *$/\1/
13743 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13744 # Check for a 64-bit object if we didn't find anything.
13745 if test -z "$lt_cv_aix_libpath__CXX"; then
13746 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13749 rm -f core conftest.err conftest.$ac_objext \
13750 conftest$ac_exeext conftest.$ac_ext
13751 if test -z "$lt_cv_aix_libpath__CXX"; then
13752 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13757 aix_libpath=$lt_cv_aix_libpath__CXX
13760 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13762 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"
13764 if test "$host_cpu" = ia64; then
13765 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13766 allow_undefined_flag_CXX="-z nodefs"
13767 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"
13769 # Determine the default libpath from the value encoded in an
13770 # empty executable.
13771 if test "${lt_cv_aix_libpath+set}" = set; then
13772 aix_libpath=$lt_cv_aix_libpath
13774 if ${lt_cv_aix_libpath__CXX+:} false; then :
13775 $as_echo_n "(cached) " >&6
13777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13778 /* end confdefs.h. */
13788 if ac_fn_cxx_try_link "$LINENO"; then :
13790 lt_aix_libpath_sed='
13791 /Import File Strings/,/^$/ {
13793 s/^0 *\([^ ]*\) *$/\1/
13797 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13798 # Check for a 64-bit object if we didn't find anything.
13799 if test -z "$lt_cv_aix_libpath__CXX"; then
13800 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13803 rm -f core conftest.err conftest.$ac_objext \
13804 conftest$ac_exeext conftest.$ac_ext
13805 if test -z "$lt_cv_aix_libpath__CXX"; then
13806 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13811 aix_libpath=$lt_cv_aix_libpath__CXX
13814 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13815 # Warning - without using the other run time loading flags,
13816 # -berok will link without error, but may produce a broken library.
13817 no_undefined_flag_CXX=' ${wl}-bernotok'
13818 allow_undefined_flag_CXX=' ${wl}-berok'
13819 if test "$with_gnu_ld" = yes; then
13820 # We only use this code for GNU lds that support --whole-archive.
13821 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13823 # Exported symbols can be pulled into shared objects from archives
13824 whole_archive_flag_spec_CXX='$convenience'
13826 archive_cmds_need_lc_CXX=yes
13827 # This is similar to how AIX traditionally builds its shared
13829 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'
13835 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13836 allow_undefined_flag_CXX=unsupported
13837 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13838 # support --undefined. This deserves some investigation. FIXME
13839 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13846 case $cc_basename in
13848 # FIXME: insert proper C++ library support
13854 cygwin* | mingw* | pw32* | cegcc*)
13855 case $GXX,$cc_basename in
13858 # hardcode_libdir_flag_spec is actually meaningless, as there is
13859 # no search path for DLLs.
13860 hardcode_libdir_flag_spec_CXX=' '
13861 allow_undefined_flag_CXX=unsupported
13862 always_export_symbols_CXX=yes
13863 file_list_spec_CXX='@'
13864 # Tell ltmain to make .lib files, not .a files.
13866 # Tell ltmain to make .dll files, not .so files.
13868 # FIXME: Setting linknames here is a bad hack.
13869 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
13870 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13871 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
13873 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
13875 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13877 # The linker will not automatically build a static lib if we build a DLL.
13878 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
13879 enable_shared_with_static_runtimes_CXX=yes
13881 old_postinstall_cmds_CXX='chmod 644 $oldlib'
13882 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
13883 lt_tool_outputfile="@TOOL_OUTPUT@"~
13884 case $lt_outputfile in
13887 lt_outputfile="$lt_outputfile.exe"
13888 lt_tool_outputfile="$lt_tool_outputfile.exe"
13891 func_to_tool_file "$lt_outputfile"~
13892 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
13893 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13894 $RM "$lt_outputfile.manifest";
13899 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13900 # as there is no search path for DLLs.
13901 hardcode_libdir_flag_spec_CXX='-L$libdir'
13902 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
13903 allow_undefined_flag_CXX=unsupported
13904 always_export_symbols_CXX=no
13905 enable_shared_with_static_runtimes_CXX=yes
13907 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13908 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'
13909 # If the export-symbols file already is a .def file (1st line
13910 # is EXPORTS), use it as is; otherwise, prepend...
13911 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13912 cp $export_symbols $output_objdir/$soname.def;
13914 echo EXPORTS > $output_objdir/$soname.def;
13915 cat $export_symbols >> $output_objdir/$soname.def;
13917 $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'
13924 darwin* | rhapsody*)
13927 archive_cmds_need_lc_CXX=no
13928 hardcode_direct_CXX=no
13929 hardcode_automatic_CXX=yes
13930 hardcode_shlibpath_var_CXX=unsupported
13931 if test "$lt_cv_ld_force_load" = "yes"; then
13932 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\"`'
13935 whole_archive_flag_spec_CXX=''
13937 link_all_deplibs_CXX=yes
13938 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13939 case $cc_basename in
13940 ifort*) _lt_dar_can_shared=yes ;;
13941 *) _lt_dar_can_shared=$GCC ;;
13943 if test "$_lt_dar_can_shared" = "yes"; then
13944 output_verbose_link_cmd=func_echo_all
13945 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}"
13946 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13947 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}"
13948 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}"
13949 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13950 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}"
13951 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}"
13961 case $cc_basename in
13963 # FIXME: insert proper C++ library support
13967 # Green Hills C++ Compiler
13968 # FIXME: insert proper C++ library support
13972 # FIXME: insert proper C++ library support
13979 # C++ shared libraries reported to be fairly broken before
13985 archive_cmds_need_lc_CXX=no
13988 freebsd* | dragonfly*)
13989 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13995 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13996 link_all_deplibs_CXX=yes
14000 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14001 hardcode_libdir_separator_CXX=:
14002 export_dynamic_flag_spec_CXX='${wl}-E'
14003 hardcode_direct_CXX=yes
14004 hardcode_minus_L_CXX=yes # Not in the search PATH,
14005 # but as the default
14006 # location of the library.
14008 case $cc_basename in
14010 # FIXME: insert proper C++ library support
14014 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'
14015 # Commands to make compiler produce verbose output that lists
14016 # what "hidden" libraries, object files and flags are used when
14017 # linking a shared library.
14019 # There doesn't appear to be a way to prevent this compiler from
14020 # explicitly linking system object files so we need to strip them
14021 # from the output so that they don't get included in the library
14023 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"'
14026 if test "$GXX" = yes; then
14027 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'
14029 # FIXME: insert proper C++ library support
14037 if test $with_gnu_ld = no; then
14038 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14039 hardcode_libdir_separator_CXX=:
14045 export_dynamic_flag_spec_CXX='${wl}-E'
14051 hardcode_direct_CXX=no
14052 hardcode_shlibpath_var_CXX=no
14055 hardcode_direct_CXX=yes
14056 hardcode_direct_absolute_CXX=yes
14057 hardcode_minus_L_CXX=yes # Not in the search PATH,
14058 # but as the default
14059 # location of the library.
14063 case $cc_basename in
14065 # FIXME: insert proper C++ library support
14071 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14074 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14077 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14080 # Commands to make compiler produce verbose output that lists
14081 # what "hidden" libraries, object files and flags are used when
14082 # linking a shared library.
14084 # There doesn't appear to be a way to prevent this compiler from
14085 # explicitly linking system object files so we need to strip them
14086 # from the output so that they don't get included in the library
14088 output_verbose_link_cmd='templist=`($CC -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"'
14091 if test "$GXX" = yes; then
14092 if test $with_gnu_ld = no; then
14095 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14098 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14101 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'
14106 # FIXME: insert proper C++ library support
14114 hardcode_direct_CXX=no
14115 hardcode_shlibpath_var_CXX=no
14116 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14117 export_dynamic_flag_spec_CXX='${wl}-E'
14118 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14119 # Instead, shared libraries are loaded at an image base (0x10000000 by
14120 # default) and relocated if they conflict, which is a slow very memory
14121 # consuming and fragmenting process. To avoid this, we pick a random,
14122 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14123 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14124 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'
14125 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'
14128 case $cc_basename in
14131 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'
14133 # Archives containing C++ object files must be created using
14134 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
14135 # necessary to make sure instantiated templates are included
14137 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
14140 if test "$GXX" = yes; then
14141 if test "$with_gnu_ld" = no; then
14142 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'
14144 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'
14147 link_all_deplibs_CXX=yes
14150 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14151 hardcode_libdir_separator_CXX=:
14152 inherit_rpath_CXX=yes
14155 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14156 case $cc_basename in
14158 # Kuck and Associates, Inc. (KAI) C++ Compiler
14160 # KCC will only create a shared library if the output file
14161 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14162 # to its proper name (with version) after linking.
14163 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'
14164 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'
14165 # Commands to make compiler produce verbose output that lists
14166 # what "hidden" libraries, object files and flags are used when
14167 # linking a shared library.
14169 # There doesn't appear to be a way to prevent this compiler from
14170 # explicitly linking system object files so we need to strip them
14171 # from the output so that they don't get included in the library
14173 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"'
14175 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14176 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14178 # Archives containing C++ object files must be created using
14179 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
14180 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14185 # version 8.0 and above of icpc choke on multiply defined symbols
14186 # if we add $predep_objects and $postdep_objects, however 7.1 and
14187 # earlier do not add the objects themselves.
14188 case `$CC -V 2>&1` in
14190 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14191 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'
14193 *) # Version 8.0 or newer
14196 ia64*) tmp_idyn=' -i_dynamic';;
14198 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14199 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'
14202 archive_cmds_need_lc_CXX=no
14203 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14204 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14205 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14208 # Portland Group C++ compiler
14210 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
14211 prelink_cmds_CXX='tpldir=Template.dir~
14213 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
14214 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
14215 old_archive_cmds_CXX='tpldir=Template.dir~
14217 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
14218 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
14220 archive_cmds_CXX='tpldir=Template.dir~
14222 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14223 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14224 archive_expsym_cmds_CXX='tpldir=Template.dir~
14226 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14227 $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'
14229 *) # Version 6 and above use weak symbols
14230 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14231 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'
14235 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
14236 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14237 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'
14241 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14242 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'
14244 runpath_var=LD_RUN_PATH
14245 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14246 hardcode_libdir_separator_CXX=:
14248 # Commands to make compiler produce verbose output that lists
14249 # what "hidden" libraries, object files and flags are used when
14250 # linking a shared library.
14252 # There doesn't appear to be a way to prevent this compiler from
14253 # explicitly linking system object files so we need to strip them
14254 # from the output so that they don't get included in the library
14256 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'
14258 xl* | mpixl* | bgxl*)
14259 # IBM XL 8.0 on PPC, with GNU ld
14260 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14261 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14262 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14263 if test "x$supports_anon_versioning" = xyes; then
14264 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
14265 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14266 echo "local: *; };" >> $output_objdir/$libname.ver~
14267 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14271 case `$CC -V 2>&1 | sed 5q` in
14274 no_undefined_flag_CXX=' -zdefs'
14275 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14276 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'
14277 hardcode_libdir_flag_spec_CXX='-R$libdir'
14278 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'
14279 compiler_needs_object_CXX=yes
14281 # Not sure whether something based on
14282 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
14284 output_verbose_link_cmd='func_echo_all'
14286 # Archives containing C++ object files must be created using
14287 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14288 # necessary to make sure instantiated templates are included
14290 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14298 # FIXME: insert proper C++ library support
14303 # FIXME: insert proper C++ library support
14308 case $cc_basename in
14310 # FIXME: insert proper C++ library support
14314 # FIXME: insert proper C++ library support
14321 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14322 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14324 hardcode_libdir_flag_spec_CXX='-R$libdir'
14325 hardcode_direct_CXX=yes
14326 hardcode_shlibpath_var_CXX=no
14328 # Workaround some broken pre-1.5 toolchains
14329 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14337 # C++ shared libraries are fairly broken
14342 if test -f /usr/libexec/ld.so; then
14343 hardcode_direct_CXX=yes
14344 hardcode_shlibpath_var_CXX=no
14345 hardcode_direct_absolute_CXX=yes
14346 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14347 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14348 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14349 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
14350 export_dynamic_flag_spec_CXX='${wl}-E'
14351 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14353 output_verbose_link_cmd=func_echo_all
14359 osf3* | osf4* | osf5*)
14360 case $cc_basename in
14362 # Kuck and Associates, Inc. (KAI) C++ Compiler
14364 # KCC will only create a shared library if the output file
14365 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14366 # to its proper name (with version) after linking.
14367 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'
14369 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14370 hardcode_libdir_separator_CXX=:
14372 # Archives containing C++ object files must be created using
14373 # the KAI C++ compiler.
14375 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14376 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14380 # Rational C++ 2.4.1
14381 # FIXME: insert proper C++ library support
14387 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14388 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'
14389 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14392 allow_undefined_flag_CXX=' -expect_unresolved \*'
14393 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'
14394 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14395 echo "-hidden">> $lib.exp~
14396 $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~
14398 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14402 hardcode_libdir_separator_CXX=:
14404 # Commands to make compiler produce verbose output that lists
14405 # what "hidden" libraries, object files and flags are used when
14406 # linking a shared library.
14408 # There doesn't appear to be a way to prevent this compiler from
14409 # explicitly linking system object files so we need to strip them
14410 # from the output so that they don't get included in the library
14412 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"'
14415 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14416 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14419 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'
14422 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'
14426 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14427 hardcode_libdir_separator_CXX=:
14429 # Commands to make compiler produce verbose output that lists
14430 # what "hidden" libraries, object files and flags are used when
14431 # linking a shared library.
14432 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14435 # FIXME: insert proper C++ library support
14443 # FIXME: insert proper C++ library support
14448 case $cc_basename in
14451 # FIXME: insert proper C++ library support
14456 # FIXME: insert proper C++ library support
14460 # FIXME: insert proper C++ library support
14467 case $cc_basename in
14469 # Sun C++ 4.2, 5.x and Centerline C++
14470 archive_cmds_need_lc_CXX=yes
14471 no_undefined_flag_CXX=' -zdefs'
14472 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14473 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14474 $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'
14476 hardcode_libdir_flag_spec_CXX='-R$libdir'
14477 hardcode_shlibpath_var_CXX=no
14479 solaris2.[0-5] | solaris2.[0-5].*) ;;
14481 # The compiler driver will combine and reorder linker options,
14482 # but understands `-z linker_flag'.
14483 # Supported since Solaris 2.6 (maybe 2.5.1?)
14484 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14487 link_all_deplibs_CXX=yes
14489 output_verbose_link_cmd='func_echo_all'
14491 # Archives containing C++ object files must be created using
14492 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14493 # necessary to make sure instantiated templates are included
14495 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14498 # Green Hills C++ Compiler
14499 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14501 # The C++ compiler must be used to create the archive.
14502 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14505 # GNU C++ compiler with Solaris linker
14506 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14507 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14508 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14509 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14510 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14511 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14513 # Commands to make compiler produce verbose output that lists
14514 # what "hidden" libraries, object files and flags are used when
14515 # linking a shared library.
14516 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14518 # g++ 2.7 appears to require `-G' NOT `-shared' on this
14520 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14521 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14522 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14524 # Commands to make compiler produce verbose output that lists
14525 # what "hidden" libraries, object files and flags are used when
14526 # linking a shared library.
14527 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14530 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14532 solaris2.[0-5] | solaris2.[0-5].*) ;;
14534 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14542 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14543 no_undefined_flag_CXX='${wl}-z,text'
14544 archive_cmds_need_lc_CXX=no
14545 hardcode_shlibpath_var_CXX=no
14546 runpath_var='LD_RUN_PATH'
14548 case $cc_basename in
14550 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14551 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14554 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14555 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14560 sysv5* | sco3.2v5* | sco5v6*)
14561 # Note: We can NOT use -z defs as we might desire, because we do not
14562 # link with -lc, and that would cause any symbols used from libc to
14563 # always be unresolved, which means just about no library would
14564 # ever link correctly. If we're not using GNU ld we use -z text
14565 # though, which does catch some bad symbols but isn't as heavy-handed
14567 no_undefined_flag_CXX='${wl}-z,text'
14568 allow_undefined_flag_CXX='${wl}-z,nodefs'
14569 archive_cmds_need_lc_CXX=no
14570 hardcode_shlibpath_var_CXX=no
14571 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14572 hardcode_libdir_separator_CXX=':'
14573 link_all_deplibs_CXX=yes
14574 export_dynamic_flag_spec_CXX='${wl}-Bexport'
14575 runpath_var='LD_RUN_PATH'
14577 case $cc_basename in
14579 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14580 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14581 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
14582 '"$old_archive_cmds_CXX"
14583 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
14584 '"$reload_cmds_CXX"
14587 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14588 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14594 case $cc_basename in
14596 # NonStop-UX NCC 3.20
14597 # FIXME: insert proper C++ library support
14601 # FIXME: insert proper C++ library support
14608 # FIXME: insert proper C++ library support
14613 # FIXME: insert proper C++ library support
14618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14619 $as_echo "$ld_shlibs_CXX" >&6; }
14620 test "$ld_shlibs_CXX" = no && can_build_shared=no
14626 ## There is no encapsulation within the following macros, do not change
14627 ## the running order or otherwise move them around unless you know exactly
14628 ## what you are doing...
14629 # Dependencies to place before and after the object being linked:
14630 predep_objects_CXX=
14631 postdep_objects_CXX=
14634 compiler_lib_search_path_CXX=
14636 cat > conftest.$ac_ext <<_LT_EOF
14640 Foo (void) { a = 0; }
14647 _lt_libdeps_save_CFLAGS=$CFLAGS
14648 case "$CC $CFLAGS " in #(
14649 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
14650 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
14651 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
14654 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14655 (eval $ac_compile) 2>&5
14657 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14658 test $ac_status = 0; }; then
14659 # Parse the compiler output and extract the necessary
14660 # objects, libraries and library flags.
14662 # Sentinel used to keep track of whether or not we are before
14663 # the conftest object file.
14664 pre_test_object_deps_done=no
14666 for p in `eval "$output_verbose_link_cmd"`; do
14667 case ${prev}${p} in
14670 # Some compilers place space between "-{L,R}" and the path.
14671 # Remove the space.
14672 if test $p = "-L" ||
14673 test $p = "-R"; then
14678 # Expand the sysroot to ease extracting the directories later.
14679 if test -z "$prev"; then
14681 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
14682 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
14683 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
14687 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
14689 if test "$pre_test_object_deps_done" = no; then
14692 # Internal compiler library paths should come after those
14693 # provided the user. The postdeps already come after the
14694 # user supplied libs so there is no need to process them.
14695 if test -z "$compiler_lib_search_path_CXX"; then
14696 compiler_lib_search_path_CXX="${prev}${p}"
14698 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14701 # The "-l" case would never come before the object being
14702 # linked, so don't bother handling this case.
14705 if test -z "$postdeps_CXX"; then
14706 postdeps_CXX="${prev}${p}"
14708 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14714 *.lto.$objext) ;; # Ignore GCC LTO objects
14716 # This assumes that the test object file only shows up
14717 # once in the compiler output.
14718 if test "$p" = "conftest.$objext"; then
14719 pre_test_object_deps_done=yes
14723 if test "$pre_test_object_deps_done" = no; then
14724 if test -z "$predep_objects_CXX"; then
14725 predep_objects_CXX="$p"
14727 predep_objects_CXX="$predep_objects_CXX $p"
14730 if test -z "$postdep_objects_CXX"; then
14731 postdep_objects_CXX="$p"
14733 postdep_objects_CXX="$postdep_objects_CXX $p"
14738 *) ;; # Ignore the rest.
14746 echo "libtool.m4: error: problem compiling CXX test program"
14749 $RM -f confest.$objext
14750 CFLAGS=$_lt_libdeps_save_CFLAGS
14752 # PORTME: override above test on systems where it is broken
14755 # Interix 3.5 installs completely hosed .la files for C++, so rather than
14756 # hack all around it, let's just trust "g++" to DTRT.
14757 predep_objects_CXX=
14758 postdep_objects_CXX=
14763 case `$CC -V 2>&1 | sed 5q` in
14767 # The more standards-conforming stlport4 library is
14768 # incompatible with the Cstd library. Avoid specifying
14769 # it if it's in CXXFLAGS. Ignore libCrun as
14770 # -library=stlport4 depends on it.
14771 case " $CXX $CXXFLAGS " in
14772 *" -library=stlport4 "*)
14773 solaris_use_stlport4=yes
14777 if test "$solaris_use_stlport4" != yes; then
14778 postdeps_CXX='-library=Cstd -library=Crun'
14785 case $cc_basename in
14787 # The more standards-conforming stlport4 library is
14788 # incompatible with the Cstd library. Avoid specifying
14789 # it if it's in CXXFLAGS. Ignore libCrun as
14790 # -library=stlport4 depends on it.
14791 case " $CXX $CXXFLAGS " in
14792 *" -library=stlport4 "*)
14793 solaris_use_stlport4=yes
14797 # Adding this requires a known-good setup of shared libraries for
14798 # Sun compiler versions before 5.6, else PIC objects from an old
14799 # archive will be linked into the output, leading to subtle bugs.
14800 if test "$solaris_use_stlport4" != yes; then
14801 postdeps_CXX='-library=Cstd -library=Crun'
14809 case " $postdeps_CXX " in
14810 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14812 compiler_lib_search_dirs_CXX=
14813 if test -n "${compiler_lib_search_path_CXX}"; then
14814 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14847 lt_prog_compiler_wl_CXX=
14848 lt_prog_compiler_pic_CXX=
14849 lt_prog_compiler_static_CXX=
14852 # C++ specific cases for pic, static, wl, etc.
14853 if test "$GXX" = yes; then
14854 lt_prog_compiler_wl_CXX='-Wl,'
14855 lt_prog_compiler_static_CXX='-static'
14859 # All AIX code is PIC.
14860 if test "$host_cpu" = ia64; then
14861 # AIX 5 now supports IA64 processor
14862 lt_prog_compiler_static_CXX='-Bstatic'
14869 # see comment about AmigaOS4 .so support
14870 lt_prog_compiler_pic_CXX='-fPIC'
14873 # FIXME: we need at least 68020 code to build shared libraries, but
14874 # adding the `-m68020' flag to GCC prevents building anything better,
14876 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14881 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14882 # PIC is the default for these OSes.
14884 mingw* | cygwin* | os2* | pw32* | cegcc*)
14885 # This hack is so that the source file can tell whether it is being
14886 # built for inclusion in a dll (and should export symbols for example).
14887 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14888 # (--disable-auto-import) libraries
14889 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14891 darwin* | rhapsody*)
14892 # PIC is the default on this platform
14893 # Common symbols not allowed in MH_DYLIB files
14894 lt_prog_compiler_pic_CXX='-fno-common'
14897 # DJGPP does not support shared libraries at all
14898 lt_prog_compiler_pic_CXX=
14901 # PIC is the default for Haiku.
14902 # The "-static" flag exists, but is broken.
14903 lt_prog_compiler_static_CXX=
14906 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14907 # Instead, we relocate shared libraries at runtime.
14910 if test -d /usr/nec; then
14911 lt_prog_compiler_pic_CXX=-Kconform_pic
14915 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14916 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14917 # sets the default TLS model and affects inlining.
14922 lt_prog_compiler_pic_CXX='-fPIC'
14927 # QNX uses GNU C++, but need to define -shared option too, otherwise
14928 # it will coredump.
14929 lt_prog_compiler_pic_CXX='-fPIC -shared'
14932 lt_prog_compiler_pic_CXX='-fPIC'
14938 # All AIX code is PIC.
14939 if test "$host_cpu" = ia64; then
14940 # AIX 5 now supports IA64 processor
14941 lt_prog_compiler_static_CXX='-Bstatic'
14943 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14947 case $cc_basename in
14949 # Green Hills C++ Compiler
14950 # _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"
14954 mingw* | cygwin* | os2* | pw32* | cegcc*)
14955 # This hack is so that the source file can tell whether it is being
14956 # built for inclusion in a dll (and should export symbols for example).
14957 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14960 case $cc_basename in
14962 lt_prog_compiler_pic_CXX='-KPIC'
14965 # Green Hills C++ Compiler
14966 lt_prog_compiler_pic_CXX='-pic'
14972 freebsd* | dragonfly*)
14973 # FreeBSD uses GNU C++
14975 hpux9* | hpux10* | hpux11*)
14976 case $cc_basename in
14978 lt_prog_compiler_wl_CXX='-Wl,'
14979 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14980 if test "$host_cpu" != ia64; then
14981 lt_prog_compiler_pic_CXX='+Z'
14985 lt_prog_compiler_wl_CXX='-Wl,'
14986 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14992 lt_prog_compiler_pic_CXX='+Z'
15001 # This is c89, which is MS Visual C++ (no shared libs)
15002 # Anyone wants to do a port?
15004 irix5* | irix6* | nonstopux*)
15005 case $cc_basename in
15007 lt_prog_compiler_wl_CXX='-Wl,'
15008 lt_prog_compiler_static_CXX='-non_shared'
15009 # CC pic flag -KPIC is the default.
15015 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15016 case $cc_basename in
15019 lt_prog_compiler_wl_CXX='--backend -Wl,'
15020 lt_prog_compiler_pic_CXX='-fPIC'
15023 # old Intel C++ for x86_64 which still supported -KPIC.
15024 lt_prog_compiler_wl_CXX='-Wl,'
15025 lt_prog_compiler_pic_CXX='-KPIC'
15026 lt_prog_compiler_static_CXX='-static'
15029 # Intel C++, used to be incompatible with GCC.
15030 # ICC 10 doesn't accept -KPIC any more.
15031 lt_prog_compiler_wl_CXX='-Wl,'
15032 lt_prog_compiler_pic_CXX='-fPIC'
15033 lt_prog_compiler_static_CXX='-static'
15036 # Portland Group C++ compiler
15037 lt_prog_compiler_wl_CXX='-Wl,'
15038 lt_prog_compiler_pic_CXX='-fpic'
15039 lt_prog_compiler_static_CXX='-Bstatic'
15043 # Make sure the PIC flag is empty. It appears that all Alpha
15044 # Linux and Compaq Tru64 Unix objects are PIC.
15045 lt_prog_compiler_pic_CXX=
15046 lt_prog_compiler_static_CXX='-non_shared'
15048 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
15049 # IBM XL 8.0, 9.0 on PPC and BlueGene
15050 lt_prog_compiler_wl_CXX='-Wl,'
15051 lt_prog_compiler_pic_CXX='-qpic'
15052 lt_prog_compiler_static_CXX='-qstaticlink'
15055 case `$CC -V 2>&1 | sed 5q` in
15058 lt_prog_compiler_pic_CXX='-KPIC'
15059 lt_prog_compiler_static_CXX='-Bstatic'
15060 lt_prog_compiler_wl_CXX='-Qoption ld '
15071 case $cc_basename in
15073 lt_prog_compiler_pic_CXX='-W c,exportall'
15079 netbsd* | netbsdelf*-gnu)
15082 # QNX uses GNU C++, but need to define -shared option too, otherwise
15083 # it will coredump.
15084 lt_prog_compiler_pic_CXX='-fPIC -shared'
15086 osf3* | osf4* | osf5*)
15087 case $cc_basename in
15089 lt_prog_compiler_wl_CXX='--backend -Wl,'
15092 # Rational C++ 2.4.1
15093 lt_prog_compiler_pic_CXX='-pic'
15096 # Digital/Compaq C++
15097 lt_prog_compiler_wl_CXX='-Wl,'
15098 # Make sure the PIC flag is empty. It appears that all Alpha
15099 # Linux and Compaq Tru64 Unix objects are PIC.
15100 lt_prog_compiler_pic_CXX=
15101 lt_prog_compiler_static_CXX='-non_shared'
15110 case $cc_basename in
15112 # Sun C++ 4.2, 5.x and Centerline C++
15113 lt_prog_compiler_pic_CXX='-KPIC'
15114 lt_prog_compiler_static_CXX='-Bstatic'
15115 lt_prog_compiler_wl_CXX='-Qoption ld '
15118 # Green Hills C++ Compiler
15119 lt_prog_compiler_pic_CXX='-PIC'
15126 case $cc_basename in
15129 lt_prog_compiler_pic_CXX='-pic'
15130 lt_prog_compiler_static_CXX='-Bstatic'
15134 lt_prog_compiler_pic_CXX='-pic'
15140 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15141 case $cc_basename in
15143 lt_prog_compiler_wl_CXX='-Wl,'
15144 lt_prog_compiler_pic_CXX='-KPIC'
15145 lt_prog_compiler_static_CXX='-Bstatic'
15150 case $cc_basename in
15152 # NonStop-UX NCC 3.20
15153 lt_prog_compiler_pic_CXX='-KPIC'
15162 lt_prog_compiler_can_build_shared_CXX=no
15168 # For platforms which do not support PIC, -DPIC is meaningless:
15170 lt_prog_compiler_pic_CXX=
15173 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
15177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15178 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15179 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
15180 $as_echo_n "(cached) " >&6
15182 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
15184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
15185 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
15186 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
15189 # Check to make sure the PIC flag actually works.
15191 if test -n "$lt_prog_compiler_pic_CXX"; then
15192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
15193 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
15194 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
15195 $as_echo_n "(cached) " >&6
15197 lt_cv_prog_compiler_pic_works_CXX=no
15198 ac_outfile=conftest.$ac_objext
15199 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15200 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
15201 # Insert the option either (1) after the last *FLAGS variable, or
15202 # (2) before a word containing "conftest.", or (3) at the end.
15203 # Note that $ac_compile itself does not contain backslashes and begins
15204 # with a dollar sign (not a hyphen), so the echo should work correctly.
15205 # The option is referenced via a variable to avoid confusing sed.
15206 lt_compile=`echo "$ac_compile" | $SED \
15207 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15208 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15209 -e 's:$: $lt_compiler_flag:'`
15210 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15211 (eval "$lt_compile" 2>conftest.err)
15213 cat conftest.err >&5
15214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15215 if (exit $ac_status) && test -s "$ac_outfile"; then
15216 # The compiler can only warn and ignore the option if not recognized
15217 # So say no if there are warnings other than the usual output.
15218 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15219 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15220 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15221 lt_cv_prog_compiler_pic_works_CXX=yes
15227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
15228 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
15230 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
15231 case $lt_prog_compiler_pic_CXX in
15233 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
15236 lt_prog_compiler_pic_CXX=
15237 lt_prog_compiler_can_build_shared_CXX=no
15247 # Check to make sure the static flag actually works.
15249 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
15250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15251 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15252 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
15253 $as_echo_n "(cached) " >&6
15255 lt_cv_prog_compiler_static_works_CXX=no
15256 save_LDFLAGS="$LDFLAGS"
15257 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15258 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15259 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15260 # The linker can only warn and ignore the option if not recognized
15261 # So say no if there are warnings
15262 if test -s conftest.err; then
15263 # Append any errors to the config.log.
15264 cat conftest.err 1>&5
15265 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15266 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15267 if diff conftest.exp conftest.er2 >/dev/null; then
15268 lt_cv_prog_compiler_static_works_CXX=yes
15271 lt_cv_prog_compiler_static_works_CXX=yes
15275 LDFLAGS="$save_LDFLAGS"
15278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
15279 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
15281 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
15284 lt_prog_compiler_static_CXX=
15290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15291 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15292 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15293 $as_echo_n "(cached) " >&6
15295 lt_cv_prog_compiler_c_o_CXX=no
15296 $RM -r conftest 2>/dev/null
15300 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15302 lt_compiler_flag="-o out/conftest2.$ac_objext"
15303 # Insert the option either (1) after the last *FLAGS variable, or
15304 # (2) before a word containing "conftest.", or (3) at the end.
15305 # Note that $ac_compile itself does not contain backslashes and begins
15306 # with a dollar sign (not a hyphen), so the echo should work correctly.
15307 lt_compile=`echo "$ac_compile" | $SED \
15308 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15309 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15310 -e 's:$: $lt_compiler_flag:'`
15311 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15312 (eval "$lt_compile" 2>out/conftest.err)
15314 cat out/conftest.err >&5
15315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15316 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15318 # The compiler can only warn and ignore the option if not recognized
15319 # So say no if there are warnings
15320 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15321 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15322 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15323 lt_cv_prog_compiler_c_o_CXX=yes
15328 # SGI C++ compiler will create directory out/ii_files/ for
15329 # template instantiation
15330 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15331 $RM out/* && rmdir out
15337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15338 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15343 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15344 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15345 $as_echo_n "(cached) " >&6
15347 lt_cv_prog_compiler_c_o_CXX=no
15348 $RM -r conftest 2>/dev/null
15352 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15354 lt_compiler_flag="-o out/conftest2.$ac_objext"
15355 # Insert the option either (1) after the last *FLAGS variable, or
15356 # (2) before a word containing "conftest.", or (3) at the end.
15357 # Note that $ac_compile itself does not contain backslashes and begins
15358 # with a dollar sign (not a hyphen), so the echo should work correctly.
15359 lt_compile=`echo "$ac_compile" | $SED \
15360 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15361 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15362 -e 's:$: $lt_compiler_flag:'`
15363 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15364 (eval "$lt_compile" 2>out/conftest.err)
15366 cat out/conftest.err >&5
15367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15368 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15370 # The compiler can only warn and ignore the option if not recognized
15371 # So say no if there are warnings
15372 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15373 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15374 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15375 lt_cv_prog_compiler_c_o_CXX=yes
15380 # SGI C++ compiler will create directory out/ii_files/ for
15381 # template instantiation
15382 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15383 $RM out/* && rmdir out
15389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15390 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15395 hard_links="nottested"
15396 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
15397 # do not overwrite the value of need_locks provided by the user
15398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15399 $as_echo_n "checking if we can lock with hard links... " >&6; }
15402 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15404 ln conftest.a conftest.b 2>&5 || hard_links=no
15405 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15407 $as_echo "$hard_links" >&6; }
15408 if test "$hard_links" = no; then
15409 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15410 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15420 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15422 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15423 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15426 # If we're using GNU nm, then we don't want the "-C" option.
15427 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15428 # Also, AIX nm treats weak defined symbols like other global defined
15429 # symbols, whereas GNU nm marks them as "W".
15430 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15431 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'
15433 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'
15437 export_symbols_cmds_CXX="$ltdll_cmds"
15439 cygwin* | mingw* | cegcc*)
15440 case $cc_basename in
15442 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
15445 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'
15446 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
15450 linux* | k*bsd*-gnu | gnu*)
15451 link_all_deplibs_CXX=no
15454 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15459 $as_echo "$ld_shlibs_CXX" >&6; }
15460 test "$ld_shlibs_CXX" = no && can_build_shared=no
15462 with_gnu_ld_CXX=$with_gnu_ld
15470 # Do we need to explicitly link libc?
15472 case "x$archive_cmds_need_lc_CXX" in
15474 # Assume -lc should be added
15475 archive_cmds_need_lc_CXX=yes
15477 if test "$enable_shared" = yes && test "$GCC" = yes; then
15478 case $archive_cmds_CXX in
15480 # FIXME: we may have to deal with multi-command sequences.
15483 # Test whether the compiler implicitly links with -lc since on some
15484 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15485 # to ld, don't add -lc before -lgcc.
15486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15487 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15488 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
15489 $as_echo_n "(cached) " >&6
15492 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15494 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15495 (eval $ac_compile) 2>&5
15497 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15498 test $ac_status = 0; } 2>conftest.err; then
15501 libobjs=conftest.$ac_objext
15503 wl=$lt_prog_compiler_wl_CXX
15504 pic_flag=$lt_prog_compiler_pic_CXX
15510 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15511 allow_undefined_flag_CXX=
15512 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15513 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15515 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15516 test $ac_status = 0; }
15518 lt_cv_archive_cmds_need_lc_CXX=no
15520 lt_cv_archive_cmds_need_lc_CXX=yes
15522 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15524 cat conftest.err 1>&5
15529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
15530 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
15531 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
15599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15600 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15602 library_names_spec=
15603 libname_spec='lib$name'
15607 postuninstall_cmds=
15611 shlibpath_overrides_runpath=unknown
15613 dynamic_linker="$host_os ld.so"
15614 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15615 need_lib_prefix=unknown
15616 hardcode_into_libs=no
15618 # when you set need_version to no, make sure it does not cause -set_version
15619 # flags to be left without arguments
15620 need_version=unknown
15624 version_type=linux # correct to gnu/linux during the next big refactor
15625 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15626 shlibpath_var=LIBPATH
15628 # AIX 3 has no versioning support, so we append a major version to the name.
15629 soname_spec='${libname}${release}${shared_ext}$major'
15633 version_type=linux # correct to gnu/linux during the next big refactor
15636 hardcode_into_libs=yes
15637 if test "$host_cpu" = ia64; then
15638 # AIX 5 supports IA64
15639 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15640 shlibpath_var=LD_LIBRARY_PATH
15642 # With GCC up to 2.95.x, collect2 would create an import file
15643 # for dependence libraries. The import file would start with
15644 # the line `#! .'. This would cause the generated library to
15645 # depend on `.', always an invalid library. This was fixed in
15646 # development snapshots of GCC prior to 3.0.
15648 aix4 | aix4.[01] | aix4.[01].*)
15649 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15651 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15654 can_build_shared=no
15658 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15659 # soname into executable. Probably we can add versioning support to
15660 # collect2, so additional links can be useful in future.
15661 if test "$aix_use_runtimelinking" = yes; then
15662 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15663 # instead of lib<name>.a to let people know that these are not
15664 # typical AIX shared libraries.
15665 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15667 # We preserve .a as extension for shared libraries through AIX4.2
15668 # and later when we are not doing run time linking.
15669 library_names_spec='${libname}${release}.a $libname.a'
15670 soname_spec='${libname}${release}${shared_ext}$major'
15672 shlibpath_var=LIBPATH
15679 # Since July 2007 AmigaOS4 officially supports .so libraries.
15680 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15681 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15684 library_names_spec='$libname.ixlibrary $libname.a'
15685 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15686 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'
15692 library_names_spec='${libname}${shared_ext}'
15693 dynamic_linker="$host_os ld.so"
15694 shlibpath_var=LIBRARY_PATH
15698 version_type=linux # correct to gnu/linux during the next big refactor
15700 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15701 soname_spec='${libname}${release}${shared_ext}$major'
15702 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15703 shlibpath_var=LD_LIBRARY_PATH
15704 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15705 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15706 # the default ld.so.conf also contains /usr/contrib/lib and
15707 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15708 # libtool to hard-code these into programs
15711 cygwin* | mingw* | pw32* | cegcc*)
15712 version_type=windows
15717 case $GCC,$cc_basename in
15720 library_names_spec='$libname.dll.a'
15721 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15722 postinstall_cmds='base_file=`basename \${file}`~
15723 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15724 dldir=$destdir/`dirname \$dlpath`~
15725 test -d \$dldir || mkdir -p \$dldir~
15726 $install_prog $dir/$dlname \$dldir/$dlname~
15727 chmod a+x \$dldir/$dlname~
15728 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15729 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15731 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15732 dlpath=$dir/\$dldll~
15734 shlibpath_overrides_runpath=yes
15738 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15739 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15743 # MinGW DLLs use traditional 'lib' prefix
15744 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15747 # pw32 DLLs use 'pw' prefix rather than 'lib'
15748 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15751 dynamic_linker='Win32 ld.exe'
15756 libname_spec='$name'
15757 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15758 library_names_spec='${libname}.dll.lib'
15762 sys_lib_search_path_spec=
15765 for lt_path in $LIB
15768 # Let DOS variable expansion print the short 8.3 style file name.
15769 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15770 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15773 # Convert to MSYS style.
15774 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15777 # Convert to unix form, then to dos form, then back to unix form
15778 # but this time dos style (no spaces!) so that the unix form looks
15779 # like /cygdrive/c/PROGRA~1:/cygdr...
15780 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15781 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15782 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15785 sys_lib_search_path_spec="$LIB"
15786 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15787 # It is most probably a Windows format PATH.
15788 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15790 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15792 # FIXME: find the short name or the path components, as spaces are
15793 # common. (e.g. "Program Files" -> "PROGRA~1")
15797 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15798 postinstall_cmds='base_file=`basename \${file}`~
15799 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15800 dldir=$destdir/`dirname \$dlpath`~
15801 test -d \$dldir || mkdir -p \$dldir~
15802 $install_prog $dir/$dlname \$dldir/$dlname'
15803 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15804 dlpath=$dir/\$dldll~
15806 shlibpath_overrides_runpath=yes
15807 dynamic_linker='Win32 link.exe'
15811 # Assume MSVC wrapper
15812 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15813 dynamic_linker='Win32 ld.exe'
15816 # FIXME: first we should search . and the directory the executable is in
15820 darwin* | rhapsody*)
15821 dynamic_linker="$host_os dyld"
15822 version_type=darwin
15825 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15826 soname_spec='${libname}${release}${major}$shared_ext'
15827 shlibpath_overrides_runpath=yes
15828 shlibpath_var=DYLD_LIBRARY_PATH
15829 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15831 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15835 version_type=linux # correct to gnu/linux during the next big refactor
15838 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15839 soname_spec='${libname}${release}${shared_ext}$major'
15840 shlibpath_var=LD_LIBRARY_PATH
15843 freebsd* | dragonfly*)
15844 # DragonFly does not have aout. When/if they implement a new
15845 # versioning mechanism, adjust this.
15846 if test -x /usr/bin/objformat; then
15847 objformat=`/usr/bin/objformat`
15850 freebsd[23].*) objformat=aout ;;
15851 *) objformat=elf ;;
15854 version_type=freebsd-$objformat
15855 case $version_type in
15857 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15862 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15866 shlibpath_var=LD_LIBRARY_PATH
15869 shlibpath_overrides_runpath=yes
15871 freebsd3.[01]* | freebsdelf3.[01]*)
15872 shlibpath_overrides_runpath=yes
15873 hardcode_into_libs=yes
15875 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15876 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15877 shlibpath_overrides_runpath=no
15878 hardcode_into_libs=yes
15880 *) # from 4.6 on, and DragonFly
15881 shlibpath_overrides_runpath=yes
15882 hardcode_into_libs=yes
15888 version_type=linux # correct to gnu/linux during the next big refactor
15891 dynamic_linker="$host_os runtime_loader"
15892 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15893 soname_spec='${libname}${release}${shared_ext}$major'
15894 shlibpath_var=LIBRARY_PATH
15895 shlibpath_overrides_runpath=yes
15896 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15897 hardcode_into_libs=yes
15900 hpux9* | hpux10* | hpux11*)
15901 # Give a soname corresponding to the major version so that dld.sl refuses to
15902 # link against other versions.
15909 hardcode_into_libs=yes
15910 dynamic_linker="$host_os dld.so"
15911 shlibpath_var=LD_LIBRARY_PATH
15912 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15913 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15914 soname_spec='${libname}${release}${shared_ext}$major'
15915 if test "X$HPUX_IA64_MODE" = X32; then
15916 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15918 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15920 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15924 hardcode_into_libs=yes
15925 dynamic_linker="$host_os dld.sl"
15926 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15927 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15928 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15929 soname_spec='${libname}${release}${shared_ext}$major'
15930 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15931 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15935 dynamic_linker="$host_os dld.sl"
15936 shlibpath_var=SHLIB_PATH
15937 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15938 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15939 soname_spec='${libname}${release}${shared_ext}$major'
15942 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15943 postinstall_cmds='chmod 555 $lib'
15944 # or fails outright, so override atomically:
15945 install_override_mode=555
15949 version_type=linux # correct to gnu/linux during the next big refactor
15952 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15953 soname_spec='${libname}${release}${shared_ext}$major'
15954 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15955 shlibpath_var=LD_LIBRARY_PATH
15956 shlibpath_overrides_runpath=no
15957 hardcode_into_libs=yes
15960 irix5* | irix6* | nonstopux*)
15962 nonstopux*) version_type=nonstopux ;;
15964 if test "$lt_cv_prog_gnu_ld" = yes; then
15965 version_type=linux # correct to gnu/linux during the next big refactor
15972 soname_spec='${libname}${release}${shared_ext}$major'
15973 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15975 irix5* | nonstopux*)
15976 libsuff= shlibsuff=
15979 case $LD in # libtool.m4 will add one of these switches to LD
15980 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15981 libsuff= shlibsuff= libmagic=32-bit;;
15982 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15983 libsuff=32 shlibsuff=N32 libmagic=N32;;
15984 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15985 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15986 *) libsuff= shlibsuff= libmagic=never-match;;
15990 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15991 shlibpath_overrides_runpath=no
15992 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15993 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15994 hardcode_into_libs=yes
15997 # No shared lib support for Linux oldld, aout, or coff.
15998 linux*oldld* | linux*aout* | linux*coff*)
16002 # This must be glibc/ELF.
16003 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
16004 version_type=linux # correct to gnu/linux during the next big refactor
16007 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16008 soname_spec='${libname}${release}${shared_ext}$major'
16009 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16010 shlibpath_var=LD_LIBRARY_PATH
16011 shlibpath_overrides_runpath=no
16013 # Some binutils ld are patched to set DT_RUNPATH
16014 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
16015 $as_echo_n "(cached) " >&6
16017 lt_cv_shlibpath_overrides_runpath=no
16018 save_LDFLAGS=$LDFLAGS
16019 save_libdir=$libdir
16020 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
16021 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
16022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16023 /* end confdefs.h. */
16033 if ac_fn_cxx_try_link "$LINENO"; then :
16034 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
16035 lt_cv_shlibpath_overrides_runpath=yes
16038 rm -f core conftest.err conftest.$ac_objext \
16039 conftest$ac_exeext conftest.$ac_ext
16040 LDFLAGS=$save_LDFLAGS
16041 libdir=$save_libdir
16045 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16047 # This implies no fast_install, which is unacceptable.
16048 # Some rework will be needed to allow for fast_install
16049 # before this can be enabled.
16050 hardcode_into_libs=yes
16052 # Append ld.so.conf contents to the search path
16053 if test -f /etc/ld.so.conf; then
16054 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' ' '`
16055 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16058 # We used to test for /lib/ld.so.1 and disable shared libraries on
16059 # powerpc, because MkLinux only supported shared libraries with the
16060 # GNU dynamic linker. Since this was broken with cross compilers,
16061 # most powerpc-linux boxes support dynamic linking these days and
16062 # people can always --disable-shared, the test was removed, and we
16063 # assume the GNU/Linux dynamic linker is in use.
16064 dynamic_linker='GNU/Linux ld.so'
16071 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16072 soname_spec='${libname}${release}${shared_ext}$major'
16073 shlibpath_var=LD_LIBRARY_PATH
16074 shlibpath_overrides_runpath=no
16075 hardcode_into_libs=yes
16076 dynamic_linker='NetBSD ld.elf_so'
16083 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16084 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16085 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16086 dynamic_linker='NetBSD (a.out) ld.so'
16088 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16089 soname_spec='${libname}${release}${shared_ext}$major'
16090 dynamic_linker='NetBSD ld.elf_so'
16092 shlibpath_var=LD_LIBRARY_PATH
16093 shlibpath_overrides_runpath=yes
16094 hardcode_into_libs=yes
16098 version_type=linux # correct to gnu/linux during the next big refactor
16099 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16100 shlibpath_var=LD_LIBRARY_PATH
16101 shlibpath_overrides_runpath=yes
16108 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16109 soname_spec='${libname}${release}${shared_ext}$major'
16110 shlibpath_var=LD_LIBRARY_PATH
16111 shlibpath_overrides_runpath=no
16112 hardcode_into_libs=yes
16113 dynamic_linker='ldqnx.so'
16118 sys_lib_dlsearch_path_spec="/usr/lib"
16120 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16122 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16123 *) need_version=no ;;
16125 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16126 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16127 shlibpath_var=LD_LIBRARY_PATH
16128 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16130 openbsd2.[89] | openbsd2.[89].*)
16131 shlibpath_overrides_runpath=no
16134 shlibpath_overrides_runpath=yes
16138 shlibpath_overrides_runpath=yes
16143 libname_spec='$name'
16146 library_names_spec='$libname${shared_ext} $libname.a'
16147 dynamic_linker='OS/2 ld.exe'
16148 shlibpath_var=LIBPATH
16151 osf3* | osf4* | osf5*)
16155 soname_spec='${libname}${release}${shared_ext}$major'
16156 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16157 shlibpath_var=LD_LIBRARY_PATH
16158 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16159 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16167 version_type=linux # correct to gnu/linux during the next big refactor
16170 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16171 soname_spec='${libname}${release}${shared_ext}$major'
16172 shlibpath_var=LD_LIBRARY_PATH
16173 shlibpath_overrides_runpath=yes
16174 hardcode_into_libs=yes
16175 # ldd complains unless libraries are executable
16176 postinstall_cmds='chmod +x $lib'
16181 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16182 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16183 shlibpath_var=LD_LIBRARY_PATH
16184 shlibpath_overrides_runpath=yes
16185 if test "$with_gnu_ld" = yes; then
16192 version_type=linux # correct to gnu/linux during the next big refactor
16193 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16194 soname_spec='${libname}${release}${shared_ext}$major'
16195 shlibpath_var=LD_LIBRARY_PATH
16196 case $host_vendor in
16198 shlibpath_overrides_runpath=no
16200 runpath_var=LD_RUN_PATH
16208 shlibpath_overrides_runpath=no
16209 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16215 if test -d /usr/nec ;then
16216 version_type=linux # correct to gnu/linux during the next big refactor
16217 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16218 soname_spec='$libname${shared_ext}.$major'
16219 shlibpath_var=LD_LIBRARY_PATH
16223 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16224 version_type=freebsd-elf
16227 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16228 soname_spec='${libname}${release}${shared_ext}$major'
16229 shlibpath_var=LD_LIBRARY_PATH
16230 shlibpath_overrides_runpath=yes
16231 hardcode_into_libs=yes
16232 if test "$with_gnu_ld" = yes; then
16233 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16235 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16238 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16242 sys_lib_dlsearch_path_spec='/usr/lib'
16246 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
16247 version_type=linux # correct to gnu/linux during the next big refactor
16250 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16251 shlibpath_var=LD_LIBRARY_PATH
16252 shlibpath_overrides_runpath=no
16253 hardcode_into_libs=yes
16257 version_type=linux # correct to gnu/linux during the next big refactor
16258 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16259 soname_spec='${libname}${release}${shared_ext}$major'
16260 shlibpath_var=LD_LIBRARY_PATH
16267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16268 $as_echo "$dynamic_linker" >&6; }
16269 test "$dynamic_linker" = no && can_build_shared=no
16271 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16272 if test "$GCC" = yes; then
16273 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16276 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16277 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16279 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16280 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16321 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16322 hardcode_action_CXX=
16323 if test -n "$hardcode_libdir_flag_spec_CXX" ||
16324 test -n "$runpath_var_CXX" ||
16325 test "X$hardcode_automatic_CXX" = "Xyes" ; then
16327 # We can hardcode non-existent directories.
16328 if test "$hardcode_direct_CXX" != no &&
16329 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16330 # have to relink, otherwise we might link with an installed library
16331 # when we should be linking with a yet-to-be-installed one
16332 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
16333 test "$hardcode_minus_L_CXX" != no; then
16334 # Linking always hardcodes the temporary library directory.
16335 hardcode_action_CXX=relink
16337 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16338 hardcode_action_CXX=immediate
16341 # We cannot hardcode anything, or else we can only hardcode existing
16343 hardcode_action_CXX=unsupported
16345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
16346 $as_echo "$hardcode_action_CXX" >&6; }
16348 if test "$hardcode_action_CXX" = relink ||
16349 test "$inherit_rpath_CXX" = yes; then
16350 # Fast installation is not supported
16351 enable_fast_install=no
16352 elif test "$shlibpath_overrides_runpath" = yes ||
16353 test "$enable_shared" = no; then
16354 # Fast installation is not necessary
16355 enable_fast_install=needless
16364 fi # test -n "$compiler"
16367 CFLAGS=$lt_save_CFLAGS
16371 with_gnu_ld=$lt_save_with_gnu_ld
16372 lt_cv_path_LDCXX=$lt_cv_path_LD
16373 lt_cv_path_LD=$lt_save_path_LD
16374 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16375 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16376 fi # test "$_lt_caught_CXX_error" != yes
16379 ac_cpp='$CPP $CPPFLAGS'
16380 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16381 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16382 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16398 ac_config_commands="$ac_config_commands libtool"
16403 # Only expand once:
16411 ac_cpp='$CPP $CPPFLAGS'
16412 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16413 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16414 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
16419 $as_echo_n "checking for library containing dlopen... " >&6; }
16420 if ${ac_cv_search_dlopen+:} false; then :
16421 $as_echo_n "(cached) " >&6
16423 ac_func_search_save_LIBS=$LIBS
16424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16425 /* end confdefs.h. */
16427 /* Override any GCC internal prototype to avoid an error.
16428 Use char because int might match the return type of a GCC
16429 builtin and then its argument prototype would still apply. */
16442 for ac_lib in '' dl; do
16443 if test -z "$ac_lib"; then
16444 ac_res="none required"
16447 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16449 if ac_fn_c_try_link "$LINENO"; then :
16450 ac_cv_search_dlopen=$ac_res
16452 rm -f core conftest.err conftest.$ac_objext \
16454 if ${ac_cv_search_dlopen+:} false; then :
16458 if ${ac_cv_search_dlopen+:} false; then :
16461 ac_cv_search_dlopen=no
16463 rm conftest.$ac_ext
16464 LIBS=$ac_func_search_save_LIBS
16466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
16467 $as_echo "$ac_cv_search_dlopen" >&6; }
16468 ac_res=$ac_cv_search_dlopen
16469 if test "$ac_res" != no; then :
16470 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16472 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
16474 if test "$ac_cv_search_dlopen" != "none required" ; then
16475 LIBADD_DLOPEN="-ldl"
16477 libltdl_cv_lib_dl_dlopen="yes"
16478 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
16480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16481 /* end confdefs.h. */
16483 # include <dlfcn.h>
16494 if ac_fn_c_try_link "$LINENO"; then :
16496 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
16498 libltdl_cv_func_dlopen="yes"
16499 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
16501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
16502 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
16503 if ${ac_cv_lib_svld_dlopen+:} false; then :
16504 $as_echo_n "(cached) " >&6
16506 ac_check_lib_save_LIBS=$LIBS
16507 LIBS="-lsvld $LIBS"
16508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16509 /* end confdefs.h. */
16511 /* Override any GCC internal prototype to avoid an error.
16512 Use char because int might match the return type of a GCC
16513 builtin and then its argument prototype would still apply. */
16526 if ac_fn_c_try_link "$LINENO"; then :
16527 ac_cv_lib_svld_dlopen=yes
16529 ac_cv_lib_svld_dlopen=no
16531 rm -f core conftest.err conftest.$ac_objext \
16532 conftest$ac_exeext conftest.$ac_ext
16533 LIBS=$ac_check_lib_save_LIBS
16535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
16536 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
16537 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
16539 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
16541 LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
16542 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
16546 rm -f core conftest.err conftest.$ac_objext \
16547 conftest$ac_exeext conftest.$ac_ext
16550 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
16552 lt_save_LIBS="$LIBS"
16553 LIBS="$LIBS $LIBADD_DLOPEN"
16554 for ac_func in dlerror
16556 ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror"
16557 if test "x$ac_cv_func_dlerror" = xyes; then :
16558 cat >>confdefs.h <<_ACEOF
16559 #define HAVE_DLERROR 1
16565 LIBS="$lt_save_LIBS"
16570 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
16571 if test "x$ac_cv_func_shl_load" = xyes; then :
16573 $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
16575 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
16577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
16578 $as_echo_n "checking for shl_load in -ldld... " >&6; }
16579 if ${ac_cv_lib_dld_shl_load+:} false; then :
16580 $as_echo_n "(cached) " >&6
16582 ac_check_lib_save_LIBS=$LIBS
16584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16585 /* end confdefs.h. */
16587 /* Override any GCC internal prototype to avoid an error.
16588 Use char because int might match the return type of a GCC
16589 builtin and then its argument prototype would still apply. */
16597 return shl_load ();
16602 if ac_fn_c_try_link "$LINENO"; then :
16603 ac_cv_lib_dld_shl_load=yes
16605 ac_cv_lib_dld_shl_load=no
16607 rm -f core conftest.err conftest.$ac_objext \
16608 conftest$ac_exeext conftest.$ac_ext
16609 LIBS=$ac_check_lib_save_LIBS
16611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
16612 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
16613 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
16615 $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
16617 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
16618 LIBADD_SHL_LOAD="-ldld"
16627 # We only want this for pre-Mac OS X 10.4.
16628 ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup"
16629 if test "x$ac_cv_func__dyld_func_lookup" = xyes; then :
16631 $as_echo "#define HAVE_DYLD 1" >>confdefs.h
16633 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
16638 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
16640 cygwin* | mingw* | os2* | pw32*)
16641 ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h>
16643 if test "x$ac_cv_have_decl_cygwin_conv_path" = xyes; then :
16649 cat >>confdefs.h <<_ACEOF
16650 #define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl
16653 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
16657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
16658 $as_echo_n "checking for dld_link in -ldld... " >&6; }
16659 if ${ac_cv_lib_dld_dld_link+:} false; then :
16660 $as_echo_n "(cached) " >&6
16662 ac_check_lib_save_LIBS=$LIBS
16664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16665 /* end confdefs.h. */
16667 /* Override any GCC internal prototype to avoid an error.
16668 Use char because int might match the return type of a GCC
16669 builtin and then its argument prototype would still apply. */
16677 return dld_link ();
16682 if ac_fn_c_try_link "$LINENO"; then :
16683 ac_cv_lib_dld_dld_link=yes
16685 ac_cv_lib_dld_dld_link=no
16687 rm -f core conftest.err conftest.$ac_objext \
16688 conftest$ac_exeext conftest.$ac_ext
16689 LIBS=$ac_check_lib_save_LIBS
16691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
16692 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
16693 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
16695 $as_echo "#define HAVE_DLD 1" >>confdefs.h
16697 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
16704 if test -n "$LT_DLLOADERS"
16706 for lt_loader in $LT_DLLOADERS; do
16707 LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
16710 $as_echo "#define HAVE_LIBDLLOADER 1" >>confdefs.h
16715 LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
16719 ac_cpp='$CPP $CPPFLAGS'
16720 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16721 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16722 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16727 if test x$use_libtool != xno; then
16728 DEFAULT_OBJECT_TYPE=".lo"
16729 DEFAULT_ARCHIVE_TYPE=".la"
16730 DEFAULT_SHARED_OBJECT_TYPE=".la"
16731 LIBTOOL="\$(LIBTOOL)"
16732 LIBTOOL_INSTALL_TARGET="libtool-install"
16733 LIBTOOL_UNINSTALL_TARGET="libtool-uninstall"
16734 LIBTOOL_CLEAN_TARGET="libtool-clean"
16735 QMAKE_LIBTOOL="${BUILD_DIR}/libtool"
16736 FD_PLUGIN_DIR="src/plugins/fd"
16739 DEFAULT_OBJECT_TYPE=".o"
16740 DEFAULT_ARCHIVE_TYPE=".a"
16741 DEFAULT_SHARED_OBJECT_TYPE=".so"
16742 LIBTOOL="# \$(LIBTOOL)"
16743 LIBTOOL_INSTALL_TARGET=""
16744 LIBTOOL_UNINSTALL_TARGET=""
16745 LIBTOOL_CLEAN_TARGET=""
16746 QMAKE_LIBTOOL="# ${BUILD_DIR}/libtool"
16761 # Check whether --enable-includes was given.
16762 if test "${enable_includes+set}" = set; then :
16763 enableval=$enable_includes;
16764 if test x$enableval = xyes; then
16765 install_includes=yes
16773 if test x$use_libtool != xno -a x$install_includes = xyes; then
16774 INCLUDE_INSTALL_TARGET="install-includes"
16775 INCLUDE_UNINSTALL_TARGET="uninstall-includes"
16777 INCLUDE_INSTALL_TARGET=""
16778 INCLUDE_UNINSTALL_TARGET=""
16786 *cygwin* ) CYGWIN=yes;;
16790 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
16796 HAVE_SUN_OS_FALSE='#'
16798 HAVE_SUN_OS_TRUE='#'
16801 $as_echo "#define HAVE_SUN_OS 1" >>confdefs.h
16808 HAVE_SUN_OS_FALSE='#'
16810 HAVE_SUN_OS_TRUE='#'
16815 if test $HAVE_UNAME=yes -a x`uname -s` = xGNU
16821 HAVE_HURD_OS_FALSE='#'
16823 HAVE_HURD_OS_TRUE='#'
16824 HAVE_HURD_OS_FALSE=
16826 $as_echo "#define HAVE_HURD_OS 1" >>confdefs.h
16833 HAVE_HURD_OS_FALSE='#'
16835 HAVE_HURD_OS_TRUE='#'
16836 HAVE_HURD_OS_FALSE=
16840 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
16846 HAVE_OSF1_OS_FALSE='#'
16848 HAVE_OSF1_OS_TRUE='#'
16849 HAVE_OSF1_OS_FALSE=
16851 $as_echo "#define HAVE_OSF1_OS 1" >>confdefs.h
16858 HAVE_OSF1_OS_FALSE='#'
16860 HAVE_OSF1_OS_TRUE='#'
16861 HAVE_OSF1_OS_FALSE=
16865 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
16871 HAVE_AIX_OS_FALSE='#'
16873 HAVE_AIX_OS_TRUE='#'
16876 $as_echo "#define HAVE_AIX_OS 1" >>confdefs.h
16883 HAVE_AIX_OS_FALSE='#'
16885 HAVE_AIX_OS_TRUE='#'
16890 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
16896 HAVE_HPUX_OS_FALSE='#'
16898 HAVE_HPUX_OS_TRUE='#'
16899 HAVE_HPUX_OS_FALSE=
16901 $as_echo "#define HAVE_HPUX_OS 1" >>confdefs.h
16908 HAVE_HPUX_OS_FALSE='#'
16910 HAVE_HPUX_OS_TRUE='#'
16911 HAVE_HPUX_OS_FALSE=
16915 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
16920 HAVE_LINUX_OS_TRUE=
16921 HAVE_LINUX_OS_FALSE='#'
16923 HAVE_LINUX_OS_TRUE='#'
16924 HAVE_LINUX_OS_FALSE=
16926 $as_echo "#define HAVE_LINUX_OS 1" >>confdefs.h
16932 HAVE_LINUX_OS_TRUE=
16933 HAVE_LINUX_OS_FALSE='#'
16935 HAVE_LINUX_OS_TRUE='#'
16936 HAVE_LINUX_OS_FALSE=
16940 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
16945 HAVE_FREEBSD_OS_TRUE=
16946 HAVE_FREEBSD_OS_FALSE='#'
16948 HAVE_FREEBSD_OS_TRUE='#'
16949 HAVE_FREEBSD_OS_FALSE=
16951 $as_echo "#define HAVE_FREEBSD_OS 1" >>confdefs.h
16957 HAVE_FREEBSD_OS_TRUE=
16958 HAVE_FREEBSD_OS_FALSE='#'
16960 HAVE_FREEBSD_OS_TRUE='#'
16961 HAVE_FREEBSD_OS_FALSE=
16965 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
16970 HAVE_NETBSD_OS_TRUE=
16971 HAVE_NETBSD_OS_FALSE='#'
16973 HAVE_NETBSD_OS_TRUE='#'
16974 HAVE_NETBSD_OS_FALSE=
16976 $as_echo "#define HAVE_NETBSD_OS 1" >>confdefs.h
16982 HAVE_NETBSD_OS_TRUE=
16983 HAVE_NETBSD_OS_FALSE='#'
16985 HAVE_NETBSD_OS_TRUE='#'
16986 HAVE_NETBSD_OS_FALSE=
16990 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
16995 HAVE_OPENBSD_OS_TRUE=
16996 HAVE_OPENBSD_OS_FALSE='#'
16998 HAVE_OPENBSD_OS_TRUE='#'
16999 HAVE_OPENBSD_OS_FALSE=
17001 $as_echo "#define HAVE_OPENBSD_OS 1" >>confdefs.h
17007 HAVE_OPENBSD_OS_TRUE=
17008 HAVE_OPENBSD_OS_FALSE='#'
17010 HAVE_OPENBSD_OS_TRUE='#'
17011 HAVE_OPENBSD_OS_FALSE=
17015 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
17021 HAVE_BSDI_OS_FALSE='#'
17023 HAVE_BSDI_OS_TRUE='#'
17024 HAVE_BSDI_OS_FALSE=
17026 $as_echo "#define HAVE_BSDI_OS 1" >>confdefs.h
17033 HAVE_BSDI_OS_FALSE='#'
17035 HAVE_BSDI_OS_TRUE='#'
17036 HAVE_BSDI_OS_FALSE=
17040 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
17046 HAVE_SGI_OS_FALSE='#'
17048 HAVE_SGI_OS_TRUE='#'
17051 $as_echo "#define HAVE_SGI_OS 1" >>confdefs.h
17058 HAVE_SGI_OS_FALSE='#'
17060 HAVE_SGI_OS_TRUE='#'
17065 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX -o x`uname -s` = xIRIX64
17071 HAVE_IRIX_OS_FALSE='#'
17073 HAVE_IRIX_OS_TRUE='#'
17074 HAVE_IRIX_OS_FALSE=
17076 $as_echo "#define HAVE_IRIX_OS 1" >>confdefs.h
17083 HAVE_IRIX_OS_FALSE='#'
17085 HAVE_IRIX_OS_TRUE='#'
17086 HAVE_IRIX_OS_FALSE=
17090 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
17095 HAVE_DARWIN_OS_TRUE=
17096 HAVE_DARWIN_OS_FALSE='#'
17098 HAVE_DARWIN_OS_TRUE='#'
17099 HAVE_DARWIN_OS_FALSE=
17101 $as_echo "#define HAVE_DARWIN_OS 1" >>confdefs.h
17107 HAVE_DARWIN_OS_TRUE=
17108 HAVE_DARWIN_OS_FALSE='#'
17110 HAVE_DARWIN_OS_TRUE='#'
17111 HAVE_DARWIN_OS_FALSE=
17115 if test $HAVE_UNAME=yes -a x`uname -s` = xGNU/kFreeBSD
17120 HAVE_KFREEBSD_OS_TRUE=
17121 HAVE_KFREEBSD_OS_FALSE='#'
17123 HAVE_KFREEBSD_OS_TRUE='#'
17124 HAVE_KFREEBSD_OS_FALSE=
17126 $as_echo "#define HAVE_KFREEBSD_OS 1" >>confdefs.h
17132 HAVE_KFREEBSD_OS_TRUE=
17133 HAVE_KFREEBSD_OS_FALSE='#'
17135 HAVE_KFREEBSD_OS_TRUE='#'
17136 HAVE_KFREEBSD_OS_FALSE=
17141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Operating System Distribution" >&5
17142 $as_echo_n "checking for Operating System Distribution... " >&6; }
17143 if test "x$DISTNAME" != "x"
17145 echo "distname set to $DISTNAME"
17146 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
17149 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
17152 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
17155 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
17158 elif test $HAVE_UNAME=yes -a x`uname -s` = xGNU
17161 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
17164 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
17167 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
17170 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
17173 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
17176 elif test -f /etc/SuSE-release
17179 elif test -d /etc/SuSEconfig
17182 elif test -f /etc/mandrake-release
17185 elif test -f /etc/whitebox-release
17188 elif test -f /etc/redhat-release
17191 elif test -f /etc/gentoo-release
17194 elif test -f /etc/debian_version
17197 elif test -f /etc/slackware-version
17200 elif test x$host_vendor = xapple
17203 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
17206 elif test -f /etc/engarde-version
17209 elif test -f /etc/arch-release
17212 elif test "$CYGWIN" = yes
17215 $as_echo "#define HAVE_CYGWIN 1" >>confdefs.h
17220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
17221 $as_echo "done" >&6; }
17224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
17225 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
17227 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
17228 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
17229 $as_echo_n "(cached) " >&6
17231 cat >conftest.make <<\_ACEOF
17234 @echo '@@@%%%=$(MAKE)=@@@%%%'
17236 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
17237 case `${MAKE-make} -f conftest.make 2>/dev/null` in
17238 *@@@%%%=?*=@@@%%%*)
17239 eval ac_cv_prog_make_${ac_make}_set=yes;;
17241 eval ac_cv_prog_make_${ac_make}_set=no;;
17243 rm -f conftest.make
17245 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
17246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17247 $as_echo "yes" >&6; }
17250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17251 $as_echo "no" >&6; }
17252 SET_MAKE="MAKE=${MAKE-make}"
17258 if test -n "$ac_aux_dir"; then
17259 case "$ac_aux_dir" in
17260 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
17261 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
17264 if test -z "$MKINSTALLDIRS"; then
17265 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
17270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
17271 $as_echo_n "checking whether NLS is requested... " >&6; }
17272 # Check whether --enable-nls was given.
17273 if test "${enable_nls+set}" = set; then :
17274 enableval=$enable_nls; USE_NLS=$enableval
17279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
17280 $as_echo "$USE_NLS" >&6; }
17287 # Prepare PATH_SEPARATOR.
17288 # The user is always right.
17289 if test "${PATH_SEPARATOR+set}" != set; then
17290 echo "#! /bin/sh" >conf$$.sh
17291 echo "exit 0" >>conf$$.sh
17293 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17301 # Find out how to test for executable files. Don't use a zero-byte file,
17302 # as systems may use methods other than mode bits to determine executability.
17303 cat >conf$$.file <<_ASEOF
17307 chmod +x conf$$.file
17308 if test -x conf$$.file >/dev/null 2>&1; then
17309 ac_executable_p="test -x"
17311 ac_executable_p="test -f"
17315 # Extract the first word of "msgfmt", so it can be a program name with args.
17316 set dummy msgfmt; ac_word=$2
17317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17318 $as_echo_n "checking for $ac_word... " >&6; }
17319 if ${ac_cv_path_MSGFMT+:} false; then :
17320 $as_echo_n "(cached) " >&6
17324 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
17327 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
17328 for ac_dir in $PATH; do
17330 test -z "$ac_dir" && ac_dir=.
17331 for ac_exec_ext in '' $ac_executable_extensions; do
17332 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
17333 echo "$as_me: trying $ac_dir/$ac_word..." >&5
17334 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
17335 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
17336 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
17343 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
17347 MSGFMT="$ac_cv_path_MSGFMT"
17348 if test "$MSGFMT" != ":"; then
17349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
17350 $as_echo "$MSGFMT" >&6; }
17352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17353 $as_echo "no" >&6; }
17356 # Extract the first word of "gmsgfmt", so it can be a program name with args.
17357 set dummy gmsgfmt; ac_word=$2
17358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17359 $as_echo_n "checking for $ac_word... " >&6; }
17360 if ${ac_cv_path_GMSGFMT+:} false; then :
17361 $as_echo_n "(cached) " >&6
17365 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
17368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17369 for as_dir in $PATH
17372 test -z "$as_dir" && as_dir=.
17373 for ac_exec_ext in '' $ac_executable_extensions; do
17374 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17375 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
17376 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17383 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
17387 GMSGFMT=$ac_cv_path_GMSGFMT
17388 if test -n "$GMSGFMT"; then
17389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
17390 $as_echo "$GMSGFMT" >&6; }
17392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17393 $as_echo "no" >&6; }
17399 # Prepare PATH_SEPARATOR.
17400 # The user is always right.
17401 if test "${PATH_SEPARATOR+set}" != set; then
17402 echo "#! /bin/sh" >conf$$.sh
17403 echo "exit 0" >>conf$$.sh
17405 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17413 # Find out how to test for executable files. Don't use a zero-byte file,
17414 # as systems may use methods other than mode bits to determine executability.
17415 cat >conf$$.file <<_ASEOF
17419 chmod +x conf$$.file
17420 if test -x conf$$.file >/dev/null 2>&1; then
17421 ac_executable_p="test -x"
17423 ac_executable_p="test -f"
17427 # Extract the first word of "xgettext", so it can be a program name with args.
17428 set dummy xgettext; ac_word=$2
17429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17430 $as_echo_n "checking for $ac_word... " >&6; }
17431 if ${ac_cv_path_XGETTEXT+:} false; then :
17432 $as_echo_n "(cached) " >&6
17434 case "$XGETTEXT" in
17436 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
17439 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
17440 for ac_dir in $PATH; do
17442 test -z "$ac_dir" && ac_dir=.
17443 for ac_exec_ext in '' $ac_executable_extensions; do
17444 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
17445 echo "$as_me: trying $ac_dir/$ac_word..." >&5
17446 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
17447 (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
17448 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
17455 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
17459 XGETTEXT="$ac_cv_path_XGETTEXT"
17460 if test "$XGETTEXT" != ":"; then
17461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
17462 $as_echo "$XGETTEXT" >&6; }
17464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17465 $as_echo "no" >&6; }
17471 # Prepare PATH_SEPARATOR.
17472 # The user is always right.
17473 if test "${PATH_SEPARATOR+set}" != set; then
17474 echo "#! /bin/sh" >conf$$.sh
17475 echo "exit 0" >>conf$$.sh
17477 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17485 # Find out how to test for executable files. Don't use a zero-byte file,
17486 # as systems may use methods other than mode bits to determine executability.
17487 cat >conf$$.file <<_ASEOF
17491 chmod +x conf$$.file
17492 if test -x conf$$.file >/dev/null 2>&1; then
17493 ac_executable_p="test -x"
17495 ac_executable_p="test -f"
17499 # Extract the first word of "msgmerge", so it can be a program name with args.
17500 set dummy msgmerge; ac_word=$2
17501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17502 $as_echo_n "checking for $ac_word... " >&6; }
17503 if ${ac_cv_path_MSGMERGE+:} false; then :
17504 $as_echo_n "(cached) " >&6
17506 case "$MSGMERGE" in
17508 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
17511 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
17512 for ac_dir in $PATH; do
17514 test -z "$ac_dir" && ac_dir=.
17515 for ac_exec_ext in '' $ac_executable_extensions; do
17516 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
17517 echo "$as_me: trying $ac_dir/$ac_word..." >&5
17518 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
17519 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
17526 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
17530 MSGMERGE="$ac_cv_path_MSGMERGE"
17531 if test "$MSGMERGE" != ":"; then
17532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
17533 $as_echo "$MSGMERGE" >&6; }
17535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17536 $as_echo "no" >&6; }
17540 if test "$GMSGFMT" != ":"; then
17541 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
17542 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
17545 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
17546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
17547 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
17552 if test "$XGETTEXT" != ":"; then
17553 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
17554 (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
17557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
17558 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
17564 ac_config_commands="$ac_config_commands default-1"
17568 if test "X$prefix" = "XNONE"; then
17569 acl_final_prefix="$ac_default_prefix"
17571 acl_final_prefix="$prefix"
17573 if test "X$exec_prefix" = "XNONE"; then
17574 acl_final_exec_prefix='${prefix}'
17576 acl_final_exec_prefix="$exec_prefix"
17578 acl_save_prefix="$prefix"
17579 prefix="$acl_final_prefix"
17580 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
17581 prefix="$acl_save_prefix"
17584 # Check whether --with-gnu-ld was given.
17585 if test "${with_gnu_ld+set}" = set; then :
17586 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
17591 # Prepare PATH_SEPARATOR.
17592 # The user is always right.
17593 if test "${PATH_SEPARATOR+set}" != set; then
17594 echo "#! /bin/sh" >conf$$.sh
17595 echo "exit 0" >>conf$$.sh
17597 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17605 if test "$GCC" = yes; then
17606 # Check if gcc -print-prog-name=ld gives a path.
17607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
17608 $as_echo_n "checking for ld used by GCC... " >&6; }
17611 # gcc leaves a trailing carriage return which upsets mingw
17612 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17614 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
17617 # Accept absolute paths.
17618 [\\/]* | [A-Za-z]:[\\/]*)
17619 re_direlt='/[^/][^/]*/\.\./'
17620 # Canonicalize the path of ld
17621 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
17622 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
17623 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
17625 test -z "$LD" && LD="$ac_prog"
17628 # If it fails, then pretend we aren't using GCC.
17632 # If it is relative, then search for the first ld in PATH.
17633 with_gnu_ld=unknown
17636 elif test "$with_gnu_ld" = yes; then
17637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
17638 $as_echo_n "checking for GNU ld... " >&6; }
17640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
17641 $as_echo_n "checking for non-GNU ld... " >&6; }
17643 if ${acl_cv_path_LD+:} false; then :
17644 $as_echo_n "(cached) " >&6
17646 if test -z "$LD"; then
17647 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
17648 for ac_dir in $PATH; do
17649 test -z "$ac_dir" && ac_dir=.
17650 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
17651 acl_cv_path_LD="$ac_dir/$ac_prog"
17652 # Check to see if the program is GNU ld. I'd rather use --version,
17653 # but apparently some GNU ld's only accept -v.
17654 # Break only if it was the GNU/non-GNU ld that we prefer.
17655 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
17656 *GNU* | *'with BFD'*)
17657 test "$with_gnu_ld" != no && break ;;
17659 test "$with_gnu_ld" != yes && break ;;
17665 acl_cv_path_LD="$LD" # Let the user override the test with a path.
17669 LD="$acl_cv_path_LD"
17670 if test -n "$LD"; then
17671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
17672 $as_echo "$LD" >&6; }
17674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17675 $as_echo "no" >&6; }
17677 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
17678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
17679 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
17680 if ${acl_cv_prog_gnu_ld+:} false; then :
17681 $as_echo_n "(cached) " >&6
17683 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
17684 case `$LD -v 2>&1 </dev/null` in
17685 *GNU* | *'with BFD'*)
17686 acl_cv_prog_gnu_ld=yes ;;
17688 acl_cv_prog_gnu_ld=no ;;
17691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
17692 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
17693 with_gnu_ld=$acl_cv_prog_gnu_ld
17698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
17699 $as_echo_n "checking for shared library run path origin... " >&6; }
17700 if ${acl_cv_rpath+:} false; then :
17701 $as_echo_n "(cached) " >&6
17704 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
17705 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
17707 rm -f ./conftest.sh
17711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
17712 $as_echo "$acl_cv_rpath" >&6; }
17714 libext="$acl_cv_libext"
17715 shlibext="$acl_cv_shlibext"
17716 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
17717 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
17718 hardcode_direct="$acl_cv_hardcode_direct"
17719 hardcode_minus_L="$acl_cv_hardcode_minus_L"
17720 # Check whether --enable-rpath was given.
17721 if test "${enable_rpath+set}" = set; then :
17722 enableval=$enable_rpath; :
17736 acl_save_prefix="$prefix"
17737 prefix="$acl_final_prefix"
17738 acl_save_exec_prefix="$exec_prefix"
17739 exec_prefix="$acl_final_exec_prefix"
17741 eval additional_includedir=\"$includedir\"
17742 eval additional_libdir=\"$libdir\"
17744 exec_prefix="$acl_save_exec_prefix"
17745 prefix="$acl_save_prefix"
17748 # Check whether --with-libiconv-prefix was given.
17749 if test "${with_libiconv_prefix+set}" = set; then :
17750 withval=$with_libiconv_prefix;
17751 if test "X$withval" = "Xno"; then
17754 if test "X$withval" = "X"; then
17756 acl_save_prefix="$prefix"
17757 prefix="$acl_final_prefix"
17758 acl_save_exec_prefix="$exec_prefix"
17759 exec_prefix="$acl_final_exec_prefix"
17761 eval additional_includedir=\"$includedir\"
17762 eval additional_libdir=\"$libdir\"
17764 exec_prefix="$acl_save_exec_prefix"
17765 prefix="$acl_save_prefix"
17768 additional_includedir="$withval/include"
17769 additional_libdir="$withval/lib"
17780 names_already_handled=
17781 names_next_round='iconv '
17782 while test -n "$names_next_round"; do
17783 names_this_round="$names_next_round"
17785 for name in $names_this_round; do
17787 for n in $names_already_handled; do
17788 if test "$n" = "$name"; then
17789 already_handled=yes
17793 if test -z "$already_handled"; then
17794 names_already_handled="$names_already_handled $name"
17795 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
17796 eval value=\"\$HAVE_LIB$uppername\"
17797 if test -n "$value"; then
17798 if test "$value" = yes; then
17799 eval value=\"\$LIB$uppername\"
17800 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
17801 eval value=\"\$LTLIB$uppername\"
17802 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
17811 if test $use_additional = yes; then
17812 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
17813 found_dir="$additional_libdir"
17814 found_so="$additional_libdir/lib$name.$shlibext"
17815 if test -f "$additional_libdir/lib$name.la"; then
17816 found_la="$additional_libdir/lib$name.la"
17819 if test -f "$additional_libdir/lib$name.$libext"; then
17820 found_dir="$additional_libdir"
17821 found_a="$additional_libdir/lib$name.$libext"
17822 if test -f "$additional_libdir/lib$name.la"; then
17823 found_la="$additional_libdir/lib$name.la"
17828 if test "X$found_dir" = "X"; then
17829 for x in $LDFLAGS $LTLIBICONV; do
17831 acl_save_prefix="$prefix"
17832 prefix="$acl_final_prefix"
17833 acl_save_exec_prefix="$exec_prefix"
17834 exec_prefix="$acl_final_exec_prefix"
17836 exec_prefix="$acl_save_exec_prefix"
17837 prefix="$acl_save_prefix"
17841 dir=`echo "X$x" | sed -e 's/^X-L//'`
17842 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
17844 found_so="$dir/lib$name.$shlibext"
17845 if test -f "$dir/lib$name.la"; then
17846 found_la="$dir/lib$name.la"
17849 if test -f "$dir/lib$name.$libext"; then
17851 found_a="$dir/lib$name.$libext"
17852 if test -f "$dir/lib$name.la"; then
17853 found_la="$dir/lib$name.la"
17859 if test "X$found_dir" != "X"; then
17864 if test "X$found_dir" != "X"; then
17865 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
17866 if test "X$found_so" != "X"; then
17867 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
17868 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17871 for x in $ltrpathdirs; do
17872 if test "X$x" = "X$found_dir"; then
17877 if test -z "$haveit"; then
17878 ltrpathdirs="$ltrpathdirs $found_dir"
17880 if test "$hardcode_direct" = yes; then
17881 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17883 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
17884 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17886 for x in $rpathdirs; do
17887 if test "X$x" = "X$found_dir"; then
17892 if test -z "$haveit"; then
17893 rpathdirs="$rpathdirs $found_dir"
17897 for x in $LDFLAGS $LIBICONV; do
17899 acl_save_prefix="$prefix"
17900 prefix="$acl_final_prefix"
17901 acl_save_exec_prefix="$exec_prefix"
17902 exec_prefix="$acl_final_exec_prefix"
17904 exec_prefix="$acl_save_exec_prefix"
17905 prefix="$acl_save_prefix"
17907 if test "X$x" = "X-L$found_dir"; then
17912 if test -z "$haveit"; then
17913 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
17915 if test "$hardcode_minus_L" != no; then
17916 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17918 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
17924 if test "X$found_a" != "X"; then
17925 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
17927 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
17930 additional_includedir=
17931 case "$found_dir" in
17933 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
17934 additional_includedir="$basedir/include"
17937 if test "X$additional_includedir" != "X"; then
17938 if test "X$additional_includedir" != "X/usr/include"; then
17940 if test "X$additional_includedir" = "X/usr/local/include"; then
17941 if test -n "$GCC"; then
17943 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17947 if test -z "$haveit"; then
17948 for x in $CPPFLAGS $INCICONV; do
17950 acl_save_prefix="$prefix"
17951 prefix="$acl_final_prefix"
17952 acl_save_exec_prefix="$exec_prefix"
17953 exec_prefix="$acl_final_exec_prefix"
17955 exec_prefix="$acl_save_exec_prefix"
17956 prefix="$acl_save_prefix"
17958 if test "X$x" = "X-I$additional_includedir"; then
17963 if test -z "$haveit"; then
17964 if test -d "$additional_includedir"; then
17965 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
17971 if test -n "$found_la"; then
17972 save_libdir="$libdir"
17973 case "$found_la" in
17974 */* | *\\*) . "$found_la" ;;
17975 *) . "./$found_la" ;;
17977 libdir="$save_libdir"
17978 for dep in $dependency_libs; do
17981 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17982 if test "X$additional_libdir" != "X/usr/lib"; then
17984 if test "X$additional_libdir" = "X/usr/local/lib"; then
17985 if test -n "$GCC"; then
17987 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17991 if test -z "$haveit"; then
17993 for x in $LDFLAGS $LIBICONV; do
17995 acl_save_prefix="$prefix"
17996 prefix="$acl_final_prefix"
17997 acl_save_exec_prefix="$exec_prefix"
17998 exec_prefix="$acl_final_exec_prefix"
18000 exec_prefix="$acl_save_exec_prefix"
18001 prefix="$acl_save_prefix"
18003 if test "X$x" = "X-L$additional_libdir"; then
18008 if test -z "$haveit"; then
18009 if test -d "$additional_libdir"; then
18010 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
18014 for x in $LDFLAGS $LTLIBICONV; do
18016 acl_save_prefix="$prefix"
18017 prefix="$acl_final_prefix"
18018 acl_save_exec_prefix="$exec_prefix"
18019 exec_prefix="$acl_final_exec_prefix"
18021 exec_prefix="$acl_save_exec_prefix"
18022 prefix="$acl_save_prefix"
18024 if test "X$x" = "X-L$additional_libdir"; then
18029 if test -z "$haveit"; then
18030 if test -d "$additional_libdir"; then
18031 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
18038 dir=`echo "X$dep" | sed -e 's/^X-R//'`
18039 if test "$enable_rpath" != no; then
18041 for x in $rpathdirs; do
18042 if test "X$x" = "X$dir"; then
18047 if test -z "$haveit"; then
18048 rpathdirs="$rpathdirs $dir"
18051 for x in $ltrpathdirs; do
18052 if test "X$x" = "X$dir"; then
18057 if test -z "$haveit"; then
18058 ltrpathdirs="$ltrpathdirs $dir"
18063 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
18066 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
18069 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
18070 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
18076 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
18077 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
18083 if test "X$rpathdirs" != "X"; then
18084 if test -n "$hardcode_libdir_separator"; then
18086 for found_dir in $rpathdirs; do
18087 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
18089 acl_save_libdir="$libdir"
18091 eval flag=\"$hardcode_libdir_flag_spec\"
18092 libdir="$acl_save_libdir"
18093 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
18095 for found_dir in $rpathdirs; do
18096 acl_save_libdir="$libdir"
18097 libdir="$found_dir"
18098 eval flag=\"$hardcode_libdir_flag_spec\"
18099 libdir="$acl_save_libdir"
18100 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
18104 if test "X$ltrpathdirs" != "X"; then
18105 for found_dir in $ltrpathdirs; do
18106 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
18127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
18128 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
18129 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
18130 $as_echo_n "(cached) " >&6
18132 gt_save_CPPFLAGS="$CPPFLAGS"
18133 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
18134 gt_save_LIBS="$LIBS"
18135 LIBS="$LIBS -framework CoreFoundation"
18136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18137 /* end confdefs.h. */
18138 #include <CFPreferences.h>
18142 CFPreferencesCopyAppValue(NULL, NULL)
18147 if ac_fn_c_try_link "$LINENO"; then :
18148 gt_cv_func_CFPreferencesCopyAppValue=yes
18150 gt_cv_func_CFPreferencesCopyAppValue=no
18152 rm -f core conftest.err conftest.$ac_objext \
18153 conftest$ac_exeext conftest.$ac_ext
18154 CPPFLAGS="$gt_save_CPPFLAGS"
18155 LIBS="$gt_save_LIBS"
18157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
18158 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
18159 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
18161 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
18164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
18165 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
18166 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
18167 $as_echo_n "(cached) " >&6
18169 gt_save_CPPFLAGS="$CPPFLAGS"
18170 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
18171 gt_save_LIBS="$LIBS"
18172 LIBS="$LIBS -framework CoreFoundation"
18173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18174 /* end confdefs.h. */
18175 #include <CFLocale.h>
18179 CFLocaleCopyCurrent();
18184 if ac_fn_c_try_link "$LINENO"; then :
18185 gt_cv_func_CFLocaleCopyCurrent=yes
18187 gt_cv_func_CFLocaleCopyCurrent=no
18189 rm -f core conftest.err conftest.$ac_objext \
18190 conftest$ac_exeext conftest.$ac_ext
18191 CPPFLAGS="$gt_save_CPPFLAGS"
18192 LIBS="$gt_save_LIBS"
18194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
18195 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
18196 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
18198 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
18202 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
18203 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
18209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
18210 $as_echo_n "checking whether NLS is requested... " >&6; }
18211 # Check whether --enable-nls was given.
18212 if test "${enable_nls+set}" = set; then :
18213 enableval=$enable_nls; USE_NLS=$enableval
18218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
18219 $as_echo "$USE_NLS" >&6; }
18228 if test "$USE_NLS" = "yes"; then
18229 gt_use_preinstalled_gnugettext=no
18236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
18237 $as_echo_n "checking for GNU gettext in libc... " >&6; }
18238 if ${gt_cv_func_gnugettext1_libc+:} false; then :
18239 $as_echo_n "(cached) " >&6
18241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18242 /* end confdefs.h. */
18243 #include <libintl.h>
18244 extern int _nl_msg_cat_cntr;
18245 extern int *_nl_domain_bindings;
18249 bindtextdomain ("", "");
18250 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
18255 if ac_fn_c_try_link "$LINENO"; then :
18256 gt_cv_func_gnugettext1_libc=yes
18258 gt_cv_func_gnugettext1_libc=no
18260 rm -f core conftest.err conftest.$ac_objext \
18261 conftest$ac_exeext conftest.$ac_ext
18263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5
18264 $as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
18266 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
18272 am_save_CPPFLAGS="$CPPFLAGS"
18274 for element in $INCICONV; do
18276 for x in $CPPFLAGS; do
18278 acl_save_prefix="$prefix"
18279 prefix="$acl_final_prefix"
18280 acl_save_exec_prefix="$exec_prefix"
18281 exec_prefix="$acl_final_exec_prefix"
18283 exec_prefix="$acl_save_exec_prefix"
18284 prefix="$acl_save_prefix"
18286 if test "X$x" = "X$element"; then
18291 if test -z "$haveit"; then
18292 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
18297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
18298 $as_echo_n "checking for iconv... " >&6; }
18299 if ${am_cv_func_iconv+:} false; then :
18300 $as_echo_n "(cached) " >&6
18303 am_cv_func_iconv="no, consider installing GNU libiconv"
18305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18306 /* end confdefs.h. */
18307 #include <stdlib.h>
18312 iconv_t cd = iconv_open("","");
18313 iconv(cd,NULL,NULL,NULL,NULL);
18319 if ac_fn_c_try_link "$LINENO"; then :
18320 am_cv_func_iconv=yes
18322 rm -f core conftest.err conftest.$ac_objext \
18323 conftest$ac_exeext conftest.$ac_ext
18324 if test "$am_cv_func_iconv" != yes; then
18325 am_save_LIBS="$LIBS"
18326 LIBS="$LIBS $LIBICONV"
18327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18328 /* end confdefs.h. */
18329 #include <stdlib.h>
18334 iconv_t cd = iconv_open("","");
18335 iconv(cd,NULL,NULL,NULL,NULL);
18341 if ac_fn_c_try_link "$LINENO"; then :
18342 am_cv_lib_iconv=yes
18343 am_cv_func_iconv=yes
18345 rm -f core conftest.err conftest.$ac_objext \
18346 conftest$ac_exeext conftest.$ac_ext
18347 LIBS="$am_save_LIBS"
18351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
18352 $as_echo "$am_cv_func_iconv" >&6; }
18353 if test "$am_cv_func_iconv" = yes; then
18355 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
18358 if test "$am_cv_lib_iconv" = yes; then
18359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
18360 $as_echo_n "checking how to link with libiconv... " >&6; }
18361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
18362 $as_echo "$LIBICONV" >&6; }
18364 CPPFLAGS="$am_save_CPPFLAGS"
18376 acl_save_prefix="$prefix"
18377 prefix="$acl_final_prefix"
18378 acl_save_exec_prefix="$exec_prefix"
18379 exec_prefix="$acl_final_exec_prefix"
18381 eval additional_includedir=\"$includedir\"
18382 eval additional_libdir=\"$libdir\"
18384 exec_prefix="$acl_save_exec_prefix"
18385 prefix="$acl_save_prefix"
18388 # Check whether --with-libintl-prefix was given.
18389 if test "${with_libintl_prefix+set}" = set; then :
18390 withval=$with_libintl_prefix;
18391 if test "X$withval" = "Xno"; then
18394 if test "X$withval" = "X"; then
18396 acl_save_prefix="$prefix"
18397 prefix="$acl_final_prefix"
18398 acl_save_exec_prefix="$exec_prefix"
18399 exec_prefix="$acl_final_exec_prefix"
18401 eval additional_includedir=\"$includedir\"
18402 eval additional_libdir=\"$libdir\"
18404 exec_prefix="$acl_save_exec_prefix"
18405 prefix="$acl_save_prefix"
18408 additional_includedir="$withval/include"
18409 additional_libdir="$withval/lib"
18420 names_already_handled=
18421 names_next_round='intl '
18422 while test -n "$names_next_round"; do
18423 names_this_round="$names_next_round"
18425 for name in $names_this_round; do
18427 for n in $names_already_handled; do
18428 if test "$n" = "$name"; then
18429 already_handled=yes
18433 if test -z "$already_handled"; then
18434 names_already_handled="$names_already_handled $name"
18435 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
18436 eval value=\"\$HAVE_LIB$uppername\"
18437 if test -n "$value"; then
18438 if test "$value" = yes; then
18439 eval value=\"\$LIB$uppername\"
18440 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
18441 eval value=\"\$LTLIB$uppername\"
18442 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
18451 if test $use_additional = yes; then
18452 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
18453 found_dir="$additional_libdir"
18454 found_so="$additional_libdir/lib$name.$shlibext"
18455 if test -f "$additional_libdir/lib$name.la"; then
18456 found_la="$additional_libdir/lib$name.la"
18459 if test -f "$additional_libdir/lib$name.$libext"; then
18460 found_dir="$additional_libdir"
18461 found_a="$additional_libdir/lib$name.$libext"
18462 if test -f "$additional_libdir/lib$name.la"; then
18463 found_la="$additional_libdir/lib$name.la"
18468 if test "X$found_dir" = "X"; then
18469 for x in $LDFLAGS $LTLIBINTL; do
18471 acl_save_prefix="$prefix"
18472 prefix="$acl_final_prefix"
18473 acl_save_exec_prefix="$exec_prefix"
18474 exec_prefix="$acl_final_exec_prefix"
18476 exec_prefix="$acl_save_exec_prefix"
18477 prefix="$acl_save_prefix"
18481 dir=`echo "X$x" | sed -e 's/^X-L//'`
18482 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
18484 found_so="$dir/lib$name.$shlibext"
18485 if test -f "$dir/lib$name.la"; then
18486 found_la="$dir/lib$name.la"
18489 if test -f "$dir/lib$name.$libext"; then
18491 found_a="$dir/lib$name.$libext"
18492 if test -f "$dir/lib$name.la"; then
18493 found_la="$dir/lib$name.la"
18499 if test "X$found_dir" != "X"; then
18504 if test "X$found_dir" != "X"; then
18505 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
18506 if test "X$found_so" != "X"; then
18507 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
18508 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
18511 for x in $ltrpathdirs; do
18512 if test "X$x" = "X$found_dir"; then
18517 if test -z "$haveit"; then
18518 ltrpathdirs="$ltrpathdirs $found_dir"
18520 if test "$hardcode_direct" = yes; then
18521 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
18523 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
18524 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
18526 for x in $rpathdirs; do
18527 if test "X$x" = "X$found_dir"; then
18532 if test -z "$haveit"; then
18533 rpathdirs="$rpathdirs $found_dir"
18537 for x in $LDFLAGS $LIBINTL; do
18539 acl_save_prefix="$prefix"
18540 prefix="$acl_final_prefix"
18541 acl_save_exec_prefix="$exec_prefix"
18542 exec_prefix="$acl_final_exec_prefix"
18544 exec_prefix="$acl_save_exec_prefix"
18545 prefix="$acl_save_prefix"
18547 if test "X$x" = "X-L$found_dir"; then
18552 if test -z "$haveit"; then
18553 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
18555 if test "$hardcode_minus_L" != no; then
18556 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
18558 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
18564 if test "X$found_a" != "X"; then
18565 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
18567 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
18570 additional_includedir=
18571 case "$found_dir" in
18573 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
18574 additional_includedir="$basedir/include"
18577 if test "X$additional_includedir" != "X"; then
18578 if test "X$additional_includedir" != "X/usr/include"; then
18580 if test "X$additional_includedir" = "X/usr/local/include"; then
18581 if test -n "$GCC"; then
18583 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
18587 if test -z "$haveit"; then
18588 for x in $CPPFLAGS $INCINTL; do
18590 acl_save_prefix="$prefix"
18591 prefix="$acl_final_prefix"
18592 acl_save_exec_prefix="$exec_prefix"
18593 exec_prefix="$acl_final_exec_prefix"
18595 exec_prefix="$acl_save_exec_prefix"
18596 prefix="$acl_save_prefix"
18598 if test "X$x" = "X-I$additional_includedir"; then
18603 if test -z "$haveit"; then
18604 if test -d "$additional_includedir"; then
18605 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
18611 if test -n "$found_la"; then
18612 save_libdir="$libdir"
18613 case "$found_la" in
18614 */* | *\\*) . "$found_la" ;;
18615 *) . "./$found_la" ;;
18617 libdir="$save_libdir"
18618 for dep in $dependency_libs; do
18621 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
18622 if test "X$additional_libdir" != "X/usr/lib"; then
18624 if test "X$additional_libdir" = "X/usr/local/lib"; then
18625 if test -n "$GCC"; then
18627 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
18631 if test -z "$haveit"; then
18633 for x in $LDFLAGS $LIBINTL; do
18635 acl_save_prefix="$prefix"
18636 prefix="$acl_final_prefix"
18637 acl_save_exec_prefix="$exec_prefix"
18638 exec_prefix="$acl_final_exec_prefix"
18640 exec_prefix="$acl_save_exec_prefix"
18641 prefix="$acl_save_prefix"
18643 if test "X$x" = "X-L$additional_libdir"; then
18648 if test -z "$haveit"; then
18649 if test -d "$additional_libdir"; then
18650 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
18654 for x in $LDFLAGS $LTLIBINTL; do
18656 acl_save_prefix="$prefix"
18657 prefix="$acl_final_prefix"
18658 acl_save_exec_prefix="$exec_prefix"
18659 exec_prefix="$acl_final_exec_prefix"
18661 exec_prefix="$acl_save_exec_prefix"
18662 prefix="$acl_save_prefix"
18664 if test "X$x" = "X-L$additional_libdir"; then
18669 if test -z "$haveit"; then
18670 if test -d "$additional_libdir"; then
18671 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
18678 dir=`echo "X$dep" | sed -e 's/^X-R//'`
18679 if test "$enable_rpath" != no; then
18681 for x in $rpathdirs; do
18682 if test "X$x" = "X$dir"; then
18687 if test -z "$haveit"; then
18688 rpathdirs="$rpathdirs $dir"
18691 for x in $ltrpathdirs; do
18692 if test "X$x" = "X$dir"; then
18697 if test -z "$haveit"; then
18698 ltrpathdirs="$ltrpathdirs $dir"
18703 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
18706 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
18709 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
18710 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
18716 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
18717 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
18723 if test "X$rpathdirs" != "X"; then
18724 if test -n "$hardcode_libdir_separator"; then
18726 for found_dir in $rpathdirs; do
18727 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
18729 acl_save_libdir="$libdir"
18731 eval flag=\"$hardcode_libdir_flag_spec\"
18732 libdir="$acl_save_libdir"
18733 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
18735 for found_dir in $rpathdirs; do
18736 acl_save_libdir="$libdir"
18737 libdir="$found_dir"
18738 eval flag=\"$hardcode_libdir_flag_spec\"
18739 libdir="$acl_save_libdir"
18740 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
18744 if test "X$ltrpathdirs" != "X"; then
18745 for found_dir in $ltrpathdirs; do
18746 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
18750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
18751 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
18752 if ${gt_cv_func_gnugettext1_libintl+:} false; then :
18753 $as_echo_n "(cached) " >&6
18755 gt_save_CPPFLAGS="$CPPFLAGS"
18756 CPPFLAGS="$CPPFLAGS $INCINTL"
18757 gt_save_LIBS="$LIBS"
18758 LIBS="$LIBS $LIBINTL"
18759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18760 /* end confdefs.h. */
18761 #include <libintl.h>
18762 extern int _nl_msg_cat_cntr;
18767 const char *_nl_expand_alias (const char *);
18771 bindtextdomain ("", "");
18772 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
18777 if ac_fn_c_try_link "$LINENO"; then :
18778 gt_cv_func_gnugettext1_libintl=yes
18780 gt_cv_func_gnugettext1_libintl=no
18782 rm -f core conftest.err conftest.$ac_objext \
18783 conftest$ac_exeext conftest.$ac_ext
18784 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
18785 LIBS="$LIBS $LIBICONV"
18786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18787 /* end confdefs.h. */
18788 #include <libintl.h>
18789 extern int _nl_msg_cat_cntr;
18794 const char *_nl_expand_alias (const char *);
18798 bindtextdomain ("", "");
18799 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
18804 if ac_fn_c_try_link "$LINENO"; then :
18805 LIBINTL="$LIBINTL $LIBICONV"
18806 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
18807 gt_cv_func_gnugettext1_libintl=yes
18810 rm -f core conftest.err conftest.$ac_objext \
18811 conftest$ac_exeext conftest.$ac_ext
18813 CPPFLAGS="$gt_save_CPPFLAGS"
18814 LIBS="$gt_save_LIBS"
18816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5
18817 $as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
18820 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
18821 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
18822 && test "$PACKAGE" != gettext-runtime \
18823 && test "$PACKAGE" != gettext-tools; }; then
18824 gt_use_preinstalled_gnugettext=yes
18833 if test -n "$INTL_MACOSX_LIBS"; then
18834 if test "$gt_use_preinstalled_gnugettext" = "yes" \
18835 || test "$nls_cv_use_gnu_gettext" = "yes"; then
18836 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
18837 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
18841 if test "$gt_use_preinstalled_gnugettext" = "yes" \
18842 || test "$nls_cv_use_gnu_gettext" = "yes"; then
18844 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
18851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
18852 $as_echo_n "checking whether to use NLS... " >&6; }
18853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
18854 $as_echo "$USE_NLS" >&6; }
18855 if test "$USE_NLS" = "yes"; then
18856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
18857 $as_echo_n "checking where the gettext function comes from... " >&6; }
18858 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
18859 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
18860 gt_source="external libintl"
18865 gt_source="included intl directory"
18867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
18868 $as_echo "$gt_source" >&6; }
18871 if test "$USE_NLS" = "yes"; then
18873 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
18874 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
18875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
18876 $as_echo_n "checking how to link with libintl... " >&6; }
18877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
18878 $as_echo "$LIBINTL" >&6; }
18880 for element in $INCINTL; do
18882 for x in $CPPFLAGS; do
18884 acl_save_prefix="$prefix"
18885 prefix="$acl_final_prefix"
18886 acl_save_exec_prefix="$exec_prefix"
18887 exec_prefix="$acl_final_exec_prefix"
18889 exec_prefix="$acl_save_exec_prefix"
18890 prefix="$acl_save_prefix"
18892 if test "X$x" = "X$element"; then
18897 if test -z "$haveit"; then
18898 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
18905 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
18908 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
18917 INTLLIBS="$LIBINTL"
18925 os_name=`uname -s 2>/dev/null`
18926 if test x${prefix} = xNONE ; then
18927 if test `eval echo ${sysconfdir}` = NONE/etc ; then
18928 sysconfdir=/etc/bacula
18931 if test `eval echo ${libdir}` = NONE/lib ; then
18934 os_processor=`uname -p 2>/dev/null`
18935 case ${os_processor} in
18950 if test `eval echo ${includedir}` = NONE/include ; then
18951 includedir=/usr/include
18954 if test `eval echo ${datarootdir}` = NONE/share ; then
18955 datarootdir=/usr/share
18960 if test x${exec_prefix} = xNONE ; then
18961 exec_prefix=${prefix}
18964 sysconfdir=`eval echo ${sysconfdir}`
18965 datarootdir=`eval echo ${datarootdir}`
18966 docdir=`eval echo ${docdir}`
18967 htmldir=`eval echo ${htmldir}`
18968 libdir=`eval echo ${libdir}`
18969 includedir=`eval echo ${includedir}`
18970 localedir=`eval echo ${datarootdir}/locale`
18971 cat >>confdefs.h <<_ACEOF
18972 #define SYSCONFDIR "$sysconfdir"
18975 cat >>confdefs.h <<_ACEOF
18976 #define LOCALEDIR "$localedir"
18980 if test x$sbindir = x'${exec_prefix}/sbin' ; then
18981 sbindir=${exec_prefix}/sbin
18983 sbindir=`eval echo ${sbindir}`
18985 if test x$mandir = x'${prefix}/man' ; then
18986 mandir=/usr/share/man
18989 if test x$htmldir = x'/usr/share/doc/bacula/' ; then
18990 htmldir=`eval echo ${docdir}html`
18993 if test x$docdir = x'/usr/share/doc/' ; then
18994 docdir=`eval echo ${docdir}bacula`
18998 for ac_prog in msgfmt
19000 # Extract the first word of "$ac_prog", so it can be a program name with args.
19001 set dummy $ac_prog; ac_word=$2
19002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19003 $as_echo_n "checking for $ac_word... " >&6; }
19004 if ${ac_cv_path_MSGFMT+:} false; then :
19005 $as_echo_n "(cached) " >&6
19009 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
19012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19013 for as_dir in $PATH
19016 test -z "$as_dir" && as_dir=.
19017 for ac_exec_ext in '' $ac_executable_extensions; do
19018 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19019 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
19020 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19030 MSGFMT=$ac_cv_path_MSGFMT
19031 if test -n "$MSGFMT"; then
19032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
19033 $as_echo "$MSGFMT" >&6; }
19035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19036 $as_echo "no" >&6; }
19040 test -n "$MSGFMT" && break
19042 test -n "$MSGFMT" || MSGFMT="no"
19044 if test "$MSGFMT" = "no"
19046 echo 'msgfmt program not found, disabling NLS !'
19048 USE_INCLUDED_LIBINTL=no
19051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2 or newer" >&5
19052 $as_echo_n "checking whether we are using the GNU C Library 2 or newer... " >&6; }
19053 if ${ac_cv_gnu_library_2+:} false; then :
19054 $as_echo_n "(cached) " >&6
19056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19057 /* end confdefs.h. */
19059 #include <features.h>
19060 #ifdef __GNU_LIBRARY__
19061 #if (__GLIBC__ >= 2)
19067 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19068 $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
19069 ac_cv_gnu_library_2=yes
19071 ac_cv_gnu_library_2=no
19078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2" >&5
19079 $as_echo "$ac_cv_gnu_library_2" >&6; }
19081 GLIBC2="$ac_cv_gnu_library_2"
19084 if test -n "$ac_tool_prefix"; then
19085 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
19086 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
19087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19088 $as_echo_n "checking for $ac_word... " >&6; }
19089 if ${ac_cv_prog_RANLIB+:} false; then :
19090 $as_echo_n "(cached) " >&6
19092 if test -n "$RANLIB"; then
19093 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
19095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19096 for as_dir in $PATH
19099 test -z "$as_dir" && as_dir=.
19100 for ac_exec_ext in '' $ac_executable_extensions; do
19101 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19102 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
19103 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19112 RANLIB=$ac_cv_prog_RANLIB
19113 if test -n "$RANLIB"; then
19114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
19115 $as_echo "$RANLIB" >&6; }
19117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19118 $as_echo "no" >&6; }
19123 if test -z "$ac_cv_prog_RANLIB"; then
19124 ac_ct_RANLIB=$RANLIB
19125 # Extract the first word of "ranlib", so it can be a program name with args.
19126 set dummy ranlib; ac_word=$2
19127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19128 $as_echo_n "checking for $ac_word... " >&6; }
19129 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
19130 $as_echo_n "(cached) " >&6
19132 if test -n "$ac_ct_RANLIB"; then
19133 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
19135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19136 for as_dir in $PATH
19139 test -z "$as_dir" && as_dir=.
19140 for ac_exec_ext in '' $ac_executable_extensions; do
19141 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19142 ac_cv_prog_ac_ct_RANLIB="ranlib"
19143 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19152 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
19153 if test -n "$ac_ct_RANLIB"; then
19154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
19155 $as_echo "$ac_ct_RANLIB" >&6; }
19157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19158 $as_echo "no" >&6; }
19161 if test "x$ac_ct_RANLIB" = x; then
19164 case $cross_compiling:$ac_tool_warned in
19166 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19167 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19168 ac_tool_warned=yes ;;
19170 RANLIB=$ac_ct_RANLIB
19173 RANLIB="$ac_cv_prog_RANLIB"
19177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strerror in -lcposix" >&5
19178 $as_echo_n "checking for strerror in -lcposix... " >&6; }
19179 if ${ac_cv_lib_cposix_strerror+:} false; then :
19180 $as_echo_n "(cached) " >&6
19182 ac_check_lib_save_LIBS=$LIBS
19183 LIBS="-lcposix $LIBS"
19184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19185 /* end confdefs.h. */
19187 /* Override any GCC internal prototype to avoid an error.
19188 Use char because int might match the return type of a GCC
19189 builtin and then its argument prototype would still apply. */
19197 return strerror ();
19202 if ac_fn_c_try_link "$LINENO"; then :
19203 ac_cv_lib_cposix_strerror=yes
19205 ac_cv_lib_cposix_strerror=no
19207 rm -f core conftest.err conftest.$ac_objext \
19208 conftest$ac_exeext conftest.$ac_ext
19209 LIBS=$ac_check_lib_save_LIBS
19211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cposix_strerror" >&5
19212 $as_echo "$ac_cv_lib_cposix_strerror" >&6; }
19213 if test "x$ac_cv_lib_cposix_strerror" = xyes; then :
19214 LIBS="$LIBS -lcposix"
19219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
19220 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
19221 if ${ac_cv_c_const+:} false; then :
19222 $as_echo_n "(cached) " >&6
19224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19225 /* end confdefs.h. */
19231 #ifndef __cplusplus
19232 /* Ultrix mips cc rejects this sort of thing. */
19233 typedef int charset[2];
19234 const charset cs = { 0, 0 };
19235 /* SunOS 4.1.1 cc rejects this. */
19236 char const *const *pcpcc;
19238 /* NEC SVR4.0.2 mips cc rejects this. */
19239 struct point {int x, y;};
19240 static struct point const zero = {0,0};
19241 /* AIX XL C 1.02.0.0 rejects this.
19242 It does not let you subtract one const X* pointer from another in
19243 an arm of an if-expression whose if-part is not a constant
19245 const char *g = "string";
19246 pcpcc = &g + (g ? g-g : 0);
19247 /* HPUX 7.0 cc rejects these. */
19249 ppc = (char**) pcpcc;
19250 pcpcc = (char const *const *) ppc;
19251 { /* SCO 3.2v4 cc rejects this sort of thing. */
19254 char const *s = 0 ? (char *) 0 : (char const *) 0;
19259 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
19260 int x[] = {25, 17};
19261 const int *foo = &x[0];
19264 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
19265 typedef const int *iptr;
19269 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
19270 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
19271 struct s { int j; const int *ap[3]; } bx;
19272 struct s *b = &bx; b->j = 5;
19274 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
19275 const int foo = 10;
19276 if (!foo) return 0;
19278 return !cs[0] && !zero.x;
19285 if ac_fn_c_try_compile "$LINENO"; then :
19290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
19293 $as_echo "$ac_cv_c_const" >&6; }
19294 if test $ac_cv_c_const = no; then
19296 $as_echo "#define const /**/" >>confdefs.h
19301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed" >&5
19302 $as_echo_n "checking for signed... " >&6; }
19303 if ${bh_cv_c_signed+:} false; then :
19304 $as_echo_n "(cached) " >&6
19306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19307 /* end confdefs.h. */
19317 if ac_fn_c_try_compile "$LINENO"; then :
19322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bh_cv_c_signed" >&5
19325 $as_echo "$bh_cv_c_signed" >&6; }
19326 if test $bh_cv_c_signed = no; then
19328 $as_echo "#define signed /**/" >>confdefs.h
19332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
19333 $as_echo_n "checking for inline... " >&6; }
19334 if ${ac_cv_c_inline+:} false; then :
19335 $as_echo_n "(cached) " >&6
19338 for ac_kw in inline __inline__ __inline; do
19339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19340 /* end confdefs.h. */
19341 #ifndef __cplusplus
19343 static $ac_kw foo_t static_foo () {return 0; }
19344 $ac_kw foo_t foo () {return 0; }
19348 if ac_fn_c_try_compile "$LINENO"; then :
19349 ac_cv_c_inline=$ac_kw
19351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19352 test "$ac_cv_c_inline" != no && break
19356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
19357 $as_echo "$ac_cv_c_inline" >&6; }
19359 case $ac_cv_c_inline in
19362 case $ac_cv_c_inline in
19364 *) ac_val=$ac_cv_c_inline;;
19366 cat >>confdefs.h <<_ACEOF
19367 #ifndef __cplusplus
19368 #define inline $ac_val
19374 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
19375 if test "x$ac_cv_type_off_t" = xyes; then :
19379 cat >>confdefs.h <<_ACEOF
19380 #define off_t long int
19385 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
19386 if test "x$ac_cv_type_size_t" = xyes; then :
19390 cat >>confdefs.h <<_ACEOF
19391 #define size_t unsigned int
19397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long" >&5
19398 $as_echo_n "checking for long long... " >&6; }
19399 if ${ac_cv_type_long_long+:} false; then :
19400 $as_echo_n "(cached) " >&6
19402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19403 /* end confdefs.h. */
19404 long long ll = 1LL; int i = 63;
19408 long long llmax = (long long) -1;
19409 return ll << i | ll >> i | llmax / ll | llmax % ll;
19414 if ac_fn_c_try_link "$LINENO"; then :
19415 ac_cv_type_long_long=yes
19417 ac_cv_type_long_long=no
19419 rm -f core conftest.err conftest.$ac_objext \
19420 conftest$ac_exeext conftest.$ac_ext
19422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long" >&5
19423 $as_echo "$ac_cv_type_long_long" >&6; }
19424 if test $ac_cv_type_long_long = yes; then
19426 $as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h
19431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
19432 $as_echo_n "checking for long double... " >&6; }
19433 if ${gt_cv_c_long_double+:} false; then :
19434 $as_echo_n "(cached) " >&6
19436 if test "$GCC" = yes; then
19437 gt_cv_c_long_double=yes
19439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19440 /* end confdefs.h. */
19442 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
19443 long double foo = 0.0;
19444 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
19445 int array [2*(sizeof(long double) >= sizeof(double)) - 1];
19455 if ac_fn_c_try_compile "$LINENO"; then :
19456 gt_cv_c_long_double=yes
19458 gt_cv_c_long_double=no
19460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_long_double" >&5
19464 $as_echo "$gt_cv_c_long_double" >&6; }
19465 if test $gt_cv_c_long_double = yes; then
19467 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
19472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
19473 $as_echo_n "checking for wchar_t... " >&6; }
19474 if ${gt_cv_c_wchar_t+:} false; then :
19475 $as_echo_n "(cached) " >&6
19477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19478 /* end confdefs.h. */
19479 #include <stddef.h>
19480 wchar_t foo = (wchar_t)'\0';
19489 if ac_fn_c_try_compile "$LINENO"; then :
19490 gt_cv_c_wchar_t=yes
19494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
19497 $as_echo "$gt_cv_c_wchar_t" >&6; }
19498 if test $gt_cv_c_wchar_t = yes; then
19500 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
19505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
19506 $as_echo_n "checking for wint_t... " >&6; }
19507 if ${gt_cv_c_wint_t+:} false; then :
19508 $as_echo_n "(cached) " >&6
19510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19511 /* end confdefs.h. */
19513 wint_t foo = (wchar_t)'\0';
19522 if ac_fn_c_try_compile "$LINENO"; then :
19527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
19530 $as_echo "$gt_cv_c_wint_t" >&6; }
19531 if test $gt_cv_c_wint_t = yes; then
19533 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
19538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
19539 $as_echo_n "checking for inttypes.h... " >&6; }
19540 if ${gl_cv_header_inttypes_h+:} false; then :
19541 $as_echo_n "(cached) " >&6
19543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19544 /* end confdefs.h. */
19545 #include <sys/types.h>
19546 #include <inttypes.h>
19550 uintmax_t i = (uintmax_t) -1;
19555 if ac_fn_c_try_compile "$LINENO"; then :
19556 gl_cv_header_inttypes_h=yes
19558 gl_cv_header_inttypes_h=no
19560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5
19563 $as_echo "$gl_cv_header_inttypes_h" >&6; }
19564 if test $gl_cv_header_inttypes_h = yes; then
19566 cat >>confdefs.h <<_ACEOF
19567 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
19573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
19574 $as_echo_n "checking for stdint.h... " >&6; }
19575 if ${gl_cv_header_stdint_h+:} false; then :
19576 $as_echo_n "(cached) " >&6
19578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19579 /* end confdefs.h. */
19580 #include <sys/types.h>
19581 #include <stdint.h>
19585 uintmax_t i = (uintmax_t) -1;
19590 if ac_fn_c_try_compile "$LINENO"; then :
19591 gl_cv_header_stdint_h=yes
19593 gl_cv_header_stdint_h=no
19595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5
19598 $as_echo "$gl_cv_header_stdint_h" >&6; }
19599 if test $gl_cv_header_stdint_h = yes; then
19601 cat >>confdefs.h <<_ACEOF
19602 #define HAVE_STDINT_H_WITH_UINTMAX 1
19610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
19611 $as_echo_n "checking for intmax_t... " >&6; }
19612 if ${gt_cv_c_intmax_t+:} false; then :
19613 $as_echo_n "(cached) " >&6
19615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19616 /* end confdefs.h. */
19618 #include <stddef.h>
19619 #include <stdlib.h>
19620 #if HAVE_STDINT_H_WITH_UINTMAX
19621 #include <stdint.h>
19623 #if HAVE_INTTYPES_H_WITH_UINTMAX
19624 #include <inttypes.h>
19635 if ac_fn_c_try_compile "$LINENO"; then :
19636 gt_cv_c_intmax_t=yes
19638 gt_cv_c_intmax_t=no
19640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
19643 $as_echo "$gt_cv_c_intmax_t" >&6; }
19644 if test $gt_cv_c_intmax_t = yes; then
19646 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
19652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5
19653 $as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
19654 if ${gt_cv_func_printf_posix+:} false; then :
19655 $as_echo_n "(cached) " >&6
19658 if test "$cross_compiling" = yes; then :
19660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19661 /* end confdefs.h. */
19663 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
19668 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19669 $EGREP "notposix" >/dev/null 2>&1; then :
19670 gt_cv_func_printf_posix="guessing no"
19672 gt_cv_func_printf_posix="guessing yes"
19678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19679 /* end confdefs.h. */
19682 #include <string.h>
19683 /* The string "%2$d %1$d", with dollar characters protected from the shell's
19684 dollar expansion (possibly an autoconf bug). */
19685 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
19686 static char buf[100];
19689 sprintf (buf, format, 33, 55);
19690 return (strcmp (buf, "55 33") != 0);
19693 if ac_fn_c_try_run "$LINENO"; then :
19694 gt_cv_func_printf_posix=yes
19696 gt_cv_func_printf_posix=no
19698 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19699 conftest.$ac_objext conftest.beam conftest.$ac_ext
19704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5
19705 $as_echo "$gt_cv_func_printf_posix" >&6; }
19706 case $gt_cv_func_printf_posix in
19709 $as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h
19714 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
19715 # for constant arguments. Useless!
19716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
19717 $as_echo_n "checking for working alloca.h... " >&6; }
19718 if ${ac_cv_working_alloca_h+:} false; then :
19719 $as_echo_n "(cached) " >&6
19721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19722 /* end confdefs.h. */
19723 #include <alloca.h>
19727 char *p = (char *) alloca (2 * sizeof (int));
19733 if ac_fn_c_try_link "$LINENO"; then :
19734 ac_cv_working_alloca_h=yes
19736 ac_cv_working_alloca_h=no
19738 rm -f core conftest.err conftest.$ac_objext \
19739 conftest$ac_exeext conftest.$ac_ext
19741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
19742 $as_echo "$ac_cv_working_alloca_h" >&6; }
19743 if test $ac_cv_working_alloca_h = yes; then
19745 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
19749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
19750 $as_echo_n "checking for alloca... " >&6; }
19751 if ${ac_cv_func_alloca_works+:} false; then :
19752 $as_echo_n "(cached) " >&6
19754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19755 /* end confdefs.h. */
19757 # define alloca __builtin_alloca
19760 # include <malloc.h>
19761 # define alloca _alloca
19763 # ifdef HAVE_ALLOCA_H
19764 # include <alloca.h>
19769 # ifndef alloca /* predefined by HP cc +Olibcalls */
19770 void *alloca (size_t);
19780 char *p = (char *) alloca (1);
19786 if ac_fn_c_try_link "$LINENO"; then :
19787 ac_cv_func_alloca_works=yes
19789 ac_cv_func_alloca_works=no
19791 rm -f core conftest.err conftest.$ac_objext \
19792 conftest$ac_exeext conftest.$ac_ext
19794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
19795 $as_echo "$ac_cv_func_alloca_works" >&6; }
19797 if test $ac_cv_func_alloca_works = yes; then
19799 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
19802 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
19803 # that cause trouble. Some versions do not even contain alloca or
19804 # contain a buggy version. If you still want to use their alloca,
19805 # use ar to extract alloca.o from them instead of compiling alloca.c.
19807 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
19809 $as_echo "#define C_ALLOCA 1" >>confdefs.h
19812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
19813 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
19814 if ${ac_cv_os_cray+:} false; then :
19815 $as_echo_n "(cached) " >&6
19817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19818 /* end confdefs.h. */
19819 #if defined CRAY && ! defined CRAY2
19826 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19827 $EGREP "webecray" >/dev/null 2>&1; then :
19835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
19836 $as_echo "$ac_cv_os_cray" >&6; }
19837 if test $ac_cv_os_cray = yes; then
19838 for ac_func in _getb67 GETB67 getb67; do
19839 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19840 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19841 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19843 cat >>confdefs.h <<_ACEOF
19844 #define CRAY_STACKSEG_END $ac_func
19853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
19854 $as_echo_n "checking stack direction for C alloca... " >&6; }
19855 if ${ac_cv_c_stack_direction+:} false; then :
19856 $as_echo_n "(cached) " >&6
19858 if test "$cross_compiling" = yes; then :
19859 ac_cv_c_stack_direction=0
19861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19862 /* end confdefs.h. */
19863 $ac_includes_default
19865 find_stack_direction (int *addr, int depth)
19867 int dir, dummy = 0;
19870 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
19871 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
19872 return dir + dummy;
19876 main (int argc, char **argv)
19878 return find_stack_direction (0, argc + !argv + 20) < 0;
19881 if ac_fn_c_try_run "$LINENO"; then :
19882 ac_cv_c_stack_direction=1
19884 ac_cv_c_stack_direction=-1
19886 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19887 conftest.$ac_objext conftest.beam conftest.$ac_ext
19891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
19892 $as_echo "$ac_cv_c_stack_direction" >&6; }
19893 cat >>confdefs.h <<_ACEOF
19894 #define STACK_DIRECTION $ac_cv_c_stack_direction
19903 for ac_header in $ac_header_list
19905 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19906 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
19908 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19909 cat >>confdefs.h <<_ACEOF
19910 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19924 for ac_func in getpagesize
19926 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
19927 if test "x$ac_cv_func_getpagesize" = xyes; then :
19928 cat >>confdefs.h <<_ACEOF
19929 #define HAVE_GETPAGESIZE 1
19935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
19936 $as_echo_n "checking for working mmap... " >&6; }
19937 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
19938 $as_echo_n "(cached) " >&6
19940 if test "$cross_compiling" = yes; then :
19941 ac_cv_func_mmap_fixed_mapped=no
19943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19944 /* end confdefs.h. */
19945 $ac_includes_default
19946 /* malloc might have been renamed as rpl_malloc. */
19949 /* Thanks to Mike Haertel and Jim Avera for this test.
19950 Here is a matrix of mmap possibilities:
19951 mmap private not fixed
19952 mmap private fixed at somewhere currently unmapped
19953 mmap private fixed at somewhere already mapped
19954 mmap shared not fixed
19955 mmap shared fixed at somewhere currently unmapped
19956 mmap shared fixed at somewhere already mapped
19957 For private mappings, we should verify that changes cannot be read()
19958 back from the file, nor mmap's back from the file at a different
19959 address. (There have been systems where private was not correctly
19960 implemented like the infamous i386 svr4.0, and systems where the
19961 VM page cache was not coherent with the file system buffer cache
19962 like early versions of FreeBSD and possibly contemporary NetBSD.)
19963 For shared mappings, we should conversely verify that changes get
19964 propagated back to all the places they're supposed to be.
19966 Grep wants private fixed already mapped.
19967 The main things grep needs to know about mmap are:
19968 * does it exist and is it safe to write into the mmap'd area
19969 * how to use it (BSD variants) */
19972 #include <sys/mman.h>
19974 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
19978 /* This mess was copied from the GNU getpagesize.h. */
19979 #ifndef HAVE_GETPAGESIZE
19980 # ifdef _SC_PAGESIZE
19981 # define getpagesize() sysconf(_SC_PAGESIZE)
19982 # else /* no _SC_PAGESIZE */
19983 # ifdef HAVE_SYS_PARAM_H
19984 # include <sys/param.h>
19985 # ifdef EXEC_PAGESIZE
19986 # define getpagesize() EXEC_PAGESIZE
19987 # else /* no EXEC_PAGESIZE */
19989 # define getpagesize() NBPG * CLSIZE
19992 # endif /* no CLSIZE */
19993 # else /* no NBPG */
19995 # define getpagesize() NBPC
19996 # else /* no NBPC */
19998 # define getpagesize() PAGESIZE
19999 # endif /* PAGESIZE */
20000 # endif /* no NBPC */
20001 # endif /* no NBPG */
20002 # endif /* no EXEC_PAGESIZE */
20003 # else /* no HAVE_SYS_PARAM_H */
20004 # define getpagesize() 8192 /* punt totally */
20005 # endif /* no HAVE_SYS_PARAM_H */
20006 # endif /* no _SC_PAGESIZE */
20008 #endif /* no HAVE_GETPAGESIZE */
20013 char *data, *data2, *data3;
20014 const char *cdata2;
20018 pagesize = getpagesize ();
20020 /* First, make a file with some known garbage in it. */
20021 data = (char *) malloc (pagesize);
20024 for (i = 0; i < pagesize; ++i)
20025 *(data + i) = rand ();
20027 fd = creat ("conftest.mmap", 0600);
20030 if (write (fd, data, pagesize) != pagesize)
20034 /* Next, check that the tail of a page is zero-filled. File must have
20035 non-zero length, otherwise we risk SIGBUS for entire page. */
20036 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
20040 if (write (fd2, cdata2, 1) != 1)
20042 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
20043 if (data2 == MAP_FAILED)
20045 for (i = 0; i < pagesize; ++i)
20049 if (munmap (data2, pagesize))
20052 /* Next, try to mmap the file at a fixed address which already has
20053 something else allocated at it. If we can, also make sure that
20054 we see the same garbage. */
20055 fd = open ("conftest.mmap", O_RDWR);
20058 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20059 MAP_PRIVATE | MAP_FIXED, fd, 0L))
20061 for (i = 0; i < pagesize; ++i)
20062 if (*(data + i) != *(data2 + i))
20065 /* Finally, make sure that changes to the mapped area do not
20066 percolate back to the file as seen by read(). (This is a bug on
20067 some variants of i386 svr4.0.) */
20068 for (i = 0; i < pagesize; ++i)
20069 *(data2 + i) = *(data2 + i) + 1;
20070 data3 = (char *) malloc (pagesize);
20073 if (read (fd, data3, pagesize) != pagesize)
20075 for (i = 0; i < pagesize; ++i)
20076 if (*(data + i) != *(data3 + i))
20082 if ac_fn_c_try_run "$LINENO"; then :
20083 ac_cv_func_mmap_fixed_mapped=yes
20085 ac_cv_func_mmap_fixed_mapped=no
20087 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20088 conftest.$ac_objext conftest.beam conftest.$ac_ext
20092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
20093 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
20094 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20096 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
20099 rm -f conftest.mmap conftest.txt
20102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5
20103 $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
20104 if ${ac_cv_gnu_library_2_1+:} false; then :
20105 $as_echo_n "(cached) " >&6
20107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20108 /* end confdefs.h. */
20110 #include <features.h>
20111 #ifdef __GNU_LIBRARY__
20112 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
20118 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20119 $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
20120 ac_cv_gnu_library_2_1=yes
20122 ac_cv_gnu_library_2_1=no
20129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
20130 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
20132 GLIBC21="$ac_cv_gnu_library_2_1"
20137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
20138 $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
20139 if ${gt_cv_int_divbyzero_sigfpe+:} false; then :
20140 $as_echo_n "(cached) " >&6
20143 if test "$cross_compiling" = yes; then :
20145 # Guess based on the CPU.
20146 case "$host_cpu" in
20147 alpha* | i3456786 | m68k | s390*)
20148 gt_cv_int_divbyzero_sigfpe="guessing yes";;
20150 gt_cv_int_divbyzero_sigfpe="guessing no";;
20154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20155 /* end confdefs.h. */
20157 #include <stdlib.h>
20158 #include <signal.h>
20162 sigfpe_handler (int sig)
20164 sigfpe_handler (sig) int sig;
20167 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
20168 exit (sig != SIGFPE);
20178 signal (SIGFPE, sigfpe_handler);
20179 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
20180 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
20181 signal (SIGTRAP, sigfpe_handler);
20183 /* Linux/SPARC yields signal SIGILL. */
20184 #if defined (__sparc__) && defined (__linux__)
20185 signal (SIGILL, sigfpe_handler);
20194 if ac_fn_c_try_run "$LINENO"; then :
20195 gt_cv_int_divbyzero_sigfpe=yes
20197 gt_cv_int_divbyzero_sigfpe=no
20199 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20200 conftest.$ac_objext conftest.beam conftest.$ac_ext
20205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
20206 $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
20207 case "$gt_cv_int_divbyzero_sigfpe" in
20212 cat >>confdefs.h <<_ACEOF
20213 #define INTDIV0_RAISES_SIGFPE $value
20218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long" >&5
20219 $as_echo_n "checking for unsigned long long... " >&6; }
20220 if ${ac_cv_type_unsigned_long_long+:} false; then :
20221 $as_echo_n "(cached) " >&6
20223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20224 /* end confdefs.h. */
20225 unsigned long long ull = 1ULL; int i = 63;
20229 unsigned long long ullmax = (unsigned long long) -1;
20230 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
20235 if ac_fn_c_try_link "$LINENO"; then :
20236 ac_cv_type_unsigned_long_long=yes
20238 ac_cv_type_unsigned_long_long=no
20240 rm -f core conftest.err conftest.$ac_objext \
20241 conftest$ac_exeext conftest.$ac_ext
20243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long" >&5
20244 $as_echo "$ac_cv_type_unsigned_long_long" >&6; }
20245 if test $ac_cv_type_unsigned_long_long = yes; then
20247 $as_echo "#define HAVE_UNSIGNED_LONG_LONG 1" >>confdefs.h
20254 if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
20256 test $ac_cv_type_unsigned_long_long = yes \
20257 && ac_type='unsigned long long' \
20258 || ac_type='unsigned long'
20260 cat >>confdefs.h <<_ACEOF
20261 #define uintmax_t $ac_type
20266 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
20271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
20272 $as_echo_n "checking for inttypes.h... " >&6; }
20273 if ${gt_cv_header_inttypes_h+:} false; then :
20274 $as_echo_n "(cached) " >&6
20277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20278 /* end confdefs.h. */
20279 #include <sys/types.h>
20280 #include <inttypes.h>
20289 if ac_fn_c_try_compile "$LINENO"; then :
20290 gt_cv_header_inttypes_h=yes
20292 gt_cv_header_inttypes_h=no
20294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_header_inttypes_h" >&5
20298 $as_echo "$gt_cv_header_inttypes_h" >&6; }
20299 if test $gt_cv_header_inttypes_h = yes; then
20301 cat >>confdefs.h <<_ACEOF
20302 #define HAVE_INTTYPES_H 1
20309 if test $gt_cv_header_inttypes_h = yes; then
20310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
20311 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
20312 if ${gt_cv_inttypes_pri_broken+:} false; then :
20313 $as_echo_n "(cached) " >&6
20316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20317 /* end confdefs.h. */
20318 #include <inttypes.h>
20331 if ac_fn_c_try_compile "$LINENO"; then :
20332 gt_cv_inttypes_pri_broken=no
20334 gt_cv_inttypes_pri_broken=yes
20336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
20340 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
20342 if test "$gt_cv_inttypes_pri_broken" = yes; then
20344 cat >>confdefs.h <<_ACEOF
20345 #define PRI_MACROS_BROKEN 1
20351 for ac_header in stdint.h
20353 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
20354 if test "x$ac_cv_header_stdint_h" = xyes; then :
20355 cat >>confdefs.h <<_ACEOF
20356 #define HAVE_STDINT_H 1
20363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
20364 $as_echo_n "checking for SIZE_MAX... " >&6; }
20366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20367 /* end confdefs.h. */
20369 #include <limits.h>
20371 #include <stdint.h>
20378 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20379 $EGREP "Found it" >/dev/null 2>&1; then :
20384 if test -z "$result"; then
20385 if ac_fn_c_compute_int "$LINENO" "~(size_t)0 / 10" "res_hi" "#include <stddef.h>"; then :
20392 if ac_fn_c_compute_int "$LINENO" "~(size_t)0 % 10" "res_lo" "#include <stddef.h>"; then :
20399 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint" "#include <stddef.h>"; then :
20406 if test "$fits_in_uint" = 1; then
20407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20408 /* end confdefs.h. */
20409 #include <stddef.h>
20411 extern unsigned long foo;
20421 if ac_fn_c_try_compile "$LINENO"; then :
20424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20426 if test -z "$result"; then
20427 if test "$fits_in_uint" = 1; then
20428 result="$res_hi$res_lo"U
20430 result="$res_hi$res_lo"UL
20433 result='~(size_t)0'
20436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
20437 $as_echo "$result" >&6; }
20438 if test "$result" != yes; then
20440 cat >>confdefs.h <<_ACEOF
20441 #define SIZE_MAX $result
20449 for ac_header in stdint.h
20451 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
20452 if test "x$ac_cv_header_stdint_h" = xyes; then :
20453 cat >>confdefs.h <<_ACEOF
20454 #define HAVE_STDINT_H 1
20468 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
20469 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
20473 $as_echo "#define ptrdiff_t long" >>confdefs.h
20478 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
20479 stdlib.h string.h unistd.h sys/param.h
20481 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20482 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20483 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20484 cat >>confdefs.h <<_ACEOF
20485 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20492 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
20493 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
20494 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
20497 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20498 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20499 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
20500 cat >>confdefs.h <<_ACEOF
20501 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snprintf is declared" >&5
20510 $as_echo_n "checking whether _snprintf is declared... " >&6; }
20511 if ${ac_cv_have_decl__snprintf+:} false; then :
20512 $as_echo_n "(cached) " >&6
20514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20515 /* end confdefs.h. */
20522 char *p = (char *) _snprintf;
20529 if ac_fn_c_try_compile "$LINENO"; then :
20530 ac_cv_have_decl__snprintf=yes
20532 ac_cv_have_decl__snprintf=no
20534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snprintf" >&5
20537 $as_echo "$ac_cv_have_decl__snprintf" >&6; }
20538 if test $ac_cv_have_decl__snprintf = yes; then
20544 cat >>confdefs.h <<_ACEOF
20545 #define HAVE_DECL__SNPRINTF $gt_value
20550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snwprintf is declared" >&5
20551 $as_echo_n "checking whether _snwprintf is declared... " >&6; }
20552 if ${ac_cv_have_decl__snwprintf+:} false; then :
20553 $as_echo_n "(cached) " >&6
20555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20556 /* end confdefs.h. */
20563 char *p = (char *) _snwprintf;
20570 if ac_fn_c_try_compile "$LINENO"; then :
20571 ac_cv_have_decl__snwprintf=yes
20573 ac_cv_have_decl__snwprintf=no
20575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snwprintf" >&5
20578 $as_echo "$ac_cv_have_decl__snwprintf" >&6; }
20579 if test $ac_cv_have_decl__snwprintf = yes; then
20585 cat >>confdefs.h <<_ACEOF
20586 #define HAVE_DECL__SNWPRINTF $gt_value
20592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether feof_unlocked is declared" >&5
20593 $as_echo_n "checking whether feof_unlocked is declared... " >&6; }
20594 if ${ac_cv_have_decl_feof_unlocked+:} false; then :
20595 $as_echo_n "(cached) " >&6
20597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20598 /* end confdefs.h. */
20604 #ifndef feof_unlocked
20605 char *p = (char *) feof_unlocked;
20612 if ac_fn_c_try_compile "$LINENO"; then :
20613 ac_cv_have_decl_feof_unlocked=yes
20615 ac_cv_have_decl_feof_unlocked=no
20617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_feof_unlocked" >&5
20620 $as_echo "$ac_cv_have_decl_feof_unlocked" >&6; }
20621 if test $ac_cv_have_decl_feof_unlocked = yes; then
20627 cat >>confdefs.h <<_ACEOF
20628 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
20633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fgets_unlocked is declared" >&5
20634 $as_echo_n "checking whether fgets_unlocked is declared... " >&6; }
20635 if ${ac_cv_have_decl_fgets_unlocked+:} false; then :
20636 $as_echo_n "(cached) " >&6
20638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20639 /* end confdefs.h. */
20645 #ifndef fgets_unlocked
20646 char *p = (char *) fgets_unlocked;
20653 if ac_fn_c_try_compile "$LINENO"; then :
20654 ac_cv_have_decl_fgets_unlocked=yes
20656 ac_cv_have_decl_fgets_unlocked=no
20658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_fgets_unlocked" >&5
20661 $as_echo "$ac_cv_have_decl_fgets_unlocked" >&6; }
20662 if test $ac_cv_have_decl_fgets_unlocked = yes; then
20668 cat >>confdefs.h <<_ACEOF
20669 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
20674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getc_unlocked is declared" >&5
20675 $as_echo_n "checking whether getc_unlocked is declared... " >&6; }
20676 if ${ac_cv_have_decl_getc_unlocked+:} false; then :
20677 $as_echo_n "(cached) " >&6
20679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20680 /* end confdefs.h. */
20686 #ifndef getc_unlocked
20687 char *p = (char *) getc_unlocked;
20694 if ac_fn_c_try_compile "$LINENO"; then :
20695 ac_cv_have_decl_getc_unlocked=yes
20697 ac_cv_have_decl_getc_unlocked=no
20699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_getc_unlocked" >&5
20702 $as_echo "$ac_cv_have_decl_getc_unlocked" >&6; }
20703 if test $ac_cv_have_decl_getc_unlocked = yes; then
20709 cat >>confdefs.h <<_ACEOF
20710 #define HAVE_DECL_GETC_UNLOCKED $gt_value
20715 case $gt_cv_func_printf_posix in
20716 *yes) HAVE_POSIX_PRINTF=1 ;;
20717 *) HAVE_POSIX_PRINTF=0 ;;
20720 if test "$ac_cv_func_asprintf" = yes; then
20726 if test "$ac_cv_func_snprintf" = yes; then
20732 if test "$ac_cv_func_wprintf" = yes; then
20744 am_save_CPPFLAGS="$CPPFLAGS"
20746 for element in $INCICONV; do
20748 for x in $CPPFLAGS; do
20750 acl_save_prefix="$prefix"
20751 prefix="$acl_final_prefix"
20752 acl_save_exec_prefix="$exec_prefix"
20753 exec_prefix="$acl_final_exec_prefix"
20755 exec_prefix="$acl_save_exec_prefix"
20756 prefix="$acl_save_prefix"
20758 if test "X$x" = "X$element"; then
20763 if test -z "$haveit"; then
20764 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
20769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
20770 $as_echo_n "checking for iconv... " >&6; }
20771 if ${am_cv_func_iconv+:} false; then :
20772 $as_echo_n "(cached) " >&6
20775 am_cv_func_iconv="no, consider installing GNU libiconv"
20777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20778 /* end confdefs.h. */
20779 #include <stdlib.h>
20784 iconv_t cd = iconv_open("","");
20785 iconv(cd,NULL,NULL,NULL,NULL);
20791 if ac_fn_c_try_link "$LINENO"; then :
20792 am_cv_func_iconv=yes
20794 rm -f core conftest.err conftest.$ac_objext \
20795 conftest$ac_exeext conftest.$ac_ext
20796 if test "$am_cv_func_iconv" != yes; then
20797 am_save_LIBS="$LIBS"
20798 LIBS="$LIBS $LIBICONV"
20799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20800 /* end confdefs.h. */
20801 #include <stdlib.h>
20806 iconv_t cd = iconv_open("","");
20807 iconv(cd,NULL,NULL,NULL,NULL);
20813 if ac_fn_c_try_link "$LINENO"; then :
20814 am_cv_lib_iconv=yes
20815 am_cv_func_iconv=yes
20817 rm -f core conftest.err conftest.$ac_objext \
20818 conftest$ac_exeext conftest.$ac_ext
20819 LIBS="$am_save_LIBS"
20823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
20824 $as_echo "$am_cv_func_iconv" >&6; }
20825 if test "$am_cv_func_iconv" = yes; then
20827 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
20830 if test "$am_cv_lib_iconv" = yes; then
20831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
20832 $as_echo_n "checking how to link with libiconv... " >&6; }
20833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
20834 $as_echo "$LIBICONV" >&6; }
20836 CPPFLAGS="$am_save_CPPFLAGS"
20843 if test "$am_cv_func_iconv" = yes; then
20844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
20845 $as_echo_n "checking for iconv declaration... " >&6; }
20846 if ${am_cv_proto_iconv+:} false; then :
20847 $as_echo_n "(cached) " >&6
20850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20851 /* end confdefs.h. */
20853 #include <stdlib.h>
20859 #if defined(__STDC__) || defined(__cplusplus)
20860 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
20873 if ac_fn_c_try_compile "$LINENO"; then :
20874 am_cv_proto_iconv_arg1=""
20876 am_cv_proto_iconv_arg1="const"
20878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20879 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);"
20882 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
20883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
20884 }$am_cv_proto_iconv" >&5
20886 }$am_cv_proto_iconv" >&6; }
20888 cat >>confdefs.h <<_ACEOF
20889 #define ICONV_CONST $am_cv_proto_iconv_arg1
20895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
20896 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
20897 if ${am_cv_langinfo_codeset+:} false; then :
20898 $as_echo_n "(cached) " >&6
20900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20901 /* end confdefs.h. */
20902 #include <langinfo.h>
20906 char* cs = nl_langinfo(CODESET);
20911 if ac_fn_c_try_link "$LINENO"; then :
20912 am_cv_langinfo_codeset=yes
20914 am_cv_langinfo_codeset=no
20916 rm -f core conftest.err conftest.$ac_objext \
20917 conftest$ac_exeext conftest.$ac_ext
20920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
20921 $as_echo "$am_cv_langinfo_codeset" >&6; }
20922 if test $am_cv_langinfo_codeset = yes; then
20924 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
20928 if test $ac_cv_header_locale_h = yes; then
20930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
20931 $as_echo_n "checking for LC_MESSAGES... " >&6; }
20932 if ${gt_cv_val_LC_MESSAGES+:} false; then :
20933 $as_echo_n "(cached) " >&6
20935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20936 /* end confdefs.h. */
20937 #include <locale.h>
20946 if ac_fn_c_try_link "$LINENO"; then :
20947 gt_cv_val_LC_MESSAGES=yes
20949 gt_cv_val_LC_MESSAGES=no
20951 rm -f core conftest.err conftest.$ac_objext \
20952 conftest$ac_exeext conftest.$ac_ext
20954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_val_LC_MESSAGES" >&5
20955 $as_echo "$gt_cv_val_LC_MESSAGES" >&6; }
20956 if test $gt_cv_val_LC_MESSAGES = yes; then
20958 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
20964 if test -n "$INTL_MACOSX_LIBS"; then
20965 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
20968 for ac_prog in bison
20970 # Extract the first word of "$ac_prog", so it can be a program name with args.
20971 set dummy $ac_prog; ac_word=$2
20972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20973 $as_echo_n "checking for $ac_word... " >&6; }
20974 if ${ac_cv_prog_INTLBISON+:} false; then :
20975 $as_echo_n "(cached) " >&6
20977 if test -n "$INTLBISON"; then
20978 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
20980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20981 for as_dir in $PATH
20984 test -z "$as_dir" && as_dir=.
20985 for ac_exec_ext in '' $ac_executable_extensions; do
20986 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20987 ac_cv_prog_INTLBISON="$ac_prog"
20988 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20997 INTLBISON=$ac_cv_prog_INTLBISON
20998 if test -n "$INTLBISON"; then
20999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
21000 $as_echo "$INTLBISON" >&6; }
21002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21003 $as_echo "no" >&6; }
21007 test -n "$INTLBISON" && break
21010 if test -z "$INTLBISON"; then
21013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
21014 $as_echo_n "checking version of bison... " >&6; }
21015 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
21016 case $ac_prog_version in
21017 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
21018 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
21019 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
21020 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
21022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
21023 $as_echo "$ac_prog_version" >&6; }
21025 if test $ac_verc_fail = yes; then
21044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
21045 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
21046 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
21047 $as_echo_n "(cached) " >&6
21049 gt_save_CPPFLAGS="$CPPFLAGS"
21050 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
21051 gt_save_LIBS="$LIBS"
21052 LIBS="$LIBS -framework CoreFoundation"
21053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21054 /* end confdefs.h. */
21055 #include <CFPreferences.h>
21059 CFPreferencesCopyAppValue(NULL, NULL)
21064 if ac_fn_c_try_link "$LINENO"; then :
21065 gt_cv_func_CFPreferencesCopyAppValue=yes
21067 gt_cv_func_CFPreferencesCopyAppValue=no
21069 rm -f core conftest.err conftest.$ac_objext \
21070 conftest$ac_exeext conftest.$ac_ext
21071 CPPFLAGS="$gt_save_CPPFLAGS"
21072 LIBS="$gt_save_LIBS"
21074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
21075 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
21076 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
21078 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
21081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
21082 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
21083 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
21084 $as_echo_n "(cached) " >&6
21086 gt_save_CPPFLAGS="$CPPFLAGS"
21087 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
21088 gt_save_LIBS="$LIBS"
21089 LIBS="$LIBS -framework CoreFoundation"
21090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21091 /* end confdefs.h. */
21092 #include <CFLocale.h>
21096 CFLocaleCopyCurrent();
21101 if ac_fn_c_try_link "$LINENO"; then :
21102 gt_cv_func_CFLocaleCopyCurrent=yes
21104 gt_cv_func_CFLocaleCopyCurrent=no
21106 rm -f core conftest.err conftest.$ac_objext \
21107 conftest$ac_exeext conftest.$ac_ext
21108 CPPFLAGS="$gt_save_CPPFLAGS"
21109 LIBS="$gt_save_LIBS"
21111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
21112 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
21113 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
21115 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
21119 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
21120 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
21126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
21127 $as_echo_n "checking whether NLS is requested... " >&6; }
21128 # Check whether --enable-nls was given.
21129 if test "${enable_nls+set}" = set; then :
21130 enableval=$enable_nls; USE_NLS=$enableval
21135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
21136 $as_echo "$USE_NLS" >&6; }
21141 BUILD_INCLUDED_LIBINTL=no
21142 USE_INCLUDED_LIBINTL=no
21148 if test "$USE_NLS" = "yes"; then
21149 gt_use_preinstalled_gnugettext=no
21151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
21152 $as_echo_n "checking whether included gettext is requested... " >&6; }
21154 # Check whether --with-included-gettext was given.
21155 if test "${with_included_gettext+set}" = set; then :
21156 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
21158 nls_cv_force_use_gnu_gettext=no
21161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
21162 $as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
21164 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
21165 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
21172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
21173 $as_echo_n "checking for GNU gettext in libc... " >&6; }
21174 if ${gt_cv_func_gnugettext1_libc+:} false; then :
21175 $as_echo_n "(cached) " >&6
21177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21178 /* end confdefs.h. */
21179 #include <libintl.h>
21180 extern int _nl_msg_cat_cntr;
21181 extern int *_nl_domain_bindings;
21185 bindtextdomain ("", "");
21186 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
21191 if ac_fn_c_try_link "$LINENO"; then :
21192 gt_cv_func_gnugettext1_libc=yes
21194 gt_cv_func_gnugettext1_libc=no
21196 rm -f core conftest.err conftest.$ac_objext \
21197 conftest$ac_exeext conftest.$ac_ext
21199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5
21200 $as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
21202 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
21208 acl_save_prefix="$prefix"
21209 prefix="$acl_final_prefix"
21210 acl_save_exec_prefix="$exec_prefix"
21211 exec_prefix="$acl_final_exec_prefix"
21213 eval additional_includedir=\"$includedir\"
21214 eval additional_libdir=\"$libdir\"
21216 exec_prefix="$acl_save_exec_prefix"
21217 prefix="$acl_save_prefix"
21220 # Check whether --with-libintl-prefix was given.
21221 if test "${with_libintl_prefix+set}" = set; then :
21222 withval=$with_libintl_prefix;
21223 if test "X$withval" = "Xno"; then
21226 if test "X$withval" = "X"; then
21228 acl_save_prefix="$prefix"
21229 prefix="$acl_final_prefix"
21230 acl_save_exec_prefix="$exec_prefix"
21231 exec_prefix="$acl_final_exec_prefix"
21233 eval additional_includedir=\"$includedir\"
21234 eval additional_libdir=\"$libdir\"
21236 exec_prefix="$acl_save_exec_prefix"
21237 prefix="$acl_save_prefix"
21240 additional_includedir="$withval/include"
21241 additional_libdir="$withval/lib"
21252 names_already_handled=
21253 names_next_round='intl '
21254 while test -n "$names_next_round"; do
21255 names_this_round="$names_next_round"
21257 for name in $names_this_round; do
21259 for n in $names_already_handled; do
21260 if test "$n" = "$name"; then
21261 already_handled=yes
21265 if test -z "$already_handled"; then
21266 names_already_handled="$names_already_handled $name"
21267 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
21268 eval value=\"\$HAVE_LIB$uppername\"
21269 if test -n "$value"; then
21270 if test "$value" = yes; then
21271 eval value=\"\$LIB$uppername\"
21272 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
21273 eval value=\"\$LTLIB$uppername\"
21274 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
21283 if test $use_additional = yes; then
21284 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
21285 found_dir="$additional_libdir"
21286 found_so="$additional_libdir/lib$name.$shlibext"
21287 if test -f "$additional_libdir/lib$name.la"; then
21288 found_la="$additional_libdir/lib$name.la"
21291 if test -f "$additional_libdir/lib$name.$libext"; then
21292 found_dir="$additional_libdir"
21293 found_a="$additional_libdir/lib$name.$libext"
21294 if test -f "$additional_libdir/lib$name.la"; then
21295 found_la="$additional_libdir/lib$name.la"
21300 if test "X$found_dir" = "X"; then
21301 for x in $LDFLAGS $LTLIBINTL; do
21303 acl_save_prefix="$prefix"
21304 prefix="$acl_final_prefix"
21305 acl_save_exec_prefix="$exec_prefix"
21306 exec_prefix="$acl_final_exec_prefix"
21308 exec_prefix="$acl_save_exec_prefix"
21309 prefix="$acl_save_prefix"
21313 dir=`echo "X$x" | sed -e 's/^X-L//'`
21314 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
21316 found_so="$dir/lib$name.$shlibext"
21317 if test -f "$dir/lib$name.la"; then
21318 found_la="$dir/lib$name.la"
21321 if test -f "$dir/lib$name.$libext"; then
21323 found_a="$dir/lib$name.$libext"
21324 if test -f "$dir/lib$name.la"; then
21325 found_la="$dir/lib$name.la"
21331 if test "X$found_dir" != "X"; then
21336 if test "X$found_dir" != "X"; then
21337 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
21338 if test "X$found_so" != "X"; then
21339 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
21340 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
21343 for x in $ltrpathdirs; do
21344 if test "X$x" = "X$found_dir"; then
21349 if test -z "$haveit"; then
21350 ltrpathdirs="$ltrpathdirs $found_dir"
21352 if test "$hardcode_direct" = yes; then
21353 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
21355 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
21356 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
21358 for x in $rpathdirs; do
21359 if test "X$x" = "X$found_dir"; then
21364 if test -z "$haveit"; then
21365 rpathdirs="$rpathdirs $found_dir"
21369 for x in $LDFLAGS $LIBINTL; do
21371 acl_save_prefix="$prefix"
21372 prefix="$acl_final_prefix"
21373 acl_save_exec_prefix="$exec_prefix"
21374 exec_prefix="$acl_final_exec_prefix"
21376 exec_prefix="$acl_save_exec_prefix"
21377 prefix="$acl_save_prefix"
21379 if test "X$x" = "X-L$found_dir"; then
21384 if test -z "$haveit"; then
21385 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
21387 if test "$hardcode_minus_L" != no; then
21388 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
21390 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
21396 if test "X$found_a" != "X"; then
21397 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
21399 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
21402 additional_includedir=
21403 case "$found_dir" in
21405 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
21406 additional_includedir="$basedir/include"
21409 if test "X$additional_includedir" != "X"; then
21410 if test "X$additional_includedir" != "X/usr/include"; then
21412 if test "X$additional_includedir" = "X/usr/local/include"; then
21413 if test -n "$GCC"; then
21415 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
21419 if test -z "$haveit"; then
21420 for x in $CPPFLAGS $INCINTL; do
21422 acl_save_prefix="$prefix"
21423 prefix="$acl_final_prefix"
21424 acl_save_exec_prefix="$exec_prefix"
21425 exec_prefix="$acl_final_exec_prefix"
21427 exec_prefix="$acl_save_exec_prefix"
21428 prefix="$acl_save_prefix"
21430 if test "X$x" = "X-I$additional_includedir"; then
21435 if test -z "$haveit"; then
21436 if test -d "$additional_includedir"; then
21437 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
21443 if test -n "$found_la"; then
21444 save_libdir="$libdir"
21445 case "$found_la" in
21446 */* | *\\*) . "$found_la" ;;
21447 *) . "./$found_la" ;;
21449 libdir="$save_libdir"
21450 for dep in $dependency_libs; do
21453 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
21454 if test "X$additional_libdir" != "X/usr/lib"; then
21456 if test "X$additional_libdir" = "X/usr/local/lib"; then
21457 if test -n "$GCC"; then
21459 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
21463 if test -z "$haveit"; then
21465 for x in $LDFLAGS $LIBINTL; do
21467 acl_save_prefix="$prefix"
21468 prefix="$acl_final_prefix"
21469 acl_save_exec_prefix="$exec_prefix"
21470 exec_prefix="$acl_final_exec_prefix"
21472 exec_prefix="$acl_save_exec_prefix"
21473 prefix="$acl_save_prefix"
21475 if test "X$x" = "X-L$additional_libdir"; then
21480 if test -z "$haveit"; then
21481 if test -d "$additional_libdir"; then
21482 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
21486 for x in $LDFLAGS $LTLIBINTL; do
21488 acl_save_prefix="$prefix"
21489 prefix="$acl_final_prefix"
21490 acl_save_exec_prefix="$exec_prefix"
21491 exec_prefix="$acl_final_exec_prefix"
21493 exec_prefix="$acl_save_exec_prefix"
21494 prefix="$acl_save_prefix"
21496 if test "X$x" = "X-L$additional_libdir"; then
21501 if test -z "$haveit"; then
21502 if test -d "$additional_libdir"; then
21503 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
21510 dir=`echo "X$dep" | sed -e 's/^X-R//'`
21511 if test "$enable_rpath" != no; then
21513 for x in $rpathdirs; do
21514 if test "X$x" = "X$dir"; then
21519 if test -z "$haveit"; then
21520 rpathdirs="$rpathdirs $dir"
21523 for x in $ltrpathdirs; do
21524 if test "X$x" = "X$dir"; then
21529 if test -z "$haveit"; then
21530 ltrpathdirs="$ltrpathdirs $dir"
21535 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
21538 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
21541 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
21542 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
21548 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
21549 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
21555 if test "X$rpathdirs" != "X"; then
21556 if test -n "$hardcode_libdir_separator"; then
21558 for found_dir in $rpathdirs; do
21559 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
21561 acl_save_libdir="$libdir"
21563 eval flag=\"$hardcode_libdir_flag_spec\"
21564 libdir="$acl_save_libdir"
21565 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
21567 for found_dir in $rpathdirs; do
21568 acl_save_libdir="$libdir"
21569 libdir="$found_dir"
21570 eval flag=\"$hardcode_libdir_flag_spec\"
21571 libdir="$acl_save_libdir"
21572 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
21576 if test "X$ltrpathdirs" != "X"; then
21577 for found_dir in $ltrpathdirs; do
21578 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
21582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
21583 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
21584 if ${gt_cv_func_gnugettext1_libintl+:} false; then :
21585 $as_echo_n "(cached) " >&6
21587 gt_save_CPPFLAGS="$CPPFLAGS"
21588 CPPFLAGS="$CPPFLAGS $INCINTL"
21589 gt_save_LIBS="$LIBS"
21590 LIBS="$LIBS $LIBINTL"
21591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21592 /* end confdefs.h. */
21593 #include <libintl.h>
21594 extern int _nl_msg_cat_cntr;
21599 const char *_nl_expand_alias (const char *);
21603 bindtextdomain ("", "");
21604 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
21609 if ac_fn_c_try_link "$LINENO"; then :
21610 gt_cv_func_gnugettext1_libintl=yes
21612 gt_cv_func_gnugettext1_libintl=no
21614 rm -f core conftest.err conftest.$ac_objext \
21615 conftest$ac_exeext conftest.$ac_ext
21616 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
21617 LIBS="$LIBS $LIBICONV"
21618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21619 /* end confdefs.h. */
21620 #include <libintl.h>
21621 extern int _nl_msg_cat_cntr;
21626 const char *_nl_expand_alias (const char *);
21630 bindtextdomain ("", "");
21631 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
21636 if ac_fn_c_try_link "$LINENO"; then :
21637 LIBINTL="$LIBINTL $LIBICONV"
21638 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
21639 gt_cv_func_gnugettext1_libintl=yes
21642 rm -f core conftest.err conftest.$ac_objext \
21643 conftest$ac_exeext conftest.$ac_ext
21645 CPPFLAGS="$gt_save_CPPFLAGS"
21646 LIBS="$gt_save_LIBS"
21648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5
21649 $as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
21652 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
21653 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
21654 && test "$PACKAGE" != gettext-runtime \
21655 && test "$PACKAGE" != gettext-tools; }; then
21656 gt_use_preinstalled_gnugettext=yes
21664 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
21665 nls_cv_use_gnu_gettext=yes
21669 if test "$nls_cv_use_gnu_gettext" = "yes"; then
21670 BUILD_INCLUDED_LIBINTL=yes
21671 USE_INCLUDED_LIBINTL=yes
21672 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
21673 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
21674 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
21678 if test "$gt_use_preinstalled_gnugettext" = "yes" \
21679 || test "$nls_cv_use_gnu_gettext" = "yes"; then
21684 if test -n "$INTL_MACOSX_LIBS"; then
21685 if test "$gt_use_preinstalled_gnugettext" = "yes" \
21686 || test "$nls_cv_use_gnu_gettext" = "yes"; then
21687 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
21688 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
21692 if test "$gt_use_preinstalled_gnugettext" = "yes" \
21693 || test "$nls_cv_use_gnu_gettext" = "yes"; then
21695 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
21702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
21703 $as_echo_n "checking whether to use NLS... " >&6; }
21704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
21705 $as_echo "$USE_NLS" >&6; }
21706 if test "$USE_NLS" = "yes"; then
21707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
21708 $as_echo_n "checking where the gettext function comes from... " >&6; }
21709 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
21710 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
21711 gt_source="external libintl"
21716 gt_source="included intl directory"
21718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
21719 $as_echo "$gt_source" >&6; }
21722 if test "$USE_NLS" = "yes"; then
21724 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
21725 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
21726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
21727 $as_echo_n "checking how to link with libintl... " >&6; }
21728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
21729 $as_echo "$LIBINTL" >&6; }
21731 for element in $INCINTL; do
21733 for x in $CPPFLAGS; do
21735 acl_save_prefix="$prefix"
21736 prefix="$acl_final_prefix"
21737 acl_save_exec_prefix="$exec_prefix"
21738 exec_prefix="$acl_final_exec_prefix"
21740 exec_prefix="$acl_save_exec_prefix"
21741 prefix="$acl_save_prefix"
21743 if test "X$x" = "X$element"; then
21748 if test -z "$haveit"; then
21749 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
21756 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
21759 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
21767 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
21768 BUILD_INCLUDED_LIBINTL=yes
21775 nls_cv_header_intl=
21776 nls_cv_header_libgt=
21788 if test "$USE_INCLUDED_LIBINTL" = yes; then
21789 INTLOBJS="\$(GETTOBJS)"
21793 INTL_LIBTOOL_SUFFIX_PREFIX=
21797 INTLLIBS="$LIBINTL"
21806 support_smartalloc=yes
21807 support_readline=yes
21813 support_static_tools=no
21814 support_static_fd=no
21815 support_static_sd=no
21816 support_static_dir=no
21817 support_static_cons=no
21818 build_client_only=no
21822 batch_insert_db_backends=""
21826 # Check whether --enable-bat was given.
21827 if test "${enable_bat+set}" = set; then :
21828 enableval=$enable_bat;
21829 if test x$enableval = xyes; then
21831 $as_echo "#define HAVE_BAT 1" >>confdefs.h
21841 if test x$support_bat = xyes; then
21842 abc=`$PKGCONFIG QtGui`
21844 if test $pkg = 0; then
21845 BAT_DIR=src/qt-console
21847 abc=`$PKGCONFIG Qt5Gui`
21849 if test $pkg = 0; then
21850 BAT_DIR=src/qt-console
21852 as_fn_error $? "Unable to find either Qt4 or Qt5 installation needed by bat" "$LINENO" 5
21863 # Check whether --enable-smartalloc was given.
21864 if test "${enable_smartalloc+set}" = set; then :
21865 enableval=$enable_smartalloc;
21866 if test x$enableval = xno; then
21867 support_smartalloc=no
21874 if test x$support_smartalloc = xyes; then
21876 $as_echo "#define SMARTALLOC 1" >>confdefs.h
21880 # Check whether --enable-lockmgr was given.
21881 if test "${enable_lockmgr+set}" = set; then :
21882 enableval=$enable_lockmgr;
21883 if test x$enableval = xyes; then
21884 support_lockmgr=yes
21891 if test x$support_lockmgr = xyes; then
21893 $as_echo "#define USE_LOCKMGR 1" >>confdefs.h
21898 # Check whether --enable-static-tools was given.
21899 if test "${enable_static_tools+set}" = set; then :
21900 enableval=$enable_static_tools;
21901 if test x$enableval = xyes; then
21902 if test x$use_libtool = xyes; then
21903 as_fn_error $? "Libtool is enabled, not compatible with static tools,
21904 please rerun configure with --disable-libtool" "$LINENO" 5
21906 support_static_tools=yes
21914 if test x$support_static_tools = xyes; then
21915 TTOOL_LDFLAGS="-static"
21919 # Check whether --enable-static-fd was given.
21920 if test "${enable_static_fd+set}" = set; then :
21921 enableval=$enable_static_fd;
21922 if test x$enableval = xyes; then
21923 if test x$use_libtool = xyes; then
21924 as_fn_error $? "Libtool is enabled, not compatible with static tools,
21925 please rerun configure with --disable-libtool" "$LINENO" 5
21927 support_static_fd=yes
21935 if test x$support_static_fd = xyes; then
21936 STATIC_FD="static-bacula-fd"
21940 # Check whether --enable-static-sd was given.
21941 if test "${enable_static_sd+set}" = set; then :
21942 enableval=$enable_static_sd;
21943 if test x$enableval = xyes; then
21944 if test x$use_libtool = xyes; then
21945 as_fn_error $? "Libtool is enabled, not compatible with static tools,
21946 please rerun configure with --disable-libtool" "$LINENO" 5
21948 support_static_sd=yes
21956 if test x$support_static_sd = xyes; then
21957 STATIC_SD="static-bacula-sd"
21961 # Check whether --enable-static-dir was given.
21962 if test "${enable_static_dir+set}" = set; then :
21963 enableval=$enable_static_dir;
21964 if test x$enableval = xyes; then
21965 if test x$use_libtool = xyes; then
21966 as_fn_error $? "Libtool is enabled, not compatible with static tools,
21967 please rerun configure with --disable-libtool" "$LINENO" 5
21969 support_static_dir=yes
21977 if test x$support_static_dir = xyes; then
21978 STATIC_DIR="static-bacula-dir"
21982 # Check whether --enable-static-cons was given.
21983 if test "${enable_static_cons+set}" = set; then :
21984 enableval=$enable_static_cons;
21985 if test x$enableval = xyes; then
21986 if test x$use_libtool = xyes; then
21987 as_fn_error $? "Libtool is enabled, not compatible with static tools,
21988 please rerun configure with --disable-libtool" "$LINENO" 5
21990 support_static_cons=yes
21998 if test x$support_static_cons = xyes; then
21999 STATIC_CONS="static-bconsole"
22003 # Check whether --enable-client-only was given.
22004 if test "${enable_client_only+set}" = set; then :
22005 enableval=$enable_client_only;
22006 if test x$enableval = xyes; then
22007 build_client_only=yes
22015 if test x$build_client_only = xno; then
22022 # Check whether --enable-build-dird was given.
22023 if test "${enable_build_dird+set}" = set; then :
22024 enableval=$enable_build_dird;
22025 if test x$enableval = xno; then
22033 DIRD_DIR="src/dird"
22034 DIR_TOOLS="DIRTOOLS"
22039 # Check whether --enable-build-stored was given.
22040 if test "${enable_build_stored+set}" = set; then :
22041 enableval=$enable_build_stored;
22042 if test x$enableval = xno; then
22049 if test x$build_stored = xyes; then
22050 STORED_DIR="src/stored"
22056 # Check whether --enable-conio was given.
22057 if test "${enable_conio+set}" = set; then :
22058 enableval=$enable_conio;
22059 if test x$enableval = xno; then
22069 # Check whether --enable-ipv6 was given.
22070 if test "${enable_ipv6+set}" = set; then :
22071 enableval=$enable_ipv6;
22072 if test x$enableval = xno; then
22080 if test x$support_ipv6 = xyes; then
22081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22082 /* end confdefs.h. */
22083 #include <sys/types.h>
22084 #include <sys/socket.h>
22085 #include <netinet/in.h>
22089 struct in6_addr t=in6addr_any; t.s6_addr[0] = 0;
22094 if ac_fn_c_try_link "$LINENO"; then :
22095 support_in6addr_any=yes
22097 support_in6addr_any=no
22099 rm -f core conftest.err conftest.$ac_objext \
22100 conftest$ac_exeext conftest.$ac_ext
22102 if test x$support_in6addr_any = xno ; then
22103 in6addr_any="const struct in6_addr in6addr_any"
22108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22109 /* end confdefs.h. */
22110 #include <sys/types.h>
22111 #include <sys/socket.h>
22112 #include <netinet/in.h>
22116 $in6addr_any; struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] = 0;
22121 if ac_fn_c_try_link "$LINENO"; then :
22126 rm -f core conftest.err conftest.$ac_objext \
22127 conftest$ac_exeext conftest.$ac_ext
22130 if test x$support_ipv6 = xyes; then
22132 $as_echo "#define HAVE_IPV6 1" >>confdefs.h
22135 if test x$support_in6addr_any = xno ; then
22137 $as_echo "#define NEED_IN6ADDR_ANY 1" >>confdefs.h
22143 ac_fn_c_check_header_mongrel "$LINENO" "curses.h" "ac_cv_header_curses_h" "$ac_includes_default"
22144 if test "x$ac_cv_header_curses_h" = xyes; then :
22146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltinfo" >&5
22147 $as_echo_n "checking for tgetent in -ltinfo... " >&6; }
22148 if ${ac_cv_lib_tinfo_tgetent+:} false; then :
22149 $as_echo_n "(cached) " >&6
22151 ac_check_lib_save_LIBS=$LIBS
22152 LIBS="-ltinfo $LIBS"
22153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22154 /* end confdefs.h. */
22156 /* Override any GCC internal prototype to avoid an error.
22157 Use char because int might match the return type of a GCC
22158 builtin and then its argument prototype would still apply. */
22171 if ac_fn_c_try_link "$LINENO"; then :
22172 ac_cv_lib_tinfo_tgetent=yes
22174 ac_cv_lib_tinfo_tgetent=no
22176 rm -f core conftest.err conftest.$ac_objext \
22177 conftest$ac_exeext conftest.$ac_ext
22178 LIBS=$ac_check_lib_save_LIBS
22180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tinfo_tgetent" >&5
22181 $as_echo "$ac_cv_lib_tinfo_tgetent" >&6; }
22182 if test "x$ac_cv_lib_tinfo_tgetent" = xyes; then :
22186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lncurses" >&5
22187 $as_echo_n "checking for tgetent in -lncurses... " >&6; }
22188 if ${ac_cv_lib_ncurses_tgetent+:} false; then :
22189 $as_echo_n "(cached) " >&6
22191 ac_check_lib_save_LIBS=$LIBS
22192 LIBS="-lncurses $LIBS"
22193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22194 /* end confdefs.h. */
22196 /* Override any GCC internal prototype to avoid an error.
22197 Use char because int might match the return type of a GCC
22198 builtin and then its argument prototype would still apply. */
22211 if ac_fn_c_try_link "$LINENO"; then :
22212 ac_cv_lib_ncurses_tgetent=yes
22214 ac_cv_lib_ncurses_tgetent=no
22216 rm -f core conftest.err conftest.$ac_objext \
22217 conftest$ac_exeext conftest.$ac_ext
22218 LIBS=$ac_check_lib_save_LIBS
22220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_tgetent" >&5
22221 $as_echo "$ac_cv_lib_ncurses_tgetent" >&6; }
22222 if test "x$ac_cv_lib_ncurses_tgetent" = xyes; then :
22223 TERM_LIB="-lncurses"
22226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltermcap" >&5
22227 $as_echo_n "checking for tgetent in -ltermcap... " >&6; }
22228 if ${ac_cv_lib_termcap_tgetent+:} false; then :
22229 $as_echo_n "(cached) " >&6
22231 ac_check_lib_save_LIBS=$LIBS
22232 LIBS="-ltermcap $LIBS"
22233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22234 /* end confdefs.h. */
22236 /* Override any GCC internal prototype to avoid an error.
22237 Use char because int might match the return type of a GCC
22238 builtin and then its argument prototype would still apply. */
22251 if ac_fn_c_try_link "$LINENO"; then :
22252 ac_cv_lib_termcap_tgetent=yes
22254 ac_cv_lib_termcap_tgetent=no
22256 rm -f core conftest.err conftest.$ac_objext \
22257 conftest$ac_exeext conftest.$ac_ext
22258 LIBS=$ac_check_lib_save_LIBS
22260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_termcap_tgetent" >&5
22261 $as_echo "$ac_cv_lib_termcap_tgetent" >&6; }
22262 if test "x$ac_cv_lib_termcap_tgetent" = xyes; then :
22263 TERM_LIB="-ltermcap"
22274 for ac_header in curses.h
22276 ac_fn_c_check_header_mongrel "$LINENO" "curses.h" "ac_cv_header_curses_h" "$ac_includes_default"
22277 if test "x$ac_cv_header_curses_h" = xyes; then :
22278 cat >>confdefs.h <<_ACEOF
22279 #define HAVE_CURSES_H 1
22286 ac_fn_c_check_header_mongrel "$LINENO" "term.h" "ac_cv_header_term_h" "$ac_includes_default"
22287 if test "x$ac_cv_header_term_h" = xyes; then :
22288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lcurses" >&5
22289 $as_echo_n "checking for tgetent in -lcurses... " >&6; }
22290 if ${ac_cv_lib_curses_tgetent+:} false; then :
22291 $as_echo_n "(cached) " >&6
22293 ac_check_lib_save_LIBS=$LIBS
22294 LIBS="-lcurses $LIBS"
22295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22296 /* end confdefs.h. */
22298 /* Override any GCC internal prototype to avoid an error.
22299 Use char because int might match the return type of a GCC
22300 builtin and then its argument prototype would still apply. */
22313 if ac_fn_c_try_link "$LINENO"; then :
22314 ac_cv_lib_curses_tgetent=yes
22316 ac_cv_lib_curses_tgetent=no
22318 rm -f core conftest.err conftest.$ac_objext \
22319 conftest$ac_exeext conftest.$ac_ext
22320 LIBS=$ac_check_lib_save_LIBS
22322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_tgetent" >&5
22323 $as_echo "$ac_cv_lib_curses_tgetent" >&6; }
22324 if test "x$ac_cv_lib_curses_tgetent" = xyes; then :
22325 TERM_LIB="-lcurses"
22339 if test x$support_conio = xyes; then
22340 if test x$TERM_LIB != x; then
22341 CONS_LIBS=$TERM_LIB
22345 support_readline=no
22347 $as_echo "#define HAVE_CONIO 1" >>confdefs.h
22350 echo " "; echo "Required libraries not found. CONIO turned off ..."; echo " "
22355 # Check whether --enable-readline was given.
22356 if test "${enable_readline+set}" = set; then :
22357 enableval=$enable_readline;
22358 if test x$enableval = xno; then
22359 support_readline=no
22368 if test x$support_readline = xyes; then
22370 # Check whether --with-readline was given.
22371 if test "${with_readline+set}" = set; then :
22372 withval=$with_readline;
22373 case "$with_readline" in
22378 if test -f ${with_readline}/readline.h; then
22379 CONS_INC="-I${with_readline}"
22380 CONS_LDFLAGS="-L$with_readline"
22381 elif test -f ${with_readline}/include/readline/readline.h; then
22382 CONS_INC="-I${with_readline}/include/readline"
22383 CONS_LDFLAGS="-L${with_readline}/lib"
22384 with_readline="${with_readline}/include/readline"
22386 with_readline="/usr/include/readline"
22389 as_ac_Header=`$as_echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
22390 ac_fn_c_check_header_mongrel "$LINENO" "${with_readline}/readline.h" "$as_ac_Header" "$ac_includes_default"
22391 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22394 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
22396 CONS_LIBS="-lreadline -lhistory ${TERM_LIB}"
22402 echo "readline.h not found. readline turned off ..."
22414 ac_fn_c_check_header_mongrel "$LINENO" "/usr/include/readline/readline.h" "ac_cv_header__usr_include_readline_readline_h" "$ac_includes_default"
22415 if test "x$ac_cv_header__usr_include_readline_readline_h" = xyes; then :
22418 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
22421 CONS_INC="-I/usr/include/readline"
22422 CONS_LIBS="-lreadline ${TERM_LIB}"
22426 as_ac_Header=`$as_echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
22427 ac_fn_c_check_header_mongrel "$LINENO" "${TOP_DIR}/depkgs/readline/readline.h" "$as_ac_Header" "$ac_includes_default"
22428 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22431 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
22434 CONS_INC="-I${TOP_DIR}/depkgs/readline"
22435 CONS_LIBS="-lreadline -lhistory ${TERM_LIB}"
22436 CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
22437 PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
22442 echo "readline.h not found. readline turned off ..."
22469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
22470 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
22471 if ${ac_cv_header_stat_broken+:} false; then :
22472 $as_echo_n "(cached) " >&6
22474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22475 /* end confdefs.h. */
22476 #include <sys/types.h>
22477 #include <sys/stat.h>
22479 #if defined S_ISBLK && defined S_IFDIR
22480 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
22483 #if defined S_ISBLK && defined S_IFCHR
22484 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
22487 #if defined S_ISLNK && defined S_IFREG
22488 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
22491 #if defined S_ISSOCK && defined S_IFREG
22492 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
22496 if ac_fn_c_try_compile "$LINENO"; then :
22497 ac_cv_header_stat_broken=no
22499 ac_cv_header_stat_broken=yes
22501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
22504 $as_echo "$ac_cv_header_stat_broken" >&6; }
22505 if test $ac_cv_header_stat_broken = yes; then
22507 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
22511 ac_header_dirent=no
22512 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
22513 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
22514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
22515 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
22516 if eval \${$as_ac_Header+:} false; then :
22517 $as_echo_n "(cached) " >&6
22519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22520 /* end confdefs.h. */
22521 #include <sys/types.h>
22533 if ac_fn_c_try_compile "$LINENO"; then :
22534 eval "$as_ac_Header=yes"
22536 eval "$as_ac_Header=no"
22538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22540 eval ac_res=\$$as_ac_Header
22541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
22542 $as_echo "$ac_res" >&6; }
22543 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22544 cat >>confdefs.h <<_ACEOF
22545 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
22548 ac_header_dirent=$ac_hdr; break
22552 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
22553 if test $ac_header_dirent = dirent.h; then
22554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
22555 $as_echo_n "checking for library containing opendir... " >&6; }
22556 if ${ac_cv_search_opendir+:} false; then :
22557 $as_echo_n "(cached) " >&6
22559 ac_func_search_save_LIBS=$LIBS
22560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22561 /* end confdefs.h. */
22563 /* Override any GCC internal prototype to avoid an error.
22564 Use char because int might match the return type of a GCC
22565 builtin and then its argument prototype would still apply. */
22578 for ac_lib in '' dir; do
22579 if test -z "$ac_lib"; then
22580 ac_res="none required"
22583 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22585 if ac_fn_c_try_link "$LINENO"; then :
22586 ac_cv_search_opendir=$ac_res
22588 rm -f core conftest.err conftest.$ac_objext \
22590 if ${ac_cv_search_opendir+:} false; then :
22594 if ${ac_cv_search_opendir+:} false; then :
22597 ac_cv_search_opendir=no
22599 rm conftest.$ac_ext
22600 LIBS=$ac_func_search_save_LIBS
22602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
22603 $as_echo "$ac_cv_search_opendir" >&6; }
22604 ac_res=$ac_cv_search_opendir
22605 if test "$ac_res" != no; then :
22606 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
22612 $as_echo_n "checking for library containing opendir... " >&6; }
22613 if ${ac_cv_search_opendir+:} false; then :
22614 $as_echo_n "(cached) " >&6
22616 ac_func_search_save_LIBS=$LIBS
22617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22618 /* end confdefs.h. */
22620 /* Override any GCC internal prototype to avoid an error.
22621 Use char because int might match the return type of a GCC
22622 builtin and then its argument prototype would still apply. */
22635 for ac_lib in '' x; do
22636 if test -z "$ac_lib"; then
22637 ac_res="none required"
22640 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22642 if ac_fn_c_try_link "$LINENO"; then :
22643 ac_cv_search_opendir=$ac_res
22645 rm -f core conftest.err conftest.$ac_objext \
22647 if ${ac_cv_search_opendir+:} false; then :
22651 if ${ac_cv_search_opendir+:} false; then :
22654 ac_cv_search_opendir=no
22656 rm conftest.$ac_ext
22657 LIBS=$ac_func_search_save_LIBS
22659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
22660 $as_echo "$ac_cv_search_opendir" >&6; }
22661 ac_res=$ac_cv_search_opendir
22662 if test "$ac_res" != no; then :
22663 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22669 for ac_func in strcasecmp select setenv putenv tcgetattr
22671 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22672 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22673 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22674 cat >>confdefs.h <<_ACEOF
22675 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22681 for ac_func in lstat lchown lchmod futimes fchmod fchown lutimes
22683 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22684 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22685 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22686 cat >>confdefs.h <<_ACEOF
22687 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22693 for ac_func in nanosleep nl_langinfo
22695 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22696 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22697 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22698 cat >>confdefs.h <<_ACEOF
22699 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22705 for ac_func in be64toh htobe64
22707 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22708 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22709 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22710 cat >>confdefs.h <<_ACEOF
22711 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22717 for ac_header in varargs.h
22719 ac_fn_c_check_header_mongrel "$LINENO" "varargs.h" "ac_cv_header_varargs_h" "$ac_includes_default"
22720 if test "x$ac_cv_header_varargs_h" = xyes; then :
22721 cat >>confdefs.h <<_ACEOF
22722 #define HAVE_VARARGS_H 1
22731 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
22732 if test "x$ac_cv_func_socket" = xyes; then :
22733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using libc's socket" >&5
22734 $as_echo "using libc's socket" >&6; }
22736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lxnet" >&5
22737 $as_echo_n "checking for socket in -lxnet... " >&6; }
22738 if ${ac_cv_lib_xnet_socket+:} false; then :
22739 $as_echo_n "(cached) " >&6
22741 ac_check_lib_save_LIBS=$LIBS
22742 LIBS="-lxnet $LIBS"
22743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22744 /* end confdefs.h. */
22746 /* Override any GCC internal prototype to avoid an error.
22747 Use char because int might match the return type of a GCC
22748 builtin and then its argument prototype would still apply. */
22761 if ac_fn_c_try_link "$LINENO"; then :
22762 ac_cv_lib_xnet_socket=yes
22764 ac_cv_lib_xnet_socket=no
22766 rm -f core conftest.err conftest.$ac_objext \
22767 conftest$ac_exeext conftest.$ac_ext
22768 LIBS=$ac_check_lib_save_LIBS
22770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xnet_socket" >&5
22771 $as_echo "$ac_cv_lib_xnet_socket" >&6; }
22772 if test "x$ac_cv_lib_xnet_socket" = xyes; then :
22773 cat >>confdefs.h <<_ACEOF
22774 #define HAVE_LIBXNET 1
22777 LIBS="-lxnet $LIBS"
22781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
22782 $as_echo_n "checking for socket in -lsocket... " >&6; }
22783 if ${ac_cv_lib_socket_socket+:} false; then :
22784 $as_echo_n "(cached) " >&6
22786 ac_check_lib_save_LIBS=$LIBS
22787 LIBS="-lsocket $LIBS"
22788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22789 /* end confdefs.h. */
22791 /* Override any GCC internal prototype to avoid an error.
22792 Use char because int might match the return type of a GCC
22793 builtin and then its argument prototype would still apply. */
22806 if ac_fn_c_try_link "$LINENO"; then :
22807 ac_cv_lib_socket_socket=yes
22809 ac_cv_lib_socket_socket=no
22811 rm -f core conftest.err conftest.$ac_objext \
22812 conftest$ac_exeext conftest.$ac_ext
22813 LIBS=$ac_check_lib_save_LIBS
22815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
22816 $as_echo "$ac_cv_lib_socket_socket" >&6; }
22817 if test "x$ac_cv_lib_socket_socket" = xyes; then :
22818 cat >>confdefs.h <<_ACEOF
22819 #define HAVE_LIBSOCKET 1
22822 LIBS="-lsocket $LIBS"
22826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -linet" >&5
22827 $as_echo_n "checking for socket in -linet... " >&6; }
22828 if ${ac_cv_lib_inet_socket+:} false; then :
22829 $as_echo_n "(cached) " >&6
22831 ac_check_lib_save_LIBS=$LIBS
22832 LIBS="-linet $LIBS"
22833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22834 /* end confdefs.h. */
22836 /* Override any GCC internal prototype to avoid an error.
22837 Use char because int might match the return type of a GCC
22838 builtin and then its argument prototype would still apply. */
22851 if ac_fn_c_try_link "$LINENO"; then :
22852 ac_cv_lib_inet_socket=yes
22854 ac_cv_lib_inet_socket=no
22856 rm -f core conftest.err conftest.$ac_objext \
22857 conftest$ac_exeext conftest.$ac_ext
22858 LIBS=$ac_check_lib_save_LIBS
22860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_inet_socket" >&5
22861 $as_echo "$ac_cv_lib_inet_socket" >&6; }
22862 if test "x$ac_cv_lib_inet_socket" = xyes; then :
22863 cat >>confdefs.h <<_ACEOF
22864 #define HAVE_LIBINET 1
22867 LIBS="-linet $LIBS"
22877 # Check whether --with-tcp-wrappers was given.
22878 if test "${with_tcp_wrappers+set}" = set; then :
22879 withval=$with_tcp_wrappers;
22880 if test "x$withval" != "xno" ; then
22882 LIBS="$saved_LIBS -lwrap"
22883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nanosleep" >&5
22884 $as_echo_n "checking for library containing nanosleep... " >&6; }
22885 if ${ac_cv_search_nanosleep+:} false; then :
22886 $as_echo_n "(cached) " >&6
22888 ac_func_search_save_LIBS=$LIBS
22889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22890 /* end confdefs.h. */
22892 /* Override any GCC internal prototype to avoid an error.
22893 Use char because int might match the return type of a GCC
22894 builtin and then its argument prototype would still apply. */
22902 return nanosleep ();
22907 for ac_lib in '' rt; do
22908 if test -z "$ac_lib"; then
22909 ac_res="none required"
22912 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22914 if ac_fn_c_try_link "$LINENO"; then :
22915 ac_cv_search_nanosleep=$ac_res
22917 rm -f core conftest.err conftest.$ac_objext \
22919 if ${ac_cv_search_nanosleep+:} false; then :
22923 if ${ac_cv_search_nanosleep+:} false; then :
22926 ac_cv_search_nanosleep=no
22928 rm conftest.$ac_ext
22929 LIBS=$ac_func_search_save_LIBS
22931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nanosleep" >&5
22932 $as_echo "$ac_cv_search_nanosleep" >&6; }
22933 ac_res=$ac_cv_search_nanosleep
22934 if test "$ac_res" != no; then :
22935 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libwrap" >&5
22940 $as_echo_n "checking for libwrap... " >&6; }
22941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22942 /* end confdefs.h. */
22944 #include <sys/types.h>
22946 int deny_severity = 0;
22947 int allow_severity = 0;
22948 struct request_info *req;
22960 if ac_fn_c_try_link "$LINENO"; then :
22962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22963 $as_echo "yes" >&6; }
22965 $as_echo "#define HAVE_LIBWRAP 1" >>confdefs.h
22973 LIBS="$saved_LIBS -lwrap -lnsl"
22974 WRAPLIBS="$saved_LIBS -lwrap -lnsl"
22975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22976 /* end confdefs.h. */
22978 #include <sys/types.h>
22980 int deny_severity = 0;
22981 int allow_severity = 0;
22982 struct request_info *req;
22994 if ac_fn_c_try_link "$LINENO"; then :
22996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22997 $as_echo "yes" >&6; }
22999 $as_echo "#define HAVE_LIBWRAP 1" >>confdefs.h
23007 as_fn_error $? "*** libwrap missing" "$LINENO" 5
23011 rm -f core conftest.err conftest.$ac_objext \
23012 conftest$ac_exeext conftest.$ac_ext
23016 rm -f core conftest.err conftest.$ac_objext \
23017 conftest$ac_exeext conftest.$ac_ext
23024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL" >&5
23025 $as_echo_n "checking for OpenSSL... " >&6; }
23027 # Check whether --with-openssl was given.
23028 if test "${with_openssl+set}" = set; then :
23029 withval=$with_openssl;
23030 with_openssl_directory=${withval}
23036 if test "x$with_openssl_directory" != "xno"; then
23037 OPENSSL_LIBS="-lssl -lcrypto"
23040 if test "x$with_openssl_directory" != "xyes" && test x"${with_openssl_directory}" != "x"; then
23042 # Make sure the $with_openssl_directory also makes sense
23044 if test -d "$with_openssl_directory/lib" -a -d "$with_openssl_directory/include"; then
23045 OPENSSL_LIBS="-L$with_openssl_directory/lib $OPENSSL_LIBS"
23046 OPENSSL_INC="-I$with_openssl_directory/include $OPENSSL_INC"
23050 saved_LIBS="${LIBS}"
23051 saved_CFLAGS="${CFLAGS}"
23052 LIBS="${saved_LIBS} ${OPENSSL_LIBS}"
23053 CFLAGS="${saved_CFLAGS} ${OPENSSL_INC}"
23055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23056 /* end confdefs.h. */
23058 #include <openssl/ssl.h>
23064 CRYPTO_set_id_callback(NULL);
23070 if ac_fn_c_try_link "$LINENO"; then :
23073 support_crypto="yes"
23078 support_crypto="no"
23082 rm -f core conftest.err conftest.$ac_objext \
23083 conftest$ac_exeext conftest.$ac_ext
23085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23086 /* end confdefs.h. */
23088 #include <openssl/evp.h>
23100 if ac_fn_c_try_link "$LINENO"; then :
23102 ac_cv_openssl_sha2="yes"
23106 ac_cv_openssl_sha2="no"
23110 rm -f core conftest.err conftest.$ac_objext \
23111 conftest$ac_exeext conftest.$ac_ext
23113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23114 /* end confdefs.h. */
23116 #include <openssl/evp.h>
23128 if ac_fn_c_try_link "$LINENO"; then :
23130 ac_cv_openssl_export="no"
23134 ac_cv_openssl_export="yes"
23138 rm -f core conftest.err conftest.$ac_objext \
23139 conftest$ac_exeext conftest.$ac_ext
23141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $support_tls" >&5
23142 $as_echo "$support_tls" >&6; }
23143 if test "$support_tls" = "yes"; then
23145 $as_echo "#define HAVE_OPENSSL 1" >>confdefs.h
23148 $as_echo "#define HAVE_TLS 1" >>confdefs.h
23151 $as_echo "#define HAVE_CRYPTO 1" >>confdefs.h
23155 if test "$ac_cv_openssl_sha2" = "yes"; then
23157 $as_echo "#define HAVE_SHA2 1" >>confdefs.h
23161 if test "$ac_cv_openssl_export" = "yes"; then
23163 $as_echo "#define HAVE_OPENSSL_EXPORT_LIBRARY 1" >>confdefs.h
23167 if test "$support_crypto" = "yes"; then
23168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVP_PKEY_encrypt_old in -lcrypto" >&5
23169 $as_echo_n "checking for EVP_PKEY_encrypt_old in -lcrypto... " >&6; }
23170 if ${ac_cv_lib_crypto_EVP_PKEY_encrypt_old+:} false; then :
23171 $as_echo_n "(cached) " >&6
23173 ac_check_lib_save_LIBS=$LIBS
23174 LIBS="-lcrypto $LIBS"
23175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23176 /* end confdefs.h. */
23178 /* Override any GCC internal prototype to avoid an error.
23179 Use char because int might match the return type of a GCC
23180 builtin and then its argument prototype would still apply. */
23184 char EVP_PKEY_encrypt_old ();
23188 return EVP_PKEY_encrypt_old ();
23193 if ac_fn_c_try_link "$LINENO"; then :
23194 ac_cv_lib_crypto_EVP_PKEY_encrypt_old=yes
23196 ac_cv_lib_crypto_EVP_PKEY_encrypt_old=no
23198 rm -f core conftest.err conftest.$ac_objext \
23199 conftest$ac_exeext conftest.$ac_ext
23200 LIBS=$ac_check_lib_save_LIBS
23202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_EVP_PKEY_encrypt_old" >&5
23203 $as_echo "$ac_cv_lib_crypto_EVP_PKEY_encrypt_old" >&6; }
23204 if test "x$ac_cv_lib_crypto_EVP_PKEY_encrypt_old" = xyes; then :
23206 $as_echo "#define HAVE_OPENSSLv1 1" >>confdefs.h
23212 LIBS="${saved_LIBS}"
23213 CFLAGS="${saved_CFLAGS}"
23216 support_crypto="no"
23217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $support_tls" >&5
23218 $as_echo "$support_tls" >&6; }
23221 if test "$support_tls" = "no" -o "$support_crypto" = "no"; then
23229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
23230 $as_echo_n "checking for library containing dlopen... " >&6; }
23231 if ${ac_cv_search_dlopen+:} false; then :
23232 $as_echo_n "(cached) " >&6
23234 ac_func_search_save_LIBS=$LIBS
23235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23236 /* end confdefs.h. */
23238 /* Override any GCC internal prototype to avoid an error.
23239 Use char because int might match the return type of a GCC
23240 builtin and then its argument prototype would still apply. */
23253 for ac_lib in '' dl; do
23254 if test -z "$ac_lib"; then
23255 ac_res="none required"
23258 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
23260 if ac_fn_c_try_link "$LINENO"; then :
23261 ac_cv_search_dlopen=$ac_res
23263 rm -f core conftest.err conftest.$ac_objext \
23265 if ${ac_cv_search_dlopen+:} false; then :
23269 if ${ac_cv_search_dlopen+:} false; then :
23272 ac_cv_search_dlopen=no
23274 rm conftest.$ac_ext
23275 LIBS=$ac_func_search_save_LIBS
23277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
23278 $as_echo "$ac_cv_search_dlopen" >&6; }
23279 ac_res=$ac_cv_search_dlopen
23280 if test "$ac_res" != no; then :
23281 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23286 working_dir=`eval echo /opt/bacula/working`
23288 # Check whether --with-working-dir was given.
23289 if test "${with_working_dir+set}" = set; then :
23290 withval=$with_working_dir;
23291 if test "x$withval" != "xno" ; then
23292 working_dir=$withval
23303 # Check whether --with-archivedir was given.
23304 if test "${with_archivedir+set}" = set; then :
23305 withval=$with_archivedir;
23306 if test "x$withval" != "xno" ; then
23307 archivedir=$withval
23316 basename=`hostname`
23318 # Check whether --with-basename was given.
23319 if test "${with_basename+set}" = set; then :
23320 withval=$with_basename;
23321 if test "x$withval" != "xno" ; then
23331 hostname=`uname -n | cut -d '.' -f 1`
23332 if test x${hostname} = x ; then
23333 hostname="localhost"
23335 ping -c 1 $hostname 2>/dev/null 1>/dev/null
23336 if test ! $? = 0; then
23337 hostname="localhost"
23340 # Check whether --with-hostname was given.
23341 if test "${with_hostname+set}" = set; then :
23342 withval=$with_hostname;
23343 if test "x$withval" != "xno" ; then
23354 scriptdir=`eval echo ${sysconfdir}`
23356 # Check whether --with-scriptdir was given.
23357 if test "${with_scriptdir+set}" = set; then :
23358 withval=$with_scriptdir;
23359 if test "x$withval" != "xno" ; then
23370 bsrdir=`eval echo /opt/bacula/bsr`
23372 # Check whether --with-bsrdir was given.
23373 if test "${with_bsrdir+set}" = set; then :
23374 withval=$with_bsrdir;
23375 if test "x$withval" != "xno" ; then
23385 logdir=`eval echo /opt/bacula/log`
23387 # Check whether --with-logdir was given.
23388 if test "${with_logdir+set}" = set; then :
23389 withval=$with_logdir;
23390 if test "x$withval" != "xno" ; then
23401 # ------------------------------------------
23402 # Where to place plugindir (plugin files)
23403 # ------------------------------------------
23404 plugindir=`eval echo ${libdir}`
23406 # Check whether --with-plugindir was given.
23407 if test "${with_plugindir+set}" = set; then :
23408 withval=$with_plugindir;
23409 if test "x$withval" != "xno" ; then
23420 dump_email=root@localhost
23422 # Check whether --with-dump-email was given.
23423 if test "${with_dump_email+set}" = set; then :
23424 withval=$with_dump_email;
23425 if test "x$withval" != "xno" ; then
23426 dump_email=$withval
23435 job_email=root@localhost
23437 # Check whether --with-job-email was given.
23438 if test "${with_job_email+set}" = set; then :
23439 withval=$with_job_email;
23440 if test "x$withval" != "xno" ; then
23450 smtp_host=localhost
23452 # Check whether --with-smtp_host was given.
23453 if test "${with_smtp_host+set}" = set; then :
23454 withval=$with_smtp_host;
23455 if test "x$withval" != "xno" ; then
23467 # Check whether --with-pid-dir was given.
23468 if test "${with_pid_dir+set}" = set; then :
23469 withval=$with_pid_dir;
23470 if test "x$withval" != "xno" ; then
23478 cat >>confdefs.h <<_ACEOF
23479 #define _PATH_BACULA_PIDDIR "$piddir"
23484 subsysdir=/var/run/subsys
23485 if test -d /var/run/subsys; then
23486 subsysdir=/var/run/subsys
23487 elif test -d /var/lock/subsys; then
23488 subsysdir=/var/lock/subsys
23490 subsysdir=/var/run/subsys
23493 # Check whether --with-subsys-dir was given.
23494 if test "${with_subsys_dir+set}" = set; then :
23495 withval=$with_subsys_dir;
23496 if test "x$withval" != "xno" ; then
23508 # Check whether --with-baseport was given.
23509 if test "${with_baseport+set}" = set; then :
23510 withval=$with_baseport;
23511 if test "x$withval" != "xno" ; then
23520 dir_port=`expr $baseport`
23521 fd_port=`expr $baseport + 1`
23522 sd_port=`expr $fd_port + 1`
23530 # Check whether --with-dir-password was given.
23531 if test "${with_dir_password+set}" = set; then :
23532 withval=$with_dir_password;
23533 if test "x$withval" != "xno" ; then
23534 dir_password=$withval
23541 if test "x$dir_password" = "x" ; then
23542 if test "x$OPENSSL" = "xnone" ; then
23543 key=`autoconf/randpass 33`
23545 key=`openssl rand -base64 33`
23552 # Check whether --with-fd-password was given.
23553 if test "${with_fd_password+set}" = set; then :
23554 withval=$with_fd_password;
23555 if test "x$withval" != "xno" ; then
23556 fd_password=$withval
23563 if test "x$fd_password" = "x" ; then
23564 if test "x$OPENSSL" = "xnone" ; then
23565 key=`autoconf/randpass 37`
23567 key=`openssl rand -base64 33`
23574 # Check whether --with-sd-password was given.
23575 if test "${with_sd_password+set}" = set; then :
23576 withval=$with_sd_password;
23577 if test "x$withval" != "xno" ; then
23578 sd_password=$withval
23585 if test "x$sd_password" = "x" ; then
23586 if test "x$OPENSSL" = "xnone" ; then
23587 key=`autoconf/randpass 41`
23589 key=`openssl rand -base64 33`
23596 # Check whether --with-mon-dir-password was given.
23597 if test "${with_mon_dir_password+set}" = set; then :
23598 withval=$with_mon_dir_password;
23599 if test "x$withval" != "xno" ; then
23600 mon_dir_password=$withval
23607 if test "x$mon_dir_password" = "x" ; then
23608 if test "x$OPENSSL" = "xnone" ; then
23609 key=`autoconf/randpass 33`
23611 key=`openssl rand -base64 33`
23613 mon_dir_password=$key
23618 # Check whether --with-mon-fd-password was given.
23619 if test "${with_mon_fd_password+set}" = set; then :
23620 withval=$with_mon_fd_password;
23621 if test "x$withval" != "xno" ; then
23622 mon_fd_password=$withval
23629 if test "x$mon_fd_password" = "x" ; then
23630 if test "x$OPENSSL" = "xnone" ; then
23631 key=`autoconf/randpass 37`
23633 key=`openssl rand -base64 33`
23635 mon_fd_password=$key
23640 # Check whether --with-mon-sd-password was given.
23641 if test "${with_mon_sd_password+set}" = set; then :
23642 withval=$with_mon_sd_password;
23643 if test "x$withval" != "xno" ; then
23644 mon_sd_password=$withval
23651 if test "x$mon_sd_password" = "x" ; then
23652 if test "x$OPENSSL" = "xnone" ; then
23653 key=`autoconf/randpass 41`
23655 key=`openssl rand -base64 33`
23657 mon_sd_password=$key
23669 # Check whether --with-db_name was given.
23670 if test "${with_db_name+set}" = set; then :
23671 withval=$with_db_name;
23672 if test "x$withval" != "x" ; then
23683 # Check whether --with-db_user was given.
23684 if test "${with_db_user+set}" = set; then :
23685 withval=$with_db_user;
23686 if test "x$withval" != "x" ; then
23697 # Check whether --with-db_password was given.
23698 if test "${with_db_password+set}" = set; then :
23699 withval=$with_db_password;
23700 if test "x$withval" != "x" ; then
23701 db_password=$withval
23711 # Check whether --with-db_port was given.
23712 if test "${with_db_port+set}" = set; then :
23713 withval=$with_db_port;
23714 if test "x$withval" != "x" ; then
23725 # Check whether --with-db_ssl_options was given.
23726 if test "${with_db_ssl_options+set}" = set; then :
23727 withval=$with_db_ssl_options;
23728 if test "x$withval" != "x" ; then
23729 db_ssl_options=$withval
23738 # Handle users and groups for each daemon
23742 # Check whether --with-dir_user was given.
23743 if test "${with_dir_user+set}" = set; then :
23744 withval=$with_dir_user;
23745 if test "x$withval" != "x" ; then
23755 # Check whether --with-dir_group was given.
23756 if test "${with_dir_group+set}" = set; then :
23757 withval=$with_dir_group;
23758 if test "x$withval" != "x" ; then
23768 # Check whether --with-sd_user was given.
23769 if test "${with_sd_user+set}" = set; then :
23770 withval=$with_sd_user;
23771 if test "x$withval" != "x" ; then
23781 # Check whether --with-sd_group was given.
23782 if test "${with_sd_group+set}" = set; then :
23783 withval=$with_sd_group;
23784 if test "x$withval" != "x" ; then
23794 # Check whether --with-fd_user was given.
23795 if test "${with_fd_user+set}" = set; then :
23796 withval=$with_fd_user;
23797 if test "x$withval" != "x" ; then
23807 # Check whether --with-fd_group was given.
23808 if test "${with_fd_group+set}" = set; then :
23809 withval=$with_fd_group;
23810 if test "x$withval" != "x" ; then
23827 # Check whether --with-sbin-perm was given.
23828 if test "${with_sbin_perm+set}" = set; then :
23829 withval=$with_sbin_perm;
23830 if test "x$withval" != "x" ; then
23840 support_batch_insert=yes
23841 # Check whether --enable-batch-insert was given.
23842 if test "${enable_batch_insert+set}" = set; then :
23843 enableval=$enable_batch_insert;
23844 if test x$enableval = xno; then
23845 support_batch_insert=no
23852 if test x$support_batch_insert = xyes; then
23854 $as_echo "#define USE_BATCH_FILE_INSERT 1" >>confdefs.h
23862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PostgreSQL support" >&5
23863 $as_echo_n "checking for PostgreSQL support... " >&6; }
23865 # Check whether --with-postgresql was given.
23866 if test "${with_postgresql+set}" = set; then :
23867 withval=$with_postgresql;
23868 if test "$withval" != "no"; then
23869 if test "$withval" = "yes"; then
23870 PG_CONFIG=`which pg_config 2>/dev/null`
23871 if test -n "$PG_CONFIG"; then
23872 POSTGRESQL_INCDIR=`"$PG_CONFIG" --includedir`
23873 POSTGRESQL_LIBDIR=`"$PG_CONFIG" --libdir`
23874 POSTGRESQL_BINDIR=`"$PG_CONFIG" --bindir`
23875 elif test -f /usr/local/include/libpq-fe.h; then
23876 POSTGRESQL_INCDIR=/usr/local/include
23877 if test -d /usr/local/lib64; then
23878 POSTGRESQL_LIBDIR=/usr/local/lib64
23880 POSTGRESQL_LIBDIR=/usr/local/lib
23882 POSTGRESQL_BINDIR=/usr/local/bin
23883 elif test -f /usr/include/libpq-fe.h; then
23884 POSTGRESQL_INCDIR=/usr/include
23885 if test -d /usr/lib64; then
23886 POSTGRESQL_LIBDIR=/usr/lib64
23888 POSTGRESQL_LIBDIR=/usr/lib
23890 POSTGRESQL_BINDIR=/usr/bin
23891 elif test -f /usr/include/pgsql/libpq-fe.h; then
23892 POSTGRESQL_INCDIR=/usr/include/pgsql
23893 if test -d /usr/lib64/pgsql; then
23894 POSTGRESQL_LIBDIR=/usr/lib64/pgsql
23896 POSTGRESQL_LIBDIR=/usr/lib/pgsql
23898 POSTGRESQL_BINDIR=/usr/bin
23899 elif test -f /usr/include/postgresql/libpq-fe.h; then
23900 POSTGRESQL_INCDIR=/usr/include/postgresql
23901 if test -d /usr/lib64/postgresql; then
23902 POSTGRESQL_LIBDIR=/usr/lib64/postgresql
23904 POSTGRESQL_LIBDIR=/usr/lib/postgresql
23906 POSTGRESQL_BINDIR=/usr/bin
23908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23909 $as_echo "no" >&6; }
23910 as_fn_error $? "Unable to find libpq-fe.h in standard locations" "$LINENO" 5
23912 elif test -f $withval/include/libpq-fe.h; then
23913 POSTGRESQL_INCDIR=$withval/include
23914 POSTGRESQL_LIBDIR=$withval/lib
23915 POSTGRESQL_BINDIR=$withval/bin
23916 elif test -f $withval/include/postgresql/libpq-fe.h; then
23917 POSTGRESQL_INCDIR=$withval/include/postgresql
23918 if test -d $withval/lib64; then
23919 POSTGRESQL_LIBDIR=$withval/lib64
23921 POSTGRESQL_LIBDIR=$withval/lib
23923 POSTGRESQL_BINDIR=$withval/bin
23925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23926 $as_echo "no" >&6; }
23927 as_fn_error $? "Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" "$LINENO" 5
23930 $as_echo "#define HAVE_POSTGRESQL 1" >>confdefs.h
23932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23933 $as_echo "yes" >&6; }
23935 POSTGRESQL_INCLUDE=-I$POSTGRESQL_INCDIR
23936 if test x$use_libtool != xno; then
23937 POSTGRESQL_LIBS="-R $POSTGRESQL_LIBDIR -L$POSTGRESQL_LIBDIR -lpq"
23939 POSTGRESQL_LIBS="-L$POSTGRESQL_LIBDIR -lpq"
23941 ac_fn_c_check_func "$LINENO" "crypt" "ac_cv_func_crypt"
23942 if test "x$ac_cv_func_crypt" = xyes; then :
23945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
23946 $as_echo_n "checking for crypt in -lcrypt... " >&6; }
23947 if ${ac_cv_lib_crypt_crypt+:} false; then :
23948 $as_echo_n "(cached) " >&6
23950 ac_check_lib_save_LIBS=$LIBS
23951 LIBS="-lcrypt $LIBS"
23952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23953 /* end confdefs.h. */
23955 /* Override any GCC internal prototype to avoid an error.
23956 Use char because int might match the return type of a GCC
23957 builtin and then its argument prototype would still apply. */
23970 if ac_fn_c_try_link "$LINENO"; then :
23971 ac_cv_lib_crypt_crypt=yes
23973 ac_cv_lib_crypt_crypt=no
23975 rm -f core conftest.err conftest.$ac_objext \
23976 conftest$ac_exeext conftest.$ac_ext
23977 LIBS=$ac_check_lib_save_LIBS
23979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
23980 $as_echo "$ac_cv_lib_crypt_crypt" >&6; }
23981 if test "x$ac_cv_lib_crypt_crypt" = xyes; then :
23982 POSTGRESQL_LIBS="$POSTGRESQL_LIBS -lcrypt"
23987 POSTGRESQL_LIB=$POSTGRESQL_LIBDIR/libpq.a
23988 DB_LIBS="${DB_LIBS} ${POSTGRESQL_LIBS}"
23990 if test -z "${db_backends}"; then
23991 db_backends="PostgreSQL"
23993 db_backends="${db_backends} PostgreSQL"
23995 if test -z "${DB_BACKENDS}"; then
23996 DB_BACKENDS="postgresql"
23998 DB_BACKENDS="${DB_BACKENDS} postgresql"
24001 if test "x$support_batch_insert" = "xyes"; then
24002 saved_LDFLAGS="${LDFLAGS}"
24003 LDFLAGS="${saved_LDFLAGS} -L$POSTGRESQL_LIBDIR"
24004 saved_LIBS="${LIBS}"
24005 if test "x$ac_cv_lib_crypt_crypt" = "xyes" ; then
24006 LIBS="${saved_LIBS} -lcrypt"
24009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQisthreadsafe in -lpq" >&5
24010 $as_echo_n "checking for PQisthreadsafe in -lpq... " >&6; }
24011 if ${ac_cv_lib_pq_PQisthreadsafe+:} false; then :
24012 $as_echo_n "(cached) " >&6
24014 ac_check_lib_save_LIBS=$LIBS
24016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24017 /* end confdefs.h. */
24019 /* Override any GCC internal prototype to avoid an error.
24020 Use char because int might match the return type of a GCC
24021 builtin and then its argument prototype would still apply. */
24025 char PQisthreadsafe ();
24029 return PQisthreadsafe ();
24034 if ac_fn_c_try_link "$LINENO"; then :
24035 ac_cv_lib_pq_PQisthreadsafe=yes
24037 ac_cv_lib_pq_PQisthreadsafe=no
24039 rm -f core conftest.err conftest.$ac_objext \
24040 conftest$ac_exeext conftest.$ac_ext
24041 LIBS=$ac_check_lib_save_LIBS
24043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQisthreadsafe" >&5
24044 $as_echo "$ac_cv_lib_pq_PQisthreadsafe" >&6; }
24045 if test "x$ac_cv_lib_pq_PQisthreadsafe" = xyes; then :
24047 $as_echo "#define HAVE_PQISTHREADSAFE 1" >>confdefs.h
24051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQputCopyData in -lpq" >&5
24052 $as_echo_n "checking for PQputCopyData in -lpq... " >&6; }
24053 if ${ac_cv_lib_pq_PQputCopyData+:} false; then :
24054 $as_echo_n "(cached) " >&6
24056 ac_check_lib_save_LIBS=$LIBS
24058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24059 /* end confdefs.h. */
24061 /* Override any GCC internal prototype to avoid an error.
24062 Use char because int might match the return type of a GCC
24063 builtin and then its argument prototype would still apply. */
24067 char PQputCopyData ();
24071 return PQputCopyData ();
24076 if ac_fn_c_try_link "$LINENO"; then :
24077 ac_cv_lib_pq_PQputCopyData=yes
24079 ac_cv_lib_pq_PQputCopyData=no
24081 rm -f core conftest.err conftest.$ac_objext \
24082 conftest$ac_exeext conftest.$ac_ext
24083 LIBS=$ac_check_lib_save_LIBS
24085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQputCopyData" >&5
24086 $as_echo "$ac_cv_lib_pq_PQputCopyData" >&6; }
24087 if test "x$ac_cv_lib_pq_PQputCopyData" = xyes; then :
24089 $as_echo "#define HAVE_PQ_COPY 1" >>confdefs.h
24093 if test "x$ac_cv_lib_pq_PQputCopyData" = "xyes"; then
24094 if test $support_batch_insert = yes ; then
24096 $as_echo "#define HAVE_POSTGRESQL_BATCH_FILE_INSERT 1" >>confdefs.h
24098 if test -z "${batch_insert_db_backends}"; then
24099 batch_insert_db_backends="PostgreSQL"
24101 batch_insert_db_backends="${batch_insert_db_backends} PostgreSQL"
24106 if test x$ac_cv_lib_pq_PQisthreadsafe != xyes -a x$support_batch_insert = xyes
24108 echo "WARNING: Your PostgreSQL client library is too old to detect "
24109 echo "if it was compiled with --enable-thread-safety, consider to "
24110 echo "upgrade it in order to avoid problems with Batch insert mode"
24113 LDFLAGS="${saved_LDFLAGS}"
24114 LIBS="${saved_LIBS}"
24117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24118 $as_echo "no" >&6; }
24123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24124 $as_echo "no" >&6; }
24135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MySQL support" >&5
24136 $as_echo_n "checking for MySQL support... " >&6; }
24138 # Check whether --with-mysql was given.
24139 if test "${with_mysql+set}" = set; then :
24140 withval=$with_mysql;
24142 if test "$withval" != "no"; then
24143 if test "$withval" = "yes"; then
24144 MYSQL_CONFIG=`which mysql_config 2>/dev/null`
24145 if test "x${MYSQL_CONFIG}" != x; then
24146 MYSQL_BINDIR="${MYSQL_CONFIG%/*}"
24147 ${MYSQL_CONFIG} --libs_r >/dev/null 2>&1
24148 if test $? = 0; then
24149 MYSQL_LIBDIR=`${MYSQL_CONFIG} --libs_r`
24150 MYSQL_INCDIR=`${MYSQL_CONFIG} --include`
24153 ${MYSQL_CONFIG} --variable=pkglibdir > /dev/null 2>&1
24154 if test $? = 0 ; then
24155 MYSQL_LIBDIR=`${MYSQL_CONFIG} --variable=pkglibdir`
24156 MYSQL_INCDIR=`${MYSQL_CONFIG} --variable=pkgincludedir`
24160 # if something wrong fall back to old method
24161 if test "x${MYSQL_LIBDIR}" = x -o "x${MYSQL_INCDIR}" = x ; then
24162 if test -f /usr/local/mysql/include/mysql/mysql.h; then
24163 MYSQL_INCDIR=/usr/local/mysql/include/mysql
24164 if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
24165 -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
24166 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
24168 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
24170 MYSQL_BINDIR=/usr/local/mysql/bin
24171 elif test -f /usr/include/mysql/mysql.h; then
24172 MYSQL_INCDIR=/usr/include/mysql
24173 if test -f /usr/lib64/mysql/libmysqlclient_r.a \
24174 -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
24175 MYSQL_LIBDIR=/usr/lib64/mysql
24176 elif test -f /usr/lib64/libmysqlclient_r.a \
24177 -o -f /usr/lib64/libmysqlclient_r.so; then
24178 MYSQL_LIBDIR=/usr/lib64
24179 elif test -f /usr/lib/x86_64-linux-gnu/libmysqlclient_r.a \
24180 -o -f /usr/lib/x86_64-linux-gnu/libmysqlclient_r.so; then
24181 MYSQL_LIBDIR=/usr/lib/x86_64-linux-gnu
24182 elif test -f /usr/lib/mysql/libmysqlclient_r.a \
24183 -o -f /usr/lib/mysql/libmysqlclient_r.so; then
24184 MYSQL_LIBDIR=/usr/lib/mysql
24186 MYSQL_LIBDIR=/usr/lib
24188 MYSQL_BINDIR=/usr/bin
24189 elif test -f /usr/include/mysql.h; then
24190 MYSQL_INCDIR=/usr/include
24191 if test -f /usr/lib64/libmysqlclient_r.a \
24192 -o -f /usr/lib64/libmysqlclient_r.so; then
24193 MYSQL_LIBDIR=/usr/lib64
24195 MYSQL_LIBDIR=/usr/lib
24197 MYSQL_BINDIR=/usr/bin
24198 elif test -f /usr/local/include/mysql/mysql.h; then
24199 MYSQL_INCDIR=/usr/local/include/mysql
24200 if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
24201 -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
24202 MYSQL_LIBDIR=/usr/local/lib64/mysql
24204 MYSQL_LIBDIR=/usr/local/lib/mysql
24206 MYSQL_BINDIR=/usr/local/bin
24207 elif test -f /usr/local/include/mysql.h; then
24208 MYSQL_INCDIR=/usr/local/include
24209 if test -f /usr/local/lib64/libmysqlclient_r.a \
24210 -o -f /usr/local/lib64/libmysqlclient_r.so; then
24211 MYSQL_LIBDIR=/usr/local/lib64
24213 MYSQL_LIBDIR=/usr/local/lib
24215 MYSQL_BINDIR=/usr/local/bin
24217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24218 $as_echo "no" >&6; }
24219 as_fn_error $? "Unable to find mysql.h in standard locations" "$LINENO" 5
24223 if test -f $withval/include/mysql/mysql.h; then
24224 MYSQL_INCDIR=$withval/include/mysql
24225 if test -f $withval/lib64/mysql/libmysqlclient_r.a \
24226 -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
24227 MYSQL_LIBDIR=$withval/lib64/mysql
24228 elif test -f $withval/lib64/libmysqlclient_r.a \
24229 -o -f $withval/lib64/libmysqlclient_r.so; then
24230 MYSQL_LIBDIR=$withval/lib64
24231 elif test -f $withval/lib/libmysqlclient_r.a \
24232 -o -f $withval/lib/libmysqlclient_r.so; then
24233 MYSQL_LIBDIR=$withval/lib
24235 MYSQL_LIBDIR=$withval/lib/mysql
24237 MYSQL_BINDIR=$withval/bin
24238 elif test -f $withval/include/mysql.h; then
24239 MYSQL_INCDIR=$withval/include
24240 if test -f $withval/lib64/libmysqlclient_r.a \
24241 -o -f $withval/lib64/libmysqlclient_r.so; then
24242 MYSQL_LIBDIR=$withval/lib64
24244 MYSQL_LIBDIR=$withval/lib
24246 MYSQL_BINDIR=$withval/bin
24247 elif test -f $withval/mysql.h; then
24248 MYSQL_INCDIR=$withval
24249 { $as_echo "$as_me:${as_lineno-$LINENO}: Got with-mysql variable $MYSQL_INCDIR checking MySQL version" >&5
24250 $as_echo "$as_me: Got with-mysql variable $MYSQL_INCDIR checking MySQL version" >&6;}
24251 case $MYSQL_INCDIR in
24253 { $as_echo "$as_me:${as_lineno-$LINENO}: Assuming MacPorts MySQL 5.5 variant installed" >&5
24254 $as_echo "$as_me: Assuming MacPorts MySQL 5.5 variant installed" >&6;}
24255 if test -f $prefix/lib/mysql55/mysql/libmysqlclient_r.a \
24256 -o -f $prefix/lib/mysql55/mysql/libmysqlclient_r.so; then
24257 { $as_echo "$as_me:${as_lineno-$LINENO}: Found MySQL 5.5 library in $prefix/lib/mysql55/mysql" >&5
24258 $as_echo "$as_me: Found MySQL 5.5 library in $prefix/lib/mysql55/mysql" >&6;}
24259 MYSQL_LIBDIR=$prefix/lib/mysql55/mysql
24261 MYSQL_BINDIR=$prefix/lib/mysql55/bin
24264 { $as_echo "$as_me:${as_lineno-$LINENO}: Assuming MacPorts MySQL 5.1 variant installed" >&5
24265 $as_echo "$as_me: Assuming MacPorts MySQL 5.1 variant installed" >&6;}
24266 if test -f $prefix/lib/mysql51/mysql/libmysqlclient_r.a \
24267 -o -f $prefix/lib/mysql51/mysql/libmysqlclient_r.so; then
24268 { $as_echo "$as_me:${as_lineno-$LINENO}: Found MySQL 5.1 library in $prefix/lib/mysql55/mysql" >&5
24269 $as_echo "$as_me: Found MySQL 5.1 library in $prefix/lib/mysql55/mysql" >&6;}
24270 MYSQL_LIBDIR=$prefix/lib/mysql51/mysql
24272 MYSQL_BINDIR=$prefix/lib/mysql51/bin
24275 if test -z "${MYSQL_LIBDIR}" ; then
24276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24277 $as_echo "no" >&6; }
24278 as_fn_error $? "MySQL $withval - unable to find MySQL libraries" "$LINENO" 5
24281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24282 $as_echo "no" >&6; }
24283 as_fn_error $? "Invalid MySQL directory $withval - unable to find mysql.h under $withval" "$LINENO" 5
24286 if test "x${MYSQL_LIBDIR}" != x; then
24287 MYSQL_INCLUDE=-I$MYSQL_INCDIR
24288 if test "x$HAVE_LIBSR" = "xyes"; then
24289 DB_LIBS="${DB_LIBS} ${MYSQL_LIBS}"
24290 MYSQL_LIBS="$MYSQL_LIBDIR"
24291 MYSQL_INCLUDE="$MYSQL_INCDIR"
24293 $as_echo "#define HAVE_MYSQL_THREAD_SAFE 1" >>confdefs.h
24295 if test -z "${batch_insert_db_backends}"; then
24296 batch_insert_db_backends="MySQL"
24298 batch_insert_db_backends="${batch_insert_db_backends} MySQL"
24300 elif test -f $MYSQL_LIBDIR/libmysqlclient_r.a \
24301 -o -f $MYSQL_LIBDIR/libmysqlclient_r.so; then
24302 if test x$use_libtool != xno; then
24303 MYSQL_LIBS="-R $MYSQL_LIBDIR -L$MYSQL_LIBDIR -lmysqlclient_r -lz"
24305 MYSQL_LIBS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
24307 DB_LIBS="${DB_LIBS} ${MYSQL_LIBS}"
24309 if test "x${MYSQL_LIBS}" = x; then
24310 MYSQL_LIBS=$MYSQL_LIBDIR/libmysqlclient_r.a
24314 $as_echo "#define HAVE_MYSQL 1" >>confdefs.h
24316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24317 $as_echo "yes" >&6; }
24319 if test -z "${db_backends}" ; then
24320 db_backends="MySQL"
24322 db_backends="${db_backends} MySQL"
24324 if test -z "${DB_BACKENDS}" ; then
24325 DB_BACKENDS="mysql"
24327 DB_BACKENDS="${DB_BACKENDS} mysql"
24330 if test "x$HAVE_LIBSR" = "xno"; then
24331 if test "x$support_batch_insert" = "xyes"; then
24332 saved_LDFLAGS="${LDFLAGS}"
24333 LDFLAGS="${saved_LDFLAGS} -L$MYSQL_LIBDIR"
24334 saved_LIBS="${LIBS}"
24335 LIBS="${saved_LIBS} -lz"
24337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql_thread_safe in -lmysqlclient_r" >&5
24338 $as_echo_n "checking for mysql_thread_safe in -lmysqlclient_r... " >&6; }
24339 if ${ac_cv_lib_mysqlclient_r_mysql_thread_safe+:} false; then :
24340 $as_echo_n "(cached) " >&6
24342 ac_check_lib_save_LIBS=$LIBS
24343 LIBS="-lmysqlclient_r $LIBS"
24344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24345 /* end confdefs.h. */
24347 /* Override any GCC internal prototype to avoid an error.
24348 Use char because int might match the return type of a GCC
24349 builtin and then its argument prototype would still apply. */
24353 char mysql_thread_safe ();
24357 return mysql_thread_safe ();
24362 if ac_fn_c_try_link "$LINENO"; then :
24363 ac_cv_lib_mysqlclient_r_mysql_thread_safe=yes
24365 ac_cv_lib_mysqlclient_r_mysql_thread_safe=no
24367 rm -f core conftest.err conftest.$ac_objext \
24368 conftest$ac_exeext conftest.$ac_ext
24369 LIBS=$ac_check_lib_save_LIBS
24371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mysqlclient_r_mysql_thread_safe" >&5
24372 $as_echo "$ac_cv_lib_mysqlclient_r_mysql_thread_safe" >&6; }
24373 if test "x$ac_cv_lib_mysqlclient_r_mysql_thread_safe" = xyes; then :
24375 $as_echo "#define HAVE_MYSQL_THREAD_SAFE 1" >>confdefs.h
24379 if test "x$ac_cv_lib_mysqlclient_r_mysql_thread_safe" = "xyes"; then
24380 if test -z "${batch_insert_db_backends}"; then
24381 batch_insert_db_backends="MySQL"
24383 batch_insert_db_backends="${batch_insert_db_backends} MySQL"
24387 LDFLAGS="${saved_LDFLAGS}"
24388 LIBS="${saved_LIBS}"
24392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24393 $as_echo "no" >&6; }
24399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24400 $as_echo "no" >&6; }
24405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MySQL embedded support" >&5
24406 $as_echo_n "checking for MySQL embedded support... " >&6; }
24408 # Check whether --with-embedded-mysql was given.
24409 if test "${with_embedded_mysql+set}" = set; then :
24410 withval=$with_embedded_mysql;
24411 if test "$withval" != "no"; then
24412 if test "$withval" = "yes"; then
24413 if test -f /usr/local/mysql/include/mysql/mysql.h; then
24414 MYSQL_INCDIR=/usr/local/mysql/include/mysql
24415 if test -d /usr/local/mysql/lib64/mysql; then
24416 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
24418 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
24420 MYSQL_BINDIR=/usr/local/mysql/bin
24421 elif test -f /usr/include/mysql/mysql.h; then
24422 MYSQL_INCDIR=/usr/include/mysql
24423 if test -d /usr/lib64/mysql; then
24424 MYSQL_LIBDIR=/usr/lib64/mysql
24426 MYSQL_LIBDIR=/usr/lib/mysql
24428 MYSQL_BINDIR=/usr/bin
24429 elif test -f /usr/include/mysql.h; then
24430 MYSQL_INCDIR=/usr/include
24431 if test -d /usr/lib64; then
24432 MYSQL_LIBDIR=/usr/lib64
24434 MYSQL_LIBDIR=/usr/lib
24436 MYSQL_BINDIR=/usr/bin
24437 elif test -f /usr/local/include/mysql/mysql.h; then
24438 MYSQL_INCDIR=/usr/local/include/mysql
24439 if test -d /usr/local/lib64/mysql; then
24440 MYSQL_LIBDIR=/usr/local/lib64/mysql
24442 MYSQL_LIBDIR=/usr/local/lib/mysql
24444 MYSQL_BINDIR=/usr/local/bin
24445 elif test -f /usr/local/include/mysql.h; then
24446 MYSQL_INCDIR=/usr/local/include
24447 if test -d /usr/local/lib64; then
24448 MYSQL_LIBDIR=/usr/local/lib64
24450 MYSQL_LIBDIR=/usr/local/lib
24452 MYSQL_BINDIR=/usr/local/bin
24454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24455 $as_echo "no" >&6; }
24456 as_fn_error $? "Unable to find mysql.h in standard locations" "$LINENO" 5
24459 if test -f $withval/include/mysql/mysql.h; then
24460 MYSQL_INCDIR=$withval/include/mysql
24461 if test -d $withval/lib64/mysql; then
24462 MYSQL_LIBDIR=$withval/lib64/mysql
24464 MYSQL_LIBDIR=$withval/lib/mysql
24466 MYSQL_BINDIR=$withval/bin
24467 elif test -f $withval/include/mysql.h; then
24468 MYSQL_INCDIR=$withval/include
24469 if test -d $withval/lib64; then
24470 MYSQL_LIBDIR=$withval/lib64
24472 MYSQL_LIBDIR=$withval/lib
24474 MYSQL_BINDIR=$withval/bin
24476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24477 $as_echo "no" >&6; }
24478 as_fn_error $? "Invalid MySQL directory $withval - unable to find mysql.h under $withval" "$LINENO" 5
24481 MYSQL_INCLUDE=-I$MYSQL_INCDIR
24482 if test x$use_libtool != xno; then
24483 MYSQL_LIBS="-R $MYSQL_LIBDIR -L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
24485 MYSQL_LIBS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
24487 MYSQL_LIB=$MYSQL_LIBDIR/libmysqld.a
24488 DB_LIBS="${DB_LIBS} ${MYSQL_LIBS}"
24491 $as_echo "#define HAVE_MYSQL 1" >>confdefs.h
24494 $as_echo "#define HAVE_EMBEDDED_MYSQL 1" >>confdefs.h
24496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24497 $as_echo "yes" >&6; }
24499 if test -z "${db_backends}"; then
24500 db_backends="MySQL"
24502 db_backends="${db_backends} MySQL"
24504 if test -z "${DB_BACKENDS}"; then
24505 DB_BACKENDS="mysql"
24507 DB_BACKENDS="${DB_BACKENDS} mysql"
24510 if test "x$support_batch_insert" = "xyes"; then
24511 saved_LDFLAGS="${LDFLAGS}"
24512 LDFLAGS="${saved_LDFLAGS} -L$MYSQL_LIBDIR"
24513 saved_LIBS="${LIBS}"
24514 LIBS="${saved_LIBS} -lz -lm -lcrypt"
24516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql_thread_safe in -lmysqlclient_r" >&5
24517 $as_echo_n "checking for mysql_thread_safe in -lmysqlclient_r... " >&6; }
24518 if ${ac_cv_lib_mysqlclient_r_mysql_thread_safe+:} false; then :
24519 $as_echo_n "(cached) " >&6
24521 ac_check_lib_save_LIBS=$LIBS
24522 LIBS="-lmysqlclient_r $LIBS"
24523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24524 /* end confdefs.h. */
24526 /* Override any GCC internal prototype to avoid an error.
24527 Use char because int might match the return type of a GCC
24528 builtin and then its argument prototype would still apply. */
24532 char mysql_thread_safe ();
24536 return mysql_thread_safe ();
24541 if ac_fn_c_try_link "$LINENO"; then :
24542 ac_cv_lib_mysqlclient_r_mysql_thread_safe=yes
24544 ac_cv_lib_mysqlclient_r_mysql_thread_safe=no
24546 rm -f core conftest.err conftest.$ac_objext \
24547 conftest$ac_exeext conftest.$ac_ext
24548 LIBS=$ac_check_lib_save_LIBS
24550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mysqlclient_r_mysql_thread_safe" >&5
24551 $as_echo "$ac_cv_lib_mysqlclient_r_mysql_thread_safe" >&6; }
24552 if test "x$ac_cv_lib_mysqlclient_r_mysql_thread_safe" = xyes; then :
24554 $as_echo "#define HAVE_MYSQL_THREAD_SAFE 1" >>confdefs.h
24558 if test "x$ac_cv_lib_mysqlclient_r_mysql_thread_safe" = "xyes"; then
24559 if test -z "${batch_insert_db_backends}"; then
24560 batch_insert_db_backends="MySQL"
24562 batch_insert_db_backends="${batch_insert_db_backends} MySQL"
24566 LDFLAGS="${saved_LDFLAGS}"
24567 LIBS="${saved_LIBS}"
24570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24571 $as_echo "no" >&6; }
24576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24577 $as_echo "no" >&6; }
24589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLite3 support" >&5
24590 $as_echo_n "checking for SQLite3 support... " >&6; }
24592 # Check whether --with-sqlite3 was given.
24593 if test "${with_sqlite3+set}" = set; then :
24594 withval=$with_sqlite3;
24595 if test "$withval" != "no"; then
24596 if test "$withval" = "yes"; then
24597 if test -f /usr/local/include/sqlite3.h; then
24598 SQLITE_INCDIR=/usr/local/include
24599 if test -d /usr/local/lib64; then
24600 SQLITE_LIBDIR=/usr/local/lib64
24602 SQLITE_LIBDIR=/usr/local/lib
24604 SQLITE_BINDIR=/usr/local/bin
24605 elif test -f /usr/include/sqlite3.h; then
24606 SQLITE_INCDIR=/usr/include
24607 if test -d /usr/lib64; then
24608 SQLITE_LIBDIR=/usr/lib64
24610 SQLITE_LIBDIR=/usr/lib
24612 SQLITE_BINDIR=/usr/bin
24613 elif test -f $prefix/include/sqlite3.h; then
24614 SQLITE_INCDIR=$prefix/include
24615 if test -d $prefix/lib64; then
24616 SQLITE_LIBDIR=$prefix/lib64
24618 SQLITE_LIBDIR=$prefix/lib
24620 SQLITE_BINDIR=$prefix/bin
24622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24623 $as_echo "no" >&6; }
24624 as_fn_error $? "Unable to find sqlite3.h in standard locations" "$LINENO" 5
24627 if test -f $withval/sqlite3.h; then
24628 SQLITE_INCDIR=$withval
24629 SQLITE_LIBDIR=$withval
24630 SQLITE_BINDIR=$withval
24631 elif test -f $withval/include/sqlite3.h; then
24632 SQLITE_INCDIR=$withval/include
24633 if test -d $withval/lib64; then
24634 SQLITE_LIBDIR=$withval/lib64
24636 SQLITE_LIBDIR=$withval/lib
24638 SQLITE_BINDIR=$withval/bin
24640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24641 $as_echo "no" >&6; }
24642 as_fn_error $? "Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" "$LINENO" 5
24645 SQLITE_INCLUDE=-I$SQLITE_INCDIR
24646 if test x$use_libtool != xno; then
24647 SQLITE_LIBS="-R $SQLITE_LIBDIR -L$SQLITE_LIBDIR -lsqlite3"
24649 SQLITE_LIBS="-L$SQLITE_LIBDIR -lsqlite3"
24651 SQLITE_LIB=$SQLITE_LIBDIR/libsqlite3.a
24652 DB_LIBS="${DB_LIBS} ${SQLITE_LIBS}"
24655 $as_echo "#define HAVE_SQLITE3 1" >>confdefs.h
24657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24658 $as_echo "yes" >&6; }
24660 if test -z "${db_backends}"; then
24661 db_backends="SQLite3"
24663 db_backends="${db_backends} SQLite3"
24665 if test -z "${DB_BACKENDS}"; then
24666 DB_BACKENDS="sqlite3"
24668 DB_BACKENDS="${DB_BACKENDS} sqlite3"
24671 if test "x$support_batch_insert" = "xyes"; then
24672 saved_LDFLAGS="${LDFLAGS}"
24673 LDFLAGS="${saved_LDFLAGS} -lpthread -L$SQLITE_LIBDIR"
24675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_threadsafe in -lsqlite3" >&5
24676 $as_echo_n "checking for sqlite3_threadsafe in -lsqlite3... " >&6; }
24677 if ${ac_cv_lib_sqlite3_sqlite3_threadsafe+:} false; then :
24678 $as_echo_n "(cached) " >&6
24680 ac_check_lib_save_LIBS=$LIBS
24681 LIBS="-lsqlite3 $LIBS"
24682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24683 /* end confdefs.h. */
24685 /* Override any GCC internal prototype to avoid an error.
24686 Use char because int might match the return type of a GCC
24687 builtin and then its argument prototype would still apply. */
24691 char sqlite3_threadsafe ();
24695 return sqlite3_threadsafe ();
24700 if ac_fn_c_try_link "$LINENO"; then :
24701 ac_cv_lib_sqlite3_sqlite3_threadsafe=yes
24703 ac_cv_lib_sqlite3_sqlite3_threadsafe=no
24705 rm -f core conftest.err conftest.$ac_objext \
24706 conftest$ac_exeext conftest.$ac_ext
24707 LIBS=$ac_check_lib_save_LIBS
24709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_threadsafe" >&5
24710 $as_echo "$ac_cv_lib_sqlite3_sqlite3_threadsafe" >&6; }
24711 if test "x$ac_cv_lib_sqlite3_sqlite3_threadsafe" = xyes; then :
24713 $as_echo "#define HAVE_SQLITE3_THREADSAFE 1" >>confdefs.h
24717 if test "x$ac_cv_lib_sqlite3_sqlite3_threadsafe" = "xyes"; then
24718 if test -z "${batch_insert_db_backends}"; then
24719 batch_insert_db_backends="SQLite3"
24721 batch_insert_db_backends="${batch_insert_db_backends} SQLite3"
24725 LDFLAGS="${saved_LDFLAGS}"
24728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24729 $as_echo "no" >&6; }
24734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24735 $as_echo "no" >&6; }
24745 if test -z "${batch_insert_db_backends}"; then
24746 batch_insert_db_backends="None"
24749 if test "x${db_backends}" = "x" ; then
24752 echo "You have not specified either --enable-client-only or one of the"
24753 echo "supported databases: MySQL, PostgreSQL, or SQLite3."
24754 echo "This is not permitted. Please reconfigure."
24756 echo "Aborting the configuration ..."
24762 case `echo $DB_BACKENDS | wc -w | sed -e 's/^ *//'` in
24764 DEFAULT_DB_TYPE="${DB_BACKENDS}"
24765 if test x$use_libtool = xno; then
24766 SHARED_CATALOG_TARGETS=""
24768 SHARED_CATALOG_TARGETS="libbaccats-${DEFAULT_DB_TYPE}.la"
24772 DEFAULT_DB_TYPE=`echo ${DB_BACKENDS} | cut -d' ' -f1`
24774 if test x$use_libtool = xno; then
24777 echo "You have specified two or more of the"
24778 echo "supported databases: MySQL, PostgreSQL, or SQLite3."
24779 echo "This is not permitted when not using libtool Please reconfigure."
24781 echo "Aborting the configuration ..."
24787 SHARED_CATALOG_TARGETS=""
24788 for db_type in ${DB_BACKENDS}
24790 if test -z "${SHARED_CATALOG_TARGETS}"; then
24791 SHARED_CATALOG_TARGETS="libbaccats-${db_type}.la"
24793 SHARED_CATALOG_TARGETS="${SHARED_CATALOG_TARGETS} libbaccats-${db_type}.la"
24799 if test x$use_libtool = xyes; then
24809 $as_echo "#define PROTOTYPES 1" >>confdefs.h
24812 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
24813 if test -z "$CCOPTS"; then
24814 CCOPTS='-g -O2 -Wall'
24821 largefile_support="no"
24823 # Check whether --enable-largefile was given.
24824 if test "${enable_largefile+set}" = set; then :
24825 enableval=$enable_largefile;
24828 if test "$enable_largefile" != no; then
24829 if test -n "$ac_tool_prefix"; then
24830 # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
24831 set dummy ${ac_tool_prefix}getconf; ac_word=$2
24832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24833 $as_echo_n "checking for $ac_word... " >&6; }
24834 if ${ac_cv_prog_GETCONF+:} false; then :
24835 $as_echo_n "(cached) " >&6
24837 if test -n "$GETCONF"; then
24838 ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
24840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24841 for as_dir in $PATH
24844 test -z "$as_dir" && as_dir=.
24845 for ac_exec_ext in '' $ac_executable_extensions; do
24846 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24847 ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
24848 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24857 GETCONF=$ac_cv_prog_GETCONF
24858 if test -n "$GETCONF"; then
24859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GETCONF" >&5
24860 $as_echo "$GETCONF" >&6; }
24862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24863 $as_echo "no" >&6; }
24868 if test -z "$ac_cv_prog_GETCONF"; then
24869 ac_ct_GETCONF=$GETCONF
24870 # Extract the first word of "getconf", so it can be a program name with args.
24871 set dummy getconf; ac_word=$2
24872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24873 $as_echo_n "checking for $ac_word... " >&6; }
24874 if ${ac_cv_prog_ac_ct_GETCONF+:} false; then :
24875 $as_echo_n "(cached) " >&6
24877 if test -n "$ac_ct_GETCONF"; then
24878 ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
24880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24881 for as_dir in $PATH
24884 test -z "$as_dir" && as_dir=.
24885 for ac_exec_ext in '' $ac_executable_extensions; do
24886 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24887 ac_cv_prog_ac_ct_GETCONF="getconf"
24888 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24897 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
24898 if test -n "$ac_ct_GETCONF"; then
24899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GETCONF" >&5
24900 $as_echo "$ac_ct_GETCONF" >&6; }
24902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24903 $as_echo "no" >&6; }
24906 if test "x$ac_ct_GETCONF" = x; then
24909 case $cross_compiling:$ac_tool_warned in
24911 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
24912 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
24913 ac_tool_warned=yes ;;
24915 GETCONF=$ac_ct_GETCONF
24918 GETCONF="$ac_cv_prog_GETCONF"
24921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLAGS value to request large file support" >&5
24922 $as_echo_n "checking for CFLAGS value to request large file support... " >&6; }
24923 if ${ac_cv_sys_largefile_CFLAGS+:} false; then :
24924 $as_echo_n "(cached) " >&6
24926 ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
24927 ac_cv_sys_largefile_CFLAGS=no
24929 # IRIX 6.2 and later require cc -n32.
24930 irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
24931 if test "$GCC" != yes; then
24932 ac_cv_sys_largefile_CFLAGS=-n32
24935 CC="$CC $ac_cv_sys_largefile_CFLAGS"
24936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24937 /* end confdefs.h. */
24947 if ac_fn_c_try_link "$LINENO"; then :
24950 ac_cv_sys_largefile_CFLAGS=no
24952 rm -f core conftest.err conftest.$ac_objext \
24953 conftest$ac_exeext conftest.$ac_ext
24958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CFLAGS" >&5
24959 $as_echo "$ac_cv_sys_largefile_CFLAGS" >&6; }
24960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDFLAGS value to request large file support" >&5
24961 $as_echo_n "checking for LDFLAGS value to request large file support... " >&6; }
24962 if ${ac_cv_sys_largefile_LDFLAGS+:} false; then :
24963 $as_echo_n "(cached) " >&6
24965 ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
24966 ac_cv_sys_largefile_LDFLAGS=no
24970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_LDFLAGS" >&5
24971 $as_echo "$ac_cv_sys_largefile_LDFLAGS" >&6; }
24972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBS value to request large file support" >&5
24973 $as_echo_n "checking for LIBS value to request large file support... " >&6; }
24974 if ${ac_cv_sys_largefile_LIBS+:} false; then :
24975 $as_echo_n "(cached) " >&6
24977 ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
24978 ac_cv_sys_largefile_LIBS=no
24982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_LIBS" >&5
24983 $as_echo "$ac_cv_sys_largefile_LIBS" >&6; }
24985 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
24988 -D_FILE_OFFSET_BITS=*) ;;
24989 -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
24990 -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
24995 case "$CPPFLAGS" in
24996 '') CPPFLAGS="$ac_flag" ;;
24997 *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
25005 '') CFLAGS="$ac_flag" ;;
25006 *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
25011 case "$ac_cv_sys_largefile_LDFLAGS" in
25015 '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
25016 *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
25019 case "$ac_cv_sys_largefile_LIBS" in
25023 '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
25024 *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
25027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS" >&5
25028 $as_echo_n "checking for _FILE_OFFSET_BITS... " >&6; }
25029 if ${ac_cv_sys_file_offset_bits+:} false; then :
25030 $as_echo_n "(cached) " >&6
25032 ac_cv_sys_file_offset_bits=no
25033 ac_cv_sys_file_offset_bits=64
25034 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
25036 -D_FILE_OFFSET_BITS)
25037 ac_cv_sys_file_offset_bits=1 ;;
25038 -D_FILE_OFFSET_BITS=*)
25039 ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
25044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
25045 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
25046 if test "$ac_cv_sys_file_offset_bits" != no; then
25048 cat >>confdefs.h <<_ACEOF
25049 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
25053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE" >&5
25054 $as_echo_n "checking for _LARGEFILE_SOURCE... " >&6; }
25055 if ${ac_cv_sys_largefile_source+:} false; then :
25056 $as_echo_n "(cached) " >&6
25058 ac_cv_sys_largefile_source=no
25059 ac_cv_sys_largefile_source=1
25060 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
25062 -D_LARGEFILE_SOURCE)
25063 ac_cv_sys_largefile_source=1 ;;
25064 -D_LARGEFILE_SOURCE=*)
25065 ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
25070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
25071 $as_echo "$ac_cv_sys_largefile_source" >&6; }
25072 if test "$ac_cv_sys_largefile_source" != no; then
25074 cat >>confdefs.h <<_ACEOF
25075 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
25079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES" >&5
25080 $as_echo_n "checking for _LARGE_FILES... " >&6; }
25081 if ${ac_cv_sys_large_files+:} false; then :
25082 $as_echo_n "(cached) " >&6
25084 ac_cv_sys_large_files=no
25085 ac_cv_sys_large_files=1
25086 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
25089 ac_cv_sys_large_files=1 ;;
25091 ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
25096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
25097 $as_echo "$ac_cv_sys_large_files" >&6; }
25098 if test "$ac_cv_sys_large_files" != no; then
25100 cat >>confdefs.h <<_ACEOF
25101 #define _LARGE_FILES $ac_cv_sys_large_files
25108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
25109 $as_echo_n "checking for X... " >&6; }
25112 # Check whether --with-x was given.
25113 if test "${with_x+set}" = set; then :
25117 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
25118 if test "x$with_x" = xno; then
25119 # The user explicitly disabled X.
25122 case $x_includes,$x_libraries in #(
25123 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
25124 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
25125 $as_echo_n "(cached) " >&6
25127 # One or both of the vars are not set, and there is no cached value.
25128 ac_x_includes=no ac_x_libraries=no
25129 rm -f -r conftest.dir
25130 if mkdir conftest.dir; then
25132 cat >Imakefile <<'_ACEOF'
25134 @echo incroot='${INCROOT}'
25136 @echo usrlibdir='${USRLIBDIR}'
25138 @echo libdir='${LIBDIR}'
25140 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
25141 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
25142 for ac_var in incroot usrlibdir libdir; do
25143 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
25145 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
25146 for ac_extension in a so sl dylib la dll; do
25147 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
25148 test -f "$ac_im_libdir/libX11.$ac_extension"; then
25149 ac_im_usrlibdir=$ac_im_libdir; break
25152 # Screen out bogus values from the imake configuration. They are
25153 # bogus both because they are the default anyway, and because
25154 # using them would break gcc on systems where it needs fixed includes.
25155 case $ac_im_incroot in
25156 /usr/include) ac_x_includes= ;;
25157 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
25159 case $ac_im_usrlibdir in
25160 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
25161 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
25165 rm -f -r conftest.dir
25168 # Standard set of common directories for X headers.
25169 # Check X11 before X11Rn because it is often a symlink to the current release.
25183 /usr/local/X11/include
25184 /usr/local/X11R7/include
25185 /usr/local/X11R6/include
25186 /usr/local/X11R5/include
25187 /usr/local/X11R4/include
25189 /usr/local/include/X11
25190 /usr/local/include/X11R7
25191 /usr/local/include/X11R6
25192 /usr/local/include/X11R5
25193 /usr/local/include/X11R4
25197 /usr/XFree86/include/X11
25201 /usr/unsupported/include
25202 /usr/athena/include
25203 /usr/local/x11r5/include
25204 /usr/lpp/Xamples/include
25206 /usr/openwin/include
25207 /usr/openwin/share/include'
25209 if test "$ac_x_includes" = no; then
25210 # Guess where to find include files, by looking for Xlib.h.
25211 # First, try using that file with no special directory specified.
25212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25213 /* end confdefs.h. */
25214 #include <X11/Xlib.h>
25216 if ac_fn_c_try_cpp "$LINENO"; then :
25217 # We can compile using X headers with no special include directory.
25220 for ac_dir in $ac_x_header_dirs; do
25221 if test -r "$ac_dir/X11/Xlib.h"; then
25222 ac_x_includes=$ac_dir
25227 rm -f conftest.err conftest.i conftest.$ac_ext
25228 fi # $ac_x_includes = no
25230 if test "$ac_x_libraries" = no; then
25231 # Check for the libraries.
25232 # See if we find them without any special options.
25233 # Don't add to $LIBS permanently.
25236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25237 /* end confdefs.h. */
25238 #include <X11/Xlib.h>
25247 if ac_fn_c_try_link "$LINENO"; then :
25249 # We can link X programs with no special library path.
25253 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
25255 # Don't even attempt the hair of trying to link an X program!
25256 for ac_extension in a so sl dylib la dll; do
25257 if test -r "$ac_dir/libX11.$ac_extension"; then
25258 ac_x_libraries=$ac_dir
25264 rm -f core conftest.err conftest.$ac_objext \
25265 conftest$ac_exeext conftest.$ac_ext
25266 fi # $ac_x_libraries = no
25268 case $ac_x_includes,$ac_x_libraries in #(
25269 no,* | *,no | *\'*)
25270 # Didn't find X, or a directory has "'" in its name.
25271 ac_cv_have_x="have_x=no";; #(
25273 # Record where we found X for the cache.
25274 ac_cv_have_x="have_x=yes\
25275 ac_x_includes='$ac_x_includes'\
25276 ac_x_libraries='$ac_x_libraries'"
25282 eval "$ac_cv_have_x"
25285 if test "$have_x" != yes; then
25286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
25287 $as_echo "$have_x" >&6; }
25290 # If each of the values was on the command line, it overrides each guess.
25291 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
25292 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
25293 # Update the cache value to reflect the command line values.
25294 ac_cv_have_x="have_x=yes\
25295 ac_x_includes='$x_includes'\
25296 ac_x_libraries='$x_libraries'"
25297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
25298 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
25301 if test "$no_x" = yes; then
25302 # Not all programs may use this symbol, but it does not hurt to define it.
25304 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
25306 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
25308 if test -n "$x_includes"; then
25309 X_CFLAGS="$X_CFLAGS -I$x_includes"
25312 # It would also be nice to do this for all -L options, not just this one.
25313 if test -n "$x_libraries"; then
25314 X_LIBS="$X_LIBS -L$x_libraries"
25315 # For Solaris; some versions of Sun CC require a space after -R and
25316 # others require no space. Words are not sufficient . . . .
25317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
25318 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
25319 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
25320 ac_xsave_c_werror_flag=$ac_c_werror_flag
25321 ac_c_werror_flag=yes
25322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25323 /* end confdefs.h. */
25333 if ac_fn_c_try_link "$LINENO"; then :
25334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25335 $as_echo "no" >&6; }
25336 X_LIBS="$X_LIBS -R$x_libraries"
25338 LIBS="$ac_xsave_LIBS -R $x_libraries"
25339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25340 /* end confdefs.h. */
25350 if ac_fn_c_try_link "$LINENO"; then :
25351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25352 $as_echo "yes" >&6; }
25353 X_LIBS="$X_LIBS -R $x_libraries"
25355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
25356 $as_echo "neither works" >&6; }
25358 rm -f core conftest.err conftest.$ac_objext \
25359 conftest$ac_exeext conftest.$ac_ext
25361 rm -f core conftest.err conftest.$ac_objext \
25362 conftest$ac_exeext conftest.$ac_ext
25363 ac_c_werror_flag=$ac_xsave_c_werror_flag
25364 LIBS=$ac_xsave_LIBS
25367 # Check for system-dependent libraries X programs must link with.
25368 # Do this before checking for the system-independent R6 libraries
25369 # (-lICE), since we may need -lsocket or whatever for X linking.
25371 if test "$ISC" = yes; then
25372 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
25374 # Martyn Johnson says this is needed for Ultrix, if the X
25375 # libraries were built with DECnet support. And Karl Berry says
25376 # the Alpha needs dnet_stub (dnet does not exist).
25377 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
25378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25379 /* end confdefs.h. */
25381 /* Override any GCC internal prototype to avoid an error.
25382 Use char because int might match the return type of a GCC
25383 builtin and then its argument prototype would still apply. */
25387 char XOpenDisplay ();
25391 return XOpenDisplay ();
25396 if ac_fn_c_try_link "$LINENO"; then :
25399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
25400 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
25401 if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
25402 $as_echo_n "(cached) " >&6
25404 ac_check_lib_save_LIBS=$LIBS
25405 LIBS="-ldnet $LIBS"
25406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25407 /* end confdefs.h. */
25409 /* Override any GCC internal prototype to avoid an error.
25410 Use char because int might match the return type of a GCC
25411 builtin and then its argument prototype would still apply. */
25419 return dnet_ntoa ();
25424 if ac_fn_c_try_link "$LINENO"; then :
25425 ac_cv_lib_dnet_dnet_ntoa=yes
25427 ac_cv_lib_dnet_dnet_ntoa=no
25429 rm -f core conftest.err conftest.$ac_objext \
25430 conftest$ac_exeext conftest.$ac_ext
25431 LIBS=$ac_check_lib_save_LIBS
25433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
25434 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
25435 if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
25436 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
25439 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
25440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
25441 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
25442 if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
25443 $as_echo_n "(cached) " >&6
25445 ac_check_lib_save_LIBS=$LIBS
25446 LIBS="-ldnet_stub $LIBS"
25447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25448 /* end confdefs.h. */
25450 /* Override any GCC internal prototype to avoid an error.
25451 Use char because int might match the return type of a GCC
25452 builtin and then its argument prototype would still apply. */
25460 return dnet_ntoa ();
25465 if ac_fn_c_try_link "$LINENO"; then :
25466 ac_cv_lib_dnet_stub_dnet_ntoa=yes
25468 ac_cv_lib_dnet_stub_dnet_ntoa=no
25470 rm -f core conftest.err conftest.$ac_objext \
25471 conftest$ac_exeext conftest.$ac_ext
25472 LIBS=$ac_check_lib_save_LIBS
25474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
25475 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
25476 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
25477 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
25482 rm -f core conftest.err conftest.$ac_objext \
25483 conftest$ac_exeext conftest.$ac_ext
25484 LIBS="$ac_xsave_LIBS"
25486 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
25487 # to get the SysV transport functions.
25488 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
25490 # The nsl library prevents programs from opening the X display
25491 # on Irix 5.2, according to T.E. Dickey.
25492 # The functions gethostbyname, getservbyname, and inet_addr are
25493 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
25494 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
25495 if test "x$ac_cv_func_gethostbyname" = xyes; then :
25499 if test $ac_cv_func_gethostbyname = no; then
25500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
25501 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
25502 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
25503 $as_echo_n "(cached) " >&6
25505 ac_check_lib_save_LIBS=$LIBS
25507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25508 /* end confdefs.h. */
25510 /* Override any GCC internal prototype to avoid an error.
25511 Use char because int might match the return type of a GCC
25512 builtin and then its argument prototype would still apply. */
25516 char gethostbyname ();
25520 return gethostbyname ();
25525 if ac_fn_c_try_link "$LINENO"; then :
25526 ac_cv_lib_nsl_gethostbyname=yes
25528 ac_cv_lib_nsl_gethostbyname=no
25530 rm -f core conftest.err conftest.$ac_objext \
25531 conftest$ac_exeext conftest.$ac_ext
25532 LIBS=$ac_check_lib_save_LIBS
25534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
25535 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
25536 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
25537 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
25540 if test $ac_cv_lib_nsl_gethostbyname = no; then
25541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
25542 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
25543 if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
25544 $as_echo_n "(cached) " >&6
25546 ac_check_lib_save_LIBS=$LIBS
25548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25549 /* end confdefs.h. */
25551 /* Override any GCC internal prototype to avoid an error.
25552 Use char because int might match the return type of a GCC
25553 builtin and then its argument prototype would still apply. */
25557 char gethostbyname ();
25561 return gethostbyname ();
25566 if ac_fn_c_try_link "$LINENO"; then :
25567 ac_cv_lib_bsd_gethostbyname=yes
25569 ac_cv_lib_bsd_gethostbyname=no
25571 rm -f core conftest.err conftest.$ac_objext \
25572 conftest$ac_exeext conftest.$ac_ext
25573 LIBS=$ac_check_lib_save_LIBS
25575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
25576 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
25577 if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
25578 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
25584 # lieder@skyler.mavd.honeywell.com says without -lsocket,
25585 # socket/setsockopt and other routines are undefined under SCO ODT
25586 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
25587 # on later versions), says Simon Leinen: it contains gethostby*
25588 # variants that don't use the name server (or something). -lsocket
25589 # must be given before -lnsl if both are needed. We assume that
25590 # if connect needs -lnsl, so does gethostbyname.
25591 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
25592 if test "x$ac_cv_func_connect" = xyes; then :
25596 if test $ac_cv_func_connect = no; then
25597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
25598 $as_echo_n "checking for connect in -lsocket... " >&6; }
25599 if ${ac_cv_lib_socket_connect+:} false; then :
25600 $as_echo_n "(cached) " >&6
25602 ac_check_lib_save_LIBS=$LIBS
25603 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
25604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25605 /* end confdefs.h. */
25607 /* Override any GCC internal prototype to avoid an error.
25608 Use char because int might match the return type of a GCC
25609 builtin and then its argument prototype would still apply. */
25622 if ac_fn_c_try_link "$LINENO"; then :
25623 ac_cv_lib_socket_connect=yes
25625 ac_cv_lib_socket_connect=no
25627 rm -f core conftest.err conftest.$ac_objext \
25628 conftest$ac_exeext conftest.$ac_ext
25629 LIBS=$ac_check_lib_save_LIBS
25631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
25632 $as_echo "$ac_cv_lib_socket_connect" >&6; }
25633 if test "x$ac_cv_lib_socket_connect" = xyes; then :
25634 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
25639 # Guillermo Gomez says -lposix is necessary on A/UX.
25640 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
25641 if test "x$ac_cv_func_remove" = xyes; then :
25645 if test $ac_cv_func_remove = no; then
25646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
25647 $as_echo_n "checking for remove in -lposix... " >&6; }
25648 if ${ac_cv_lib_posix_remove+:} false; then :
25649 $as_echo_n "(cached) " >&6
25651 ac_check_lib_save_LIBS=$LIBS
25652 LIBS="-lposix $LIBS"
25653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25654 /* end confdefs.h. */
25656 /* Override any GCC internal prototype to avoid an error.
25657 Use char because int might match the return type of a GCC
25658 builtin and then its argument prototype would still apply. */
25671 if ac_fn_c_try_link "$LINENO"; then :
25672 ac_cv_lib_posix_remove=yes
25674 ac_cv_lib_posix_remove=no
25676 rm -f core conftest.err conftest.$ac_objext \
25677 conftest$ac_exeext conftest.$ac_ext
25678 LIBS=$ac_check_lib_save_LIBS
25680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
25681 $as_echo "$ac_cv_lib_posix_remove" >&6; }
25682 if test "x$ac_cv_lib_posix_remove" = xyes; then :
25683 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
25688 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
25689 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
25690 if test "x$ac_cv_func_shmat" = xyes; then :
25694 if test $ac_cv_func_shmat = no; then
25695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
25696 $as_echo_n "checking for shmat in -lipc... " >&6; }
25697 if ${ac_cv_lib_ipc_shmat+:} false; then :
25698 $as_echo_n "(cached) " >&6
25700 ac_check_lib_save_LIBS=$LIBS
25702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25703 /* end confdefs.h. */
25705 /* Override any GCC internal prototype to avoid an error.
25706 Use char because int might match the return type of a GCC
25707 builtin and then its argument prototype would still apply. */
25720 if ac_fn_c_try_link "$LINENO"; then :
25721 ac_cv_lib_ipc_shmat=yes
25723 ac_cv_lib_ipc_shmat=no
25725 rm -f core conftest.err conftest.$ac_objext \
25726 conftest$ac_exeext conftest.$ac_ext
25727 LIBS=$ac_check_lib_save_LIBS
25729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
25730 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
25731 if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
25732 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
25738 # Check for libraries that X11R6 Xt/Xaw programs need.
25739 ac_save_LDFLAGS=$LDFLAGS
25740 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
25741 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
25742 # check for ICE first), but we must link in the order -lSM -lICE or
25743 # we get undefined symbols. So assume we have SM if we have ICE.
25744 # These have to be linked with before -lX11, unlike the other
25745 # libraries we check for below, so use a different variable.
25746 # John Interrante, Karl Berry
25747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
25748 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
25749 if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
25750 $as_echo_n "(cached) " >&6
25752 ac_check_lib_save_LIBS=$LIBS
25753 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
25754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25755 /* end confdefs.h. */
25757 /* Override any GCC internal prototype to avoid an error.
25758 Use char because int might match the return type of a GCC
25759 builtin and then its argument prototype would still apply. */
25763 char IceConnectionNumber ();
25767 return IceConnectionNumber ();
25772 if ac_fn_c_try_link "$LINENO"; then :
25773 ac_cv_lib_ICE_IceConnectionNumber=yes
25775 ac_cv_lib_ICE_IceConnectionNumber=no
25777 rm -f core conftest.err conftest.$ac_objext \
25778 conftest$ac_exeext conftest.$ac_ext
25779 LIBS=$ac_check_lib_save_LIBS
25781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
25782 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
25783 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
25784 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
25787 LDFLAGS=$ac_save_LDFLAGS
25825 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25826 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
25827 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
25828 cat >>confdefs.h <<_ACEOF
25829 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
25837 $as_echo_n "checking for ANSI C header files... " >&6; }
25838 if ${ac_cv_header_stdc+:} false; then :
25839 $as_echo_n "(cached) " >&6
25841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25842 /* end confdefs.h. */
25843 #include <stdlib.h>
25844 #include <stdarg.h>
25845 #include <string.h>
25856 if ac_fn_c_try_compile "$LINENO"; then :
25857 ac_cv_header_stdc=yes
25859 ac_cv_header_stdc=no
25861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25863 if test $ac_cv_header_stdc = yes; then
25864 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
25865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25866 /* end confdefs.h. */
25867 #include <string.h>
25870 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25871 $EGREP "memchr" >/dev/null 2>&1; then :
25874 ac_cv_header_stdc=no
25880 if test $ac_cv_header_stdc = yes; then
25881 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
25882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25883 /* end confdefs.h. */
25884 #include <stdlib.h>
25887 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25888 $EGREP "free" >/dev/null 2>&1; then :
25891 ac_cv_header_stdc=no
25897 if test $ac_cv_header_stdc = yes; then
25898 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
25899 if test "$cross_compiling" = yes; then :
25902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25903 /* end confdefs.h. */
25905 #include <stdlib.h>
25906 #if ((' ' & 0x0FF) == 0x020)
25907 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
25908 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
25910 # define ISLOWER(c) \
25911 (('a' <= (c) && (c) <= 'i') \
25912 || ('j' <= (c) && (c) <= 'r') \
25913 || ('s' <= (c) && (c) <= 'z'))
25914 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
25917 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
25922 for (i = 0; i < 256; i++)
25923 if (XOR (islower (i), ISLOWER (i))
25924 || toupper (i) != TOUPPER (i))
25929 if ac_fn_c_try_run "$LINENO"; then :
25932 ac_cv_header_stdc=no
25934 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25935 conftest.$ac_objext conftest.beam conftest.$ac_ext
25940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
25941 $as_echo "$ac_cv_header_stdc" >&6; }
25942 if test $ac_cv_header_stdc = yes; then
25944 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
25948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev" >&5
25949 $as_echo_n "checking whether sys/types.h defines makedev... " >&6; }
25950 if ${ac_cv_header_sys_types_h_makedev+:} false; then :
25951 $as_echo_n "(cached) " >&6
25953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25954 /* end confdefs.h. */
25955 #include <sys/types.h>
25959 return makedev(0, 0);
25964 if ac_fn_c_try_link "$LINENO"; then :
25965 ac_cv_header_sys_types_h_makedev=yes
25967 ac_cv_header_sys_types_h_makedev=no
25969 rm -f core conftest.err conftest.$ac_objext \
25970 conftest$ac_exeext conftest.$ac_ext
25973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_types_h_makedev" >&5
25974 $as_echo "$ac_cv_header_sys_types_h_makedev" >&6; }
25976 if test $ac_cv_header_sys_types_h_makedev = no; then
25977 ac_fn_c_check_header_mongrel "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"
25978 if test "x$ac_cv_header_sys_mkdev_h" = xyes; then :
25980 $as_echo "#define MAJOR_IN_MKDEV 1" >>confdefs.h
25986 if test $ac_cv_header_sys_mkdev_h = no; then
25987 ac_fn_c_check_header_mongrel "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
25988 if test "x$ac_cv_header_sys_sysmacros_h" = xyes; then :
25990 $as_echo "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h
25998 ac_header_dirent=no
25999 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
26000 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
26001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
26002 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
26003 if eval \${$as_ac_Header+:} false; then :
26004 $as_echo_n "(cached) " >&6
26006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26007 /* end confdefs.h. */
26008 #include <sys/types.h>
26020 if ac_fn_c_try_compile "$LINENO"; then :
26021 eval "$as_ac_Header=yes"
26023 eval "$as_ac_Header=no"
26025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26027 eval ac_res=\$$as_ac_Header
26028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
26029 $as_echo "$ac_res" >&6; }
26030 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
26031 cat >>confdefs.h <<_ACEOF
26032 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
26035 ac_header_dirent=$ac_hdr; break
26039 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
26040 if test $ac_header_dirent = dirent.h; then
26041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
26042 $as_echo_n "checking for library containing opendir... " >&6; }
26043 if ${ac_cv_search_opendir+:} false; then :
26044 $as_echo_n "(cached) " >&6
26046 ac_func_search_save_LIBS=$LIBS
26047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26048 /* end confdefs.h. */
26050 /* Override any GCC internal prototype to avoid an error.
26051 Use char because int might match the return type of a GCC
26052 builtin and then its argument prototype would still apply. */
26065 for ac_lib in '' dir; do
26066 if test -z "$ac_lib"; then
26067 ac_res="none required"
26070 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26072 if ac_fn_c_try_link "$LINENO"; then :
26073 ac_cv_search_opendir=$ac_res
26075 rm -f core conftest.err conftest.$ac_objext \
26077 if ${ac_cv_search_opendir+:} false; then :
26081 if ${ac_cv_search_opendir+:} false; then :
26084 ac_cv_search_opendir=no
26086 rm conftest.$ac_ext
26087 LIBS=$ac_func_search_save_LIBS
26089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
26090 $as_echo "$ac_cv_search_opendir" >&6; }
26091 ac_res=$ac_cv_search_opendir
26092 if test "$ac_res" != no; then :
26093 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
26099 $as_echo_n "checking for library containing opendir... " >&6; }
26100 if ${ac_cv_search_opendir+:} false; then :
26101 $as_echo_n "(cached) " >&6
26103 ac_func_search_save_LIBS=$LIBS
26104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26105 /* end confdefs.h. */
26107 /* Override any GCC internal prototype to avoid an error.
26108 Use char because int might match the return type of a GCC
26109 builtin and then its argument prototype would still apply. */
26122 for ac_lib in '' x; do
26123 if test -z "$ac_lib"; then
26124 ac_res="none required"
26127 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26129 if ac_fn_c_try_link "$LINENO"; then :
26130 ac_cv_search_opendir=$ac_res
26132 rm -f core conftest.err conftest.$ac_objext \
26134 if ${ac_cv_search_opendir+:} false; then :
26138 if ${ac_cv_search_opendir+:} false; then :
26141 ac_cv_search_opendir=no
26143 rm conftest.$ac_ext
26144 LIBS=$ac_func_search_save_LIBS
26146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
26147 $as_echo "$ac_cv_search_opendir" >&6; }
26148 ac_res=$ac_cv_search_opendir
26149 if test "$ac_res" != no; then :
26150 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
26157 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
26158 if ${ac_cv_header_stat_broken+:} false; then :
26159 $as_echo_n "(cached) " >&6
26161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26162 /* end confdefs.h. */
26163 #include <sys/types.h>
26164 #include <sys/stat.h>
26166 #if defined S_ISBLK && defined S_IFDIR
26167 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
26170 #if defined S_ISBLK && defined S_IFCHR
26171 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
26174 #if defined S_ISLNK && defined S_IFREG
26175 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
26178 #if defined S_ISSOCK && defined S_IFREG
26179 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
26183 if ac_fn_c_try_compile "$LINENO"; then :
26184 ac_cv_header_stat_broken=no
26186 ac_cv_header_stat_broken=yes
26188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
26191 $as_echo "$ac_cv_header_stat_broken" >&6; }
26192 if test $ac_cv_header_stat_broken = yes; then
26194 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
26198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
26199 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
26200 if ${ac_cv_header_sys_wait_h+:} false; then :
26201 $as_echo_n "(cached) " >&6
26203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26204 /* end confdefs.h. */
26205 #include <sys/types.h>
26206 #include <sys/wait.h>
26207 #ifndef WEXITSTATUS
26208 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
26211 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
26219 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
26224 if ac_fn_c_try_compile "$LINENO"; then :
26225 ac_cv_header_sys_wait_h=yes
26227 ac_cv_header_sys_wait_h=no
26229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
26232 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
26233 if test $ac_cv_header_sys_wait_h = yes; then
26235 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
26239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
26240 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
26241 if ${ac_cv_header_time+:} false; then :
26242 $as_echo_n "(cached) " >&6
26244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26245 /* end confdefs.h. */
26246 #include <sys/types.h>
26247 #include <sys/time.h>
26253 if ((struct tm *) 0)
26259 if ac_fn_c_try_compile "$LINENO"; then :
26260 ac_cv_header_time=yes
26262 ac_cv_header_time=no
26264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
26267 $as_echo "$ac_cv_header_time" >&6; }
26268 if test $ac_cv_header_time = yes; then
26270 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
26274 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
26275 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
26277 cat >>confdefs.h <<_ACEOF
26278 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
26282 $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h
26287 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
26288 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
26290 cat >>confdefs.h <<_ACEOF
26291 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
26295 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
26298 case " $LIBOBJS " in
26299 *" fileblocks.$ac_objext "* ) ;;
26300 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
26307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
26308 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
26309 if ${ac_cv_struct_tm+:} false; then :
26310 $as_echo_n "(cached) " >&6
26312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26313 /* end confdefs.h. */
26314 #include <sys/types.h>
26321 int *p = &tm.tm_sec;
26327 if ac_fn_c_try_compile "$LINENO"; then :
26328 ac_cv_struct_tm=time.h
26330 ac_cv_struct_tm=sys/time.h
26332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
26335 $as_echo "$ac_cv_struct_tm" >&6; }
26336 if test $ac_cv_struct_tm = sys/time.h; then
26338 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
26342 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
26343 #include <$ac_cv_struct_tm>
26346 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
26348 cat >>confdefs.h <<_ACEOF
26349 #define HAVE_STRUCT_TM_TM_ZONE 1
26355 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
26357 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
26360 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
26362 if test "x$ac_cv_have_decl_tzname" = xyes; then :
26368 cat >>confdefs.h <<_ACEOF
26369 #define HAVE_DECL_TZNAME $ac_have_decl
26372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
26373 $as_echo_n "checking for tzname... " >&6; }
26374 if ${ac_cv_var_tzname+:} false; then :
26375 $as_echo_n "(cached) " >&6
26377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26378 /* end confdefs.h. */
26380 #if !HAVE_DECL_TZNAME
26381 extern char *tzname[];
26387 return tzname[0][0];
26392 if ac_fn_c_try_link "$LINENO"; then :
26393 ac_cv_var_tzname=yes
26395 ac_cv_var_tzname=no
26397 rm -f core conftest.err conftest.$ac_objext \
26398 conftest$ac_exeext conftest.$ac_ext
26400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
26401 $as_echo "$ac_cv_var_tzname" >&6; }
26402 if test $ac_cv_var_tzname = yes; then
26404 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
26410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for utime.h" >&5
26411 $as_echo_n "checking for utime.h... " >&6; }
26412 if ${ba_cv_header_utime_h+:} false; then :
26413 $as_echo_n "(cached) " >&6
26416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26417 /* end confdefs.h. */
26419 #include <sys/types.h>
26432 if ac_fn_c_try_compile "$LINENO"; then :
26434 ba_cv_header_utime_h=yes
26438 ba_cv_header_utime_h=no
26442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_header_utime_h" >&5
26447 $as_echo "$ba_cv_header_utime_h" >&6; }
26448 test $ba_cv_header_utime_h = yes &&
26449 $as_echo "#define HAVE_UTIME_H 1" >>confdefs.h
26452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5
26453 $as_echo_n "checking for socklen_t... " >&6; }
26454 if ${ba_cv_header_socklen_t+:} false; then :
26455 $as_echo_n "(cached) " >&6
26458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26459 /* end confdefs.h. */
26461 #include <sys/types.h>
26462 #include <sys/socket.h>
26474 if ac_fn_c_try_compile "$LINENO"; then :
26476 ba_cv_header_socklen_t=yes
26480 ba_cv_header_socklen_t=no
26484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_header_socklen_t" >&5
26489 $as_echo "$ba_cv_header_socklen_t" >&6; }
26490 test $ba_cv_header_socklen_t = yes &&
26491 $as_echo "#define HAVE_SOCKLEN_T 1" >>confdefs.h
26495 ac_cpp='$CXXCPP $CPPFLAGS'
26496 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26497 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26498 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ioctl_req_t" >&5
26501 $as_echo_n "checking for ioctl_req_t... " >&6; }
26502 if ${ba_cv_header_ioctl_req_t+:} false; then :
26503 $as_echo_n "(cached) " >&6
26506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26507 /* end confdefs.h. */
26509 #include <unistd.h>
26510 #include <sys/types.h>
26511 #include <sys/ioctl.h>
26517 int (*d_ioctl)(int fd, unsigned long int request, ...);
26524 if ac_fn_cxx_try_compile "$LINENO"; then :
26526 ba_cv_header_ioctl_req_t=yes
26530 ba_cv_header_ioctl_req_t=no
26534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_header_ioctl_req_t" >&5
26539 $as_echo "$ba_cv_header_ioctl_req_t" >&6; }
26540 test $ba_cv_header_ioctl_req_t = yes &&
26541 $as_echo "#define HAVE_IOCTL_ULINT_REQUEST 1" >>confdefs.h
26545 ac_cpp='$CPP $CPPFLAGS'
26546 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26547 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26548 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26552 ac_cpp='$CXXCPP $CPPFLAGS'
26553 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26554 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26555 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for typeof" >&5
26558 $as_echo_n "checking for typeof... " >&6; }
26559 if ${ba_cv_have_typeof+:} false; then :
26560 $as_echo_n "(cached) " >&6
26563 if test "$cross_compiling" = yes; then :
26565 ba_cv_have_typeof=no
26569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26570 /* end confdefs.h. */
26572 main(){char *a = 0; a = (typeof a)a;}
26575 if ac_fn_cxx_try_run "$LINENO"; then :
26577 ba_cv_have_typeof=yes
26581 ba_cv_have_typeof=no
26584 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26585 conftest.$ac_objext conftest.beam conftest.$ac_ext
26591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_have_typeof" >&5
26592 $as_echo "$ba_cv_have_typeof" >&6; }
26593 test $ba_cv_have_typeof = yes &&
26594 $as_echo "#define HAVE_TYPEOF 1" >>confdefs.h
26597 ac_cpp='$CPP $CPPFLAGS'
26598 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26599 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26600 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
26604 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
26605 if ${ac_cv_c_const+:} false; then :
26606 $as_echo_n "(cached) " >&6
26608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26609 /* end confdefs.h. */
26615 #ifndef __cplusplus
26616 /* Ultrix mips cc rejects this sort of thing. */
26617 typedef int charset[2];
26618 const charset cs = { 0, 0 };
26619 /* SunOS 4.1.1 cc rejects this. */
26620 char const *const *pcpcc;
26622 /* NEC SVR4.0.2 mips cc rejects this. */
26623 struct point {int x, y;};
26624 static struct point const zero = {0,0};
26625 /* AIX XL C 1.02.0.0 rejects this.
26626 It does not let you subtract one const X* pointer from another in
26627 an arm of an if-expression whose if-part is not a constant
26629 const char *g = "string";
26630 pcpcc = &g + (g ? g-g : 0);
26631 /* HPUX 7.0 cc rejects these. */
26633 ppc = (char**) pcpcc;
26634 pcpcc = (char const *const *) ppc;
26635 { /* SCO 3.2v4 cc rejects this sort of thing. */
26638 char const *s = 0 ? (char *) 0 : (char const *) 0;
26643 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
26644 int x[] = {25, 17};
26645 const int *foo = &x[0];
26648 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
26649 typedef const int *iptr;
26653 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
26654 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
26655 struct s { int j; const int *ap[3]; } bx;
26656 struct s *b = &bx; b->j = 5;
26658 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
26659 const int foo = 10;
26660 if (!foo) return 0;
26662 return !cs[0] && !zero.x;
26669 if ac_fn_c_try_compile "$LINENO"; then :
26674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
26677 $as_echo "$ac_cv_c_const" >&6; }
26678 if test $ac_cv_c_const = no; then
26680 $as_echo "#define const /**/" >>confdefs.h
26685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
26686 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
26687 if ${ac_cv_c_bigendian+:} false; then :
26688 $as_echo_n "(cached) " >&6
26690 ac_cv_c_bigendian=unknown
26691 # See if we're dealing with a universal compiler.
26692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26693 /* end confdefs.h. */
26694 #ifndef __APPLE_CC__
26695 not a universal capable compiler
26700 if ac_fn_c_try_compile "$LINENO"; then :
26702 # Check for potential -arch flags. It is not universal unless
26703 # there are at least two -arch flags with different values.
26706 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
26707 if test -n "$ac_prev"; then
26709 i?86 | x86_64 | ppc | ppc64)
26710 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
26713 ac_cv_c_bigendian=universal
26719 elif test "x$ac_word" = "x-arch"; then
26724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26725 if test $ac_cv_c_bigendian = unknown; then
26726 # See if sys/param.h defines the BYTE_ORDER macro.
26727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26728 /* end confdefs.h. */
26729 #include <sys/types.h>
26730 #include <sys/param.h>
26735 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
26736 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
26738 bogus endian macros
26745 if ac_fn_c_try_compile "$LINENO"; then :
26746 # It does; now see whether it defined to BIG_ENDIAN or not.
26747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26748 /* end confdefs.h. */
26749 #include <sys/types.h>
26750 #include <sys/param.h>
26755 #if BYTE_ORDER != BIG_ENDIAN
26763 if ac_fn_c_try_compile "$LINENO"; then :
26764 ac_cv_c_bigendian=yes
26766 ac_cv_c_bigendian=no
26768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26772 if test $ac_cv_c_bigendian = unknown; then
26773 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
26774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26775 /* end confdefs.h. */
26776 #include <limits.h>
26781 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
26782 bogus endian macros
26789 if ac_fn_c_try_compile "$LINENO"; then :
26790 # It does; now see whether it defined to _BIG_ENDIAN or not.
26791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26792 /* end confdefs.h. */
26793 #include <limits.h>
26798 #ifndef _BIG_ENDIAN
26806 if ac_fn_c_try_compile "$LINENO"; then :
26807 ac_cv_c_bigendian=yes
26809 ac_cv_c_bigendian=no
26811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26815 if test $ac_cv_c_bigendian = unknown; then
26816 # Compile a test program.
26817 if test "$cross_compiling" = yes; then :
26818 # Try to guess by grepping values from an object file.
26819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26820 /* end confdefs.h. */
26821 short int ascii_mm[] =
26822 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
26823 short int ascii_ii[] =
26824 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
26825 int use_ascii (int i) {
26826 return ascii_mm[i] + ascii_ii[i];
26828 short int ebcdic_ii[] =
26829 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
26830 short int ebcdic_mm[] =
26831 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
26832 int use_ebcdic (int i) {
26833 return ebcdic_mm[i] + ebcdic_ii[i];
26840 return use_ascii (foo) == use_ebcdic (foo);
26845 if ac_fn_c_try_compile "$LINENO"; then :
26846 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
26847 ac_cv_c_bigendian=yes
26849 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
26850 if test "$ac_cv_c_bigendian" = unknown; then
26851 ac_cv_c_bigendian=no
26853 # finding both strings is unlikely to happen, but who knows?
26854 ac_cv_c_bigendian=unknown
26858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26861 /* end confdefs.h. */
26862 $ac_includes_default
26867 /* Are we little or big endian? From Harbison&Steele. */
26871 char c[sizeof (long int)];
26874 return u.c[sizeof (long int) - 1] == 1;
26880 if ac_fn_c_try_run "$LINENO"; then :
26881 ac_cv_c_bigendian=no
26883 ac_cv_c_bigendian=yes
26885 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26886 conftest.$ac_objext conftest.beam conftest.$ac_ext
26891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
26892 $as_echo "$ac_cv_c_bigendian" >&6; }
26893 case $ac_cv_c_bigendian in #(
26896 $as_echo "#define HAVE_BIG_ENDIAN 1" >>confdefs.h
26900 $as_echo "#define HAVE_LITTLE_ENDIAN 1" >>confdefs.h
26904 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
26908 as_fn_error $? "unknown endianness
26909 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
26913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to get filesystem type" >&5
26914 $as_echo_n "checking how to get filesystem type... " >&6; }
26916 # The order of these tests is important.
26917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26918 /* end confdefs.h. */
26920 #include <sys/statvfs.h>
26921 #include <sys/fstyp.h>
26924 if ac_fn_c_try_cpp "$LINENO"; then :
26925 $as_echo "#define FSTYPE_STATVFS 1" >>confdefs.h
26929 rm -f conftest.err conftest.i conftest.$ac_ext
26930 if test $fstype = no; then
26931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26932 /* end confdefs.h. */
26934 #include <sys/statfs.h>
26935 #include <sys/fstyp.h>
26938 if ac_fn_c_try_cpp "$LINENO"; then :
26939 $as_echo "#define FSTYPE_USG_STATFS 1" >>confdefs.h
26943 rm -f conftest.err conftest.i conftest.$ac_ext
26945 if test $fstype = no; then
26946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26947 /* end confdefs.h. */
26949 #include <sys/statfs.h>
26950 #include <sys/vmount.h>
26953 if ac_fn_c_try_cpp "$LINENO"; then :
26954 $as_echo "#define FSTYPE_AIX_STATFS 1" >>confdefs.h
26958 rm -f conftest.err conftest.i conftest.$ac_ext
26960 if test $fstype = no; then
26961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26962 /* end confdefs.h. */
26964 #include <mntent.h>
26967 if ac_fn_c_try_cpp "$LINENO"; then :
26968 $as_echo "#define FSTYPE_MNTENT 1" >>confdefs.h
26972 rm -f conftest.err conftest.i conftest.$ac_ext
26974 if test $fstype = no; then
26975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26976 /* end confdefs.h. */
26977 #include <sys/mount.h>
26980 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26981 $EGREP "f_type;" >/dev/null 2>&1; then :
26982 $as_echo "#define FSTYPE_STATFS 1" >>confdefs.h
26988 if test $fstype = no; then
26989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26990 /* end confdefs.h. */
26992 #include <sys/mount.h>
26993 #include <sys/fs_types.h>
26996 if ac_fn_c_try_cpp "$LINENO"; then :
26997 $as_echo "#define FSTYPE_GETMNT 1" >>confdefs.h
27001 rm -f conftest.err conftest.i conftest.$ac_ext
27003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fstype" >&5
27004 $as_echo "$fstype" >&6; }
27006 ac_fn_c_check_header_mongrel "$LINENO" "sys/statvfs.h" "ac_cv_header_sys_statvfs_h" "$ac_includes_default"
27007 if test "x$ac_cv_header_sys_statvfs_h" = xyes; then :
27009 $as_echo "#define HAVE_SYS_STATVFS_H 1" >>confdefs.h
27015 ac_fn_c_check_decl "$LINENO" "O_CLOEXEC" "ac_cv_have_decl_O_CLOEXEC" "
27016 #ifdef HAVE_FCNTL_H
27017 # include <fcntl.h>
27021 if test "x$ac_cv_have_decl_O_CLOEXEC" = xyes; then :
27027 cat >>confdefs.h <<_ACEOF
27028 #define HAVE_DECL_O_CLOEXEC $ac_have_decl
27030 if test $ac_have_decl = 1; then :
27034 $as_echo "#define O_CLOEXEC 0" >>confdefs.h
27039 ac_fn_c_check_decl "$LINENO" "FD_CLOEXEC" "ac_cv_have_decl_FD_CLOEXEC" "
27040 #ifdef HAVE_FCNTL_H
27041 # include <fcntl.h>
27045 if test "x$ac_cv_have_decl_FD_CLOEXEC" = xyes; then :
27051 cat >>confdefs.h <<_ACEOF
27052 #define HAVE_DECL_FD_CLOEXEC $ac_have_decl
27054 if test $ac_have_decl = 1; then :
27058 $as_echo "#define FD_CLOEXEC 0" >>confdefs.h
27063 ac_fn_c_check_decl "$LINENO" "SOCK_CLOEXEC" "ac_cv_have_decl_SOCK_CLOEXEC" "
27064 #ifdef HAVE_SYS_SOCKET_H
27065 # include <sys/socket.h>
27069 if test "x$ac_cv_have_decl_SOCK_CLOEXEC" = xyes; then :
27075 cat >>confdefs.h <<_ACEOF
27076 #define HAVE_DECL_SOCK_CLOEXEC $ac_have_decl
27078 if test $ac_have_decl = 1; then :
27082 $as_echo "#define SOCK_CLOEXEC 0" >>confdefs.h
27087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for close on exec modifier for fopen()" >&5
27088 $as_echo_n "checking for close on exec modifier for fopen()... " >&6; }
27089 if ${ac_cv_feature_stream_cloexec_flag+:} false; then :
27090 $as_echo_n "(cached) " >&6
27092 if test $ac_cv_have_decl_O_CLOEXEC = yes ; then
27093 if test $ac_cv_have_decl_SOCK_CLOEXEC = yes ; then
27094 ac_cv_feature_stream_cloexec_flag="e"
27098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_feature_stream_cloexec_flag" >&5
27099 $as_echo "$ac_cv_feature_stream_cloexec_flag" >&6; }
27101 if test "x$ac_cv_feature_stream_cloexec_flag" = "xe" ; then
27103 $as_echo "#define HAVE_STREAM_CLOEXEC 0" >>confdefs.h
27108 cat >>confdefs.h <<_ACEOF
27109 #define STREAM_CLOEXEC "$ac_cv_feature_stream_cloexec_flag"
27113 ac_fn_c_check_func "$LINENO" "accept4" "ac_cv_func_accept4"
27114 if test "x$ac_cv_func_accept4" = xyes; then :
27116 $as_echo "#define HAVE_ACCEPT4 1" >>confdefs.h
27126 if test x$support_s3 = xyes; then
27128 # Check whether --with-s3 was given.
27129 if test "${with_s3+set}" = set; then :
27136 if test -f ${with_s3}/include/libs3.h; then
27137 S3_INC="-I${with_s3}/include"
27138 S3_LDFLAGS="-L${with_s3}/lib"
27139 with_s3="${with_s3}/include"
27141 with_s3="/usr/include"
27144 as_ac_Header=`$as_echo "ac_cv_header_${with_s3}/libs3.h" | $as_tr_sh`
27145 ac_fn_c_check_header_mongrel "$LINENO" "${with_s3}/libs3.h" "$as_ac_Header" "$ac_includes_default"
27146 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
27149 $as_echo "#define HAVE_LIBS3 1" >>confdefs.h
27151 S3_LIBS="${S3_LDFLAGS} -ls3"
27157 echo "libs3.h not found. s3 turned off ..."
27169 ac_fn_c_check_header_mongrel "$LINENO" "libs3.h" "ac_cv_header_libs3_h" "$ac_includes_default"
27170 if test "x$ac_cv_header_libs3_h" = xyes; then :
27172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for S3_initialize in -ls3" >&5
27173 $as_echo_n "checking for S3_initialize in -ls3... " >&6; }
27174 if ${ac_cv_lib_s3_S3_initialize+:} false; then :
27175 $as_echo_n "(cached) " >&6
27177 ac_check_lib_save_LIBS=$LIBS
27179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27180 /* end confdefs.h. */
27182 /* Override any GCC internal prototype to avoid an error.
27183 Use char because int might match the return type of a GCC
27184 builtin and then its argument prototype would still apply. */
27188 char S3_initialize ();
27192 return S3_initialize ();
27197 if ac_fn_c_try_link "$LINENO"; then :
27198 ac_cv_lib_s3_S3_initialize=yes
27200 ac_cv_lib_s3_S3_initialize=no
27202 rm -f core conftest.err conftest.$ac_objext \
27203 conftest$ac_exeext conftest.$ac_ext
27204 LIBS=$ac_check_lib_save_LIBS
27206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_s3_S3_initialize" >&5
27207 $as_echo "$ac_cv_lib_s3_S3_initialize" >&6; }
27208 if test "x$ac_cv_lib_s3_S3_initialize" = xyes; then :
27212 $as_echo "#define HAVE_LIBS3 1" >>confdefs.h
27231 ac_cpp='$CXXCPP $CPPFLAGS'
27232 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27233 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27234 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27236 for ac_func in backtrace
27238 ac_fn_cxx_check_func "$LINENO" "backtrace" "ac_cv_func_backtrace"
27239 if test "x$ac_cv_func_backtrace" = xyes; then :
27240 cat >>confdefs.h <<_ACEOF
27241 #define HAVE_BACKTRACE 1
27248 ac_cpp='$CPP $CPPFLAGS'
27249 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27250 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27251 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
27255 $as_echo_n "checking return type of signal handlers... " >&6; }
27256 if ${ac_cv_type_signal+:} false; then :
27257 $as_echo_n "(cached) " >&6
27259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27260 /* end confdefs.h. */
27261 #include <sys/types.h>
27262 #include <signal.h>
27267 return *(signal (0, 0)) (0) == 1;
27272 if ac_fn_c_try_compile "$LINENO"; then :
27273 ac_cv_type_signal=int
27275 ac_cv_type_signal=void
27277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
27280 $as_echo "$ac_cv_type_signal" >&6; }
27282 cat >>confdefs.h <<_ACEOF
27283 #define RETSIGTYPE $ac_cv_type_signal
27288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type of signal functions" >&5
27289 $as_echo_n "checking for type of signal functions... " >&6; }
27290 if ${bash_cv_signal_vintage+:} false; then :
27291 $as_echo_n "(cached) " >&6
27294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27295 /* end confdefs.h. */
27296 #include <signal.h>
27302 struct sigaction sa;
27303 sigemptyset(&ss); sigsuspend(&ss);
27304 sigaction(SIGINT, &sa, (struct sigaction *) 0);
27305 sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
27311 if ac_fn_c_try_link "$LINENO"; then :
27312 bash_cv_signal_vintage="posix"
27315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27316 /* end confdefs.h. */
27317 #include <signal.h>
27322 int mask = sigmask(SIGINT);
27323 sigsetmask(mask); sigblock(mask); sigpause(mask);
27329 if ac_fn_c_try_link "$LINENO"; then :
27330 bash_cv_signal_vintage="4.2bsd"
27333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27334 /* end confdefs.h. */
27336 #include <signal.h>
27337 RETSIGTYPE foo() { }
27342 int mask = sigmask(SIGINT);
27343 sigset(SIGINT, foo); sigrelse(SIGINT);
27344 sighold(SIGINT); sigpause(SIGINT);
27350 if ac_fn_c_try_link "$LINENO"; then :
27351 bash_cv_signal_vintage="svr3"
27353 bash_cv_signal_vintage="v7"
27356 rm -f core conftest.err conftest.$ac_objext \
27357 conftest$ac_exeext conftest.$ac_ext
27360 rm -f core conftest.err conftest.$ac_objext \
27361 conftest$ac_exeext conftest.$ac_ext
27364 rm -f core conftest.err conftest.$ac_objext \
27365 conftest$ac_exeext conftest.$ac_ext
27369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_signal_vintage" >&5
27370 $as_echo "$bash_cv_signal_vintage" >&6; }
27371 if test "$bash_cv_signal_vintage" = "posix"; then
27372 $as_echo "#define HAVE_POSIX_SIGNALS 1" >>confdefs.h
27374 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
27375 $as_echo "#define HAVE_BSD_SIGNALS 1" >>confdefs.h
27377 elif test "$bash_cv_signal_vintage" = "svr3"; then
27378 $as_echo "#define HAVE_USG_SIGHOLD 1" >>confdefs.h
27382 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
27383 if test "x$ac_cv_type_mode_t" = xyes; then :
27387 cat >>confdefs.h <<_ACEOF
27393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
27394 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
27395 if ${ac_cv_type_uid_t+:} false; then :
27396 $as_echo_n "(cached) " >&6
27398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27399 /* end confdefs.h. */
27400 #include <sys/types.h>
27403 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27404 $EGREP "uid_t" >/dev/null 2>&1; then :
27405 ac_cv_type_uid_t=yes
27407 ac_cv_type_uid_t=no
27412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
27413 $as_echo "$ac_cv_type_uid_t" >&6; }
27414 if test $ac_cv_type_uid_t = no; then
27416 $as_echo "#define uid_t int" >>confdefs.h
27419 $as_echo "#define gid_t int" >>confdefs.h
27423 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
27424 if test "x$ac_cv_type_size_t" = xyes; then :
27428 cat >>confdefs.h <<_ACEOF
27429 #define size_t unsigned int
27434 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
27435 if test "x$ac_cv_type_pid_t" = xyes; then :
27439 cat >>confdefs.h <<_ACEOF
27445 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
27446 if test "x$ac_cv_type_off_t" = xyes; then :
27450 cat >>confdefs.h <<_ACEOF
27451 #define off_t long int
27457 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
27458 if test "x$ac_cv_type_intptr_t" = xyes; then :
27460 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
27463 for ac_type in 'int' 'long int' 'long long int'; do
27464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27465 /* end confdefs.h. */
27466 $ac_includes_default
27470 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
27471 test_array [0] = 0;
27472 return test_array [0];
27478 if ac_fn_c_try_compile "$LINENO"; then :
27480 cat >>confdefs.h <<_ACEOF
27481 #define intptr_t $ac_type
27486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27487 test -z "$ac_type" && break
27493 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
27494 if test "x$ac_cv_type_uintptr_t" = xyes; then :
27496 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
27499 for ac_type in 'unsigned int' 'unsigned long int' \
27500 'unsigned long long int'; do
27501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27502 /* end confdefs.h. */
27503 $ac_includes_default
27507 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
27508 test_array [0] = 0;
27509 return test_array [0];
27515 if ac_fn_c_try_compile "$LINENO"; then :
27517 cat >>confdefs.h <<_ACEOF
27518 #define uintptr_t $ac_type
27523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27524 test -z "$ac_type" && break
27529 ac_fn_c_check_type "$LINENO" "ino_t" "ac_cv_type_ino_t" "$ac_includes_default"
27530 if test "x$ac_cv_type_ino_t" = xyes; then :
27534 cat >>confdefs.h <<_ACEOF
27535 #define ino_t unsigned long
27540 ac_fn_c_check_type "$LINENO" "dev_t" "ac_cv_type_dev_t" "$ac_includes_default"
27541 if test "x$ac_cv_type_dev_t" = xyes; then :
27545 cat >>confdefs.h <<_ACEOF
27546 #define dev_t unsigned long
27551 ac_fn_c_check_type "$LINENO" "daddr_t" "ac_cv_type_daddr_t" "$ac_includes_default"
27552 if test "x$ac_cv_type_daddr_t" = xyes; then :
27556 cat >>confdefs.h <<_ACEOF
27557 #define daddr_t long
27562 ac_fn_c_check_type "$LINENO" "major_t" "ac_cv_type_major_t" "$ac_includes_default"
27563 if test "x$ac_cv_type_major_t" = xyes; then :
27567 cat >>confdefs.h <<_ACEOF
27568 #define major_t int
27573 ac_fn_c_check_type "$LINENO" "minor_t" "ac_cv_type_minor_t" "$ac_includes_default"
27574 if test "x$ac_cv_type_minor_t" = xyes; then :
27578 cat >>confdefs.h <<_ACEOF
27579 #define minor_t int
27584 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
27585 if test "x$ac_cv_type_ssize_t" = xyes; then :
27589 cat >>confdefs.h <<_ACEOF
27590 #define ssize_t int
27595 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
27596 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
27598 cat >>confdefs.h <<_ACEOF
27599 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
27603 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
27606 case " $LIBOBJS " in
27607 *" fileblocks.$ac_objext "* ) ;;
27608 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
27615 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
27616 if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
27618 cat >>confdefs.h <<_ACEOF
27619 #define HAVE_STRUCT_STAT_ST_RDEV 1
27623 $as_echo "#define HAVE_ST_RDEV 1" >>confdefs.h
27628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
27629 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
27630 if ${ac_cv_struct_tm+:} false; then :
27631 $as_echo_n "(cached) " >&6
27633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27634 /* end confdefs.h. */
27635 #include <sys/types.h>
27642 int *p = &tm.tm_sec;
27648 if ac_fn_c_try_compile "$LINENO"; then :
27649 ac_cv_struct_tm=time.h
27651 ac_cv_struct_tm=sys/time.h
27653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
27656 $as_echo "$ac_cv_struct_tm" >&6; }
27657 if test $ac_cv_struct_tm = sys/time.h; then
27659 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
27663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
27664 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
27665 if ${ac_cv_c_const+:} false; then :
27666 $as_echo_n "(cached) " >&6
27668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27669 /* end confdefs.h. */
27675 #ifndef __cplusplus
27676 /* Ultrix mips cc rejects this sort of thing. */
27677 typedef int charset[2];
27678 const charset cs = { 0, 0 };
27679 /* SunOS 4.1.1 cc rejects this. */
27680 char const *const *pcpcc;
27682 /* NEC SVR4.0.2 mips cc rejects this. */
27683 struct point {int x, y;};
27684 static struct point const zero = {0,0};
27685 /* AIX XL C 1.02.0.0 rejects this.
27686 It does not let you subtract one const X* pointer from another in
27687 an arm of an if-expression whose if-part is not a constant
27689 const char *g = "string";
27690 pcpcc = &g + (g ? g-g : 0);
27691 /* HPUX 7.0 cc rejects these. */
27693 ppc = (char**) pcpcc;
27694 pcpcc = (char const *const *) ppc;
27695 { /* SCO 3.2v4 cc rejects this sort of thing. */
27698 char const *s = 0 ? (char *) 0 : (char const *) 0;
27703 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
27704 int x[] = {25, 17};
27705 const int *foo = &x[0];
27708 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
27709 typedef const int *iptr;
27713 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
27714 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
27715 struct s { int j; const int *ap[3]; } bx;
27716 struct s *b = &bx; b->j = 5;
27718 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
27719 const int foo = 10;
27720 if (!foo) return 0;
27722 return !cs[0] && !zero.x;
27729 if ac_fn_c_try_compile "$LINENO"; then :
27734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
27737 $as_echo "$ac_cv_c_const" >&6; }
27738 if test $ac_cv_c_const = no; then
27740 $as_echo "#define const /**/" >>confdefs.h
27744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
27745 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
27746 if ${ac_cv_c_restrict+:} false; then :
27747 $as_echo_n "(cached) " >&6
27749 ac_cv_c_restrict=no
27750 # The order here caters to the fact that C++ does not require restrict.
27751 for ac_kw in __restrict __restrict__ _Restrict restrict; do
27752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27753 /* end confdefs.h. */
27754 typedef int * int_ptr;
27755 int foo (int_ptr $ac_kw ip) {
27762 int * $ac_kw t = s;
27769 if ac_fn_c_try_compile "$LINENO"; then :
27770 ac_cv_c_restrict=$ac_kw
27772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27773 test "$ac_cv_c_restrict" != no && break
27777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
27778 $as_echo "$ac_cv_c_restrict" >&6; }
27780 case $ac_cv_c_restrict in
27782 no) $as_echo "#define restrict /**/" >>confdefs.h
27784 *) cat >>confdefs.h <<_ACEOF
27785 #define restrict $ac_cv_c_restrict
27791 # The cast to long int works around a bug in the HP C Compiler
27792 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27793 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27794 # This bug is HP SR number 8606223364.
27795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
27796 $as_echo_n "checking size of char... " >&6; }
27797 if ${ac_cv_sizeof_char+:} false; then :
27798 $as_echo_n "(cached) " >&6
27800 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
27803 if test "$ac_cv_type_char" = yes; then
27804 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27805 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27806 as_fn_error 77 "cannot compute sizeof (char)
27807 See \`config.log' for more details" "$LINENO" 5; }
27809 ac_cv_sizeof_char=0
27814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
27815 $as_echo "$ac_cv_sizeof_char" >&6; }
27819 cat >>confdefs.h <<_ACEOF
27820 #define SIZEOF_CHAR $ac_cv_sizeof_char
27824 # The cast to long int works around a bug in the HP C Compiler
27825 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27826 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27827 # This bug is HP SR number 8606223364.
27828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short int" >&5
27829 $as_echo_n "checking size of short int... " >&6; }
27830 if ${ac_cv_sizeof_short_int+:} false; then :
27831 $as_echo_n "(cached) " >&6
27833 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short int))" "ac_cv_sizeof_short_int" "$ac_includes_default"; then :
27836 if test "$ac_cv_type_short_int" = yes; then
27837 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27838 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27839 as_fn_error 77 "cannot compute sizeof (short int)
27840 See \`config.log' for more details" "$LINENO" 5; }
27842 ac_cv_sizeof_short_int=0
27847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short_int" >&5
27848 $as_echo "$ac_cv_sizeof_short_int" >&6; }
27852 cat >>confdefs.h <<_ACEOF
27853 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
27857 # The cast to long int works around a bug in the HP C Compiler
27858 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27859 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27860 # This bug is HP SR number 8606223364.
27861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
27862 $as_echo_n "checking size of int... " >&6; }
27863 if ${ac_cv_sizeof_int+:} false; then :
27864 $as_echo_n "(cached) " >&6
27866 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
27869 if test "$ac_cv_type_int" = yes; then
27870 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27871 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27872 as_fn_error 77 "cannot compute sizeof (int)
27873 See \`config.log' for more details" "$LINENO" 5; }
27880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
27881 $as_echo "$ac_cv_sizeof_int" >&6; }
27885 cat >>confdefs.h <<_ACEOF
27886 #define SIZEOF_INT $ac_cv_sizeof_int
27890 # The cast to long int works around a bug in the HP C Compiler
27891 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27892 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27893 # This bug is HP SR number 8606223364.
27894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long int" >&5
27895 $as_echo_n "checking size of long int... " >&6; }
27896 if ${ac_cv_sizeof_long_int+:} false; then :
27897 $as_echo_n "(cached) " >&6
27899 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long int))" "ac_cv_sizeof_long_int" "$ac_includes_default"; then :
27902 if test "$ac_cv_type_long_int" = yes; then
27903 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27904 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27905 as_fn_error 77 "cannot compute sizeof (long int)
27906 See \`config.log' for more details" "$LINENO" 5; }
27908 ac_cv_sizeof_long_int=0
27913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_int" >&5
27914 $as_echo "$ac_cv_sizeof_long_int" >&6; }
27918 cat >>confdefs.h <<_ACEOF
27919 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
27923 # The cast to long int works around a bug in the HP C Compiler
27924 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27925 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27926 # This bug is HP SR number 8606223364.
27927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long int" >&5
27928 $as_echo_n "checking size of long long int... " >&6; }
27929 if ${ac_cv_sizeof_long_long_int+:} false; then :
27930 $as_echo_n "(cached) " >&6
27932 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long int))" "ac_cv_sizeof_long_long_int" "$ac_includes_default"; then :
27935 if test "$ac_cv_type_long_long_int" = yes; then
27936 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27937 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27938 as_fn_error 77 "cannot compute sizeof (long long int)
27939 See \`config.log' for more details" "$LINENO" 5; }
27941 ac_cv_sizeof_long_long_int=0
27946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long_int" >&5
27947 $as_echo "$ac_cv_sizeof_long_long_int" >&6; }
27951 cat >>confdefs.h <<_ACEOF
27952 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
27956 # The cast to long int works around a bug in the HP C Compiler
27957 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27958 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27959 # This bug is HP SR number 8606223364.
27960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int *" >&5
27961 $as_echo_n "checking size of int *... " >&6; }
27962 if ${ac_cv_sizeof_int_p+:} false; then :
27963 $as_echo_n "(cached) " >&6
27965 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int *))" "ac_cv_sizeof_int_p" "$ac_includes_default"; then :
27968 if test "$ac_cv_type_int_p" = yes; then
27969 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27970 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27971 as_fn_error 77 "cannot compute sizeof (int *)
27972 See \`config.log' for more details" "$LINENO" 5; }
27974 ac_cv_sizeof_int_p=0
27979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int_p" >&5
27980 $as_echo "$ac_cv_sizeof_int_p" >&6; }
27984 cat >>confdefs.h <<_ACEOF
27985 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
27990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int type" >&5
27991 $as_echo_n "checking for u_int type... " >&6; }
27992 if ${ac_cv_have_u_int+:} false; then :
27993 $as_echo_n "(cached) " >&6
27996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27997 /* end confdefs.h. */
27999 #include <sys/types.h>
28011 if ac_fn_c_try_compile "$LINENO"; then :
28013 ac_cv_have_u_int="yes"
28017 ac_cv_have_u_int="no"
28021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_int" >&5
28026 $as_echo "$ac_cv_have_u_int" >&6; }
28027 if test "x$ac_cv_have_u_int" = "xyes" ; then
28028 $as_echo "#define HAVE_U_INT 1" >>confdefs.h
28033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t type" >&5
28034 $as_echo_n "checking for intmax_t type... " >&6; }
28035 if ${ac_cv_have_intmax_t+:} false; then :
28036 $as_echo_n "(cached) " >&6
28039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28040 /* end confdefs.h. */
28042 #include <sys/types.h>
28054 if ac_fn_c_try_compile "$LINENO"; then :
28056 ac_cv_have_intmax_t="yes"
28060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28061 /* end confdefs.h. */
28063 #include <stdint.h>
28075 if ac_fn_c_try_compile "$LINENO"; then :
28077 ac_cv_have_intmax_t="yes"
28081 ac_cv_have_intmax_t="no"
28085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_intmax_t" >&5
28094 $as_echo "$ac_cv_have_intmax_t" >&6; }
28095 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
28096 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
28101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_intmax_t type" >&5
28102 $as_echo_n "checking for u_intmax_t type... " >&6; }
28103 if ${ac_cv_have_u_intmax_t+:} false; then :
28104 $as_echo_n "(cached) " >&6
28107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28108 /* end confdefs.h. */
28110 #include <sys/types.h>
28116 u_intmax_t a; a = 1;
28122 if ac_fn_c_try_compile "$LINENO"; then :
28124 ac_cv_have_u_intmax_t="yes"
28128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28129 /* end confdefs.h. */
28131 #include <stdint.h>
28137 u_intmax_t a; a = 1;
28143 if ac_fn_c_try_compile "$LINENO"; then :
28145 ac_cv_have_u_intmax_t="yes"
28149 ac_cv_have_u_intmax_t="no"
28153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_intmax_t" >&5
28162 $as_echo "$ac_cv_have_u_intmax_t" >&6; }
28163 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
28164 $as_echo "#define HAVE_U_INTMAX_T 1" >>confdefs.h
28169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intXX_t types" >&5
28170 $as_echo_n "checking for intXX_t types... " >&6; }
28171 if ${ac_cv_have_intxx_t+:} false; then :
28172 $as_echo_n "(cached) " >&6
28175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28176 /* end confdefs.h. */
28178 #include <sys/types.h>
28184 int8_t a; int16_t b; int32_t c; a = b = c = 1;
28190 if ac_fn_c_try_compile "$LINENO"; then :
28192 ac_cv_have_intxx_t="yes"
28196 ac_cv_have_intxx_t="no"
28200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_intxx_t" >&5
28205 $as_echo "$ac_cv_have_intxx_t" >&6; }
28206 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
28207 $as_echo "#define HAVE_INTXX_T 1" >>confdefs.h
28212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t type" >&5
28213 $as_echo_n "checking for int64_t type... " >&6; }
28214 if ${ac_cv_have_int64_t+:} false; then :
28215 $as_echo_n "(cached) " >&6
28218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28219 /* end confdefs.h. */
28221 #include <sys/types.h>
28233 if ac_fn_c_try_compile "$LINENO"; then :
28235 ac_cv_have_int64_t="yes"
28239 ac_cv_have_int64_t="no"
28243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_int64_t" >&5
28248 $as_echo "$ac_cv_have_int64_t" >&6; }
28249 if test "x$ac_cv_have_int64_t" = "xyes" ; then
28250 $as_echo "#define HAVE_INT64_T 1" >>confdefs.h
28255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_intXX_t types" >&5
28256 $as_echo_n "checking for u_intXX_t types... " >&6; }
28257 if ${ac_cv_have_u_intxx_t+:} false; then :
28258 $as_echo_n "(cached) " >&6
28261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28262 /* end confdefs.h. */
28264 #include <sys/types.h>
28270 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
28276 if ac_fn_c_try_compile "$LINENO"; then :
28278 ac_cv_have_u_intxx_t="yes"
28282 ac_cv_have_u_intxx_t="no"
28286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_intxx_t" >&5
28291 $as_echo "$ac_cv_have_u_intxx_t" >&6; }
28292 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
28293 $as_echo "#define HAVE_U_INTXX_T 1" >>confdefs.h
28298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int64_t types" >&5
28299 $as_echo_n "checking for u_int64_t types... " >&6; }
28300 if ${ac_cv_have_u_int64_t+:} false; then :
28301 $as_echo_n "(cached) " >&6
28304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28305 /* end confdefs.h. */
28307 #include <sys/types.h>
28313 u_int64_t a; a = 1;
28319 if ac_fn_c_try_compile "$LINENO"; then :
28321 ac_cv_have_u_int64_t="yes"
28325 ac_cv_have_u_int64_t="no"
28329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_int64_t" >&5
28334 $as_echo "$ac_cv_have_u_int64_t" >&6; }
28335 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
28336 $as_echo "#define HAVE_U_INT64_T 1" >>confdefs.h
28341 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
28342 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
28344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
28345 $as_echo_n "checking for intXX_t and u_intXX_t types in sys/bitypes.h... " >&6; }
28346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28347 /* end confdefs.h. */
28349 #include <sys/bitypes.h>
28355 int8_t a; int16_t b; int32_t c;
28356 u_int8_t e; u_int16_t f; u_int32_t g;
28357 a = b = c = e = f = g = 1;
28363 if ac_fn_c_try_compile "$LINENO"; then :
28365 $as_echo "#define HAVE_U_INTXX_T 1" >>confdefs.h
28367 $as_echo "#define HAVE_INTXX_T 1" >>confdefs.h
28369 $as_echo "#define HAVE_SYS_BITYPES_H 1" >>confdefs.h
28371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28372 $as_echo "yes" >&6; }
28376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28377 $as_echo "no" >&6; }
28381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28384 if test -z "$have_u_intxx_t" ; then
28385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uintXX_t types" >&5
28386 $as_echo_n "checking for uintXX_t types... " >&6; }
28387 if ${ac_cv_have_uintxx_t+:} false; then :
28388 $as_echo_n "(cached) " >&6
28391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28392 /* end confdefs.h. */
28394 #include <sys/types.h>
28400 uint8_t a; uint16_t b;
28401 uint32_t c; a = b = c = 1;
28407 if ac_fn_c_try_compile "$LINENO"; then :
28409 ac_cv_have_uintxx_t="yes"
28413 ac_cv_have_uintxx_t="no"
28417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_uintxx_t" >&5
28422 $as_echo "$ac_cv_have_uintxx_t" >&6; }
28423 if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
28424 $as_echo "#define HAVE_UINTXX_T 1" >>confdefs.h
28429 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
28430 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
28432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
28433 $as_echo_n "checking for int64_t and u_int64_t types in sys/bitypes.h... " >&6; }
28434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28435 /* end confdefs.h. */
28437 #include <sys/bitypes.h>
28443 int64_t a; u_int64_t b;
28450 if ac_fn_c_try_compile "$LINENO"; then :
28452 $as_echo "#define HAVE_U_INT64_T 1" >>confdefs.h
28454 $as_echo "#define HAVE_INT64_T 1" >>confdefs.h
28456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28457 $as_echo "yes" >&6; }
28461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28462 $as_echo "no" >&6; }
28466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28469 if (test -z "$have_uintxx_t" && \
28470 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
28472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uintXX_t types in sys/bitypes.h" >&5
28473 $as_echo_n "checking for uintXX_t types in sys/bitypes.h... " >&6; }
28474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28475 /* end confdefs.h. */
28477 #include <sys/bitypes.h>
28483 uint8_t a; uint16_t b;
28484 uint32_t c; a = b = c = 1;
28490 if ac_fn_c_try_compile "$LINENO"; then :
28492 $as_echo "#define HAVE_UINTXX_T 1" >>confdefs.h
28494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28495 $as_echo "yes" >&6; }
28499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28500 $as_echo "no" >&6; }
28504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28523 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28524 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28525 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
28526 cat >>confdefs.h <<_ACEOF
28527 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28531 echo 'configure: cannot find needed function.'; exit 1
28537 ac_fn_c_check_decl "$LINENO" "F_CLOSEM" "ac_cv_have_decl_F_CLOSEM" "#include <fcntl.h>
28540 if test "x$ac_cv_have_decl_F_CLOSEM" = xyes; then :
28542 $as_echo "#define HAVE_FCNTL_F_CLOSEM 1" >>confdefs.h
28547 ac_fn_c_check_decl "$LINENO" "F_SETLK" "ac_cv_have_decl_F_SETLK" "#include <fcntl.h>
28550 if test "x$ac_cv_have_decl_F_SETLK" = xyes; then :
28552 $as_echo "#define HAVE_FCNTL_LOCK 1" >>confdefs.h
28557 ac_fn_c_check_func "$LINENO" "closefrom" "ac_cv_func_closefrom"
28558 if test "x$ac_cv_func_closefrom" = xyes; then :
28560 $as_echo "#define HAVE_CLOSEFROM 1" >>confdefs.h
28564 for ac_func in getpagesize
28566 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
28567 if test "x$ac_cv_func_getpagesize" = xyes; then :
28568 cat >>confdefs.h <<_ACEOF
28569 #define HAVE_GETPAGESIZE 1
28572 $as_echo "#define HAVE_GETPAGESIZE 1" >>confdefs.h
28577 for ac_func in malloc_trim
28579 ac_fn_c_check_func "$LINENO" "malloc_trim" "ac_cv_func_malloc_trim"
28580 if test "x$ac_cv_func_malloc_trim" = xyes; then :
28581 cat >>confdefs.h <<_ACEOF
28582 #define HAVE_MALLOC_TRIM 1
28585 $as_echo "#define HAVE_MALLOC_TRIM 1" >>confdefs.h
28591 for ac_func in fchdir
28593 ac_fn_c_check_func "$LINENO" "fchdir" "ac_cv_func_fchdir"
28594 if test "x$ac_cv_func_fchdir" = xyes; then :
28595 cat >>confdefs.h <<_ACEOF
28596 #define HAVE_FCHDIR 1
28598 $as_echo "#define HAVE_FCHDIR 1" >>confdefs.h
28603 for ac_func in strtoll
28605 ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll"
28606 if test "x$ac_cv_func_strtoll" = xyes; then :
28607 cat >>confdefs.h <<_ACEOF
28608 #define HAVE_STRTOLL 1
28610 $as_echo "#define HAVE_STRTOLL 1" >>confdefs.h
28615 for ac_func in posix_fadvise
28617 ac_fn_c_check_func "$LINENO" "posix_fadvise" "ac_cv_func_posix_fadvise"
28618 if test "x$ac_cv_func_posix_fadvise" = xyes; then :
28619 cat >>confdefs.h <<_ACEOF
28620 #define HAVE_POSIX_FADVISE 1
28626 for ac_func in posix_fallocate
28628 ac_fn_c_check_func "$LINENO" "posix_fallocate" "ac_cv_func_posix_fallocate"
28629 if test "x$ac_cv_func_posix_fallocate" = xyes; then :
28630 cat >>confdefs.h <<_ACEOF
28631 #define HAVE_POSIX_FALLOCATE 1
28637 for ac_func in fdatasync
28639 ac_fn_c_check_func "$LINENO" "fdatasync" "ac_cv_func_fdatasync"
28640 if test "x$ac_cv_func_fdatasync" = xyes; then :
28641 cat >>confdefs.h <<_ACEOF
28642 #define HAVE_FDATASYNC 1
28648 for ac_func in realpath
28650 ac_fn_c_check_func "$LINENO" "realpath" "ac_cv_func_realpath"
28651 if test "x$ac_cv_func_realpath" = xyes; then :
28652 cat >>confdefs.h <<_ACEOF
28653 #define HAVE_REALPATH 1
28659 for ac_func in getrlimit
28661 ac_fn_c_check_func "$LINENO" "getrlimit" "ac_cv_func_getrlimit"
28662 if test "x$ac_cv_func_getrlimit" = xyes; then :
28663 cat >>confdefs.h <<_ACEOF
28664 #define HAVE_GETRLIMIT 1
28671 for ac_func in chflags
28673 ac_fn_c_check_func "$LINENO" "chflags" "ac_cv_func_chflags"
28674 if test "x$ac_cv_func_chflags" = xyes; then :
28675 cat >>confdefs.h <<_ACEOF
28676 #define HAVE_CHFLAGS 1
28683 for ac_func in snprintf vsnprintf gethostid fseeko
28685 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28686 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28687 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
28688 cat >>confdefs.h <<_ACEOF
28689 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
28697 $as_echo_n "checking for va_copy... " >&6; }
28698 if ${ba_cv_va_copy+:} false; then :
28699 $as_echo_n "(cached) " >&6
28702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28703 /* end confdefs.h. */
28705 #include <stdarg.h>
28706 void use_va_copy(va_list args){va_list args2; va_copy(args2,args); va_end(args2);}
28707 void call_use_va_copy(int junk,...){va_list args; va_start(args,junk); use_va_copy(args); va_end(args);}
28713 call_use_va_copy(1,2,3)
28719 if ac_fn_c_try_link "$LINENO"; then :
28729 rm -f core conftest.err conftest.$ac_objext \
28730 conftest$ac_exeext conftest.$ac_ext
28734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_va_copy" >&5
28735 $as_echo "$ba_cv_va_copy" >&6; }
28736 test $ba_cv_va_copy = yes &&
28737 $as_echo "#define HAVE_VA_COPY 1" >>confdefs.h
28740 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
28742 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28743 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28744 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
28745 cat >>confdefs.h <<_ACEOF
28746 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28753 # If resolver functions are not in libc check for -lnsl or -lresolv.
28754 ac_fn_c_check_func "$LINENO" "gethostbyname_r" "ac_cv_func_gethostbyname_r"
28755 if test "x$ac_cv_func_gethostbyname_r" = xyes; then :
28756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using libc's resolver" >&5
28757 $as_echo "using libc's resolver" >&6; }
28759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname_r in -lnsl" >&5
28760 $as_echo_n "checking for gethostbyname_r in -lnsl... " >&6; }
28761 if ${ac_cv_lib_nsl_gethostbyname_r+:} false; then :
28762 $as_echo_n "(cached) " >&6
28764 ac_check_lib_save_LIBS=$LIBS
28766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28767 /* end confdefs.h. */
28769 /* Override any GCC internal prototype to avoid an error.
28770 Use char because int might match the return type of a GCC
28771 builtin and then its argument prototype would still apply. */
28775 char gethostbyname_r ();
28779 return gethostbyname_r ();
28784 if ac_fn_c_try_link "$LINENO"; then :
28785 ac_cv_lib_nsl_gethostbyname_r=yes
28787 ac_cv_lib_nsl_gethostbyname_r=no
28789 rm -f core conftest.err conftest.$ac_objext \
28790 conftest$ac_exeext conftest.$ac_ext
28791 LIBS=$ac_check_lib_save_LIBS
28793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
28794 $as_echo "$ac_cv_lib_nsl_gethostbyname_r" >&6; }
28795 if test "x$ac_cv_lib_nsl_gethostbyname_r" = xyes; then :
28796 cat >>confdefs.h <<_ACEOF
28797 #define HAVE_LIBNSL 1
28804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname_r in -lresolv" >&5
28805 $as_echo_n "checking for gethostbyname_r in -lresolv... " >&6; }
28806 if ${ac_cv_lib_resolv_gethostbyname_r+:} false; then :
28807 $as_echo_n "(cached) " >&6
28809 ac_check_lib_save_LIBS=$LIBS
28810 LIBS="-lresolv $LIBS"
28811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28812 /* end confdefs.h. */
28814 /* Override any GCC internal prototype to avoid an error.
28815 Use char because int might match the return type of a GCC
28816 builtin and then its argument prototype would still apply. */
28820 char gethostbyname_r ();
28824 return gethostbyname_r ();
28829 if ac_fn_c_try_link "$LINENO"; then :
28830 ac_cv_lib_resolv_gethostbyname_r=yes
28832 ac_cv_lib_resolv_gethostbyname_r=no
28834 rm -f core conftest.err conftest.$ac_objext \
28835 conftest$ac_exeext conftest.$ac_ext
28836 LIBS=$ac_check_lib_save_LIBS
28838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
28839 $as_echo "$ac_cv_lib_resolv_gethostbyname_r" >&6; }
28840 if test "x$ac_cv_lib_resolv_gethostbyname_r" = xyes; then :
28841 cat >>confdefs.h <<_ACEOF
28842 #define HAVE_LIBRESOLV 1
28845 LIBS="-lresolv $LIBS"
28852 for ac_func in inet_pton
28854 ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton"
28855 if test "x$ac_cv_func_inet_pton" = xyes; then :
28856 cat >>confdefs.h <<_ACEOF
28857 #define HAVE_INET_PTON 1
28859 $as_echo "#define HAVE_INET_PTON 1" >>confdefs.h
28864 for ac_func in inet_ntop
28866 ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
28867 if test "x$ac_cv_func_inet_ntop" = xyes; then :
28868 cat >>confdefs.h <<_ACEOF
28869 #define HAVE_INET_NTOP 1
28871 $as_echo "#define HAVE_INET_NTOP 1" >>confdefs.h
28876 for ac_func in gethostbyname2
28878 ac_fn_c_check_func "$LINENO" "gethostbyname2" "ac_cv_func_gethostbyname2"
28879 if test "x$ac_cv_func_gethostbyname2" = xyes; then :
28880 cat >>confdefs.h <<_ACEOF
28881 #define HAVE_GETHOSTBYNAME2 1
28883 $as_echo "#define HAVE_GETHOSTBYNAME2 1" >>confdefs.h
28888 for ac_func in getnameinfo
28890 ac_fn_c_check_func "$LINENO" "getnameinfo" "ac_cv_func_getnameinfo"
28891 if test "x$ac_cv_func_getnameinfo" = xyes; then :
28892 cat >>confdefs.h <<_ACEOF
28893 #define HAVE_GETNAMEINFO 1
28895 $as_echo "#define HAVE_GETNAMEINFO 1" >>confdefs.h
28902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr has a sa_len field" >&5
28903 $as_echo_n "checking for struct sockaddr has a sa_len field... " >&6; }
28904 if ${ac_cv_struct_sockaddr_sa_len+:} false; then :
28905 $as_echo_n "(cached) " >&6
28908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28909 /* end confdefs.h. */
28911 #include <sys/socket.h>
28917 struct sockaddr s; s.sa_len;
28923 if ac_fn_c_try_compile "$LINENO"; then :
28925 ac_cv_struct_sockaddr_sa_len=yes
28928 ac_cv_struct_sockaddr_sa_len=no
28932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_sockaddr_sa_len" >&5
28937 $as_echo "$ac_cv_struct_sockaddr_sa_len" >&6; }
28939 if test $ac_cv_struct_sockaddr_sa_len = yes; then
28941 $as_echo "#define HAVE_SA_LEN 1" >>confdefs.h
28945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getaddrinfo" >&5
28946 $as_echo_n "checking for working getaddrinfo... " >&6; }
28947 if ${ac_cv_working_getaddrinfo+:} false; then :
28948 $as_echo_n "(cached) " >&6
28951 if test "$cross_compiling" = yes; then :
28953 ac_cv_working_getaddrinfo="yes"
28957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28958 /* end confdefs.h. */
28961 #include <string.h>
28962 #include <sys/types.h>
28963 #include <sys/socket.h>
28966 struct addrinfo hints, *ai;
28969 memset(&hints, 0, sizeof(hints));
28970 hints.ai_family = AF_UNSPEC;
28971 hints.ai_socktype = SOCK_STREAM;
28972 error = getaddrinfo("127.0.0.1", NULL, &hints, &ai);
28976 if (ai->ai_addr->sa_family != AF_INET) {
28983 if ac_fn_c_try_run "$LINENO"; then :
28985 ac_cv_working_getaddrinfo="yes"
28989 ac_cv_working_getaddrinfo="no"
28992 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28993 conftest.$ac_objext conftest.beam conftest.$ac_ext
28999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_getaddrinfo" >&5
29000 $as_echo "$ac_cv_working_getaddrinfo" >&6; }
29001 ac_fn_c_check_func "$LINENO" "gai_strerror" "ac_cv_func_gai_strerror"
29002 if test "x$ac_cv_func_gai_strerror" = xyes; then :
29004 $as_echo "#define HAVE_GAI_STRERROR 1" >>confdefs.h
29009 if test "$ac_cv_working_getaddrinfo" = "yes"; then
29010 if test "$ac_cv_func_gai_strerror" != "yes"; then
29011 ac_cv_working_getaddrinfo="no"
29014 $as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h
29019 for ac_func in strftime
29021 ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
29022 if test "x$ac_cv_func_strftime" = xyes; then :
29023 cat >>confdefs.h <<_ACEOF
29024 #define HAVE_STRFTIME 1
29028 # strftime is in -lintl on SCO UNIX.
29029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
29030 $as_echo_n "checking for strftime in -lintl... " >&6; }
29031 if ${ac_cv_lib_intl_strftime+:} false; then :
29032 $as_echo_n "(cached) " >&6
29034 ac_check_lib_save_LIBS=$LIBS
29035 LIBS="-lintl $LIBS"
29036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29037 /* end confdefs.h. */
29039 /* Override any GCC internal prototype to avoid an error.
29040 Use char because int might match the return type of a GCC
29041 builtin and then its argument prototype would still apply. */
29049 return strftime ();
29054 if ac_fn_c_try_link "$LINENO"; then :
29055 ac_cv_lib_intl_strftime=yes
29057 ac_cv_lib_intl_strftime=no
29059 rm -f core conftest.err conftest.$ac_objext \
29060 conftest$ac_exeext conftest.$ac_ext
29061 LIBS=$ac_check_lib_save_LIBS
29063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
29064 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
29065 if test "x$ac_cv_lib_intl_strftime" = xyes; then :
29066 $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
29068 LIBS="-lintl $LIBS"
29074 for ac_func in vprintf
29076 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
29077 if test "x$ac_cv_func_vprintf" = xyes; then :
29078 cat >>confdefs.h <<_ACEOF
29079 #define HAVE_VPRINTF 1
29082 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
29083 if test "x$ac_cv_func__doprnt" = xyes; then :
29085 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
29093 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
29094 # for constant arguments. Useless!
29095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
29096 $as_echo_n "checking for working alloca.h... " >&6; }
29097 if ${ac_cv_working_alloca_h+:} false; then :
29098 $as_echo_n "(cached) " >&6
29100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29101 /* end confdefs.h. */
29102 #include <alloca.h>
29106 char *p = (char *) alloca (2 * sizeof (int));
29112 if ac_fn_c_try_link "$LINENO"; then :
29113 ac_cv_working_alloca_h=yes
29115 ac_cv_working_alloca_h=no
29117 rm -f core conftest.err conftest.$ac_objext \
29118 conftest$ac_exeext conftest.$ac_ext
29120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
29121 $as_echo "$ac_cv_working_alloca_h" >&6; }
29122 if test $ac_cv_working_alloca_h = yes; then
29124 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
29128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
29129 $as_echo_n "checking for alloca... " >&6; }
29130 if ${ac_cv_func_alloca_works+:} false; then :
29131 $as_echo_n "(cached) " >&6
29133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29134 /* end confdefs.h. */
29136 # define alloca __builtin_alloca
29139 # include <malloc.h>
29140 # define alloca _alloca
29142 # ifdef HAVE_ALLOCA_H
29143 # include <alloca.h>
29148 # ifndef alloca /* predefined by HP cc +Olibcalls */
29149 void *alloca (size_t);
29159 char *p = (char *) alloca (1);
29165 if ac_fn_c_try_link "$LINENO"; then :
29166 ac_cv_func_alloca_works=yes
29168 ac_cv_func_alloca_works=no
29170 rm -f core conftest.err conftest.$ac_objext \
29171 conftest$ac_exeext conftest.$ac_ext
29173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
29174 $as_echo "$ac_cv_func_alloca_works" >&6; }
29176 if test $ac_cv_func_alloca_works = yes; then
29178 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
29181 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
29182 # that cause trouble. Some versions do not even contain alloca or
29183 # contain a buggy version. If you still want to use their alloca,
29184 # use ar to extract alloca.o from them instead of compiling alloca.c.
29186 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
29188 $as_echo "#define C_ALLOCA 1" >>confdefs.h
29191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
29192 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
29193 if ${ac_cv_os_cray+:} false; then :
29194 $as_echo_n "(cached) " >&6
29196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29197 /* end confdefs.h. */
29198 #if defined CRAY && ! defined CRAY2
29205 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29206 $EGREP "webecray" >/dev/null 2>&1; then :
29214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
29215 $as_echo "$ac_cv_os_cray" >&6; }
29216 if test $ac_cv_os_cray = yes; then
29217 for ac_func in _getb67 GETB67 getb67; do
29218 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29219 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29220 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
29222 cat >>confdefs.h <<_ACEOF
29223 #define CRAY_STACKSEG_END $ac_func
29232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
29233 $as_echo_n "checking stack direction for C alloca... " >&6; }
29234 if ${ac_cv_c_stack_direction+:} false; then :
29235 $as_echo_n "(cached) " >&6
29237 if test "$cross_compiling" = yes; then :
29238 ac_cv_c_stack_direction=0
29240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29241 /* end confdefs.h. */
29242 $ac_includes_default
29244 find_stack_direction (int *addr, int depth)
29246 int dir, dummy = 0;
29249 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
29250 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
29251 return dir + dummy;
29255 main (int argc, char **argv)
29257 return find_stack_direction (0, argc + !argv + 20) < 0;
29260 if ac_fn_c_try_run "$LINENO"; then :
29261 ac_cv_c_stack_direction=1
29263 ac_cv_c_stack_direction=-1
29265 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
29266 conftest.$ac_objext conftest.beam conftest.$ac_ext
29270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
29271 $as_echo "$ac_cv_c_stack_direction" >&6; }
29272 cat >>confdefs.h <<_ACEOF
29273 #define STACK_DIRECTION $ac_cv_c_stack_direction
29279 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
29280 # -lseq on Dynix/PTX, -lgen on Unixware.
29281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getmntent" >&5
29282 $as_echo_n "checking for library containing getmntent... " >&6; }
29283 if ${ac_cv_search_getmntent+:} false; then :
29284 $as_echo_n "(cached) " >&6
29286 ac_func_search_save_LIBS=$LIBS
29287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29288 /* end confdefs.h. */
29290 /* Override any GCC internal prototype to avoid an error.
29291 Use char because int might match the return type of a GCC
29292 builtin and then its argument prototype would still apply. */
29300 return getmntent ();
29305 for ac_lib in '' sun seq gen; do
29306 if test -z "$ac_lib"; then
29307 ac_res="none required"
29310 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
29312 if ac_fn_c_try_link "$LINENO"; then :
29313 ac_cv_search_getmntent=$ac_res
29315 rm -f core conftest.err conftest.$ac_objext \
29317 if ${ac_cv_search_getmntent+:} false; then :
29321 if ${ac_cv_search_getmntent+:} false; then :
29324 ac_cv_search_getmntent=no
29326 rm conftest.$ac_ext
29327 LIBS=$ac_func_search_save_LIBS
29329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getmntent" >&5
29330 $as_echo "$ac_cv_search_getmntent" >&6; }
29331 ac_res=$ac_cv_search_getmntent
29332 if test "$ac_res" != no; then :
29333 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
29334 ac_cv_func_getmntent=yes
29336 $as_echo "#define HAVE_GETMNTENT 1" >>confdefs.h
29339 ac_cv_func_getmntent=no
29343 for ac_func in getmntinfo
29345 ac_fn_c_check_func "$LINENO" "getmntinfo" "ac_cv_func_getmntinfo"
29346 if test "x$ac_cv_func_getmntinfo" = xyes; then :
29347 cat >>confdefs.h <<_ACEOF
29348 #define HAVE_GETMNTINFO 1
29350 $as_echo "#define HAVE_GETMNTINFO 1" >>confdefs.h
29355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
29356 $as_echo_n "checking whether closedir returns void... " >&6; }
29357 if ${ac_cv_func_closedir_void+:} false; then :
29358 $as_echo_n "(cached) " >&6
29360 if test "$cross_compiling" = yes; then :
29361 ac_cv_func_closedir_void=yes
29363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29364 /* end confdefs.h. */
29365 $ac_includes_default
29366 #include <$ac_header_dirent>
29367 #ifndef __cplusplus
29374 return closedir (opendir (".")) != 0;
29379 if ac_fn_c_try_run "$LINENO"; then :
29380 ac_cv_func_closedir_void=no
29382 ac_cv_func_closedir_void=yes
29384 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
29385 conftest.$ac_objext conftest.beam conftest.$ac_ext
29389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
29390 $as_echo "$ac_cv_func_closedir_void" >&6; }
29391 if test $ac_cv_func_closedir_void = yes; then
29393 $as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
29397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
29398 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
29399 if ${ac_cv_func_setpgrp_void+:} false; then :
29400 $as_echo_n "(cached) " >&6
29402 if test "$cross_compiling" = yes; then :
29403 as_fn_error $? "cannot check setpgrp when cross compiling" "$LINENO" 5
29405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29406 /* end confdefs.h. */
29407 $ac_includes_default
29411 /* If this system has a BSD-style setpgrp which takes arguments,
29412 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
29413 exit successfully. */
29414 return setpgrp (1,1) != -1;
29419 if ac_fn_c_try_run "$LINENO"; then :
29420 ac_cv_func_setpgrp_void=no
29422 ac_cv_func_setpgrp_void=yes
29424 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
29425 conftest.$ac_objext conftest.beam conftest.$ac_ext
29429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
29430 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
29431 if test $ac_cv_func_setpgrp_void = yes; then
29433 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
29436 # AC_FUNC_FNMATCH dnl use local version
29438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettext in -lintl" >&5
29439 $as_echo_n "checking for gettext in -lintl... " >&6; }
29440 if ${ac_cv_lib_intl_gettext+:} false; then :
29441 $as_echo_n "(cached) " >&6
29443 ac_check_lib_save_LIBS=$LIBS
29444 LIBS="-lintl $LIBS"
29445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29446 /* end confdefs.h. */
29448 /* Override any GCC internal prototype to avoid an error.
29449 Use char because int might match the return type of a GCC
29450 builtin and then its argument prototype would still apply. */
29463 if ac_fn_c_try_link "$LINENO"; then :
29464 ac_cv_lib_intl_gettext=yes
29466 ac_cv_lib_intl_gettext=no
29468 rm -f core conftest.err conftest.$ac_objext \
29469 conftest$ac_exeext conftest.$ac_ext
29470 LIBS=$ac_check_lib_save_LIBS
29472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_gettext" >&5
29473 $as_echo "$ac_cv_lib_intl_gettext" >&6; }
29474 if test "x$ac_cv_lib_intl_gettext" = xyes; then :
29475 LIBS="$LIBS -lintl"
29479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpwnam in -lsun" >&5
29480 $as_echo_n "checking for getpwnam in -lsun... " >&6; }
29481 if ${ac_cv_lib_sun_getpwnam+:} false; then :
29482 $as_echo_n "(cached) " >&6
29484 ac_check_lib_save_LIBS=$LIBS
29486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29487 /* end confdefs.h. */
29489 /* Override any GCC internal prototype to avoid an error.
29490 Use char because int might match the return type of a GCC
29491 builtin and then its argument prototype would still apply. */
29499 return getpwnam ();
29504 if ac_fn_c_try_link "$LINENO"; then :
29505 ac_cv_lib_sun_getpwnam=yes
29507 ac_cv_lib_sun_getpwnam=no
29509 rm -f core conftest.err conftest.$ac_objext \
29510 conftest$ac_exeext conftest.$ac_ext
29511 LIBS=$ac_check_lib_save_LIBS
29513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sun_getpwnam" >&5
29514 $as_echo "$ac_cv_lib_sun_getpwnam" >&6; }
29515 if test "x$ac_cv_lib_sun_getpwnam" = xyes; then :
29516 cat >>confdefs.h <<_ACEOF
29517 #define HAVE_LIBSUN 1
29525 for ac_header in zlib.h
29527 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
29528 if test "x$ac_cv_header_zlib_h" = xyes; then :
29529 cat >>confdefs.h <<_ACEOF
29530 #define HAVE_ZLIB_H 1
29537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
29538 $as_echo_n "checking for deflate in -lz... " >&6; }
29539 if ${ac_cv_lib_z_deflate+:} false; then :
29540 $as_echo_n "(cached) " >&6
29542 ac_check_lib_save_LIBS=$LIBS
29544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29545 /* end confdefs.h. */
29547 /* Override any GCC internal prototype to avoid an error.
29548 Use char because int might match the return type of a GCC
29549 builtin and then its argument prototype would still apply. */
29562 if ac_fn_c_try_link "$LINENO"; then :
29563 ac_cv_lib_z_deflate=yes
29565 ac_cv_lib_z_deflate=no
29567 rm -f core conftest.err conftest.$ac_objext \
29568 conftest$ac_exeext conftest.$ac_ext
29569 LIBS=$ac_check_lib_save_LIBS
29571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
29572 $as_echo "$ac_cv_lib_z_deflate" >&6; }
29573 if test "x$ac_cv_lib_z_deflate" = xyes; then :
29578 if test x$ZLIBS = x-lz; then
29579 $as_echo "#define HAVE_LIBZ 1" >>confdefs.h
29588 # Check whether --enable-afs was given.
29589 if test "${enable_afs+set}" = set; then :
29590 enableval=$enable_afs;
29591 if test x$enableval = xyes; then
29593 elif test x$enableval = xno; then
29602 if test x$support_afs = xyes -o x$support_afs = xauto; then
29604 # Check whether --with-afsdir was given.
29605 if test "${with_afsdir+set}" = set; then :
29606 withval=$with_afsdir; with_afsdir=$withval
29611 if test x$with_afsdir = x; then
29612 for root in /usr /usr/local; do
29613 if test -d ${root}/include/afs/ ; then
29614 with_afsdir=${root}
29617 if test -d ${root}/include/openafs/afs/ ; then
29618 with_afsdir=${root}
29624 if test -d ${with_afsdir}/include/afs/ ; then
29625 AFS_CFLAGS="-I${with_afsdir}/include"
29627 if test -d ${with_afsdir}/include/openafs/afs/ ; then
29628 AFS_CFLAGS="-I${with_afsdir}/include/openafs"
29632 saved_CFLAGS="${CFLAGS}"
29633 saved_CPPFLAGS="${CPPFLAGS}"
29634 CFLAGS="${AFS_CFLAGS} ${saved_CFLAGS}"
29635 CPPFLAGS="${AFS_CFLAGS} ${saved_CPPFLAGS}"
29637 for ac_header in afs/afsint.h
29639 ac_fn_c_check_header_mongrel "$LINENO" "afs/afsint.h" "ac_cv_header_afs_afsint_h" "$ac_includes_default"
29640 if test "x$ac_cv_header_afs_afsint_h" = xyes; then :
29641 cat >>confdefs.h <<_ACEOF
29642 #define HAVE_AFS_AFSINT_H 1
29649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29650 /* end confdefs.h. */
29652 #include <afs/afsint.h>
29653 #include <afs/venus.h>
29656 if ac_fn_c_try_cpp "$LINENO"; then :
29658 $as_echo "#define HAVE_AFS_VENUS_H 1" >>confdefs.h
29662 rm -f conftest.err conftest.i conftest.$ac_ext
29664 CFLAGS="${saved_CFLAGS}"
29665 CPPFLAGS="${saved_CPPFLAGS}"
29667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pioctl in AFS libsys" >&5
29668 $as_echo_n "checking for pioctl in AFS libsys... " >&6; }
29669 for dir in ${with_afsdir}/lib \
29670 ${with_afsdir}/lib/afs \
29671 ${with_afsdir}/lib/openafs \
29672 ${with_afsdir}/lib64 \
29673 ${with_afsdir}/lib64/afs \
29674 ${with_afsdir}/lib64/openafs
29676 for arch_type in .a .so
29678 A=`test -f ${dir}/libsys${arch_type} && nm ${dir}/libsys${arch_type} 2>/dev/null | grep pioctl`
29680 if test $pkg = 0; then
29682 AFS_LIBS="-L${dir} -lsys -lrx -llwp ${dir}/util${arch_type}"
29688 if test $have_afs = yes; then
29689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29690 $as_echo "yes" >&6; }
29692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29693 $as_echo "no" >&6; }
29696 if test x$support_afs = xyes -a $have_afs != yes; then
29697 as_fn_error $? "afs support explicitly enabled but no supported afs implementation found,
29698 please either load the afs libraries or rerun configure without --enable-afs" "$LINENO" 5
29700 if test $have_afs = yes; then
29702 $as_echo "#define HAVE_AFS 1" >>confdefs.h
29705 $as_echo "#define HAVE_AFS_ACL 1" >>confdefs.h
29714 # Check whether --enable-lzo was given.
29715 if test "${enable_lzo+set}" = set; then :
29716 enableval=$enable_lzo;
29717 if test x$enableval = xno; then
29730 if test x$support_lzo = xyes; then
29732 # Check whether --with-lzo was given.
29733 if test "${with_lzo+set}" = set; then :
29735 case "$with_lzo" in
29740 if test -f ${with_lzo}/include/lzo/lzoconf.h; then
29741 LZO_INC="-I${with_lzo}/include"
29742 LZO_LDFLAGS="-L${with_lzo}/lib"
29743 with_lzo="${with_lzo}/include"
29745 with_lzo="/usr/include"
29748 as_ac_Header=`$as_echo "ac_cv_header_${with_lzo}/lzo/lzoconf.h" | $as_tr_sh`
29749 ac_fn_c_check_header_mongrel "$LINENO" "${with_lzo}/lzo/lzoconf.h" "$as_ac_Header" "$ac_includes_default"
29750 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29753 $as_echo "#define HAVE_LZO 1" >>confdefs.h
29755 LZO_LIBS="${LZO_LDFLAGS} -llzo2"
29761 echo "lzoconf.h not found. lzo turned off ..."
29773 ac_fn_c_check_header_mongrel "$LINENO" "lzo/lzoconf.h" "ac_cv_header_lzo_lzoconf_h" "$ac_includes_default"
29774 if test "x$ac_cv_header_lzo_lzoconf_h" = xyes; then :
29776 ac_fn_c_check_header_mongrel "$LINENO" "lzo/lzo1x.h" "ac_cv_header_lzo_lzo1x_h" "$ac_includes_default"
29777 if test "x$ac_cv_header_lzo_lzo1x_h" = xyes; then :
29779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lzo1x_1_compress in -llzo2" >&5
29780 $as_echo_n "checking for lzo1x_1_compress in -llzo2... " >&6; }
29781 if ${ac_cv_lib_lzo2_lzo1x_1_compress+:} false; then :
29782 $as_echo_n "(cached) " >&6
29784 ac_check_lib_save_LIBS=$LIBS
29785 LIBS="-llzo2 $LIBS"
29786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29787 /* end confdefs.h. */
29789 /* Override any GCC internal prototype to avoid an error.
29790 Use char because int might match the return type of a GCC
29791 builtin and then its argument prototype would still apply. */
29795 char lzo1x_1_compress ();
29799 return lzo1x_1_compress ();
29804 if ac_fn_c_try_link "$LINENO"; then :
29805 ac_cv_lib_lzo2_lzo1x_1_compress=yes
29807 ac_cv_lib_lzo2_lzo1x_1_compress=no
29809 rm -f core conftest.err conftest.$ac_objext \
29810 conftest$ac_exeext conftest.$ac_ext
29811 LIBS=$ac_check_lib_save_LIBS
29813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lzo2_lzo1x_1_compress" >&5
29814 $as_echo "$ac_cv_lib_lzo2_lzo1x_1_compress" >&6; }
29815 if test "x$ac_cv_lib_lzo2_lzo1x_1_compress" = xyes; then :
29819 $as_echo "#define HAVE_LZO 1" >>confdefs.h
29843 # Check whether --enable-acl was given.
29844 if test "${enable_acl+set}" = set; then :
29845 enableval=$enable_acl;
29846 if test x$enableval = xyes; then
29848 elif test x$enableval = xno; then
29857 have_extended_acl=no
29858 if test x$support_acl = xyes -o x$support_acl = xauto; then
29859 ac_fn_c_check_header_mongrel "$LINENO" "sys/acl.h" "ac_cv_header_sys_acl_h" "$ac_includes_default"
29860 if test "x$ac_cv_header_sys_acl_h" = xyes; then :
29862 $as_echo "#define HAVE_SYS_ACL_H 1" >>confdefs.h
29868 ac_fn_c_check_func "$LINENO" "acl_get_file" "ac_cv_func_acl_get_file"
29869 if test "x$ac_cv_func_acl_get_file" = xyes; then :
29877 if test $have_acl = no; then
29878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get_file in -lacl" >&5
29879 $as_echo_n "checking for acl_get_file in -lacl... " >&6; }
29880 if ${ac_cv_lib_acl_acl_get_file+:} false; then :
29881 $as_echo_n "(cached) " >&6
29883 ac_check_lib_save_LIBS=$LIBS
29885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29886 /* end confdefs.h. */
29888 /* Override any GCC internal prototype to avoid an error.
29889 Use char because int might match the return type of a GCC
29890 builtin and then its argument prototype would still apply. */
29894 char acl_get_file ();
29898 return acl_get_file ();
29903 if ac_fn_c_try_link "$LINENO"; then :
29904 ac_cv_lib_acl_acl_get_file=yes
29906 ac_cv_lib_acl_acl_get_file=no
29908 rm -f core conftest.err conftest.$ac_objext \
29909 conftest$ac_exeext conftest.$ac_ext
29910 LIBS=$ac_check_lib_save_LIBS
29912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_acl_acl_get_file" >&5
29913 $as_echo "$ac_cv_lib_acl_acl_get_file" >&6; }
29914 if test "x$ac_cv_lib_acl_acl_get_file" = xyes; then :
29917 if test $have_afs = yes; then
29918 if test -d /usr/lib64/; then
29919 FDLIBS="-L/usr/lib64 -lacl $FDLIBS"
29921 FDLIBS="-L/usr/lib -lacl $FDLIBS"
29924 FDLIBS="-lacl $FDLIBS"
29932 if test $have_acl = no -a \
29933 x${HAVE_OSF1_OS_TRUE} = x; then
29934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get_file in -lpacl" >&5
29935 $as_echo_n "checking for acl_get_file in -lpacl... " >&6; }
29936 if ${ac_cv_lib_pacl_acl_get_file+:} false; then :
29937 $as_echo_n "(cached) " >&6
29939 ac_check_lib_save_LIBS=$LIBS
29940 LIBS="-lpacl $LIBS"
29941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29942 /* end confdefs.h. */
29944 /* Override any GCC internal prototype to avoid an error.
29945 Use char because int might match the return type of a GCC
29946 builtin and then its argument prototype would still apply. */
29950 char acl_get_file ();
29954 return acl_get_file ();
29959 if ac_fn_c_try_link "$LINENO"; then :
29960 ac_cv_lib_pacl_acl_get_file=yes
29962 ac_cv_lib_pacl_acl_get_file=no
29964 rm -f core conftest.err conftest.$ac_objext \
29965 conftest$ac_exeext conftest.$ac_ext
29966 LIBS=$ac_check_lib_save_LIBS
29968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pacl_acl_get_file" >&5
29969 $as_echo "$ac_cv_lib_pacl_acl_get_file" >&6; }
29970 if test "x$ac_cv_lib_pacl_acl_get_file" = xyes; then :
29973 FDLIBS="-lpacl $FDLIBS"
29979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ACL_TYPE_DEFAULT_DIR in acl.h include file" >&5
29980 $as_echo_n "checking for ACL_TYPE_DEFAULT_DIR in acl.h include file... " >&6; }
29981 grep ACL_TYPE_DEFAULT_DIR /usr/include/sys/acl.h > /dev/null 2>&1
29982 if test $? = 0; then
29984 $as_echo "#define HAVE_ACL_TYPE_DEFAULT_DIR 1" >>confdefs.h
29986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29987 $as_echo "yes" >&6; }
29989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29990 $as_echo "no" >&6; }
29994 if test $have_acl = yes -a \
29995 x${HAVE_DARWIN_OS_TRUE} = x; then
29996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ACL_TYPE_EXTENDED in acl.h include file" >&5
29997 $as_echo_n "checking for ACL_TYPE_EXTENDED in acl.h include file... " >&6; }
29998 grep ACL_TYPE_EXTENDED /usr/include/sys/acl.h > /dev/null 2>&1
29999 if test $? = 0; then
30001 $as_echo "#define HAVE_ACL_TYPE_EXTENDED 1" >>confdefs.h
30003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30004 $as_echo "yes" >&6; }
30006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30007 $as_echo "no" >&6; }
30011 if test $have_acl = yes -a \
30012 x${HAVE_FREEBSD_OS_TRUE} = x; then
30013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ACL_TYPE_NFS4 in acl.h include file" >&5
30014 $as_echo_n "checking for ACL_TYPE_NFS4 in acl.h include file... " >&6; }
30015 grep ACL_TYPE_NFS4 /usr/include/sys/acl.h > /dev/null 2>&1
30016 if test $? = 0; then
30018 $as_echo "#define HAVE_ACL_TYPE_NFS4 1" >>confdefs.h
30020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30021 $as_echo "yes" >&6; }
30023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30024 $as_echo "no" >&6; }
30028 if test $have_acl = no -a \
30029 x${HAVE_SUN_OS_TRUE} = x; then
30030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acltotext in -lsec" >&5
30031 $as_echo_n "checking for acltotext in -lsec... " >&6; }
30032 if ${ac_cv_lib_sec_acltotext+:} false; then :
30033 $as_echo_n "(cached) " >&6
30035 ac_check_lib_save_LIBS=$LIBS
30037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30038 /* end confdefs.h. */
30040 /* Override any GCC internal prototype to avoid an error.
30041 Use char because int might match the return type of a GCC
30042 builtin and then its argument prototype would still apply. */
30050 return acltotext ();
30055 if ac_fn_c_try_link "$LINENO"; then :
30056 ac_cv_lib_sec_acltotext=yes
30058 ac_cv_lib_sec_acltotext=no
30060 rm -f core conftest.err conftest.$ac_objext \
30061 conftest$ac_exeext conftest.$ac_ext
30062 LIBS=$ac_check_lib_save_LIBS
30064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sec_acltotext" >&5
30065 $as_echo "$ac_cv_lib_sec_acltotext" >&6; }
30066 if test "x$ac_cv_lib_sec_acltotext" = xyes; then :
30069 FDLIBS="-lsec $FDLIBS"
30071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_totext in -lsec" >&5
30072 $as_echo_n "checking for acl_totext in -lsec... " >&6; }
30073 if ${ac_cv_lib_sec_acl_totext+:} false; then :
30074 $as_echo_n "(cached) " >&6
30076 ac_check_lib_save_LIBS=$LIBS
30078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30079 /* end confdefs.h. */
30081 /* Override any GCC internal prototype to avoid an error.
30082 Use char because int might match the return type of a GCC
30083 builtin and then its argument prototype would still apply. */
30087 char acl_totext ();
30091 return acl_totext ();
30096 if ac_fn_c_try_link "$LINENO"; then :
30097 ac_cv_lib_sec_acl_totext=yes
30099 ac_cv_lib_sec_acl_totext=no
30101 rm -f core conftest.err conftest.$ac_objext \
30102 conftest$ac_exeext conftest.$ac_ext
30103 LIBS=$ac_check_lib_save_LIBS
30105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sec_acl_totext" >&5
30106 $as_echo "$ac_cv_lib_sec_acl_totext" >&6; }
30107 if test "x$ac_cv_lib_sec_acl_totext" = xyes; then :
30109 have_extended_acl=yes
30120 if test $have_acl = no -a \
30121 x${HAVE_AIX_OS_TRUE} = x; then
30122 ac_fn_c_check_func "$LINENO" "acl_get" "ac_cv_func_acl_get"
30123 if test "x$ac_cv_func_acl_get" = xyes; then :
30127 ac_fn_c_check_func "$LINENO" "aclx_get" "ac_cv_func_aclx_get"
30128 if test "x$ac_cv_func_aclx_get" = xyes; then :
30130 have_extended_acl=yes
30141 if test x$support_acl = xyes -a $have_acl != yes; then
30142 as_fn_error $? "acl support explicitly enabled but no supported acl implementation found,
30143 please either load the acl libraries or rerun configure without --enable-acl" "$LINENO" 5
30145 if test $have_acl = yes; then
30147 $as_echo "#define HAVE_ACL 1" >>confdefs.h
30151 if test $have_extended_acl = yes; then
30153 $as_echo "#define HAVE_EXTENDED_ACL 1" >>confdefs.h
30160 # Check whether --enable-xattr was given.
30161 if test "${enable_xattr+set}" = set; then :
30162 enableval=$enable_xattr;
30163 if test x$enableval = xyes; then
30165 elif test x$enableval = xno; then
30174 if test x$support_xattr = xyes -o x$support_xattr = xauto; then
30175 if test x${HAVE_FREEBSD_OS_TRUE} = x -o \
30176 x${HAVE_NETBSD_OS_TRUE} = x -o \
30177 x${HAVE_OPENBSD_OS_TRUE} = x; then
30178 ac_fn_c_check_header_mongrel "$LINENO" "sys/extattr.h" "ac_cv_header_sys_extattr_h" "$ac_includes_default"
30179 if test "x$ac_cv_header_sys_extattr_h" = xyes; then :
30181 $as_echo "#define HAVE_SYS_EXTATTR_H 1" >>confdefs.h
30186 ac_fn_c_check_header_mongrel "$LINENO" "libutil.h" "ac_cv_header_libutil_h" "$ac_includes_default"
30187 if test "x$ac_cv_header_libutil_h" = xyes; then :
30189 $as_echo "#define HAVE_LIBUTIL_H 1" >>confdefs.h
30194 for ac_func in extattr_get_link extattr_set_link extattr_list_link
30196 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30197 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30198 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30199 cat >>confdefs.h <<_ACEOF
30200 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30205 $as_echo "#define HAVE_EXTATTR_GET_LINK 1" >>confdefs.h
30208 $as_echo "#define HAVE_EXTATTR_SET_LINK 1" >>confdefs.h
30211 $as_echo "#define HAVE_EXTATTR_LIST_LINK 1" >>confdefs.h
30219 if test $have_xattr = no; then
30220 for ac_func in extattr_get_file extattr_set_file extattr_list_file
30222 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30223 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30224 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30225 cat >>confdefs.h <<_ACEOF
30226 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30231 $as_echo "#define HAVE_EXTATTR_GET_FILE 1" >>confdefs.h
30234 $as_echo "#define HAVE_EXTATTR_SET_FILE 1" >>confdefs.h
30237 $as_echo "#define HAVE_EXTATTR_LIST_FILE 1" >>confdefs.h
30246 if test $have_xattr = yes; then
30247 have_extattr_string_in_libc=no
30248 for ac_func in extattr_namespace_to_string extattr_string_to_namespace
30250 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30251 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30252 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30253 cat >>confdefs.h <<_ACEOF
30254 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30257 have_extattr_string_in_libc=yes
30259 $as_echo "#define HAVE_EXTATTR_NAMESPACE_TO_STRING 1" >>confdefs.h
30262 $as_echo "#define HAVE_EXTATTR_STRING_TO_NAMESPACE 1" >>confdefs.h
30270 if test $have_extattr_string_in_libc = no; then
30271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extattr_namespace_to_string extattr_string_to_namespace in -lutil" >&5
30272 $as_echo_n "checking for extattr_namespace_to_string extattr_string_to_namespace in -lutil... " >&6; }
30273 if ${ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace+:} false; then :
30274 $as_echo_n "(cached) " >&6
30276 ac_check_lib_save_LIBS=$LIBS
30277 LIBS="-lutil $LIBS"
30278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30279 /* end confdefs.h. */
30281 /* Override any GCC internal prototype to avoid an error.
30282 Use char because int might match the return type of a GCC
30283 builtin and then its argument prototype would still apply. */
30287 char extattr_namespace_to_string extattr_string_to_namespace ();
30291 return extattr_namespace_to_string extattr_string_to_namespace ();
30296 if ac_fn_c_try_link "$LINENO"; then :
30297 ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace=yes
30299 ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace=no
30301 rm -f core conftest.err conftest.$ac_objext \
30302 conftest$ac_exeext conftest.$ac_ext
30303 LIBS=$ac_check_lib_save_LIBS
30305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" >&5
30306 $as_echo "$ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" >&6; }
30307 if test "x$ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" = xyes; then :
30310 $as_echo "#define HAVE_EXTATTR_NAMESPACE_TO_STRING 1" >>confdefs.h
30313 $as_echo "#define HAVE_EXTATTR_STRING_TO_NAMESPACE 1" >>confdefs.h
30315 FDLIBS="-lutil $FDLIBS"
30324 if test $have_xattr = no -a \
30325 x${HAVE_AIX_OS_TRUE} = x; then
30326 ac_fn_c_check_header_mongrel "$LINENO" "sys/ea.h" "ac_cv_header_sys_ea_h" "$ac_includes_default"
30327 if test "x$ac_cv_header_sys_ea_h" = xyes; then :
30329 $as_echo "#define HAVE_SYS_EA_H 1" >>confdefs.h
30334 for ac_func in llistea lgetea lsetea
30336 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30337 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30338 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30339 cat >>confdefs.h <<_ACEOF
30340 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30345 $as_echo "#define HAVE_LLISTEA 1" >>confdefs.h
30348 $as_echo "#define HAVE_LGETEA 1" >>confdefs.h
30351 $as_echo "#define HAVE_LSETEA 1" >>confdefs.h
30359 if test $have_xattr = no; then
30360 for ac_func in listea getea setea
30362 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30363 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30364 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30365 cat >>confdefs.h <<_ACEOF
30366 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30371 $as_echo "#define HAVE_LISTEA 1" >>confdefs.h
30374 $as_echo "#define HAVE_GETEA 1" >>confdefs.h
30377 $as_echo "#define HAVE_SETEA 1" >>confdefs.h
30387 if test $have_xattr = no -a \
30388 x${HAVE_OSF1_OS_TRUE} = x; then
30389 ac_fn_c_check_header_mongrel "$LINENO" "sys/proplist.h" "ac_cv_header_sys_proplist_h" "$ac_includes_default"
30390 if test "x$ac_cv_header_sys_proplist_h" = xyes; then :
30392 $as_echo "#define HAVE_SYS_PROPLIST_H 1" >>confdefs.h
30397 for ac_func in getproplist get_proplist_entry sizeof_proplist_entry add_proplist_entry setproplist
30399 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30400 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30401 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30402 cat >>confdefs.h <<_ACEOF
30403 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30408 $as_echo "#define HAVE_GETPROPLIST 1" >>confdefs.h
30411 $as_echo "#define HAVE_GET_PROPLIST_ENTRY 1" >>confdefs.h
30414 $as_echo "#define HAVE_SIZEOF_PROPLIST_ENTRY 1" >>confdefs.h
30417 $as_echo "#define HAVE_ADD_PROPLIST_ENTRY 1" >>confdefs.h
30420 $as_echo "#define HAVE_SETPROPLIST 1" >>confdefs.h
30429 if test $have_xattr = no -a \
30430 x${HAVE_SUN_OS_TRUE} = x; then
30431 ac_fn_c_check_header_mongrel "$LINENO" "sys/attr.h" "ac_cv_header_sys_attr_h" "$ac_includes_default"
30432 if test "x$ac_cv_header_sys_attr_h" = xyes; then :
30434 $as_echo "#define HAVE_SYS_ATTR_H 1" >>confdefs.h
30439 ac_fn_c_check_header_mongrel "$LINENO" "sys/nvpair.h" "ac_cv_header_sys_nvpair_h" "$ac_includes_default"
30440 if test "x$ac_cv_header_sys_nvpair_h" = xyes; then :
30442 $as_echo "#define HAVE_SYS_NVPAIR_H 1" >>confdefs.h
30447 ac_fn_c_check_header_mongrel "$LINENO" "attr.h" "ac_cv_header_attr_h" "$ac_includes_default"
30448 if test "x$ac_cv_header_attr_h" = xyes; then :
30450 $as_echo "#define HAVE_ATTR_H 1" >>confdefs.h
30456 for ac_func in openat fstatat unlinkat fchownat futimesat
30458 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30459 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30460 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30461 cat >>confdefs.h <<_ACEOF
30462 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30467 $as_echo "#define HAVE_OPENAT 1" >>confdefs.h
30470 $as_echo "#define HAVE_FSTATAT 1" >>confdefs.h
30473 $as_echo "#define HAVE_UNLINKAT 1" >>confdefs.h
30476 $as_echo "#define HAVE_FCHOWNAT 1" >>confdefs.h
30479 $as_echo "#define HAVE_FUTIMESAT 1" >>confdefs.h
30487 if test $have_xattr = yes; then
30488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nvlist_next_nvpair in -lnvpair" >&5
30489 $as_echo_n "checking for nvlist_next_nvpair in -lnvpair... " >&6; }
30490 if ${ac_cv_lib_nvpair_nvlist_next_nvpair+:} false; then :
30491 $as_echo_n "(cached) " >&6
30493 ac_check_lib_save_LIBS=$LIBS
30494 LIBS="-lnvpair $LIBS"
30495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30496 /* end confdefs.h. */
30498 /* Override any GCC internal prototype to avoid an error.
30499 Use char because int might match the return type of a GCC
30500 builtin and then its argument prototype would still apply. */
30504 char nvlist_next_nvpair ();
30508 return nvlist_next_nvpair ();
30513 if ac_fn_c_try_link "$LINENO"; then :
30514 ac_cv_lib_nvpair_nvlist_next_nvpair=yes
30516 ac_cv_lib_nvpair_nvlist_next_nvpair=no
30518 rm -f core conftest.err conftest.$ac_objext \
30519 conftest$ac_exeext conftest.$ac_ext
30520 LIBS=$ac_check_lib_save_LIBS
30522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nvpair_nvlist_next_nvpair" >&5
30523 $as_echo "$ac_cv_lib_nvpair_nvlist_next_nvpair" >&6; }
30524 if test "x$ac_cv_lib_nvpair_nvlist_next_nvpair" = xyes; then :
30527 $as_echo "#define HAVE_NVLIST_NEXT_NVPAIR 1" >>confdefs.h
30529 FDLIBS="-lnvpair $FDLIBS"
30537 if test $have_xattr = no; then
30538 ac_fn_c_check_header_mongrel "$LINENO" "sys/xattr.h" "ac_cv_header_sys_xattr_h" "$ac_includes_default"
30539 if test "x$ac_cv_header_sys_xattr_h" = xyes; then :
30541 $as_echo "#define HAVE_SYS_XATTR_H 1" >>confdefs.h
30546 for ac_func in llistxattr lgetxattr lsetxattr
30548 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30549 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30550 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30551 cat >>confdefs.h <<_ACEOF
30552 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30557 $as_echo "#define HAVE_LLISTXATTR 1" >>confdefs.h
30560 $as_echo "#define HAVE_LGETXATTR 1" >>confdefs.h
30563 $as_echo "#define HAVE_LSETXATTR 1" >>confdefs.h
30571 if test $have_xattr = no; then
30572 for ac_func in listxattr getxattr setxattr
30574 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30575 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30576 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30577 cat >>confdefs.h <<_ACEOF
30578 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30583 $as_echo "#define HAVE_LISTXATTR 1" >>confdefs.h
30586 $as_echo "#define HAVE_GETXATTR 1" >>confdefs.h
30589 $as_echo "#define HAVE_SETXATTR 1" >>confdefs.h
30599 if test x$support_xattr = xyes -a $have_xattr != yes; then
30600 as_fn_error $? "xattr support explicitly enabled but no supported xattr implementation found,
30601 please either load the xattr libraries or rerun configure without --enable-xattr" "$LINENO" 5
30603 if test $have_xattr = yes; then
30605 $as_echo "#define HAVE_XATTR 1" >>confdefs.h
30612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
30613 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
30614 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
30615 $as_echo_n "(cached) " >&6
30617 ac_check_lib_save_LIBS=$LIBS
30618 LIBS="-lpthread $LIBS"
30619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30620 /* end confdefs.h. */
30622 /* Override any GCC internal prototype to avoid an error.
30623 Use char because int might match the return type of a GCC
30624 builtin and then its argument prototype would still apply. */
30628 char pthread_create ();
30632 return pthread_create ();
30637 if ac_fn_c_try_link "$LINENO"; then :
30638 ac_cv_lib_pthread_pthread_create=yes
30640 ac_cv_lib_pthread_pthread_create=no
30642 rm -f core conftest.err conftest.$ac_objext \
30643 conftest$ac_exeext conftest.$ac_ext
30644 LIBS=$ac_check_lib_save_LIBS
30646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
30647 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
30648 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
30649 PTHREAD_LIB="-lpthread"
30652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthreads" >&5
30653 $as_echo_n "checking for pthread_create in -lpthreads... " >&6; }
30654 if ${ac_cv_lib_pthreads_pthread_create+:} false; then :
30655 $as_echo_n "(cached) " >&6
30657 ac_check_lib_save_LIBS=$LIBS
30658 LIBS="-lpthreads $LIBS"
30659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30660 /* end confdefs.h. */
30662 /* Override any GCC internal prototype to avoid an error.
30663 Use char because int might match the return type of a GCC
30664 builtin and then its argument prototype would still apply. */
30668 char pthread_create ();
30672 return pthread_create ();
30677 if ac_fn_c_try_link "$LINENO"; then :
30678 ac_cv_lib_pthreads_pthread_create=yes
30680 ac_cv_lib_pthreads_pthread_create=no
30682 rm -f core conftest.err conftest.$ac_objext \
30683 conftest$ac_exeext conftest.$ac_ext
30684 LIBS=$ac_check_lib_save_LIBS
30686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_pthread_create" >&5
30687 $as_echo "$ac_cv_lib_pthreads_pthread_create" >&6; }
30688 if test "x$ac_cv_lib_pthreads_pthread_create" = xyes; then :
30689 PTHREAD_LIB="-lpthreads"
30692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lc_r" >&5
30693 $as_echo_n "checking for pthread_create in -lc_r... " >&6; }
30694 if ${ac_cv_lib_c_r_pthread_create+:} false; then :
30695 $as_echo_n "(cached) " >&6
30697 ac_check_lib_save_LIBS=$LIBS
30699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30700 /* end confdefs.h. */
30702 /* Override any GCC internal prototype to avoid an error.
30703 Use char because int might match the return type of a GCC
30704 builtin and then its argument prototype would still apply. */
30708 char pthread_create ();
30712 return pthread_create ();
30717 if ac_fn_c_try_link "$LINENO"; then :
30718 ac_cv_lib_c_r_pthread_create=yes
30720 ac_cv_lib_c_r_pthread_create=no
30722 rm -f core conftest.err conftest.$ac_objext \
30723 conftest$ac_exeext conftest.$ac_ext
30724 LIBS=$ac_check_lib_save_LIBS
30726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_create" >&5
30727 $as_echo "$ac_cv_lib_c_r_pthread_create" >&6; }
30728 if test "x$ac_cv_lib_c_r_pthread_create" = xyes; then :
30729 PTHREAD_LIB="-lc_r"
30732 ac_fn_c_check_func "$LINENO" "pthread_create" "ac_cv_func_pthread_create"
30733 if test "x$ac_cv_func_pthread_create" = xyes; then :
30750 for ac_header in sys/prctl.h sys/capability.h
30752 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30753 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
30754 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
30755 cat >>confdefs.h <<_ACEOF
30756 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30763 for ac_func in prctl setreuid
30765 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30766 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30767 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30768 cat >>confdefs.h <<_ACEOF
30769 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cap_set_proc in -lcap" >&5
30776 $as_echo_n "checking for cap_set_proc in -lcap... " >&6; }
30777 if ${ac_cv_lib_cap_cap_set_proc+:} false; then :
30778 $as_echo_n "(cached) " >&6
30780 ac_check_lib_save_LIBS=$LIBS
30782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30783 /* end confdefs.h. */
30785 /* Override any GCC internal prototype to avoid an error.
30786 Use char because int might match the return type of a GCC
30787 builtin and then its argument prototype would still apply. */
30791 char cap_set_proc ();
30795 return cap_set_proc ();
30800 if ac_fn_c_try_link "$LINENO"; then :
30801 ac_cv_lib_cap_cap_set_proc=yes
30803 ac_cv_lib_cap_cap_set_proc=no
30805 rm -f core conftest.err conftest.$ac_objext \
30806 conftest$ac_exeext conftest.$ac_ext
30807 LIBS=$ac_check_lib_save_LIBS
30809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cap_cap_set_proc" >&5
30810 $as_echo "$ac_cv_lib_cap_cap_set_proc" >&6; }
30811 if test "x$ac_cv_lib_cap_cap_set_proc" = xyes; then :
30817 if test x$CAP_LIBS = x-lcap; then
30819 $as_echo "#define HAVE_LIBCAP 1" >>confdefs.h
30825 $as_echo "#define FDLIBS 1" >>confdefs.h
30828 CFLAGS=${CFLAGS--O}
30830 if test x$have_gcc = xyes ; then
30831 CPPFLAGS="$CPPFLAGS -x c++ -fno-strict-aliasing -fno-exceptions -fno-rtti"
30832 CFLAGS="$CFLAGS -x c++ -fno-strict-aliasing -fno-exceptions -fno-rtti"
30834 LDFLAGS=${LDFLAGS--O}
30835 CPPFLAGS="$CPPFLAGS"
30864 COMPRESS_MANPAGES=yes
30866 case "$DISTNAME" in
30869 PSCMD="ps -e -o pid,comm"
30870 PFILES="${PFILES} platforms/aix/Makefile"
30871 TAPEDRIVE="/dev/rmt0.1"
30875 PTHREAD_LIB="-lpthread -lexc"
30876 if test "${CC}" = "gcc" ; then
30883 TAPEDRIVE="/dev/nrmt0"
30886 DISTVER=`uname -a |awk '{print $3}'`
30887 TAPEDRIVE="/dev/nrmt0"
30888 PTHREAD_LIB="-pthread"
30889 CFLAGS="${CFLAGS} -pthread"
30890 PSCMD="ps -ax -o pid,command"
30893 PFILES="${PFILES} \
30894 platforms/bsdi/Makefile \
30895 platforms/bsdi/bacula-fd \
30896 platforms/bsdi/bacula-sd \
30897 platforms/bsdi/bacula-dir"
30898 largefile_support="yes"
30901 DISTVER=`uname -a |awk '{print $3}'`
30902 TAPEDRIVE="/dev/nrst0"
30904 WCFLAGS="-mwindows"
30905 WLDFLAGS="-mwindows"
30909 TAPEDRIVE="/dev/nst0"
30910 PSCMD="ps -e -o pid,command"
30912 PFILES="${PFILES} \
30913 platforms/darwin/Makefile"
30917 TAPEDRIVE="/dev/nst0"
30918 PSCMD="ps -e -o pid,command"
30920 PFILES="${PFILES} \
30921 platforms/osx/Makefile"
30924 if `test -f /etc/apt/sources.list && grep -q ubuntu /etc/apt/sources.list`; then
30927 DISTVER=`cat /etc/debian_version`
30928 if test -f /etc/lsb-release ; then
30930 if test "x$DISTRIB_ID" != "x" ; then
30931 DISTNAME=$DISTRIB_ID
30933 if test "x$DISTRIB_RELEASE" != "x" ; then
30934 DISTVER=$DISTRIB_RELEASE
30937 if test "$DISTNAME" = "Ubuntu" ; then
30940 TAPEDRIVE="/dev/nst0"
30941 PSCMD="ps -e -o pid,command"
30942 if test "$DISTNAME" = "ubuntu" ; then
30943 PFILES="${PFILES} \
30944 platforms/ubuntu/Makefile \
30945 platforms/ubuntu/bacula-fd \
30946 platforms/ubuntu/bacula-sd \
30947 platforms/ubuntu/bacula-dir"
30949 PFILES="${PFILES} \
30950 platforms/debian/Makefile \
30951 platforms/debian/bacula-fd \
30952 platforms/debian/bacula-sd \
30953 platforms/debian/bacula-dir"
30957 DISTVER=`uname -a |awk '{print $3}'`
30958 VER=`echo $DISTVER | cut -c 1`
30959 if test x$VER = x4 ; then
30960 PTHREAD_LIB="${PTHREAD_LIBS:--pthread}"
30961 CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS:--pthread}"
30965 TAPEDRIVE="/dev/nrsa0"
30966 PSCMD="ps -ax -o pid,command"
30967 PFILES="${PFILES} \
30968 platforms/freebsd/Makefile \
30969 platforms/freebsd/bacula-fd \
30970 platforms/freebsd/bacula-sd \
30971 platforms/freebsd/bacula-dir"
30972 largefile_support="yes"
30976 TAPEDRIVE="/dev/nst0"
30977 PSCMD="ps -e -o pid,command"
30978 PFILES="${PFILES} \
30979 platforms/hurd/Makefile \
30980 platforms/hurd/bacula-fd \
30981 platforms/hurd/bacula-sd \
30982 platforms/hurd/bacula-dir"
30985 PSCMD="UNIX95=1; ps -e -o pid,comm"
30986 CFLAGS="${CFLAGS} -D_XOPEN_SOURCE_EXTENDED=1"
30988 TAPEDRIVE="/dev/rmt/0hnb"
30989 PTHREAD_LIB="-lpthread"
30990 $as_echo "#define _INCLUDE_LONGLONG 1" >>confdefs.h
30995 TAPEDRIVE="/dev/rmt/0cbn"
30996 PSCMD="ps -e -o pid,comm"
30997 PFILES="${PFILES} \
30998 platforms/irix/Makefile \
30999 platforms/irix/bacula-fd \
31000 platforms/irix/bacula-sd \
31001 platforms/irix/bacula-dir"
31004 DISTVER=`uname -a |awk '{print $3}'`
31007 TAPEDRIVE="/dev/nrst0"
31008 PSCMD="ps -ax -o pid,command"
31009 PTHREAD_LIB="-pthread"
31010 CFLAGS="${CFLAGS} -pthread"
31013 DISTVER=`uname -a |awk '{print $3}'`
31016 TAPEDRIVE="/dev/nrst0"
31017 PSCMD="ps -ax -o pid,command"
31018 PTHREAD_LIB="-pthread"
31019 CFLAGS="${CFLAGS} -pthread"
31020 PFILES="${PFILES} \
31021 platforms/openbsd/Makefile \
31022 platforms/openbsd/bacula-fd \
31023 platforms/openbsd/bacula-sd \
31024 platforms/openbsd/bacula-dir"
31027 if test -f /etc/whitebox-release ; then
31028 f=/etc/whitebox-release
31030 f=/etc/redhat-release
31032 if test `cat $f | grep release |\
31033 cut -f 3 -d ' '`x = "Enterprise"x ; then
31034 DISTVER="Enterprise "`cat $f | grep release |\
31037 DISTVER=`cat /etc/redhat-release | grep release |\
31040 TAPEDRIVE="/dev/nst0"
31041 PSCMD="ps -e -o pid,command"
31042 PFILES="${PFILES} \
31043 platforms/redhat/Makefile \
31044 platforms/redhat/bacula-fd \
31045 platforms/redhat/bacula-sd \
31046 platforms/redhat/bacula-dir
31050 DISTVER=`cat /etc/mandrake-release | grep release |\
31052 TAPEDRIVE="/dev/nst0"
31053 PSCMD="ps -e -o pid,command"
31054 PFILES="${PFILES} \
31055 platforms/mandrake/Makefile \
31056 platforms/mandrake/bacula-fd \
31057 platforms/mandrake/bacula-sd \
31058 platforms/mandrake/bacula-dir \
31062 DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
31063 TAPEDRIVE="/dev/nst0"
31064 PSCMD="ps -e -o pid,command"
31065 PFILES="${PFILES} \
31066 platforms/gentoo/Makefile \
31067 platforms/gentoo/bacula-init \
31068 platforms/gentoo/bacula-fd \
31069 platforms/gentoo/bacula-sd \
31070 platforms/gentoo/bacula-dir"
31073 DISTVER=`cat /etc/slackware-version`
31074 TAPEDRIVE="/dev/nst0"
31075 PSCMD="ps -e -o pid,command"
31076 PFILES="${PFILES} \
31077 platforms/slackware/Makefile \
31078 platforms/slackware/rc.bacula-fd \
31079 platforms/slackware/rc.bacula-sd \
31080 platforms/slackware/rc.bacula-dir\
31081 platforms/slackware/functions.bacula"
31085 TAPEDRIVE="/dev/rmt/0cbn"
31086 PSCMD="ps -e -o pid,comm"
31087 PFILES="${PFILES} \
31088 platforms/solaris/Makefile \
31089 platforms/solaris/bacula-fd \
31090 platforms/solaris/bacula-sd \
31091 platforms/solaris/bacula-dir"
31095 $as_echo "#define HAVE_OLD_SOCKOPT 1" >>confdefs.h
31097 $as_echo "#define USE_THR_SETCONCURRENCY 1" >>confdefs.h
31101 $as_echo "#define USE_THR_SETCONCURRENCY 1" >>confdefs.h
31106 $as_echo "#define HAVE_SOLARIS10 1" >>confdefs.h
31112 LIBS="$LIBS -lresolv -lrt"
31115 DISTVER=`cat /etc/SuSE-release |grep VERSION|\
31117 TAPEDRIVE="/dev/nst0"
31118 PSCMD="ps -e -o pid,command"
31119 PFILES="${PFILES} \
31120 platforms/suse/Makefile \
31121 platforms/suse/bacula-fd \
31122 platforms/suse/bacula-sd \
31123 platforms/suse/bacula-dir \
31124 platforms/suse/bacula"
31129 TAPEDRIVE="/dev/nst0"
31130 PSCMD="ps -e -o pid,command"
31131 PFILES="${PFILES} \
31132 platforms/suse/Makefile \
31133 platforms/suse/bacula-fd \
31134 platforms/suse/bacula-sd \
31135 platforms/suse/bacula-dir"
31139 TAPEDRIVE="/dev/nst0"
31142 echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
31146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for systemd support" >&5
31147 $as_echo_n "checking for systemd support... " >&6; }
31149 # Check whether --with-systemd was given.
31150 if test "${with_systemd+set}" = set; then :
31151 withval=$with_systemd;
31152 if test "$withval" != "no"; then
31153 if test "$withval" = "yes"; then
31154 SYSTEMD_UNITDIR="`systemctl show | grep UnitPath | cut -d " " -f2`"
31156 SYSTEMD_UNITDIR="${withval}"
31159 PFILES="${PFILES} \
31160 platforms/systemd/Makefile \
31161 platforms/systemd/bacula.conf \
31162 platforms/systemd/bacula-dir.service \
31163 platforms/systemd/bacula-fd.service \
31164 platforms/systemd/bacula-sd.service"
31166 $as_echo "#define HAVE_SYSTEMD 1" >>confdefs.h
31168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31169 $as_echo "yes" >&6; }
31170 support_systemd="yes"
31172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31173 $as_echo "no" >&6; }
31174 support_systemd="no"
31179 support_systemd="no"
31180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31181 $as_echo "no" >&6; }
31190 LIBS="$PTHREAD_LIB $LIBS"
31192 cat >>confdefs.h <<_ACEOF
31196 cat >>confdefs.h <<_ACEOF
31208 MCOMMON=./autoconf/Make.common
31211 if test "x${subsysdir}" = "x${sbindir}" ; then
31214 echo "You have set both --sbindir and --with-subsys-dir"
31215 echo " equal to: ${subsysdir} "
31216 echo "This is not permitted. Please reconfigure."
31218 echo "Aborting configuration ..."
31225 ac_config_files="$ac_config_files autoconf/Make.common Makefile manpages/Makefile scripts/btraceback scripts/bconsole scripts/baculabackupreport 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 scripts/bacula-tray-monitor.desktop 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 src/win32/Makefile.inc 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 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"
31227 ac_config_commands="$ac_config_commands default"
31229 cat >confcache <<\_ACEOF
31230 # This file is a shell script that caches the results of configure
31231 # tests run on this system so they can be shared between configure
31232 # scripts and configure runs, see configure's option --config-cache.
31233 # It is not useful on other systems. If it contains results you don't
31234 # want to keep, you may remove or edit it.
31236 # config.status only pays attention to the cache file if you give it
31237 # the --recheck option to rerun configure.
31239 # `ac_cv_env_foo' variables (set or unset) will be overridden when
31240 # loading this file, other *unset* `ac_cv_foo' will be assigned the
31241 # following values.
31245 # The following way of writing the cache mishandles newlines in values,
31246 # but we know of no workaround that is simple, portable, and efficient.
31247 # So, we kill variables containing newlines.
31248 # Ultrix sh set writes to stderr and can't be redirected directly,
31249 # and sets the high bit in the cache file unless we assign to the vars.
31251 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
31252 eval ac_val=\$$ac_var
31256 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
31257 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
31260 _ | IFS | as_nl) ;; #(
31261 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
31262 *) { eval $ac_var=; unset $ac_var;} ;;
31268 case $as_nl`(ac_space=' '; set) 2>&1` in #(
31269 *${as_nl}ac_space=\ *)
31270 # `set' does not quote correctly, so add quotes: double-quote
31271 # substitution turns \\\\ into \\, and sed turns \\ into \.
31274 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
31277 # `set' quotes correctly as required by POSIX, so do not add quotes.
31278 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
31287 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
31289 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
31291 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
31292 if test -w "$cache_file"; then
31293 if test "x$cache_file" != "x/dev/null"; then
31294 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
31295 $as_echo "$as_me: updating cache $cache_file" >&6;}
31296 if test ! -f "$cache_file" || test -h "$cache_file"; then
31297 cat confcache >"$cache_file"
31299 case $cache_file in #(
31301 mv -f confcache "$cache_file"$$ &&
31302 mv -f "$cache_file"$$ "$cache_file" ;; #(
31304 mv -f confcache "$cache_file" ;;
31309 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
31310 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
31315 test "x$prefix" = xNONE && prefix=$ac_default_prefix
31316 # Let make expand exec_prefix.
31317 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
31319 DEFS=-DHAVE_CONFIG_H
31324 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
31325 # 1. Remove the extension, and $U if already installed.
31326 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
31327 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
31328 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
31329 # will be set to the directory where LIBOBJS objects are built.
31330 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
31331 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
31333 LIBOBJS=$ac_libobjs
31335 LTLIBOBJS=$ac_ltlibobjs
31340 : "${CONFIG_STATUS=./config.status}"
31342 ac_clean_files_save=$ac_clean_files
31343 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
31344 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
31345 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
31347 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
31349 # Generated by $as_me.
31350 # Run this file to recreate the current configuration.
31351 # Compiler output produced by configure, useful for debugging
31352 # configure, is in config.log if it exists.
31355 ac_cs_recheck=false
31358 SHELL=\${CONFIG_SHELL-$SHELL}
31361 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
31362 ## -------------------- ##
31363 ## M4sh Initialization. ##
31364 ## -------------------- ##
31366 # Be more Bourne compatible
31367 DUALCASE=1; export DUALCASE # for MKS sh
31368 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
31371 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
31372 # is contrary to our usage. Disable this feature.
31373 alias -g '${1+"$@"}'='"$@"'
31374 setopt NO_GLOB_SUBST
31376 case `(set -o) 2>/dev/null` in #(
31388 # Printing a long string crashes Solaris 7 /usr/bin/printf.
31389 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
31390 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
31391 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
31392 # Prefer a ksh shell builtin over an external printf program on Solaris,
31393 # but without wasting forks for bash or zsh.
31394 if test -z "$BASH_VERSION$ZSH_VERSION" \
31395 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
31396 as_echo='print -r --'
31397 as_echo_n='print -rn --'
31398 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
31399 as_echo='printf %s\n'
31400 as_echo_n='printf %s'
31402 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
31403 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
31404 as_echo_n='/usr/ucb/echo -n'
31406 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
31407 as_echo_n_body='eval
31411 expr "X$arg" : "X\\(.*\\)$as_nl";
31412 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
31414 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
31416 export as_echo_n_body
31417 as_echo_n='sh -c $as_echo_n_body as_echo'
31419 export as_echo_body
31420 as_echo='sh -c $as_echo_body as_echo'
31423 # The user is always right.
31424 if test "${PATH_SEPARATOR+set}" != set; then
31426 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
31427 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
31434 # We need space, tab and new line, in precisely that order. Quoting is
31435 # there to prevent editors from complaining about space-tab.
31436 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
31437 # splitting by setting IFS to empty value.)
31440 # Find who we are. Look in the path if we contain no directory separator.
31443 *[\\/]* ) as_myself=$0 ;;
31444 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31445 for as_dir in $PATH
31448 test -z "$as_dir" && as_dir=.
31449 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
31455 # We did not find ourselves, most probably we were run as `sh COMMAND'
31456 # in which case we are not to be found in the path.
31457 if test "x$as_myself" = x; then
31460 if test ! -f "$as_myself"; then
31461 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
31465 # Unset variables that we do not need and which cause bugs (e.g. in
31466 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
31467 # suppresses any "Segmentation fault" message there. '((' could
31468 # trigger a bug in pdksh 5.2.14.
31469 for as_var in BASH_ENV ENV MAIL MAILPATH
31470 do eval test x\${$as_var+set} = xset \
31471 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
31484 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
31487 # as_fn_error STATUS ERROR [LINENO LOG_FD]
31488 # ----------------------------------------
31489 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
31490 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
31491 # script with STATUS, using 1 if that was 0.
31494 as_status=$1; test $as_status -eq 0 && as_status=1
31496 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
31497 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
31499 $as_echo "$as_me: error: $2" >&2
31500 as_fn_exit $as_status
31504 # as_fn_set_status STATUS
31505 # -----------------------
31506 # Set $? to STATUS, without forking.
31507 as_fn_set_status ()
31510 } # as_fn_set_status
31512 # as_fn_exit STATUS
31513 # -----------------
31514 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
31518 as_fn_set_status $1
31524 # Portably unset VAR.
31527 { eval $1=; unset $1;}
31529 as_unset=as_fn_unset
31530 # as_fn_append VAR VALUE
31531 # ----------------------
31532 # Append the text in VALUE to the end of the definition contained in VAR. Take
31533 # advantage of any shell optimizations that allow amortized linear growth over
31534 # repeated appends, instead of the typical quadratic growth present in naive
31536 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
31537 eval 'as_fn_append ()
31548 # as_fn_arith ARG...
31549 # ------------------
31550 # Perform arithmetic evaluation on the ARGs, and store the result in the
31551 # global $as_val. Take advantage of shells that can avoid forks. The arguments
31552 # must be portable across $(()) and expr.
31553 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
31554 eval 'as_fn_arith ()
31561 as_val=`expr "$@" || test $? -eq 1`
31566 if expr a : '\(a\)' >/dev/null 2>&1 &&
31567 test "X`expr 00001 : '.*\(...\)'`" = X001; then
31573 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
31574 as_basename=basename
31579 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
31585 as_me=`$as_basename -- "$0" ||
31586 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
31587 X"$0" : 'X\(//\)$' \| \
31588 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
31590 sed '/^.*\/\([^/][^/]*\)\/*$/{
31604 # Avoid depending upon Character Ranges.
31605 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
31606 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
31607 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
31608 as_cr_digits='0123456789'
31609 as_cr_alnum=$as_cr_Letters$as_cr_digits
31611 ECHO_C= ECHO_N= ECHO_T=
31612 case `echo -n x` in #(((((
31614 case `echo 'xy\c'` in
31615 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
31617 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
31624 rm -f conf$$ conf$$.exe conf$$.file
31625 if test -d conf$$.dir; then
31626 rm -f conf$$.dir/conf$$.file
31629 mkdir conf$$.dir 2>/dev/null
31631 if (echo >conf$$.file) 2>/dev/null; then
31632 if ln -s conf$$.file conf$$ 2>/dev/null; then
31634 # ... but there are two gotchas:
31635 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
31636 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
31637 # In both cases, we have to default to `cp -pR'.
31638 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
31640 elif ln conf$$.file conf$$ 2>/dev/null; then
31648 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
31649 rmdir conf$$.dir 2>/dev/null
31654 # Create "$as_dir" as a directory, including parents if necessary.
31659 -*) as_dir=./$as_dir;;
31661 test -d "$as_dir" || eval $as_mkdir_p || {
31665 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
31666 *) as_qdir=$as_dir;;
31668 as_dirs="'$as_qdir' $as_dirs"
31669 as_dir=`$as_dirname -- "$as_dir" ||
31670 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31671 X"$as_dir" : 'X\(//\)[^/]' \| \
31672 X"$as_dir" : 'X\(//\)$' \| \
31673 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
31674 $as_echo X"$as_dir" |
31675 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31679 /^X\(\/\/\)[^/].*/{
31692 test -d "$as_dir" && break
31694 test -z "$as_dirs" || eval "mkdir $as_dirs"
31695 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
31699 if mkdir -p . 2>/dev/null; then
31700 as_mkdir_p='mkdir -p "$as_dir"'
31702 test -d ./-p && rmdir ./-p
31707 # as_fn_executable_p FILE
31708 # -----------------------
31709 # Test if FILE is an executable regular file.
31710 as_fn_executable_p ()
31712 test -f "$1" && test -x "$1"
31713 } # as_fn_executable_p
31714 as_test_x='test -x'
31715 as_executable_p=as_fn_executable_p
31717 # Sed expression to map a string onto a valid CPP name.
31718 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
31720 # Sed expression to map a string onto a valid variable name.
31721 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
31725 ## ----------------------------------- ##
31726 ## Main body of $CONFIG_STATUS script. ##
31727 ## ----------------------------------- ##
31729 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
31731 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31732 # Save the log message, to keep $0 and so on meaningful, and to
31733 # report actual input values of CONFIG_FILES etc. instead of their
31734 # values after options handling.
31736 This file was extended by bacula $as_me 9.0.7, which was
31737 generated by GNU Autoconf 2.69. Invocation command line was
31739 CONFIG_FILES = $CONFIG_FILES
31740 CONFIG_HEADERS = $CONFIG_HEADERS
31741 CONFIG_LINKS = $CONFIG_LINKS
31742 CONFIG_COMMANDS = $CONFIG_COMMANDS
31745 on `(hostname || uname -n) 2>/dev/null | sed 1q`
31750 case $ac_config_files in *"
31751 "*) set x $ac_config_files; shift; ac_config_files=$*;;
31754 case $ac_config_headers in *"
31755 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
31759 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31760 # Files that config.status was made for.
31761 config_files="$ac_config_files"
31762 config_headers="$ac_config_headers"
31763 config_commands="$ac_config_commands"
31767 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31769 \`$as_me' instantiates files and other configuration actions
31770 from templates according to the current configuration. Unless the files
31771 and actions are specified as TAGs, all are instantiated by default.
31773 Usage: $0 [OPTION]... [TAG]...
31775 -h, --help print this help, then exit
31776 -V, --version print version number and configuration settings, then exit
31777 --config print configuration, then exit
31778 -q, --quiet, --silent
31779 do not print progress messages
31780 -d, --debug don't remove temporary files
31781 --recheck update $as_me by reconfiguring in the same conditions
31782 --file=FILE[:TEMPLATE]
31783 instantiate the configuration file FILE
31784 --header=FILE[:TEMPLATE]
31785 instantiate the configuration header FILE
31787 Configuration files:
31790 Configuration headers:
31793 Configuration commands:
31796 Report bugs to the package provider."
31799 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31800 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
31802 bacula config.status 9.0.7
31803 configured by $0, generated by GNU Autoconf 2.69,
31804 with options \\"\$ac_cs_config\\"
31806 Copyright (C) 2012 Free Software Foundation, Inc.
31807 This config.status script is free software; the Free Software Foundation
31808 gives unlimited permission to copy, distribute and modify it."
31814 test -n "\$AWK" || AWK=awk
31817 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31818 # The default lists apply if the user does not specify any file.
31824 ac_option=`expr "X$1" : 'X\([^=]*\)='`
31825 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
31829 ac_option=`expr "X$1" : 'X\([^=]*\)='`
31841 # Handling of the options.
31842 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
31844 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
31845 $as_echo "$ac_cs_version"; exit ;;
31846 --config | --confi | --conf | --con | --co | --c )
31847 $as_echo "$ac_cs_config"; exit ;;
31848 --debug | --debu | --deb | --de | --d | -d )
31850 --file | --fil | --fi | --f )
31853 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
31854 '') as_fn_error $? "missing file argument" ;;
31856 as_fn_append CONFIG_FILES " '$ac_optarg'"
31857 ac_need_defaults=false;;
31858 --header | --heade | --head | --hea )
31861 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
31863 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
31864 ac_need_defaults=false;;
31866 # Conflict between --help and --header
31867 as_fn_error $? "ambiguous option: \`$1'
31868 Try \`$0 --help' for more information.";;
31869 --help | --hel | -h )
31870 $as_echo "$ac_cs_usage"; exit ;;
31871 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
31872 | -silent | --silent | --silen | --sile | --sil | --si | --s)
31875 # This is an error.
31876 -*) as_fn_error $? "unrecognized option: \`$1'
31877 Try \`$0 --help' for more information." ;;
31879 *) as_fn_append ac_config_targets " $1"
31880 ac_need_defaults=false ;;
31886 ac_configure_extra_args=
31888 if $ac_cs_silent; then
31890 ac_configure_extra_args="$ac_configure_extra_args --silent"
31894 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31895 if \$ac_cs_recheck; then
31896 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
31898 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
31899 CONFIG_SHELL='$SHELL'
31900 export CONFIG_SHELL
31905 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31909 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
31910 ## Running $as_me. ##
31916 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31922 # The HP-UX ksh and POSIX shell print the target directory to stdout
31923 # if CDPATH is set.
31924 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
31926 sed_quote_subst='$sed_quote_subst'
31927 double_quote_subst='$double_quote_subst'
31928 delay_variable_subst='$delay_variable_subst'
31929 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
31930 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
31931 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
31932 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
31933 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
31934 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
31935 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
31936 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
31937 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
31938 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
31939 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
31940 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
31941 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
31942 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
31943 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
31944 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
31945 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
31946 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
31947 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
31948 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
31949 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
31950 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
31951 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
31952 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
31953 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
31954 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
31955 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
31956 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
31957 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
31958 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
31959 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
31960 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
31961 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
31962 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
31963 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
31964 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
31965 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
31966 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
31967 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
31968 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
31969 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
31970 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
31971 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
31972 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
31973 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
31974 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
31975 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
31976 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
31977 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
31978 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
31979 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
31980 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
31981 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
31982 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
31983 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
31984 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
31985 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"`'
31986 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
31987 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
31988 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
31989 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
31990 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
31991 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
31992 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
31993 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
31994 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
31995 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
31996 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
31997 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
31998 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
31999 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
32000 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
32001 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
32002 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
32003 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
32004 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
32005 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
32006 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
32007 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
32008 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
32009 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
32010 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
32011 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
32012 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
32013 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
32014 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
32015 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
32016 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
32017 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
32018 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
32019 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
32020 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
32021 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
32022 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
32023 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
32024 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
32025 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
32026 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
32027 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
32028 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
32029 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
32030 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
32031 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
32032 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
32033 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
32034 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
32035 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
32036 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
32037 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
32038 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
32039 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
32040 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
32041 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
32042 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
32043 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
32044 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
32045 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
32046 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
32047 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
32048 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
32049 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
32050 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
32051 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
32052 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
32053 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
32054 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
32055 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
32056 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
32057 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
32058 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
32059 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
32060 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
32061 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
32062 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
32063 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
32064 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
32065 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
32066 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
32067 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
32068 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
32069 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
32070 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
32071 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
32072 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
32073 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
32074 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
32075 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
32076 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
32077 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
32078 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
32079 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
32080 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
32081 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
32082 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
32083 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
32084 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
32085 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
32086 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
32087 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
32088 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
32089 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
32090 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
32091 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
32092 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
32093 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
32094 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
32095 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
32096 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
32097 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
32098 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
32099 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
32100 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
32101 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
32102 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
32103 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
32104 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
32105 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
32106 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
32107 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
32108 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
32109 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
32110 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
32111 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
32112 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
32115 LTCFLAGS='$LTCFLAGS'
32116 compiler='$compiler_DEFAULT'
32118 # A function that is used when there is no print builtin or printf.
32119 func_fallback_echo ()
32121 eval 'cat <<_LTECHO_EOF
32126 # Quote evaled strings.
32141 deplibs_check_method \
32146 sharedlib_from_linklib_cmd \
32149 archiver_list_spec \
32155 lt_cv_sys_global_symbol_pipe \
32156 lt_cv_sys_global_symbol_to_cdecl \
32157 lt_cv_sys_global_symbol_to_c_name_address \
32158 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
32159 nm_file_list_spec \
32160 lt_prog_compiler_no_builtin_flag \
32161 lt_prog_compiler_pic \
32162 lt_prog_compiler_wl \
32163 lt_prog_compiler_static \
32164 lt_cv_prog_compiler_c_o \
32173 export_dynamic_flag_spec \
32174 whole_archive_flag_spec \
32175 compiler_needs_object \
32177 allow_undefined_flag \
32178 no_undefined_flag \
32179 hardcode_libdir_flag_spec \
32180 hardcode_libdir_separator \
32184 variables_saved_for_relink \
32186 library_names_spec \
32188 install_override_mode \
32192 compiler_lib_search_dirs \
32197 compiler_lib_search_path \
32201 lt_prog_compiler_no_builtin_flag_CXX \
32202 lt_prog_compiler_pic_CXX \
32203 lt_prog_compiler_wl_CXX \
32204 lt_prog_compiler_static_CXX \
32205 lt_cv_prog_compiler_c_o_CXX \
32206 export_dynamic_flag_spec_CXX \
32207 whole_archive_flag_spec_CXX \
32208 compiler_needs_object_CXX \
32210 allow_undefined_flag_CXX \
32211 no_undefined_flag_CXX \
32212 hardcode_libdir_flag_spec_CXX \
32213 hardcode_libdir_separator_CXX \
32214 exclude_expsyms_CXX \
32215 include_expsyms_CXX \
32216 file_list_spec_CXX \
32217 compiler_lib_search_dirs_CXX \
32218 predep_objects_CXX \
32219 postdep_objects_CXX \
32222 compiler_lib_search_path_CXX; do
32223 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
32224 *[\\\\\\\`\\"\\\$]*)
32225 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
32228 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
32233 # Double-quote double-evaled strings.
32234 for var in reload_cmds \
32235 old_postinstall_cmds \
32236 old_postuninstall_cmds \
32238 extract_expsyms_cmds \
32239 old_archive_from_new_cmds \
32240 old_archive_from_expsyms_cmds \
32242 archive_expsym_cmds \
32244 module_expsym_cmds \
32245 export_symbols_cmds \
32249 postuninstall_cmds \
32251 sys_lib_search_path_spec \
32252 sys_lib_dlsearch_path_spec \
32254 old_archive_cmds_CXX \
32255 old_archive_from_new_cmds_CXX \
32256 old_archive_from_expsyms_cmds_CXX \
32258 archive_expsym_cmds_CXX \
32260 module_expsym_cmds_CXX \
32261 export_symbols_cmds_CXX \
32263 postlink_cmds_CXX; do
32264 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
32265 *[\\\\\\\`\\"\\\$]*)
32266 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
32269 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
32274 ac_aux_dir='$ac_aux_dir'
32275 xsi_shell='$xsi_shell'
32276 lt_shell_append='$lt_shell_append'
32278 # See if we are running on zsh, and set the options which allow our
32279 # commands through without removal of \ escapes INIT.
32280 if test -n "\${ZSH_VERSION+set}" ; then
32281 setopt NO_GLOB_SUBST
32287 TIMESTAMP='$TIMESTAMP'
32295 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
32296 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
32298 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
32299 # Capture the value of LINGUAS because we need it to compute CATALOGS.
32300 LINGUAS="${LINGUAS-%UNSET%}"
32305 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32307 # Handling of arguments.
32308 for ac_config_target in $ac_config_targets
32310 case $ac_config_target in
32311 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
32312 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
32313 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
32314 "autoconf/Make.common") CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
32315 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
32316 "manpages/Makefile") CONFIG_FILES="$CONFIG_FILES manpages/Makefile" ;;
32317 "scripts/btraceback") CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
32318 "scripts/bconsole") CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
32319 "scripts/baculabackupreport") CONFIG_FILES="$CONFIG_FILES scripts/baculabackupreport" ;;
32320 "scripts/bacula") CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
32321 "scripts/bacula-ctl-dir") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-dir" ;;
32322 "scripts/bacula-ctl-fd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-fd" ;;
32323 "scripts/bacula-ctl-sd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-sd" ;;
32324 "scripts/devel_bacula") CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
32325 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
32326 "scripts/logrotate") CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
32327 "scripts/mtx-changer") CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
32328 "scripts/disk-changer") CONFIG_FILES="$CONFIG_FILES scripts/disk-changer" ;;
32329 "scripts/dvd-handler") CONFIG_FILES="$CONFIG_FILES scripts/dvd-handler" ;;
32330 "scripts/dvd-simulator") CONFIG_FILES="$CONFIG_FILES scripts/dvd-simulator" ;;
32331 "scripts/logwatch/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/Makefile" ;;
32332 "scripts/logwatch/logfile.bacula.conf") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/logfile.bacula.conf" ;;
32333 "scripts/bat.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop" ;;
32334 "scripts/bat.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.xsu" ;;
32335 "scripts/bat.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.consolehelper" ;;
32336 "scripts/bat.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bat.console_apps" ;;
32337 "scripts/bacula-tray-monitor.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bacula-tray-monitor.desktop" ;;
32338 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
32339 "src/host.h") CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
32340 "src/console/Makefile") CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
32341 "src/console/bconsole.conf") CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
32342 "src/qt-console/bat.conf") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.conf" ;;
32343 "src/qt-console/bat.pro") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro" ;;
32344 "src/qt-console/bat.pro.mingw32") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro.mingw32" ;;
32345 "src/qt-console/bat.pro.mingw64") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro.mingw64" ;;
32346 "src/qt-console/install_conf_file") CONFIG_FILES="$CONFIG_FILES src/qt-console/install_conf_file" ;;
32347 "src/qt-console/tray-monitor/tray-monitor.conf") CONFIG_FILES="$CONFIG_FILES src/qt-console/tray-monitor/tray-monitor.conf" ;;
32348 "src/qt-console/tray-monitor/tray-monitor.pro") CONFIG_FILES="$CONFIG_FILES src/qt-console/tray-monitor/tray-monitor.pro" ;;
32349 "src/qt-console/tray-monitor/tray-monitor.pro.mingw32") CONFIG_FILES="$CONFIG_FILES src/qt-console/tray-monitor/tray-monitor.pro.mingw32" ;;
32350 "src/qt-console/tray-monitor/tray-monitor.pro.mingw64") CONFIG_FILES="$CONFIG_FILES src/qt-console/tray-monitor/tray-monitor.pro.mingw64" ;;
32351 "src/dird/Makefile") CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
32352 "src/dird/bacula-dir.conf") CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
32353 "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
32354 "src/stored/Makefile") CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
32355 "src/stored/bacula-sd.conf") CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
32356 "src/filed/Makefile") CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
32357 "src/filed/bacula-fd.conf") CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
32358 "src/cats/Makefile") CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
32359 "src/cats/make_catalog_backup.pl") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup.pl" ;;
32360 "src/cats/make_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
32361 "src/cats/delete_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
32362 "src/cats/create_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
32363 "src/cats/update_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
32364 "src/cats/make_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
32365 "src/cats/grant_postgresql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
32366 "src/cats/drop_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
32367 "src/cats/drop_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
32368 "src/cats/create_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
32369 "src/cats/update_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
32370 "src/cats/make_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
32371 "src/cats/grant_mysql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
32372 "src/cats/drop_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
32373 "src/cats/drop_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
32374 "src/cats/create_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite3_database" ;;
32375 "src/cats/update_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite3_tables" ;;
32376 "src/cats/make_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite3_tables" ;;
32377 "src/cats/grant_sqlite3_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite3_privileges" ;;
32378 "src/cats/drop_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_tables" ;;
32379 "src/cats/drop_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_database" ;;
32380 "src/cats/sqlite") CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
32381 "src/cats/mysql") CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
32382 "src/cats/create_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
32383 "src/cats/update_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
32384 "src/cats/grant_bacula_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
32385 "src/cats/make_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
32386 "src/cats/drop_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
32387 "src/cats/drop_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
32388 "src/cats/install-default-backend") CONFIG_FILES="$CONFIG_FILES src/cats/install-default-backend" ;;
32389 "src/findlib/Makefile") CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
32390 "src/tools/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
32391 "src/plugins/fd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/fd/Makefile" ;;
32392 "src/plugins/sd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/sd/Makefile" ;;
32393 "src/plugins/dir/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/dir/Makefile" ;;
32394 "src/win32/Makefile.inc") CONFIG_FILES="$CONFIG_FILES src/win32/Makefile.inc" ;;
32395 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
32396 "updatedb/update_mysql_tables") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables" ;;
32397 "updatedb/update_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables" ;;
32398 "updatedb/update_postgresql_tables") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables" ;;
32399 "updatedb/update_mysql_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_9_to_10" ;;
32400 "updatedb/update_sqlite3_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_9_to_10" ;;
32401 "updatedb/update_postgresql_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_9_to_10" ;;
32402 "updatedb/update_mysql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_10_to_11" ;;
32403 "updatedb/update_sqlite3_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_10_to_11" ;;
32404 "updatedb/update_postgresql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_10_to_11" ;;
32405 "updatedb/update_mysql_tables_11_to_12") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_11_to_12" ;;
32406 "updatedb/update_sqlite3_tables_11_to_12") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_11_to_12" ;;
32407 "updatedb/update_postgresql_tables_11_to_12") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_11_to_12" ;;
32408 "examples/nagios/check_bacula/Makefile") CONFIG_FILES="$CONFIG_FILES examples/nagios/check_bacula/Makefile" ;;
32409 "platforms/rpms/redhat/bacula.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/redhat/bacula.spec" ;;
32410 "platforms/rpms/redhat/bacula-bat.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/redhat/bacula-bat.spec" ;;
32411 "platforms/rpms/redhat/bacula-docs.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/redhat/bacula-docs.spec" ;;
32412 "platforms/rpms/redhat/bacula-mtx.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/redhat/bacula-mtx.spec" ;;
32413 "platforms/rpms/suse/bacula.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/suse/bacula.spec" ;;
32414 "platforms/rpms/suse/bacula-bat.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/suse/bacula-bat.spec" ;;
32415 "platforms/rpms/suse/bacula-docs.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/suse/bacula-docs.spec" ;;
32416 "platforms/rpms/suse/bacula-mtx.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/suse/bacula-mtx.spec" ;;
32417 "$PFILES") CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
32418 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
32420 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
32425 # If the user did not use the arguments to specify the items to instantiate,
32426 # then the envvar interface is used. Set only those that are not.
32427 # We use the long form for the default assignment because of an extremely
32428 # bizarre bug on SunOS 4.1.3.
32429 if $ac_need_defaults; then
32430 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
32431 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
32432 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
32435 # Have a temporary directory for convenience. Make it in the build tree
32436 # simply because there is no reason against having it here, and in addition,
32437 # creating and moving files from /tmp can sometimes cause problems.
32438 # Hook for its removal unless debugging.
32439 # Note that there is a small window in which the directory will not be cleaned:
32440 # after its creation but before its name has been assigned to `$tmp'.
32444 trap 'exit_status=$?
32445 : "${ac_tmp:=$tmp}"
32446 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
32448 trap 'as_fn_exit 1' 1 2 13 15
32450 # Create a (secure) tmp directory for tmp files.
32453 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
32457 tmp=./conf$$-$RANDOM
32458 (umask 077 && mkdir "$tmp")
32459 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
32462 # Set up the scripts for CONFIG_FILES section.
32463 # No need to generate them if there are no CONFIG_FILES.
32464 # This happens for instance with `./config.status config.h'.
32465 if test -n "$CONFIG_FILES"; then
32467 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
32468 ac_cs_awk_getline=:
32469 ac_cs_awk_pipe_init=
32470 ac_cs_awk_read_file='
32471 while ((getline aline < (F[key])) > 0)
32474 ac_cs_awk_pipe_fini=
32476 ac_cs_awk_getline=false
32477 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
32478 ac_cs_awk_read_file='
32480 print "cat " F[key] " &&"
32481 '$ac_cs_awk_pipe_init
32482 # The final `:' finishes the AND list.
32483 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
32485 ac_cr=`echo X | tr X '\015'`
32486 # On cygwin, bash can eat \r inside `` if the user requested igncr.
32487 # But we know of no other shell where ac_cr would be empty at this
32488 # point, so we can use a bashism as a fallback.
32489 if test "x$ac_cr" = x; then
32490 eval ac_cr=\$\'\\r\'
32492 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
32493 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
32496 ac_cs_awk_cr=$ac_cr
32499 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
32502 # Create commands to substitute file output variables.
32504 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
32505 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
32506 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
32509 } >conf$$files.sh &&
32510 . ./conf$$files.sh ||
32511 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
32512 rm -f conf$$files.sh
32515 echo "cat >conf$$subs.awk <<_ACEOF" &&
32516 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
32518 } >conf$$subs.sh ||
32519 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
32520 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
32522 for ac_last_try in false false false false false :; do
32523 . ./conf$$subs.sh ||
32524 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
32526 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
32527 if test $ac_delim_n = $ac_delim_num; then
32529 elif $ac_last_try; then
32530 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
32532 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
32535 rm -f conf$$subs.sh
32537 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32538 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
32542 s/^/S["/; s/!.*/"]=/
32552 s/\(.\{148\}\)..*/\1/
32554 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
32559 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
32566 s/\(.\{148\}\)..*/\1/
32568 s/["\\]/\\&/g; s/^/"/; s/$/"/
32572 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
32577 ' <conf$$subs.awk | sed '
32582 ' >>$CONFIG_STATUS || ac_write_fail=1
32583 rm -f conf$$subs.awk
32584 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32586 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
32587 for (key in S) S_is_set[key] = 1
32589 \$ac_cs_awk_pipe_init
32593 nfields = split(line, field, "@")
32595 len = length(field[1])
32596 for (i = 2; i < nfields; i++) {
32598 keylen = length(key)
32599 if (S_is_set[key]) {
32601 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
32602 len += length(value) + length(field[++i])
32607 if (nfields == 3 && !substed) {
32609 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
32610 \$ac_cs_awk_read_file
32616 \$ac_cs_awk_pipe_fini
32619 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32620 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
32621 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
32624 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
32625 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
32628 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
32629 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
32630 # trailing colons and then remove the whole line if VPATH becomes empty
32631 # (actually we leave an empty line to preserve line numbers).
32632 if test "x$srcdir" = x.; then
32633 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
32651 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32652 fi # test -n "$CONFIG_FILES"
32654 # Set up the scripts for CONFIG_HEADERS section.
32655 # No need to generate them if there are no CONFIG_HEADERS.
32656 # This happens for instance with `./config.status Makefile'.
32657 if test -n "$CONFIG_HEADERS"; then
32658 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
32662 # Transform confdefs.h into an awk script `defines.awk', embedded as
32663 # here-document in config.status, that substitutes the proper values into
32664 # config.h.in to produce config.h.
32666 # Create a delimiter string that does not exist in confdefs.h, to ease
32667 # handling of long lines.
32669 for ac_last_try in false false :; do
32670 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
32671 if test -z "$ac_tt"; then
32673 elif $ac_last_try; then
32674 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
32676 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
32680 # For the awk script, D is an array of macro values keyed by name,
32681 # likewise P contains macro parameters if any. Preserve backslash
32682 # newline sequences.
32684 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
32686 s/.\{148\}/&'"$ac_delim"'/g
32689 s/^[ ]*#[ ]*define[ ][ ]*/ /
32696 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
32698 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
32702 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
32703 D["\1"]=" \3\\\\\\n"\\/p
32705 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
32710 s/.\{148\}/&'"$ac_delim"'/g
32715 s/["\\]/\\&/g; s/^/"/; s/$/"/p
32718 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
32720 ' <confdefs.h | sed '
32721 s/'"$ac_delim"'/"\\\
32722 "/g' >>$CONFIG_STATUS || ac_write_fail=1
32724 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32725 for (key in D) D_is_set[key] = 1
32728 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
32730 split(line, arg, " ")
32731 if (arg[1] == "#") {
32735 defundef = substr(arg[1], 2)
32738 split(mac1, mac2, "(") #)
32740 prefix = substr(line, 1, index(line, defundef) - 1)
32741 if (D_is_set[macro]) {
32742 # Preserve the white space surrounding the "#".
32743 print prefix "define", macro P[macro] D[macro]
32746 # Replace #undef with comments. This is necessary, for example,
32747 # in the case of _POSIX_SOURCE, which is predefined and required
32748 # on some systems where configure will not decide to define it.
32749 if (defundef == "undef") {
32750 print "/*", prefix defundef, macro, "*/"
32758 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32759 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
32760 fi # test -n "$CONFIG_HEADERS"
32763 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
32768 :[FHLC]) ac_mode=$ac_tag; continue;;
32770 case $ac_mode$ac_tag in
32772 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
32773 :[FH]-) ac_tag=-:-;;
32774 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
32791 -) ac_f="$ac_tmp/stdin";;
32792 *) # Look for the file first in the build tree, then in the source tree
32793 # (if the path is not absolute). The absolute path cannot be DOS-style,
32794 # because $ac_f cannot contain `:'.
32798 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
32800 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
32802 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
32803 as_fn_append ac_file_inputs " '$ac_f'"
32806 # Let's still pretend it is `configure' which instantiates (i.e., don't
32807 # use $as_me), people would be surprised to read:
32808 # /* config.h. Generated by config.status. */
32809 configure_input='Generated from '`
32810 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
32812 if test x"$ac_file" != x-; then
32813 configure_input="$ac_file. $configure_input"
32814 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
32815 $as_echo "$as_me: creating $ac_file" >&6;}
32817 # Neutralize special characters interpreted by sed in replacement strings.
32818 case $configure_input in #(
32819 *\&* | *\|* | *\\* )
32820 ac_sed_conf_input=`$as_echo "$configure_input" |
32821 sed 's/[\\\\&|]/\\\\&/g'`;; #(
32822 *) ac_sed_conf_input=$configure_input;;
32826 *:-:* | *:-) cat >"$ac_tmp/stdin" \
32827 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
32832 ac_dir=`$as_dirname -- "$ac_file" ||
32833 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32834 X"$ac_file" : 'X\(//\)[^/]' \| \
32835 X"$ac_file" : 'X\(//\)$' \| \
32836 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
32837 $as_echo X"$ac_file" |
32838 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32842 /^X\(\/\/\)[^/].*/{
32855 as_dir="$ac_dir"; as_fn_mkdir_p
32859 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
32861 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
32862 # A ".." for each directory in $ac_dir_suffix.
32863 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
32864 case $ac_top_builddir_sub in
32865 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
32866 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
32869 ac_abs_top_builddir=$ac_pwd
32870 ac_abs_builddir=$ac_pwd$ac_dir_suffix
32871 # for backward compatibility:
32872 ac_top_builddir=$ac_top_build_prefix
32875 .) # We are building in place.
32877 ac_top_srcdir=$ac_top_builddir_sub
32878 ac_abs_top_srcdir=$ac_pwd ;;
32879 [\\/]* | ?:[\\/]* ) # Absolute name.
32880 ac_srcdir=$srcdir$ac_dir_suffix;
32881 ac_top_srcdir=$srcdir
32882 ac_abs_top_srcdir=$srcdir ;;
32883 *) # Relative name.
32884 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
32885 ac_top_srcdir=$ac_top_build_prefix$srcdir
32886 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
32888 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
32898 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
32899 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
32903 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32904 # If the template does not know about datarootdir, expand it.
32905 # FIXME: This hack should be removed a few years after 2.60.
32906 ac_datarootdir_hack=; ac_datarootdir_seen=
32917 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
32918 *datarootdir*) ac_datarootdir_seen=yes;;
32919 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
32920 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
32921 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
32923 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32924 ac_datarootdir_hack='
32925 s&@datadir@&$datadir&g
32926 s&@docdir@&$docdir&g
32927 s&@infodir@&$infodir&g
32928 s&@localedir@&$localedir&g
32929 s&@mandir@&$mandir&g
32930 s&\\\${datarootdir}&$datarootdir&g' ;;
32934 # Neutralize VPATH when `$srcdir' = `.'.
32935 # Shell code in configure.ac might set extrasub.
32936 # FIXME: do we really want to maintain this feature?
32937 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32938 ac_sed_extra="$ac_vpsub
32941 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32943 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
32944 s|@configure_input@|$ac_sed_conf_input|;t t
32945 s&@top_builddir@&$ac_top_builddir_sub&;t t
32946 s&@top_build_prefix@&$ac_top_build_prefix&;t t
32947 s&@srcdir@&$ac_srcdir&;t t
32948 s&@abs_srcdir@&$ac_abs_srcdir&;t t
32949 s&@top_srcdir@&$ac_top_srcdir&;t t
32950 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
32951 s&@builddir@&$ac_builddir&;t t
32952 s&@abs_builddir@&$ac_abs_builddir&;t t
32953 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
32954 s&@INSTALL@&$ac_INSTALL&;t t
32955 $ac_datarootdir_hack
32957 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
32958 if $ac_cs_awk_getline; then
32959 $AWK -f "$ac_tmp/subs.awk"
32961 $AWK -f "$ac_tmp/subs.awk" | $SHELL
32963 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32965 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
32966 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
32967 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
32968 "$ac_tmp/out"`; test -z "$ac_out"; } &&
32969 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
32970 which seems to be undefined. Please make sure it is defined" >&5
32971 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
32972 which seems to be undefined. Please make sure it is defined" >&2;}
32974 rm -f "$ac_tmp/stdin"
32976 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
32977 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
32979 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32985 if test x"$ac_file" != x-; then
32987 $as_echo "/* $configure_input */" \
32988 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
32989 } >"$ac_tmp/config.h" \
32990 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32991 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
32992 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
32993 $as_echo "$as_me: $ac_file is unchanged" >&6;}
32996 mv "$ac_tmp/config.h" "$ac_file" \
32997 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
33000 $as_echo "/* $configure_input */" \
33001 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
33002 || as_fn_error $? "could not create -" "$LINENO" 5
33006 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
33007 $as_echo "$as_me: executing $ac_file commands" >&6;}
33012 case $ac_file$ac_mode in
33015 # See if we are running on zsh, and set the options which allow our
33016 # commands through without removal of \ escapes.
33017 if test -n "${ZSH_VERSION+set}" ; then
33018 setopt NO_GLOB_SUBST
33021 cfgfile="${ofile}T"
33022 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
33025 cat <<_LT_EOF >> "$cfgfile"
33028 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
33029 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
33030 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
33031 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
33033 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
33034 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
33036 # Written by Gordon Matzigkeit, 1996
33038 # This file is part of GNU Libtool.
33040 # GNU Libtool is free software; you can redistribute it and/or
33041 # modify it under the terms of the GNU General Public License as
33042 # published by the Free Software Foundation; either version 2 of
33043 # the License, or (at your option) any later version.
33045 # As a special exception to the GNU General Public License,
33046 # if you distribute this file as part of a program or library that
33047 # is built using GNU Libtool, you may include this file under the
33048 # same distribution terms that you use for the rest of that program.
33050 # GNU Libtool is distributed in the hope that it will be useful,
33051 # but WITHOUT ANY WARRANTY; without even the implied warranty of
33052 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
33053 # GNU General Public License for more details.
33055 # You should have received a copy of the GNU General Public License
33056 # along with GNU Libtool; see the file COPYING. If not, a copy
33057 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
33058 # obtained by writing to the Free Software Foundation, Inc.,
33059 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
33062 # The names of the tagged configurations supported by this script.
33063 available_tags="CXX "
33065 # ### BEGIN LIBTOOL CONFIG
33067 # Which release of libtool.m4 was used?
33068 macro_version=$macro_version
33069 macro_revision=$macro_revision
33071 # Whether or not to build shared libraries.
33072 build_libtool_libs=$enable_shared
33074 # Whether or not to build static libraries.
33075 build_old_libs=$enable_static
33077 # What type of objects to build.
33080 # Whether or not to optimize for fast installation.
33081 fast_install=$enable_fast_install
33083 # Shell to use when invoking shell scripts.
33086 # An echo program that protects backslashes.
33089 # The PATH separator for the build system.
33090 PATH_SEPARATOR=$lt_PATH_SEPARATOR
33093 host_alias=$host_alias
33097 # The build system.
33098 build_alias=$build_alias
33102 # A sed program that does not truncate output.
33105 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
33106 Xsed="\$SED -e 1s/^X//"
33108 # A grep program that handles long lines.
33114 # A literal string matcher.
33117 # A BSD- or MS-compatible name lister.
33120 # Whether we need soft or hard links.
33123 # What is the maximum length of a command?
33124 max_cmd_len=$max_cmd_len
33126 # Object file suffix (normally "o").
33129 # Executable file suffix (normally "").
33132 # whether the shell understands "unset".
33135 # turn spaces into newlines.
33138 # turn newlines into spaces.
33141 # convert \$build file names to \$host format.
33142 to_host_file_cmd=$lt_cv_to_host_file_cmd
33144 # convert \$build files to toolchain format.
33145 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
33147 # An object symbol dumper.
33148 OBJDUMP=$lt_OBJDUMP
33150 # Method to check whether dependent libraries are shared objects.
33151 deplibs_check_method=$lt_deplibs_check_method
33153 # Command to use when deplibs_check_method = "file_magic".
33154 file_magic_cmd=$lt_file_magic_cmd
33156 # How to find potential files when deplibs_check_method = "file_magic".
33157 file_magic_glob=$lt_file_magic_glob
33159 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
33160 want_nocaseglob=$lt_want_nocaseglob
33162 # DLL creation program.
33163 DLLTOOL=$lt_DLLTOOL
33165 # Command to associate shared and link libraries.
33166 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
33171 # Flags to create an archive.
33172 AR_FLAGS=$lt_AR_FLAGS
33174 # How to feed a file listing to the archiver.
33175 archiver_list_spec=$lt_archiver_list_spec
33177 # A symbol stripping program.
33180 # Commands used to install an old-style archive.
33182 old_postinstall_cmds=$lt_old_postinstall_cmds
33183 old_postuninstall_cmds=$lt_old_postuninstall_cmds
33185 # Whether to use a lock for old archive extraction.
33186 lock_old_archive_extraction=$lock_old_archive_extraction
33191 # LTCC compiler flags.
33192 LTCFLAGS=$lt_CFLAGS
33194 # Take the output of nm and produce a listing of raw symbols and C names.
33195 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
33197 # Transform the output of nm in a proper C declaration.
33198 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
33200 # Transform the output of nm in a C name address pair.
33201 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
33203 # Transform the output of nm in a C name address pair when lib prefix is needed.
33204 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
33206 # Specify filename containing input files for \$NM.
33207 nm_file_list_spec=$lt_nm_file_list_spec
33209 # The root where to search for dependent libraries,and in which our libraries should be installed.
33210 lt_sysroot=$lt_sysroot
33212 # The name of the directory that contains temporary libtool files.
33215 # Used to examine libraries when file_magic_cmd begins with "file".
33216 MAGIC_CMD=$MAGIC_CMD
33218 # Must we lock files when doing compilation?
33219 need_locks=$lt_need_locks
33222 MANIFEST_TOOL=$lt_MANIFEST_TOOL
33224 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
33225 DSYMUTIL=$lt_DSYMUTIL
33227 # Tool to change global to local symbols on Mac OS X.
33230 # Tool to manipulate fat objects and archives on Mac OS X.
33233 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
33236 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
33237 OTOOL64=$lt_OTOOL64
33239 # Old archive suffix (normally "a").
33242 # Shared library suffix (normally ".so").
33243 shrext_cmds=$lt_shrext_cmds
33245 # The commands to extract the exported symbol list from a shared archive.
33246 extract_expsyms_cmds=$lt_extract_expsyms_cmds
33248 # Variables whose values should be saved in libtool wrapper scripts and
33249 # restored at link time.
33250 variables_saved_for_relink=$lt_variables_saved_for_relink
33252 # Do we need the "lib" prefix for modules?
33253 need_lib_prefix=$need_lib_prefix
33255 # Do we need a version for libraries?
33256 need_version=$need_version
33258 # Library versioning type.
33259 version_type=$version_type
33261 # Shared library runtime path variable.
33262 runpath_var=$runpath_var
33264 # Shared library path variable.
33265 shlibpath_var=$shlibpath_var
33267 # Is shlibpath searched before the hard-coded library search path?
33268 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
33270 # Format of library name prefix.
33271 libname_spec=$lt_libname_spec
33273 # List of archive names. First name is the real one, the rest are links.
33274 # The last name is the one that the linker finds with -lNAME
33275 library_names_spec=$lt_library_names_spec
33277 # The coded name of the library, if different from the real name.
33278 soname_spec=$lt_soname_spec
33280 # Permission mode override for installation of shared libraries.
33281 install_override_mode=$lt_install_override_mode
33283 # Command to use after installation of a shared archive.
33284 postinstall_cmds=$lt_postinstall_cmds
33286 # Command to use after uninstallation of a shared archive.
33287 postuninstall_cmds=$lt_postuninstall_cmds
33289 # Commands used to finish a libtool library installation in a directory.
33290 finish_cmds=$lt_finish_cmds
33292 # As "finish_cmds", except a single script fragment to be evaled but
33294 finish_eval=$lt_finish_eval
33296 # Whether we should hardcode library paths into libraries.
33297 hardcode_into_libs=$hardcode_into_libs
33299 # Compile-time system search path for libraries.
33300 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
33302 # Run-time system search path for libraries.
33303 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
33305 # Whether dlopen is supported.
33306 dlopen_support=$enable_dlopen
33308 # Whether dlopen of programs is supported.
33309 dlopen_self=$enable_dlopen_self
33311 # Whether dlopen of statically linked programs is supported.
33312 dlopen_self_static=$enable_dlopen_self_static
33314 # Commands to strip libraries.
33315 old_striplib=$lt_old_striplib
33316 striplib=$lt_striplib
33319 # The linker used to build libraries.
33322 # How to create reloadable object files.
33323 reload_flag=$lt_reload_flag
33324 reload_cmds=$lt_reload_cmds
33326 # Commands used to build an old-style archive.
33327 old_archive_cmds=$lt_old_archive_cmds
33329 # A language specific compiler.
33332 # Is the compiler the GNU compiler?
33335 # Compiler flag to turn off builtin functions.
33336 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
33338 # Additional compiler flags for building library objects.
33339 pic_flag=$lt_lt_prog_compiler_pic
33341 # How to pass a linker flag through the compiler.
33342 wl=$lt_lt_prog_compiler_wl
33344 # Compiler flag to prevent dynamic linking.
33345 link_static_flag=$lt_lt_prog_compiler_static
33347 # Does compiler simultaneously support -c and -o options?
33348 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
33350 # Whether or not to add -lc for building shared libraries.
33351 build_libtool_need_lc=$archive_cmds_need_lc
33353 # Whether or not to disallow shared libs when runtime libs are static.
33354 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
33356 # Compiler flag to allow reflexive dlopens.
33357 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
33359 # Compiler flag to generate shared objects directly from archives.
33360 whole_archive_flag_spec=$lt_whole_archive_flag_spec
33362 # Whether the compiler copes with passing no objects directly.
33363 compiler_needs_object=$lt_compiler_needs_object
33365 # Create an old-style archive from a shared archive.
33366 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
33368 # Create a temporary old-style archive to link instead of a shared archive.
33369 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
33371 # Commands used to build a shared archive.
33372 archive_cmds=$lt_archive_cmds
33373 archive_expsym_cmds=$lt_archive_expsym_cmds
33375 # Commands used to build a loadable module if different from building
33376 # a shared archive.
33377 module_cmds=$lt_module_cmds
33378 module_expsym_cmds=$lt_module_expsym_cmds
33380 # Whether we are building with GNU ld or not.
33381 with_gnu_ld=$lt_with_gnu_ld
33383 # Flag that allows shared libraries with undefined symbols to be built.
33384 allow_undefined_flag=$lt_allow_undefined_flag
33386 # Flag that enforces no undefined symbols.
33387 no_undefined_flag=$lt_no_undefined_flag
33389 # Flag to hardcode \$libdir into a binary during linking.
33390 # This must work even if \$libdir does not exist
33391 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
33393 # Whether we need a single "-rpath" flag with a separated argument.
33394 hardcode_libdir_separator=$lt_hardcode_libdir_separator
33396 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
33397 # DIR into the resulting binary.
33398 hardcode_direct=$hardcode_direct
33400 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
33401 # DIR into the resulting binary and the resulting library dependency is
33402 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
33403 # library is relocated.
33404 hardcode_direct_absolute=$hardcode_direct_absolute
33406 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
33407 # into the resulting binary.
33408 hardcode_minus_L=$hardcode_minus_L
33410 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
33411 # into the resulting binary.
33412 hardcode_shlibpath_var=$hardcode_shlibpath_var
33414 # Set to "yes" if building a shared library automatically hardcodes DIR
33415 # into the library and all subsequent libraries and executables linked
33417 hardcode_automatic=$hardcode_automatic
33419 # Set to yes if linker adds runtime paths of dependent libraries
33420 # to runtime path list.
33421 inherit_rpath=$inherit_rpath
33423 # Whether libtool must link a program against all its dependency libraries.
33424 link_all_deplibs=$link_all_deplibs
33426 # Set to "yes" if exported symbols are required.
33427 always_export_symbols=$always_export_symbols
33429 # The commands to list exported symbols.
33430 export_symbols_cmds=$lt_export_symbols_cmds
33432 # Symbols that should not be listed in the preloaded symbols.
33433 exclude_expsyms=$lt_exclude_expsyms
33435 # Symbols that must always be exported.
33436 include_expsyms=$lt_include_expsyms
33438 # Commands necessary for linking programs (against libraries) with templates.
33439 prelink_cmds=$lt_prelink_cmds
33441 # Commands necessary for finishing linking programs.
33442 postlink_cmds=$lt_postlink_cmds
33444 # Specify filename containing input files.
33445 file_list_spec=$lt_file_list_spec
33447 # How to hardcode a shared library path into an executable.
33448 hardcode_action=$hardcode_action
33450 # The directories searched by this compiler when creating a shared library.
33451 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
33453 # Dependencies to place before and after the objects being linked to
33454 # create a shared library.
33455 predep_objects=$lt_predep_objects
33456 postdep_objects=$lt_postdep_objects
33457 predeps=$lt_predeps
33458 postdeps=$lt_postdeps
33460 # The library search path used internally by the compiler when linking
33461 # a shared library.
33462 compiler_lib_search_path=$lt_compiler_lib_search_path
33464 # ### END LIBTOOL CONFIG
33470 cat <<\_LT_EOF >> "$cfgfile"
33471 # AIX sometimes has problems with the GCC collect2 program. For some
33472 # reason, if we set the COLLECT_NAMES environment variable, the problems
33473 # vanish in a puff of smoke.
33474 if test "X${COLLECT_NAMES+set}" != Xset; then
33476 export COLLECT_NAMES
33483 ltmain="$ac_aux_dir/ltmain.sh"
33486 # We use sed instead of cat because bash on DJGPP gets confused if
33487 # if finds mixed CR/LF and LF-only lines. Since sed operates in
33488 # text mode, it properly converts lines to CR/LF. This bash problem
33489 # is reportedly fixed, but why not run on old versions too?
33490 sed '$q' "$ltmain" >> "$cfgfile" \
33491 || (rm -f "$cfgfile"; exit 1)
33493 if test x"$xsi_shell" = xyes; then
33494 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
33498 \ */*) func_dirname_result="${1%/*}${2}" ;;\
33499 \ * ) func_dirname_result="${3}" ;;\
33501 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
33502 && mv -f "$cfgfile.tmp" "$cfgfile" \
33503 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33504 test 0 -eq $? || _lt_function_replace_fail=:
33507 sed -e '/^func_basename ()$/,/^} # func_basename /c\
33510 \ func_basename_result="${1##*/}"\
33511 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
33512 && mv -f "$cfgfile.tmp" "$cfgfile" \
33513 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33514 test 0 -eq $? || _lt_function_replace_fail=:
33517 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
33518 func_dirname_and_basename ()\
33521 \ */*) func_dirname_result="${1%/*}${2}" ;;\
33522 \ * ) func_dirname_result="${3}" ;;\
33524 \ func_basename_result="${1##*/}"\
33525 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
33526 && mv -f "$cfgfile.tmp" "$cfgfile" \
33527 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33528 test 0 -eq $? || _lt_function_replace_fail=:
33531 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
33534 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
33535 \ # positional parameters, so assign one to ordinary parameter first.\
33536 \ func_stripname_result=${3}\
33537 \ func_stripname_result=${func_stripname_result#"${1}"}\
33538 \ func_stripname_result=${func_stripname_result%"${2}"}\
33539 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
33540 && mv -f "$cfgfile.tmp" "$cfgfile" \
33541 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33542 test 0 -eq $? || _lt_function_replace_fail=:
33545 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
33546 func_split_long_opt ()\
33548 \ func_split_long_opt_name=${1%%=*}\
33549 \ func_split_long_opt_arg=${1#*=}\
33550 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
33551 && mv -f "$cfgfile.tmp" "$cfgfile" \
33552 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33553 test 0 -eq $? || _lt_function_replace_fail=:
33556 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
33557 func_split_short_opt ()\
33559 \ func_split_short_opt_arg=${1#??}\
33560 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
33561 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
33562 && mv -f "$cfgfile.tmp" "$cfgfile" \
33563 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33564 test 0 -eq $? || _lt_function_replace_fail=:
33567 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
33571 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
33572 \ *) func_lo2o_result=${1} ;;\
33574 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
33575 && mv -f "$cfgfile.tmp" "$cfgfile" \
33576 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33577 test 0 -eq $? || _lt_function_replace_fail=:
33580 sed -e '/^func_xform ()$/,/^} # func_xform /c\
33583 func_xform_result=${1%.*}.lo\
33584 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
33585 && mv -f "$cfgfile.tmp" "$cfgfile" \
33586 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33587 test 0 -eq $? || _lt_function_replace_fail=:
33590 sed -e '/^func_arith ()$/,/^} # func_arith /c\
33593 func_arith_result=$(( $* ))\
33594 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
33595 && mv -f "$cfgfile.tmp" "$cfgfile" \
33596 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33597 test 0 -eq $? || _lt_function_replace_fail=:
33600 sed -e '/^func_len ()$/,/^} # func_len /c\
33603 func_len_result=${#1}\
33604 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
33605 && mv -f "$cfgfile.tmp" "$cfgfile" \
33606 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33607 test 0 -eq $? || _lt_function_replace_fail=:
33611 if test x"$lt_shell_append" = xyes; then
33612 sed -e '/^func_append ()$/,/^} # func_append /c\
33615 eval "${1}+=\\${2}"\
33616 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
33617 && mv -f "$cfgfile.tmp" "$cfgfile" \
33618 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33619 test 0 -eq $? || _lt_function_replace_fail=:
33622 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
33623 func_append_quoted ()\
33625 \ func_quote_for_eval "${2}"\
33626 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
33627 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
33628 && mv -f "$cfgfile.tmp" "$cfgfile" \
33629 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33630 test 0 -eq $? || _lt_function_replace_fail=:
33633 # Save a `func_append' function call where possible by direct use of '+='
33634 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
33635 && mv -f "$cfgfile.tmp" "$cfgfile" \
33636 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33637 test 0 -eq $? || _lt_function_replace_fail=:
33639 # Save a `func_append' function call even when '+=' is not available
33640 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
33641 && mv -f "$cfgfile.tmp" "$cfgfile" \
33642 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33643 test 0 -eq $? || _lt_function_replace_fail=:
33646 if test x"$_lt_function_replace_fail" = x":"; then
33647 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
33648 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
33652 mv -f "$cfgfile" "$ofile" ||
33653 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
33657 cat <<_LT_EOF >> "$ofile"
33659 # ### BEGIN LIBTOOL TAG CONFIG: CXX
33661 # The linker used to build libraries.
33664 # How to create reloadable object files.
33665 reload_flag=$lt_reload_flag_CXX
33666 reload_cmds=$lt_reload_cmds_CXX
33668 # Commands used to build an old-style archive.
33669 old_archive_cmds=$lt_old_archive_cmds_CXX
33671 # A language specific compiler.
33672 CC=$lt_compiler_CXX
33674 # Is the compiler the GNU compiler?
33677 # Compiler flag to turn off builtin functions.
33678 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
33680 # Additional compiler flags for building library objects.
33681 pic_flag=$lt_lt_prog_compiler_pic_CXX
33683 # How to pass a linker flag through the compiler.
33684 wl=$lt_lt_prog_compiler_wl_CXX
33686 # Compiler flag to prevent dynamic linking.
33687 link_static_flag=$lt_lt_prog_compiler_static_CXX
33689 # Does compiler simultaneously support -c and -o options?
33690 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
33692 # Whether or not to add -lc for building shared libraries.
33693 build_libtool_need_lc=$archive_cmds_need_lc_CXX
33695 # Whether or not to disallow shared libs when runtime libs are static.
33696 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
33698 # Compiler flag to allow reflexive dlopens.
33699 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
33701 # Compiler flag to generate shared objects directly from archives.
33702 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
33704 # Whether the compiler copes with passing no objects directly.
33705 compiler_needs_object=$lt_compiler_needs_object_CXX
33707 # Create an old-style archive from a shared archive.
33708 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
33710 # Create a temporary old-style archive to link instead of a shared archive.
33711 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
33713 # Commands used to build a shared archive.
33714 archive_cmds=$lt_archive_cmds_CXX
33715 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
33717 # Commands used to build a loadable module if different from building
33718 # a shared archive.
33719 module_cmds=$lt_module_cmds_CXX
33720 module_expsym_cmds=$lt_module_expsym_cmds_CXX
33722 # Whether we are building with GNU ld or not.
33723 with_gnu_ld=$lt_with_gnu_ld_CXX
33725 # Flag that allows shared libraries with undefined symbols to be built.
33726 allow_undefined_flag=$lt_allow_undefined_flag_CXX
33728 # Flag that enforces no undefined symbols.
33729 no_undefined_flag=$lt_no_undefined_flag_CXX
33731 # Flag to hardcode \$libdir into a binary during linking.
33732 # This must work even if \$libdir does not exist
33733 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
33735 # Whether we need a single "-rpath" flag with a separated argument.
33736 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
33738 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
33739 # DIR into the resulting binary.
33740 hardcode_direct=$hardcode_direct_CXX
33742 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
33743 # DIR into the resulting binary and the resulting library dependency is
33744 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
33745 # library is relocated.
33746 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
33748 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
33749 # into the resulting binary.
33750 hardcode_minus_L=$hardcode_minus_L_CXX
33752 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
33753 # into the resulting binary.
33754 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
33756 # Set to "yes" if building a shared library automatically hardcodes DIR
33757 # into the library and all subsequent libraries and executables linked
33759 hardcode_automatic=$hardcode_automatic_CXX
33761 # Set to yes if linker adds runtime paths of dependent libraries
33762 # to runtime path list.
33763 inherit_rpath=$inherit_rpath_CXX
33765 # Whether libtool must link a program against all its dependency libraries.
33766 link_all_deplibs=$link_all_deplibs_CXX
33768 # Set to "yes" if exported symbols are required.
33769 always_export_symbols=$always_export_symbols_CXX
33771 # The commands to list exported symbols.
33772 export_symbols_cmds=$lt_export_symbols_cmds_CXX
33774 # Symbols that should not be listed in the preloaded symbols.
33775 exclude_expsyms=$lt_exclude_expsyms_CXX
33777 # Symbols that must always be exported.
33778 include_expsyms=$lt_include_expsyms_CXX
33780 # Commands necessary for linking programs (against libraries) with templates.
33781 prelink_cmds=$lt_prelink_cmds_CXX
33783 # Commands necessary for finishing linking programs.
33784 postlink_cmds=$lt_postlink_cmds_CXX
33786 # Specify filename containing input files.
33787 file_list_spec=$lt_file_list_spec_CXX
33789 # How to hardcode a shared library path into an executable.
33790 hardcode_action=$hardcode_action_CXX
33792 # The directories searched by this compiler when creating a shared library.
33793 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
33795 # Dependencies to place before and after the objects being linked to
33796 # create a shared library.
33797 predep_objects=$lt_predep_objects_CXX
33798 postdep_objects=$lt_postdep_objects_CXX
33799 predeps=$lt_predeps_CXX
33800 postdeps=$lt_postdeps_CXX
33802 # The library search path used internally by the compiler when linking
33803 # a shared library.
33804 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
33806 # ### END LIBTOOL TAG CONFIG: CXX
33811 for ac_file in $CONFIG_FILES; do
33812 # Support "outfile[:infile[:infile...]]"
33814 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
33816 # PO directories have a Makefile.in generated from Makefile.in.in.
33817 case "$ac_file" in */Makefile.in)
33818 # Adjust a relative srcdir.
33819 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
33820 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
33821 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
33822 # In autoconf-2.13 it is called $ac_given_srcdir.
33823 # In autoconf-2.50 it is called $srcdir.
33824 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
33825 case "$ac_given_srcdir" in
33826 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
33827 /*) top_srcdir="$ac_given_srcdir" ;;
33828 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
33830 # Treat a directory as a PO directory if and only if it has a
33831 # POTFILES.in file. This allows packages to have multiple PO
33832 # directories under different names or in different locations.
33833 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
33834 rm -f "$ac_dir/POTFILES"
33835 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
33836 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
33837 POMAKEFILEDEPS="POTFILES.in"
33838 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
33839 # on $ac_dir but don't depend on user-specified configuration
33841 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
33842 # The LINGUAS file contains the set of available languages.
33843 if test -n "$OBSOLETE_ALL_LINGUAS"; then
33844 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
33846 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
33847 # Hide the ALL_LINGUAS assigment from automake.
33848 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
33849 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
33851 # The set of available languages was given in configure.in.
33852 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
33855 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
33856 # Compute UPDATEPOFILES
33857 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
33858 # Compute DUMMYPOFILES
33859 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
33861 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
33862 case "$ac_given_srcdir" in
33864 *) srcdirpre='$(srcdir)/' ;;
33870 for lang in $ALL_LINGUAS; do
33871 POFILES="$POFILES $srcdirpre$lang.po"
33872 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
33873 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
33874 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
33876 # CATALOGS depends on both $ac_dir and the user's LINGUAS
33877 # environment variable.
33879 if test -n "$ALL_LINGUAS"; then
33880 for presentlang in $ALL_LINGUAS; do
33882 if test "%UNSET%" != "$LINGUAS"; then
33883 desiredlanguages="$LINGUAS"
33885 desiredlanguages="$ALL_LINGUAS"
33887 for desiredlang in $desiredlanguages; do
33888 # Use the presentlang catalog if desiredlang is
33889 # a. equal to presentlang, or
33890 # b. a variant of presentlang (because in this case,
33891 # presentlang can be used as a fallback for messages
33892 # which are not translated in the desiredlang catalog).
33893 case "$desiredlang" in
33894 "$presentlang"*) useit=yes;;
33897 if test $useit = yes; then
33898 INST_LINGUAS="$INST_LINGUAS $presentlang"
33903 if test -n "$INST_LINGUAS"; then
33904 for lang in $INST_LINGUAS; do
33905 CATALOGS="$CATALOGS $lang.gmo"
33908 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
33909 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"
33910 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
33911 if test -f "$f"; then
33913 *.orig | *.bak | *~) ;;
33914 *) cat "$f" >> "$ac_dir/Makefile" ;;
33931 ac_clean_files=$ac_clean_files_save
33933 test $ac_write_fail = 0 ||
33934 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
33937 # configure is writing to config.log, and then calls config.status.
33938 # config.status does its own redirection, appending to config.log.
33939 # Unfortunately, on DOS this fails, as config.log is still kept open
33940 # by configure, so config.status won't be able to write to it; its
33941 # output is simply discarded. So we exec the FD to /dev/null,
33942 # effectively closing config.log, so it can be properly (re)opened and
33943 # appended to by config.status. When coming back to configure, we
33944 # need to make the FD available again.
33945 if test "$no_create" != yes; then
33947 ac_config_status_args=
33948 test "$silent" = yes &&
33949 ac_config_status_args="$ac_config_status_args --quiet"
33951 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
33953 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
33954 # would make configure fail if this is the last instruction.
33955 $ac_cs_success || as_fn_exit 1
33957 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
33958 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
33959 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
33963 if test "${support_bat}" = "yes" ; then
33964 if test "x$QMAKE" = "xnone"; then
33965 as_fn_error $? "Could not find qmake $PATH. Check your Qt installation" "$LINENO" 5
33969 echo "Creating bat Makefile"
33975 ${MAKE:-make} clean
33979 if test X"$GCC" = "Xyes" ; then
33980 echo "Doing make of dependencies"
33981 ${MAKE:-make} depend
33985 chmod 755 install_conf_file build-depkgs-qt-console
33989 chmod 755 bacula btraceback mtx-changer
33990 chmod 755 dvd-handler dvd-simulator
33991 chmod 755 bconsole disk-changer devel_bacula logrotate
33995 chmod 755 $c/update_mysql_tables_10_to_11 $c/update_sqlite3_tables_10_to_11
33996 chmod 755 $c/update_postgresql_tables_10_to_11
33997 chmod 755 $c/update_mysql_tables_11_to_12 $c/update_sqlite3_tables_11_to_12
33998 chmod 755 $c/update_postgresql_tables_11_to_12
34003 chmod 755 $c/create_bacula_database $c/update_bacula_tables $c/make_bacula_tables
34004 chmod 755 $c/grant_bacula_privileges $c/drop_bacula_tables $c/drop_bacula_database
34006 chmod 755 $c/create_mysql_database $c/update_mysql_tables $c/make_mysql_tables
34007 chmod 755 $c/grant_mysql_privileges $c/drop_mysql_tables $c/drop_mysql_database
34009 chmod 755 $c/create_sqlite3_database $c/update_sqlite3_tables $c/make_sqlite3_tables
34010 chmod 755 $c/grant_sqlite3_privileges $c/drop_sqlite3_tables $c/drop_sqlite3_database
34012 chmod 755 $c/create_postgresql_database $c/update_postgresql_tables $c/make_postgresql_tables
34013 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables $c/drop_postgresql_database
34015 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup $c/make_catalog_backup.pl
34016 chmod 755 $c/sqlite
34019 chmod 755 $c/install-default-backend
34021 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
34022 largefile_support="yes"
34025 if test X"$GCC" = "Xyes" ; then
34026 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
34027 if test "x${CCVERSION}" = "x" ; then
34028 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
34030 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
34031 if test x"${CXXVERSION}" = x ; then
34032 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
34036 # clean up any old junk
34040 ${MAKE:-make} clean
34043 Configuration on `date`:
34045 Host: ${host}${post_host} -- ${DISTNAME} ${DISTVER}
34046 Bacula version: ${BACULA} ${VERSION} (${DATE})
34047 Source code location: ${srcdir}
34048 Install binaries: ${sbindir}
34049 Install libraries: ${libdir}
34050 Install config files: ${sysconfdir}
34051 Scripts directory: ${scriptdir}
34052 Archive directory: ${archivedir}
34053 Working directory: ${working_dir}
34054 PID directory: ${piddir}
34055 Subsys directory: ${subsysdir}
34056 Man directory: ${mandir}
34057 Data directory: ${datarootdir}
34058 Plugin directory: ${plugindir}
34059 C Compiler: ${CC} ${CCVERSION}
34060 C++ Compiler: ${CXX} ${CXXVERSION}
34061 Compiler flags: ${WCFLAGS} ${CFLAGS}
34062 Linker flags: ${WLDFLAGS} ${LDFLAGS}
34064 Statically Linked Tools: ${support_static_tools}
34065 Statically Linked FD: ${support_static_fd}
34066 Statically Linked SD: ${support_static_sd}
34067 Statically Linked DIR: ${support_static_dir}
34068 Statically Linked CONS: ${support_static_cons}
34069 Database backends: ${db_backends}
34070 Database port: ${db_port}
34071 Database name: ${db_name}
34072 Database user: ${db_user}
34073 Database SSL options: ${db_ssl_options}
34075 Job Output Email: ${job_email}
34076 Traceback Email: ${dump_email}
34077 SMTP Host Address: ${smtp_host}
34079 Director Port: ${dir_port}
34080 File daemon Port: ${fd_port}
34081 Storage daemon Port: ${sd_port}
34083 Director User: ${dir_user}
34084 Director Group: ${dir_group}
34085 Storage Daemon User: ${sd_user}
34086 Storage DaemonGroup: ${sd_group}
34087 File Daemon User: ${fd_user}
34088 File Daemon Group: ${fd_group}
34090 Large file support: $largefile_support
34091 Bacula conio support: ${got_conio} ${CONS_LIBS}
34092 readline support: ${got_readline} ${PRTREADLINE_SRC}
34093 TCP Wrappers support: ${TCPW_MSG} ${WRAPLIBS}
34094 TLS support: ${support_tls}
34095 Encryption support: ${support_crypto}
34096 ZLIB support: ${have_zlib}
34097 LZO support: ${have_lzo}
34098 enable-smartalloc: ${support_smartalloc}
34099 enable-lockmgr: ${support_lockmgr}
34100 bat support: ${support_bat}
34101 client-only: ${build_client_only}
34102 build-dird: ${build_dird}
34103 build-stored: ${build_stored}
34104 Plugin support: ${have_plugins}
34105 AFS support: ${have_afs}
34106 ACL support: ${have_acl}
34107 XATTR support: ${have_xattr}
34108 systemd support: ${support_systemd} ${SYSTEMD_UNITDIR}
34109 Batch insert enabled: ${batch_insert_db_backends}
34113 # create a small shell script useful for support with
34114 # configure options and config.out info
34115 cat > scripts/bacula_config << EOF
34118 $ $0 $ac_configure_args
34120 cat config.out >> scripts/bacula_config
34121 echo __EOC__ >> scripts/bacula_config
34122 chmod 755 scripts/bacula_config