2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for bacula 9.0.3.
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.3'
591 PACKAGE_STRING='bacula 9.0.3'
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
733 INTL_LIBTOOL_SUFFIX_PREFIX
740 BUILD_INCLUDED_LIBINTL
763 HAVE_KFREEBSD_OS_FALSE
764 HAVE_KFREEBSD_OS_TRUE
773 HAVE_OPENBSD_OS_FALSE
777 HAVE_FREEBSD_OS_FALSE
791 INCLUDE_UNINSTALL_TARGET
792 INCLUDE_INSTALL_TARGET
796 LIBTOOL_UNINSTALL_TARGET
797 LIBTOOL_INSTALL_TARGET
798 DEFAULT_SHARED_OBJECT_TYPE
877 LIBBACFIND_LT_RELEASE
878 LIBBACCATS_LT_RELEASE
927 program_transform_name
938 ac_subst_files='MCOMMON'
940 enable_option_checking
954 with_included_gettext
989 with_mon_dir_password
1019 ac_precious_vars='build_alias
1035 # Initialize some variables set by options.
1037 ac_init_version=false
1038 ac_unrecognized_opts=
1039 ac_unrecognized_sep=
1040 # The variables have the same names as the options, with
1041 # dashes changed to underlines.
1042 cache_file=/dev/null
1049 program_transform_name=s,x,x,
1057 # Installation directory options.
1058 # These are left unexpanded so users can "make install exec_prefix=/foo"
1059 # and all the variables that are supposed to be based on exec_prefix
1060 # by default will actually change.
1061 # Use braces instead of parens because sh, perl, etc. also accept them.
1062 # (The list follows the same order as the GNU Coding Standards.)
1063 bindir='${exec_prefix}/bin'
1064 sbindir='${exec_prefix}/sbin'
1065 libexecdir='${exec_prefix}/libexec'
1066 datarootdir='${prefix}/share'
1067 datadir='${datarootdir}'
1068 sysconfdir='${prefix}/etc'
1069 sharedstatedir='${prefix}/com'
1070 localstatedir='${prefix}/var'
1071 runstatedir='${localstatedir}/run'
1072 includedir='${prefix}/include'
1073 oldincludedir='/usr/include'
1074 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1075 infodir='${datarootdir}/info'
1080 libdir='${exec_prefix}/lib'
1081 localedir='${datarootdir}/locale'
1082 mandir='${datarootdir}/man'
1088 # If the previous option needs an argument, assign it.
1089 if test -n "$ac_prev"; then
1090 eval $ac_prev=\$ac_option
1096 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1101 # Accept the important Cygnus configure options, so we can diagnose typos.
1103 case $ac_dashdash$ac_option in
1107 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1109 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1110 bindir=$ac_optarg ;;
1112 -build | --build | --buil | --bui | --bu)
1113 ac_prev=build_alias ;;
1114 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1115 build_alias=$ac_optarg ;;
1117 -cache-file | --cache-file | --cache-fil | --cache-fi \
1118 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1119 ac_prev=cache_file ;;
1120 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1121 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1122 cache_file=$ac_optarg ;;
1124 --config-cache | -C)
1125 cache_file=config.cache ;;
1127 -datadir | --datadir | --datadi | --datad)
1129 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1130 datadir=$ac_optarg ;;
1132 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1133 | --dataroo | --dataro | --datar)
1134 ac_prev=datarootdir ;;
1135 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1136 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1137 datarootdir=$ac_optarg ;;
1139 -disable-* | --disable-*)
1140 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1141 # Reject names that are not valid shell variable names.
1142 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1143 as_fn_error $? "invalid feature name: $ac_useropt"
1144 ac_useropt_orig=$ac_useropt
1145 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1146 case $ac_user_opts in
1148 "enable_$ac_useropt"
1150 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1151 ac_unrecognized_sep=', ';;
1153 eval enable_$ac_useropt=no ;;
1155 -docdir | --docdir | --docdi | --doc | --do)
1157 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1158 docdir=$ac_optarg ;;
1160 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1162 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1163 dvidir=$ac_optarg ;;
1165 -enable-* | --enable-*)
1166 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1167 # Reject names that are not valid shell variable names.
1168 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1169 as_fn_error $? "invalid feature name: $ac_useropt"
1170 ac_useropt_orig=$ac_useropt
1171 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1172 case $ac_user_opts in
1174 "enable_$ac_useropt"
1176 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1177 ac_unrecognized_sep=', ';;
1179 eval enable_$ac_useropt=\$ac_optarg ;;
1181 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1182 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1183 | --exec | --exe | --ex)
1184 ac_prev=exec_prefix ;;
1185 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1186 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1187 | --exec=* | --exe=* | --ex=*)
1188 exec_prefix=$ac_optarg ;;
1190 -gas | --gas | --ga | --g)
1191 # Obsolete; use --with-gas.
1194 -help | --help | --hel | --he | -h)
1195 ac_init_help=long ;;
1196 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1197 ac_init_help=recursive ;;
1198 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1199 ac_init_help=short ;;
1201 -host | --host | --hos | --ho)
1202 ac_prev=host_alias ;;
1203 -host=* | --host=* | --hos=* | --ho=*)
1204 host_alias=$ac_optarg ;;
1206 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1208 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1210 htmldir=$ac_optarg ;;
1212 -includedir | --includedir | --includedi | --included | --include \
1213 | --includ | --inclu | --incl | --inc)
1214 ac_prev=includedir ;;
1215 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1216 | --includ=* | --inclu=* | --incl=* | --inc=*)
1217 includedir=$ac_optarg ;;
1219 -infodir | --infodir | --infodi | --infod | --info | --inf)
1221 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1222 infodir=$ac_optarg ;;
1224 -libdir | --libdir | --libdi | --libd)
1226 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1227 libdir=$ac_optarg ;;
1229 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1230 | --libexe | --libex | --libe)
1231 ac_prev=libexecdir ;;
1232 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1233 | --libexe=* | --libex=* | --libe=*)
1234 libexecdir=$ac_optarg ;;
1236 -localedir | --localedir | --localedi | --localed | --locale)
1237 ac_prev=localedir ;;
1238 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1239 localedir=$ac_optarg ;;
1241 -localstatedir | --localstatedir | --localstatedi | --localstated \
1242 | --localstate | --localstat | --localsta | --localst | --locals)
1243 ac_prev=localstatedir ;;
1244 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1245 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1246 localstatedir=$ac_optarg ;;
1248 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1250 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1251 mandir=$ac_optarg ;;
1253 -nfp | --nfp | --nf)
1254 # Obsolete; use --without-fp.
1257 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1258 | --no-cr | --no-c | -n)
1261 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1262 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1265 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1266 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1267 | --oldin | --oldi | --old | --ol | --o)
1268 ac_prev=oldincludedir ;;
1269 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1270 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1271 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1272 oldincludedir=$ac_optarg ;;
1274 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1276 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1277 prefix=$ac_optarg ;;
1279 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1280 | --program-pre | --program-pr | --program-p)
1281 ac_prev=program_prefix ;;
1282 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1283 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1284 program_prefix=$ac_optarg ;;
1286 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1287 | --program-suf | --program-su | --program-s)
1288 ac_prev=program_suffix ;;
1289 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1290 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1291 program_suffix=$ac_optarg ;;
1293 -program-transform-name | --program-transform-name \
1294 | --program-transform-nam | --program-transform-na \
1295 | --program-transform-n | --program-transform- \
1296 | --program-transform | --program-transfor \
1297 | --program-transfo | --program-transf \
1298 | --program-trans | --program-tran \
1299 | --progr-tra | --program-tr | --program-t)
1300 ac_prev=program_transform_name ;;
1301 -program-transform-name=* | --program-transform-name=* \
1302 | --program-transform-nam=* | --program-transform-na=* \
1303 | --program-transform-n=* | --program-transform-=* \
1304 | --program-transform=* | --program-transfor=* \
1305 | --program-transfo=* | --program-transf=* \
1306 | --program-trans=* | --program-tran=* \
1307 | --progr-tra=* | --program-tr=* | --program-t=*)
1308 program_transform_name=$ac_optarg ;;
1310 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1312 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1313 pdfdir=$ac_optarg ;;
1315 -psdir | --psdir | --psdi | --psd | --ps)
1317 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1320 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1321 | -silent | --silent | --silen | --sile | --sil)
1324 -runstatedir | --runstatedir | --runstatedi | --runstated \
1325 | --runstate | --runstat | --runsta | --runst | --runs \
1326 | --run | --ru | --r)
1327 ac_prev=runstatedir ;;
1328 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1329 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1330 | --run=* | --ru=* | --r=*)
1331 runstatedir=$ac_optarg ;;
1333 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1335 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1337 sbindir=$ac_optarg ;;
1339 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1340 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1341 | --sharedst | --shareds | --shared | --share | --shar \
1343 ac_prev=sharedstatedir ;;
1344 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1345 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1346 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1348 sharedstatedir=$ac_optarg ;;
1350 -site | --site | --sit)
1352 -site=* | --site=* | --sit=*)
1355 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1357 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1358 srcdir=$ac_optarg ;;
1360 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1361 | --syscon | --sysco | --sysc | --sys | --sy)
1362 ac_prev=sysconfdir ;;
1363 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1364 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1365 sysconfdir=$ac_optarg ;;
1367 -target | --target | --targe | --targ | --tar | --ta | --t)
1368 ac_prev=target_alias ;;
1369 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1370 target_alias=$ac_optarg ;;
1372 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1375 -version | --version | --versio | --versi | --vers | -V)
1376 ac_init_version=: ;;
1379 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1380 # Reject names that are not valid shell variable names.
1381 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1382 as_fn_error $? "invalid package name: $ac_useropt"
1383 ac_useropt_orig=$ac_useropt
1384 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1385 case $ac_user_opts in
1389 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1390 ac_unrecognized_sep=', ';;
1392 eval with_$ac_useropt=\$ac_optarg ;;
1394 -without-* | --without-*)
1395 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1396 # Reject names that are not valid shell variable names.
1397 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1398 as_fn_error $? "invalid package name: $ac_useropt"
1399 ac_useropt_orig=$ac_useropt
1400 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1401 case $ac_user_opts in
1405 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1406 ac_unrecognized_sep=', ';;
1408 eval with_$ac_useropt=no ;;
1411 # Obsolete; use --with-x.
1414 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1415 | --x-incl | --x-inc | --x-in | --x-i)
1416 ac_prev=x_includes ;;
1417 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1418 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1419 x_includes=$ac_optarg ;;
1421 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1422 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1423 ac_prev=x_libraries ;;
1424 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1425 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1426 x_libraries=$ac_optarg ;;
1428 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1429 Try \`$0 --help' for more information"
1433 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1434 # Reject names that are not valid shell variable names.
1435 case $ac_envvar in #(
1436 '' | [0-9]* | *[!_$as_cr_alnum]* )
1437 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1439 eval $ac_envvar=\$ac_optarg
1440 export $ac_envvar ;;
1443 # FIXME: should be removed in autoconf 3.0.
1444 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1445 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1446 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1447 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1453 if test -n "$ac_prev"; then
1454 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1455 as_fn_error $? "missing argument to $ac_option"
1458 if test -n "$ac_unrecognized_opts"; then
1459 case $enable_option_checking in
1461 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1462 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1466 # Check all directory arguments for consistency.
1467 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1468 datadir sysconfdir sharedstatedir localstatedir includedir \
1469 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1470 libdir localedir mandir runstatedir
1472 eval ac_val=\$$ac_var
1473 # Remove trailing slashes.
1476 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1477 eval $ac_var=\$ac_val;;
1479 # Be sure to have absolute directory names.
1481 [\\/$]* | ?:[\\/]* ) continue;;
1482 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1484 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1487 # There might be people who depend on the old broken behavior: `$host'
1488 # used to hold the argument of --host etc.
1489 # FIXME: To remove some day.
1492 target=$target_alias
1494 # FIXME: To remove some day.
1495 if test "x$host_alias" != x; then
1496 if test "x$build_alias" = x; then
1497 cross_compiling=maybe
1498 elif test "x$build_alias" != "x$host_alias"; then
1504 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1506 test "$silent" = yes && exec 6>/dev/null
1509 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1510 ac_ls_di=`ls -di .` &&
1511 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1512 as_fn_error $? "working directory cannot be determined"
1513 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1514 as_fn_error $? "pwd does not report name of working directory"
1517 # Find the source files, if location was not specified.
1518 if test -z "$srcdir"; then
1519 ac_srcdir_defaulted=yes
1520 # Try the directory containing this script, then the parent directory.
1521 ac_confdir=`$as_dirname -- "$as_myself" ||
1522 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1523 X"$as_myself" : 'X\(//\)[^/]' \| \
1524 X"$as_myself" : 'X\(//\)$' \| \
1525 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1526 $as_echo X"$as_myself" |
1527 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1545 if test ! -r "$srcdir/$ac_unique_file"; then
1549 ac_srcdir_defaulted=no
1551 if test ! -r "$srcdir/$ac_unique_file"; then
1552 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1553 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1555 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1557 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1559 # When building in place, set srcdir=.
1560 if test "$ac_abs_confdir" = "$ac_pwd"; then
1563 # Remove unnecessary trailing slashes from srcdir.
1564 # Double slashes in file names in object file debugging info
1565 # mess up M-x gdb in Emacs.
1567 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1569 for ac_var in $ac_precious_vars; do
1570 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1571 eval ac_env_${ac_var}_value=\$${ac_var}
1572 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1573 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1577 # Report the --help message.
1579 if test "$ac_init_help" = "long"; then
1580 # Omit some internal or obsolete options to make the list less imposing.
1581 # This message is too long to be a string in the A/UX 3.1 sh.
1583 \`configure' configures bacula 9.0.3 to adapt to many kinds of systems.
1585 Usage: $0 [OPTION]... [VAR=VALUE]...
1587 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1588 VAR=VALUE. See below for descriptions of some of the useful variables.
1590 Defaults for the options are specified in brackets.
1593 -h, --help display this help and exit
1594 --help=short display options specific to this package
1595 --help=recursive display the short help of all the included packages
1596 -V, --version display version information and exit
1597 -q, --quiet, --silent do not print \`checking ...' messages
1598 --cache-file=FILE cache test results in FILE [disabled]
1599 -C, --config-cache alias for \`--cache-file=config.cache'
1600 -n, --no-create do not create output files
1601 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1603 Installation directories:
1604 --prefix=PREFIX install architecture-independent files in PREFIX
1605 [$ac_default_prefix]
1606 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1609 By default, \`make install' will install all the files in
1610 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1611 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1612 for instance \`--prefix=\$HOME'.
1614 For better control, use the options below.
1616 Fine tuning of the installation directories:
1617 --bindir=DIR user executables [EPREFIX/bin]
1618 --sbindir=DIR system admin executables [EPREFIX/sbin]
1619 --libexecdir=DIR program executables [EPREFIX/libexec]
1620 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1621 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1622 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1623 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1624 --libdir=DIR object code libraries [EPREFIX/lib]
1625 --includedir=DIR C header files [PREFIX/include]
1626 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1627 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1628 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1629 --infodir=DIR info documentation [DATAROOTDIR/info]
1630 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1631 --mandir=DIR man documentation [DATAROOTDIR/man]
1632 --docdir=DIR documentation root [DATAROOTDIR/doc/bacula]
1633 --htmldir=DIR html documentation [DOCDIR]
1634 --dvidir=DIR dvi documentation [DOCDIR]
1635 --pdfdir=DIR pdf documentation [DOCDIR]
1636 --psdir=DIR ps documentation [DOCDIR]
1642 --x-includes=DIR X include files are in DIR
1643 --x-libraries=DIR X library files are in DIR
1646 --build=BUILD configure for building on BUILD [guessed]
1647 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1651 if test -n "$ac_init_help"; then
1652 case $ac_init_help in
1653 short | recursive ) echo "Configuration of bacula 9.0.3:";;
1658 --disable-option-checking ignore unrecognized --enable/--with options
1659 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1660 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1661 --enable-libtool enable building using GNU libtool [default=yes]
1662 --enable-shared[=PKGS] build shared libraries [default=yes]
1663 --enable-static[=PKGS] build static libraries [default=no]
1664 --enable-fast-install[=PKGS]
1665 optimize for fast installation [default=yes]
1666 --disable-libtool-lock avoid locking (might break parallel builds)
1667 --enable-includes enable installing of include files [default=no]
1668 --disable-nls do not use Native Language Support
1669 --disable-rpath do not hardcode runtime library paths
1670 --enable-bat enable build of bat Qt4 GUI [default=no]
1671 --enable-smartalloc enable smartalloc debugging support [default=no]
1672 --enable-lockmgr enable lock manager support [default=no]
1673 --enable-static-tools enable static tape tools [default=no]
1674 --enable-static-fd enable static File daemon [default=no]
1675 --enable-static-sd enable static Storage daemon [default=no]
1676 --enable-static-dir enable static Director [default=no]
1677 --enable-static-cons enable static Console [default=no]
1678 --enable-client-only build client (File daemon) only [default=no]
1679 --enable-build-dird enable building of dird (Director) [default=yes]
1680 --enable-build-stored enable building of stored (Storage daemon)
1682 --disable-conio disable conio support [default=no]
1683 --enable-ipv6 enable ipv6 support [default=yes]
1684 --disable-readline disable readline support [default=yes]
1685 --enable-batch-insert enable the DB batch insert code [default=yes]
1686 --disable-largefile omit support for large files
1687 --disable-afs disable afs support [default=auto]
1688 --disable-lzo disable lzo support [default=yes]
1689 --disable-acl disable acl support [default=auto]
1690 --disable-xattr disable xattr support [default=auto]
1693 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1694 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1695 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1697 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1698 --with-sysroot=DIR Search for dependent libraries within DIR
1699 (or the compiler's sysroot if not specified).
1700 --with-gnu-ld assume the C compiler uses GNU ld default=no
1701 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1702 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1703 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1704 --without-libintl-prefix don't search for libintl in includedir and libdir
1705 --with-included-gettext use the GNU gettext library included here
1706 --with-readline[=DIR] specify readline library directory
1707 --with-tcp-wrappers[=DIR]
1708 enable tcpwrappers support
1709 --with-openssl[=DIR] Include OpenSSL support. DIR is the OpenSSL base
1710 --with-working-dir=PATH specify path of Bacula working directory
1711 --with-archivedir=PATH specify path of SD archive directory
1712 --with-basename=RESNAME specify base resource name for daemons
1713 --with-hostname=RESNAME specify host name for daemons
1714 --with-scriptdir=PATH specify path of Bacula scripts directory
1715 --with-bsrdir=PATH specify path of Bacula bsrs directory
1716 --with-logdir=PATH specify path of Bacula logs directory
1717 --with-plugindir=PATH specify path of Bacula plugins directory
1718 --with-dump-email=EMAIL dump email address
1719 --with-job-email=EMAIL job output email address
1720 --with-smtp-host=HOST SMTP mail host address
1721 --with-pid-dir=PATH specify location of Bacula pid files
1722 --with-subsys-dir=PATH specify location of Bacula subsys file
1723 --with-baseport=PORT specify base port address for daemons
1724 --with-dir-password=PASSWORD
1725 specify Director's password
1726 --with-fd-password=PASSWORD
1727 specify Client's password
1728 --with-sd-password=PASSWORD
1729 specify Storage daemon's password
1730 --with-mon-dir-password=PASSWORD
1731 specify Director's password used by the monitor
1732 --with-mon-fd-password=PASSWORD
1733 specify Client's password used by the monitor
1734 --with-mon-sd-password=PASSWORD
1735 specify Storage daemon's password used by the
1737 --with-db-name=DBNAME specify database name [default=bacula]
1738 --with-db-user=UNAME specify database user [default=bacula]
1739 --with-db-password=PWD specify database password [default=*none*]
1740 --with-db-port=DBPORT specify a database port [default=null]
1741 --with-db-ssl-options=DBSSLOPTIONS
1742 specify SSL options for database user connection
1744 --with-dir-user=USER specify user for Director daemon
1745 --with-dir-group=GROUP specify group for Director daemon
1746 --with-sd-user=USER specify user for Storage daemon
1747 --with-sd-group=GROUP specify group for Storage daemon
1748 --with-fd-user=USER specify user for File daemon
1749 --with-fd-group=GROUP specify group for File daemon
1750 --with-sbin-perm=MODE specify permissions for sbin binaries [default=0750]
1751 --with-postgresql[=DIR] Include PostgreSQL support. DIR is the PostgreSQL
1752 base install directory, [default=/usr/local/pgsql]
1753 --with-mysql[=DIR] Include MySQL support. DIR is the MySQL base install
1754 directory, default is to search through a number of
1755 common places for the MySQL files.
1756 --with-embedded-mysql[=DIR]
1757 Include MySQL support. DIR is the MySQL base install
1758 directory, default is to search through a number of
1759 common places for the MySQL files.
1760 --with-x use the X Window System
1761 --with-s3[=DIR] specify s3 library directory
1762 --with-afsdir[=DIR] Directory holding AFS includes/libs
1763 --with-lzo[=DIR] specify lzo library directory
1764 --with-systemd[=UNITDIR]
1765 Include systemd support. UNITDIR is where systemd
1766 system .service files are located, default is to ask
1769 Some influential environment variables:
1770 CC C compiler command
1771 CFLAGS C compiler flags
1772 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1773 nonstandard directory <lib dir>
1774 LIBS libraries to pass to the linker, e.g. -l<library>
1775 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1776 you have headers in a nonstandard directory <include dir>
1777 CXX C++ compiler command
1778 CXXFLAGS C++ compiler flags
1780 CXXCPP C++ preprocessor
1781 XMKMF Path to xmkmf, Makefile generator for X Window System
1783 Use these variables to override the choices made by `configure' or to help
1784 it to find libraries and programs with nonstandard names/locations.
1786 Report bugs to the package provider.
1791 if test "$ac_init_help" = "recursive"; then
1792 # If there are subdirs, report their specific --help.
1793 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1794 test -d "$ac_dir" ||
1795 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1800 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1802 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1803 # A ".." for each directory in $ac_dir_suffix.
1804 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1805 case $ac_top_builddir_sub in
1806 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1807 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1810 ac_abs_top_builddir=$ac_pwd
1811 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1812 # for backward compatibility:
1813 ac_top_builddir=$ac_top_build_prefix
1816 .) # We are building in place.
1818 ac_top_srcdir=$ac_top_builddir_sub
1819 ac_abs_top_srcdir=$ac_pwd ;;
1820 [\\/]* | ?:[\\/]* ) # Absolute name.
1821 ac_srcdir=$srcdir$ac_dir_suffix;
1822 ac_top_srcdir=$srcdir
1823 ac_abs_top_srcdir=$srcdir ;;
1825 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1826 ac_top_srcdir=$ac_top_build_prefix$srcdir
1827 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1829 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1831 cd "$ac_dir" || { ac_status=$?; continue; }
1832 # Check for guested configure.
1833 if test -f "$ac_srcdir/configure.gnu"; then
1835 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1836 elif test -f "$ac_srcdir/configure"; then
1838 $SHELL "$ac_srcdir/configure" --help=recursive
1840 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1842 cd "$ac_pwd" || { ac_status=$?; break; }
1846 test -n "$ac_init_help" && exit $ac_status
1847 if $ac_init_version; then
1849 bacula configure 9.0.3
1850 generated by GNU Autoconf 2.69
1852 Copyright (C) 2012 Free Software Foundation, Inc.
1853 This configure script is free software; the Free Software Foundation
1854 gives unlimited permission to copy, distribute and modify it.
1859 ## ------------------------ ##
1860 ## Autoconf initialization. ##
1861 ## ------------------------ ##
1863 # ac_fn_c_try_compile LINENO
1864 # --------------------------
1865 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1866 ac_fn_c_try_compile ()
1868 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1869 rm -f conftest.$ac_objext
1870 if { { ac_try="$ac_compile"
1872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1873 *) ac_try_echo=$ac_try;;
1875 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1876 $as_echo "$ac_try_echo"; } >&5
1877 (eval "$ac_compile") 2>conftest.err
1879 if test -s conftest.err; then
1880 grep -v '^ *+' conftest.err >conftest.er1
1881 cat conftest.er1 >&5
1882 mv -f conftest.er1 conftest.err
1884 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1885 test $ac_status = 0; } && {
1886 test -z "$ac_c_werror_flag" ||
1887 test ! -s conftest.err
1888 } && test -s conftest.$ac_objext; then :
1891 $as_echo "$as_me: failed program was:" >&5
1892 sed 's/^/| /' conftest.$ac_ext >&5
1896 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1897 as_fn_set_status $ac_retval
1899 } # ac_fn_c_try_compile
1901 # ac_fn_cxx_try_compile LINENO
1902 # ----------------------------
1903 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1904 ac_fn_cxx_try_compile ()
1906 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1907 rm -f conftest.$ac_objext
1908 if { { ac_try="$ac_compile"
1910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1911 *) ac_try_echo=$ac_try;;
1913 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1914 $as_echo "$ac_try_echo"; } >&5
1915 (eval "$ac_compile") 2>conftest.err
1917 if test -s conftest.err; then
1918 grep -v '^ *+' conftest.err >conftest.er1
1919 cat conftest.er1 >&5
1920 mv -f conftest.er1 conftest.err
1922 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1923 test $ac_status = 0; } && {
1924 test -z "$ac_cxx_werror_flag" ||
1925 test ! -s conftest.err
1926 } && test -s conftest.$ac_objext; then :
1929 $as_echo "$as_me: failed program was:" >&5
1930 sed 's/^/| /' conftest.$ac_ext >&5
1934 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1935 as_fn_set_status $ac_retval
1937 } # ac_fn_cxx_try_compile
1939 # ac_fn_c_try_cpp LINENO
1940 # ----------------------
1941 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1944 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1945 if { { ac_try="$ac_cpp conftest.$ac_ext"
1947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1948 *) ac_try_echo=$ac_try;;
1950 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1951 $as_echo "$ac_try_echo"; } >&5
1952 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1954 if test -s conftest.err; then
1955 grep -v '^ *+' conftest.err >conftest.er1
1956 cat conftest.er1 >&5
1957 mv -f conftest.er1 conftest.err
1959 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1960 test $ac_status = 0; } > conftest.i && {
1961 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1962 test ! -s conftest.err
1966 $as_echo "$as_me: failed program was:" >&5
1967 sed 's/^/| /' conftest.$ac_ext >&5
1971 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1972 as_fn_set_status $ac_retval
1976 # ac_fn_c_try_link LINENO
1977 # -----------------------
1978 # Try to link conftest.$ac_ext, and return whether this succeeded.
1981 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1982 rm -f conftest.$ac_objext conftest$ac_exeext
1983 if { { ac_try="$ac_link"
1985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1986 *) ac_try_echo=$ac_try;;
1988 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1989 $as_echo "$ac_try_echo"; } >&5
1990 (eval "$ac_link") 2>conftest.err
1992 if test -s conftest.err; then
1993 grep -v '^ *+' conftest.err >conftest.er1
1994 cat conftest.er1 >&5
1995 mv -f conftest.er1 conftest.err
1997 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1998 test $ac_status = 0; } && {
1999 test -z "$ac_c_werror_flag" ||
2000 test ! -s conftest.err
2001 } && test -s conftest$ac_exeext && {
2002 test "$cross_compiling" = yes ||
2003 test -x conftest$ac_exeext
2007 $as_echo "$as_me: failed program was:" >&5
2008 sed 's/^/| /' conftest.$ac_ext >&5
2012 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2013 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2014 # interfere with the next link command; also delete a directory that is
2015 # left behind by Apple's compiler. We do this before executing the actions.
2016 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2017 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2018 as_fn_set_status $ac_retval
2020 } # ac_fn_c_try_link
2022 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2023 # -------------------------------------------------------
2024 # Tests whether HEADER exists and can be compiled using the include files in
2025 # INCLUDES, setting the cache variable VAR accordingly.
2026 ac_fn_c_check_header_compile ()
2028 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2030 $as_echo_n "checking for $2... " >&6; }
2031 if eval \${$3+:} false; then :
2032 $as_echo_n "(cached) " >&6
2034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2035 /* end confdefs.h. */
2039 if ac_fn_c_try_compile "$LINENO"; then :
2044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2048 $as_echo "$ac_res" >&6; }
2049 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2051 } # ac_fn_c_check_header_compile
2053 # ac_fn_c_try_run LINENO
2054 # ----------------------
2055 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2056 # that executables *can* be run.
2059 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2060 if { { ac_try="$ac_link"
2062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2063 *) ac_try_echo=$ac_try;;
2065 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2066 $as_echo "$ac_try_echo"; } >&5
2067 (eval "$ac_link") 2>&5
2069 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2070 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2071 { { case "(($ac_try" in
2072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2073 *) ac_try_echo=$ac_try;;
2075 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2076 $as_echo "$ac_try_echo"; } >&5
2077 (eval "$ac_try") 2>&5
2079 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2080 test $ac_status = 0; }; }; then :
2083 $as_echo "$as_me: program exited with status $ac_status" >&5
2084 $as_echo "$as_me: failed program was:" >&5
2085 sed 's/^/| /' conftest.$ac_ext >&5
2087 ac_retval=$ac_status
2089 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2090 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2091 as_fn_set_status $ac_retval
2095 # ac_fn_c_check_func LINENO FUNC VAR
2096 # ----------------------------------
2097 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2098 ac_fn_c_check_func ()
2100 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2102 $as_echo_n "checking for $2... " >&6; }
2103 if eval \${$3+:} false; then :
2104 $as_echo_n "(cached) " >&6
2106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2107 /* end confdefs.h. */
2108 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2109 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2110 #define $2 innocuous_$2
2112 /* System header to define __stub macros and hopefully few prototypes,
2113 which can conflict with char $2 (); below.
2114 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2115 <limits.h> exists even on freestanding compilers. */
2118 # include <limits.h>
2120 # include <assert.h>
2125 /* Override any GCC internal prototype to avoid an error.
2126 Use char because int might match the return type of a GCC
2127 builtin and then its argument prototype would still apply. */
2132 /* The GNU C library defines this for functions which it implements
2133 to always fail with ENOSYS. Some functions are actually named
2134 something starting with __ and the normal name is an alias. */
2135 #if defined __stub_$2 || defined __stub___$2
2147 if ac_fn_c_try_link "$LINENO"; then :
2152 rm -f core conftest.err conftest.$ac_objext \
2153 conftest$ac_exeext conftest.$ac_ext
2156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2157 $as_echo "$ac_res" >&6; }
2158 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2160 } # ac_fn_c_check_func
2162 # ac_fn_cxx_try_cpp LINENO
2163 # ------------------------
2164 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2165 ac_fn_cxx_try_cpp ()
2167 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2168 if { { ac_try="$ac_cpp conftest.$ac_ext"
2170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2171 *) ac_try_echo=$ac_try;;
2173 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2174 $as_echo "$ac_try_echo"; } >&5
2175 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2177 if test -s conftest.err; then
2178 grep -v '^ *+' conftest.err >conftest.er1
2179 cat conftest.er1 >&5
2180 mv -f conftest.er1 conftest.err
2182 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2183 test $ac_status = 0; } > conftest.i && {
2184 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2185 test ! -s conftest.err
2189 $as_echo "$as_me: failed program was:" >&5
2190 sed 's/^/| /' conftest.$ac_ext >&5
2194 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2195 as_fn_set_status $ac_retval
2197 } # ac_fn_cxx_try_cpp
2199 # ac_fn_cxx_try_link LINENO
2200 # -------------------------
2201 # Try to link conftest.$ac_ext, and return whether this succeeded.
2202 ac_fn_cxx_try_link ()
2204 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2205 rm -f conftest.$ac_objext conftest$ac_exeext
2206 if { { ac_try="$ac_link"
2208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2209 *) ac_try_echo=$ac_try;;
2211 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2212 $as_echo "$ac_try_echo"; } >&5
2213 (eval "$ac_link") 2>conftest.err
2215 if test -s conftest.err; then
2216 grep -v '^ *+' conftest.err >conftest.er1
2217 cat conftest.er1 >&5
2218 mv -f conftest.er1 conftest.err
2220 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2221 test $ac_status = 0; } && {
2222 test -z "$ac_cxx_werror_flag" ||
2223 test ! -s conftest.err
2224 } && test -s conftest$ac_exeext && {
2225 test "$cross_compiling" = yes ||
2226 test -x conftest$ac_exeext
2230 $as_echo "$as_me: failed program was:" >&5
2231 sed 's/^/| /' conftest.$ac_ext >&5
2235 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2236 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2237 # interfere with the next link command; also delete a directory that is
2238 # left behind by Apple's compiler. We do this before executing the actions.
2239 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2240 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2241 as_fn_set_status $ac_retval
2243 } # ac_fn_cxx_try_link
2245 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2246 # ---------------------------------------------
2247 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2249 ac_fn_c_check_decl ()
2251 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2252 as_decl_name=`echo $2|sed 's/ *(.*//'`
2253 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2255 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2256 if eval \${$3+:} false; then :
2257 $as_echo_n "(cached) " >&6
2259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2260 /* end confdefs.h. */
2265 #ifndef $as_decl_name
2267 (void) $as_decl_use;
2269 (void) $as_decl_name;
2277 if ac_fn_c_try_compile "$LINENO"; then :
2282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2286 $as_echo "$ac_res" >&6; }
2287 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2289 } # ac_fn_c_check_decl
2291 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2292 # -------------------------------------------
2293 # Tests whether TYPE exists after having included INCLUDES, setting cache
2294 # variable VAR accordingly.
2295 ac_fn_c_check_type ()
2297 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2299 $as_echo_n "checking for $2... " >&6; }
2300 if eval \${$3+:} false; then :
2301 $as_echo_n "(cached) " >&6
2304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2305 /* end confdefs.h. */
2316 if ac_fn_c_try_compile "$LINENO"; then :
2317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2318 /* end confdefs.h. */
2329 if ac_fn_c_try_compile "$LINENO"; then :
2334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2340 $as_echo "$ac_res" >&6; }
2341 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2343 } # ac_fn_c_check_type
2345 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2346 # -------------------------------------------------------
2347 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2348 # the include files in INCLUDES and setting the cache variable VAR
2350 ac_fn_c_check_header_mongrel ()
2352 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2353 if eval \${$3+:} false; then :
2354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2355 $as_echo_n "checking for $2... " >&6; }
2356 if eval \${$3+:} false; then :
2357 $as_echo_n "(cached) " >&6
2360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2361 $as_echo "$ac_res" >&6; }
2363 # Is the header compilable?
2364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2365 $as_echo_n "checking $2 usability... " >&6; }
2366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2367 /* end confdefs.h. */
2371 if ac_fn_c_try_compile "$LINENO"; then :
2372 ac_header_compiler=yes
2374 ac_header_compiler=no
2376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2378 $as_echo "$ac_header_compiler" >&6; }
2380 # Is the header present?
2381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2382 $as_echo_n "checking $2 presence... " >&6; }
2383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2384 /* end confdefs.h. */
2387 if ac_fn_c_try_cpp "$LINENO"; then :
2388 ac_header_preproc=yes
2390 ac_header_preproc=no
2392 rm -f conftest.err conftest.i conftest.$ac_ext
2393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2394 $as_echo "$ac_header_preproc" >&6; }
2396 # So? What about this header?
2397 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2399 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2400 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2401 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2402 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2405 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2406 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2407 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2408 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2409 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2410 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2411 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2412 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2413 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2414 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2418 $as_echo_n "checking for $2... " >&6; }
2419 if eval \${$3+:} false; then :
2420 $as_echo_n "(cached) " >&6
2422 eval "$3=\$ac_header_compiler"
2425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2426 $as_echo "$ac_res" >&6; }
2428 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2430 } # ac_fn_c_check_header_mongrel
2432 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2433 # --------------------------------------------
2434 # Tries to find the compile-time value of EXPR in a program that includes
2435 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2437 ac_fn_c_compute_int ()
2439 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2440 if test "$cross_compiling" = yes; then
2441 # Depending upon the size, compute the lo and hi bounds.
2442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2443 /* end confdefs.h. */
2448 static int test_array [1 - 2 * !(($2) >= 0)];
2450 return test_array [0];
2456 if ac_fn_c_try_compile "$LINENO"; then :
2459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2460 /* end confdefs.h. */
2465 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2467 return test_array [0];
2473 if ac_fn_c_try_compile "$LINENO"; then :
2474 ac_hi=$ac_mid; break
2476 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2477 if test $ac_lo -le $ac_mid; then
2481 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2487 /* end confdefs.h. */
2492 static int test_array [1 - 2 * !(($2) < 0)];
2494 return test_array [0];
2500 if ac_fn_c_try_compile "$LINENO"; then :
2503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2504 /* end confdefs.h. */
2509 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2511 return test_array [0];
2517 if ac_fn_c_try_compile "$LINENO"; then :
2518 ac_lo=$ac_mid; break
2520 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2521 if test $ac_mid -le $ac_hi; then
2525 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2535 # Binary search between lo and hi bounds.
2536 while test "x$ac_lo" != "x$ac_hi"; do
2537 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2539 /* end confdefs.h. */
2544 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2546 return test_array [0];
2552 if ac_fn_c_try_compile "$LINENO"; then :
2555 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2560 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2565 /* end confdefs.h. */
2567 static long int longval () { return $2; }
2568 static unsigned long int ulongval () { return $2; }
2575 FILE *f = fopen ("conftest.val", "w");
2580 long int i = longval ();
2583 fprintf (f, "%ld", i);
2587 unsigned long int i = ulongval ();
2590 fprintf (f, "%lu", i);
2592 /* Do not output a trailing newline, as this causes \r\n confusion
2593 on some platforms. */
2594 return ferror (f) || fclose (f) != 0;
2600 if ac_fn_c_try_run "$LINENO"; then :
2601 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2605 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2606 conftest.$ac_objext conftest.beam conftest.$ac_ext
2610 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2611 as_fn_set_status $ac_retval
2613 } # ac_fn_c_compute_int
2615 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2616 # ----------------------------------------------------
2617 # Tries to find if the field MEMBER exists in type AGGR, after including
2618 # INCLUDES, setting cache variable VAR accordingly.
2619 ac_fn_c_check_member ()
2621 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2623 $as_echo_n "checking for $2.$3... " >&6; }
2624 if eval \${$4+:} false; then :
2625 $as_echo_n "(cached) " >&6
2627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2628 /* end confdefs.h. */
2640 if ac_fn_c_try_compile "$LINENO"; then :
2643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2644 /* end confdefs.h. */
2650 if (sizeof ac_aggr.$3)
2656 if ac_fn_c_try_compile "$LINENO"; then :
2661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2667 $as_echo "$ac_res" >&6; }
2668 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2670 } # ac_fn_c_check_member
2672 # ac_fn_cxx_try_run LINENO
2673 # ------------------------
2674 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2675 # that executables *can* be run.
2676 ac_fn_cxx_try_run ()
2678 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2679 if { { ac_try="$ac_link"
2681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2682 *) ac_try_echo=$ac_try;;
2684 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2685 $as_echo "$ac_try_echo"; } >&5
2686 (eval "$ac_link") 2>&5
2688 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2689 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2690 { { case "(($ac_try" in
2691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2692 *) ac_try_echo=$ac_try;;
2694 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2695 $as_echo "$ac_try_echo"; } >&5
2696 (eval "$ac_try") 2>&5
2698 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2699 test $ac_status = 0; }; }; then :
2702 $as_echo "$as_me: program exited with status $ac_status" >&5
2703 $as_echo "$as_me: failed program was:" >&5
2704 sed 's/^/| /' conftest.$ac_ext >&5
2706 ac_retval=$ac_status
2708 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2709 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2710 as_fn_set_status $ac_retval
2712 } # ac_fn_cxx_try_run
2714 # ac_fn_cxx_check_func LINENO FUNC VAR
2715 # ------------------------------------
2716 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2717 ac_fn_cxx_check_func ()
2719 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2721 $as_echo_n "checking for $2... " >&6; }
2722 if eval \${$3+:} false; then :
2723 $as_echo_n "(cached) " >&6
2725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2726 /* end confdefs.h. */
2727 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2728 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2729 #define $2 innocuous_$2
2731 /* System header to define __stub macros and hopefully few prototypes,
2732 which can conflict with char $2 (); below.
2733 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2734 <limits.h> exists even on freestanding compilers. */
2737 # include <limits.h>
2739 # include <assert.h>
2744 /* Override any GCC internal prototype to avoid an error.
2745 Use char because int might match the return type of a GCC
2746 builtin and then its argument prototype would still apply. */
2751 /* The GNU C library defines this for functions which it implements
2752 to always fail with ENOSYS. Some functions are actually named
2753 something starting with __ and the normal name is an alias. */
2754 #if defined __stub_$2 || defined __stub___$2
2766 if ac_fn_cxx_try_link "$LINENO"; then :
2771 rm -f core conftest.err conftest.$ac_objext \
2772 conftest$ac_exeext conftest.$ac_ext
2775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2776 $as_echo "$ac_res" >&6; }
2777 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2779 } # ac_fn_cxx_check_func
2780 cat >config.log <<_ACEOF
2781 This file contains any messages produced by compilers while
2782 running configure, to aid debugging if configure makes a mistake.
2784 It was created by bacula $as_me 9.0.3, which was
2785 generated by GNU Autoconf 2.69. Invocation command line was
2797 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2798 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2799 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2800 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2801 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2803 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2804 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2806 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2807 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2808 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2809 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2810 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2811 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2812 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2820 test -z "$as_dir" && as_dir=.
2821 $as_echo "PATH: $as_dir"
2837 # Keep a trace of the command line.
2838 # Strip out --no-create and --no-recursion so they do not pile up.
2839 # Strip out --silent because we don't want to record it for future runs.
2840 # Also quote any args containing shell meta-characters.
2841 # Make two passes to allow for proper duplicate-argument suppression.
2845 ac_must_keep_next=false
2851 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2852 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2853 | -silent | --silent | --silen | --sile | --sil)
2856 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2859 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2861 as_fn_append ac_configure_args1 " '$ac_arg'"
2862 if test $ac_must_keep_next = true; then
2863 ac_must_keep_next=false # Got value, back to normal.
2866 *=* | --config-cache | -C | -disable-* | --disable-* \
2867 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2868 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2869 | -with-* | --with-* | -without-* | --without-* | --x)
2870 case "$ac_configure_args0 " in
2871 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2874 -* ) ac_must_keep_next=true ;;
2877 as_fn_append ac_configure_args " '$ac_arg'"
2882 { ac_configure_args0=; unset ac_configure_args0;}
2883 { ac_configure_args1=; unset ac_configure_args1;}
2885 # When interrupted or exit'd, cleanup temporary files, and complete
2886 # config.log. We remove comments because anyway the quotes in there
2887 # would cause problems or look ugly.
2888 # WARNING: Use '\'' to represent an apostrophe within the trap.
2889 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2890 trap 'exit_status=$?
2891 # Save into config.log some information that might help in debugging.
2895 $as_echo "## ---------------- ##
2896 ## Cache variables. ##
2897 ## ---------------- ##"
2899 # The following way of writing the cache mishandles newlines in values,
2901 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2902 eval ac_val=\$$ac_var
2906 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2907 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2910 _ | IFS | as_nl) ;; #(
2911 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2912 *) { eval $ac_var=; unset $ac_var;} ;;
2917 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2918 *${as_nl}ac_space=\ *)
2920 "s/'\''/'\''\\\\'\'''\''/g;
2921 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2924 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2931 $as_echo "## ----------------- ##
2932 ## Output variables. ##
2933 ## ----------------- ##"
2935 for ac_var in $ac_subst_vars
2937 eval ac_val=\$$ac_var
2939 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2941 $as_echo "$ac_var='\''$ac_val'\''"
2945 if test -n "$ac_subst_files"; then
2946 $as_echo "## ------------------- ##
2947 ## File substitutions. ##
2948 ## ------------------- ##"
2950 for ac_var in $ac_subst_files
2952 eval ac_val=\$$ac_var
2954 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2956 $as_echo "$ac_var='\''$ac_val'\''"
2961 if test -s confdefs.h; then
2962 $as_echo "## ----------- ##
2969 test "$ac_signal" != 0 &&
2970 $as_echo "$as_me: caught signal $ac_signal"
2971 $as_echo "$as_me: exit $exit_status"
2973 rm -f core *.core core.conftest.* &&
2974 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2977 for ac_signal in 1 2 13 15; do
2978 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2982 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2983 rm -f -r conftest* confdefs.h
2985 $as_echo "/* confdefs.h */" > confdefs.h
2987 # Predefined preprocessor variables.
2989 cat >>confdefs.h <<_ACEOF
2990 #define PACKAGE_NAME "$PACKAGE_NAME"
2993 cat >>confdefs.h <<_ACEOF
2994 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2997 cat >>confdefs.h <<_ACEOF
2998 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3001 cat >>confdefs.h <<_ACEOF
3002 #define PACKAGE_STRING "$PACKAGE_STRING"
3005 cat >>confdefs.h <<_ACEOF
3006 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3009 cat >>confdefs.h <<_ACEOF
3010 #define PACKAGE_URL "$PACKAGE_URL"
3014 # Let the site file select an alternate cache file if it wants to.
3015 # Prefer an explicitly selected file to automatically selected ones.
3018 if test -n "$CONFIG_SITE"; then
3019 # We do not want a PATH search for config.site.
3020 case $CONFIG_SITE in #((
3021 -*) ac_site_file1=./$CONFIG_SITE;;
3022 */*) ac_site_file1=$CONFIG_SITE;;
3023 *) ac_site_file1=./$CONFIG_SITE;;
3025 elif test "x$prefix" != xNONE; then
3026 ac_site_file1=$prefix/share/config.site
3027 ac_site_file2=$prefix/etc/config.site
3029 ac_site_file1=$ac_default_prefix/share/config.site
3030 ac_site_file2=$ac_default_prefix/etc/config.site
3032 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3034 test "x$ac_site_file" = xNONE && continue
3035 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3036 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3037 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3038 sed 's/^/| /' "$ac_site_file" >&5
3040 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3041 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3042 as_fn_error $? "failed to load site script $ac_site_file
3043 See \`config.log' for more details" "$LINENO" 5; }
3047 if test -r "$cache_file"; then
3048 # Some versions of bash will fail to source /dev/null (special files
3049 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3050 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3051 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3052 $as_echo "$as_me: loading cache $cache_file" >&6;}
3054 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3055 *) . "./$cache_file";;
3059 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3060 $as_echo "$as_me: creating cache $cache_file" >&6;}
3064 as_fn_append ac_header_list " stdlib.h"
3065 as_fn_append ac_header_list " unistd.h"
3066 as_fn_append ac_header_list " sys/param.h"
3067 # Check that the precious variables saved in the cache have kept the same
3069 ac_cache_corrupted=false
3070 for ac_var in $ac_precious_vars; do
3071 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3072 eval ac_new_set=\$ac_env_${ac_var}_set
3073 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3074 eval ac_new_val=\$ac_env_${ac_var}_value
3075 case $ac_old_set,$ac_new_set in
3077 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3078 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3079 ac_cache_corrupted=: ;;
3081 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3082 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3083 ac_cache_corrupted=: ;;
3086 if test "x$ac_old_val" != "x$ac_new_val"; then
3087 # differences in whitespace do not lead to failure.
3088 ac_old_val_w=`echo x $ac_old_val`
3089 ac_new_val_w=`echo x $ac_new_val`
3090 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3091 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3092 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3093 ac_cache_corrupted=:
3095 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3096 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3097 eval $ac_var=\$ac_old_val
3099 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3100 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3101 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3102 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3105 # Pass precious variables to config.status.
3106 if test "$ac_new_set" = set; then
3108 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3109 *) ac_arg=$ac_var=$ac_new_val ;;
3111 case " $ac_configure_args " in
3112 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3113 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3117 if $ac_cache_corrupted; then
3118 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3119 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3120 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3121 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3122 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3124 ## -------------------- ##
3125 ## Main body of script. ##
3126 ## -------------------- ##
3129 ac_cpp='$CPP $CPPFLAGS'
3130 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3131 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3132 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3144 for ac_dir in ${BUILD_DIR}/autoconf "$srcdir"/${BUILD_DIR}/autoconf; do
3145 if test -f "$ac_dir/install-sh"; then
3147 ac_install_sh="$ac_aux_dir/install-sh -c"
3149 elif test -f "$ac_dir/install.sh"; then
3151 ac_install_sh="$ac_aux_dir/install.sh -c"
3153 elif test -f "$ac_dir/shtool"; then
3155 ac_install_sh="$ac_aux_dir/shtool install -c"
3159 if test -z "$ac_aux_dir"; then
3160 as_fn_error $? "cannot find install-sh, install.sh, or shtool in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" "$LINENO" 5
3163 # These three variables are undocumented and unsupported,
3164 # and are intended to be withdrawn in a future Autoconf release.
3165 # They can cause serious problems if a builder's source tree is in a directory
3166 # whose full name contains unusual characters.
3167 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3168 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3169 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3172 ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
3177 # Extract the first word of "$ac_prog", so it can be a program name with args.
3178 set dummy $ac_prog; ac_word=$2
3179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3180 $as_echo_n "checking for $ac_word... " >&6; }
3181 if ${ac_cv_path_TRUEPRG+:} false; then :
3182 $as_echo_n "(cached) " >&6
3186 ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
3189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3193 test -z "$as_dir" && as_dir=.
3194 for ac_exec_ext in '' $ac_executable_extensions; do
3195 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3196 ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
3197 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3207 TRUEPRG=$ac_cv_path_TRUEPRG
3208 if test -n "$TRUEPRG"; then
3209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TRUEPRG" >&5
3210 $as_echo "$TRUEPRG" >&6; }
3212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3213 $as_echo "no" >&6; }
3217 test -n "$TRUEPRG" && break
3219 test -n "$TRUEPRG" || TRUEPRG=":"
3221 for ac_prog in false
3223 # Extract the first word of "$ac_prog", so it can be a program name with args.
3224 set dummy $ac_prog; ac_word=$2
3225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3226 $as_echo_n "checking for $ac_word... " >&6; }
3227 if ${ac_cv_path_FALSEPRG+:} false; then :
3228 $as_echo_n "(cached) " >&6
3232 ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
3235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3239 test -z "$as_dir" && as_dir=.
3240 for ac_exec_ext in '' $ac_executable_extensions; do
3241 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3242 ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
3243 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3253 FALSEPRG=$ac_cv_path_FALSEPRG
3254 if test -n "$FALSEPRG"; then
3255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FALSEPRG" >&5
3256 $as_echo "$FALSEPRG" >&6; }
3258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3259 $as_echo "no" >&6; }
3263 test -n "$FALSEPRG" && break
3265 test -n "$FALSEPRG" || FALSEPRG=":"
3270 if test "x$BACULA" != x; then
3271 post_host=`echo -${BACULA} | tr 'A-Z ' 'a-z-'`
3273 BACULA=${BACULA:-Bacula}
3274 VERSION=`sed -n -e 's/^#define VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3275 RELEASE=`sed -n -e 's/^#define RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3276 DATE=`sed -n -e 's/^#define BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3277 LSMDATE=`sed -n -e 's/^#define LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3278 BDB_VERSION=`sed -n -e 's/^#define BDB_VERSION \(.*\)$/\1/p' ${srcdir}/src/cats/cats.h`
3279 DEPKGS_VERSION=`sed -n -e 's/^#define DEPKGS_VERSION \(.*\)$/\1/p' ${srcdir}/src/cats/cats.h`
3280 DEPKGS_QT_VERSION=`sed -n -e 's/^#define DEPKGS_QT_VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3281 BQT_VERSION=`sed -n -e 's/^#define BQT_VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3282 VIX_VERSION=`sed -n -e 's/^#define VIX_VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3283 JAVA_VERSION=`sed -n -e 's/^#define JAVA_VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3284 NDMP_VERSION=`sed -n -e 's/^#define NDMP_VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3285 LIBRSYNC_VERSION=`sed -n -e 's/^#define LIBRSYNC_VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3288 LIBBAC_LT_RELEASE=`sed -n -e 's/^#.*LIBBAC_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3289 LIBBACCFG_LT_RELEASE=`sed -n -e 's/^#.*LIBBACCFG_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3290 LIBBACPY_LT_RELEASE=`sed -n -e 's/^#.*LIBBACPY_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3292 LIBBAC_LT_RELEASE=${LIBBAC_LT_RELEASE:-$VERSION}
3293 LIBBACCFG_LT_RELEASE=${LIBBACCFG_LT_RELEASE:-$VERSION}
3296 LIBBACSQL_LT_RELEASE=`sed -n -e 's/^#.*LIBBACSQL_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3297 LIBBACCATS_LT_RELEASE=`sed -n -e 's/^#.*LIBBACCATS_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3299 LIBBACSQL_LT_RELEASE=${LIBBACSQL_LT_RELEASE:-$VERSION}
3300 LIBBACCATS_LT_RELEASE=${LIBBACCATS_LT_RELEASE:-$VERSION}
3303 LIBBACFIND_LT_RELEASE=`sed -n -e 's/^#.*LIBBACFIND_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3305 LIBBACFIND_LT_RELEASE=${LIBBACFIND_LT_RELEASE:-$VERSION}
3308 PFILES="platforms/Makefile"
3310 echo "configuring for ${BACULA} $VERSION ($DATE)"
3315 ac_cpp='$CPP $CPPFLAGS'
3316 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3317 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3318 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3319 if test -n "$ac_tool_prefix"; then
3320 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3321 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3323 $as_echo_n "checking for $ac_word... " >&6; }
3324 if ${ac_cv_prog_CC+:} false; then :
3325 $as_echo_n "(cached) " >&6
3327 if test -n "$CC"; then
3328 ac_cv_prog_CC="$CC" # Let the user override the test.
3330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3334 test -z "$as_dir" && as_dir=.
3335 for ac_exec_ext in '' $ac_executable_extensions; do
3336 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3337 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3338 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3348 if test -n "$CC"; then
3349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3350 $as_echo "$CC" >&6; }
3352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3353 $as_echo "no" >&6; }
3358 if test -z "$ac_cv_prog_CC"; then
3360 # Extract the first word of "gcc", so it can be a program name with args.
3361 set dummy gcc; ac_word=$2
3362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3363 $as_echo_n "checking for $ac_word... " >&6; }
3364 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3365 $as_echo_n "(cached) " >&6
3367 if test -n "$ac_ct_CC"; then
3368 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3374 test -z "$as_dir" && as_dir=.
3375 for ac_exec_ext in '' $ac_executable_extensions; do
3376 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3377 ac_cv_prog_ac_ct_CC="gcc"
3378 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3387 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3388 if test -n "$ac_ct_CC"; then
3389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3390 $as_echo "$ac_ct_CC" >&6; }
3392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3393 $as_echo "no" >&6; }
3396 if test "x$ac_ct_CC" = x; then
3399 case $cross_compiling:$ac_tool_warned in
3401 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3402 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3403 ac_tool_warned=yes ;;
3411 if test -z "$CC"; then
3412 if test -n "$ac_tool_prefix"; then
3413 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3414 set dummy ${ac_tool_prefix}cc; ac_word=$2
3415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3416 $as_echo_n "checking for $ac_word... " >&6; }
3417 if ${ac_cv_prog_CC+:} false; then :
3418 $as_echo_n "(cached) " >&6
3420 if test -n "$CC"; then
3421 ac_cv_prog_CC="$CC" # Let the user override the test.
3423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3427 test -z "$as_dir" && as_dir=.
3428 for ac_exec_ext in '' $ac_executable_extensions; do
3429 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3430 ac_cv_prog_CC="${ac_tool_prefix}cc"
3431 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3441 if test -n "$CC"; then
3442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3443 $as_echo "$CC" >&6; }
3445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3446 $as_echo "no" >&6; }
3452 if test -z "$CC"; then
3453 # Extract the first word of "cc", so it can be a program name with args.
3454 set dummy cc; ac_word=$2
3455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3456 $as_echo_n "checking for $ac_word... " >&6; }
3457 if ${ac_cv_prog_CC+:} false; then :
3458 $as_echo_n "(cached) " >&6
3460 if test -n "$CC"; then
3461 ac_cv_prog_CC="$CC" # Let the user override the test.
3464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3468 test -z "$as_dir" && as_dir=.
3469 for ac_exec_ext in '' $ac_executable_extensions; do
3470 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3471 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3472 ac_prog_rejected=yes
3476 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3483 if test $ac_prog_rejected = yes; then
3484 # We found a bogon in the path, so make sure we never use it.
3485 set dummy $ac_cv_prog_CC
3487 if test $# != 0; then
3488 # We chose a different compiler from the bogus one.
3489 # However, it has the same basename, so the bogon will be chosen
3490 # first if we set CC to just the basename; use the full file name.
3492 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3498 if test -n "$CC"; then
3499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3500 $as_echo "$CC" >&6; }
3502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3503 $as_echo "no" >&6; }
3508 if test -z "$CC"; then
3509 if test -n "$ac_tool_prefix"; then
3510 for ac_prog in cl.exe
3512 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3513 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3515 $as_echo_n "checking for $ac_word... " >&6; }
3516 if ${ac_cv_prog_CC+:} false; then :
3517 $as_echo_n "(cached) " >&6
3519 if test -n "$CC"; then
3520 ac_cv_prog_CC="$CC" # Let the user override the test.
3522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3526 test -z "$as_dir" && as_dir=.
3527 for ac_exec_ext in '' $ac_executable_extensions; do
3528 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3529 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3530 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3540 if test -n "$CC"; then
3541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3542 $as_echo "$CC" >&6; }
3544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3545 $as_echo "no" >&6; }
3549 test -n "$CC" && break
3552 if test -z "$CC"; then
3554 for ac_prog in cl.exe
3556 # Extract the first word of "$ac_prog", so it can be a program name with args.
3557 set dummy $ac_prog; ac_word=$2
3558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3559 $as_echo_n "checking for $ac_word... " >&6; }
3560 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3561 $as_echo_n "(cached) " >&6
3563 if test -n "$ac_ct_CC"; then
3564 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3570 test -z "$as_dir" && as_dir=.
3571 for ac_exec_ext in '' $ac_executable_extensions; do
3572 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3573 ac_cv_prog_ac_ct_CC="$ac_prog"
3574 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3583 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3584 if test -n "$ac_ct_CC"; then
3585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3586 $as_echo "$ac_ct_CC" >&6; }
3588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3589 $as_echo "no" >&6; }
3593 test -n "$ac_ct_CC" && break
3596 if test "x$ac_ct_CC" = x; then
3599 case $cross_compiling:$ac_tool_warned in
3601 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3602 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3603 ac_tool_warned=yes ;;
3612 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3613 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3614 as_fn_error $? "no acceptable C compiler found in \$PATH
3615 See \`config.log' for more details" "$LINENO" 5; }
3617 # Provide some information about the compiler.
3618 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3621 for ac_option in --version -v -V -qversion; do
3622 { { ac_try="$ac_compiler $ac_option >&5"
3624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3625 *) ac_try_echo=$ac_try;;
3627 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3628 $as_echo "$ac_try_echo"; } >&5
3629 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3631 if test -s conftest.err; then
3633 ... rest of stderr output deleted ...
3634 10q' conftest.err >conftest.er1
3635 cat conftest.er1 >&5
3637 rm -f conftest.er1 conftest.err
3638 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3639 test $ac_status = 0; }
3642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3643 /* end confdefs.h. */
3653 ac_clean_files_save=$ac_clean_files
3654 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3655 # Try to create an executable without -o first, disregard a.out.
3656 # It will help us diagnose broken compilers, and finding out an intuition
3658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3659 $as_echo_n "checking whether the C compiler works... " >&6; }
3660 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3662 # The possible output files:
3663 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3666 for ac_file in $ac_files
3669 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3670 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3675 if { { ac_try="$ac_link_default"
3677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3678 *) ac_try_echo=$ac_try;;
3680 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3681 $as_echo "$ac_try_echo"; } >&5
3682 (eval "$ac_link_default") 2>&5
3684 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3685 test $ac_status = 0; }; then :
3686 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3687 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3688 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3689 # so that the user can short-circuit this test for compilers unknown to
3691 for ac_file in $ac_files ''
3693 test -f "$ac_file" || continue
3695 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3698 # We found the default executable, but exeext='' is most
3702 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3704 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3706 # We set ac_cv_exeext here because the later test for it is not
3707 # safe: cross compilers may not add the suffix if given an `-o'
3708 # argument, so we may need to know it at that point already.
3709 # Even if this section looks crufty: it has the advantage of
3716 test "$ac_cv_exeext" = no && ac_cv_exeext=
3721 if test -z "$ac_file"; then :
3722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3723 $as_echo "no" >&6; }
3724 $as_echo "$as_me: failed program was:" >&5
3725 sed 's/^/| /' conftest.$ac_ext >&5
3727 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3728 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3729 as_fn_error 77 "C compiler cannot create executables
3730 See \`config.log' for more details" "$LINENO" 5; }
3732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3733 $as_echo "yes" >&6; }
3735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3736 $as_echo_n "checking for C compiler default output file name... " >&6; }
3737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3738 $as_echo "$ac_file" >&6; }
3739 ac_exeext=$ac_cv_exeext
3741 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3742 ac_clean_files=$ac_clean_files_save
3743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3744 $as_echo_n "checking for suffix of executables... " >&6; }
3745 if { { ac_try="$ac_link"
3747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3748 *) ac_try_echo=$ac_try;;
3750 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3751 $as_echo "$ac_try_echo"; } >&5
3752 (eval "$ac_link") 2>&5
3754 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3755 test $ac_status = 0; }; then :
3756 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3757 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3758 # work properly (i.e., refer to `conftest.exe'), while it won't with
3760 for ac_file in conftest.exe conftest conftest.*; do
3761 test -f "$ac_file" || continue
3763 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3764 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3770 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3771 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3772 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3773 See \`config.log' for more details" "$LINENO" 5; }
3775 rm -f conftest conftest$ac_cv_exeext
3776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3777 $as_echo "$ac_cv_exeext" >&6; }
3779 rm -f conftest.$ac_ext
3780 EXEEXT=$ac_cv_exeext
3782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3783 /* end confdefs.h. */
3788 FILE *f = fopen ("conftest.out", "w");
3789 return ferror (f) || fclose (f) != 0;
3795 ac_clean_files="$ac_clean_files conftest.out"
3796 # Check that the compiler produces executables we can run. If not, either
3797 # the compiler is broken, or we cross compile.
3798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3799 $as_echo_n "checking whether we are cross compiling... " >&6; }
3800 if test "$cross_compiling" != yes; then
3801 { { ac_try="$ac_link"
3803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3804 *) ac_try_echo=$ac_try;;
3806 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3807 $as_echo "$ac_try_echo"; } >&5
3808 (eval "$ac_link") 2>&5
3810 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3811 test $ac_status = 0; }
3812 if { ac_try='./conftest$ac_cv_exeext'
3813 { { case "(($ac_try" in
3814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3815 *) ac_try_echo=$ac_try;;
3817 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3818 $as_echo "$ac_try_echo"; } >&5
3819 (eval "$ac_try") 2>&5
3821 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3822 test $ac_status = 0; }; }; then
3825 if test "$cross_compiling" = maybe; then
3828 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3829 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3830 as_fn_error $? "cannot run C compiled programs.
3831 If you meant to cross compile, use \`--host'.
3832 See \`config.log' for more details" "$LINENO" 5; }
3836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3837 $as_echo "$cross_compiling" >&6; }
3839 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3840 ac_clean_files=$ac_clean_files_save
3841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3842 $as_echo_n "checking for suffix of object files... " >&6; }
3843 if ${ac_cv_objext+:} false; then :
3844 $as_echo_n "(cached) " >&6
3846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3847 /* end confdefs.h. */
3857 rm -f conftest.o conftest.obj
3858 if { { ac_try="$ac_compile"
3860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3861 *) ac_try_echo=$ac_try;;
3863 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3864 $as_echo "$ac_try_echo"; } >&5
3865 (eval "$ac_compile") 2>&5
3867 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3868 test $ac_status = 0; }; then :
3869 for ac_file in conftest.o conftest.obj conftest.*; do
3870 test -f "$ac_file" || continue;
3872 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3873 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3878 $as_echo "$as_me: failed program was:" >&5
3879 sed 's/^/| /' conftest.$ac_ext >&5
3881 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3882 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3883 as_fn_error $? "cannot compute suffix of object files: cannot compile
3884 See \`config.log' for more details" "$LINENO" 5; }
3886 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3889 $as_echo "$ac_cv_objext" >&6; }
3890 OBJEXT=$ac_cv_objext
3892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3893 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3894 if ${ac_cv_c_compiler_gnu+:} false; then :
3895 $as_echo_n "(cached) " >&6
3897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3898 /* end confdefs.h. */
3911 if ac_fn_c_try_compile "$LINENO"; then :
3916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3917 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3921 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3922 if test $ac_compiler_gnu = yes; then
3927 ac_test_CFLAGS=${CFLAGS+set}
3928 ac_save_CFLAGS=$CFLAGS
3929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3930 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3931 if ${ac_cv_prog_cc_g+:} false; then :
3932 $as_echo_n "(cached) " >&6
3934 ac_save_c_werror_flag=$ac_c_werror_flag
3935 ac_c_werror_flag=yes
3938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3939 /* end confdefs.h. */
3949 if ac_fn_c_try_compile "$LINENO"; then :
3953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3954 /* end confdefs.h. */
3964 if ac_fn_c_try_compile "$LINENO"; then :
3967 ac_c_werror_flag=$ac_save_c_werror_flag
3969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3970 /* end confdefs.h. */
3980 if ac_fn_c_try_compile "$LINENO"; then :
3983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3988 ac_c_werror_flag=$ac_save_c_werror_flag
3990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3991 $as_echo "$ac_cv_prog_cc_g" >&6; }
3992 if test "$ac_test_CFLAGS" = set; then
3993 CFLAGS=$ac_save_CFLAGS
3994 elif test $ac_cv_prog_cc_g = yes; then
3995 if test "$GCC" = yes; then
4001 if test "$GCC" = yes; then
4007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4008 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4009 if ${ac_cv_prog_cc_c89+:} false; then :
4010 $as_echo_n "(cached) " >&6
4012 ac_cv_prog_cc_c89=no
4014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4015 /* end confdefs.h. */
4019 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4020 struct buf { int x; };
4021 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4022 static char *e (p, i)
4028 static char *f (char * (*g) (char **, int), char **p, ...)
4033 s = g (p, va_arg (v,int));
4038 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4039 function prototypes and stuff, but not '\xHH' hex character constants.
4040 These don't provoke an error unfortunately, instead are silently treated
4041 as 'x'. The following induces an error, until -std is added to get
4042 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4043 array size at least. It's necessary to write '\x00'==0 to get something
4044 that's true only with -std. */
4045 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4047 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4048 inside strings and character constants. */
4050 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4052 int test (int i, double x);
4053 struct s1 {int (*f) (int a);};
4054 struct s2 {int (*f) (double a);};
4055 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4061 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4066 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4067 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4069 CC="$ac_save_CC $ac_arg"
4070 if ac_fn_c_try_compile "$LINENO"; then :
4071 ac_cv_prog_cc_c89=$ac_arg
4073 rm -f core conftest.err conftest.$ac_objext
4074 test "x$ac_cv_prog_cc_c89" != "xno" && break
4076 rm -f conftest.$ac_ext
4081 case "x$ac_cv_prog_cc_c89" in
4083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4084 $as_echo "none needed" >&6; } ;;
4086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4087 $as_echo "unsupported" >&6; } ;;
4089 CC="$CC $ac_cv_prog_cc_c89"
4090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4091 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4093 if test "x$ac_cv_prog_cc_c89" != xno; then :
4098 ac_cpp='$CPP $CPPFLAGS'
4099 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4100 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4101 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4103 ac_cpp='$CXXCPP $CPPFLAGS'
4104 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4105 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4106 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4107 if test -z "$CXX"; then
4108 if test -n "$CCC"; then
4111 if test -n "$ac_tool_prefix"; then
4112 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4114 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4115 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4117 $as_echo_n "checking for $ac_word... " >&6; }
4118 if ${ac_cv_prog_CXX+:} false; then :
4119 $as_echo_n "(cached) " >&6
4121 if test -n "$CXX"; then
4122 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4128 test -z "$as_dir" && as_dir=.
4129 for ac_exec_ext in '' $ac_executable_extensions; do
4130 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4131 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4132 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4142 if test -n "$CXX"; then
4143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4144 $as_echo "$CXX" >&6; }
4146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4147 $as_echo "no" >&6; }
4151 test -n "$CXX" && break
4154 if test -z "$CXX"; then
4156 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4158 # Extract the first word of "$ac_prog", so it can be a program name with args.
4159 set dummy $ac_prog; ac_word=$2
4160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4161 $as_echo_n "checking for $ac_word... " >&6; }
4162 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4163 $as_echo_n "(cached) " >&6
4165 if test -n "$ac_ct_CXX"; then
4166 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4172 test -z "$as_dir" && as_dir=.
4173 for ac_exec_ext in '' $ac_executable_extensions; do
4174 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4175 ac_cv_prog_ac_ct_CXX="$ac_prog"
4176 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4185 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4186 if test -n "$ac_ct_CXX"; then
4187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4188 $as_echo "$ac_ct_CXX" >&6; }
4190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4191 $as_echo "no" >&6; }
4195 test -n "$ac_ct_CXX" && break
4198 if test "x$ac_ct_CXX" = x; then
4201 case $cross_compiling:$ac_tool_warned in
4203 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4204 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4205 ac_tool_warned=yes ;;
4213 # Provide some information about the compiler.
4214 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4217 for ac_option in --version -v -V -qversion; do
4218 { { ac_try="$ac_compiler $ac_option >&5"
4220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4221 *) ac_try_echo=$ac_try;;
4223 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4224 $as_echo "$ac_try_echo"; } >&5
4225 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4227 if test -s conftest.err; then
4229 ... rest of stderr output deleted ...
4230 10q' conftest.err >conftest.er1
4231 cat conftest.er1 >&5
4233 rm -f conftest.er1 conftest.err
4234 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4235 test $ac_status = 0; }
4238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4239 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4240 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4241 $as_echo_n "(cached) " >&6
4243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4244 /* end confdefs.h. */
4257 if ac_fn_cxx_try_compile "$LINENO"; then :
4262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4263 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4267 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4268 if test $ac_compiler_gnu = yes; then
4273 ac_test_CXXFLAGS=${CXXFLAGS+set}
4274 ac_save_CXXFLAGS=$CXXFLAGS
4275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4276 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4277 if ${ac_cv_prog_cxx_g+:} false; then :
4278 $as_echo_n "(cached) " >&6
4280 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4281 ac_cxx_werror_flag=yes
4284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4285 /* end confdefs.h. */
4295 if ac_fn_cxx_try_compile "$LINENO"; then :
4296 ac_cv_prog_cxx_g=yes
4299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4300 /* end confdefs.h. */
4310 if ac_fn_cxx_try_compile "$LINENO"; then :
4313 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4316 /* end confdefs.h. */
4326 if ac_fn_cxx_try_compile "$LINENO"; then :
4327 ac_cv_prog_cxx_g=yes
4329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4334 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4337 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4338 if test "$ac_test_CXXFLAGS" = set; then
4339 CXXFLAGS=$ac_save_CXXFLAGS
4340 elif test $ac_cv_prog_cxx_g = yes; then
4341 if test "$GXX" = yes; then
4347 if test "$GXX" = yes; then
4354 ac_cpp='$CPP $CPPFLAGS'
4355 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4356 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4357 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4359 if test "x$CC" != xcc; then
4360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4361 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4364 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4366 set dummy $CC; ac_cc=`$as_echo "$2" |
4367 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4368 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
4369 $as_echo_n "(cached) " >&6
4371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4372 /* end confdefs.h. */
4382 # Make sure it works both with $CC and with simple cc.
4383 # We do the test twice because some compilers refuse to overwrite an
4384 # existing .o file with -o, though they will create one.
4385 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4387 if { { case "(($ac_try" in
4388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4389 *) ac_try_echo=$ac_try;;
4391 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4392 $as_echo "$ac_try_echo"; } >&5
4393 (eval "$ac_try") 2>&5
4395 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4396 test $ac_status = 0; } &&
4397 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4399 *) ac_try_echo=$ac_try;;
4401 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4402 $as_echo "$ac_try_echo"; } >&5
4403 (eval "$ac_try") 2>&5
4405 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4406 test $ac_status = 0; };
4408 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4409 if test "x$CC" != xcc; then
4410 # Test first that cc exists at all.
4411 if { ac_try='cc -c conftest.$ac_ext >&5'
4412 { { case "(($ac_try" in
4413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4414 *) ac_try_echo=$ac_try;;
4416 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4417 $as_echo "$ac_try_echo"; } >&5
4418 (eval "$ac_try") 2>&5
4420 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4421 test $ac_status = 0; }; }; then
4422 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4424 if { { case "(($ac_try" in
4425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4426 *) ac_try_echo=$ac_try;;
4428 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4429 $as_echo "$ac_try_echo"; } >&5
4430 (eval "$ac_try") 2>&5
4432 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4433 test $ac_status = 0; } &&
4434 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4436 *) ac_try_echo=$ac_try;;
4438 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4439 $as_echo "$ac_try_echo"; } >&5
4440 (eval "$ac_try") 2>&5
4442 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4443 test $ac_status = 0; };
4448 # cc exists but doesn't like -o.
4449 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4454 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4456 rm -f core conftest*
4459 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4461 $as_echo "yes" >&6; }
4463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4464 $as_echo "no" >&6; }
4466 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4471 ac_cpp='$CPP $CPPFLAGS'
4472 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4473 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4474 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4476 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4477 # On Suns, sometimes $CPP names a directory.
4478 if test -n "$CPP" && test -d "$CPP"; then
4481 if test -z "$CPP"; then
4482 if ${ac_cv_prog_CPP+:} false; then :
4483 $as_echo_n "(cached) " >&6
4485 # Double quotes because CPP needs to be expanded
4486 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4489 for ac_c_preproc_warn_flag in '' yes
4491 # Use a header file that comes with gcc, so configuring glibc
4492 # with a fresh cross-compiler works.
4493 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4494 # <limits.h> exists even on freestanding compilers.
4495 # On the NeXT, cc -E runs the code through the compiler's parser,
4496 # not just through cpp. "Syntax error" is here to catch this case.
4497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4498 /* end confdefs.h. */
4500 # include <limits.h>
4502 # include <assert.h>
4506 if ac_fn_c_try_cpp "$LINENO"; then :
4509 # Broken: fails on valid input.
4512 rm -f conftest.err conftest.i conftest.$ac_ext
4514 # OK, works on sane cases. Now check whether nonexistent headers
4515 # can be detected and how.
4516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4517 /* end confdefs.h. */
4518 #include <ac_nonexistent.h>
4520 if ac_fn_c_try_cpp "$LINENO"; then :
4521 # Broken: success on invalid input.
4524 # Passes both tests.
4528 rm -f conftest.err conftest.i conftest.$ac_ext
4531 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4532 rm -f conftest.i conftest.err conftest.$ac_ext
4533 if $ac_preproc_ok; then :
4545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4546 $as_echo "$CPP" >&6; }
4548 for ac_c_preproc_warn_flag in '' yes
4550 # Use a header file that comes with gcc, so configuring glibc
4551 # with a fresh cross-compiler works.
4552 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4553 # <limits.h> exists even on freestanding compilers.
4554 # On the NeXT, cc -E runs the code through the compiler's parser,
4555 # not just through cpp. "Syntax error" is here to catch this case.
4556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4557 /* end confdefs.h. */
4559 # include <limits.h>
4561 # include <assert.h>
4565 if ac_fn_c_try_cpp "$LINENO"; then :
4568 # Broken: fails on valid input.
4571 rm -f conftest.err conftest.i conftest.$ac_ext
4573 # OK, works on sane cases. Now check whether nonexistent headers
4574 # can be detected and how.
4575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4576 /* end confdefs.h. */
4577 #include <ac_nonexistent.h>
4579 if ac_fn_c_try_cpp "$LINENO"; then :
4580 # Broken: success on invalid input.
4583 # Passes both tests.
4587 rm -f conftest.err conftest.i conftest.$ac_ext
4590 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4591 rm -f conftest.i conftest.err conftest.$ac_ext
4592 if $ac_preproc_ok; then :
4595 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4596 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4597 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4598 See \`config.log' for more details" "$LINENO" 5; }
4602 ac_cpp='$CPP $CPPFLAGS'
4603 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4604 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4605 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4609 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4610 if ${ac_cv_path_GREP+:} false; then :
4611 $as_echo_n "(cached) " >&6
4613 if test -z "$GREP"; then
4614 ac_path_GREP_found=false
4615 # Loop through the user's path and test for each of PROGNAME-LIST
4616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4617 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4620 test -z "$as_dir" && as_dir=.
4621 for ac_prog in grep ggrep; do
4622 for ac_exec_ext in '' $ac_executable_extensions; do
4623 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4624 as_fn_executable_p "$ac_path_GREP" || continue
4625 # Check for GNU ac_path_GREP and select it if it is found.
4626 # Check for GNU $ac_path_GREP
4627 case `"$ac_path_GREP" --version 2>&1` in
4629 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4632 $as_echo_n 0123456789 >"conftest.in"
4635 cat "conftest.in" "conftest.in" >"conftest.tmp"
4636 mv "conftest.tmp" "conftest.in"
4637 cp "conftest.in" "conftest.nl"
4638 $as_echo 'GREP' >> "conftest.nl"
4639 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4640 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4641 as_fn_arith $ac_count + 1 && ac_count=$as_val
4642 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4643 # Best one so far, save it but keep looking for a better one
4644 ac_cv_path_GREP="$ac_path_GREP"
4645 ac_path_GREP_max=$ac_count
4647 # 10*(2^10) chars as input seems more than enough
4648 test $ac_count -gt 10 && break
4650 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4653 $ac_path_GREP_found && break 3
4658 if test -z "$ac_cv_path_GREP"; then
4659 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4662 ac_cv_path_GREP=$GREP
4666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4667 $as_echo "$ac_cv_path_GREP" >&6; }
4668 GREP="$ac_cv_path_GREP"
4671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4672 $as_echo_n "checking for egrep... " >&6; }
4673 if ${ac_cv_path_EGREP+:} false; then :
4674 $as_echo_n "(cached) " >&6
4676 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4677 then ac_cv_path_EGREP="$GREP -E"
4679 if test -z "$EGREP"; then
4680 ac_path_EGREP_found=false
4681 # Loop through the user's path and test for each of PROGNAME-LIST
4682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4683 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4686 test -z "$as_dir" && as_dir=.
4687 for ac_prog in egrep; do
4688 for ac_exec_ext in '' $ac_executable_extensions; do
4689 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4690 as_fn_executable_p "$ac_path_EGREP" || continue
4691 # Check for GNU ac_path_EGREP and select it if it is found.
4692 # Check for GNU $ac_path_EGREP
4693 case `"$ac_path_EGREP" --version 2>&1` in
4695 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4698 $as_echo_n 0123456789 >"conftest.in"
4701 cat "conftest.in" "conftest.in" >"conftest.tmp"
4702 mv "conftest.tmp" "conftest.in"
4703 cp "conftest.in" "conftest.nl"
4704 $as_echo 'EGREP' >> "conftest.nl"
4705 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4706 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4707 as_fn_arith $ac_count + 1 && ac_count=$as_val
4708 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4709 # Best one so far, save it but keep looking for a better one
4710 ac_cv_path_EGREP="$ac_path_EGREP"
4711 ac_path_EGREP_max=$ac_count
4713 # 10*(2^10) chars as input seems more than enough
4714 test $ac_count -gt 10 && break
4716 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4719 $ac_path_EGREP_found && break 3
4724 if test -z "$ac_cv_path_EGREP"; then
4725 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4728 ac_cv_path_EGREP=$EGREP
4733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4734 $as_echo "$ac_cv_path_EGREP" >&6; }
4735 EGREP="$ac_cv_path_EGREP"
4738 if test $ac_cv_c_compiler_gnu = yes; then
4739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
4740 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
4741 if ${ac_cv_prog_gcc_traditional+:} false; then :
4742 $as_echo_n "(cached) " >&6
4744 ac_pattern="Autoconf.*'x'"
4745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4746 /* end confdefs.h. */
4750 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4751 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4752 ac_cv_prog_gcc_traditional=yes
4754 ac_cv_prog_gcc_traditional=no
4759 if test $ac_cv_prog_gcc_traditional = no; then
4760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4761 /* end confdefs.h. */
4765 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4766 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4767 ac_cv_prog_gcc_traditional=yes
4773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
4774 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
4775 if test $ac_cv_prog_gcc_traditional = yes; then
4776 CC="$CC -traditional"
4780 BASECC=`basename $CC`
4782 if test x"$GCC" = "xyes"; then
4783 $as_echo "#define HAVE_GCC 1" >>confdefs.h
4787 # Extract the first word of "$CXX", so it can be a program name with args.
4788 set dummy $CXX; ac_word=$2
4789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4790 $as_echo_n "checking for $ac_word... " >&6; }
4791 if ${ac_cv_path_CXX+:} false; then :
4792 $as_echo_n "(cached) " >&6
4796 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
4799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4803 test -z "$as_dir" && as_dir=.
4804 for ac_exec_ext in '' $ac_executable_extensions; do
4805 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4806 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
4807 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4814 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="$CXX"
4819 if test -n "$CXX"; then
4820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4821 $as_echo "$CXX" >&6; }
4823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4824 $as_echo "no" >&6; }
4828 if test ! -e $CXX; then
4829 as_fn_error $? "Unable to find C++ compiler" "$LINENO" 5
4832 # Find a good install program. We prefer a C program (faster),
4833 # so one script is as good as another. But avoid the broken or
4834 # incompatible versions:
4835 # SysV /etc/install, /usr/sbin/install
4836 # SunOS /usr/etc/install
4837 # IRIX /sbin/install
4839 # AmigaOS /C/install, which installs bootblocks on floppy discs
4840 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4841 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4842 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4843 # OS/2's system install, which has a completely different semantic
4844 # ./install, which can be erroneously created by make from ./install.sh.
4845 # Reject install programs that cannot install multiple files.
4846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4847 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4848 if test -z "$INSTALL"; then
4849 if ${ac_cv_path_install+:} false; then :
4850 $as_echo_n "(cached) " >&6
4852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4856 test -z "$as_dir" && as_dir=.
4857 # Account for people who put trailing slashes in PATH elements.
4858 case $as_dir/ in #((
4859 ./ | .// | /[cC]/* | \
4860 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4861 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4864 # OSF1 and SCO ODT 3.0 have their own names for install.
4865 # Don't use installbsd from OSF since it installs stuff as root
4867 for ac_prog in ginstall scoinst install; do
4868 for ac_exec_ext in '' $ac_executable_extensions; do
4869 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4870 if test $ac_prog = install &&
4871 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4872 # AIX install. It has an incompatible calling convention.
4874 elif test $ac_prog = install &&
4875 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4876 # program-specific install script used by HP pwplus--don't use.
4879 rm -rf conftest.one conftest.two conftest.dir
4880 echo one > conftest.one
4881 echo two > conftest.two
4883 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4884 test -s conftest.one && test -s conftest.two &&
4885 test -s conftest.dir/conftest.one &&
4886 test -s conftest.dir/conftest.two
4888 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4901 rm -rf conftest.one conftest.two conftest.dir
4904 if test "${ac_cv_path_install+set}" = set; then
4905 INSTALL=$ac_cv_path_install
4907 # As a last resort, use the slow shell script. Don't cache a
4908 # value for INSTALL within a source directory, because that will
4909 # break other packages using the cache if that directory is
4910 # removed, or if the value is a relative name.
4911 INSTALL=$ac_install_sh
4914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4915 $as_echo "$INSTALL" >&6; }
4917 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4918 # It thinks the first close brace ends the variable substitution.
4919 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4921 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4923 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4925 # Extract the first word of "mv", so it can be a program name with args.
4926 set dummy mv; ac_word=$2
4927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4928 $as_echo_n "checking for $ac_word... " >&6; }
4929 if ${ac_cv_path_MV+:} false; then :
4930 $as_echo_n "(cached) " >&6
4934 ac_cv_path_MV="$MV" # Let the user override the test with a path.
4937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4941 test -z "$as_dir" && as_dir=.
4942 for ac_exec_ext in '' $ac_executable_extensions; do
4943 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4944 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4945 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4952 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4957 if test -n "$MV"; then
4958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
4959 $as_echo "$MV" >&6; }
4961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4962 $as_echo "no" >&6; }
4966 # Extract the first word of "rm", so it can be a program name with args.
4967 set dummy rm; ac_word=$2
4968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4969 $as_echo_n "checking for $ac_word... " >&6; }
4970 if ${ac_cv_path_REMOVE+:} false; then :
4971 $as_echo_n "(cached) " >&6
4975 ac_cv_path_REMOVE="$REMOVE" # Let the user override the test with a path.
4978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4982 test -z "$as_dir" && as_dir=.
4983 for ac_exec_ext in '' $ac_executable_extensions; do
4984 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4985 ac_cv_path_REMOVE="$as_dir/$ac_word$ac_exec_ext"
4986 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4993 test -z "$ac_cv_path_REMOVE" && ac_cv_path_REMOVE="rm"
4997 REMOVE=$ac_cv_path_REMOVE
4998 if test -n "$REMOVE"; then
4999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $REMOVE" >&5
5000 $as_echo "$REMOVE" >&6; }
5002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5003 $as_echo "no" >&6; }
5007 # Extract the first word of "cp", so it can be a program name with args.
5008 set dummy cp; ac_word=$2
5009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5010 $as_echo_n "checking for $ac_word... " >&6; }
5011 if ${ac_cv_path_CP+:} false; then :
5012 $as_echo_n "(cached) " >&6
5016 ac_cv_path_CP="$CP" # Let the user override the test with a path.
5019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5023 test -z "$as_dir" && as_dir=.
5024 for ac_exec_ext in '' $ac_executable_extensions; do
5025 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5026 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5027 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5034 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5039 if test -n "$CP"; then
5040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
5041 $as_echo "$CP" >&6; }
5043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5044 $as_echo "no" >&6; }
5048 # Extract the first word of "sed", so it can be a program name with args.
5049 set dummy sed; ac_word=$2
5050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5051 $as_echo_n "checking for $ac_word... " >&6; }
5052 if ${ac_cv_path_SED+:} false; then :
5053 $as_echo_n "(cached) " >&6
5057 ac_cv_path_SED="$SED" # Let the user override the test with a path.
5060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5064 test -z "$as_dir" && as_dir=.
5065 for ac_exec_ext in '' $ac_executable_extensions; do
5066 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5067 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
5068 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5075 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
5080 if test -n "$SED"; then
5081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
5082 $as_echo "$SED" >&6; }
5084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5085 $as_echo "no" >&6; }
5089 # Extract the first word of "echo", so it can be a program name with args.
5090 set dummy echo; ac_word=$2
5091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5092 $as_echo_n "checking for $ac_word... " >&6; }
5093 if ${ac_cv_path_ECHO+:} false; then :
5094 $as_echo_n "(cached) " >&6
5098 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
5101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5105 test -z "$as_dir" && as_dir=.
5106 for ac_exec_ext in '' $ac_executable_extensions; do
5107 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5108 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
5109 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5116 test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
5120 ECHO=$ac_cv_path_ECHO
5121 if test -n "$ECHO"; then
5122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
5123 $as_echo "$ECHO" >&6; }
5125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5126 $as_echo "no" >&6; }
5130 # Extract the first word of "cmp", so it can be a program name with args.
5131 set dummy cmp; ac_word=$2
5132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5133 $as_echo_n "checking for $ac_word... " >&6; }
5134 if ${ac_cv_path_CMP+:} false; then :
5135 $as_echo_n "(cached) " >&6
5139 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5146 test -z "$as_dir" && as_dir=.
5147 for ac_exec_ext in '' $ac_executable_extensions; do
5148 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5149 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5150 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5157 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5162 if test -n "$CMP"; then
5163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5
5164 $as_echo "$CMP" >&6; }
5166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5167 $as_echo "no" >&6; }
5171 # Extract the first word of "tbl", so it can be a program name with args.
5172 set dummy tbl; ac_word=$2
5173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5174 $as_echo_n "checking for $ac_word... " >&6; }
5175 if ${ac_cv_path_TBL+:} false; then :
5176 $as_echo_n "(cached) " >&6
5180 ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
5183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5187 test -z "$as_dir" && as_dir=.
5188 for ac_exec_ext in '' $ac_executable_extensions; do
5189 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5190 ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
5191 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5198 test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
5203 if test -n "$TBL"; then
5204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TBL" >&5
5205 $as_echo "$TBL" >&6; }
5207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5208 $as_echo "no" >&6; }
5212 # Extract the first word of "ar", so it can be a program name with args.
5213 set dummy ar; ac_word=$2
5214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5215 $as_echo_n "checking for $ac_word... " >&6; }
5216 if ${ac_cv_path_AR+:} false; then :
5217 $as_echo_n "(cached) " >&6
5221 ac_cv_path_AR="$AR" # Let the user override the test with a path.
5224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5228 test -z "$as_dir" && as_dir=.
5229 for ac_exec_ext in '' $ac_executable_extensions; do
5230 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5231 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
5232 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5239 test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
5244 if test -n "$AR"; then
5245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5246 $as_echo "$AR" >&6; }
5248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5249 $as_echo "no" >&6; }
5253 # Extract the first word of "openssl", so it can be a program name with args.
5254 set dummy openssl; ac_word=$2
5255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5256 $as_echo_n "checking for $ac_word... " >&6; }
5257 if ${ac_cv_path_OPENSSL+:} false; then :
5258 $as_echo_n "(cached) " >&6
5262 ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
5265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5269 test -z "$as_dir" && as_dir=.
5270 for ac_exec_ext in '' $ac_executable_extensions; do
5271 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5272 ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
5273 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5280 test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
5284 OPENSSL=$ac_cv_path_OPENSSL
5285 if test -n "$OPENSSL"; then
5286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENSSL" >&5
5287 $as_echo "$OPENSSL" >&6; }
5289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5290 $as_echo "no" >&6; }
5294 # Extract the first word of "mtx", so it can be a program name with args.
5295 set dummy mtx; ac_word=$2
5296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5297 $as_echo_n "checking for $ac_word... " >&6; }
5298 if ${ac_cv_path_MTX+:} false; then :
5299 $as_echo_n "(cached) " >&6
5303 ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
5306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5310 test -z "$as_dir" && as_dir=.
5311 for ac_exec_ext in '' $ac_executable_extensions; do
5312 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5313 ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
5314 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5321 test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
5326 if test -n "$MTX"; then
5327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MTX" >&5
5328 $as_echo "$MTX" >&6; }
5330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5331 $as_echo "no" >&6; }
5335 # Extract the first word of "dd", so it can be a program name with args.
5336 set dummy dd; ac_word=$2
5337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5338 $as_echo_n "checking for $ac_word... " >&6; }
5339 if ${ac_cv_path_DD+:} false; then :
5340 $as_echo_n "(cached) " >&6
5344 ac_cv_path_DD="$DD" # Let the user override the test with a path.
5347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5351 test -z "$as_dir" && as_dir=.
5352 for ac_exec_ext in '' $ac_executable_extensions; do
5353 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5354 ac_cv_path_DD="$as_dir/$ac_word$ac_exec_ext"
5355 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5362 test -z "$ac_cv_path_DD" && ac_cv_path_DD="dd"
5367 if test -n "$DD"; then
5368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DD" >&5
5369 $as_echo "$DD" >&6; }
5371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5372 $as_echo "no" >&6; }
5376 # Extract the first word of "mkisofs", so it can be a program name with args.
5377 set dummy mkisofs; ac_word=$2
5378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5379 $as_echo_n "checking for $ac_word... " >&6; }
5380 if ${ac_cv_path_MKISOFS+:} false; then :
5381 $as_echo_n "(cached) " >&6
5385 ac_cv_path_MKISOFS="$MKISOFS" # Let the user override the test with a path.
5388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5392 test -z "$as_dir" && as_dir=.
5393 for ac_exec_ext in '' $ac_executable_extensions; do
5394 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5395 ac_cv_path_MKISOFS="$as_dir/$ac_word$ac_exec_ext"
5396 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5403 test -z "$ac_cv_path_MKISOFS" && ac_cv_path_MKISOFS="mkisofs"
5407 MKISOFS=$ac_cv_path_MKISOFS
5408 if test -n "$MKISOFS"; then
5409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKISOFS" >&5
5410 $as_echo "$MKISOFS" >&6; }
5412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5413 $as_echo "no" >&6; }
5417 # Extract the first word of "python", so it can be a program name with args.
5418 set dummy python; ac_word=$2
5419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5420 $as_echo_n "checking for $ac_word... " >&6; }
5421 if ${ac_cv_path_PYTHON+:} false; then :
5422 $as_echo_n "(cached) " >&6
5426 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
5429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5433 test -z "$as_dir" && as_dir=.
5434 for ac_exec_ext in '' $ac_executable_extensions; do
5435 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5436 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
5437 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5444 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="python"
5448 PYTHON=$ac_cv_path_PYTHON
5449 if test -n "$PYTHON"; then
5450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
5451 $as_echo "$PYTHON" >&6; }
5453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5454 $as_echo "no" >&6; }
5458 # Extract the first word of "growisofs", so it can be a program name with args.
5459 set dummy growisofs; ac_word=$2
5460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5461 $as_echo_n "checking for $ac_word... " >&6; }
5462 if ${ac_cv_path_GROWISOFS+:} false; then :
5463 $as_echo_n "(cached) " >&6
5467 ac_cv_path_GROWISOFS="$GROWISOFS" # Let the user override the test with a path.
5470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5474 test -z "$as_dir" && as_dir=.
5475 for ac_exec_ext in '' $ac_executable_extensions; do
5476 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5477 ac_cv_path_GROWISOFS="$as_dir/$ac_word$ac_exec_ext"
5478 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5485 test -z "$ac_cv_path_GROWISOFS" && ac_cv_path_GROWISOFS="growisofs"
5489 GROWISOFS=$ac_cv_path_GROWISOFS
5490 if test -n "$GROWISOFS"; then
5491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GROWISOFS" >&5
5492 $as_echo "$GROWISOFS" >&6; }
5494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5495 $as_echo "no" >&6; }
5499 # Extract the first word of "dvd+rw-mediainfo", so it can be a program name with args.
5500 set dummy dvd+rw-mediainfo; ac_word=$2
5501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5502 $as_echo_n "checking for $ac_word... " >&6; }
5503 if ${ac_cv_path_DVDRWMEDIAINFO+:} false; then :
5504 $as_echo_n "(cached) " >&6
5506 case $DVDRWMEDIAINFO in
5508 ac_cv_path_DVDRWMEDIAINFO="$DVDRWMEDIAINFO" # Let the user override the test with a path.
5511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5515 test -z "$as_dir" && as_dir=.
5516 for ac_exec_ext in '' $ac_executable_extensions; do
5517 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5518 ac_cv_path_DVDRWMEDIAINFO="$as_dir/$ac_word$ac_exec_ext"
5519 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5526 test -z "$ac_cv_path_DVDRWMEDIAINFO" && ac_cv_path_DVDRWMEDIAINFO="dvd+rw-mediainfo"
5530 DVDRWMEDIAINFO=$ac_cv_path_DVDRWMEDIAINFO
5531 if test -n "$DVDRWMEDIAINFO"; then
5532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVDRWMEDIAINFO" >&5
5533 $as_echo "$DVDRWMEDIAINFO" >&6; }
5535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5536 $as_echo "no" >&6; }
5540 # Extract the first word of "dvd+rw-format", so it can be a program name with args.
5541 set dummy dvd+rw-format; ac_word=$2
5542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5543 $as_echo_n "checking for $ac_word... " >&6; }
5544 if ${ac_cv_path_DVDRWFORMAT+:} false; then :
5545 $as_echo_n "(cached) " >&6
5547 case $DVDRWFORMAT in
5549 ac_cv_path_DVDRWFORMAT="$DVDRWFORMAT" # Let the user override the test with a path.
5552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5556 test -z "$as_dir" && as_dir=.
5557 for ac_exec_ext in '' $ac_executable_extensions; do
5558 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5559 ac_cv_path_DVDRWFORMAT="$as_dir/$ac_word$ac_exec_ext"
5560 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5567 test -z "$ac_cv_path_DVDRWFORMAT" && ac_cv_path_DVDRWFORMAT="dvd+rw-format"
5571 DVDRWFORMAT=$ac_cv_path_DVDRWFORMAT
5572 if test -n "$DVDRWFORMAT"; then
5573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVDRWFORMAT" >&5
5574 $as_echo "$DVDRWFORMAT" >&6; }
5576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5577 $as_echo "no" >&6; }
5581 # Extract the first word of "pkg-config", so it can be a program name with args.
5582 set dummy pkg-config; ac_word=$2
5583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5584 $as_echo_n "checking for $ac_word... " >&6; }
5585 if ${ac_cv_path_PKGCONFIG+:} false; then :
5586 $as_echo_n "(cached) " >&6
5590 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
5593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5597 test -z "$as_dir" && as_dir=.
5598 for ac_exec_ext in '' $ac_executable_extensions; do
5599 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5600 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
5601 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5608 test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
5612 PKGCONFIG=$ac_cv_path_PKGCONFIG
5613 if test -n "$PKGCONFIG"; then
5614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
5615 $as_echo "$PKGCONFIG" >&6; }
5617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5618 $as_echo "no" >&6; }
5622 # Extract the first word of "qmake", so it can be a program name with args.
5623 set dummy qmake; ac_word=$2
5624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5625 $as_echo_n "checking for $ac_word... " >&6; }
5626 if ${ac_cv_path_QMAKE+:} false; then :
5627 $as_echo_n "(cached) " >&6
5631 ac_cv_path_QMAKE="$QMAKE" # Let the user override the test with a path.
5634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5638 test -z "$as_dir" && as_dir=.
5639 for ac_exec_ext in '' $ac_executable_extensions; do
5640 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5641 ac_cv_path_QMAKE="$as_dir/$ac_word$ac_exec_ext"
5642 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5649 test -z "$ac_cv_path_QMAKE" && ac_cv_path_QMAKE="none"
5653 QMAKE=$ac_cv_path_QMAKE
5654 if test -n "$QMAKE"; then
5655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QMAKE" >&5
5656 $as_echo "$QMAKE" >&6; }
5658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5659 $as_echo "no" >&6; }
5663 # Extract the first word of "gmake", so it can be a program name with args.
5664 set dummy gmake; ac_word=$2
5665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5666 $as_echo_n "checking for $ac_word... " >&6; }
5667 if ${ac_cv_path_GMAKE+:} false; then :
5668 $as_echo_n "(cached) " >&6
5672 ac_cv_path_GMAKE="$GMAKE" # Let the user override the test with a path.
5675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5679 test -z "$as_dir" && as_dir=.
5680 for ac_exec_ext in '' $ac_executable_extensions; do
5681 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5682 ac_cv_path_GMAKE="$as_dir/$ac_word$ac_exec_ext"
5683 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5690 test -z "$ac_cv_path_GMAKE" && ac_cv_path_GMAKE="none"
5694 GMAKE=$ac_cv_path_GMAKE
5695 if test -n "$GMAKE"; then
5696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMAKE" >&5
5697 $as_echo "$GMAKE" >&6; }
5699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5700 $as_echo "no" >&6; }
5704 # Extract the first word of "pidof", so it can be a program name with args.
5705 set dummy pidof; ac_word=$2
5706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5707 $as_echo_n "checking for $ac_word... " >&6; }
5708 if ${ac_cv_path_PIDOF+:} false; then :
5709 $as_echo_n "(cached) " >&6
5713 ac_cv_path_PIDOF="$PIDOF" # Let the user override the test with a path.
5716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5720 test -z "$as_dir" && as_dir=.
5721 for ac_exec_ext in '' $ac_executable_extensions; do
5722 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5723 ac_cv_path_PIDOF="$as_dir/$ac_word$ac_exec_ext"
5724 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5731 test -z "$ac_cv_path_PIDOF" && ac_cv_path_PIDOF="pidof"
5735 PIDOF=$ac_cv_path_PIDOF
5736 if test -n "$PIDOF"; then
5737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PIDOF" >&5
5738 $as_echo "$PIDOF" >&6; }
5740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5741 $as_echo "no" >&6; }
5745 for ac_prog in gawk mawk nawk awk
5747 # Extract the first word of "$ac_prog", so it can be a program name with args.
5748 set dummy $ac_prog; ac_word=$2
5749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5750 $as_echo_n "checking for $ac_word... " >&6; }
5751 if ${ac_cv_prog_AWK+:} false; then :
5752 $as_echo_n "(cached) " >&6
5754 if test -n "$AWK"; then
5755 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5761 test -z "$as_dir" && as_dir=.
5762 for ac_exec_ext in '' $ac_executable_extensions; do
5763 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5764 ac_cv_prog_AWK="$ac_prog"
5765 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5775 if test -n "$AWK"; then
5776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5777 $as_echo "$AWK" >&6; }
5779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5780 $as_echo "no" >&6; }
5784 test -n "$AWK" && break
5787 # Some AWK programs fail, so test it and warn the user
5788 if echo xfoo | $AWK 'BEGIN { prog=ARGV1; ARGC=1 }
5789 { if ((prog == $2) || (("(" prog ")") == $2) ||
5790 (("" prog "") == $2) ||
5791 ((prog ":") == $2)) { print $1 ; exit 0 } }' xfoo>/dev/null; then :;
5793 as_fn_error $? "!!!!!!!!! WARNING !!!!!!!!!!!!!!
5794 The regex engine of $AWK is too broken to be used you
5795 might want to install GNU AWK.
5796 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" "$LINENO" 5
5799 # Extract the first word of "$THE_AWK", so it can be a program name with args.
5800 set dummy $THE_AWK; ac_word=$2
5801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5802 $as_echo_n "checking for $ac_word... " >&6; }
5803 if ${ac_cv_path_AWK+:} false; then :
5804 $as_echo_n "(cached) " >&6
5808 ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
5811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5815 test -z "$as_dir" && as_dir=.
5816 for ac_exec_ext in '' $ac_executable_extensions; do
5817 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5818 ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
5819 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5826 test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="$THE_AWK"
5831 if test -n "$AWK"; then
5832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5833 $as_echo "$AWK" >&6; }
5835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5836 $as_echo "no" >&6; }
5842 test -n "$ARFLAG" || ARFLAGS="cr"
5854 # Check whether --enable-libtool was given.
5855 if test "${enable_libtool+set}" = set; then :
5856 enableval=$enable_libtool;
5857 if test x$enableval = xno; then
5866 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5867 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5872 macro_version='2.4.2'
5873 macro_revision='1.3337'
5887 ltmain="$ac_aux_dir/ltmain.sh"
5889 # Make sure we can run config.sub.
5890 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5891 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5894 $as_echo_n "checking build system type... " >&6; }
5895 if ${ac_cv_build+:} false; then :
5896 $as_echo_n "(cached) " >&6
5898 ac_build_alias=$build_alias
5899 test "x$ac_build_alias" = x &&
5900 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5901 test "x$ac_build_alias" = x &&
5902 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5903 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5904 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5908 $as_echo "$ac_cv_build" >&6; }
5909 case $ac_cv_build in
5911 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5914 ac_save_IFS=$IFS; IFS='-'
5920 # Remember, the first character of IFS is used to create $*,
5921 # except with old shells:
5924 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5928 $as_echo_n "checking host system type... " >&6; }
5929 if ${ac_cv_host+:} false; then :
5930 $as_echo_n "(cached) " >&6
5932 if test "x$host_alias" = x; then
5933 ac_cv_host=$ac_cv_build
5935 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5936 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5941 $as_echo "$ac_cv_host" >&6; }
5944 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5947 ac_save_IFS=$IFS; IFS='-'
5953 # Remember, the first character of IFS is used to create $*,
5954 # except with old shells:
5957 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5960 # Backslashify metacharacters that are still active within
5961 # double-quoted strings.
5962 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5964 # Same as above, but do not quote variable references.
5965 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5967 # Sed substitution to delay expansion of an escaped shell variable in a
5968 # double_quote_subst'ed string.
5969 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5971 # Sed substitution to delay expansion of an escaped single quote.
5972 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5974 # Sed substitution to avoid accidental globbing in evaled expressions
5975 no_glob_subst='s/\*/\\\*/g'
5977 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5978 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5979 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5982 $as_echo_n "checking how to print strings... " >&6; }
5983 # Test print first, because it will be a builtin if present.
5984 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5985 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5987 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5990 # Use this function as a fallback that always works.
5991 func_fallback_echo ()
5993 eval 'cat <<_LTECHO_EOF
5997 ECHO='func_fallback_echo'
6000 # func_echo_all arg...
6001 # Invoke $ECHO with all args, space-separated.
6008 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6009 $as_echo "printf" >&6; } ;;
6010 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6011 $as_echo "print -r" >&6; } ;;
6012 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6013 $as_echo "cat" >&6; } ;;
6029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6030 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6031 if ${ac_cv_path_SED+:} false; then :
6032 $as_echo_n "(cached) " >&6
6034 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6035 for ac_i in 1 2 3 4 5 6 7; do
6036 ac_script="$ac_script$as_nl$ac_script"
6038 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6039 { ac_script=; unset ac_script;}
6040 if test -z "$SED"; then
6041 ac_path_SED_found=false
6042 # Loop through the user's path and test for each of PROGNAME-LIST
6043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6047 test -z "$as_dir" && as_dir=.
6048 for ac_prog in sed gsed; do
6049 for ac_exec_ext in '' $ac_executable_extensions; do
6050 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6051 as_fn_executable_p "$ac_path_SED" || continue
6052 # Check for GNU ac_path_SED and select it if it is found.
6053 # Check for GNU $ac_path_SED
6054 case `"$ac_path_SED" --version 2>&1` in
6056 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6059 $as_echo_n 0123456789 >"conftest.in"
6062 cat "conftest.in" "conftest.in" >"conftest.tmp"
6063 mv "conftest.tmp" "conftest.in"
6064 cp "conftest.in" "conftest.nl"
6065 $as_echo '' >> "conftest.nl"
6066 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6067 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6068 as_fn_arith $ac_count + 1 && ac_count=$as_val
6069 if test $ac_count -gt ${ac_path_SED_max-0}; then
6070 # Best one so far, save it but keep looking for a better one
6071 ac_cv_path_SED="$ac_path_SED"
6072 ac_path_SED_max=$ac_count
6074 # 10*(2^10) chars as input seems more than enough
6075 test $ac_count -gt 10 && break
6077 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6080 $ac_path_SED_found && break 3
6085 if test -z "$ac_cv_path_SED"; then
6086 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6094 $as_echo "$ac_cv_path_SED" >&6; }
6095 SED="$ac_cv_path_SED"
6098 test -z "$SED" && SED=sed
6099 Xsed="$SED -e 1s/^X//"
6111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6112 $as_echo_n "checking for fgrep... " >&6; }
6113 if ${ac_cv_path_FGREP+:} false; then :
6114 $as_echo_n "(cached) " >&6
6116 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6117 then ac_cv_path_FGREP="$GREP -F"
6119 if test -z "$FGREP"; then
6120 ac_path_FGREP_found=false
6121 # Loop through the user's path and test for each of PROGNAME-LIST
6122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6123 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6126 test -z "$as_dir" && as_dir=.
6127 for ac_prog in fgrep; do
6128 for ac_exec_ext in '' $ac_executable_extensions; do
6129 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6130 as_fn_executable_p "$ac_path_FGREP" || continue
6131 # Check for GNU ac_path_FGREP and select it if it is found.
6132 # Check for GNU $ac_path_FGREP
6133 case `"$ac_path_FGREP" --version 2>&1` in
6135 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6138 $as_echo_n 0123456789 >"conftest.in"
6141 cat "conftest.in" "conftest.in" >"conftest.tmp"
6142 mv "conftest.tmp" "conftest.in"
6143 cp "conftest.in" "conftest.nl"
6144 $as_echo 'FGREP' >> "conftest.nl"
6145 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6146 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6147 as_fn_arith $ac_count + 1 && ac_count=$as_val
6148 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6149 # Best one so far, save it but keep looking for a better one
6150 ac_cv_path_FGREP="$ac_path_FGREP"
6151 ac_path_FGREP_max=$ac_count
6153 # 10*(2^10) chars as input seems more than enough
6154 test $ac_count -gt 10 && break
6156 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6159 $ac_path_FGREP_found && break 3
6164 if test -z "$ac_cv_path_FGREP"; then
6165 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6168 ac_cv_path_FGREP=$FGREP
6173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6174 $as_echo "$ac_cv_path_FGREP" >&6; }
6175 FGREP="$ac_cv_path_FGREP"
6178 test -z "$GREP" && GREP=grep
6198 # Check whether --with-gnu-ld was given.
6199 if test "${with_gnu_ld+set}" = set; then :
6200 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6206 if test "$GCC" = yes; then
6207 # Check if gcc -print-prog-name=ld gives a path.
6208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6209 $as_echo_n "checking for ld used by $CC... " >&6; }
6212 # gcc leaves a trailing carriage return which upsets mingw
6213 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6215 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6218 # Accept absolute paths.
6220 re_direlt='/[^/][^/]*/\.\./'
6221 # Canonicalize the pathname of ld
6222 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6223 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6224 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6226 test -z "$LD" && LD="$ac_prog"
6229 # If it fails, then pretend we aren't using GCC.
6233 # If it is relative, then search for the first ld in PATH.
6237 elif test "$with_gnu_ld" = yes; then
6238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6239 $as_echo_n "checking for GNU ld... " >&6; }
6241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6242 $as_echo_n "checking for non-GNU ld... " >&6; }
6244 if ${lt_cv_path_LD+:} false; then :
6245 $as_echo_n "(cached) " >&6
6247 if test -z "$LD"; then
6248 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6249 for ac_dir in $PATH; do
6251 test -z "$ac_dir" && ac_dir=.
6252 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6253 lt_cv_path_LD="$ac_dir/$ac_prog"
6254 # Check to see if the program is GNU ld. I'd rather use --version,
6255 # but apparently some variants of GNU ld only accept -v.
6256 # Break only if it was the GNU/non-GNU ld that we prefer.
6257 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6258 *GNU* | *'with BFD'*)
6259 test "$with_gnu_ld" != no && break
6262 test "$with_gnu_ld" != yes && break
6269 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6274 if test -n "$LD"; then
6275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6276 $as_echo "$LD" >&6; }
6278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6279 $as_echo "no" >&6; }
6281 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6283 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6284 if ${lt_cv_prog_gnu_ld+:} false; then :
6285 $as_echo_n "(cached) " >&6
6287 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6288 case `$LD -v 2>&1 </dev/null` in
6289 *GNU* | *'with BFD'*)
6290 lt_cv_prog_gnu_ld=yes
6293 lt_cv_prog_gnu_ld=no
6297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6298 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6299 with_gnu_ld=$lt_cv_prog_gnu_ld
6309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6310 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6311 if ${lt_cv_path_NM+:} false; then :
6312 $as_echo_n "(cached) " >&6
6314 if test -n "$NM"; then
6315 # Let the user override the test.
6318 lt_nm_to_check="${ac_tool_prefix}nm"
6319 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6320 lt_nm_to_check="$lt_nm_to_check nm"
6322 for lt_tmp_nm in $lt_nm_to_check; do
6323 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6324 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6326 test -z "$ac_dir" && ac_dir=.
6327 tmp_nm="$ac_dir/$lt_tmp_nm"
6328 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6329 # Check to see if the nm accepts a BSD-compat flag.
6330 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6331 # nm: unknown option "B" ignored
6332 # Tru64's nm complains that /dev/null is an invalid object file
6333 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6334 */dev/null* | *'Invalid file or object type'*)
6335 lt_cv_path_NM="$tmp_nm -B"
6339 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6341 lt_cv_path_NM="$tmp_nm -p"
6345 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6346 continue # so that we can try to find one that supports BSD flags
6355 : ${lt_cv_path_NM=no}
6358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6359 $as_echo "$lt_cv_path_NM" >&6; }
6360 if test "$lt_cv_path_NM" != "no"; then
6363 # Didn't find any BSD compatible name lister, look for dumpbin.
6364 if test -n "$DUMPBIN"; then :
6365 # Let the user override the test.
6367 if test -n "$ac_tool_prefix"; then
6368 for ac_prog in dumpbin "link -dump"
6370 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6371 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6373 $as_echo_n "checking for $ac_word... " >&6; }
6374 if ${ac_cv_prog_DUMPBIN+:} false; then :
6375 $as_echo_n "(cached) " >&6
6377 if test -n "$DUMPBIN"; then
6378 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6384 test -z "$as_dir" && as_dir=.
6385 for ac_exec_ext in '' $ac_executable_extensions; do
6386 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6387 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6388 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6397 DUMPBIN=$ac_cv_prog_DUMPBIN
6398 if test -n "$DUMPBIN"; then
6399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6400 $as_echo "$DUMPBIN" >&6; }
6402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6403 $as_echo "no" >&6; }
6407 test -n "$DUMPBIN" && break
6410 if test -z "$DUMPBIN"; then
6411 ac_ct_DUMPBIN=$DUMPBIN
6412 for ac_prog in dumpbin "link -dump"
6414 # Extract the first word of "$ac_prog", so it can be a program name with args.
6415 set dummy $ac_prog; ac_word=$2
6416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6417 $as_echo_n "checking for $ac_word... " >&6; }
6418 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6419 $as_echo_n "(cached) " >&6
6421 if test -n "$ac_ct_DUMPBIN"; then
6422 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6428 test -z "$as_dir" && as_dir=.
6429 for ac_exec_ext in '' $ac_executable_extensions; do
6430 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6431 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6432 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6441 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6442 if test -n "$ac_ct_DUMPBIN"; then
6443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6444 $as_echo "$ac_ct_DUMPBIN" >&6; }
6446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6447 $as_echo "no" >&6; }
6451 test -n "$ac_ct_DUMPBIN" && break
6454 if test "x$ac_ct_DUMPBIN" = x; then
6457 case $cross_compiling:$ac_tool_warned in
6459 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6460 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6461 ac_tool_warned=yes ;;
6463 DUMPBIN=$ac_ct_DUMPBIN
6467 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6469 DUMPBIN="$DUMPBIN -symbols"
6477 if test "$DUMPBIN" != ":"; then
6481 test -z "$NM" && NM=nm
6488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6489 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6490 if ${lt_cv_nm_interface+:} false; then :
6491 $as_echo_n "(cached) " >&6
6493 lt_cv_nm_interface="BSD nm"
6494 echo "int some_variable = 0;" > conftest.$ac_ext
6495 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6496 (eval "$ac_compile" 2>conftest.err)
6497 cat conftest.err >&5
6498 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6499 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6500 cat conftest.err >&5
6501 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6502 cat conftest.out >&5
6503 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6504 lt_cv_nm_interface="MS dumpbin"
6508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6509 $as_echo "$lt_cv_nm_interface" >&6; }
6511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6512 $as_echo_n "checking whether ln -s works... " >&6; }
6514 if test "$LN_S" = "ln -s"; then
6515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6516 $as_echo "yes" >&6; }
6518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6519 $as_echo "no, using $LN_S" >&6; }
6522 # find the maximum length of command line arguments
6523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6524 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6525 if ${lt_cv_sys_max_cmd_len+:} false; then :
6526 $as_echo_n "(cached) " >&6
6533 # On DJGPP, this test can blow up pretty badly due to problems in libc
6534 # (any single argument exceeding 2000 bytes causes a buffer overrun
6535 # during glob expansion). Even if it were fixed, the result of this
6536 # check would be larger than it should be.
6537 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6541 # Under GNU Hurd, this test is not required because there is
6542 # no limit to the length of command line arguments.
6543 # Libtool will interpret -1 as no limit whatsoever
6544 lt_cv_sys_max_cmd_len=-1;
6547 cygwin* | mingw* | cegcc*)
6548 # On Win9x/ME, this test blows up -- it succeeds, but takes
6549 # about 5 minutes as the teststring grows exponentially.
6550 # Worse, since 9x/ME are not pre-emptively multitasking,
6551 # you end up with a "frozen" computer, even though with patience
6552 # the test eventually succeeds (with a max line length of 256k).
6553 # Instead, let's just punt: use the minimum linelength reported by
6554 # all of the supported platforms: 8192 (on NT/2K/XP).
6555 lt_cv_sys_max_cmd_len=8192;
6559 # On MiNT this can take a long time and run out of memory.
6560 lt_cv_sys_max_cmd_len=8192;
6564 # On AmigaOS with pdksh, this test takes hours, literally.
6565 # So we just punt and use a minimum line length of 8192.
6566 lt_cv_sys_max_cmd_len=8192;
6569 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6570 # This has been around since 386BSD, at least. Likely further.
6571 if test -x /sbin/sysctl; then
6572 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6573 elif test -x /usr/sbin/sysctl; then
6574 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6576 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6578 # And add a safety zone
6579 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6580 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6584 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6585 lt_cv_sys_max_cmd_len=196608
6589 # The test takes a long time on OS/2.
6590 lt_cv_sys_max_cmd_len=8192
6594 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6595 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6596 # nice to cause kernel panics so lets avoid the loop below.
6597 # First set a reasonable default.
6598 lt_cv_sys_max_cmd_len=16384
6600 if test -x /sbin/sysconfig; then
6601 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6602 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6607 lt_cv_sys_max_cmd_len=102400
6609 sysv5* | sco5v6* | sysv4.2uw2*)
6610 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6611 if test -n "$kargmax"; then
6612 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6614 lt_cv_sys_max_cmd_len=32768
6618 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6619 if test -n "$lt_cv_sys_max_cmd_len" && \
6620 test undefined != "$lt_cv_sys_max_cmd_len"; then
6621 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6622 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6624 # Make teststring a little bigger before we do anything with it.
6625 # a 1K string should be a reasonable start.
6626 for i in 1 2 3 4 5 6 7 8 ; do
6627 teststring=$teststring$teststring
6629 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6630 # If test is not a shell built-in, we'll probably end up computing a
6631 # maximum length that is only half of the actual maximum length, but
6633 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
6634 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6635 test $i != 17 # 1/2 MB should be enough
6638 teststring=$teststring$teststring
6640 # Only check the string length outside the loop.
6641 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6643 # Add a significant safety factor because C++ compilers can tack on
6644 # massive amounts of additional arguments before passing them to the
6645 # linker. It appears as though 1/2 is a usable value.
6646 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6653 if test -n $lt_cv_sys_max_cmd_len ; then
6654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6655 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6658 $as_echo "none" >&6; }
6660 max_cmd_len=$lt_cv_sys_max_cmd_len
6671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6672 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6673 # Try some XSI features
6676 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
6678 && eval 'test $(( 1 + 1 )) -eq 2 \
6679 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6682 $as_echo "$xsi_shell" >&6; }
6685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6686 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6688 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6690 && lt_shell_append=yes
6691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6692 $as_echo "$lt_shell_append" >&6; }
6695 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6705 # test EBCDIC or ASCII
6706 case `echo X|tr X '\101'` in
6707 A) # ASCII based system
6708 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6709 lt_SP2NL='tr \040 \012'
6710 lt_NL2SP='tr \015\012 \040\040'
6712 *) # EBCDIC based system
6713 lt_SP2NL='tr \100 \n'
6714 lt_NL2SP='tr \r\n \100\100'
6726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6727 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6728 if ${lt_cv_to_host_file_cmd+:} false; then :
6729 $as_echo_n "(cached) " >&6
6734 *-*-mingw* ) # actually msys
6735 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6738 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6740 * ) # otherwise, assume *nix
6741 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6747 *-*-mingw* ) # actually msys
6748 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6751 lt_cv_to_host_file_cmd=func_convert_file_noop
6753 * ) # otherwise, assume *nix
6754 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6758 * ) # unhandled hosts (and "normal" native builds)
6759 lt_cv_to_host_file_cmd=func_convert_file_noop
6765 to_host_file_cmd=$lt_cv_to_host_file_cmd
6766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6767 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
6773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6774 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6775 if ${lt_cv_to_tool_file_cmd+:} false; then :
6776 $as_echo_n "(cached) " >&6
6778 #assume ordinary cross tools, or native build.
6779 lt_cv_to_tool_file_cmd=func_convert_file_noop
6783 *-*-mingw* ) # actually msys
6784 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6792 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6794 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6801 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6802 if ${lt_cv_ld_reload_flag+:} false; then :
6803 $as_echo_n "(cached) " >&6
6805 lt_cv_ld_reload_flag='-r'
6807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6808 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6809 reload_flag=$lt_cv_ld_reload_flag
6810 case $reload_flag in
6812 *) reload_flag=" $reload_flag" ;;
6814 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6816 cygwin* | mingw* | pw32* | cegcc*)
6817 if test "$GCC" != yes; then
6822 if test "$GCC" = yes; then
6823 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6825 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6838 if test -n "$ac_tool_prefix"; then
6839 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6840 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6842 $as_echo_n "checking for $ac_word... " >&6; }
6843 if ${ac_cv_prog_OBJDUMP+:} false; then :
6844 $as_echo_n "(cached) " >&6
6846 if test -n "$OBJDUMP"; then
6847 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6853 test -z "$as_dir" && as_dir=.
6854 for ac_exec_ext in '' $ac_executable_extensions; do
6855 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6856 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6857 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6866 OBJDUMP=$ac_cv_prog_OBJDUMP
6867 if test -n "$OBJDUMP"; then
6868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6869 $as_echo "$OBJDUMP" >&6; }
6871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6872 $as_echo "no" >&6; }
6877 if test -z "$ac_cv_prog_OBJDUMP"; then
6878 ac_ct_OBJDUMP=$OBJDUMP
6879 # Extract the first word of "objdump", so it can be a program name with args.
6880 set dummy objdump; ac_word=$2
6881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6882 $as_echo_n "checking for $ac_word... " >&6; }
6883 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6884 $as_echo_n "(cached) " >&6
6886 if test -n "$ac_ct_OBJDUMP"; then
6887 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6893 test -z "$as_dir" && as_dir=.
6894 for ac_exec_ext in '' $ac_executable_extensions; do
6895 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6896 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6897 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6906 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6907 if test -n "$ac_ct_OBJDUMP"; then
6908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6909 $as_echo "$ac_ct_OBJDUMP" >&6; }
6911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6912 $as_echo "no" >&6; }
6915 if test "x$ac_ct_OBJDUMP" = x; then
6918 case $cross_compiling:$ac_tool_warned in
6920 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6921 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6922 ac_tool_warned=yes ;;
6924 OBJDUMP=$ac_ct_OBJDUMP
6927 OBJDUMP="$ac_cv_prog_OBJDUMP"
6930 test -z "$OBJDUMP" && OBJDUMP=objdump
6940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6941 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6942 if ${lt_cv_deplibs_check_method+:} false; then :
6943 $as_echo_n "(cached) " >&6
6945 lt_cv_file_magic_cmd='$MAGIC_CMD'
6946 lt_cv_file_magic_test_file=
6947 lt_cv_deplibs_check_method='unknown'
6948 # Need to set the preceding variable on all platforms that support
6949 # interlibrary dependencies.
6950 # 'none' -- dependencies not supported.
6951 # `unknown' -- same as none, but documents that we really don't know.
6952 # 'pass_all' -- all dependencies passed with no checks.
6953 # 'test_compile' -- check by making test program.
6954 # 'file_magic [[regex]]' -- check by looking for files in library path
6955 # which responds to the $file_magic_cmd with a given extended regex.
6956 # If you have `file' or equivalent on your system and you're not sure
6957 # whether `pass_all' will *always* work, you probably want this one.
6961 lt_cv_deplibs_check_method=pass_all
6965 lt_cv_deplibs_check_method=pass_all
6969 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6970 lt_cv_file_magic_cmd='/usr/bin/file -L'
6971 lt_cv_file_magic_test_file=/shlib/libc.so
6975 # func_win32_libid is a shell function defined in ltmain.sh
6976 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6977 lt_cv_file_magic_cmd='func_win32_libid'
6981 # Base MSYS/MinGW do not provide the 'file' command needed by
6982 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6983 # unless we find 'file', for example because we are cross-compiling.
6984 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6985 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6986 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6987 lt_cv_file_magic_cmd='func_win32_libid'
6989 # Keep this pattern in sync with the one in func_win32_libid.
6990 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6991 lt_cv_file_magic_cmd='$OBJDUMP -f'
6996 # use the weaker test based on 'objdump'. See mingw*.
6997 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6998 lt_cv_file_magic_cmd='$OBJDUMP -f'
7001 darwin* | rhapsody*)
7002 lt_cv_deplibs_check_method=pass_all
7005 freebsd* | dragonfly*)
7006 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7009 # Not sure whether the presence of OpenBSD here was a mistake.
7010 # Let's accept both of them until this is cleared up.
7011 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7012 lt_cv_file_magic_cmd=/usr/bin/file
7013 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7017 lt_cv_deplibs_check_method=pass_all
7022 lt_cv_deplibs_check_method=pass_all
7025 hpux10.20* | hpux11*)
7026 lt_cv_file_magic_cmd=/usr/bin/file
7029 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7030 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7033 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]'
7034 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7037 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7038 lt_cv_file_magic_test_file=/usr/lib/libc.sl
7044 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7045 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7048 irix5* | irix6* | nonstopux*)
7050 *-32|*"-32 ") libmagic=32-bit;;
7051 *-n32|*"-n32 ") libmagic=N32;;
7052 *-64|*"-64 ") libmagic=64-bit;;
7053 *) libmagic=never-match;;
7055 lt_cv_deplibs_check_method=pass_all
7058 # This must be glibc/ELF.
7059 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
7060 lt_cv_deplibs_check_method=pass_all
7063 netbsd* | netbsdelf*-gnu)
7064 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7065 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7067 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7072 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7073 lt_cv_file_magic_cmd=/usr/bin/file
7074 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7078 lt_cv_deplibs_check_method=pass_all
7082 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7083 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7085 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7089 osf3* | osf4* | osf5*)
7090 lt_cv_deplibs_check_method=pass_all
7094 lt_cv_deplibs_check_method=pass_all
7098 lt_cv_deplibs_check_method=pass_all
7101 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7102 lt_cv_deplibs_check_method=pass_all
7106 case $host_vendor in
7108 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]'
7109 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7112 lt_cv_deplibs_check_method=pass_all
7115 lt_cv_file_magic_cmd='/bin/file'
7116 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7119 lt_cv_file_magic_cmd='/bin/file'
7120 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7121 lt_cv_file_magic_test_file=/lib/libc.so
7124 lt_cv_deplibs_check_method=pass_all
7127 lt_cv_deplibs_check_method=pass_all
7133 lt_cv_deplibs_check_method=pass_all
7138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7139 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7143 if test "$build" = "$host"; then
7146 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
7149 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
7155 file_magic_cmd=$lt_cv_file_magic_cmd
7156 deplibs_check_method=$lt_cv_deplibs_check_method
7157 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7180 if test -n "$ac_tool_prefix"; then
7181 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7182 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7184 $as_echo_n "checking for $ac_word... " >&6; }
7185 if ${ac_cv_prog_DLLTOOL+:} false; then :
7186 $as_echo_n "(cached) " >&6
7188 if test -n "$DLLTOOL"; then
7189 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7195 test -z "$as_dir" && as_dir=.
7196 for ac_exec_ext in '' $ac_executable_extensions; do
7197 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7198 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7199 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7208 DLLTOOL=$ac_cv_prog_DLLTOOL
7209 if test -n "$DLLTOOL"; then
7210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7211 $as_echo "$DLLTOOL" >&6; }
7213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7214 $as_echo "no" >&6; }
7219 if test -z "$ac_cv_prog_DLLTOOL"; then
7220 ac_ct_DLLTOOL=$DLLTOOL
7221 # Extract the first word of "dlltool", so it can be a program name with args.
7222 set dummy dlltool; ac_word=$2
7223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7224 $as_echo_n "checking for $ac_word... " >&6; }
7225 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7226 $as_echo_n "(cached) " >&6
7228 if test -n "$ac_ct_DLLTOOL"; then
7229 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7235 test -z "$as_dir" && as_dir=.
7236 for ac_exec_ext in '' $ac_executable_extensions; do
7237 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7238 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7239 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7248 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7249 if test -n "$ac_ct_DLLTOOL"; then
7250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7251 $as_echo "$ac_ct_DLLTOOL" >&6; }
7253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7254 $as_echo "no" >&6; }
7257 if test "x$ac_ct_DLLTOOL" = x; then
7260 case $cross_compiling:$ac_tool_warned in
7262 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7263 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7264 ac_tool_warned=yes ;;
7266 DLLTOOL=$ac_ct_DLLTOOL
7269 DLLTOOL="$ac_cv_prog_DLLTOOL"
7272 test -z "$DLLTOOL" && DLLTOOL=dlltool
7283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
7284 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
7285 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
7286 $as_echo_n "(cached) " >&6
7288 lt_cv_sharedlib_from_linklib_cmd='unknown'
7291 cygwin* | mingw* | pw32* | cegcc*)
7292 # two different shell functions defined in ltmain.sh
7293 # decide which to use based on capabilities of $DLLTOOL
7294 case `$DLLTOOL --help 2>&1` in
7295 *--identify-strict*)
7296 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
7299 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
7304 # fallback: assume linklib IS sharedlib
7305 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
7310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7311 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7312 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7313 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7321 if test -n "$ac_tool_prefix"; then
7324 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7325 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7327 $as_echo_n "checking for $ac_word... " >&6; }
7328 if ${ac_cv_prog_AR+:} false; then :
7329 $as_echo_n "(cached) " >&6
7331 if test -n "$AR"; then
7332 ac_cv_prog_AR="$AR" # Let the user override the test.
7334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7338 test -z "$as_dir" && as_dir=.
7339 for ac_exec_ext in '' $ac_executable_extensions; do
7340 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7341 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7342 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7352 if test -n "$AR"; then
7353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7354 $as_echo "$AR" >&6; }
7356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7357 $as_echo "no" >&6; }
7361 test -n "$AR" && break
7364 if test -z "$AR"; then
7368 # Extract the first word of "$ac_prog", so it can be a program name with args.
7369 set dummy $ac_prog; ac_word=$2
7370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7371 $as_echo_n "checking for $ac_word... " >&6; }
7372 if ${ac_cv_prog_ac_ct_AR+:} false; then :
7373 $as_echo_n "(cached) " >&6
7375 if test -n "$ac_ct_AR"; then
7376 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7382 test -z "$as_dir" && as_dir=.
7383 for ac_exec_ext in '' $ac_executable_extensions; do
7384 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7385 ac_cv_prog_ac_ct_AR="$ac_prog"
7386 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7395 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7396 if test -n "$ac_ct_AR"; then
7397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7398 $as_echo "$ac_ct_AR" >&6; }
7400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7401 $as_echo "no" >&6; }
7405 test -n "$ac_ct_AR" && break
7408 if test "x$ac_ct_AR" = x; then
7411 case $cross_compiling:$ac_tool_warned in
7413 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7414 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7415 ac_tool_warned=yes ;;
7434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7435 $as_echo_n "checking for archiver @FILE support... " >&6; }
7436 if ${lt_cv_ar_at_file+:} false; then :
7437 $as_echo_n "(cached) " >&6
7440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7441 /* end confdefs.h. */
7451 if ac_fn_c_try_compile "$LINENO"; then :
7452 echo conftest.$ac_objext > conftest.lst
7453 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7454 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7455 (eval $lt_ar_try) 2>&5
7457 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7458 test $ac_status = 0; }
7459 if test "$ac_status" -eq 0; then
7460 # Ensure the archiver fails upon bogus file names.
7461 rm -f conftest.$ac_objext libconftest.a
7462 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7463 (eval $lt_ar_try) 2>&5
7465 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7466 test $ac_status = 0; }
7467 if test "$ac_status" -ne 0; then
7471 rm -f conftest.* libconftest.a
7474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7478 $as_echo "$lt_cv_ar_at_file" >&6; }
7480 if test "x$lt_cv_ar_at_file" = xno; then
7483 archiver_list_spec=$lt_cv_ar_at_file
7492 if test -n "$ac_tool_prefix"; then
7493 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7494 set dummy ${ac_tool_prefix}strip; ac_word=$2
7495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7496 $as_echo_n "checking for $ac_word... " >&6; }
7497 if ${ac_cv_prog_STRIP+:} false; then :
7498 $as_echo_n "(cached) " >&6
7500 if test -n "$STRIP"; then
7501 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7507 test -z "$as_dir" && as_dir=.
7508 for ac_exec_ext in '' $ac_executable_extensions; do
7509 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7510 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7511 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7520 STRIP=$ac_cv_prog_STRIP
7521 if test -n "$STRIP"; then
7522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7523 $as_echo "$STRIP" >&6; }
7525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7526 $as_echo "no" >&6; }
7531 if test -z "$ac_cv_prog_STRIP"; then
7533 # Extract the first word of "strip", so it can be a program name with args.
7534 set dummy strip; ac_word=$2
7535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7536 $as_echo_n "checking for $ac_word... " >&6; }
7537 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7538 $as_echo_n "(cached) " >&6
7540 if test -n "$ac_ct_STRIP"; then
7541 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7547 test -z "$as_dir" && as_dir=.
7548 for ac_exec_ext in '' $ac_executable_extensions; do
7549 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7550 ac_cv_prog_ac_ct_STRIP="strip"
7551 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7560 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7561 if test -n "$ac_ct_STRIP"; then
7562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7563 $as_echo "$ac_ct_STRIP" >&6; }
7565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7566 $as_echo "no" >&6; }
7569 if test "x$ac_ct_STRIP" = x; then
7572 case $cross_compiling:$ac_tool_warned in
7574 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7575 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7576 ac_tool_warned=yes ;;
7581 STRIP="$ac_cv_prog_STRIP"
7584 test -z "$STRIP" && STRIP=:
7591 if test -n "$ac_tool_prefix"; then
7592 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7593 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7595 $as_echo_n "checking for $ac_word... " >&6; }
7596 if ${ac_cv_prog_RANLIB+:} false; then :
7597 $as_echo_n "(cached) " >&6
7599 if test -n "$RANLIB"; then
7600 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7606 test -z "$as_dir" && as_dir=.
7607 for ac_exec_ext in '' $ac_executable_extensions; do
7608 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7609 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7610 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7619 RANLIB=$ac_cv_prog_RANLIB
7620 if test -n "$RANLIB"; then
7621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7622 $as_echo "$RANLIB" >&6; }
7624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7625 $as_echo "no" >&6; }
7630 if test -z "$ac_cv_prog_RANLIB"; then
7631 ac_ct_RANLIB=$RANLIB
7632 # Extract the first word of "ranlib", so it can be a program name with args.
7633 set dummy ranlib; ac_word=$2
7634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7635 $as_echo_n "checking for $ac_word... " >&6; }
7636 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7637 $as_echo_n "(cached) " >&6
7639 if test -n "$ac_ct_RANLIB"; then
7640 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7646 test -z "$as_dir" && as_dir=.
7647 for ac_exec_ext in '' $ac_executable_extensions; do
7648 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7649 ac_cv_prog_ac_ct_RANLIB="ranlib"
7650 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7659 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7660 if test -n "$ac_ct_RANLIB"; then
7661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7662 $as_echo "$ac_ct_RANLIB" >&6; }
7664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7665 $as_echo "no" >&6; }
7668 if test "x$ac_ct_RANLIB" = x; then
7671 case $cross_compiling:$ac_tool_warned in
7673 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7674 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7675 ac_tool_warned=yes ;;
7677 RANLIB=$ac_ct_RANLIB
7680 RANLIB="$ac_cv_prog_RANLIB"
7683 test -z "$RANLIB" && RANLIB=:
7690 # Determine commands to create old-style static archives.
7691 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7692 old_postinstall_cmds='chmod 644 $oldlib'
7693 old_postuninstall_cmds=
7695 if test -n "$RANLIB"; then
7698 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7701 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7704 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7709 lock_old_archive_extraction=yes ;;
7711 lock_old_archive_extraction=no ;;
7752 # If no C compiler was specified, use CC.
7755 # If no C compiler flags were specified, use CFLAGS.
7756 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7758 # Allow CC to be a program name with arguments.
7762 # Check for command to grab the raw symbol name followed by C symbol from nm.
7763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7764 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7765 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7766 $as_echo_n "(cached) " >&6
7769 # These are sane defaults that work on at least a few old systems.
7770 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7772 # Character class describing NM global symbol codes.
7773 symcode='[BCDEGRST]'
7775 # Regexp to match symbols that can be accessed directly from C.
7776 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7778 # Define system-specific variables.
7783 cygwin* | mingw* | pw32* | cegcc*)
7784 symcode='[ABCDGISTW]'
7787 if test "$host_cpu" = ia64; then
7788 symcode='[ABCDEGRST]'
7792 symcode='[BCDEGRST]'
7795 symcode='[BCDEGQRST]'
7806 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7814 # If we're using GNU nm, then use its standard symbol codes.
7815 case `$NM -V 2>&1` in
7816 *GNU* | *'with BFD'*)
7817 symcode='[ABCDGIRSTW]' ;;
7820 # Transform an extracted symbol line into a proper C declaration.
7821 # Some systems (esp. on ia64) link data and code symbols differently,
7822 # so use this general approach.
7823 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7825 # Transform an extracted symbol line into symbol name and symbol address
7826 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7827 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'"
7829 # Handle CRLF in mingw tool chain
7833 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7837 # Try without a prefix underscore, then with it.
7838 for ac_symprfx in "" "_"; do
7840 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7841 symxfrm="\\1 $ac_symprfx\\2 \\2"
7843 # Write the raw and C identifiers.
7844 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7845 # Fake it for dumpbin and say T for any non-static function
7846 # and D for any global variable.
7847 # Also find C++ and __fastcall symbols from MSVC++,
7848 # which start with @ or ?.
7849 lt_cv_sys_global_symbol_pipe="$AWK '"\
7850 " {last_section=section; section=\$ 3};"\
7851 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7852 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7853 " \$ 0!~/External *\|/{next};"\
7854 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7855 " {if(hide[section]) next};"\
7856 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7857 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7858 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7859 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7860 " ' prfx=^$ac_symprfx"
7862 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7864 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7866 # Check to see that the pipe works correctly.
7870 cat > conftest.$ac_ext <<_LT_EOF
7875 void nm_test_func(void);
7876 void nm_test_func(void){}
7880 int main(){nm_test_var='a';nm_test_func();return(0);}
7883 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7884 (eval $ac_compile) 2>&5
7886 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7887 test $ac_status = 0; }; then
7888 # Now try to grab the symbols.
7890 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7891 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7893 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7894 test $ac_status = 0; } && test -s "$nlist"; then
7895 # Try sorting and uniquifying the output.
7896 if sort "$nlist" | uniq > "$nlist"T; then
7897 mv -f "$nlist"T "$nlist"
7902 # Make sure that we snagged all the symbols we need.
7903 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7904 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7905 cat <<_LT_EOF > conftest.$ac_ext
7906 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7907 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
7908 /* DATA imports from DLLs on WIN32 con't be const, because runtime
7909 relocations are performed -- see ld's documentation on pseudo-relocs. */
7910 # define LT_DLSYM_CONST
7911 #elif defined(__osf__)
7912 /* This system does not cope well with relocations in const data. */
7913 # define LT_DLSYM_CONST
7915 # define LT_DLSYM_CONST const
7923 # Now generate the symbol file.
7924 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7926 cat <<_LT_EOF >> conftest.$ac_ext
7928 /* The mapping between symbol names and symbols. */
7929 LT_DLSYM_CONST struct {
7933 lt__PROGRAM__LTX_preloaded_symbols[] =
7935 { "@PROGRAM@", (void *) 0 },
7937 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7938 cat <<\_LT_EOF >> conftest.$ac_ext
7942 /* This works around a problem in FreeBSD linker */
7943 #ifdef FREEBSD_WORKAROUND
7944 static const void *lt_preloaded_setup() {
7945 return lt__PROGRAM__LTX_preloaded_symbols;
7953 # Now try linking the two files.
7954 mv conftest.$ac_objext conftstm.$ac_objext
7955 lt_globsym_save_LIBS=$LIBS
7956 lt_globsym_save_CFLAGS=$CFLAGS
7957 LIBS="conftstm.$ac_objext"
7958 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7959 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7960 (eval $ac_link) 2>&5
7962 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7963 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7966 LIBS=$lt_globsym_save_LIBS
7967 CFLAGS=$lt_globsym_save_CFLAGS
7969 echo "cannot find nm_test_func in $nlist" >&5
7972 echo "cannot find nm_test_var in $nlist" >&5
7975 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7978 echo "$progname: failed program was:" >&5
7979 cat conftest.$ac_ext >&5
7981 rm -rf conftest* conftst*
7983 # Do not use the global_symbol_pipe unless it works.
7984 if test "$pipe_works" = yes; then
7987 lt_cv_sys_global_symbol_pipe=
7993 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7994 lt_cv_sys_global_symbol_to_cdecl=
7996 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7998 $as_echo "failed" >&6; }
8000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8001 $as_echo "ok" >&6; }
8004 # Response file support.
8005 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8006 nm_file_list_spec='@'
8007 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
8008 nm_file_list_spec='@'
8037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
8038 $as_echo_n "checking for sysroot... " >&6; }
8040 # Check whether --with-sysroot was given.
8041 if test "${with_sysroot+set}" = set; then :
8042 withval=$with_sysroot;
8049 case ${with_sysroot} in #(
8051 if test "$GCC" = yes; then
8052 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
8056 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
8061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
8062 $as_echo "${with_sysroot}" >&6; }
8063 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
8067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
8068 $as_echo "${lt_sysroot:-no}" >&6; }
8074 # Check whether --enable-libtool-lock was given.
8075 if test "${enable_libtool_lock+set}" = set; then :
8076 enableval=$enable_libtool_lock;
8079 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8081 # Some flags need to be propagated to the compiler or linker for good
8085 # Find out which ABI we are using.
8086 echo 'int i;' > conftest.$ac_ext
8087 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8088 (eval $ac_compile) 2>&5
8090 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8091 test $ac_status = 0; }; then
8092 case `/usr/bin/file conftest.$ac_objext` in
8104 # Find out which ABI we are using.
8105 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8106 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8107 (eval $ac_compile) 2>&5
8109 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8110 test $ac_status = 0; }; then
8111 if test "$lt_cv_prog_gnu_ld" = yes; then
8112 case `/usr/bin/file conftest.$ac_objext` in
8114 LD="${LD-ld} -melf32bsmip"
8117 LD="${LD-ld} -melf32bmipn32"
8120 LD="${LD-ld} -melf64bmip"
8124 case `/usr/bin/file conftest.$ac_objext` in
8140 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
8141 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8142 # Find out which ABI we are using.
8143 echo 'int i;' > conftest.$ac_ext
8144 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8145 (eval $ac_compile) 2>&5
8147 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8148 test $ac_status = 0; }; then
8149 case `/usr/bin/file conftest.o` in
8152 x86_64-*kfreebsd*-gnu)
8153 LD="${LD-ld} -m elf_i386_fbsd"
8156 case `/usr/bin/file conftest.o` in
8158 LD="${LD-ld} -m elf32_x86_64"
8161 LD="${LD-ld} -m elf_i386"
8166 LD="${LD-ld} -m elf32lppclinux"
8169 LD="${LD-ld} -m elf32ppclinux"
8172 LD="${LD-ld} -m elf_s390"
8175 LD="${LD-ld} -m elf32_sparc"
8181 x86_64-*kfreebsd*-gnu)
8182 LD="${LD-ld} -m elf_x86_64_fbsd"
8185 LD="${LD-ld} -m elf_x86_64"
8188 LD="${LD-ld} -m elf64lppc"
8191 LD="${LD-ld} -m elf64ppc"
8193 s390*-*linux*|s390*-*tpf*)
8194 LD="${LD-ld} -m elf64_s390"
8197 LD="${LD-ld} -m elf64_sparc"
8207 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8208 SAVE_CFLAGS="$CFLAGS"
8209 CFLAGS="$CFLAGS -belf"
8210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8211 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8212 if ${lt_cv_cc_needs_belf+:} false; then :
8213 $as_echo_n "(cached) " >&6
8216 ac_cpp='$CPP $CPPFLAGS'
8217 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8218 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8219 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8222 /* end confdefs.h. */
8232 if ac_fn_c_try_link "$LINENO"; then :
8233 lt_cv_cc_needs_belf=yes
8235 lt_cv_cc_needs_belf=no
8237 rm -f core conftest.err conftest.$ac_objext \
8238 conftest$ac_exeext conftest.$ac_ext
8240 ac_cpp='$CPP $CPPFLAGS'
8241 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8242 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8243 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8247 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8248 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8249 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8250 CFLAGS="$SAVE_CFLAGS"
8254 # Find out which ABI we are using.
8255 echo 'int i;' > conftest.$ac_ext
8256 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8257 (eval $ac_compile) 2>&5
8259 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8260 test $ac_status = 0; }; then
8261 case `/usr/bin/file conftest.o` in
8263 case $lt_cv_prog_gnu_ld in
8267 LD="${LD-ld} -m elf_x86_64"
8270 LD="${LD-ld} -m elf64_sparc"
8273 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
8274 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8279 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8291 need_locks="$enable_libtool_lock"
8293 if test -n "$ac_tool_prefix"; then
8294 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8295 set dummy ${ac_tool_prefix}mt; ac_word=$2
8296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8297 $as_echo_n "checking for $ac_word... " >&6; }
8298 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
8299 $as_echo_n "(cached) " >&6
8301 if test -n "$MANIFEST_TOOL"; then
8302 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8308 test -z "$as_dir" && as_dir=.
8309 for ac_exec_ext in '' $ac_executable_extensions; do
8310 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8311 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8312 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8321 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8322 if test -n "$MANIFEST_TOOL"; then
8323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8324 $as_echo "$MANIFEST_TOOL" >&6; }
8326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8327 $as_echo "no" >&6; }
8332 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8333 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8334 # Extract the first word of "mt", so it can be a program name with args.
8335 set dummy mt; ac_word=$2
8336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8337 $as_echo_n "checking for $ac_word... " >&6; }
8338 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
8339 $as_echo_n "(cached) " >&6
8341 if test -n "$ac_ct_MANIFEST_TOOL"; then
8342 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8348 test -z "$as_dir" && as_dir=.
8349 for ac_exec_ext in '' $ac_executable_extensions; do
8350 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8351 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8352 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8361 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8362 if test -n "$ac_ct_MANIFEST_TOOL"; then
8363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8364 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
8366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8367 $as_echo "no" >&6; }
8370 if test "x$ac_ct_MANIFEST_TOOL" = x; then
8373 case $cross_compiling:$ac_tool_warned in
8375 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8376 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8377 ac_tool_warned=yes ;;
8379 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8382 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8385 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8387 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8388 if ${lt_cv_path_mainfest_tool+:} false; then :
8389 $as_echo_n "(cached) " >&6
8391 lt_cv_path_mainfest_tool=no
8392 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8393 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8394 cat conftest.err >&5
8395 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8396 lt_cv_path_mainfest_tool=yes
8400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8401 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
8402 if test "x$lt_cv_path_mainfest_tool" != xyes; then
8412 rhapsody* | darwin*)
8413 if test -n "$ac_tool_prefix"; then
8414 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8415 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8417 $as_echo_n "checking for $ac_word... " >&6; }
8418 if ${ac_cv_prog_DSYMUTIL+:} false; then :
8419 $as_echo_n "(cached) " >&6
8421 if test -n "$DSYMUTIL"; then
8422 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8428 test -z "$as_dir" && as_dir=.
8429 for ac_exec_ext in '' $ac_executable_extensions; do
8430 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8431 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8432 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8441 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8442 if test -n "$DSYMUTIL"; then
8443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8444 $as_echo "$DSYMUTIL" >&6; }
8446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8447 $as_echo "no" >&6; }
8452 if test -z "$ac_cv_prog_DSYMUTIL"; then
8453 ac_ct_DSYMUTIL=$DSYMUTIL
8454 # Extract the first word of "dsymutil", so it can be a program name with args.
8455 set dummy dsymutil; ac_word=$2
8456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8457 $as_echo_n "checking for $ac_word... " >&6; }
8458 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8459 $as_echo_n "(cached) " >&6
8461 if test -n "$ac_ct_DSYMUTIL"; then
8462 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8468 test -z "$as_dir" && as_dir=.
8469 for ac_exec_ext in '' $ac_executable_extensions; do
8470 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8471 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8472 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8481 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8482 if test -n "$ac_ct_DSYMUTIL"; then
8483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8484 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8487 $as_echo "no" >&6; }
8490 if test "x$ac_ct_DSYMUTIL" = x; then
8493 case $cross_compiling:$ac_tool_warned in
8495 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8496 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8497 ac_tool_warned=yes ;;
8499 DSYMUTIL=$ac_ct_DSYMUTIL
8502 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8505 if test -n "$ac_tool_prefix"; then
8506 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8507 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8509 $as_echo_n "checking for $ac_word... " >&6; }
8510 if ${ac_cv_prog_NMEDIT+:} false; then :
8511 $as_echo_n "(cached) " >&6
8513 if test -n "$NMEDIT"; then
8514 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8520 test -z "$as_dir" && as_dir=.
8521 for ac_exec_ext in '' $ac_executable_extensions; do
8522 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8523 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8524 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8533 NMEDIT=$ac_cv_prog_NMEDIT
8534 if test -n "$NMEDIT"; then
8535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8536 $as_echo "$NMEDIT" >&6; }
8538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8539 $as_echo "no" >&6; }
8544 if test -z "$ac_cv_prog_NMEDIT"; then
8545 ac_ct_NMEDIT=$NMEDIT
8546 # Extract the first word of "nmedit", so it can be a program name with args.
8547 set dummy nmedit; ac_word=$2
8548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8549 $as_echo_n "checking for $ac_word... " >&6; }
8550 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8551 $as_echo_n "(cached) " >&6
8553 if test -n "$ac_ct_NMEDIT"; then
8554 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8560 test -z "$as_dir" && as_dir=.
8561 for ac_exec_ext in '' $ac_executable_extensions; do
8562 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8563 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8564 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8573 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8574 if test -n "$ac_ct_NMEDIT"; then
8575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8576 $as_echo "$ac_ct_NMEDIT" >&6; }
8578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8579 $as_echo "no" >&6; }
8582 if test "x$ac_ct_NMEDIT" = x; then
8585 case $cross_compiling:$ac_tool_warned in
8587 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8588 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8589 ac_tool_warned=yes ;;
8591 NMEDIT=$ac_ct_NMEDIT
8594 NMEDIT="$ac_cv_prog_NMEDIT"
8597 if test -n "$ac_tool_prefix"; then
8598 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8599 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8601 $as_echo_n "checking for $ac_word... " >&6; }
8602 if ${ac_cv_prog_LIPO+:} false; then :
8603 $as_echo_n "(cached) " >&6
8605 if test -n "$LIPO"; then
8606 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8612 test -z "$as_dir" && as_dir=.
8613 for ac_exec_ext in '' $ac_executable_extensions; do
8614 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8615 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8616 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8625 LIPO=$ac_cv_prog_LIPO
8626 if test -n "$LIPO"; then
8627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8628 $as_echo "$LIPO" >&6; }
8630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8631 $as_echo "no" >&6; }
8636 if test -z "$ac_cv_prog_LIPO"; then
8638 # Extract the first word of "lipo", so it can be a program name with args.
8639 set dummy lipo; ac_word=$2
8640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8641 $as_echo_n "checking for $ac_word... " >&6; }
8642 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8643 $as_echo_n "(cached) " >&6
8645 if test -n "$ac_ct_LIPO"; then
8646 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8652 test -z "$as_dir" && as_dir=.
8653 for ac_exec_ext in '' $ac_executable_extensions; do
8654 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8655 ac_cv_prog_ac_ct_LIPO="lipo"
8656 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8665 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8666 if test -n "$ac_ct_LIPO"; then
8667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8668 $as_echo "$ac_ct_LIPO" >&6; }
8670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8671 $as_echo "no" >&6; }
8674 if test "x$ac_ct_LIPO" = x; then
8677 case $cross_compiling:$ac_tool_warned in
8679 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8680 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8681 ac_tool_warned=yes ;;
8686 LIPO="$ac_cv_prog_LIPO"
8689 if test -n "$ac_tool_prefix"; then
8690 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8691 set dummy ${ac_tool_prefix}otool; ac_word=$2
8692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8693 $as_echo_n "checking for $ac_word... " >&6; }
8694 if ${ac_cv_prog_OTOOL+:} false; then :
8695 $as_echo_n "(cached) " >&6
8697 if test -n "$OTOOL"; then
8698 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8704 test -z "$as_dir" && as_dir=.
8705 for ac_exec_ext in '' $ac_executable_extensions; do
8706 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8707 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8708 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8717 OTOOL=$ac_cv_prog_OTOOL
8718 if test -n "$OTOOL"; then
8719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8720 $as_echo "$OTOOL" >&6; }
8722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8723 $as_echo "no" >&6; }
8728 if test -z "$ac_cv_prog_OTOOL"; then
8730 # Extract the first word of "otool", so it can be a program name with args.
8731 set dummy otool; ac_word=$2
8732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8733 $as_echo_n "checking for $ac_word... " >&6; }
8734 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8735 $as_echo_n "(cached) " >&6
8737 if test -n "$ac_ct_OTOOL"; then
8738 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8744 test -z "$as_dir" && as_dir=.
8745 for ac_exec_ext in '' $ac_executable_extensions; do
8746 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8747 ac_cv_prog_ac_ct_OTOOL="otool"
8748 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8757 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8758 if test -n "$ac_ct_OTOOL"; then
8759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8760 $as_echo "$ac_ct_OTOOL" >&6; }
8762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8763 $as_echo "no" >&6; }
8766 if test "x$ac_ct_OTOOL" = x; then
8769 case $cross_compiling:$ac_tool_warned in
8771 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8772 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8773 ac_tool_warned=yes ;;
8778 OTOOL="$ac_cv_prog_OTOOL"
8781 if test -n "$ac_tool_prefix"; then
8782 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8783 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8785 $as_echo_n "checking for $ac_word... " >&6; }
8786 if ${ac_cv_prog_OTOOL64+:} false; then :
8787 $as_echo_n "(cached) " >&6
8789 if test -n "$OTOOL64"; then
8790 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8796 test -z "$as_dir" && as_dir=.
8797 for ac_exec_ext in '' $ac_executable_extensions; do
8798 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8799 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8800 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8809 OTOOL64=$ac_cv_prog_OTOOL64
8810 if test -n "$OTOOL64"; then
8811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8812 $as_echo "$OTOOL64" >&6; }
8814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8815 $as_echo "no" >&6; }
8820 if test -z "$ac_cv_prog_OTOOL64"; then
8821 ac_ct_OTOOL64=$OTOOL64
8822 # Extract the first word of "otool64", so it can be a program name with args.
8823 set dummy otool64; ac_word=$2
8824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8825 $as_echo_n "checking for $ac_word... " >&6; }
8826 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8827 $as_echo_n "(cached) " >&6
8829 if test -n "$ac_ct_OTOOL64"; then
8830 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8836 test -z "$as_dir" && as_dir=.
8837 for ac_exec_ext in '' $ac_executable_extensions; do
8838 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8839 ac_cv_prog_ac_ct_OTOOL64="otool64"
8840 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8849 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8850 if test -n "$ac_ct_OTOOL64"; then
8851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8852 $as_echo "$ac_ct_OTOOL64" >&6; }
8854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8855 $as_echo "no" >&6; }
8858 if test "x$ac_ct_OTOOL64" = x; then
8861 case $cross_compiling:$ac_tool_warned in
8863 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8864 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8865 ac_tool_warned=yes ;;
8867 OTOOL64=$ac_ct_OTOOL64
8870 OTOOL64="$ac_cv_prog_OTOOL64"
8899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8900 $as_echo_n "checking for -single_module linker flag... " >&6; }
8901 if ${lt_cv_apple_cc_single_mod+:} false; then :
8902 $as_echo_n "(cached) " >&6
8904 lt_cv_apple_cc_single_mod=no
8905 if test -z "${LT_MULTI_MODULE}"; then
8906 # By default we will add the -single_module flag. You can override
8907 # by either setting the environment variable LT_MULTI_MODULE
8908 # non-empty at configure time, or by adding -multi_module to the
8910 rm -rf libconftest.dylib*
8911 echo "int foo(void){return 1;}" > conftest.c
8912 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8913 -dynamiclib -Wl,-single_module conftest.c" >&5
8914 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8915 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8917 # If there is a non-empty error log, and "single_module"
8918 # appears in it, assume the flag caused a linker warning
8919 if test -s conftest.err && $GREP single_module conftest.err; then
8920 cat conftest.err >&5
8921 # Otherwise, if the output was created with a 0 exit code from
8922 # the compiler, it worked.
8923 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
8924 lt_cv_apple_cc_single_mod=yes
8926 cat conftest.err >&5
8928 rm -rf libconftest.dylib*
8932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8933 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8936 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8937 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8938 $as_echo_n "(cached) " >&6
8940 lt_cv_ld_exported_symbols_list=no
8941 save_LDFLAGS=$LDFLAGS
8942 echo "_main" > conftest.sym
8943 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8945 /* end confdefs.h. */
8955 if ac_fn_c_try_link "$LINENO"; then :
8956 lt_cv_ld_exported_symbols_list=yes
8958 lt_cv_ld_exported_symbols_list=no
8960 rm -f core conftest.err conftest.$ac_objext \
8961 conftest$ac_exeext conftest.$ac_ext
8962 LDFLAGS="$save_LDFLAGS"
8965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8966 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8969 $as_echo_n "checking for -force_load linker flag... " >&6; }
8970 if ${lt_cv_ld_force_load+:} false; then :
8971 $as_echo_n "(cached) " >&6
8973 lt_cv_ld_force_load=no
8974 cat > conftest.c << _LT_EOF
8975 int forced_loaded() { return 2;}
8977 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8978 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8979 echo "$AR cru libconftest.a conftest.o" >&5
8980 $AR cru libconftest.a conftest.o 2>&5
8981 echo "$RANLIB libconftest.a" >&5
8982 $RANLIB libconftest.a 2>&5
8983 cat > conftest.c << _LT_EOF
8984 int main() { return 0;}
8986 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8987 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8989 if test -s conftest.err && $GREP force_load conftest.err; then
8990 cat conftest.err >&5
8991 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
8992 lt_cv_ld_force_load=yes
8994 cat conftest.err >&5
8996 rm -f conftest.err libconftest.a conftest conftest.c
8997 rm -rf conftest.dSYM
9000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9001 $as_echo "$lt_cv_ld_force_load" >&6; }
9003 rhapsody* | darwin1.[012])
9004 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
9006 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9007 darwin*) # darwin 5.x on
9008 # if running on 10.5 or later, the deployment target defaults
9009 # to the OS version, if on x86, and 10.4, the deployment
9010 # target defaults to 10.4. Don't you love it?
9011 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9012 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
9013 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9015 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9017 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9021 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
9022 _lt_dar_single_mod='$single_module'
9024 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
9025 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
9027 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
9029 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
9030 _lt_dsymutil='~$DSYMUTIL $lib || :'
9037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
9038 $as_echo_n "checking for ANSI C header files... " >&6; }
9039 if ${ac_cv_header_stdc+:} false; then :
9040 $as_echo_n "(cached) " >&6
9042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9043 /* end confdefs.h. */
9057 if ac_fn_c_try_compile "$LINENO"; then :
9058 ac_cv_header_stdc=yes
9060 ac_cv_header_stdc=no
9062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9064 if test $ac_cv_header_stdc = yes; then
9065 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9067 /* end confdefs.h. */
9071 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9072 $EGREP "memchr" >/dev/null 2>&1; then :
9075 ac_cv_header_stdc=no
9081 if test $ac_cv_header_stdc = yes; then
9082 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9084 /* end confdefs.h. */
9088 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9089 $EGREP "free" >/dev/null 2>&1; then :
9092 ac_cv_header_stdc=no
9098 if test $ac_cv_header_stdc = yes; then
9099 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9100 if test "$cross_compiling" = yes; then :
9103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9104 /* end confdefs.h. */
9107 #if ((' ' & 0x0FF) == 0x020)
9108 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9109 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9111 # define ISLOWER(c) \
9112 (('a' <= (c) && (c) <= 'i') \
9113 || ('j' <= (c) && (c) <= 'r') \
9114 || ('s' <= (c) && (c) <= 'z'))
9115 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9118 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9123 for (i = 0; i < 256; i++)
9124 if (XOR (islower (i), ISLOWER (i))
9125 || toupper (i) != TOUPPER (i))
9130 if ac_fn_c_try_run "$LINENO"; then :
9133 ac_cv_header_stdc=no
9135 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9136 conftest.$ac_objext conftest.beam conftest.$ac_ext
9141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
9142 $as_echo "$ac_cv_header_stdc" >&6; }
9143 if test $ac_cv_header_stdc = yes; then
9145 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
9149 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
9150 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
9151 inttypes.h stdint.h unistd.h
9153 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9154 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
9156 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9157 cat >>confdefs.h <<_ACEOF
9158 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9166 for ac_header in dlfcn.h
9168 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9170 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
9171 cat >>confdefs.h <<_ACEOF
9172 #define HAVE_DLFCN_H 1
9182 func_stripname_cnf ()
9185 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
9186 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
9188 } # func_stripname_cnf
9195 # Check whether --enable-shared was given.
9196 if test "${enable_shared+set}" = set; then :
9197 enableval=$enable_shared; p=${PACKAGE-default}
9199 yes) enable_shared=yes ;;
9200 no) enable_shared=no ;;
9203 # Look at the argument we got. We use all the common list separators.
9204 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9205 for pkg in $enableval; do
9207 if test "X$pkg" = "X$p"; then
9224 # Check whether --enable-static was given.
9225 if test "${enable_static+set}" = set; then :
9226 enableval=$enable_static; p=${PACKAGE-default}
9228 yes) enable_static=yes ;;
9229 no) enable_static=no ;;
9232 # Look at the argument we got. We use all the common list separators.
9233 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9234 for pkg in $enableval; do
9236 if test "X$pkg" = "X$p"; then
9265 # Check whether --with-pic was given.
9266 if test "${with_pic+set}" = set; then :
9267 withval=$with_pic; lt_p=${PACKAGE-default}
9269 yes|no) pic_mode=$withval ;;
9272 # Look at the argument we got. We use all the common list separators.
9273 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9274 for lt_pkg in $withval; do
9276 if test "X$lt_pkg" = "X$lt_p"; then
9288 test -z "$pic_mode" && pic_mode=default
9296 # Check whether --enable-fast-install was given.
9297 if test "${enable_fast_install+set}" = set; then :
9298 enableval=$enable_fast_install; p=${PACKAGE-default}
9300 yes) enable_fast_install=yes ;;
9301 no) enable_fast_install=no ;;
9303 enable_fast_install=no
9304 # Look at the argument we got. We use all the common list separators.
9305 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9306 for pkg in $enableval; do
9308 if test "X$pkg" = "X$p"; then
9309 enable_fast_install=yes
9316 enable_fast_install=yes
9329 # This can be used to rebuild libtool when needed
9330 LIBTOOL_DEPS="$ltmain"
9332 # Always use our own libtool.
9333 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9364 test -z "$LN_S" && LN_S="ln -s"
9379 if test -n "${ZSH_VERSION+set}" ; then
9380 setopt NO_GLOB_SUBST
9383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9384 $as_echo_n "checking for objdir... " >&6; }
9385 if ${lt_cv_objdir+:} false; then :
9386 $as_echo_n "(cached) " >&6
9388 rm -f .libs 2>/dev/null
9389 mkdir .libs 2>/dev/null
9390 if test -d .libs; then
9393 # MS-DOS does not allow filenames that begin with a dot.
9396 rmdir .libs 2>/dev/null
9398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9399 $as_echo "$lt_cv_objdir" >&6; }
9400 objdir=$lt_cv_objdir
9406 cat >>confdefs.h <<_ACEOF
9407 #define LT_OBJDIR "$lt_cv_objdir/"
9415 # AIX sometimes has problems with the GCC collect2 program. For some
9416 # reason, if we set the COLLECT_NAMES environment variable, the problems
9417 # vanish in a puff of smoke.
9418 if test "X${COLLECT_NAMES+set}" != Xset; then
9420 export COLLECT_NAMES
9427 can_build_shared=yes
9429 # All known linkers require a `.a' archive for static linking (except MSVC,
9430 # which needs '.lib').
9433 with_gnu_ld="$lt_cv_prog_gnu_ld"
9436 old_CFLAGS="$CFLAGS"
9438 # Set sane defaults for various variables
9439 test -z "$CC" && CC=cc
9440 test -z "$LTCC" && LTCC=$CC
9441 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9442 test -z "$LD" && LD=ld
9443 test -z "$ac_objext" && ac_objext=o
9445 for cc_temp in $compiler""; do
9447 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9448 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9453 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9456 # Only perform the check for file, if the check method requires it
9457 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9458 case $deplibs_check_method in
9460 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9462 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9463 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9464 $as_echo_n "(cached) " >&6
9468 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9471 lt_save_MAGIC_CMD="$MAGIC_CMD"
9472 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9473 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9474 for ac_dir in $ac_dummy; do
9476 test -z "$ac_dir" && ac_dir=.
9477 if test -f $ac_dir/${ac_tool_prefix}file; then
9478 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9479 if test -n "$file_magic_test_file"; then
9480 case $deplibs_check_method in
9482 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9483 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9484 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9485 $EGREP "$file_magic_regex" > /dev/null; then
9490 *** Warning: the command libtool uses to detect shared libraries,
9491 *** $file_magic_cmd, produces output that libtool cannot recognize.
9492 *** The result is that libtool may fail to recognize shared libraries
9493 *** as such. This will affect the creation of libtool libraries that
9494 *** depend on shared libraries, but programs linked with such libtool
9495 *** libraries will work regardless of this problem. Nevertheless, you
9496 *** may want to report the problem to your system manager and/or to
9497 *** bug-libtool@gnu.org
9507 MAGIC_CMD="$lt_save_MAGIC_CMD"
9512 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9513 if test -n "$MAGIC_CMD"; then
9514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9515 $as_echo "$MAGIC_CMD" >&6; }
9517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9518 $as_echo "no" >&6; }
9525 if test -z "$lt_cv_path_MAGIC_CMD"; then
9526 if test -n "$ac_tool_prefix"; then
9527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9528 $as_echo_n "checking for file... " >&6; }
9529 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9530 $as_echo_n "(cached) " >&6
9534 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9537 lt_save_MAGIC_CMD="$MAGIC_CMD"
9538 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9539 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9540 for ac_dir in $ac_dummy; do
9542 test -z "$ac_dir" && ac_dir=.
9543 if test -f $ac_dir/file; then
9544 lt_cv_path_MAGIC_CMD="$ac_dir/file"
9545 if test -n "$file_magic_test_file"; then
9546 case $deplibs_check_method in
9548 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9549 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9550 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9551 $EGREP "$file_magic_regex" > /dev/null; then
9556 *** Warning: the command libtool uses to detect shared libraries,
9557 *** $file_magic_cmd, produces output that libtool cannot recognize.
9558 *** The result is that libtool may fail to recognize shared libraries
9559 *** as such. This will affect the creation of libtool libraries that
9560 *** depend on shared libraries, but programs linked with such libtool
9561 *** libraries will work regardless of this problem. Nevertheless, you
9562 *** may want to report the problem to your system manager and/or to
9563 *** bug-libtool@gnu.org
9573 MAGIC_CMD="$lt_save_MAGIC_CMD"
9578 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9579 if test -n "$MAGIC_CMD"; then
9580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9581 $as_echo "$MAGIC_CMD" >&6; }
9583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9584 $as_echo "no" >&6; }
9597 # Use C for the default configuration in the libtool script
9601 ac_cpp='$CPP $CPPFLAGS'
9602 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9603 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9604 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9607 # Source file extension for C test sources.
9610 # Object file extension for compiled C test sources.
9614 # Code to be used in simple compile tests
9615 lt_simple_compile_test_code="int some_variable = 0;"
9617 # Code to be used in simple link tests
9618 lt_simple_link_test_code='int main(){return(0);}'
9626 # If no C compiler was specified, use CC.
9629 # If no C compiler flags were specified, use CFLAGS.
9630 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9632 # Allow CC to be a program name with arguments.
9635 # Save the default compiler, since it gets overwritten when the other
9636 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9637 compiler_DEFAULT=$CC
9639 # save warnings/boilerplate of simple test code
9640 ac_outfile=conftest.$ac_objext
9641 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9642 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9643 _lt_compiler_boilerplate=`cat conftest.err`
9646 ac_outfile=conftest.$ac_objext
9647 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9648 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9649 _lt_linker_boilerplate=`cat conftest.err`
9654 ## There is no encapsulation within the following macros, do not change
9655 ## the running order or otherwise move them around unless you know exactly
9656 ## what you are doing...
9657 if test -n "$compiler"; then
9659 lt_prog_compiler_no_builtin_flag=
9661 if test "$GCC" = yes; then
9662 case $cc_basename in
9664 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9666 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9670 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9671 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9672 $as_echo_n "(cached) " >&6
9674 lt_cv_prog_compiler_rtti_exceptions=no
9675 ac_outfile=conftest.$ac_objext
9676 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9677 lt_compiler_flag="-fno-rtti -fno-exceptions"
9678 # Insert the option either (1) after the last *FLAGS variable, or
9679 # (2) before a word containing "conftest.", or (3) at the end.
9680 # Note that $ac_compile itself does not contain backslashes and begins
9681 # with a dollar sign (not a hyphen), so the echo should work correctly.
9682 # The option is referenced via a variable to avoid confusing sed.
9683 lt_compile=`echo "$ac_compile" | $SED \
9684 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9685 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9686 -e 's:$: $lt_compiler_flag:'`
9687 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9688 (eval "$lt_compile" 2>conftest.err)
9690 cat conftest.err >&5
9691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9692 if (exit $ac_status) && test -s "$ac_outfile"; then
9693 # The compiler can only warn and ignore the option if not recognized
9694 # So say no if there are warnings other than the usual output.
9695 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9696 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9697 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9698 lt_cv_prog_compiler_rtti_exceptions=yes
9704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9705 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9707 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9708 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9720 lt_prog_compiler_wl=
9721 lt_prog_compiler_pic=
9722 lt_prog_compiler_static=
9725 if test "$GCC" = yes; then
9726 lt_prog_compiler_wl='-Wl,'
9727 lt_prog_compiler_static='-static'
9731 # All AIX code is PIC.
9732 if test "$host_cpu" = ia64; then
9733 # AIX 5 now supports IA64 processor
9734 lt_prog_compiler_static='-Bstatic'
9741 # see comment about AmigaOS4 .so support
9742 lt_prog_compiler_pic='-fPIC'
9745 # FIXME: we need at least 68020 code to build shared libraries, but
9746 # adding the `-m68020' flag to GCC prevents building anything better,
9748 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9753 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9754 # PIC is the default for these OSes.
9757 mingw* | cygwin* | pw32* | os2* | cegcc*)
9758 # This hack is so that the source file can tell whether it is being
9759 # built for inclusion in a dll (and should export symbols for example).
9760 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9761 # (--disable-auto-import) libraries
9762 lt_prog_compiler_pic='-DDLL_EXPORT'
9765 darwin* | rhapsody*)
9766 # PIC is the default on this platform
9767 # Common symbols not allowed in MH_DYLIB files
9768 lt_prog_compiler_pic='-fno-common'
9772 # PIC is the default for Haiku.
9773 # The "-static" flag exists, but is broken.
9774 lt_prog_compiler_static=
9778 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9779 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9780 # sets the default TLS model and affects inlining.
9786 lt_prog_compiler_pic='-fPIC'
9792 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9793 # Instead, we relocate shared libraries at runtime.
9797 # Just because we use GCC doesn't mean we suddenly get shared libraries
9798 # on systems that don't support them.
9799 lt_prog_compiler_can_build_shared=no
9804 # QNX uses GNU C++, but need to define -shared option too, otherwise
9806 lt_prog_compiler_pic='-fPIC -shared'
9810 if test -d /usr/nec; then
9811 lt_prog_compiler_pic=-Kconform_pic
9816 lt_prog_compiler_pic='-fPIC'
9820 case $cc_basename in
9821 nvcc*) # Cuda Compiler Driver 2.2
9822 lt_prog_compiler_wl='-Xlinker '
9823 if test -n "$lt_prog_compiler_pic"; then
9824 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9829 # PORTME Check for flag to pass linker flags through the system compiler.
9832 lt_prog_compiler_wl='-Wl,'
9833 if test "$host_cpu" = ia64; then
9834 # AIX 5 now supports IA64 processor
9835 lt_prog_compiler_static='-Bstatic'
9837 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9841 mingw* | cygwin* | pw32* | os2* | cegcc*)
9842 # This hack is so that the source file can tell whether it is being
9843 # built for inclusion in a dll (and should export symbols for example).
9844 lt_prog_compiler_pic='-DDLL_EXPORT'
9847 hpux9* | hpux10* | hpux11*)
9848 lt_prog_compiler_wl='-Wl,'
9849 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9856 lt_prog_compiler_pic='+Z'
9859 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9860 lt_prog_compiler_static='${wl}-a ${wl}archive'
9863 irix5* | irix6* | nonstopux*)
9864 lt_prog_compiler_wl='-Wl,'
9865 # PIC (with -KPIC) is the default.
9866 lt_prog_compiler_static='-non_shared'
9869 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9870 case $cc_basename in
9871 # old Intel for x86_64 which still supported -KPIC.
9873 lt_prog_compiler_wl='-Wl,'
9874 lt_prog_compiler_pic='-KPIC'
9875 lt_prog_compiler_static='-static'
9877 # icc used to be incompatible with GCC.
9878 # ICC 10 doesn't accept -KPIC any more.
9880 lt_prog_compiler_wl='-Wl,'
9881 lt_prog_compiler_pic='-fPIC'
9882 lt_prog_compiler_static='-static'
9884 # Lahey Fortran 8.1.
9886 lt_prog_compiler_wl='-Wl,'
9887 lt_prog_compiler_pic='--shared'
9888 lt_prog_compiler_static='--static'
9891 # NAG Fortran compiler
9892 lt_prog_compiler_wl='-Wl,-Wl,,'
9893 lt_prog_compiler_pic='-PIC'
9894 lt_prog_compiler_static='-Bstatic'
9896 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9897 # Portland Group compilers (*not* the Pentium gcc compiler,
9898 # which looks to be a dead project)
9899 lt_prog_compiler_wl='-Wl,'
9900 lt_prog_compiler_pic='-fpic'
9901 lt_prog_compiler_static='-Bstatic'
9904 lt_prog_compiler_wl='-Wl,'
9905 # All Alpha code is PIC.
9906 lt_prog_compiler_static='-non_shared'
9908 xl* | bgxl* | bgf* | mpixl*)
9909 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9910 lt_prog_compiler_wl='-Wl,'
9911 lt_prog_compiler_pic='-qpic'
9912 lt_prog_compiler_static='-qstaticlink'
9915 case `$CC -V 2>&1 | sed 5q` in
9916 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9917 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9918 lt_prog_compiler_pic='-KPIC'
9919 lt_prog_compiler_static='-Bstatic'
9920 lt_prog_compiler_wl=''
9922 *Sun\ F* | *Sun*Fortran*)
9923 lt_prog_compiler_pic='-KPIC'
9924 lt_prog_compiler_static='-Bstatic'
9925 lt_prog_compiler_wl='-Qoption ld '
9929 lt_prog_compiler_pic='-KPIC'
9930 lt_prog_compiler_static='-Bstatic'
9931 lt_prog_compiler_wl='-Wl,'
9933 *Intel*\ [CF]*Compiler*)
9934 lt_prog_compiler_wl='-Wl,'
9935 lt_prog_compiler_pic='-fPIC'
9936 lt_prog_compiler_static='-static'
9939 lt_prog_compiler_wl='-Wl,'
9940 lt_prog_compiler_pic='-fpic'
9941 lt_prog_compiler_static='-Bstatic'
9949 lt_prog_compiler_pic='-KPIC'
9950 lt_prog_compiler_static='-Bstatic'
9954 # QNX uses GNU C++, but need to define -shared option too, otherwise
9956 lt_prog_compiler_pic='-fPIC -shared'
9959 osf3* | osf4* | osf5*)
9960 lt_prog_compiler_wl='-Wl,'
9961 # All OSF/1 code is PIC.
9962 lt_prog_compiler_static='-non_shared'
9966 lt_prog_compiler_static='-non_shared'
9970 lt_prog_compiler_pic='-KPIC'
9971 lt_prog_compiler_static='-Bstatic'
9972 case $cc_basename in
9973 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9974 lt_prog_compiler_wl='-Qoption ld ';;
9976 lt_prog_compiler_wl='-Wl,';;
9981 lt_prog_compiler_wl='-Qoption ld '
9982 lt_prog_compiler_pic='-PIC'
9983 lt_prog_compiler_static='-Bstatic'
9986 sysv4 | sysv4.2uw2* | sysv4.3*)
9987 lt_prog_compiler_wl='-Wl,'
9988 lt_prog_compiler_pic='-KPIC'
9989 lt_prog_compiler_static='-Bstatic'
9993 if test -d /usr/nec ;then
9994 lt_prog_compiler_pic='-Kconform_pic'
9995 lt_prog_compiler_static='-Bstatic'
9999 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10000 lt_prog_compiler_wl='-Wl,'
10001 lt_prog_compiler_pic='-KPIC'
10002 lt_prog_compiler_static='-Bstatic'
10006 lt_prog_compiler_wl='-Wl,'
10007 lt_prog_compiler_can_build_shared=no
10011 lt_prog_compiler_pic='-pic'
10012 lt_prog_compiler_static='-Bstatic'
10016 lt_prog_compiler_can_build_shared=no
10022 # For platforms which do not support PIC, -DPIC is meaningless:
10024 lt_prog_compiler_pic=
10027 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10032 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10033 if ${lt_cv_prog_compiler_pic+:} false; then :
10034 $as_echo_n "(cached) " >&6
10036 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
10038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10039 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
10040 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10043 # Check to make sure the PIC flag actually works.
10045 if test -n "$lt_prog_compiler_pic"; then
10046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10047 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10048 if ${lt_cv_prog_compiler_pic_works+:} false; then :
10049 $as_echo_n "(cached) " >&6
10051 lt_cv_prog_compiler_pic_works=no
10052 ac_outfile=conftest.$ac_objext
10053 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10054 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
10055 # Insert the option either (1) after the last *FLAGS variable, or
10056 # (2) before a word containing "conftest.", or (3) at the end.
10057 # Note that $ac_compile itself does not contain backslashes and begins
10058 # with a dollar sign (not a hyphen), so the echo should work correctly.
10059 # The option is referenced via a variable to avoid confusing sed.
10060 lt_compile=`echo "$ac_compile" | $SED \
10061 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10062 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10063 -e 's:$: $lt_compiler_flag:'`
10064 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10065 (eval "$lt_compile" 2>conftest.err)
10067 cat conftest.err >&5
10068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10069 if (exit $ac_status) && test -s "$ac_outfile"; then
10070 # The compiler can only warn and ignore the option if not recognized
10071 # So say no if there are warnings other than the usual output.
10072 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10073 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10074 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10075 lt_cv_prog_compiler_pic_works=yes
10081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10082 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10084 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
10085 case $lt_prog_compiler_pic in
10087 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10090 lt_prog_compiler_pic=
10091 lt_prog_compiler_can_build_shared=no
10107 # Check to make sure the static flag actually works.
10109 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10111 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10112 if ${lt_cv_prog_compiler_static_works+:} false; then :
10113 $as_echo_n "(cached) " >&6
10115 lt_cv_prog_compiler_static_works=no
10116 save_LDFLAGS="$LDFLAGS"
10117 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10118 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10119 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10120 # The linker can only warn and ignore the option if not recognized
10121 # So say no if there are warnings
10122 if test -s conftest.err; then
10123 # Append any errors to the config.log.
10124 cat conftest.err 1>&5
10125 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10126 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10127 if diff conftest.exp conftest.er2 >/dev/null; then
10128 lt_cv_prog_compiler_static_works=yes
10131 lt_cv_prog_compiler_static_works=yes
10135 LDFLAGS="$save_LDFLAGS"
10138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10139 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10141 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
10144 lt_prog_compiler_static=
10153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10154 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10155 if ${lt_cv_prog_compiler_c_o+:} false; then :
10156 $as_echo_n "(cached) " >&6
10158 lt_cv_prog_compiler_c_o=no
10159 $RM -r conftest 2>/dev/null
10163 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10165 lt_compiler_flag="-o out/conftest2.$ac_objext"
10166 # Insert the option either (1) after the last *FLAGS variable, or
10167 # (2) before a word containing "conftest.", or (3) at the end.
10168 # Note that $ac_compile itself does not contain backslashes and begins
10169 # with a dollar sign (not a hyphen), so the echo should work correctly.
10170 lt_compile=`echo "$ac_compile" | $SED \
10171 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10172 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10173 -e 's:$: $lt_compiler_flag:'`
10174 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10175 (eval "$lt_compile" 2>out/conftest.err)
10177 cat out/conftest.err >&5
10178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10179 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10181 # The compiler can only warn and ignore the option if not recognized
10182 # So say no if there are warnings
10183 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10184 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10185 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10186 lt_cv_prog_compiler_c_o=yes
10191 # SGI C++ compiler will create directory out/ii_files/ for
10192 # template instantiation
10193 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10194 $RM out/* && rmdir out
10200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10201 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10209 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10210 if ${lt_cv_prog_compiler_c_o+:} false; then :
10211 $as_echo_n "(cached) " >&6
10213 lt_cv_prog_compiler_c_o=no
10214 $RM -r conftest 2>/dev/null
10218 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10220 lt_compiler_flag="-o out/conftest2.$ac_objext"
10221 # Insert the option either (1) after the last *FLAGS variable, or
10222 # (2) before a word containing "conftest.", or (3) at the end.
10223 # Note that $ac_compile itself does not contain backslashes and begins
10224 # with a dollar sign (not a hyphen), so the echo should work correctly.
10225 lt_compile=`echo "$ac_compile" | $SED \
10226 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10227 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10228 -e 's:$: $lt_compiler_flag:'`
10229 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10230 (eval "$lt_compile" 2>out/conftest.err)
10232 cat out/conftest.err >&5
10233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10234 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10236 # The compiler can only warn and ignore the option if not recognized
10237 # So say no if there are warnings
10238 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10239 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10240 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10241 lt_cv_prog_compiler_c_o=yes
10246 # SGI C++ compiler will create directory out/ii_files/ for
10247 # template instantiation
10248 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10249 $RM out/* && rmdir out
10255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10256 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10261 hard_links="nottested"
10262 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10263 # do not overwrite the value of need_locks provided by the user
10264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10265 $as_echo_n "checking if we can lock with hard links... " >&6; }
10268 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10270 ln conftest.a conftest.b 2>&5 || hard_links=no
10271 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10273 $as_echo "$hard_links" >&6; }
10274 if test "$hard_links" = no; then
10275 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10276 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10289 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10292 allow_undefined_flag=
10293 always_export_symbols=no
10295 archive_expsym_cmds=
10296 compiler_needs_object=no
10297 enable_shared_with_static_runtimes=no
10298 export_dynamic_flag_spec=
10299 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10300 hardcode_automatic=no
10302 hardcode_direct_absolute=no
10303 hardcode_libdir_flag_spec=
10304 hardcode_libdir_separator=
10305 hardcode_minus_L=no
10306 hardcode_shlibpath_var=unsupported
10308 link_all_deplibs=unknown
10310 module_expsym_cmds=
10311 old_archive_from_new_cmds=
10312 old_archive_from_expsyms_cmds=
10313 thread_safe_flag_spec=
10314 whole_archive_flag_spec=
10315 # include_expsyms should be a list of space-separated symbols to be *always*
10316 # included in the symbol list
10318 # exclude_expsyms can be an extended regexp of symbols to exclude
10319 # it will be wrapped by ` (' and `)$', so one must not match beginning or
10320 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10321 # as well as any symbol that contains `d'.
10322 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10323 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10324 # platforms (ab)use it in PIC code, but their linkers get confused if
10325 # the symbol is explicitly referenced. Since portable code cannot
10326 # rely on this symbol name, it's probably fine to never include it in
10327 # preloaded symbol tables.
10328 # Exclude shared library initialization/finalization symbols.
10329 extract_expsyms_cmds=
10332 cygwin* | mingw* | pw32* | cegcc*)
10333 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10334 # When not using gcc, we currently assume that we are using
10335 # Microsoft Visual C++.
10336 if test "$GCC" != yes; then
10341 # we just hope/assume this is gcc and not c89 (= MSVC++)
10347 linux* | k*bsd*-gnu | gnu*)
10348 link_all_deplibs=no
10354 # On some targets, GNU ld is compatible enough with the native linker
10355 # that we're better off using the native interface for both.
10356 lt_use_gnu_ld_interface=no
10357 if test "$with_gnu_ld" = yes; then
10360 # The AIX port of GNU ld has always aspired to compatibility
10361 # with the native linker. However, as the warning in the GNU ld
10362 # block says, versions before 2.19.5* couldn't really create working
10363 # shared libraries, regardless of the interface used.
10364 case `$LD -v 2>&1` in
10365 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10366 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10367 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10369 lt_use_gnu_ld_interface=yes
10374 lt_use_gnu_ld_interface=yes
10379 if test "$lt_use_gnu_ld_interface" = yes; then
10380 # If archive_cmds runs LD, not CC, wlarc should be empty
10383 # Set some defaults for GNU ld with shared library support. These
10384 # are reset later if shared libraries are not supported. Putting them
10385 # here allows them to be overridden if necessary.
10386 runpath_var=LD_RUN_PATH
10387 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10388 export_dynamic_flag_spec='${wl}--export-dynamic'
10389 # ancient GNU ld didn't support --whole-archive et. al.
10390 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10391 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10393 whole_archive_flag_spec=
10395 supports_anon_versioning=no
10396 case `$LD -v 2>&1` in
10397 *GNU\ gold*) supports_anon_versioning=yes ;;
10398 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10399 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10400 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10401 *\ 2.11.*) ;; # other 2.11 versions
10402 *) supports_anon_versioning=yes ;;
10405 # See if GNU ld supports shared libraries.
10408 # On AIX/PPC, the GNU linker is very broken
10409 if test "$host_cpu" != ia64; then
10413 *** Warning: the GNU linker, at least up to release 2.19, is reported
10414 *** to be unable to reliably create shared libraries on AIX.
10415 *** Therefore, libtool is disabling shared libraries support. If you
10416 *** really care for shared libraries, you may want to install binutils
10417 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10418 *** You will then need to restart the configuration process.
10427 # see comment about AmigaOS4 .so support
10428 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10429 archive_expsym_cmds=''
10432 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)'
10433 hardcode_libdir_flag_spec='-L$libdir'
10434 hardcode_minus_L=yes
10440 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10441 allow_undefined_flag=unsupported
10442 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10443 # support --undefined. This deserves some investigation. FIXME
10444 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10450 cygwin* | mingw* | pw32* | cegcc*)
10451 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10452 # as there is no search path for DLLs.
10453 hardcode_libdir_flag_spec='-L$libdir'
10454 export_dynamic_flag_spec='${wl}--export-all-symbols'
10455 allow_undefined_flag=unsupported
10456 always_export_symbols=no
10457 enable_shared_with_static_runtimes=yes
10458 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'
10459 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10461 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10462 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10463 # If the export-symbols file already is a .def file (1st line
10464 # is EXPORTS), use it as is; otherwise, prepend...
10465 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10466 cp $export_symbols $output_objdir/$soname.def;
10468 echo EXPORTS > $output_objdir/$soname.def;
10469 cat $export_symbols >> $output_objdir/$soname.def;
10471 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10478 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10479 link_all_deplibs=yes
10484 hardcode_shlibpath_var=no
10485 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10486 export_dynamic_flag_spec='${wl}-E'
10487 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10488 # Instead, shared libraries are loaded at an image base (0x10000000 by
10489 # default) and relocated if they conflict, which is a slow very memory
10490 # consuming and fragmenting process. To avoid this, we pick a random,
10491 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10492 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10493 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10494 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'
10497 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10499 if test "$host_os" = linux-dietlibc; then
10500 case $cc_basename in
10501 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10504 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10505 && test "$tmp_diet" = no
10507 tmp_addflag=' $pic_flag'
10508 tmp_sharedflag='-shared'
10509 case $cc_basename,$host_cpu in
10510 pgcc*) # Portland Group C compiler
10511 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'
10512 tmp_addflag=' $pic_flag'
10514 pgf77* | pgf90* | pgf95* | pgfortran*)
10515 # Portland Group f77 and f90 compilers
10516 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'
10517 tmp_addflag=' $pic_flag -Mnomain' ;;
10518 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10519 tmp_addflag=' -i_dynamic' ;;
10520 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10521 tmp_addflag=' -i_dynamic -nofor_main' ;;
10522 ifc* | ifort*) # Intel Fortran compiler
10523 tmp_addflag=' -nofor_main' ;;
10524 lf95*) # Lahey Fortran 8.1
10525 whole_archive_flag_spec=
10526 tmp_sharedflag='--shared' ;;
10527 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10528 tmp_sharedflag='-qmkshrobj'
10530 nvcc*) # Cuda Compiler Driver 2.2
10531 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'
10532 compiler_needs_object=yes
10535 case `$CC -V 2>&1 | sed 5q` in
10536 *Sun\ C*) # Sun C 5.9
10537 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'
10538 compiler_needs_object=yes
10539 tmp_sharedflag='-G' ;;
10540 *Sun\ F*) # Sun Fortran 8.3
10541 tmp_sharedflag='-G' ;;
10543 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10545 if test "x$supports_anon_versioning" = xyes; then
10546 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10547 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10548 echo "local: *; };" >> $output_objdir/$libname.ver~
10549 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10552 case $cc_basename in
10553 xlf* | bgf* | bgxlf* | mpixlf*)
10554 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10555 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10556 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10557 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10558 if test "x$supports_anon_versioning" = xyes; then
10559 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10560 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10561 echo "local: *; };" >> $output_objdir/$libname.ver~
10562 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10571 netbsd* | netbsdelf*-gnu)
10572 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10573 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10576 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10577 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10582 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10586 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10587 *** create shared libraries on Solaris systems. Therefore, libtool
10588 *** is disabling shared libraries support. We urge you to upgrade GNU
10589 *** binutils to release 2.9.1 or newer. Another option is to modify
10590 *** your PATH or compiler configuration so that the native linker is
10591 *** used, and then restart.
10594 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10595 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10596 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10602 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10603 case `$LD -v 2>&1` in
10604 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10608 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10609 *** reliably create shared libraries on SCO systems. Therefore, libtool
10610 *** is disabling shared libraries support. We urge you to upgrade GNU
10611 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10612 *** your PATH or compiler configuration so that the native linker is
10613 *** used, and then restart.
10618 # For security reasons, it is highly recommended that you always
10619 # use absolute paths for naming shared libraries, and exclude the
10620 # DT_RUNPATH tag from executables and libraries. But doing so
10621 # requires that you compile everything twice, which is a pain.
10622 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10623 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10624 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10625 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10634 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10636 hardcode_direct=yes
10637 hardcode_shlibpath_var=no
10641 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10642 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10643 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10650 if test "$ld_shlibs" = no; then
10652 hardcode_libdir_flag_spec=
10653 export_dynamic_flag_spec=
10654 whole_archive_flag_spec=
10657 # PORTME fill in a description of your system's linker (not GNU ld)
10660 allow_undefined_flag=unsupported
10661 always_export_symbols=yes
10662 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'
10663 # Note: this linker hardcodes the directories in LIBPATH if there
10664 # are no directories specified by -L.
10665 hardcode_minus_L=yes
10666 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10667 # Neither direct hardcoding nor static linking is supported with a
10669 hardcode_direct=unsupported
10674 if test "$host_cpu" = ia64; then
10675 # On IA64, the linker does run time linking by default, so we don't
10676 # have to do anything special.
10677 aix_use_runtimelinking=no
10678 exp_sym_flag='-Bexport'
10681 # If we're using GNU nm, then we don't want the "-C" option.
10682 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10683 # Also, AIX nm treats weak defined symbols like other global
10684 # defined symbols, whereas GNU nm marks them as "W".
10685 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10686 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'
10688 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'
10690 aix_use_runtimelinking=no
10692 # Test if we are trying to use run time linking or normal
10693 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10694 # need to do runtime linking.
10695 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10696 for ld_flag in $LDFLAGS; do
10697 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10698 aix_use_runtimelinking=yes
10705 exp_sym_flag='-bexport'
10706 no_entry_flag='-bnoentry'
10709 # When large executables or shared objects are built, AIX ld can
10710 # have problems creating the table of contents. If linking a library
10711 # or program results in "error TOC overflow" add -mminimal-toc to
10712 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10713 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10716 hardcode_direct=yes
10717 hardcode_direct_absolute=yes
10718 hardcode_libdir_separator=':'
10719 link_all_deplibs=yes
10720 file_list_spec='${wl}-f,'
10722 if test "$GCC" = yes; then
10723 case $host_os in aix4.[012]|aix4.[012].*)
10724 # We only want to do this on AIX 4.2 and lower, the check
10725 # below for broken collect2 doesn't work under 4.3+
10726 collect2name=`${CC} -print-prog-name=collect2`
10727 if test -f "$collect2name" &&
10728 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10730 # We have reworked collect2
10733 # We have old collect2
10734 hardcode_direct=unsupported
10735 # It fails to find uninstalled libraries when the uninstalled
10736 # path is not listed in the libpath. Setting hardcode_minus_L
10737 # to unsupported forces relinking
10738 hardcode_minus_L=yes
10739 hardcode_libdir_flag_spec='-L$libdir'
10740 hardcode_libdir_separator=
10744 shared_flag='-shared'
10745 if test "$aix_use_runtimelinking" = yes; then
10746 shared_flag="$shared_flag "'${wl}-G'
10748 link_all_deplibs=no
10751 if test "$host_cpu" = ia64; then
10752 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10753 # chokes on -Wl,-G. The following line is correct:
10756 if test "$aix_use_runtimelinking" = yes; then
10757 shared_flag='${wl}-G'
10759 shared_flag='${wl}-bM:SRE'
10764 export_dynamic_flag_spec='${wl}-bexpall'
10765 # It seems that -bexpall does not export symbols beginning with
10766 # underscore (_), so it is better to generate a list of symbols to export.
10767 always_export_symbols=yes
10768 if test "$aix_use_runtimelinking" = yes; then
10769 # Warning - without using the other runtime loading flags (-brtl),
10770 # -berok will link without error, but may produce a broken library.
10771 allow_undefined_flag='-berok'
10772 # Determine the default libpath from the value encoded in an
10773 # empty executable.
10774 if test "${lt_cv_aix_libpath+set}" = set; then
10775 aix_libpath=$lt_cv_aix_libpath
10777 if ${lt_cv_aix_libpath_+:} false; then :
10778 $as_echo_n "(cached) " >&6
10780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10781 /* end confdefs.h. */
10791 if ac_fn_c_try_link "$LINENO"; then :
10793 lt_aix_libpath_sed='
10794 /Import File Strings/,/^$/ {
10796 s/^0 *\([^ ]*\) *$/\1/
10800 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10801 # Check for a 64-bit object if we didn't find anything.
10802 if test -z "$lt_cv_aix_libpath_"; then
10803 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10806 rm -f core conftest.err conftest.$ac_objext \
10807 conftest$ac_exeext conftest.$ac_ext
10808 if test -z "$lt_cv_aix_libpath_"; then
10809 lt_cv_aix_libpath_="/usr/lib:/lib"
10814 aix_libpath=$lt_cv_aix_libpath_
10817 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10818 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"
10820 if test "$host_cpu" = ia64; then
10821 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10822 allow_undefined_flag="-z nodefs"
10823 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"
10825 # Determine the default libpath from the value encoded in an
10826 # empty executable.
10827 if test "${lt_cv_aix_libpath+set}" = set; then
10828 aix_libpath=$lt_cv_aix_libpath
10830 if ${lt_cv_aix_libpath_+:} false; then :
10831 $as_echo_n "(cached) " >&6
10833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10834 /* end confdefs.h. */
10844 if ac_fn_c_try_link "$LINENO"; then :
10846 lt_aix_libpath_sed='
10847 /Import File Strings/,/^$/ {
10849 s/^0 *\([^ ]*\) *$/\1/
10853 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10854 # Check for a 64-bit object if we didn't find anything.
10855 if test -z "$lt_cv_aix_libpath_"; then
10856 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10859 rm -f core conftest.err conftest.$ac_objext \
10860 conftest$ac_exeext conftest.$ac_ext
10861 if test -z "$lt_cv_aix_libpath_"; then
10862 lt_cv_aix_libpath_="/usr/lib:/lib"
10867 aix_libpath=$lt_cv_aix_libpath_
10870 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10871 # Warning - without using the other run time loading flags,
10872 # -berok will link without error, but may produce a broken library.
10873 no_undefined_flag=' ${wl}-bernotok'
10874 allow_undefined_flag=' ${wl}-berok'
10875 if test "$with_gnu_ld" = yes; then
10876 # We only use this code for GNU lds that support --whole-archive.
10877 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10879 # Exported symbols can be pulled into shared objects from archives
10880 whole_archive_flag_spec='$convenience'
10882 archive_cmds_need_lc=yes
10883 # This is similar to how AIX traditionally builds its shared libraries.
10884 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'
10892 # see comment about AmigaOS4 .so support
10893 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10894 archive_expsym_cmds=''
10897 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)'
10898 hardcode_libdir_flag_spec='-L$libdir'
10899 hardcode_minus_L=yes
10905 export_dynamic_flag_spec=-rdynamic
10908 cygwin* | mingw* | pw32* | cegcc*)
10909 # When not using gcc, we currently assume that we are using
10910 # Microsoft Visual C++.
10911 # hardcode_libdir_flag_spec is actually meaningless, as there is
10912 # no search path for DLLs.
10913 case $cc_basename in
10916 hardcode_libdir_flag_spec=' '
10917 allow_undefined_flag=unsupported
10918 always_export_symbols=yes
10920 # Tell ltmain to make .lib files, not .a files.
10922 # Tell ltmain to make .dll files, not .so files.
10924 # FIXME: Setting linknames here is a bad hack.
10925 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
10926 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10927 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
10929 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
10931 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10933 # The linker will not automatically build a static lib if we build a DLL.
10934 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10935 enable_shared_with_static_runtimes=yes
10936 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10937 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10939 old_postinstall_cmds='chmod 644 $oldlib'
10940 postlink_cmds='lt_outputfile="@OUTPUT@"~
10941 lt_tool_outputfile="@TOOL_OUTPUT@"~
10942 case $lt_outputfile in
10945 lt_outputfile="$lt_outputfile.exe"
10946 lt_tool_outputfile="$lt_tool_outputfile.exe"
10949 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10950 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10951 $RM "$lt_outputfile.manifest";
10955 # Assume MSVC wrapper
10956 hardcode_libdir_flag_spec=' '
10957 allow_undefined_flag=unsupported
10958 # Tell ltmain to make .lib files, not .a files.
10960 # Tell ltmain to make .dll files, not .so files.
10962 # FIXME: Setting linknames here is a bad hack.
10963 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10964 # The linker will automatically build a .lib file if we build a DLL.
10965 old_archive_from_new_cmds='true'
10966 # FIXME: Should let the user specify the lib program.
10967 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10968 enable_shared_with_static_runtimes=yes
10973 darwin* | rhapsody*)
10976 archive_cmds_need_lc=no
10978 hardcode_automatic=yes
10979 hardcode_shlibpath_var=unsupported
10980 if test "$lt_cv_ld_force_load" = "yes"; then
10981 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\"`'
10984 whole_archive_flag_spec=''
10986 link_all_deplibs=yes
10987 allow_undefined_flag="$_lt_dar_allow_undefined"
10988 case $cc_basename in
10989 ifort*) _lt_dar_can_shared=yes ;;
10990 *) _lt_dar_can_shared=$GCC ;;
10992 if test "$_lt_dar_can_shared" = "yes"; then
10993 output_verbose_link_cmd=func_echo_all
10994 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10995 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10996 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}"
10997 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}"
11006 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11007 hardcode_libdir_flag_spec='-L$libdir'
11008 hardcode_shlibpath_var=no
11011 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11012 # support. Future versions do this automatically, but an explicit c++rt0.o
11013 # does not break anything, and helps significantly (at the cost of a little
11016 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11017 hardcode_libdir_flag_spec='-R$libdir'
11018 hardcode_direct=yes
11019 hardcode_shlibpath_var=no
11022 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11024 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11025 hardcode_direct=yes
11026 hardcode_minus_L=yes
11027 hardcode_shlibpath_var=no
11030 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11031 freebsd* | dragonfly*)
11032 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11033 hardcode_libdir_flag_spec='-R$libdir'
11034 hardcode_direct=yes
11035 hardcode_shlibpath_var=no
11039 if test "$GCC" = yes; then
11040 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'
11042 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'
11044 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11045 hardcode_libdir_separator=:
11046 hardcode_direct=yes
11048 # hardcode_minus_L: Not really in the search PATH,
11049 # but as the default location of the library.
11050 hardcode_minus_L=yes
11051 export_dynamic_flag_spec='${wl}-E'
11055 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11056 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11058 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11060 if test "$with_gnu_ld" = no; then
11061 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11062 hardcode_libdir_separator=:
11063 hardcode_direct=yes
11064 hardcode_direct_absolute=yes
11065 export_dynamic_flag_spec='${wl}-E'
11066 # hardcode_minus_L: Not really in the search PATH,
11067 # but as the default location of the library.
11068 hardcode_minus_L=yes
11073 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11076 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11079 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11082 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11088 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11091 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11095 # Older versions of the 11.00 compiler do not understand -b yet
11096 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11098 $as_echo_n "checking if $CC understands -b... " >&6; }
11099 if ${lt_cv_prog_compiler__b+:} false; then :
11100 $as_echo_n "(cached) " >&6
11102 lt_cv_prog_compiler__b=no
11103 save_LDFLAGS="$LDFLAGS"
11104 LDFLAGS="$LDFLAGS -b"
11105 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11106 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11107 # The linker can only warn and ignore the option if not recognized
11108 # So say no if there are warnings
11109 if test -s conftest.err; then
11110 # Append any errors to the config.log.
11111 cat conftest.err 1>&5
11112 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11113 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11114 if diff conftest.exp conftest.er2 >/dev/null; then
11115 lt_cv_prog_compiler__b=yes
11118 lt_cv_prog_compiler__b=yes
11122 LDFLAGS="$save_LDFLAGS"
11125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11126 $as_echo "$lt_cv_prog_compiler__b" >&6; }
11128 if test x"$lt_cv_prog_compiler__b" = xyes; then
11129 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11131 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11137 if test "$with_gnu_ld" = no; then
11138 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11139 hardcode_libdir_separator=:
11144 hardcode_shlibpath_var=no
11147 hardcode_direct=yes
11148 hardcode_direct_absolute=yes
11149 export_dynamic_flag_spec='${wl}-E'
11151 # hardcode_minus_L: Not really in the search PATH,
11152 # but as the default location of the library.
11153 hardcode_minus_L=yes
11159 irix5* | irix6* | nonstopux*)
11160 if test "$GCC" = yes; then
11161 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'
11162 # Try to use the -exported_symbol ld option, if it does not
11163 # work, assume that -exports_file does not work either and
11164 # implicitly export all symbols.
11165 # This should be the same for all languages, so no per-tag cache variable.
11166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11167 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11168 if ${lt_cv_irix_exported_symbol+:} false; then :
11169 $as_echo_n "(cached) " >&6
11171 save_LDFLAGS="$LDFLAGS"
11172 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
11173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11174 /* end confdefs.h. */
11175 int foo (void) { return 0; }
11177 if ac_fn_c_try_link "$LINENO"; then :
11178 lt_cv_irix_exported_symbol=yes
11180 lt_cv_irix_exported_symbol=no
11182 rm -f core conftest.err conftest.$ac_objext \
11183 conftest$ac_exeext conftest.$ac_ext
11184 LDFLAGS="$save_LDFLAGS"
11186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11187 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
11188 if test "$lt_cv_irix_exported_symbol" = yes; then
11189 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'
11192 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'
11193 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'
11195 archive_cmds_need_lc='no'
11196 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11197 hardcode_libdir_separator=:
11199 link_all_deplibs=yes
11202 netbsd* | netbsdelf*-gnu)
11203 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11204 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11206 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11208 hardcode_libdir_flag_spec='-R$libdir'
11209 hardcode_direct=yes
11210 hardcode_shlibpath_var=no
11214 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11215 hardcode_direct=yes
11216 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11217 hardcode_libdir_separator=:
11218 hardcode_shlibpath_var=no
11225 if test -f /usr/libexec/ld.so; then
11226 hardcode_direct=yes
11227 hardcode_shlibpath_var=no
11228 hardcode_direct_absolute=yes
11229 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11230 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11231 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
11232 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11233 export_dynamic_flag_spec='${wl}-E'
11236 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
11237 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11238 hardcode_libdir_flag_spec='-R$libdir'
11241 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11242 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11252 hardcode_libdir_flag_spec='-L$libdir'
11253 hardcode_minus_L=yes
11254 allow_undefined_flag=unsupported
11255 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'
11256 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11260 if test "$GCC" = yes; then
11261 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11262 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'
11264 allow_undefined_flag=' -expect_unresolved \*'
11265 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'
11267 archive_cmds_need_lc='no'
11268 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11269 hardcode_libdir_separator=:
11272 osf4* | osf5*) # as osf3* with the addition of -msym flag
11273 if test "$GCC" = yes; then
11274 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11275 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'
11276 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11278 allow_undefined_flag=' -expect_unresolved \*'
11279 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'
11280 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~
11281 $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'
11283 # Both c and cxx compiler support -rpath directly
11284 hardcode_libdir_flag_spec='-rpath $libdir'
11286 archive_cmds_need_lc='no'
11287 hardcode_libdir_separator=:
11291 no_undefined_flag=' -z defs'
11292 if test "$GCC" = yes; then
11294 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11295 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11296 $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'
11298 case `$CC -V 2>&1` in
11301 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11302 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11303 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11307 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11308 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11309 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11313 hardcode_libdir_flag_spec='-R$libdir'
11314 hardcode_shlibpath_var=no
11316 solaris2.[0-5] | solaris2.[0-5].*) ;;
11318 # The compiler driver will combine and reorder linker options,
11319 # but understands `-z linker_flag'. GCC discards it without `$wl',
11320 # but is careful enough not to reorder.
11321 # Supported since Solaris 2.6 (maybe 2.5.1?)
11322 if test "$GCC" = yes; then
11323 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11325 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11329 link_all_deplibs=yes
11333 if test "x$host_vendor" = xsequent; then
11334 # Use $CC to link under sequent, because it throws in some extra .o
11335 # files that make .init and .fini sections work.
11336 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11338 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11340 hardcode_libdir_flag_spec='-L$libdir'
11341 hardcode_direct=yes
11342 hardcode_minus_L=yes
11343 hardcode_shlibpath_var=no
11347 case $host_vendor in
11349 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11350 hardcode_direct=yes # is this really true???
11353 ## LD is ld it makes a PLAMLIB
11354 ## CC just makes a GrossModule.
11355 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11356 reload_cmds='$CC -r -o $output$reload_objs'
11360 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11361 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11364 runpath_var='LD_RUN_PATH'
11365 hardcode_shlibpath_var=no
11369 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11370 hardcode_shlibpath_var=no
11371 export_dynamic_flag_spec='-Bexport'
11375 if test -d /usr/nec; then
11376 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11377 hardcode_shlibpath_var=no
11378 runpath_var=LD_RUN_PATH
11379 hardcode_runpath_var=yes
11384 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11385 no_undefined_flag='${wl}-z,text'
11386 archive_cmds_need_lc=no
11387 hardcode_shlibpath_var=no
11388 runpath_var='LD_RUN_PATH'
11390 if test "$GCC" = yes; then
11391 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11392 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11394 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11395 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11399 sysv5* | sco3.2v5* | sco5v6*)
11400 # Note: We can NOT use -z defs as we might desire, because we do not
11401 # link with -lc, and that would cause any symbols used from libc to
11402 # always be unresolved, which means just about no library would
11403 # ever link correctly. If we're not using GNU ld we use -z text
11404 # though, which does catch some bad symbols but isn't as heavy-handed
11406 no_undefined_flag='${wl}-z,text'
11407 allow_undefined_flag='${wl}-z,nodefs'
11408 archive_cmds_need_lc=no
11409 hardcode_shlibpath_var=no
11410 hardcode_libdir_flag_spec='${wl}-R,$libdir'
11411 hardcode_libdir_separator=':'
11412 link_all_deplibs=yes
11413 export_dynamic_flag_spec='${wl}-Bexport'
11414 runpath_var='LD_RUN_PATH'
11416 if test "$GCC" = yes; then
11417 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11418 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11420 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11421 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11426 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11427 hardcode_libdir_flag_spec='-L$libdir'
11428 hardcode_shlibpath_var=no
11436 if test x$host_vendor = xsni; then
11438 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11439 export_dynamic_flag_spec='${wl}-Blargedynsym'
11445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11446 $as_echo "$ld_shlibs" >&6; }
11447 test "$ld_shlibs" = no && can_build_shared=no
11449 with_gnu_ld=$with_gnu_ld
11466 # Do we need to explicitly link libc?
11468 case "x$archive_cmds_need_lc" in
11470 # Assume -lc should be added
11471 archive_cmds_need_lc=yes
11473 if test "$enable_shared" = yes && test "$GCC" = yes; then
11474 case $archive_cmds in
11476 # FIXME: we may have to deal with multi-command sequences.
11479 # Test whether the compiler implicitly links with -lc since on some
11480 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11481 # to ld, don't add -lc before -lgcc.
11482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11483 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11484 if ${lt_cv_archive_cmds_need_lc+:} false; then :
11485 $as_echo_n "(cached) " >&6
11488 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11490 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11491 (eval $ac_compile) 2>&5
11493 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11494 test $ac_status = 0; } 2>conftest.err; then
11497 libobjs=conftest.$ac_objext
11499 wl=$lt_prog_compiler_wl
11500 pic_flag=$lt_prog_compiler_pic
11506 lt_save_allow_undefined_flag=$allow_undefined_flag
11507 allow_undefined_flag=
11508 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11509 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11511 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11512 test $ac_status = 0; }
11514 lt_cv_archive_cmds_need_lc=no
11516 lt_cv_archive_cmds_need_lc=yes
11518 allow_undefined_flag=$lt_save_allow_undefined_flag
11520 cat conftest.err 1>&5
11525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11526 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11527 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11686 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11688 if test "$GCC" = yes; then
11690 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11691 *) lt_awk_arg="/^libraries:/" ;;
11694 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11695 *) lt_sed_strip_eq="s,=/,/,g" ;;
11697 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11698 case $lt_search_path_spec in
11700 # if the path contains ";" then we assume it to be the separator
11701 # otherwise default to the standard path separator (i.e. ":") - it is
11702 # assumed that no part of a normal pathname contains ";" but that should
11703 # okay in the real world where ";" in dirpaths is itself problematic.
11704 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11707 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11710 # Ok, now we have the path, separated by spaces, we can step through it
11711 # and add multilib dir if necessary.
11712 lt_tmp_lt_search_path_spec=
11713 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11714 for lt_sys_path in $lt_search_path_spec; do
11715 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11716 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11718 test -d "$lt_sys_path" && \
11719 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11722 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11723 BEGIN {RS=" "; FS="/|\n";} {
11726 for (lt_i = NF; lt_i > 0; lt_i--) {
11727 if ($lt_i != "" && $lt_i != ".") {
11728 if ($lt_i == "..") {
11731 if (lt_count == 0) {
11732 lt_foo="/" $lt_i lt_foo;
11739 if (lt_foo != "") { lt_freq[lt_foo]++; }
11740 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11742 # AWK program above erroneously prepends '/' to C:/dos/paths
11745 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11746 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11748 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11750 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11752 library_names_spec=
11753 libname_spec='lib$name'
11757 postuninstall_cmds=
11761 shlibpath_overrides_runpath=unknown
11763 dynamic_linker="$host_os ld.so"
11764 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11765 need_lib_prefix=unknown
11766 hardcode_into_libs=no
11768 # when you set need_version to no, make sure it does not cause -set_version
11769 # flags to be left without arguments
11770 need_version=unknown
11774 version_type=linux # correct to gnu/linux during the next big refactor
11775 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11776 shlibpath_var=LIBPATH
11778 # AIX 3 has no versioning support, so we append a major version to the name.
11779 soname_spec='${libname}${release}${shared_ext}$major'
11783 version_type=linux # correct to gnu/linux during the next big refactor
11786 hardcode_into_libs=yes
11787 if test "$host_cpu" = ia64; then
11788 # AIX 5 supports IA64
11789 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11790 shlibpath_var=LD_LIBRARY_PATH
11792 # With GCC up to 2.95.x, collect2 would create an import file
11793 # for dependence libraries. The import file would start with
11794 # the line `#! .'. This would cause the generated library to
11795 # depend on `.', always an invalid library. This was fixed in
11796 # development snapshots of GCC prior to 3.0.
11798 aix4 | aix4.[01] | aix4.[01].*)
11799 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11801 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11804 can_build_shared=no
11808 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11809 # soname into executable. Probably we can add versioning support to
11810 # collect2, so additional links can be useful in future.
11811 if test "$aix_use_runtimelinking" = yes; then
11812 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11813 # instead of lib<name>.a to let people know that these are not
11814 # typical AIX shared libraries.
11815 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11817 # We preserve .a as extension for shared libraries through AIX4.2
11818 # and later when we are not doing run time linking.
11819 library_names_spec='${libname}${release}.a $libname.a'
11820 soname_spec='${libname}${release}${shared_ext}$major'
11822 shlibpath_var=LIBPATH
11829 # Since July 2007 AmigaOS4 officially supports .so libraries.
11830 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11831 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11834 library_names_spec='$libname.ixlibrary $libname.a'
11835 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11836 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'
11842 library_names_spec='${libname}${shared_ext}'
11843 dynamic_linker="$host_os ld.so"
11844 shlibpath_var=LIBRARY_PATH
11848 version_type=linux # correct to gnu/linux during the next big refactor
11850 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11851 soname_spec='${libname}${release}${shared_ext}$major'
11852 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11853 shlibpath_var=LD_LIBRARY_PATH
11854 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11855 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11856 # the default ld.so.conf also contains /usr/contrib/lib and
11857 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11858 # libtool to hard-code these into programs
11861 cygwin* | mingw* | pw32* | cegcc*)
11862 version_type=windows
11867 case $GCC,$cc_basename in
11870 library_names_spec='$libname.dll.a'
11871 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11872 postinstall_cmds='base_file=`basename \${file}`~
11873 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11874 dldir=$destdir/`dirname \$dlpath`~
11875 test -d \$dldir || mkdir -p \$dldir~
11876 $install_prog $dir/$dlname \$dldir/$dlname~
11877 chmod a+x \$dldir/$dlname~
11878 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11879 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11881 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11882 dlpath=$dir/\$dldll~
11884 shlibpath_overrides_runpath=yes
11888 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11889 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11891 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11894 # MinGW DLLs use traditional 'lib' prefix
11895 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11898 # pw32 DLLs use 'pw' prefix rather than 'lib'
11899 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11902 dynamic_linker='Win32 ld.exe'
11907 libname_spec='$name'
11908 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11909 library_names_spec='${libname}.dll.lib'
11913 sys_lib_search_path_spec=
11916 for lt_path in $LIB
11919 # Let DOS variable expansion print the short 8.3 style file name.
11920 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11921 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11924 # Convert to MSYS style.
11925 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11928 # Convert to unix form, then to dos form, then back to unix form
11929 # but this time dos style (no spaces!) so that the unix form looks
11930 # like /cygdrive/c/PROGRA~1:/cygdr...
11931 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11932 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11933 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11936 sys_lib_search_path_spec="$LIB"
11937 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11938 # It is most probably a Windows format PATH.
11939 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11941 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11943 # FIXME: find the short name or the path components, as spaces are
11944 # common. (e.g. "Program Files" -> "PROGRA~1")
11948 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11949 postinstall_cmds='base_file=`basename \${file}`~
11950 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11951 dldir=$destdir/`dirname \$dlpath`~
11952 test -d \$dldir || mkdir -p \$dldir~
11953 $install_prog $dir/$dlname \$dldir/$dlname'
11954 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11955 dlpath=$dir/\$dldll~
11957 shlibpath_overrides_runpath=yes
11958 dynamic_linker='Win32 link.exe'
11962 # Assume MSVC wrapper
11963 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11964 dynamic_linker='Win32 ld.exe'
11967 # FIXME: first we should search . and the directory the executable is in
11971 darwin* | rhapsody*)
11972 dynamic_linker="$host_os dyld"
11973 version_type=darwin
11976 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11977 soname_spec='${libname}${release}${major}$shared_ext'
11978 shlibpath_overrides_runpath=yes
11979 shlibpath_var=DYLD_LIBRARY_PATH
11980 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11982 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11983 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11987 version_type=linux # correct to gnu/linux during the next big refactor
11990 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11991 soname_spec='${libname}${release}${shared_ext}$major'
11992 shlibpath_var=LD_LIBRARY_PATH
11995 freebsd* | dragonfly*)
11996 # DragonFly does not have aout. When/if they implement a new
11997 # versioning mechanism, adjust this.
11998 if test -x /usr/bin/objformat; then
11999 objformat=`/usr/bin/objformat`
12002 freebsd[23].*) objformat=aout ;;
12003 *) objformat=elf ;;
12006 version_type=freebsd-$objformat
12007 case $version_type in
12009 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12014 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12018 shlibpath_var=LD_LIBRARY_PATH
12021 shlibpath_overrides_runpath=yes
12023 freebsd3.[01]* | freebsdelf3.[01]*)
12024 shlibpath_overrides_runpath=yes
12025 hardcode_into_libs=yes
12027 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12028 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12029 shlibpath_overrides_runpath=no
12030 hardcode_into_libs=yes
12032 *) # from 4.6 on, and DragonFly
12033 shlibpath_overrides_runpath=yes
12034 hardcode_into_libs=yes
12040 version_type=linux # correct to gnu/linux during the next big refactor
12043 dynamic_linker="$host_os runtime_loader"
12044 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12045 soname_spec='${libname}${release}${shared_ext}$major'
12046 shlibpath_var=LIBRARY_PATH
12047 shlibpath_overrides_runpath=yes
12048 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12049 hardcode_into_libs=yes
12052 hpux9* | hpux10* | hpux11*)
12053 # Give a soname corresponding to the major version so that dld.sl refuses to
12054 # link against other versions.
12061 hardcode_into_libs=yes
12062 dynamic_linker="$host_os dld.so"
12063 shlibpath_var=LD_LIBRARY_PATH
12064 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12065 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12066 soname_spec='${libname}${release}${shared_ext}$major'
12067 if test "X$HPUX_IA64_MODE" = X32; then
12068 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12070 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12072 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12076 hardcode_into_libs=yes
12077 dynamic_linker="$host_os dld.sl"
12078 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12079 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12080 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12081 soname_spec='${libname}${release}${shared_ext}$major'
12082 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12083 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12087 dynamic_linker="$host_os dld.sl"
12088 shlibpath_var=SHLIB_PATH
12089 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12090 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12091 soname_spec='${libname}${release}${shared_ext}$major'
12094 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12095 postinstall_cmds='chmod 555 $lib'
12096 # or fails outright, so override atomically:
12097 install_override_mode=555
12101 version_type=linux # correct to gnu/linux during the next big refactor
12104 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12105 soname_spec='${libname}${release}${shared_ext}$major'
12106 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12107 shlibpath_var=LD_LIBRARY_PATH
12108 shlibpath_overrides_runpath=no
12109 hardcode_into_libs=yes
12112 irix5* | irix6* | nonstopux*)
12114 nonstopux*) version_type=nonstopux ;;
12116 if test "$lt_cv_prog_gnu_ld" = yes; then
12117 version_type=linux # correct to gnu/linux during the next big refactor
12124 soname_spec='${libname}${release}${shared_ext}$major'
12125 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12127 irix5* | nonstopux*)
12128 libsuff= shlibsuff=
12131 case $LD in # libtool.m4 will add one of these switches to LD
12132 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12133 libsuff= shlibsuff= libmagic=32-bit;;
12134 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12135 libsuff=32 shlibsuff=N32 libmagic=N32;;
12136 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12137 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12138 *) libsuff= shlibsuff= libmagic=never-match;;
12142 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12143 shlibpath_overrides_runpath=no
12144 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12145 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12146 hardcode_into_libs=yes
12149 # No shared lib support for Linux oldld, aout, or coff.
12150 linux*oldld* | linux*aout* | linux*coff*)
12154 # This must be glibc/ELF.
12155 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12156 version_type=linux # correct to gnu/linux during the next big refactor
12159 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12160 soname_spec='${libname}${release}${shared_ext}$major'
12161 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12162 shlibpath_var=LD_LIBRARY_PATH
12163 shlibpath_overrides_runpath=no
12165 # Some binutils ld are patched to set DT_RUNPATH
12166 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
12167 $as_echo_n "(cached) " >&6
12169 lt_cv_shlibpath_overrides_runpath=no
12170 save_LDFLAGS=$LDFLAGS
12171 save_libdir=$libdir
12172 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12173 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12175 /* end confdefs.h. */
12185 if ac_fn_c_try_link "$LINENO"; then :
12186 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12187 lt_cv_shlibpath_overrides_runpath=yes
12190 rm -f core conftest.err conftest.$ac_objext \
12191 conftest$ac_exeext conftest.$ac_ext
12192 LDFLAGS=$save_LDFLAGS
12193 libdir=$save_libdir
12197 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12199 # This implies no fast_install, which is unacceptable.
12200 # Some rework will be needed to allow for fast_install
12201 # before this can be enabled.
12202 hardcode_into_libs=yes
12204 # Append ld.so.conf contents to the search path
12205 if test -f /etc/ld.so.conf; then
12206 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' ' '`
12207 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12210 # We used to test for /lib/ld.so.1 and disable shared libraries on
12211 # powerpc, because MkLinux only supported shared libraries with the
12212 # GNU dynamic linker. Since this was broken with cross compilers,
12213 # most powerpc-linux boxes support dynamic linking these days and
12214 # people can always --disable-shared, the test was removed, and we
12215 # assume the GNU/Linux dynamic linker is in use.
12216 dynamic_linker='GNU/Linux ld.so'
12223 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12224 soname_spec='${libname}${release}${shared_ext}$major'
12225 shlibpath_var=LD_LIBRARY_PATH
12226 shlibpath_overrides_runpath=no
12227 hardcode_into_libs=yes
12228 dynamic_linker='NetBSD ld.elf_so'
12235 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12236 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12237 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12238 dynamic_linker='NetBSD (a.out) ld.so'
12240 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12241 soname_spec='${libname}${release}${shared_ext}$major'
12242 dynamic_linker='NetBSD ld.elf_so'
12244 shlibpath_var=LD_LIBRARY_PATH
12245 shlibpath_overrides_runpath=yes
12246 hardcode_into_libs=yes
12250 version_type=linux # correct to gnu/linux during the next big refactor
12251 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12252 shlibpath_var=LD_LIBRARY_PATH
12253 shlibpath_overrides_runpath=yes
12260 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12261 soname_spec='${libname}${release}${shared_ext}$major'
12262 shlibpath_var=LD_LIBRARY_PATH
12263 shlibpath_overrides_runpath=no
12264 hardcode_into_libs=yes
12265 dynamic_linker='ldqnx.so'
12270 sys_lib_dlsearch_path_spec="/usr/lib"
12272 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12274 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12275 *) need_version=no ;;
12277 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12278 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12279 shlibpath_var=LD_LIBRARY_PATH
12280 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12282 openbsd2.[89] | openbsd2.[89].*)
12283 shlibpath_overrides_runpath=no
12286 shlibpath_overrides_runpath=yes
12290 shlibpath_overrides_runpath=yes
12295 libname_spec='$name'
12298 library_names_spec='$libname${shared_ext} $libname.a'
12299 dynamic_linker='OS/2 ld.exe'
12300 shlibpath_var=LIBPATH
12303 osf3* | osf4* | osf5*)
12307 soname_spec='${libname}${release}${shared_ext}$major'
12308 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12309 shlibpath_var=LD_LIBRARY_PATH
12310 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12311 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12319 version_type=linux # correct to gnu/linux during the next big refactor
12322 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12323 soname_spec='${libname}${release}${shared_ext}$major'
12324 shlibpath_var=LD_LIBRARY_PATH
12325 shlibpath_overrides_runpath=yes
12326 hardcode_into_libs=yes
12327 # ldd complains unless libraries are executable
12328 postinstall_cmds='chmod +x $lib'
12333 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12334 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12335 shlibpath_var=LD_LIBRARY_PATH
12336 shlibpath_overrides_runpath=yes
12337 if test "$with_gnu_ld" = yes; then
12344 version_type=linux # correct to gnu/linux during the next big refactor
12345 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12346 soname_spec='${libname}${release}${shared_ext}$major'
12347 shlibpath_var=LD_LIBRARY_PATH
12348 case $host_vendor in
12350 shlibpath_overrides_runpath=no
12352 runpath_var=LD_RUN_PATH
12360 shlibpath_overrides_runpath=no
12361 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12367 if test -d /usr/nec ;then
12368 version_type=linux # correct to gnu/linux during the next big refactor
12369 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12370 soname_spec='$libname${shared_ext}.$major'
12371 shlibpath_var=LD_LIBRARY_PATH
12375 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12376 version_type=freebsd-elf
12379 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12380 soname_spec='${libname}${release}${shared_ext}$major'
12381 shlibpath_var=LD_LIBRARY_PATH
12382 shlibpath_overrides_runpath=yes
12383 hardcode_into_libs=yes
12384 if test "$with_gnu_ld" = yes; then
12385 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12387 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12390 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12394 sys_lib_dlsearch_path_spec='/usr/lib'
12398 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12399 version_type=linux # correct to gnu/linux during the next big refactor
12402 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12403 shlibpath_var=LD_LIBRARY_PATH
12404 shlibpath_overrides_runpath=no
12405 hardcode_into_libs=yes
12409 version_type=linux # correct to gnu/linux during the next big refactor
12410 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12411 soname_spec='${libname}${release}${shared_ext}$major'
12412 shlibpath_var=LD_LIBRARY_PATH
12419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12420 $as_echo "$dynamic_linker" >&6; }
12421 test "$dynamic_linker" = no && can_build_shared=no
12423 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12424 if test "$GCC" = yes; then
12425 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12428 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12429 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12431 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12432 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12527 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12529 if test -n "$hardcode_libdir_flag_spec" ||
12530 test -n "$runpath_var" ||
12531 test "X$hardcode_automatic" = "Xyes" ; then
12533 # We can hardcode non-existent directories.
12534 if test "$hardcode_direct" != no &&
12535 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12536 # have to relink, otherwise we might link with an installed library
12537 # when we should be linking with a yet-to-be-installed one
12538 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12539 test "$hardcode_minus_L" != no; then
12540 # Linking always hardcodes the temporary library directory.
12541 hardcode_action=relink
12543 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12544 hardcode_action=immediate
12547 # We cannot hardcode anything, or else we can only hardcode existing
12549 hardcode_action=unsupported
12551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12552 $as_echo "$hardcode_action" >&6; }
12554 if test "$hardcode_action" = relink ||
12555 test "$inherit_rpath" = yes; then
12556 # Fast installation is not supported
12557 enable_fast_install=no
12558 elif test "$shlibpath_overrides_runpath" = yes ||
12559 test "$enable_shared" = no; then
12560 # Fast installation is not necessary
12561 enable_fast_install=needless
12569 if test "x$enable_dlopen" != xyes; then
12570 enable_dlopen=unknown
12571 enable_dlopen_self=unknown
12572 enable_dlopen_self_static=unknown
12579 lt_cv_dlopen="load_add_on"
12581 lt_cv_dlopen_self=yes
12584 mingw* | pw32* | cegcc*)
12585 lt_cv_dlopen="LoadLibrary"
12590 lt_cv_dlopen="dlopen"
12595 # if libdl is installed we need to link against it
12596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12597 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12598 if ${ac_cv_lib_dl_dlopen+:} false; then :
12599 $as_echo_n "(cached) " >&6
12601 ac_check_lib_save_LIBS=$LIBS
12603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12604 /* end confdefs.h. */
12606 /* Override any GCC internal prototype to avoid an error.
12607 Use char because int might match the return type of a GCC
12608 builtin and then its argument prototype would still apply. */
12621 if ac_fn_c_try_link "$LINENO"; then :
12622 ac_cv_lib_dl_dlopen=yes
12624 ac_cv_lib_dl_dlopen=no
12626 rm -f core conftest.err conftest.$ac_objext \
12627 conftest$ac_exeext conftest.$ac_ext
12628 LIBS=$ac_check_lib_save_LIBS
12630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12631 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12632 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12633 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12636 lt_cv_dlopen="dyld"
12638 lt_cv_dlopen_self=yes
12645 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12646 if test "x$ac_cv_func_shl_load" = xyes; then :
12647 lt_cv_dlopen="shl_load"
12649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12650 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12651 if ${ac_cv_lib_dld_shl_load+:} false; then :
12652 $as_echo_n "(cached) " >&6
12654 ac_check_lib_save_LIBS=$LIBS
12656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12657 /* end confdefs.h. */
12659 /* Override any GCC internal prototype to avoid an error.
12660 Use char because int might match the return type of a GCC
12661 builtin and then its argument prototype would still apply. */
12669 return shl_load ();
12674 if ac_fn_c_try_link "$LINENO"; then :
12675 ac_cv_lib_dld_shl_load=yes
12677 ac_cv_lib_dld_shl_load=no
12679 rm -f core conftest.err conftest.$ac_objext \
12680 conftest$ac_exeext conftest.$ac_ext
12681 LIBS=$ac_check_lib_save_LIBS
12683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12684 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12685 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12686 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12688 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12689 if test "x$ac_cv_func_dlopen" = xyes; then :
12690 lt_cv_dlopen="dlopen"
12692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12693 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12694 if ${ac_cv_lib_dl_dlopen+:} false; then :
12695 $as_echo_n "(cached) " >&6
12697 ac_check_lib_save_LIBS=$LIBS
12699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12700 /* end confdefs.h. */
12702 /* Override any GCC internal prototype to avoid an error.
12703 Use char because int might match the return type of a GCC
12704 builtin and then its argument prototype would still apply. */
12717 if ac_fn_c_try_link "$LINENO"; then :
12718 ac_cv_lib_dl_dlopen=yes
12720 ac_cv_lib_dl_dlopen=no
12722 rm -f core conftest.err conftest.$ac_objext \
12723 conftest$ac_exeext conftest.$ac_ext
12724 LIBS=$ac_check_lib_save_LIBS
12726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12727 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12728 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12729 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12732 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12733 if ${ac_cv_lib_svld_dlopen+:} false; then :
12734 $as_echo_n "(cached) " >&6
12736 ac_check_lib_save_LIBS=$LIBS
12737 LIBS="-lsvld $LIBS"
12738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12739 /* end confdefs.h. */
12741 /* Override any GCC internal prototype to avoid an error.
12742 Use char because int might match the return type of a GCC
12743 builtin and then its argument prototype would still apply. */
12756 if ac_fn_c_try_link "$LINENO"; then :
12757 ac_cv_lib_svld_dlopen=yes
12759 ac_cv_lib_svld_dlopen=no
12761 rm -f core conftest.err conftest.$ac_objext \
12762 conftest$ac_exeext conftest.$ac_ext
12763 LIBS=$ac_check_lib_save_LIBS
12765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12766 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12767 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12768 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12771 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12772 if ${ac_cv_lib_dld_dld_link+:} false; then :
12773 $as_echo_n "(cached) " >&6
12775 ac_check_lib_save_LIBS=$LIBS
12777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12778 /* end confdefs.h. */
12780 /* Override any GCC internal prototype to avoid an error.
12781 Use char because int might match the return type of a GCC
12782 builtin and then its argument prototype would still apply. */
12790 return dld_link ();
12795 if ac_fn_c_try_link "$LINENO"; then :
12796 ac_cv_lib_dld_dld_link=yes
12798 ac_cv_lib_dld_dld_link=no
12800 rm -f core conftest.err conftest.$ac_objext \
12801 conftest$ac_exeext conftest.$ac_ext
12802 LIBS=$ac_check_lib_save_LIBS
12804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12805 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12806 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12807 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12828 if test "x$lt_cv_dlopen" != xno; then
12834 case $lt_cv_dlopen in
12836 save_CPPFLAGS="$CPPFLAGS"
12837 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12839 save_LDFLAGS="$LDFLAGS"
12840 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12843 LIBS="$lt_cv_dlopen_libs $LIBS"
12845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12846 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12847 if ${lt_cv_dlopen_self+:} false; then :
12848 $as_echo_n "(cached) " >&6
12850 if test "$cross_compiling" = yes; then :
12851 lt_cv_dlopen_self=cross
12853 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12854 lt_status=$lt_dlunknown
12855 cat > conftest.$ac_ext <<_LT_EOF
12856 #line $LINENO "configure"
12857 #include "confdefs.h"
12866 # define LT_DLGLOBAL RTLD_GLOBAL
12869 # define LT_DLGLOBAL DL_GLOBAL
12871 # define LT_DLGLOBAL 0
12875 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12876 find out it does not work in some platform. */
12877 #ifndef LT_DLLAZY_OR_NOW
12879 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12882 # define LT_DLLAZY_OR_NOW DL_LAZY
12885 # define LT_DLLAZY_OR_NOW RTLD_NOW
12888 # define LT_DLLAZY_OR_NOW DL_NOW
12890 # define LT_DLLAZY_OR_NOW 0
12897 /* When -fvisbility=hidden is used, assume the code has been annotated
12898 correspondingly for the symbols needed. */
12899 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12900 int fnord () __attribute__((visibility("default")));
12903 int fnord () { return 42; }
12906 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12907 int status = $lt_dlunknown;
12911 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12914 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12915 else puts (dlerror ());
12917 /* dlclose (self); */
12925 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12926 (eval $ac_link) 2>&5
12928 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12929 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12930 (./conftest; exit; ) >&5 2>/dev/null
12932 case x$lt_status in
12933 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12934 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12935 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12938 # compilation failed
12939 lt_cv_dlopen_self=no
12946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12947 $as_echo "$lt_cv_dlopen_self" >&6; }
12949 if test "x$lt_cv_dlopen_self" = xyes; then
12950 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12952 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12953 if ${lt_cv_dlopen_self_static+:} false; then :
12954 $as_echo_n "(cached) " >&6
12956 if test "$cross_compiling" = yes; then :
12957 lt_cv_dlopen_self_static=cross
12959 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12960 lt_status=$lt_dlunknown
12961 cat > conftest.$ac_ext <<_LT_EOF
12962 #line $LINENO "configure"
12963 #include "confdefs.h"
12972 # define LT_DLGLOBAL RTLD_GLOBAL
12975 # define LT_DLGLOBAL DL_GLOBAL
12977 # define LT_DLGLOBAL 0
12981 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12982 find out it does not work in some platform. */
12983 #ifndef LT_DLLAZY_OR_NOW
12985 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12988 # define LT_DLLAZY_OR_NOW DL_LAZY
12991 # define LT_DLLAZY_OR_NOW RTLD_NOW
12994 # define LT_DLLAZY_OR_NOW DL_NOW
12996 # define LT_DLLAZY_OR_NOW 0
13003 /* When -fvisbility=hidden is used, assume the code has been annotated
13004 correspondingly for the symbols needed. */
13005 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13006 int fnord () __attribute__((visibility("default")));
13009 int fnord () { return 42; }
13012 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13013 int status = $lt_dlunknown;
13017 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13020 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13021 else puts (dlerror ());
13023 /* dlclose (self); */
13031 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13032 (eval $ac_link) 2>&5
13034 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13035 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13036 (./conftest; exit; ) >&5 2>/dev/null
13038 case x$lt_status in
13039 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13040 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13041 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13044 # compilation failed
13045 lt_cv_dlopen_self_static=no
13052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13053 $as_echo "$lt_cv_dlopen_self_static" >&6; }
13056 CPPFLAGS="$save_CPPFLAGS"
13057 LDFLAGS="$save_LDFLAGS"
13062 case $lt_cv_dlopen_self in
13063 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13064 *) enable_dlopen_self=unknown ;;
13067 case $lt_cv_dlopen_self_static in
13068 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13069 *) enable_dlopen_self_static=unknown ;;
13091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13092 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
13093 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13094 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13095 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13097 $as_echo "yes" >&6; }
13099 # FIXME - insert some real tests, host_os isn't really good enough
13102 if test -n "$STRIP" ; then
13103 striplib="$STRIP -x"
13104 old_striplib="$STRIP -S"
13105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13106 $as_echo "yes" >&6; }
13108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13109 $as_echo "no" >&6; }
13113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13114 $as_echo "no" >&6; }
13130 # Report which library types will actually be built
13131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13132 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13134 $as_echo "$can_build_shared" >&6; }
13136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13137 $as_echo_n "checking whether to build shared libraries... " >&6; }
13138 test "$can_build_shared" = "no" && enable_shared=no
13140 # On AIX, shared libraries and static libraries use the same namespace, and
13141 # are all built from PIC.
13144 test "$enable_shared" = yes && enable_static=no
13145 if test -n "$RANLIB"; then
13146 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13147 postinstall_cmds='$RANLIB $lib'
13152 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13153 test "$enable_shared" = yes && enable_static=no
13157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13158 $as_echo "$enable_shared" >&6; }
13160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13161 $as_echo_n "checking whether to build static libraries... " >&6; }
13162 # Make sure either enable_shared or enable_static is yes.
13163 test "$enable_shared" = yes || enable_static=yes
13164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13165 $as_echo "$enable_static" >&6; }
13172 ac_cpp='$CPP $CPPFLAGS'
13173 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13174 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13175 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13179 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
13180 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
13181 (test "X$CXX" != "Xg++"))) ; then
13183 ac_cpp='$CXXCPP $CPPFLAGS'
13184 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13185 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13186 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
13188 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
13189 if test -z "$CXXCPP"; then
13190 if ${ac_cv_prog_CXXCPP+:} false; then :
13191 $as_echo_n "(cached) " >&6
13193 # Double quotes because CXXCPP needs to be expanded
13194 for CXXCPP in "$CXX -E" "/lib/cpp"
13196 ac_preproc_ok=false
13197 for ac_cxx_preproc_warn_flag in '' yes
13199 # Use a header file that comes with gcc, so configuring glibc
13200 # with a fresh cross-compiler works.
13201 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13202 # <limits.h> exists even on freestanding compilers.
13203 # On the NeXT, cc -E runs the code through the compiler's parser,
13204 # not just through cpp. "Syntax error" is here to catch this case.
13205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13206 /* end confdefs.h. */
13208 # include <limits.h>
13210 # include <assert.h>
13214 if ac_fn_cxx_try_cpp "$LINENO"; then :
13217 # Broken: fails on valid input.
13220 rm -f conftest.err conftest.i conftest.$ac_ext
13222 # OK, works on sane cases. Now check whether nonexistent headers
13223 # can be detected and how.
13224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13225 /* end confdefs.h. */
13226 #include <ac_nonexistent.h>
13228 if ac_fn_cxx_try_cpp "$LINENO"; then :
13229 # Broken: success on invalid input.
13232 # Passes both tests.
13236 rm -f conftest.err conftest.i conftest.$ac_ext
13239 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13240 rm -f conftest.i conftest.err conftest.$ac_ext
13241 if $ac_preproc_ok; then :
13246 ac_cv_prog_CXXCPP=$CXXCPP
13249 CXXCPP=$ac_cv_prog_CXXCPP
13251 ac_cv_prog_CXXCPP=$CXXCPP
13253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
13254 $as_echo "$CXXCPP" >&6; }
13255 ac_preproc_ok=false
13256 for ac_cxx_preproc_warn_flag in '' yes
13258 # Use a header file that comes with gcc, so configuring glibc
13259 # with a fresh cross-compiler works.
13260 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13261 # <limits.h> exists even on freestanding compilers.
13262 # On the NeXT, cc -E runs the code through the compiler's parser,
13263 # not just through cpp. "Syntax error" is here to catch this case.
13264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13265 /* end confdefs.h. */
13267 # include <limits.h>
13269 # include <assert.h>
13273 if ac_fn_cxx_try_cpp "$LINENO"; then :
13276 # Broken: fails on valid input.
13279 rm -f conftest.err conftest.i conftest.$ac_ext
13281 # OK, works on sane cases. Now check whether nonexistent headers
13282 # can be detected and how.
13283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13284 /* end confdefs.h. */
13285 #include <ac_nonexistent.h>
13287 if ac_fn_cxx_try_cpp "$LINENO"; then :
13288 # Broken: success on invalid input.
13291 # Passes both tests.
13295 rm -f conftest.err conftest.i conftest.$ac_ext
13298 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13299 rm -f conftest.i conftest.err conftest.$ac_ext
13300 if $ac_preproc_ok; then :
13303 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13304 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13305 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
13306 See \`config.log' for more details" "$LINENO" 5; }
13310 ac_cpp='$CPP $CPPFLAGS'
13311 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13312 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13313 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13316 _lt_caught_CXX_error=yes
13320 ac_cpp='$CXXCPP $CPPFLAGS'
13321 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13322 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13323 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13325 archive_cmds_need_lc_CXX=no
13326 allow_undefined_flag_CXX=
13327 always_export_symbols_CXX=no
13328 archive_expsym_cmds_CXX=
13329 compiler_needs_object_CXX=no
13330 export_dynamic_flag_spec_CXX=
13331 hardcode_direct_CXX=no
13332 hardcode_direct_absolute_CXX=no
13333 hardcode_libdir_flag_spec_CXX=
13334 hardcode_libdir_separator_CXX=
13335 hardcode_minus_L_CXX=no
13336 hardcode_shlibpath_var_CXX=unsupported
13337 hardcode_automatic_CXX=no
13338 inherit_rpath_CXX=no
13340 module_expsym_cmds_CXX=
13341 link_all_deplibs_CXX=unknown
13342 old_archive_cmds_CXX=$old_archive_cmds
13343 reload_flag_CXX=$reload_flag
13344 reload_cmds_CXX=$reload_cmds
13345 no_undefined_flag_CXX=
13346 whole_archive_flag_spec_CXX=
13347 enable_shared_with_static_runtimes_CXX=no
13349 # Source file extension for C++ test sources.
13352 # Object file extension for compiled C++ test sources.
13356 # No sense in running all these tests if we already determined that
13357 # the CXX compiler isn't working. Some variables (like enable_shared)
13358 # are currently assumed to apply to all compilers on this platform,
13359 # and will be corrupted by setting them based on a non-working compiler.
13360 if test "$_lt_caught_CXX_error" != yes; then
13361 # Code to be used in simple compile tests
13362 lt_simple_compile_test_code="int some_variable = 0;"
13364 # Code to be used in simple link tests
13365 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13367 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13374 # If no C compiler was specified, use CC.
13377 # If no C compiler flags were specified, use CFLAGS.
13378 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13380 # Allow CC to be a program name with arguments.
13384 # save warnings/boilerplate of simple test code
13385 ac_outfile=conftest.$ac_objext
13386 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13387 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13388 _lt_compiler_boilerplate=`cat conftest.err`
13391 ac_outfile=conftest.$ac_objext
13392 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13393 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13394 _lt_linker_boilerplate=`cat conftest.err`
13398 # Allow CC to be a program name with arguments.
13400 lt_save_CFLAGS=$CFLAGS
13404 lt_save_with_gnu_ld=$with_gnu_ld
13405 lt_save_path_LD=$lt_cv_path_LD
13406 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13407 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13409 $as_unset lt_cv_prog_gnu_ld
13411 if test -n "${lt_cv_path_LDCXX+set}"; then
13412 lt_cv_path_LD=$lt_cv_path_LDCXX
13414 $as_unset lt_cv_path_LD
13416 test -z "${LDCXX+set}" || LD=$LDCXX
13421 for cc_temp in $compiler""; do
13423 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13424 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13429 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13432 if test -n "$compiler"; then
13433 # We don't want -fno-exception when compiling C++ code, so set the
13434 # no_builtin_flag separately
13435 if test "$GXX" = yes; then
13436 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13438 lt_prog_compiler_no_builtin_flag_CXX=
13441 if test "$GXX" = yes; then
13442 # Set up default GNU C++ configuration
13446 # Check whether --with-gnu-ld was given.
13447 if test "${with_gnu_ld+set}" = set; then :
13448 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13454 if test "$GCC" = yes; then
13455 # Check if gcc -print-prog-name=ld gives a path.
13456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13457 $as_echo_n "checking for ld used by $CC... " >&6; }
13460 # gcc leaves a trailing carriage return which upsets mingw
13461 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13463 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13466 # Accept absolute paths.
13468 re_direlt='/[^/][^/]*/\.\./'
13469 # Canonicalize the pathname of ld
13470 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13471 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13472 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13474 test -z "$LD" && LD="$ac_prog"
13477 # If it fails, then pretend we aren't using GCC.
13481 # If it is relative, then search for the first ld in PATH.
13482 with_gnu_ld=unknown
13485 elif test "$with_gnu_ld" = yes; then
13486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13487 $as_echo_n "checking for GNU ld... " >&6; }
13489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13490 $as_echo_n "checking for non-GNU ld... " >&6; }
13492 if ${lt_cv_path_LD+:} false; then :
13493 $as_echo_n "(cached) " >&6
13495 if test -z "$LD"; then
13496 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13497 for ac_dir in $PATH; do
13499 test -z "$ac_dir" && ac_dir=.
13500 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13501 lt_cv_path_LD="$ac_dir/$ac_prog"
13502 # Check to see if the program is GNU ld. I'd rather use --version,
13503 # but apparently some variants of GNU ld only accept -v.
13504 # Break only if it was the GNU/non-GNU ld that we prefer.
13505 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13506 *GNU* | *'with BFD'*)
13507 test "$with_gnu_ld" != no && break
13510 test "$with_gnu_ld" != yes && break
13517 lt_cv_path_LD="$LD" # Let the user override the test with a path.
13521 LD="$lt_cv_path_LD"
13522 if test -n "$LD"; then
13523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13524 $as_echo "$LD" >&6; }
13526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13527 $as_echo "no" >&6; }
13529 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13531 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13532 if ${lt_cv_prog_gnu_ld+:} false; then :
13533 $as_echo_n "(cached) " >&6
13535 # I'd rather use --version here, but apparently some GNU lds only accept -v.
13536 case `$LD -v 2>&1 </dev/null` in
13537 *GNU* | *'with BFD'*)
13538 lt_cv_prog_gnu_ld=yes
13541 lt_cv_prog_gnu_ld=no
13545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13546 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
13547 with_gnu_ld=$lt_cv_prog_gnu_ld
13555 # Check if GNU C++ uses GNU ld as the underlying linker, since the
13556 # archiving commands below assume that GNU ld is being used.
13557 if test "$with_gnu_ld" = yes; then
13558 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13559 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'
13561 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13562 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13564 # If archive_cmds runs LD, not CC, wlarc should be empty
13565 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13566 # investigate it a little bit more. (MM)
13569 # ancient GNU ld didn't support --whole-archive et. al.
13570 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13571 $GREP 'no-whole-archive' > /dev/null; then
13572 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13574 whole_archive_flag_spec_CXX=
13580 # A generic and very simple default shared library creation
13581 # command for GNU C++ for the case where it uses the native
13582 # linker, instead of GNU ld. If possible, this setting should
13583 # overridden to take advantage of the native linker features on
13584 # the platform it is being used on.
13585 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13588 # Commands to make compiler produce verbose output that lists
13589 # what "hidden" libraries, object files and flags are used when
13590 # linking a shared library.
13591 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13599 # PORTME: fill in a description of your system's C++ link characteristics
13600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13601 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13605 # FIXME: insert proper C++ library support
13609 if test "$host_cpu" = ia64; then
13610 # On IA64, the linker does run time linking by default, so we don't
13611 # have to do anything special.
13612 aix_use_runtimelinking=no
13613 exp_sym_flag='-Bexport'
13616 aix_use_runtimelinking=no
13618 # Test if we are trying to use run time linking or normal
13619 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13620 # need to do runtime linking.
13621 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13622 for ld_flag in $LDFLAGS; do
13625 aix_use_runtimelinking=yes
13633 exp_sym_flag='-bexport'
13634 no_entry_flag='-bnoentry'
13637 # When large executables or shared objects are built, AIX ld can
13638 # have problems creating the table of contents. If linking a library
13639 # or program results in "error TOC overflow" add -mminimal-toc to
13640 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13641 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13643 archive_cmds_CXX=''
13644 hardcode_direct_CXX=yes
13645 hardcode_direct_absolute_CXX=yes
13646 hardcode_libdir_separator_CXX=':'
13647 link_all_deplibs_CXX=yes
13648 file_list_spec_CXX='${wl}-f,'
13650 if test "$GXX" = yes; then
13651 case $host_os in aix4.[012]|aix4.[012].*)
13652 # We only want to do this on AIX 4.2 and lower, the check
13653 # below for broken collect2 doesn't work under 4.3+
13654 collect2name=`${CC} -print-prog-name=collect2`
13655 if test -f "$collect2name" &&
13656 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13658 # We have reworked collect2
13661 # We have old collect2
13662 hardcode_direct_CXX=unsupported
13663 # It fails to find uninstalled libraries when the uninstalled
13664 # path is not listed in the libpath. Setting hardcode_minus_L
13665 # to unsupported forces relinking
13666 hardcode_minus_L_CXX=yes
13667 hardcode_libdir_flag_spec_CXX='-L$libdir'
13668 hardcode_libdir_separator_CXX=
13671 shared_flag='-shared'
13672 if test "$aix_use_runtimelinking" = yes; then
13673 shared_flag="$shared_flag "'${wl}-G'
13677 if test "$host_cpu" = ia64; then
13678 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13679 # chokes on -Wl,-G. The following line is correct:
13682 if test "$aix_use_runtimelinking" = yes; then
13683 shared_flag='${wl}-G'
13685 shared_flag='${wl}-bM:SRE'
13690 export_dynamic_flag_spec_CXX='${wl}-bexpall'
13691 # It seems that -bexpall does not export symbols beginning with
13692 # underscore (_), so it is better to generate a list of symbols to
13694 always_export_symbols_CXX=yes
13695 if test "$aix_use_runtimelinking" = yes; then
13696 # Warning - without using the other runtime loading flags (-brtl),
13697 # -berok will link without error, but may produce a broken library.
13698 allow_undefined_flag_CXX='-berok'
13699 # Determine the default libpath from the value encoded in an empty
13701 if test "${lt_cv_aix_libpath+set}" = set; then
13702 aix_libpath=$lt_cv_aix_libpath
13704 if ${lt_cv_aix_libpath__CXX+:} false; then :
13705 $as_echo_n "(cached) " >&6
13707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13708 /* end confdefs.h. */
13718 if ac_fn_cxx_try_link "$LINENO"; then :
13720 lt_aix_libpath_sed='
13721 /Import File Strings/,/^$/ {
13723 s/^0 *\([^ ]*\) *$/\1/
13727 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13728 # Check for a 64-bit object if we didn't find anything.
13729 if test -z "$lt_cv_aix_libpath__CXX"; then
13730 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13733 rm -f core conftest.err conftest.$ac_objext \
13734 conftest$ac_exeext conftest.$ac_ext
13735 if test -z "$lt_cv_aix_libpath__CXX"; then
13736 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13741 aix_libpath=$lt_cv_aix_libpath__CXX
13744 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13746 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"
13748 if test "$host_cpu" = ia64; then
13749 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13750 allow_undefined_flag_CXX="-z nodefs"
13751 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"
13753 # Determine the default libpath from the value encoded in an
13754 # empty executable.
13755 if test "${lt_cv_aix_libpath+set}" = set; then
13756 aix_libpath=$lt_cv_aix_libpath
13758 if ${lt_cv_aix_libpath__CXX+:} false; then :
13759 $as_echo_n "(cached) " >&6
13761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13762 /* end confdefs.h. */
13772 if ac_fn_cxx_try_link "$LINENO"; then :
13774 lt_aix_libpath_sed='
13775 /Import File Strings/,/^$/ {
13777 s/^0 *\([^ ]*\) *$/\1/
13781 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13782 # Check for a 64-bit object if we didn't find anything.
13783 if test -z "$lt_cv_aix_libpath__CXX"; then
13784 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13787 rm -f core conftest.err conftest.$ac_objext \
13788 conftest$ac_exeext conftest.$ac_ext
13789 if test -z "$lt_cv_aix_libpath__CXX"; then
13790 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13795 aix_libpath=$lt_cv_aix_libpath__CXX
13798 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13799 # Warning - without using the other run time loading flags,
13800 # -berok will link without error, but may produce a broken library.
13801 no_undefined_flag_CXX=' ${wl}-bernotok'
13802 allow_undefined_flag_CXX=' ${wl}-berok'
13803 if test "$with_gnu_ld" = yes; then
13804 # We only use this code for GNU lds that support --whole-archive.
13805 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13807 # Exported symbols can be pulled into shared objects from archives
13808 whole_archive_flag_spec_CXX='$convenience'
13810 archive_cmds_need_lc_CXX=yes
13811 # This is similar to how AIX traditionally builds its shared
13813 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'
13819 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13820 allow_undefined_flag_CXX=unsupported
13821 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13822 # support --undefined. This deserves some investigation. FIXME
13823 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13830 case $cc_basename in
13832 # FIXME: insert proper C++ library support
13838 cygwin* | mingw* | pw32* | cegcc*)
13839 case $GXX,$cc_basename in
13842 # hardcode_libdir_flag_spec is actually meaningless, as there is
13843 # no search path for DLLs.
13844 hardcode_libdir_flag_spec_CXX=' '
13845 allow_undefined_flag_CXX=unsupported
13846 always_export_symbols_CXX=yes
13847 file_list_spec_CXX='@'
13848 # Tell ltmain to make .lib files, not .a files.
13850 # Tell ltmain to make .dll files, not .so files.
13852 # FIXME: Setting linknames here is a bad hack.
13853 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
13854 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13855 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
13857 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
13859 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13861 # The linker will not automatically build a static lib if we build a DLL.
13862 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
13863 enable_shared_with_static_runtimes_CXX=yes
13865 old_postinstall_cmds_CXX='chmod 644 $oldlib'
13866 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
13867 lt_tool_outputfile="@TOOL_OUTPUT@"~
13868 case $lt_outputfile in
13871 lt_outputfile="$lt_outputfile.exe"
13872 lt_tool_outputfile="$lt_tool_outputfile.exe"
13875 func_to_tool_file "$lt_outputfile"~
13876 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
13877 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13878 $RM "$lt_outputfile.manifest";
13883 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13884 # as there is no search path for DLLs.
13885 hardcode_libdir_flag_spec_CXX='-L$libdir'
13886 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
13887 allow_undefined_flag_CXX=unsupported
13888 always_export_symbols_CXX=no
13889 enable_shared_with_static_runtimes_CXX=yes
13891 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13892 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'
13893 # If the export-symbols file already is a .def file (1st line
13894 # is EXPORTS), use it as is; otherwise, prepend...
13895 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13896 cp $export_symbols $output_objdir/$soname.def;
13898 echo EXPORTS > $output_objdir/$soname.def;
13899 cat $export_symbols >> $output_objdir/$soname.def;
13901 $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'
13908 darwin* | rhapsody*)
13911 archive_cmds_need_lc_CXX=no
13912 hardcode_direct_CXX=no
13913 hardcode_automatic_CXX=yes
13914 hardcode_shlibpath_var_CXX=unsupported
13915 if test "$lt_cv_ld_force_load" = "yes"; then
13916 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\"`'
13919 whole_archive_flag_spec_CXX=''
13921 link_all_deplibs_CXX=yes
13922 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13923 case $cc_basename in
13924 ifort*) _lt_dar_can_shared=yes ;;
13925 *) _lt_dar_can_shared=$GCC ;;
13927 if test "$_lt_dar_can_shared" = "yes"; then
13928 output_verbose_link_cmd=func_echo_all
13929 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}"
13930 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13931 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}"
13932 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}"
13933 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13934 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}"
13935 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}"
13945 case $cc_basename in
13947 # FIXME: insert proper C++ library support
13951 # Green Hills C++ Compiler
13952 # FIXME: insert proper C++ library support
13956 # FIXME: insert proper C++ library support
13963 # C++ shared libraries reported to be fairly broken before
13969 archive_cmds_need_lc_CXX=no
13972 freebsd* | dragonfly*)
13973 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13979 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13980 link_all_deplibs_CXX=yes
13984 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13985 hardcode_libdir_separator_CXX=:
13986 export_dynamic_flag_spec_CXX='${wl}-E'
13987 hardcode_direct_CXX=yes
13988 hardcode_minus_L_CXX=yes # Not in the search PATH,
13989 # but as the default
13990 # location of the library.
13992 case $cc_basename in
13994 # FIXME: insert proper C++ library support
13998 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'
13999 # Commands to make compiler produce verbose output that lists
14000 # what "hidden" libraries, object files and flags are used when
14001 # linking a shared library.
14003 # There doesn't appear to be a way to prevent this compiler from
14004 # explicitly linking system object files so we need to strip them
14005 # from the output so that they don't get included in the library
14007 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"'
14010 if test "$GXX" = yes; then
14011 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'
14013 # FIXME: insert proper C++ library support
14021 if test $with_gnu_ld = no; then
14022 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14023 hardcode_libdir_separator_CXX=:
14029 export_dynamic_flag_spec_CXX='${wl}-E'
14035 hardcode_direct_CXX=no
14036 hardcode_shlibpath_var_CXX=no
14039 hardcode_direct_CXX=yes
14040 hardcode_direct_absolute_CXX=yes
14041 hardcode_minus_L_CXX=yes # Not in the search PATH,
14042 # but as the default
14043 # location of the library.
14047 case $cc_basename in
14049 # FIXME: insert proper C++ library support
14055 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14058 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14061 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14064 # Commands to make compiler produce verbose output that lists
14065 # what "hidden" libraries, object files and flags are used when
14066 # linking a shared library.
14068 # There doesn't appear to be a way to prevent this compiler from
14069 # explicitly linking system object files so we need to strip them
14070 # from the output so that they don't get included in the library
14072 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"'
14075 if test "$GXX" = yes; then
14076 if test $with_gnu_ld = no; then
14079 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14082 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14085 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'
14090 # FIXME: insert proper C++ library support
14098 hardcode_direct_CXX=no
14099 hardcode_shlibpath_var_CXX=no
14100 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14101 export_dynamic_flag_spec_CXX='${wl}-E'
14102 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14103 # Instead, shared libraries are loaded at an image base (0x10000000 by
14104 # default) and relocated if they conflict, which is a slow very memory
14105 # consuming and fragmenting process. To avoid this, we pick a random,
14106 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14107 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14108 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'
14109 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'
14112 case $cc_basename in
14115 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'
14117 # Archives containing C++ object files must be created using
14118 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
14119 # necessary to make sure instantiated templates are included
14121 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
14124 if test "$GXX" = yes; then
14125 if test "$with_gnu_ld" = no; then
14126 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'
14128 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'
14131 link_all_deplibs_CXX=yes
14134 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14135 hardcode_libdir_separator_CXX=:
14136 inherit_rpath_CXX=yes
14139 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14140 case $cc_basename in
14142 # Kuck and Associates, Inc. (KAI) C++ Compiler
14144 # KCC will only create a shared library if the output file
14145 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14146 # to its proper name (with version) after linking.
14147 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'
14148 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'
14149 # Commands to make compiler produce verbose output that lists
14150 # what "hidden" libraries, object files and flags are used when
14151 # linking a shared library.
14153 # There doesn't appear to be a way to prevent this compiler from
14154 # explicitly linking system object files so we need to strip them
14155 # from the output so that they don't get included in the library
14157 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"'
14159 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14160 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14162 # Archives containing C++ object files must be created using
14163 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
14164 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14169 # version 8.0 and above of icpc choke on multiply defined symbols
14170 # if we add $predep_objects and $postdep_objects, however 7.1 and
14171 # earlier do not add the objects themselves.
14172 case `$CC -V 2>&1` in
14174 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14175 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'
14177 *) # Version 8.0 or newer
14180 ia64*) tmp_idyn=' -i_dynamic';;
14182 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14183 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'
14186 archive_cmds_need_lc_CXX=no
14187 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14188 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14189 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14192 # Portland Group C++ compiler
14194 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
14195 prelink_cmds_CXX='tpldir=Template.dir~
14197 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
14198 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
14199 old_archive_cmds_CXX='tpldir=Template.dir~
14201 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
14202 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
14204 archive_cmds_CXX='tpldir=Template.dir~
14206 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14207 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14208 archive_expsym_cmds_CXX='tpldir=Template.dir~
14210 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14211 $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'
14213 *) # Version 6 and above use weak symbols
14214 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14215 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'
14219 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
14220 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14221 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'
14225 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14226 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'
14228 runpath_var=LD_RUN_PATH
14229 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14230 hardcode_libdir_separator_CXX=:
14232 # Commands to make compiler produce verbose output that lists
14233 # what "hidden" libraries, object files and flags are used when
14234 # linking a shared library.
14236 # There doesn't appear to be a way to prevent this compiler from
14237 # explicitly linking system object files so we need to strip them
14238 # from the output so that they don't get included in the library
14240 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'
14242 xl* | mpixl* | bgxl*)
14243 # IBM XL 8.0 on PPC, with GNU ld
14244 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14245 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14246 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14247 if test "x$supports_anon_versioning" = xyes; then
14248 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
14249 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14250 echo "local: *; };" >> $output_objdir/$libname.ver~
14251 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14255 case `$CC -V 2>&1 | sed 5q` in
14258 no_undefined_flag_CXX=' -zdefs'
14259 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14260 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'
14261 hardcode_libdir_flag_spec_CXX='-R$libdir'
14262 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'
14263 compiler_needs_object_CXX=yes
14265 # Not sure whether something based on
14266 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
14268 output_verbose_link_cmd='func_echo_all'
14270 # Archives containing C++ object files must be created using
14271 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14272 # necessary to make sure instantiated templates are included
14274 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14282 # FIXME: insert proper C++ library support
14287 # FIXME: insert proper C++ library support
14292 case $cc_basename in
14294 # FIXME: insert proper C++ library support
14298 # FIXME: insert proper C++ library support
14305 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14306 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14308 hardcode_libdir_flag_spec_CXX='-R$libdir'
14309 hardcode_direct_CXX=yes
14310 hardcode_shlibpath_var_CXX=no
14312 # Workaround some broken pre-1.5 toolchains
14313 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14321 # C++ shared libraries are fairly broken
14326 if test -f /usr/libexec/ld.so; then
14327 hardcode_direct_CXX=yes
14328 hardcode_shlibpath_var_CXX=no
14329 hardcode_direct_absolute_CXX=yes
14330 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14331 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14332 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14333 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
14334 export_dynamic_flag_spec_CXX='${wl}-E'
14335 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14337 output_verbose_link_cmd=func_echo_all
14343 osf3* | osf4* | osf5*)
14344 case $cc_basename in
14346 # Kuck and Associates, Inc. (KAI) C++ Compiler
14348 # KCC will only create a shared library if the output file
14349 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14350 # to its proper name (with version) after linking.
14351 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'
14353 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14354 hardcode_libdir_separator_CXX=:
14356 # Archives containing C++ object files must be created using
14357 # the KAI C++ compiler.
14359 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14360 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14364 # Rational C++ 2.4.1
14365 # FIXME: insert proper C++ library support
14371 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14372 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'
14373 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14376 allow_undefined_flag_CXX=' -expect_unresolved \*'
14377 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'
14378 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14379 echo "-hidden">> $lib.exp~
14380 $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~
14382 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14386 hardcode_libdir_separator_CXX=:
14388 # Commands to make compiler produce verbose output that lists
14389 # what "hidden" libraries, object files and flags are used when
14390 # linking a shared library.
14392 # There doesn't appear to be a way to prevent this compiler from
14393 # explicitly linking system object files so we need to strip them
14394 # from the output so that they don't get included in the library
14396 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"'
14399 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14400 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14403 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'
14406 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'
14410 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14411 hardcode_libdir_separator_CXX=:
14413 # Commands to make compiler produce verbose output that lists
14414 # what "hidden" libraries, object files and flags are used when
14415 # linking a shared library.
14416 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14419 # FIXME: insert proper C++ library support
14427 # FIXME: insert proper C++ library support
14432 case $cc_basename in
14435 # FIXME: insert proper C++ library support
14440 # FIXME: insert proper C++ library support
14444 # FIXME: insert proper C++ library support
14451 case $cc_basename in
14453 # Sun C++ 4.2, 5.x and Centerline C++
14454 archive_cmds_need_lc_CXX=yes
14455 no_undefined_flag_CXX=' -zdefs'
14456 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14457 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14458 $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'
14460 hardcode_libdir_flag_spec_CXX='-R$libdir'
14461 hardcode_shlibpath_var_CXX=no
14463 solaris2.[0-5] | solaris2.[0-5].*) ;;
14465 # The compiler driver will combine and reorder linker options,
14466 # but understands `-z linker_flag'.
14467 # Supported since Solaris 2.6 (maybe 2.5.1?)
14468 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14471 link_all_deplibs_CXX=yes
14473 output_verbose_link_cmd='func_echo_all'
14475 # Archives containing C++ object files must be created using
14476 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14477 # necessary to make sure instantiated templates are included
14479 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14482 # Green Hills C++ Compiler
14483 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14485 # The C++ compiler must be used to create the archive.
14486 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14489 # GNU C++ compiler with Solaris linker
14490 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14491 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14492 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14493 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14494 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14495 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14497 # Commands to make compiler produce verbose output that lists
14498 # what "hidden" libraries, object files and flags are used when
14499 # linking a shared library.
14500 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14502 # g++ 2.7 appears to require `-G' NOT `-shared' on this
14504 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14505 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14506 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14508 # Commands to make compiler produce verbose output that lists
14509 # what "hidden" libraries, object files and flags are used when
14510 # linking a shared library.
14511 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14514 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14516 solaris2.[0-5] | solaris2.[0-5].*) ;;
14518 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14526 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14527 no_undefined_flag_CXX='${wl}-z,text'
14528 archive_cmds_need_lc_CXX=no
14529 hardcode_shlibpath_var_CXX=no
14530 runpath_var='LD_RUN_PATH'
14532 case $cc_basename in
14534 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14535 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14538 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14539 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14544 sysv5* | sco3.2v5* | sco5v6*)
14545 # Note: We can NOT use -z defs as we might desire, because we do not
14546 # link with -lc, and that would cause any symbols used from libc to
14547 # always be unresolved, which means just about no library would
14548 # ever link correctly. If we're not using GNU ld we use -z text
14549 # though, which does catch some bad symbols but isn't as heavy-handed
14551 no_undefined_flag_CXX='${wl}-z,text'
14552 allow_undefined_flag_CXX='${wl}-z,nodefs'
14553 archive_cmds_need_lc_CXX=no
14554 hardcode_shlibpath_var_CXX=no
14555 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14556 hardcode_libdir_separator_CXX=':'
14557 link_all_deplibs_CXX=yes
14558 export_dynamic_flag_spec_CXX='${wl}-Bexport'
14559 runpath_var='LD_RUN_PATH'
14561 case $cc_basename in
14563 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14564 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14565 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
14566 '"$old_archive_cmds_CXX"
14567 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
14568 '"$reload_cmds_CXX"
14571 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14572 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14578 case $cc_basename in
14580 # NonStop-UX NCC 3.20
14581 # FIXME: insert proper C++ library support
14585 # FIXME: insert proper C++ library support
14592 # FIXME: insert proper C++ library support
14597 # FIXME: insert proper C++ library support
14602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14603 $as_echo "$ld_shlibs_CXX" >&6; }
14604 test "$ld_shlibs_CXX" = no && can_build_shared=no
14610 ## There is no encapsulation within the following macros, do not change
14611 ## the running order or otherwise move them around unless you know exactly
14612 ## what you are doing...
14613 # Dependencies to place before and after the object being linked:
14614 predep_objects_CXX=
14615 postdep_objects_CXX=
14618 compiler_lib_search_path_CXX=
14620 cat > conftest.$ac_ext <<_LT_EOF
14624 Foo (void) { a = 0; }
14631 _lt_libdeps_save_CFLAGS=$CFLAGS
14632 case "$CC $CFLAGS " in #(
14633 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
14634 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
14635 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
14638 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14639 (eval $ac_compile) 2>&5
14641 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14642 test $ac_status = 0; }; then
14643 # Parse the compiler output and extract the necessary
14644 # objects, libraries and library flags.
14646 # Sentinel used to keep track of whether or not we are before
14647 # the conftest object file.
14648 pre_test_object_deps_done=no
14650 for p in `eval "$output_verbose_link_cmd"`; do
14651 case ${prev}${p} in
14654 # Some compilers place space between "-{L,R}" and the path.
14655 # Remove the space.
14656 if test $p = "-L" ||
14657 test $p = "-R"; then
14662 # Expand the sysroot to ease extracting the directories later.
14663 if test -z "$prev"; then
14665 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
14666 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
14667 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
14671 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
14673 if test "$pre_test_object_deps_done" = no; then
14676 # Internal compiler library paths should come after those
14677 # provided the user. The postdeps already come after the
14678 # user supplied libs so there is no need to process them.
14679 if test -z "$compiler_lib_search_path_CXX"; then
14680 compiler_lib_search_path_CXX="${prev}${p}"
14682 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14685 # The "-l" case would never come before the object being
14686 # linked, so don't bother handling this case.
14689 if test -z "$postdeps_CXX"; then
14690 postdeps_CXX="${prev}${p}"
14692 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14698 *.lto.$objext) ;; # Ignore GCC LTO objects
14700 # This assumes that the test object file only shows up
14701 # once in the compiler output.
14702 if test "$p" = "conftest.$objext"; then
14703 pre_test_object_deps_done=yes
14707 if test "$pre_test_object_deps_done" = no; then
14708 if test -z "$predep_objects_CXX"; then
14709 predep_objects_CXX="$p"
14711 predep_objects_CXX="$predep_objects_CXX $p"
14714 if test -z "$postdep_objects_CXX"; then
14715 postdep_objects_CXX="$p"
14717 postdep_objects_CXX="$postdep_objects_CXX $p"
14722 *) ;; # Ignore the rest.
14730 echo "libtool.m4: error: problem compiling CXX test program"
14733 $RM -f confest.$objext
14734 CFLAGS=$_lt_libdeps_save_CFLAGS
14736 # PORTME: override above test on systems where it is broken
14739 # Interix 3.5 installs completely hosed .la files for C++, so rather than
14740 # hack all around it, let's just trust "g++" to DTRT.
14741 predep_objects_CXX=
14742 postdep_objects_CXX=
14747 case `$CC -V 2>&1 | sed 5q` in
14751 # The more standards-conforming stlport4 library is
14752 # incompatible with the Cstd library. Avoid specifying
14753 # it if it's in CXXFLAGS. Ignore libCrun as
14754 # -library=stlport4 depends on it.
14755 case " $CXX $CXXFLAGS " in
14756 *" -library=stlport4 "*)
14757 solaris_use_stlport4=yes
14761 if test "$solaris_use_stlport4" != yes; then
14762 postdeps_CXX='-library=Cstd -library=Crun'
14769 case $cc_basename in
14771 # The more standards-conforming stlport4 library is
14772 # incompatible with the Cstd library. Avoid specifying
14773 # it if it's in CXXFLAGS. Ignore libCrun as
14774 # -library=stlport4 depends on it.
14775 case " $CXX $CXXFLAGS " in
14776 *" -library=stlport4 "*)
14777 solaris_use_stlport4=yes
14781 # Adding this requires a known-good setup of shared libraries for
14782 # Sun compiler versions before 5.6, else PIC objects from an old
14783 # archive will be linked into the output, leading to subtle bugs.
14784 if test "$solaris_use_stlport4" != yes; then
14785 postdeps_CXX='-library=Cstd -library=Crun'
14793 case " $postdeps_CXX " in
14794 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14796 compiler_lib_search_dirs_CXX=
14797 if test -n "${compiler_lib_search_path_CXX}"; then
14798 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14831 lt_prog_compiler_wl_CXX=
14832 lt_prog_compiler_pic_CXX=
14833 lt_prog_compiler_static_CXX=
14836 # C++ specific cases for pic, static, wl, etc.
14837 if test "$GXX" = yes; then
14838 lt_prog_compiler_wl_CXX='-Wl,'
14839 lt_prog_compiler_static_CXX='-static'
14843 # All AIX code is PIC.
14844 if test "$host_cpu" = ia64; then
14845 # AIX 5 now supports IA64 processor
14846 lt_prog_compiler_static_CXX='-Bstatic'
14853 # see comment about AmigaOS4 .so support
14854 lt_prog_compiler_pic_CXX='-fPIC'
14857 # FIXME: we need at least 68020 code to build shared libraries, but
14858 # adding the `-m68020' flag to GCC prevents building anything better,
14860 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14865 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14866 # PIC is the default for these OSes.
14868 mingw* | cygwin* | os2* | pw32* | cegcc*)
14869 # This hack is so that the source file can tell whether it is being
14870 # built for inclusion in a dll (and should export symbols for example).
14871 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14872 # (--disable-auto-import) libraries
14873 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14875 darwin* | rhapsody*)
14876 # PIC is the default on this platform
14877 # Common symbols not allowed in MH_DYLIB files
14878 lt_prog_compiler_pic_CXX='-fno-common'
14881 # DJGPP does not support shared libraries at all
14882 lt_prog_compiler_pic_CXX=
14885 # PIC is the default for Haiku.
14886 # The "-static" flag exists, but is broken.
14887 lt_prog_compiler_static_CXX=
14890 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14891 # Instead, we relocate shared libraries at runtime.
14894 if test -d /usr/nec; then
14895 lt_prog_compiler_pic_CXX=-Kconform_pic
14899 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14900 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14901 # sets the default TLS model and affects inlining.
14906 lt_prog_compiler_pic_CXX='-fPIC'
14911 # QNX uses GNU C++, but need to define -shared option too, otherwise
14912 # it will coredump.
14913 lt_prog_compiler_pic_CXX='-fPIC -shared'
14916 lt_prog_compiler_pic_CXX='-fPIC'
14922 # All AIX code is PIC.
14923 if test "$host_cpu" = ia64; then
14924 # AIX 5 now supports IA64 processor
14925 lt_prog_compiler_static_CXX='-Bstatic'
14927 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14931 case $cc_basename in
14933 # Green Hills C++ Compiler
14934 # _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"
14938 mingw* | cygwin* | os2* | pw32* | cegcc*)
14939 # This hack is so that the source file can tell whether it is being
14940 # built for inclusion in a dll (and should export symbols for example).
14941 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14944 case $cc_basename in
14946 lt_prog_compiler_pic_CXX='-KPIC'
14949 # Green Hills C++ Compiler
14950 lt_prog_compiler_pic_CXX='-pic'
14956 freebsd* | dragonfly*)
14957 # FreeBSD uses GNU C++
14959 hpux9* | hpux10* | hpux11*)
14960 case $cc_basename in
14962 lt_prog_compiler_wl_CXX='-Wl,'
14963 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14964 if test "$host_cpu" != ia64; then
14965 lt_prog_compiler_pic_CXX='+Z'
14969 lt_prog_compiler_wl_CXX='-Wl,'
14970 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14976 lt_prog_compiler_pic_CXX='+Z'
14985 # This is c89, which is MS Visual C++ (no shared libs)
14986 # Anyone wants to do a port?
14988 irix5* | irix6* | nonstopux*)
14989 case $cc_basename in
14991 lt_prog_compiler_wl_CXX='-Wl,'
14992 lt_prog_compiler_static_CXX='-non_shared'
14993 # CC pic flag -KPIC is the default.
14999 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15000 case $cc_basename in
15003 lt_prog_compiler_wl_CXX='--backend -Wl,'
15004 lt_prog_compiler_pic_CXX='-fPIC'
15007 # old Intel C++ for x86_64 which still supported -KPIC.
15008 lt_prog_compiler_wl_CXX='-Wl,'
15009 lt_prog_compiler_pic_CXX='-KPIC'
15010 lt_prog_compiler_static_CXX='-static'
15013 # Intel C++, used to be incompatible with GCC.
15014 # ICC 10 doesn't accept -KPIC any more.
15015 lt_prog_compiler_wl_CXX='-Wl,'
15016 lt_prog_compiler_pic_CXX='-fPIC'
15017 lt_prog_compiler_static_CXX='-static'
15020 # Portland Group C++ compiler
15021 lt_prog_compiler_wl_CXX='-Wl,'
15022 lt_prog_compiler_pic_CXX='-fpic'
15023 lt_prog_compiler_static_CXX='-Bstatic'
15027 # Make sure the PIC flag is empty. It appears that all Alpha
15028 # Linux and Compaq Tru64 Unix objects are PIC.
15029 lt_prog_compiler_pic_CXX=
15030 lt_prog_compiler_static_CXX='-non_shared'
15032 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
15033 # IBM XL 8.0, 9.0 on PPC and BlueGene
15034 lt_prog_compiler_wl_CXX='-Wl,'
15035 lt_prog_compiler_pic_CXX='-qpic'
15036 lt_prog_compiler_static_CXX='-qstaticlink'
15039 case `$CC -V 2>&1 | sed 5q` in
15042 lt_prog_compiler_pic_CXX='-KPIC'
15043 lt_prog_compiler_static_CXX='-Bstatic'
15044 lt_prog_compiler_wl_CXX='-Qoption ld '
15055 case $cc_basename in
15057 lt_prog_compiler_pic_CXX='-W c,exportall'
15063 netbsd* | netbsdelf*-gnu)
15066 # QNX uses GNU C++, but need to define -shared option too, otherwise
15067 # it will coredump.
15068 lt_prog_compiler_pic_CXX='-fPIC -shared'
15070 osf3* | osf4* | osf5*)
15071 case $cc_basename in
15073 lt_prog_compiler_wl_CXX='--backend -Wl,'
15076 # Rational C++ 2.4.1
15077 lt_prog_compiler_pic_CXX='-pic'
15080 # Digital/Compaq C++
15081 lt_prog_compiler_wl_CXX='-Wl,'
15082 # Make sure the PIC flag is empty. It appears that all Alpha
15083 # Linux and Compaq Tru64 Unix objects are PIC.
15084 lt_prog_compiler_pic_CXX=
15085 lt_prog_compiler_static_CXX='-non_shared'
15094 case $cc_basename in
15096 # Sun C++ 4.2, 5.x and Centerline C++
15097 lt_prog_compiler_pic_CXX='-KPIC'
15098 lt_prog_compiler_static_CXX='-Bstatic'
15099 lt_prog_compiler_wl_CXX='-Qoption ld '
15102 # Green Hills C++ Compiler
15103 lt_prog_compiler_pic_CXX='-PIC'
15110 case $cc_basename in
15113 lt_prog_compiler_pic_CXX='-pic'
15114 lt_prog_compiler_static_CXX='-Bstatic'
15118 lt_prog_compiler_pic_CXX='-pic'
15124 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15125 case $cc_basename in
15127 lt_prog_compiler_wl_CXX='-Wl,'
15128 lt_prog_compiler_pic_CXX='-KPIC'
15129 lt_prog_compiler_static_CXX='-Bstatic'
15134 case $cc_basename in
15136 # NonStop-UX NCC 3.20
15137 lt_prog_compiler_pic_CXX='-KPIC'
15146 lt_prog_compiler_can_build_shared_CXX=no
15152 # For platforms which do not support PIC, -DPIC is meaningless:
15154 lt_prog_compiler_pic_CXX=
15157 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
15161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15162 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15163 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
15164 $as_echo_n "(cached) " >&6
15166 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
15168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
15169 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
15170 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
15173 # Check to make sure the PIC flag actually works.
15175 if test -n "$lt_prog_compiler_pic_CXX"; then
15176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
15177 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
15178 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
15179 $as_echo_n "(cached) " >&6
15181 lt_cv_prog_compiler_pic_works_CXX=no
15182 ac_outfile=conftest.$ac_objext
15183 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15184 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
15185 # Insert the option either (1) after the last *FLAGS variable, or
15186 # (2) before a word containing "conftest.", or (3) at the end.
15187 # Note that $ac_compile itself does not contain backslashes and begins
15188 # with a dollar sign (not a hyphen), so the echo should work correctly.
15189 # The option is referenced via a variable to avoid confusing sed.
15190 lt_compile=`echo "$ac_compile" | $SED \
15191 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15192 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15193 -e 's:$: $lt_compiler_flag:'`
15194 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15195 (eval "$lt_compile" 2>conftest.err)
15197 cat conftest.err >&5
15198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15199 if (exit $ac_status) && test -s "$ac_outfile"; then
15200 # The compiler can only warn and ignore the option if not recognized
15201 # So say no if there are warnings other than the usual output.
15202 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15203 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15204 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15205 lt_cv_prog_compiler_pic_works_CXX=yes
15211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
15212 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
15214 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
15215 case $lt_prog_compiler_pic_CXX in
15217 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
15220 lt_prog_compiler_pic_CXX=
15221 lt_prog_compiler_can_build_shared_CXX=no
15231 # Check to make sure the static flag actually works.
15233 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
15234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15235 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15236 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
15237 $as_echo_n "(cached) " >&6
15239 lt_cv_prog_compiler_static_works_CXX=no
15240 save_LDFLAGS="$LDFLAGS"
15241 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15242 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15243 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15244 # The linker can only warn and ignore the option if not recognized
15245 # So say no if there are warnings
15246 if test -s conftest.err; then
15247 # Append any errors to the config.log.
15248 cat conftest.err 1>&5
15249 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15250 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15251 if diff conftest.exp conftest.er2 >/dev/null; then
15252 lt_cv_prog_compiler_static_works_CXX=yes
15255 lt_cv_prog_compiler_static_works_CXX=yes
15259 LDFLAGS="$save_LDFLAGS"
15262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
15263 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
15265 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
15268 lt_prog_compiler_static_CXX=
15274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15275 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15276 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15277 $as_echo_n "(cached) " >&6
15279 lt_cv_prog_compiler_c_o_CXX=no
15280 $RM -r conftest 2>/dev/null
15284 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15286 lt_compiler_flag="-o out/conftest2.$ac_objext"
15287 # Insert the option either (1) after the last *FLAGS variable, or
15288 # (2) before a word containing "conftest.", or (3) at the end.
15289 # Note that $ac_compile itself does not contain backslashes and begins
15290 # with a dollar sign (not a hyphen), so the echo should work correctly.
15291 lt_compile=`echo "$ac_compile" | $SED \
15292 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15293 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15294 -e 's:$: $lt_compiler_flag:'`
15295 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15296 (eval "$lt_compile" 2>out/conftest.err)
15298 cat out/conftest.err >&5
15299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15300 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15302 # The compiler can only warn and ignore the option if not recognized
15303 # So say no if there are warnings
15304 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15305 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15306 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15307 lt_cv_prog_compiler_c_o_CXX=yes
15312 # SGI C++ compiler will create directory out/ii_files/ for
15313 # template instantiation
15314 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15315 $RM out/* && rmdir out
15321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15322 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15327 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15328 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15329 $as_echo_n "(cached) " >&6
15331 lt_cv_prog_compiler_c_o_CXX=no
15332 $RM -r conftest 2>/dev/null
15336 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15338 lt_compiler_flag="-o out/conftest2.$ac_objext"
15339 # Insert the option either (1) after the last *FLAGS variable, or
15340 # (2) before a word containing "conftest.", or (3) at the end.
15341 # Note that $ac_compile itself does not contain backslashes and begins
15342 # with a dollar sign (not a hyphen), so the echo should work correctly.
15343 lt_compile=`echo "$ac_compile" | $SED \
15344 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15345 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15346 -e 's:$: $lt_compiler_flag:'`
15347 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15348 (eval "$lt_compile" 2>out/conftest.err)
15350 cat out/conftest.err >&5
15351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15352 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15354 # The compiler can only warn and ignore the option if not recognized
15355 # So say no if there are warnings
15356 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15357 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15358 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15359 lt_cv_prog_compiler_c_o_CXX=yes
15364 # SGI C++ compiler will create directory out/ii_files/ for
15365 # template instantiation
15366 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15367 $RM out/* && rmdir out
15373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15374 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15379 hard_links="nottested"
15380 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
15381 # do not overwrite the value of need_locks provided by the user
15382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15383 $as_echo_n "checking if we can lock with hard links... " >&6; }
15386 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15388 ln conftest.a conftest.b 2>&5 || hard_links=no
15389 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15391 $as_echo "$hard_links" >&6; }
15392 if test "$hard_links" = no; then
15393 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15394 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15404 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15406 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15407 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15410 # If we're using GNU nm, then we don't want the "-C" option.
15411 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15412 # Also, AIX nm treats weak defined symbols like other global defined
15413 # symbols, whereas GNU nm marks them as "W".
15414 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15415 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'
15417 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'
15421 export_symbols_cmds_CXX="$ltdll_cmds"
15423 cygwin* | mingw* | cegcc*)
15424 case $cc_basename in
15426 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
15429 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'
15430 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
15434 linux* | k*bsd*-gnu | gnu*)
15435 link_all_deplibs_CXX=no
15438 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15443 $as_echo "$ld_shlibs_CXX" >&6; }
15444 test "$ld_shlibs_CXX" = no && can_build_shared=no
15446 with_gnu_ld_CXX=$with_gnu_ld
15454 # Do we need to explicitly link libc?
15456 case "x$archive_cmds_need_lc_CXX" in
15458 # Assume -lc should be added
15459 archive_cmds_need_lc_CXX=yes
15461 if test "$enable_shared" = yes && test "$GCC" = yes; then
15462 case $archive_cmds_CXX in
15464 # FIXME: we may have to deal with multi-command sequences.
15467 # Test whether the compiler implicitly links with -lc since on some
15468 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15469 # to ld, don't add -lc before -lgcc.
15470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15471 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15472 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
15473 $as_echo_n "(cached) " >&6
15476 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15478 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15479 (eval $ac_compile) 2>&5
15481 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15482 test $ac_status = 0; } 2>conftest.err; then
15485 libobjs=conftest.$ac_objext
15487 wl=$lt_prog_compiler_wl_CXX
15488 pic_flag=$lt_prog_compiler_pic_CXX
15494 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15495 allow_undefined_flag_CXX=
15496 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15497 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15499 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15500 test $ac_status = 0; }
15502 lt_cv_archive_cmds_need_lc_CXX=no
15504 lt_cv_archive_cmds_need_lc_CXX=yes
15506 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15508 cat conftest.err 1>&5
15513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
15514 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
15515 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
15583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15584 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15586 library_names_spec=
15587 libname_spec='lib$name'
15591 postuninstall_cmds=
15595 shlibpath_overrides_runpath=unknown
15597 dynamic_linker="$host_os ld.so"
15598 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15599 need_lib_prefix=unknown
15600 hardcode_into_libs=no
15602 # when you set need_version to no, make sure it does not cause -set_version
15603 # flags to be left without arguments
15604 need_version=unknown
15608 version_type=linux # correct to gnu/linux during the next big refactor
15609 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15610 shlibpath_var=LIBPATH
15612 # AIX 3 has no versioning support, so we append a major version to the name.
15613 soname_spec='${libname}${release}${shared_ext}$major'
15617 version_type=linux # correct to gnu/linux during the next big refactor
15620 hardcode_into_libs=yes
15621 if test "$host_cpu" = ia64; then
15622 # AIX 5 supports IA64
15623 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15624 shlibpath_var=LD_LIBRARY_PATH
15626 # With GCC up to 2.95.x, collect2 would create an import file
15627 # for dependence libraries. The import file would start with
15628 # the line `#! .'. This would cause the generated library to
15629 # depend on `.', always an invalid library. This was fixed in
15630 # development snapshots of GCC prior to 3.0.
15632 aix4 | aix4.[01] | aix4.[01].*)
15633 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15635 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15638 can_build_shared=no
15642 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15643 # soname into executable. Probably we can add versioning support to
15644 # collect2, so additional links can be useful in future.
15645 if test "$aix_use_runtimelinking" = yes; then
15646 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15647 # instead of lib<name>.a to let people know that these are not
15648 # typical AIX shared libraries.
15649 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15651 # We preserve .a as extension for shared libraries through AIX4.2
15652 # and later when we are not doing run time linking.
15653 library_names_spec='${libname}${release}.a $libname.a'
15654 soname_spec='${libname}${release}${shared_ext}$major'
15656 shlibpath_var=LIBPATH
15663 # Since July 2007 AmigaOS4 officially supports .so libraries.
15664 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15665 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15668 library_names_spec='$libname.ixlibrary $libname.a'
15669 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15670 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'
15676 library_names_spec='${libname}${shared_ext}'
15677 dynamic_linker="$host_os ld.so"
15678 shlibpath_var=LIBRARY_PATH
15682 version_type=linux # correct to gnu/linux during the next big refactor
15684 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15685 soname_spec='${libname}${release}${shared_ext}$major'
15686 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15687 shlibpath_var=LD_LIBRARY_PATH
15688 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15689 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15690 # the default ld.so.conf also contains /usr/contrib/lib and
15691 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15692 # libtool to hard-code these into programs
15695 cygwin* | mingw* | pw32* | cegcc*)
15696 version_type=windows
15701 case $GCC,$cc_basename in
15704 library_names_spec='$libname.dll.a'
15705 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15706 postinstall_cmds='base_file=`basename \${file}`~
15707 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15708 dldir=$destdir/`dirname \$dlpath`~
15709 test -d \$dldir || mkdir -p \$dldir~
15710 $install_prog $dir/$dlname \$dldir/$dlname~
15711 chmod a+x \$dldir/$dlname~
15712 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15713 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15715 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15716 dlpath=$dir/\$dldll~
15718 shlibpath_overrides_runpath=yes
15722 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15723 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15727 # MinGW DLLs use traditional 'lib' prefix
15728 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15731 # pw32 DLLs use 'pw' prefix rather than 'lib'
15732 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15735 dynamic_linker='Win32 ld.exe'
15740 libname_spec='$name'
15741 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15742 library_names_spec='${libname}.dll.lib'
15746 sys_lib_search_path_spec=
15749 for lt_path in $LIB
15752 # Let DOS variable expansion print the short 8.3 style file name.
15753 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15754 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15757 # Convert to MSYS style.
15758 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15761 # Convert to unix form, then to dos form, then back to unix form
15762 # but this time dos style (no spaces!) so that the unix form looks
15763 # like /cygdrive/c/PROGRA~1:/cygdr...
15764 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15765 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15766 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15769 sys_lib_search_path_spec="$LIB"
15770 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15771 # It is most probably a Windows format PATH.
15772 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15774 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15776 # FIXME: find the short name or the path components, as spaces are
15777 # common. (e.g. "Program Files" -> "PROGRA~1")
15781 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15782 postinstall_cmds='base_file=`basename \${file}`~
15783 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15784 dldir=$destdir/`dirname \$dlpath`~
15785 test -d \$dldir || mkdir -p \$dldir~
15786 $install_prog $dir/$dlname \$dldir/$dlname'
15787 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15788 dlpath=$dir/\$dldll~
15790 shlibpath_overrides_runpath=yes
15791 dynamic_linker='Win32 link.exe'
15795 # Assume MSVC wrapper
15796 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15797 dynamic_linker='Win32 ld.exe'
15800 # FIXME: first we should search . and the directory the executable is in
15804 darwin* | rhapsody*)
15805 dynamic_linker="$host_os dyld"
15806 version_type=darwin
15809 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15810 soname_spec='${libname}${release}${major}$shared_ext'
15811 shlibpath_overrides_runpath=yes
15812 shlibpath_var=DYLD_LIBRARY_PATH
15813 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15815 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15819 version_type=linux # correct to gnu/linux during the next big refactor
15822 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15823 soname_spec='${libname}${release}${shared_ext}$major'
15824 shlibpath_var=LD_LIBRARY_PATH
15827 freebsd* | dragonfly*)
15828 # DragonFly does not have aout. When/if they implement a new
15829 # versioning mechanism, adjust this.
15830 if test -x /usr/bin/objformat; then
15831 objformat=`/usr/bin/objformat`
15834 freebsd[23].*) objformat=aout ;;
15835 *) objformat=elf ;;
15838 version_type=freebsd-$objformat
15839 case $version_type in
15841 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15846 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15850 shlibpath_var=LD_LIBRARY_PATH
15853 shlibpath_overrides_runpath=yes
15855 freebsd3.[01]* | freebsdelf3.[01]*)
15856 shlibpath_overrides_runpath=yes
15857 hardcode_into_libs=yes
15859 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15860 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15861 shlibpath_overrides_runpath=no
15862 hardcode_into_libs=yes
15864 *) # from 4.6 on, and DragonFly
15865 shlibpath_overrides_runpath=yes
15866 hardcode_into_libs=yes
15872 version_type=linux # correct to gnu/linux during the next big refactor
15875 dynamic_linker="$host_os runtime_loader"
15876 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15877 soname_spec='${libname}${release}${shared_ext}$major'
15878 shlibpath_var=LIBRARY_PATH
15879 shlibpath_overrides_runpath=yes
15880 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15881 hardcode_into_libs=yes
15884 hpux9* | hpux10* | hpux11*)
15885 # Give a soname corresponding to the major version so that dld.sl refuses to
15886 # link against other versions.
15893 hardcode_into_libs=yes
15894 dynamic_linker="$host_os dld.so"
15895 shlibpath_var=LD_LIBRARY_PATH
15896 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15897 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15898 soname_spec='${libname}${release}${shared_ext}$major'
15899 if test "X$HPUX_IA64_MODE" = X32; then
15900 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15902 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15904 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15908 hardcode_into_libs=yes
15909 dynamic_linker="$host_os dld.sl"
15910 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15911 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15912 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15913 soname_spec='${libname}${release}${shared_ext}$major'
15914 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15915 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15919 dynamic_linker="$host_os dld.sl"
15920 shlibpath_var=SHLIB_PATH
15921 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15922 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15923 soname_spec='${libname}${release}${shared_ext}$major'
15926 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15927 postinstall_cmds='chmod 555 $lib'
15928 # or fails outright, so override atomically:
15929 install_override_mode=555
15933 version_type=linux # correct to gnu/linux during the next big refactor
15936 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15937 soname_spec='${libname}${release}${shared_ext}$major'
15938 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15939 shlibpath_var=LD_LIBRARY_PATH
15940 shlibpath_overrides_runpath=no
15941 hardcode_into_libs=yes
15944 irix5* | irix6* | nonstopux*)
15946 nonstopux*) version_type=nonstopux ;;
15948 if test "$lt_cv_prog_gnu_ld" = yes; then
15949 version_type=linux # correct to gnu/linux during the next big refactor
15956 soname_spec='${libname}${release}${shared_ext}$major'
15957 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15959 irix5* | nonstopux*)
15960 libsuff= shlibsuff=
15963 case $LD in # libtool.m4 will add one of these switches to LD
15964 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15965 libsuff= shlibsuff= libmagic=32-bit;;
15966 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15967 libsuff=32 shlibsuff=N32 libmagic=N32;;
15968 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15969 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15970 *) libsuff= shlibsuff= libmagic=never-match;;
15974 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15975 shlibpath_overrides_runpath=no
15976 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15977 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15978 hardcode_into_libs=yes
15981 # No shared lib support for Linux oldld, aout, or coff.
15982 linux*oldld* | linux*aout* | linux*coff*)
15986 # This must be glibc/ELF.
15987 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15988 version_type=linux # correct to gnu/linux during the next big refactor
15991 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15992 soname_spec='${libname}${release}${shared_ext}$major'
15993 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15994 shlibpath_var=LD_LIBRARY_PATH
15995 shlibpath_overrides_runpath=no
15997 # Some binutils ld are patched to set DT_RUNPATH
15998 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15999 $as_echo_n "(cached) " >&6
16001 lt_cv_shlibpath_overrides_runpath=no
16002 save_LDFLAGS=$LDFLAGS
16003 save_libdir=$libdir
16004 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
16005 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
16006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16007 /* end confdefs.h. */
16017 if ac_fn_cxx_try_link "$LINENO"; then :
16018 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
16019 lt_cv_shlibpath_overrides_runpath=yes
16022 rm -f core conftest.err conftest.$ac_objext \
16023 conftest$ac_exeext conftest.$ac_ext
16024 LDFLAGS=$save_LDFLAGS
16025 libdir=$save_libdir
16029 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16031 # This implies no fast_install, which is unacceptable.
16032 # Some rework will be needed to allow for fast_install
16033 # before this can be enabled.
16034 hardcode_into_libs=yes
16036 # Append ld.so.conf contents to the search path
16037 if test -f /etc/ld.so.conf; then
16038 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
16039 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16042 # We used to test for /lib/ld.so.1 and disable shared libraries on
16043 # powerpc, because MkLinux only supported shared libraries with the
16044 # GNU dynamic linker. Since this was broken with cross compilers,
16045 # most powerpc-linux boxes support dynamic linking these days and
16046 # people can always --disable-shared, the test was removed, and we
16047 # assume the GNU/Linux dynamic linker is in use.
16048 dynamic_linker='GNU/Linux ld.so'
16055 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16056 soname_spec='${libname}${release}${shared_ext}$major'
16057 shlibpath_var=LD_LIBRARY_PATH
16058 shlibpath_overrides_runpath=no
16059 hardcode_into_libs=yes
16060 dynamic_linker='NetBSD ld.elf_so'
16067 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16068 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16069 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16070 dynamic_linker='NetBSD (a.out) ld.so'
16072 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16073 soname_spec='${libname}${release}${shared_ext}$major'
16074 dynamic_linker='NetBSD ld.elf_so'
16076 shlibpath_var=LD_LIBRARY_PATH
16077 shlibpath_overrides_runpath=yes
16078 hardcode_into_libs=yes
16082 version_type=linux # correct to gnu/linux during the next big refactor
16083 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16084 shlibpath_var=LD_LIBRARY_PATH
16085 shlibpath_overrides_runpath=yes
16092 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16093 soname_spec='${libname}${release}${shared_ext}$major'
16094 shlibpath_var=LD_LIBRARY_PATH
16095 shlibpath_overrides_runpath=no
16096 hardcode_into_libs=yes
16097 dynamic_linker='ldqnx.so'
16102 sys_lib_dlsearch_path_spec="/usr/lib"
16104 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16106 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16107 *) need_version=no ;;
16109 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16110 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16111 shlibpath_var=LD_LIBRARY_PATH
16112 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16114 openbsd2.[89] | openbsd2.[89].*)
16115 shlibpath_overrides_runpath=no
16118 shlibpath_overrides_runpath=yes
16122 shlibpath_overrides_runpath=yes
16127 libname_spec='$name'
16130 library_names_spec='$libname${shared_ext} $libname.a'
16131 dynamic_linker='OS/2 ld.exe'
16132 shlibpath_var=LIBPATH
16135 osf3* | osf4* | osf5*)
16139 soname_spec='${libname}${release}${shared_ext}$major'
16140 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16141 shlibpath_var=LD_LIBRARY_PATH
16142 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16143 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16151 version_type=linux # correct to gnu/linux during the next big refactor
16154 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16155 soname_spec='${libname}${release}${shared_ext}$major'
16156 shlibpath_var=LD_LIBRARY_PATH
16157 shlibpath_overrides_runpath=yes
16158 hardcode_into_libs=yes
16159 # ldd complains unless libraries are executable
16160 postinstall_cmds='chmod +x $lib'
16165 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16166 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16167 shlibpath_var=LD_LIBRARY_PATH
16168 shlibpath_overrides_runpath=yes
16169 if test "$with_gnu_ld" = yes; then
16176 version_type=linux # correct to gnu/linux during the next big refactor
16177 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16178 soname_spec='${libname}${release}${shared_ext}$major'
16179 shlibpath_var=LD_LIBRARY_PATH
16180 case $host_vendor in
16182 shlibpath_overrides_runpath=no
16184 runpath_var=LD_RUN_PATH
16192 shlibpath_overrides_runpath=no
16193 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16199 if test -d /usr/nec ;then
16200 version_type=linux # correct to gnu/linux during the next big refactor
16201 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16202 soname_spec='$libname${shared_ext}.$major'
16203 shlibpath_var=LD_LIBRARY_PATH
16207 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16208 version_type=freebsd-elf
16211 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16212 soname_spec='${libname}${release}${shared_ext}$major'
16213 shlibpath_var=LD_LIBRARY_PATH
16214 shlibpath_overrides_runpath=yes
16215 hardcode_into_libs=yes
16216 if test "$with_gnu_ld" = yes; then
16217 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16219 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16222 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16226 sys_lib_dlsearch_path_spec='/usr/lib'
16230 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
16231 version_type=linux # correct to gnu/linux during the next big refactor
16234 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16235 shlibpath_var=LD_LIBRARY_PATH
16236 shlibpath_overrides_runpath=no
16237 hardcode_into_libs=yes
16241 version_type=linux # correct to gnu/linux during the next big refactor
16242 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16243 soname_spec='${libname}${release}${shared_ext}$major'
16244 shlibpath_var=LD_LIBRARY_PATH
16251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16252 $as_echo "$dynamic_linker" >&6; }
16253 test "$dynamic_linker" = no && can_build_shared=no
16255 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16256 if test "$GCC" = yes; then
16257 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16260 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16261 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16263 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16264 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16305 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16306 hardcode_action_CXX=
16307 if test -n "$hardcode_libdir_flag_spec_CXX" ||
16308 test -n "$runpath_var_CXX" ||
16309 test "X$hardcode_automatic_CXX" = "Xyes" ; then
16311 # We can hardcode non-existent directories.
16312 if test "$hardcode_direct_CXX" != no &&
16313 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16314 # have to relink, otherwise we might link with an installed library
16315 # when we should be linking with a yet-to-be-installed one
16316 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
16317 test "$hardcode_minus_L_CXX" != no; then
16318 # Linking always hardcodes the temporary library directory.
16319 hardcode_action_CXX=relink
16321 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16322 hardcode_action_CXX=immediate
16325 # We cannot hardcode anything, or else we can only hardcode existing
16327 hardcode_action_CXX=unsupported
16329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
16330 $as_echo "$hardcode_action_CXX" >&6; }
16332 if test "$hardcode_action_CXX" = relink ||
16333 test "$inherit_rpath_CXX" = yes; then
16334 # Fast installation is not supported
16335 enable_fast_install=no
16336 elif test "$shlibpath_overrides_runpath" = yes ||
16337 test "$enable_shared" = no; then
16338 # Fast installation is not necessary
16339 enable_fast_install=needless
16348 fi # test -n "$compiler"
16351 CFLAGS=$lt_save_CFLAGS
16355 with_gnu_ld=$lt_save_with_gnu_ld
16356 lt_cv_path_LDCXX=$lt_cv_path_LD
16357 lt_cv_path_LD=$lt_save_path_LD
16358 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16359 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16360 fi # test "$_lt_caught_CXX_error" != yes
16363 ac_cpp='$CPP $CPPFLAGS'
16364 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16365 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16366 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16382 ac_config_commands="$ac_config_commands libtool"
16387 # Only expand once:
16395 ac_cpp='$CPP $CPPFLAGS'
16396 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16397 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16398 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
16403 $as_echo_n "checking for library containing dlopen... " >&6; }
16404 if ${ac_cv_search_dlopen+:} false; then :
16405 $as_echo_n "(cached) " >&6
16407 ac_func_search_save_LIBS=$LIBS
16408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16409 /* end confdefs.h. */
16411 /* Override any GCC internal prototype to avoid an error.
16412 Use char because int might match the return type of a GCC
16413 builtin and then its argument prototype would still apply. */
16426 for ac_lib in '' dl; do
16427 if test -z "$ac_lib"; then
16428 ac_res="none required"
16431 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16433 if ac_fn_c_try_link "$LINENO"; then :
16434 ac_cv_search_dlopen=$ac_res
16436 rm -f core conftest.err conftest.$ac_objext \
16438 if ${ac_cv_search_dlopen+:} false; then :
16442 if ${ac_cv_search_dlopen+:} false; then :
16445 ac_cv_search_dlopen=no
16447 rm conftest.$ac_ext
16448 LIBS=$ac_func_search_save_LIBS
16450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
16451 $as_echo "$ac_cv_search_dlopen" >&6; }
16452 ac_res=$ac_cv_search_dlopen
16453 if test "$ac_res" != no; then :
16454 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16456 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
16458 if test "$ac_cv_search_dlopen" != "none required" ; then
16459 LIBADD_DLOPEN="-ldl"
16461 libltdl_cv_lib_dl_dlopen="yes"
16462 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
16464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16465 /* end confdefs.h. */
16467 # include <dlfcn.h>
16478 if ac_fn_c_try_link "$LINENO"; then :
16480 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
16482 libltdl_cv_func_dlopen="yes"
16483 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
16485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
16486 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
16487 if ${ac_cv_lib_svld_dlopen+:} false; then :
16488 $as_echo_n "(cached) " >&6
16490 ac_check_lib_save_LIBS=$LIBS
16491 LIBS="-lsvld $LIBS"
16492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16493 /* end confdefs.h. */
16495 /* Override any GCC internal prototype to avoid an error.
16496 Use char because int might match the return type of a GCC
16497 builtin and then its argument prototype would still apply. */
16510 if ac_fn_c_try_link "$LINENO"; then :
16511 ac_cv_lib_svld_dlopen=yes
16513 ac_cv_lib_svld_dlopen=no
16515 rm -f core conftest.err conftest.$ac_objext \
16516 conftest$ac_exeext conftest.$ac_ext
16517 LIBS=$ac_check_lib_save_LIBS
16519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
16520 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
16521 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
16523 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
16525 LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
16526 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
16530 rm -f core conftest.err conftest.$ac_objext \
16531 conftest$ac_exeext conftest.$ac_ext
16534 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
16536 lt_save_LIBS="$LIBS"
16537 LIBS="$LIBS $LIBADD_DLOPEN"
16538 for ac_func in dlerror
16540 ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror"
16541 if test "x$ac_cv_func_dlerror" = xyes; then :
16542 cat >>confdefs.h <<_ACEOF
16543 #define HAVE_DLERROR 1
16549 LIBS="$lt_save_LIBS"
16554 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
16555 if test "x$ac_cv_func_shl_load" = xyes; then :
16557 $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
16559 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
16561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
16562 $as_echo_n "checking for shl_load in -ldld... " >&6; }
16563 if ${ac_cv_lib_dld_shl_load+:} false; then :
16564 $as_echo_n "(cached) " >&6
16566 ac_check_lib_save_LIBS=$LIBS
16568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16569 /* end confdefs.h. */
16571 /* Override any GCC internal prototype to avoid an error.
16572 Use char because int might match the return type of a GCC
16573 builtin and then its argument prototype would still apply. */
16581 return shl_load ();
16586 if ac_fn_c_try_link "$LINENO"; then :
16587 ac_cv_lib_dld_shl_load=yes
16589 ac_cv_lib_dld_shl_load=no
16591 rm -f core conftest.err conftest.$ac_objext \
16592 conftest$ac_exeext conftest.$ac_ext
16593 LIBS=$ac_check_lib_save_LIBS
16595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
16596 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
16597 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
16599 $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
16601 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
16602 LIBADD_SHL_LOAD="-ldld"
16611 # We only want this for pre-Mac OS X 10.4.
16612 ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup"
16613 if test "x$ac_cv_func__dyld_func_lookup" = xyes; then :
16615 $as_echo "#define HAVE_DYLD 1" >>confdefs.h
16617 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
16622 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
16624 cygwin* | mingw* | os2* | pw32*)
16625 ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h>
16627 if test "x$ac_cv_have_decl_cygwin_conv_path" = xyes; then :
16633 cat >>confdefs.h <<_ACEOF
16634 #define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl
16637 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
16641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
16642 $as_echo_n "checking for dld_link in -ldld... " >&6; }
16643 if ${ac_cv_lib_dld_dld_link+:} false; then :
16644 $as_echo_n "(cached) " >&6
16646 ac_check_lib_save_LIBS=$LIBS
16648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16649 /* end confdefs.h. */
16651 /* Override any GCC internal prototype to avoid an error.
16652 Use char because int might match the return type of a GCC
16653 builtin and then its argument prototype would still apply. */
16661 return dld_link ();
16666 if ac_fn_c_try_link "$LINENO"; then :
16667 ac_cv_lib_dld_dld_link=yes
16669 ac_cv_lib_dld_dld_link=no
16671 rm -f core conftest.err conftest.$ac_objext \
16672 conftest$ac_exeext conftest.$ac_ext
16673 LIBS=$ac_check_lib_save_LIBS
16675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
16676 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
16677 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
16679 $as_echo "#define HAVE_DLD 1" >>confdefs.h
16681 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
16688 if test -n "$LT_DLLOADERS"
16690 for lt_loader in $LT_DLLOADERS; do
16691 LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
16694 $as_echo "#define HAVE_LIBDLLOADER 1" >>confdefs.h
16699 LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
16703 ac_cpp='$CPP $CPPFLAGS'
16704 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16705 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16706 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16711 if test x$use_libtool != xno; then
16712 DEFAULT_OBJECT_TYPE=".lo"
16713 DEFAULT_ARCHIVE_TYPE=".la"
16714 DEFAULT_SHARED_OBJECT_TYPE=".la"
16715 LIBTOOL="\$(LIBTOOL)"
16716 LIBTOOL_INSTALL_TARGET="libtool-install"
16717 LIBTOOL_UNINSTALL_TARGET="libtool-uninstall"
16718 LIBTOOL_CLEAN_TARGET="libtool-clean"
16719 QMAKE_LIBTOOL="${BUILD_DIR}/libtool"
16720 FD_PLUGIN_DIR="src/plugins/fd"
16723 DEFAULT_OBJECT_TYPE=".o"
16724 DEFAULT_ARCHIVE_TYPE=".a"
16725 DEFAULT_SHARED_OBJECT_TYPE=".so"
16726 LIBTOOL="# \$(LIBTOOL)"
16727 LIBTOOL_INSTALL_TARGET=""
16728 LIBTOOL_UNINSTALL_TARGET=""
16729 LIBTOOL_CLEAN_TARGET=""
16730 QMAKE_LIBTOOL="# ${BUILD_DIR}/libtool"
16745 # Check whether --enable-includes was given.
16746 if test "${enable_includes+set}" = set; then :
16747 enableval=$enable_includes;
16748 if test x$enableval = xyes; then
16749 install_includes=yes
16757 if test x$use_libtool != xno -a x$install_includes = xyes; then
16758 INCLUDE_INSTALL_TARGET="install-includes"
16759 INCLUDE_UNINSTALL_TARGET="uninstall-includes"
16761 INCLUDE_INSTALL_TARGET=""
16762 INCLUDE_UNINSTALL_TARGET=""
16770 *cygwin* ) CYGWIN=yes;;
16774 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
16780 HAVE_SUN_OS_FALSE='#'
16782 HAVE_SUN_OS_TRUE='#'
16785 $as_echo "#define HAVE_SUN_OS 1" >>confdefs.h
16792 HAVE_SUN_OS_FALSE='#'
16794 HAVE_SUN_OS_TRUE='#'
16799 if test $HAVE_UNAME=yes -a x`uname -s` = xGNU
16805 HAVE_HURD_OS_FALSE='#'
16807 HAVE_HURD_OS_TRUE='#'
16808 HAVE_HURD_OS_FALSE=
16810 $as_echo "#define HAVE_HURD_OS 1" >>confdefs.h
16817 HAVE_HURD_OS_FALSE='#'
16819 HAVE_HURD_OS_TRUE='#'
16820 HAVE_HURD_OS_FALSE=
16824 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
16830 HAVE_OSF1_OS_FALSE='#'
16832 HAVE_OSF1_OS_TRUE='#'
16833 HAVE_OSF1_OS_FALSE=
16835 $as_echo "#define HAVE_OSF1_OS 1" >>confdefs.h
16842 HAVE_OSF1_OS_FALSE='#'
16844 HAVE_OSF1_OS_TRUE='#'
16845 HAVE_OSF1_OS_FALSE=
16849 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
16855 HAVE_AIX_OS_FALSE='#'
16857 HAVE_AIX_OS_TRUE='#'
16860 $as_echo "#define HAVE_AIX_OS 1" >>confdefs.h
16867 HAVE_AIX_OS_FALSE='#'
16869 HAVE_AIX_OS_TRUE='#'
16874 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
16880 HAVE_HPUX_OS_FALSE='#'
16882 HAVE_HPUX_OS_TRUE='#'
16883 HAVE_HPUX_OS_FALSE=
16885 $as_echo "#define HAVE_HPUX_OS 1" >>confdefs.h
16892 HAVE_HPUX_OS_FALSE='#'
16894 HAVE_HPUX_OS_TRUE='#'
16895 HAVE_HPUX_OS_FALSE=
16899 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
16904 HAVE_LINUX_OS_TRUE=
16905 HAVE_LINUX_OS_FALSE='#'
16907 HAVE_LINUX_OS_TRUE='#'
16908 HAVE_LINUX_OS_FALSE=
16910 $as_echo "#define HAVE_LINUX_OS 1" >>confdefs.h
16916 HAVE_LINUX_OS_TRUE=
16917 HAVE_LINUX_OS_FALSE='#'
16919 HAVE_LINUX_OS_TRUE='#'
16920 HAVE_LINUX_OS_FALSE=
16924 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
16929 HAVE_FREEBSD_OS_TRUE=
16930 HAVE_FREEBSD_OS_FALSE='#'
16932 HAVE_FREEBSD_OS_TRUE='#'
16933 HAVE_FREEBSD_OS_FALSE=
16935 $as_echo "#define HAVE_FREEBSD_OS 1" >>confdefs.h
16941 HAVE_FREEBSD_OS_TRUE=
16942 HAVE_FREEBSD_OS_FALSE='#'
16944 HAVE_FREEBSD_OS_TRUE='#'
16945 HAVE_FREEBSD_OS_FALSE=
16949 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
16954 HAVE_NETBSD_OS_TRUE=
16955 HAVE_NETBSD_OS_FALSE='#'
16957 HAVE_NETBSD_OS_TRUE='#'
16958 HAVE_NETBSD_OS_FALSE=
16960 $as_echo "#define HAVE_NETBSD_OS 1" >>confdefs.h
16966 HAVE_NETBSD_OS_TRUE=
16967 HAVE_NETBSD_OS_FALSE='#'
16969 HAVE_NETBSD_OS_TRUE='#'
16970 HAVE_NETBSD_OS_FALSE=
16974 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
16979 HAVE_OPENBSD_OS_TRUE=
16980 HAVE_OPENBSD_OS_FALSE='#'
16982 HAVE_OPENBSD_OS_TRUE='#'
16983 HAVE_OPENBSD_OS_FALSE=
16985 $as_echo "#define HAVE_OPENBSD_OS 1" >>confdefs.h
16991 HAVE_OPENBSD_OS_TRUE=
16992 HAVE_OPENBSD_OS_FALSE='#'
16994 HAVE_OPENBSD_OS_TRUE='#'
16995 HAVE_OPENBSD_OS_FALSE=
16999 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
17005 HAVE_BSDI_OS_FALSE='#'
17007 HAVE_BSDI_OS_TRUE='#'
17008 HAVE_BSDI_OS_FALSE=
17010 $as_echo "#define HAVE_BSDI_OS 1" >>confdefs.h
17017 HAVE_BSDI_OS_FALSE='#'
17019 HAVE_BSDI_OS_TRUE='#'
17020 HAVE_BSDI_OS_FALSE=
17024 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
17030 HAVE_SGI_OS_FALSE='#'
17032 HAVE_SGI_OS_TRUE='#'
17035 $as_echo "#define HAVE_SGI_OS 1" >>confdefs.h
17042 HAVE_SGI_OS_FALSE='#'
17044 HAVE_SGI_OS_TRUE='#'
17049 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX -o x`uname -s` = xIRIX64
17055 HAVE_IRIX_OS_FALSE='#'
17057 HAVE_IRIX_OS_TRUE='#'
17058 HAVE_IRIX_OS_FALSE=
17060 $as_echo "#define HAVE_IRIX_OS 1" >>confdefs.h
17067 HAVE_IRIX_OS_FALSE='#'
17069 HAVE_IRIX_OS_TRUE='#'
17070 HAVE_IRIX_OS_FALSE=
17074 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
17079 HAVE_DARWIN_OS_TRUE=
17080 HAVE_DARWIN_OS_FALSE='#'
17082 HAVE_DARWIN_OS_TRUE='#'
17083 HAVE_DARWIN_OS_FALSE=
17085 $as_echo "#define HAVE_DARWIN_OS 1" >>confdefs.h
17091 HAVE_DARWIN_OS_TRUE=
17092 HAVE_DARWIN_OS_FALSE='#'
17094 HAVE_DARWIN_OS_TRUE='#'
17095 HAVE_DARWIN_OS_FALSE=
17099 if test $HAVE_UNAME=yes -a x`uname -s` = xGNU/kFreeBSD
17104 HAVE_KFREEBSD_OS_TRUE=
17105 HAVE_KFREEBSD_OS_FALSE='#'
17107 HAVE_KFREEBSD_OS_TRUE='#'
17108 HAVE_KFREEBSD_OS_FALSE=
17110 $as_echo "#define HAVE_KFREEBSD_OS 1" >>confdefs.h
17116 HAVE_KFREEBSD_OS_TRUE=
17117 HAVE_KFREEBSD_OS_FALSE='#'
17119 HAVE_KFREEBSD_OS_TRUE='#'
17120 HAVE_KFREEBSD_OS_FALSE=
17125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Operating System Distribution" >&5
17126 $as_echo_n "checking for Operating System Distribution... " >&6; }
17127 if test "x$DISTNAME" != "x"
17129 echo "distname set to $DISTNAME"
17130 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
17133 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
17136 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
17139 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
17142 elif test $HAVE_UNAME=yes -a x`uname -s` = xGNU
17145 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
17148 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
17151 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
17154 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
17157 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
17160 elif test -f /etc/SuSE-release
17163 elif test -d /etc/SuSEconfig
17166 elif test -f /etc/mandrake-release
17169 elif test -f /etc/whitebox-release
17172 elif test -f /etc/redhat-release
17175 elif test -f /etc/gentoo-release
17178 elif test -f /etc/debian_version
17181 elif test -f /etc/slackware-version
17184 elif test x$host_vendor = xapple
17187 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
17190 elif test -f /etc/engarde-version
17193 elif test -f /etc/arch-release
17196 elif test "$CYGWIN" = yes
17199 $as_echo "#define HAVE_CYGWIN 1" >>confdefs.h
17204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
17205 $as_echo "done" >&6; }
17208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
17209 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
17211 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
17212 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
17213 $as_echo_n "(cached) " >&6
17215 cat >conftest.make <<\_ACEOF
17218 @echo '@@@%%%=$(MAKE)=@@@%%%'
17220 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
17221 case `${MAKE-make} -f conftest.make 2>/dev/null` in
17222 *@@@%%%=?*=@@@%%%*)
17223 eval ac_cv_prog_make_${ac_make}_set=yes;;
17225 eval ac_cv_prog_make_${ac_make}_set=no;;
17227 rm -f conftest.make
17229 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
17230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17231 $as_echo "yes" >&6; }
17234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17235 $as_echo "no" >&6; }
17236 SET_MAKE="MAKE=${MAKE-make}"
17242 if test -n "$ac_aux_dir"; then
17243 case "$ac_aux_dir" in
17244 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
17245 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
17248 if test -z "$MKINSTALLDIRS"; then
17249 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
17254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
17255 $as_echo_n "checking whether NLS is requested... " >&6; }
17256 # Check whether --enable-nls was given.
17257 if test "${enable_nls+set}" = set; then :
17258 enableval=$enable_nls; USE_NLS=$enableval
17263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
17264 $as_echo "$USE_NLS" >&6; }
17271 # Prepare PATH_SEPARATOR.
17272 # The user is always right.
17273 if test "${PATH_SEPARATOR+set}" != set; then
17274 echo "#! /bin/sh" >conf$$.sh
17275 echo "exit 0" >>conf$$.sh
17277 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17285 # Find out how to test for executable files. Don't use a zero-byte file,
17286 # as systems may use methods other than mode bits to determine executability.
17287 cat >conf$$.file <<_ASEOF
17291 chmod +x conf$$.file
17292 if test -x conf$$.file >/dev/null 2>&1; then
17293 ac_executable_p="test -x"
17295 ac_executable_p="test -f"
17299 # Extract the first word of "msgfmt", so it can be a program name with args.
17300 set dummy msgfmt; ac_word=$2
17301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17302 $as_echo_n "checking for $ac_word... " >&6; }
17303 if ${ac_cv_path_MSGFMT+:} false; then :
17304 $as_echo_n "(cached) " >&6
17308 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
17311 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
17312 for ac_dir in $PATH; do
17314 test -z "$ac_dir" && ac_dir=.
17315 for ac_exec_ext in '' $ac_executable_extensions; do
17316 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
17317 echo "$as_me: trying $ac_dir/$ac_word..." >&5
17318 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
17319 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
17320 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
17327 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
17331 MSGFMT="$ac_cv_path_MSGFMT"
17332 if test "$MSGFMT" != ":"; then
17333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
17334 $as_echo "$MSGFMT" >&6; }
17336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17337 $as_echo "no" >&6; }
17340 # Extract the first word of "gmsgfmt", so it can be a program name with args.
17341 set dummy gmsgfmt; ac_word=$2
17342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17343 $as_echo_n "checking for $ac_word... " >&6; }
17344 if ${ac_cv_path_GMSGFMT+:} false; then :
17345 $as_echo_n "(cached) " >&6
17349 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
17352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17353 for as_dir in $PATH
17356 test -z "$as_dir" && as_dir=.
17357 for ac_exec_ext in '' $ac_executable_extensions; do
17358 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17359 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
17360 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17367 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
17371 GMSGFMT=$ac_cv_path_GMSGFMT
17372 if test -n "$GMSGFMT"; then
17373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
17374 $as_echo "$GMSGFMT" >&6; }
17376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17377 $as_echo "no" >&6; }
17383 # Prepare PATH_SEPARATOR.
17384 # The user is always right.
17385 if test "${PATH_SEPARATOR+set}" != set; then
17386 echo "#! /bin/sh" >conf$$.sh
17387 echo "exit 0" >>conf$$.sh
17389 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17397 # Find out how to test for executable files. Don't use a zero-byte file,
17398 # as systems may use methods other than mode bits to determine executability.
17399 cat >conf$$.file <<_ASEOF
17403 chmod +x conf$$.file
17404 if test -x conf$$.file >/dev/null 2>&1; then
17405 ac_executable_p="test -x"
17407 ac_executable_p="test -f"
17411 # Extract the first word of "xgettext", so it can be a program name with args.
17412 set dummy xgettext; ac_word=$2
17413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17414 $as_echo_n "checking for $ac_word... " >&6; }
17415 if ${ac_cv_path_XGETTEXT+:} false; then :
17416 $as_echo_n "(cached) " >&6
17418 case "$XGETTEXT" in
17420 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
17423 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
17424 for ac_dir in $PATH; do
17426 test -z "$ac_dir" && ac_dir=.
17427 for ac_exec_ext in '' $ac_executable_extensions; do
17428 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
17429 echo "$as_me: trying $ac_dir/$ac_word..." >&5
17430 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
17431 (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
17432 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
17439 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
17443 XGETTEXT="$ac_cv_path_XGETTEXT"
17444 if test "$XGETTEXT" != ":"; then
17445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
17446 $as_echo "$XGETTEXT" >&6; }
17448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17449 $as_echo "no" >&6; }
17455 # Prepare PATH_SEPARATOR.
17456 # The user is always right.
17457 if test "${PATH_SEPARATOR+set}" != set; then
17458 echo "#! /bin/sh" >conf$$.sh
17459 echo "exit 0" >>conf$$.sh
17461 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17469 # Find out how to test for executable files. Don't use a zero-byte file,
17470 # as systems may use methods other than mode bits to determine executability.
17471 cat >conf$$.file <<_ASEOF
17475 chmod +x conf$$.file
17476 if test -x conf$$.file >/dev/null 2>&1; then
17477 ac_executable_p="test -x"
17479 ac_executable_p="test -f"
17483 # Extract the first word of "msgmerge", so it can be a program name with args.
17484 set dummy msgmerge; ac_word=$2
17485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17486 $as_echo_n "checking for $ac_word... " >&6; }
17487 if ${ac_cv_path_MSGMERGE+:} false; then :
17488 $as_echo_n "(cached) " >&6
17490 case "$MSGMERGE" in
17492 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
17495 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
17496 for ac_dir in $PATH; do
17498 test -z "$ac_dir" && ac_dir=.
17499 for ac_exec_ext in '' $ac_executable_extensions; do
17500 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
17501 echo "$as_me: trying $ac_dir/$ac_word..." >&5
17502 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
17503 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
17510 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
17514 MSGMERGE="$ac_cv_path_MSGMERGE"
17515 if test "$MSGMERGE" != ":"; then
17516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
17517 $as_echo "$MSGMERGE" >&6; }
17519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17520 $as_echo "no" >&6; }
17524 if test "$GMSGFMT" != ":"; then
17525 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
17526 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
17529 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
17530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
17531 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
17536 if test "$XGETTEXT" != ":"; then
17537 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
17538 (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
17541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
17542 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
17548 ac_config_commands="$ac_config_commands default-1"
17552 if test "X$prefix" = "XNONE"; then
17553 acl_final_prefix="$ac_default_prefix"
17555 acl_final_prefix="$prefix"
17557 if test "X$exec_prefix" = "XNONE"; then
17558 acl_final_exec_prefix='${prefix}'
17560 acl_final_exec_prefix="$exec_prefix"
17562 acl_save_prefix="$prefix"
17563 prefix="$acl_final_prefix"
17564 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
17565 prefix="$acl_save_prefix"
17568 # Check whether --with-gnu-ld was given.
17569 if test "${with_gnu_ld+set}" = set; then :
17570 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
17575 # Prepare PATH_SEPARATOR.
17576 # The user is always right.
17577 if test "${PATH_SEPARATOR+set}" != set; then
17578 echo "#! /bin/sh" >conf$$.sh
17579 echo "exit 0" >>conf$$.sh
17581 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17589 if test "$GCC" = yes; then
17590 # Check if gcc -print-prog-name=ld gives a path.
17591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
17592 $as_echo_n "checking for ld used by GCC... " >&6; }
17595 # gcc leaves a trailing carriage return which upsets mingw
17596 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17598 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
17601 # Accept absolute paths.
17602 [\\/]* | [A-Za-z]:[\\/]*)
17603 re_direlt='/[^/][^/]*/\.\./'
17604 # Canonicalize the path of ld
17605 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
17606 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
17607 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
17609 test -z "$LD" && LD="$ac_prog"
17612 # If it fails, then pretend we aren't using GCC.
17616 # If it is relative, then search for the first ld in PATH.
17617 with_gnu_ld=unknown
17620 elif test "$with_gnu_ld" = yes; then
17621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
17622 $as_echo_n "checking for GNU ld... " >&6; }
17624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
17625 $as_echo_n "checking for non-GNU ld... " >&6; }
17627 if ${acl_cv_path_LD+:} false; then :
17628 $as_echo_n "(cached) " >&6
17630 if test -z "$LD"; then
17631 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
17632 for ac_dir in $PATH; do
17633 test -z "$ac_dir" && ac_dir=.
17634 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
17635 acl_cv_path_LD="$ac_dir/$ac_prog"
17636 # Check to see if the program is GNU ld. I'd rather use --version,
17637 # but apparently some GNU ld's only accept -v.
17638 # Break only if it was the GNU/non-GNU ld that we prefer.
17639 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
17640 *GNU* | *'with BFD'*)
17641 test "$with_gnu_ld" != no && break ;;
17643 test "$with_gnu_ld" != yes && break ;;
17649 acl_cv_path_LD="$LD" # Let the user override the test with a path.
17653 LD="$acl_cv_path_LD"
17654 if test -n "$LD"; then
17655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
17656 $as_echo "$LD" >&6; }
17658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17659 $as_echo "no" >&6; }
17661 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
17662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
17663 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
17664 if ${acl_cv_prog_gnu_ld+:} false; then :
17665 $as_echo_n "(cached) " >&6
17667 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
17668 case `$LD -v 2>&1 </dev/null` in
17669 *GNU* | *'with BFD'*)
17670 acl_cv_prog_gnu_ld=yes ;;
17672 acl_cv_prog_gnu_ld=no ;;
17675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
17676 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
17677 with_gnu_ld=$acl_cv_prog_gnu_ld
17682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
17683 $as_echo_n "checking for shared library run path origin... " >&6; }
17684 if ${acl_cv_rpath+:} false; then :
17685 $as_echo_n "(cached) " >&6
17688 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
17689 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
17691 rm -f ./conftest.sh
17695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
17696 $as_echo "$acl_cv_rpath" >&6; }
17698 libext="$acl_cv_libext"
17699 shlibext="$acl_cv_shlibext"
17700 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
17701 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
17702 hardcode_direct="$acl_cv_hardcode_direct"
17703 hardcode_minus_L="$acl_cv_hardcode_minus_L"
17704 # Check whether --enable-rpath was given.
17705 if test "${enable_rpath+set}" = set; then :
17706 enableval=$enable_rpath; :
17720 acl_save_prefix="$prefix"
17721 prefix="$acl_final_prefix"
17722 acl_save_exec_prefix="$exec_prefix"
17723 exec_prefix="$acl_final_exec_prefix"
17725 eval additional_includedir=\"$includedir\"
17726 eval additional_libdir=\"$libdir\"
17728 exec_prefix="$acl_save_exec_prefix"
17729 prefix="$acl_save_prefix"
17732 # Check whether --with-libiconv-prefix was given.
17733 if test "${with_libiconv_prefix+set}" = set; then :
17734 withval=$with_libiconv_prefix;
17735 if test "X$withval" = "Xno"; then
17738 if test "X$withval" = "X"; then
17740 acl_save_prefix="$prefix"
17741 prefix="$acl_final_prefix"
17742 acl_save_exec_prefix="$exec_prefix"
17743 exec_prefix="$acl_final_exec_prefix"
17745 eval additional_includedir=\"$includedir\"
17746 eval additional_libdir=\"$libdir\"
17748 exec_prefix="$acl_save_exec_prefix"
17749 prefix="$acl_save_prefix"
17752 additional_includedir="$withval/include"
17753 additional_libdir="$withval/lib"
17764 names_already_handled=
17765 names_next_round='iconv '
17766 while test -n "$names_next_round"; do
17767 names_this_round="$names_next_round"
17769 for name in $names_this_round; do
17771 for n in $names_already_handled; do
17772 if test "$n" = "$name"; then
17773 already_handled=yes
17777 if test -z "$already_handled"; then
17778 names_already_handled="$names_already_handled $name"
17779 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
17780 eval value=\"\$HAVE_LIB$uppername\"
17781 if test -n "$value"; then
17782 if test "$value" = yes; then
17783 eval value=\"\$LIB$uppername\"
17784 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
17785 eval value=\"\$LTLIB$uppername\"
17786 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
17795 if test $use_additional = yes; then
17796 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
17797 found_dir="$additional_libdir"
17798 found_so="$additional_libdir/lib$name.$shlibext"
17799 if test -f "$additional_libdir/lib$name.la"; then
17800 found_la="$additional_libdir/lib$name.la"
17803 if test -f "$additional_libdir/lib$name.$libext"; then
17804 found_dir="$additional_libdir"
17805 found_a="$additional_libdir/lib$name.$libext"
17806 if test -f "$additional_libdir/lib$name.la"; then
17807 found_la="$additional_libdir/lib$name.la"
17812 if test "X$found_dir" = "X"; then
17813 for x in $LDFLAGS $LTLIBICONV; do
17815 acl_save_prefix="$prefix"
17816 prefix="$acl_final_prefix"
17817 acl_save_exec_prefix="$exec_prefix"
17818 exec_prefix="$acl_final_exec_prefix"
17820 exec_prefix="$acl_save_exec_prefix"
17821 prefix="$acl_save_prefix"
17825 dir=`echo "X$x" | sed -e 's/^X-L//'`
17826 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
17828 found_so="$dir/lib$name.$shlibext"
17829 if test -f "$dir/lib$name.la"; then
17830 found_la="$dir/lib$name.la"
17833 if test -f "$dir/lib$name.$libext"; then
17835 found_a="$dir/lib$name.$libext"
17836 if test -f "$dir/lib$name.la"; then
17837 found_la="$dir/lib$name.la"
17843 if test "X$found_dir" != "X"; then
17848 if test "X$found_dir" != "X"; then
17849 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
17850 if test "X$found_so" != "X"; then
17851 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
17852 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17855 for x in $ltrpathdirs; do
17856 if test "X$x" = "X$found_dir"; then
17861 if test -z "$haveit"; then
17862 ltrpathdirs="$ltrpathdirs $found_dir"
17864 if test "$hardcode_direct" = yes; then
17865 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17867 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
17868 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17870 for x in $rpathdirs; do
17871 if test "X$x" = "X$found_dir"; then
17876 if test -z "$haveit"; then
17877 rpathdirs="$rpathdirs $found_dir"
17881 for x in $LDFLAGS $LIBICONV; do
17883 acl_save_prefix="$prefix"
17884 prefix="$acl_final_prefix"
17885 acl_save_exec_prefix="$exec_prefix"
17886 exec_prefix="$acl_final_exec_prefix"
17888 exec_prefix="$acl_save_exec_prefix"
17889 prefix="$acl_save_prefix"
17891 if test "X$x" = "X-L$found_dir"; then
17896 if test -z "$haveit"; then
17897 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
17899 if test "$hardcode_minus_L" != no; then
17900 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17902 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
17908 if test "X$found_a" != "X"; then
17909 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
17911 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
17914 additional_includedir=
17915 case "$found_dir" in
17917 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
17918 additional_includedir="$basedir/include"
17921 if test "X$additional_includedir" != "X"; then
17922 if test "X$additional_includedir" != "X/usr/include"; then
17924 if test "X$additional_includedir" = "X/usr/local/include"; then
17925 if test -n "$GCC"; then
17927 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17931 if test -z "$haveit"; then
17932 for x in $CPPFLAGS $INCICONV; do
17934 acl_save_prefix="$prefix"
17935 prefix="$acl_final_prefix"
17936 acl_save_exec_prefix="$exec_prefix"
17937 exec_prefix="$acl_final_exec_prefix"
17939 exec_prefix="$acl_save_exec_prefix"
17940 prefix="$acl_save_prefix"
17942 if test "X$x" = "X-I$additional_includedir"; then
17947 if test -z "$haveit"; then
17948 if test -d "$additional_includedir"; then
17949 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
17955 if test -n "$found_la"; then
17956 save_libdir="$libdir"
17957 case "$found_la" in
17958 */* | *\\*) . "$found_la" ;;
17959 *) . "./$found_la" ;;
17961 libdir="$save_libdir"
17962 for dep in $dependency_libs; do
17965 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17966 if test "X$additional_libdir" != "X/usr/lib"; then
17968 if test "X$additional_libdir" = "X/usr/local/lib"; then
17969 if test -n "$GCC"; then
17971 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17975 if test -z "$haveit"; then
17977 for x in $LDFLAGS $LIBICONV; do
17979 acl_save_prefix="$prefix"
17980 prefix="$acl_final_prefix"
17981 acl_save_exec_prefix="$exec_prefix"
17982 exec_prefix="$acl_final_exec_prefix"
17984 exec_prefix="$acl_save_exec_prefix"
17985 prefix="$acl_save_prefix"
17987 if test "X$x" = "X-L$additional_libdir"; then
17992 if test -z "$haveit"; then
17993 if test -d "$additional_libdir"; then
17994 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
17998 for x in $LDFLAGS $LTLIBICONV; do
18000 acl_save_prefix="$prefix"
18001 prefix="$acl_final_prefix"
18002 acl_save_exec_prefix="$exec_prefix"
18003 exec_prefix="$acl_final_exec_prefix"
18005 exec_prefix="$acl_save_exec_prefix"
18006 prefix="$acl_save_prefix"
18008 if test "X$x" = "X-L$additional_libdir"; then
18013 if test -z "$haveit"; then
18014 if test -d "$additional_libdir"; then
18015 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
18022 dir=`echo "X$dep" | sed -e 's/^X-R//'`
18023 if test "$enable_rpath" != no; then
18025 for x in $rpathdirs; do
18026 if test "X$x" = "X$dir"; then
18031 if test -z "$haveit"; then
18032 rpathdirs="$rpathdirs $dir"
18035 for x in $ltrpathdirs; do
18036 if test "X$x" = "X$dir"; then
18041 if test -z "$haveit"; then
18042 ltrpathdirs="$ltrpathdirs $dir"
18047 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
18050 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
18053 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
18054 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
18060 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
18061 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
18067 if test "X$rpathdirs" != "X"; then
18068 if test -n "$hardcode_libdir_separator"; then
18070 for found_dir in $rpathdirs; do
18071 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
18073 acl_save_libdir="$libdir"
18075 eval flag=\"$hardcode_libdir_flag_spec\"
18076 libdir="$acl_save_libdir"
18077 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
18079 for found_dir in $rpathdirs; do
18080 acl_save_libdir="$libdir"
18081 libdir="$found_dir"
18082 eval flag=\"$hardcode_libdir_flag_spec\"
18083 libdir="$acl_save_libdir"
18084 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
18088 if test "X$ltrpathdirs" != "X"; then
18089 for found_dir in $ltrpathdirs; do
18090 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
18111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
18112 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
18113 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
18114 $as_echo_n "(cached) " >&6
18116 gt_save_CPPFLAGS="$CPPFLAGS"
18117 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
18118 gt_save_LIBS="$LIBS"
18119 LIBS="$LIBS -framework CoreFoundation"
18120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18121 /* end confdefs.h. */
18122 #include <CFPreferences.h>
18126 CFPreferencesCopyAppValue(NULL, NULL)
18131 if ac_fn_c_try_link "$LINENO"; then :
18132 gt_cv_func_CFPreferencesCopyAppValue=yes
18134 gt_cv_func_CFPreferencesCopyAppValue=no
18136 rm -f core conftest.err conftest.$ac_objext \
18137 conftest$ac_exeext conftest.$ac_ext
18138 CPPFLAGS="$gt_save_CPPFLAGS"
18139 LIBS="$gt_save_LIBS"
18141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
18142 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
18143 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
18145 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
18148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
18149 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
18150 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
18151 $as_echo_n "(cached) " >&6
18153 gt_save_CPPFLAGS="$CPPFLAGS"
18154 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
18155 gt_save_LIBS="$LIBS"
18156 LIBS="$LIBS -framework CoreFoundation"
18157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18158 /* end confdefs.h. */
18159 #include <CFLocale.h>
18163 CFLocaleCopyCurrent();
18168 if ac_fn_c_try_link "$LINENO"; then :
18169 gt_cv_func_CFLocaleCopyCurrent=yes
18171 gt_cv_func_CFLocaleCopyCurrent=no
18173 rm -f core conftest.err conftest.$ac_objext \
18174 conftest$ac_exeext conftest.$ac_ext
18175 CPPFLAGS="$gt_save_CPPFLAGS"
18176 LIBS="$gt_save_LIBS"
18178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
18179 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
18180 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
18182 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
18186 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
18187 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
18193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
18194 $as_echo_n "checking whether NLS is requested... " >&6; }
18195 # Check whether --enable-nls was given.
18196 if test "${enable_nls+set}" = set; then :
18197 enableval=$enable_nls; USE_NLS=$enableval
18202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
18203 $as_echo "$USE_NLS" >&6; }
18212 if test "$USE_NLS" = "yes"; then
18213 gt_use_preinstalled_gnugettext=no
18220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
18221 $as_echo_n "checking for GNU gettext in libc... " >&6; }
18222 if ${gt_cv_func_gnugettext1_libc+:} false; then :
18223 $as_echo_n "(cached) " >&6
18225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18226 /* end confdefs.h. */
18227 #include <libintl.h>
18228 extern int _nl_msg_cat_cntr;
18229 extern int *_nl_domain_bindings;
18233 bindtextdomain ("", "");
18234 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
18239 if ac_fn_c_try_link "$LINENO"; then :
18240 gt_cv_func_gnugettext1_libc=yes
18242 gt_cv_func_gnugettext1_libc=no
18244 rm -f core conftest.err conftest.$ac_objext \
18245 conftest$ac_exeext conftest.$ac_ext
18247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5
18248 $as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
18250 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
18256 am_save_CPPFLAGS="$CPPFLAGS"
18258 for element in $INCICONV; do
18260 for x in $CPPFLAGS; do
18262 acl_save_prefix="$prefix"
18263 prefix="$acl_final_prefix"
18264 acl_save_exec_prefix="$exec_prefix"
18265 exec_prefix="$acl_final_exec_prefix"
18267 exec_prefix="$acl_save_exec_prefix"
18268 prefix="$acl_save_prefix"
18270 if test "X$x" = "X$element"; then
18275 if test -z "$haveit"; then
18276 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
18281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
18282 $as_echo_n "checking for iconv... " >&6; }
18283 if ${am_cv_func_iconv+:} false; then :
18284 $as_echo_n "(cached) " >&6
18287 am_cv_func_iconv="no, consider installing GNU libiconv"
18289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18290 /* end confdefs.h. */
18291 #include <stdlib.h>
18296 iconv_t cd = iconv_open("","");
18297 iconv(cd,NULL,NULL,NULL,NULL);
18303 if ac_fn_c_try_link "$LINENO"; then :
18304 am_cv_func_iconv=yes
18306 rm -f core conftest.err conftest.$ac_objext \
18307 conftest$ac_exeext conftest.$ac_ext
18308 if test "$am_cv_func_iconv" != yes; then
18309 am_save_LIBS="$LIBS"
18310 LIBS="$LIBS $LIBICONV"
18311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18312 /* end confdefs.h. */
18313 #include <stdlib.h>
18318 iconv_t cd = iconv_open("","");
18319 iconv(cd,NULL,NULL,NULL,NULL);
18325 if ac_fn_c_try_link "$LINENO"; then :
18326 am_cv_lib_iconv=yes
18327 am_cv_func_iconv=yes
18329 rm -f core conftest.err conftest.$ac_objext \
18330 conftest$ac_exeext conftest.$ac_ext
18331 LIBS="$am_save_LIBS"
18335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
18336 $as_echo "$am_cv_func_iconv" >&6; }
18337 if test "$am_cv_func_iconv" = yes; then
18339 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
18342 if test "$am_cv_lib_iconv" = yes; then
18343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
18344 $as_echo_n "checking how to link with libiconv... " >&6; }
18345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
18346 $as_echo "$LIBICONV" >&6; }
18348 CPPFLAGS="$am_save_CPPFLAGS"
18360 acl_save_prefix="$prefix"
18361 prefix="$acl_final_prefix"
18362 acl_save_exec_prefix="$exec_prefix"
18363 exec_prefix="$acl_final_exec_prefix"
18365 eval additional_includedir=\"$includedir\"
18366 eval additional_libdir=\"$libdir\"
18368 exec_prefix="$acl_save_exec_prefix"
18369 prefix="$acl_save_prefix"
18372 # Check whether --with-libintl-prefix was given.
18373 if test "${with_libintl_prefix+set}" = set; then :
18374 withval=$with_libintl_prefix;
18375 if test "X$withval" = "Xno"; then
18378 if test "X$withval" = "X"; then
18380 acl_save_prefix="$prefix"
18381 prefix="$acl_final_prefix"
18382 acl_save_exec_prefix="$exec_prefix"
18383 exec_prefix="$acl_final_exec_prefix"
18385 eval additional_includedir=\"$includedir\"
18386 eval additional_libdir=\"$libdir\"
18388 exec_prefix="$acl_save_exec_prefix"
18389 prefix="$acl_save_prefix"
18392 additional_includedir="$withval/include"
18393 additional_libdir="$withval/lib"
18404 names_already_handled=
18405 names_next_round='intl '
18406 while test -n "$names_next_round"; do
18407 names_this_round="$names_next_round"
18409 for name in $names_this_round; do
18411 for n in $names_already_handled; do
18412 if test "$n" = "$name"; then
18413 already_handled=yes
18417 if test -z "$already_handled"; then
18418 names_already_handled="$names_already_handled $name"
18419 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
18420 eval value=\"\$HAVE_LIB$uppername\"
18421 if test -n "$value"; then
18422 if test "$value" = yes; then
18423 eval value=\"\$LIB$uppername\"
18424 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
18425 eval value=\"\$LTLIB$uppername\"
18426 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
18435 if test $use_additional = yes; then
18436 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
18437 found_dir="$additional_libdir"
18438 found_so="$additional_libdir/lib$name.$shlibext"
18439 if test -f "$additional_libdir/lib$name.la"; then
18440 found_la="$additional_libdir/lib$name.la"
18443 if test -f "$additional_libdir/lib$name.$libext"; then
18444 found_dir="$additional_libdir"
18445 found_a="$additional_libdir/lib$name.$libext"
18446 if test -f "$additional_libdir/lib$name.la"; then
18447 found_la="$additional_libdir/lib$name.la"
18452 if test "X$found_dir" = "X"; then
18453 for x in $LDFLAGS $LTLIBINTL; do
18455 acl_save_prefix="$prefix"
18456 prefix="$acl_final_prefix"
18457 acl_save_exec_prefix="$exec_prefix"
18458 exec_prefix="$acl_final_exec_prefix"
18460 exec_prefix="$acl_save_exec_prefix"
18461 prefix="$acl_save_prefix"
18465 dir=`echo "X$x" | sed -e 's/^X-L//'`
18466 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
18468 found_so="$dir/lib$name.$shlibext"
18469 if test -f "$dir/lib$name.la"; then
18470 found_la="$dir/lib$name.la"
18473 if test -f "$dir/lib$name.$libext"; then
18475 found_a="$dir/lib$name.$libext"
18476 if test -f "$dir/lib$name.la"; then
18477 found_la="$dir/lib$name.la"
18483 if test "X$found_dir" != "X"; then
18488 if test "X$found_dir" != "X"; then
18489 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
18490 if test "X$found_so" != "X"; then
18491 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
18492 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
18495 for x in $ltrpathdirs; do
18496 if test "X$x" = "X$found_dir"; then
18501 if test -z "$haveit"; then
18502 ltrpathdirs="$ltrpathdirs $found_dir"
18504 if test "$hardcode_direct" = yes; then
18505 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
18507 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
18508 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
18510 for x in $rpathdirs; do
18511 if test "X$x" = "X$found_dir"; then
18516 if test -z "$haveit"; then
18517 rpathdirs="$rpathdirs $found_dir"
18521 for x in $LDFLAGS $LIBINTL; do
18523 acl_save_prefix="$prefix"
18524 prefix="$acl_final_prefix"
18525 acl_save_exec_prefix="$exec_prefix"
18526 exec_prefix="$acl_final_exec_prefix"
18528 exec_prefix="$acl_save_exec_prefix"
18529 prefix="$acl_save_prefix"
18531 if test "X$x" = "X-L$found_dir"; then
18536 if test -z "$haveit"; then
18537 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
18539 if test "$hardcode_minus_L" != no; then
18540 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
18542 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
18548 if test "X$found_a" != "X"; then
18549 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
18551 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
18554 additional_includedir=
18555 case "$found_dir" in
18557 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
18558 additional_includedir="$basedir/include"
18561 if test "X$additional_includedir" != "X"; then
18562 if test "X$additional_includedir" != "X/usr/include"; then
18564 if test "X$additional_includedir" = "X/usr/local/include"; then
18565 if test -n "$GCC"; then
18567 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
18571 if test -z "$haveit"; then
18572 for x in $CPPFLAGS $INCINTL; do
18574 acl_save_prefix="$prefix"
18575 prefix="$acl_final_prefix"
18576 acl_save_exec_prefix="$exec_prefix"
18577 exec_prefix="$acl_final_exec_prefix"
18579 exec_prefix="$acl_save_exec_prefix"
18580 prefix="$acl_save_prefix"
18582 if test "X$x" = "X-I$additional_includedir"; then
18587 if test -z "$haveit"; then
18588 if test -d "$additional_includedir"; then
18589 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
18595 if test -n "$found_la"; then
18596 save_libdir="$libdir"
18597 case "$found_la" in
18598 */* | *\\*) . "$found_la" ;;
18599 *) . "./$found_la" ;;
18601 libdir="$save_libdir"
18602 for dep in $dependency_libs; do
18605 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
18606 if test "X$additional_libdir" != "X/usr/lib"; then
18608 if test "X$additional_libdir" = "X/usr/local/lib"; then
18609 if test -n "$GCC"; then
18611 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
18615 if test -z "$haveit"; then
18617 for x in $LDFLAGS $LIBINTL; do
18619 acl_save_prefix="$prefix"
18620 prefix="$acl_final_prefix"
18621 acl_save_exec_prefix="$exec_prefix"
18622 exec_prefix="$acl_final_exec_prefix"
18624 exec_prefix="$acl_save_exec_prefix"
18625 prefix="$acl_save_prefix"
18627 if test "X$x" = "X-L$additional_libdir"; then
18632 if test -z "$haveit"; then
18633 if test -d "$additional_libdir"; then
18634 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
18638 for x in $LDFLAGS $LTLIBINTL; do
18640 acl_save_prefix="$prefix"
18641 prefix="$acl_final_prefix"
18642 acl_save_exec_prefix="$exec_prefix"
18643 exec_prefix="$acl_final_exec_prefix"
18645 exec_prefix="$acl_save_exec_prefix"
18646 prefix="$acl_save_prefix"
18648 if test "X$x" = "X-L$additional_libdir"; then
18653 if test -z "$haveit"; then
18654 if test -d "$additional_libdir"; then
18655 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
18662 dir=`echo "X$dep" | sed -e 's/^X-R//'`
18663 if test "$enable_rpath" != no; then
18665 for x in $rpathdirs; do
18666 if test "X$x" = "X$dir"; then
18671 if test -z "$haveit"; then
18672 rpathdirs="$rpathdirs $dir"
18675 for x in $ltrpathdirs; do
18676 if test "X$x" = "X$dir"; then
18681 if test -z "$haveit"; then
18682 ltrpathdirs="$ltrpathdirs $dir"
18687 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
18690 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
18693 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
18694 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
18700 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
18701 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
18707 if test "X$rpathdirs" != "X"; then
18708 if test -n "$hardcode_libdir_separator"; then
18710 for found_dir in $rpathdirs; do
18711 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
18713 acl_save_libdir="$libdir"
18715 eval flag=\"$hardcode_libdir_flag_spec\"
18716 libdir="$acl_save_libdir"
18717 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
18719 for found_dir in $rpathdirs; do
18720 acl_save_libdir="$libdir"
18721 libdir="$found_dir"
18722 eval flag=\"$hardcode_libdir_flag_spec\"
18723 libdir="$acl_save_libdir"
18724 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
18728 if test "X$ltrpathdirs" != "X"; then
18729 for found_dir in $ltrpathdirs; do
18730 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
18734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
18735 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
18736 if ${gt_cv_func_gnugettext1_libintl+:} false; then :
18737 $as_echo_n "(cached) " >&6
18739 gt_save_CPPFLAGS="$CPPFLAGS"
18740 CPPFLAGS="$CPPFLAGS $INCINTL"
18741 gt_save_LIBS="$LIBS"
18742 LIBS="$LIBS $LIBINTL"
18743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18744 /* end confdefs.h. */
18745 #include <libintl.h>
18746 extern int _nl_msg_cat_cntr;
18751 const char *_nl_expand_alias (const char *);
18755 bindtextdomain ("", "");
18756 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
18761 if ac_fn_c_try_link "$LINENO"; then :
18762 gt_cv_func_gnugettext1_libintl=yes
18764 gt_cv_func_gnugettext1_libintl=no
18766 rm -f core conftest.err conftest.$ac_objext \
18767 conftest$ac_exeext conftest.$ac_ext
18768 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
18769 LIBS="$LIBS $LIBICONV"
18770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18771 /* end confdefs.h. */
18772 #include <libintl.h>
18773 extern int _nl_msg_cat_cntr;
18778 const char *_nl_expand_alias (const char *);
18782 bindtextdomain ("", "");
18783 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
18788 if ac_fn_c_try_link "$LINENO"; then :
18789 LIBINTL="$LIBINTL $LIBICONV"
18790 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
18791 gt_cv_func_gnugettext1_libintl=yes
18794 rm -f core conftest.err conftest.$ac_objext \
18795 conftest$ac_exeext conftest.$ac_ext
18797 CPPFLAGS="$gt_save_CPPFLAGS"
18798 LIBS="$gt_save_LIBS"
18800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5
18801 $as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
18804 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
18805 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
18806 && test "$PACKAGE" != gettext-runtime \
18807 && test "$PACKAGE" != gettext-tools; }; then
18808 gt_use_preinstalled_gnugettext=yes
18817 if test -n "$INTL_MACOSX_LIBS"; then
18818 if test "$gt_use_preinstalled_gnugettext" = "yes" \
18819 || test "$nls_cv_use_gnu_gettext" = "yes"; then
18820 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
18821 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
18825 if test "$gt_use_preinstalled_gnugettext" = "yes" \
18826 || test "$nls_cv_use_gnu_gettext" = "yes"; then
18828 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
18835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
18836 $as_echo_n "checking whether to use NLS... " >&6; }
18837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
18838 $as_echo "$USE_NLS" >&6; }
18839 if test "$USE_NLS" = "yes"; then
18840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
18841 $as_echo_n "checking where the gettext function comes from... " >&6; }
18842 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
18843 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
18844 gt_source="external libintl"
18849 gt_source="included intl directory"
18851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
18852 $as_echo "$gt_source" >&6; }
18855 if test "$USE_NLS" = "yes"; then
18857 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
18858 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
18859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
18860 $as_echo_n "checking how to link with libintl... " >&6; }
18861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
18862 $as_echo "$LIBINTL" >&6; }
18864 for element in $INCINTL; do
18866 for x in $CPPFLAGS; do
18868 acl_save_prefix="$prefix"
18869 prefix="$acl_final_prefix"
18870 acl_save_exec_prefix="$exec_prefix"
18871 exec_prefix="$acl_final_exec_prefix"
18873 exec_prefix="$acl_save_exec_prefix"
18874 prefix="$acl_save_prefix"
18876 if test "X$x" = "X$element"; then
18881 if test -z "$haveit"; then
18882 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
18889 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
18892 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
18901 INTLLIBS="$LIBINTL"
18909 os_name=`uname -s 2>/dev/null`
18910 if test x${prefix} = xNONE ; then
18911 if test `eval echo ${sysconfdir}` = NONE/etc ; then
18912 sysconfdir=/etc/bacula
18915 if test `eval echo ${libdir}` = NONE/lib ; then
18918 os_processor=`uname -p 2>/dev/null`
18919 case ${os_processor} in
18934 if test `eval echo ${includedir}` = NONE/include ; then
18935 includedir=/usr/include
18938 if test `eval echo ${datarootdir}` = NONE/share ; then
18939 datarootdir=/usr/share
18944 if test x${exec_prefix} = xNONE ; then
18945 exec_prefix=${prefix}
18948 sysconfdir=`eval echo ${sysconfdir}`
18949 datarootdir=`eval echo ${datarootdir}`
18950 docdir=`eval echo ${docdir}`
18951 htmldir=`eval echo ${htmldir}`
18952 libdir=`eval echo ${libdir}`
18953 includedir=`eval echo ${includedir}`
18954 localedir=`eval echo ${datarootdir}/locale`
18955 cat >>confdefs.h <<_ACEOF
18956 #define SYSCONFDIR "$sysconfdir"
18959 cat >>confdefs.h <<_ACEOF
18960 #define LOCALEDIR "$localedir"
18964 if test x$sbindir = x'${exec_prefix}/sbin' ; then
18965 sbindir=${exec_prefix}/sbin
18967 sbindir=`eval echo ${sbindir}`
18969 if test x$mandir = x'${prefix}/man' ; then
18970 mandir=/usr/share/man
18973 if test x$htmldir = x'/usr/share/doc/bacula/' ; then
18974 htmldir=`eval echo ${docdir}html`
18977 if test x$docdir = x'/usr/share/doc/' ; then
18978 docdir=`eval echo ${docdir}bacula`
18982 for ac_prog in msgfmt
18984 # Extract the first word of "$ac_prog", so it can be a program name with args.
18985 set dummy $ac_prog; ac_word=$2
18986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18987 $as_echo_n "checking for $ac_word... " >&6; }
18988 if ${ac_cv_path_MSGFMT+:} false; then :
18989 $as_echo_n "(cached) " >&6
18993 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
18996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18997 for as_dir in $PATH
19000 test -z "$as_dir" && as_dir=.
19001 for ac_exec_ext in '' $ac_executable_extensions; do
19002 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19003 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
19004 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19014 MSGFMT=$ac_cv_path_MSGFMT
19015 if test -n "$MSGFMT"; then
19016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
19017 $as_echo "$MSGFMT" >&6; }
19019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19020 $as_echo "no" >&6; }
19024 test -n "$MSGFMT" && break
19026 test -n "$MSGFMT" || MSGFMT="no"
19028 if test "$MSGFMT" = "no"
19030 echo 'msgfmt program not found, disabling NLS !'
19032 USE_INCLUDED_LIBINTL=no
19035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2 or newer" >&5
19036 $as_echo_n "checking whether we are using the GNU C Library 2 or newer... " >&6; }
19037 if ${ac_cv_gnu_library_2+:} false; then :
19038 $as_echo_n "(cached) " >&6
19040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19041 /* end confdefs.h. */
19043 #include <features.h>
19044 #ifdef __GNU_LIBRARY__
19045 #if (__GLIBC__ >= 2)
19051 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19052 $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
19053 ac_cv_gnu_library_2=yes
19055 ac_cv_gnu_library_2=no
19062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2" >&5
19063 $as_echo "$ac_cv_gnu_library_2" >&6; }
19065 GLIBC2="$ac_cv_gnu_library_2"
19068 if test -n "$ac_tool_prefix"; then
19069 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
19070 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
19071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19072 $as_echo_n "checking for $ac_word... " >&6; }
19073 if ${ac_cv_prog_RANLIB+:} false; then :
19074 $as_echo_n "(cached) " >&6
19076 if test -n "$RANLIB"; then
19077 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
19079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19080 for as_dir in $PATH
19083 test -z "$as_dir" && as_dir=.
19084 for ac_exec_ext in '' $ac_executable_extensions; do
19085 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19086 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
19087 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19096 RANLIB=$ac_cv_prog_RANLIB
19097 if test -n "$RANLIB"; then
19098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
19099 $as_echo "$RANLIB" >&6; }
19101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19102 $as_echo "no" >&6; }
19107 if test -z "$ac_cv_prog_RANLIB"; then
19108 ac_ct_RANLIB=$RANLIB
19109 # Extract the first word of "ranlib", so it can be a program name with args.
19110 set dummy ranlib; ac_word=$2
19111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19112 $as_echo_n "checking for $ac_word... " >&6; }
19113 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
19114 $as_echo_n "(cached) " >&6
19116 if test -n "$ac_ct_RANLIB"; then
19117 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
19119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19120 for as_dir in $PATH
19123 test -z "$as_dir" && as_dir=.
19124 for ac_exec_ext in '' $ac_executable_extensions; do
19125 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19126 ac_cv_prog_ac_ct_RANLIB="ranlib"
19127 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19136 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
19137 if test -n "$ac_ct_RANLIB"; then
19138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
19139 $as_echo "$ac_ct_RANLIB" >&6; }
19141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19142 $as_echo "no" >&6; }
19145 if test "x$ac_ct_RANLIB" = x; then
19148 case $cross_compiling:$ac_tool_warned in
19150 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19151 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19152 ac_tool_warned=yes ;;
19154 RANLIB=$ac_ct_RANLIB
19157 RANLIB="$ac_cv_prog_RANLIB"
19161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strerror in -lcposix" >&5
19162 $as_echo_n "checking for strerror in -lcposix... " >&6; }
19163 if ${ac_cv_lib_cposix_strerror+:} false; then :
19164 $as_echo_n "(cached) " >&6
19166 ac_check_lib_save_LIBS=$LIBS
19167 LIBS="-lcposix $LIBS"
19168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19169 /* end confdefs.h. */
19171 /* Override any GCC internal prototype to avoid an error.
19172 Use char because int might match the return type of a GCC
19173 builtin and then its argument prototype would still apply. */
19181 return strerror ();
19186 if ac_fn_c_try_link "$LINENO"; then :
19187 ac_cv_lib_cposix_strerror=yes
19189 ac_cv_lib_cposix_strerror=no
19191 rm -f core conftest.err conftest.$ac_objext \
19192 conftest$ac_exeext conftest.$ac_ext
19193 LIBS=$ac_check_lib_save_LIBS
19195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cposix_strerror" >&5
19196 $as_echo "$ac_cv_lib_cposix_strerror" >&6; }
19197 if test "x$ac_cv_lib_cposix_strerror" = xyes; then :
19198 LIBS="$LIBS -lcposix"
19203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
19204 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
19205 if ${ac_cv_c_const+:} false; then :
19206 $as_echo_n "(cached) " >&6
19208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19209 /* end confdefs.h. */
19215 #ifndef __cplusplus
19216 /* Ultrix mips cc rejects this sort of thing. */
19217 typedef int charset[2];
19218 const charset cs = { 0, 0 };
19219 /* SunOS 4.1.1 cc rejects this. */
19220 char const *const *pcpcc;
19222 /* NEC SVR4.0.2 mips cc rejects this. */
19223 struct point {int x, y;};
19224 static struct point const zero = {0,0};
19225 /* AIX XL C 1.02.0.0 rejects this.
19226 It does not let you subtract one const X* pointer from another in
19227 an arm of an if-expression whose if-part is not a constant
19229 const char *g = "string";
19230 pcpcc = &g + (g ? g-g : 0);
19231 /* HPUX 7.0 cc rejects these. */
19233 ppc = (char**) pcpcc;
19234 pcpcc = (char const *const *) ppc;
19235 { /* SCO 3.2v4 cc rejects this sort of thing. */
19238 char const *s = 0 ? (char *) 0 : (char const *) 0;
19243 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
19244 int x[] = {25, 17};
19245 const int *foo = &x[0];
19248 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
19249 typedef const int *iptr;
19253 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
19254 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
19255 struct s { int j; const int *ap[3]; } bx;
19256 struct s *b = &bx; b->j = 5;
19258 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
19259 const int foo = 10;
19260 if (!foo) return 0;
19262 return !cs[0] && !zero.x;
19269 if ac_fn_c_try_compile "$LINENO"; then :
19274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
19277 $as_echo "$ac_cv_c_const" >&6; }
19278 if test $ac_cv_c_const = no; then
19280 $as_echo "#define const /**/" >>confdefs.h
19285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed" >&5
19286 $as_echo_n "checking for signed... " >&6; }
19287 if ${bh_cv_c_signed+:} false; then :
19288 $as_echo_n "(cached) " >&6
19290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19291 /* end confdefs.h. */
19301 if ac_fn_c_try_compile "$LINENO"; then :
19306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bh_cv_c_signed" >&5
19309 $as_echo "$bh_cv_c_signed" >&6; }
19310 if test $bh_cv_c_signed = no; then
19312 $as_echo "#define signed /**/" >>confdefs.h
19316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
19317 $as_echo_n "checking for inline... " >&6; }
19318 if ${ac_cv_c_inline+:} false; then :
19319 $as_echo_n "(cached) " >&6
19322 for ac_kw in inline __inline__ __inline; do
19323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19324 /* end confdefs.h. */
19325 #ifndef __cplusplus
19327 static $ac_kw foo_t static_foo () {return 0; }
19328 $ac_kw foo_t foo () {return 0; }
19332 if ac_fn_c_try_compile "$LINENO"; then :
19333 ac_cv_c_inline=$ac_kw
19335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19336 test "$ac_cv_c_inline" != no && break
19340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
19341 $as_echo "$ac_cv_c_inline" >&6; }
19343 case $ac_cv_c_inline in
19346 case $ac_cv_c_inline in
19348 *) ac_val=$ac_cv_c_inline;;
19350 cat >>confdefs.h <<_ACEOF
19351 #ifndef __cplusplus
19352 #define inline $ac_val
19358 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
19359 if test "x$ac_cv_type_off_t" = xyes; then :
19363 cat >>confdefs.h <<_ACEOF
19364 #define off_t long int
19369 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
19370 if test "x$ac_cv_type_size_t" = xyes; then :
19374 cat >>confdefs.h <<_ACEOF
19375 #define size_t unsigned int
19381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long" >&5
19382 $as_echo_n "checking for long long... " >&6; }
19383 if ${ac_cv_type_long_long+:} false; then :
19384 $as_echo_n "(cached) " >&6
19386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19387 /* end confdefs.h. */
19388 long long ll = 1LL; int i = 63;
19392 long long llmax = (long long) -1;
19393 return ll << i | ll >> i | llmax / ll | llmax % ll;
19398 if ac_fn_c_try_link "$LINENO"; then :
19399 ac_cv_type_long_long=yes
19401 ac_cv_type_long_long=no
19403 rm -f core conftest.err conftest.$ac_objext \
19404 conftest$ac_exeext conftest.$ac_ext
19406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long" >&5
19407 $as_echo "$ac_cv_type_long_long" >&6; }
19408 if test $ac_cv_type_long_long = yes; then
19410 $as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h
19415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
19416 $as_echo_n "checking for long double... " >&6; }
19417 if ${gt_cv_c_long_double+:} false; then :
19418 $as_echo_n "(cached) " >&6
19420 if test "$GCC" = yes; then
19421 gt_cv_c_long_double=yes
19423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19424 /* end confdefs.h. */
19426 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
19427 long double foo = 0.0;
19428 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
19429 int array [2*(sizeof(long double) >= sizeof(double)) - 1];
19439 if ac_fn_c_try_compile "$LINENO"; then :
19440 gt_cv_c_long_double=yes
19442 gt_cv_c_long_double=no
19444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_long_double" >&5
19448 $as_echo "$gt_cv_c_long_double" >&6; }
19449 if test $gt_cv_c_long_double = yes; then
19451 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
19456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
19457 $as_echo_n "checking for wchar_t... " >&6; }
19458 if ${gt_cv_c_wchar_t+:} false; then :
19459 $as_echo_n "(cached) " >&6
19461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19462 /* end confdefs.h. */
19463 #include <stddef.h>
19464 wchar_t foo = (wchar_t)'\0';
19473 if ac_fn_c_try_compile "$LINENO"; then :
19474 gt_cv_c_wchar_t=yes
19478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
19481 $as_echo "$gt_cv_c_wchar_t" >&6; }
19482 if test $gt_cv_c_wchar_t = yes; then
19484 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
19489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
19490 $as_echo_n "checking for wint_t... " >&6; }
19491 if ${gt_cv_c_wint_t+:} false; then :
19492 $as_echo_n "(cached) " >&6
19494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19495 /* end confdefs.h. */
19497 wint_t foo = (wchar_t)'\0';
19506 if ac_fn_c_try_compile "$LINENO"; then :
19511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
19514 $as_echo "$gt_cv_c_wint_t" >&6; }
19515 if test $gt_cv_c_wint_t = yes; then
19517 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
19522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
19523 $as_echo_n "checking for inttypes.h... " >&6; }
19524 if ${gl_cv_header_inttypes_h+:} false; then :
19525 $as_echo_n "(cached) " >&6
19527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19528 /* end confdefs.h. */
19529 #include <sys/types.h>
19530 #include <inttypes.h>
19534 uintmax_t i = (uintmax_t) -1;
19539 if ac_fn_c_try_compile "$LINENO"; then :
19540 gl_cv_header_inttypes_h=yes
19542 gl_cv_header_inttypes_h=no
19544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5
19547 $as_echo "$gl_cv_header_inttypes_h" >&6; }
19548 if test $gl_cv_header_inttypes_h = yes; then
19550 cat >>confdefs.h <<_ACEOF
19551 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
19557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
19558 $as_echo_n "checking for stdint.h... " >&6; }
19559 if ${gl_cv_header_stdint_h+:} false; then :
19560 $as_echo_n "(cached) " >&6
19562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19563 /* end confdefs.h. */
19564 #include <sys/types.h>
19565 #include <stdint.h>
19569 uintmax_t i = (uintmax_t) -1;
19574 if ac_fn_c_try_compile "$LINENO"; then :
19575 gl_cv_header_stdint_h=yes
19577 gl_cv_header_stdint_h=no
19579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5
19582 $as_echo "$gl_cv_header_stdint_h" >&6; }
19583 if test $gl_cv_header_stdint_h = yes; then
19585 cat >>confdefs.h <<_ACEOF
19586 #define HAVE_STDINT_H_WITH_UINTMAX 1
19594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
19595 $as_echo_n "checking for intmax_t... " >&6; }
19596 if ${gt_cv_c_intmax_t+:} false; then :
19597 $as_echo_n "(cached) " >&6
19599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19600 /* end confdefs.h. */
19602 #include <stddef.h>
19603 #include <stdlib.h>
19604 #if HAVE_STDINT_H_WITH_UINTMAX
19605 #include <stdint.h>
19607 #if HAVE_INTTYPES_H_WITH_UINTMAX
19608 #include <inttypes.h>
19619 if ac_fn_c_try_compile "$LINENO"; then :
19620 gt_cv_c_intmax_t=yes
19622 gt_cv_c_intmax_t=no
19624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
19627 $as_echo "$gt_cv_c_intmax_t" >&6; }
19628 if test $gt_cv_c_intmax_t = yes; then
19630 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
19636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5
19637 $as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
19638 if ${gt_cv_func_printf_posix+:} false; then :
19639 $as_echo_n "(cached) " >&6
19642 if test "$cross_compiling" = yes; then :
19644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19645 /* end confdefs.h. */
19647 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
19652 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19653 $EGREP "notposix" >/dev/null 2>&1; then :
19654 gt_cv_func_printf_posix="guessing no"
19656 gt_cv_func_printf_posix="guessing yes"
19662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19663 /* end confdefs.h. */
19666 #include <string.h>
19667 /* The string "%2$d %1$d", with dollar characters protected from the shell's
19668 dollar expansion (possibly an autoconf bug). */
19669 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
19670 static char buf[100];
19673 sprintf (buf, format, 33, 55);
19674 return (strcmp (buf, "55 33") != 0);
19677 if ac_fn_c_try_run "$LINENO"; then :
19678 gt_cv_func_printf_posix=yes
19680 gt_cv_func_printf_posix=no
19682 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19683 conftest.$ac_objext conftest.beam conftest.$ac_ext
19688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5
19689 $as_echo "$gt_cv_func_printf_posix" >&6; }
19690 case $gt_cv_func_printf_posix in
19693 $as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h
19698 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
19699 # for constant arguments. Useless!
19700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
19701 $as_echo_n "checking for working alloca.h... " >&6; }
19702 if ${ac_cv_working_alloca_h+:} false; then :
19703 $as_echo_n "(cached) " >&6
19705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19706 /* end confdefs.h. */
19707 #include <alloca.h>
19711 char *p = (char *) alloca (2 * sizeof (int));
19717 if ac_fn_c_try_link "$LINENO"; then :
19718 ac_cv_working_alloca_h=yes
19720 ac_cv_working_alloca_h=no
19722 rm -f core conftest.err conftest.$ac_objext \
19723 conftest$ac_exeext conftest.$ac_ext
19725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
19726 $as_echo "$ac_cv_working_alloca_h" >&6; }
19727 if test $ac_cv_working_alloca_h = yes; then
19729 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
19733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
19734 $as_echo_n "checking for alloca... " >&6; }
19735 if ${ac_cv_func_alloca_works+:} false; then :
19736 $as_echo_n "(cached) " >&6
19738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19739 /* end confdefs.h. */
19741 # define alloca __builtin_alloca
19744 # include <malloc.h>
19745 # define alloca _alloca
19747 # ifdef HAVE_ALLOCA_H
19748 # include <alloca.h>
19753 # ifndef alloca /* predefined by HP cc +Olibcalls */
19754 void *alloca (size_t);
19764 char *p = (char *) alloca (1);
19770 if ac_fn_c_try_link "$LINENO"; then :
19771 ac_cv_func_alloca_works=yes
19773 ac_cv_func_alloca_works=no
19775 rm -f core conftest.err conftest.$ac_objext \
19776 conftest$ac_exeext conftest.$ac_ext
19778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
19779 $as_echo "$ac_cv_func_alloca_works" >&6; }
19781 if test $ac_cv_func_alloca_works = yes; then
19783 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
19786 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
19787 # that cause trouble. Some versions do not even contain alloca or
19788 # contain a buggy version. If you still want to use their alloca,
19789 # use ar to extract alloca.o from them instead of compiling alloca.c.
19791 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
19793 $as_echo "#define C_ALLOCA 1" >>confdefs.h
19796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
19797 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
19798 if ${ac_cv_os_cray+:} false; then :
19799 $as_echo_n "(cached) " >&6
19801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19802 /* end confdefs.h. */
19803 #if defined CRAY && ! defined CRAY2
19810 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19811 $EGREP "webecray" >/dev/null 2>&1; then :
19819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
19820 $as_echo "$ac_cv_os_cray" >&6; }
19821 if test $ac_cv_os_cray = yes; then
19822 for ac_func in _getb67 GETB67 getb67; do
19823 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19824 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19825 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19827 cat >>confdefs.h <<_ACEOF
19828 #define CRAY_STACKSEG_END $ac_func
19837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
19838 $as_echo_n "checking stack direction for C alloca... " >&6; }
19839 if ${ac_cv_c_stack_direction+:} false; then :
19840 $as_echo_n "(cached) " >&6
19842 if test "$cross_compiling" = yes; then :
19843 ac_cv_c_stack_direction=0
19845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19846 /* end confdefs.h. */
19847 $ac_includes_default
19849 find_stack_direction (int *addr, int depth)
19851 int dir, dummy = 0;
19854 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
19855 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
19856 return dir + dummy;
19860 main (int argc, char **argv)
19862 return find_stack_direction (0, argc + !argv + 20) < 0;
19865 if ac_fn_c_try_run "$LINENO"; then :
19866 ac_cv_c_stack_direction=1
19868 ac_cv_c_stack_direction=-1
19870 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19871 conftest.$ac_objext conftest.beam conftest.$ac_ext
19875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
19876 $as_echo "$ac_cv_c_stack_direction" >&6; }
19877 cat >>confdefs.h <<_ACEOF
19878 #define STACK_DIRECTION $ac_cv_c_stack_direction
19887 for ac_header in $ac_header_list
19889 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19890 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
19892 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19893 cat >>confdefs.h <<_ACEOF
19894 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19908 for ac_func in getpagesize
19910 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
19911 if test "x$ac_cv_func_getpagesize" = xyes; then :
19912 cat >>confdefs.h <<_ACEOF
19913 #define HAVE_GETPAGESIZE 1
19919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
19920 $as_echo_n "checking for working mmap... " >&6; }
19921 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
19922 $as_echo_n "(cached) " >&6
19924 if test "$cross_compiling" = yes; then :
19925 ac_cv_func_mmap_fixed_mapped=no
19927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19928 /* end confdefs.h. */
19929 $ac_includes_default
19930 /* malloc might have been renamed as rpl_malloc. */
19933 /* Thanks to Mike Haertel and Jim Avera for this test.
19934 Here is a matrix of mmap possibilities:
19935 mmap private not fixed
19936 mmap private fixed at somewhere currently unmapped
19937 mmap private fixed at somewhere already mapped
19938 mmap shared not fixed
19939 mmap shared fixed at somewhere currently unmapped
19940 mmap shared fixed at somewhere already mapped
19941 For private mappings, we should verify that changes cannot be read()
19942 back from the file, nor mmap's back from the file at a different
19943 address. (There have been systems where private was not correctly
19944 implemented like the infamous i386 svr4.0, and systems where the
19945 VM page cache was not coherent with the file system buffer cache
19946 like early versions of FreeBSD and possibly contemporary NetBSD.)
19947 For shared mappings, we should conversely verify that changes get
19948 propagated back to all the places they're supposed to be.
19950 Grep wants private fixed already mapped.
19951 The main things grep needs to know about mmap are:
19952 * does it exist and is it safe to write into the mmap'd area
19953 * how to use it (BSD variants) */
19956 #include <sys/mman.h>
19958 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
19962 /* This mess was copied from the GNU getpagesize.h. */
19963 #ifndef HAVE_GETPAGESIZE
19964 # ifdef _SC_PAGESIZE
19965 # define getpagesize() sysconf(_SC_PAGESIZE)
19966 # else /* no _SC_PAGESIZE */
19967 # ifdef HAVE_SYS_PARAM_H
19968 # include <sys/param.h>
19969 # ifdef EXEC_PAGESIZE
19970 # define getpagesize() EXEC_PAGESIZE
19971 # else /* no EXEC_PAGESIZE */
19973 # define getpagesize() NBPG * CLSIZE
19976 # endif /* no CLSIZE */
19977 # else /* no NBPG */
19979 # define getpagesize() NBPC
19980 # else /* no NBPC */
19982 # define getpagesize() PAGESIZE
19983 # endif /* PAGESIZE */
19984 # endif /* no NBPC */
19985 # endif /* no NBPG */
19986 # endif /* no EXEC_PAGESIZE */
19987 # else /* no HAVE_SYS_PARAM_H */
19988 # define getpagesize() 8192 /* punt totally */
19989 # endif /* no HAVE_SYS_PARAM_H */
19990 # endif /* no _SC_PAGESIZE */
19992 #endif /* no HAVE_GETPAGESIZE */
19997 char *data, *data2, *data3;
19998 const char *cdata2;
20002 pagesize = getpagesize ();
20004 /* First, make a file with some known garbage in it. */
20005 data = (char *) malloc (pagesize);
20008 for (i = 0; i < pagesize; ++i)
20009 *(data + i) = rand ();
20011 fd = creat ("conftest.mmap", 0600);
20014 if (write (fd, data, pagesize) != pagesize)
20018 /* Next, check that the tail of a page is zero-filled. File must have
20019 non-zero length, otherwise we risk SIGBUS for entire page. */
20020 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
20024 if (write (fd2, cdata2, 1) != 1)
20026 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
20027 if (data2 == MAP_FAILED)
20029 for (i = 0; i < pagesize; ++i)
20033 if (munmap (data2, pagesize))
20036 /* Next, try to mmap the file at a fixed address which already has
20037 something else allocated at it. If we can, also make sure that
20038 we see the same garbage. */
20039 fd = open ("conftest.mmap", O_RDWR);
20042 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20043 MAP_PRIVATE | MAP_FIXED, fd, 0L))
20045 for (i = 0; i < pagesize; ++i)
20046 if (*(data + i) != *(data2 + i))
20049 /* Finally, make sure that changes to the mapped area do not
20050 percolate back to the file as seen by read(). (This is a bug on
20051 some variants of i386 svr4.0.) */
20052 for (i = 0; i < pagesize; ++i)
20053 *(data2 + i) = *(data2 + i) + 1;
20054 data3 = (char *) malloc (pagesize);
20057 if (read (fd, data3, pagesize) != pagesize)
20059 for (i = 0; i < pagesize; ++i)
20060 if (*(data + i) != *(data3 + i))
20066 if ac_fn_c_try_run "$LINENO"; then :
20067 ac_cv_func_mmap_fixed_mapped=yes
20069 ac_cv_func_mmap_fixed_mapped=no
20071 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20072 conftest.$ac_objext conftest.beam conftest.$ac_ext
20076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
20077 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
20078 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20080 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
20083 rm -f conftest.mmap conftest.txt
20086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5
20087 $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
20088 if ${ac_cv_gnu_library_2_1+:} false; then :
20089 $as_echo_n "(cached) " >&6
20091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20092 /* end confdefs.h. */
20094 #include <features.h>
20095 #ifdef __GNU_LIBRARY__
20096 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
20102 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20103 $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
20104 ac_cv_gnu_library_2_1=yes
20106 ac_cv_gnu_library_2_1=no
20113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
20114 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
20116 GLIBC21="$ac_cv_gnu_library_2_1"
20121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
20122 $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
20123 if ${gt_cv_int_divbyzero_sigfpe+:} false; then :
20124 $as_echo_n "(cached) " >&6
20127 if test "$cross_compiling" = yes; then :
20129 # Guess based on the CPU.
20130 case "$host_cpu" in
20131 alpha* | i3456786 | m68k | s390*)
20132 gt_cv_int_divbyzero_sigfpe="guessing yes";;
20134 gt_cv_int_divbyzero_sigfpe="guessing no";;
20138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20139 /* end confdefs.h. */
20141 #include <stdlib.h>
20142 #include <signal.h>
20146 sigfpe_handler (int sig)
20148 sigfpe_handler (sig) int sig;
20151 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
20152 exit (sig != SIGFPE);
20162 signal (SIGFPE, sigfpe_handler);
20163 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
20164 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
20165 signal (SIGTRAP, sigfpe_handler);
20167 /* Linux/SPARC yields signal SIGILL. */
20168 #if defined (__sparc__) && defined (__linux__)
20169 signal (SIGILL, sigfpe_handler);
20178 if ac_fn_c_try_run "$LINENO"; then :
20179 gt_cv_int_divbyzero_sigfpe=yes
20181 gt_cv_int_divbyzero_sigfpe=no
20183 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20184 conftest.$ac_objext conftest.beam conftest.$ac_ext
20189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
20190 $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
20191 case "$gt_cv_int_divbyzero_sigfpe" in
20196 cat >>confdefs.h <<_ACEOF
20197 #define INTDIV0_RAISES_SIGFPE $value
20202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long" >&5
20203 $as_echo_n "checking for unsigned long long... " >&6; }
20204 if ${ac_cv_type_unsigned_long_long+:} false; then :
20205 $as_echo_n "(cached) " >&6
20207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20208 /* end confdefs.h. */
20209 unsigned long long ull = 1ULL; int i = 63;
20213 unsigned long long ullmax = (unsigned long long) -1;
20214 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
20219 if ac_fn_c_try_link "$LINENO"; then :
20220 ac_cv_type_unsigned_long_long=yes
20222 ac_cv_type_unsigned_long_long=no
20224 rm -f core conftest.err conftest.$ac_objext \
20225 conftest$ac_exeext conftest.$ac_ext
20227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long" >&5
20228 $as_echo "$ac_cv_type_unsigned_long_long" >&6; }
20229 if test $ac_cv_type_unsigned_long_long = yes; then
20231 $as_echo "#define HAVE_UNSIGNED_LONG_LONG 1" >>confdefs.h
20238 if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
20240 test $ac_cv_type_unsigned_long_long = yes \
20241 && ac_type='unsigned long long' \
20242 || ac_type='unsigned long'
20244 cat >>confdefs.h <<_ACEOF
20245 #define uintmax_t $ac_type
20250 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
20255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
20256 $as_echo_n "checking for inttypes.h... " >&6; }
20257 if ${gt_cv_header_inttypes_h+:} false; then :
20258 $as_echo_n "(cached) " >&6
20261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20262 /* end confdefs.h. */
20263 #include <sys/types.h>
20264 #include <inttypes.h>
20273 if ac_fn_c_try_compile "$LINENO"; then :
20274 gt_cv_header_inttypes_h=yes
20276 gt_cv_header_inttypes_h=no
20278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_header_inttypes_h" >&5
20282 $as_echo "$gt_cv_header_inttypes_h" >&6; }
20283 if test $gt_cv_header_inttypes_h = yes; then
20285 cat >>confdefs.h <<_ACEOF
20286 #define HAVE_INTTYPES_H 1
20293 if test $gt_cv_header_inttypes_h = yes; then
20294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
20295 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
20296 if ${gt_cv_inttypes_pri_broken+:} false; then :
20297 $as_echo_n "(cached) " >&6
20300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20301 /* end confdefs.h. */
20302 #include <inttypes.h>
20315 if ac_fn_c_try_compile "$LINENO"; then :
20316 gt_cv_inttypes_pri_broken=no
20318 gt_cv_inttypes_pri_broken=yes
20320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
20324 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
20326 if test "$gt_cv_inttypes_pri_broken" = yes; then
20328 cat >>confdefs.h <<_ACEOF
20329 #define PRI_MACROS_BROKEN 1
20335 for ac_header in stdint.h
20337 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
20338 if test "x$ac_cv_header_stdint_h" = xyes; then :
20339 cat >>confdefs.h <<_ACEOF
20340 #define HAVE_STDINT_H 1
20347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
20348 $as_echo_n "checking for SIZE_MAX... " >&6; }
20350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20351 /* end confdefs.h. */
20353 #include <limits.h>
20355 #include <stdint.h>
20362 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20363 $EGREP "Found it" >/dev/null 2>&1; then :
20368 if test -z "$result"; then
20369 if ac_fn_c_compute_int "$LINENO" "~(size_t)0 / 10" "res_hi" "#include <stddef.h>"; then :
20376 if ac_fn_c_compute_int "$LINENO" "~(size_t)0 % 10" "res_lo" "#include <stddef.h>"; then :
20383 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint" "#include <stddef.h>"; then :
20390 if test "$fits_in_uint" = 1; then
20391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20392 /* end confdefs.h. */
20393 #include <stddef.h>
20395 extern unsigned long foo;
20405 if ac_fn_c_try_compile "$LINENO"; then :
20408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20410 if test -z "$result"; then
20411 if test "$fits_in_uint" = 1; then
20412 result="$res_hi$res_lo"U
20414 result="$res_hi$res_lo"UL
20417 result='~(size_t)0'
20420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
20421 $as_echo "$result" >&6; }
20422 if test "$result" != yes; then
20424 cat >>confdefs.h <<_ACEOF
20425 #define SIZE_MAX $result
20433 for ac_header in stdint.h
20435 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
20436 if test "x$ac_cv_header_stdint_h" = xyes; then :
20437 cat >>confdefs.h <<_ACEOF
20438 #define HAVE_STDINT_H 1
20452 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
20453 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
20457 $as_echo "#define ptrdiff_t long" >>confdefs.h
20462 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
20463 stdlib.h string.h unistd.h sys/param.h
20465 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20466 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20467 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20468 cat >>confdefs.h <<_ACEOF
20469 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20476 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
20477 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
20478 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
20481 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20482 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20483 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
20484 cat >>confdefs.h <<_ACEOF
20485 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snprintf is declared" >&5
20494 $as_echo_n "checking whether _snprintf is declared... " >&6; }
20495 if ${ac_cv_have_decl__snprintf+:} false; then :
20496 $as_echo_n "(cached) " >&6
20498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20499 /* end confdefs.h. */
20506 char *p = (char *) _snprintf;
20513 if ac_fn_c_try_compile "$LINENO"; then :
20514 ac_cv_have_decl__snprintf=yes
20516 ac_cv_have_decl__snprintf=no
20518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snprintf" >&5
20521 $as_echo "$ac_cv_have_decl__snprintf" >&6; }
20522 if test $ac_cv_have_decl__snprintf = yes; then
20528 cat >>confdefs.h <<_ACEOF
20529 #define HAVE_DECL__SNPRINTF $gt_value
20534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snwprintf is declared" >&5
20535 $as_echo_n "checking whether _snwprintf is declared... " >&6; }
20536 if ${ac_cv_have_decl__snwprintf+:} false; then :
20537 $as_echo_n "(cached) " >&6
20539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20540 /* end confdefs.h. */
20547 char *p = (char *) _snwprintf;
20554 if ac_fn_c_try_compile "$LINENO"; then :
20555 ac_cv_have_decl__snwprintf=yes
20557 ac_cv_have_decl__snwprintf=no
20559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snwprintf" >&5
20562 $as_echo "$ac_cv_have_decl__snwprintf" >&6; }
20563 if test $ac_cv_have_decl__snwprintf = yes; then
20569 cat >>confdefs.h <<_ACEOF
20570 #define HAVE_DECL__SNWPRINTF $gt_value
20576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether feof_unlocked is declared" >&5
20577 $as_echo_n "checking whether feof_unlocked is declared... " >&6; }
20578 if ${ac_cv_have_decl_feof_unlocked+:} false; then :
20579 $as_echo_n "(cached) " >&6
20581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20582 /* end confdefs.h. */
20588 #ifndef feof_unlocked
20589 char *p = (char *) feof_unlocked;
20596 if ac_fn_c_try_compile "$LINENO"; then :
20597 ac_cv_have_decl_feof_unlocked=yes
20599 ac_cv_have_decl_feof_unlocked=no
20601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_feof_unlocked" >&5
20604 $as_echo "$ac_cv_have_decl_feof_unlocked" >&6; }
20605 if test $ac_cv_have_decl_feof_unlocked = yes; then
20611 cat >>confdefs.h <<_ACEOF
20612 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
20617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fgets_unlocked is declared" >&5
20618 $as_echo_n "checking whether fgets_unlocked is declared... " >&6; }
20619 if ${ac_cv_have_decl_fgets_unlocked+:} false; then :
20620 $as_echo_n "(cached) " >&6
20622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20623 /* end confdefs.h. */
20629 #ifndef fgets_unlocked
20630 char *p = (char *) fgets_unlocked;
20637 if ac_fn_c_try_compile "$LINENO"; then :
20638 ac_cv_have_decl_fgets_unlocked=yes
20640 ac_cv_have_decl_fgets_unlocked=no
20642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_fgets_unlocked" >&5
20645 $as_echo "$ac_cv_have_decl_fgets_unlocked" >&6; }
20646 if test $ac_cv_have_decl_fgets_unlocked = yes; then
20652 cat >>confdefs.h <<_ACEOF
20653 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
20658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getc_unlocked is declared" >&5
20659 $as_echo_n "checking whether getc_unlocked is declared... " >&6; }
20660 if ${ac_cv_have_decl_getc_unlocked+:} false; then :
20661 $as_echo_n "(cached) " >&6
20663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20664 /* end confdefs.h. */
20670 #ifndef getc_unlocked
20671 char *p = (char *) getc_unlocked;
20678 if ac_fn_c_try_compile "$LINENO"; then :
20679 ac_cv_have_decl_getc_unlocked=yes
20681 ac_cv_have_decl_getc_unlocked=no
20683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_getc_unlocked" >&5
20686 $as_echo "$ac_cv_have_decl_getc_unlocked" >&6; }
20687 if test $ac_cv_have_decl_getc_unlocked = yes; then
20693 cat >>confdefs.h <<_ACEOF
20694 #define HAVE_DECL_GETC_UNLOCKED $gt_value
20699 case $gt_cv_func_printf_posix in
20700 *yes) HAVE_POSIX_PRINTF=1 ;;
20701 *) HAVE_POSIX_PRINTF=0 ;;
20704 if test "$ac_cv_func_asprintf" = yes; then
20710 if test "$ac_cv_func_snprintf" = yes; then
20716 if test "$ac_cv_func_wprintf" = yes; then
20728 am_save_CPPFLAGS="$CPPFLAGS"
20730 for element in $INCICONV; do
20732 for x in $CPPFLAGS; do
20734 acl_save_prefix="$prefix"
20735 prefix="$acl_final_prefix"
20736 acl_save_exec_prefix="$exec_prefix"
20737 exec_prefix="$acl_final_exec_prefix"
20739 exec_prefix="$acl_save_exec_prefix"
20740 prefix="$acl_save_prefix"
20742 if test "X$x" = "X$element"; then
20747 if test -z "$haveit"; then
20748 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
20753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
20754 $as_echo_n "checking for iconv... " >&6; }
20755 if ${am_cv_func_iconv+:} false; then :
20756 $as_echo_n "(cached) " >&6
20759 am_cv_func_iconv="no, consider installing GNU libiconv"
20761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20762 /* end confdefs.h. */
20763 #include <stdlib.h>
20768 iconv_t cd = iconv_open("","");
20769 iconv(cd,NULL,NULL,NULL,NULL);
20775 if ac_fn_c_try_link "$LINENO"; then :
20776 am_cv_func_iconv=yes
20778 rm -f core conftest.err conftest.$ac_objext \
20779 conftest$ac_exeext conftest.$ac_ext
20780 if test "$am_cv_func_iconv" != yes; then
20781 am_save_LIBS="$LIBS"
20782 LIBS="$LIBS $LIBICONV"
20783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20784 /* end confdefs.h. */
20785 #include <stdlib.h>
20790 iconv_t cd = iconv_open("","");
20791 iconv(cd,NULL,NULL,NULL,NULL);
20797 if ac_fn_c_try_link "$LINENO"; then :
20798 am_cv_lib_iconv=yes
20799 am_cv_func_iconv=yes
20801 rm -f core conftest.err conftest.$ac_objext \
20802 conftest$ac_exeext conftest.$ac_ext
20803 LIBS="$am_save_LIBS"
20807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
20808 $as_echo "$am_cv_func_iconv" >&6; }
20809 if test "$am_cv_func_iconv" = yes; then
20811 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
20814 if test "$am_cv_lib_iconv" = yes; then
20815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
20816 $as_echo_n "checking how to link with libiconv... " >&6; }
20817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
20818 $as_echo "$LIBICONV" >&6; }
20820 CPPFLAGS="$am_save_CPPFLAGS"
20827 if test "$am_cv_func_iconv" = yes; then
20828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
20829 $as_echo_n "checking for iconv declaration... " >&6; }
20830 if ${am_cv_proto_iconv+:} false; then :
20831 $as_echo_n "(cached) " >&6
20834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20835 /* end confdefs.h. */
20837 #include <stdlib.h>
20843 #if defined(__STDC__) || defined(__cplusplus)
20844 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
20857 if ac_fn_c_try_compile "$LINENO"; then :
20858 am_cv_proto_iconv_arg1=""
20860 am_cv_proto_iconv_arg1="const"
20862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20863 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);"
20866 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
20867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
20868 }$am_cv_proto_iconv" >&5
20870 }$am_cv_proto_iconv" >&6; }
20872 cat >>confdefs.h <<_ACEOF
20873 #define ICONV_CONST $am_cv_proto_iconv_arg1
20879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
20880 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
20881 if ${am_cv_langinfo_codeset+:} false; then :
20882 $as_echo_n "(cached) " >&6
20884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20885 /* end confdefs.h. */
20886 #include <langinfo.h>
20890 char* cs = nl_langinfo(CODESET);
20895 if ac_fn_c_try_link "$LINENO"; then :
20896 am_cv_langinfo_codeset=yes
20898 am_cv_langinfo_codeset=no
20900 rm -f core conftest.err conftest.$ac_objext \
20901 conftest$ac_exeext conftest.$ac_ext
20904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
20905 $as_echo "$am_cv_langinfo_codeset" >&6; }
20906 if test $am_cv_langinfo_codeset = yes; then
20908 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
20912 if test $ac_cv_header_locale_h = yes; then
20914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
20915 $as_echo_n "checking for LC_MESSAGES... " >&6; }
20916 if ${gt_cv_val_LC_MESSAGES+:} false; then :
20917 $as_echo_n "(cached) " >&6
20919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20920 /* end confdefs.h. */
20921 #include <locale.h>
20930 if ac_fn_c_try_link "$LINENO"; then :
20931 gt_cv_val_LC_MESSAGES=yes
20933 gt_cv_val_LC_MESSAGES=no
20935 rm -f core conftest.err conftest.$ac_objext \
20936 conftest$ac_exeext conftest.$ac_ext
20938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_val_LC_MESSAGES" >&5
20939 $as_echo "$gt_cv_val_LC_MESSAGES" >&6; }
20940 if test $gt_cv_val_LC_MESSAGES = yes; then
20942 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
20948 if test -n "$INTL_MACOSX_LIBS"; then
20949 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
20952 for ac_prog in bison
20954 # Extract the first word of "$ac_prog", so it can be a program name with args.
20955 set dummy $ac_prog; ac_word=$2
20956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20957 $as_echo_n "checking for $ac_word... " >&6; }
20958 if ${ac_cv_prog_INTLBISON+:} false; then :
20959 $as_echo_n "(cached) " >&6
20961 if test -n "$INTLBISON"; then
20962 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
20964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20965 for as_dir in $PATH
20968 test -z "$as_dir" && as_dir=.
20969 for ac_exec_ext in '' $ac_executable_extensions; do
20970 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20971 ac_cv_prog_INTLBISON="$ac_prog"
20972 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20981 INTLBISON=$ac_cv_prog_INTLBISON
20982 if test -n "$INTLBISON"; then
20983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
20984 $as_echo "$INTLBISON" >&6; }
20986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20987 $as_echo "no" >&6; }
20991 test -n "$INTLBISON" && break
20994 if test -z "$INTLBISON"; then
20997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
20998 $as_echo_n "checking version of bison... " >&6; }
20999 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
21000 case $ac_prog_version in
21001 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
21002 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
21003 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
21004 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
21006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
21007 $as_echo "$ac_prog_version" >&6; }
21009 if test $ac_verc_fail = yes; then
21028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
21029 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
21030 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
21031 $as_echo_n "(cached) " >&6
21033 gt_save_CPPFLAGS="$CPPFLAGS"
21034 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
21035 gt_save_LIBS="$LIBS"
21036 LIBS="$LIBS -framework CoreFoundation"
21037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21038 /* end confdefs.h. */
21039 #include <CFPreferences.h>
21043 CFPreferencesCopyAppValue(NULL, NULL)
21048 if ac_fn_c_try_link "$LINENO"; then :
21049 gt_cv_func_CFPreferencesCopyAppValue=yes
21051 gt_cv_func_CFPreferencesCopyAppValue=no
21053 rm -f core conftest.err conftest.$ac_objext \
21054 conftest$ac_exeext conftest.$ac_ext
21055 CPPFLAGS="$gt_save_CPPFLAGS"
21056 LIBS="$gt_save_LIBS"
21058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
21059 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
21060 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
21062 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
21065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
21066 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
21067 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
21068 $as_echo_n "(cached) " >&6
21070 gt_save_CPPFLAGS="$CPPFLAGS"
21071 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
21072 gt_save_LIBS="$LIBS"
21073 LIBS="$LIBS -framework CoreFoundation"
21074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21075 /* end confdefs.h. */
21076 #include <CFLocale.h>
21080 CFLocaleCopyCurrent();
21085 if ac_fn_c_try_link "$LINENO"; then :
21086 gt_cv_func_CFLocaleCopyCurrent=yes
21088 gt_cv_func_CFLocaleCopyCurrent=no
21090 rm -f core conftest.err conftest.$ac_objext \
21091 conftest$ac_exeext conftest.$ac_ext
21092 CPPFLAGS="$gt_save_CPPFLAGS"
21093 LIBS="$gt_save_LIBS"
21095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
21096 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
21097 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
21099 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
21103 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
21104 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
21110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
21111 $as_echo_n "checking whether NLS is requested... " >&6; }
21112 # Check whether --enable-nls was given.
21113 if test "${enable_nls+set}" = set; then :
21114 enableval=$enable_nls; USE_NLS=$enableval
21119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
21120 $as_echo "$USE_NLS" >&6; }
21125 BUILD_INCLUDED_LIBINTL=no
21126 USE_INCLUDED_LIBINTL=no
21132 if test "$USE_NLS" = "yes"; then
21133 gt_use_preinstalled_gnugettext=no
21135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
21136 $as_echo_n "checking whether included gettext is requested... " >&6; }
21138 # Check whether --with-included-gettext was given.
21139 if test "${with_included_gettext+set}" = set; then :
21140 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
21142 nls_cv_force_use_gnu_gettext=no
21145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
21146 $as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
21148 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
21149 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
21156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
21157 $as_echo_n "checking for GNU gettext in libc... " >&6; }
21158 if ${gt_cv_func_gnugettext1_libc+:} false; then :
21159 $as_echo_n "(cached) " >&6
21161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21162 /* end confdefs.h. */
21163 #include <libintl.h>
21164 extern int _nl_msg_cat_cntr;
21165 extern int *_nl_domain_bindings;
21169 bindtextdomain ("", "");
21170 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
21175 if ac_fn_c_try_link "$LINENO"; then :
21176 gt_cv_func_gnugettext1_libc=yes
21178 gt_cv_func_gnugettext1_libc=no
21180 rm -f core conftest.err conftest.$ac_objext \
21181 conftest$ac_exeext conftest.$ac_ext
21183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5
21184 $as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
21186 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
21192 acl_save_prefix="$prefix"
21193 prefix="$acl_final_prefix"
21194 acl_save_exec_prefix="$exec_prefix"
21195 exec_prefix="$acl_final_exec_prefix"
21197 eval additional_includedir=\"$includedir\"
21198 eval additional_libdir=\"$libdir\"
21200 exec_prefix="$acl_save_exec_prefix"
21201 prefix="$acl_save_prefix"
21204 # Check whether --with-libintl-prefix was given.
21205 if test "${with_libintl_prefix+set}" = set; then :
21206 withval=$with_libintl_prefix;
21207 if test "X$withval" = "Xno"; then
21210 if test "X$withval" = "X"; then
21212 acl_save_prefix="$prefix"
21213 prefix="$acl_final_prefix"
21214 acl_save_exec_prefix="$exec_prefix"
21215 exec_prefix="$acl_final_exec_prefix"
21217 eval additional_includedir=\"$includedir\"
21218 eval additional_libdir=\"$libdir\"
21220 exec_prefix="$acl_save_exec_prefix"
21221 prefix="$acl_save_prefix"
21224 additional_includedir="$withval/include"
21225 additional_libdir="$withval/lib"
21236 names_already_handled=
21237 names_next_round='intl '
21238 while test -n "$names_next_round"; do
21239 names_this_round="$names_next_round"
21241 for name in $names_this_round; do
21243 for n in $names_already_handled; do
21244 if test "$n" = "$name"; then
21245 already_handled=yes
21249 if test -z "$already_handled"; then
21250 names_already_handled="$names_already_handled $name"
21251 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
21252 eval value=\"\$HAVE_LIB$uppername\"
21253 if test -n "$value"; then
21254 if test "$value" = yes; then
21255 eval value=\"\$LIB$uppername\"
21256 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
21257 eval value=\"\$LTLIB$uppername\"
21258 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
21267 if test $use_additional = yes; then
21268 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
21269 found_dir="$additional_libdir"
21270 found_so="$additional_libdir/lib$name.$shlibext"
21271 if test -f "$additional_libdir/lib$name.la"; then
21272 found_la="$additional_libdir/lib$name.la"
21275 if test -f "$additional_libdir/lib$name.$libext"; then
21276 found_dir="$additional_libdir"
21277 found_a="$additional_libdir/lib$name.$libext"
21278 if test -f "$additional_libdir/lib$name.la"; then
21279 found_la="$additional_libdir/lib$name.la"
21284 if test "X$found_dir" = "X"; then
21285 for x in $LDFLAGS $LTLIBINTL; do
21287 acl_save_prefix="$prefix"
21288 prefix="$acl_final_prefix"
21289 acl_save_exec_prefix="$exec_prefix"
21290 exec_prefix="$acl_final_exec_prefix"
21292 exec_prefix="$acl_save_exec_prefix"
21293 prefix="$acl_save_prefix"
21297 dir=`echo "X$x" | sed -e 's/^X-L//'`
21298 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
21300 found_so="$dir/lib$name.$shlibext"
21301 if test -f "$dir/lib$name.la"; then
21302 found_la="$dir/lib$name.la"
21305 if test -f "$dir/lib$name.$libext"; then
21307 found_a="$dir/lib$name.$libext"
21308 if test -f "$dir/lib$name.la"; then
21309 found_la="$dir/lib$name.la"
21315 if test "X$found_dir" != "X"; then
21320 if test "X$found_dir" != "X"; then
21321 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
21322 if test "X$found_so" != "X"; then
21323 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
21324 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
21327 for x in $ltrpathdirs; do
21328 if test "X$x" = "X$found_dir"; then
21333 if test -z "$haveit"; then
21334 ltrpathdirs="$ltrpathdirs $found_dir"
21336 if test "$hardcode_direct" = yes; then
21337 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
21339 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
21340 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
21342 for x in $rpathdirs; do
21343 if test "X$x" = "X$found_dir"; then
21348 if test -z "$haveit"; then
21349 rpathdirs="$rpathdirs $found_dir"
21353 for x in $LDFLAGS $LIBINTL; do
21355 acl_save_prefix="$prefix"
21356 prefix="$acl_final_prefix"
21357 acl_save_exec_prefix="$exec_prefix"
21358 exec_prefix="$acl_final_exec_prefix"
21360 exec_prefix="$acl_save_exec_prefix"
21361 prefix="$acl_save_prefix"
21363 if test "X$x" = "X-L$found_dir"; then
21368 if test -z "$haveit"; then
21369 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
21371 if test "$hardcode_minus_L" != no; then
21372 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
21374 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
21380 if test "X$found_a" != "X"; then
21381 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
21383 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
21386 additional_includedir=
21387 case "$found_dir" in
21389 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
21390 additional_includedir="$basedir/include"
21393 if test "X$additional_includedir" != "X"; then
21394 if test "X$additional_includedir" != "X/usr/include"; then
21396 if test "X$additional_includedir" = "X/usr/local/include"; then
21397 if test -n "$GCC"; then
21399 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
21403 if test -z "$haveit"; then
21404 for x in $CPPFLAGS $INCINTL; do
21406 acl_save_prefix="$prefix"
21407 prefix="$acl_final_prefix"
21408 acl_save_exec_prefix="$exec_prefix"
21409 exec_prefix="$acl_final_exec_prefix"
21411 exec_prefix="$acl_save_exec_prefix"
21412 prefix="$acl_save_prefix"
21414 if test "X$x" = "X-I$additional_includedir"; then
21419 if test -z "$haveit"; then
21420 if test -d "$additional_includedir"; then
21421 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
21427 if test -n "$found_la"; then
21428 save_libdir="$libdir"
21429 case "$found_la" in
21430 */* | *\\*) . "$found_la" ;;
21431 *) . "./$found_la" ;;
21433 libdir="$save_libdir"
21434 for dep in $dependency_libs; do
21437 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
21438 if test "X$additional_libdir" != "X/usr/lib"; then
21440 if test "X$additional_libdir" = "X/usr/local/lib"; then
21441 if test -n "$GCC"; then
21443 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
21447 if test -z "$haveit"; then
21449 for x in $LDFLAGS $LIBINTL; do
21451 acl_save_prefix="$prefix"
21452 prefix="$acl_final_prefix"
21453 acl_save_exec_prefix="$exec_prefix"
21454 exec_prefix="$acl_final_exec_prefix"
21456 exec_prefix="$acl_save_exec_prefix"
21457 prefix="$acl_save_prefix"
21459 if test "X$x" = "X-L$additional_libdir"; then
21464 if test -z "$haveit"; then
21465 if test -d "$additional_libdir"; then
21466 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
21470 for x in $LDFLAGS $LTLIBINTL; do
21472 acl_save_prefix="$prefix"
21473 prefix="$acl_final_prefix"
21474 acl_save_exec_prefix="$exec_prefix"
21475 exec_prefix="$acl_final_exec_prefix"
21477 exec_prefix="$acl_save_exec_prefix"
21478 prefix="$acl_save_prefix"
21480 if test "X$x" = "X-L$additional_libdir"; then
21485 if test -z "$haveit"; then
21486 if test -d "$additional_libdir"; then
21487 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
21494 dir=`echo "X$dep" | sed -e 's/^X-R//'`
21495 if test "$enable_rpath" != no; then
21497 for x in $rpathdirs; do
21498 if test "X$x" = "X$dir"; then
21503 if test -z "$haveit"; then
21504 rpathdirs="$rpathdirs $dir"
21507 for x in $ltrpathdirs; do
21508 if test "X$x" = "X$dir"; then
21513 if test -z "$haveit"; then
21514 ltrpathdirs="$ltrpathdirs $dir"
21519 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
21522 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
21525 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
21526 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
21532 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
21533 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
21539 if test "X$rpathdirs" != "X"; then
21540 if test -n "$hardcode_libdir_separator"; then
21542 for found_dir in $rpathdirs; do
21543 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
21545 acl_save_libdir="$libdir"
21547 eval flag=\"$hardcode_libdir_flag_spec\"
21548 libdir="$acl_save_libdir"
21549 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
21551 for found_dir in $rpathdirs; do
21552 acl_save_libdir="$libdir"
21553 libdir="$found_dir"
21554 eval flag=\"$hardcode_libdir_flag_spec\"
21555 libdir="$acl_save_libdir"
21556 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
21560 if test "X$ltrpathdirs" != "X"; then
21561 for found_dir in $ltrpathdirs; do
21562 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
21566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
21567 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
21568 if ${gt_cv_func_gnugettext1_libintl+:} false; then :
21569 $as_echo_n "(cached) " >&6
21571 gt_save_CPPFLAGS="$CPPFLAGS"
21572 CPPFLAGS="$CPPFLAGS $INCINTL"
21573 gt_save_LIBS="$LIBS"
21574 LIBS="$LIBS $LIBINTL"
21575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21576 /* end confdefs.h. */
21577 #include <libintl.h>
21578 extern int _nl_msg_cat_cntr;
21583 const char *_nl_expand_alias (const char *);
21587 bindtextdomain ("", "");
21588 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
21593 if ac_fn_c_try_link "$LINENO"; then :
21594 gt_cv_func_gnugettext1_libintl=yes
21596 gt_cv_func_gnugettext1_libintl=no
21598 rm -f core conftest.err conftest.$ac_objext \
21599 conftest$ac_exeext conftest.$ac_ext
21600 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
21601 LIBS="$LIBS $LIBICONV"
21602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21603 /* end confdefs.h. */
21604 #include <libintl.h>
21605 extern int _nl_msg_cat_cntr;
21610 const char *_nl_expand_alias (const char *);
21614 bindtextdomain ("", "");
21615 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
21620 if ac_fn_c_try_link "$LINENO"; then :
21621 LIBINTL="$LIBINTL $LIBICONV"
21622 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
21623 gt_cv_func_gnugettext1_libintl=yes
21626 rm -f core conftest.err conftest.$ac_objext \
21627 conftest$ac_exeext conftest.$ac_ext
21629 CPPFLAGS="$gt_save_CPPFLAGS"
21630 LIBS="$gt_save_LIBS"
21632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5
21633 $as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
21636 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
21637 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
21638 && test "$PACKAGE" != gettext-runtime \
21639 && test "$PACKAGE" != gettext-tools; }; then
21640 gt_use_preinstalled_gnugettext=yes
21648 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
21649 nls_cv_use_gnu_gettext=yes
21653 if test "$nls_cv_use_gnu_gettext" = "yes"; then
21654 BUILD_INCLUDED_LIBINTL=yes
21655 USE_INCLUDED_LIBINTL=yes
21656 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
21657 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
21658 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
21662 if test "$gt_use_preinstalled_gnugettext" = "yes" \
21663 || test "$nls_cv_use_gnu_gettext" = "yes"; then
21668 if test -n "$INTL_MACOSX_LIBS"; then
21669 if test "$gt_use_preinstalled_gnugettext" = "yes" \
21670 || test "$nls_cv_use_gnu_gettext" = "yes"; then
21671 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
21672 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
21676 if test "$gt_use_preinstalled_gnugettext" = "yes" \
21677 || test "$nls_cv_use_gnu_gettext" = "yes"; then
21679 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
21686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
21687 $as_echo_n "checking whether to use NLS... " >&6; }
21688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
21689 $as_echo "$USE_NLS" >&6; }
21690 if test "$USE_NLS" = "yes"; then
21691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
21692 $as_echo_n "checking where the gettext function comes from... " >&6; }
21693 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
21694 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
21695 gt_source="external libintl"
21700 gt_source="included intl directory"
21702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
21703 $as_echo "$gt_source" >&6; }
21706 if test "$USE_NLS" = "yes"; then
21708 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
21709 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
21710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
21711 $as_echo_n "checking how to link with libintl... " >&6; }
21712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
21713 $as_echo "$LIBINTL" >&6; }
21715 for element in $INCINTL; do
21717 for x in $CPPFLAGS; do
21719 acl_save_prefix="$prefix"
21720 prefix="$acl_final_prefix"
21721 acl_save_exec_prefix="$exec_prefix"
21722 exec_prefix="$acl_final_exec_prefix"
21724 exec_prefix="$acl_save_exec_prefix"
21725 prefix="$acl_save_prefix"
21727 if test "X$x" = "X$element"; then
21732 if test -z "$haveit"; then
21733 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
21740 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
21743 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
21751 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
21752 BUILD_INCLUDED_LIBINTL=yes
21759 nls_cv_header_intl=
21760 nls_cv_header_libgt=
21772 if test "$USE_INCLUDED_LIBINTL" = yes; then
21773 INTLOBJS="\$(GETTOBJS)"
21777 INTL_LIBTOOL_SUFFIX_PREFIX=
21781 INTLLIBS="$LIBINTL"
21790 support_smartalloc=yes
21791 support_readline=yes
21797 support_static_tools=no
21798 support_static_fd=no
21799 support_static_sd=no
21800 support_static_dir=no
21801 support_static_cons=no
21802 build_client_only=no
21806 batch_insert_db_backends=""
21810 # Check whether --enable-bat was given.
21811 if test "${enable_bat+set}" = set; then :
21812 enableval=$enable_bat;
21813 if test x$enableval = xyes; then
21815 $as_echo "#define HAVE_BAT 1" >>confdefs.h
21825 if test x$support_bat = xyes; then
21826 abc=`$PKGCONFIG --atleast-version=4.2 QtGui`
21828 if test $pkg = 0; then
21829 BAT_DIR=src/qt-console
21831 as_fn_error $? "Unable to find Qt4 installation needed by bat" "$LINENO" 5
21849 # Check whether --enable-smartalloc was given.
21850 if test "${enable_smartalloc+set}" = set; then :
21851 enableval=$enable_smartalloc;
21852 if test x$enableval = xno; then
21853 support_smartalloc=no
21860 if test x$support_smartalloc = xyes; then
21862 $as_echo "#define SMARTALLOC 1" >>confdefs.h
21866 # Check whether --enable-lockmgr was given.
21867 if test "${enable_lockmgr+set}" = set; then :
21868 enableval=$enable_lockmgr;
21869 if test x$enableval = xyes; then
21870 support_lockmgr=yes
21877 if test x$support_lockmgr = xyes; then
21879 $as_echo "#define USE_LOCKMGR 1" >>confdefs.h
21884 # Check whether --enable-static-tools was given.
21885 if test "${enable_static_tools+set}" = set; then :
21886 enableval=$enable_static_tools;
21887 if test x$enableval = xyes; then
21888 if test x$use_libtool = xyes; then
21889 as_fn_error $? "Libtool is enabled, not compatible with static tools,
21890 please rerun configure with --disable-libtool" "$LINENO" 5
21892 support_static_tools=yes
21900 if test x$support_static_tools = xyes; then
21901 TTOOL_LDFLAGS="-static"
21905 # Check whether --enable-static-fd was given.
21906 if test "${enable_static_fd+set}" = set; then :
21907 enableval=$enable_static_fd;
21908 if test x$enableval = xyes; then
21909 if test x$use_libtool = xyes; then
21910 as_fn_error $? "Libtool is enabled, not compatible with static tools,
21911 please rerun configure with --disable-libtool" "$LINENO" 5
21913 support_static_fd=yes
21921 if test x$support_static_fd = xyes; then
21922 STATIC_FD="static-bacula-fd"
21926 # Check whether --enable-static-sd was given.
21927 if test "${enable_static_sd+set}" = set; then :
21928 enableval=$enable_static_sd;
21929 if test x$enableval = xyes; then
21930 if test x$use_libtool = xyes; then
21931 as_fn_error $? "Libtool is enabled, not compatible with static tools,
21932 please rerun configure with --disable-libtool" "$LINENO" 5
21934 support_static_sd=yes
21942 if test x$support_static_sd = xyes; then
21943 STATIC_SD="static-bacula-sd"
21947 # Check whether --enable-static-dir was given.
21948 if test "${enable_static_dir+set}" = set; then :
21949 enableval=$enable_static_dir;
21950 if test x$enableval = xyes; then
21951 if test x$use_libtool = xyes; then
21952 as_fn_error $? "Libtool is enabled, not compatible with static tools,
21953 please rerun configure with --disable-libtool" "$LINENO" 5
21955 support_static_dir=yes
21963 if test x$support_static_dir = xyes; then
21964 STATIC_DIR="static-bacula-dir"
21968 # Check whether --enable-static-cons was given.
21969 if test "${enable_static_cons+set}" = set; then :
21970 enableval=$enable_static_cons;
21971 if test x$enableval = xyes; then
21972 if test x$use_libtool = xyes; then
21973 as_fn_error $? "Libtool is enabled, not compatible with static tools,
21974 please rerun configure with --disable-libtool" "$LINENO" 5
21976 support_static_cons=yes
21984 if test x$support_static_cons = xyes; then
21985 STATIC_CONS="static-bconsole"
21989 # Check whether --enable-client-only was given.
21990 if test "${enable_client_only+set}" = set; then :
21991 enableval=$enable_client_only;
21992 if test x$enableval = xyes; then
21993 build_client_only=yes
22001 if test x$build_client_only = xno; then
22008 # Check whether --enable-build-dird was given.
22009 if test "${enable_build_dird+set}" = set; then :
22010 enableval=$enable_build_dird;
22011 if test x$enableval = xno; then
22019 DIRD_DIR="src/dird"
22020 DIR_TOOLS="DIRTOOLS"
22025 # Check whether --enable-build-stored was given.
22026 if test "${enable_build_stored+set}" = set; then :
22027 enableval=$enable_build_stored;
22028 if test x$enableval = xno; then
22035 if test x$build_stored = xyes; then
22036 STORED_DIR="src/stored"
22042 # Check whether --enable-conio was given.
22043 if test "${enable_conio+set}" = set; then :
22044 enableval=$enable_conio;
22045 if test x$enableval = xno; then
22055 # Check whether --enable-ipv6 was given.
22056 if test "${enable_ipv6+set}" = set; then :
22057 enableval=$enable_ipv6;
22058 if test x$enableval = xno; then
22066 if test x$support_ipv6 = xyes; then
22067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22068 /* end confdefs.h. */
22069 #include <sys/types.h>
22070 #include <sys/socket.h>
22071 #include <netinet/in.h>
22075 struct in6_addr t=in6addr_any; t.s6_addr[0] = 0;
22080 if ac_fn_c_try_link "$LINENO"; then :
22081 support_in6addr_any=yes
22083 support_in6addr_any=no
22085 rm -f core conftest.err conftest.$ac_objext \
22086 conftest$ac_exeext conftest.$ac_ext
22088 if test x$support_in6addr_any = xno ; then
22089 in6addr_any="const struct in6_addr in6addr_any"
22094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22095 /* end confdefs.h. */
22096 #include <sys/types.h>
22097 #include <sys/socket.h>
22098 #include <netinet/in.h>
22102 $in6addr_any; struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] = 0;
22107 if ac_fn_c_try_link "$LINENO"; then :
22112 rm -f core conftest.err conftest.$ac_objext \
22113 conftest$ac_exeext conftest.$ac_ext
22116 if test x$support_ipv6 = xyes; then
22118 $as_echo "#define HAVE_IPV6 1" >>confdefs.h
22121 if test x$support_in6addr_any = xno ; then
22123 $as_echo "#define NEED_IN6ADDR_ANY 1" >>confdefs.h
22129 ac_fn_c_check_header_mongrel "$LINENO" "curses.h" "ac_cv_header_curses_h" "$ac_includes_default"
22130 if test "x$ac_cv_header_curses_h" = xyes; then :
22132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltinfo" >&5
22133 $as_echo_n "checking for tgetent in -ltinfo... " >&6; }
22134 if ${ac_cv_lib_tinfo_tgetent+:} false; then :
22135 $as_echo_n "(cached) " >&6
22137 ac_check_lib_save_LIBS=$LIBS
22138 LIBS="-ltinfo $LIBS"
22139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22140 /* end confdefs.h. */
22142 /* Override any GCC internal prototype to avoid an error.
22143 Use char because int might match the return type of a GCC
22144 builtin and then its argument prototype would still apply. */
22157 if ac_fn_c_try_link "$LINENO"; then :
22158 ac_cv_lib_tinfo_tgetent=yes
22160 ac_cv_lib_tinfo_tgetent=no
22162 rm -f core conftest.err conftest.$ac_objext \
22163 conftest$ac_exeext conftest.$ac_ext
22164 LIBS=$ac_check_lib_save_LIBS
22166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tinfo_tgetent" >&5
22167 $as_echo "$ac_cv_lib_tinfo_tgetent" >&6; }
22168 if test "x$ac_cv_lib_tinfo_tgetent" = xyes; then :
22172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lncurses" >&5
22173 $as_echo_n "checking for tgetent in -lncurses... " >&6; }
22174 if ${ac_cv_lib_ncurses_tgetent+:} false; then :
22175 $as_echo_n "(cached) " >&6
22177 ac_check_lib_save_LIBS=$LIBS
22178 LIBS="-lncurses $LIBS"
22179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22180 /* end confdefs.h. */
22182 /* Override any GCC internal prototype to avoid an error.
22183 Use char because int might match the return type of a GCC
22184 builtin and then its argument prototype would still apply. */
22197 if ac_fn_c_try_link "$LINENO"; then :
22198 ac_cv_lib_ncurses_tgetent=yes
22200 ac_cv_lib_ncurses_tgetent=no
22202 rm -f core conftest.err conftest.$ac_objext \
22203 conftest$ac_exeext conftest.$ac_ext
22204 LIBS=$ac_check_lib_save_LIBS
22206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_tgetent" >&5
22207 $as_echo "$ac_cv_lib_ncurses_tgetent" >&6; }
22208 if test "x$ac_cv_lib_ncurses_tgetent" = xyes; then :
22209 TERM_LIB="-lncurses"
22212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltermcap" >&5
22213 $as_echo_n "checking for tgetent in -ltermcap... " >&6; }
22214 if ${ac_cv_lib_termcap_tgetent+:} false; then :
22215 $as_echo_n "(cached) " >&6
22217 ac_check_lib_save_LIBS=$LIBS
22218 LIBS="-ltermcap $LIBS"
22219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22220 /* end confdefs.h. */
22222 /* Override any GCC internal prototype to avoid an error.
22223 Use char because int might match the return type of a GCC
22224 builtin and then its argument prototype would still apply. */
22237 if ac_fn_c_try_link "$LINENO"; then :
22238 ac_cv_lib_termcap_tgetent=yes
22240 ac_cv_lib_termcap_tgetent=no
22242 rm -f core conftest.err conftest.$ac_objext \
22243 conftest$ac_exeext conftest.$ac_ext
22244 LIBS=$ac_check_lib_save_LIBS
22246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_termcap_tgetent" >&5
22247 $as_echo "$ac_cv_lib_termcap_tgetent" >&6; }
22248 if test "x$ac_cv_lib_termcap_tgetent" = xyes; then :
22249 TERM_LIB="-ltermcap"
22260 for ac_header in curses.h
22262 ac_fn_c_check_header_mongrel "$LINENO" "curses.h" "ac_cv_header_curses_h" "$ac_includes_default"
22263 if test "x$ac_cv_header_curses_h" = xyes; then :
22264 cat >>confdefs.h <<_ACEOF
22265 #define HAVE_CURSES_H 1
22272 ac_fn_c_check_header_mongrel "$LINENO" "term.h" "ac_cv_header_term_h" "$ac_includes_default"
22273 if test "x$ac_cv_header_term_h" = xyes; then :
22274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lcurses" >&5
22275 $as_echo_n "checking for tgetent in -lcurses... " >&6; }
22276 if ${ac_cv_lib_curses_tgetent+:} false; then :
22277 $as_echo_n "(cached) " >&6
22279 ac_check_lib_save_LIBS=$LIBS
22280 LIBS="-lcurses $LIBS"
22281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22282 /* end confdefs.h. */
22284 /* Override any GCC internal prototype to avoid an error.
22285 Use char because int might match the return type of a GCC
22286 builtin and then its argument prototype would still apply. */
22299 if ac_fn_c_try_link "$LINENO"; then :
22300 ac_cv_lib_curses_tgetent=yes
22302 ac_cv_lib_curses_tgetent=no
22304 rm -f core conftest.err conftest.$ac_objext \
22305 conftest$ac_exeext conftest.$ac_ext
22306 LIBS=$ac_check_lib_save_LIBS
22308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_tgetent" >&5
22309 $as_echo "$ac_cv_lib_curses_tgetent" >&6; }
22310 if test "x$ac_cv_lib_curses_tgetent" = xyes; then :
22311 TERM_LIB="-lcurses"
22325 if test x$support_conio = xyes; then
22326 if test x$TERM_LIB != x; then
22327 CONS_LIBS=$TERM_LIB
22331 support_readline=no
22333 $as_echo "#define HAVE_CONIO 1" >>confdefs.h
22336 echo " "; echo "Required libraries not found. CONIO turned off ..."; echo " "
22341 # Check whether --enable-readline was given.
22342 if test "${enable_readline+set}" = set; then :
22343 enableval=$enable_readline;
22344 if test x$enableval = xno; then
22345 support_readline=no
22354 if test x$support_readline = xyes; then
22356 # Check whether --with-readline was given.
22357 if test "${with_readline+set}" = set; then :
22358 withval=$with_readline;
22359 case "$with_readline" in
22364 if test -f ${with_readline}/readline.h; then
22365 CONS_INC="-I${with_readline}"
22366 CONS_LDFLAGS="-L$with_readline"
22367 elif test -f ${with_readline}/include/readline/readline.h; then
22368 CONS_INC="-I${with_readline}/include/readline"
22369 CONS_LDFLAGS="-L${with_readline}/lib"
22370 with_readline="${with_readline}/include/readline"
22372 with_readline="/usr/include/readline"
22375 as_ac_Header=`$as_echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
22376 ac_fn_c_check_header_mongrel "$LINENO" "${with_readline}/readline.h" "$as_ac_Header" "$ac_includes_default"
22377 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22380 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
22382 CONS_LIBS="-lreadline -lhistory ${TERM_LIB}"
22388 echo "readline.h not found. readline turned off ..."
22400 ac_fn_c_check_header_mongrel "$LINENO" "/usr/include/readline/readline.h" "ac_cv_header__usr_include_readline_readline_h" "$ac_includes_default"
22401 if test "x$ac_cv_header__usr_include_readline_readline_h" = xyes; then :
22404 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
22407 CONS_INC="-I/usr/include/readline"
22408 CONS_LIBS="-lreadline ${TERM_LIB}"
22412 as_ac_Header=`$as_echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
22413 ac_fn_c_check_header_mongrel "$LINENO" "${TOP_DIR}/depkgs/readline/readline.h" "$as_ac_Header" "$ac_includes_default"
22414 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22417 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
22420 CONS_INC="-I${TOP_DIR}/depkgs/readline"
22421 CONS_LIBS="-lreadline -lhistory ${TERM_LIB}"
22422 CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
22423 PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
22428 echo "readline.h not found. readline turned off ..."
22455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
22456 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
22457 if ${ac_cv_header_stat_broken+:} false; then :
22458 $as_echo_n "(cached) " >&6
22460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22461 /* end confdefs.h. */
22462 #include <sys/types.h>
22463 #include <sys/stat.h>
22465 #if defined S_ISBLK && defined S_IFDIR
22466 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
22469 #if defined S_ISBLK && defined S_IFCHR
22470 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
22473 #if defined S_ISLNK && defined S_IFREG
22474 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
22477 #if defined S_ISSOCK && defined S_IFREG
22478 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
22482 if ac_fn_c_try_compile "$LINENO"; then :
22483 ac_cv_header_stat_broken=no
22485 ac_cv_header_stat_broken=yes
22487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
22490 $as_echo "$ac_cv_header_stat_broken" >&6; }
22491 if test $ac_cv_header_stat_broken = yes; then
22493 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
22497 ac_header_dirent=no
22498 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
22499 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
22500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
22501 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
22502 if eval \${$as_ac_Header+:} false; then :
22503 $as_echo_n "(cached) " >&6
22505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22506 /* end confdefs.h. */
22507 #include <sys/types.h>
22519 if ac_fn_c_try_compile "$LINENO"; then :
22520 eval "$as_ac_Header=yes"
22522 eval "$as_ac_Header=no"
22524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22526 eval ac_res=\$$as_ac_Header
22527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
22528 $as_echo "$ac_res" >&6; }
22529 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22530 cat >>confdefs.h <<_ACEOF
22531 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
22534 ac_header_dirent=$ac_hdr; break
22538 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
22539 if test $ac_header_dirent = dirent.h; then
22540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
22541 $as_echo_n "checking for library containing opendir... " >&6; }
22542 if ${ac_cv_search_opendir+:} false; then :
22543 $as_echo_n "(cached) " >&6
22545 ac_func_search_save_LIBS=$LIBS
22546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22547 /* end confdefs.h. */
22549 /* Override any GCC internal prototype to avoid an error.
22550 Use char because int might match the return type of a GCC
22551 builtin and then its argument prototype would still apply. */
22564 for ac_lib in '' dir; do
22565 if test -z "$ac_lib"; then
22566 ac_res="none required"
22569 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22571 if ac_fn_c_try_link "$LINENO"; then :
22572 ac_cv_search_opendir=$ac_res
22574 rm -f core conftest.err conftest.$ac_objext \
22576 if ${ac_cv_search_opendir+:} false; then :
22580 if ${ac_cv_search_opendir+:} false; then :
22583 ac_cv_search_opendir=no
22585 rm conftest.$ac_ext
22586 LIBS=$ac_func_search_save_LIBS
22588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
22589 $as_echo "$ac_cv_search_opendir" >&6; }
22590 ac_res=$ac_cv_search_opendir
22591 if test "$ac_res" != no; then :
22592 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
22598 $as_echo_n "checking for library containing opendir... " >&6; }
22599 if ${ac_cv_search_opendir+:} false; then :
22600 $as_echo_n "(cached) " >&6
22602 ac_func_search_save_LIBS=$LIBS
22603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22604 /* end confdefs.h. */
22606 /* Override any GCC internal prototype to avoid an error.
22607 Use char because int might match the return type of a GCC
22608 builtin and then its argument prototype would still apply. */
22621 for ac_lib in '' x; do
22622 if test -z "$ac_lib"; then
22623 ac_res="none required"
22626 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22628 if ac_fn_c_try_link "$LINENO"; then :
22629 ac_cv_search_opendir=$ac_res
22631 rm -f core conftest.err conftest.$ac_objext \
22633 if ${ac_cv_search_opendir+:} false; then :
22637 if ${ac_cv_search_opendir+:} false; then :
22640 ac_cv_search_opendir=no
22642 rm conftest.$ac_ext
22643 LIBS=$ac_func_search_save_LIBS
22645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
22646 $as_echo "$ac_cv_search_opendir" >&6; }
22647 ac_res=$ac_cv_search_opendir
22648 if test "$ac_res" != no; then :
22649 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22655 for ac_func in strcasecmp select setenv putenv tcgetattr
22657 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22658 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22659 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22660 cat >>confdefs.h <<_ACEOF
22661 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22667 for ac_func in lstat lchown lchmod futimes fchmod fchown lutimes
22669 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22670 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22671 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22672 cat >>confdefs.h <<_ACEOF
22673 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22679 for ac_func in nanosleep nl_langinfo
22681 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22682 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22683 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22684 cat >>confdefs.h <<_ACEOF
22685 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22691 for ac_func in be64toh htobe64
22693 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22694 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22695 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22696 cat >>confdefs.h <<_ACEOF
22697 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22703 for ac_header in varargs.h
22705 ac_fn_c_check_header_mongrel "$LINENO" "varargs.h" "ac_cv_header_varargs_h" "$ac_includes_default"
22706 if test "x$ac_cv_header_varargs_h" = xyes; then :
22707 cat >>confdefs.h <<_ACEOF
22708 #define HAVE_VARARGS_H 1
22717 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
22718 if test "x$ac_cv_func_socket" = xyes; then :
22719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using libc's socket" >&5
22720 $as_echo "using libc's socket" >&6; }
22722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lxnet" >&5
22723 $as_echo_n "checking for socket in -lxnet... " >&6; }
22724 if ${ac_cv_lib_xnet_socket+:} false; then :
22725 $as_echo_n "(cached) " >&6
22727 ac_check_lib_save_LIBS=$LIBS
22728 LIBS="-lxnet $LIBS"
22729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22730 /* end confdefs.h. */
22732 /* Override any GCC internal prototype to avoid an error.
22733 Use char because int might match the return type of a GCC
22734 builtin and then its argument prototype would still apply. */
22747 if ac_fn_c_try_link "$LINENO"; then :
22748 ac_cv_lib_xnet_socket=yes
22750 ac_cv_lib_xnet_socket=no
22752 rm -f core conftest.err conftest.$ac_objext \
22753 conftest$ac_exeext conftest.$ac_ext
22754 LIBS=$ac_check_lib_save_LIBS
22756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xnet_socket" >&5
22757 $as_echo "$ac_cv_lib_xnet_socket" >&6; }
22758 if test "x$ac_cv_lib_xnet_socket" = xyes; then :
22759 cat >>confdefs.h <<_ACEOF
22760 #define HAVE_LIBXNET 1
22763 LIBS="-lxnet $LIBS"
22767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
22768 $as_echo_n "checking for socket in -lsocket... " >&6; }
22769 if ${ac_cv_lib_socket_socket+:} false; then :
22770 $as_echo_n "(cached) " >&6
22772 ac_check_lib_save_LIBS=$LIBS
22773 LIBS="-lsocket $LIBS"
22774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22775 /* end confdefs.h. */
22777 /* Override any GCC internal prototype to avoid an error.
22778 Use char because int might match the return type of a GCC
22779 builtin and then its argument prototype would still apply. */
22792 if ac_fn_c_try_link "$LINENO"; then :
22793 ac_cv_lib_socket_socket=yes
22795 ac_cv_lib_socket_socket=no
22797 rm -f core conftest.err conftest.$ac_objext \
22798 conftest$ac_exeext conftest.$ac_ext
22799 LIBS=$ac_check_lib_save_LIBS
22801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
22802 $as_echo "$ac_cv_lib_socket_socket" >&6; }
22803 if test "x$ac_cv_lib_socket_socket" = xyes; then :
22804 cat >>confdefs.h <<_ACEOF
22805 #define HAVE_LIBSOCKET 1
22808 LIBS="-lsocket $LIBS"
22812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -linet" >&5
22813 $as_echo_n "checking for socket in -linet... " >&6; }
22814 if ${ac_cv_lib_inet_socket+:} false; then :
22815 $as_echo_n "(cached) " >&6
22817 ac_check_lib_save_LIBS=$LIBS
22818 LIBS="-linet $LIBS"
22819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22820 /* end confdefs.h. */
22822 /* Override any GCC internal prototype to avoid an error.
22823 Use char because int might match the return type of a GCC
22824 builtin and then its argument prototype would still apply. */
22837 if ac_fn_c_try_link "$LINENO"; then :
22838 ac_cv_lib_inet_socket=yes
22840 ac_cv_lib_inet_socket=no
22842 rm -f core conftest.err conftest.$ac_objext \
22843 conftest$ac_exeext conftest.$ac_ext
22844 LIBS=$ac_check_lib_save_LIBS
22846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_inet_socket" >&5
22847 $as_echo "$ac_cv_lib_inet_socket" >&6; }
22848 if test "x$ac_cv_lib_inet_socket" = xyes; then :
22849 cat >>confdefs.h <<_ACEOF
22850 #define HAVE_LIBINET 1
22853 LIBS="-linet $LIBS"
22863 # Check whether --with-tcp-wrappers was given.
22864 if test "${with_tcp_wrappers+set}" = set; then :
22865 withval=$with_tcp_wrappers;
22866 if test "x$withval" != "xno" ; then
22868 LIBS="$saved_LIBS -lwrap"
22869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nanosleep" >&5
22870 $as_echo_n "checking for library containing nanosleep... " >&6; }
22871 if ${ac_cv_search_nanosleep+:} false; then :
22872 $as_echo_n "(cached) " >&6
22874 ac_func_search_save_LIBS=$LIBS
22875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22876 /* end confdefs.h. */
22878 /* Override any GCC internal prototype to avoid an error.
22879 Use char because int might match the return type of a GCC
22880 builtin and then its argument prototype would still apply. */
22888 return nanosleep ();
22893 for ac_lib in '' rt; do
22894 if test -z "$ac_lib"; then
22895 ac_res="none required"
22898 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22900 if ac_fn_c_try_link "$LINENO"; then :
22901 ac_cv_search_nanosleep=$ac_res
22903 rm -f core conftest.err conftest.$ac_objext \
22905 if ${ac_cv_search_nanosleep+:} false; then :
22909 if ${ac_cv_search_nanosleep+:} false; then :
22912 ac_cv_search_nanosleep=no
22914 rm conftest.$ac_ext
22915 LIBS=$ac_func_search_save_LIBS
22917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nanosleep" >&5
22918 $as_echo "$ac_cv_search_nanosleep" >&6; }
22919 ac_res=$ac_cv_search_nanosleep
22920 if test "$ac_res" != no; then :
22921 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libwrap" >&5
22926 $as_echo_n "checking for libwrap... " >&6; }
22927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22928 /* end confdefs.h. */
22930 #include <sys/types.h>
22932 int deny_severity = 0;
22933 int allow_severity = 0;
22934 struct request_info *req;
22946 if ac_fn_c_try_link "$LINENO"; then :
22948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22949 $as_echo "yes" >&6; }
22951 $as_echo "#define HAVE_LIBWRAP 1" >>confdefs.h
22959 LIBS="$saved_LIBS -lwrap -lnsl"
22960 WRAPLIBS="$saved_LIBS -lwrap -lnsl"
22961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22962 /* end confdefs.h. */
22964 #include <sys/types.h>
22966 int deny_severity = 0;
22967 int allow_severity = 0;
22968 struct request_info *req;
22980 if ac_fn_c_try_link "$LINENO"; then :
22982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22983 $as_echo "yes" >&6; }
22985 $as_echo "#define HAVE_LIBWRAP 1" >>confdefs.h
22993 as_fn_error $? "*** libwrap missing" "$LINENO" 5
22997 rm -f core conftest.err conftest.$ac_objext \
22998 conftest$ac_exeext conftest.$ac_ext
23002 rm -f core conftest.err conftest.$ac_objext \
23003 conftest$ac_exeext conftest.$ac_ext
23010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL" >&5
23011 $as_echo_n "checking for OpenSSL... " >&6; }
23013 # Check whether --with-openssl was given.
23014 if test "${with_openssl+set}" = set; then :
23015 withval=$with_openssl;
23016 with_openssl_directory=${withval}
23022 if test "x$with_openssl_directory" != "xno"; then
23023 OPENSSL_LIBS="-lssl -lcrypto"
23026 if test "x$with_openssl_directory" != "xyes" && test x"${with_openssl_directory}" != "x"; then
23028 # Make sure the $with_openssl_directory also makes sense
23030 if test -d "$with_openssl_directory/lib" -a -d "$with_openssl_directory/include"; then
23031 OPENSSL_LIBS="-L$with_openssl_directory/lib $OPENSSL_LIBS"
23032 OPENSSL_INC="-I$with_openssl_directory/include $OPENSSL_INC"
23036 saved_LIBS="${LIBS}"
23037 saved_CFLAGS="${CFLAGS}"
23038 LIBS="${saved_LIBS} ${OPENSSL_LIBS}"
23039 CFLAGS="${saved_CFLAGS} ${OPENSSL_INC}"
23041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23042 /* end confdefs.h. */
23044 #include <openssl/ssl.h>
23050 CRYPTO_set_id_callback(NULL);
23056 if ac_fn_c_try_link "$LINENO"; then :
23059 support_crypto="yes"
23064 support_crypto="no"
23068 rm -f core conftest.err conftest.$ac_objext \
23069 conftest$ac_exeext conftest.$ac_ext
23071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23072 /* end confdefs.h. */
23074 #include <openssl/evp.h>
23086 if ac_fn_c_try_link "$LINENO"; then :
23088 ac_cv_openssl_sha2="yes"
23092 ac_cv_openssl_sha2="no"
23096 rm -f core conftest.err conftest.$ac_objext \
23097 conftest$ac_exeext conftest.$ac_ext
23099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23100 /* end confdefs.h. */
23102 #include <openssl/evp.h>
23114 if ac_fn_c_try_link "$LINENO"; then :
23116 ac_cv_openssl_export="no"
23120 ac_cv_openssl_export="yes"
23124 rm -f core conftest.err conftest.$ac_objext \
23125 conftest$ac_exeext conftest.$ac_ext
23127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $support_tls" >&5
23128 $as_echo "$support_tls" >&6; }
23129 if test "$support_tls" = "yes"; then
23131 $as_echo "#define HAVE_OPENSSL 1" >>confdefs.h
23134 $as_echo "#define HAVE_TLS 1" >>confdefs.h
23137 $as_echo "#define HAVE_CRYPTO 1" >>confdefs.h
23141 if test "$ac_cv_openssl_sha2" = "yes"; then
23143 $as_echo "#define HAVE_SHA2 1" >>confdefs.h
23147 if test "$ac_cv_openssl_export" = "yes"; then
23149 $as_echo "#define HAVE_OPENSSL_EXPORT_LIBRARY 1" >>confdefs.h
23153 if test "$support_crypto" = "yes"; then
23154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVP_PKEY_encrypt_old in -lcrypto" >&5
23155 $as_echo_n "checking for EVP_PKEY_encrypt_old in -lcrypto... " >&6; }
23156 if ${ac_cv_lib_crypto_EVP_PKEY_encrypt_old+:} false; then :
23157 $as_echo_n "(cached) " >&6
23159 ac_check_lib_save_LIBS=$LIBS
23160 LIBS="-lcrypto $LIBS"
23161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23162 /* end confdefs.h. */
23164 /* Override any GCC internal prototype to avoid an error.
23165 Use char because int might match the return type of a GCC
23166 builtin and then its argument prototype would still apply. */
23170 char EVP_PKEY_encrypt_old ();
23174 return EVP_PKEY_encrypt_old ();
23179 if ac_fn_c_try_link "$LINENO"; then :
23180 ac_cv_lib_crypto_EVP_PKEY_encrypt_old=yes
23182 ac_cv_lib_crypto_EVP_PKEY_encrypt_old=no
23184 rm -f core conftest.err conftest.$ac_objext \
23185 conftest$ac_exeext conftest.$ac_ext
23186 LIBS=$ac_check_lib_save_LIBS
23188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_EVP_PKEY_encrypt_old" >&5
23189 $as_echo "$ac_cv_lib_crypto_EVP_PKEY_encrypt_old" >&6; }
23190 if test "x$ac_cv_lib_crypto_EVP_PKEY_encrypt_old" = xyes; then :
23192 $as_echo "#define HAVE_OPENSSLv1 1" >>confdefs.h
23198 LIBS="${saved_LIBS}"
23199 CFLAGS="${saved_CFLAGS}"
23202 support_crypto="no"
23203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $support_tls" >&5
23204 $as_echo "$support_tls" >&6; }
23207 if test "$support_tls" = "no" -o "$support_crypto" = "no"; then
23215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
23216 $as_echo_n "checking for library containing dlopen... " >&6; }
23217 if ${ac_cv_search_dlopen+:} false; then :
23218 $as_echo_n "(cached) " >&6
23220 ac_func_search_save_LIBS=$LIBS
23221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23222 /* end confdefs.h. */
23224 /* Override any GCC internal prototype to avoid an error.
23225 Use char because int might match the return type of a GCC
23226 builtin and then its argument prototype would still apply. */
23239 for ac_lib in '' dl; do
23240 if test -z "$ac_lib"; then
23241 ac_res="none required"
23244 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
23246 if ac_fn_c_try_link "$LINENO"; then :
23247 ac_cv_search_dlopen=$ac_res
23249 rm -f core conftest.err conftest.$ac_objext \
23251 if ${ac_cv_search_dlopen+:} false; then :
23255 if ${ac_cv_search_dlopen+:} false; then :
23258 ac_cv_search_dlopen=no
23260 rm conftest.$ac_ext
23261 LIBS=$ac_func_search_save_LIBS
23263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
23264 $as_echo "$ac_cv_search_dlopen" >&6; }
23265 ac_res=$ac_cv_search_dlopen
23266 if test "$ac_res" != no; then :
23267 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23272 working_dir=`eval echo /opt/bacula/working`
23274 # Check whether --with-working-dir was given.
23275 if test "${with_working_dir+set}" = set; then :
23276 withval=$with_working_dir;
23277 if test "x$withval" != "xno" ; then
23278 working_dir=$withval
23289 # Check whether --with-archivedir was given.
23290 if test "${with_archivedir+set}" = set; then :
23291 withval=$with_archivedir;
23292 if test "x$withval" != "xno" ; then
23293 archivedir=$withval
23302 basename=`hostname`
23304 # Check whether --with-basename was given.
23305 if test "${with_basename+set}" = set; then :
23306 withval=$with_basename;
23307 if test "x$withval" != "xno" ; then
23317 hostname=`uname -n | cut -d '.' -f 1`
23318 if test x${hostname} = x ; then
23319 hostname="localhost"
23321 ping -c 1 $hostname 2>/dev/null 1>/dev/null
23322 if test ! $? = 0; then
23323 hostname="localhost"
23326 # Check whether --with-hostname was given.
23327 if test "${with_hostname+set}" = set; then :
23328 withval=$with_hostname;
23329 if test "x$withval" != "xno" ; then
23340 scriptdir=`eval echo ${sysconfdir}`
23342 # Check whether --with-scriptdir was given.
23343 if test "${with_scriptdir+set}" = set; then :
23344 withval=$with_scriptdir;
23345 if test "x$withval" != "xno" ; then
23356 bsrdir=`eval echo /opt/bacula/bsr`
23358 # Check whether --with-bsrdir was given.
23359 if test "${with_bsrdir+set}" = set; then :
23360 withval=$with_bsrdir;
23361 if test "x$withval" != "xno" ; then
23371 logdir=`eval echo /opt/bacula/log`
23373 # Check whether --with-logdir was given.
23374 if test "${with_logdir+set}" = set; then :
23375 withval=$with_logdir;
23376 if test "x$withval" != "xno" ; then
23387 # ------------------------------------------
23388 # Where to place plugindir (plugin files)
23389 # ------------------------------------------
23390 plugindir=`eval echo ${libdir}`
23392 # Check whether --with-plugindir was given.
23393 if test "${with_plugindir+set}" = set; then :
23394 withval=$with_plugindir;
23395 if test "x$withval" != "xno" ; then
23406 dump_email=root@localhost
23408 # Check whether --with-dump-email was given.
23409 if test "${with_dump_email+set}" = set; then :
23410 withval=$with_dump_email;
23411 if test "x$withval" != "xno" ; then
23412 dump_email=$withval
23421 job_email=root@localhost
23423 # Check whether --with-job-email was given.
23424 if test "${with_job_email+set}" = set; then :
23425 withval=$with_job_email;
23426 if test "x$withval" != "xno" ; then
23436 smtp_host=localhost
23438 # Check whether --with-smtp_host was given.
23439 if test "${with_smtp_host+set}" = set; then :
23440 withval=$with_smtp_host;
23441 if test "x$withval" != "xno" ; then
23453 # Check whether --with-pid-dir was given.
23454 if test "${with_pid_dir+set}" = set; then :
23455 withval=$with_pid_dir;
23456 if test "x$withval" != "xno" ; then
23464 cat >>confdefs.h <<_ACEOF
23465 #define _PATH_BACULA_PIDDIR "$piddir"
23470 subsysdir=/var/run/subsys
23471 if test -d /var/run/subsys; then
23472 subsysdir=/var/run/subsys
23473 elif test -d /var/lock/subsys; then
23474 subsysdir=/var/lock/subsys
23476 subsysdir=/var/run/subsys
23479 # Check whether --with-subsys-dir was given.
23480 if test "${with_subsys_dir+set}" = set; then :
23481 withval=$with_subsys_dir;
23482 if test "x$withval" != "xno" ; then
23494 # Check whether --with-baseport was given.
23495 if test "${with_baseport+set}" = set; then :
23496 withval=$with_baseport;
23497 if test "x$withval" != "xno" ; then
23506 dir_port=`expr $baseport`
23507 fd_port=`expr $baseport + 1`
23508 sd_port=`expr $fd_port + 1`
23516 # Check whether --with-dir-password was given.
23517 if test "${with_dir_password+set}" = set; then :
23518 withval=$with_dir_password;
23519 if test "x$withval" != "xno" ; then
23520 dir_password=$withval
23527 if test "x$dir_password" = "x" ; then
23528 if test "x$OPENSSL" = "xnone" ; then
23529 key=`autoconf/randpass 33`
23531 key=`openssl rand -base64 33`
23538 # Check whether --with-fd-password was given.
23539 if test "${with_fd_password+set}" = set; then :
23540 withval=$with_fd_password;
23541 if test "x$withval" != "xno" ; then
23542 fd_password=$withval
23549 if test "x$fd_password" = "x" ; then
23550 if test "x$OPENSSL" = "xnone" ; then
23551 key=`autoconf/randpass 37`
23553 key=`openssl rand -base64 33`
23560 # Check whether --with-sd-password was given.
23561 if test "${with_sd_password+set}" = set; then :
23562 withval=$with_sd_password;
23563 if test "x$withval" != "xno" ; then
23564 sd_password=$withval
23571 if test "x$sd_password" = "x" ; then
23572 if test "x$OPENSSL" = "xnone" ; then
23573 key=`autoconf/randpass 41`
23575 key=`openssl rand -base64 33`
23582 # Check whether --with-mon-dir-password was given.
23583 if test "${with_mon_dir_password+set}" = set; then :
23584 withval=$with_mon_dir_password;
23585 if test "x$withval" != "xno" ; then
23586 mon_dir_password=$withval
23593 if test "x$mon_dir_password" = "x" ; then
23594 if test "x$OPENSSL" = "xnone" ; then
23595 key=`autoconf/randpass 33`
23597 key=`openssl rand -base64 33`
23599 mon_dir_password=$key
23604 # Check whether --with-mon-fd-password was given.
23605 if test "${with_mon_fd_password+set}" = set; then :
23606 withval=$with_mon_fd_password;
23607 if test "x$withval" != "xno" ; then
23608 mon_fd_password=$withval
23615 if test "x$mon_fd_password" = "x" ; then
23616 if test "x$OPENSSL" = "xnone" ; then
23617 key=`autoconf/randpass 37`
23619 key=`openssl rand -base64 33`
23621 mon_fd_password=$key
23626 # Check whether --with-mon-sd-password was given.
23627 if test "${with_mon_sd_password+set}" = set; then :
23628 withval=$with_mon_sd_password;
23629 if test "x$withval" != "xno" ; then
23630 mon_sd_password=$withval
23637 if test "x$mon_sd_password" = "x" ; then
23638 if test "x$OPENSSL" = "xnone" ; then
23639 key=`autoconf/randpass 41`
23641 key=`openssl rand -base64 33`
23643 mon_sd_password=$key
23655 # Check whether --with-db_name was given.
23656 if test "${with_db_name+set}" = set; then :
23657 withval=$with_db_name;
23658 if test "x$withval" != "x" ; then
23669 # Check whether --with-db_user was given.
23670 if test "${with_db_user+set}" = set; then :
23671 withval=$with_db_user;
23672 if test "x$withval" != "x" ; then
23683 # Check whether --with-db_password was given.
23684 if test "${with_db_password+set}" = set; then :
23685 withval=$with_db_password;
23686 if test "x$withval" != "x" ; then
23687 db_password=$withval
23697 # Check whether --with-db_port was given.
23698 if test "${with_db_port+set}" = set; then :
23699 withval=$with_db_port;
23700 if test "x$withval" != "x" ; then
23711 # Check whether --with-db_ssl_options was given.
23712 if test "${with_db_ssl_options+set}" = set; then :
23713 withval=$with_db_ssl_options;
23714 if test "x$withval" != "x" ; then
23715 db_ssl_options=$withval
23724 # Handle users and groups for each daemon
23728 # Check whether --with-dir_user was given.
23729 if test "${with_dir_user+set}" = set; then :
23730 withval=$with_dir_user;
23731 if test "x$withval" != "x" ; then
23741 # Check whether --with-dir_group was given.
23742 if test "${with_dir_group+set}" = set; then :
23743 withval=$with_dir_group;
23744 if test "x$withval" != "x" ; then
23754 # Check whether --with-sd_user was given.
23755 if test "${with_sd_user+set}" = set; then :
23756 withval=$with_sd_user;
23757 if test "x$withval" != "x" ; then
23767 # Check whether --with-sd_group was given.
23768 if test "${with_sd_group+set}" = set; then :
23769 withval=$with_sd_group;
23770 if test "x$withval" != "x" ; then
23780 # Check whether --with-fd_user was given.
23781 if test "${with_fd_user+set}" = set; then :
23782 withval=$with_fd_user;
23783 if test "x$withval" != "x" ; then
23793 # Check whether --with-fd_group was given.
23794 if test "${with_fd_group+set}" = set; then :
23795 withval=$with_fd_group;
23796 if test "x$withval" != "x" ; then
23813 # Check whether --with-sbin-perm was given.
23814 if test "${with_sbin_perm+set}" = set; then :
23815 withval=$with_sbin_perm;
23816 if test "x$withval" != "x" ; then
23826 support_batch_insert=yes
23827 # Check whether --enable-batch-insert was given.
23828 if test "${enable_batch_insert+set}" = set; then :
23829 enableval=$enable_batch_insert;
23830 if test x$enableval = xno; then
23831 support_batch_insert=no
23838 if test x$support_batch_insert = xyes; then
23840 $as_echo "#define USE_BATCH_FILE_INSERT 1" >>confdefs.h
23848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PostgreSQL support" >&5
23849 $as_echo_n "checking for PostgreSQL support... " >&6; }
23851 # Check whether --with-postgresql was given.
23852 if test "${with_postgresql+set}" = set; then :
23853 withval=$with_postgresql;
23854 if test "$withval" != "no"; then
23855 if test "$withval" = "yes"; then
23856 PG_CONFIG=`which pg_config 2>/dev/null`
23857 if test -n "$PG_CONFIG"; then
23858 POSTGRESQL_INCDIR=`"$PG_CONFIG" --includedir`
23859 POSTGRESQL_LIBDIR=`"$PG_CONFIG" --libdir`
23860 POSTGRESQL_BINDIR=`"$PG_CONFIG" --bindir`
23861 elif test -f /usr/local/include/libpq-fe.h; then
23862 POSTGRESQL_INCDIR=/usr/local/include
23863 if test -d /usr/local/lib64; then
23864 POSTGRESQL_LIBDIR=/usr/local/lib64
23866 POSTGRESQL_LIBDIR=/usr/local/lib
23868 POSTGRESQL_BINDIR=/usr/local/bin
23869 elif test -f /usr/include/libpq-fe.h; then
23870 POSTGRESQL_INCDIR=/usr/include
23871 if test -d /usr/lib64; then
23872 POSTGRESQL_LIBDIR=/usr/lib64
23874 POSTGRESQL_LIBDIR=/usr/lib
23876 POSTGRESQL_BINDIR=/usr/bin
23877 elif test -f /usr/include/pgsql/libpq-fe.h; then
23878 POSTGRESQL_INCDIR=/usr/include/pgsql
23879 if test -d /usr/lib64/pgsql; then
23880 POSTGRESQL_LIBDIR=/usr/lib64/pgsql
23882 POSTGRESQL_LIBDIR=/usr/lib/pgsql
23884 POSTGRESQL_BINDIR=/usr/bin
23885 elif test -f /usr/include/postgresql/libpq-fe.h; then
23886 POSTGRESQL_INCDIR=/usr/include/postgresql
23887 if test -d /usr/lib64/postgresql; then
23888 POSTGRESQL_LIBDIR=/usr/lib64/postgresql
23890 POSTGRESQL_LIBDIR=/usr/lib/postgresql
23892 POSTGRESQL_BINDIR=/usr/bin
23894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23895 $as_echo "no" >&6; }
23896 as_fn_error $? "Unable to find libpq-fe.h in standard locations" "$LINENO" 5
23898 elif test -f $withval/include/libpq-fe.h; then
23899 POSTGRESQL_INCDIR=$withval/include
23900 POSTGRESQL_LIBDIR=$withval/lib
23901 POSTGRESQL_BINDIR=$withval/bin
23902 elif test -f $withval/include/postgresql/libpq-fe.h; then
23903 POSTGRESQL_INCDIR=$withval/include/postgresql
23904 if test -d $withval/lib64; then
23905 POSTGRESQL_LIBDIR=$withval/lib64
23907 POSTGRESQL_LIBDIR=$withval/lib
23909 POSTGRESQL_BINDIR=$withval/bin
23911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23912 $as_echo "no" >&6; }
23913 as_fn_error $? "Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" "$LINENO" 5
23916 $as_echo "#define HAVE_POSTGRESQL 1" >>confdefs.h
23918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23919 $as_echo "yes" >&6; }
23921 POSTGRESQL_INCLUDE=-I$POSTGRESQL_INCDIR
23922 if test x$use_libtool != xno; then
23923 POSTGRESQL_LIBS="-R $POSTGRESQL_LIBDIR -L$POSTGRESQL_LIBDIR -lpq"
23925 POSTGRESQL_LIBS="-L$POSTGRESQL_LIBDIR -lpq"
23927 ac_fn_c_check_func "$LINENO" "crypt" "ac_cv_func_crypt"
23928 if test "x$ac_cv_func_crypt" = xyes; then :
23931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
23932 $as_echo_n "checking for crypt in -lcrypt... " >&6; }
23933 if ${ac_cv_lib_crypt_crypt+:} false; then :
23934 $as_echo_n "(cached) " >&6
23936 ac_check_lib_save_LIBS=$LIBS
23937 LIBS="-lcrypt $LIBS"
23938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23939 /* end confdefs.h. */
23941 /* Override any GCC internal prototype to avoid an error.
23942 Use char because int might match the return type of a GCC
23943 builtin and then its argument prototype would still apply. */
23956 if ac_fn_c_try_link "$LINENO"; then :
23957 ac_cv_lib_crypt_crypt=yes
23959 ac_cv_lib_crypt_crypt=no
23961 rm -f core conftest.err conftest.$ac_objext \
23962 conftest$ac_exeext conftest.$ac_ext
23963 LIBS=$ac_check_lib_save_LIBS
23965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
23966 $as_echo "$ac_cv_lib_crypt_crypt" >&6; }
23967 if test "x$ac_cv_lib_crypt_crypt" = xyes; then :
23968 POSTGRESQL_LIBS="$POSTGRESQL_LIBS -lcrypt"
23973 POSTGRESQL_LIB=$POSTGRESQL_LIBDIR/libpq.a
23974 DB_LIBS="${DB_LIBS} ${POSTGRESQL_LIBS}"
23976 if test -z "${db_backends}"; then
23977 db_backends="PostgreSQL"
23979 db_backends="${db_backends} PostgreSQL"
23981 if test -z "${DB_BACKENDS}"; then
23982 DB_BACKENDS="postgresql"
23984 DB_BACKENDS="${DB_BACKENDS} postgresql"
23987 if test "x$support_batch_insert" = "xyes"; then
23988 saved_LDFLAGS="${LDFLAGS}"
23989 LDFLAGS="${saved_LDFLAGS} -L$POSTGRESQL_LIBDIR"
23990 saved_LIBS="${LIBS}"
23991 if test "x$ac_cv_lib_crypt_crypt" = "xyes" ; then
23992 LIBS="${saved_LIBS} -lcrypt"
23995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQisthreadsafe in -lpq" >&5
23996 $as_echo_n "checking for PQisthreadsafe in -lpq... " >&6; }
23997 if ${ac_cv_lib_pq_PQisthreadsafe+:} false; then :
23998 $as_echo_n "(cached) " >&6
24000 ac_check_lib_save_LIBS=$LIBS
24002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24003 /* end confdefs.h. */
24005 /* Override any GCC internal prototype to avoid an error.
24006 Use char because int might match the return type of a GCC
24007 builtin and then its argument prototype would still apply. */
24011 char PQisthreadsafe ();
24015 return PQisthreadsafe ();
24020 if ac_fn_c_try_link "$LINENO"; then :
24021 ac_cv_lib_pq_PQisthreadsafe=yes
24023 ac_cv_lib_pq_PQisthreadsafe=no
24025 rm -f core conftest.err conftest.$ac_objext \
24026 conftest$ac_exeext conftest.$ac_ext
24027 LIBS=$ac_check_lib_save_LIBS
24029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQisthreadsafe" >&5
24030 $as_echo "$ac_cv_lib_pq_PQisthreadsafe" >&6; }
24031 if test "x$ac_cv_lib_pq_PQisthreadsafe" = xyes; then :
24033 $as_echo "#define HAVE_PQISTHREADSAFE 1" >>confdefs.h
24037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQputCopyData in -lpq" >&5
24038 $as_echo_n "checking for PQputCopyData in -lpq... " >&6; }
24039 if ${ac_cv_lib_pq_PQputCopyData+:} false; then :
24040 $as_echo_n "(cached) " >&6
24042 ac_check_lib_save_LIBS=$LIBS
24044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24045 /* end confdefs.h. */
24047 /* Override any GCC internal prototype to avoid an error.
24048 Use char because int might match the return type of a GCC
24049 builtin and then its argument prototype would still apply. */
24053 char PQputCopyData ();
24057 return PQputCopyData ();
24062 if ac_fn_c_try_link "$LINENO"; then :
24063 ac_cv_lib_pq_PQputCopyData=yes
24065 ac_cv_lib_pq_PQputCopyData=no
24067 rm -f core conftest.err conftest.$ac_objext \
24068 conftest$ac_exeext conftest.$ac_ext
24069 LIBS=$ac_check_lib_save_LIBS
24071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQputCopyData" >&5
24072 $as_echo "$ac_cv_lib_pq_PQputCopyData" >&6; }
24073 if test "x$ac_cv_lib_pq_PQputCopyData" = xyes; then :
24075 $as_echo "#define HAVE_PQ_COPY 1" >>confdefs.h
24079 if test "x$ac_cv_lib_pq_PQputCopyData" = "xyes"; then
24080 if test $support_batch_insert = yes ; then
24082 $as_echo "#define HAVE_POSTGRESQL_BATCH_FILE_INSERT 1" >>confdefs.h
24084 if test -z "${batch_insert_db_backends}"; then
24085 batch_insert_db_backends="PostgreSQL"
24087 batch_insert_db_backends="${batch_insert_db_backends} PostgreSQL"
24092 if test x$ac_cv_lib_pq_PQisthreadsafe != xyes -a x$support_batch_insert = xyes
24094 echo "WARNING: Your PostgreSQL client library is too old to detect "
24095 echo "if it was compiled with --enable-thread-safety, consider to "
24096 echo "upgrade it in order to avoid problems with Batch insert mode"
24099 LDFLAGS="${saved_LDFLAGS}"
24100 LIBS="${saved_LIBS}"
24103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24104 $as_echo "no" >&6; }
24109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24110 $as_echo "no" >&6; }
24121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MySQL support" >&5
24122 $as_echo_n "checking for MySQL support... " >&6; }
24124 # Check whether --with-mysql was given.
24125 if test "${with_mysql+set}" = set; then :
24126 withval=$with_mysql;
24128 if test "$withval" != "no"; then
24129 if test "$withval" = "yes"; then
24130 MYSQL_CONFIG=`which mysql_config 2>/dev/null`
24131 if test "x${MYSQL_CONFIG}" != x; then
24132 MYSQL_BINDIR="${MYSQL_CONFIG%/*}"
24133 ${MYSQL_CONFIG} --libs_r >/dev/null 2>&1
24134 if test $? = 0; then
24135 MYSQL_LIBDIR=`${MYSQL_CONFIG} --libs_r`
24136 MYSQL_INCDIR=`${MYSQL_CONFIG} --include`
24139 ${MYSQL_CONFIG} --variable=pkglibdir > /dev/null 2>&1
24140 if test $? = 0 ; then
24141 MYSQL_LIBDIR=`${MYSQL_CONFIG} --variable=pkglibdir`
24142 MYSQL_INCDIR=`${MYSQL_CONFIG} --variable=pkgincludedir`
24146 # if something wrong fall back to old method
24147 if test "x${MYSQL_LIBDIR}" = x -o "x${MYSQL_INCDIR}" = x ; then
24148 if test -f /usr/local/mysql/include/mysql/mysql.h; then
24149 MYSQL_INCDIR=/usr/local/mysql/include/mysql
24150 if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
24151 -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
24152 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
24154 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
24156 MYSQL_BINDIR=/usr/local/mysql/bin
24157 elif test -f /usr/include/mysql/mysql.h; then
24158 MYSQL_INCDIR=/usr/include/mysql
24159 if test -f /usr/lib64/mysql/libmysqlclient_r.a \
24160 -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
24161 MYSQL_LIBDIR=/usr/lib64/mysql
24162 elif test -f /usr/lib64/libmysqlclient_r.a \
24163 -o -f /usr/lib64/libmysqlclient_r.so; then
24164 MYSQL_LIBDIR=/usr/lib64
24165 elif test -f /usr/lib/x86_64-linux-gnu/libmysqlclient_r.a \
24166 -o -f /usr/lib/x86_64-linux-gnu/libmysqlclient_r.so; then
24167 MYSQL_LIBDIR=/usr/lib/x86_64-linux-gnu
24168 elif test -f /usr/lib/mysql/libmysqlclient_r.a \
24169 -o -f /usr/lib/mysql/libmysqlclient_r.so; then
24170 MYSQL_LIBDIR=/usr/lib/mysql
24172 MYSQL_LIBDIR=/usr/lib
24174 MYSQL_BINDIR=/usr/bin
24175 elif test -f /usr/include/mysql.h; then
24176 MYSQL_INCDIR=/usr/include
24177 if test -f /usr/lib64/libmysqlclient_r.a \
24178 -o -f /usr/lib64/libmysqlclient_r.so; then
24179 MYSQL_LIBDIR=/usr/lib64
24181 MYSQL_LIBDIR=/usr/lib
24183 MYSQL_BINDIR=/usr/bin
24184 elif test -f /usr/local/include/mysql/mysql.h; then
24185 MYSQL_INCDIR=/usr/local/include/mysql
24186 if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
24187 -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
24188 MYSQL_LIBDIR=/usr/local/lib64/mysql
24190 MYSQL_LIBDIR=/usr/local/lib/mysql
24192 MYSQL_BINDIR=/usr/local/bin
24193 elif test -f /usr/local/include/mysql.h; then
24194 MYSQL_INCDIR=/usr/local/include
24195 if test -f /usr/local/lib64/libmysqlclient_r.a \
24196 -o -f /usr/local/lib64/libmysqlclient_r.so; then
24197 MYSQL_LIBDIR=/usr/local/lib64
24199 MYSQL_LIBDIR=/usr/local/lib
24201 MYSQL_BINDIR=/usr/local/bin
24203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24204 $as_echo "no" >&6; }
24205 as_fn_error $? "Unable to find mysql.h in standard locations" "$LINENO" 5
24209 if test -f $withval/include/mysql/mysql.h; then
24210 MYSQL_INCDIR=$withval/include/mysql
24211 if test -f $withval/lib64/mysql/libmysqlclient_r.a \
24212 -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
24213 MYSQL_LIBDIR=$withval/lib64/mysql
24214 elif test -f $withval/lib64/libmysqlclient_r.a \
24215 -o -f $withval/lib64/libmysqlclient_r.so; then
24216 MYSQL_LIBDIR=$withval/lib64
24217 elif test -f $withval/lib/libmysqlclient_r.a \
24218 -o -f $withval/lib/libmysqlclient_r.so; then
24219 MYSQL_LIBDIR=$withval/lib
24221 MYSQL_LIBDIR=$withval/lib/mysql
24223 MYSQL_BINDIR=$withval/bin
24224 elif test -f $withval/include/mysql.h; then
24225 MYSQL_INCDIR=$withval/include
24226 if test -f $withval/lib64/libmysqlclient_r.a \
24227 -o -f $withval/lib64/libmysqlclient_r.so; then
24228 MYSQL_LIBDIR=$withval/lib64
24230 MYSQL_LIBDIR=$withval/lib
24232 MYSQL_BINDIR=$withval/bin
24233 elif test -f $withval/mysql.h; then
24234 MYSQL_INCDIR=$withval
24235 { $as_echo "$as_me:${as_lineno-$LINENO}: Got with-mysql variable $MYSQL_INCDIR checking MySQL version" >&5
24236 $as_echo "$as_me: Got with-mysql variable $MYSQL_INCDIR checking MySQL version" >&6;}
24237 case $MYSQL_INCDIR in
24239 { $as_echo "$as_me:${as_lineno-$LINENO}: Assuming MacPorts MySQL 5.5 variant installed" >&5
24240 $as_echo "$as_me: Assuming MacPorts MySQL 5.5 variant installed" >&6;}
24241 if test -f $prefix/lib/mysql55/mysql/libmysqlclient_r.a \
24242 -o -f $prefix/lib/mysql55/mysql/libmysqlclient_r.so; then
24243 { $as_echo "$as_me:${as_lineno-$LINENO}: Found MySQL 5.5 library in $prefix/lib/mysql55/mysql" >&5
24244 $as_echo "$as_me: Found MySQL 5.5 library in $prefix/lib/mysql55/mysql" >&6;}
24245 MYSQL_LIBDIR=$prefix/lib/mysql55/mysql
24247 MYSQL_BINDIR=$prefix/lib/mysql55/bin
24250 { $as_echo "$as_me:${as_lineno-$LINENO}: Assuming MacPorts MySQL 5.1 variant installed" >&5
24251 $as_echo "$as_me: Assuming MacPorts MySQL 5.1 variant installed" >&6;}
24252 if test -f $prefix/lib/mysql51/mysql/libmysqlclient_r.a \
24253 -o -f $prefix/lib/mysql51/mysql/libmysqlclient_r.so; then
24254 { $as_echo "$as_me:${as_lineno-$LINENO}: Found MySQL 5.1 library in $prefix/lib/mysql55/mysql" >&5
24255 $as_echo "$as_me: Found MySQL 5.1 library in $prefix/lib/mysql55/mysql" >&6;}
24256 MYSQL_LIBDIR=$prefix/lib/mysql51/mysql
24258 MYSQL_BINDIR=$prefix/lib/mysql51/bin
24261 if test -z "${MYSQL_LIBDIR}" ; then
24262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24263 $as_echo "no" >&6; }
24264 as_fn_error $? "MySQL $withval - unable to find MySQL libraries" "$LINENO" 5
24267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24268 $as_echo "no" >&6; }
24269 as_fn_error $? "Invalid MySQL directory $withval - unable to find mysql.h under $withval" "$LINENO" 5
24272 if test "x${MYSQL_LIBDIR}" != x; then
24273 MYSQL_INCLUDE=-I$MYSQL_INCDIR
24274 if test "x$HAVE_LIBSR" = "xyes"; then
24275 DB_LIBS="${DB_LIBS} ${MYSQL_LIBS}"
24276 MYSQL_LIBS="$MYSQL_LIBDIR"
24277 MYSQL_INCLUDE="$MYSQL_INCDIR"
24279 $as_echo "#define HAVE_MYSQL_THREAD_SAFE 1" >>confdefs.h
24281 if test -z "${batch_insert_db_backends}"; then
24282 batch_insert_db_backends="MySQL"
24284 batch_insert_db_backends="${batch_insert_db_backends} MySQL"
24286 elif test -f $MYSQL_LIBDIR/libmysqlclient_r.a \
24287 -o -f $MYSQL_LIBDIR/libmysqlclient_r.so; then
24288 if test x$use_libtool != xno; then
24289 MYSQL_LIBS="-R $MYSQL_LIBDIR -L$MYSQL_LIBDIR -lmysqlclient_r -lz"
24291 MYSQL_LIBS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
24293 DB_LIBS="${DB_LIBS} ${MYSQL_LIBS}"
24295 if test "x${MYSQL_LIBS}" = x; then
24296 MYSQL_LIBS=$MYSQL_LIBDIR/libmysqlclient_r.a
24300 $as_echo "#define HAVE_MYSQL 1" >>confdefs.h
24302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24303 $as_echo "yes" >&6; }
24305 if test -z "${db_backends}" ; then
24306 db_backends="MySQL"
24308 db_backends="${db_backends} MySQL"
24310 if test -z "${DB_BACKENDS}" ; then
24311 DB_BACKENDS="mysql"
24313 DB_BACKENDS="${DB_BACKENDS} mysql"
24316 if test "x$HAVE_LIBSR" = "xno"; then
24317 if test "x$support_batch_insert" = "xyes"; then
24318 saved_LDFLAGS="${LDFLAGS}"
24319 LDFLAGS="${saved_LDFLAGS} -L$MYSQL_LIBDIR"
24320 saved_LIBS="${LIBS}"
24321 LIBS="${saved_LIBS} -lz"
24323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql_thread_safe in -lmysqlclient_r" >&5
24324 $as_echo_n "checking for mysql_thread_safe in -lmysqlclient_r... " >&6; }
24325 if ${ac_cv_lib_mysqlclient_r_mysql_thread_safe+:} false; then :
24326 $as_echo_n "(cached) " >&6
24328 ac_check_lib_save_LIBS=$LIBS
24329 LIBS="-lmysqlclient_r $LIBS"
24330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24331 /* end confdefs.h. */
24333 /* Override any GCC internal prototype to avoid an error.
24334 Use char because int might match the return type of a GCC
24335 builtin and then its argument prototype would still apply. */
24339 char mysql_thread_safe ();
24343 return mysql_thread_safe ();
24348 if ac_fn_c_try_link "$LINENO"; then :
24349 ac_cv_lib_mysqlclient_r_mysql_thread_safe=yes
24351 ac_cv_lib_mysqlclient_r_mysql_thread_safe=no
24353 rm -f core conftest.err conftest.$ac_objext \
24354 conftest$ac_exeext conftest.$ac_ext
24355 LIBS=$ac_check_lib_save_LIBS
24357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mysqlclient_r_mysql_thread_safe" >&5
24358 $as_echo "$ac_cv_lib_mysqlclient_r_mysql_thread_safe" >&6; }
24359 if test "x$ac_cv_lib_mysqlclient_r_mysql_thread_safe" = xyes; then :
24361 $as_echo "#define HAVE_MYSQL_THREAD_SAFE 1" >>confdefs.h
24365 if test "x$ac_cv_lib_mysqlclient_r_mysql_thread_safe" = "xyes"; then
24366 if test -z "${batch_insert_db_backends}"; then
24367 batch_insert_db_backends="MySQL"
24369 batch_insert_db_backends="${batch_insert_db_backends} MySQL"
24373 LDFLAGS="${saved_LDFLAGS}"
24374 LIBS="${saved_LIBS}"
24378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24379 $as_echo "no" >&6; }
24385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24386 $as_echo "no" >&6; }
24391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MySQL embedded support" >&5
24392 $as_echo_n "checking for MySQL embedded support... " >&6; }
24394 # Check whether --with-embedded-mysql was given.
24395 if test "${with_embedded_mysql+set}" = set; then :
24396 withval=$with_embedded_mysql;
24397 if test "$withval" != "no"; then
24398 if test "$withval" = "yes"; then
24399 if test -f /usr/local/mysql/include/mysql/mysql.h; then
24400 MYSQL_INCDIR=/usr/local/mysql/include/mysql
24401 if test -d /usr/local/mysql/lib64/mysql; then
24402 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
24404 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
24406 MYSQL_BINDIR=/usr/local/mysql/bin
24407 elif test -f /usr/include/mysql/mysql.h; then
24408 MYSQL_INCDIR=/usr/include/mysql
24409 if test -d /usr/lib64/mysql; then
24410 MYSQL_LIBDIR=/usr/lib64/mysql
24412 MYSQL_LIBDIR=/usr/lib/mysql
24414 MYSQL_BINDIR=/usr/bin
24415 elif test -f /usr/include/mysql.h; then
24416 MYSQL_INCDIR=/usr/include
24417 if test -d /usr/lib64; then
24418 MYSQL_LIBDIR=/usr/lib64
24420 MYSQL_LIBDIR=/usr/lib
24422 MYSQL_BINDIR=/usr/bin
24423 elif test -f /usr/local/include/mysql/mysql.h; then
24424 MYSQL_INCDIR=/usr/local/include/mysql
24425 if test -d /usr/local/lib64/mysql; then
24426 MYSQL_LIBDIR=/usr/local/lib64/mysql
24428 MYSQL_LIBDIR=/usr/local/lib/mysql
24430 MYSQL_BINDIR=/usr/local/bin
24431 elif test -f /usr/local/include/mysql.h; then
24432 MYSQL_INCDIR=/usr/local/include
24433 if test -d /usr/local/lib64; then
24434 MYSQL_LIBDIR=/usr/local/lib64
24436 MYSQL_LIBDIR=/usr/local/lib
24438 MYSQL_BINDIR=/usr/local/bin
24440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24441 $as_echo "no" >&6; }
24442 as_fn_error $? "Unable to find mysql.h in standard locations" "$LINENO" 5
24445 if test -f $withval/include/mysql/mysql.h; then
24446 MYSQL_INCDIR=$withval/include/mysql
24447 if test -d $withval/lib64/mysql; then
24448 MYSQL_LIBDIR=$withval/lib64/mysql
24450 MYSQL_LIBDIR=$withval/lib/mysql
24452 MYSQL_BINDIR=$withval/bin
24453 elif test -f $withval/include/mysql.h; then
24454 MYSQL_INCDIR=$withval/include
24455 if test -d $withval/lib64; then
24456 MYSQL_LIBDIR=$withval/lib64
24458 MYSQL_LIBDIR=$withval/lib
24460 MYSQL_BINDIR=$withval/bin
24462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24463 $as_echo "no" >&6; }
24464 as_fn_error $? "Invalid MySQL directory $withval - unable to find mysql.h under $withval" "$LINENO" 5
24467 MYSQL_INCLUDE=-I$MYSQL_INCDIR
24468 if test x$use_libtool != xno; then
24469 MYSQL_LIBS="-R $MYSQL_LIBDIR -L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
24471 MYSQL_LIBS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
24473 MYSQL_LIB=$MYSQL_LIBDIR/libmysqld.a
24474 DB_LIBS="${DB_LIBS} ${MYSQL_LIBS}"
24477 $as_echo "#define HAVE_MYSQL 1" >>confdefs.h
24480 $as_echo "#define HAVE_EMBEDDED_MYSQL 1" >>confdefs.h
24482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24483 $as_echo "yes" >&6; }
24485 if test -z "${db_backends}"; then
24486 db_backends="MySQL"
24488 db_backends="${db_backends} MySQL"
24490 if test -z "${DB_BACKENDS}"; then
24491 DB_BACKENDS="mysql"
24493 DB_BACKENDS="${DB_BACKENDS} mysql"
24496 if test "x$support_batch_insert" = "xyes"; then
24497 saved_LDFLAGS="${LDFLAGS}"
24498 LDFLAGS="${saved_LDFLAGS} -L$MYSQL_LIBDIR"
24499 saved_LIBS="${LIBS}"
24500 LIBS="${saved_LIBS} -lz -lm -lcrypt"
24502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql_thread_safe in -lmysqlclient_r" >&5
24503 $as_echo_n "checking for mysql_thread_safe in -lmysqlclient_r... " >&6; }
24504 if ${ac_cv_lib_mysqlclient_r_mysql_thread_safe+:} false; then :
24505 $as_echo_n "(cached) " >&6
24507 ac_check_lib_save_LIBS=$LIBS
24508 LIBS="-lmysqlclient_r $LIBS"
24509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24510 /* end confdefs.h. */
24512 /* Override any GCC internal prototype to avoid an error.
24513 Use char because int might match the return type of a GCC
24514 builtin and then its argument prototype would still apply. */
24518 char mysql_thread_safe ();
24522 return mysql_thread_safe ();
24527 if ac_fn_c_try_link "$LINENO"; then :
24528 ac_cv_lib_mysqlclient_r_mysql_thread_safe=yes
24530 ac_cv_lib_mysqlclient_r_mysql_thread_safe=no
24532 rm -f core conftest.err conftest.$ac_objext \
24533 conftest$ac_exeext conftest.$ac_ext
24534 LIBS=$ac_check_lib_save_LIBS
24536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mysqlclient_r_mysql_thread_safe" >&5
24537 $as_echo "$ac_cv_lib_mysqlclient_r_mysql_thread_safe" >&6; }
24538 if test "x$ac_cv_lib_mysqlclient_r_mysql_thread_safe" = xyes; then :
24540 $as_echo "#define HAVE_MYSQL_THREAD_SAFE 1" >>confdefs.h
24544 if test "x$ac_cv_lib_mysqlclient_r_mysql_thread_safe" = "xyes"; then
24545 if test -z "${batch_insert_db_backends}"; then
24546 batch_insert_db_backends="MySQL"
24548 batch_insert_db_backends="${batch_insert_db_backends} MySQL"
24552 LDFLAGS="${saved_LDFLAGS}"
24553 LIBS="${saved_LIBS}"
24556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24557 $as_echo "no" >&6; }
24562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24563 $as_echo "no" >&6; }
24574 #BA_CHECK_SQLITE3_DB
24576 if test -z "${batch_insert_db_backends}"; then
24577 batch_insert_db_backends="None"
24580 if test "x${db_backends}" = "x" ; then
24583 echo "You have not specified either --enable-client-only or one of the"
24584 echo "supported databases: MySQL, or PostgreSQL."
24585 echo "This is not permitted. Please reconfigure."
24587 echo "Aborting the configuration ..."
24593 case `echo $DB_BACKENDS | wc -w | sed -e 's/^ *//'` in
24595 DEFAULT_DB_TYPE="${DB_BACKENDS}"
24596 if test x$use_libtool = xno; then
24597 SHARED_CATALOG_TARGETS=""
24599 SHARED_CATALOG_TARGETS="libbaccats-${DEFAULT_DB_TYPE}.la"
24603 DEFAULT_DB_TYPE=`echo ${DB_BACKENDS} | cut -d' ' -f1`
24605 if test x$use_libtool = xno; then
24608 echo "You have specified two or more of the"
24609 echo "supported databases: MySQL or PostgreSQL."
24610 echo "This is not permitted when not using libtool Please reconfigure."
24612 echo "Aborting the configuration ..."
24618 SHARED_CATALOG_TARGETS=""
24619 for db_type in ${DB_BACKENDS}
24621 if test -z "${SHARED_CATALOG_TARGETS}"; then
24622 SHARED_CATALOG_TARGETS="libbaccats-${db_type}.la"
24624 SHARED_CATALOG_TARGETS="${SHARED_CATALOG_TARGETS} libbaccats-${db_type}.la"
24630 if test x$use_libtool = xyes; then
24640 $as_echo "#define PROTOTYPES 1" >>confdefs.h
24643 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
24644 if test -z "$CCOPTS"; then
24645 CCOPTS='-g -O2 -Wall'
24652 largefile_support="no"
24654 # Check whether --enable-largefile was given.
24655 if test "${enable_largefile+set}" = set; then :
24656 enableval=$enable_largefile;
24659 if test "$enable_largefile" != no; then
24660 if test -n "$ac_tool_prefix"; then
24661 # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
24662 set dummy ${ac_tool_prefix}getconf; ac_word=$2
24663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24664 $as_echo_n "checking for $ac_word... " >&6; }
24665 if ${ac_cv_prog_GETCONF+:} false; then :
24666 $as_echo_n "(cached) " >&6
24668 if test -n "$GETCONF"; then
24669 ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
24671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24672 for as_dir in $PATH
24675 test -z "$as_dir" && as_dir=.
24676 for ac_exec_ext in '' $ac_executable_extensions; do
24677 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24678 ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
24679 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24688 GETCONF=$ac_cv_prog_GETCONF
24689 if test -n "$GETCONF"; then
24690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GETCONF" >&5
24691 $as_echo "$GETCONF" >&6; }
24693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24694 $as_echo "no" >&6; }
24699 if test -z "$ac_cv_prog_GETCONF"; then
24700 ac_ct_GETCONF=$GETCONF
24701 # Extract the first word of "getconf", so it can be a program name with args.
24702 set dummy getconf; ac_word=$2
24703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24704 $as_echo_n "checking for $ac_word... " >&6; }
24705 if ${ac_cv_prog_ac_ct_GETCONF+:} false; then :
24706 $as_echo_n "(cached) " >&6
24708 if test -n "$ac_ct_GETCONF"; then
24709 ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
24711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24712 for as_dir in $PATH
24715 test -z "$as_dir" && as_dir=.
24716 for ac_exec_ext in '' $ac_executable_extensions; do
24717 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24718 ac_cv_prog_ac_ct_GETCONF="getconf"
24719 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24728 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
24729 if test -n "$ac_ct_GETCONF"; then
24730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GETCONF" >&5
24731 $as_echo "$ac_ct_GETCONF" >&6; }
24733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24734 $as_echo "no" >&6; }
24737 if test "x$ac_ct_GETCONF" = x; then
24740 case $cross_compiling:$ac_tool_warned in
24742 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
24743 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
24744 ac_tool_warned=yes ;;
24746 GETCONF=$ac_ct_GETCONF
24749 GETCONF="$ac_cv_prog_GETCONF"
24752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLAGS value to request large file support" >&5
24753 $as_echo_n "checking for CFLAGS value to request large file support... " >&6; }
24754 if ${ac_cv_sys_largefile_CFLAGS+:} false; then :
24755 $as_echo_n "(cached) " >&6
24757 ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
24758 ac_cv_sys_largefile_CFLAGS=no
24760 # IRIX 6.2 and later require cc -n32.
24761 irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
24762 if test "$GCC" != yes; then
24763 ac_cv_sys_largefile_CFLAGS=-n32
24766 CC="$CC $ac_cv_sys_largefile_CFLAGS"
24767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24768 /* end confdefs.h. */
24778 if ac_fn_c_try_link "$LINENO"; then :
24781 ac_cv_sys_largefile_CFLAGS=no
24783 rm -f core conftest.err conftest.$ac_objext \
24784 conftest$ac_exeext conftest.$ac_ext
24789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CFLAGS" >&5
24790 $as_echo "$ac_cv_sys_largefile_CFLAGS" >&6; }
24791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDFLAGS value to request large file support" >&5
24792 $as_echo_n "checking for LDFLAGS value to request large file support... " >&6; }
24793 if ${ac_cv_sys_largefile_LDFLAGS+:} false; then :
24794 $as_echo_n "(cached) " >&6
24796 ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
24797 ac_cv_sys_largefile_LDFLAGS=no
24801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_LDFLAGS" >&5
24802 $as_echo "$ac_cv_sys_largefile_LDFLAGS" >&6; }
24803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBS value to request large file support" >&5
24804 $as_echo_n "checking for LIBS value to request large file support... " >&6; }
24805 if ${ac_cv_sys_largefile_LIBS+:} false; then :
24806 $as_echo_n "(cached) " >&6
24808 ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
24809 ac_cv_sys_largefile_LIBS=no
24813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_LIBS" >&5
24814 $as_echo "$ac_cv_sys_largefile_LIBS" >&6; }
24816 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
24819 -D_FILE_OFFSET_BITS=*) ;;
24820 -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
24821 -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
24826 case "$CPPFLAGS" in
24827 '') CPPFLAGS="$ac_flag" ;;
24828 *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
24836 '') CFLAGS="$ac_flag" ;;
24837 *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
24842 case "$ac_cv_sys_largefile_LDFLAGS" in
24846 '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
24847 *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
24850 case "$ac_cv_sys_largefile_LIBS" in
24854 '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
24855 *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
24858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS" >&5
24859 $as_echo_n "checking for _FILE_OFFSET_BITS... " >&6; }
24860 if ${ac_cv_sys_file_offset_bits+:} false; then :
24861 $as_echo_n "(cached) " >&6
24863 ac_cv_sys_file_offset_bits=no
24864 ac_cv_sys_file_offset_bits=64
24865 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
24867 -D_FILE_OFFSET_BITS)
24868 ac_cv_sys_file_offset_bits=1 ;;
24869 -D_FILE_OFFSET_BITS=*)
24870 ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
24875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
24876 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
24877 if test "$ac_cv_sys_file_offset_bits" != no; then
24879 cat >>confdefs.h <<_ACEOF
24880 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
24884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE" >&5
24885 $as_echo_n "checking for _LARGEFILE_SOURCE... " >&6; }
24886 if ${ac_cv_sys_largefile_source+:} false; then :
24887 $as_echo_n "(cached) " >&6
24889 ac_cv_sys_largefile_source=no
24890 ac_cv_sys_largefile_source=1
24891 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
24893 -D_LARGEFILE_SOURCE)
24894 ac_cv_sys_largefile_source=1 ;;
24895 -D_LARGEFILE_SOURCE=*)
24896 ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
24901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
24902 $as_echo "$ac_cv_sys_largefile_source" >&6; }
24903 if test "$ac_cv_sys_largefile_source" != no; then
24905 cat >>confdefs.h <<_ACEOF
24906 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
24910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES" >&5
24911 $as_echo_n "checking for _LARGE_FILES... " >&6; }
24912 if ${ac_cv_sys_large_files+:} false; then :
24913 $as_echo_n "(cached) " >&6
24915 ac_cv_sys_large_files=no
24916 ac_cv_sys_large_files=1
24917 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
24920 ac_cv_sys_large_files=1 ;;
24922 ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
24927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
24928 $as_echo "$ac_cv_sys_large_files" >&6; }
24929 if test "$ac_cv_sys_large_files" != no; then
24931 cat >>confdefs.h <<_ACEOF
24932 #define _LARGE_FILES $ac_cv_sys_large_files
24939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
24940 $as_echo_n "checking for X... " >&6; }
24943 # Check whether --with-x was given.
24944 if test "${with_x+set}" = set; then :
24948 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
24949 if test "x$with_x" = xno; then
24950 # The user explicitly disabled X.
24953 case $x_includes,$x_libraries in #(
24954 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
24955 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
24956 $as_echo_n "(cached) " >&6
24958 # One or both of the vars are not set, and there is no cached value.
24959 ac_x_includes=no ac_x_libraries=no
24960 rm -f -r conftest.dir
24961 if mkdir conftest.dir; then
24963 cat >Imakefile <<'_ACEOF'
24965 @echo incroot='${INCROOT}'
24967 @echo usrlibdir='${USRLIBDIR}'
24969 @echo libdir='${LIBDIR}'
24971 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
24972 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
24973 for ac_var in incroot usrlibdir libdir; do
24974 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
24976 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
24977 for ac_extension in a so sl dylib la dll; do
24978 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
24979 test -f "$ac_im_libdir/libX11.$ac_extension"; then
24980 ac_im_usrlibdir=$ac_im_libdir; break
24983 # Screen out bogus values from the imake configuration. They are
24984 # bogus both because they are the default anyway, and because
24985 # using them would break gcc on systems where it needs fixed includes.
24986 case $ac_im_incroot in
24987 /usr/include) ac_x_includes= ;;
24988 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
24990 case $ac_im_usrlibdir in
24991 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
24992 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
24996 rm -f -r conftest.dir
24999 # Standard set of common directories for X headers.
25000 # Check X11 before X11Rn because it is often a symlink to the current release.
25014 /usr/local/X11/include
25015 /usr/local/X11R7/include
25016 /usr/local/X11R6/include
25017 /usr/local/X11R5/include
25018 /usr/local/X11R4/include
25020 /usr/local/include/X11
25021 /usr/local/include/X11R7
25022 /usr/local/include/X11R6
25023 /usr/local/include/X11R5
25024 /usr/local/include/X11R4
25028 /usr/XFree86/include/X11
25032 /usr/unsupported/include
25033 /usr/athena/include
25034 /usr/local/x11r5/include
25035 /usr/lpp/Xamples/include
25037 /usr/openwin/include
25038 /usr/openwin/share/include'
25040 if test "$ac_x_includes" = no; then
25041 # Guess where to find include files, by looking for Xlib.h.
25042 # First, try using that file with no special directory specified.
25043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25044 /* end confdefs.h. */
25045 #include <X11/Xlib.h>
25047 if ac_fn_c_try_cpp "$LINENO"; then :
25048 # We can compile using X headers with no special include directory.
25051 for ac_dir in $ac_x_header_dirs; do
25052 if test -r "$ac_dir/X11/Xlib.h"; then
25053 ac_x_includes=$ac_dir
25058 rm -f conftest.err conftest.i conftest.$ac_ext
25059 fi # $ac_x_includes = no
25061 if test "$ac_x_libraries" = no; then
25062 # Check for the libraries.
25063 # See if we find them without any special options.
25064 # Don't add to $LIBS permanently.
25067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25068 /* end confdefs.h. */
25069 #include <X11/Xlib.h>
25078 if ac_fn_c_try_link "$LINENO"; then :
25080 # We can link X programs with no special library path.
25084 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
25086 # Don't even attempt the hair of trying to link an X program!
25087 for ac_extension in a so sl dylib la dll; do
25088 if test -r "$ac_dir/libX11.$ac_extension"; then
25089 ac_x_libraries=$ac_dir
25095 rm -f core conftest.err conftest.$ac_objext \
25096 conftest$ac_exeext conftest.$ac_ext
25097 fi # $ac_x_libraries = no
25099 case $ac_x_includes,$ac_x_libraries in #(
25100 no,* | *,no | *\'*)
25101 # Didn't find X, or a directory has "'" in its name.
25102 ac_cv_have_x="have_x=no";; #(
25104 # Record where we found X for the cache.
25105 ac_cv_have_x="have_x=yes\
25106 ac_x_includes='$ac_x_includes'\
25107 ac_x_libraries='$ac_x_libraries'"
25113 eval "$ac_cv_have_x"
25116 if test "$have_x" != yes; then
25117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
25118 $as_echo "$have_x" >&6; }
25121 # If each of the values was on the command line, it overrides each guess.
25122 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
25123 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
25124 # Update the cache value to reflect the command line values.
25125 ac_cv_have_x="have_x=yes\
25126 ac_x_includes='$x_includes'\
25127 ac_x_libraries='$x_libraries'"
25128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
25129 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
25132 if test "$no_x" = yes; then
25133 # Not all programs may use this symbol, but it does not hurt to define it.
25135 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
25137 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
25139 if test -n "$x_includes"; then
25140 X_CFLAGS="$X_CFLAGS -I$x_includes"
25143 # It would also be nice to do this for all -L options, not just this one.
25144 if test -n "$x_libraries"; then
25145 X_LIBS="$X_LIBS -L$x_libraries"
25146 # For Solaris; some versions of Sun CC require a space after -R and
25147 # others require no space. Words are not sufficient . . . .
25148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
25149 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
25150 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
25151 ac_xsave_c_werror_flag=$ac_c_werror_flag
25152 ac_c_werror_flag=yes
25153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25154 /* end confdefs.h. */
25164 if ac_fn_c_try_link "$LINENO"; then :
25165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25166 $as_echo "no" >&6; }
25167 X_LIBS="$X_LIBS -R$x_libraries"
25169 LIBS="$ac_xsave_LIBS -R $x_libraries"
25170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25171 /* end confdefs.h. */
25181 if ac_fn_c_try_link "$LINENO"; then :
25182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25183 $as_echo "yes" >&6; }
25184 X_LIBS="$X_LIBS -R $x_libraries"
25186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
25187 $as_echo "neither works" >&6; }
25189 rm -f core conftest.err conftest.$ac_objext \
25190 conftest$ac_exeext conftest.$ac_ext
25192 rm -f core conftest.err conftest.$ac_objext \
25193 conftest$ac_exeext conftest.$ac_ext
25194 ac_c_werror_flag=$ac_xsave_c_werror_flag
25195 LIBS=$ac_xsave_LIBS
25198 # Check for system-dependent libraries X programs must link with.
25199 # Do this before checking for the system-independent R6 libraries
25200 # (-lICE), since we may need -lsocket or whatever for X linking.
25202 if test "$ISC" = yes; then
25203 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
25205 # Martyn Johnson says this is needed for Ultrix, if the X
25206 # libraries were built with DECnet support. And Karl Berry says
25207 # the Alpha needs dnet_stub (dnet does not exist).
25208 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
25209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25210 /* end confdefs.h. */
25212 /* Override any GCC internal prototype to avoid an error.
25213 Use char because int might match the return type of a GCC
25214 builtin and then its argument prototype would still apply. */
25218 char XOpenDisplay ();
25222 return XOpenDisplay ();
25227 if ac_fn_c_try_link "$LINENO"; then :
25230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
25231 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
25232 if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
25233 $as_echo_n "(cached) " >&6
25235 ac_check_lib_save_LIBS=$LIBS
25236 LIBS="-ldnet $LIBS"
25237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25238 /* end confdefs.h. */
25240 /* Override any GCC internal prototype to avoid an error.
25241 Use char because int might match the return type of a GCC
25242 builtin and then its argument prototype would still apply. */
25250 return dnet_ntoa ();
25255 if ac_fn_c_try_link "$LINENO"; then :
25256 ac_cv_lib_dnet_dnet_ntoa=yes
25258 ac_cv_lib_dnet_dnet_ntoa=no
25260 rm -f core conftest.err conftest.$ac_objext \
25261 conftest$ac_exeext conftest.$ac_ext
25262 LIBS=$ac_check_lib_save_LIBS
25264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
25265 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
25266 if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
25267 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
25270 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
25271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
25272 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
25273 if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
25274 $as_echo_n "(cached) " >&6
25276 ac_check_lib_save_LIBS=$LIBS
25277 LIBS="-ldnet_stub $LIBS"
25278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25279 /* end confdefs.h. */
25281 /* Override any GCC internal prototype to avoid an error.
25282 Use char because int might match the return type of a GCC
25283 builtin and then its argument prototype would still apply. */
25291 return dnet_ntoa ();
25296 if ac_fn_c_try_link "$LINENO"; then :
25297 ac_cv_lib_dnet_stub_dnet_ntoa=yes
25299 ac_cv_lib_dnet_stub_dnet_ntoa=no
25301 rm -f core conftest.err conftest.$ac_objext \
25302 conftest$ac_exeext conftest.$ac_ext
25303 LIBS=$ac_check_lib_save_LIBS
25305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
25306 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
25307 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
25308 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
25313 rm -f core conftest.err conftest.$ac_objext \
25314 conftest$ac_exeext conftest.$ac_ext
25315 LIBS="$ac_xsave_LIBS"
25317 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
25318 # to get the SysV transport functions.
25319 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
25321 # The nsl library prevents programs from opening the X display
25322 # on Irix 5.2, according to T.E. Dickey.
25323 # The functions gethostbyname, getservbyname, and inet_addr are
25324 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
25325 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
25326 if test "x$ac_cv_func_gethostbyname" = xyes; then :
25330 if test $ac_cv_func_gethostbyname = no; then
25331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
25332 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
25333 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
25334 $as_echo_n "(cached) " >&6
25336 ac_check_lib_save_LIBS=$LIBS
25338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25339 /* end confdefs.h. */
25341 /* Override any GCC internal prototype to avoid an error.
25342 Use char because int might match the return type of a GCC
25343 builtin and then its argument prototype would still apply. */
25347 char gethostbyname ();
25351 return gethostbyname ();
25356 if ac_fn_c_try_link "$LINENO"; then :
25357 ac_cv_lib_nsl_gethostbyname=yes
25359 ac_cv_lib_nsl_gethostbyname=no
25361 rm -f core conftest.err conftest.$ac_objext \
25362 conftest$ac_exeext conftest.$ac_ext
25363 LIBS=$ac_check_lib_save_LIBS
25365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
25366 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
25367 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
25368 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
25371 if test $ac_cv_lib_nsl_gethostbyname = no; then
25372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
25373 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
25374 if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
25375 $as_echo_n "(cached) " >&6
25377 ac_check_lib_save_LIBS=$LIBS
25379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25380 /* end confdefs.h. */
25382 /* Override any GCC internal prototype to avoid an error.
25383 Use char because int might match the return type of a GCC
25384 builtin and then its argument prototype would still apply. */
25388 char gethostbyname ();
25392 return gethostbyname ();
25397 if ac_fn_c_try_link "$LINENO"; then :
25398 ac_cv_lib_bsd_gethostbyname=yes
25400 ac_cv_lib_bsd_gethostbyname=no
25402 rm -f core conftest.err conftest.$ac_objext \
25403 conftest$ac_exeext conftest.$ac_ext
25404 LIBS=$ac_check_lib_save_LIBS
25406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
25407 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
25408 if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
25409 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
25415 # lieder@skyler.mavd.honeywell.com says without -lsocket,
25416 # socket/setsockopt and other routines are undefined under SCO ODT
25417 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
25418 # on later versions), says Simon Leinen: it contains gethostby*
25419 # variants that don't use the name server (or something). -lsocket
25420 # must be given before -lnsl if both are needed. We assume that
25421 # if connect needs -lnsl, so does gethostbyname.
25422 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
25423 if test "x$ac_cv_func_connect" = xyes; then :
25427 if test $ac_cv_func_connect = no; then
25428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
25429 $as_echo_n "checking for connect in -lsocket... " >&6; }
25430 if ${ac_cv_lib_socket_connect+:} false; then :
25431 $as_echo_n "(cached) " >&6
25433 ac_check_lib_save_LIBS=$LIBS
25434 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
25435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25436 /* end confdefs.h. */
25438 /* Override any GCC internal prototype to avoid an error.
25439 Use char because int might match the return type of a GCC
25440 builtin and then its argument prototype would still apply. */
25453 if ac_fn_c_try_link "$LINENO"; then :
25454 ac_cv_lib_socket_connect=yes
25456 ac_cv_lib_socket_connect=no
25458 rm -f core conftest.err conftest.$ac_objext \
25459 conftest$ac_exeext conftest.$ac_ext
25460 LIBS=$ac_check_lib_save_LIBS
25462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
25463 $as_echo "$ac_cv_lib_socket_connect" >&6; }
25464 if test "x$ac_cv_lib_socket_connect" = xyes; then :
25465 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
25470 # Guillermo Gomez says -lposix is necessary on A/UX.
25471 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
25472 if test "x$ac_cv_func_remove" = xyes; then :
25476 if test $ac_cv_func_remove = no; then
25477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
25478 $as_echo_n "checking for remove in -lposix... " >&6; }
25479 if ${ac_cv_lib_posix_remove+:} false; then :
25480 $as_echo_n "(cached) " >&6
25482 ac_check_lib_save_LIBS=$LIBS
25483 LIBS="-lposix $LIBS"
25484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25485 /* end confdefs.h. */
25487 /* Override any GCC internal prototype to avoid an error.
25488 Use char because int might match the return type of a GCC
25489 builtin and then its argument prototype would still apply. */
25502 if ac_fn_c_try_link "$LINENO"; then :
25503 ac_cv_lib_posix_remove=yes
25505 ac_cv_lib_posix_remove=no
25507 rm -f core conftest.err conftest.$ac_objext \
25508 conftest$ac_exeext conftest.$ac_ext
25509 LIBS=$ac_check_lib_save_LIBS
25511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
25512 $as_echo "$ac_cv_lib_posix_remove" >&6; }
25513 if test "x$ac_cv_lib_posix_remove" = xyes; then :
25514 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
25519 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
25520 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
25521 if test "x$ac_cv_func_shmat" = xyes; then :
25525 if test $ac_cv_func_shmat = no; then
25526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
25527 $as_echo_n "checking for shmat in -lipc... " >&6; }
25528 if ${ac_cv_lib_ipc_shmat+:} false; then :
25529 $as_echo_n "(cached) " >&6
25531 ac_check_lib_save_LIBS=$LIBS
25533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25534 /* end confdefs.h. */
25536 /* Override any GCC internal prototype to avoid an error.
25537 Use char because int might match the return type of a GCC
25538 builtin and then its argument prototype would still apply. */
25551 if ac_fn_c_try_link "$LINENO"; then :
25552 ac_cv_lib_ipc_shmat=yes
25554 ac_cv_lib_ipc_shmat=no
25556 rm -f core conftest.err conftest.$ac_objext \
25557 conftest$ac_exeext conftest.$ac_ext
25558 LIBS=$ac_check_lib_save_LIBS
25560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
25561 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
25562 if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
25563 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
25569 # Check for libraries that X11R6 Xt/Xaw programs need.
25570 ac_save_LDFLAGS=$LDFLAGS
25571 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
25572 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
25573 # check for ICE first), but we must link in the order -lSM -lICE or
25574 # we get undefined symbols. So assume we have SM if we have ICE.
25575 # These have to be linked with before -lX11, unlike the other
25576 # libraries we check for below, so use a different variable.
25577 # John Interrante, Karl Berry
25578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
25579 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
25580 if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
25581 $as_echo_n "(cached) " >&6
25583 ac_check_lib_save_LIBS=$LIBS
25584 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
25585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25586 /* end confdefs.h. */
25588 /* Override any GCC internal prototype to avoid an error.
25589 Use char because int might match the return type of a GCC
25590 builtin and then its argument prototype would still apply. */
25594 char IceConnectionNumber ();
25598 return IceConnectionNumber ();
25603 if ac_fn_c_try_link "$LINENO"; then :
25604 ac_cv_lib_ICE_IceConnectionNumber=yes
25606 ac_cv_lib_ICE_IceConnectionNumber=no
25608 rm -f core conftest.err conftest.$ac_objext \
25609 conftest$ac_exeext conftest.$ac_ext
25610 LIBS=$ac_check_lib_save_LIBS
25612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
25613 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
25614 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
25615 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
25618 LDFLAGS=$ac_save_LDFLAGS
25656 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25657 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
25658 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
25659 cat >>confdefs.h <<_ACEOF
25660 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
25668 $as_echo_n "checking for ANSI C header files... " >&6; }
25669 if ${ac_cv_header_stdc+:} false; then :
25670 $as_echo_n "(cached) " >&6
25672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25673 /* end confdefs.h. */
25674 #include <stdlib.h>
25675 #include <stdarg.h>
25676 #include <string.h>
25687 if ac_fn_c_try_compile "$LINENO"; then :
25688 ac_cv_header_stdc=yes
25690 ac_cv_header_stdc=no
25692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25694 if test $ac_cv_header_stdc = yes; then
25695 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
25696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25697 /* end confdefs.h. */
25698 #include <string.h>
25701 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25702 $EGREP "memchr" >/dev/null 2>&1; then :
25705 ac_cv_header_stdc=no
25711 if test $ac_cv_header_stdc = yes; then
25712 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
25713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25714 /* end confdefs.h. */
25715 #include <stdlib.h>
25718 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25719 $EGREP "free" >/dev/null 2>&1; then :
25722 ac_cv_header_stdc=no
25728 if test $ac_cv_header_stdc = yes; then
25729 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
25730 if test "$cross_compiling" = yes; then :
25733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25734 /* end confdefs.h. */
25736 #include <stdlib.h>
25737 #if ((' ' & 0x0FF) == 0x020)
25738 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
25739 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
25741 # define ISLOWER(c) \
25742 (('a' <= (c) && (c) <= 'i') \
25743 || ('j' <= (c) && (c) <= 'r') \
25744 || ('s' <= (c) && (c) <= 'z'))
25745 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
25748 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
25753 for (i = 0; i < 256; i++)
25754 if (XOR (islower (i), ISLOWER (i))
25755 || toupper (i) != TOUPPER (i))
25760 if ac_fn_c_try_run "$LINENO"; then :
25763 ac_cv_header_stdc=no
25765 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25766 conftest.$ac_objext conftest.beam conftest.$ac_ext
25771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
25772 $as_echo "$ac_cv_header_stdc" >&6; }
25773 if test $ac_cv_header_stdc = yes; then
25775 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
25779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev" >&5
25780 $as_echo_n "checking whether sys/types.h defines makedev... " >&6; }
25781 if ${ac_cv_header_sys_types_h_makedev+:} false; then :
25782 $as_echo_n "(cached) " >&6
25784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25785 /* end confdefs.h. */
25786 #include <sys/types.h>
25790 return makedev(0, 0);
25795 if ac_fn_c_try_link "$LINENO"; then :
25796 ac_cv_header_sys_types_h_makedev=yes
25798 ac_cv_header_sys_types_h_makedev=no
25800 rm -f core conftest.err conftest.$ac_objext \
25801 conftest$ac_exeext conftest.$ac_ext
25804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_types_h_makedev" >&5
25805 $as_echo "$ac_cv_header_sys_types_h_makedev" >&6; }
25807 if test $ac_cv_header_sys_types_h_makedev = no; then
25808 ac_fn_c_check_header_mongrel "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"
25809 if test "x$ac_cv_header_sys_mkdev_h" = xyes; then :
25811 $as_echo "#define MAJOR_IN_MKDEV 1" >>confdefs.h
25817 if test $ac_cv_header_sys_mkdev_h = no; then
25818 ac_fn_c_check_header_mongrel "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
25819 if test "x$ac_cv_header_sys_sysmacros_h" = xyes; then :
25821 $as_echo "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h
25829 ac_header_dirent=no
25830 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
25831 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
25832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
25833 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
25834 if eval \${$as_ac_Header+:} false; then :
25835 $as_echo_n "(cached) " >&6
25837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25838 /* end confdefs.h. */
25839 #include <sys/types.h>
25851 if ac_fn_c_try_compile "$LINENO"; then :
25852 eval "$as_ac_Header=yes"
25854 eval "$as_ac_Header=no"
25856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25858 eval ac_res=\$$as_ac_Header
25859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
25860 $as_echo "$ac_res" >&6; }
25861 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
25862 cat >>confdefs.h <<_ACEOF
25863 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
25866 ac_header_dirent=$ac_hdr; break
25870 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
25871 if test $ac_header_dirent = dirent.h; then
25872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
25873 $as_echo_n "checking for library containing opendir... " >&6; }
25874 if ${ac_cv_search_opendir+:} false; then :
25875 $as_echo_n "(cached) " >&6
25877 ac_func_search_save_LIBS=$LIBS
25878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25879 /* end confdefs.h. */
25881 /* Override any GCC internal prototype to avoid an error.
25882 Use char because int might match the return type of a GCC
25883 builtin and then its argument prototype would still apply. */
25896 for ac_lib in '' dir; do
25897 if test -z "$ac_lib"; then
25898 ac_res="none required"
25901 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25903 if ac_fn_c_try_link "$LINENO"; then :
25904 ac_cv_search_opendir=$ac_res
25906 rm -f core conftest.err conftest.$ac_objext \
25908 if ${ac_cv_search_opendir+:} false; then :
25912 if ${ac_cv_search_opendir+:} false; then :
25915 ac_cv_search_opendir=no
25917 rm conftest.$ac_ext
25918 LIBS=$ac_func_search_save_LIBS
25920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
25921 $as_echo "$ac_cv_search_opendir" >&6; }
25922 ac_res=$ac_cv_search_opendir
25923 if test "$ac_res" != no; then :
25924 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
25930 $as_echo_n "checking for library containing opendir... " >&6; }
25931 if ${ac_cv_search_opendir+:} false; then :
25932 $as_echo_n "(cached) " >&6
25934 ac_func_search_save_LIBS=$LIBS
25935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25936 /* end confdefs.h. */
25938 /* Override any GCC internal prototype to avoid an error.
25939 Use char because int might match the return type of a GCC
25940 builtin and then its argument prototype would still apply. */
25953 for ac_lib in '' x; do
25954 if test -z "$ac_lib"; then
25955 ac_res="none required"
25958 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25960 if ac_fn_c_try_link "$LINENO"; then :
25961 ac_cv_search_opendir=$ac_res
25963 rm -f core conftest.err conftest.$ac_objext \
25965 if ${ac_cv_search_opendir+:} false; then :
25969 if ${ac_cv_search_opendir+:} false; then :
25972 ac_cv_search_opendir=no
25974 rm conftest.$ac_ext
25975 LIBS=$ac_func_search_save_LIBS
25977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
25978 $as_echo "$ac_cv_search_opendir" >&6; }
25979 ac_res=$ac_cv_search_opendir
25980 if test "$ac_res" != no; then :
25981 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
25988 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
25989 if ${ac_cv_header_stat_broken+:} false; then :
25990 $as_echo_n "(cached) " >&6
25992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25993 /* end confdefs.h. */
25994 #include <sys/types.h>
25995 #include <sys/stat.h>
25997 #if defined S_ISBLK && defined S_IFDIR
25998 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
26001 #if defined S_ISBLK && defined S_IFCHR
26002 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
26005 #if defined S_ISLNK && defined S_IFREG
26006 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
26009 #if defined S_ISSOCK && defined S_IFREG
26010 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
26014 if ac_fn_c_try_compile "$LINENO"; then :
26015 ac_cv_header_stat_broken=no
26017 ac_cv_header_stat_broken=yes
26019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
26022 $as_echo "$ac_cv_header_stat_broken" >&6; }
26023 if test $ac_cv_header_stat_broken = yes; then
26025 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
26029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
26030 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
26031 if ${ac_cv_header_sys_wait_h+:} false; then :
26032 $as_echo_n "(cached) " >&6
26034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26035 /* end confdefs.h. */
26036 #include <sys/types.h>
26037 #include <sys/wait.h>
26038 #ifndef WEXITSTATUS
26039 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
26042 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
26050 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
26055 if ac_fn_c_try_compile "$LINENO"; then :
26056 ac_cv_header_sys_wait_h=yes
26058 ac_cv_header_sys_wait_h=no
26060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
26063 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
26064 if test $ac_cv_header_sys_wait_h = yes; then
26066 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
26070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
26071 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
26072 if ${ac_cv_header_time+:} false; then :
26073 $as_echo_n "(cached) " >&6
26075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26076 /* end confdefs.h. */
26077 #include <sys/types.h>
26078 #include <sys/time.h>
26084 if ((struct tm *) 0)
26090 if ac_fn_c_try_compile "$LINENO"; then :
26091 ac_cv_header_time=yes
26093 ac_cv_header_time=no
26095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
26098 $as_echo "$ac_cv_header_time" >&6; }
26099 if test $ac_cv_header_time = yes; then
26101 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
26105 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
26106 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
26108 cat >>confdefs.h <<_ACEOF
26109 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
26113 $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h
26118 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
26119 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
26121 cat >>confdefs.h <<_ACEOF
26122 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
26126 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
26129 case " $LIBOBJS " in
26130 *" fileblocks.$ac_objext "* ) ;;
26131 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
26138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
26139 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
26140 if ${ac_cv_struct_tm+:} false; then :
26141 $as_echo_n "(cached) " >&6
26143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26144 /* end confdefs.h. */
26145 #include <sys/types.h>
26152 int *p = &tm.tm_sec;
26158 if ac_fn_c_try_compile "$LINENO"; then :
26159 ac_cv_struct_tm=time.h
26161 ac_cv_struct_tm=sys/time.h
26163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
26166 $as_echo "$ac_cv_struct_tm" >&6; }
26167 if test $ac_cv_struct_tm = sys/time.h; then
26169 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
26173 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
26174 #include <$ac_cv_struct_tm>
26177 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
26179 cat >>confdefs.h <<_ACEOF
26180 #define HAVE_STRUCT_TM_TM_ZONE 1
26186 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
26188 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
26191 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
26193 if test "x$ac_cv_have_decl_tzname" = xyes; then :
26199 cat >>confdefs.h <<_ACEOF
26200 #define HAVE_DECL_TZNAME $ac_have_decl
26203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
26204 $as_echo_n "checking for tzname... " >&6; }
26205 if ${ac_cv_var_tzname+:} false; then :
26206 $as_echo_n "(cached) " >&6
26208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26209 /* end confdefs.h. */
26211 #if !HAVE_DECL_TZNAME
26212 extern char *tzname[];
26218 return tzname[0][0];
26223 if ac_fn_c_try_link "$LINENO"; then :
26224 ac_cv_var_tzname=yes
26226 ac_cv_var_tzname=no
26228 rm -f core conftest.err conftest.$ac_objext \
26229 conftest$ac_exeext conftest.$ac_ext
26231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
26232 $as_echo "$ac_cv_var_tzname" >&6; }
26233 if test $ac_cv_var_tzname = yes; then
26235 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
26241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for utime.h" >&5
26242 $as_echo_n "checking for utime.h... " >&6; }
26243 if ${ba_cv_header_utime_h+:} false; then :
26244 $as_echo_n "(cached) " >&6
26247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26248 /* end confdefs.h. */
26250 #include <sys/types.h>
26263 if ac_fn_c_try_compile "$LINENO"; then :
26265 ba_cv_header_utime_h=yes
26269 ba_cv_header_utime_h=no
26273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_header_utime_h" >&5
26278 $as_echo "$ba_cv_header_utime_h" >&6; }
26279 test $ba_cv_header_utime_h = yes &&
26280 $as_echo "#define HAVE_UTIME_H 1" >>confdefs.h
26283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5
26284 $as_echo_n "checking for socklen_t... " >&6; }
26285 if ${ba_cv_header_socklen_t+:} false; then :
26286 $as_echo_n "(cached) " >&6
26289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26290 /* end confdefs.h. */
26292 #include <sys/types.h>
26293 #include <sys/socket.h>
26305 if ac_fn_c_try_compile "$LINENO"; then :
26307 ba_cv_header_socklen_t=yes
26311 ba_cv_header_socklen_t=no
26315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_header_socklen_t" >&5
26320 $as_echo "$ba_cv_header_socklen_t" >&6; }
26321 test $ba_cv_header_socklen_t = yes &&
26322 $as_echo "#define HAVE_SOCKLEN_T 1" >>confdefs.h
26326 ac_cpp='$CXXCPP $CPPFLAGS'
26327 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26328 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26329 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ioctl_req_t" >&5
26332 $as_echo_n "checking for ioctl_req_t... " >&6; }
26333 if ${ba_cv_header_ioctl_req_t+:} false; then :
26334 $as_echo_n "(cached) " >&6
26337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26338 /* end confdefs.h. */
26340 #include <unistd.h>
26341 #include <sys/types.h>
26342 #include <sys/ioctl.h>
26348 int (*d_ioctl)(int fd, unsigned long int request, ...);
26355 if ac_fn_cxx_try_compile "$LINENO"; then :
26357 ba_cv_header_ioctl_req_t=yes
26361 ba_cv_header_ioctl_req_t=no
26365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_header_ioctl_req_t" >&5
26370 $as_echo "$ba_cv_header_ioctl_req_t" >&6; }
26371 test $ba_cv_header_ioctl_req_t = yes &&
26372 $as_echo "#define HAVE_IOCTL_ULINT_REQUEST 1" >>confdefs.h
26376 ac_cpp='$CPP $CPPFLAGS'
26377 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26378 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26379 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26383 ac_cpp='$CXXCPP $CPPFLAGS'
26384 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26385 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26386 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for typeof" >&5
26389 $as_echo_n "checking for typeof... " >&6; }
26390 if ${ba_cv_have_typeof+:} false; then :
26391 $as_echo_n "(cached) " >&6
26394 if test "$cross_compiling" = yes; then :
26396 ba_cv_have_typeof=no
26400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26401 /* end confdefs.h. */
26403 main(){char *a = 0; a = (typeof a)a;}
26406 if ac_fn_cxx_try_run "$LINENO"; then :
26408 ba_cv_have_typeof=yes
26412 ba_cv_have_typeof=no
26415 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26416 conftest.$ac_objext conftest.beam conftest.$ac_ext
26422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_have_typeof" >&5
26423 $as_echo "$ba_cv_have_typeof" >&6; }
26424 test $ba_cv_have_typeof = yes &&
26425 $as_echo "#define HAVE_TYPEOF 1" >>confdefs.h
26428 ac_cpp='$CPP $CPPFLAGS'
26429 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26430 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26431 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
26435 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
26436 if ${ac_cv_c_const+:} false; then :
26437 $as_echo_n "(cached) " >&6
26439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26440 /* end confdefs.h. */
26446 #ifndef __cplusplus
26447 /* Ultrix mips cc rejects this sort of thing. */
26448 typedef int charset[2];
26449 const charset cs = { 0, 0 };
26450 /* SunOS 4.1.1 cc rejects this. */
26451 char const *const *pcpcc;
26453 /* NEC SVR4.0.2 mips cc rejects this. */
26454 struct point {int x, y;};
26455 static struct point const zero = {0,0};
26456 /* AIX XL C 1.02.0.0 rejects this.
26457 It does not let you subtract one const X* pointer from another in
26458 an arm of an if-expression whose if-part is not a constant
26460 const char *g = "string";
26461 pcpcc = &g + (g ? g-g : 0);
26462 /* HPUX 7.0 cc rejects these. */
26464 ppc = (char**) pcpcc;
26465 pcpcc = (char const *const *) ppc;
26466 { /* SCO 3.2v4 cc rejects this sort of thing. */
26469 char const *s = 0 ? (char *) 0 : (char const *) 0;
26474 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
26475 int x[] = {25, 17};
26476 const int *foo = &x[0];
26479 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
26480 typedef const int *iptr;
26484 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
26485 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
26486 struct s { int j; const int *ap[3]; } bx;
26487 struct s *b = &bx; b->j = 5;
26489 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
26490 const int foo = 10;
26491 if (!foo) return 0;
26493 return !cs[0] && !zero.x;
26500 if ac_fn_c_try_compile "$LINENO"; then :
26505 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
26508 $as_echo "$ac_cv_c_const" >&6; }
26509 if test $ac_cv_c_const = no; then
26511 $as_echo "#define const /**/" >>confdefs.h
26516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
26517 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
26518 if ${ac_cv_c_bigendian+:} false; then :
26519 $as_echo_n "(cached) " >&6
26521 ac_cv_c_bigendian=unknown
26522 # See if we're dealing with a universal compiler.
26523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26524 /* end confdefs.h. */
26525 #ifndef __APPLE_CC__
26526 not a universal capable compiler
26531 if ac_fn_c_try_compile "$LINENO"; then :
26533 # Check for potential -arch flags. It is not universal unless
26534 # there are at least two -arch flags with different values.
26537 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
26538 if test -n "$ac_prev"; then
26540 i?86 | x86_64 | ppc | ppc64)
26541 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
26544 ac_cv_c_bigendian=universal
26550 elif test "x$ac_word" = "x-arch"; then
26555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26556 if test $ac_cv_c_bigendian = unknown; then
26557 # See if sys/param.h defines the BYTE_ORDER macro.
26558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26559 /* end confdefs.h. */
26560 #include <sys/types.h>
26561 #include <sys/param.h>
26566 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
26567 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
26569 bogus endian macros
26576 if ac_fn_c_try_compile "$LINENO"; then :
26577 # It does; now see whether it defined to BIG_ENDIAN or not.
26578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26579 /* end confdefs.h. */
26580 #include <sys/types.h>
26581 #include <sys/param.h>
26586 #if BYTE_ORDER != BIG_ENDIAN
26594 if ac_fn_c_try_compile "$LINENO"; then :
26595 ac_cv_c_bigendian=yes
26597 ac_cv_c_bigendian=no
26599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26603 if test $ac_cv_c_bigendian = unknown; then
26604 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
26605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26606 /* end confdefs.h. */
26607 #include <limits.h>
26612 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
26613 bogus endian macros
26620 if ac_fn_c_try_compile "$LINENO"; then :
26621 # It does; now see whether it defined to _BIG_ENDIAN or not.
26622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26623 /* end confdefs.h. */
26624 #include <limits.h>
26629 #ifndef _BIG_ENDIAN
26637 if ac_fn_c_try_compile "$LINENO"; then :
26638 ac_cv_c_bigendian=yes
26640 ac_cv_c_bigendian=no
26642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26646 if test $ac_cv_c_bigendian = unknown; then
26647 # Compile a test program.
26648 if test "$cross_compiling" = yes; then :
26649 # Try to guess by grepping values from an object file.
26650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26651 /* end confdefs.h. */
26652 short int ascii_mm[] =
26653 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
26654 short int ascii_ii[] =
26655 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
26656 int use_ascii (int i) {
26657 return ascii_mm[i] + ascii_ii[i];
26659 short int ebcdic_ii[] =
26660 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
26661 short int ebcdic_mm[] =
26662 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
26663 int use_ebcdic (int i) {
26664 return ebcdic_mm[i] + ebcdic_ii[i];
26671 return use_ascii (foo) == use_ebcdic (foo);
26676 if ac_fn_c_try_compile "$LINENO"; then :
26677 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
26678 ac_cv_c_bigendian=yes
26680 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
26681 if test "$ac_cv_c_bigendian" = unknown; then
26682 ac_cv_c_bigendian=no
26684 # finding both strings is unlikely to happen, but who knows?
26685 ac_cv_c_bigendian=unknown
26689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26692 /* end confdefs.h. */
26693 $ac_includes_default
26698 /* Are we little or big endian? From Harbison&Steele. */
26702 char c[sizeof (long int)];
26705 return u.c[sizeof (long int) - 1] == 1;
26711 if ac_fn_c_try_run "$LINENO"; then :
26712 ac_cv_c_bigendian=no
26714 ac_cv_c_bigendian=yes
26716 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26717 conftest.$ac_objext conftest.beam conftest.$ac_ext
26722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
26723 $as_echo "$ac_cv_c_bigendian" >&6; }
26724 case $ac_cv_c_bigendian in #(
26727 $as_echo "#define HAVE_BIG_ENDIAN 1" >>confdefs.h
26731 $as_echo "#define HAVE_LITTLE_ENDIAN 1" >>confdefs.h
26735 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
26739 as_fn_error $? "unknown endianness
26740 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
26744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to get filesystem type" >&5
26745 $as_echo_n "checking how to get filesystem type... " >&6; }
26747 # The order of these tests is important.
26748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26749 /* end confdefs.h. */
26751 #include <sys/statvfs.h>
26752 #include <sys/fstyp.h>
26755 if ac_fn_c_try_cpp "$LINENO"; then :
26756 $as_echo "#define FSTYPE_STATVFS 1" >>confdefs.h
26760 rm -f conftest.err conftest.i conftest.$ac_ext
26761 if test $fstype = no; then
26762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26763 /* end confdefs.h. */
26765 #include <sys/statfs.h>
26766 #include <sys/fstyp.h>
26769 if ac_fn_c_try_cpp "$LINENO"; then :
26770 $as_echo "#define FSTYPE_USG_STATFS 1" >>confdefs.h
26774 rm -f conftest.err conftest.i conftest.$ac_ext
26776 if test $fstype = no; then
26777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26778 /* end confdefs.h. */
26780 #include <sys/statfs.h>
26781 #include <sys/vmount.h>
26784 if ac_fn_c_try_cpp "$LINENO"; then :
26785 $as_echo "#define FSTYPE_AIX_STATFS 1" >>confdefs.h
26789 rm -f conftest.err conftest.i conftest.$ac_ext
26791 if test $fstype = no; then
26792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26793 /* end confdefs.h. */
26795 #include <mntent.h>
26798 if ac_fn_c_try_cpp "$LINENO"; then :
26799 $as_echo "#define FSTYPE_MNTENT 1" >>confdefs.h
26803 rm -f conftest.err conftest.i conftest.$ac_ext
26805 if test $fstype = no; then
26806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26807 /* end confdefs.h. */
26808 #include <sys/mount.h>
26811 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26812 $EGREP "f_type;" >/dev/null 2>&1; then :
26813 $as_echo "#define FSTYPE_STATFS 1" >>confdefs.h
26819 if test $fstype = no; then
26820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26821 /* end confdefs.h. */
26823 #include <sys/mount.h>
26824 #include <sys/fs_types.h>
26827 if ac_fn_c_try_cpp "$LINENO"; then :
26828 $as_echo "#define FSTYPE_GETMNT 1" >>confdefs.h
26832 rm -f conftest.err conftest.i conftest.$ac_ext
26834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fstype" >&5
26835 $as_echo "$fstype" >&6; }
26837 ac_fn_c_check_header_mongrel "$LINENO" "sys/statvfs.h" "ac_cv_header_sys_statvfs_h" "$ac_includes_default"
26838 if test "x$ac_cv_header_sys_statvfs_h" = xyes; then :
26840 $as_echo "#define HAVE_SYS_STATVFS_H 1" >>confdefs.h
26846 ac_fn_c_check_decl "$LINENO" "O_CLOEXEC" "ac_cv_have_decl_O_CLOEXEC" "
26847 #ifdef HAVE_FCNTL_H
26848 # include <fcntl.h>
26852 if test "x$ac_cv_have_decl_O_CLOEXEC" = xyes; then :
26858 cat >>confdefs.h <<_ACEOF
26859 #define HAVE_DECL_O_CLOEXEC $ac_have_decl
26861 if test $ac_have_decl = 1; then :
26865 $as_echo "#define O_CLOEXEC 0" >>confdefs.h
26870 ac_fn_c_check_decl "$LINENO" "FD_CLOEXEC" "ac_cv_have_decl_FD_CLOEXEC" "
26871 #ifdef HAVE_FCNTL_H
26872 # include <fcntl.h>
26876 if test "x$ac_cv_have_decl_FD_CLOEXEC" = xyes; then :
26882 cat >>confdefs.h <<_ACEOF
26883 #define HAVE_DECL_FD_CLOEXEC $ac_have_decl
26885 if test $ac_have_decl = 1; then :
26889 $as_echo "#define FD_CLOEXEC 0" >>confdefs.h
26894 ac_fn_c_check_decl "$LINENO" "SOCK_CLOEXEC" "ac_cv_have_decl_SOCK_CLOEXEC" "
26895 #ifdef HAVE_SYS_SOCKET_H
26896 # include <sys/socket.h>
26900 if test "x$ac_cv_have_decl_SOCK_CLOEXEC" = xyes; then :
26906 cat >>confdefs.h <<_ACEOF
26907 #define HAVE_DECL_SOCK_CLOEXEC $ac_have_decl
26909 if test $ac_have_decl = 1; then :
26913 $as_echo "#define SOCK_CLOEXEC 0" >>confdefs.h
26918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for close on exec modifier for fopen()" >&5
26919 $as_echo_n "checking for close on exec modifier for fopen()... " >&6; }
26920 if ${ac_cv_feature_stream_cloexec_flag+:} false; then :
26921 $as_echo_n "(cached) " >&6
26923 if test $ac_cv_have_decl_O_CLOEXEC = yes ; then
26924 if test $ac_cv_have_decl_SOCK_CLOEXEC = yes ; then
26925 ac_cv_feature_stream_cloexec_flag="e"
26929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_feature_stream_cloexec_flag" >&5
26930 $as_echo "$ac_cv_feature_stream_cloexec_flag" >&6; }
26932 if test "x$ac_cv_feature_stream_cloexec_flag" = "xe" ; then
26934 $as_echo "#define HAVE_STREAM_CLOEXEC 0" >>confdefs.h
26939 cat >>confdefs.h <<_ACEOF
26940 #define STREAM_CLOEXEC "$ac_cv_feature_stream_cloexec_flag"
26944 ac_fn_c_check_func "$LINENO" "accept4" "ac_cv_func_accept4"
26945 if test "x$ac_cv_func_accept4" = xyes; then :
26947 $as_echo "#define HAVE_ACCEPT4 1" >>confdefs.h
26957 if test x$support_s3 = xyes; then
26959 # Check whether --with-s3 was given.
26960 if test "${with_s3+set}" = set; then :
26967 if test -f ${with_s3}/include/libs3.h; then
26968 S3_INC="-I${with_s3}/include"
26969 S3_LDFLAGS="-L${with_s3}/lib"
26970 with_s3="${with_s3}/include"
26972 with_s3="/usr/include"
26975 as_ac_Header=`$as_echo "ac_cv_header_${with_s3}/libs3.h" | $as_tr_sh`
26976 ac_fn_c_check_header_mongrel "$LINENO" "${with_s3}/libs3.h" "$as_ac_Header" "$ac_includes_default"
26977 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
26980 $as_echo "#define HAVE_LIBS3 1" >>confdefs.h
26982 S3_LIBS="${S3_LDFLAGS} -ls3"
26988 echo "libs3.h not found. s3 turned off ..."
27000 ac_fn_c_check_header_mongrel "$LINENO" "libs3.h" "ac_cv_header_libs3_h" "$ac_includes_default"
27001 if test "x$ac_cv_header_libs3_h" = xyes; then :
27003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for S3_initialize in -ls3" >&5
27004 $as_echo_n "checking for S3_initialize in -ls3... " >&6; }
27005 if ${ac_cv_lib_s3_S3_initialize+:} false; then :
27006 $as_echo_n "(cached) " >&6
27008 ac_check_lib_save_LIBS=$LIBS
27010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27011 /* end confdefs.h. */
27013 /* Override any GCC internal prototype to avoid an error.
27014 Use char because int might match the return type of a GCC
27015 builtin and then its argument prototype would still apply. */
27019 char S3_initialize ();
27023 return S3_initialize ();
27028 if ac_fn_c_try_link "$LINENO"; then :
27029 ac_cv_lib_s3_S3_initialize=yes
27031 ac_cv_lib_s3_S3_initialize=no
27033 rm -f core conftest.err conftest.$ac_objext \
27034 conftest$ac_exeext conftest.$ac_ext
27035 LIBS=$ac_check_lib_save_LIBS
27037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_s3_S3_initialize" >&5
27038 $as_echo "$ac_cv_lib_s3_S3_initialize" >&6; }
27039 if test "x$ac_cv_lib_s3_S3_initialize" = xyes; then :
27043 $as_echo "#define HAVE_LIBS3 1" >>confdefs.h
27062 ac_cpp='$CXXCPP $CPPFLAGS'
27063 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27064 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27065 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27067 for ac_func in backtrace
27069 ac_fn_cxx_check_func "$LINENO" "backtrace" "ac_cv_func_backtrace"
27070 if test "x$ac_cv_func_backtrace" = xyes; then :
27071 cat >>confdefs.h <<_ACEOF
27072 #define HAVE_BACKTRACE 1
27079 ac_cpp='$CPP $CPPFLAGS'
27080 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27081 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27082 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
27086 $as_echo_n "checking return type of signal handlers... " >&6; }
27087 if ${ac_cv_type_signal+:} false; then :
27088 $as_echo_n "(cached) " >&6
27090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27091 /* end confdefs.h. */
27092 #include <sys/types.h>
27093 #include <signal.h>
27098 return *(signal (0, 0)) (0) == 1;
27103 if ac_fn_c_try_compile "$LINENO"; then :
27104 ac_cv_type_signal=int
27106 ac_cv_type_signal=void
27108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
27111 $as_echo "$ac_cv_type_signal" >&6; }
27113 cat >>confdefs.h <<_ACEOF
27114 #define RETSIGTYPE $ac_cv_type_signal
27119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type of signal functions" >&5
27120 $as_echo_n "checking for type of signal functions... " >&6; }
27121 if ${bash_cv_signal_vintage+:} false; then :
27122 $as_echo_n "(cached) " >&6
27125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27126 /* end confdefs.h. */
27127 #include <signal.h>
27133 struct sigaction sa;
27134 sigemptyset(&ss); sigsuspend(&ss);
27135 sigaction(SIGINT, &sa, (struct sigaction *) 0);
27136 sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
27142 if ac_fn_c_try_link "$LINENO"; then :
27143 bash_cv_signal_vintage="posix"
27146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27147 /* end confdefs.h. */
27148 #include <signal.h>
27153 int mask = sigmask(SIGINT);
27154 sigsetmask(mask); sigblock(mask); sigpause(mask);
27160 if ac_fn_c_try_link "$LINENO"; then :
27161 bash_cv_signal_vintage="4.2bsd"
27164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27165 /* end confdefs.h. */
27167 #include <signal.h>
27168 RETSIGTYPE foo() { }
27173 int mask = sigmask(SIGINT);
27174 sigset(SIGINT, foo); sigrelse(SIGINT);
27175 sighold(SIGINT); sigpause(SIGINT);
27181 if ac_fn_c_try_link "$LINENO"; then :
27182 bash_cv_signal_vintage="svr3"
27184 bash_cv_signal_vintage="v7"
27187 rm -f core conftest.err conftest.$ac_objext \
27188 conftest$ac_exeext conftest.$ac_ext
27191 rm -f core conftest.err conftest.$ac_objext \
27192 conftest$ac_exeext conftest.$ac_ext
27195 rm -f core conftest.err conftest.$ac_objext \
27196 conftest$ac_exeext conftest.$ac_ext
27200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_signal_vintage" >&5
27201 $as_echo "$bash_cv_signal_vintage" >&6; }
27202 if test "$bash_cv_signal_vintage" = "posix"; then
27203 $as_echo "#define HAVE_POSIX_SIGNALS 1" >>confdefs.h
27205 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
27206 $as_echo "#define HAVE_BSD_SIGNALS 1" >>confdefs.h
27208 elif test "$bash_cv_signal_vintage" = "svr3"; then
27209 $as_echo "#define HAVE_USG_SIGHOLD 1" >>confdefs.h
27213 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
27214 if test "x$ac_cv_type_mode_t" = xyes; then :
27218 cat >>confdefs.h <<_ACEOF
27224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
27225 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
27226 if ${ac_cv_type_uid_t+:} false; then :
27227 $as_echo_n "(cached) " >&6
27229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27230 /* end confdefs.h. */
27231 #include <sys/types.h>
27234 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27235 $EGREP "uid_t" >/dev/null 2>&1; then :
27236 ac_cv_type_uid_t=yes
27238 ac_cv_type_uid_t=no
27243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
27244 $as_echo "$ac_cv_type_uid_t" >&6; }
27245 if test $ac_cv_type_uid_t = no; then
27247 $as_echo "#define uid_t int" >>confdefs.h
27250 $as_echo "#define gid_t int" >>confdefs.h
27254 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
27255 if test "x$ac_cv_type_size_t" = xyes; then :
27259 cat >>confdefs.h <<_ACEOF
27260 #define size_t unsigned int
27265 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
27266 if test "x$ac_cv_type_pid_t" = xyes; then :
27270 cat >>confdefs.h <<_ACEOF
27276 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
27277 if test "x$ac_cv_type_off_t" = xyes; then :
27281 cat >>confdefs.h <<_ACEOF
27282 #define off_t long int
27288 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
27289 if test "x$ac_cv_type_intptr_t" = xyes; then :
27291 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
27294 for ac_type in 'int' 'long int' 'long long int'; do
27295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27296 /* end confdefs.h. */
27297 $ac_includes_default
27301 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
27302 test_array [0] = 0;
27303 return test_array [0];
27309 if ac_fn_c_try_compile "$LINENO"; then :
27311 cat >>confdefs.h <<_ACEOF
27312 #define intptr_t $ac_type
27317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27318 test -z "$ac_type" && break
27324 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
27325 if test "x$ac_cv_type_uintptr_t" = xyes; then :
27327 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
27330 for ac_type in 'unsigned int' 'unsigned long int' \
27331 'unsigned long long int'; do
27332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27333 /* end confdefs.h. */
27334 $ac_includes_default
27338 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
27339 test_array [0] = 0;
27340 return test_array [0];
27346 if ac_fn_c_try_compile "$LINENO"; then :
27348 cat >>confdefs.h <<_ACEOF
27349 #define uintptr_t $ac_type
27354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27355 test -z "$ac_type" && break
27360 ac_fn_c_check_type "$LINENO" "ino_t" "ac_cv_type_ino_t" "$ac_includes_default"
27361 if test "x$ac_cv_type_ino_t" = xyes; then :
27365 cat >>confdefs.h <<_ACEOF
27366 #define ino_t unsigned long
27371 ac_fn_c_check_type "$LINENO" "dev_t" "ac_cv_type_dev_t" "$ac_includes_default"
27372 if test "x$ac_cv_type_dev_t" = xyes; then :
27376 cat >>confdefs.h <<_ACEOF
27377 #define dev_t unsigned long
27382 ac_fn_c_check_type "$LINENO" "daddr_t" "ac_cv_type_daddr_t" "$ac_includes_default"
27383 if test "x$ac_cv_type_daddr_t" = xyes; then :
27387 cat >>confdefs.h <<_ACEOF
27388 #define daddr_t long
27393 ac_fn_c_check_type "$LINENO" "major_t" "ac_cv_type_major_t" "$ac_includes_default"
27394 if test "x$ac_cv_type_major_t" = xyes; then :
27398 cat >>confdefs.h <<_ACEOF
27399 #define major_t int
27404 ac_fn_c_check_type "$LINENO" "minor_t" "ac_cv_type_minor_t" "$ac_includes_default"
27405 if test "x$ac_cv_type_minor_t" = xyes; then :
27409 cat >>confdefs.h <<_ACEOF
27410 #define minor_t int
27415 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
27416 if test "x$ac_cv_type_ssize_t" = xyes; then :
27420 cat >>confdefs.h <<_ACEOF
27421 #define ssize_t int
27426 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
27427 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
27429 cat >>confdefs.h <<_ACEOF
27430 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
27434 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
27437 case " $LIBOBJS " in
27438 *" fileblocks.$ac_objext "* ) ;;
27439 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
27446 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
27447 if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
27449 cat >>confdefs.h <<_ACEOF
27450 #define HAVE_STRUCT_STAT_ST_RDEV 1
27454 $as_echo "#define HAVE_ST_RDEV 1" >>confdefs.h
27459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
27460 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
27461 if ${ac_cv_struct_tm+:} false; then :
27462 $as_echo_n "(cached) " >&6
27464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27465 /* end confdefs.h. */
27466 #include <sys/types.h>
27473 int *p = &tm.tm_sec;
27479 if ac_fn_c_try_compile "$LINENO"; then :
27480 ac_cv_struct_tm=time.h
27482 ac_cv_struct_tm=sys/time.h
27484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
27487 $as_echo "$ac_cv_struct_tm" >&6; }
27488 if test $ac_cv_struct_tm = sys/time.h; then
27490 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
27494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
27495 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
27496 if ${ac_cv_c_const+:} false; then :
27497 $as_echo_n "(cached) " >&6
27499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27500 /* end confdefs.h. */
27506 #ifndef __cplusplus
27507 /* Ultrix mips cc rejects this sort of thing. */
27508 typedef int charset[2];
27509 const charset cs = { 0, 0 };
27510 /* SunOS 4.1.1 cc rejects this. */
27511 char const *const *pcpcc;
27513 /* NEC SVR4.0.2 mips cc rejects this. */
27514 struct point {int x, y;};
27515 static struct point const zero = {0,0};
27516 /* AIX XL C 1.02.0.0 rejects this.
27517 It does not let you subtract one const X* pointer from another in
27518 an arm of an if-expression whose if-part is not a constant
27520 const char *g = "string";
27521 pcpcc = &g + (g ? g-g : 0);
27522 /* HPUX 7.0 cc rejects these. */
27524 ppc = (char**) pcpcc;
27525 pcpcc = (char const *const *) ppc;
27526 { /* SCO 3.2v4 cc rejects this sort of thing. */
27529 char const *s = 0 ? (char *) 0 : (char const *) 0;
27534 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
27535 int x[] = {25, 17};
27536 const int *foo = &x[0];
27539 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
27540 typedef const int *iptr;
27544 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
27545 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
27546 struct s { int j; const int *ap[3]; } bx;
27547 struct s *b = &bx; b->j = 5;
27549 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
27550 const int foo = 10;
27551 if (!foo) return 0;
27553 return !cs[0] && !zero.x;
27560 if ac_fn_c_try_compile "$LINENO"; then :
27565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
27568 $as_echo "$ac_cv_c_const" >&6; }
27569 if test $ac_cv_c_const = no; then
27571 $as_echo "#define const /**/" >>confdefs.h
27575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
27576 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
27577 if ${ac_cv_c_restrict+:} false; then :
27578 $as_echo_n "(cached) " >&6
27580 ac_cv_c_restrict=no
27581 # The order here caters to the fact that C++ does not require restrict.
27582 for ac_kw in __restrict __restrict__ _Restrict restrict; do
27583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27584 /* end confdefs.h. */
27585 typedef int * int_ptr;
27586 int foo (int_ptr $ac_kw ip) {
27593 int * $ac_kw t = s;
27600 if ac_fn_c_try_compile "$LINENO"; then :
27601 ac_cv_c_restrict=$ac_kw
27603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27604 test "$ac_cv_c_restrict" != no && break
27608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
27609 $as_echo "$ac_cv_c_restrict" >&6; }
27611 case $ac_cv_c_restrict in
27613 no) $as_echo "#define restrict /**/" >>confdefs.h
27615 *) cat >>confdefs.h <<_ACEOF
27616 #define restrict $ac_cv_c_restrict
27622 # The cast to long int works around a bug in the HP C Compiler
27623 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27624 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27625 # This bug is HP SR number 8606223364.
27626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
27627 $as_echo_n "checking size of char... " >&6; }
27628 if ${ac_cv_sizeof_char+:} false; then :
27629 $as_echo_n "(cached) " >&6
27631 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
27634 if test "$ac_cv_type_char" = yes; then
27635 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27636 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27637 as_fn_error 77 "cannot compute sizeof (char)
27638 See \`config.log' for more details" "$LINENO" 5; }
27640 ac_cv_sizeof_char=0
27645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
27646 $as_echo "$ac_cv_sizeof_char" >&6; }
27650 cat >>confdefs.h <<_ACEOF
27651 #define SIZEOF_CHAR $ac_cv_sizeof_char
27655 # The cast to long int works around a bug in the HP C Compiler
27656 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27657 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27658 # This bug is HP SR number 8606223364.
27659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short int" >&5
27660 $as_echo_n "checking size of short int... " >&6; }
27661 if ${ac_cv_sizeof_short_int+:} false; then :
27662 $as_echo_n "(cached) " >&6
27664 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short int))" "ac_cv_sizeof_short_int" "$ac_includes_default"; then :
27667 if test "$ac_cv_type_short_int" = yes; then
27668 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27669 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27670 as_fn_error 77 "cannot compute sizeof (short int)
27671 See \`config.log' for more details" "$LINENO" 5; }
27673 ac_cv_sizeof_short_int=0
27678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short_int" >&5
27679 $as_echo "$ac_cv_sizeof_short_int" >&6; }
27683 cat >>confdefs.h <<_ACEOF
27684 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
27688 # The cast to long int works around a bug in the HP C Compiler
27689 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27690 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27691 # This bug is HP SR number 8606223364.
27692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
27693 $as_echo_n "checking size of int... " >&6; }
27694 if ${ac_cv_sizeof_int+:} false; then :
27695 $as_echo_n "(cached) " >&6
27697 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
27700 if test "$ac_cv_type_int" = yes; then
27701 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27702 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27703 as_fn_error 77 "cannot compute sizeof (int)
27704 See \`config.log' for more details" "$LINENO" 5; }
27711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
27712 $as_echo "$ac_cv_sizeof_int" >&6; }
27716 cat >>confdefs.h <<_ACEOF
27717 #define SIZEOF_INT $ac_cv_sizeof_int
27721 # The cast to long int works around a bug in the HP C Compiler
27722 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27723 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27724 # This bug is HP SR number 8606223364.
27725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long int" >&5
27726 $as_echo_n "checking size of long int... " >&6; }
27727 if ${ac_cv_sizeof_long_int+:} false; then :
27728 $as_echo_n "(cached) " >&6
27730 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long int))" "ac_cv_sizeof_long_int" "$ac_includes_default"; then :
27733 if test "$ac_cv_type_long_int" = yes; then
27734 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27735 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27736 as_fn_error 77 "cannot compute sizeof (long int)
27737 See \`config.log' for more details" "$LINENO" 5; }
27739 ac_cv_sizeof_long_int=0
27744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_int" >&5
27745 $as_echo "$ac_cv_sizeof_long_int" >&6; }
27749 cat >>confdefs.h <<_ACEOF
27750 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
27754 # The cast to long int works around a bug in the HP C Compiler
27755 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27756 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27757 # This bug is HP SR number 8606223364.
27758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long int" >&5
27759 $as_echo_n "checking size of long long int... " >&6; }
27760 if ${ac_cv_sizeof_long_long_int+:} false; then :
27761 $as_echo_n "(cached) " >&6
27763 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long int))" "ac_cv_sizeof_long_long_int" "$ac_includes_default"; then :
27766 if test "$ac_cv_type_long_long_int" = yes; then
27767 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27768 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27769 as_fn_error 77 "cannot compute sizeof (long long int)
27770 See \`config.log' for more details" "$LINENO" 5; }
27772 ac_cv_sizeof_long_long_int=0
27777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long_int" >&5
27778 $as_echo "$ac_cv_sizeof_long_long_int" >&6; }
27782 cat >>confdefs.h <<_ACEOF
27783 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
27787 # The cast to long int works around a bug in the HP C Compiler
27788 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27789 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27790 # This bug is HP SR number 8606223364.
27791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int *" >&5
27792 $as_echo_n "checking size of int *... " >&6; }
27793 if ${ac_cv_sizeof_int_p+:} false; then :
27794 $as_echo_n "(cached) " >&6
27796 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int *))" "ac_cv_sizeof_int_p" "$ac_includes_default"; then :
27799 if test "$ac_cv_type_int_p" = yes; then
27800 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27801 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27802 as_fn_error 77 "cannot compute sizeof (int *)
27803 See \`config.log' for more details" "$LINENO" 5; }
27805 ac_cv_sizeof_int_p=0
27810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int_p" >&5
27811 $as_echo "$ac_cv_sizeof_int_p" >&6; }
27815 cat >>confdefs.h <<_ACEOF
27816 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
27821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int type" >&5
27822 $as_echo_n "checking for u_int type... " >&6; }
27823 if ${ac_cv_have_u_int+:} false; then :
27824 $as_echo_n "(cached) " >&6
27827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27828 /* end confdefs.h. */
27830 #include <sys/types.h>
27842 if ac_fn_c_try_compile "$LINENO"; then :
27844 ac_cv_have_u_int="yes"
27848 ac_cv_have_u_int="no"
27852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_int" >&5
27857 $as_echo "$ac_cv_have_u_int" >&6; }
27858 if test "x$ac_cv_have_u_int" = "xyes" ; then
27859 $as_echo "#define HAVE_U_INT 1" >>confdefs.h
27864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t type" >&5
27865 $as_echo_n "checking for intmax_t type... " >&6; }
27866 if ${ac_cv_have_intmax_t+:} false; then :
27867 $as_echo_n "(cached) " >&6
27870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27871 /* end confdefs.h. */
27873 #include <sys/types.h>
27885 if ac_fn_c_try_compile "$LINENO"; then :
27887 ac_cv_have_intmax_t="yes"
27891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27892 /* end confdefs.h. */
27894 #include <stdint.h>
27906 if ac_fn_c_try_compile "$LINENO"; then :
27908 ac_cv_have_intmax_t="yes"
27912 ac_cv_have_intmax_t="no"
27916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_intmax_t" >&5
27925 $as_echo "$ac_cv_have_intmax_t" >&6; }
27926 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
27927 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
27932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_intmax_t type" >&5
27933 $as_echo_n "checking for u_intmax_t type... " >&6; }
27934 if ${ac_cv_have_u_intmax_t+:} false; then :
27935 $as_echo_n "(cached) " >&6
27938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27939 /* end confdefs.h. */
27941 #include <sys/types.h>
27947 u_intmax_t a; a = 1;
27953 if ac_fn_c_try_compile "$LINENO"; then :
27955 ac_cv_have_u_intmax_t="yes"
27959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27960 /* end confdefs.h. */
27962 #include <stdint.h>
27968 u_intmax_t a; a = 1;
27974 if ac_fn_c_try_compile "$LINENO"; then :
27976 ac_cv_have_u_intmax_t="yes"
27980 ac_cv_have_u_intmax_t="no"
27984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_intmax_t" >&5
27993 $as_echo "$ac_cv_have_u_intmax_t" >&6; }
27994 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
27995 $as_echo "#define HAVE_U_INTMAX_T 1" >>confdefs.h
28000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intXX_t types" >&5
28001 $as_echo_n "checking for intXX_t types... " >&6; }
28002 if ${ac_cv_have_intxx_t+:} false; then :
28003 $as_echo_n "(cached) " >&6
28006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28007 /* end confdefs.h. */
28009 #include <sys/types.h>
28015 int8_t a; int16_t b; int32_t c; a = b = c = 1;
28021 if ac_fn_c_try_compile "$LINENO"; then :
28023 ac_cv_have_intxx_t="yes"
28027 ac_cv_have_intxx_t="no"
28031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_intxx_t" >&5
28036 $as_echo "$ac_cv_have_intxx_t" >&6; }
28037 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
28038 $as_echo "#define HAVE_INTXX_T 1" >>confdefs.h
28043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t type" >&5
28044 $as_echo_n "checking for int64_t type... " >&6; }
28045 if ${ac_cv_have_int64_t+:} false; then :
28046 $as_echo_n "(cached) " >&6
28049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28050 /* end confdefs.h. */
28052 #include <sys/types.h>
28064 if ac_fn_c_try_compile "$LINENO"; then :
28066 ac_cv_have_int64_t="yes"
28070 ac_cv_have_int64_t="no"
28074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_int64_t" >&5
28079 $as_echo "$ac_cv_have_int64_t" >&6; }
28080 if test "x$ac_cv_have_int64_t" = "xyes" ; then
28081 $as_echo "#define HAVE_INT64_T 1" >>confdefs.h
28086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_intXX_t types" >&5
28087 $as_echo_n "checking for u_intXX_t types... " >&6; }
28088 if ${ac_cv_have_u_intxx_t+:} false; then :
28089 $as_echo_n "(cached) " >&6
28092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28093 /* end confdefs.h. */
28095 #include <sys/types.h>
28101 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
28107 if ac_fn_c_try_compile "$LINENO"; then :
28109 ac_cv_have_u_intxx_t="yes"
28113 ac_cv_have_u_intxx_t="no"
28117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_intxx_t" >&5
28122 $as_echo "$ac_cv_have_u_intxx_t" >&6; }
28123 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
28124 $as_echo "#define HAVE_U_INTXX_T 1" >>confdefs.h
28129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int64_t types" >&5
28130 $as_echo_n "checking for u_int64_t types... " >&6; }
28131 if ${ac_cv_have_u_int64_t+:} false; then :
28132 $as_echo_n "(cached) " >&6
28135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28136 /* end confdefs.h. */
28138 #include <sys/types.h>
28144 u_int64_t a; a = 1;
28150 if ac_fn_c_try_compile "$LINENO"; then :
28152 ac_cv_have_u_int64_t="yes"
28156 ac_cv_have_u_int64_t="no"
28160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_int64_t" >&5
28165 $as_echo "$ac_cv_have_u_int64_t" >&6; }
28166 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
28167 $as_echo "#define HAVE_U_INT64_T 1" >>confdefs.h
28172 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
28173 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
28175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
28176 $as_echo_n "checking for intXX_t and u_intXX_t types in sys/bitypes.h... " >&6; }
28177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28178 /* end confdefs.h. */
28180 #include <sys/bitypes.h>
28186 int8_t a; int16_t b; int32_t c;
28187 u_int8_t e; u_int16_t f; u_int32_t g;
28188 a = b = c = e = f = g = 1;
28194 if ac_fn_c_try_compile "$LINENO"; then :
28196 $as_echo "#define HAVE_U_INTXX_T 1" >>confdefs.h
28198 $as_echo "#define HAVE_INTXX_T 1" >>confdefs.h
28200 $as_echo "#define HAVE_SYS_BITYPES_H 1" >>confdefs.h
28202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28203 $as_echo "yes" >&6; }
28207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28208 $as_echo "no" >&6; }
28212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28215 if test -z "$have_u_intxx_t" ; then
28216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uintXX_t types" >&5
28217 $as_echo_n "checking for uintXX_t types... " >&6; }
28218 if ${ac_cv_have_uintxx_t+:} false; then :
28219 $as_echo_n "(cached) " >&6
28222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28223 /* end confdefs.h. */
28225 #include <sys/types.h>
28231 uint8_t a; uint16_t b;
28232 uint32_t c; a = b = c = 1;
28238 if ac_fn_c_try_compile "$LINENO"; then :
28240 ac_cv_have_uintxx_t="yes"
28244 ac_cv_have_uintxx_t="no"
28248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_uintxx_t" >&5
28253 $as_echo "$ac_cv_have_uintxx_t" >&6; }
28254 if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
28255 $as_echo "#define HAVE_UINTXX_T 1" >>confdefs.h
28260 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
28261 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
28263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
28264 $as_echo_n "checking for int64_t and u_int64_t types in sys/bitypes.h... " >&6; }
28265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28266 /* end confdefs.h. */
28268 #include <sys/bitypes.h>
28274 int64_t a; u_int64_t b;
28281 if ac_fn_c_try_compile "$LINENO"; then :
28283 $as_echo "#define HAVE_U_INT64_T 1" >>confdefs.h
28285 $as_echo "#define HAVE_INT64_T 1" >>confdefs.h
28287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28288 $as_echo "yes" >&6; }
28292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28293 $as_echo "no" >&6; }
28297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28300 if (test -z "$have_uintxx_t" && \
28301 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
28303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uintXX_t types in sys/bitypes.h" >&5
28304 $as_echo_n "checking for uintXX_t types in sys/bitypes.h... " >&6; }
28305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28306 /* end confdefs.h. */
28308 #include <sys/bitypes.h>
28314 uint8_t a; uint16_t b;
28315 uint32_t c; a = b = c = 1;
28321 if ac_fn_c_try_compile "$LINENO"; then :
28323 $as_echo "#define HAVE_UINTXX_T 1" >>confdefs.h
28325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28326 $as_echo "yes" >&6; }
28330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28331 $as_echo "no" >&6; }
28335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28354 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28355 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28356 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
28357 cat >>confdefs.h <<_ACEOF
28358 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28362 echo 'configure: cannot find needed function.'; exit 1
28368 ac_fn_c_check_decl "$LINENO" "F_CLOSEM" "ac_cv_have_decl_F_CLOSEM" "#include <fcntl.h>
28371 if test "x$ac_cv_have_decl_F_CLOSEM" = xyes; then :
28373 $as_echo "#define HAVE_FCNTL_F_CLOSEM 1" >>confdefs.h
28378 ac_fn_c_check_decl "$LINENO" "F_SETLK" "ac_cv_have_decl_F_SETLK" "#include <fcntl.h>
28381 if test "x$ac_cv_have_decl_F_SETLK" = xyes; then :
28383 $as_echo "#define HAVE_FCNTL_LOCK 1" >>confdefs.h
28388 ac_fn_c_check_func "$LINENO" "closefrom" "ac_cv_func_closefrom"
28389 if test "x$ac_cv_func_closefrom" = xyes; then :
28391 $as_echo "#define HAVE_CLOSEFROM 1" >>confdefs.h
28395 for ac_func in getpagesize
28397 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
28398 if test "x$ac_cv_func_getpagesize" = xyes; then :
28399 cat >>confdefs.h <<_ACEOF
28400 #define HAVE_GETPAGESIZE 1
28403 $as_echo "#define HAVE_GETPAGESIZE 1" >>confdefs.h
28408 for ac_func in malloc_trim
28410 ac_fn_c_check_func "$LINENO" "malloc_trim" "ac_cv_func_malloc_trim"
28411 if test "x$ac_cv_func_malloc_trim" = xyes; then :
28412 cat >>confdefs.h <<_ACEOF
28413 #define HAVE_MALLOC_TRIM 1
28416 $as_echo "#define HAVE_MALLOC_TRIM 1" >>confdefs.h
28422 for ac_func in fchdir
28424 ac_fn_c_check_func "$LINENO" "fchdir" "ac_cv_func_fchdir"
28425 if test "x$ac_cv_func_fchdir" = xyes; then :
28426 cat >>confdefs.h <<_ACEOF
28427 #define HAVE_FCHDIR 1
28429 $as_echo "#define HAVE_FCHDIR 1" >>confdefs.h
28434 for ac_func in strtoll
28436 ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll"
28437 if test "x$ac_cv_func_strtoll" = xyes; then :
28438 cat >>confdefs.h <<_ACEOF
28439 #define HAVE_STRTOLL 1
28441 $as_echo "#define HAVE_STRTOLL 1" >>confdefs.h
28446 for ac_func in posix_fadvise
28448 ac_fn_c_check_func "$LINENO" "posix_fadvise" "ac_cv_func_posix_fadvise"
28449 if test "x$ac_cv_func_posix_fadvise" = xyes; then :
28450 cat >>confdefs.h <<_ACEOF
28451 #define HAVE_POSIX_FADVISE 1
28457 for ac_func in posix_fallocate
28459 ac_fn_c_check_func "$LINENO" "posix_fallocate" "ac_cv_func_posix_fallocate"
28460 if test "x$ac_cv_func_posix_fallocate" = xyes; then :
28461 cat >>confdefs.h <<_ACEOF
28462 #define HAVE_POSIX_FALLOCATE 1
28468 for ac_func in fdatasync
28470 ac_fn_c_check_func "$LINENO" "fdatasync" "ac_cv_func_fdatasync"
28471 if test "x$ac_cv_func_fdatasync" = xyes; then :
28472 cat >>confdefs.h <<_ACEOF
28473 #define HAVE_FDATASYNC 1
28480 for ac_func in chflags
28482 ac_fn_c_check_func "$LINENO" "chflags" "ac_cv_func_chflags"
28483 if test "x$ac_cv_func_chflags" = xyes; then :
28484 cat >>confdefs.h <<_ACEOF
28485 #define HAVE_CHFLAGS 1
28492 for ac_func in snprintf vsnprintf gethostid fseeko
28494 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28495 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28496 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
28497 cat >>confdefs.h <<_ACEOF
28498 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
28506 $as_echo_n "checking for va_copy... " >&6; }
28507 if ${ba_cv_va_copy+:} false; then :
28508 $as_echo_n "(cached) " >&6
28511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28512 /* end confdefs.h. */
28514 #include <stdarg.h>
28515 void use_va_copy(va_list args){va_list args2; va_copy(args2,args); va_end(args2);}
28516 void call_use_va_copy(int junk,...){va_list args; va_start(args,junk); use_va_copy(args); va_end(args);}
28522 call_use_va_copy(1,2,3)
28528 if ac_fn_c_try_link "$LINENO"; then :
28538 rm -f core conftest.err conftest.$ac_objext \
28539 conftest$ac_exeext conftest.$ac_ext
28543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_va_copy" >&5
28544 $as_echo "$ba_cv_va_copy" >&6; }
28545 test $ba_cv_va_copy = yes &&
28546 $as_echo "#define HAVE_VA_COPY 1" >>confdefs.h
28549 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
28551 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28552 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28553 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
28554 cat >>confdefs.h <<_ACEOF
28555 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28562 # If resolver functions are not in libc check for -lnsl or -lresolv.
28563 ac_fn_c_check_func "$LINENO" "gethostbyname_r" "ac_cv_func_gethostbyname_r"
28564 if test "x$ac_cv_func_gethostbyname_r" = xyes; then :
28565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using libc's resolver" >&5
28566 $as_echo "using libc's resolver" >&6; }
28568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname_r in -lnsl" >&5
28569 $as_echo_n "checking for gethostbyname_r in -lnsl... " >&6; }
28570 if ${ac_cv_lib_nsl_gethostbyname_r+:} false; then :
28571 $as_echo_n "(cached) " >&6
28573 ac_check_lib_save_LIBS=$LIBS
28575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28576 /* end confdefs.h. */
28578 /* Override any GCC internal prototype to avoid an error.
28579 Use char because int might match the return type of a GCC
28580 builtin and then its argument prototype would still apply. */
28584 char gethostbyname_r ();
28588 return gethostbyname_r ();
28593 if ac_fn_c_try_link "$LINENO"; then :
28594 ac_cv_lib_nsl_gethostbyname_r=yes
28596 ac_cv_lib_nsl_gethostbyname_r=no
28598 rm -f core conftest.err conftest.$ac_objext \
28599 conftest$ac_exeext conftest.$ac_ext
28600 LIBS=$ac_check_lib_save_LIBS
28602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
28603 $as_echo "$ac_cv_lib_nsl_gethostbyname_r" >&6; }
28604 if test "x$ac_cv_lib_nsl_gethostbyname_r" = xyes; then :
28605 cat >>confdefs.h <<_ACEOF
28606 #define HAVE_LIBNSL 1
28613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname_r in -lresolv" >&5
28614 $as_echo_n "checking for gethostbyname_r in -lresolv... " >&6; }
28615 if ${ac_cv_lib_resolv_gethostbyname_r+:} false; then :
28616 $as_echo_n "(cached) " >&6
28618 ac_check_lib_save_LIBS=$LIBS
28619 LIBS="-lresolv $LIBS"
28620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28621 /* end confdefs.h. */
28623 /* Override any GCC internal prototype to avoid an error.
28624 Use char because int might match the return type of a GCC
28625 builtin and then its argument prototype would still apply. */
28629 char gethostbyname_r ();
28633 return gethostbyname_r ();
28638 if ac_fn_c_try_link "$LINENO"; then :
28639 ac_cv_lib_resolv_gethostbyname_r=yes
28641 ac_cv_lib_resolv_gethostbyname_r=no
28643 rm -f core conftest.err conftest.$ac_objext \
28644 conftest$ac_exeext conftest.$ac_ext
28645 LIBS=$ac_check_lib_save_LIBS
28647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
28648 $as_echo "$ac_cv_lib_resolv_gethostbyname_r" >&6; }
28649 if test "x$ac_cv_lib_resolv_gethostbyname_r" = xyes; then :
28650 cat >>confdefs.h <<_ACEOF
28651 #define HAVE_LIBRESOLV 1
28654 LIBS="-lresolv $LIBS"
28661 for ac_func in inet_pton
28663 ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton"
28664 if test "x$ac_cv_func_inet_pton" = xyes; then :
28665 cat >>confdefs.h <<_ACEOF
28666 #define HAVE_INET_PTON 1
28668 $as_echo "#define HAVE_INET_PTON 1" >>confdefs.h
28673 for ac_func in inet_ntop
28675 ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
28676 if test "x$ac_cv_func_inet_ntop" = xyes; then :
28677 cat >>confdefs.h <<_ACEOF
28678 #define HAVE_INET_NTOP 1
28680 $as_echo "#define HAVE_INET_NTOP 1" >>confdefs.h
28685 for ac_func in gethostbyname2
28687 ac_fn_c_check_func "$LINENO" "gethostbyname2" "ac_cv_func_gethostbyname2"
28688 if test "x$ac_cv_func_gethostbyname2" = xyes; then :
28689 cat >>confdefs.h <<_ACEOF
28690 #define HAVE_GETHOSTBYNAME2 1
28692 $as_echo "#define HAVE_GETHOSTBYNAME2 1" >>confdefs.h
28697 for ac_func in getnameinfo
28699 ac_fn_c_check_func "$LINENO" "getnameinfo" "ac_cv_func_getnameinfo"
28700 if test "x$ac_cv_func_getnameinfo" = xyes; then :
28701 cat >>confdefs.h <<_ACEOF
28702 #define HAVE_GETNAMEINFO 1
28704 $as_echo "#define HAVE_GETNAMEINFO 1" >>confdefs.h
28711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr has a sa_len field" >&5
28712 $as_echo_n "checking for struct sockaddr has a sa_len field... " >&6; }
28713 if ${ac_cv_struct_sockaddr_sa_len+:} false; then :
28714 $as_echo_n "(cached) " >&6
28717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28718 /* end confdefs.h. */
28720 #include <sys/socket.h>
28726 struct sockaddr s; s.sa_len;
28732 if ac_fn_c_try_compile "$LINENO"; then :
28734 ac_cv_struct_sockaddr_sa_len=yes
28737 ac_cv_struct_sockaddr_sa_len=no
28741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_sockaddr_sa_len" >&5
28746 $as_echo "$ac_cv_struct_sockaddr_sa_len" >&6; }
28748 if test $ac_cv_struct_sockaddr_sa_len = yes; then
28750 $as_echo "#define HAVE_SA_LEN 1" >>confdefs.h
28754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getaddrinfo" >&5
28755 $as_echo_n "checking for working getaddrinfo... " >&6; }
28756 if ${ac_cv_working_getaddrinfo+:} false; then :
28757 $as_echo_n "(cached) " >&6
28760 if test "$cross_compiling" = yes; then :
28762 ac_cv_working_getaddrinfo="yes"
28766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28767 /* end confdefs.h. */
28770 #include <string.h>
28771 #include <sys/types.h>
28772 #include <sys/socket.h>
28775 struct addrinfo hints, *ai;
28778 memset(&hints, 0, sizeof(hints));
28779 hints.ai_family = AF_UNSPEC;
28780 hints.ai_socktype = SOCK_STREAM;
28781 error = getaddrinfo("127.0.0.1", NULL, &hints, &ai);
28785 if (ai->ai_addr->sa_family != AF_INET) {
28792 if ac_fn_c_try_run "$LINENO"; then :
28794 ac_cv_working_getaddrinfo="yes"
28798 ac_cv_working_getaddrinfo="no"
28801 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28802 conftest.$ac_objext conftest.beam conftest.$ac_ext
28808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_getaddrinfo" >&5
28809 $as_echo "$ac_cv_working_getaddrinfo" >&6; }
28810 ac_fn_c_check_func "$LINENO" "gai_strerror" "ac_cv_func_gai_strerror"
28811 if test "x$ac_cv_func_gai_strerror" = xyes; then :
28813 $as_echo "#define HAVE_GAI_STRERROR 1" >>confdefs.h
28818 if test "$ac_cv_working_getaddrinfo" = "yes"; then
28819 if test "$ac_cv_func_gai_strerror" != "yes"; then
28820 ac_cv_working_getaddrinfo="no"
28823 $as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h
28828 for ac_func in strftime
28830 ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
28831 if test "x$ac_cv_func_strftime" = xyes; then :
28832 cat >>confdefs.h <<_ACEOF
28833 #define HAVE_STRFTIME 1
28837 # strftime is in -lintl on SCO UNIX.
28838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
28839 $as_echo_n "checking for strftime in -lintl... " >&6; }
28840 if ${ac_cv_lib_intl_strftime+:} false; then :
28841 $as_echo_n "(cached) " >&6
28843 ac_check_lib_save_LIBS=$LIBS
28844 LIBS="-lintl $LIBS"
28845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28846 /* end confdefs.h. */
28848 /* Override any GCC internal prototype to avoid an error.
28849 Use char because int might match the return type of a GCC
28850 builtin and then its argument prototype would still apply. */
28858 return strftime ();
28863 if ac_fn_c_try_link "$LINENO"; then :
28864 ac_cv_lib_intl_strftime=yes
28866 ac_cv_lib_intl_strftime=no
28868 rm -f core conftest.err conftest.$ac_objext \
28869 conftest$ac_exeext conftest.$ac_ext
28870 LIBS=$ac_check_lib_save_LIBS
28872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
28873 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
28874 if test "x$ac_cv_lib_intl_strftime" = xyes; then :
28875 $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
28877 LIBS="-lintl $LIBS"
28883 for ac_func in vprintf
28885 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
28886 if test "x$ac_cv_func_vprintf" = xyes; then :
28887 cat >>confdefs.h <<_ACEOF
28888 #define HAVE_VPRINTF 1
28891 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
28892 if test "x$ac_cv_func__doprnt" = xyes; then :
28894 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
28902 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
28903 # for constant arguments. Useless!
28904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
28905 $as_echo_n "checking for working alloca.h... " >&6; }
28906 if ${ac_cv_working_alloca_h+:} false; then :
28907 $as_echo_n "(cached) " >&6
28909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28910 /* end confdefs.h. */
28911 #include <alloca.h>
28915 char *p = (char *) alloca (2 * sizeof (int));
28921 if ac_fn_c_try_link "$LINENO"; then :
28922 ac_cv_working_alloca_h=yes
28924 ac_cv_working_alloca_h=no
28926 rm -f core conftest.err conftest.$ac_objext \
28927 conftest$ac_exeext conftest.$ac_ext
28929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
28930 $as_echo "$ac_cv_working_alloca_h" >&6; }
28931 if test $ac_cv_working_alloca_h = yes; then
28933 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
28937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
28938 $as_echo_n "checking for alloca... " >&6; }
28939 if ${ac_cv_func_alloca_works+:} false; then :
28940 $as_echo_n "(cached) " >&6
28942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28943 /* end confdefs.h. */
28945 # define alloca __builtin_alloca
28948 # include <malloc.h>
28949 # define alloca _alloca
28951 # ifdef HAVE_ALLOCA_H
28952 # include <alloca.h>
28957 # ifndef alloca /* predefined by HP cc +Olibcalls */
28958 void *alloca (size_t);
28968 char *p = (char *) alloca (1);
28974 if ac_fn_c_try_link "$LINENO"; then :
28975 ac_cv_func_alloca_works=yes
28977 ac_cv_func_alloca_works=no
28979 rm -f core conftest.err conftest.$ac_objext \
28980 conftest$ac_exeext conftest.$ac_ext
28982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
28983 $as_echo "$ac_cv_func_alloca_works" >&6; }
28985 if test $ac_cv_func_alloca_works = yes; then
28987 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
28990 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
28991 # that cause trouble. Some versions do not even contain alloca or
28992 # contain a buggy version. If you still want to use their alloca,
28993 # use ar to extract alloca.o from them instead of compiling alloca.c.
28995 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
28997 $as_echo "#define C_ALLOCA 1" >>confdefs.h
29000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
29001 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
29002 if ${ac_cv_os_cray+:} false; then :
29003 $as_echo_n "(cached) " >&6
29005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29006 /* end confdefs.h. */
29007 #if defined CRAY && ! defined CRAY2
29014 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29015 $EGREP "webecray" >/dev/null 2>&1; then :
29023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
29024 $as_echo "$ac_cv_os_cray" >&6; }
29025 if test $ac_cv_os_cray = yes; then
29026 for ac_func in _getb67 GETB67 getb67; do
29027 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29028 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29029 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
29031 cat >>confdefs.h <<_ACEOF
29032 #define CRAY_STACKSEG_END $ac_func
29041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
29042 $as_echo_n "checking stack direction for C alloca... " >&6; }
29043 if ${ac_cv_c_stack_direction+:} false; then :
29044 $as_echo_n "(cached) " >&6
29046 if test "$cross_compiling" = yes; then :
29047 ac_cv_c_stack_direction=0
29049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29050 /* end confdefs.h. */
29051 $ac_includes_default
29053 find_stack_direction (int *addr, int depth)
29055 int dir, dummy = 0;
29058 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
29059 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
29060 return dir + dummy;
29064 main (int argc, char **argv)
29066 return find_stack_direction (0, argc + !argv + 20) < 0;
29069 if ac_fn_c_try_run "$LINENO"; then :
29070 ac_cv_c_stack_direction=1
29072 ac_cv_c_stack_direction=-1
29074 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
29075 conftest.$ac_objext conftest.beam conftest.$ac_ext
29079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
29080 $as_echo "$ac_cv_c_stack_direction" >&6; }
29081 cat >>confdefs.h <<_ACEOF
29082 #define STACK_DIRECTION $ac_cv_c_stack_direction
29088 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
29089 # -lseq on Dynix/PTX, -lgen on Unixware.
29090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getmntent" >&5
29091 $as_echo_n "checking for library containing getmntent... " >&6; }
29092 if ${ac_cv_search_getmntent+:} false; then :
29093 $as_echo_n "(cached) " >&6
29095 ac_func_search_save_LIBS=$LIBS
29096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29097 /* end confdefs.h. */
29099 /* Override any GCC internal prototype to avoid an error.
29100 Use char because int might match the return type of a GCC
29101 builtin and then its argument prototype would still apply. */
29109 return getmntent ();
29114 for ac_lib in '' sun seq gen; do
29115 if test -z "$ac_lib"; then
29116 ac_res="none required"
29119 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
29121 if ac_fn_c_try_link "$LINENO"; then :
29122 ac_cv_search_getmntent=$ac_res
29124 rm -f core conftest.err conftest.$ac_objext \
29126 if ${ac_cv_search_getmntent+:} false; then :
29130 if ${ac_cv_search_getmntent+:} false; then :
29133 ac_cv_search_getmntent=no
29135 rm conftest.$ac_ext
29136 LIBS=$ac_func_search_save_LIBS
29138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getmntent" >&5
29139 $as_echo "$ac_cv_search_getmntent" >&6; }
29140 ac_res=$ac_cv_search_getmntent
29141 if test "$ac_res" != no; then :
29142 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
29143 ac_cv_func_getmntent=yes
29145 $as_echo "#define HAVE_GETMNTENT 1" >>confdefs.h
29148 ac_cv_func_getmntent=no
29152 for ac_func in getmntinfo
29154 ac_fn_c_check_func "$LINENO" "getmntinfo" "ac_cv_func_getmntinfo"
29155 if test "x$ac_cv_func_getmntinfo" = xyes; then :
29156 cat >>confdefs.h <<_ACEOF
29157 #define HAVE_GETMNTINFO 1
29159 $as_echo "#define HAVE_GETMNTINFO 1" >>confdefs.h
29164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
29165 $as_echo_n "checking whether closedir returns void... " >&6; }
29166 if ${ac_cv_func_closedir_void+:} false; then :
29167 $as_echo_n "(cached) " >&6
29169 if test "$cross_compiling" = yes; then :
29170 ac_cv_func_closedir_void=yes
29172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29173 /* end confdefs.h. */
29174 $ac_includes_default
29175 #include <$ac_header_dirent>
29176 #ifndef __cplusplus
29183 return closedir (opendir (".")) != 0;
29188 if ac_fn_c_try_run "$LINENO"; then :
29189 ac_cv_func_closedir_void=no
29191 ac_cv_func_closedir_void=yes
29193 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
29194 conftest.$ac_objext conftest.beam conftest.$ac_ext
29198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
29199 $as_echo "$ac_cv_func_closedir_void" >&6; }
29200 if test $ac_cv_func_closedir_void = yes; then
29202 $as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
29206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
29207 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
29208 if ${ac_cv_func_setpgrp_void+:} false; then :
29209 $as_echo_n "(cached) " >&6
29211 if test "$cross_compiling" = yes; then :
29212 as_fn_error $? "cannot check setpgrp when cross compiling" "$LINENO" 5
29214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29215 /* end confdefs.h. */
29216 $ac_includes_default
29220 /* If this system has a BSD-style setpgrp which takes arguments,
29221 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
29222 exit successfully. */
29223 return setpgrp (1,1) != -1;
29228 if ac_fn_c_try_run "$LINENO"; then :
29229 ac_cv_func_setpgrp_void=no
29231 ac_cv_func_setpgrp_void=yes
29233 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
29234 conftest.$ac_objext conftest.beam conftest.$ac_ext
29238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
29239 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
29240 if test $ac_cv_func_setpgrp_void = yes; then
29242 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
29245 # AC_FUNC_FNMATCH dnl use local version
29247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettext in -lintl" >&5
29248 $as_echo_n "checking for gettext in -lintl... " >&6; }
29249 if ${ac_cv_lib_intl_gettext+:} false; then :
29250 $as_echo_n "(cached) " >&6
29252 ac_check_lib_save_LIBS=$LIBS
29253 LIBS="-lintl $LIBS"
29254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29255 /* end confdefs.h. */
29257 /* Override any GCC internal prototype to avoid an error.
29258 Use char because int might match the return type of a GCC
29259 builtin and then its argument prototype would still apply. */
29272 if ac_fn_c_try_link "$LINENO"; then :
29273 ac_cv_lib_intl_gettext=yes
29275 ac_cv_lib_intl_gettext=no
29277 rm -f core conftest.err conftest.$ac_objext \
29278 conftest$ac_exeext conftest.$ac_ext
29279 LIBS=$ac_check_lib_save_LIBS
29281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_gettext" >&5
29282 $as_echo "$ac_cv_lib_intl_gettext" >&6; }
29283 if test "x$ac_cv_lib_intl_gettext" = xyes; then :
29284 LIBS="$LIBS -lintl"
29288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpwnam in -lsun" >&5
29289 $as_echo_n "checking for getpwnam in -lsun... " >&6; }
29290 if ${ac_cv_lib_sun_getpwnam+:} false; then :
29291 $as_echo_n "(cached) " >&6
29293 ac_check_lib_save_LIBS=$LIBS
29295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29296 /* end confdefs.h. */
29298 /* Override any GCC internal prototype to avoid an error.
29299 Use char because int might match the return type of a GCC
29300 builtin and then its argument prototype would still apply. */
29308 return getpwnam ();
29313 if ac_fn_c_try_link "$LINENO"; then :
29314 ac_cv_lib_sun_getpwnam=yes
29316 ac_cv_lib_sun_getpwnam=no
29318 rm -f core conftest.err conftest.$ac_objext \
29319 conftest$ac_exeext conftest.$ac_ext
29320 LIBS=$ac_check_lib_save_LIBS
29322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sun_getpwnam" >&5
29323 $as_echo "$ac_cv_lib_sun_getpwnam" >&6; }
29324 if test "x$ac_cv_lib_sun_getpwnam" = xyes; then :
29325 cat >>confdefs.h <<_ACEOF
29326 #define HAVE_LIBSUN 1
29334 for ac_header in zlib.h
29336 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
29337 if test "x$ac_cv_header_zlib_h" = xyes; then :
29338 cat >>confdefs.h <<_ACEOF
29339 #define HAVE_ZLIB_H 1
29346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
29347 $as_echo_n "checking for deflate in -lz... " >&6; }
29348 if ${ac_cv_lib_z_deflate+:} false; then :
29349 $as_echo_n "(cached) " >&6
29351 ac_check_lib_save_LIBS=$LIBS
29353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29354 /* end confdefs.h. */
29356 /* Override any GCC internal prototype to avoid an error.
29357 Use char because int might match the return type of a GCC
29358 builtin and then its argument prototype would still apply. */
29371 if ac_fn_c_try_link "$LINENO"; then :
29372 ac_cv_lib_z_deflate=yes
29374 ac_cv_lib_z_deflate=no
29376 rm -f core conftest.err conftest.$ac_objext \
29377 conftest$ac_exeext conftest.$ac_ext
29378 LIBS=$ac_check_lib_save_LIBS
29380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
29381 $as_echo "$ac_cv_lib_z_deflate" >&6; }
29382 if test "x$ac_cv_lib_z_deflate" = xyes; then :
29387 if test x$ZLIBS = x-lz; then
29388 $as_echo "#define HAVE_LIBZ 1" >>confdefs.h
29397 # Check whether --enable-afs was given.
29398 if test "${enable_afs+set}" = set; then :
29399 enableval=$enable_afs;
29400 if test x$enableval = xyes; then
29402 elif test x$enableval = xno; then
29411 if test x$support_afs = xyes -o x$support_afs = xauto; then
29413 # Check whether --with-afsdir was given.
29414 if test "${with_afsdir+set}" = set; then :
29415 withval=$with_afsdir; with_afsdir=$withval
29420 if test x$with_afsdir = x; then
29421 for root in /usr /usr/local; do
29422 if test -d ${root}/include/afs/ ; then
29423 with_afsdir=${root}
29426 if test -d ${root}/include/openafs/afs/ ; then
29427 with_afsdir=${root}
29433 if test -d ${with_afsdir}/include/afs/ ; then
29434 AFS_CFLAGS="-I${with_afsdir}/include"
29436 if test -d ${with_afsdir}/include/openafs/afs/ ; then
29437 AFS_CFLAGS="-I${with_afsdir}/include/openafs"
29441 saved_CFLAGS="${CFLAGS}"
29442 saved_CPPFLAGS="${CPPFLAGS}"
29443 CFLAGS="${AFS_CFLAGS} ${saved_CFLAGS}"
29444 CPPFLAGS="${AFS_CFLAGS} ${saved_CPPFLAGS}"
29446 for ac_header in afs/afsint.h
29448 ac_fn_c_check_header_mongrel "$LINENO" "afs/afsint.h" "ac_cv_header_afs_afsint_h" "$ac_includes_default"
29449 if test "x$ac_cv_header_afs_afsint_h" = xyes; then :
29450 cat >>confdefs.h <<_ACEOF
29451 #define HAVE_AFS_AFSINT_H 1
29458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29459 /* end confdefs.h. */
29461 #include <afs/afsint.h>
29462 #include <afs/venus.h>
29465 if ac_fn_c_try_cpp "$LINENO"; then :
29467 $as_echo "#define HAVE_AFS_VENUS_H 1" >>confdefs.h
29471 rm -f conftest.err conftest.i conftest.$ac_ext
29473 CFLAGS="${saved_CFLAGS}"
29474 CPPFLAGS="${saved_CPPFLAGS}"
29476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pioctl in AFS libsys" >&5
29477 $as_echo_n "checking for pioctl in AFS libsys... " >&6; }
29478 for dir in ${with_afsdir}/lib \
29479 ${with_afsdir}/lib/afs \
29480 ${with_afsdir}/lib/openafs \
29481 ${with_afsdir}/lib64 \
29482 ${with_afsdir}/lib64/afs \
29483 ${with_afsdir}/lib64/openafs
29485 for arch_type in .a .so
29487 A=`test -f ${dir}/libsys${arch_type} && nm ${dir}/libsys${arch_type} 2>/dev/null | grep pioctl`
29489 if test $pkg = 0; then
29491 AFS_LIBS="-L${dir} -lsys -lrx -llwp ${dir}/util${arch_type}"
29497 if test $have_afs = yes; then
29498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29499 $as_echo "yes" >&6; }
29501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29502 $as_echo "no" >&6; }
29505 if test x$support_afs = xyes -a $have_afs != yes; then
29506 as_fn_error $? "afs support explicitly enabled but no supported afs implementation found,
29507 please either load the afs libraries or rerun configure without --enable-afs" "$LINENO" 5
29509 if test $have_afs = yes; then
29511 $as_echo "#define HAVE_AFS 1" >>confdefs.h
29514 $as_echo "#define HAVE_AFS_ACL 1" >>confdefs.h
29523 # Check whether --enable-lzo was given.
29524 if test "${enable_lzo+set}" = set; then :
29525 enableval=$enable_lzo;
29526 if test x$enableval = xno; then
29539 if test x$support_lzo = xyes; then
29541 # Check whether --with-lzo was given.
29542 if test "${with_lzo+set}" = set; then :
29544 case "$with_lzo" in
29549 if test -f ${with_lzo}/include/lzo/lzoconf.h; then
29550 LZO_INC="-I${with_lzo}/include"
29551 LZO_LDFLAGS="-L${with_lzo}/lib"
29552 with_lzo="${with_lzo}/include"
29554 with_lzo="/usr/include"
29557 as_ac_Header=`$as_echo "ac_cv_header_${with_lzo}/lzo/lzoconf.h" | $as_tr_sh`
29558 ac_fn_c_check_header_mongrel "$LINENO" "${with_lzo}/lzo/lzoconf.h" "$as_ac_Header" "$ac_includes_default"
29559 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29562 $as_echo "#define HAVE_LZO 1" >>confdefs.h
29564 LZO_LIBS="${LZO_LDFLAGS} -llzo2"
29570 echo "lzoconf.h not found. lzo turned off ..."
29582 ac_fn_c_check_header_mongrel "$LINENO" "lzo/lzoconf.h" "ac_cv_header_lzo_lzoconf_h" "$ac_includes_default"
29583 if test "x$ac_cv_header_lzo_lzoconf_h" = xyes; then :
29585 ac_fn_c_check_header_mongrel "$LINENO" "lzo/lzo1x.h" "ac_cv_header_lzo_lzo1x_h" "$ac_includes_default"
29586 if test "x$ac_cv_header_lzo_lzo1x_h" = xyes; then :
29588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lzo1x_1_compress in -llzo2" >&5
29589 $as_echo_n "checking for lzo1x_1_compress in -llzo2... " >&6; }
29590 if ${ac_cv_lib_lzo2_lzo1x_1_compress+:} false; then :
29591 $as_echo_n "(cached) " >&6
29593 ac_check_lib_save_LIBS=$LIBS
29594 LIBS="-llzo2 $LIBS"
29595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29596 /* end confdefs.h. */
29598 /* Override any GCC internal prototype to avoid an error.
29599 Use char because int might match the return type of a GCC
29600 builtin and then its argument prototype would still apply. */
29604 char lzo1x_1_compress ();
29608 return lzo1x_1_compress ();
29613 if ac_fn_c_try_link "$LINENO"; then :
29614 ac_cv_lib_lzo2_lzo1x_1_compress=yes
29616 ac_cv_lib_lzo2_lzo1x_1_compress=no
29618 rm -f core conftest.err conftest.$ac_objext \
29619 conftest$ac_exeext conftest.$ac_ext
29620 LIBS=$ac_check_lib_save_LIBS
29622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lzo2_lzo1x_1_compress" >&5
29623 $as_echo "$ac_cv_lib_lzo2_lzo1x_1_compress" >&6; }
29624 if test "x$ac_cv_lib_lzo2_lzo1x_1_compress" = xyes; then :
29628 $as_echo "#define HAVE_LZO 1" >>confdefs.h
29652 # Check whether --enable-acl was given.
29653 if test "${enable_acl+set}" = set; then :
29654 enableval=$enable_acl;
29655 if test x$enableval = xyes; then
29657 elif test x$enableval = xno; then
29666 have_extended_acl=no
29667 if test x$support_acl = xyes -o x$support_acl = xauto; then
29668 ac_fn_c_check_header_mongrel "$LINENO" "sys/acl.h" "ac_cv_header_sys_acl_h" "$ac_includes_default"
29669 if test "x$ac_cv_header_sys_acl_h" = xyes; then :
29671 $as_echo "#define HAVE_SYS_ACL_H 1" >>confdefs.h
29677 ac_fn_c_check_func "$LINENO" "acl_get_file" "ac_cv_func_acl_get_file"
29678 if test "x$ac_cv_func_acl_get_file" = xyes; then :
29686 if test $have_acl = no; then
29687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get_file in -lacl" >&5
29688 $as_echo_n "checking for acl_get_file in -lacl... " >&6; }
29689 if ${ac_cv_lib_acl_acl_get_file+:} false; then :
29690 $as_echo_n "(cached) " >&6
29692 ac_check_lib_save_LIBS=$LIBS
29694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29695 /* end confdefs.h. */
29697 /* Override any GCC internal prototype to avoid an error.
29698 Use char because int might match the return type of a GCC
29699 builtin and then its argument prototype would still apply. */
29703 char acl_get_file ();
29707 return acl_get_file ();
29712 if ac_fn_c_try_link "$LINENO"; then :
29713 ac_cv_lib_acl_acl_get_file=yes
29715 ac_cv_lib_acl_acl_get_file=no
29717 rm -f core conftest.err conftest.$ac_objext \
29718 conftest$ac_exeext conftest.$ac_ext
29719 LIBS=$ac_check_lib_save_LIBS
29721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_acl_acl_get_file" >&5
29722 $as_echo "$ac_cv_lib_acl_acl_get_file" >&6; }
29723 if test "x$ac_cv_lib_acl_acl_get_file" = xyes; then :
29726 if test $have_afs = yes; then
29727 if test -d /usr/lib64/; then
29728 FDLIBS="-L/usr/lib64 -lacl $FDLIBS"
29730 FDLIBS="-L/usr/lib -lacl $FDLIBS"
29733 FDLIBS="-lacl $FDLIBS"
29741 if test $have_acl = no -a \
29742 x${HAVE_OSF1_OS_TRUE} = x; then
29743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get_file in -lpacl" >&5
29744 $as_echo_n "checking for acl_get_file in -lpacl... " >&6; }
29745 if ${ac_cv_lib_pacl_acl_get_file+:} false; then :
29746 $as_echo_n "(cached) " >&6
29748 ac_check_lib_save_LIBS=$LIBS
29749 LIBS="-lpacl $LIBS"
29750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29751 /* end confdefs.h. */
29753 /* Override any GCC internal prototype to avoid an error.
29754 Use char because int might match the return type of a GCC
29755 builtin and then its argument prototype would still apply. */
29759 char acl_get_file ();
29763 return acl_get_file ();
29768 if ac_fn_c_try_link "$LINENO"; then :
29769 ac_cv_lib_pacl_acl_get_file=yes
29771 ac_cv_lib_pacl_acl_get_file=no
29773 rm -f core conftest.err conftest.$ac_objext \
29774 conftest$ac_exeext conftest.$ac_ext
29775 LIBS=$ac_check_lib_save_LIBS
29777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pacl_acl_get_file" >&5
29778 $as_echo "$ac_cv_lib_pacl_acl_get_file" >&6; }
29779 if test "x$ac_cv_lib_pacl_acl_get_file" = xyes; then :
29782 FDLIBS="-lpacl $FDLIBS"
29788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ACL_TYPE_DEFAULT_DIR in acl.h include file" >&5
29789 $as_echo_n "checking for ACL_TYPE_DEFAULT_DIR in acl.h include file... " >&6; }
29790 grep ACL_TYPE_DEFAULT_DIR /usr/include/sys/acl.h > /dev/null 2>&1
29791 if test $? = 0; then
29793 $as_echo "#define HAVE_ACL_TYPE_DEFAULT_DIR 1" >>confdefs.h
29795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29796 $as_echo "yes" >&6; }
29798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29799 $as_echo "no" >&6; }
29803 if test $have_acl = yes -a \
29804 x${HAVE_DARWIN_OS_TRUE} = x; then
29805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ACL_TYPE_EXTENDED in acl.h include file" >&5
29806 $as_echo_n "checking for ACL_TYPE_EXTENDED in acl.h include file... " >&6; }
29807 grep ACL_TYPE_EXTENDED /usr/include/sys/acl.h > /dev/null 2>&1
29808 if test $? = 0; then
29810 $as_echo "#define HAVE_ACL_TYPE_EXTENDED 1" >>confdefs.h
29812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29813 $as_echo "yes" >&6; }
29815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29816 $as_echo "no" >&6; }
29820 if test $have_acl = yes -a \
29821 x${HAVE_FREEBSD_OS_TRUE} = x; then
29822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ACL_TYPE_NFS4 in acl.h include file" >&5
29823 $as_echo_n "checking for ACL_TYPE_NFS4 in acl.h include file... " >&6; }
29824 grep ACL_TYPE_NFS4 /usr/include/sys/acl.h > /dev/null 2>&1
29825 if test $? = 0; then
29827 $as_echo "#define HAVE_ACL_TYPE_NFS4 1" >>confdefs.h
29829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29830 $as_echo "yes" >&6; }
29832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29833 $as_echo "no" >&6; }
29837 if test $have_acl = no -a \
29838 x${HAVE_SUN_OS_TRUE} = x; then
29839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acltotext in -lsec" >&5
29840 $as_echo_n "checking for acltotext in -lsec... " >&6; }
29841 if ${ac_cv_lib_sec_acltotext+:} false; then :
29842 $as_echo_n "(cached) " >&6
29844 ac_check_lib_save_LIBS=$LIBS
29846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29847 /* end confdefs.h. */
29849 /* Override any GCC internal prototype to avoid an error.
29850 Use char because int might match the return type of a GCC
29851 builtin and then its argument prototype would still apply. */
29859 return acltotext ();
29864 if ac_fn_c_try_link "$LINENO"; then :
29865 ac_cv_lib_sec_acltotext=yes
29867 ac_cv_lib_sec_acltotext=no
29869 rm -f core conftest.err conftest.$ac_objext \
29870 conftest$ac_exeext conftest.$ac_ext
29871 LIBS=$ac_check_lib_save_LIBS
29873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sec_acltotext" >&5
29874 $as_echo "$ac_cv_lib_sec_acltotext" >&6; }
29875 if test "x$ac_cv_lib_sec_acltotext" = xyes; then :
29878 FDLIBS="-lsec $FDLIBS"
29880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_totext in -lsec" >&5
29881 $as_echo_n "checking for acl_totext in -lsec... " >&6; }
29882 if ${ac_cv_lib_sec_acl_totext+:} false; then :
29883 $as_echo_n "(cached) " >&6
29885 ac_check_lib_save_LIBS=$LIBS
29887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29888 /* end confdefs.h. */
29890 /* Override any GCC internal prototype to avoid an error.
29891 Use char because int might match the return type of a GCC
29892 builtin and then its argument prototype would still apply. */
29896 char acl_totext ();
29900 return acl_totext ();
29905 if ac_fn_c_try_link "$LINENO"; then :
29906 ac_cv_lib_sec_acl_totext=yes
29908 ac_cv_lib_sec_acl_totext=no
29910 rm -f core conftest.err conftest.$ac_objext \
29911 conftest$ac_exeext conftest.$ac_ext
29912 LIBS=$ac_check_lib_save_LIBS
29914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sec_acl_totext" >&5
29915 $as_echo "$ac_cv_lib_sec_acl_totext" >&6; }
29916 if test "x$ac_cv_lib_sec_acl_totext" = xyes; then :
29918 have_extended_acl=yes
29929 if test $have_acl = no -a \
29930 x${HAVE_AIX_OS_TRUE} = x; then
29931 ac_fn_c_check_func "$LINENO" "acl_get" "ac_cv_func_acl_get"
29932 if test "x$ac_cv_func_acl_get" = xyes; then :
29936 ac_fn_c_check_func "$LINENO" "aclx_get" "ac_cv_func_aclx_get"
29937 if test "x$ac_cv_func_aclx_get" = xyes; then :
29939 have_extended_acl=yes
29950 if test x$support_acl = xyes -a $have_acl != yes; then
29951 as_fn_error $? "acl support explicitly enabled but no supported acl implementation found,
29952 please either load the acl libraries or rerun configure without --enable-acl" "$LINENO" 5
29954 if test $have_acl = yes; then
29956 $as_echo "#define HAVE_ACL 1" >>confdefs.h
29960 if test $have_extended_acl = yes; then
29962 $as_echo "#define HAVE_EXTENDED_ACL 1" >>confdefs.h
29969 # Check whether --enable-xattr was given.
29970 if test "${enable_xattr+set}" = set; then :
29971 enableval=$enable_xattr;
29972 if test x$enableval = xyes; then
29974 elif test x$enableval = xno; then
29983 if test x$support_xattr = xyes -o x$support_xattr = xauto; then
29984 if test x${HAVE_FREEBSD_OS_TRUE} = x -o \
29985 x${HAVE_NETBSD_OS_TRUE} = x -o \
29986 x${HAVE_OPENBSD_OS_TRUE} = x; then
29987 ac_fn_c_check_header_mongrel "$LINENO" "sys/extattr.h" "ac_cv_header_sys_extattr_h" "$ac_includes_default"
29988 if test "x$ac_cv_header_sys_extattr_h" = xyes; then :
29990 $as_echo "#define HAVE_SYS_EXTATTR_H 1" >>confdefs.h
29995 ac_fn_c_check_header_mongrel "$LINENO" "libutil.h" "ac_cv_header_libutil_h" "$ac_includes_default"
29996 if test "x$ac_cv_header_libutil_h" = xyes; then :
29998 $as_echo "#define HAVE_LIBUTIL_H 1" >>confdefs.h
30003 for ac_func in extattr_get_link extattr_set_link extattr_list_link
30005 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30006 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30007 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30008 cat >>confdefs.h <<_ACEOF
30009 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30014 $as_echo "#define HAVE_EXTATTR_GET_LINK 1" >>confdefs.h
30017 $as_echo "#define HAVE_EXTATTR_SET_LINK 1" >>confdefs.h
30020 $as_echo "#define HAVE_EXTATTR_LIST_LINK 1" >>confdefs.h
30028 if test $have_xattr = no; then
30029 for ac_func in extattr_get_file extattr_set_file extattr_list_file
30031 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30032 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30033 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30034 cat >>confdefs.h <<_ACEOF
30035 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30040 $as_echo "#define HAVE_EXTATTR_GET_FILE 1" >>confdefs.h
30043 $as_echo "#define HAVE_EXTATTR_SET_FILE 1" >>confdefs.h
30046 $as_echo "#define HAVE_EXTATTR_LIST_FILE 1" >>confdefs.h
30055 if test $have_xattr = yes; then
30056 have_extattr_string_in_libc=no
30057 for ac_func in extattr_namespace_to_string extattr_string_to_namespace
30059 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30060 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30061 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30062 cat >>confdefs.h <<_ACEOF
30063 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30066 have_extattr_string_in_libc=yes
30068 $as_echo "#define HAVE_EXTATTR_NAMESPACE_TO_STRING 1" >>confdefs.h
30071 $as_echo "#define HAVE_EXTATTR_STRING_TO_NAMESPACE 1" >>confdefs.h
30079 if test $have_extattr_string_in_libc = no; then
30080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extattr_namespace_to_string extattr_string_to_namespace in -lutil" >&5
30081 $as_echo_n "checking for extattr_namespace_to_string extattr_string_to_namespace in -lutil... " >&6; }
30082 if ${ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace+:} false; then :
30083 $as_echo_n "(cached) " >&6
30085 ac_check_lib_save_LIBS=$LIBS
30086 LIBS="-lutil $LIBS"
30087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30088 /* end confdefs.h. */
30090 /* Override any GCC internal prototype to avoid an error.
30091 Use char because int might match the return type of a GCC
30092 builtin and then its argument prototype would still apply. */
30096 char extattr_namespace_to_string extattr_string_to_namespace ();
30100 return extattr_namespace_to_string extattr_string_to_namespace ();
30105 if ac_fn_c_try_link "$LINENO"; then :
30106 ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace=yes
30108 ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace=no
30110 rm -f core conftest.err conftest.$ac_objext \
30111 conftest$ac_exeext conftest.$ac_ext
30112 LIBS=$ac_check_lib_save_LIBS
30114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" >&5
30115 $as_echo "$ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" >&6; }
30116 if test "x$ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" = xyes; then :
30119 $as_echo "#define HAVE_EXTATTR_NAMESPACE_TO_STRING 1" >>confdefs.h
30122 $as_echo "#define HAVE_EXTATTR_STRING_TO_NAMESPACE 1" >>confdefs.h
30124 FDLIBS="-lutil $FDLIBS"
30133 if test $have_xattr = no -a \
30134 x${HAVE_AIX_OS_TRUE} = x; then
30135 ac_fn_c_check_header_mongrel "$LINENO" "sys/ea.h" "ac_cv_header_sys_ea_h" "$ac_includes_default"
30136 if test "x$ac_cv_header_sys_ea_h" = xyes; then :
30138 $as_echo "#define HAVE_SYS_EA_H 1" >>confdefs.h
30143 for ac_func in llistea lgetea lsetea
30145 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30146 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30147 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30148 cat >>confdefs.h <<_ACEOF
30149 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30154 $as_echo "#define HAVE_LLISTEA 1" >>confdefs.h
30157 $as_echo "#define HAVE_LGETEA 1" >>confdefs.h
30160 $as_echo "#define HAVE_LSETEA 1" >>confdefs.h
30168 if test $have_xattr = no; then
30169 for ac_func in listea getea setea
30171 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30172 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30173 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30174 cat >>confdefs.h <<_ACEOF
30175 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30180 $as_echo "#define HAVE_LISTEA 1" >>confdefs.h
30183 $as_echo "#define HAVE_GETEA 1" >>confdefs.h
30186 $as_echo "#define HAVE_SETEA 1" >>confdefs.h
30196 if test $have_xattr = no -a \
30197 x${HAVE_OSF1_OS_TRUE} = x; then
30198 ac_fn_c_check_header_mongrel "$LINENO" "sys/proplist.h" "ac_cv_header_sys_proplist_h" "$ac_includes_default"
30199 if test "x$ac_cv_header_sys_proplist_h" = xyes; then :
30201 $as_echo "#define HAVE_SYS_PROPLIST_H 1" >>confdefs.h
30206 for ac_func in getproplist get_proplist_entry sizeof_proplist_entry add_proplist_entry setproplist
30208 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30209 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30210 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30211 cat >>confdefs.h <<_ACEOF
30212 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30217 $as_echo "#define HAVE_GETPROPLIST 1" >>confdefs.h
30220 $as_echo "#define HAVE_GET_PROPLIST_ENTRY 1" >>confdefs.h
30223 $as_echo "#define HAVE_SIZEOF_PROPLIST_ENTRY 1" >>confdefs.h
30226 $as_echo "#define HAVE_ADD_PROPLIST_ENTRY 1" >>confdefs.h
30229 $as_echo "#define HAVE_SETPROPLIST 1" >>confdefs.h
30238 if test $have_xattr = no -a \
30239 x${HAVE_SUN_OS_TRUE} = x; then
30240 ac_fn_c_check_header_mongrel "$LINENO" "sys/attr.h" "ac_cv_header_sys_attr_h" "$ac_includes_default"
30241 if test "x$ac_cv_header_sys_attr_h" = xyes; then :
30243 $as_echo "#define HAVE_SYS_ATTR_H 1" >>confdefs.h
30248 ac_fn_c_check_header_mongrel "$LINENO" "sys/nvpair.h" "ac_cv_header_sys_nvpair_h" "$ac_includes_default"
30249 if test "x$ac_cv_header_sys_nvpair_h" = xyes; then :
30251 $as_echo "#define HAVE_SYS_NVPAIR_H 1" >>confdefs.h
30256 ac_fn_c_check_header_mongrel "$LINENO" "attr.h" "ac_cv_header_attr_h" "$ac_includes_default"
30257 if test "x$ac_cv_header_attr_h" = xyes; then :
30259 $as_echo "#define HAVE_ATTR_H 1" >>confdefs.h
30265 for ac_func in openat fstatat unlinkat fchownat futimesat
30267 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30268 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30269 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30270 cat >>confdefs.h <<_ACEOF
30271 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30276 $as_echo "#define HAVE_OPENAT 1" >>confdefs.h
30279 $as_echo "#define HAVE_FSTATAT 1" >>confdefs.h
30282 $as_echo "#define HAVE_UNLINKAT 1" >>confdefs.h
30285 $as_echo "#define HAVE_FCHOWNAT 1" >>confdefs.h
30288 $as_echo "#define HAVE_FUTIMESAT 1" >>confdefs.h
30296 if test $have_xattr = yes; then
30297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nvlist_next_nvpair in -lnvpair" >&5
30298 $as_echo_n "checking for nvlist_next_nvpair in -lnvpair... " >&6; }
30299 if ${ac_cv_lib_nvpair_nvlist_next_nvpair+:} false; then :
30300 $as_echo_n "(cached) " >&6
30302 ac_check_lib_save_LIBS=$LIBS
30303 LIBS="-lnvpair $LIBS"
30304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30305 /* end confdefs.h. */
30307 /* Override any GCC internal prototype to avoid an error.
30308 Use char because int might match the return type of a GCC
30309 builtin and then its argument prototype would still apply. */
30313 char nvlist_next_nvpair ();
30317 return nvlist_next_nvpair ();
30322 if ac_fn_c_try_link "$LINENO"; then :
30323 ac_cv_lib_nvpair_nvlist_next_nvpair=yes
30325 ac_cv_lib_nvpair_nvlist_next_nvpair=no
30327 rm -f core conftest.err conftest.$ac_objext \
30328 conftest$ac_exeext conftest.$ac_ext
30329 LIBS=$ac_check_lib_save_LIBS
30331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nvpair_nvlist_next_nvpair" >&5
30332 $as_echo "$ac_cv_lib_nvpair_nvlist_next_nvpair" >&6; }
30333 if test "x$ac_cv_lib_nvpair_nvlist_next_nvpair" = xyes; then :
30336 $as_echo "#define HAVE_NVLIST_NEXT_NVPAIR 1" >>confdefs.h
30338 FDLIBS="-lnvpair $FDLIBS"
30346 if test $have_xattr = no; then
30347 ac_fn_c_check_header_mongrel "$LINENO" "sys/xattr.h" "ac_cv_header_sys_xattr_h" "$ac_includes_default"
30348 if test "x$ac_cv_header_sys_xattr_h" = xyes; then :
30350 $as_echo "#define HAVE_SYS_XATTR_H 1" >>confdefs.h
30355 for ac_func in llistxattr lgetxattr lsetxattr
30357 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30358 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30359 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30360 cat >>confdefs.h <<_ACEOF
30361 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30366 $as_echo "#define HAVE_LLISTXATTR 1" >>confdefs.h
30369 $as_echo "#define HAVE_LGETXATTR 1" >>confdefs.h
30372 $as_echo "#define HAVE_LSETXATTR 1" >>confdefs.h
30380 if test $have_xattr = no; then
30381 for ac_func in listxattr getxattr setxattr
30383 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30384 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30385 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30386 cat >>confdefs.h <<_ACEOF
30387 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30392 $as_echo "#define HAVE_LISTXATTR 1" >>confdefs.h
30395 $as_echo "#define HAVE_GETXATTR 1" >>confdefs.h
30398 $as_echo "#define HAVE_SETXATTR 1" >>confdefs.h
30408 if test x$support_xattr = xyes -a $have_xattr != yes; then
30409 as_fn_error $? "xattr support explicitly enabled but no supported xattr implementation found,
30410 please either load the xattr libraries or rerun configure without --enable-xattr" "$LINENO" 5
30412 if test $have_xattr = yes; then
30414 $as_echo "#define HAVE_XATTR 1" >>confdefs.h
30421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
30422 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
30423 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
30424 $as_echo_n "(cached) " >&6
30426 ac_check_lib_save_LIBS=$LIBS
30427 LIBS="-lpthread $LIBS"
30428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30429 /* end confdefs.h. */
30431 /* Override any GCC internal prototype to avoid an error.
30432 Use char because int might match the return type of a GCC
30433 builtin and then its argument prototype would still apply. */
30437 char pthread_create ();
30441 return pthread_create ();
30446 if ac_fn_c_try_link "$LINENO"; then :
30447 ac_cv_lib_pthread_pthread_create=yes
30449 ac_cv_lib_pthread_pthread_create=no
30451 rm -f core conftest.err conftest.$ac_objext \
30452 conftest$ac_exeext conftest.$ac_ext
30453 LIBS=$ac_check_lib_save_LIBS
30455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
30456 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
30457 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
30458 PTHREAD_LIB="-lpthread"
30461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthreads" >&5
30462 $as_echo_n "checking for pthread_create in -lpthreads... " >&6; }
30463 if ${ac_cv_lib_pthreads_pthread_create+:} false; then :
30464 $as_echo_n "(cached) " >&6
30466 ac_check_lib_save_LIBS=$LIBS
30467 LIBS="-lpthreads $LIBS"
30468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30469 /* end confdefs.h. */
30471 /* Override any GCC internal prototype to avoid an error.
30472 Use char because int might match the return type of a GCC
30473 builtin and then its argument prototype would still apply. */
30477 char pthread_create ();
30481 return pthread_create ();
30486 if ac_fn_c_try_link "$LINENO"; then :
30487 ac_cv_lib_pthreads_pthread_create=yes
30489 ac_cv_lib_pthreads_pthread_create=no
30491 rm -f core conftest.err conftest.$ac_objext \
30492 conftest$ac_exeext conftest.$ac_ext
30493 LIBS=$ac_check_lib_save_LIBS
30495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_pthread_create" >&5
30496 $as_echo "$ac_cv_lib_pthreads_pthread_create" >&6; }
30497 if test "x$ac_cv_lib_pthreads_pthread_create" = xyes; then :
30498 PTHREAD_LIB="-lpthreads"
30501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lc_r" >&5
30502 $as_echo_n "checking for pthread_create in -lc_r... " >&6; }
30503 if ${ac_cv_lib_c_r_pthread_create+:} false; then :
30504 $as_echo_n "(cached) " >&6
30506 ac_check_lib_save_LIBS=$LIBS
30508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30509 /* end confdefs.h. */
30511 /* Override any GCC internal prototype to avoid an error.
30512 Use char because int might match the return type of a GCC
30513 builtin and then its argument prototype would still apply. */
30517 char pthread_create ();
30521 return pthread_create ();
30526 if ac_fn_c_try_link "$LINENO"; then :
30527 ac_cv_lib_c_r_pthread_create=yes
30529 ac_cv_lib_c_r_pthread_create=no
30531 rm -f core conftest.err conftest.$ac_objext \
30532 conftest$ac_exeext conftest.$ac_ext
30533 LIBS=$ac_check_lib_save_LIBS
30535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_create" >&5
30536 $as_echo "$ac_cv_lib_c_r_pthread_create" >&6; }
30537 if test "x$ac_cv_lib_c_r_pthread_create" = xyes; then :
30538 PTHREAD_LIB="-lc_r"
30541 ac_fn_c_check_func "$LINENO" "pthread_create" "ac_cv_func_pthread_create"
30542 if test "x$ac_cv_func_pthread_create" = xyes; then :
30559 for ac_header in sys/prctl.h sys/capability.h
30561 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30562 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
30563 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
30564 cat >>confdefs.h <<_ACEOF
30565 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30572 for ac_func in prctl setreuid
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
30584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cap_set_proc in -lcap" >&5
30585 $as_echo_n "checking for cap_set_proc in -lcap... " >&6; }
30586 if ${ac_cv_lib_cap_cap_set_proc+:} false; then :
30587 $as_echo_n "(cached) " >&6
30589 ac_check_lib_save_LIBS=$LIBS
30591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30592 /* end confdefs.h. */
30594 /* Override any GCC internal prototype to avoid an error.
30595 Use char because int might match the return type of a GCC
30596 builtin and then its argument prototype would still apply. */
30600 char cap_set_proc ();
30604 return cap_set_proc ();
30609 if ac_fn_c_try_link "$LINENO"; then :
30610 ac_cv_lib_cap_cap_set_proc=yes
30612 ac_cv_lib_cap_cap_set_proc=no
30614 rm -f core conftest.err conftest.$ac_objext \
30615 conftest$ac_exeext conftest.$ac_ext
30616 LIBS=$ac_check_lib_save_LIBS
30618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cap_cap_set_proc" >&5
30619 $as_echo "$ac_cv_lib_cap_cap_set_proc" >&6; }
30620 if test "x$ac_cv_lib_cap_cap_set_proc" = xyes; then :
30626 if test x$CAP_LIBS = x-lcap; then
30628 $as_echo "#define HAVE_LIBCAP 1" >>confdefs.h
30634 $as_echo "#define FDLIBS 1" >>confdefs.h
30637 CFLAGS=${CFLAGS--O}
30639 if test x$have_gcc = xyes ; then
30640 CPPFLAGS="$CPPFLAGS -x c++ -fno-strict-aliasing -fno-exceptions -fno-rtti"
30641 CFLAGS="$CFLAGS -x c++ -fno-strict-aliasing -fno-exceptions -fno-rtti"
30643 LDFLAGS=${LDFLAGS--O}
30644 CPPFLAGS="$CPPFLAGS"
30673 COMPRESS_MANPAGES=yes
30675 case "$DISTNAME" in
30678 PSCMD="ps -e -o pid,comm"
30679 PFILES="${PFILES} platforms/aix/Makefile"
30680 TAPEDRIVE="/dev/rmt0.1"
30684 PTHREAD_LIB="-lpthread -lexc"
30685 if test "${CC}" = "gcc" ; then
30692 TAPEDRIVE="/dev/nrmt0"
30695 DISTVER=`uname -a |awk '{print $3}'`
30696 TAPEDRIVE="/dev/nrmt0"
30697 PTHREAD_LIB="-pthread"
30698 CFLAGS="${CFLAGS} -pthread"
30699 PSCMD="ps -ax -o pid,command"
30702 PFILES="${PFILES} \
30703 platforms/bsdi/Makefile \
30704 platforms/bsdi/bacula-fd \
30705 platforms/bsdi/bacula-sd \
30706 platforms/bsdi/bacula-dir"
30707 largefile_support="yes"
30710 DISTVER=`uname -a |awk '{print $3}'`
30711 TAPEDRIVE="/dev/nrst0"
30713 WCFLAGS="-mwindows"
30714 WLDFLAGS="-mwindows"
30718 TAPEDRIVE="/dev/nst0"
30719 PSCMD="ps -e -o pid,command"
30721 PFILES="${PFILES} \
30722 platforms/darwin/Makefile"
30726 TAPEDRIVE="/dev/nst0"
30727 PSCMD="ps -e -o pid,command"
30729 PFILES="${PFILES} \
30730 platforms/osx/Makefile"
30733 if `test -f /etc/apt/sources.list && grep -q ubuntu /etc/apt/sources.list`; then
30736 DISTVER=`cat /etc/debian_version`
30737 if test -f /etc/lsb-release ; then
30739 if test "x$DISTRIB_ID" != "x" ; then
30740 DISTNAME=$DISTRIB_ID
30742 if test "x$DISTRIB_RELEASE" != "x" ; then
30743 DISTVER=$DISTRIB_RELEASE
30746 if test "$DISTNAME" = "Ubuntu" ; then
30749 TAPEDRIVE="/dev/nst0"
30750 PSCMD="ps -e -o pid,command"
30751 if test "$DISTNAME" = "ubuntu" ; then
30752 PFILES="${PFILES} \
30753 platforms/ubuntu/Makefile \
30754 platforms/ubuntu/bacula-fd \
30755 platforms/ubuntu/bacula-sd \
30756 platforms/ubuntu/bacula-dir"
30758 PFILES="${PFILES} \
30759 platforms/debian/Makefile \
30760 platforms/debian/bacula-fd \
30761 platforms/debian/bacula-sd \
30762 platforms/debian/bacula-dir"
30766 DISTVER=`uname -a |awk '{print $3}'`
30767 VER=`echo $DISTVER | cut -c 1`
30768 if test x$VER = x4 ; then
30769 PTHREAD_LIB="${PTHREAD_LIBS:--pthread}"
30770 CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS:--pthread}"
30774 TAPEDRIVE="/dev/nrsa0"
30775 PSCMD="ps -ax -o pid,command"
30776 PFILES="${PFILES} \
30777 platforms/freebsd/Makefile \
30778 platforms/freebsd/bacula-fd \
30779 platforms/freebsd/bacula-sd \
30780 platforms/freebsd/bacula-dir"
30781 largefile_support="yes"
30785 TAPEDRIVE="/dev/nst0"
30786 PSCMD="ps -e -o pid,command"
30787 PFILES="${PFILES} \
30788 platforms/hurd/Makefile \
30789 platforms/hurd/bacula-fd \
30790 platforms/hurd/bacula-sd \
30791 platforms/hurd/bacula-dir"
30794 PSCMD="UNIX95=1; ps -e -o pid,comm"
30795 CFLAGS="${CFLAGS} -D_XOPEN_SOURCE_EXTENDED=1"
30797 TAPEDRIVE="/dev/rmt/0hnb"
30798 PTHREAD_LIB="-lpthread"
30799 $as_echo "#define _INCLUDE_LONGLONG 1" >>confdefs.h
30804 TAPEDRIVE="/dev/rmt/0cbn"
30805 PSCMD="ps -e -o pid,comm"
30806 PFILES="${PFILES} \
30807 platforms/irix/Makefile \
30808 platforms/irix/bacula-fd \
30809 platforms/irix/bacula-sd \
30810 platforms/irix/bacula-dir"
30813 DISTVER=`uname -a |awk '{print $3}'`
30816 TAPEDRIVE="/dev/nrst0"
30817 PSCMD="ps -ax -o pid,command"
30818 PTHREAD_LIB="-pthread"
30819 CFLAGS="${CFLAGS} -pthread"
30822 DISTVER=`uname -a |awk '{print $3}'`
30825 TAPEDRIVE="/dev/nrst0"
30826 PSCMD="ps -ax -o pid,command"
30827 PTHREAD_LIB="-pthread"
30828 CFLAGS="${CFLAGS} -pthread"
30829 PFILES="${PFILES} \
30830 platforms/openbsd/Makefile \
30831 platforms/openbsd/bacula-fd \
30832 platforms/openbsd/bacula-sd \
30833 platforms/openbsd/bacula-dir"
30836 if test -f /etc/whitebox-release ; then
30837 f=/etc/whitebox-release
30839 f=/etc/redhat-release
30841 if test `cat $f | grep release |\
30842 cut -f 3 -d ' '`x = "Enterprise"x ; then
30843 DISTVER="Enterprise "`cat $f | grep release |\
30846 DISTVER=`cat /etc/redhat-release | grep release |\
30849 TAPEDRIVE="/dev/nst0"
30850 PSCMD="ps -e -o pid,command"
30851 PFILES="${PFILES} \
30852 platforms/redhat/Makefile \
30853 platforms/redhat/bacula-fd \
30854 platforms/redhat/bacula-sd \
30855 platforms/redhat/bacula-dir
30859 DISTVER=`cat /etc/mandrake-release | grep release |\
30861 TAPEDRIVE="/dev/nst0"
30862 PSCMD="ps -e -o pid,command"
30863 PFILES="${PFILES} \
30864 platforms/mandrake/Makefile \
30865 platforms/mandrake/bacula-fd \
30866 platforms/mandrake/bacula-sd \
30867 platforms/mandrake/bacula-dir \
30871 DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
30872 TAPEDRIVE="/dev/nst0"
30873 PSCMD="ps -e -o pid,command"
30874 PFILES="${PFILES} \
30875 platforms/gentoo/Makefile \
30876 platforms/gentoo/bacula-init \
30877 platforms/gentoo/bacula-fd \
30878 platforms/gentoo/bacula-sd \
30879 platforms/gentoo/bacula-dir"
30882 DISTVER=`cat /etc/slackware-version`
30883 TAPEDRIVE="/dev/nst0"
30884 PSCMD="ps -e -o pid,command"
30885 PFILES="${PFILES} \
30886 platforms/slackware/Makefile \
30887 platforms/slackware/rc.bacula-fd \
30888 platforms/slackware/rc.bacula-sd \
30889 platforms/slackware/rc.bacula-dir\
30890 platforms/slackware/functions.bacula"
30894 TAPEDRIVE="/dev/rmt/0cbn"
30895 PSCMD="ps -e -o pid,comm"
30896 PFILES="${PFILES} \
30897 platforms/solaris/Makefile \
30898 platforms/solaris/bacula-fd \
30899 platforms/solaris/bacula-sd \
30900 platforms/solaris/bacula-dir"
30904 $as_echo "#define HAVE_OLD_SOCKOPT 1" >>confdefs.h
30906 $as_echo "#define USE_THR_SETCONCURRENCY 1" >>confdefs.h
30910 $as_echo "#define USE_THR_SETCONCURRENCY 1" >>confdefs.h
30915 $as_echo "#define HAVE_SOLARIS10 1" >>confdefs.h
30921 LIBS="$LIBS -lresolv -lrt"
30924 DISTVER=`cat /etc/SuSE-release |grep VERSION|\
30926 TAPEDRIVE="/dev/nst0"
30927 PSCMD="ps -e -o pid,command"
30928 PFILES="${PFILES} \
30929 platforms/suse/Makefile \
30930 platforms/suse/bacula-fd \
30931 platforms/suse/bacula-sd \
30932 platforms/suse/bacula-dir \
30933 platforms/suse/bacula"
30938 TAPEDRIVE="/dev/nst0"
30939 PSCMD="ps -e -o pid,command"
30940 PFILES="${PFILES} \
30941 platforms/suse/Makefile \
30942 platforms/suse/bacula-fd \
30943 platforms/suse/bacula-sd \
30944 platforms/suse/bacula-dir"
30948 TAPEDRIVE="/dev/nst0"
30951 echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
30955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for systemd support" >&5
30956 $as_echo_n "checking for systemd support... " >&6; }
30958 # Check whether --with-systemd was given.
30959 if test "${with_systemd+set}" = set; then :
30960 withval=$with_systemd;
30961 if test "$withval" != "no"; then
30962 if test "$withval" = "yes"; then
30963 SYSTEMD_UNITDIR="`systemctl show | grep UnitPath | cut -d " " -f2`"
30965 SYSTEMD_UNITDIR="${withval}"
30968 PFILES="${PFILES} \
30969 platforms/systemd/Makefile \
30970 platforms/systemd/bacula-dir.service \
30971 platforms/systemd/bacula-fd.service \
30972 platforms/systemd/bacula-sd.service"
30974 $as_echo "#define HAVE_SYSTEMD 1" >>confdefs.h
30976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30977 $as_echo "yes" >&6; }
30978 support_systemd="yes"
30980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30981 $as_echo "no" >&6; }
30982 support_systemd="no"
30987 support_systemd="no"
30988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30989 $as_echo "no" >&6; }
30998 LIBS="$PTHREAD_LIB $LIBS"
31000 cat >>confdefs.h <<_ACEOF
31004 cat >>confdefs.h <<_ACEOF
31016 MCOMMON=./autoconf/Make.common
31019 if test "x${subsysdir}" = "x${sbindir}" ; then
31022 echo "You have set both --sbindir and --with-subsys-dir"
31023 echo " equal to: ${subsysdir} "
31024 echo "This is not permitted. Please reconfigure."
31026 echo "Aborting configuration ..."
31033 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 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"
31035 ac_config_commands="$ac_config_commands default"
31037 cat >confcache <<\_ACEOF
31038 # This file is a shell script that caches the results of configure
31039 # tests run on this system so they can be shared between configure
31040 # scripts and configure runs, see configure's option --config-cache.
31041 # It is not useful on other systems. If it contains results you don't
31042 # want to keep, you may remove or edit it.
31044 # config.status only pays attention to the cache file if you give it
31045 # the --recheck option to rerun configure.
31047 # `ac_cv_env_foo' variables (set or unset) will be overridden when
31048 # loading this file, other *unset* `ac_cv_foo' will be assigned the
31049 # following values.
31053 # The following way of writing the cache mishandles newlines in values,
31054 # but we know of no workaround that is simple, portable, and efficient.
31055 # So, we kill variables containing newlines.
31056 # Ultrix sh set writes to stderr and can't be redirected directly,
31057 # and sets the high bit in the cache file unless we assign to the vars.
31059 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
31060 eval ac_val=\$$ac_var
31064 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
31065 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
31068 _ | IFS | as_nl) ;; #(
31069 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
31070 *) { eval $ac_var=; unset $ac_var;} ;;
31076 case $as_nl`(ac_space=' '; set) 2>&1` in #(
31077 *${as_nl}ac_space=\ *)
31078 # `set' does not quote correctly, so add quotes: double-quote
31079 # substitution turns \\\\ into \\, and sed turns \\ into \.
31082 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
31085 # `set' quotes correctly as required by POSIX, so do not add quotes.
31086 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
31095 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
31097 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
31099 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
31100 if test -w "$cache_file"; then
31101 if test "x$cache_file" != "x/dev/null"; then
31102 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
31103 $as_echo "$as_me: updating cache $cache_file" >&6;}
31104 if test ! -f "$cache_file" || test -h "$cache_file"; then
31105 cat confcache >"$cache_file"
31107 case $cache_file in #(
31109 mv -f confcache "$cache_file"$$ &&
31110 mv -f "$cache_file"$$ "$cache_file" ;; #(
31112 mv -f confcache "$cache_file" ;;
31117 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
31118 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
31123 test "x$prefix" = xNONE && prefix=$ac_default_prefix
31124 # Let make expand exec_prefix.
31125 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
31127 DEFS=-DHAVE_CONFIG_H
31132 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
31133 # 1. Remove the extension, and $U if already installed.
31134 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
31135 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
31136 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
31137 # will be set to the directory where LIBOBJS objects are built.
31138 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
31139 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
31141 LIBOBJS=$ac_libobjs
31143 LTLIBOBJS=$ac_ltlibobjs
31148 : "${CONFIG_STATUS=./config.status}"
31150 ac_clean_files_save=$ac_clean_files
31151 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
31152 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
31153 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
31155 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
31157 # Generated by $as_me.
31158 # Run this file to recreate the current configuration.
31159 # Compiler output produced by configure, useful for debugging
31160 # configure, is in config.log if it exists.
31163 ac_cs_recheck=false
31166 SHELL=\${CONFIG_SHELL-$SHELL}
31169 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
31170 ## -------------------- ##
31171 ## M4sh Initialization. ##
31172 ## -------------------- ##
31174 # Be more Bourne compatible
31175 DUALCASE=1; export DUALCASE # for MKS sh
31176 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
31179 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
31180 # is contrary to our usage. Disable this feature.
31181 alias -g '${1+"$@"}'='"$@"'
31182 setopt NO_GLOB_SUBST
31184 case `(set -o) 2>/dev/null` in #(
31196 # Printing a long string crashes Solaris 7 /usr/bin/printf.
31197 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
31198 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
31199 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
31200 # Prefer a ksh shell builtin over an external printf program on Solaris,
31201 # but without wasting forks for bash or zsh.
31202 if test -z "$BASH_VERSION$ZSH_VERSION" \
31203 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
31204 as_echo='print -r --'
31205 as_echo_n='print -rn --'
31206 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
31207 as_echo='printf %s\n'
31208 as_echo_n='printf %s'
31210 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
31211 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
31212 as_echo_n='/usr/ucb/echo -n'
31214 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
31215 as_echo_n_body='eval
31219 expr "X$arg" : "X\\(.*\\)$as_nl";
31220 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
31222 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
31224 export as_echo_n_body
31225 as_echo_n='sh -c $as_echo_n_body as_echo'
31227 export as_echo_body
31228 as_echo='sh -c $as_echo_body as_echo'
31231 # The user is always right.
31232 if test "${PATH_SEPARATOR+set}" != set; then
31234 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
31235 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
31242 # We need space, tab and new line, in precisely that order. Quoting is
31243 # there to prevent editors from complaining about space-tab.
31244 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
31245 # splitting by setting IFS to empty value.)
31248 # Find who we are. Look in the path if we contain no directory separator.
31251 *[\\/]* ) as_myself=$0 ;;
31252 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31253 for as_dir in $PATH
31256 test -z "$as_dir" && as_dir=.
31257 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
31263 # We did not find ourselves, most probably we were run as `sh COMMAND'
31264 # in which case we are not to be found in the path.
31265 if test "x$as_myself" = x; then
31268 if test ! -f "$as_myself"; then
31269 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
31273 # Unset variables that we do not need and which cause bugs (e.g. in
31274 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
31275 # suppresses any "Segmentation fault" message there. '((' could
31276 # trigger a bug in pdksh 5.2.14.
31277 for as_var in BASH_ENV ENV MAIL MAILPATH
31278 do eval test x\${$as_var+set} = xset \
31279 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
31292 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
31295 # as_fn_error STATUS ERROR [LINENO LOG_FD]
31296 # ----------------------------------------
31297 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
31298 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
31299 # script with STATUS, using 1 if that was 0.
31302 as_status=$1; test $as_status -eq 0 && as_status=1
31304 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
31305 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
31307 $as_echo "$as_me: error: $2" >&2
31308 as_fn_exit $as_status
31312 # as_fn_set_status STATUS
31313 # -----------------------
31314 # Set $? to STATUS, without forking.
31315 as_fn_set_status ()
31318 } # as_fn_set_status
31320 # as_fn_exit STATUS
31321 # -----------------
31322 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
31326 as_fn_set_status $1
31332 # Portably unset VAR.
31335 { eval $1=; unset $1;}
31337 as_unset=as_fn_unset
31338 # as_fn_append VAR VALUE
31339 # ----------------------
31340 # Append the text in VALUE to the end of the definition contained in VAR. Take
31341 # advantage of any shell optimizations that allow amortized linear growth over
31342 # repeated appends, instead of the typical quadratic growth present in naive
31344 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
31345 eval 'as_fn_append ()
31356 # as_fn_arith ARG...
31357 # ------------------
31358 # Perform arithmetic evaluation on the ARGs, and store the result in the
31359 # global $as_val. Take advantage of shells that can avoid forks. The arguments
31360 # must be portable across $(()) and expr.
31361 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
31362 eval 'as_fn_arith ()
31369 as_val=`expr "$@" || test $? -eq 1`
31374 if expr a : '\(a\)' >/dev/null 2>&1 &&
31375 test "X`expr 00001 : '.*\(...\)'`" = X001; then
31381 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
31382 as_basename=basename
31387 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
31393 as_me=`$as_basename -- "$0" ||
31394 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
31395 X"$0" : 'X\(//\)$' \| \
31396 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
31398 sed '/^.*\/\([^/][^/]*\)\/*$/{
31412 # Avoid depending upon Character Ranges.
31413 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
31414 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
31415 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
31416 as_cr_digits='0123456789'
31417 as_cr_alnum=$as_cr_Letters$as_cr_digits
31419 ECHO_C= ECHO_N= ECHO_T=
31420 case `echo -n x` in #(((((
31422 case `echo 'xy\c'` in
31423 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
31425 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
31432 rm -f conf$$ conf$$.exe conf$$.file
31433 if test -d conf$$.dir; then
31434 rm -f conf$$.dir/conf$$.file
31437 mkdir conf$$.dir 2>/dev/null
31439 if (echo >conf$$.file) 2>/dev/null; then
31440 if ln -s conf$$.file conf$$ 2>/dev/null; then
31442 # ... but there are two gotchas:
31443 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
31444 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
31445 # In both cases, we have to default to `cp -pR'.
31446 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
31448 elif ln conf$$.file conf$$ 2>/dev/null; then
31456 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
31457 rmdir conf$$.dir 2>/dev/null
31462 # Create "$as_dir" as a directory, including parents if necessary.
31467 -*) as_dir=./$as_dir;;
31469 test -d "$as_dir" || eval $as_mkdir_p || {
31473 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
31474 *) as_qdir=$as_dir;;
31476 as_dirs="'$as_qdir' $as_dirs"
31477 as_dir=`$as_dirname -- "$as_dir" ||
31478 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31479 X"$as_dir" : 'X\(//\)[^/]' \| \
31480 X"$as_dir" : 'X\(//\)$' \| \
31481 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
31482 $as_echo X"$as_dir" |
31483 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31487 /^X\(\/\/\)[^/].*/{
31500 test -d "$as_dir" && break
31502 test -z "$as_dirs" || eval "mkdir $as_dirs"
31503 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
31507 if mkdir -p . 2>/dev/null; then
31508 as_mkdir_p='mkdir -p "$as_dir"'
31510 test -d ./-p && rmdir ./-p
31515 # as_fn_executable_p FILE
31516 # -----------------------
31517 # Test if FILE is an executable regular file.
31518 as_fn_executable_p ()
31520 test -f "$1" && test -x "$1"
31521 } # as_fn_executable_p
31522 as_test_x='test -x'
31523 as_executable_p=as_fn_executable_p
31525 # Sed expression to map a string onto a valid CPP name.
31526 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
31528 # Sed expression to map a string onto a valid variable name.
31529 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
31533 ## ----------------------------------- ##
31534 ## Main body of $CONFIG_STATUS script. ##
31535 ## ----------------------------------- ##
31537 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
31539 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31540 # Save the log message, to keep $0 and so on meaningful, and to
31541 # report actual input values of CONFIG_FILES etc. instead of their
31542 # values after options handling.
31544 This file was extended by bacula $as_me 9.0.3, which was
31545 generated by GNU Autoconf 2.69. Invocation command line was
31547 CONFIG_FILES = $CONFIG_FILES
31548 CONFIG_HEADERS = $CONFIG_HEADERS
31549 CONFIG_LINKS = $CONFIG_LINKS
31550 CONFIG_COMMANDS = $CONFIG_COMMANDS
31553 on `(hostname || uname -n) 2>/dev/null | sed 1q`
31558 case $ac_config_files in *"
31559 "*) set x $ac_config_files; shift; ac_config_files=$*;;
31562 case $ac_config_headers in *"
31563 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
31567 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31568 # Files that config.status was made for.
31569 config_files="$ac_config_files"
31570 config_headers="$ac_config_headers"
31571 config_commands="$ac_config_commands"
31575 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31577 \`$as_me' instantiates files and other configuration actions
31578 from templates according to the current configuration. Unless the files
31579 and actions are specified as TAGs, all are instantiated by default.
31581 Usage: $0 [OPTION]... [TAG]...
31583 -h, --help print this help, then exit
31584 -V, --version print version number and configuration settings, then exit
31585 --config print configuration, then exit
31586 -q, --quiet, --silent
31587 do not print progress messages
31588 -d, --debug don't remove temporary files
31589 --recheck update $as_me by reconfiguring in the same conditions
31590 --file=FILE[:TEMPLATE]
31591 instantiate the configuration file FILE
31592 --header=FILE[:TEMPLATE]
31593 instantiate the configuration header FILE
31595 Configuration files:
31598 Configuration headers:
31601 Configuration commands:
31604 Report bugs to the package provider."
31607 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31608 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
31610 bacula config.status 9.0.3
31611 configured by $0, generated by GNU Autoconf 2.69,
31612 with options \\"\$ac_cs_config\\"
31614 Copyright (C) 2012 Free Software Foundation, Inc.
31615 This config.status script is free software; the Free Software Foundation
31616 gives unlimited permission to copy, distribute and modify it."
31622 test -n "\$AWK" || AWK=awk
31625 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31626 # The default lists apply if the user does not specify any file.
31632 ac_option=`expr "X$1" : 'X\([^=]*\)='`
31633 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
31637 ac_option=`expr "X$1" : 'X\([^=]*\)='`
31649 # Handling of the options.
31650 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
31652 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
31653 $as_echo "$ac_cs_version"; exit ;;
31654 --config | --confi | --conf | --con | --co | --c )
31655 $as_echo "$ac_cs_config"; exit ;;
31656 --debug | --debu | --deb | --de | --d | -d )
31658 --file | --fil | --fi | --f )
31661 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
31662 '') as_fn_error $? "missing file argument" ;;
31664 as_fn_append CONFIG_FILES " '$ac_optarg'"
31665 ac_need_defaults=false;;
31666 --header | --heade | --head | --hea )
31669 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
31671 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
31672 ac_need_defaults=false;;
31674 # Conflict between --help and --header
31675 as_fn_error $? "ambiguous option: \`$1'
31676 Try \`$0 --help' for more information.";;
31677 --help | --hel | -h )
31678 $as_echo "$ac_cs_usage"; exit ;;
31679 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
31680 | -silent | --silent | --silen | --sile | --sil | --si | --s)
31683 # This is an error.
31684 -*) as_fn_error $? "unrecognized option: \`$1'
31685 Try \`$0 --help' for more information." ;;
31687 *) as_fn_append ac_config_targets " $1"
31688 ac_need_defaults=false ;;
31694 ac_configure_extra_args=
31696 if $ac_cs_silent; then
31698 ac_configure_extra_args="$ac_configure_extra_args --silent"
31702 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31703 if \$ac_cs_recheck; then
31704 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
31706 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
31707 CONFIG_SHELL='$SHELL'
31708 export CONFIG_SHELL
31713 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31717 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
31718 ## Running $as_me. ##
31724 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31730 # The HP-UX ksh and POSIX shell print the target directory to stdout
31731 # if CDPATH is set.
31732 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
31734 sed_quote_subst='$sed_quote_subst'
31735 double_quote_subst='$double_quote_subst'
31736 delay_variable_subst='$delay_variable_subst'
31737 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
31738 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
31739 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
31740 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
31741 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
31742 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
31743 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
31744 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
31745 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
31746 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
31747 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
31748 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
31749 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
31750 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
31751 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
31752 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
31753 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
31754 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
31755 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
31756 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
31757 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
31758 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
31759 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
31760 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
31761 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
31762 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
31763 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
31764 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
31765 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
31766 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
31767 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
31768 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
31769 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
31770 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
31771 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
31772 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
31773 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
31774 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
31775 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
31776 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
31777 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
31778 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
31779 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
31780 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
31781 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
31782 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
31783 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
31784 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
31785 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
31786 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
31787 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
31788 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
31789 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
31790 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
31791 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
31792 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
31793 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"`'
31794 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
31795 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
31796 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
31797 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
31798 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
31799 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
31800 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
31801 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
31802 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
31803 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
31804 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
31805 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
31806 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
31807 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
31808 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
31809 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
31810 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
31811 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
31812 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
31813 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
31814 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
31815 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
31816 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
31817 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
31818 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
31819 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
31820 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
31821 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
31822 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
31823 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
31824 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
31825 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
31826 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
31827 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
31828 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
31829 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
31830 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
31831 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
31832 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
31833 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
31834 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
31835 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
31836 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
31837 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
31838 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
31839 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
31840 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
31841 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
31842 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
31843 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
31844 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
31845 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
31846 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
31847 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
31848 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
31849 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
31850 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
31851 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
31852 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
31853 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
31854 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
31855 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
31856 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
31857 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
31858 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
31859 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
31860 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
31861 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
31862 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
31863 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
31864 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
31865 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
31866 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
31867 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
31868 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
31869 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
31870 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
31871 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
31872 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
31873 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
31874 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
31875 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31876 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31877 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
31878 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
31879 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
31880 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
31881 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
31882 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
31883 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
31884 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
31885 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
31886 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
31887 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
31888 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
31889 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31890 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31891 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31892 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31893 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31894 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31895 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
31896 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
31897 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
31898 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
31899 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
31900 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
31901 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
31902 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
31903 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
31904 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
31905 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
31906 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
31907 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
31908 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31909 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
31910 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
31911 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31912 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31913 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
31914 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
31915 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
31916 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
31917 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
31918 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
31919 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
31920 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
31923 LTCFLAGS='$LTCFLAGS'
31924 compiler='$compiler_DEFAULT'
31926 # A function that is used when there is no print builtin or printf.
31927 func_fallback_echo ()
31929 eval 'cat <<_LTECHO_EOF
31934 # Quote evaled strings.
31949 deplibs_check_method \
31954 sharedlib_from_linklib_cmd \
31957 archiver_list_spec \
31963 lt_cv_sys_global_symbol_pipe \
31964 lt_cv_sys_global_symbol_to_cdecl \
31965 lt_cv_sys_global_symbol_to_c_name_address \
31966 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
31967 nm_file_list_spec \
31968 lt_prog_compiler_no_builtin_flag \
31969 lt_prog_compiler_pic \
31970 lt_prog_compiler_wl \
31971 lt_prog_compiler_static \
31972 lt_cv_prog_compiler_c_o \
31981 export_dynamic_flag_spec \
31982 whole_archive_flag_spec \
31983 compiler_needs_object \
31985 allow_undefined_flag \
31986 no_undefined_flag \
31987 hardcode_libdir_flag_spec \
31988 hardcode_libdir_separator \
31992 variables_saved_for_relink \
31994 library_names_spec \
31996 install_override_mode \
32000 compiler_lib_search_dirs \
32005 compiler_lib_search_path \
32009 lt_prog_compiler_no_builtin_flag_CXX \
32010 lt_prog_compiler_pic_CXX \
32011 lt_prog_compiler_wl_CXX \
32012 lt_prog_compiler_static_CXX \
32013 lt_cv_prog_compiler_c_o_CXX \
32014 export_dynamic_flag_spec_CXX \
32015 whole_archive_flag_spec_CXX \
32016 compiler_needs_object_CXX \
32018 allow_undefined_flag_CXX \
32019 no_undefined_flag_CXX \
32020 hardcode_libdir_flag_spec_CXX \
32021 hardcode_libdir_separator_CXX \
32022 exclude_expsyms_CXX \
32023 include_expsyms_CXX \
32024 file_list_spec_CXX \
32025 compiler_lib_search_dirs_CXX \
32026 predep_objects_CXX \
32027 postdep_objects_CXX \
32030 compiler_lib_search_path_CXX; do
32031 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
32032 *[\\\\\\\`\\"\\\$]*)
32033 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
32036 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
32041 # Double-quote double-evaled strings.
32042 for var in reload_cmds \
32043 old_postinstall_cmds \
32044 old_postuninstall_cmds \
32046 extract_expsyms_cmds \
32047 old_archive_from_new_cmds \
32048 old_archive_from_expsyms_cmds \
32050 archive_expsym_cmds \
32052 module_expsym_cmds \
32053 export_symbols_cmds \
32057 postuninstall_cmds \
32059 sys_lib_search_path_spec \
32060 sys_lib_dlsearch_path_spec \
32062 old_archive_cmds_CXX \
32063 old_archive_from_new_cmds_CXX \
32064 old_archive_from_expsyms_cmds_CXX \
32066 archive_expsym_cmds_CXX \
32068 module_expsym_cmds_CXX \
32069 export_symbols_cmds_CXX \
32071 postlink_cmds_CXX; do
32072 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
32073 *[\\\\\\\`\\"\\\$]*)
32074 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
32077 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
32082 ac_aux_dir='$ac_aux_dir'
32083 xsi_shell='$xsi_shell'
32084 lt_shell_append='$lt_shell_append'
32086 # See if we are running on zsh, and set the options which allow our
32087 # commands through without removal of \ escapes INIT.
32088 if test -n "\${ZSH_VERSION+set}" ; then
32089 setopt NO_GLOB_SUBST
32095 TIMESTAMP='$TIMESTAMP'
32103 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
32104 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
32106 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
32107 # Capture the value of LINGUAS because we need it to compute CATALOGS.
32108 LINGUAS="${LINGUAS-%UNSET%}"
32113 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32115 # Handling of arguments.
32116 for ac_config_target in $ac_config_targets
32118 case $ac_config_target in
32119 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
32120 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
32121 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
32122 "autoconf/Make.common") CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
32123 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
32124 "manpages/Makefile") CONFIG_FILES="$CONFIG_FILES manpages/Makefile" ;;
32125 "scripts/btraceback") CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
32126 "scripts/bconsole") CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
32127 "scripts/baculabackupreport") CONFIG_FILES="$CONFIG_FILES scripts/baculabackupreport" ;;
32128 "scripts/bacula") CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
32129 "scripts/bacula-ctl-dir") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-dir" ;;
32130 "scripts/bacula-ctl-fd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-fd" ;;
32131 "scripts/bacula-ctl-sd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-sd" ;;
32132 "scripts/devel_bacula") CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
32133 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
32134 "scripts/logrotate") CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
32135 "scripts/mtx-changer") CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
32136 "scripts/disk-changer") CONFIG_FILES="$CONFIG_FILES scripts/disk-changer" ;;
32137 "scripts/dvd-handler") CONFIG_FILES="$CONFIG_FILES scripts/dvd-handler" ;;
32138 "scripts/dvd-simulator") CONFIG_FILES="$CONFIG_FILES scripts/dvd-simulator" ;;
32139 "scripts/logwatch/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/Makefile" ;;
32140 "scripts/logwatch/logfile.bacula.conf") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/logfile.bacula.conf" ;;
32141 "scripts/bat.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop" ;;
32142 "scripts/bat.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.xsu" ;;
32143 "scripts/bat.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.consolehelper" ;;
32144 "scripts/bat.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bat.console_apps" ;;
32145 "scripts/bacula-tray-monitor.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bacula-tray-monitor.desktop" ;;
32146 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
32147 "src/host.h") CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
32148 "src/console/Makefile") CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
32149 "src/console/bconsole.conf") CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
32150 "src/qt-console/bat.conf") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.conf" ;;
32151 "src/qt-console/bat.pro") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro" ;;
32152 "src/qt-console/bat.pro.mingw32") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro.mingw32" ;;
32153 "src/qt-console/bat.pro.mingw64") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro.mingw64" ;;
32154 "src/qt-console/install_conf_file") CONFIG_FILES="$CONFIG_FILES src/qt-console/install_conf_file" ;;
32155 "src/qt-console/tray-monitor/tray-monitor.conf") CONFIG_FILES="$CONFIG_FILES src/qt-console/tray-monitor/tray-monitor.conf" ;;
32156 "src/qt-console/tray-monitor/tray-monitor.pro") CONFIG_FILES="$CONFIG_FILES src/qt-console/tray-monitor/tray-monitor.pro" ;;
32157 "src/qt-console/tray-monitor/tray-monitor.pro.mingw32") CONFIG_FILES="$CONFIG_FILES src/qt-console/tray-monitor/tray-monitor.pro.mingw32" ;;
32158 "src/qt-console/tray-monitor/tray-monitor.pro.mingw64") CONFIG_FILES="$CONFIG_FILES src/qt-console/tray-monitor/tray-monitor.pro.mingw64" ;;
32159 "src/dird/Makefile") CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
32160 "src/dird/bacula-dir.conf") CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
32161 "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
32162 "src/stored/Makefile") CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
32163 "src/stored/bacula-sd.conf") CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
32164 "src/filed/Makefile") CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
32165 "src/filed/bacula-fd.conf") CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
32166 "src/cats/Makefile") CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
32167 "src/cats/make_catalog_backup.pl") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup.pl" ;;
32168 "src/cats/make_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
32169 "src/cats/delete_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
32170 "src/cats/create_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
32171 "src/cats/update_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
32172 "src/cats/make_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
32173 "src/cats/grant_postgresql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
32174 "src/cats/drop_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
32175 "src/cats/drop_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
32176 "src/cats/create_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
32177 "src/cats/update_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
32178 "src/cats/make_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
32179 "src/cats/grant_mysql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
32180 "src/cats/drop_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
32181 "src/cats/drop_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
32182 "src/cats/create_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite3_database" ;;
32183 "src/cats/update_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite3_tables" ;;
32184 "src/cats/make_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite3_tables" ;;
32185 "src/cats/grant_sqlite3_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite3_privileges" ;;
32186 "src/cats/drop_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_tables" ;;
32187 "src/cats/drop_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_database" ;;
32188 "src/cats/sqlite") CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
32189 "src/cats/mysql") CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
32190 "src/cats/create_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
32191 "src/cats/update_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
32192 "src/cats/grant_bacula_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
32193 "src/cats/make_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
32194 "src/cats/drop_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
32195 "src/cats/drop_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
32196 "src/cats/install-default-backend") CONFIG_FILES="$CONFIG_FILES src/cats/install-default-backend" ;;
32197 "src/findlib/Makefile") CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
32198 "src/tools/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
32199 "src/plugins/fd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/fd/Makefile" ;;
32200 "src/plugins/sd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/sd/Makefile" ;;
32201 "src/plugins/dir/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/dir/Makefile" ;;
32202 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
32203 "updatedb/update_mysql_tables") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables" ;;
32204 "updatedb/update_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables" ;;
32205 "updatedb/update_postgresql_tables") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables" ;;
32206 "updatedb/update_mysql_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_9_to_10" ;;
32207 "updatedb/update_sqlite3_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_9_to_10" ;;
32208 "updatedb/update_postgresql_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_9_to_10" ;;
32209 "updatedb/update_mysql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_10_to_11" ;;
32210 "updatedb/update_sqlite3_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_10_to_11" ;;
32211 "updatedb/update_postgresql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_10_to_11" ;;
32212 "updatedb/update_mysql_tables_11_to_12") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_11_to_12" ;;
32213 "updatedb/update_sqlite3_tables_11_to_12") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_11_to_12" ;;
32214 "updatedb/update_postgresql_tables_11_to_12") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_11_to_12" ;;
32215 "examples/nagios/check_bacula/Makefile") CONFIG_FILES="$CONFIG_FILES examples/nagios/check_bacula/Makefile" ;;
32216 "platforms/rpms/redhat/bacula.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/redhat/bacula.spec" ;;
32217 "platforms/rpms/redhat/bacula-bat.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/redhat/bacula-bat.spec" ;;
32218 "platforms/rpms/redhat/bacula-docs.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/redhat/bacula-docs.spec" ;;
32219 "platforms/rpms/redhat/bacula-mtx.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/redhat/bacula-mtx.spec" ;;
32220 "platforms/rpms/suse/bacula.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/suse/bacula.spec" ;;
32221 "platforms/rpms/suse/bacula-bat.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/suse/bacula-bat.spec" ;;
32222 "platforms/rpms/suse/bacula-docs.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/suse/bacula-docs.spec" ;;
32223 "platforms/rpms/suse/bacula-mtx.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/suse/bacula-mtx.spec" ;;
32224 "$PFILES") CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
32225 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
32227 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
32232 # If the user did not use the arguments to specify the items to instantiate,
32233 # then the envvar interface is used. Set only those that are not.
32234 # We use the long form for the default assignment because of an extremely
32235 # bizarre bug on SunOS 4.1.3.
32236 if $ac_need_defaults; then
32237 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
32238 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
32239 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
32242 # Have a temporary directory for convenience. Make it in the build tree
32243 # simply because there is no reason against having it here, and in addition,
32244 # creating and moving files from /tmp can sometimes cause problems.
32245 # Hook for its removal unless debugging.
32246 # Note that there is a small window in which the directory will not be cleaned:
32247 # after its creation but before its name has been assigned to `$tmp'.
32251 trap 'exit_status=$?
32252 : "${ac_tmp:=$tmp}"
32253 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
32255 trap 'as_fn_exit 1' 1 2 13 15
32257 # Create a (secure) tmp directory for tmp files.
32260 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
32264 tmp=./conf$$-$RANDOM
32265 (umask 077 && mkdir "$tmp")
32266 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
32269 # Set up the scripts for CONFIG_FILES section.
32270 # No need to generate them if there are no CONFIG_FILES.
32271 # This happens for instance with `./config.status config.h'.
32272 if test -n "$CONFIG_FILES"; then
32274 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
32275 ac_cs_awk_getline=:
32276 ac_cs_awk_pipe_init=
32277 ac_cs_awk_read_file='
32278 while ((getline aline < (F[key])) > 0)
32281 ac_cs_awk_pipe_fini=
32283 ac_cs_awk_getline=false
32284 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
32285 ac_cs_awk_read_file='
32287 print "cat " F[key] " &&"
32288 '$ac_cs_awk_pipe_init
32289 # The final `:' finishes the AND list.
32290 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
32292 ac_cr=`echo X | tr X '\015'`
32293 # On cygwin, bash can eat \r inside `` if the user requested igncr.
32294 # But we know of no other shell where ac_cr would be empty at this
32295 # point, so we can use a bashism as a fallback.
32296 if test "x$ac_cr" = x; then
32297 eval ac_cr=\$\'\\r\'
32299 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
32300 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
32303 ac_cs_awk_cr=$ac_cr
32306 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
32309 # Create commands to substitute file output variables.
32311 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
32312 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
32313 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
32316 } >conf$$files.sh &&
32317 . ./conf$$files.sh ||
32318 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
32319 rm -f conf$$files.sh
32322 echo "cat >conf$$subs.awk <<_ACEOF" &&
32323 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
32325 } >conf$$subs.sh ||
32326 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
32327 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
32329 for ac_last_try in false false false false false :; do
32330 . ./conf$$subs.sh ||
32331 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
32333 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
32334 if test $ac_delim_n = $ac_delim_num; then
32336 elif $ac_last_try; then
32337 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
32339 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
32342 rm -f conf$$subs.sh
32344 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32345 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
32349 s/^/S["/; s/!.*/"]=/
32359 s/\(.\{148\}\)..*/\1/
32361 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
32366 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
32373 s/\(.\{148\}\)..*/\1/
32375 s/["\\]/\\&/g; s/^/"/; s/$/"/
32379 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
32384 ' <conf$$subs.awk | sed '
32389 ' >>$CONFIG_STATUS || ac_write_fail=1
32390 rm -f conf$$subs.awk
32391 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32393 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
32394 for (key in S) S_is_set[key] = 1
32396 \$ac_cs_awk_pipe_init
32400 nfields = split(line, field, "@")
32402 len = length(field[1])
32403 for (i = 2; i < nfields; i++) {
32405 keylen = length(key)
32406 if (S_is_set[key]) {
32408 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
32409 len += length(value) + length(field[++i])
32414 if (nfields == 3 && !substed) {
32416 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
32417 \$ac_cs_awk_read_file
32423 \$ac_cs_awk_pipe_fini
32426 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32427 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
32428 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
32431 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
32432 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
32435 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
32436 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
32437 # trailing colons and then remove the whole line if VPATH becomes empty
32438 # (actually we leave an empty line to preserve line numbers).
32439 if test "x$srcdir" = x.; then
32440 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
32458 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32459 fi # test -n "$CONFIG_FILES"
32461 # Set up the scripts for CONFIG_HEADERS section.
32462 # No need to generate them if there are no CONFIG_HEADERS.
32463 # This happens for instance with `./config.status Makefile'.
32464 if test -n "$CONFIG_HEADERS"; then
32465 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
32469 # Transform confdefs.h into an awk script `defines.awk', embedded as
32470 # here-document in config.status, that substitutes the proper values into
32471 # config.h.in to produce config.h.
32473 # Create a delimiter string that does not exist in confdefs.h, to ease
32474 # handling of long lines.
32476 for ac_last_try in false false :; do
32477 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
32478 if test -z "$ac_tt"; then
32480 elif $ac_last_try; then
32481 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
32483 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
32487 # For the awk script, D is an array of macro values keyed by name,
32488 # likewise P contains macro parameters if any. Preserve backslash
32489 # newline sequences.
32491 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
32493 s/.\{148\}/&'"$ac_delim"'/g
32496 s/^[ ]*#[ ]*define[ ][ ]*/ /
32503 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
32505 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
32509 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
32510 D["\1"]=" \3\\\\\\n"\\/p
32512 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
32517 s/.\{148\}/&'"$ac_delim"'/g
32522 s/["\\]/\\&/g; s/^/"/; s/$/"/p
32525 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
32527 ' <confdefs.h | sed '
32528 s/'"$ac_delim"'/"\\\
32529 "/g' >>$CONFIG_STATUS || ac_write_fail=1
32531 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32532 for (key in D) D_is_set[key] = 1
32535 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
32537 split(line, arg, " ")
32538 if (arg[1] == "#") {
32542 defundef = substr(arg[1], 2)
32545 split(mac1, mac2, "(") #)
32547 prefix = substr(line, 1, index(line, defundef) - 1)
32548 if (D_is_set[macro]) {
32549 # Preserve the white space surrounding the "#".
32550 print prefix "define", macro P[macro] D[macro]
32553 # Replace #undef with comments. This is necessary, for example,
32554 # in the case of _POSIX_SOURCE, which is predefined and required
32555 # on some systems where configure will not decide to define it.
32556 if (defundef == "undef") {
32557 print "/*", prefix defundef, macro, "*/"
32565 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32566 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
32567 fi # test -n "$CONFIG_HEADERS"
32570 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
32575 :[FHLC]) ac_mode=$ac_tag; continue;;
32577 case $ac_mode$ac_tag in
32579 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
32580 :[FH]-) ac_tag=-:-;;
32581 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
32598 -) ac_f="$ac_tmp/stdin";;
32599 *) # Look for the file first in the build tree, then in the source tree
32600 # (if the path is not absolute). The absolute path cannot be DOS-style,
32601 # because $ac_f cannot contain `:'.
32605 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
32607 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
32609 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
32610 as_fn_append ac_file_inputs " '$ac_f'"
32613 # Let's still pretend it is `configure' which instantiates (i.e., don't
32614 # use $as_me), people would be surprised to read:
32615 # /* config.h. Generated by config.status. */
32616 configure_input='Generated from '`
32617 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
32619 if test x"$ac_file" != x-; then
32620 configure_input="$ac_file. $configure_input"
32621 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
32622 $as_echo "$as_me: creating $ac_file" >&6;}
32624 # Neutralize special characters interpreted by sed in replacement strings.
32625 case $configure_input in #(
32626 *\&* | *\|* | *\\* )
32627 ac_sed_conf_input=`$as_echo "$configure_input" |
32628 sed 's/[\\\\&|]/\\\\&/g'`;; #(
32629 *) ac_sed_conf_input=$configure_input;;
32633 *:-:* | *:-) cat >"$ac_tmp/stdin" \
32634 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
32639 ac_dir=`$as_dirname -- "$ac_file" ||
32640 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32641 X"$ac_file" : 'X\(//\)[^/]' \| \
32642 X"$ac_file" : 'X\(//\)$' \| \
32643 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
32644 $as_echo X"$ac_file" |
32645 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32649 /^X\(\/\/\)[^/].*/{
32662 as_dir="$ac_dir"; as_fn_mkdir_p
32666 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
32668 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
32669 # A ".." for each directory in $ac_dir_suffix.
32670 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
32671 case $ac_top_builddir_sub in
32672 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
32673 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
32676 ac_abs_top_builddir=$ac_pwd
32677 ac_abs_builddir=$ac_pwd$ac_dir_suffix
32678 # for backward compatibility:
32679 ac_top_builddir=$ac_top_build_prefix
32682 .) # We are building in place.
32684 ac_top_srcdir=$ac_top_builddir_sub
32685 ac_abs_top_srcdir=$ac_pwd ;;
32686 [\\/]* | ?:[\\/]* ) # Absolute name.
32687 ac_srcdir=$srcdir$ac_dir_suffix;
32688 ac_top_srcdir=$srcdir
32689 ac_abs_top_srcdir=$srcdir ;;
32690 *) # Relative name.
32691 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
32692 ac_top_srcdir=$ac_top_build_prefix$srcdir
32693 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
32695 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
32705 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
32706 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
32710 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32711 # If the template does not know about datarootdir, expand it.
32712 # FIXME: This hack should be removed a few years after 2.60.
32713 ac_datarootdir_hack=; ac_datarootdir_seen=
32724 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
32725 *datarootdir*) ac_datarootdir_seen=yes;;
32726 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
32727 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
32728 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
32730 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32731 ac_datarootdir_hack='
32732 s&@datadir@&$datadir&g
32733 s&@docdir@&$docdir&g
32734 s&@infodir@&$infodir&g
32735 s&@localedir@&$localedir&g
32736 s&@mandir@&$mandir&g
32737 s&\\\${datarootdir}&$datarootdir&g' ;;
32741 # Neutralize VPATH when `$srcdir' = `.'.
32742 # Shell code in configure.ac might set extrasub.
32743 # FIXME: do we really want to maintain this feature?
32744 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32745 ac_sed_extra="$ac_vpsub
32748 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32750 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
32751 s|@configure_input@|$ac_sed_conf_input|;t t
32752 s&@top_builddir@&$ac_top_builddir_sub&;t t
32753 s&@top_build_prefix@&$ac_top_build_prefix&;t t
32754 s&@srcdir@&$ac_srcdir&;t t
32755 s&@abs_srcdir@&$ac_abs_srcdir&;t t
32756 s&@top_srcdir@&$ac_top_srcdir&;t t
32757 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
32758 s&@builddir@&$ac_builddir&;t t
32759 s&@abs_builddir@&$ac_abs_builddir&;t t
32760 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
32761 s&@INSTALL@&$ac_INSTALL&;t t
32762 $ac_datarootdir_hack
32764 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
32765 if $ac_cs_awk_getline; then
32766 $AWK -f "$ac_tmp/subs.awk"
32768 $AWK -f "$ac_tmp/subs.awk" | $SHELL
32770 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32772 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
32773 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
32774 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
32775 "$ac_tmp/out"`; test -z "$ac_out"; } &&
32776 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
32777 which seems to be undefined. Please make sure it is defined" >&5
32778 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
32779 which seems to be undefined. Please make sure it is defined" >&2;}
32781 rm -f "$ac_tmp/stdin"
32783 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
32784 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
32786 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32792 if test x"$ac_file" != x-; then
32794 $as_echo "/* $configure_input */" \
32795 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
32796 } >"$ac_tmp/config.h" \
32797 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32798 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
32799 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
32800 $as_echo "$as_me: $ac_file is unchanged" >&6;}
32803 mv "$ac_tmp/config.h" "$ac_file" \
32804 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32807 $as_echo "/* $configure_input */" \
32808 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
32809 || as_fn_error $? "could not create -" "$LINENO" 5
32813 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
32814 $as_echo "$as_me: executing $ac_file commands" >&6;}
32819 case $ac_file$ac_mode in
32822 # See if we are running on zsh, and set the options which allow our
32823 # commands through without removal of \ escapes.
32824 if test -n "${ZSH_VERSION+set}" ; then
32825 setopt NO_GLOB_SUBST
32828 cfgfile="${ofile}T"
32829 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
32832 cat <<_LT_EOF >> "$cfgfile"
32835 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
32836 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
32837 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
32838 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
32840 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
32841 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
32843 # Written by Gordon Matzigkeit, 1996
32845 # This file is part of GNU Libtool.
32847 # GNU Libtool is free software; you can redistribute it and/or
32848 # modify it under the terms of the GNU General Public License as
32849 # published by the Free Software Foundation; either version 2 of
32850 # the License, or (at your option) any later version.
32852 # As a special exception to the GNU General Public License,
32853 # if you distribute this file as part of a program or library that
32854 # is built using GNU Libtool, you may include this file under the
32855 # same distribution terms that you use for the rest of that program.
32857 # GNU Libtool is distributed in the hope that it will be useful,
32858 # but WITHOUT ANY WARRANTY; without even the implied warranty of
32859 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
32860 # GNU General Public License for more details.
32862 # You should have received a copy of the GNU General Public License
32863 # along with GNU Libtool; see the file COPYING. If not, a copy
32864 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
32865 # obtained by writing to the Free Software Foundation, Inc.,
32866 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
32869 # The names of the tagged configurations supported by this script.
32870 available_tags="CXX "
32872 # ### BEGIN LIBTOOL CONFIG
32874 # Which release of libtool.m4 was used?
32875 macro_version=$macro_version
32876 macro_revision=$macro_revision
32878 # Whether or not to build shared libraries.
32879 build_libtool_libs=$enable_shared
32881 # Whether or not to build static libraries.
32882 build_old_libs=$enable_static
32884 # What type of objects to build.
32887 # Whether or not to optimize for fast installation.
32888 fast_install=$enable_fast_install
32890 # Shell to use when invoking shell scripts.
32893 # An echo program that protects backslashes.
32896 # The PATH separator for the build system.
32897 PATH_SEPARATOR=$lt_PATH_SEPARATOR
32900 host_alias=$host_alias
32904 # The build system.
32905 build_alias=$build_alias
32909 # A sed program that does not truncate output.
32912 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
32913 Xsed="\$SED -e 1s/^X//"
32915 # A grep program that handles long lines.
32921 # A literal string matcher.
32924 # A BSD- or MS-compatible name lister.
32927 # Whether we need soft or hard links.
32930 # What is the maximum length of a command?
32931 max_cmd_len=$max_cmd_len
32933 # Object file suffix (normally "o").
32936 # Executable file suffix (normally "").
32939 # whether the shell understands "unset".
32942 # turn spaces into newlines.
32945 # turn newlines into spaces.
32948 # convert \$build file names to \$host format.
32949 to_host_file_cmd=$lt_cv_to_host_file_cmd
32951 # convert \$build files to toolchain format.
32952 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
32954 # An object symbol dumper.
32955 OBJDUMP=$lt_OBJDUMP
32957 # Method to check whether dependent libraries are shared objects.
32958 deplibs_check_method=$lt_deplibs_check_method
32960 # Command to use when deplibs_check_method = "file_magic".
32961 file_magic_cmd=$lt_file_magic_cmd
32963 # How to find potential files when deplibs_check_method = "file_magic".
32964 file_magic_glob=$lt_file_magic_glob
32966 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
32967 want_nocaseglob=$lt_want_nocaseglob
32969 # DLL creation program.
32970 DLLTOOL=$lt_DLLTOOL
32972 # Command to associate shared and link libraries.
32973 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
32978 # Flags to create an archive.
32979 AR_FLAGS=$lt_AR_FLAGS
32981 # How to feed a file listing to the archiver.
32982 archiver_list_spec=$lt_archiver_list_spec
32984 # A symbol stripping program.
32987 # Commands used to install an old-style archive.
32989 old_postinstall_cmds=$lt_old_postinstall_cmds
32990 old_postuninstall_cmds=$lt_old_postuninstall_cmds
32992 # Whether to use a lock for old archive extraction.
32993 lock_old_archive_extraction=$lock_old_archive_extraction
32998 # LTCC compiler flags.
32999 LTCFLAGS=$lt_CFLAGS
33001 # Take the output of nm and produce a listing of raw symbols and C names.
33002 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
33004 # Transform the output of nm in a proper C declaration.
33005 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
33007 # Transform the output of nm in a C name address pair.
33008 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
33010 # Transform the output of nm in a C name address pair when lib prefix is needed.
33011 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
33013 # Specify filename containing input files for \$NM.
33014 nm_file_list_spec=$lt_nm_file_list_spec
33016 # The root where to search for dependent libraries,and in which our libraries should be installed.
33017 lt_sysroot=$lt_sysroot
33019 # The name of the directory that contains temporary libtool files.
33022 # Used to examine libraries when file_magic_cmd begins with "file".
33023 MAGIC_CMD=$MAGIC_CMD
33025 # Must we lock files when doing compilation?
33026 need_locks=$lt_need_locks
33029 MANIFEST_TOOL=$lt_MANIFEST_TOOL
33031 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
33032 DSYMUTIL=$lt_DSYMUTIL
33034 # Tool to change global to local symbols on Mac OS X.
33037 # Tool to manipulate fat objects and archives on Mac OS X.
33040 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
33043 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
33044 OTOOL64=$lt_OTOOL64
33046 # Old archive suffix (normally "a").
33049 # Shared library suffix (normally ".so").
33050 shrext_cmds=$lt_shrext_cmds
33052 # The commands to extract the exported symbol list from a shared archive.
33053 extract_expsyms_cmds=$lt_extract_expsyms_cmds
33055 # Variables whose values should be saved in libtool wrapper scripts and
33056 # restored at link time.
33057 variables_saved_for_relink=$lt_variables_saved_for_relink
33059 # Do we need the "lib" prefix for modules?
33060 need_lib_prefix=$need_lib_prefix
33062 # Do we need a version for libraries?
33063 need_version=$need_version
33065 # Library versioning type.
33066 version_type=$version_type
33068 # Shared library runtime path variable.
33069 runpath_var=$runpath_var
33071 # Shared library path variable.
33072 shlibpath_var=$shlibpath_var
33074 # Is shlibpath searched before the hard-coded library search path?
33075 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
33077 # Format of library name prefix.
33078 libname_spec=$lt_libname_spec
33080 # List of archive names. First name is the real one, the rest are links.
33081 # The last name is the one that the linker finds with -lNAME
33082 library_names_spec=$lt_library_names_spec
33084 # The coded name of the library, if different from the real name.
33085 soname_spec=$lt_soname_spec
33087 # Permission mode override for installation of shared libraries.
33088 install_override_mode=$lt_install_override_mode
33090 # Command to use after installation of a shared archive.
33091 postinstall_cmds=$lt_postinstall_cmds
33093 # Command to use after uninstallation of a shared archive.
33094 postuninstall_cmds=$lt_postuninstall_cmds
33096 # Commands used to finish a libtool library installation in a directory.
33097 finish_cmds=$lt_finish_cmds
33099 # As "finish_cmds", except a single script fragment to be evaled but
33101 finish_eval=$lt_finish_eval
33103 # Whether we should hardcode library paths into libraries.
33104 hardcode_into_libs=$hardcode_into_libs
33106 # Compile-time system search path for libraries.
33107 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
33109 # Run-time system search path for libraries.
33110 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
33112 # Whether dlopen is supported.
33113 dlopen_support=$enable_dlopen
33115 # Whether dlopen of programs is supported.
33116 dlopen_self=$enable_dlopen_self
33118 # Whether dlopen of statically linked programs is supported.
33119 dlopen_self_static=$enable_dlopen_self_static
33121 # Commands to strip libraries.
33122 old_striplib=$lt_old_striplib
33123 striplib=$lt_striplib
33126 # The linker used to build libraries.
33129 # How to create reloadable object files.
33130 reload_flag=$lt_reload_flag
33131 reload_cmds=$lt_reload_cmds
33133 # Commands used to build an old-style archive.
33134 old_archive_cmds=$lt_old_archive_cmds
33136 # A language specific compiler.
33139 # Is the compiler the GNU compiler?
33142 # Compiler flag to turn off builtin functions.
33143 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
33145 # Additional compiler flags for building library objects.
33146 pic_flag=$lt_lt_prog_compiler_pic
33148 # How to pass a linker flag through the compiler.
33149 wl=$lt_lt_prog_compiler_wl
33151 # Compiler flag to prevent dynamic linking.
33152 link_static_flag=$lt_lt_prog_compiler_static
33154 # Does compiler simultaneously support -c and -o options?
33155 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
33157 # Whether or not to add -lc for building shared libraries.
33158 build_libtool_need_lc=$archive_cmds_need_lc
33160 # Whether or not to disallow shared libs when runtime libs are static.
33161 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
33163 # Compiler flag to allow reflexive dlopens.
33164 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
33166 # Compiler flag to generate shared objects directly from archives.
33167 whole_archive_flag_spec=$lt_whole_archive_flag_spec
33169 # Whether the compiler copes with passing no objects directly.
33170 compiler_needs_object=$lt_compiler_needs_object
33172 # Create an old-style archive from a shared archive.
33173 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
33175 # Create a temporary old-style archive to link instead of a shared archive.
33176 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
33178 # Commands used to build a shared archive.
33179 archive_cmds=$lt_archive_cmds
33180 archive_expsym_cmds=$lt_archive_expsym_cmds
33182 # Commands used to build a loadable module if different from building
33183 # a shared archive.
33184 module_cmds=$lt_module_cmds
33185 module_expsym_cmds=$lt_module_expsym_cmds
33187 # Whether we are building with GNU ld or not.
33188 with_gnu_ld=$lt_with_gnu_ld
33190 # Flag that allows shared libraries with undefined symbols to be built.
33191 allow_undefined_flag=$lt_allow_undefined_flag
33193 # Flag that enforces no undefined symbols.
33194 no_undefined_flag=$lt_no_undefined_flag
33196 # Flag to hardcode \$libdir into a binary during linking.
33197 # This must work even if \$libdir does not exist
33198 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
33200 # Whether we need a single "-rpath" flag with a separated argument.
33201 hardcode_libdir_separator=$lt_hardcode_libdir_separator
33203 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
33204 # DIR into the resulting binary.
33205 hardcode_direct=$hardcode_direct
33207 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
33208 # DIR into the resulting binary and the resulting library dependency is
33209 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
33210 # library is relocated.
33211 hardcode_direct_absolute=$hardcode_direct_absolute
33213 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
33214 # into the resulting binary.
33215 hardcode_minus_L=$hardcode_minus_L
33217 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
33218 # into the resulting binary.
33219 hardcode_shlibpath_var=$hardcode_shlibpath_var
33221 # Set to "yes" if building a shared library automatically hardcodes DIR
33222 # into the library and all subsequent libraries and executables linked
33224 hardcode_automatic=$hardcode_automatic
33226 # Set to yes if linker adds runtime paths of dependent libraries
33227 # to runtime path list.
33228 inherit_rpath=$inherit_rpath
33230 # Whether libtool must link a program against all its dependency libraries.
33231 link_all_deplibs=$link_all_deplibs
33233 # Set to "yes" if exported symbols are required.
33234 always_export_symbols=$always_export_symbols
33236 # The commands to list exported symbols.
33237 export_symbols_cmds=$lt_export_symbols_cmds
33239 # Symbols that should not be listed in the preloaded symbols.
33240 exclude_expsyms=$lt_exclude_expsyms
33242 # Symbols that must always be exported.
33243 include_expsyms=$lt_include_expsyms
33245 # Commands necessary for linking programs (against libraries) with templates.
33246 prelink_cmds=$lt_prelink_cmds
33248 # Commands necessary for finishing linking programs.
33249 postlink_cmds=$lt_postlink_cmds
33251 # Specify filename containing input files.
33252 file_list_spec=$lt_file_list_spec
33254 # How to hardcode a shared library path into an executable.
33255 hardcode_action=$hardcode_action
33257 # The directories searched by this compiler when creating a shared library.
33258 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
33260 # Dependencies to place before and after the objects being linked to
33261 # create a shared library.
33262 predep_objects=$lt_predep_objects
33263 postdep_objects=$lt_postdep_objects
33264 predeps=$lt_predeps
33265 postdeps=$lt_postdeps
33267 # The library search path used internally by the compiler when linking
33268 # a shared library.
33269 compiler_lib_search_path=$lt_compiler_lib_search_path
33271 # ### END LIBTOOL CONFIG
33277 cat <<\_LT_EOF >> "$cfgfile"
33278 # AIX sometimes has problems with the GCC collect2 program. For some
33279 # reason, if we set the COLLECT_NAMES environment variable, the problems
33280 # vanish in a puff of smoke.
33281 if test "X${COLLECT_NAMES+set}" != Xset; then
33283 export COLLECT_NAMES
33290 ltmain="$ac_aux_dir/ltmain.sh"
33293 # We use sed instead of cat because bash on DJGPP gets confused if
33294 # if finds mixed CR/LF and LF-only lines. Since sed operates in
33295 # text mode, it properly converts lines to CR/LF. This bash problem
33296 # is reportedly fixed, but why not run on old versions too?
33297 sed '$q' "$ltmain" >> "$cfgfile" \
33298 || (rm -f "$cfgfile"; exit 1)
33300 if test x"$xsi_shell" = xyes; then
33301 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
33305 \ */*) func_dirname_result="${1%/*}${2}" ;;\
33306 \ * ) func_dirname_result="${3}" ;;\
33308 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
33309 && mv -f "$cfgfile.tmp" "$cfgfile" \
33310 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33311 test 0 -eq $? || _lt_function_replace_fail=:
33314 sed -e '/^func_basename ()$/,/^} # func_basename /c\
33317 \ func_basename_result="${1##*/}"\
33318 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
33319 && mv -f "$cfgfile.tmp" "$cfgfile" \
33320 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33321 test 0 -eq $? || _lt_function_replace_fail=:
33324 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
33325 func_dirname_and_basename ()\
33328 \ */*) func_dirname_result="${1%/*}${2}" ;;\
33329 \ * ) func_dirname_result="${3}" ;;\
33331 \ func_basename_result="${1##*/}"\
33332 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
33333 && mv -f "$cfgfile.tmp" "$cfgfile" \
33334 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33335 test 0 -eq $? || _lt_function_replace_fail=:
33338 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
33341 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
33342 \ # positional parameters, so assign one to ordinary parameter first.\
33343 \ func_stripname_result=${3}\
33344 \ func_stripname_result=${func_stripname_result#"${1}"}\
33345 \ func_stripname_result=${func_stripname_result%"${2}"}\
33346 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
33347 && mv -f "$cfgfile.tmp" "$cfgfile" \
33348 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33349 test 0 -eq $? || _lt_function_replace_fail=:
33352 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
33353 func_split_long_opt ()\
33355 \ func_split_long_opt_name=${1%%=*}\
33356 \ func_split_long_opt_arg=${1#*=}\
33357 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
33358 && mv -f "$cfgfile.tmp" "$cfgfile" \
33359 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33360 test 0 -eq $? || _lt_function_replace_fail=:
33363 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
33364 func_split_short_opt ()\
33366 \ func_split_short_opt_arg=${1#??}\
33367 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
33368 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
33369 && mv -f "$cfgfile.tmp" "$cfgfile" \
33370 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33371 test 0 -eq $? || _lt_function_replace_fail=:
33374 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
33378 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
33379 \ *) func_lo2o_result=${1} ;;\
33381 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
33382 && mv -f "$cfgfile.tmp" "$cfgfile" \
33383 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33384 test 0 -eq $? || _lt_function_replace_fail=:
33387 sed -e '/^func_xform ()$/,/^} # func_xform /c\
33390 func_xform_result=${1%.*}.lo\
33391 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
33392 && mv -f "$cfgfile.tmp" "$cfgfile" \
33393 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33394 test 0 -eq $? || _lt_function_replace_fail=:
33397 sed -e '/^func_arith ()$/,/^} # func_arith /c\
33400 func_arith_result=$(( $* ))\
33401 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
33402 && mv -f "$cfgfile.tmp" "$cfgfile" \
33403 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33404 test 0 -eq $? || _lt_function_replace_fail=:
33407 sed -e '/^func_len ()$/,/^} # func_len /c\
33410 func_len_result=${#1}\
33411 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
33412 && mv -f "$cfgfile.tmp" "$cfgfile" \
33413 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33414 test 0 -eq $? || _lt_function_replace_fail=:
33418 if test x"$lt_shell_append" = xyes; then
33419 sed -e '/^func_append ()$/,/^} # func_append /c\
33422 eval "${1}+=\\${2}"\
33423 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
33424 && mv -f "$cfgfile.tmp" "$cfgfile" \
33425 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33426 test 0 -eq $? || _lt_function_replace_fail=:
33429 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
33430 func_append_quoted ()\
33432 \ func_quote_for_eval "${2}"\
33433 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
33434 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
33435 && mv -f "$cfgfile.tmp" "$cfgfile" \
33436 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33437 test 0 -eq $? || _lt_function_replace_fail=:
33440 # Save a `func_append' function call where possible by direct use of '+='
33441 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
33442 && mv -f "$cfgfile.tmp" "$cfgfile" \
33443 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33444 test 0 -eq $? || _lt_function_replace_fail=:
33446 # Save a `func_append' function call even when '+=' is not available
33447 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
33448 && mv -f "$cfgfile.tmp" "$cfgfile" \
33449 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33450 test 0 -eq $? || _lt_function_replace_fail=:
33453 if test x"$_lt_function_replace_fail" = x":"; then
33454 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
33455 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
33459 mv -f "$cfgfile" "$ofile" ||
33460 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
33464 cat <<_LT_EOF >> "$ofile"
33466 # ### BEGIN LIBTOOL TAG CONFIG: CXX
33468 # The linker used to build libraries.
33471 # How to create reloadable object files.
33472 reload_flag=$lt_reload_flag_CXX
33473 reload_cmds=$lt_reload_cmds_CXX
33475 # Commands used to build an old-style archive.
33476 old_archive_cmds=$lt_old_archive_cmds_CXX
33478 # A language specific compiler.
33479 CC=$lt_compiler_CXX
33481 # Is the compiler the GNU compiler?
33484 # Compiler flag to turn off builtin functions.
33485 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
33487 # Additional compiler flags for building library objects.
33488 pic_flag=$lt_lt_prog_compiler_pic_CXX
33490 # How to pass a linker flag through the compiler.
33491 wl=$lt_lt_prog_compiler_wl_CXX
33493 # Compiler flag to prevent dynamic linking.
33494 link_static_flag=$lt_lt_prog_compiler_static_CXX
33496 # Does compiler simultaneously support -c and -o options?
33497 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
33499 # Whether or not to add -lc for building shared libraries.
33500 build_libtool_need_lc=$archive_cmds_need_lc_CXX
33502 # Whether or not to disallow shared libs when runtime libs are static.
33503 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
33505 # Compiler flag to allow reflexive dlopens.
33506 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
33508 # Compiler flag to generate shared objects directly from archives.
33509 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
33511 # Whether the compiler copes with passing no objects directly.
33512 compiler_needs_object=$lt_compiler_needs_object_CXX
33514 # Create an old-style archive from a shared archive.
33515 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
33517 # Create a temporary old-style archive to link instead of a shared archive.
33518 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
33520 # Commands used to build a shared archive.
33521 archive_cmds=$lt_archive_cmds_CXX
33522 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
33524 # Commands used to build a loadable module if different from building
33525 # a shared archive.
33526 module_cmds=$lt_module_cmds_CXX
33527 module_expsym_cmds=$lt_module_expsym_cmds_CXX
33529 # Whether we are building with GNU ld or not.
33530 with_gnu_ld=$lt_with_gnu_ld_CXX
33532 # Flag that allows shared libraries with undefined symbols to be built.
33533 allow_undefined_flag=$lt_allow_undefined_flag_CXX
33535 # Flag that enforces no undefined symbols.
33536 no_undefined_flag=$lt_no_undefined_flag_CXX
33538 # Flag to hardcode \$libdir into a binary during linking.
33539 # This must work even if \$libdir does not exist
33540 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
33542 # Whether we need a single "-rpath" flag with a separated argument.
33543 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
33545 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
33546 # DIR into the resulting binary.
33547 hardcode_direct=$hardcode_direct_CXX
33549 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
33550 # DIR into the resulting binary and the resulting library dependency is
33551 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
33552 # library is relocated.
33553 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
33555 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
33556 # into the resulting binary.
33557 hardcode_minus_L=$hardcode_minus_L_CXX
33559 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
33560 # into the resulting binary.
33561 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
33563 # Set to "yes" if building a shared library automatically hardcodes DIR
33564 # into the library and all subsequent libraries and executables linked
33566 hardcode_automatic=$hardcode_automatic_CXX
33568 # Set to yes if linker adds runtime paths of dependent libraries
33569 # to runtime path list.
33570 inherit_rpath=$inherit_rpath_CXX
33572 # Whether libtool must link a program against all its dependency libraries.
33573 link_all_deplibs=$link_all_deplibs_CXX
33575 # Set to "yes" if exported symbols are required.
33576 always_export_symbols=$always_export_symbols_CXX
33578 # The commands to list exported symbols.
33579 export_symbols_cmds=$lt_export_symbols_cmds_CXX
33581 # Symbols that should not be listed in the preloaded symbols.
33582 exclude_expsyms=$lt_exclude_expsyms_CXX
33584 # Symbols that must always be exported.
33585 include_expsyms=$lt_include_expsyms_CXX
33587 # Commands necessary for linking programs (against libraries) with templates.
33588 prelink_cmds=$lt_prelink_cmds_CXX
33590 # Commands necessary for finishing linking programs.
33591 postlink_cmds=$lt_postlink_cmds_CXX
33593 # Specify filename containing input files.
33594 file_list_spec=$lt_file_list_spec_CXX
33596 # How to hardcode a shared library path into an executable.
33597 hardcode_action=$hardcode_action_CXX
33599 # The directories searched by this compiler when creating a shared library.
33600 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
33602 # Dependencies to place before and after the objects being linked to
33603 # create a shared library.
33604 predep_objects=$lt_predep_objects_CXX
33605 postdep_objects=$lt_postdep_objects_CXX
33606 predeps=$lt_predeps_CXX
33607 postdeps=$lt_postdeps_CXX
33609 # The library search path used internally by the compiler when linking
33610 # a shared library.
33611 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
33613 # ### END LIBTOOL TAG CONFIG: CXX
33618 for ac_file in $CONFIG_FILES; do
33619 # Support "outfile[:infile[:infile...]]"
33621 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
33623 # PO directories have a Makefile.in generated from Makefile.in.in.
33624 case "$ac_file" in */Makefile.in)
33625 # Adjust a relative srcdir.
33626 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
33627 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
33628 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
33629 # In autoconf-2.13 it is called $ac_given_srcdir.
33630 # In autoconf-2.50 it is called $srcdir.
33631 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
33632 case "$ac_given_srcdir" in
33633 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
33634 /*) top_srcdir="$ac_given_srcdir" ;;
33635 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
33637 # Treat a directory as a PO directory if and only if it has a
33638 # POTFILES.in file. This allows packages to have multiple PO
33639 # directories under different names or in different locations.
33640 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
33641 rm -f "$ac_dir/POTFILES"
33642 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
33643 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
33644 POMAKEFILEDEPS="POTFILES.in"
33645 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
33646 # on $ac_dir but don't depend on user-specified configuration
33648 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
33649 # The LINGUAS file contains the set of available languages.
33650 if test -n "$OBSOLETE_ALL_LINGUAS"; then
33651 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
33653 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
33654 # Hide the ALL_LINGUAS assigment from automake.
33655 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
33656 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
33658 # The set of available languages was given in configure.in.
33659 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
33662 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
33663 # Compute UPDATEPOFILES
33664 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
33665 # Compute DUMMYPOFILES
33666 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
33668 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
33669 case "$ac_given_srcdir" in
33671 *) srcdirpre='$(srcdir)/' ;;
33677 for lang in $ALL_LINGUAS; do
33678 POFILES="$POFILES $srcdirpre$lang.po"
33679 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
33680 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
33681 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
33683 # CATALOGS depends on both $ac_dir and the user's LINGUAS
33684 # environment variable.
33686 if test -n "$ALL_LINGUAS"; then
33687 for presentlang in $ALL_LINGUAS; do
33689 if test "%UNSET%" != "$LINGUAS"; then
33690 desiredlanguages="$LINGUAS"
33692 desiredlanguages="$ALL_LINGUAS"
33694 for desiredlang in $desiredlanguages; do
33695 # Use the presentlang catalog if desiredlang is
33696 # a. equal to presentlang, or
33697 # b. a variant of presentlang (because in this case,
33698 # presentlang can be used as a fallback for messages
33699 # which are not translated in the desiredlang catalog).
33700 case "$desiredlang" in
33701 "$presentlang"*) useit=yes;;
33704 if test $useit = yes; then
33705 INST_LINGUAS="$INST_LINGUAS $presentlang"
33710 if test -n "$INST_LINGUAS"; then
33711 for lang in $INST_LINGUAS; do
33712 CATALOGS="$CATALOGS $lang.gmo"
33715 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
33716 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"
33717 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
33718 if test -f "$f"; then
33720 *.orig | *.bak | *~) ;;
33721 *) cat "$f" >> "$ac_dir/Makefile" ;;
33738 ac_clean_files=$ac_clean_files_save
33740 test $ac_write_fail = 0 ||
33741 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
33744 # configure is writing to config.log, and then calls config.status.
33745 # config.status does its own redirection, appending to config.log.
33746 # Unfortunately, on DOS this fails, as config.log is still kept open
33747 # by configure, so config.status won't be able to write to it; its
33748 # output is simply discarded. So we exec the FD to /dev/null,
33749 # effectively closing config.log, so it can be properly (re)opened and
33750 # appended to by config.status. When coming back to configure, we
33751 # need to make the FD available again.
33752 if test "$no_create" != yes; then
33754 ac_config_status_args=
33755 test "$silent" = yes &&
33756 ac_config_status_args="$ac_config_status_args --quiet"
33758 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
33760 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
33761 # would make configure fail if this is the last instruction.
33762 $ac_cs_success || as_fn_exit 1
33764 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
33765 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
33766 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
33770 if test "${support_bat}" = "yes" ; then
33771 if test "x$QMAKE" = "xnone"; then
33772 as_fn_error $? "Could not find qmake $PATH. Check your Qt installation" "$LINENO" 5
33776 echo "Creating bat Makefile"
33782 ${MAKE:-make} clean
33786 if test X"$GCC" = "Xyes" ; then
33787 echo "Doing make of dependencies"
33788 ${MAKE:-make} depend
33792 chmod 755 install_conf_file build-depkgs-qt-console
33796 chmod 755 bacula btraceback mtx-changer
33797 chmod 755 dvd-handler dvd-simulator
33798 chmod 755 bconsole disk-changer devel_bacula logrotate
33802 chmod 755 $c/update_mysql_tables_10_to_11 $c/update_sqlite3_tables_10_to_11
33803 chmod 755 $c/update_postgresql_tables_10_to_11
33804 chmod 755 $c/update_mysql_tables_11_to_12 $c/update_sqlite3_tables_11_to_12
33805 chmod 755 $c/update_postgresql_tables_11_to_12
33810 chmod 755 $c/create_bacula_database $c/update_bacula_tables $c/make_bacula_tables
33811 chmod 755 $c/grant_bacula_privileges $c/drop_bacula_tables $c/drop_bacula_database
33813 chmod 755 $c/create_mysql_database $c/update_mysql_tables $c/make_mysql_tables
33814 chmod 755 $c/grant_mysql_privileges $c/drop_mysql_tables $c/drop_mysql_database
33816 chmod 755 $c/create_sqlite3_database $c/update_sqlite3_tables $c/make_sqlite3_tables
33817 chmod 755 $c/grant_sqlite3_privileges $c/drop_sqlite3_tables $c/drop_sqlite3_database
33819 chmod 755 $c/create_postgresql_database $c/update_postgresql_tables $c/make_postgresql_tables
33820 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables $c/drop_postgresql_database
33822 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup $c/make_catalog_backup.pl
33823 chmod 755 $c/sqlite
33826 chmod 755 $c/install-default-backend
33828 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
33829 largefile_support="yes"
33832 if test X"$GCC" = "Xyes" ; then
33833 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
33834 if test "x${CCVERSION}" = "x" ; then
33835 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
33837 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
33838 if test x"${CXXVERSION}" = x ; then
33839 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
33843 # clean up any old junk
33847 ${MAKE:-make} clean
33850 Configuration on `date`:
33852 Host: ${host}${post_host} -- ${DISTNAME} ${DISTVER}
33853 Bacula version: ${BACULA} ${VERSION} (${DATE})
33854 Source code location: ${srcdir}
33855 Install binaries: ${sbindir}
33856 Install libraries: ${libdir}
33857 Install config files: ${sysconfdir}
33858 Scripts directory: ${scriptdir}
33859 Archive directory: ${archivedir}
33860 Working directory: ${working_dir}
33861 PID directory: ${piddir}
33862 Subsys directory: ${subsysdir}
33863 Man directory: ${mandir}
33864 Data directory: ${datarootdir}
33865 Plugin directory: ${plugindir}
33866 C Compiler: ${CC} ${CCVERSION}
33867 C++ Compiler: ${CXX} ${CXXVERSION}
33868 Compiler flags: ${WCFLAGS} ${CFLAGS}
33869 Linker flags: ${WLDFLAGS} ${LDFLAGS}
33871 Statically Linked Tools: ${support_static_tools}
33872 Statically Linked FD: ${support_static_fd}
33873 Statically Linked SD: ${support_static_sd}
33874 Statically Linked DIR: ${support_static_dir}
33875 Statically Linked CONS: ${support_static_cons}
33876 Database backends: ${db_backends}
33877 Database port: ${db_port}
33878 Database name: ${db_name}
33879 Database user: ${db_user}
33880 Database SSL options: ${db_ssl_options}
33882 Job Output Email: ${job_email}
33883 Traceback Email: ${dump_email}
33884 SMTP Host Address: ${smtp_host}
33886 Director Port: ${dir_port}
33887 File daemon Port: ${fd_port}
33888 Storage daemon Port: ${sd_port}
33890 Director User: ${dir_user}
33891 Director Group: ${dir_group}
33892 Storage Daemon User: ${sd_user}
33893 Storage DaemonGroup: ${sd_group}
33894 File Daemon User: ${fd_user}
33895 File Daemon Group: ${fd_group}
33897 Large file support: $largefile_support
33898 Bacula conio support: ${got_conio} ${CONS_LIBS}
33899 readline support: ${got_readline} ${PRTREADLINE_SRC}
33900 TCP Wrappers support: ${TCPW_MSG} ${WRAPLIBS}
33901 TLS support: ${support_tls}
33902 Encryption support: ${support_crypto}
33903 ZLIB support: ${have_zlib}
33904 LZO support: ${have_lzo}
33905 enable-smartalloc: ${support_smartalloc}
33906 enable-lockmgr: ${support_lockmgr}
33907 bat support: ${support_bat}
33908 client-only: ${build_client_only}
33909 build-dird: ${build_dird}
33910 build-stored: ${build_stored}
33911 Plugin support: ${have_plugins}
33912 AFS support: ${have_afs}
33913 ACL support: ${have_acl}
33914 XATTR support: ${have_xattr}
33915 systemd support: ${support_systemd} ${SYSTEMD_UNITDIR}
33916 Batch insert enabled: ${batch_insert_db_backends}
33920 # create a small shell script useful for support with
33921 # configure options and config.out info
33922 cat > scripts/bacula_config << EOF
33925 $ $0 $ac_configure_args
33927 cat config.out >> scripts/bacula_config
33928 echo __EOC__ >> scripts/bacula_config
33929 chmod 755 scripts/bacula_config