2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for bacula 7.0.6.
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in #(
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 as_echo_n='sh -c $as_echo_n_body as_echo'
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
89 # Find who we are. Look in the path if we contain no directory separator.
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
147 *v*x* | *x*v* ) as_opts=-vx ;;
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 case \`(set -o) 2>/dev/null\` in #(
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191 exitcode=1; echo positional parameters were not saved.
193 test x\$exitcode = x0 || exit 1
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1
201 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
202 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 PATH=/empty FPATH=/empty; export PATH FPATH
206 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
207 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
208 if (eval "$as_required") 2>/dev/null; then :
213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
218 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 test -z "$as_dir" && as_dir=.
225 for as_base in sh bash ksh sh5; do
226 # Try only shells that exist, to save several forks.
227 as_shell=$as_dir/$as_base
228 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230 CONFIG_SHELL=$as_shell as_have_required=yes
231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
239 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241 CONFIG_SHELL=$SHELL as_have_required=yes
246 if test "x$CONFIG_SHELL" != x; then :
248 # We cannot yet assume a decent shell, so we have to provide a
249 # neutralization value for shells without unset; and this also
250 # works around shells that cannot unset nonexistent variables.
251 # Preserve -v and -x to the replacement shell.
254 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
256 *v*x* | *x*v* ) as_opts=-vx ;;
261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262 # Admittedly, this is quite paranoid, since all the known shells bail
263 # out after a failed `exec'.
264 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
268 if test x$as_have_required = xno; then :
269 $as_echo "$0: This script requires a shell more modern than all"
270 $as_echo "$0: the shells that I found on your system."
271 if test x${ZSH_VERSION+set} = xset ; then
272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
275 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
276 $0: including any error possibly output before this
277 $0: message. Then install a modern shell, or manually run
278 $0: the script under such a shell if you do have one."
284 SHELL=${CONFIG_SHELL-/bin/sh}
286 # Unset more variables known to interfere with behavior of common tools.
287 CLICOLOR_FORCE= GREP_OPTIONS=
288 unset CLICOLOR_FORCE GREP_OPTIONS
290 ## --------------------- ##
291 ## M4sh Shell Functions. ##
292 ## --------------------- ##
295 # Portably unset VAR.
298 { eval $1=; unset $1;}
302 # as_fn_set_status STATUS
303 # -----------------------
304 # Set $? to STATUS, without forking.
312 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
322 # Create "$as_dir" as a directory, including parents if necessary.
327 -*) as_dir=./$as_dir;;
329 test -d "$as_dir" || eval $as_mkdir_p || {
333 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
336 as_dirs="'$as_qdir' $as_dirs"
337 as_dir=`$as_dirname -- "$as_dir" ||
338 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339 X"$as_dir" : 'X\(//\)[^/]' \| \
340 X"$as_dir" : 'X\(//\)$' \| \
341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342 $as_echo X"$as_dir" |
343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
360 test -d "$as_dir" && break
362 test -z "$as_dirs" || eval "mkdir $as_dirs"
363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
368 # as_fn_executable_p FILE
369 # -----------------------
370 # Test if FILE is an executable regular file.
371 as_fn_executable_p ()
373 test -f "$1" && test -x "$1"
374 } # as_fn_executable_p
375 # as_fn_append VAR VALUE
376 # ----------------------
377 # Append the text in VALUE to the end of the definition contained in VAR. Take
378 # advantage of any shell optimizations that allow amortized linear growth over
379 # repeated appends, instead of the typical quadratic growth present in naive
381 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382 eval 'as_fn_append ()
395 # Perform arithmetic evaluation on the ARGs, and store the result in the
396 # global $as_val. Take advantage of shells that can avoid forks. The arguments
397 # must be portable across $(()) and expr.
398 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
406 as_val=`expr "$@" || test $? -eq 1`
411 # as_fn_error STATUS ERROR [LINENO LOG_FD]
412 # ----------------------------------------
413 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415 # script with STATUS, using 1 if that was 0.
418 as_status=$1; test $as_status -eq 0 && as_status=1
420 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
423 $as_echo "$as_me: error: $2" >&2
424 as_fn_exit $as_status
427 if expr a : '\(a\)' >/dev/null 2>&1 &&
428 test "X`expr 00001 : '.*\(...\)'`" = X001; then
434 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
440 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
446 as_me=`$as_basename -- "$0" ||
447 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448 X"$0" : 'X\(//\)$' \| \
449 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
451 sed '/^.*\/\([^/][^/]*\)\/*$/{
465 # Avoid depending upon Character Ranges.
466 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469 as_cr_digits='0123456789'
470 as_cr_alnum=$as_cr_Letters$as_cr_digits
473 as_lineno_1=$LINENO as_lineno_1a=$LINENO
474 as_lineno_2=$LINENO as_lineno_2a=$LINENO
475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493 chmod +x "$as_me.lineno" ||
494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497 # already done that, so ensure we don't try to do so again and fall
498 # in an infinite loop. This has already happened in practice.
499 _as_can_reexec=no; export _as_can_reexec
500 # Don't try to exec as it changes $[0], causing all sort of problems
501 # (the dirname of $[0] is not the place where we might find the
502 # original and so on. Autoconf is especially sensitive to this).
504 # Exit status is that of the last command.
508 ECHO_C= ECHO_N= ECHO_T=
509 case `echo -n x` in #(((((
511 case `echo 'xy\c'` in
512 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
514 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
521 rm -f conf$$ conf$$.exe conf$$.file
522 if test -d conf$$.dir; then
523 rm -f conf$$.dir/conf$$.file
526 mkdir conf$$.dir 2>/dev/null
528 if (echo >conf$$.file) 2>/dev/null; then
529 if ln -s conf$$.file conf$$ 2>/dev/null; then
531 # ... but there are two gotchas:
532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534 # In both cases, we have to default to `cp -pR'.
535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
537 elif ln conf$$.file conf$$ 2>/dev/null; then
545 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546 rmdir conf$$.dir 2>/dev/null
548 if mkdir -p . 2>/dev/null; then
549 as_mkdir_p='mkdir -p "$as_dir"'
551 test -d ./-p && rmdir ./-p
556 as_executable_p=as_fn_executable_p
558 # Sed expression to map a string onto a valid CPP name.
559 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
561 # Sed expression to map a string onto a valid variable name.
562 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
564 SHELL=${CONFIG_SHELL-/bin/sh}
567 test -n "$DJDIR" || exec 7<&0 </dev/null
571 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572 # so uname gets run too.
573 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
578 ac_default_prefix=/usr/local
580 ac_config_libobj_dir=.
587 # Identity of this package.
588 PACKAGE_NAME='bacula'
589 PACKAGE_TARNAME='bacula'
590 PACKAGE_VERSION='7.0.6'
591 PACKAGE_STRING='bacula 7.0.6'
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
662 SHARED_CATALOG_TARGETS
732 INTL_LIBTOOL_SUFFIX_PREFIX
739 BUILD_INCLUDED_LIBINTL
770 HAVE_OPENBSD_OS_FALSE
774 HAVE_FREEBSD_OS_FALSE
788 INCLUDE_UNINSTALL_TARGET
789 INCLUDE_INSTALL_TARGET
793 LIBTOOL_UNINSTALL_TARGET
794 LIBTOOL_INSTALL_TARGET
795 DEFAULT_SHARED_OBJECT_TYPE
875 LIBBACFIND_LT_RELEASE
876 LIBBACCATS_LT_RELEASE
920 program_transform_name
931 ac_subst_files='MCOMMON'
933 enable_option_checking
947 with_included_gettext
982 with_mon_dir_password
1011 ac_precious_vars='build_alias
1027 # Initialize some variables set by options.
1029 ac_init_version=false
1030 ac_unrecognized_opts=
1031 ac_unrecognized_sep=
1032 # The variables have the same names as the options, with
1033 # dashes changed to underlines.
1034 cache_file=/dev/null
1041 program_transform_name=s,x,x,
1049 # Installation directory options.
1050 # These are left unexpanded so users can "make install exec_prefix=/foo"
1051 # and all the variables that are supposed to be based on exec_prefix
1052 # by default will actually change.
1053 # Use braces instead of parens because sh, perl, etc. also accept them.
1054 # (The list follows the same order as the GNU Coding Standards.)
1055 bindir='${exec_prefix}/bin'
1056 sbindir='${exec_prefix}/sbin'
1057 libexecdir='${exec_prefix}/libexec'
1058 datarootdir='${prefix}/share'
1059 datadir='${datarootdir}'
1060 sysconfdir='${prefix}/etc'
1061 sharedstatedir='${prefix}/com'
1062 localstatedir='${prefix}/var'
1063 includedir='${prefix}/include'
1064 oldincludedir='/usr/include'
1065 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1066 infodir='${datarootdir}/info'
1071 libdir='${exec_prefix}/lib'
1072 localedir='${datarootdir}/locale'
1073 mandir='${datarootdir}/man'
1079 # If the previous option needs an argument, assign it.
1080 if test -n "$ac_prev"; then
1081 eval $ac_prev=\$ac_option
1087 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1092 # Accept the important Cygnus configure options, so we can diagnose typos.
1094 case $ac_dashdash$ac_option in
1098 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1100 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1101 bindir=$ac_optarg ;;
1103 -build | --build | --buil | --bui | --bu)
1104 ac_prev=build_alias ;;
1105 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1106 build_alias=$ac_optarg ;;
1108 -cache-file | --cache-file | --cache-fil | --cache-fi \
1109 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1110 ac_prev=cache_file ;;
1111 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1112 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1113 cache_file=$ac_optarg ;;
1115 --config-cache | -C)
1116 cache_file=config.cache ;;
1118 -datadir | --datadir | --datadi | --datad)
1120 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1121 datadir=$ac_optarg ;;
1123 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1124 | --dataroo | --dataro | --datar)
1125 ac_prev=datarootdir ;;
1126 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1127 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1128 datarootdir=$ac_optarg ;;
1130 -disable-* | --disable-*)
1131 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1132 # Reject names that are not valid shell variable names.
1133 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1134 as_fn_error $? "invalid feature name: $ac_useropt"
1135 ac_useropt_orig=$ac_useropt
1136 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1137 case $ac_user_opts in
1139 "enable_$ac_useropt"
1141 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1142 ac_unrecognized_sep=', ';;
1144 eval enable_$ac_useropt=no ;;
1146 -docdir | --docdir | --docdi | --doc | --do)
1148 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1149 docdir=$ac_optarg ;;
1151 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1153 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1154 dvidir=$ac_optarg ;;
1156 -enable-* | --enable-*)
1157 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1158 # Reject names that are not valid shell variable names.
1159 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1160 as_fn_error $? "invalid feature name: $ac_useropt"
1161 ac_useropt_orig=$ac_useropt
1162 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1163 case $ac_user_opts in
1165 "enable_$ac_useropt"
1167 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1168 ac_unrecognized_sep=', ';;
1170 eval enable_$ac_useropt=\$ac_optarg ;;
1172 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1173 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1174 | --exec | --exe | --ex)
1175 ac_prev=exec_prefix ;;
1176 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1177 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1178 | --exec=* | --exe=* | --ex=*)
1179 exec_prefix=$ac_optarg ;;
1181 -gas | --gas | --ga | --g)
1182 # Obsolete; use --with-gas.
1185 -help | --help | --hel | --he | -h)
1186 ac_init_help=long ;;
1187 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1188 ac_init_help=recursive ;;
1189 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1190 ac_init_help=short ;;
1192 -host | --host | --hos | --ho)
1193 ac_prev=host_alias ;;
1194 -host=* | --host=* | --hos=* | --ho=*)
1195 host_alias=$ac_optarg ;;
1197 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1199 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1201 htmldir=$ac_optarg ;;
1203 -includedir | --includedir | --includedi | --included | --include \
1204 | --includ | --inclu | --incl | --inc)
1205 ac_prev=includedir ;;
1206 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1207 | --includ=* | --inclu=* | --incl=* | --inc=*)
1208 includedir=$ac_optarg ;;
1210 -infodir | --infodir | --infodi | --infod | --info | --inf)
1212 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1213 infodir=$ac_optarg ;;
1215 -libdir | --libdir | --libdi | --libd)
1217 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1218 libdir=$ac_optarg ;;
1220 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1221 | --libexe | --libex | --libe)
1222 ac_prev=libexecdir ;;
1223 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1224 | --libexe=* | --libex=* | --libe=*)
1225 libexecdir=$ac_optarg ;;
1227 -localedir | --localedir | --localedi | --localed | --locale)
1228 ac_prev=localedir ;;
1229 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1230 localedir=$ac_optarg ;;
1232 -localstatedir | --localstatedir | --localstatedi | --localstated \
1233 | --localstate | --localstat | --localsta | --localst | --locals)
1234 ac_prev=localstatedir ;;
1235 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1236 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1237 localstatedir=$ac_optarg ;;
1239 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1241 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1242 mandir=$ac_optarg ;;
1244 -nfp | --nfp | --nf)
1245 # Obsolete; use --without-fp.
1248 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1249 | --no-cr | --no-c | -n)
1252 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1253 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1256 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1257 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1258 | --oldin | --oldi | --old | --ol | --o)
1259 ac_prev=oldincludedir ;;
1260 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1261 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1262 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1263 oldincludedir=$ac_optarg ;;
1265 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1267 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1268 prefix=$ac_optarg ;;
1270 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1271 | --program-pre | --program-pr | --program-p)
1272 ac_prev=program_prefix ;;
1273 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1274 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1275 program_prefix=$ac_optarg ;;
1277 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1278 | --program-suf | --program-su | --program-s)
1279 ac_prev=program_suffix ;;
1280 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1281 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1282 program_suffix=$ac_optarg ;;
1284 -program-transform-name | --program-transform-name \
1285 | --program-transform-nam | --program-transform-na \
1286 | --program-transform-n | --program-transform- \
1287 | --program-transform | --program-transfor \
1288 | --program-transfo | --program-transf \
1289 | --program-trans | --program-tran \
1290 | --progr-tra | --program-tr | --program-t)
1291 ac_prev=program_transform_name ;;
1292 -program-transform-name=* | --program-transform-name=* \
1293 | --program-transform-nam=* | --program-transform-na=* \
1294 | --program-transform-n=* | --program-transform-=* \
1295 | --program-transform=* | --program-transfor=* \
1296 | --program-transfo=* | --program-transf=* \
1297 | --program-trans=* | --program-tran=* \
1298 | --progr-tra=* | --program-tr=* | --program-t=*)
1299 program_transform_name=$ac_optarg ;;
1301 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1303 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1304 pdfdir=$ac_optarg ;;
1306 -psdir | --psdir | --psdi | --psd | --ps)
1308 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1311 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1312 | -silent | --silent | --silen | --sile | --sil)
1315 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1317 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1319 sbindir=$ac_optarg ;;
1321 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1322 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1323 | --sharedst | --shareds | --shared | --share | --shar \
1325 ac_prev=sharedstatedir ;;
1326 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1327 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1328 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1330 sharedstatedir=$ac_optarg ;;
1332 -site | --site | --sit)
1334 -site=* | --site=* | --sit=*)
1337 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1339 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1340 srcdir=$ac_optarg ;;
1342 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1343 | --syscon | --sysco | --sysc | --sys | --sy)
1344 ac_prev=sysconfdir ;;
1345 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1346 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1347 sysconfdir=$ac_optarg ;;
1349 -target | --target | --targe | --targ | --tar | --ta | --t)
1350 ac_prev=target_alias ;;
1351 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1352 target_alias=$ac_optarg ;;
1354 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1357 -version | --version | --versio | --versi | --vers | -V)
1358 ac_init_version=: ;;
1361 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1362 # Reject names that are not valid shell variable names.
1363 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1364 as_fn_error $? "invalid package name: $ac_useropt"
1365 ac_useropt_orig=$ac_useropt
1366 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1367 case $ac_user_opts in
1371 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1372 ac_unrecognized_sep=', ';;
1374 eval with_$ac_useropt=\$ac_optarg ;;
1376 -without-* | --without-*)
1377 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1378 # Reject names that are not valid shell variable names.
1379 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1380 as_fn_error $? "invalid package name: $ac_useropt"
1381 ac_useropt_orig=$ac_useropt
1382 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1383 case $ac_user_opts in
1387 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1388 ac_unrecognized_sep=', ';;
1390 eval with_$ac_useropt=no ;;
1393 # Obsolete; use --with-x.
1396 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1397 | --x-incl | --x-inc | --x-in | --x-i)
1398 ac_prev=x_includes ;;
1399 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1400 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1401 x_includes=$ac_optarg ;;
1403 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1404 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1405 ac_prev=x_libraries ;;
1406 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1407 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1408 x_libraries=$ac_optarg ;;
1410 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1411 Try \`$0 --help' for more information"
1415 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1416 # Reject names that are not valid shell variable names.
1417 case $ac_envvar in #(
1418 '' | [0-9]* | *[!_$as_cr_alnum]* )
1419 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1421 eval $ac_envvar=\$ac_optarg
1422 export $ac_envvar ;;
1425 # FIXME: should be removed in autoconf 3.0.
1426 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1427 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1428 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1429 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1435 if test -n "$ac_prev"; then
1436 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1437 as_fn_error $? "missing argument to $ac_option"
1440 if test -n "$ac_unrecognized_opts"; then
1441 case $enable_option_checking in
1443 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1444 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1448 # Check all directory arguments for consistency.
1449 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1450 datadir sysconfdir sharedstatedir localstatedir includedir \
1451 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1452 libdir localedir mandir
1454 eval ac_val=\$$ac_var
1455 # Remove trailing slashes.
1458 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1459 eval $ac_var=\$ac_val;;
1461 # Be sure to have absolute directory names.
1463 [\\/$]* | ?:[\\/]* ) continue;;
1464 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1466 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1469 # There might be people who depend on the old broken behavior: `$host'
1470 # used to hold the argument of --host etc.
1471 # FIXME: To remove some day.
1474 target=$target_alias
1476 # FIXME: To remove some day.
1477 if test "x$host_alias" != x; then
1478 if test "x$build_alias" = x; then
1479 cross_compiling=maybe
1480 elif test "x$build_alias" != "x$host_alias"; then
1486 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1488 test "$silent" = yes && exec 6>/dev/null
1491 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1492 ac_ls_di=`ls -di .` &&
1493 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1494 as_fn_error $? "working directory cannot be determined"
1495 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1496 as_fn_error $? "pwd does not report name of working directory"
1499 # Find the source files, if location was not specified.
1500 if test -z "$srcdir"; then
1501 ac_srcdir_defaulted=yes
1502 # Try the directory containing this script, then the parent directory.
1503 ac_confdir=`$as_dirname -- "$as_myself" ||
1504 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1505 X"$as_myself" : 'X\(//\)[^/]' \| \
1506 X"$as_myself" : 'X\(//\)$' \| \
1507 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1508 $as_echo X"$as_myself" |
1509 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1527 if test ! -r "$srcdir/$ac_unique_file"; then
1531 ac_srcdir_defaulted=no
1533 if test ! -r "$srcdir/$ac_unique_file"; then
1534 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1535 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1537 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1539 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1541 # When building in place, set srcdir=.
1542 if test "$ac_abs_confdir" = "$ac_pwd"; then
1545 # Remove unnecessary trailing slashes from srcdir.
1546 # Double slashes in file names in object file debugging info
1547 # mess up M-x gdb in Emacs.
1549 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1551 for ac_var in $ac_precious_vars; do
1552 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1553 eval ac_env_${ac_var}_value=\$${ac_var}
1554 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1555 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1559 # Report the --help message.
1561 if test "$ac_init_help" = "long"; then
1562 # Omit some internal or obsolete options to make the list less imposing.
1563 # This message is too long to be a string in the A/UX 3.1 sh.
1565 \`configure' configures bacula 7.0.6 to adapt to many kinds of systems.
1567 Usage: $0 [OPTION]... [VAR=VALUE]...
1569 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1570 VAR=VALUE. See below for descriptions of some of the useful variables.
1572 Defaults for the options are specified in brackets.
1575 -h, --help display this help and exit
1576 --help=short display options specific to this package
1577 --help=recursive display the short help of all the included packages
1578 -V, --version display version information and exit
1579 -q, --quiet, --silent do not print \`checking ...' messages
1580 --cache-file=FILE cache test results in FILE [disabled]
1581 -C, --config-cache alias for \`--cache-file=config.cache'
1582 -n, --no-create do not create output files
1583 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1585 Installation directories:
1586 --prefix=PREFIX install architecture-independent files in PREFIX
1587 [$ac_default_prefix]
1588 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1591 By default, \`make install' will install all the files in
1592 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1593 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1594 for instance \`--prefix=\$HOME'.
1596 For better control, use the options below.
1598 Fine tuning of the installation directories:
1599 --bindir=DIR user executables [EPREFIX/bin]
1600 --sbindir=DIR system admin executables [EPREFIX/sbin]
1601 --libexecdir=DIR program executables [EPREFIX/libexec]
1602 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1603 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1604 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1605 --libdir=DIR object code libraries [EPREFIX/lib]
1606 --includedir=DIR C header files [PREFIX/include]
1607 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1608 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1609 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1610 --infodir=DIR info documentation [DATAROOTDIR/info]
1611 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1612 --mandir=DIR man documentation [DATAROOTDIR/man]
1613 --docdir=DIR documentation root [DATAROOTDIR/doc/bacula]
1614 --htmldir=DIR html documentation [DOCDIR]
1615 --dvidir=DIR dvi documentation [DOCDIR]
1616 --pdfdir=DIR pdf documentation [DOCDIR]
1617 --psdir=DIR ps documentation [DOCDIR]
1623 --x-includes=DIR X include files are in DIR
1624 --x-libraries=DIR X library files are in DIR
1627 --build=BUILD configure for building on BUILD [guessed]
1628 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1632 if test -n "$ac_init_help"; then
1633 case $ac_init_help in
1634 short | recursive ) echo "Configuration of bacula 7.0.6:";;
1639 --disable-option-checking ignore unrecognized --enable/--with options
1640 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1641 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1642 --enable-libtool enable building using GNU libtool [default=yes]
1643 --enable-shared[=PKGS] build shared libraries [default=yes]
1644 --enable-static[=PKGS] build static libraries [default=no]
1645 --enable-fast-install[=PKGS]
1646 optimize for fast installation [default=yes]
1647 --disable-libtool-lock avoid locking (might break parallel builds)
1648 --enable-includes enable installing of include files [default=no]
1649 --disable-nls do not use Native Language Support
1650 --disable-rpath do not hardcode runtime library paths
1651 --enable-bat enable build of bat Qt4 GUI [default=no]
1652 --enable-smartalloc enable smartalloc debugging support [default=no]
1653 --enable-lockmgr enable lock manager support [default=no]
1654 --enable-static-tools enable static tape tools [default=no]
1655 --enable-static-fd enable static File daemon [default=no]
1656 --enable-static-sd enable static Storage daemon [default=no]
1657 --enable-static-dir enable static Director [default=no]
1658 --enable-static-cons enable static Console [default=no]
1659 --enable-client-only build client (File daemon) only [default=no]
1660 --enable-build-dird enable building of dird (Director) [default=yes]
1661 --enable-build-stored enable building of stored (Storage daemon)
1663 --disable-conio disable conio support [default=no]
1664 --enable-ipv6 enable ipv6 support [default=yes]
1665 --disable-readline disable readline support [default=yes]
1666 --enable-batch-insert enable the DB batch insert code [default=yes]
1667 --disable-largefile omit support for large files
1668 --disable-afs disable afs support [default=auto]
1669 --disable-lzo disable lzo support [default=yes]
1670 --disable-acl disable acl support [default=auto]
1671 --disable-xattr disable xattr support [default=auto]
1674 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1675 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1676 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1678 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1679 --with-sysroot=DIR Search for dependent libraries within DIR
1680 (or the compiler's sysroot if not specified).
1681 --with-gnu-ld assume the C compiler uses GNU ld default=no
1682 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1683 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1684 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1685 --without-libintl-prefix don't search for libintl in includedir and libdir
1686 --with-included-gettext use the GNU gettext library included here
1687 --with-readline[=DIR] specify readline library directory
1688 --with-tcp-wrappers[=DIR]
1689 enable tcpwrappers support
1690 --with-openssl[=DIR] Include OpenSSL support. DIR is the OpenSSL base
1691 --with-working-dir=PATH specify path of Bacula working directory
1692 --with-archivedir=PATH specify path of SD archive directory
1693 --with-basename=RESNAME specify base resource name for daemons
1694 --with-hostname=RESNAME specify host name for daemons
1695 --with-scriptdir=PATH specify path of Bacula scripts directory
1696 --with-bsrdir=PATH specify path of Bacula bsrs directory
1697 --with-logdir=PATH specify path of Bacula logs directory
1698 --with-plugindir=PATH specify path of Bacula plugins directory
1699 --with-dump-email=EMAIL dump email address
1700 --with-job-email=EMAIL job output email address
1701 --with-smtp-host=HOST SMTP mail host address
1702 --with-pid-dir=PATH specify location of Bacula pid files
1703 --with-subsys-dir=PATH specify location of Bacula subsys file
1704 --with-baseport=PORT specify base port address for daemons
1705 --with-dir-password=PASSWORD
1706 specify Director's password
1707 --with-fd-password=PASSWORD
1708 specify Client's password
1709 --with-sd-password=PASSWORD
1710 specify Storage daemon's password
1711 --with-mon-dir-password=PASSWORD
1712 specify Director's password used by the monitor
1713 --with-mon-fd-password=PASSWORD
1714 specify Client's password used by the monitor
1715 --with-mon-sd-password=PASSWORD
1716 specify Storage daemon's password used by the
1718 --with-db-name=DBNAME specify database name [default=bacula]
1719 --with-db-user=UNAME specify database user [default=bacula]
1720 --with-db-password=PWD specify database password [default=*none*]
1721 --with-db-port=DBPORT specify a database port [default=null]
1722 --with-dir-user=USER specify user for Director daemon
1723 --with-dir-group=GROUP specify group for Director daemon
1724 --with-sd-user=USER specify user for Storage daemon
1725 --with-sd-group=GROUP specify group for Storage daemon
1726 --with-fd-user=USER specify user for File daemon
1727 --with-fd-group=GROUP specify group for File daemon
1728 --with-sbin-perm=MODE specify permissions for sbin binaries [default=0750]
1729 --with-postgresql[=DIR] Include PostgreSQL support. DIR is the PostgreSQL
1730 base install directory, [default=/usr/local/pgsql]
1731 --with-mysql[=DIR] Include MySQL support. DIR is the MySQL base install
1732 directory, default is to search through a number of
1733 common places for the MySQL files.
1734 --with-embedded-mysql[=DIR]
1735 Include MySQL support. DIR is the MySQL base install
1736 directory, default is to search through a number of
1737 common places for the MySQL files.
1738 --with-sqlite3[=DIR] Include SQLite3 support. DIR is the SQLite3 base
1739 install directory, default is to search through a
1740 number of common places for the SQLite3 files.
1741 --with-x use the X Window System
1742 --with-afsdir[=DIR] Directory holding AFS includes/libs
1743 --with-lzo[=DIR] specify lzo library directory
1744 --with-systemd[=UNITDIR]
1745 Include systemd support. UNITDIR is where systemd
1746 system .service files are located, default is to ask
1749 Some influential environment variables:
1750 CC C compiler command
1751 CFLAGS C compiler flags
1752 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1753 nonstandard directory <lib dir>
1754 LIBS libraries to pass to the linker, e.g. -l<library>
1755 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1756 you have headers in a nonstandard directory <include dir>
1757 CXX C++ compiler command
1758 CXXFLAGS C++ compiler flags
1760 CXXCPP C++ preprocessor
1761 XMKMF Path to xmkmf, Makefile generator for X Window System
1763 Use these variables to override the choices made by `configure' or to help
1764 it to find libraries and programs with nonstandard names/locations.
1766 Report bugs to the package provider.
1771 if test "$ac_init_help" = "recursive"; then
1772 # If there are subdirs, report their specific --help.
1773 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1774 test -d "$ac_dir" ||
1775 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1780 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1782 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1783 # A ".." for each directory in $ac_dir_suffix.
1784 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1785 case $ac_top_builddir_sub in
1786 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1787 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1790 ac_abs_top_builddir=$ac_pwd
1791 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1792 # for backward compatibility:
1793 ac_top_builddir=$ac_top_build_prefix
1796 .) # We are building in place.
1798 ac_top_srcdir=$ac_top_builddir_sub
1799 ac_abs_top_srcdir=$ac_pwd ;;
1800 [\\/]* | ?:[\\/]* ) # Absolute name.
1801 ac_srcdir=$srcdir$ac_dir_suffix;
1802 ac_top_srcdir=$srcdir
1803 ac_abs_top_srcdir=$srcdir ;;
1805 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1806 ac_top_srcdir=$ac_top_build_prefix$srcdir
1807 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1809 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1811 cd "$ac_dir" || { ac_status=$?; continue; }
1812 # Check for guested configure.
1813 if test -f "$ac_srcdir/configure.gnu"; then
1815 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1816 elif test -f "$ac_srcdir/configure"; then
1818 $SHELL "$ac_srcdir/configure" --help=recursive
1820 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1822 cd "$ac_pwd" || { ac_status=$?; break; }
1826 test -n "$ac_init_help" && exit $ac_status
1827 if $ac_init_version; then
1829 bacula configure 7.0.6
1830 generated by GNU Autoconf 2.69
1832 Copyright (C) 2012 Free Software Foundation, Inc.
1833 This configure script is free software; the Free Software Foundation
1834 gives unlimited permission to copy, distribute and modify it.
1839 ## ------------------------ ##
1840 ## Autoconf initialization. ##
1841 ## ------------------------ ##
1843 # ac_fn_c_try_compile LINENO
1844 # --------------------------
1845 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1846 ac_fn_c_try_compile ()
1848 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1849 rm -f conftest.$ac_objext
1850 if { { ac_try="$ac_compile"
1852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1853 *) ac_try_echo=$ac_try;;
1855 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1856 $as_echo "$ac_try_echo"; } >&5
1857 (eval "$ac_compile") 2>conftest.err
1859 if test -s conftest.err; then
1860 grep -v '^ *+' conftest.err >conftest.er1
1861 cat conftest.er1 >&5
1862 mv -f conftest.er1 conftest.err
1864 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1865 test $ac_status = 0; } && {
1866 test -z "$ac_c_werror_flag" ||
1867 test ! -s conftest.err
1868 } && test -s conftest.$ac_objext; then :
1871 $as_echo "$as_me: failed program was:" >&5
1872 sed 's/^/| /' conftest.$ac_ext >&5
1876 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1877 as_fn_set_status $ac_retval
1879 } # ac_fn_c_try_compile
1881 # ac_fn_cxx_try_compile LINENO
1882 # ----------------------------
1883 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1884 ac_fn_cxx_try_compile ()
1886 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1887 rm -f conftest.$ac_objext
1888 if { { ac_try="$ac_compile"
1890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1891 *) ac_try_echo=$ac_try;;
1893 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1894 $as_echo "$ac_try_echo"; } >&5
1895 (eval "$ac_compile") 2>conftest.err
1897 if test -s conftest.err; then
1898 grep -v '^ *+' conftest.err >conftest.er1
1899 cat conftest.er1 >&5
1900 mv -f conftest.er1 conftest.err
1902 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1903 test $ac_status = 0; } && {
1904 test -z "$ac_cxx_werror_flag" ||
1905 test ! -s conftest.err
1906 } && test -s conftest.$ac_objext; then :
1909 $as_echo "$as_me: failed program was:" >&5
1910 sed 's/^/| /' conftest.$ac_ext >&5
1914 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1915 as_fn_set_status $ac_retval
1917 } # ac_fn_cxx_try_compile
1919 # ac_fn_c_try_cpp LINENO
1920 # ----------------------
1921 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1924 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1925 if { { ac_try="$ac_cpp conftest.$ac_ext"
1927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1928 *) ac_try_echo=$ac_try;;
1930 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1931 $as_echo "$ac_try_echo"; } >&5
1932 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1934 if test -s conftest.err; then
1935 grep -v '^ *+' conftest.err >conftest.er1
1936 cat conftest.er1 >&5
1937 mv -f conftest.er1 conftest.err
1939 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1940 test $ac_status = 0; } > conftest.i && {
1941 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1942 test ! -s conftest.err
1946 $as_echo "$as_me: failed program was:" >&5
1947 sed 's/^/| /' conftest.$ac_ext >&5
1951 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1952 as_fn_set_status $ac_retval
1956 # ac_fn_c_try_link LINENO
1957 # -----------------------
1958 # Try to link conftest.$ac_ext, and return whether this succeeded.
1961 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1962 rm -f conftest.$ac_objext conftest$ac_exeext
1963 if { { ac_try="$ac_link"
1965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1966 *) ac_try_echo=$ac_try;;
1968 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1969 $as_echo "$ac_try_echo"; } >&5
1970 (eval "$ac_link") 2>conftest.err
1972 if test -s conftest.err; then
1973 grep -v '^ *+' conftest.err >conftest.er1
1974 cat conftest.er1 >&5
1975 mv -f conftest.er1 conftest.err
1977 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1978 test $ac_status = 0; } && {
1979 test -z "$ac_c_werror_flag" ||
1980 test ! -s conftest.err
1981 } && test -s conftest$ac_exeext && {
1982 test "$cross_compiling" = yes ||
1983 test -x conftest$ac_exeext
1987 $as_echo "$as_me: failed program was:" >&5
1988 sed 's/^/| /' conftest.$ac_ext >&5
1992 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1993 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1994 # interfere with the next link command; also delete a directory that is
1995 # left behind by Apple's compiler. We do this before executing the actions.
1996 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1997 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1998 as_fn_set_status $ac_retval
2000 } # ac_fn_c_try_link
2002 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2003 # -------------------------------------------------------
2004 # Tests whether HEADER exists and can be compiled using the include files in
2005 # INCLUDES, setting the cache variable VAR accordingly.
2006 ac_fn_c_check_header_compile ()
2008 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2010 $as_echo_n "checking for $2... " >&6; }
2011 if eval \${$3+:} false; then :
2012 $as_echo_n "(cached) " >&6
2014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2015 /* end confdefs.h. */
2019 if ac_fn_c_try_compile "$LINENO"; then :
2024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2028 $as_echo "$ac_res" >&6; }
2029 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2031 } # ac_fn_c_check_header_compile
2033 # ac_fn_c_try_run LINENO
2034 # ----------------------
2035 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2036 # that executables *can* be run.
2039 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2040 if { { ac_try="$ac_link"
2042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2043 *) ac_try_echo=$ac_try;;
2045 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2046 $as_echo "$ac_try_echo"; } >&5
2047 (eval "$ac_link") 2>&5
2049 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2050 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2051 { { case "(($ac_try" in
2052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2053 *) ac_try_echo=$ac_try;;
2055 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2056 $as_echo "$ac_try_echo"; } >&5
2057 (eval "$ac_try") 2>&5
2059 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2060 test $ac_status = 0; }; }; then :
2063 $as_echo "$as_me: program exited with status $ac_status" >&5
2064 $as_echo "$as_me: failed program was:" >&5
2065 sed 's/^/| /' conftest.$ac_ext >&5
2067 ac_retval=$ac_status
2069 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2070 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2071 as_fn_set_status $ac_retval
2075 # ac_fn_c_check_func LINENO FUNC VAR
2076 # ----------------------------------
2077 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2078 ac_fn_c_check_func ()
2080 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2082 $as_echo_n "checking for $2... " >&6; }
2083 if eval \${$3+:} false; then :
2084 $as_echo_n "(cached) " >&6
2086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2087 /* end confdefs.h. */
2088 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2089 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2090 #define $2 innocuous_$2
2092 /* System header to define __stub macros and hopefully few prototypes,
2093 which can conflict with char $2 (); below.
2094 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2095 <limits.h> exists even on freestanding compilers. */
2098 # include <limits.h>
2100 # include <assert.h>
2105 /* Override any GCC internal prototype to avoid an error.
2106 Use char because int might match the return type of a GCC
2107 builtin and then its argument prototype would still apply. */
2112 /* The GNU C library defines this for functions which it implements
2113 to always fail with ENOSYS. Some functions are actually named
2114 something starting with __ and the normal name is an alias. */
2115 #if defined __stub_$2 || defined __stub___$2
2127 if ac_fn_c_try_link "$LINENO"; then :
2132 rm -f core conftest.err conftest.$ac_objext \
2133 conftest$ac_exeext conftest.$ac_ext
2136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2137 $as_echo "$ac_res" >&6; }
2138 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2140 } # ac_fn_c_check_func
2142 # ac_fn_cxx_try_cpp LINENO
2143 # ------------------------
2144 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2145 ac_fn_cxx_try_cpp ()
2147 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2148 if { { ac_try="$ac_cpp conftest.$ac_ext"
2150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2151 *) ac_try_echo=$ac_try;;
2153 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2154 $as_echo "$ac_try_echo"; } >&5
2155 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2157 if test -s conftest.err; then
2158 grep -v '^ *+' conftest.err >conftest.er1
2159 cat conftest.er1 >&5
2160 mv -f conftest.er1 conftest.err
2162 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2163 test $ac_status = 0; } > conftest.i && {
2164 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2165 test ! -s conftest.err
2169 $as_echo "$as_me: failed program was:" >&5
2170 sed 's/^/| /' conftest.$ac_ext >&5
2174 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2175 as_fn_set_status $ac_retval
2177 } # ac_fn_cxx_try_cpp
2179 # ac_fn_cxx_try_link LINENO
2180 # -------------------------
2181 # Try to link conftest.$ac_ext, and return whether this succeeded.
2182 ac_fn_cxx_try_link ()
2184 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2185 rm -f conftest.$ac_objext conftest$ac_exeext
2186 if { { ac_try="$ac_link"
2188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2189 *) ac_try_echo=$ac_try;;
2191 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2192 $as_echo "$ac_try_echo"; } >&5
2193 (eval "$ac_link") 2>conftest.err
2195 if test -s conftest.err; then
2196 grep -v '^ *+' conftest.err >conftest.er1
2197 cat conftest.er1 >&5
2198 mv -f conftest.er1 conftest.err
2200 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2201 test $ac_status = 0; } && {
2202 test -z "$ac_cxx_werror_flag" ||
2203 test ! -s conftest.err
2204 } && test -s conftest$ac_exeext && {
2205 test "$cross_compiling" = yes ||
2206 test -x conftest$ac_exeext
2210 $as_echo "$as_me: failed program was:" >&5
2211 sed 's/^/| /' conftest.$ac_ext >&5
2215 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2216 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2217 # interfere with the next link command; also delete a directory that is
2218 # left behind by Apple's compiler. We do this before executing the actions.
2219 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2220 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2221 as_fn_set_status $ac_retval
2223 } # ac_fn_cxx_try_link
2225 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2226 # ---------------------------------------------
2227 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2229 ac_fn_c_check_decl ()
2231 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2232 as_decl_name=`echo $2|sed 's/ *(.*//'`
2233 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2235 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2236 if eval \${$3+:} false; then :
2237 $as_echo_n "(cached) " >&6
2239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2240 /* end confdefs.h. */
2245 #ifndef $as_decl_name
2247 (void) $as_decl_use;
2249 (void) $as_decl_name;
2257 if ac_fn_c_try_compile "$LINENO"; then :
2262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2266 $as_echo "$ac_res" >&6; }
2267 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2269 } # ac_fn_c_check_decl
2271 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2272 # -------------------------------------------
2273 # Tests whether TYPE exists after having included INCLUDES, setting cache
2274 # variable VAR accordingly.
2275 ac_fn_c_check_type ()
2277 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2279 $as_echo_n "checking for $2... " >&6; }
2280 if eval \${$3+:} false; then :
2281 $as_echo_n "(cached) " >&6
2284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2285 /* end confdefs.h. */
2296 if ac_fn_c_try_compile "$LINENO"; then :
2297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2298 /* end confdefs.h. */
2309 if ac_fn_c_try_compile "$LINENO"; then :
2314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2320 $as_echo "$ac_res" >&6; }
2321 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2323 } # ac_fn_c_check_type
2325 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2326 # -------------------------------------------------------
2327 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2328 # the include files in INCLUDES and setting the cache variable VAR
2330 ac_fn_c_check_header_mongrel ()
2332 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2333 if eval \${$3+:} false; then :
2334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2335 $as_echo_n "checking for $2... " >&6; }
2336 if eval \${$3+:} false; then :
2337 $as_echo_n "(cached) " >&6
2340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2341 $as_echo "$ac_res" >&6; }
2343 # Is the header compilable?
2344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2345 $as_echo_n "checking $2 usability... " >&6; }
2346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2347 /* end confdefs.h. */
2351 if ac_fn_c_try_compile "$LINENO"; then :
2352 ac_header_compiler=yes
2354 ac_header_compiler=no
2356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2358 $as_echo "$ac_header_compiler" >&6; }
2360 # Is the header present?
2361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2362 $as_echo_n "checking $2 presence... " >&6; }
2363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2364 /* end confdefs.h. */
2367 if ac_fn_c_try_cpp "$LINENO"; then :
2368 ac_header_preproc=yes
2370 ac_header_preproc=no
2372 rm -f conftest.err conftest.i conftest.$ac_ext
2373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2374 $as_echo "$ac_header_preproc" >&6; }
2376 # So? What about this header?
2377 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2379 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2380 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2381 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2382 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2385 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2386 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2387 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2388 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2389 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2390 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2391 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2392 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2393 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2394 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2398 $as_echo_n "checking for $2... " >&6; }
2399 if eval \${$3+:} false; then :
2400 $as_echo_n "(cached) " >&6
2402 eval "$3=\$ac_header_compiler"
2405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2406 $as_echo "$ac_res" >&6; }
2408 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2410 } # ac_fn_c_check_header_mongrel
2412 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2413 # --------------------------------------------
2414 # Tries to find the compile-time value of EXPR in a program that includes
2415 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2417 ac_fn_c_compute_int ()
2419 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2420 if test "$cross_compiling" = yes; then
2421 # Depending upon the size, compute the lo and hi bounds.
2422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2423 /* end confdefs.h. */
2428 static int test_array [1 - 2 * !(($2) >= 0)];
2430 return test_array [0];
2436 if ac_fn_c_try_compile "$LINENO"; then :
2439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2440 /* end confdefs.h. */
2445 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2447 return test_array [0];
2453 if ac_fn_c_try_compile "$LINENO"; then :
2454 ac_hi=$ac_mid; break
2456 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2457 if test $ac_lo -le $ac_mid; then
2461 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2467 /* end confdefs.h. */
2472 static int test_array [1 - 2 * !(($2) < 0)];
2474 return test_array [0];
2480 if ac_fn_c_try_compile "$LINENO"; then :
2483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2484 /* end confdefs.h. */
2489 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2491 return test_array [0];
2497 if ac_fn_c_try_compile "$LINENO"; then :
2498 ac_lo=$ac_mid; break
2500 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2501 if test $ac_mid -le $ac_hi; then
2505 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2515 # Binary search between lo and hi bounds.
2516 while test "x$ac_lo" != "x$ac_hi"; do
2517 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2519 /* end confdefs.h. */
2524 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2526 return test_array [0];
2532 if ac_fn_c_try_compile "$LINENO"; then :
2535 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2540 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2545 /* end confdefs.h. */
2547 static long int longval () { return $2; }
2548 static unsigned long int ulongval () { return $2; }
2555 FILE *f = fopen ("conftest.val", "w");
2560 long int i = longval ();
2563 fprintf (f, "%ld", i);
2567 unsigned long int i = ulongval ();
2570 fprintf (f, "%lu", i);
2572 /* Do not output a trailing newline, as this causes \r\n confusion
2573 on some platforms. */
2574 return ferror (f) || fclose (f) != 0;
2580 if ac_fn_c_try_run "$LINENO"; then :
2581 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2585 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2586 conftest.$ac_objext conftest.beam conftest.$ac_ext
2590 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2591 as_fn_set_status $ac_retval
2593 } # ac_fn_c_compute_int
2595 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2596 # ----------------------------------------------------
2597 # Tries to find if the field MEMBER exists in type AGGR, after including
2598 # INCLUDES, setting cache variable VAR accordingly.
2599 ac_fn_c_check_member ()
2601 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2603 $as_echo_n "checking for $2.$3... " >&6; }
2604 if eval \${$4+:} false; then :
2605 $as_echo_n "(cached) " >&6
2607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2608 /* end confdefs.h. */
2620 if ac_fn_c_try_compile "$LINENO"; then :
2623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2624 /* end confdefs.h. */
2630 if (sizeof ac_aggr.$3)
2636 if ac_fn_c_try_compile "$LINENO"; then :
2641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2647 $as_echo "$ac_res" >&6; }
2648 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2650 } # ac_fn_c_check_member
2652 # ac_fn_cxx_try_run LINENO
2653 # ------------------------
2654 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2655 # that executables *can* be run.
2656 ac_fn_cxx_try_run ()
2658 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2659 if { { ac_try="$ac_link"
2661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2662 *) ac_try_echo=$ac_try;;
2664 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2665 $as_echo "$ac_try_echo"; } >&5
2666 (eval "$ac_link") 2>&5
2668 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2669 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2670 { { case "(($ac_try" in
2671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2672 *) ac_try_echo=$ac_try;;
2674 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2675 $as_echo "$ac_try_echo"; } >&5
2676 (eval "$ac_try") 2>&5
2678 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2679 test $ac_status = 0; }; }; then :
2682 $as_echo "$as_me: program exited with status $ac_status" >&5
2683 $as_echo "$as_me: failed program was:" >&5
2684 sed 's/^/| /' conftest.$ac_ext >&5
2686 ac_retval=$ac_status
2688 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2689 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2690 as_fn_set_status $ac_retval
2692 } # ac_fn_cxx_try_run
2694 # ac_fn_cxx_check_func LINENO FUNC VAR
2695 # ------------------------------------
2696 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2697 ac_fn_cxx_check_func ()
2699 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2701 $as_echo_n "checking for $2... " >&6; }
2702 if eval \${$3+:} false; then :
2703 $as_echo_n "(cached) " >&6
2705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2706 /* end confdefs.h. */
2707 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2708 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2709 #define $2 innocuous_$2
2711 /* System header to define __stub macros and hopefully few prototypes,
2712 which can conflict with char $2 (); below.
2713 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2714 <limits.h> exists even on freestanding compilers. */
2717 # include <limits.h>
2719 # include <assert.h>
2724 /* Override any GCC internal prototype to avoid an error.
2725 Use char because int might match the return type of a GCC
2726 builtin and then its argument prototype would still apply. */
2731 /* The GNU C library defines this for functions which it implements
2732 to always fail with ENOSYS. Some functions are actually named
2733 something starting with __ and the normal name is an alias. */
2734 #if defined __stub_$2 || defined __stub___$2
2746 if ac_fn_cxx_try_link "$LINENO"; then :
2751 rm -f core conftest.err conftest.$ac_objext \
2752 conftest$ac_exeext conftest.$ac_ext
2755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2756 $as_echo "$ac_res" >&6; }
2757 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2759 } # ac_fn_cxx_check_func
2760 cat >config.log <<_ACEOF
2761 This file contains any messages produced by compilers while
2762 running configure, to aid debugging if configure makes a mistake.
2764 It was created by bacula $as_me 7.0.6, which was
2765 generated by GNU Autoconf 2.69. Invocation command line was
2777 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2778 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2779 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2780 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2781 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2783 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2784 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2786 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2787 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2788 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2789 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2790 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2791 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2792 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2800 test -z "$as_dir" && as_dir=.
2801 $as_echo "PATH: $as_dir"
2817 # Keep a trace of the command line.
2818 # Strip out --no-create and --no-recursion so they do not pile up.
2819 # Strip out --silent because we don't want to record it for future runs.
2820 # Also quote any args containing shell meta-characters.
2821 # Make two passes to allow for proper duplicate-argument suppression.
2825 ac_must_keep_next=false
2831 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2832 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2833 | -silent | --silent | --silen | --sile | --sil)
2836 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2839 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2841 as_fn_append ac_configure_args1 " '$ac_arg'"
2842 if test $ac_must_keep_next = true; then
2843 ac_must_keep_next=false # Got value, back to normal.
2846 *=* | --config-cache | -C | -disable-* | --disable-* \
2847 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2848 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2849 | -with-* | --with-* | -without-* | --without-* | --x)
2850 case "$ac_configure_args0 " in
2851 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2854 -* ) ac_must_keep_next=true ;;
2857 as_fn_append ac_configure_args " '$ac_arg'"
2862 { ac_configure_args0=; unset ac_configure_args0;}
2863 { ac_configure_args1=; unset ac_configure_args1;}
2865 # When interrupted or exit'd, cleanup temporary files, and complete
2866 # config.log. We remove comments because anyway the quotes in there
2867 # would cause problems or look ugly.
2868 # WARNING: Use '\'' to represent an apostrophe within the trap.
2869 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2870 trap 'exit_status=$?
2871 # Save into config.log some information that might help in debugging.
2875 $as_echo "## ---------------- ##
2876 ## Cache variables. ##
2877 ## ---------------- ##"
2879 # The following way of writing the cache mishandles newlines in values,
2881 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2882 eval ac_val=\$$ac_var
2886 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2887 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2890 _ | IFS | as_nl) ;; #(
2891 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2892 *) { eval $ac_var=; unset $ac_var;} ;;
2897 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2898 *${as_nl}ac_space=\ *)
2900 "s/'\''/'\''\\\\'\'''\''/g;
2901 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2904 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2911 $as_echo "## ----------------- ##
2912 ## Output variables. ##
2913 ## ----------------- ##"
2915 for ac_var in $ac_subst_vars
2917 eval ac_val=\$$ac_var
2919 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2921 $as_echo "$ac_var='\''$ac_val'\''"
2925 if test -n "$ac_subst_files"; then
2926 $as_echo "## ------------------- ##
2927 ## File substitutions. ##
2928 ## ------------------- ##"
2930 for ac_var in $ac_subst_files
2932 eval ac_val=\$$ac_var
2934 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2936 $as_echo "$ac_var='\''$ac_val'\''"
2941 if test -s confdefs.h; then
2942 $as_echo "## ----------- ##
2949 test "$ac_signal" != 0 &&
2950 $as_echo "$as_me: caught signal $ac_signal"
2951 $as_echo "$as_me: exit $exit_status"
2953 rm -f core *.core core.conftest.* &&
2954 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2957 for ac_signal in 1 2 13 15; do
2958 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2962 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2963 rm -f -r conftest* confdefs.h
2965 $as_echo "/* confdefs.h */" > confdefs.h
2967 # Predefined preprocessor variables.
2969 cat >>confdefs.h <<_ACEOF
2970 #define PACKAGE_NAME "$PACKAGE_NAME"
2973 cat >>confdefs.h <<_ACEOF
2974 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2977 cat >>confdefs.h <<_ACEOF
2978 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2981 cat >>confdefs.h <<_ACEOF
2982 #define PACKAGE_STRING "$PACKAGE_STRING"
2985 cat >>confdefs.h <<_ACEOF
2986 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2989 cat >>confdefs.h <<_ACEOF
2990 #define PACKAGE_URL "$PACKAGE_URL"
2994 # Let the site file select an alternate cache file if it wants to.
2995 # Prefer an explicitly selected file to automatically selected ones.
2998 if test -n "$CONFIG_SITE"; then
2999 # We do not want a PATH search for config.site.
3000 case $CONFIG_SITE in #((
3001 -*) ac_site_file1=./$CONFIG_SITE;;
3002 */*) ac_site_file1=$CONFIG_SITE;;
3003 *) ac_site_file1=./$CONFIG_SITE;;
3005 elif test "x$prefix" != xNONE; then
3006 ac_site_file1=$prefix/share/config.site
3007 ac_site_file2=$prefix/etc/config.site
3009 ac_site_file1=$ac_default_prefix/share/config.site
3010 ac_site_file2=$ac_default_prefix/etc/config.site
3012 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3014 test "x$ac_site_file" = xNONE && continue
3015 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3016 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3017 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3018 sed 's/^/| /' "$ac_site_file" >&5
3020 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3021 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3022 as_fn_error $? "failed to load site script $ac_site_file
3023 See \`config.log' for more details" "$LINENO" 5; }
3027 if test -r "$cache_file"; then
3028 # Some versions of bash will fail to source /dev/null (special files
3029 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3030 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3031 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3032 $as_echo "$as_me: loading cache $cache_file" >&6;}
3034 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3035 *) . "./$cache_file";;
3039 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3040 $as_echo "$as_me: creating cache $cache_file" >&6;}
3044 as_fn_append ac_header_list " stdlib.h"
3045 as_fn_append ac_header_list " unistd.h"
3046 as_fn_append ac_header_list " sys/param.h"
3047 # Check that the precious variables saved in the cache have kept the same
3049 ac_cache_corrupted=false
3050 for ac_var in $ac_precious_vars; do
3051 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3052 eval ac_new_set=\$ac_env_${ac_var}_set
3053 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3054 eval ac_new_val=\$ac_env_${ac_var}_value
3055 case $ac_old_set,$ac_new_set in
3057 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3058 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3059 ac_cache_corrupted=: ;;
3061 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3062 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3063 ac_cache_corrupted=: ;;
3066 if test "x$ac_old_val" != "x$ac_new_val"; then
3067 # differences in whitespace do not lead to failure.
3068 ac_old_val_w=`echo x $ac_old_val`
3069 ac_new_val_w=`echo x $ac_new_val`
3070 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3071 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3072 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3073 ac_cache_corrupted=:
3075 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3076 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3077 eval $ac_var=\$ac_old_val
3079 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3080 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3081 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3082 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3085 # Pass precious variables to config.status.
3086 if test "$ac_new_set" = set; then
3088 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3089 *) ac_arg=$ac_var=$ac_new_val ;;
3091 case " $ac_configure_args " in
3092 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3093 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3097 if $ac_cache_corrupted; then
3098 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3099 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3100 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3101 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3102 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3104 ## -------------------- ##
3105 ## Main body of script. ##
3106 ## -------------------- ##
3109 ac_cpp='$CPP $CPPFLAGS'
3110 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3111 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3112 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3124 for ac_dir in ${BUILD_DIR}/autoconf "$srcdir"/${BUILD_DIR}/autoconf; do
3125 if test -f "$ac_dir/install-sh"; then
3127 ac_install_sh="$ac_aux_dir/install-sh -c"
3129 elif test -f "$ac_dir/install.sh"; then
3131 ac_install_sh="$ac_aux_dir/install.sh -c"
3133 elif test -f "$ac_dir/shtool"; then
3135 ac_install_sh="$ac_aux_dir/shtool install -c"
3139 if test -z "$ac_aux_dir"; then
3140 as_fn_error $? "cannot find install-sh, install.sh, or shtool in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" "$LINENO" 5
3143 # These three variables are undocumented and unsupported,
3144 # and are intended to be withdrawn in a future Autoconf release.
3145 # They can cause serious problems if a builder's source tree is in a directory
3146 # whose full name contains unusual characters.
3147 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3148 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3149 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3152 ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
3157 # Extract the first word of "$ac_prog", so it can be a program name with args.
3158 set dummy $ac_prog; ac_word=$2
3159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3160 $as_echo_n "checking for $ac_word... " >&6; }
3161 if ${ac_cv_path_TRUEPRG+:} false; then :
3162 $as_echo_n "(cached) " >&6
3166 ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
3169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3173 test -z "$as_dir" && as_dir=.
3174 for ac_exec_ext in '' $ac_executable_extensions; do
3175 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3176 ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
3177 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3187 TRUEPRG=$ac_cv_path_TRUEPRG
3188 if test -n "$TRUEPRG"; then
3189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TRUEPRG" >&5
3190 $as_echo "$TRUEPRG" >&6; }
3192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3193 $as_echo "no" >&6; }
3197 test -n "$TRUEPRG" && break
3199 test -n "$TRUEPRG" || TRUEPRG=":"
3201 for ac_prog in false
3203 # Extract the first word of "$ac_prog", so it can be a program name with args.
3204 set dummy $ac_prog; ac_word=$2
3205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3206 $as_echo_n "checking for $ac_word... " >&6; }
3207 if ${ac_cv_path_FALSEPRG+:} false; then :
3208 $as_echo_n "(cached) " >&6
3212 ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
3215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3219 test -z "$as_dir" && as_dir=.
3220 for ac_exec_ext in '' $ac_executable_extensions; do
3221 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3222 ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
3223 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3233 FALSEPRG=$ac_cv_path_FALSEPRG
3234 if test -n "$FALSEPRG"; then
3235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FALSEPRG" >&5
3236 $as_echo "$FALSEPRG" >&6; }
3238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3239 $as_echo "no" >&6; }
3243 test -n "$FALSEPRG" && break
3245 test -n "$FALSEPRG" || FALSEPRG=":"
3250 if test "x$BACULA" != x; then
3251 post_host=`echo -${BACULA} | tr 'A-Z ' 'a-z-'`
3253 BACULA=${BACULA:-Bacula}
3254 VERSION=`sed -n -e 's/^#define VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3255 RELEASE=`sed -n -e 's/^#define RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3256 DATE=`sed -n -e 's/^#define BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3257 LSMDATE=`sed -n -e 's/^#define LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3258 BDB_VERSION=`sed -n -e 's/^#define BDB_VERSION \(.*\)$/\1/p' ${srcdir}/src/cats/cats.h`
3259 DEPKGS_VERSION=`sed -n -e 's/^#define DEPKGS_VERSION \(.*\)$/\1/p' ${srcdir}/src/cats/cats.h`
3260 DEPKGS_QT_VERSION=`sed -n -e 's/^#define DEPKGS_QT_VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3261 BQT_VERSION=`sed -n -e 's/^#define BQT_VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3263 LIBBAC_LT_RELEASE=`sed -n -e 's/^#.*LIBBAC_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3264 LIBBACCFG_LT_RELEASE=`sed -n -e 's/^#.*LIBBACCFG_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3266 LIBBAC_LT_RELEASE=${LIBBAC_LT_RELEASE:-$VERSION}
3267 LIBBACCFG_LT_RELEASE=${LIBBACCFG_LT_RELEASE:-$VERSION}
3270 LIBBACSQL_LT_RELEASE=`sed -n -e 's/^#.*LIBBACSQL_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3271 LIBBACCATS_LT_RELEASE=`sed -n -e 's/^#.*LIBBACCATS_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3273 LIBBACSQL_LT_RELEASE=${LIBBACSQL_LT_RELEASE:-$VERSION}
3274 LIBBACCATS_LT_RELEASE=${LIBBACCATS_LT_RELEASE:-$VERSION}
3277 LIBBACFIND_LT_RELEASE=`sed -n -e 's/^#.*LIBBACFIND_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3279 LIBBACFIND_LT_RELEASE=${LIBBACFIND_LT_RELEASE:-$VERSION}
3282 echo "configuring for ${BACULA} $VERSION ($DATE)"
3287 ac_cpp='$CPP $CPPFLAGS'
3288 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3289 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3290 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3291 if test -n "$ac_tool_prefix"; then
3292 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3293 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3295 $as_echo_n "checking for $ac_word... " >&6; }
3296 if ${ac_cv_prog_CC+:} false; then :
3297 $as_echo_n "(cached) " >&6
3299 if test -n "$CC"; then
3300 ac_cv_prog_CC="$CC" # Let the user override the test.
3302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3306 test -z "$as_dir" && as_dir=.
3307 for ac_exec_ext in '' $ac_executable_extensions; do
3308 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3309 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3310 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3320 if test -n "$CC"; then
3321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3322 $as_echo "$CC" >&6; }
3324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3325 $as_echo "no" >&6; }
3330 if test -z "$ac_cv_prog_CC"; then
3332 # Extract the first word of "gcc", so it can be a program name with args.
3333 set dummy gcc; ac_word=$2
3334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3335 $as_echo_n "checking for $ac_word... " >&6; }
3336 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3337 $as_echo_n "(cached) " >&6
3339 if test -n "$ac_ct_CC"; then
3340 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3346 test -z "$as_dir" && as_dir=.
3347 for ac_exec_ext in '' $ac_executable_extensions; do
3348 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3349 ac_cv_prog_ac_ct_CC="gcc"
3350 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3359 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3360 if test -n "$ac_ct_CC"; then
3361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3362 $as_echo "$ac_ct_CC" >&6; }
3364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3365 $as_echo "no" >&6; }
3368 if test "x$ac_ct_CC" = x; then
3371 case $cross_compiling:$ac_tool_warned in
3373 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3374 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3375 ac_tool_warned=yes ;;
3383 if test -z "$CC"; then
3384 if test -n "$ac_tool_prefix"; then
3385 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3386 set dummy ${ac_tool_prefix}cc; ac_word=$2
3387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3388 $as_echo_n "checking for $ac_word... " >&6; }
3389 if ${ac_cv_prog_CC+:} false; then :
3390 $as_echo_n "(cached) " >&6
3392 if test -n "$CC"; then
3393 ac_cv_prog_CC="$CC" # Let the user override the test.
3395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3399 test -z "$as_dir" && as_dir=.
3400 for ac_exec_ext in '' $ac_executable_extensions; do
3401 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3402 ac_cv_prog_CC="${ac_tool_prefix}cc"
3403 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3413 if test -n "$CC"; then
3414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3415 $as_echo "$CC" >&6; }
3417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3418 $as_echo "no" >&6; }
3424 if test -z "$CC"; then
3425 # Extract the first word of "cc", so it can be a program name with args.
3426 set dummy cc; ac_word=$2
3427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3428 $as_echo_n "checking for $ac_word... " >&6; }
3429 if ${ac_cv_prog_CC+:} false; then :
3430 $as_echo_n "(cached) " >&6
3432 if test -n "$CC"; then
3433 ac_cv_prog_CC="$CC" # Let the user override the test.
3436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3440 test -z "$as_dir" && as_dir=.
3441 for ac_exec_ext in '' $ac_executable_extensions; do
3442 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3443 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3444 ac_prog_rejected=yes
3448 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3455 if test $ac_prog_rejected = yes; then
3456 # We found a bogon in the path, so make sure we never use it.
3457 set dummy $ac_cv_prog_CC
3459 if test $# != 0; then
3460 # We chose a different compiler from the bogus one.
3461 # However, it has the same basename, so the bogon will be chosen
3462 # first if we set CC to just the basename; use the full file name.
3464 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3470 if test -n "$CC"; then
3471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3472 $as_echo "$CC" >&6; }
3474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3475 $as_echo "no" >&6; }
3480 if test -z "$CC"; then
3481 if test -n "$ac_tool_prefix"; then
3482 for ac_prog in cl.exe
3484 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3485 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3487 $as_echo_n "checking for $ac_word... " >&6; }
3488 if ${ac_cv_prog_CC+:} false; then :
3489 $as_echo_n "(cached) " >&6
3491 if test -n "$CC"; then
3492 ac_cv_prog_CC="$CC" # Let the user override the test.
3494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3498 test -z "$as_dir" && as_dir=.
3499 for ac_exec_ext in '' $ac_executable_extensions; do
3500 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3501 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3502 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3512 if test -n "$CC"; then
3513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3514 $as_echo "$CC" >&6; }
3516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3517 $as_echo "no" >&6; }
3521 test -n "$CC" && break
3524 if test -z "$CC"; then
3526 for ac_prog in cl.exe
3528 # Extract the first word of "$ac_prog", so it can be a program name with args.
3529 set dummy $ac_prog; ac_word=$2
3530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3531 $as_echo_n "checking for $ac_word... " >&6; }
3532 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3533 $as_echo_n "(cached) " >&6
3535 if test -n "$ac_ct_CC"; then
3536 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3542 test -z "$as_dir" && as_dir=.
3543 for ac_exec_ext in '' $ac_executable_extensions; do
3544 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3545 ac_cv_prog_ac_ct_CC="$ac_prog"
3546 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3555 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3556 if test -n "$ac_ct_CC"; then
3557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3558 $as_echo "$ac_ct_CC" >&6; }
3560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3561 $as_echo "no" >&6; }
3565 test -n "$ac_ct_CC" && break
3568 if test "x$ac_ct_CC" = x; then
3571 case $cross_compiling:$ac_tool_warned in
3573 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3574 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3575 ac_tool_warned=yes ;;
3584 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3585 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3586 as_fn_error $? "no acceptable C compiler found in \$PATH
3587 See \`config.log' for more details" "$LINENO" 5; }
3589 # Provide some information about the compiler.
3590 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3593 for ac_option in --version -v -V -qversion; do
3594 { { ac_try="$ac_compiler $ac_option >&5"
3596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3597 *) ac_try_echo=$ac_try;;
3599 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3600 $as_echo "$ac_try_echo"; } >&5
3601 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3603 if test -s conftest.err; then
3605 ... rest of stderr output deleted ...
3606 10q' conftest.err >conftest.er1
3607 cat conftest.er1 >&5
3609 rm -f conftest.er1 conftest.err
3610 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3611 test $ac_status = 0; }
3614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3615 /* end confdefs.h. */
3625 ac_clean_files_save=$ac_clean_files
3626 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3627 # Try to create an executable without -o first, disregard a.out.
3628 # It will help us diagnose broken compilers, and finding out an intuition
3630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3631 $as_echo_n "checking whether the C compiler works... " >&6; }
3632 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3634 # The possible output files:
3635 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3638 for ac_file in $ac_files
3641 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3642 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3647 if { { ac_try="$ac_link_default"
3649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3650 *) ac_try_echo=$ac_try;;
3652 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3653 $as_echo "$ac_try_echo"; } >&5
3654 (eval "$ac_link_default") 2>&5
3656 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3657 test $ac_status = 0; }; then :
3658 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3659 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3660 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3661 # so that the user can short-circuit this test for compilers unknown to
3663 for ac_file in $ac_files ''
3665 test -f "$ac_file" || continue
3667 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3670 # We found the default executable, but exeext='' is most
3674 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3676 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3678 # We set ac_cv_exeext here because the later test for it is not
3679 # safe: cross compilers may not add the suffix if given an `-o'
3680 # argument, so we may need to know it at that point already.
3681 # Even if this section looks crufty: it has the advantage of
3688 test "$ac_cv_exeext" = no && ac_cv_exeext=
3693 if test -z "$ac_file"; then :
3694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3695 $as_echo "no" >&6; }
3696 $as_echo "$as_me: failed program was:" >&5
3697 sed 's/^/| /' conftest.$ac_ext >&5
3699 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3700 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3701 as_fn_error 77 "C compiler cannot create executables
3702 See \`config.log' for more details" "$LINENO" 5; }
3704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3705 $as_echo "yes" >&6; }
3707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3708 $as_echo_n "checking for C compiler default output file name... " >&6; }
3709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3710 $as_echo "$ac_file" >&6; }
3711 ac_exeext=$ac_cv_exeext
3713 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3714 ac_clean_files=$ac_clean_files_save
3715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3716 $as_echo_n "checking for suffix of executables... " >&6; }
3717 if { { ac_try="$ac_link"
3719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3720 *) ac_try_echo=$ac_try;;
3722 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3723 $as_echo "$ac_try_echo"; } >&5
3724 (eval "$ac_link") 2>&5
3726 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3727 test $ac_status = 0; }; then :
3728 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3729 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3730 # work properly (i.e., refer to `conftest.exe'), while it won't with
3732 for ac_file in conftest.exe conftest conftest.*; do
3733 test -f "$ac_file" || continue
3735 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3736 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3742 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3743 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3744 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3745 See \`config.log' for more details" "$LINENO" 5; }
3747 rm -f conftest conftest$ac_cv_exeext
3748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3749 $as_echo "$ac_cv_exeext" >&6; }
3751 rm -f conftest.$ac_ext
3752 EXEEXT=$ac_cv_exeext
3754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3755 /* end confdefs.h. */
3760 FILE *f = fopen ("conftest.out", "w");
3761 return ferror (f) || fclose (f) != 0;
3767 ac_clean_files="$ac_clean_files conftest.out"
3768 # Check that the compiler produces executables we can run. If not, either
3769 # the compiler is broken, or we cross compile.
3770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3771 $as_echo_n "checking whether we are cross compiling... " >&6; }
3772 if test "$cross_compiling" != yes; then
3773 { { ac_try="$ac_link"
3775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3776 *) ac_try_echo=$ac_try;;
3778 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3779 $as_echo "$ac_try_echo"; } >&5
3780 (eval "$ac_link") 2>&5
3782 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3783 test $ac_status = 0; }
3784 if { ac_try='./conftest$ac_cv_exeext'
3785 { { case "(($ac_try" in
3786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3787 *) ac_try_echo=$ac_try;;
3789 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3790 $as_echo "$ac_try_echo"; } >&5
3791 (eval "$ac_try") 2>&5
3793 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3794 test $ac_status = 0; }; }; then
3797 if test "$cross_compiling" = maybe; then
3800 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3801 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3802 as_fn_error $? "cannot run C compiled programs.
3803 If you meant to cross compile, use \`--host'.
3804 See \`config.log' for more details" "$LINENO" 5; }
3808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3809 $as_echo "$cross_compiling" >&6; }
3811 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3812 ac_clean_files=$ac_clean_files_save
3813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3814 $as_echo_n "checking for suffix of object files... " >&6; }
3815 if ${ac_cv_objext+:} false; then :
3816 $as_echo_n "(cached) " >&6
3818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3819 /* end confdefs.h. */
3829 rm -f conftest.o conftest.obj
3830 if { { ac_try="$ac_compile"
3832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3833 *) ac_try_echo=$ac_try;;
3835 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3836 $as_echo "$ac_try_echo"; } >&5
3837 (eval "$ac_compile") 2>&5
3839 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3840 test $ac_status = 0; }; then :
3841 for ac_file in conftest.o conftest.obj conftest.*; do
3842 test -f "$ac_file" || continue;
3844 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3845 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3850 $as_echo "$as_me: failed program was:" >&5
3851 sed 's/^/| /' conftest.$ac_ext >&5
3853 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3854 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3855 as_fn_error $? "cannot compute suffix of object files: cannot compile
3856 See \`config.log' for more details" "$LINENO" 5; }
3858 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3861 $as_echo "$ac_cv_objext" >&6; }
3862 OBJEXT=$ac_cv_objext
3864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3865 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3866 if ${ac_cv_c_compiler_gnu+:} false; then :
3867 $as_echo_n "(cached) " >&6
3869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3870 /* end confdefs.h. */
3883 if ac_fn_c_try_compile "$LINENO"; then :
3888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3889 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3893 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3894 if test $ac_compiler_gnu = yes; then
3899 ac_test_CFLAGS=${CFLAGS+set}
3900 ac_save_CFLAGS=$CFLAGS
3901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3902 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3903 if ${ac_cv_prog_cc_g+:} false; then :
3904 $as_echo_n "(cached) " >&6
3906 ac_save_c_werror_flag=$ac_c_werror_flag
3907 ac_c_werror_flag=yes
3910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3911 /* end confdefs.h. */
3921 if ac_fn_c_try_compile "$LINENO"; then :
3925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3926 /* end confdefs.h. */
3936 if ac_fn_c_try_compile "$LINENO"; then :
3939 ac_c_werror_flag=$ac_save_c_werror_flag
3941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3942 /* end confdefs.h. */
3952 if ac_fn_c_try_compile "$LINENO"; then :
3955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3960 ac_c_werror_flag=$ac_save_c_werror_flag
3962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3963 $as_echo "$ac_cv_prog_cc_g" >&6; }
3964 if test "$ac_test_CFLAGS" = set; then
3965 CFLAGS=$ac_save_CFLAGS
3966 elif test $ac_cv_prog_cc_g = yes; then
3967 if test "$GCC" = yes; then
3973 if test "$GCC" = yes; then
3979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3980 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3981 if ${ac_cv_prog_cc_c89+:} false; then :
3982 $as_echo_n "(cached) " >&6
3984 ac_cv_prog_cc_c89=no
3986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3987 /* end confdefs.h. */
3991 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3992 struct buf { int x; };
3993 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3994 static char *e (p, i)
4000 static char *f (char * (*g) (char **, int), char **p, ...)
4005 s = g (p, va_arg (v,int));
4010 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4011 function prototypes and stuff, but not '\xHH' hex character constants.
4012 These don't provoke an error unfortunately, instead are silently treated
4013 as 'x'. The following induces an error, until -std is added to get
4014 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4015 array size at least. It's necessary to write '\x00'==0 to get something
4016 that's true only with -std. */
4017 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4019 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4020 inside strings and character constants. */
4022 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4024 int test (int i, double x);
4025 struct s1 {int (*f) (int a);};
4026 struct s2 {int (*f) (double a);};
4027 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4033 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4038 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4039 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4041 CC="$ac_save_CC $ac_arg"
4042 if ac_fn_c_try_compile "$LINENO"; then :
4043 ac_cv_prog_cc_c89=$ac_arg
4045 rm -f core conftest.err conftest.$ac_objext
4046 test "x$ac_cv_prog_cc_c89" != "xno" && break
4048 rm -f conftest.$ac_ext
4053 case "x$ac_cv_prog_cc_c89" in
4055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4056 $as_echo "none needed" >&6; } ;;
4058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4059 $as_echo "unsupported" >&6; } ;;
4061 CC="$CC $ac_cv_prog_cc_c89"
4062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4063 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4065 if test "x$ac_cv_prog_cc_c89" != xno; then :
4070 ac_cpp='$CPP $CPPFLAGS'
4071 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4072 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4073 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4076 ac_cpp='$CXXCPP $CPPFLAGS'
4077 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4078 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4079 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4080 if test -z "$CXX"; then
4081 if test -n "$CCC"; then
4084 if test -n "$ac_tool_prefix"; then
4085 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4087 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4088 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4090 $as_echo_n "checking for $ac_word... " >&6; }
4091 if ${ac_cv_prog_CXX+:} false; then :
4092 $as_echo_n "(cached) " >&6
4094 if test -n "$CXX"; then
4095 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4101 test -z "$as_dir" && as_dir=.
4102 for ac_exec_ext in '' $ac_executable_extensions; do
4103 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4104 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4105 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4115 if test -n "$CXX"; then
4116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4117 $as_echo "$CXX" >&6; }
4119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4120 $as_echo "no" >&6; }
4124 test -n "$CXX" && break
4127 if test -z "$CXX"; then
4129 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4131 # Extract the first word of "$ac_prog", so it can be a program name with args.
4132 set dummy $ac_prog; ac_word=$2
4133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4134 $as_echo_n "checking for $ac_word... " >&6; }
4135 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4136 $as_echo_n "(cached) " >&6
4138 if test -n "$ac_ct_CXX"; then
4139 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4145 test -z "$as_dir" && as_dir=.
4146 for ac_exec_ext in '' $ac_executable_extensions; do
4147 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4148 ac_cv_prog_ac_ct_CXX="$ac_prog"
4149 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4158 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4159 if test -n "$ac_ct_CXX"; then
4160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4161 $as_echo "$ac_ct_CXX" >&6; }
4163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4164 $as_echo "no" >&6; }
4168 test -n "$ac_ct_CXX" && break
4171 if test "x$ac_ct_CXX" = x; then
4174 case $cross_compiling:$ac_tool_warned in
4176 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4177 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4178 ac_tool_warned=yes ;;
4186 # Provide some information about the compiler.
4187 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4190 for ac_option in --version -v -V -qversion; do
4191 { { ac_try="$ac_compiler $ac_option >&5"
4193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4194 *) ac_try_echo=$ac_try;;
4196 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4197 $as_echo "$ac_try_echo"; } >&5
4198 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4200 if test -s conftest.err; then
4202 ... rest of stderr output deleted ...
4203 10q' conftest.err >conftest.er1
4204 cat conftest.er1 >&5
4206 rm -f conftest.er1 conftest.err
4207 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4208 test $ac_status = 0; }
4211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4212 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4213 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4214 $as_echo_n "(cached) " >&6
4216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4217 /* end confdefs.h. */
4230 if ac_fn_cxx_try_compile "$LINENO"; then :
4235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4236 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4240 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4241 if test $ac_compiler_gnu = yes; then
4246 ac_test_CXXFLAGS=${CXXFLAGS+set}
4247 ac_save_CXXFLAGS=$CXXFLAGS
4248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4249 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4250 if ${ac_cv_prog_cxx_g+:} false; then :
4251 $as_echo_n "(cached) " >&6
4253 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4254 ac_cxx_werror_flag=yes
4257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4258 /* end confdefs.h. */
4268 if ac_fn_cxx_try_compile "$LINENO"; then :
4269 ac_cv_prog_cxx_g=yes
4272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4273 /* end confdefs.h. */
4283 if ac_fn_cxx_try_compile "$LINENO"; then :
4286 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4289 /* end confdefs.h. */
4299 if ac_fn_cxx_try_compile "$LINENO"; then :
4300 ac_cv_prog_cxx_g=yes
4302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4307 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4310 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4311 if test "$ac_test_CXXFLAGS" = set; then
4312 CXXFLAGS=$ac_save_CXXFLAGS
4313 elif test $ac_cv_prog_cxx_g = yes; then
4314 if test "$GXX" = yes; then
4320 if test "$GXX" = yes; then
4327 ac_cpp='$CPP $CPPFLAGS'
4328 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4329 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4330 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4332 if test "x$CC" != xcc; then
4333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4334 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4337 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4339 set dummy $CC; ac_cc=`$as_echo "$2" |
4340 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4341 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
4342 $as_echo_n "(cached) " >&6
4344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4345 /* end confdefs.h. */
4355 # Make sure it works both with $CC and with simple cc.
4356 # We do the test twice because some compilers refuse to overwrite an
4357 # existing .o file with -o, though they will create one.
4358 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4360 if { { case "(($ac_try" in
4361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4362 *) ac_try_echo=$ac_try;;
4364 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4365 $as_echo "$ac_try_echo"; } >&5
4366 (eval "$ac_try") 2>&5
4368 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4369 test $ac_status = 0; } &&
4370 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4372 *) ac_try_echo=$ac_try;;
4374 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4375 $as_echo "$ac_try_echo"; } >&5
4376 (eval "$ac_try") 2>&5
4378 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4379 test $ac_status = 0; };
4381 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4382 if test "x$CC" != xcc; then
4383 # Test first that cc exists at all.
4384 if { ac_try='cc -c conftest.$ac_ext >&5'
4385 { { case "(($ac_try" in
4386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4387 *) ac_try_echo=$ac_try;;
4389 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4390 $as_echo "$ac_try_echo"; } >&5
4391 (eval "$ac_try") 2>&5
4393 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4394 test $ac_status = 0; }; }; then
4395 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4397 if { { 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; } &&
4407 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4409 *) ac_try_echo=$ac_try;;
4411 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4412 $as_echo "$ac_try_echo"; } >&5
4413 (eval "$ac_try") 2>&5
4415 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4416 test $ac_status = 0; };
4421 # cc exists but doesn't like -o.
4422 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4427 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4429 rm -f core conftest*
4432 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4434 $as_echo "yes" >&6; }
4436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4437 $as_echo "no" >&6; }
4439 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4444 ac_cpp='$CPP $CPPFLAGS'
4445 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4446 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4447 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4449 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4450 # On Suns, sometimes $CPP names a directory.
4451 if test -n "$CPP" && test -d "$CPP"; then
4454 if test -z "$CPP"; then
4455 if ${ac_cv_prog_CPP+:} false; then :
4456 $as_echo_n "(cached) " >&6
4458 # Double quotes because CPP needs to be expanded
4459 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4462 for ac_c_preproc_warn_flag in '' yes
4464 # Use a header file that comes with gcc, so configuring glibc
4465 # with a fresh cross-compiler works.
4466 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4467 # <limits.h> exists even on freestanding compilers.
4468 # On the NeXT, cc -E runs the code through the compiler's parser,
4469 # not just through cpp. "Syntax error" is here to catch this case.
4470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4471 /* end confdefs.h. */
4473 # include <limits.h>
4475 # include <assert.h>
4479 if ac_fn_c_try_cpp "$LINENO"; then :
4482 # Broken: fails on valid input.
4485 rm -f conftest.err conftest.i conftest.$ac_ext
4487 # OK, works on sane cases. Now check whether nonexistent headers
4488 # can be detected and how.
4489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4490 /* end confdefs.h. */
4491 #include <ac_nonexistent.h>
4493 if ac_fn_c_try_cpp "$LINENO"; then :
4494 # Broken: success on invalid input.
4497 # Passes both tests.
4501 rm -f conftest.err conftest.i conftest.$ac_ext
4504 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4505 rm -f conftest.i conftest.err conftest.$ac_ext
4506 if $ac_preproc_ok; then :
4518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4519 $as_echo "$CPP" >&6; }
4521 for ac_c_preproc_warn_flag in '' yes
4523 # Use a header file that comes with gcc, so configuring glibc
4524 # with a fresh cross-compiler works.
4525 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4526 # <limits.h> exists even on freestanding compilers.
4527 # On the NeXT, cc -E runs the code through the compiler's parser,
4528 # not just through cpp. "Syntax error" is here to catch this case.
4529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4530 /* end confdefs.h. */
4532 # include <limits.h>
4534 # include <assert.h>
4538 if ac_fn_c_try_cpp "$LINENO"; then :
4541 # Broken: fails on valid input.
4544 rm -f conftest.err conftest.i conftest.$ac_ext
4546 # OK, works on sane cases. Now check whether nonexistent headers
4547 # can be detected and how.
4548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4549 /* end confdefs.h. */
4550 #include <ac_nonexistent.h>
4552 if ac_fn_c_try_cpp "$LINENO"; then :
4553 # Broken: success on invalid input.
4556 # Passes both tests.
4560 rm -f conftest.err conftest.i conftest.$ac_ext
4563 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4564 rm -f conftest.i conftest.err conftest.$ac_ext
4565 if $ac_preproc_ok; then :
4568 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4569 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4570 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4571 See \`config.log' for more details" "$LINENO" 5; }
4575 ac_cpp='$CPP $CPPFLAGS'
4576 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4577 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4578 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4582 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4583 if ${ac_cv_path_GREP+:} false; then :
4584 $as_echo_n "(cached) " >&6
4586 if test -z "$GREP"; then
4587 ac_path_GREP_found=false
4588 # Loop through the user's path and test for each of PROGNAME-LIST
4589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4590 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4593 test -z "$as_dir" && as_dir=.
4594 for ac_prog in grep ggrep; do
4595 for ac_exec_ext in '' $ac_executable_extensions; do
4596 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4597 as_fn_executable_p "$ac_path_GREP" || continue
4598 # Check for GNU ac_path_GREP and select it if it is found.
4599 # Check for GNU $ac_path_GREP
4600 case `"$ac_path_GREP" --version 2>&1` in
4602 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4605 $as_echo_n 0123456789 >"conftest.in"
4608 cat "conftest.in" "conftest.in" >"conftest.tmp"
4609 mv "conftest.tmp" "conftest.in"
4610 cp "conftest.in" "conftest.nl"
4611 $as_echo 'GREP' >> "conftest.nl"
4612 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4613 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4614 as_fn_arith $ac_count + 1 && ac_count=$as_val
4615 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4616 # Best one so far, save it but keep looking for a better one
4617 ac_cv_path_GREP="$ac_path_GREP"
4618 ac_path_GREP_max=$ac_count
4620 # 10*(2^10) chars as input seems more than enough
4621 test $ac_count -gt 10 && break
4623 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4626 $ac_path_GREP_found && break 3
4631 if test -z "$ac_cv_path_GREP"; then
4632 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4635 ac_cv_path_GREP=$GREP
4639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4640 $as_echo "$ac_cv_path_GREP" >&6; }
4641 GREP="$ac_cv_path_GREP"
4644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4645 $as_echo_n "checking for egrep... " >&6; }
4646 if ${ac_cv_path_EGREP+:} false; then :
4647 $as_echo_n "(cached) " >&6
4649 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4650 then ac_cv_path_EGREP="$GREP -E"
4652 if test -z "$EGREP"; then
4653 ac_path_EGREP_found=false
4654 # Loop through the user's path and test for each of PROGNAME-LIST
4655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4656 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4659 test -z "$as_dir" && as_dir=.
4660 for ac_prog in egrep; do
4661 for ac_exec_ext in '' $ac_executable_extensions; do
4662 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4663 as_fn_executable_p "$ac_path_EGREP" || continue
4664 # Check for GNU ac_path_EGREP and select it if it is found.
4665 # Check for GNU $ac_path_EGREP
4666 case `"$ac_path_EGREP" --version 2>&1` in
4668 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4671 $as_echo_n 0123456789 >"conftest.in"
4674 cat "conftest.in" "conftest.in" >"conftest.tmp"
4675 mv "conftest.tmp" "conftest.in"
4676 cp "conftest.in" "conftest.nl"
4677 $as_echo 'EGREP' >> "conftest.nl"
4678 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4679 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4680 as_fn_arith $ac_count + 1 && ac_count=$as_val
4681 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4682 # Best one so far, save it but keep looking for a better one
4683 ac_cv_path_EGREP="$ac_path_EGREP"
4684 ac_path_EGREP_max=$ac_count
4686 # 10*(2^10) chars as input seems more than enough
4687 test $ac_count -gt 10 && break
4689 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4692 $ac_path_EGREP_found && break 3
4697 if test -z "$ac_cv_path_EGREP"; then
4698 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4701 ac_cv_path_EGREP=$EGREP
4706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4707 $as_echo "$ac_cv_path_EGREP" >&6; }
4708 EGREP="$ac_cv_path_EGREP"
4711 if test $ac_cv_c_compiler_gnu = yes; then
4712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
4713 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
4714 if ${ac_cv_prog_gcc_traditional+:} false; then :
4715 $as_echo_n "(cached) " >&6
4717 ac_pattern="Autoconf.*'x'"
4718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4719 /* end confdefs.h. */
4723 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4724 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4725 ac_cv_prog_gcc_traditional=yes
4727 ac_cv_prog_gcc_traditional=no
4732 if test $ac_cv_prog_gcc_traditional = no; then
4733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4734 /* end confdefs.h. */
4738 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4739 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4740 ac_cv_prog_gcc_traditional=yes
4746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
4747 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
4748 if test $ac_cv_prog_gcc_traditional = yes; then
4749 CC="$CC -traditional"
4753 BASECC=`basename $CC`
4755 if test "x$BASECC" = xgcc; then
4756 $as_echo "#define HAVE_GCC 1" >>confdefs.h
4760 # Extract the first word of "$CXX", so it can be a program name with args.
4761 set dummy $CXX; ac_word=$2
4762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4763 $as_echo_n "checking for $ac_word... " >&6; }
4764 if ${ac_cv_path_CXX+:} false; then :
4765 $as_echo_n "(cached) " >&6
4769 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
4772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4776 test -z "$as_dir" && as_dir=.
4777 for ac_exec_ext in '' $ac_executable_extensions; do
4778 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4779 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
4780 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4787 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="$CXX"
4792 if test -n "$CXX"; then
4793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4794 $as_echo "$CXX" >&6; }
4796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4797 $as_echo "no" >&6; }
4801 if test ! -e $CXX; then
4802 as_fn_error $? "Unable to find C++ compiler" "$LINENO" 5
4805 # Find a good install program. We prefer a C program (faster),
4806 # so one script is as good as another. But avoid the broken or
4807 # incompatible versions:
4808 # SysV /etc/install, /usr/sbin/install
4809 # SunOS /usr/etc/install
4810 # IRIX /sbin/install
4812 # AmigaOS /C/install, which installs bootblocks on floppy discs
4813 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4814 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4815 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4816 # OS/2's system install, which has a completely different semantic
4817 # ./install, which can be erroneously created by make from ./install.sh.
4818 # Reject install programs that cannot install multiple files.
4819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4820 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4821 if test -z "$INSTALL"; then
4822 if ${ac_cv_path_install+:} false; then :
4823 $as_echo_n "(cached) " >&6
4825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4829 test -z "$as_dir" && as_dir=.
4830 # Account for people who put trailing slashes in PATH elements.
4831 case $as_dir/ in #((
4832 ./ | .// | /[cC]/* | \
4833 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4834 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4837 # OSF1 and SCO ODT 3.0 have their own names for install.
4838 # Don't use installbsd from OSF since it installs stuff as root
4840 for ac_prog in ginstall scoinst install; do
4841 for ac_exec_ext in '' $ac_executable_extensions; do
4842 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4843 if test $ac_prog = install &&
4844 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4845 # AIX install. It has an incompatible calling convention.
4847 elif test $ac_prog = install &&
4848 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4849 # program-specific install script used by HP pwplus--don't use.
4852 rm -rf conftest.one conftest.two conftest.dir
4853 echo one > conftest.one
4854 echo two > conftest.two
4856 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4857 test -s conftest.one && test -s conftest.two &&
4858 test -s conftest.dir/conftest.one &&
4859 test -s conftest.dir/conftest.two
4861 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4874 rm -rf conftest.one conftest.two conftest.dir
4877 if test "${ac_cv_path_install+set}" = set; then
4878 INSTALL=$ac_cv_path_install
4880 # As a last resort, use the slow shell script. Don't cache a
4881 # value for INSTALL within a source directory, because that will
4882 # break other packages using the cache if that directory is
4883 # removed, or if the value is a relative name.
4884 INSTALL=$ac_install_sh
4887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4888 $as_echo "$INSTALL" >&6; }
4890 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4891 # It thinks the first close brace ends the variable substitution.
4892 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4894 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4896 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4898 # Extract the first word of "mv", so it can be a program name with args.
4899 set dummy mv; ac_word=$2
4900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4901 $as_echo_n "checking for $ac_word... " >&6; }
4902 if ${ac_cv_path_MV+:} false; then :
4903 $as_echo_n "(cached) " >&6
4907 ac_cv_path_MV="$MV" # Let the user override the test with a path.
4910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4914 test -z "$as_dir" && as_dir=.
4915 for ac_exec_ext in '' $ac_executable_extensions; do
4916 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4917 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4918 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4925 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4930 if test -n "$MV"; then
4931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
4932 $as_echo "$MV" >&6; }
4934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4935 $as_echo "no" >&6; }
4939 # Extract the first word of "rm", so it can be a program name with args.
4940 set dummy rm; ac_word=$2
4941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4942 $as_echo_n "checking for $ac_word... " >&6; }
4943 if ${ac_cv_path_REMOVE+:} false; then :
4944 $as_echo_n "(cached) " >&6
4948 ac_cv_path_REMOVE="$REMOVE" # Let the user override the test with a path.
4951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4955 test -z "$as_dir" && as_dir=.
4956 for ac_exec_ext in '' $ac_executable_extensions; do
4957 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4958 ac_cv_path_REMOVE="$as_dir/$ac_word$ac_exec_ext"
4959 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4966 test -z "$ac_cv_path_REMOVE" && ac_cv_path_REMOVE="rm"
4970 REMOVE=$ac_cv_path_REMOVE
4971 if test -n "$REMOVE"; then
4972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $REMOVE" >&5
4973 $as_echo "$REMOVE" >&6; }
4975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4976 $as_echo "no" >&6; }
4980 # Extract the first word of "cp", so it can be a program name with args.
4981 set dummy cp; ac_word=$2
4982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4983 $as_echo_n "checking for $ac_word... " >&6; }
4984 if ${ac_cv_path_CP+:} false; then :
4985 $as_echo_n "(cached) " >&6
4989 ac_cv_path_CP="$CP" # Let the user override the test with a path.
4992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4996 test -z "$as_dir" && as_dir=.
4997 for ac_exec_ext in '' $ac_executable_extensions; do
4998 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4999 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5000 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5007 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5012 if test -n "$CP"; then
5013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
5014 $as_echo "$CP" >&6; }
5016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5017 $as_echo "no" >&6; }
5021 # Extract the first word of "sed", so it can be a program name with args.
5022 set dummy sed; ac_word=$2
5023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5024 $as_echo_n "checking for $ac_word... " >&6; }
5025 if ${ac_cv_path_SED+:} false; then :
5026 $as_echo_n "(cached) " >&6
5030 ac_cv_path_SED="$SED" # Let the user override the test with a path.
5033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5037 test -z "$as_dir" && as_dir=.
5038 for ac_exec_ext in '' $ac_executable_extensions; do
5039 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5040 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
5041 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5048 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
5053 if test -n "$SED"; then
5054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
5055 $as_echo "$SED" >&6; }
5057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5058 $as_echo "no" >&6; }
5062 # Extract the first word of "echo", so it can be a program name with args.
5063 set dummy echo; ac_word=$2
5064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5065 $as_echo_n "checking for $ac_word... " >&6; }
5066 if ${ac_cv_path_ECHO+:} false; then :
5067 $as_echo_n "(cached) " >&6
5071 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
5074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5078 test -z "$as_dir" && as_dir=.
5079 for ac_exec_ext in '' $ac_executable_extensions; do
5080 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5081 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
5082 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5089 test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
5093 ECHO=$ac_cv_path_ECHO
5094 if test -n "$ECHO"; then
5095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
5096 $as_echo "$ECHO" >&6; }
5098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5099 $as_echo "no" >&6; }
5103 # Extract the first word of "cmp", so it can be a program name with args.
5104 set dummy cmp; ac_word=$2
5105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5106 $as_echo_n "checking for $ac_word... " >&6; }
5107 if ${ac_cv_path_CMP+:} false; then :
5108 $as_echo_n "(cached) " >&6
5112 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5119 test -z "$as_dir" && as_dir=.
5120 for ac_exec_ext in '' $ac_executable_extensions; do
5121 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5122 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5123 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5130 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5135 if test -n "$CMP"; then
5136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5
5137 $as_echo "$CMP" >&6; }
5139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5140 $as_echo "no" >&6; }
5144 # Extract the first word of "tbl", so it can be a program name with args.
5145 set dummy tbl; ac_word=$2
5146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5147 $as_echo_n "checking for $ac_word... " >&6; }
5148 if ${ac_cv_path_TBL+:} false; then :
5149 $as_echo_n "(cached) " >&6
5153 ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
5156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5160 test -z "$as_dir" && as_dir=.
5161 for ac_exec_ext in '' $ac_executable_extensions; do
5162 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5163 ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
5164 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5171 test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
5176 if test -n "$TBL"; then
5177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TBL" >&5
5178 $as_echo "$TBL" >&6; }
5180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5181 $as_echo "no" >&6; }
5185 # Extract the first word of "ar", so it can be a program name with args.
5186 set dummy ar; ac_word=$2
5187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5188 $as_echo_n "checking for $ac_word... " >&6; }
5189 if ${ac_cv_path_AR+:} false; then :
5190 $as_echo_n "(cached) " >&6
5194 ac_cv_path_AR="$AR" # Let the user override the test with a path.
5197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5201 test -z "$as_dir" && as_dir=.
5202 for ac_exec_ext in '' $ac_executable_extensions; do
5203 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5204 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
5205 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5212 test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
5217 if test -n "$AR"; then
5218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5219 $as_echo "$AR" >&6; }
5221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5222 $as_echo "no" >&6; }
5226 # Extract the first word of "openssl", so it can be a program name with args.
5227 set dummy openssl; ac_word=$2
5228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5229 $as_echo_n "checking for $ac_word... " >&6; }
5230 if ${ac_cv_path_OPENSSL+:} false; then :
5231 $as_echo_n "(cached) " >&6
5235 ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
5238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5242 test -z "$as_dir" && as_dir=.
5243 for ac_exec_ext in '' $ac_executable_extensions; do
5244 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5245 ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
5246 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5253 test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
5257 OPENSSL=$ac_cv_path_OPENSSL
5258 if test -n "$OPENSSL"; then
5259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENSSL" >&5
5260 $as_echo "$OPENSSL" >&6; }
5262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5263 $as_echo "no" >&6; }
5267 # Extract the first word of "mtx", so it can be a program name with args.
5268 set dummy mtx; ac_word=$2
5269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5270 $as_echo_n "checking for $ac_word... " >&6; }
5271 if ${ac_cv_path_MTX+:} false; then :
5272 $as_echo_n "(cached) " >&6
5276 ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
5279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5283 test -z "$as_dir" && as_dir=.
5284 for ac_exec_ext in '' $ac_executable_extensions; do
5285 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5286 ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
5287 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5294 test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
5299 if test -n "$MTX"; then
5300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MTX" >&5
5301 $as_echo "$MTX" >&6; }
5303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5304 $as_echo "no" >&6; }
5308 # Extract the first word of "dd", so it can be a program name with args.
5309 set dummy dd; ac_word=$2
5310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5311 $as_echo_n "checking for $ac_word... " >&6; }
5312 if ${ac_cv_path_DD+:} false; then :
5313 $as_echo_n "(cached) " >&6
5317 ac_cv_path_DD="$DD" # Let the user override the test with a path.
5320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5324 test -z "$as_dir" && as_dir=.
5325 for ac_exec_ext in '' $ac_executable_extensions; do
5326 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5327 ac_cv_path_DD="$as_dir/$ac_word$ac_exec_ext"
5328 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5335 test -z "$ac_cv_path_DD" && ac_cv_path_DD="dd"
5340 if test -n "$DD"; then
5341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DD" >&5
5342 $as_echo "$DD" >&6; }
5344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5345 $as_echo "no" >&6; }
5349 # Extract the first word of "mkisofs", so it can be a program name with args.
5350 set dummy mkisofs; ac_word=$2
5351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5352 $as_echo_n "checking for $ac_word... " >&6; }
5353 if ${ac_cv_path_MKISOFS+:} false; then :
5354 $as_echo_n "(cached) " >&6
5358 ac_cv_path_MKISOFS="$MKISOFS" # Let the user override the test with a path.
5361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5365 test -z "$as_dir" && as_dir=.
5366 for ac_exec_ext in '' $ac_executable_extensions; do
5367 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5368 ac_cv_path_MKISOFS="$as_dir/$ac_word$ac_exec_ext"
5369 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5376 test -z "$ac_cv_path_MKISOFS" && ac_cv_path_MKISOFS="mkisofs"
5380 MKISOFS=$ac_cv_path_MKISOFS
5381 if test -n "$MKISOFS"; then
5382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKISOFS" >&5
5383 $as_echo "$MKISOFS" >&6; }
5385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5386 $as_echo "no" >&6; }
5390 # Extract the first word of "python", so it can be a program name with args.
5391 set dummy python; ac_word=$2
5392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5393 $as_echo_n "checking for $ac_word... " >&6; }
5394 if ${ac_cv_path_PYTHON+:} false; then :
5395 $as_echo_n "(cached) " >&6
5399 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
5402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5406 test -z "$as_dir" && as_dir=.
5407 for ac_exec_ext in '' $ac_executable_extensions; do
5408 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5409 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
5410 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5417 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="python"
5421 PYTHON=$ac_cv_path_PYTHON
5422 if test -n "$PYTHON"; then
5423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
5424 $as_echo "$PYTHON" >&6; }
5426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5427 $as_echo "no" >&6; }
5431 # Extract the first word of "growisofs", so it can be a program name with args.
5432 set dummy growisofs; ac_word=$2
5433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5434 $as_echo_n "checking for $ac_word... " >&6; }
5435 if ${ac_cv_path_GROWISOFS+:} false; then :
5436 $as_echo_n "(cached) " >&6
5440 ac_cv_path_GROWISOFS="$GROWISOFS" # Let the user override the test with a path.
5443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5447 test -z "$as_dir" && as_dir=.
5448 for ac_exec_ext in '' $ac_executable_extensions; do
5449 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5450 ac_cv_path_GROWISOFS="$as_dir/$ac_word$ac_exec_ext"
5451 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5458 test -z "$ac_cv_path_GROWISOFS" && ac_cv_path_GROWISOFS="growisofs"
5462 GROWISOFS=$ac_cv_path_GROWISOFS
5463 if test -n "$GROWISOFS"; then
5464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GROWISOFS" >&5
5465 $as_echo "$GROWISOFS" >&6; }
5467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5468 $as_echo "no" >&6; }
5472 # Extract the first word of "dvd+rw-mediainfo", so it can be a program name with args.
5473 set dummy dvd+rw-mediainfo; ac_word=$2
5474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5475 $as_echo_n "checking for $ac_word... " >&6; }
5476 if ${ac_cv_path_DVDRWMEDIAINFO+:} false; then :
5477 $as_echo_n "(cached) " >&6
5479 case $DVDRWMEDIAINFO in
5481 ac_cv_path_DVDRWMEDIAINFO="$DVDRWMEDIAINFO" # Let the user override the test with a path.
5484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5488 test -z "$as_dir" && as_dir=.
5489 for ac_exec_ext in '' $ac_executable_extensions; do
5490 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5491 ac_cv_path_DVDRWMEDIAINFO="$as_dir/$ac_word$ac_exec_ext"
5492 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5499 test -z "$ac_cv_path_DVDRWMEDIAINFO" && ac_cv_path_DVDRWMEDIAINFO="dvd+rw-mediainfo"
5503 DVDRWMEDIAINFO=$ac_cv_path_DVDRWMEDIAINFO
5504 if test -n "$DVDRWMEDIAINFO"; then
5505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVDRWMEDIAINFO" >&5
5506 $as_echo "$DVDRWMEDIAINFO" >&6; }
5508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5509 $as_echo "no" >&6; }
5513 # Extract the first word of "dvd+rw-format", so it can be a program name with args.
5514 set dummy dvd+rw-format; ac_word=$2
5515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5516 $as_echo_n "checking for $ac_word... " >&6; }
5517 if ${ac_cv_path_DVDRWFORMAT+:} false; then :
5518 $as_echo_n "(cached) " >&6
5520 case $DVDRWFORMAT in
5522 ac_cv_path_DVDRWFORMAT="$DVDRWFORMAT" # Let the user override the test with a path.
5525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5529 test -z "$as_dir" && as_dir=.
5530 for ac_exec_ext in '' $ac_executable_extensions; do
5531 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5532 ac_cv_path_DVDRWFORMAT="$as_dir/$ac_word$ac_exec_ext"
5533 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5540 test -z "$ac_cv_path_DVDRWFORMAT" && ac_cv_path_DVDRWFORMAT="dvd+rw-format"
5544 DVDRWFORMAT=$ac_cv_path_DVDRWFORMAT
5545 if test -n "$DVDRWFORMAT"; then
5546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVDRWFORMAT" >&5
5547 $as_echo "$DVDRWFORMAT" >&6; }
5549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5550 $as_echo "no" >&6; }
5554 # Extract the first word of "pkg-config", so it can be a program name with args.
5555 set dummy pkg-config; ac_word=$2
5556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5557 $as_echo_n "checking for $ac_word... " >&6; }
5558 if ${ac_cv_path_PKGCONFIG+:} false; then :
5559 $as_echo_n "(cached) " >&6
5563 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
5566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5570 test -z "$as_dir" && as_dir=.
5571 for ac_exec_ext in '' $ac_executable_extensions; do
5572 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5573 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
5574 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5581 test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
5585 PKGCONFIG=$ac_cv_path_PKGCONFIG
5586 if test -n "$PKGCONFIG"; then
5587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
5588 $as_echo "$PKGCONFIG" >&6; }
5590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5591 $as_echo "no" >&6; }
5595 # Extract the first word of "qmake", so it can be a program name with args.
5596 set dummy qmake; ac_word=$2
5597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5598 $as_echo_n "checking for $ac_word... " >&6; }
5599 if ${ac_cv_path_QMAKE+:} false; then :
5600 $as_echo_n "(cached) " >&6
5604 ac_cv_path_QMAKE="$QMAKE" # Let the user override the test with a path.
5607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5611 test -z "$as_dir" && as_dir=.
5612 for ac_exec_ext in '' $ac_executable_extensions; do
5613 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5614 ac_cv_path_QMAKE="$as_dir/$ac_word$ac_exec_ext"
5615 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5622 test -z "$ac_cv_path_QMAKE" && ac_cv_path_QMAKE="none"
5626 QMAKE=$ac_cv_path_QMAKE
5627 if test -n "$QMAKE"; then
5628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QMAKE" >&5
5629 $as_echo "$QMAKE" >&6; }
5631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5632 $as_echo "no" >&6; }
5636 # Extract the first word of "gmake", so it can be a program name with args.
5637 set dummy gmake; ac_word=$2
5638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5639 $as_echo_n "checking for $ac_word... " >&6; }
5640 if ${ac_cv_path_GMAKE+:} false; then :
5641 $as_echo_n "(cached) " >&6
5645 ac_cv_path_GMAKE="$GMAKE" # Let the user override the test with a path.
5648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5652 test -z "$as_dir" && as_dir=.
5653 for ac_exec_ext in '' $ac_executable_extensions; do
5654 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5655 ac_cv_path_GMAKE="$as_dir/$ac_word$ac_exec_ext"
5656 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5663 test -z "$ac_cv_path_GMAKE" && ac_cv_path_GMAKE="none"
5667 GMAKE=$ac_cv_path_GMAKE
5668 if test -n "$GMAKE"; then
5669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMAKE" >&5
5670 $as_echo "$GMAKE" >&6; }
5672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5673 $as_echo "no" >&6; }
5677 # Extract the first word of "cdrecord", so it can be a program name with args.
5678 set dummy cdrecord; ac_word=$2
5679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5680 $as_echo_n "checking for $ac_word... " >&6; }
5681 if ${ac_cv_path_CDRECORD+:} false; then :
5682 $as_echo_n "(cached) " >&6
5686 ac_cv_path_CDRECORD="$CDRECORD" # Let the user override the test with a path.
5689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5693 test -z "$as_dir" && as_dir=.
5694 for ac_exec_ext in '' $ac_executable_extensions; do
5695 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5696 ac_cv_path_CDRECORD="$as_dir/$ac_word$ac_exec_ext"
5697 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5704 test -z "$ac_cv_path_CDRECORD" && ac_cv_path_CDRECORD="cdrecord"
5708 CDRECORD=$ac_cv_path_CDRECORD
5709 if test -n "$CDRECORD"; then
5710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CDRECORD" >&5
5711 $as_echo "$CDRECORD" >&6; }
5713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5714 $as_echo "no" >&6; }
5718 # Extract the first word of "pidof", so it can be a program name with args.
5719 set dummy pidof; ac_word=$2
5720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5721 $as_echo_n "checking for $ac_word... " >&6; }
5722 if ${ac_cv_path_PIDOF+:} false; then :
5723 $as_echo_n "(cached) " >&6
5727 ac_cv_path_PIDOF="$PIDOF" # Let the user override the test with a path.
5730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5734 test -z "$as_dir" && as_dir=.
5735 for ac_exec_ext in '' $ac_executable_extensions; do
5736 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5737 ac_cv_path_PIDOF="$as_dir/$ac_word$ac_exec_ext"
5738 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5745 test -z "$ac_cv_path_PIDOF" && ac_cv_path_PIDOF="pidof"
5749 PIDOF=$ac_cv_path_PIDOF
5750 if test -n "$PIDOF"; then
5751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PIDOF" >&5
5752 $as_echo "$PIDOF" >&6; }
5754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5755 $as_echo "no" >&6; }
5759 for ac_prog in gawk mawk nawk awk
5761 # Extract the first word of "$ac_prog", so it can be a program name with args.
5762 set dummy $ac_prog; ac_word=$2
5763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5764 $as_echo_n "checking for $ac_word... " >&6; }
5765 if ${ac_cv_prog_AWK+:} false; then :
5766 $as_echo_n "(cached) " >&6
5768 if test -n "$AWK"; then
5769 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5775 test -z "$as_dir" && as_dir=.
5776 for ac_exec_ext in '' $ac_executable_extensions; do
5777 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5778 ac_cv_prog_AWK="$ac_prog"
5779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5789 if test -n "$AWK"; then
5790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5791 $as_echo "$AWK" >&6; }
5793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5794 $as_echo "no" >&6; }
5798 test -n "$AWK" && break
5801 # Some AWK programs fail, so test it and warn the user
5802 if echo xfoo | $AWK 'BEGIN { prog=ARGV1; ARGC=1 }
5803 { if ((prog == $2) || (("(" prog ")") == $2) ||
5804 (("" prog "") == $2) ||
5805 ((prog ":") == $2)) { print $1 ; exit 0 } }' xfoo>/dev/null; then :;
5807 as_fn_error $? "!!!!!!!!! WARNING !!!!!!!!!!!!!!
5808 The regex engine of $AWK is too broken to be used you
5809 might want to install GNU AWK.
5810 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" "$LINENO" 5
5813 # Extract the first word of "$THE_AWK", so it can be a program name with args.
5814 set dummy $THE_AWK; ac_word=$2
5815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5816 $as_echo_n "checking for $ac_word... " >&6; }
5817 if ${ac_cv_path_AWK+:} false; then :
5818 $as_echo_n "(cached) " >&6
5822 ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
5825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5829 test -z "$as_dir" && as_dir=.
5830 for ac_exec_ext in '' $ac_executable_extensions; do
5831 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5832 ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
5833 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5840 test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="$THE_AWK"
5845 if test -n "$AWK"; then
5846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5847 $as_echo "$AWK" >&6; }
5849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5850 $as_echo "no" >&6; }
5856 test -n "$ARFLAG" || ARFLAGS="cr"
5868 # Check whether --enable-libtool was given.
5869 if test "${enable_libtool+set}" = set; then :
5870 enableval=$enable_libtool;
5871 if test x$enableval = xno; then
5880 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5881 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5886 macro_version='2.4.2'
5887 macro_revision='1.3337'
5901 ltmain="$ac_aux_dir/ltmain.sh"
5903 # Make sure we can run config.sub.
5904 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5905 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5908 $as_echo_n "checking build system type... " >&6; }
5909 if ${ac_cv_build+:} false; then :
5910 $as_echo_n "(cached) " >&6
5912 ac_build_alias=$build_alias
5913 test "x$ac_build_alias" = x &&
5914 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5915 test "x$ac_build_alias" = x &&
5916 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5917 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5918 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5922 $as_echo "$ac_cv_build" >&6; }
5923 case $ac_cv_build in
5925 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5928 ac_save_IFS=$IFS; IFS='-'
5934 # Remember, the first character of IFS is used to create $*,
5935 # except with old shells:
5938 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5942 $as_echo_n "checking host system type... " >&6; }
5943 if ${ac_cv_host+:} false; then :
5944 $as_echo_n "(cached) " >&6
5946 if test "x$host_alias" = x; then
5947 ac_cv_host=$ac_cv_build
5949 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5950 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5955 $as_echo "$ac_cv_host" >&6; }
5958 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5961 ac_save_IFS=$IFS; IFS='-'
5967 # Remember, the first character of IFS is used to create $*,
5968 # except with old shells:
5971 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5974 # Backslashify metacharacters that are still active within
5975 # double-quoted strings.
5976 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5978 # Same as above, but do not quote variable references.
5979 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5981 # Sed substitution to delay expansion of an escaped shell variable in a
5982 # double_quote_subst'ed string.
5983 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5985 # Sed substitution to delay expansion of an escaped single quote.
5986 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5988 # Sed substitution to avoid accidental globbing in evaled expressions
5989 no_glob_subst='s/\*/\\\*/g'
5991 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5992 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5993 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5996 $as_echo_n "checking how to print strings... " >&6; }
5997 # Test print first, because it will be a builtin if present.
5998 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5999 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6001 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6004 # Use this function as a fallback that always works.
6005 func_fallback_echo ()
6007 eval 'cat <<_LTECHO_EOF
6011 ECHO='func_fallback_echo'
6014 # func_echo_all arg...
6015 # Invoke $ECHO with all args, space-separated.
6022 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6023 $as_echo "printf" >&6; } ;;
6024 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6025 $as_echo "print -r" >&6; } ;;
6026 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6027 $as_echo "cat" >&6; } ;;
6043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6044 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6045 if ${ac_cv_path_SED+:} false; then :
6046 $as_echo_n "(cached) " >&6
6048 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6049 for ac_i in 1 2 3 4 5 6 7; do
6050 ac_script="$ac_script$as_nl$ac_script"
6052 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6053 { ac_script=; unset ac_script;}
6054 if test -z "$SED"; then
6055 ac_path_SED_found=false
6056 # Loop through the user's path and test for each of PROGNAME-LIST
6057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6061 test -z "$as_dir" && as_dir=.
6062 for ac_prog in sed gsed; do
6063 for ac_exec_ext in '' $ac_executable_extensions; do
6064 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6065 as_fn_executable_p "$ac_path_SED" || continue
6066 # Check for GNU ac_path_SED and select it if it is found.
6067 # Check for GNU $ac_path_SED
6068 case `"$ac_path_SED" --version 2>&1` in
6070 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6073 $as_echo_n 0123456789 >"conftest.in"
6076 cat "conftest.in" "conftest.in" >"conftest.tmp"
6077 mv "conftest.tmp" "conftest.in"
6078 cp "conftest.in" "conftest.nl"
6079 $as_echo '' >> "conftest.nl"
6080 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6081 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6082 as_fn_arith $ac_count + 1 && ac_count=$as_val
6083 if test $ac_count -gt ${ac_path_SED_max-0}; then
6084 # Best one so far, save it but keep looking for a better one
6085 ac_cv_path_SED="$ac_path_SED"
6086 ac_path_SED_max=$ac_count
6088 # 10*(2^10) chars as input seems more than enough
6089 test $ac_count -gt 10 && break
6091 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6094 $ac_path_SED_found && break 3
6099 if test -z "$ac_cv_path_SED"; then
6100 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6108 $as_echo "$ac_cv_path_SED" >&6; }
6109 SED="$ac_cv_path_SED"
6112 test -z "$SED" && SED=sed
6113 Xsed="$SED -e 1s/^X//"
6125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6126 $as_echo_n "checking for fgrep... " >&6; }
6127 if ${ac_cv_path_FGREP+:} false; then :
6128 $as_echo_n "(cached) " >&6
6130 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6131 then ac_cv_path_FGREP="$GREP -F"
6133 if test -z "$FGREP"; then
6134 ac_path_FGREP_found=false
6135 # Loop through the user's path and test for each of PROGNAME-LIST
6136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6137 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6140 test -z "$as_dir" && as_dir=.
6141 for ac_prog in fgrep; do
6142 for ac_exec_ext in '' $ac_executable_extensions; do
6143 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6144 as_fn_executable_p "$ac_path_FGREP" || continue
6145 # Check for GNU ac_path_FGREP and select it if it is found.
6146 # Check for GNU $ac_path_FGREP
6147 case `"$ac_path_FGREP" --version 2>&1` in
6149 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6152 $as_echo_n 0123456789 >"conftest.in"
6155 cat "conftest.in" "conftest.in" >"conftest.tmp"
6156 mv "conftest.tmp" "conftest.in"
6157 cp "conftest.in" "conftest.nl"
6158 $as_echo 'FGREP' >> "conftest.nl"
6159 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6160 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6161 as_fn_arith $ac_count + 1 && ac_count=$as_val
6162 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6163 # Best one so far, save it but keep looking for a better one
6164 ac_cv_path_FGREP="$ac_path_FGREP"
6165 ac_path_FGREP_max=$ac_count
6167 # 10*(2^10) chars as input seems more than enough
6168 test $ac_count -gt 10 && break
6170 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6173 $ac_path_FGREP_found && break 3
6178 if test -z "$ac_cv_path_FGREP"; then
6179 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6182 ac_cv_path_FGREP=$FGREP
6187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6188 $as_echo "$ac_cv_path_FGREP" >&6; }
6189 FGREP="$ac_cv_path_FGREP"
6192 test -z "$GREP" && GREP=grep
6212 # Check whether --with-gnu-ld was given.
6213 if test "${with_gnu_ld+set}" = set; then :
6214 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6220 if test "$GCC" = yes; then
6221 # Check if gcc -print-prog-name=ld gives a path.
6222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6223 $as_echo_n "checking for ld used by $CC... " >&6; }
6226 # gcc leaves a trailing carriage return which upsets mingw
6227 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6229 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6232 # Accept absolute paths.
6234 re_direlt='/[^/][^/]*/\.\./'
6235 # Canonicalize the pathname of ld
6236 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6237 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6238 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6240 test -z "$LD" && LD="$ac_prog"
6243 # If it fails, then pretend we aren't using GCC.
6247 # If it is relative, then search for the first ld in PATH.
6251 elif test "$with_gnu_ld" = yes; then
6252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6253 $as_echo_n "checking for GNU ld... " >&6; }
6255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6256 $as_echo_n "checking for non-GNU ld... " >&6; }
6258 if ${lt_cv_path_LD+:} false; then :
6259 $as_echo_n "(cached) " >&6
6261 if test -z "$LD"; then
6262 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6263 for ac_dir in $PATH; do
6265 test -z "$ac_dir" && ac_dir=.
6266 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6267 lt_cv_path_LD="$ac_dir/$ac_prog"
6268 # Check to see if the program is GNU ld. I'd rather use --version,
6269 # but apparently some variants of GNU ld only accept -v.
6270 # Break only if it was the GNU/non-GNU ld that we prefer.
6271 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6272 *GNU* | *'with BFD'*)
6273 test "$with_gnu_ld" != no && break
6276 test "$with_gnu_ld" != yes && break
6283 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6288 if test -n "$LD"; then
6289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6290 $as_echo "$LD" >&6; }
6292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6293 $as_echo "no" >&6; }
6295 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6297 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6298 if ${lt_cv_prog_gnu_ld+:} false; then :
6299 $as_echo_n "(cached) " >&6
6301 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6302 case `$LD -v 2>&1 </dev/null` in
6303 *GNU* | *'with BFD'*)
6304 lt_cv_prog_gnu_ld=yes
6307 lt_cv_prog_gnu_ld=no
6311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6312 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6313 with_gnu_ld=$lt_cv_prog_gnu_ld
6323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6324 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6325 if ${lt_cv_path_NM+:} false; then :
6326 $as_echo_n "(cached) " >&6
6328 if test -n "$NM"; then
6329 # Let the user override the test.
6332 lt_nm_to_check="${ac_tool_prefix}nm"
6333 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6334 lt_nm_to_check="$lt_nm_to_check nm"
6336 for lt_tmp_nm in $lt_nm_to_check; do
6337 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6338 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6340 test -z "$ac_dir" && ac_dir=.
6341 tmp_nm="$ac_dir/$lt_tmp_nm"
6342 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6343 # Check to see if the nm accepts a BSD-compat flag.
6344 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6345 # nm: unknown option "B" ignored
6346 # Tru64's nm complains that /dev/null is an invalid object file
6347 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6348 */dev/null* | *'Invalid file or object type'*)
6349 lt_cv_path_NM="$tmp_nm -B"
6353 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6355 lt_cv_path_NM="$tmp_nm -p"
6359 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6360 continue # so that we can try to find one that supports BSD flags
6369 : ${lt_cv_path_NM=no}
6372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6373 $as_echo "$lt_cv_path_NM" >&6; }
6374 if test "$lt_cv_path_NM" != "no"; then
6377 # Didn't find any BSD compatible name lister, look for dumpbin.
6378 if test -n "$DUMPBIN"; then :
6379 # Let the user override the test.
6381 if test -n "$ac_tool_prefix"; then
6382 for ac_prog in dumpbin "link -dump"
6384 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6385 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6387 $as_echo_n "checking for $ac_word... " >&6; }
6388 if ${ac_cv_prog_DUMPBIN+:} false; then :
6389 $as_echo_n "(cached) " >&6
6391 if test -n "$DUMPBIN"; then
6392 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6398 test -z "$as_dir" && as_dir=.
6399 for ac_exec_ext in '' $ac_executable_extensions; do
6400 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6401 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6402 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6411 DUMPBIN=$ac_cv_prog_DUMPBIN
6412 if test -n "$DUMPBIN"; then
6413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6414 $as_echo "$DUMPBIN" >&6; }
6416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6417 $as_echo "no" >&6; }
6421 test -n "$DUMPBIN" && break
6424 if test -z "$DUMPBIN"; then
6425 ac_ct_DUMPBIN=$DUMPBIN
6426 for ac_prog in dumpbin "link -dump"
6428 # Extract the first word of "$ac_prog", so it can be a program name with args.
6429 set dummy $ac_prog; ac_word=$2
6430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6431 $as_echo_n "checking for $ac_word... " >&6; }
6432 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6433 $as_echo_n "(cached) " >&6
6435 if test -n "$ac_ct_DUMPBIN"; then
6436 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6442 test -z "$as_dir" && as_dir=.
6443 for ac_exec_ext in '' $ac_executable_extensions; do
6444 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6445 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6446 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6455 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6456 if test -n "$ac_ct_DUMPBIN"; then
6457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6458 $as_echo "$ac_ct_DUMPBIN" >&6; }
6460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6461 $as_echo "no" >&6; }
6465 test -n "$ac_ct_DUMPBIN" && break
6468 if test "x$ac_ct_DUMPBIN" = x; then
6471 case $cross_compiling:$ac_tool_warned in
6473 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6474 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6475 ac_tool_warned=yes ;;
6477 DUMPBIN=$ac_ct_DUMPBIN
6481 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6483 DUMPBIN="$DUMPBIN -symbols"
6491 if test "$DUMPBIN" != ":"; then
6495 test -z "$NM" && NM=nm
6502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6503 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6504 if ${lt_cv_nm_interface+:} false; then :
6505 $as_echo_n "(cached) " >&6
6507 lt_cv_nm_interface="BSD nm"
6508 echo "int some_variable = 0;" > conftest.$ac_ext
6509 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6510 (eval "$ac_compile" 2>conftest.err)
6511 cat conftest.err >&5
6512 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6513 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6514 cat conftest.err >&5
6515 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6516 cat conftest.out >&5
6517 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6518 lt_cv_nm_interface="MS dumpbin"
6522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6523 $as_echo "$lt_cv_nm_interface" >&6; }
6525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6526 $as_echo_n "checking whether ln -s works... " >&6; }
6528 if test "$LN_S" = "ln -s"; then
6529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6530 $as_echo "yes" >&6; }
6532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6533 $as_echo "no, using $LN_S" >&6; }
6536 # find the maximum length of command line arguments
6537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6538 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6539 if ${lt_cv_sys_max_cmd_len+:} false; then :
6540 $as_echo_n "(cached) " >&6
6547 # On DJGPP, this test can blow up pretty badly due to problems in libc
6548 # (any single argument exceeding 2000 bytes causes a buffer overrun
6549 # during glob expansion). Even if it were fixed, the result of this
6550 # check would be larger than it should be.
6551 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6555 # Under GNU Hurd, this test is not required because there is
6556 # no limit to the length of command line arguments.
6557 # Libtool will interpret -1 as no limit whatsoever
6558 lt_cv_sys_max_cmd_len=-1;
6561 cygwin* | mingw* | cegcc*)
6562 # On Win9x/ME, this test blows up -- it succeeds, but takes
6563 # about 5 minutes as the teststring grows exponentially.
6564 # Worse, since 9x/ME are not pre-emptively multitasking,
6565 # you end up with a "frozen" computer, even though with patience
6566 # the test eventually succeeds (with a max line length of 256k).
6567 # Instead, let's just punt: use the minimum linelength reported by
6568 # all of the supported platforms: 8192 (on NT/2K/XP).
6569 lt_cv_sys_max_cmd_len=8192;
6573 # On MiNT this can take a long time and run out of memory.
6574 lt_cv_sys_max_cmd_len=8192;
6578 # On AmigaOS with pdksh, this test takes hours, literally.
6579 # So we just punt and use a minimum line length of 8192.
6580 lt_cv_sys_max_cmd_len=8192;
6583 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6584 # This has been around since 386BSD, at least. Likely further.
6585 if test -x /sbin/sysctl; then
6586 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6587 elif test -x /usr/sbin/sysctl; then
6588 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6590 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6592 # And add a safety zone
6593 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6594 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6598 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6599 lt_cv_sys_max_cmd_len=196608
6603 # The test takes a long time on OS/2.
6604 lt_cv_sys_max_cmd_len=8192
6608 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6609 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6610 # nice to cause kernel panics so lets avoid the loop below.
6611 # First set a reasonable default.
6612 lt_cv_sys_max_cmd_len=16384
6614 if test -x /sbin/sysconfig; then
6615 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6616 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6621 lt_cv_sys_max_cmd_len=102400
6623 sysv5* | sco5v6* | sysv4.2uw2*)
6624 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6625 if test -n "$kargmax"; then
6626 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6628 lt_cv_sys_max_cmd_len=32768
6632 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6633 if test -n "$lt_cv_sys_max_cmd_len" && \
6634 test undefined != "$lt_cv_sys_max_cmd_len"; then
6635 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6636 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6638 # Make teststring a little bigger before we do anything with it.
6639 # a 1K string should be a reasonable start.
6640 for i in 1 2 3 4 5 6 7 8 ; do
6641 teststring=$teststring$teststring
6643 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6644 # If test is not a shell built-in, we'll probably end up computing a
6645 # maximum length that is only half of the actual maximum length, but
6647 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
6648 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6649 test $i != 17 # 1/2 MB should be enough
6652 teststring=$teststring$teststring
6654 # Only check the string length outside the loop.
6655 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6657 # Add a significant safety factor because C++ compilers can tack on
6658 # massive amounts of additional arguments before passing them to the
6659 # linker. It appears as though 1/2 is a usable value.
6660 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6667 if test -n $lt_cv_sys_max_cmd_len ; then
6668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6669 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6672 $as_echo "none" >&6; }
6674 max_cmd_len=$lt_cv_sys_max_cmd_len
6685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6686 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6687 # Try some XSI features
6690 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
6692 && eval 'test $(( 1 + 1 )) -eq 2 \
6693 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6696 $as_echo "$xsi_shell" >&6; }
6699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6700 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6702 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6704 && lt_shell_append=yes
6705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6706 $as_echo "$lt_shell_append" >&6; }
6709 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6719 # test EBCDIC or ASCII
6720 case `echo X|tr X '\101'` in
6721 A) # ASCII based system
6722 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6723 lt_SP2NL='tr \040 \012'
6724 lt_NL2SP='tr \015\012 \040\040'
6726 *) # EBCDIC based system
6727 lt_SP2NL='tr \100 \n'
6728 lt_NL2SP='tr \r\n \100\100'
6740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6741 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6742 if ${lt_cv_to_host_file_cmd+:} false; then :
6743 $as_echo_n "(cached) " >&6
6748 *-*-mingw* ) # actually msys
6749 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6752 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6754 * ) # otherwise, assume *nix
6755 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6761 *-*-mingw* ) # actually msys
6762 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6765 lt_cv_to_host_file_cmd=func_convert_file_noop
6767 * ) # otherwise, assume *nix
6768 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6772 * ) # unhandled hosts (and "normal" native builds)
6773 lt_cv_to_host_file_cmd=func_convert_file_noop
6779 to_host_file_cmd=$lt_cv_to_host_file_cmd
6780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6781 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
6787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6788 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6789 if ${lt_cv_to_tool_file_cmd+:} false; then :
6790 $as_echo_n "(cached) " >&6
6792 #assume ordinary cross tools, or native build.
6793 lt_cv_to_tool_file_cmd=func_convert_file_noop
6797 *-*-mingw* ) # actually msys
6798 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6806 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6808 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6815 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6816 if ${lt_cv_ld_reload_flag+:} false; then :
6817 $as_echo_n "(cached) " >&6
6819 lt_cv_ld_reload_flag='-r'
6821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6822 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6823 reload_flag=$lt_cv_ld_reload_flag
6824 case $reload_flag in
6826 *) reload_flag=" $reload_flag" ;;
6828 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6830 cygwin* | mingw* | pw32* | cegcc*)
6831 if test "$GCC" != yes; then
6836 if test "$GCC" = yes; then
6837 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6839 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6852 if test -n "$ac_tool_prefix"; then
6853 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6854 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6856 $as_echo_n "checking for $ac_word... " >&6; }
6857 if ${ac_cv_prog_OBJDUMP+:} false; then :
6858 $as_echo_n "(cached) " >&6
6860 if test -n "$OBJDUMP"; then
6861 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6867 test -z "$as_dir" && as_dir=.
6868 for ac_exec_ext in '' $ac_executable_extensions; do
6869 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6870 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6871 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6880 OBJDUMP=$ac_cv_prog_OBJDUMP
6881 if test -n "$OBJDUMP"; then
6882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6883 $as_echo "$OBJDUMP" >&6; }
6885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6886 $as_echo "no" >&6; }
6891 if test -z "$ac_cv_prog_OBJDUMP"; then
6892 ac_ct_OBJDUMP=$OBJDUMP
6893 # Extract the first word of "objdump", so it can be a program name with args.
6894 set dummy objdump; ac_word=$2
6895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6896 $as_echo_n "checking for $ac_word... " >&6; }
6897 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6898 $as_echo_n "(cached) " >&6
6900 if test -n "$ac_ct_OBJDUMP"; then
6901 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6907 test -z "$as_dir" && as_dir=.
6908 for ac_exec_ext in '' $ac_executable_extensions; do
6909 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6910 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6911 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6920 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6921 if test -n "$ac_ct_OBJDUMP"; then
6922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6923 $as_echo "$ac_ct_OBJDUMP" >&6; }
6925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6926 $as_echo "no" >&6; }
6929 if test "x$ac_ct_OBJDUMP" = x; then
6932 case $cross_compiling:$ac_tool_warned in
6934 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6935 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6936 ac_tool_warned=yes ;;
6938 OBJDUMP=$ac_ct_OBJDUMP
6941 OBJDUMP="$ac_cv_prog_OBJDUMP"
6944 test -z "$OBJDUMP" && OBJDUMP=objdump
6954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6955 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6956 if ${lt_cv_deplibs_check_method+:} false; then :
6957 $as_echo_n "(cached) " >&6
6959 lt_cv_file_magic_cmd='$MAGIC_CMD'
6960 lt_cv_file_magic_test_file=
6961 lt_cv_deplibs_check_method='unknown'
6962 # Need to set the preceding variable on all platforms that support
6963 # interlibrary dependencies.
6964 # 'none' -- dependencies not supported.
6965 # `unknown' -- same as none, but documents that we really don't know.
6966 # 'pass_all' -- all dependencies passed with no checks.
6967 # 'test_compile' -- check by making test program.
6968 # 'file_magic [[regex]]' -- check by looking for files in library path
6969 # which responds to the $file_magic_cmd with a given extended regex.
6970 # If you have `file' or equivalent on your system and you're not sure
6971 # whether `pass_all' will *always* work, you probably want this one.
6975 lt_cv_deplibs_check_method=pass_all
6979 lt_cv_deplibs_check_method=pass_all
6983 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6984 lt_cv_file_magic_cmd='/usr/bin/file -L'
6985 lt_cv_file_magic_test_file=/shlib/libc.so
6989 # func_win32_libid is a shell function defined in ltmain.sh
6990 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6991 lt_cv_file_magic_cmd='func_win32_libid'
6995 # Base MSYS/MinGW do not provide the 'file' command needed by
6996 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6997 # unless we find 'file', for example because we are cross-compiling.
6998 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6999 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
7000 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7001 lt_cv_file_magic_cmd='func_win32_libid'
7003 # Keep this pattern in sync with the one in func_win32_libid.
7004 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
7005 lt_cv_file_magic_cmd='$OBJDUMP -f'
7010 # use the weaker test based on 'objdump'. See mingw*.
7011 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7012 lt_cv_file_magic_cmd='$OBJDUMP -f'
7015 darwin* | rhapsody*)
7016 lt_cv_deplibs_check_method=pass_all
7019 freebsd* | dragonfly*)
7020 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7023 # Not sure whether the presence of OpenBSD here was a mistake.
7024 # Let's accept both of them until this is cleared up.
7025 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7026 lt_cv_file_magic_cmd=/usr/bin/file
7027 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7031 lt_cv_deplibs_check_method=pass_all
7036 lt_cv_deplibs_check_method=pass_all
7039 hpux10.20* | hpux11*)
7040 lt_cv_file_magic_cmd=/usr/bin/file
7043 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7044 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7047 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]'
7048 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7051 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7052 lt_cv_file_magic_test_file=/usr/lib/libc.sl
7058 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7059 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7062 irix5* | irix6* | nonstopux*)
7064 *-32|*"-32 ") libmagic=32-bit;;
7065 *-n32|*"-n32 ") libmagic=N32;;
7066 *-64|*"-64 ") libmagic=64-bit;;
7067 *) libmagic=never-match;;
7069 lt_cv_deplibs_check_method=pass_all
7072 # This must be glibc/ELF.
7073 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
7074 lt_cv_deplibs_check_method=pass_all
7077 netbsd* | netbsdelf*-gnu)
7078 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7079 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7081 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7086 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7087 lt_cv_file_magic_cmd=/usr/bin/file
7088 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7092 lt_cv_deplibs_check_method=pass_all
7096 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7097 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7099 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7103 osf3* | osf4* | osf5*)
7104 lt_cv_deplibs_check_method=pass_all
7108 lt_cv_deplibs_check_method=pass_all
7112 lt_cv_deplibs_check_method=pass_all
7115 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7116 lt_cv_deplibs_check_method=pass_all
7120 case $host_vendor in
7122 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]'
7123 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7126 lt_cv_deplibs_check_method=pass_all
7129 lt_cv_file_magic_cmd='/bin/file'
7130 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7133 lt_cv_file_magic_cmd='/bin/file'
7134 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7135 lt_cv_file_magic_test_file=/lib/libc.so
7138 lt_cv_deplibs_check_method=pass_all
7141 lt_cv_deplibs_check_method=pass_all
7147 lt_cv_deplibs_check_method=pass_all
7152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7153 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7157 if test "$build" = "$host"; then
7160 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
7163 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
7169 file_magic_cmd=$lt_cv_file_magic_cmd
7170 deplibs_check_method=$lt_cv_deplibs_check_method
7171 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7194 if test -n "$ac_tool_prefix"; then
7195 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7196 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7198 $as_echo_n "checking for $ac_word... " >&6; }
7199 if ${ac_cv_prog_DLLTOOL+:} false; then :
7200 $as_echo_n "(cached) " >&6
7202 if test -n "$DLLTOOL"; then
7203 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7209 test -z "$as_dir" && as_dir=.
7210 for ac_exec_ext in '' $ac_executable_extensions; do
7211 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7212 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7213 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7222 DLLTOOL=$ac_cv_prog_DLLTOOL
7223 if test -n "$DLLTOOL"; then
7224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7225 $as_echo "$DLLTOOL" >&6; }
7227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7228 $as_echo "no" >&6; }
7233 if test -z "$ac_cv_prog_DLLTOOL"; then
7234 ac_ct_DLLTOOL=$DLLTOOL
7235 # Extract the first word of "dlltool", so it can be a program name with args.
7236 set dummy dlltool; ac_word=$2
7237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7238 $as_echo_n "checking for $ac_word... " >&6; }
7239 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7240 $as_echo_n "(cached) " >&6
7242 if test -n "$ac_ct_DLLTOOL"; then
7243 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7249 test -z "$as_dir" && as_dir=.
7250 for ac_exec_ext in '' $ac_executable_extensions; do
7251 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7252 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7253 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7262 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7263 if test -n "$ac_ct_DLLTOOL"; then
7264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7265 $as_echo "$ac_ct_DLLTOOL" >&6; }
7267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7268 $as_echo "no" >&6; }
7271 if test "x$ac_ct_DLLTOOL" = x; then
7274 case $cross_compiling:$ac_tool_warned in
7276 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7277 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7278 ac_tool_warned=yes ;;
7280 DLLTOOL=$ac_ct_DLLTOOL
7283 DLLTOOL="$ac_cv_prog_DLLTOOL"
7286 test -z "$DLLTOOL" && DLLTOOL=dlltool
7297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
7298 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
7299 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
7300 $as_echo_n "(cached) " >&6
7302 lt_cv_sharedlib_from_linklib_cmd='unknown'
7305 cygwin* | mingw* | pw32* | cegcc*)
7306 # two different shell functions defined in ltmain.sh
7307 # decide which to use based on capabilities of $DLLTOOL
7308 case `$DLLTOOL --help 2>&1` in
7309 *--identify-strict*)
7310 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
7313 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
7318 # fallback: assume linklib IS sharedlib
7319 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
7324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7325 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7326 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7327 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7335 if test -n "$ac_tool_prefix"; then
7338 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7339 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7341 $as_echo_n "checking for $ac_word... " >&6; }
7342 if ${ac_cv_prog_AR+:} false; then :
7343 $as_echo_n "(cached) " >&6
7345 if test -n "$AR"; then
7346 ac_cv_prog_AR="$AR" # Let the user override the test.
7348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7352 test -z "$as_dir" && as_dir=.
7353 for ac_exec_ext in '' $ac_executable_extensions; do
7354 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7355 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7356 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7366 if test -n "$AR"; then
7367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7368 $as_echo "$AR" >&6; }
7370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7371 $as_echo "no" >&6; }
7375 test -n "$AR" && break
7378 if test -z "$AR"; then
7382 # Extract the first word of "$ac_prog", so it can be a program name with args.
7383 set dummy $ac_prog; ac_word=$2
7384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7385 $as_echo_n "checking for $ac_word... " >&6; }
7386 if ${ac_cv_prog_ac_ct_AR+:} false; then :
7387 $as_echo_n "(cached) " >&6
7389 if test -n "$ac_ct_AR"; then
7390 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7396 test -z "$as_dir" && as_dir=.
7397 for ac_exec_ext in '' $ac_executable_extensions; do
7398 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7399 ac_cv_prog_ac_ct_AR="$ac_prog"
7400 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7409 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7410 if test -n "$ac_ct_AR"; then
7411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7412 $as_echo "$ac_ct_AR" >&6; }
7414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7415 $as_echo "no" >&6; }
7419 test -n "$ac_ct_AR" && break
7422 if test "x$ac_ct_AR" = x; then
7425 case $cross_compiling:$ac_tool_warned in
7427 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7428 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7429 ac_tool_warned=yes ;;
7448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7449 $as_echo_n "checking for archiver @FILE support... " >&6; }
7450 if ${lt_cv_ar_at_file+:} false; then :
7451 $as_echo_n "(cached) " >&6
7454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7455 /* end confdefs.h. */
7465 if ac_fn_c_try_compile "$LINENO"; then :
7466 echo conftest.$ac_objext > conftest.lst
7467 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7468 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7469 (eval $lt_ar_try) 2>&5
7471 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7472 test $ac_status = 0; }
7473 if test "$ac_status" -eq 0; then
7474 # Ensure the archiver fails upon bogus file names.
7475 rm -f conftest.$ac_objext libconftest.a
7476 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7477 (eval $lt_ar_try) 2>&5
7479 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7480 test $ac_status = 0; }
7481 if test "$ac_status" -ne 0; then
7485 rm -f conftest.* libconftest.a
7488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7492 $as_echo "$lt_cv_ar_at_file" >&6; }
7494 if test "x$lt_cv_ar_at_file" = xno; then
7497 archiver_list_spec=$lt_cv_ar_at_file
7506 if test -n "$ac_tool_prefix"; then
7507 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7508 set dummy ${ac_tool_prefix}strip; ac_word=$2
7509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7510 $as_echo_n "checking for $ac_word... " >&6; }
7511 if ${ac_cv_prog_STRIP+:} false; then :
7512 $as_echo_n "(cached) " >&6
7514 if test -n "$STRIP"; then
7515 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7521 test -z "$as_dir" && as_dir=.
7522 for ac_exec_ext in '' $ac_executable_extensions; do
7523 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7524 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7525 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7534 STRIP=$ac_cv_prog_STRIP
7535 if test -n "$STRIP"; then
7536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7537 $as_echo "$STRIP" >&6; }
7539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7540 $as_echo "no" >&6; }
7545 if test -z "$ac_cv_prog_STRIP"; then
7547 # Extract the first word of "strip", so it can be a program name with args.
7548 set dummy strip; ac_word=$2
7549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7550 $as_echo_n "checking for $ac_word... " >&6; }
7551 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7552 $as_echo_n "(cached) " >&6
7554 if test -n "$ac_ct_STRIP"; then
7555 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7561 test -z "$as_dir" && as_dir=.
7562 for ac_exec_ext in '' $ac_executable_extensions; do
7563 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7564 ac_cv_prog_ac_ct_STRIP="strip"
7565 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7574 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7575 if test -n "$ac_ct_STRIP"; then
7576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7577 $as_echo "$ac_ct_STRIP" >&6; }
7579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7580 $as_echo "no" >&6; }
7583 if test "x$ac_ct_STRIP" = x; then
7586 case $cross_compiling:$ac_tool_warned in
7588 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7589 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7590 ac_tool_warned=yes ;;
7595 STRIP="$ac_cv_prog_STRIP"
7598 test -z "$STRIP" && STRIP=:
7605 if test -n "$ac_tool_prefix"; then
7606 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7607 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7609 $as_echo_n "checking for $ac_word... " >&6; }
7610 if ${ac_cv_prog_RANLIB+:} false; then :
7611 $as_echo_n "(cached) " >&6
7613 if test -n "$RANLIB"; then
7614 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7620 test -z "$as_dir" && as_dir=.
7621 for ac_exec_ext in '' $ac_executable_extensions; do
7622 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7623 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7624 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7633 RANLIB=$ac_cv_prog_RANLIB
7634 if test -n "$RANLIB"; then
7635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7636 $as_echo "$RANLIB" >&6; }
7638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7639 $as_echo "no" >&6; }
7644 if test -z "$ac_cv_prog_RANLIB"; then
7645 ac_ct_RANLIB=$RANLIB
7646 # Extract the first word of "ranlib", so it can be a program name with args.
7647 set dummy ranlib; ac_word=$2
7648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7649 $as_echo_n "checking for $ac_word... " >&6; }
7650 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7651 $as_echo_n "(cached) " >&6
7653 if test -n "$ac_ct_RANLIB"; then
7654 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7660 test -z "$as_dir" && as_dir=.
7661 for ac_exec_ext in '' $ac_executable_extensions; do
7662 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7663 ac_cv_prog_ac_ct_RANLIB="ranlib"
7664 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7673 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7674 if test -n "$ac_ct_RANLIB"; then
7675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7676 $as_echo "$ac_ct_RANLIB" >&6; }
7678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7679 $as_echo "no" >&6; }
7682 if test "x$ac_ct_RANLIB" = x; then
7685 case $cross_compiling:$ac_tool_warned in
7687 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7688 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7689 ac_tool_warned=yes ;;
7691 RANLIB=$ac_ct_RANLIB
7694 RANLIB="$ac_cv_prog_RANLIB"
7697 test -z "$RANLIB" && RANLIB=:
7704 # Determine commands to create old-style static archives.
7705 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7706 old_postinstall_cmds='chmod 644 $oldlib'
7707 old_postuninstall_cmds=
7709 if test -n "$RANLIB"; then
7712 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7715 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7718 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7723 lock_old_archive_extraction=yes ;;
7725 lock_old_archive_extraction=no ;;
7766 # If no C compiler was specified, use CC.
7769 # If no C compiler flags were specified, use CFLAGS.
7770 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7772 # Allow CC to be a program name with arguments.
7776 # Check for command to grab the raw symbol name followed by C symbol from nm.
7777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7778 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7779 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7780 $as_echo_n "(cached) " >&6
7783 # These are sane defaults that work on at least a few old systems.
7784 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7786 # Character class describing NM global symbol codes.
7787 symcode='[BCDEGRST]'
7789 # Regexp to match symbols that can be accessed directly from C.
7790 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7792 # Define system-specific variables.
7797 cygwin* | mingw* | pw32* | cegcc*)
7798 symcode='[ABCDGISTW]'
7801 if test "$host_cpu" = ia64; then
7802 symcode='[ABCDEGRST]'
7806 symcode='[BCDEGRST]'
7809 symcode='[BCDEGQRST]'
7820 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7828 # If we're using GNU nm, then use its standard symbol codes.
7829 case `$NM -V 2>&1` in
7830 *GNU* | *'with BFD'*)
7831 symcode='[ABCDGIRSTW]' ;;
7834 # Transform an extracted symbol line into a proper C declaration.
7835 # Some systems (esp. on ia64) link data and code symbols differently,
7836 # so use this general approach.
7837 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7839 # Transform an extracted symbol line into symbol name and symbol address
7840 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7841 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'"
7843 # Handle CRLF in mingw tool chain
7847 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7851 # Try without a prefix underscore, then with it.
7852 for ac_symprfx in "" "_"; do
7854 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7855 symxfrm="\\1 $ac_symprfx\\2 \\2"
7857 # Write the raw and C identifiers.
7858 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7859 # Fake it for dumpbin and say T for any non-static function
7860 # and D for any global variable.
7861 # Also find C++ and __fastcall symbols from MSVC++,
7862 # which start with @ or ?.
7863 lt_cv_sys_global_symbol_pipe="$AWK '"\
7864 " {last_section=section; section=\$ 3};"\
7865 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7866 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7867 " \$ 0!~/External *\|/{next};"\
7868 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7869 " {if(hide[section]) next};"\
7870 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7871 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7872 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7873 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7874 " ' prfx=^$ac_symprfx"
7876 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7878 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7880 # Check to see that the pipe works correctly.
7884 cat > conftest.$ac_ext <<_LT_EOF
7889 void nm_test_func(void);
7890 void nm_test_func(void){}
7894 int main(){nm_test_var='a';nm_test_func();return(0);}
7897 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7898 (eval $ac_compile) 2>&5
7900 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7901 test $ac_status = 0; }; then
7902 # Now try to grab the symbols.
7904 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7905 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7907 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7908 test $ac_status = 0; } && test -s "$nlist"; then
7909 # Try sorting and uniquifying the output.
7910 if sort "$nlist" | uniq > "$nlist"T; then
7911 mv -f "$nlist"T "$nlist"
7916 # Make sure that we snagged all the symbols we need.
7917 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7918 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7919 cat <<_LT_EOF > conftest.$ac_ext
7920 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7921 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
7922 /* DATA imports from DLLs on WIN32 con't be const, because runtime
7923 relocations are performed -- see ld's documentation on pseudo-relocs. */
7924 # define LT_DLSYM_CONST
7925 #elif defined(__osf__)
7926 /* This system does not cope well with relocations in const data. */
7927 # define LT_DLSYM_CONST
7929 # define LT_DLSYM_CONST const
7937 # Now generate the symbol file.
7938 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7940 cat <<_LT_EOF >> conftest.$ac_ext
7942 /* The mapping between symbol names and symbols. */
7943 LT_DLSYM_CONST struct {
7947 lt__PROGRAM__LTX_preloaded_symbols[] =
7949 { "@PROGRAM@", (void *) 0 },
7951 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7952 cat <<\_LT_EOF >> conftest.$ac_ext
7956 /* This works around a problem in FreeBSD linker */
7957 #ifdef FREEBSD_WORKAROUND
7958 static const void *lt_preloaded_setup() {
7959 return lt__PROGRAM__LTX_preloaded_symbols;
7967 # Now try linking the two files.
7968 mv conftest.$ac_objext conftstm.$ac_objext
7969 lt_globsym_save_LIBS=$LIBS
7970 lt_globsym_save_CFLAGS=$CFLAGS
7971 LIBS="conftstm.$ac_objext"
7972 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7973 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7974 (eval $ac_link) 2>&5
7976 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7977 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7980 LIBS=$lt_globsym_save_LIBS
7981 CFLAGS=$lt_globsym_save_CFLAGS
7983 echo "cannot find nm_test_func in $nlist" >&5
7986 echo "cannot find nm_test_var in $nlist" >&5
7989 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7992 echo "$progname: failed program was:" >&5
7993 cat conftest.$ac_ext >&5
7995 rm -rf conftest* conftst*
7997 # Do not use the global_symbol_pipe unless it works.
7998 if test "$pipe_works" = yes; then
8001 lt_cv_sys_global_symbol_pipe=
8007 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8008 lt_cv_sys_global_symbol_to_cdecl=
8010 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8012 $as_echo "failed" >&6; }
8014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8015 $as_echo "ok" >&6; }
8018 # Response file support.
8019 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8020 nm_file_list_spec='@'
8021 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
8022 nm_file_list_spec='@'
8051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
8052 $as_echo_n "checking for sysroot... " >&6; }
8054 # Check whether --with-sysroot was given.
8055 if test "${with_sysroot+set}" = set; then :
8056 withval=$with_sysroot;
8063 case ${with_sysroot} in #(
8065 if test "$GCC" = yes; then
8066 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
8070 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
8075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
8076 $as_echo "${with_sysroot}" >&6; }
8077 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
8081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
8082 $as_echo "${lt_sysroot:-no}" >&6; }
8088 # Check whether --enable-libtool-lock was given.
8089 if test "${enable_libtool_lock+set}" = set; then :
8090 enableval=$enable_libtool_lock;
8093 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8095 # Some flags need to be propagated to the compiler or linker for good
8099 # Find out which ABI we are using.
8100 echo 'int i;' > conftest.$ac_ext
8101 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8102 (eval $ac_compile) 2>&5
8104 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8105 test $ac_status = 0; }; then
8106 case `/usr/bin/file conftest.$ac_objext` in
8118 # Find out which ABI we are using.
8119 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8120 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8121 (eval $ac_compile) 2>&5
8123 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8124 test $ac_status = 0; }; then
8125 if test "$lt_cv_prog_gnu_ld" = yes; then
8126 case `/usr/bin/file conftest.$ac_objext` in
8128 LD="${LD-ld} -melf32bsmip"
8131 LD="${LD-ld} -melf32bmipn32"
8134 LD="${LD-ld} -melf64bmip"
8138 case `/usr/bin/file conftest.$ac_objext` in
8154 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
8155 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8156 # Find out which ABI we are using.
8157 echo 'int i;' > conftest.$ac_ext
8158 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8159 (eval $ac_compile) 2>&5
8161 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8162 test $ac_status = 0; }; then
8163 case `/usr/bin/file conftest.o` in
8166 x86_64-*kfreebsd*-gnu)
8167 LD="${LD-ld} -m elf_i386_fbsd"
8170 case `/usr/bin/file conftest.o` in
8172 LD="${LD-ld} -m elf32_x86_64"
8175 LD="${LD-ld} -m elf_i386"
8180 LD="${LD-ld} -m elf32lppclinux"
8183 LD="${LD-ld} -m elf32ppclinux"
8186 LD="${LD-ld} -m elf_s390"
8189 LD="${LD-ld} -m elf32_sparc"
8195 x86_64-*kfreebsd*-gnu)
8196 LD="${LD-ld} -m elf_x86_64_fbsd"
8199 LD="${LD-ld} -m elf_x86_64"
8202 LD="${LD-ld} -m elf64lppc"
8205 LD="${LD-ld} -m elf64ppc"
8207 s390*-*linux*|s390*-*tpf*)
8208 LD="${LD-ld} -m elf64_s390"
8211 LD="${LD-ld} -m elf64_sparc"
8221 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8222 SAVE_CFLAGS="$CFLAGS"
8223 CFLAGS="$CFLAGS -belf"
8224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8225 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8226 if ${lt_cv_cc_needs_belf+:} false; then :
8227 $as_echo_n "(cached) " >&6
8230 ac_cpp='$CPP $CPPFLAGS'
8231 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8232 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8233 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8236 /* end confdefs.h. */
8246 if ac_fn_c_try_link "$LINENO"; then :
8247 lt_cv_cc_needs_belf=yes
8249 lt_cv_cc_needs_belf=no
8251 rm -f core conftest.err conftest.$ac_objext \
8252 conftest$ac_exeext conftest.$ac_ext
8254 ac_cpp='$CPP $CPPFLAGS'
8255 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8256 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8257 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8261 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8262 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8263 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8264 CFLAGS="$SAVE_CFLAGS"
8268 # Find out which ABI we are using.
8269 echo 'int i;' > conftest.$ac_ext
8270 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8271 (eval $ac_compile) 2>&5
8273 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8274 test $ac_status = 0; }; then
8275 case `/usr/bin/file conftest.o` in
8277 case $lt_cv_prog_gnu_ld in
8281 LD="${LD-ld} -m elf_x86_64"
8284 LD="${LD-ld} -m elf64_sparc"
8287 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
8288 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8293 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8305 need_locks="$enable_libtool_lock"
8307 if test -n "$ac_tool_prefix"; then
8308 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8309 set dummy ${ac_tool_prefix}mt; ac_word=$2
8310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8311 $as_echo_n "checking for $ac_word... " >&6; }
8312 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
8313 $as_echo_n "(cached) " >&6
8315 if test -n "$MANIFEST_TOOL"; then
8316 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8322 test -z "$as_dir" && as_dir=.
8323 for ac_exec_ext in '' $ac_executable_extensions; do
8324 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8325 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8326 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8335 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8336 if test -n "$MANIFEST_TOOL"; then
8337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8338 $as_echo "$MANIFEST_TOOL" >&6; }
8340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8341 $as_echo "no" >&6; }
8346 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8347 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8348 # Extract the first word of "mt", so it can be a program name with args.
8349 set dummy mt; ac_word=$2
8350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8351 $as_echo_n "checking for $ac_word... " >&6; }
8352 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
8353 $as_echo_n "(cached) " >&6
8355 if test -n "$ac_ct_MANIFEST_TOOL"; then
8356 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8362 test -z "$as_dir" && as_dir=.
8363 for ac_exec_ext in '' $ac_executable_extensions; do
8364 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8365 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8366 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8375 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8376 if test -n "$ac_ct_MANIFEST_TOOL"; then
8377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8378 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
8380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8381 $as_echo "no" >&6; }
8384 if test "x$ac_ct_MANIFEST_TOOL" = x; then
8387 case $cross_compiling:$ac_tool_warned in
8389 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8390 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8391 ac_tool_warned=yes ;;
8393 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8396 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8399 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8401 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8402 if ${lt_cv_path_mainfest_tool+:} false; then :
8403 $as_echo_n "(cached) " >&6
8405 lt_cv_path_mainfest_tool=no
8406 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8407 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8408 cat conftest.err >&5
8409 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8410 lt_cv_path_mainfest_tool=yes
8414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8415 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
8416 if test "x$lt_cv_path_mainfest_tool" != xyes; then
8426 rhapsody* | darwin*)
8427 if test -n "$ac_tool_prefix"; then
8428 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8429 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8431 $as_echo_n "checking for $ac_word... " >&6; }
8432 if ${ac_cv_prog_DSYMUTIL+:} false; then :
8433 $as_echo_n "(cached) " >&6
8435 if test -n "$DSYMUTIL"; then
8436 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8442 test -z "$as_dir" && as_dir=.
8443 for ac_exec_ext in '' $ac_executable_extensions; do
8444 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8445 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8446 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8455 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8456 if test -n "$DSYMUTIL"; then
8457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8458 $as_echo "$DSYMUTIL" >&6; }
8460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8461 $as_echo "no" >&6; }
8466 if test -z "$ac_cv_prog_DSYMUTIL"; then
8467 ac_ct_DSYMUTIL=$DSYMUTIL
8468 # Extract the first word of "dsymutil", so it can be a program name with args.
8469 set dummy dsymutil; ac_word=$2
8470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8471 $as_echo_n "checking for $ac_word... " >&6; }
8472 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8473 $as_echo_n "(cached) " >&6
8475 if test -n "$ac_ct_DSYMUTIL"; then
8476 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8482 test -z "$as_dir" && as_dir=.
8483 for ac_exec_ext in '' $ac_executable_extensions; do
8484 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8485 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8486 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8495 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8496 if test -n "$ac_ct_DSYMUTIL"; then
8497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8498 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8501 $as_echo "no" >&6; }
8504 if test "x$ac_ct_DSYMUTIL" = x; then
8507 case $cross_compiling:$ac_tool_warned in
8509 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8510 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8511 ac_tool_warned=yes ;;
8513 DSYMUTIL=$ac_ct_DSYMUTIL
8516 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8519 if test -n "$ac_tool_prefix"; then
8520 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8521 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8523 $as_echo_n "checking for $ac_word... " >&6; }
8524 if ${ac_cv_prog_NMEDIT+:} false; then :
8525 $as_echo_n "(cached) " >&6
8527 if test -n "$NMEDIT"; then
8528 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8534 test -z "$as_dir" && as_dir=.
8535 for ac_exec_ext in '' $ac_executable_extensions; do
8536 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8537 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8538 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8547 NMEDIT=$ac_cv_prog_NMEDIT
8548 if test -n "$NMEDIT"; then
8549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8550 $as_echo "$NMEDIT" >&6; }
8552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8553 $as_echo "no" >&6; }
8558 if test -z "$ac_cv_prog_NMEDIT"; then
8559 ac_ct_NMEDIT=$NMEDIT
8560 # Extract the first word of "nmedit", so it can be a program name with args.
8561 set dummy nmedit; ac_word=$2
8562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8563 $as_echo_n "checking for $ac_word... " >&6; }
8564 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8565 $as_echo_n "(cached) " >&6
8567 if test -n "$ac_ct_NMEDIT"; then
8568 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8574 test -z "$as_dir" && as_dir=.
8575 for ac_exec_ext in '' $ac_executable_extensions; do
8576 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8577 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8578 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8587 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8588 if test -n "$ac_ct_NMEDIT"; then
8589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8590 $as_echo "$ac_ct_NMEDIT" >&6; }
8592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8593 $as_echo "no" >&6; }
8596 if test "x$ac_ct_NMEDIT" = x; then
8599 case $cross_compiling:$ac_tool_warned in
8601 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8602 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8603 ac_tool_warned=yes ;;
8605 NMEDIT=$ac_ct_NMEDIT
8608 NMEDIT="$ac_cv_prog_NMEDIT"
8611 if test -n "$ac_tool_prefix"; then
8612 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8613 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8615 $as_echo_n "checking for $ac_word... " >&6; }
8616 if ${ac_cv_prog_LIPO+:} false; then :
8617 $as_echo_n "(cached) " >&6
8619 if test -n "$LIPO"; then
8620 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8626 test -z "$as_dir" && as_dir=.
8627 for ac_exec_ext in '' $ac_executable_extensions; do
8628 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8629 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8630 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8639 LIPO=$ac_cv_prog_LIPO
8640 if test -n "$LIPO"; then
8641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8642 $as_echo "$LIPO" >&6; }
8644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8645 $as_echo "no" >&6; }
8650 if test -z "$ac_cv_prog_LIPO"; then
8652 # Extract the first word of "lipo", so it can be a program name with args.
8653 set dummy lipo; ac_word=$2
8654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8655 $as_echo_n "checking for $ac_word... " >&6; }
8656 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8657 $as_echo_n "(cached) " >&6
8659 if test -n "$ac_ct_LIPO"; then
8660 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8666 test -z "$as_dir" && as_dir=.
8667 for ac_exec_ext in '' $ac_executable_extensions; do
8668 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8669 ac_cv_prog_ac_ct_LIPO="lipo"
8670 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8679 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8680 if test -n "$ac_ct_LIPO"; then
8681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8682 $as_echo "$ac_ct_LIPO" >&6; }
8684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8685 $as_echo "no" >&6; }
8688 if test "x$ac_ct_LIPO" = x; then
8691 case $cross_compiling:$ac_tool_warned in
8693 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8694 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8695 ac_tool_warned=yes ;;
8700 LIPO="$ac_cv_prog_LIPO"
8703 if test -n "$ac_tool_prefix"; then
8704 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8705 set dummy ${ac_tool_prefix}otool; ac_word=$2
8706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8707 $as_echo_n "checking for $ac_word... " >&6; }
8708 if ${ac_cv_prog_OTOOL+:} false; then :
8709 $as_echo_n "(cached) " >&6
8711 if test -n "$OTOOL"; then
8712 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8718 test -z "$as_dir" && as_dir=.
8719 for ac_exec_ext in '' $ac_executable_extensions; do
8720 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8721 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8722 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8731 OTOOL=$ac_cv_prog_OTOOL
8732 if test -n "$OTOOL"; then
8733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8734 $as_echo "$OTOOL" >&6; }
8736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8737 $as_echo "no" >&6; }
8742 if test -z "$ac_cv_prog_OTOOL"; then
8744 # Extract the first word of "otool", so it can be a program name with args.
8745 set dummy otool; ac_word=$2
8746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8747 $as_echo_n "checking for $ac_word... " >&6; }
8748 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8749 $as_echo_n "(cached) " >&6
8751 if test -n "$ac_ct_OTOOL"; then
8752 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8758 test -z "$as_dir" && as_dir=.
8759 for ac_exec_ext in '' $ac_executable_extensions; do
8760 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8761 ac_cv_prog_ac_ct_OTOOL="otool"
8762 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8771 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8772 if test -n "$ac_ct_OTOOL"; then
8773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8774 $as_echo "$ac_ct_OTOOL" >&6; }
8776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8777 $as_echo "no" >&6; }
8780 if test "x$ac_ct_OTOOL" = x; then
8783 case $cross_compiling:$ac_tool_warned in
8785 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8786 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8787 ac_tool_warned=yes ;;
8792 OTOOL="$ac_cv_prog_OTOOL"
8795 if test -n "$ac_tool_prefix"; then
8796 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8797 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8799 $as_echo_n "checking for $ac_word... " >&6; }
8800 if ${ac_cv_prog_OTOOL64+:} false; then :
8801 $as_echo_n "(cached) " >&6
8803 if test -n "$OTOOL64"; then
8804 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8810 test -z "$as_dir" && as_dir=.
8811 for ac_exec_ext in '' $ac_executable_extensions; do
8812 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8813 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8814 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8823 OTOOL64=$ac_cv_prog_OTOOL64
8824 if test -n "$OTOOL64"; then
8825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8826 $as_echo "$OTOOL64" >&6; }
8828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8829 $as_echo "no" >&6; }
8834 if test -z "$ac_cv_prog_OTOOL64"; then
8835 ac_ct_OTOOL64=$OTOOL64
8836 # Extract the first word of "otool64", so it can be a program name with args.
8837 set dummy otool64; ac_word=$2
8838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8839 $as_echo_n "checking for $ac_word... " >&6; }
8840 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8841 $as_echo_n "(cached) " >&6
8843 if test -n "$ac_ct_OTOOL64"; then
8844 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8850 test -z "$as_dir" && as_dir=.
8851 for ac_exec_ext in '' $ac_executable_extensions; do
8852 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8853 ac_cv_prog_ac_ct_OTOOL64="otool64"
8854 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8863 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8864 if test -n "$ac_ct_OTOOL64"; then
8865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8866 $as_echo "$ac_ct_OTOOL64" >&6; }
8868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8869 $as_echo "no" >&6; }
8872 if test "x$ac_ct_OTOOL64" = x; then
8875 case $cross_compiling:$ac_tool_warned in
8877 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8878 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8879 ac_tool_warned=yes ;;
8881 OTOOL64=$ac_ct_OTOOL64
8884 OTOOL64="$ac_cv_prog_OTOOL64"
8913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8914 $as_echo_n "checking for -single_module linker flag... " >&6; }
8915 if ${lt_cv_apple_cc_single_mod+:} false; then :
8916 $as_echo_n "(cached) " >&6
8918 lt_cv_apple_cc_single_mod=no
8919 if test -z "${LT_MULTI_MODULE}"; then
8920 # By default we will add the -single_module flag. You can override
8921 # by either setting the environment variable LT_MULTI_MODULE
8922 # non-empty at configure time, or by adding -multi_module to the
8924 rm -rf libconftest.dylib*
8925 echo "int foo(void){return 1;}" > conftest.c
8926 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8927 -dynamiclib -Wl,-single_module conftest.c" >&5
8928 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8929 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8931 # If there is a non-empty error log, and "single_module"
8932 # appears in it, assume the flag caused a linker warning
8933 if test -s conftest.err && $GREP single_module conftest.err; then
8934 cat conftest.err >&5
8935 # Otherwise, if the output was created with a 0 exit code from
8936 # the compiler, it worked.
8937 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
8938 lt_cv_apple_cc_single_mod=yes
8940 cat conftest.err >&5
8942 rm -rf libconftest.dylib*
8946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8947 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8950 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8951 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8952 $as_echo_n "(cached) " >&6
8954 lt_cv_ld_exported_symbols_list=no
8955 save_LDFLAGS=$LDFLAGS
8956 echo "_main" > conftest.sym
8957 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8959 /* end confdefs.h. */
8969 if ac_fn_c_try_link "$LINENO"; then :
8970 lt_cv_ld_exported_symbols_list=yes
8972 lt_cv_ld_exported_symbols_list=no
8974 rm -f core conftest.err conftest.$ac_objext \
8975 conftest$ac_exeext conftest.$ac_ext
8976 LDFLAGS="$save_LDFLAGS"
8979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8980 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8983 $as_echo_n "checking for -force_load linker flag... " >&6; }
8984 if ${lt_cv_ld_force_load+:} false; then :
8985 $as_echo_n "(cached) " >&6
8987 lt_cv_ld_force_load=no
8988 cat > conftest.c << _LT_EOF
8989 int forced_loaded() { return 2;}
8991 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8992 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8993 echo "$AR cru libconftest.a conftest.o" >&5
8994 $AR cru libconftest.a conftest.o 2>&5
8995 echo "$RANLIB libconftest.a" >&5
8996 $RANLIB libconftest.a 2>&5
8997 cat > conftest.c << _LT_EOF
8998 int main() { return 0;}
9000 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
9001 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
9003 if test -s conftest.err && $GREP force_load conftest.err; then
9004 cat conftest.err >&5
9005 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
9006 lt_cv_ld_force_load=yes
9008 cat conftest.err >&5
9010 rm -f conftest.err libconftest.a conftest conftest.c
9011 rm -rf conftest.dSYM
9014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9015 $as_echo "$lt_cv_ld_force_load" >&6; }
9017 rhapsody* | darwin1.[012])
9018 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
9020 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9021 darwin*) # darwin 5.x on
9022 # if running on 10.5 or later, the deployment target defaults
9023 # to the OS version, if on x86, and 10.4, the deployment
9024 # target defaults to 10.4. Don't you love it?
9025 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9026 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
9027 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9029 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9031 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9035 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
9036 _lt_dar_single_mod='$single_module'
9038 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
9039 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
9041 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
9043 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
9044 _lt_dsymutil='~$DSYMUTIL $lib || :'
9051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
9052 $as_echo_n "checking for ANSI C header files... " >&6; }
9053 if ${ac_cv_header_stdc+:} false; then :
9054 $as_echo_n "(cached) " >&6
9056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9057 /* end confdefs.h. */
9071 if ac_fn_c_try_compile "$LINENO"; then :
9072 ac_cv_header_stdc=yes
9074 ac_cv_header_stdc=no
9076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9078 if test $ac_cv_header_stdc = yes; then
9079 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9081 /* end confdefs.h. */
9085 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9086 $EGREP "memchr" >/dev/null 2>&1; then :
9089 ac_cv_header_stdc=no
9095 if test $ac_cv_header_stdc = yes; then
9096 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9098 /* end confdefs.h. */
9102 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9103 $EGREP "free" >/dev/null 2>&1; then :
9106 ac_cv_header_stdc=no
9112 if test $ac_cv_header_stdc = yes; then
9113 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9114 if test "$cross_compiling" = yes; then :
9117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9118 /* end confdefs.h. */
9121 #if ((' ' & 0x0FF) == 0x020)
9122 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9123 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9125 # define ISLOWER(c) \
9126 (('a' <= (c) && (c) <= 'i') \
9127 || ('j' <= (c) && (c) <= 'r') \
9128 || ('s' <= (c) && (c) <= 'z'))
9129 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9132 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9137 for (i = 0; i < 256; i++)
9138 if (XOR (islower (i), ISLOWER (i))
9139 || toupper (i) != TOUPPER (i))
9144 if ac_fn_c_try_run "$LINENO"; then :
9147 ac_cv_header_stdc=no
9149 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9150 conftest.$ac_objext conftest.beam conftest.$ac_ext
9155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
9156 $as_echo "$ac_cv_header_stdc" >&6; }
9157 if test $ac_cv_header_stdc = yes; then
9159 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
9163 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
9164 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
9165 inttypes.h stdint.h unistd.h
9167 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9168 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
9170 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9171 cat >>confdefs.h <<_ACEOF
9172 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9180 for ac_header in dlfcn.h
9182 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9184 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
9185 cat >>confdefs.h <<_ACEOF
9186 #define HAVE_DLFCN_H 1
9196 func_stripname_cnf ()
9199 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
9200 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
9202 } # func_stripname_cnf
9209 # Check whether --enable-shared was given.
9210 if test "${enable_shared+set}" = set; then :
9211 enableval=$enable_shared; p=${PACKAGE-default}
9213 yes) enable_shared=yes ;;
9214 no) enable_shared=no ;;
9217 # Look at the argument we got. We use all the common list separators.
9218 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9219 for pkg in $enableval; do
9221 if test "X$pkg" = "X$p"; then
9238 # Check whether --enable-static was given.
9239 if test "${enable_static+set}" = set; then :
9240 enableval=$enable_static; p=${PACKAGE-default}
9242 yes) enable_static=yes ;;
9243 no) enable_static=no ;;
9246 # Look at the argument we got. We use all the common list separators.
9247 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9248 for pkg in $enableval; do
9250 if test "X$pkg" = "X$p"; then
9279 # Check whether --with-pic was given.
9280 if test "${with_pic+set}" = set; then :
9281 withval=$with_pic; lt_p=${PACKAGE-default}
9283 yes|no) pic_mode=$withval ;;
9286 # Look at the argument we got. We use all the common list separators.
9287 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9288 for lt_pkg in $withval; do
9290 if test "X$lt_pkg" = "X$lt_p"; then
9302 test -z "$pic_mode" && pic_mode=default
9310 # Check whether --enable-fast-install was given.
9311 if test "${enable_fast_install+set}" = set; then :
9312 enableval=$enable_fast_install; p=${PACKAGE-default}
9314 yes) enable_fast_install=yes ;;
9315 no) enable_fast_install=no ;;
9317 enable_fast_install=no
9318 # Look at the argument we got. We use all the common list separators.
9319 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9320 for pkg in $enableval; do
9322 if test "X$pkg" = "X$p"; then
9323 enable_fast_install=yes
9330 enable_fast_install=yes
9343 # This can be used to rebuild libtool when needed
9344 LIBTOOL_DEPS="$ltmain"
9346 # Always use our own libtool.
9347 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9378 test -z "$LN_S" && LN_S="ln -s"
9393 if test -n "${ZSH_VERSION+set}" ; then
9394 setopt NO_GLOB_SUBST
9397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9398 $as_echo_n "checking for objdir... " >&6; }
9399 if ${lt_cv_objdir+:} false; then :
9400 $as_echo_n "(cached) " >&6
9402 rm -f .libs 2>/dev/null
9403 mkdir .libs 2>/dev/null
9404 if test -d .libs; then
9407 # MS-DOS does not allow filenames that begin with a dot.
9410 rmdir .libs 2>/dev/null
9412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9413 $as_echo "$lt_cv_objdir" >&6; }
9414 objdir=$lt_cv_objdir
9420 cat >>confdefs.h <<_ACEOF
9421 #define LT_OBJDIR "$lt_cv_objdir/"
9429 # AIX sometimes has problems with the GCC collect2 program. For some
9430 # reason, if we set the COLLECT_NAMES environment variable, the problems
9431 # vanish in a puff of smoke.
9432 if test "X${COLLECT_NAMES+set}" != Xset; then
9434 export COLLECT_NAMES
9441 can_build_shared=yes
9443 # All known linkers require a `.a' archive for static linking (except MSVC,
9444 # which needs '.lib').
9447 with_gnu_ld="$lt_cv_prog_gnu_ld"
9450 old_CFLAGS="$CFLAGS"
9452 # Set sane defaults for various variables
9453 test -z "$CC" && CC=cc
9454 test -z "$LTCC" && LTCC=$CC
9455 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9456 test -z "$LD" && LD=ld
9457 test -z "$ac_objext" && ac_objext=o
9459 for cc_temp in $compiler""; do
9461 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9462 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9467 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9470 # Only perform the check for file, if the check method requires it
9471 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9472 case $deplibs_check_method in
9474 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9476 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9477 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9478 $as_echo_n "(cached) " >&6
9482 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9485 lt_save_MAGIC_CMD="$MAGIC_CMD"
9486 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9487 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9488 for ac_dir in $ac_dummy; do
9490 test -z "$ac_dir" && ac_dir=.
9491 if test -f $ac_dir/${ac_tool_prefix}file; then
9492 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9493 if test -n "$file_magic_test_file"; then
9494 case $deplibs_check_method in
9496 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9497 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9498 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9499 $EGREP "$file_magic_regex" > /dev/null; then
9504 *** Warning: the command libtool uses to detect shared libraries,
9505 *** $file_magic_cmd, produces output that libtool cannot recognize.
9506 *** The result is that libtool may fail to recognize shared libraries
9507 *** as such. This will affect the creation of libtool libraries that
9508 *** depend on shared libraries, but programs linked with such libtool
9509 *** libraries will work regardless of this problem. Nevertheless, you
9510 *** may want to report the problem to your system manager and/or to
9511 *** bug-libtool@gnu.org
9521 MAGIC_CMD="$lt_save_MAGIC_CMD"
9526 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9527 if test -n "$MAGIC_CMD"; then
9528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9529 $as_echo "$MAGIC_CMD" >&6; }
9531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9532 $as_echo "no" >&6; }
9539 if test -z "$lt_cv_path_MAGIC_CMD"; then
9540 if test -n "$ac_tool_prefix"; then
9541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9542 $as_echo_n "checking for file... " >&6; }
9543 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9544 $as_echo_n "(cached) " >&6
9548 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9551 lt_save_MAGIC_CMD="$MAGIC_CMD"
9552 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9553 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9554 for ac_dir in $ac_dummy; do
9556 test -z "$ac_dir" && ac_dir=.
9557 if test -f $ac_dir/file; then
9558 lt_cv_path_MAGIC_CMD="$ac_dir/file"
9559 if test -n "$file_magic_test_file"; then
9560 case $deplibs_check_method in
9562 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9563 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9564 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9565 $EGREP "$file_magic_regex" > /dev/null; then
9570 *** Warning: the command libtool uses to detect shared libraries,
9571 *** $file_magic_cmd, produces output that libtool cannot recognize.
9572 *** The result is that libtool may fail to recognize shared libraries
9573 *** as such. This will affect the creation of libtool libraries that
9574 *** depend on shared libraries, but programs linked with such libtool
9575 *** libraries will work regardless of this problem. Nevertheless, you
9576 *** may want to report the problem to your system manager and/or to
9577 *** bug-libtool@gnu.org
9587 MAGIC_CMD="$lt_save_MAGIC_CMD"
9592 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9593 if test -n "$MAGIC_CMD"; then
9594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9595 $as_echo "$MAGIC_CMD" >&6; }
9597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9598 $as_echo "no" >&6; }
9611 # Use C for the default configuration in the libtool script
9615 ac_cpp='$CPP $CPPFLAGS'
9616 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9617 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9618 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9621 # Source file extension for C test sources.
9624 # Object file extension for compiled C test sources.
9628 # Code to be used in simple compile tests
9629 lt_simple_compile_test_code="int some_variable = 0;"
9631 # Code to be used in simple link tests
9632 lt_simple_link_test_code='int main(){return(0);}'
9640 # If no C compiler was specified, use CC.
9643 # If no C compiler flags were specified, use CFLAGS.
9644 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9646 # Allow CC to be a program name with arguments.
9649 # Save the default compiler, since it gets overwritten when the other
9650 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9651 compiler_DEFAULT=$CC
9653 # save warnings/boilerplate of simple test code
9654 ac_outfile=conftest.$ac_objext
9655 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9656 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9657 _lt_compiler_boilerplate=`cat conftest.err`
9660 ac_outfile=conftest.$ac_objext
9661 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9662 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9663 _lt_linker_boilerplate=`cat conftest.err`
9668 ## There is no encapsulation within the following macros, do not change
9669 ## the running order or otherwise move them around unless you know exactly
9670 ## what you are doing...
9671 if test -n "$compiler"; then
9673 lt_prog_compiler_no_builtin_flag=
9675 if test "$GCC" = yes; then
9676 case $cc_basename in
9678 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9680 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9684 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9685 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9686 $as_echo_n "(cached) " >&6
9688 lt_cv_prog_compiler_rtti_exceptions=no
9689 ac_outfile=conftest.$ac_objext
9690 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9691 lt_compiler_flag="-fno-rtti -fno-exceptions"
9692 # Insert the option either (1) after the last *FLAGS variable, or
9693 # (2) before a word containing "conftest.", or (3) at the end.
9694 # Note that $ac_compile itself does not contain backslashes and begins
9695 # with a dollar sign (not a hyphen), so the echo should work correctly.
9696 # The option is referenced via a variable to avoid confusing sed.
9697 lt_compile=`echo "$ac_compile" | $SED \
9698 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9699 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9700 -e 's:$: $lt_compiler_flag:'`
9701 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9702 (eval "$lt_compile" 2>conftest.err)
9704 cat conftest.err >&5
9705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9706 if (exit $ac_status) && test -s "$ac_outfile"; then
9707 # The compiler can only warn and ignore the option if not recognized
9708 # So say no if there are warnings other than the usual output.
9709 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9710 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9711 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9712 lt_cv_prog_compiler_rtti_exceptions=yes
9718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9719 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9721 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9722 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9734 lt_prog_compiler_wl=
9735 lt_prog_compiler_pic=
9736 lt_prog_compiler_static=
9739 if test "$GCC" = yes; then
9740 lt_prog_compiler_wl='-Wl,'
9741 lt_prog_compiler_static='-static'
9745 # All AIX code is PIC.
9746 if test "$host_cpu" = ia64; then
9747 # AIX 5 now supports IA64 processor
9748 lt_prog_compiler_static='-Bstatic'
9755 # see comment about AmigaOS4 .so support
9756 lt_prog_compiler_pic='-fPIC'
9759 # FIXME: we need at least 68020 code to build shared libraries, but
9760 # adding the `-m68020' flag to GCC prevents building anything better,
9762 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9767 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9768 # PIC is the default for these OSes.
9771 mingw* | cygwin* | pw32* | os2* | cegcc*)
9772 # This hack is so that the source file can tell whether it is being
9773 # built for inclusion in a dll (and should export symbols for example).
9774 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9775 # (--disable-auto-import) libraries
9776 lt_prog_compiler_pic='-DDLL_EXPORT'
9779 darwin* | rhapsody*)
9780 # PIC is the default on this platform
9781 # Common symbols not allowed in MH_DYLIB files
9782 lt_prog_compiler_pic='-fno-common'
9786 # PIC is the default for Haiku.
9787 # The "-static" flag exists, but is broken.
9788 lt_prog_compiler_static=
9792 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9793 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9794 # sets the default TLS model and affects inlining.
9800 lt_prog_compiler_pic='-fPIC'
9806 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9807 # Instead, we relocate shared libraries at runtime.
9811 # Just because we use GCC doesn't mean we suddenly get shared libraries
9812 # on systems that don't support them.
9813 lt_prog_compiler_can_build_shared=no
9818 # QNX uses GNU C++, but need to define -shared option too, otherwise
9820 lt_prog_compiler_pic='-fPIC -shared'
9824 if test -d /usr/nec; then
9825 lt_prog_compiler_pic=-Kconform_pic
9830 lt_prog_compiler_pic='-fPIC'
9834 case $cc_basename in
9835 nvcc*) # Cuda Compiler Driver 2.2
9836 lt_prog_compiler_wl='-Xlinker '
9837 if test -n "$lt_prog_compiler_pic"; then
9838 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9843 # PORTME Check for flag to pass linker flags through the system compiler.
9846 lt_prog_compiler_wl='-Wl,'
9847 if test "$host_cpu" = ia64; then
9848 # AIX 5 now supports IA64 processor
9849 lt_prog_compiler_static='-Bstatic'
9851 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9855 mingw* | cygwin* | pw32* | os2* | cegcc*)
9856 # This hack is so that the source file can tell whether it is being
9857 # built for inclusion in a dll (and should export symbols for example).
9858 lt_prog_compiler_pic='-DDLL_EXPORT'
9861 hpux9* | hpux10* | hpux11*)
9862 lt_prog_compiler_wl='-Wl,'
9863 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9870 lt_prog_compiler_pic='+Z'
9873 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9874 lt_prog_compiler_static='${wl}-a ${wl}archive'
9877 irix5* | irix6* | nonstopux*)
9878 lt_prog_compiler_wl='-Wl,'
9879 # PIC (with -KPIC) is the default.
9880 lt_prog_compiler_static='-non_shared'
9883 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9884 case $cc_basename in
9885 # old Intel for x86_64 which still supported -KPIC.
9887 lt_prog_compiler_wl='-Wl,'
9888 lt_prog_compiler_pic='-KPIC'
9889 lt_prog_compiler_static='-static'
9891 # icc used to be incompatible with GCC.
9892 # ICC 10 doesn't accept -KPIC any more.
9894 lt_prog_compiler_wl='-Wl,'
9895 lt_prog_compiler_pic='-fPIC'
9896 lt_prog_compiler_static='-static'
9898 # Lahey Fortran 8.1.
9900 lt_prog_compiler_wl='-Wl,'
9901 lt_prog_compiler_pic='--shared'
9902 lt_prog_compiler_static='--static'
9905 # NAG Fortran compiler
9906 lt_prog_compiler_wl='-Wl,-Wl,,'
9907 lt_prog_compiler_pic='-PIC'
9908 lt_prog_compiler_static='-Bstatic'
9910 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9911 # Portland Group compilers (*not* the Pentium gcc compiler,
9912 # which looks to be a dead project)
9913 lt_prog_compiler_wl='-Wl,'
9914 lt_prog_compiler_pic='-fpic'
9915 lt_prog_compiler_static='-Bstatic'
9918 lt_prog_compiler_wl='-Wl,'
9919 # All Alpha code is PIC.
9920 lt_prog_compiler_static='-non_shared'
9922 xl* | bgxl* | bgf* | mpixl*)
9923 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9924 lt_prog_compiler_wl='-Wl,'
9925 lt_prog_compiler_pic='-qpic'
9926 lt_prog_compiler_static='-qstaticlink'
9929 case `$CC -V 2>&1 | sed 5q` in
9930 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9931 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9932 lt_prog_compiler_pic='-KPIC'
9933 lt_prog_compiler_static='-Bstatic'
9934 lt_prog_compiler_wl=''
9936 *Sun\ F* | *Sun*Fortran*)
9937 lt_prog_compiler_pic='-KPIC'
9938 lt_prog_compiler_static='-Bstatic'
9939 lt_prog_compiler_wl='-Qoption ld '
9943 lt_prog_compiler_pic='-KPIC'
9944 lt_prog_compiler_static='-Bstatic'
9945 lt_prog_compiler_wl='-Wl,'
9947 *Intel*\ [CF]*Compiler*)
9948 lt_prog_compiler_wl='-Wl,'
9949 lt_prog_compiler_pic='-fPIC'
9950 lt_prog_compiler_static='-static'
9953 lt_prog_compiler_wl='-Wl,'
9954 lt_prog_compiler_pic='-fpic'
9955 lt_prog_compiler_static='-Bstatic'
9963 lt_prog_compiler_pic='-KPIC'
9964 lt_prog_compiler_static='-Bstatic'
9968 # QNX uses GNU C++, but need to define -shared option too, otherwise
9970 lt_prog_compiler_pic='-fPIC -shared'
9973 osf3* | osf4* | osf5*)
9974 lt_prog_compiler_wl='-Wl,'
9975 # All OSF/1 code is PIC.
9976 lt_prog_compiler_static='-non_shared'
9980 lt_prog_compiler_static='-non_shared'
9984 lt_prog_compiler_pic='-KPIC'
9985 lt_prog_compiler_static='-Bstatic'
9986 case $cc_basename in
9987 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9988 lt_prog_compiler_wl='-Qoption ld ';;
9990 lt_prog_compiler_wl='-Wl,';;
9995 lt_prog_compiler_wl='-Qoption ld '
9996 lt_prog_compiler_pic='-PIC'
9997 lt_prog_compiler_static='-Bstatic'
10000 sysv4 | sysv4.2uw2* | sysv4.3*)
10001 lt_prog_compiler_wl='-Wl,'
10002 lt_prog_compiler_pic='-KPIC'
10003 lt_prog_compiler_static='-Bstatic'
10007 if test -d /usr/nec ;then
10008 lt_prog_compiler_pic='-Kconform_pic'
10009 lt_prog_compiler_static='-Bstatic'
10013 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10014 lt_prog_compiler_wl='-Wl,'
10015 lt_prog_compiler_pic='-KPIC'
10016 lt_prog_compiler_static='-Bstatic'
10020 lt_prog_compiler_wl='-Wl,'
10021 lt_prog_compiler_can_build_shared=no
10025 lt_prog_compiler_pic='-pic'
10026 lt_prog_compiler_static='-Bstatic'
10030 lt_prog_compiler_can_build_shared=no
10036 # For platforms which do not support PIC, -DPIC is meaningless:
10038 lt_prog_compiler_pic=
10041 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10046 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10047 if ${lt_cv_prog_compiler_pic+:} false; then :
10048 $as_echo_n "(cached) " >&6
10050 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
10052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10053 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
10054 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10057 # Check to make sure the PIC flag actually works.
10059 if test -n "$lt_prog_compiler_pic"; then
10060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10061 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10062 if ${lt_cv_prog_compiler_pic_works+:} false; then :
10063 $as_echo_n "(cached) " >&6
10065 lt_cv_prog_compiler_pic_works=no
10066 ac_outfile=conftest.$ac_objext
10067 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10068 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
10069 # Insert the option either (1) after the last *FLAGS variable, or
10070 # (2) before a word containing "conftest.", or (3) at the end.
10071 # Note that $ac_compile itself does not contain backslashes and begins
10072 # with a dollar sign (not a hyphen), so the echo should work correctly.
10073 # The option is referenced via a variable to avoid confusing sed.
10074 lt_compile=`echo "$ac_compile" | $SED \
10075 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10076 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10077 -e 's:$: $lt_compiler_flag:'`
10078 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10079 (eval "$lt_compile" 2>conftest.err)
10081 cat conftest.err >&5
10082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10083 if (exit $ac_status) && test -s "$ac_outfile"; then
10084 # The compiler can only warn and ignore the option if not recognized
10085 # So say no if there are warnings other than the usual output.
10086 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10087 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10088 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10089 lt_cv_prog_compiler_pic_works=yes
10095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10096 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10098 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
10099 case $lt_prog_compiler_pic in
10101 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10104 lt_prog_compiler_pic=
10105 lt_prog_compiler_can_build_shared=no
10121 # Check to make sure the static flag actually works.
10123 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10125 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10126 if ${lt_cv_prog_compiler_static_works+:} false; then :
10127 $as_echo_n "(cached) " >&6
10129 lt_cv_prog_compiler_static_works=no
10130 save_LDFLAGS="$LDFLAGS"
10131 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10132 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10133 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10134 # The linker can only warn and ignore the option if not recognized
10135 # So say no if there are warnings
10136 if test -s conftest.err; then
10137 # Append any errors to the config.log.
10138 cat conftest.err 1>&5
10139 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10140 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10141 if diff conftest.exp conftest.er2 >/dev/null; then
10142 lt_cv_prog_compiler_static_works=yes
10145 lt_cv_prog_compiler_static_works=yes
10149 LDFLAGS="$save_LDFLAGS"
10152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10153 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10155 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
10158 lt_prog_compiler_static=
10167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10168 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10169 if ${lt_cv_prog_compiler_c_o+:} false; then :
10170 $as_echo_n "(cached) " >&6
10172 lt_cv_prog_compiler_c_o=no
10173 $RM -r conftest 2>/dev/null
10177 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10179 lt_compiler_flag="-o out/conftest2.$ac_objext"
10180 # Insert the option either (1) after the last *FLAGS variable, or
10181 # (2) before a word containing "conftest.", or (3) at the end.
10182 # Note that $ac_compile itself does not contain backslashes and begins
10183 # with a dollar sign (not a hyphen), so the echo should work correctly.
10184 lt_compile=`echo "$ac_compile" | $SED \
10185 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10186 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10187 -e 's:$: $lt_compiler_flag:'`
10188 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10189 (eval "$lt_compile" 2>out/conftest.err)
10191 cat out/conftest.err >&5
10192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10193 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10195 # The compiler can only warn and ignore the option if not recognized
10196 # So say no if there are warnings
10197 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10198 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10199 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10200 lt_cv_prog_compiler_c_o=yes
10205 # SGI C++ compiler will create directory out/ii_files/ for
10206 # template instantiation
10207 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10208 $RM out/* && rmdir out
10214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10215 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10223 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10224 if ${lt_cv_prog_compiler_c_o+:} false; then :
10225 $as_echo_n "(cached) " >&6
10227 lt_cv_prog_compiler_c_o=no
10228 $RM -r conftest 2>/dev/null
10232 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10234 lt_compiler_flag="-o out/conftest2.$ac_objext"
10235 # Insert the option either (1) after the last *FLAGS variable, or
10236 # (2) before a word containing "conftest.", or (3) at the end.
10237 # Note that $ac_compile itself does not contain backslashes and begins
10238 # with a dollar sign (not a hyphen), so the echo should work correctly.
10239 lt_compile=`echo "$ac_compile" | $SED \
10240 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10241 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10242 -e 's:$: $lt_compiler_flag:'`
10243 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10244 (eval "$lt_compile" 2>out/conftest.err)
10246 cat out/conftest.err >&5
10247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10248 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10250 # The compiler can only warn and ignore the option if not recognized
10251 # So say no if there are warnings
10252 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10253 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10254 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10255 lt_cv_prog_compiler_c_o=yes
10260 # SGI C++ compiler will create directory out/ii_files/ for
10261 # template instantiation
10262 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10263 $RM out/* && rmdir out
10269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10270 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10275 hard_links="nottested"
10276 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10277 # do not overwrite the value of need_locks provided by the user
10278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10279 $as_echo_n "checking if we can lock with hard links... " >&6; }
10282 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10284 ln conftest.a conftest.b 2>&5 || hard_links=no
10285 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10287 $as_echo "$hard_links" >&6; }
10288 if test "$hard_links" = no; then
10289 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10290 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10303 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10306 allow_undefined_flag=
10307 always_export_symbols=no
10309 archive_expsym_cmds=
10310 compiler_needs_object=no
10311 enable_shared_with_static_runtimes=no
10312 export_dynamic_flag_spec=
10313 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10314 hardcode_automatic=no
10316 hardcode_direct_absolute=no
10317 hardcode_libdir_flag_spec=
10318 hardcode_libdir_separator=
10319 hardcode_minus_L=no
10320 hardcode_shlibpath_var=unsupported
10322 link_all_deplibs=unknown
10324 module_expsym_cmds=
10325 old_archive_from_new_cmds=
10326 old_archive_from_expsyms_cmds=
10327 thread_safe_flag_spec=
10328 whole_archive_flag_spec=
10329 # include_expsyms should be a list of space-separated symbols to be *always*
10330 # included in the symbol list
10332 # exclude_expsyms can be an extended regexp of symbols to exclude
10333 # it will be wrapped by ` (' and `)$', so one must not match beginning or
10334 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10335 # as well as any symbol that contains `d'.
10336 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10337 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10338 # platforms (ab)use it in PIC code, but their linkers get confused if
10339 # the symbol is explicitly referenced. Since portable code cannot
10340 # rely on this symbol name, it's probably fine to never include it in
10341 # preloaded symbol tables.
10342 # Exclude shared library initialization/finalization symbols.
10343 extract_expsyms_cmds=
10346 cygwin* | mingw* | pw32* | cegcc*)
10347 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10348 # When not using gcc, we currently assume that we are using
10349 # Microsoft Visual C++.
10350 if test "$GCC" != yes; then
10355 # we just hope/assume this is gcc and not c89 (= MSVC++)
10361 linux* | k*bsd*-gnu | gnu*)
10362 link_all_deplibs=no
10368 # On some targets, GNU ld is compatible enough with the native linker
10369 # that we're better off using the native interface for both.
10370 lt_use_gnu_ld_interface=no
10371 if test "$with_gnu_ld" = yes; then
10374 # The AIX port of GNU ld has always aspired to compatibility
10375 # with the native linker. However, as the warning in the GNU ld
10376 # block says, versions before 2.19.5* couldn't really create working
10377 # shared libraries, regardless of the interface used.
10378 case `$LD -v 2>&1` in
10379 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10380 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10381 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10383 lt_use_gnu_ld_interface=yes
10388 lt_use_gnu_ld_interface=yes
10393 if test "$lt_use_gnu_ld_interface" = yes; then
10394 # If archive_cmds runs LD, not CC, wlarc should be empty
10397 # Set some defaults for GNU ld with shared library support. These
10398 # are reset later if shared libraries are not supported. Putting them
10399 # here allows them to be overridden if necessary.
10400 runpath_var=LD_RUN_PATH
10401 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10402 export_dynamic_flag_spec='${wl}--export-dynamic'
10403 # ancient GNU ld didn't support --whole-archive et. al.
10404 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10405 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10407 whole_archive_flag_spec=
10409 supports_anon_versioning=no
10410 case `$LD -v 2>&1` in
10411 *GNU\ gold*) supports_anon_versioning=yes ;;
10412 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10413 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10414 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10415 *\ 2.11.*) ;; # other 2.11 versions
10416 *) supports_anon_versioning=yes ;;
10419 # See if GNU ld supports shared libraries.
10422 # On AIX/PPC, the GNU linker is very broken
10423 if test "$host_cpu" != ia64; then
10427 *** Warning: the GNU linker, at least up to release 2.19, is reported
10428 *** to be unable to reliably create shared libraries on AIX.
10429 *** Therefore, libtool is disabling shared libraries support. If you
10430 *** really care for shared libraries, you may want to install binutils
10431 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10432 *** You will then need to restart the configuration process.
10441 # see comment about AmigaOS4 .so support
10442 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10443 archive_expsym_cmds=''
10446 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)'
10447 hardcode_libdir_flag_spec='-L$libdir'
10448 hardcode_minus_L=yes
10454 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10455 allow_undefined_flag=unsupported
10456 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10457 # support --undefined. This deserves some investigation. FIXME
10458 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10464 cygwin* | mingw* | pw32* | cegcc*)
10465 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10466 # as there is no search path for DLLs.
10467 hardcode_libdir_flag_spec='-L$libdir'
10468 export_dynamic_flag_spec='${wl}--export-all-symbols'
10469 allow_undefined_flag=unsupported
10470 always_export_symbols=no
10471 enable_shared_with_static_runtimes=yes
10472 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'
10473 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10475 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10476 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10477 # If the export-symbols file already is a .def file (1st line
10478 # is EXPORTS), use it as is; otherwise, prepend...
10479 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10480 cp $export_symbols $output_objdir/$soname.def;
10482 echo EXPORTS > $output_objdir/$soname.def;
10483 cat $export_symbols >> $output_objdir/$soname.def;
10485 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10492 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10493 link_all_deplibs=yes
10498 hardcode_shlibpath_var=no
10499 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10500 export_dynamic_flag_spec='${wl}-E'
10501 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10502 # Instead, shared libraries are loaded at an image base (0x10000000 by
10503 # default) and relocated if they conflict, which is a slow very memory
10504 # consuming and fragmenting process. To avoid this, we pick a random,
10505 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10506 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10507 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10508 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'
10511 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10513 if test "$host_os" = linux-dietlibc; then
10514 case $cc_basename in
10515 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10518 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10519 && test "$tmp_diet" = no
10521 tmp_addflag=' $pic_flag'
10522 tmp_sharedflag='-shared'
10523 case $cc_basename,$host_cpu in
10524 pgcc*) # Portland Group C compiler
10525 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'
10526 tmp_addflag=' $pic_flag'
10528 pgf77* | pgf90* | pgf95* | pgfortran*)
10529 # Portland Group f77 and f90 compilers
10530 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'
10531 tmp_addflag=' $pic_flag -Mnomain' ;;
10532 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10533 tmp_addflag=' -i_dynamic' ;;
10534 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10535 tmp_addflag=' -i_dynamic -nofor_main' ;;
10536 ifc* | ifort*) # Intel Fortran compiler
10537 tmp_addflag=' -nofor_main' ;;
10538 lf95*) # Lahey Fortran 8.1
10539 whole_archive_flag_spec=
10540 tmp_sharedflag='--shared' ;;
10541 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10542 tmp_sharedflag='-qmkshrobj'
10544 nvcc*) # Cuda Compiler Driver 2.2
10545 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'
10546 compiler_needs_object=yes
10549 case `$CC -V 2>&1 | sed 5q` in
10550 *Sun\ C*) # Sun C 5.9
10551 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'
10552 compiler_needs_object=yes
10553 tmp_sharedflag='-G' ;;
10554 *Sun\ F*) # Sun Fortran 8.3
10555 tmp_sharedflag='-G' ;;
10557 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10559 if test "x$supports_anon_versioning" = xyes; then
10560 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10561 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10562 echo "local: *; };" >> $output_objdir/$libname.ver~
10563 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10566 case $cc_basename in
10567 xlf* | bgf* | bgxlf* | mpixlf*)
10568 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10569 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10570 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10571 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10572 if test "x$supports_anon_versioning" = xyes; then
10573 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10574 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10575 echo "local: *; };" >> $output_objdir/$libname.ver~
10576 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10585 netbsd* | netbsdelf*-gnu)
10586 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10587 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10590 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10591 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10596 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10600 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10601 *** create shared libraries on Solaris systems. Therefore, libtool
10602 *** is disabling shared libraries support. We urge you to upgrade GNU
10603 *** binutils to release 2.9.1 or newer. Another option is to modify
10604 *** your PATH or compiler configuration so that the native linker is
10605 *** used, and then restart.
10608 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10609 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10610 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10616 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10617 case `$LD -v 2>&1` in
10618 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10622 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10623 *** reliably create shared libraries on SCO systems. Therefore, libtool
10624 *** is disabling shared libraries support. We urge you to upgrade GNU
10625 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10626 *** your PATH or compiler configuration so that the native linker is
10627 *** used, and then restart.
10632 # For security reasons, it is highly recommended that you always
10633 # use absolute paths for naming shared libraries, and exclude the
10634 # DT_RUNPATH tag from executables and libraries. But doing so
10635 # requires that you compile everything twice, which is a pain.
10636 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10637 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10638 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10639 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10648 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10650 hardcode_direct=yes
10651 hardcode_shlibpath_var=no
10655 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10656 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10657 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10664 if test "$ld_shlibs" = no; then
10666 hardcode_libdir_flag_spec=
10667 export_dynamic_flag_spec=
10668 whole_archive_flag_spec=
10671 # PORTME fill in a description of your system's linker (not GNU ld)
10674 allow_undefined_flag=unsupported
10675 always_export_symbols=yes
10676 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'
10677 # Note: this linker hardcodes the directories in LIBPATH if there
10678 # are no directories specified by -L.
10679 hardcode_minus_L=yes
10680 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10681 # Neither direct hardcoding nor static linking is supported with a
10683 hardcode_direct=unsupported
10688 if test "$host_cpu" = ia64; then
10689 # On IA64, the linker does run time linking by default, so we don't
10690 # have to do anything special.
10691 aix_use_runtimelinking=no
10692 exp_sym_flag='-Bexport'
10695 # If we're using GNU nm, then we don't want the "-C" option.
10696 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10697 # Also, AIX nm treats weak defined symbols like other global
10698 # defined symbols, whereas GNU nm marks them as "W".
10699 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10700 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'
10702 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'
10704 aix_use_runtimelinking=no
10706 # Test if we are trying to use run time linking or normal
10707 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10708 # need to do runtime linking.
10709 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10710 for ld_flag in $LDFLAGS; do
10711 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10712 aix_use_runtimelinking=yes
10719 exp_sym_flag='-bexport'
10720 no_entry_flag='-bnoentry'
10723 # When large executables or shared objects are built, AIX ld can
10724 # have problems creating the table of contents. If linking a library
10725 # or program results in "error TOC overflow" add -mminimal-toc to
10726 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10727 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10730 hardcode_direct=yes
10731 hardcode_direct_absolute=yes
10732 hardcode_libdir_separator=':'
10733 link_all_deplibs=yes
10734 file_list_spec='${wl}-f,'
10736 if test "$GCC" = yes; then
10737 case $host_os in aix4.[012]|aix4.[012].*)
10738 # We only want to do this on AIX 4.2 and lower, the check
10739 # below for broken collect2 doesn't work under 4.3+
10740 collect2name=`${CC} -print-prog-name=collect2`
10741 if test -f "$collect2name" &&
10742 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10744 # We have reworked collect2
10747 # We have old collect2
10748 hardcode_direct=unsupported
10749 # It fails to find uninstalled libraries when the uninstalled
10750 # path is not listed in the libpath. Setting hardcode_minus_L
10751 # to unsupported forces relinking
10752 hardcode_minus_L=yes
10753 hardcode_libdir_flag_spec='-L$libdir'
10754 hardcode_libdir_separator=
10758 shared_flag='-shared'
10759 if test "$aix_use_runtimelinking" = yes; then
10760 shared_flag="$shared_flag "'${wl}-G'
10762 link_all_deplibs=no
10765 if test "$host_cpu" = ia64; then
10766 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10767 # chokes on -Wl,-G. The following line is correct:
10770 if test "$aix_use_runtimelinking" = yes; then
10771 shared_flag='${wl}-G'
10773 shared_flag='${wl}-bM:SRE'
10778 export_dynamic_flag_spec='${wl}-bexpall'
10779 # It seems that -bexpall does not export symbols beginning with
10780 # underscore (_), so it is better to generate a list of symbols to export.
10781 always_export_symbols=yes
10782 if test "$aix_use_runtimelinking" = yes; then
10783 # Warning - without using the other runtime loading flags (-brtl),
10784 # -berok will link without error, but may produce a broken library.
10785 allow_undefined_flag='-berok'
10786 # Determine the default libpath from the value encoded in an
10787 # empty executable.
10788 if test "${lt_cv_aix_libpath+set}" = set; then
10789 aix_libpath=$lt_cv_aix_libpath
10791 if ${lt_cv_aix_libpath_+:} false; then :
10792 $as_echo_n "(cached) " >&6
10794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10795 /* end confdefs.h. */
10805 if ac_fn_c_try_link "$LINENO"; then :
10807 lt_aix_libpath_sed='
10808 /Import File Strings/,/^$/ {
10810 s/^0 *\([^ ]*\) *$/\1/
10814 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10815 # Check for a 64-bit object if we didn't find anything.
10816 if test -z "$lt_cv_aix_libpath_"; then
10817 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10820 rm -f core conftest.err conftest.$ac_objext \
10821 conftest$ac_exeext conftest.$ac_ext
10822 if test -z "$lt_cv_aix_libpath_"; then
10823 lt_cv_aix_libpath_="/usr/lib:/lib"
10828 aix_libpath=$lt_cv_aix_libpath_
10831 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10832 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"
10834 if test "$host_cpu" = ia64; then
10835 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10836 allow_undefined_flag="-z nodefs"
10837 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"
10839 # Determine the default libpath from the value encoded in an
10840 # empty executable.
10841 if test "${lt_cv_aix_libpath+set}" = set; then
10842 aix_libpath=$lt_cv_aix_libpath
10844 if ${lt_cv_aix_libpath_+:} false; then :
10845 $as_echo_n "(cached) " >&6
10847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10848 /* end confdefs.h. */
10858 if ac_fn_c_try_link "$LINENO"; then :
10860 lt_aix_libpath_sed='
10861 /Import File Strings/,/^$/ {
10863 s/^0 *\([^ ]*\) *$/\1/
10867 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10868 # Check for a 64-bit object if we didn't find anything.
10869 if test -z "$lt_cv_aix_libpath_"; then
10870 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10873 rm -f core conftest.err conftest.$ac_objext \
10874 conftest$ac_exeext conftest.$ac_ext
10875 if test -z "$lt_cv_aix_libpath_"; then
10876 lt_cv_aix_libpath_="/usr/lib:/lib"
10881 aix_libpath=$lt_cv_aix_libpath_
10884 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10885 # Warning - without using the other run time loading flags,
10886 # -berok will link without error, but may produce a broken library.
10887 no_undefined_flag=' ${wl}-bernotok'
10888 allow_undefined_flag=' ${wl}-berok'
10889 if test "$with_gnu_ld" = yes; then
10890 # We only use this code for GNU lds that support --whole-archive.
10891 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10893 # Exported symbols can be pulled into shared objects from archives
10894 whole_archive_flag_spec='$convenience'
10896 archive_cmds_need_lc=yes
10897 # This is similar to how AIX traditionally builds its shared libraries.
10898 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'
10906 # see comment about AmigaOS4 .so support
10907 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10908 archive_expsym_cmds=''
10911 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)'
10912 hardcode_libdir_flag_spec='-L$libdir'
10913 hardcode_minus_L=yes
10919 export_dynamic_flag_spec=-rdynamic
10922 cygwin* | mingw* | pw32* | cegcc*)
10923 # When not using gcc, we currently assume that we are using
10924 # Microsoft Visual C++.
10925 # hardcode_libdir_flag_spec is actually meaningless, as there is
10926 # no search path for DLLs.
10927 case $cc_basename in
10930 hardcode_libdir_flag_spec=' '
10931 allow_undefined_flag=unsupported
10932 always_export_symbols=yes
10934 # Tell ltmain to make .lib files, not .a files.
10936 # Tell ltmain to make .dll files, not .so files.
10938 # FIXME: Setting linknames here is a bad hack.
10939 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
10940 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10941 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
10943 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
10945 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10947 # The linker will not automatically build a static lib if we build a DLL.
10948 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10949 enable_shared_with_static_runtimes=yes
10950 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10951 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10953 old_postinstall_cmds='chmod 644 $oldlib'
10954 postlink_cmds='lt_outputfile="@OUTPUT@"~
10955 lt_tool_outputfile="@TOOL_OUTPUT@"~
10956 case $lt_outputfile in
10959 lt_outputfile="$lt_outputfile.exe"
10960 lt_tool_outputfile="$lt_tool_outputfile.exe"
10963 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10964 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10965 $RM "$lt_outputfile.manifest";
10969 # Assume MSVC wrapper
10970 hardcode_libdir_flag_spec=' '
10971 allow_undefined_flag=unsupported
10972 # Tell ltmain to make .lib files, not .a files.
10974 # Tell ltmain to make .dll files, not .so files.
10976 # FIXME: Setting linknames here is a bad hack.
10977 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10978 # The linker will automatically build a .lib file if we build a DLL.
10979 old_archive_from_new_cmds='true'
10980 # FIXME: Should let the user specify the lib program.
10981 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10982 enable_shared_with_static_runtimes=yes
10987 darwin* | rhapsody*)
10990 archive_cmds_need_lc=no
10992 hardcode_automatic=yes
10993 hardcode_shlibpath_var=unsupported
10994 if test "$lt_cv_ld_force_load" = "yes"; then
10995 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\"`'
10998 whole_archive_flag_spec=''
11000 link_all_deplibs=yes
11001 allow_undefined_flag="$_lt_dar_allow_undefined"
11002 case $cc_basename in
11003 ifort*) _lt_dar_can_shared=yes ;;
11004 *) _lt_dar_can_shared=$GCC ;;
11006 if test "$_lt_dar_can_shared" = "yes"; then
11007 output_verbose_link_cmd=func_echo_all
11008 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
11009 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11010 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}"
11011 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}"
11020 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11021 hardcode_libdir_flag_spec='-L$libdir'
11022 hardcode_shlibpath_var=no
11025 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11026 # support. Future versions do this automatically, but an explicit c++rt0.o
11027 # does not break anything, and helps significantly (at the cost of a little
11030 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11031 hardcode_libdir_flag_spec='-R$libdir'
11032 hardcode_direct=yes
11033 hardcode_shlibpath_var=no
11036 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11038 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11039 hardcode_direct=yes
11040 hardcode_minus_L=yes
11041 hardcode_shlibpath_var=no
11044 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11045 freebsd* | dragonfly*)
11046 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11047 hardcode_libdir_flag_spec='-R$libdir'
11048 hardcode_direct=yes
11049 hardcode_shlibpath_var=no
11053 if test "$GCC" = yes; then
11054 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'
11056 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'
11058 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11059 hardcode_libdir_separator=:
11060 hardcode_direct=yes
11062 # hardcode_minus_L: Not really in the search PATH,
11063 # but as the default location of the library.
11064 hardcode_minus_L=yes
11065 export_dynamic_flag_spec='${wl}-E'
11069 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11070 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11072 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11074 if test "$with_gnu_ld" = no; then
11075 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11076 hardcode_libdir_separator=:
11077 hardcode_direct=yes
11078 hardcode_direct_absolute=yes
11079 export_dynamic_flag_spec='${wl}-E'
11080 # hardcode_minus_L: Not really in the search PATH,
11081 # but as the default location of the library.
11082 hardcode_minus_L=yes
11087 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11090 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11093 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11096 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11102 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11105 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11109 # Older versions of the 11.00 compiler do not understand -b yet
11110 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11112 $as_echo_n "checking if $CC understands -b... " >&6; }
11113 if ${lt_cv_prog_compiler__b+:} false; then :
11114 $as_echo_n "(cached) " >&6
11116 lt_cv_prog_compiler__b=no
11117 save_LDFLAGS="$LDFLAGS"
11118 LDFLAGS="$LDFLAGS -b"
11119 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11120 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11121 # The linker can only warn and ignore the option if not recognized
11122 # So say no if there are warnings
11123 if test -s conftest.err; then
11124 # Append any errors to the config.log.
11125 cat conftest.err 1>&5
11126 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11127 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11128 if diff conftest.exp conftest.er2 >/dev/null; then
11129 lt_cv_prog_compiler__b=yes
11132 lt_cv_prog_compiler__b=yes
11136 LDFLAGS="$save_LDFLAGS"
11139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11140 $as_echo "$lt_cv_prog_compiler__b" >&6; }
11142 if test x"$lt_cv_prog_compiler__b" = xyes; then
11143 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11145 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11151 if test "$with_gnu_ld" = no; then
11152 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11153 hardcode_libdir_separator=:
11158 hardcode_shlibpath_var=no
11161 hardcode_direct=yes
11162 hardcode_direct_absolute=yes
11163 export_dynamic_flag_spec='${wl}-E'
11165 # hardcode_minus_L: Not really in the search PATH,
11166 # but as the default location of the library.
11167 hardcode_minus_L=yes
11173 irix5* | irix6* | nonstopux*)
11174 if test "$GCC" = yes; then
11175 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'
11176 # Try to use the -exported_symbol ld option, if it does not
11177 # work, assume that -exports_file does not work either and
11178 # implicitly export all symbols.
11179 # This should be the same for all languages, so no per-tag cache variable.
11180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11181 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11182 if ${lt_cv_irix_exported_symbol+:} false; then :
11183 $as_echo_n "(cached) " >&6
11185 save_LDFLAGS="$LDFLAGS"
11186 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
11187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11188 /* end confdefs.h. */
11189 int foo (void) { return 0; }
11191 if ac_fn_c_try_link "$LINENO"; then :
11192 lt_cv_irix_exported_symbol=yes
11194 lt_cv_irix_exported_symbol=no
11196 rm -f core conftest.err conftest.$ac_objext \
11197 conftest$ac_exeext conftest.$ac_ext
11198 LDFLAGS="$save_LDFLAGS"
11200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11201 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
11202 if test "$lt_cv_irix_exported_symbol" = yes; then
11203 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'
11206 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'
11207 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'
11209 archive_cmds_need_lc='no'
11210 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11211 hardcode_libdir_separator=:
11213 link_all_deplibs=yes
11216 netbsd* | netbsdelf*-gnu)
11217 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11218 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11220 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11222 hardcode_libdir_flag_spec='-R$libdir'
11223 hardcode_direct=yes
11224 hardcode_shlibpath_var=no
11228 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11229 hardcode_direct=yes
11230 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11231 hardcode_libdir_separator=:
11232 hardcode_shlibpath_var=no
11239 if test -f /usr/libexec/ld.so; then
11240 hardcode_direct=yes
11241 hardcode_shlibpath_var=no
11242 hardcode_direct_absolute=yes
11243 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11244 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11245 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
11246 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11247 export_dynamic_flag_spec='${wl}-E'
11250 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
11251 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11252 hardcode_libdir_flag_spec='-R$libdir'
11255 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11256 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11266 hardcode_libdir_flag_spec='-L$libdir'
11267 hardcode_minus_L=yes
11268 allow_undefined_flag=unsupported
11269 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'
11270 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11274 if test "$GCC" = yes; then
11275 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11276 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'
11278 allow_undefined_flag=' -expect_unresolved \*'
11279 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'
11281 archive_cmds_need_lc='no'
11282 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11283 hardcode_libdir_separator=:
11286 osf4* | osf5*) # as osf3* with the addition of -msym flag
11287 if test "$GCC" = yes; then
11288 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11289 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'
11290 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11292 allow_undefined_flag=' -expect_unresolved \*'
11293 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'
11294 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~
11295 $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'
11297 # Both c and cxx compiler support -rpath directly
11298 hardcode_libdir_flag_spec='-rpath $libdir'
11300 archive_cmds_need_lc='no'
11301 hardcode_libdir_separator=:
11305 no_undefined_flag=' -z defs'
11306 if test "$GCC" = yes; then
11308 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11309 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11310 $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'
11312 case `$CC -V 2>&1` in
11315 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11316 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11317 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11321 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11322 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11323 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11327 hardcode_libdir_flag_spec='-R$libdir'
11328 hardcode_shlibpath_var=no
11330 solaris2.[0-5] | solaris2.[0-5].*) ;;
11332 # The compiler driver will combine and reorder linker options,
11333 # but understands `-z linker_flag'. GCC discards it without `$wl',
11334 # but is careful enough not to reorder.
11335 # Supported since Solaris 2.6 (maybe 2.5.1?)
11336 if test "$GCC" = yes; then
11337 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11339 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11343 link_all_deplibs=yes
11347 if test "x$host_vendor" = xsequent; then
11348 # Use $CC to link under sequent, because it throws in some extra .o
11349 # files that make .init and .fini sections work.
11350 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11352 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11354 hardcode_libdir_flag_spec='-L$libdir'
11355 hardcode_direct=yes
11356 hardcode_minus_L=yes
11357 hardcode_shlibpath_var=no
11361 case $host_vendor in
11363 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11364 hardcode_direct=yes # is this really true???
11367 ## LD is ld it makes a PLAMLIB
11368 ## CC just makes a GrossModule.
11369 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11370 reload_cmds='$CC -r -o $output$reload_objs'
11374 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11375 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11378 runpath_var='LD_RUN_PATH'
11379 hardcode_shlibpath_var=no
11383 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11384 hardcode_shlibpath_var=no
11385 export_dynamic_flag_spec='-Bexport'
11389 if test -d /usr/nec; then
11390 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11391 hardcode_shlibpath_var=no
11392 runpath_var=LD_RUN_PATH
11393 hardcode_runpath_var=yes
11398 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11399 no_undefined_flag='${wl}-z,text'
11400 archive_cmds_need_lc=no
11401 hardcode_shlibpath_var=no
11402 runpath_var='LD_RUN_PATH'
11404 if test "$GCC" = yes; then
11405 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11406 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11408 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11409 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11413 sysv5* | sco3.2v5* | sco5v6*)
11414 # Note: We can NOT use -z defs as we might desire, because we do not
11415 # link with -lc, and that would cause any symbols used from libc to
11416 # always be unresolved, which means just about no library would
11417 # ever link correctly. If we're not using GNU ld we use -z text
11418 # though, which does catch some bad symbols but isn't as heavy-handed
11420 no_undefined_flag='${wl}-z,text'
11421 allow_undefined_flag='${wl}-z,nodefs'
11422 archive_cmds_need_lc=no
11423 hardcode_shlibpath_var=no
11424 hardcode_libdir_flag_spec='${wl}-R,$libdir'
11425 hardcode_libdir_separator=':'
11426 link_all_deplibs=yes
11427 export_dynamic_flag_spec='${wl}-Bexport'
11428 runpath_var='LD_RUN_PATH'
11430 if test "$GCC" = yes; then
11431 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11432 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11434 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11435 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11440 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11441 hardcode_libdir_flag_spec='-L$libdir'
11442 hardcode_shlibpath_var=no
11450 if test x$host_vendor = xsni; then
11452 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11453 export_dynamic_flag_spec='${wl}-Blargedynsym'
11459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11460 $as_echo "$ld_shlibs" >&6; }
11461 test "$ld_shlibs" = no && can_build_shared=no
11463 with_gnu_ld=$with_gnu_ld
11480 # Do we need to explicitly link libc?
11482 case "x$archive_cmds_need_lc" in
11484 # Assume -lc should be added
11485 archive_cmds_need_lc=yes
11487 if test "$enable_shared" = yes && test "$GCC" = yes; then
11488 case $archive_cmds in
11490 # FIXME: we may have to deal with multi-command sequences.
11493 # Test whether the compiler implicitly links with -lc since on some
11494 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11495 # to ld, don't add -lc before -lgcc.
11496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11497 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11498 if ${lt_cv_archive_cmds_need_lc+:} false; then :
11499 $as_echo_n "(cached) " >&6
11502 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11504 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11505 (eval $ac_compile) 2>&5
11507 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11508 test $ac_status = 0; } 2>conftest.err; then
11511 libobjs=conftest.$ac_objext
11513 wl=$lt_prog_compiler_wl
11514 pic_flag=$lt_prog_compiler_pic
11520 lt_save_allow_undefined_flag=$allow_undefined_flag
11521 allow_undefined_flag=
11522 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11523 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11525 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11526 test $ac_status = 0; }
11528 lt_cv_archive_cmds_need_lc=no
11530 lt_cv_archive_cmds_need_lc=yes
11532 allow_undefined_flag=$lt_save_allow_undefined_flag
11534 cat conftest.err 1>&5
11539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11540 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11541 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11700 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11702 if test "$GCC" = yes; then
11704 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11705 *) lt_awk_arg="/^libraries:/" ;;
11708 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11709 *) lt_sed_strip_eq="s,=/,/,g" ;;
11711 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11712 case $lt_search_path_spec in
11714 # if the path contains ";" then we assume it to be the separator
11715 # otherwise default to the standard path separator (i.e. ":") - it is
11716 # assumed that no part of a normal pathname contains ";" but that should
11717 # okay in the real world where ";" in dirpaths is itself problematic.
11718 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11721 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11724 # Ok, now we have the path, separated by spaces, we can step through it
11725 # and add multilib dir if necessary.
11726 lt_tmp_lt_search_path_spec=
11727 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11728 for lt_sys_path in $lt_search_path_spec; do
11729 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11730 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11732 test -d "$lt_sys_path" && \
11733 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11736 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11737 BEGIN {RS=" "; FS="/|\n";} {
11740 for (lt_i = NF; lt_i > 0; lt_i--) {
11741 if ($lt_i != "" && $lt_i != ".") {
11742 if ($lt_i == "..") {
11745 if (lt_count == 0) {
11746 lt_foo="/" $lt_i lt_foo;
11753 if (lt_foo != "") { lt_freq[lt_foo]++; }
11754 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11756 # AWK program above erroneously prepends '/' to C:/dos/paths
11759 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11760 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11762 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11764 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11766 library_names_spec=
11767 libname_spec='lib$name'
11771 postuninstall_cmds=
11775 shlibpath_overrides_runpath=unknown
11777 dynamic_linker="$host_os ld.so"
11778 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11779 need_lib_prefix=unknown
11780 hardcode_into_libs=no
11782 # when you set need_version to no, make sure it does not cause -set_version
11783 # flags to be left without arguments
11784 need_version=unknown
11788 version_type=linux # correct to gnu/linux during the next big refactor
11789 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11790 shlibpath_var=LIBPATH
11792 # AIX 3 has no versioning support, so we append a major version to the name.
11793 soname_spec='${libname}${release}${shared_ext}$major'
11797 version_type=linux # correct to gnu/linux during the next big refactor
11800 hardcode_into_libs=yes
11801 if test "$host_cpu" = ia64; then
11802 # AIX 5 supports IA64
11803 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11804 shlibpath_var=LD_LIBRARY_PATH
11806 # With GCC up to 2.95.x, collect2 would create an import file
11807 # for dependence libraries. The import file would start with
11808 # the line `#! .'. This would cause the generated library to
11809 # depend on `.', always an invalid library. This was fixed in
11810 # development snapshots of GCC prior to 3.0.
11812 aix4 | aix4.[01] | aix4.[01].*)
11813 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11815 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11818 can_build_shared=no
11822 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11823 # soname into executable. Probably we can add versioning support to
11824 # collect2, so additional links can be useful in future.
11825 if test "$aix_use_runtimelinking" = yes; then
11826 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11827 # instead of lib<name>.a to let people know that these are not
11828 # typical AIX shared libraries.
11829 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11831 # We preserve .a as extension for shared libraries through AIX4.2
11832 # and later when we are not doing run time linking.
11833 library_names_spec='${libname}${release}.a $libname.a'
11834 soname_spec='${libname}${release}${shared_ext}$major'
11836 shlibpath_var=LIBPATH
11843 # Since July 2007 AmigaOS4 officially supports .so libraries.
11844 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11845 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11848 library_names_spec='$libname.ixlibrary $libname.a'
11849 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11850 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'
11856 library_names_spec='${libname}${shared_ext}'
11857 dynamic_linker="$host_os ld.so"
11858 shlibpath_var=LIBRARY_PATH
11862 version_type=linux # correct to gnu/linux during the next big refactor
11864 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11865 soname_spec='${libname}${release}${shared_ext}$major'
11866 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11867 shlibpath_var=LD_LIBRARY_PATH
11868 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11869 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11870 # the default ld.so.conf also contains /usr/contrib/lib and
11871 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11872 # libtool to hard-code these into programs
11875 cygwin* | mingw* | pw32* | cegcc*)
11876 version_type=windows
11881 case $GCC,$cc_basename in
11884 library_names_spec='$libname.dll.a'
11885 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11886 postinstall_cmds='base_file=`basename \${file}`~
11887 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11888 dldir=$destdir/`dirname \$dlpath`~
11889 test -d \$dldir || mkdir -p \$dldir~
11890 $install_prog $dir/$dlname \$dldir/$dlname~
11891 chmod a+x \$dldir/$dlname~
11892 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11893 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11895 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11896 dlpath=$dir/\$dldll~
11898 shlibpath_overrides_runpath=yes
11902 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11903 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11905 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11908 # MinGW DLLs use traditional 'lib' prefix
11909 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11912 # pw32 DLLs use 'pw' prefix rather than 'lib'
11913 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11916 dynamic_linker='Win32 ld.exe'
11921 libname_spec='$name'
11922 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11923 library_names_spec='${libname}.dll.lib'
11927 sys_lib_search_path_spec=
11930 for lt_path in $LIB
11933 # Let DOS variable expansion print the short 8.3 style file name.
11934 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11935 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11938 # Convert to MSYS style.
11939 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11942 # Convert to unix form, then to dos form, then back to unix form
11943 # but this time dos style (no spaces!) so that the unix form looks
11944 # like /cygdrive/c/PROGRA~1:/cygdr...
11945 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11946 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11947 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11950 sys_lib_search_path_spec="$LIB"
11951 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11952 # It is most probably a Windows format PATH.
11953 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11955 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11957 # FIXME: find the short name or the path components, as spaces are
11958 # common. (e.g. "Program Files" -> "PROGRA~1")
11962 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11963 postinstall_cmds='base_file=`basename \${file}`~
11964 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11965 dldir=$destdir/`dirname \$dlpath`~
11966 test -d \$dldir || mkdir -p \$dldir~
11967 $install_prog $dir/$dlname \$dldir/$dlname'
11968 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11969 dlpath=$dir/\$dldll~
11971 shlibpath_overrides_runpath=yes
11972 dynamic_linker='Win32 link.exe'
11976 # Assume MSVC wrapper
11977 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11978 dynamic_linker='Win32 ld.exe'
11981 # FIXME: first we should search . and the directory the executable is in
11985 darwin* | rhapsody*)
11986 dynamic_linker="$host_os dyld"
11987 version_type=darwin
11990 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11991 soname_spec='${libname}${release}${major}$shared_ext'
11992 shlibpath_overrides_runpath=yes
11993 shlibpath_var=DYLD_LIBRARY_PATH
11994 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11996 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11997 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12001 version_type=linux # correct to gnu/linux during the next big refactor
12004 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12005 soname_spec='${libname}${release}${shared_ext}$major'
12006 shlibpath_var=LD_LIBRARY_PATH
12009 freebsd* | dragonfly*)
12010 # DragonFly does not have aout. When/if they implement a new
12011 # versioning mechanism, adjust this.
12012 if test -x /usr/bin/objformat; then
12013 objformat=`/usr/bin/objformat`
12016 freebsd[23].*) objformat=aout ;;
12017 *) objformat=elf ;;
12020 version_type=freebsd-$objformat
12021 case $version_type in
12023 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12028 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12032 shlibpath_var=LD_LIBRARY_PATH
12035 shlibpath_overrides_runpath=yes
12037 freebsd3.[01]* | freebsdelf3.[01]*)
12038 shlibpath_overrides_runpath=yes
12039 hardcode_into_libs=yes
12041 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12042 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12043 shlibpath_overrides_runpath=no
12044 hardcode_into_libs=yes
12046 *) # from 4.6 on, and DragonFly
12047 shlibpath_overrides_runpath=yes
12048 hardcode_into_libs=yes
12054 version_type=linux # correct to gnu/linux during the next big refactor
12057 dynamic_linker="$host_os runtime_loader"
12058 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12059 soname_spec='${libname}${release}${shared_ext}$major'
12060 shlibpath_var=LIBRARY_PATH
12061 shlibpath_overrides_runpath=yes
12062 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12063 hardcode_into_libs=yes
12066 hpux9* | hpux10* | hpux11*)
12067 # Give a soname corresponding to the major version so that dld.sl refuses to
12068 # link against other versions.
12075 hardcode_into_libs=yes
12076 dynamic_linker="$host_os dld.so"
12077 shlibpath_var=LD_LIBRARY_PATH
12078 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12079 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12080 soname_spec='${libname}${release}${shared_ext}$major'
12081 if test "X$HPUX_IA64_MODE" = X32; then
12082 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12084 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12086 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12090 hardcode_into_libs=yes
12091 dynamic_linker="$host_os dld.sl"
12092 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12093 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12094 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12095 soname_spec='${libname}${release}${shared_ext}$major'
12096 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12097 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12101 dynamic_linker="$host_os dld.sl"
12102 shlibpath_var=SHLIB_PATH
12103 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
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'
12108 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12109 postinstall_cmds='chmod 555 $lib'
12110 # or fails outright, so override atomically:
12111 install_override_mode=555
12115 version_type=linux # correct to gnu/linux during the next big refactor
12118 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12119 soname_spec='${libname}${release}${shared_ext}$major'
12120 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12121 shlibpath_var=LD_LIBRARY_PATH
12122 shlibpath_overrides_runpath=no
12123 hardcode_into_libs=yes
12126 irix5* | irix6* | nonstopux*)
12128 nonstopux*) version_type=nonstopux ;;
12130 if test "$lt_cv_prog_gnu_ld" = yes; then
12131 version_type=linux # correct to gnu/linux during the next big refactor
12138 soname_spec='${libname}${release}${shared_ext}$major'
12139 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12141 irix5* | nonstopux*)
12142 libsuff= shlibsuff=
12145 case $LD in # libtool.m4 will add one of these switches to LD
12146 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12147 libsuff= shlibsuff= libmagic=32-bit;;
12148 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12149 libsuff=32 shlibsuff=N32 libmagic=N32;;
12150 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12151 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12152 *) libsuff= shlibsuff= libmagic=never-match;;
12156 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12157 shlibpath_overrides_runpath=no
12158 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12159 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12160 hardcode_into_libs=yes
12163 # No shared lib support for Linux oldld, aout, or coff.
12164 linux*oldld* | linux*aout* | linux*coff*)
12168 # This must be glibc/ELF.
12169 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12170 version_type=linux # correct to gnu/linux during the next big refactor
12173 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12174 soname_spec='${libname}${release}${shared_ext}$major'
12175 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12176 shlibpath_var=LD_LIBRARY_PATH
12177 shlibpath_overrides_runpath=no
12179 # Some binutils ld are patched to set DT_RUNPATH
12180 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
12181 $as_echo_n "(cached) " >&6
12183 lt_cv_shlibpath_overrides_runpath=no
12184 save_LDFLAGS=$LDFLAGS
12185 save_libdir=$libdir
12186 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12187 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12189 /* end confdefs.h. */
12199 if ac_fn_c_try_link "$LINENO"; then :
12200 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12201 lt_cv_shlibpath_overrides_runpath=yes
12204 rm -f core conftest.err conftest.$ac_objext \
12205 conftest$ac_exeext conftest.$ac_ext
12206 LDFLAGS=$save_LDFLAGS
12207 libdir=$save_libdir
12211 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12213 # This implies no fast_install, which is unacceptable.
12214 # Some rework will be needed to allow for fast_install
12215 # before this can be enabled.
12216 hardcode_into_libs=yes
12218 # Append ld.so.conf contents to the search path
12219 if test -f /etc/ld.so.conf; then
12220 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' ' '`
12221 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12224 # We used to test for /lib/ld.so.1 and disable shared libraries on
12225 # powerpc, because MkLinux only supported shared libraries with the
12226 # GNU dynamic linker. Since this was broken with cross compilers,
12227 # most powerpc-linux boxes support dynamic linking these days and
12228 # people can always --disable-shared, the test was removed, and we
12229 # assume the GNU/Linux dynamic linker is in use.
12230 dynamic_linker='GNU/Linux ld.so'
12237 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12238 soname_spec='${libname}${release}${shared_ext}$major'
12239 shlibpath_var=LD_LIBRARY_PATH
12240 shlibpath_overrides_runpath=no
12241 hardcode_into_libs=yes
12242 dynamic_linker='NetBSD ld.elf_so'
12249 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12250 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12251 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12252 dynamic_linker='NetBSD (a.out) ld.so'
12254 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12255 soname_spec='${libname}${release}${shared_ext}$major'
12256 dynamic_linker='NetBSD ld.elf_so'
12258 shlibpath_var=LD_LIBRARY_PATH
12259 shlibpath_overrides_runpath=yes
12260 hardcode_into_libs=yes
12264 version_type=linux # correct to gnu/linux during the next big refactor
12265 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12266 shlibpath_var=LD_LIBRARY_PATH
12267 shlibpath_overrides_runpath=yes
12274 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12275 soname_spec='${libname}${release}${shared_ext}$major'
12276 shlibpath_var=LD_LIBRARY_PATH
12277 shlibpath_overrides_runpath=no
12278 hardcode_into_libs=yes
12279 dynamic_linker='ldqnx.so'
12284 sys_lib_dlsearch_path_spec="/usr/lib"
12286 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12288 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12289 *) need_version=no ;;
12291 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12292 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12293 shlibpath_var=LD_LIBRARY_PATH
12294 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12296 openbsd2.[89] | openbsd2.[89].*)
12297 shlibpath_overrides_runpath=no
12300 shlibpath_overrides_runpath=yes
12304 shlibpath_overrides_runpath=yes
12309 libname_spec='$name'
12312 library_names_spec='$libname${shared_ext} $libname.a'
12313 dynamic_linker='OS/2 ld.exe'
12314 shlibpath_var=LIBPATH
12317 osf3* | osf4* | osf5*)
12321 soname_spec='${libname}${release}${shared_ext}$major'
12322 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12323 shlibpath_var=LD_LIBRARY_PATH
12324 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12325 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12333 version_type=linux # correct to gnu/linux during the next big refactor
12336 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12337 soname_spec='${libname}${release}${shared_ext}$major'
12338 shlibpath_var=LD_LIBRARY_PATH
12339 shlibpath_overrides_runpath=yes
12340 hardcode_into_libs=yes
12341 # ldd complains unless libraries are executable
12342 postinstall_cmds='chmod +x $lib'
12347 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12348 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12349 shlibpath_var=LD_LIBRARY_PATH
12350 shlibpath_overrides_runpath=yes
12351 if test "$with_gnu_ld" = yes; then
12358 version_type=linux # correct to gnu/linux during the next big refactor
12359 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12360 soname_spec='${libname}${release}${shared_ext}$major'
12361 shlibpath_var=LD_LIBRARY_PATH
12362 case $host_vendor in
12364 shlibpath_overrides_runpath=no
12366 runpath_var=LD_RUN_PATH
12374 shlibpath_overrides_runpath=no
12375 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12381 if test -d /usr/nec ;then
12382 version_type=linux # correct to gnu/linux during the next big refactor
12383 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12384 soname_spec='$libname${shared_ext}.$major'
12385 shlibpath_var=LD_LIBRARY_PATH
12389 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12390 version_type=freebsd-elf
12393 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12394 soname_spec='${libname}${release}${shared_ext}$major'
12395 shlibpath_var=LD_LIBRARY_PATH
12396 shlibpath_overrides_runpath=yes
12397 hardcode_into_libs=yes
12398 if test "$with_gnu_ld" = yes; then
12399 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12401 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12404 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12408 sys_lib_dlsearch_path_spec='/usr/lib'
12412 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12413 version_type=linux # correct to gnu/linux during the next big refactor
12416 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12417 shlibpath_var=LD_LIBRARY_PATH
12418 shlibpath_overrides_runpath=no
12419 hardcode_into_libs=yes
12423 version_type=linux # correct to gnu/linux during the next big refactor
12424 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12425 soname_spec='${libname}${release}${shared_ext}$major'
12426 shlibpath_var=LD_LIBRARY_PATH
12433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12434 $as_echo "$dynamic_linker" >&6; }
12435 test "$dynamic_linker" = no && can_build_shared=no
12437 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12438 if test "$GCC" = yes; then
12439 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12442 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12443 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12445 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12446 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12541 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12543 if test -n "$hardcode_libdir_flag_spec" ||
12544 test -n "$runpath_var" ||
12545 test "X$hardcode_automatic" = "Xyes" ; then
12547 # We can hardcode non-existent directories.
12548 if test "$hardcode_direct" != no &&
12549 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12550 # have to relink, otherwise we might link with an installed library
12551 # when we should be linking with a yet-to-be-installed one
12552 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12553 test "$hardcode_minus_L" != no; then
12554 # Linking always hardcodes the temporary library directory.
12555 hardcode_action=relink
12557 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12558 hardcode_action=immediate
12561 # We cannot hardcode anything, or else we can only hardcode existing
12563 hardcode_action=unsupported
12565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12566 $as_echo "$hardcode_action" >&6; }
12568 if test "$hardcode_action" = relink ||
12569 test "$inherit_rpath" = yes; then
12570 # Fast installation is not supported
12571 enable_fast_install=no
12572 elif test "$shlibpath_overrides_runpath" = yes ||
12573 test "$enable_shared" = no; then
12574 # Fast installation is not necessary
12575 enable_fast_install=needless
12583 if test "x$enable_dlopen" != xyes; then
12584 enable_dlopen=unknown
12585 enable_dlopen_self=unknown
12586 enable_dlopen_self_static=unknown
12593 lt_cv_dlopen="load_add_on"
12595 lt_cv_dlopen_self=yes
12598 mingw* | pw32* | cegcc*)
12599 lt_cv_dlopen="LoadLibrary"
12604 lt_cv_dlopen="dlopen"
12609 # if libdl is installed we need to link against it
12610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12611 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12612 if ${ac_cv_lib_dl_dlopen+:} false; then :
12613 $as_echo_n "(cached) " >&6
12615 ac_check_lib_save_LIBS=$LIBS
12617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12618 /* end confdefs.h. */
12620 /* Override any GCC internal prototype to avoid an error.
12621 Use char because int might match the return type of a GCC
12622 builtin and then its argument prototype would still apply. */
12635 if ac_fn_c_try_link "$LINENO"; then :
12636 ac_cv_lib_dl_dlopen=yes
12638 ac_cv_lib_dl_dlopen=no
12640 rm -f core conftest.err conftest.$ac_objext \
12641 conftest$ac_exeext conftest.$ac_ext
12642 LIBS=$ac_check_lib_save_LIBS
12644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12645 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12646 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12647 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12650 lt_cv_dlopen="dyld"
12652 lt_cv_dlopen_self=yes
12659 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12660 if test "x$ac_cv_func_shl_load" = xyes; then :
12661 lt_cv_dlopen="shl_load"
12663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12664 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12665 if ${ac_cv_lib_dld_shl_load+:} false; then :
12666 $as_echo_n "(cached) " >&6
12668 ac_check_lib_save_LIBS=$LIBS
12670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12671 /* end confdefs.h. */
12673 /* Override any GCC internal prototype to avoid an error.
12674 Use char because int might match the return type of a GCC
12675 builtin and then its argument prototype would still apply. */
12683 return shl_load ();
12688 if ac_fn_c_try_link "$LINENO"; then :
12689 ac_cv_lib_dld_shl_load=yes
12691 ac_cv_lib_dld_shl_load=no
12693 rm -f core conftest.err conftest.$ac_objext \
12694 conftest$ac_exeext conftest.$ac_ext
12695 LIBS=$ac_check_lib_save_LIBS
12697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12698 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12699 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12700 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12702 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12703 if test "x$ac_cv_func_dlopen" = xyes; then :
12704 lt_cv_dlopen="dlopen"
12706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12707 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12708 if ${ac_cv_lib_dl_dlopen+:} false; then :
12709 $as_echo_n "(cached) " >&6
12711 ac_check_lib_save_LIBS=$LIBS
12713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12714 /* end confdefs.h. */
12716 /* Override any GCC internal prototype to avoid an error.
12717 Use char because int might match the return type of a GCC
12718 builtin and then its argument prototype would still apply. */
12731 if ac_fn_c_try_link "$LINENO"; then :
12732 ac_cv_lib_dl_dlopen=yes
12734 ac_cv_lib_dl_dlopen=no
12736 rm -f core conftest.err conftest.$ac_objext \
12737 conftest$ac_exeext conftest.$ac_ext
12738 LIBS=$ac_check_lib_save_LIBS
12740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12741 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12742 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12743 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12746 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12747 if ${ac_cv_lib_svld_dlopen+:} false; then :
12748 $as_echo_n "(cached) " >&6
12750 ac_check_lib_save_LIBS=$LIBS
12751 LIBS="-lsvld $LIBS"
12752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12753 /* end confdefs.h. */
12755 /* Override any GCC internal prototype to avoid an error.
12756 Use char because int might match the return type of a GCC
12757 builtin and then its argument prototype would still apply. */
12770 if ac_fn_c_try_link "$LINENO"; then :
12771 ac_cv_lib_svld_dlopen=yes
12773 ac_cv_lib_svld_dlopen=no
12775 rm -f core conftest.err conftest.$ac_objext \
12776 conftest$ac_exeext conftest.$ac_ext
12777 LIBS=$ac_check_lib_save_LIBS
12779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12780 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12781 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12782 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12785 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12786 if ${ac_cv_lib_dld_dld_link+:} false; then :
12787 $as_echo_n "(cached) " >&6
12789 ac_check_lib_save_LIBS=$LIBS
12791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12792 /* end confdefs.h. */
12794 /* Override any GCC internal prototype to avoid an error.
12795 Use char because int might match the return type of a GCC
12796 builtin and then its argument prototype would still apply. */
12804 return dld_link ();
12809 if ac_fn_c_try_link "$LINENO"; then :
12810 ac_cv_lib_dld_dld_link=yes
12812 ac_cv_lib_dld_dld_link=no
12814 rm -f core conftest.err conftest.$ac_objext \
12815 conftest$ac_exeext conftest.$ac_ext
12816 LIBS=$ac_check_lib_save_LIBS
12818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12819 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12820 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12821 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12842 if test "x$lt_cv_dlopen" != xno; then
12848 case $lt_cv_dlopen in
12850 save_CPPFLAGS="$CPPFLAGS"
12851 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12853 save_LDFLAGS="$LDFLAGS"
12854 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12857 LIBS="$lt_cv_dlopen_libs $LIBS"
12859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12860 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12861 if ${lt_cv_dlopen_self+:} false; then :
12862 $as_echo_n "(cached) " >&6
12864 if test "$cross_compiling" = yes; then :
12865 lt_cv_dlopen_self=cross
12867 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12868 lt_status=$lt_dlunknown
12869 cat > conftest.$ac_ext <<_LT_EOF
12870 #line $LINENO "configure"
12871 #include "confdefs.h"
12880 # define LT_DLGLOBAL RTLD_GLOBAL
12883 # define LT_DLGLOBAL DL_GLOBAL
12885 # define LT_DLGLOBAL 0
12889 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12890 find out it does not work in some platform. */
12891 #ifndef LT_DLLAZY_OR_NOW
12893 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12896 # define LT_DLLAZY_OR_NOW DL_LAZY
12899 # define LT_DLLAZY_OR_NOW RTLD_NOW
12902 # define LT_DLLAZY_OR_NOW DL_NOW
12904 # define LT_DLLAZY_OR_NOW 0
12911 /* When -fvisbility=hidden is used, assume the code has been annotated
12912 correspondingly for the symbols needed. */
12913 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12914 int fnord () __attribute__((visibility("default")));
12917 int fnord () { return 42; }
12920 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12921 int status = $lt_dlunknown;
12925 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12928 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12929 else puts (dlerror ());
12931 /* dlclose (self); */
12939 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12940 (eval $ac_link) 2>&5
12942 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12943 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12944 (./conftest; exit; ) >&5 2>/dev/null
12946 case x$lt_status in
12947 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12948 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12949 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12952 # compilation failed
12953 lt_cv_dlopen_self=no
12960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12961 $as_echo "$lt_cv_dlopen_self" >&6; }
12963 if test "x$lt_cv_dlopen_self" = xyes; then
12964 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12966 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12967 if ${lt_cv_dlopen_self_static+:} false; then :
12968 $as_echo_n "(cached) " >&6
12970 if test "$cross_compiling" = yes; then :
12971 lt_cv_dlopen_self_static=cross
12973 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12974 lt_status=$lt_dlunknown
12975 cat > conftest.$ac_ext <<_LT_EOF
12976 #line $LINENO "configure"
12977 #include "confdefs.h"
12986 # define LT_DLGLOBAL RTLD_GLOBAL
12989 # define LT_DLGLOBAL DL_GLOBAL
12991 # define LT_DLGLOBAL 0
12995 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12996 find out it does not work in some platform. */
12997 #ifndef LT_DLLAZY_OR_NOW
12999 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13002 # define LT_DLLAZY_OR_NOW DL_LAZY
13005 # define LT_DLLAZY_OR_NOW RTLD_NOW
13008 # define LT_DLLAZY_OR_NOW DL_NOW
13010 # define LT_DLLAZY_OR_NOW 0
13017 /* When -fvisbility=hidden is used, assume the code has been annotated
13018 correspondingly for the symbols needed. */
13019 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13020 int fnord () __attribute__((visibility("default")));
13023 int fnord () { return 42; }
13026 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13027 int status = $lt_dlunknown;
13031 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13034 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13035 else puts (dlerror ());
13037 /* dlclose (self); */
13045 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13046 (eval $ac_link) 2>&5
13048 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13049 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13050 (./conftest; exit; ) >&5 2>/dev/null
13052 case x$lt_status in
13053 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13054 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13055 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13058 # compilation failed
13059 lt_cv_dlopen_self_static=no
13066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13067 $as_echo "$lt_cv_dlopen_self_static" >&6; }
13070 CPPFLAGS="$save_CPPFLAGS"
13071 LDFLAGS="$save_LDFLAGS"
13076 case $lt_cv_dlopen_self in
13077 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13078 *) enable_dlopen_self=unknown ;;
13081 case $lt_cv_dlopen_self_static in
13082 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13083 *) enable_dlopen_self_static=unknown ;;
13105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13106 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
13107 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13108 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13109 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13111 $as_echo "yes" >&6; }
13113 # FIXME - insert some real tests, host_os isn't really good enough
13116 if test -n "$STRIP" ; then
13117 striplib="$STRIP -x"
13118 old_striplib="$STRIP -S"
13119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13120 $as_echo "yes" >&6; }
13122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13123 $as_echo "no" >&6; }
13127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13128 $as_echo "no" >&6; }
13144 # Report which library types will actually be built
13145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13146 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13148 $as_echo "$can_build_shared" >&6; }
13150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13151 $as_echo_n "checking whether to build shared libraries... " >&6; }
13152 test "$can_build_shared" = "no" && enable_shared=no
13154 # On AIX, shared libraries and static libraries use the same namespace, and
13155 # are all built from PIC.
13158 test "$enable_shared" = yes && enable_static=no
13159 if test -n "$RANLIB"; then
13160 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13161 postinstall_cmds='$RANLIB $lib'
13166 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13167 test "$enable_shared" = yes && enable_static=no
13171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13172 $as_echo "$enable_shared" >&6; }
13174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13175 $as_echo_n "checking whether to build static libraries... " >&6; }
13176 # Make sure either enable_shared or enable_static is yes.
13177 test "$enable_shared" = yes || enable_static=yes
13178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13179 $as_echo "$enable_static" >&6; }
13186 ac_cpp='$CPP $CPPFLAGS'
13187 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13188 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13189 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13193 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
13194 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
13195 (test "X$CXX" != "Xg++"))) ; then
13197 ac_cpp='$CXXCPP $CPPFLAGS'
13198 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13199 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13200 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
13202 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
13203 if test -z "$CXXCPP"; then
13204 if ${ac_cv_prog_CXXCPP+:} false; then :
13205 $as_echo_n "(cached) " >&6
13207 # Double quotes because CXXCPP needs to be expanded
13208 for CXXCPP in "$CXX -E" "/lib/cpp"
13210 ac_preproc_ok=false
13211 for ac_cxx_preproc_warn_flag in '' yes
13213 # Use a header file that comes with gcc, so configuring glibc
13214 # with a fresh cross-compiler works.
13215 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13216 # <limits.h> exists even on freestanding compilers.
13217 # On the NeXT, cc -E runs the code through the compiler's parser,
13218 # not just through cpp. "Syntax error" is here to catch this case.
13219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13220 /* end confdefs.h. */
13222 # include <limits.h>
13224 # include <assert.h>
13228 if ac_fn_cxx_try_cpp "$LINENO"; then :
13231 # Broken: fails on valid input.
13234 rm -f conftest.err conftest.i conftest.$ac_ext
13236 # OK, works on sane cases. Now check whether nonexistent headers
13237 # can be detected and how.
13238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13239 /* end confdefs.h. */
13240 #include <ac_nonexistent.h>
13242 if ac_fn_cxx_try_cpp "$LINENO"; then :
13243 # Broken: success on invalid input.
13246 # Passes both tests.
13250 rm -f conftest.err conftest.i conftest.$ac_ext
13253 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13254 rm -f conftest.i conftest.err conftest.$ac_ext
13255 if $ac_preproc_ok; then :
13260 ac_cv_prog_CXXCPP=$CXXCPP
13263 CXXCPP=$ac_cv_prog_CXXCPP
13265 ac_cv_prog_CXXCPP=$CXXCPP
13267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
13268 $as_echo "$CXXCPP" >&6; }
13269 ac_preproc_ok=false
13270 for ac_cxx_preproc_warn_flag in '' yes
13272 # Use a header file that comes with gcc, so configuring glibc
13273 # with a fresh cross-compiler works.
13274 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13275 # <limits.h> exists even on freestanding compilers.
13276 # On the NeXT, cc -E runs the code through the compiler's parser,
13277 # not just through cpp. "Syntax error" is here to catch this case.
13278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13279 /* end confdefs.h. */
13281 # include <limits.h>
13283 # include <assert.h>
13287 if ac_fn_cxx_try_cpp "$LINENO"; then :
13290 # Broken: fails on valid input.
13293 rm -f conftest.err conftest.i conftest.$ac_ext
13295 # OK, works on sane cases. Now check whether nonexistent headers
13296 # can be detected and how.
13297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13298 /* end confdefs.h. */
13299 #include <ac_nonexistent.h>
13301 if ac_fn_cxx_try_cpp "$LINENO"; then :
13302 # Broken: success on invalid input.
13305 # Passes both tests.
13309 rm -f conftest.err conftest.i conftest.$ac_ext
13312 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13313 rm -f conftest.i conftest.err conftest.$ac_ext
13314 if $ac_preproc_ok; then :
13317 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13318 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13319 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
13320 See \`config.log' for more details" "$LINENO" 5; }
13324 ac_cpp='$CPP $CPPFLAGS'
13325 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13326 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13327 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13330 _lt_caught_CXX_error=yes
13334 ac_cpp='$CXXCPP $CPPFLAGS'
13335 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13336 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13337 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13339 archive_cmds_need_lc_CXX=no
13340 allow_undefined_flag_CXX=
13341 always_export_symbols_CXX=no
13342 archive_expsym_cmds_CXX=
13343 compiler_needs_object_CXX=no
13344 export_dynamic_flag_spec_CXX=
13345 hardcode_direct_CXX=no
13346 hardcode_direct_absolute_CXX=no
13347 hardcode_libdir_flag_spec_CXX=
13348 hardcode_libdir_separator_CXX=
13349 hardcode_minus_L_CXX=no
13350 hardcode_shlibpath_var_CXX=unsupported
13351 hardcode_automatic_CXX=no
13352 inherit_rpath_CXX=no
13354 module_expsym_cmds_CXX=
13355 link_all_deplibs_CXX=unknown
13356 old_archive_cmds_CXX=$old_archive_cmds
13357 reload_flag_CXX=$reload_flag
13358 reload_cmds_CXX=$reload_cmds
13359 no_undefined_flag_CXX=
13360 whole_archive_flag_spec_CXX=
13361 enable_shared_with_static_runtimes_CXX=no
13363 # Source file extension for C++ test sources.
13366 # Object file extension for compiled C++ test sources.
13370 # No sense in running all these tests if we already determined that
13371 # the CXX compiler isn't working. Some variables (like enable_shared)
13372 # are currently assumed to apply to all compilers on this platform,
13373 # and will be corrupted by setting them based on a non-working compiler.
13374 if test "$_lt_caught_CXX_error" != yes; then
13375 # Code to be used in simple compile tests
13376 lt_simple_compile_test_code="int some_variable = 0;"
13378 # Code to be used in simple link tests
13379 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13381 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13388 # If no C compiler was specified, use CC.
13391 # If no C compiler flags were specified, use CFLAGS.
13392 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13394 # Allow CC to be a program name with arguments.
13398 # save warnings/boilerplate of simple test code
13399 ac_outfile=conftest.$ac_objext
13400 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13401 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13402 _lt_compiler_boilerplate=`cat conftest.err`
13405 ac_outfile=conftest.$ac_objext
13406 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13407 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13408 _lt_linker_boilerplate=`cat conftest.err`
13412 # Allow CC to be a program name with arguments.
13414 lt_save_CFLAGS=$CFLAGS
13418 lt_save_with_gnu_ld=$with_gnu_ld
13419 lt_save_path_LD=$lt_cv_path_LD
13420 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13421 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13423 $as_unset lt_cv_prog_gnu_ld
13425 if test -n "${lt_cv_path_LDCXX+set}"; then
13426 lt_cv_path_LD=$lt_cv_path_LDCXX
13428 $as_unset lt_cv_path_LD
13430 test -z "${LDCXX+set}" || LD=$LDCXX
13435 for cc_temp in $compiler""; do
13437 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13438 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13443 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13446 if test -n "$compiler"; then
13447 # We don't want -fno-exception when compiling C++ code, so set the
13448 # no_builtin_flag separately
13449 if test "$GXX" = yes; then
13450 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13452 lt_prog_compiler_no_builtin_flag_CXX=
13455 if test "$GXX" = yes; then
13456 # Set up default GNU C++ configuration
13460 # Check whether --with-gnu-ld was given.
13461 if test "${with_gnu_ld+set}" = set; then :
13462 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13468 if test "$GCC" = yes; then
13469 # Check if gcc -print-prog-name=ld gives a path.
13470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13471 $as_echo_n "checking for ld used by $CC... " >&6; }
13474 # gcc leaves a trailing carriage return which upsets mingw
13475 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13477 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13480 # Accept absolute paths.
13482 re_direlt='/[^/][^/]*/\.\./'
13483 # Canonicalize the pathname of ld
13484 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13485 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13486 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13488 test -z "$LD" && LD="$ac_prog"
13491 # If it fails, then pretend we aren't using GCC.
13495 # If it is relative, then search for the first ld in PATH.
13496 with_gnu_ld=unknown
13499 elif test "$with_gnu_ld" = yes; then
13500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13501 $as_echo_n "checking for GNU ld... " >&6; }
13503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13504 $as_echo_n "checking for non-GNU ld... " >&6; }
13506 if ${lt_cv_path_LD+:} false; then :
13507 $as_echo_n "(cached) " >&6
13509 if test -z "$LD"; then
13510 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13511 for ac_dir in $PATH; do
13513 test -z "$ac_dir" && ac_dir=.
13514 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13515 lt_cv_path_LD="$ac_dir/$ac_prog"
13516 # Check to see if the program is GNU ld. I'd rather use --version,
13517 # but apparently some variants of GNU ld only accept -v.
13518 # Break only if it was the GNU/non-GNU ld that we prefer.
13519 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13520 *GNU* | *'with BFD'*)
13521 test "$with_gnu_ld" != no && break
13524 test "$with_gnu_ld" != yes && break
13531 lt_cv_path_LD="$LD" # Let the user override the test with a path.
13535 LD="$lt_cv_path_LD"
13536 if test -n "$LD"; then
13537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13538 $as_echo "$LD" >&6; }
13540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13541 $as_echo "no" >&6; }
13543 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13545 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13546 if ${lt_cv_prog_gnu_ld+:} false; then :
13547 $as_echo_n "(cached) " >&6
13549 # I'd rather use --version here, but apparently some GNU lds only accept -v.
13550 case `$LD -v 2>&1 </dev/null` in
13551 *GNU* | *'with BFD'*)
13552 lt_cv_prog_gnu_ld=yes
13555 lt_cv_prog_gnu_ld=no
13559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13560 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
13561 with_gnu_ld=$lt_cv_prog_gnu_ld
13569 # Check if GNU C++ uses GNU ld as the underlying linker, since the
13570 # archiving commands below assume that GNU ld is being used.
13571 if test "$with_gnu_ld" = yes; then
13572 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13573 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'
13575 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13576 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13578 # If archive_cmds runs LD, not CC, wlarc should be empty
13579 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13580 # investigate it a little bit more. (MM)
13583 # ancient GNU ld didn't support --whole-archive et. al.
13584 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13585 $GREP 'no-whole-archive' > /dev/null; then
13586 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13588 whole_archive_flag_spec_CXX=
13594 # A generic and very simple default shared library creation
13595 # command for GNU C++ for the case where it uses the native
13596 # linker, instead of GNU ld. If possible, this setting should
13597 # overridden to take advantage of the native linker features on
13598 # the platform it is being used on.
13599 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13602 # Commands to make compiler produce verbose output that lists
13603 # what "hidden" libraries, object files and flags are used when
13604 # linking a shared library.
13605 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13613 # PORTME: fill in a description of your system's C++ link characteristics
13614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13615 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13619 # FIXME: insert proper C++ library support
13623 if test "$host_cpu" = ia64; then
13624 # On IA64, the linker does run time linking by default, so we don't
13625 # have to do anything special.
13626 aix_use_runtimelinking=no
13627 exp_sym_flag='-Bexport'
13630 aix_use_runtimelinking=no
13632 # Test if we are trying to use run time linking or normal
13633 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13634 # need to do runtime linking.
13635 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13636 for ld_flag in $LDFLAGS; do
13639 aix_use_runtimelinking=yes
13647 exp_sym_flag='-bexport'
13648 no_entry_flag='-bnoentry'
13651 # When large executables or shared objects are built, AIX ld can
13652 # have problems creating the table of contents. If linking a library
13653 # or program results in "error TOC overflow" add -mminimal-toc to
13654 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13655 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13657 archive_cmds_CXX=''
13658 hardcode_direct_CXX=yes
13659 hardcode_direct_absolute_CXX=yes
13660 hardcode_libdir_separator_CXX=':'
13661 link_all_deplibs_CXX=yes
13662 file_list_spec_CXX='${wl}-f,'
13664 if test "$GXX" = yes; then
13665 case $host_os in aix4.[012]|aix4.[012].*)
13666 # We only want to do this on AIX 4.2 and lower, the check
13667 # below for broken collect2 doesn't work under 4.3+
13668 collect2name=`${CC} -print-prog-name=collect2`
13669 if test -f "$collect2name" &&
13670 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13672 # We have reworked collect2
13675 # We have old collect2
13676 hardcode_direct_CXX=unsupported
13677 # It fails to find uninstalled libraries when the uninstalled
13678 # path is not listed in the libpath. Setting hardcode_minus_L
13679 # to unsupported forces relinking
13680 hardcode_minus_L_CXX=yes
13681 hardcode_libdir_flag_spec_CXX='-L$libdir'
13682 hardcode_libdir_separator_CXX=
13685 shared_flag='-shared'
13686 if test "$aix_use_runtimelinking" = yes; then
13687 shared_flag="$shared_flag "'${wl}-G'
13691 if test "$host_cpu" = ia64; then
13692 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13693 # chokes on -Wl,-G. The following line is correct:
13696 if test "$aix_use_runtimelinking" = yes; then
13697 shared_flag='${wl}-G'
13699 shared_flag='${wl}-bM:SRE'
13704 export_dynamic_flag_spec_CXX='${wl}-bexpall'
13705 # It seems that -bexpall does not export symbols beginning with
13706 # underscore (_), so it is better to generate a list of symbols to
13708 always_export_symbols_CXX=yes
13709 if test "$aix_use_runtimelinking" = yes; then
13710 # Warning - without using the other runtime loading flags (-brtl),
13711 # -berok will link without error, but may produce a broken library.
13712 allow_undefined_flag_CXX='-berok'
13713 # Determine the default libpath from the value encoded in an empty
13715 if test "${lt_cv_aix_libpath+set}" = set; then
13716 aix_libpath=$lt_cv_aix_libpath
13718 if ${lt_cv_aix_libpath__CXX+:} false; then :
13719 $as_echo_n "(cached) " >&6
13721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13722 /* end confdefs.h. */
13732 if ac_fn_cxx_try_link "$LINENO"; then :
13734 lt_aix_libpath_sed='
13735 /Import File Strings/,/^$/ {
13737 s/^0 *\([^ ]*\) *$/\1/
13741 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13742 # Check for a 64-bit object if we didn't find anything.
13743 if test -z "$lt_cv_aix_libpath__CXX"; then
13744 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13747 rm -f core conftest.err conftest.$ac_objext \
13748 conftest$ac_exeext conftest.$ac_ext
13749 if test -z "$lt_cv_aix_libpath__CXX"; then
13750 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13755 aix_libpath=$lt_cv_aix_libpath__CXX
13758 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13760 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"
13762 if test "$host_cpu" = ia64; then
13763 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13764 allow_undefined_flag_CXX="-z nodefs"
13765 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"
13767 # Determine the default libpath from the value encoded in an
13768 # empty executable.
13769 if test "${lt_cv_aix_libpath+set}" = set; then
13770 aix_libpath=$lt_cv_aix_libpath
13772 if ${lt_cv_aix_libpath__CXX+:} false; then :
13773 $as_echo_n "(cached) " >&6
13775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13776 /* end confdefs.h. */
13786 if ac_fn_cxx_try_link "$LINENO"; then :
13788 lt_aix_libpath_sed='
13789 /Import File Strings/,/^$/ {
13791 s/^0 *\([^ ]*\) *$/\1/
13795 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13796 # Check for a 64-bit object if we didn't find anything.
13797 if test -z "$lt_cv_aix_libpath__CXX"; then
13798 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13801 rm -f core conftest.err conftest.$ac_objext \
13802 conftest$ac_exeext conftest.$ac_ext
13803 if test -z "$lt_cv_aix_libpath__CXX"; then
13804 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13809 aix_libpath=$lt_cv_aix_libpath__CXX
13812 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13813 # Warning - without using the other run time loading flags,
13814 # -berok will link without error, but may produce a broken library.
13815 no_undefined_flag_CXX=' ${wl}-bernotok'
13816 allow_undefined_flag_CXX=' ${wl}-berok'
13817 if test "$with_gnu_ld" = yes; then
13818 # We only use this code for GNU lds that support --whole-archive.
13819 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13821 # Exported symbols can be pulled into shared objects from archives
13822 whole_archive_flag_spec_CXX='$convenience'
13824 archive_cmds_need_lc_CXX=yes
13825 # This is similar to how AIX traditionally builds its shared
13827 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'
13833 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13834 allow_undefined_flag_CXX=unsupported
13835 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13836 # support --undefined. This deserves some investigation. FIXME
13837 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13844 case $cc_basename in
13846 # FIXME: insert proper C++ library support
13852 cygwin* | mingw* | pw32* | cegcc*)
13853 case $GXX,$cc_basename in
13856 # hardcode_libdir_flag_spec is actually meaningless, as there is
13857 # no search path for DLLs.
13858 hardcode_libdir_flag_spec_CXX=' '
13859 allow_undefined_flag_CXX=unsupported
13860 always_export_symbols_CXX=yes
13861 file_list_spec_CXX='@'
13862 # Tell ltmain to make .lib files, not .a files.
13864 # Tell ltmain to make .dll files, not .so files.
13866 # FIXME: Setting linknames here is a bad hack.
13867 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
13868 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13869 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
13871 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
13873 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13875 # The linker will not automatically build a static lib if we build a DLL.
13876 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
13877 enable_shared_with_static_runtimes_CXX=yes
13879 old_postinstall_cmds_CXX='chmod 644 $oldlib'
13880 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
13881 lt_tool_outputfile="@TOOL_OUTPUT@"~
13882 case $lt_outputfile in
13885 lt_outputfile="$lt_outputfile.exe"
13886 lt_tool_outputfile="$lt_tool_outputfile.exe"
13889 func_to_tool_file "$lt_outputfile"~
13890 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
13891 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13892 $RM "$lt_outputfile.manifest";
13897 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13898 # as there is no search path for DLLs.
13899 hardcode_libdir_flag_spec_CXX='-L$libdir'
13900 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
13901 allow_undefined_flag_CXX=unsupported
13902 always_export_symbols_CXX=no
13903 enable_shared_with_static_runtimes_CXX=yes
13905 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13906 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'
13907 # If the export-symbols file already is a .def file (1st line
13908 # is EXPORTS), use it as is; otherwise, prepend...
13909 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13910 cp $export_symbols $output_objdir/$soname.def;
13912 echo EXPORTS > $output_objdir/$soname.def;
13913 cat $export_symbols >> $output_objdir/$soname.def;
13915 $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'
13922 darwin* | rhapsody*)
13925 archive_cmds_need_lc_CXX=no
13926 hardcode_direct_CXX=no
13927 hardcode_automatic_CXX=yes
13928 hardcode_shlibpath_var_CXX=unsupported
13929 if test "$lt_cv_ld_force_load" = "yes"; then
13930 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\"`'
13933 whole_archive_flag_spec_CXX=''
13935 link_all_deplibs_CXX=yes
13936 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13937 case $cc_basename in
13938 ifort*) _lt_dar_can_shared=yes ;;
13939 *) _lt_dar_can_shared=$GCC ;;
13941 if test "$_lt_dar_can_shared" = "yes"; then
13942 output_verbose_link_cmd=func_echo_all
13943 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}"
13944 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13945 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}"
13946 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}"
13947 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13948 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}"
13949 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}"
13959 case $cc_basename in
13961 # FIXME: insert proper C++ library support
13965 # Green Hills C++ Compiler
13966 # FIXME: insert proper C++ library support
13970 # FIXME: insert proper C++ library support
13977 # C++ shared libraries reported to be fairly broken before
13983 archive_cmds_need_lc_CXX=no
13986 freebsd* | dragonfly*)
13987 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13993 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13994 link_all_deplibs_CXX=yes
13998 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13999 hardcode_libdir_separator_CXX=:
14000 export_dynamic_flag_spec_CXX='${wl}-E'
14001 hardcode_direct_CXX=yes
14002 hardcode_minus_L_CXX=yes # Not in the search PATH,
14003 # but as the default
14004 # location of the library.
14006 case $cc_basename in
14008 # FIXME: insert proper C++ library support
14012 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'
14013 # Commands to make compiler produce verbose output that lists
14014 # what "hidden" libraries, object files and flags are used when
14015 # linking a shared library.
14017 # There doesn't appear to be a way to prevent this compiler from
14018 # explicitly linking system object files so we need to strip them
14019 # from the output so that they don't get included in the library
14021 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"'
14024 if test "$GXX" = yes; then
14025 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'
14027 # FIXME: insert proper C++ library support
14035 if test $with_gnu_ld = no; then
14036 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14037 hardcode_libdir_separator_CXX=:
14043 export_dynamic_flag_spec_CXX='${wl}-E'
14049 hardcode_direct_CXX=no
14050 hardcode_shlibpath_var_CXX=no
14053 hardcode_direct_CXX=yes
14054 hardcode_direct_absolute_CXX=yes
14055 hardcode_minus_L_CXX=yes # Not in the search PATH,
14056 # but as the default
14057 # location of the library.
14061 case $cc_basename in
14063 # FIXME: insert proper C++ library support
14069 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14072 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14075 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14078 # Commands to make compiler produce verbose output that lists
14079 # what "hidden" libraries, object files and flags are used when
14080 # linking a shared library.
14082 # There doesn't appear to be a way to prevent this compiler from
14083 # explicitly linking system object files so we need to strip them
14084 # from the output so that they don't get included in the library
14086 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"'
14089 if test "$GXX" = yes; then
14090 if test $with_gnu_ld = no; then
14093 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14096 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14099 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'
14104 # FIXME: insert proper C++ library support
14112 hardcode_direct_CXX=no
14113 hardcode_shlibpath_var_CXX=no
14114 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14115 export_dynamic_flag_spec_CXX='${wl}-E'
14116 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14117 # Instead, shared libraries are loaded at an image base (0x10000000 by
14118 # default) and relocated if they conflict, which is a slow very memory
14119 # consuming and fragmenting process. To avoid this, we pick a random,
14120 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14121 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14122 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'
14123 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'
14126 case $cc_basename in
14129 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'
14131 # Archives containing C++ object files must be created using
14132 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
14133 # necessary to make sure instantiated templates are included
14135 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
14138 if test "$GXX" = yes; then
14139 if test "$with_gnu_ld" = no; then
14140 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'
14142 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
14145 link_all_deplibs_CXX=yes
14148 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14149 hardcode_libdir_separator_CXX=:
14150 inherit_rpath_CXX=yes
14153 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14154 case $cc_basename in
14156 # Kuck and Associates, Inc. (KAI) C++ Compiler
14158 # KCC will only create a shared library if the output file
14159 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14160 # to its proper name (with version) after linking.
14161 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'
14162 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'
14163 # Commands to make compiler produce verbose output that lists
14164 # what "hidden" libraries, object files and flags are used when
14165 # linking a shared library.
14167 # There doesn't appear to be a way to prevent this compiler from
14168 # explicitly linking system object files so we need to strip them
14169 # from the output so that they don't get included in the library
14171 output_verbose_link_cmd='templist=`$CC $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"'
14173 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14174 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14176 # Archives containing C++ object files must be created using
14177 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
14178 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14183 # version 8.0 and above of icpc choke on multiply defined symbols
14184 # if we add $predep_objects and $postdep_objects, however 7.1 and
14185 # earlier do not add the objects themselves.
14186 case `$CC -V 2>&1` in
14188 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14189 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'
14191 *) # Version 8.0 or newer
14194 ia64*) tmp_idyn=' -i_dynamic';;
14196 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14197 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'
14200 archive_cmds_need_lc_CXX=no
14201 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14202 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14203 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14206 # Portland Group C++ compiler
14208 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
14209 prelink_cmds_CXX='tpldir=Template.dir~
14211 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
14212 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
14213 old_archive_cmds_CXX='tpldir=Template.dir~
14215 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
14216 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
14218 archive_cmds_CXX='tpldir=Template.dir~
14220 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14221 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14222 archive_expsym_cmds_CXX='tpldir=Template.dir~
14224 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14225 $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'
14227 *) # Version 6 and above use weak symbols
14228 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14229 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'
14233 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
14234 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14235 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'
14239 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14240 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'
14242 runpath_var=LD_RUN_PATH
14243 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14244 hardcode_libdir_separator_CXX=:
14246 # Commands to make compiler produce verbose output that lists
14247 # what "hidden" libraries, object files and flags are used when
14248 # linking a shared library.
14250 # There doesn't appear to be a way to prevent this compiler from
14251 # explicitly linking system object files so we need to strip them
14252 # from the output so that they don't get included in the library
14254 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'
14256 xl* | mpixl* | bgxl*)
14257 # IBM XL 8.0 on PPC, with GNU ld
14258 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14259 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14260 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14261 if test "x$supports_anon_versioning" = xyes; then
14262 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
14263 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14264 echo "local: *; };" >> $output_objdir/$libname.ver~
14265 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14269 case `$CC -V 2>&1 | sed 5q` in
14272 no_undefined_flag_CXX=' -zdefs'
14273 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14274 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'
14275 hardcode_libdir_flag_spec_CXX='-R$libdir'
14276 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'
14277 compiler_needs_object_CXX=yes
14279 # Not sure whether something based on
14280 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
14282 output_verbose_link_cmd='func_echo_all'
14284 # Archives containing C++ object files must be created using
14285 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14286 # necessary to make sure instantiated templates are included
14288 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14296 # FIXME: insert proper C++ library support
14301 # FIXME: insert proper C++ library support
14306 case $cc_basename in
14308 # FIXME: insert proper C++ library support
14312 # FIXME: insert proper C++ library support
14319 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14320 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14322 hardcode_libdir_flag_spec_CXX='-R$libdir'
14323 hardcode_direct_CXX=yes
14324 hardcode_shlibpath_var_CXX=no
14326 # Workaround some broken pre-1.5 toolchains
14327 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14335 # C++ shared libraries are fairly broken
14340 if test -f /usr/libexec/ld.so; then
14341 hardcode_direct_CXX=yes
14342 hardcode_shlibpath_var_CXX=no
14343 hardcode_direct_absolute_CXX=yes
14344 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14345 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14346 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14347 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
14348 export_dynamic_flag_spec_CXX='${wl}-E'
14349 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14351 output_verbose_link_cmd=func_echo_all
14357 osf3* | osf4* | osf5*)
14358 case $cc_basename in
14360 # Kuck and Associates, Inc. (KAI) C++ Compiler
14362 # KCC will only create a shared library if the output file
14363 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14364 # to its proper name (with version) after linking.
14365 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'
14367 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14368 hardcode_libdir_separator_CXX=:
14370 # Archives containing C++ object files must be created using
14371 # the KAI C++ compiler.
14373 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14374 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14378 # Rational C++ 2.4.1
14379 # FIXME: insert proper C++ library support
14385 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14386 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'
14387 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14390 allow_undefined_flag_CXX=' -expect_unresolved \*'
14391 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'
14392 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14393 echo "-hidden">> $lib.exp~
14394 $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~
14396 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14400 hardcode_libdir_separator_CXX=:
14402 # Commands to make compiler produce verbose output that lists
14403 # what "hidden" libraries, object files and flags are used when
14404 # linking a shared library.
14406 # There doesn't appear to be a way to prevent this compiler from
14407 # explicitly linking system object files so we need to strip them
14408 # from the output so that they don't get included in the library
14410 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"'
14413 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14414 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14417 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'
14420 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'
14424 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14425 hardcode_libdir_separator_CXX=:
14427 # Commands to make compiler produce verbose output that lists
14428 # what "hidden" libraries, object files and flags are used when
14429 # linking a shared library.
14430 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14433 # FIXME: insert proper C++ library support
14441 # FIXME: insert proper C++ library support
14446 case $cc_basename in
14449 # FIXME: insert proper C++ library support
14454 # FIXME: insert proper C++ library support
14458 # FIXME: insert proper C++ library support
14465 case $cc_basename in
14467 # Sun C++ 4.2, 5.x and Centerline C++
14468 archive_cmds_need_lc_CXX=yes
14469 no_undefined_flag_CXX=' -zdefs'
14470 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14471 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14472 $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'
14474 hardcode_libdir_flag_spec_CXX='-R$libdir'
14475 hardcode_shlibpath_var_CXX=no
14477 solaris2.[0-5] | solaris2.[0-5].*) ;;
14479 # The compiler driver will combine and reorder linker options,
14480 # but understands `-z linker_flag'.
14481 # Supported since Solaris 2.6 (maybe 2.5.1?)
14482 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14485 link_all_deplibs_CXX=yes
14487 output_verbose_link_cmd='func_echo_all'
14489 # Archives containing C++ object files must be created using
14490 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14491 # necessary to make sure instantiated templates are included
14493 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14496 # Green Hills C++ Compiler
14497 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14499 # The C++ compiler must be used to create the archive.
14500 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14503 # GNU C++ compiler with Solaris linker
14504 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14505 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14506 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14507 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14508 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14509 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14511 # Commands to make compiler produce verbose output that lists
14512 # what "hidden" libraries, object files and flags are used when
14513 # linking a shared library.
14514 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14516 # g++ 2.7 appears to require `-G' NOT `-shared' on this
14518 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14519 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14520 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14522 # Commands to make compiler produce verbose output that lists
14523 # what "hidden" libraries, object files and flags are used when
14524 # linking a shared library.
14525 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14528 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14530 solaris2.[0-5] | solaris2.[0-5].*) ;;
14532 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14540 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14541 no_undefined_flag_CXX='${wl}-z,text'
14542 archive_cmds_need_lc_CXX=no
14543 hardcode_shlibpath_var_CXX=no
14544 runpath_var='LD_RUN_PATH'
14546 case $cc_basename in
14548 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14549 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14552 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14553 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14558 sysv5* | sco3.2v5* | sco5v6*)
14559 # Note: We can NOT use -z defs as we might desire, because we do not
14560 # link with -lc, and that would cause any symbols used from libc to
14561 # always be unresolved, which means just about no library would
14562 # ever link correctly. If we're not using GNU ld we use -z text
14563 # though, which does catch some bad symbols but isn't as heavy-handed
14565 no_undefined_flag_CXX='${wl}-z,text'
14566 allow_undefined_flag_CXX='${wl}-z,nodefs'
14567 archive_cmds_need_lc_CXX=no
14568 hardcode_shlibpath_var_CXX=no
14569 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14570 hardcode_libdir_separator_CXX=':'
14571 link_all_deplibs_CXX=yes
14572 export_dynamic_flag_spec_CXX='${wl}-Bexport'
14573 runpath_var='LD_RUN_PATH'
14575 case $cc_basename in
14577 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14578 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14579 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
14580 '"$old_archive_cmds_CXX"
14581 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
14582 '"$reload_cmds_CXX"
14585 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14586 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14592 case $cc_basename in
14594 # NonStop-UX NCC 3.20
14595 # FIXME: insert proper C++ library support
14599 # FIXME: insert proper C++ library support
14606 # FIXME: insert proper C++ library support
14611 # FIXME: insert proper C++ library support
14616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14617 $as_echo "$ld_shlibs_CXX" >&6; }
14618 test "$ld_shlibs_CXX" = no && can_build_shared=no
14624 ## There is no encapsulation within the following macros, do not change
14625 ## the running order or otherwise move them around unless you know exactly
14626 ## what you are doing...
14627 # Dependencies to place before and after the object being linked:
14628 predep_objects_CXX=
14629 postdep_objects_CXX=
14632 compiler_lib_search_path_CXX=
14634 cat > conftest.$ac_ext <<_LT_EOF
14638 Foo (void) { a = 0; }
14645 _lt_libdeps_save_CFLAGS=$CFLAGS
14646 case "$CC $CFLAGS " in #(
14647 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
14648 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
14649 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
14652 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14653 (eval $ac_compile) 2>&5
14655 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14656 test $ac_status = 0; }; then
14657 # Parse the compiler output and extract the necessary
14658 # objects, libraries and library flags.
14660 # Sentinel used to keep track of whether or not we are before
14661 # the conftest object file.
14662 pre_test_object_deps_done=no
14664 for p in `eval "$output_verbose_link_cmd"`; do
14665 case ${prev}${p} in
14668 # Some compilers place space between "-{L,R}" and the path.
14669 # Remove the space.
14670 if test $p = "-L" ||
14671 test $p = "-R"; then
14676 # Expand the sysroot to ease extracting the directories later.
14677 if test -z "$prev"; then
14679 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
14680 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
14681 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
14685 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
14687 if test "$pre_test_object_deps_done" = no; then
14690 # Internal compiler library paths should come after those
14691 # provided the user. The postdeps already come after the
14692 # user supplied libs so there is no need to process them.
14693 if test -z "$compiler_lib_search_path_CXX"; then
14694 compiler_lib_search_path_CXX="${prev}${p}"
14696 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14699 # The "-l" case would never come before the object being
14700 # linked, so don't bother handling this case.
14703 if test -z "$postdeps_CXX"; then
14704 postdeps_CXX="${prev}${p}"
14706 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14712 *.lto.$objext) ;; # Ignore GCC LTO objects
14714 # This assumes that the test object file only shows up
14715 # once in the compiler output.
14716 if test "$p" = "conftest.$objext"; then
14717 pre_test_object_deps_done=yes
14721 if test "$pre_test_object_deps_done" = no; then
14722 if test -z "$predep_objects_CXX"; then
14723 predep_objects_CXX="$p"
14725 predep_objects_CXX="$predep_objects_CXX $p"
14728 if test -z "$postdep_objects_CXX"; then
14729 postdep_objects_CXX="$p"
14731 postdep_objects_CXX="$postdep_objects_CXX $p"
14736 *) ;; # Ignore the rest.
14744 echo "libtool.m4: error: problem compiling CXX test program"
14747 $RM -f confest.$objext
14748 CFLAGS=$_lt_libdeps_save_CFLAGS
14750 # PORTME: override above test on systems where it is broken
14753 # Interix 3.5 installs completely hosed .la files for C++, so rather than
14754 # hack all around it, let's just trust "g++" to DTRT.
14755 predep_objects_CXX=
14756 postdep_objects_CXX=
14761 case `$CC -V 2>&1 | sed 5q` in
14765 # The more standards-conforming stlport4 library is
14766 # incompatible with the Cstd library. Avoid specifying
14767 # it if it's in CXXFLAGS. Ignore libCrun as
14768 # -library=stlport4 depends on it.
14769 case " $CXX $CXXFLAGS " in
14770 *" -library=stlport4 "*)
14771 solaris_use_stlport4=yes
14775 if test "$solaris_use_stlport4" != yes; then
14776 postdeps_CXX='-library=Cstd -library=Crun'
14783 case $cc_basename in
14785 # The more standards-conforming stlport4 library is
14786 # incompatible with the Cstd library. Avoid specifying
14787 # it if it's in CXXFLAGS. Ignore libCrun as
14788 # -library=stlport4 depends on it.
14789 case " $CXX $CXXFLAGS " in
14790 *" -library=stlport4 "*)
14791 solaris_use_stlport4=yes
14795 # Adding this requires a known-good setup of shared libraries for
14796 # Sun compiler versions before 5.6, else PIC objects from an old
14797 # archive will be linked into the output, leading to subtle bugs.
14798 if test "$solaris_use_stlport4" != yes; then
14799 postdeps_CXX='-library=Cstd -library=Crun'
14807 case " $postdeps_CXX " in
14808 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14810 compiler_lib_search_dirs_CXX=
14811 if test -n "${compiler_lib_search_path_CXX}"; then
14812 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14845 lt_prog_compiler_wl_CXX=
14846 lt_prog_compiler_pic_CXX=
14847 lt_prog_compiler_static_CXX=
14850 # C++ specific cases for pic, static, wl, etc.
14851 if test "$GXX" = yes; then
14852 lt_prog_compiler_wl_CXX='-Wl,'
14853 lt_prog_compiler_static_CXX='-static'
14857 # All AIX code is PIC.
14858 if test "$host_cpu" = ia64; then
14859 # AIX 5 now supports IA64 processor
14860 lt_prog_compiler_static_CXX='-Bstatic'
14867 # see comment about AmigaOS4 .so support
14868 lt_prog_compiler_pic_CXX='-fPIC'
14871 # FIXME: we need at least 68020 code to build shared libraries, but
14872 # adding the `-m68020' flag to GCC prevents building anything better,
14874 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14879 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14880 # PIC is the default for these OSes.
14882 mingw* | cygwin* | os2* | pw32* | cegcc*)
14883 # This hack is so that the source file can tell whether it is being
14884 # built for inclusion in a dll (and should export symbols for example).
14885 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14886 # (--disable-auto-import) libraries
14887 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14889 darwin* | rhapsody*)
14890 # PIC is the default on this platform
14891 # Common symbols not allowed in MH_DYLIB files
14892 lt_prog_compiler_pic_CXX='-fno-common'
14895 # DJGPP does not support shared libraries at all
14896 lt_prog_compiler_pic_CXX=
14899 # PIC is the default for Haiku.
14900 # The "-static" flag exists, but is broken.
14901 lt_prog_compiler_static_CXX=
14904 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14905 # Instead, we relocate shared libraries at runtime.
14908 if test -d /usr/nec; then
14909 lt_prog_compiler_pic_CXX=-Kconform_pic
14913 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14914 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14915 # sets the default TLS model and affects inlining.
14920 lt_prog_compiler_pic_CXX='-fPIC'
14925 # QNX uses GNU C++, but need to define -shared option too, otherwise
14926 # it will coredump.
14927 lt_prog_compiler_pic_CXX='-fPIC -shared'
14930 lt_prog_compiler_pic_CXX='-fPIC'
14936 # All AIX code is PIC.
14937 if test "$host_cpu" = ia64; then
14938 # AIX 5 now supports IA64 processor
14939 lt_prog_compiler_static_CXX='-Bstatic'
14941 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14945 case $cc_basename in
14947 # Green Hills C++ Compiler
14948 # _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"
14952 mingw* | cygwin* | os2* | pw32* | cegcc*)
14953 # This hack is so that the source file can tell whether it is being
14954 # built for inclusion in a dll (and should export symbols for example).
14955 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14958 case $cc_basename in
14960 lt_prog_compiler_pic_CXX='-KPIC'
14963 # Green Hills C++ Compiler
14964 lt_prog_compiler_pic_CXX='-pic'
14970 freebsd* | dragonfly*)
14971 # FreeBSD uses GNU C++
14973 hpux9* | hpux10* | hpux11*)
14974 case $cc_basename in
14976 lt_prog_compiler_wl_CXX='-Wl,'
14977 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14978 if test "$host_cpu" != ia64; then
14979 lt_prog_compiler_pic_CXX='+Z'
14983 lt_prog_compiler_wl_CXX='-Wl,'
14984 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14990 lt_prog_compiler_pic_CXX='+Z'
14999 # This is c89, which is MS Visual C++ (no shared libs)
15000 # Anyone wants to do a port?
15002 irix5* | irix6* | nonstopux*)
15003 case $cc_basename in
15005 lt_prog_compiler_wl_CXX='-Wl,'
15006 lt_prog_compiler_static_CXX='-non_shared'
15007 # CC pic flag -KPIC is the default.
15013 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15014 case $cc_basename in
15017 lt_prog_compiler_wl_CXX='--backend -Wl,'
15018 lt_prog_compiler_pic_CXX='-fPIC'
15021 # old Intel C++ for x86_64 which still supported -KPIC.
15022 lt_prog_compiler_wl_CXX='-Wl,'
15023 lt_prog_compiler_pic_CXX='-KPIC'
15024 lt_prog_compiler_static_CXX='-static'
15027 # Intel C++, used to be incompatible with GCC.
15028 # ICC 10 doesn't accept -KPIC any more.
15029 lt_prog_compiler_wl_CXX='-Wl,'
15030 lt_prog_compiler_pic_CXX='-fPIC'
15031 lt_prog_compiler_static_CXX='-static'
15034 # Portland Group C++ compiler
15035 lt_prog_compiler_wl_CXX='-Wl,'
15036 lt_prog_compiler_pic_CXX='-fpic'
15037 lt_prog_compiler_static_CXX='-Bstatic'
15041 # Make sure the PIC flag is empty. It appears that all Alpha
15042 # Linux and Compaq Tru64 Unix objects are PIC.
15043 lt_prog_compiler_pic_CXX=
15044 lt_prog_compiler_static_CXX='-non_shared'
15046 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
15047 # IBM XL 8.0, 9.0 on PPC and BlueGene
15048 lt_prog_compiler_wl_CXX='-Wl,'
15049 lt_prog_compiler_pic_CXX='-qpic'
15050 lt_prog_compiler_static_CXX='-qstaticlink'
15053 case `$CC -V 2>&1 | sed 5q` in
15056 lt_prog_compiler_pic_CXX='-KPIC'
15057 lt_prog_compiler_static_CXX='-Bstatic'
15058 lt_prog_compiler_wl_CXX='-Qoption ld '
15069 case $cc_basename in
15071 lt_prog_compiler_pic_CXX='-W c,exportall'
15077 netbsd* | netbsdelf*-gnu)
15080 # QNX uses GNU C++, but need to define -shared option too, otherwise
15081 # it will coredump.
15082 lt_prog_compiler_pic_CXX='-fPIC -shared'
15084 osf3* | osf4* | osf5*)
15085 case $cc_basename in
15087 lt_prog_compiler_wl_CXX='--backend -Wl,'
15090 # Rational C++ 2.4.1
15091 lt_prog_compiler_pic_CXX='-pic'
15094 # Digital/Compaq C++
15095 lt_prog_compiler_wl_CXX='-Wl,'
15096 # Make sure the PIC flag is empty. It appears that all Alpha
15097 # Linux and Compaq Tru64 Unix objects are PIC.
15098 lt_prog_compiler_pic_CXX=
15099 lt_prog_compiler_static_CXX='-non_shared'
15108 case $cc_basename in
15110 # Sun C++ 4.2, 5.x and Centerline C++
15111 lt_prog_compiler_pic_CXX='-KPIC'
15112 lt_prog_compiler_static_CXX='-Bstatic'
15113 lt_prog_compiler_wl_CXX='-Qoption ld '
15116 # Green Hills C++ Compiler
15117 lt_prog_compiler_pic_CXX='-PIC'
15124 case $cc_basename in
15127 lt_prog_compiler_pic_CXX='-pic'
15128 lt_prog_compiler_static_CXX='-Bstatic'
15132 lt_prog_compiler_pic_CXX='-pic'
15138 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15139 case $cc_basename in
15141 lt_prog_compiler_wl_CXX='-Wl,'
15142 lt_prog_compiler_pic_CXX='-KPIC'
15143 lt_prog_compiler_static_CXX='-Bstatic'
15148 case $cc_basename in
15150 # NonStop-UX NCC 3.20
15151 lt_prog_compiler_pic_CXX='-KPIC'
15160 lt_prog_compiler_can_build_shared_CXX=no
15166 # For platforms which do not support PIC, -DPIC is meaningless:
15168 lt_prog_compiler_pic_CXX=
15171 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
15175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15176 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15177 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
15178 $as_echo_n "(cached) " >&6
15180 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
15182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
15183 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
15184 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
15187 # Check to make sure the PIC flag actually works.
15189 if test -n "$lt_prog_compiler_pic_CXX"; then
15190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
15191 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
15192 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
15193 $as_echo_n "(cached) " >&6
15195 lt_cv_prog_compiler_pic_works_CXX=no
15196 ac_outfile=conftest.$ac_objext
15197 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15198 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
15199 # Insert the option either (1) after the last *FLAGS variable, or
15200 # (2) before a word containing "conftest.", or (3) at the end.
15201 # Note that $ac_compile itself does not contain backslashes and begins
15202 # with a dollar sign (not a hyphen), so the echo should work correctly.
15203 # The option is referenced via a variable to avoid confusing sed.
15204 lt_compile=`echo "$ac_compile" | $SED \
15205 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15206 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15207 -e 's:$: $lt_compiler_flag:'`
15208 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15209 (eval "$lt_compile" 2>conftest.err)
15211 cat conftest.err >&5
15212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15213 if (exit $ac_status) && test -s "$ac_outfile"; then
15214 # The compiler can only warn and ignore the option if not recognized
15215 # So say no if there are warnings other than the usual output.
15216 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15217 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15218 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15219 lt_cv_prog_compiler_pic_works_CXX=yes
15225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
15226 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
15228 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
15229 case $lt_prog_compiler_pic_CXX in
15231 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
15234 lt_prog_compiler_pic_CXX=
15235 lt_prog_compiler_can_build_shared_CXX=no
15245 # Check to make sure the static flag actually works.
15247 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
15248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15249 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15250 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
15251 $as_echo_n "(cached) " >&6
15253 lt_cv_prog_compiler_static_works_CXX=no
15254 save_LDFLAGS="$LDFLAGS"
15255 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15256 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15257 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15258 # The linker can only warn and ignore the option if not recognized
15259 # So say no if there are warnings
15260 if test -s conftest.err; then
15261 # Append any errors to the config.log.
15262 cat conftest.err 1>&5
15263 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15264 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15265 if diff conftest.exp conftest.er2 >/dev/null; then
15266 lt_cv_prog_compiler_static_works_CXX=yes
15269 lt_cv_prog_compiler_static_works_CXX=yes
15273 LDFLAGS="$save_LDFLAGS"
15276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
15277 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
15279 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
15282 lt_prog_compiler_static_CXX=
15288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15289 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15290 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15291 $as_echo_n "(cached) " >&6
15293 lt_cv_prog_compiler_c_o_CXX=no
15294 $RM -r conftest 2>/dev/null
15298 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15300 lt_compiler_flag="-o out/conftest2.$ac_objext"
15301 # Insert the option either (1) after the last *FLAGS variable, or
15302 # (2) before a word containing "conftest.", or (3) at the end.
15303 # Note that $ac_compile itself does not contain backslashes and begins
15304 # with a dollar sign (not a hyphen), so the echo should work correctly.
15305 lt_compile=`echo "$ac_compile" | $SED \
15306 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15307 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15308 -e 's:$: $lt_compiler_flag:'`
15309 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15310 (eval "$lt_compile" 2>out/conftest.err)
15312 cat out/conftest.err >&5
15313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15314 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15316 # The compiler can only warn and ignore the option if not recognized
15317 # So say no if there are warnings
15318 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15319 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15320 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15321 lt_cv_prog_compiler_c_o_CXX=yes
15326 # SGI C++ compiler will create directory out/ii_files/ for
15327 # template instantiation
15328 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15329 $RM out/* && rmdir out
15335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15336 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15341 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15342 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15343 $as_echo_n "(cached) " >&6
15345 lt_cv_prog_compiler_c_o_CXX=no
15346 $RM -r conftest 2>/dev/null
15350 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15352 lt_compiler_flag="-o out/conftest2.$ac_objext"
15353 # Insert the option either (1) after the last *FLAGS variable, or
15354 # (2) before a word containing "conftest.", or (3) at the end.
15355 # Note that $ac_compile itself does not contain backslashes and begins
15356 # with a dollar sign (not a hyphen), so the echo should work correctly.
15357 lt_compile=`echo "$ac_compile" | $SED \
15358 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15359 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15360 -e 's:$: $lt_compiler_flag:'`
15361 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15362 (eval "$lt_compile" 2>out/conftest.err)
15364 cat out/conftest.err >&5
15365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15366 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15368 # The compiler can only warn and ignore the option if not recognized
15369 # So say no if there are warnings
15370 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15371 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15372 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15373 lt_cv_prog_compiler_c_o_CXX=yes
15378 # SGI C++ compiler will create directory out/ii_files/ for
15379 # template instantiation
15380 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15381 $RM out/* && rmdir out
15387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15388 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15393 hard_links="nottested"
15394 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
15395 # do not overwrite the value of need_locks provided by the user
15396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15397 $as_echo_n "checking if we can lock with hard links... " >&6; }
15400 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15402 ln conftest.a conftest.b 2>&5 || hard_links=no
15403 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15405 $as_echo "$hard_links" >&6; }
15406 if test "$hard_links" = no; then
15407 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15408 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15418 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15420 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15421 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15424 # If we're using GNU nm, then we don't want the "-C" option.
15425 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15426 # Also, AIX nm treats weak defined symbols like other global defined
15427 # symbols, whereas GNU nm marks them as "W".
15428 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15429 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'
15431 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'
15435 export_symbols_cmds_CXX="$ltdll_cmds"
15437 cygwin* | mingw* | cegcc*)
15438 case $cc_basename in
15440 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
15443 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'
15444 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
15448 linux* | k*bsd*-gnu | gnu*)
15449 link_all_deplibs_CXX=no
15452 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15457 $as_echo "$ld_shlibs_CXX" >&6; }
15458 test "$ld_shlibs_CXX" = no && can_build_shared=no
15460 with_gnu_ld_CXX=$with_gnu_ld
15468 # Do we need to explicitly link libc?
15470 case "x$archive_cmds_need_lc_CXX" in
15472 # Assume -lc should be added
15473 archive_cmds_need_lc_CXX=yes
15475 if test "$enable_shared" = yes && test "$GCC" = yes; then
15476 case $archive_cmds_CXX in
15478 # FIXME: we may have to deal with multi-command sequences.
15481 # Test whether the compiler implicitly links with -lc since on some
15482 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15483 # to ld, don't add -lc before -lgcc.
15484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15485 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15486 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
15487 $as_echo_n "(cached) " >&6
15490 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15492 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15493 (eval $ac_compile) 2>&5
15495 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15496 test $ac_status = 0; } 2>conftest.err; then
15499 libobjs=conftest.$ac_objext
15501 wl=$lt_prog_compiler_wl_CXX
15502 pic_flag=$lt_prog_compiler_pic_CXX
15508 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15509 allow_undefined_flag_CXX=
15510 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15511 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15513 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15514 test $ac_status = 0; }
15516 lt_cv_archive_cmds_need_lc_CXX=no
15518 lt_cv_archive_cmds_need_lc_CXX=yes
15520 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15522 cat conftest.err 1>&5
15527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
15528 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
15529 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
15597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15598 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15600 library_names_spec=
15601 libname_spec='lib$name'
15605 postuninstall_cmds=
15609 shlibpath_overrides_runpath=unknown
15611 dynamic_linker="$host_os ld.so"
15612 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15613 need_lib_prefix=unknown
15614 hardcode_into_libs=no
15616 # when you set need_version to no, make sure it does not cause -set_version
15617 # flags to be left without arguments
15618 need_version=unknown
15622 version_type=linux # correct to gnu/linux during the next big refactor
15623 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15624 shlibpath_var=LIBPATH
15626 # AIX 3 has no versioning support, so we append a major version to the name.
15627 soname_spec='${libname}${release}${shared_ext}$major'
15631 version_type=linux # correct to gnu/linux during the next big refactor
15634 hardcode_into_libs=yes
15635 if test "$host_cpu" = ia64; then
15636 # AIX 5 supports IA64
15637 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15638 shlibpath_var=LD_LIBRARY_PATH
15640 # With GCC up to 2.95.x, collect2 would create an import file
15641 # for dependence libraries. The import file would start with
15642 # the line `#! .'. This would cause the generated library to
15643 # depend on `.', always an invalid library. This was fixed in
15644 # development snapshots of GCC prior to 3.0.
15646 aix4 | aix4.[01] | aix4.[01].*)
15647 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15649 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15652 can_build_shared=no
15656 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15657 # soname into executable. Probably we can add versioning support to
15658 # collect2, so additional links can be useful in future.
15659 if test "$aix_use_runtimelinking" = yes; then
15660 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15661 # instead of lib<name>.a to let people know that these are not
15662 # typical AIX shared libraries.
15663 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15665 # We preserve .a as extension for shared libraries through AIX4.2
15666 # and later when we are not doing run time linking.
15667 library_names_spec='${libname}${release}.a $libname.a'
15668 soname_spec='${libname}${release}${shared_ext}$major'
15670 shlibpath_var=LIBPATH
15677 # Since July 2007 AmigaOS4 officially supports .so libraries.
15678 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15679 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15682 library_names_spec='$libname.ixlibrary $libname.a'
15683 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15684 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'
15690 library_names_spec='${libname}${shared_ext}'
15691 dynamic_linker="$host_os ld.so"
15692 shlibpath_var=LIBRARY_PATH
15696 version_type=linux # correct to gnu/linux during the next big refactor
15698 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15699 soname_spec='${libname}${release}${shared_ext}$major'
15700 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15701 shlibpath_var=LD_LIBRARY_PATH
15702 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15703 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15704 # the default ld.so.conf also contains /usr/contrib/lib and
15705 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15706 # libtool to hard-code these into programs
15709 cygwin* | mingw* | pw32* | cegcc*)
15710 version_type=windows
15715 case $GCC,$cc_basename in
15718 library_names_spec='$libname.dll.a'
15719 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15720 postinstall_cmds='base_file=`basename \${file}`~
15721 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15722 dldir=$destdir/`dirname \$dlpath`~
15723 test -d \$dldir || mkdir -p \$dldir~
15724 $install_prog $dir/$dlname \$dldir/$dlname~
15725 chmod a+x \$dldir/$dlname~
15726 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15727 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15729 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15730 dlpath=$dir/\$dldll~
15732 shlibpath_overrides_runpath=yes
15736 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15737 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15741 # MinGW DLLs use traditional 'lib' prefix
15742 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15745 # pw32 DLLs use 'pw' prefix rather than 'lib'
15746 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15749 dynamic_linker='Win32 ld.exe'
15754 libname_spec='$name'
15755 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15756 library_names_spec='${libname}.dll.lib'
15760 sys_lib_search_path_spec=
15763 for lt_path in $LIB
15766 # Let DOS variable expansion print the short 8.3 style file name.
15767 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15768 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15771 # Convert to MSYS style.
15772 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15775 # Convert to unix form, then to dos form, then back to unix form
15776 # but this time dos style (no spaces!) so that the unix form looks
15777 # like /cygdrive/c/PROGRA~1:/cygdr...
15778 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15779 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15780 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15783 sys_lib_search_path_spec="$LIB"
15784 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15785 # It is most probably a Windows format PATH.
15786 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15788 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15790 # FIXME: find the short name or the path components, as spaces are
15791 # common. (e.g. "Program Files" -> "PROGRA~1")
15795 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15796 postinstall_cmds='base_file=`basename \${file}`~
15797 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15798 dldir=$destdir/`dirname \$dlpath`~
15799 test -d \$dldir || mkdir -p \$dldir~
15800 $install_prog $dir/$dlname \$dldir/$dlname'
15801 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15802 dlpath=$dir/\$dldll~
15804 shlibpath_overrides_runpath=yes
15805 dynamic_linker='Win32 link.exe'
15809 # Assume MSVC wrapper
15810 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15811 dynamic_linker='Win32 ld.exe'
15814 # FIXME: first we should search . and the directory the executable is in
15818 darwin* | rhapsody*)
15819 dynamic_linker="$host_os dyld"
15820 version_type=darwin
15823 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15824 soname_spec='${libname}${release}${major}$shared_ext'
15825 shlibpath_overrides_runpath=yes
15826 shlibpath_var=DYLD_LIBRARY_PATH
15827 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15829 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15833 version_type=linux # correct to gnu/linux during the next big refactor
15836 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15837 soname_spec='${libname}${release}${shared_ext}$major'
15838 shlibpath_var=LD_LIBRARY_PATH
15841 freebsd* | dragonfly*)
15842 # DragonFly does not have aout. When/if they implement a new
15843 # versioning mechanism, adjust this.
15844 if test -x /usr/bin/objformat; then
15845 objformat=`/usr/bin/objformat`
15848 freebsd[23].*) objformat=aout ;;
15849 *) objformat=elf ;;
15852 version_type=freebsd-$objformat
15853 case $version_type in
15855 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15860 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15864 shlibpath_var=LD_LIBRARY_PATH
15867 shlibpath_overrides_runpath=yes
15869 freebsd3.[01]* | freebsdelf3.[01]*)
15870 shlibpath_overrides_runpath=yes
15871 hardcode_into_libs=yes
15873 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15874 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15875 shlibpath_overrides_runpath=no
15876 hardcode_into_libs=yes
15878 *) # from 4.6 on, and DragonFly
15879 shlibpath_overrides_runpath=yes
15880 hardcode_into_libs=yes
15886 version_type=linux # correct to gnu/linux during the next big refactor
15889 dynamic_linker="$host_os runtime_loader"
15890 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15891 soname_spec='${libname}${release}${shared_ext}$major'
15892 shlibpath_var=LIBRARY_PATH
15893 shlibpath_overrides_runpath=yes
15894 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15895 hardcode_into_libs=yes
15898 hpux9* | hpux10* | hpux11*)
15899 # Give a soname corresponding to the major version so that dld.sl refuses to
15900 # link against other versions.
15907 hardcode_into_libs=yes
15908 dynamic_linker="$host_os dld.so"
15909 shlibpath_var=LD_LIBRARY_PATH
15910 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15911 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15912 soname_spec='${libname}${release}${shared_ext}$major'
15913 if test "X$HPUX_IA64_MODE" = X32; then
15914 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15916 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15918 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15922 hardcode_into_libs=yes
15923 dynamic_linker="$host_os dld.sl"
15924 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15925 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15926 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15927 soname_spec='${libname}${release}${shared_ext}$major'
15928 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15929 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15933 dynamic_linker="$host_os dld.sl"
15934 shlibpath_var=SHLIB_PATH
15935 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
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'
15940 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15941 postinstall_cmds='chmod 555 $lib'
15942 # or fails outright, so override atomically:
15943 install_override_mode=555
15947 version_type=linux # correct to gnu/linux during the next big refactor
15950 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15951 soname_spec='${libname}${release}${shared_ext}$major'
15952 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15953 shlibpath_var=LD_LIBRARY_PATH
15954 shlibpath_overrides_runpath=no
15955 hardcode_into_libs=yes
15958 irix5* | irix6* | nonstopux*)
15960 nonstopux*) version_type=nonstopux ;;
15962 if test "$lt_cv_prog_gnu_ld" = yes; then
15963 version_type=linux # correct to gnu/linux during the next big refactor
15970 soname_spec='${libname}${release}${shared_ext}$major'
15971 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15973 irix5* | nonstopux*)
15974 libsuff= shlibsuff=
15977 case $LD in # libtool.m4 will add one of these switches to LD
15978 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15979 libsuff= shlibsuff= libmagic=32-bit;;
15980 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15981 libsuff=32 shlibsuff=N32 libmagic=N32;;
15982 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15983 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15984 *) libsuff= shlibsuff= libmagic=never-match;;
15988 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15989 shlibpath_overrides_runpath=no
15990 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15991 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15992 hardcode_into_libs=yes
15995 # No shared lib support for Linux oldld, aout, or coff.
15996 linux*oldld* | linux*aout* | linux*coff*)
16000 # This must be glibc/ELF.
16001 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
16002 version_type=linux # correct to gnu/linux during the next big refactor
16005 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16006 soname_spec='${libname}${release}${shared_ext}$major'
16007 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16008 shlibpath_var=LD_LIBRARY_PATH
16009 shlibpath_overrides_runpath=no
16011 # Some binutils ld are patched to set DT_RUNPATH
16012 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
16013 $as_echo_n "(cached) " >&6
16015 lt_cv_shlibpath_overrides_runpath=no
16016 save_LDFLAGS=$LDFLAGS
16017 save_libdir=$libdir
16018 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
16019 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
16020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16021 /* end confdefs.h. */
16031 if ac_fn_cxx_try_link "$LINENO"; then :
16032 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
16033 lt_cv_shlibpath_overrides_runpath=yes
16036 rm -f core conftest.err conftest.$ac_objext \
16037 conftest$ac_exeext conftest.$ac_ext
16038 LDFLAGS=$save_LDFLAGS
16039 libdir=$save_libdir
16043 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16045 # This implies no fast_install, which is unacceptable.
16046 # Some rework will be needed to allow for fast_install
16047 # before this can be enabled.
16048 hardcode_into_libs=yes
16050 # Append ld.so.conf contents to the search path
16051 if test -f /etc/ld.so.conf; then
16052 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' ' '`
16053 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16056 # We used to test for /lib/ld.so.1 and disable shared libraries on
16057 # powerpc, because MkLinux only supported shared libraries with the
16058 # GNU dynamic linker. Since this was broken with cross compilers,
16059 # most powerpc-linux boxes support dynamic linking these days and
16060 # people can always --disable-shared, the test was removed, and we
16061 # assume the GNU/Linux dynamic linker is in use.
16062 dynamic_linker='GNU/Linux ld.so'
16069 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16070 soname_spec='${libname}${release}${shared_ext}$major'
16071 shlibpath_var=LD_LIBRARY_PATH
16072 shlibpath_overrides_runpath=no
16073 hardcode_into_libs=yes
16074 dynamic_linker='NetBSD ld.elf_so'
16081 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16082 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16083 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16084 dynamic_linker='NetBSD (a.out) ld.so'
16086 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16087 soname_spec='${libname}${release}${shared_ext}$major'
16088 dynamic_linker='NetBSD ld.elf_so'
16090 shlibpath_var=LD_LIBRARY_PATH
16091 shlibpath_overrides_runpath=yes
16092 hardcode_into_libs=yes
16096 version_type=linux # correct to gnu/linux during the next big refactor
16097 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16098 shlibpath_var=LD_LIBRARY_PATH
16099 shlibpath_overrides_runpath=yes
16106 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16107 soname_spec='${libname}${release}${shared_ext}$major'
16108 shlibpath_var=LD_LIBRARY_PATH
16109 shlibpath_overrides_runpath=no
16110 hardcode_into_libs=yes
16111 dynamic_linker='ldqnx.so'
16116 sys_lib_dlsearch_path_spec="/usr/lib"
16118 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16120 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16121 *) need_version=no ;;
16123 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16124 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16125 shlibpath_var=LD_LIBRARY_PATH
16126 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16128 openbsd2.[89] | openbsd2.[89].*)
16129 shlibpath_overrides_runpath=no
16132 shlibpath_overrides_runpath=yes
16136 shlibpath_overrides_runpath=yes
16141 libname_spec='$name'
16144 library_names_spec='$libname${shared_ext} $libname.a'
16145 dynamic_linker='OS/2 ld.exe'
16146 shlibpath_var=LIBPATH
16149 osf3* | osf4* | osf5*)
16153 soname_spec='${libname}${release}${shared_ext}$major'
16154 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16155 shlibpath_var=LD_LIBRARY_PATH
16156 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16157 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16165 version_type=linux # correct to gnu/linux during the next big refactor
16168 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16169 soname_spec='${libname}${release}${shared_ext}$major'
16170 shlibpath_var=LD_LIBRARY_PATH
16171 shlibpath_overrides_runpath=yes
16172 hardcode_into_libs=yes
16173 # ldd complains unless libraries are executable
16174 postinstall_cmds='chmod +x $lib'
16179 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16180 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16181 shlibpath_var=LD_LIBRARY_PATH
16182 shlibpath_overrides_runpath=yes
16183 if test "$with_gnu_ld" = yes; then
16190 version_type=linux # correct to gnu/linux during the next big refactor
16191 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16192 soname_spec='${libname}${release}${shared_ext}$major'
16193 shlibpath_var=LD_LIBRARY_PATH
16194 case $host_vendor in
16196 shlibpath_overrides_runpath=no
16198 runpath_var=LD_RUN_PATH
16206 shlibpath_overrides_runpath=no
16207 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16213 if test -d /usr/nec ;then
16214 version_type=linux # correct to gnu/linux during the next big refactor
16215 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16216 soname_spec='$libname${shared_ext}.$major'
16217 shlibpath_var=LD_LIBRARY_PATH
16221 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16222 version_type=freebsd-elf
16225 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16226 soname_spec='${libname}${release}${shared_ext}$major'
16227 shlibpath_var=LD_LIBRARY_PATH
16228 shlibpath_overrides_runpath=yes
16229 hardcode_into_libs=yes
16230 if test "$with_gnu_ld" = yes; then
16231 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16233 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16236 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16240 sys_lib_dlsearch_path_spec='/usr/lib'
16244 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
16245 version_type=linux # correct to gnu/linux during the next big refactor
16248 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16249 shlibpath_var=LD_LIBRARY_PATH
16250 shlibpath_overrides_runpath=no
16251 hardcode_into_libs=yes
16255 version_type=linux # correct to gnu/linux during the next big refactor
16256 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16257 soname_spec='${libname}${release}${shared_ext}$major'
16258 shlibpath_var=LD_LIBRARY_PATH
16265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16266 $as_echo "$dynamic_linker" >&6; }
16267 test "$dynamic_linker" = no && can_build_shared=no
16269 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16270 if test "$GCC" = yes; then
16271 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16274 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16275 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16277 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16278 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16319 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16320 hardcode_action_CXX=
16321 if test -n "$hardcode_libdir_flag_spec_CXX" ||
16322 test -n "$runpath_var_CXX" ||
16323 test "X$hardcode_automatic_CXX" = "Xyes" ; then
16325 # We can hardcode non-existent directories.
16326 if test "$hardcode_direct_CXX" != no &&
16327 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16328 # have to relink, otherwise we might link with an installed library
16329 # when we should be linking with a yet-to-be-installed one
16330 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
16331 test "$hardcode_minus_L_CXX" != no; then
16332 # Linking always hardcodes the temporary library directory.
16333 hardcode_action_CXX=relink
16335 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16336 hardcode_action_CXX=immediate
16339 # We cannot hardcode anything, or else we can only hardcode existing
16341 hardcode_action_CXX=unsupported
16343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
16344 $as_echo "$hardcode_action_CXX" >&6; }
16346 if test "$hardcode_action_CXX" = relink ||
16347 test "$inherit_rpath_CXX" = yes; then
16348 # Fast installation is not supported
16349 enable_fast_install=no
16350 elif test "$shlibpath_overrides_runpath" = yes ||
16351 test "$enable_shared" = no; then
16352 # Fast installation is not necessary
16353 enable_fast_install=needless
16362 fi # test -n "$compiler"
16365 CFLAGS=$lt_save_CFLAGS
16369 with_gnu_ld=$lt_save_with_gnu_ld
16370 lt_cv_path_LDCXX=$lt_cv_path_LD
16371 lt_cv_path_LD=$lt_save_path_LD
16372 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16373 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16374 fi # test "$_lt_caught_CXX_error" != yes
16377 ac_cpp='$CPP $CPPFLAGS'
16378 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16379 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16380 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16396 ac_config_commands="$ac_config_commands libtool"
16401 # Only expand once:
16409 ac_cpp='$CPP $CPPFLAGS'
16410 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16411 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16412 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
16417 $as_echo_n "checking for library containing dlopen... " >&6; }
16418 if ${ac_cv_search_dlopen+:} false; then :
16419 $as_echo_n "(cached) " >&6
16421 ac_func_search_save_LIBS=$LIBS
16422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16423 /* end confdefs.h. */
16425 /* Override any GCC internal prototype to avoid an error.
16426 Use char because int might match the return type of a GCC
16427 builtin and then its argument prototype would still apply. */
16440 for ac_lib in '' dl; do
16441 if test -z "$ac_lib"; then
16442 ac_res="none required"
16445 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16447 if ac_fn_c_try_link "$LINENO"; then :
16448 ac_cv_search_dlopen=$ac_res
16450 rm -f core conftest.err conftest.$ac_objext \
16452 if ${ac_cv_search_dlopen+:} false; then :
16456 if ${ac_cv_search_dlopen+:} false; then :
16459 ac_cv_search_dlopen=no
16461 rm conftest.$ac_ext
16462 LIBS=$ac_func_search_save_LIBS
16464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
16465 $as_echo "$ac_cv_search_dlopen" >&6; }
16466 ac_res=$ac_cv_search_dlopen
16467 if test "$ac_res" != no; then :
16468 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16470 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
16472 if test "$ac_cv_search_dlopen" != "none required" ; then
16473 LIBADD_DLOPEN="-ldl"
16475 libltdl_cv_lib_dl_dlopen="yes"
16476 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
16478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16479 /* end confdefs.h. */
16481 # include <dlfcn.h>
16492 if ac_fn_c_try_link "$LINENO"; then :
16494 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
16496 libltdl_cv_func_dlopen="yes"
16497 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
16499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
16500 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
16501 if ${ac_cv_lib_svld_dlopen+:} false; then :
16502 $as_echo_n "(cached) " >&6
16504 ac_check_lib_save_LIBS=$LIBS
16505 LIBS="-lsvld $LIBS"
16506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16507 /* end confdefs.h. */
16509 /* Override any GCC internal prototype to avoid an error.
16510 Use char because int might match the return type of a GCC
16511 builtin and then its argument prototype would still apply. */
16524 if ac_fn_c_try_link "$LINENO"; then :
16525 ac_cv_lib_svld_dlopen=yes
16527 ac_cv_lib_svld_dlopen=no
16529 rm -f core conftest.err conftest.$ac_objext \
16530 conftest$ac_exeext conftest.$ac_ext
16531 LIBS=$ac_check_lib_save_LIBS
16533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
16534 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
16535 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
16537 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
16539 LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
16540 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
16544 rm -f core conftest.err conftest.$ac_objext \
16545 conftest$ac_exeext conftest.$ac_ext
16548 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
16550 lt_save_LIBS="$LIBS"
16551 LIBS="$LIBS $LIBADD_DLOPEN"
16552 for ac_func in dlerror
16554 ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror"
16555 if test "x$ac_cv_func_dlerror" = xyes; then :
16556 cat >>confdefs.h <<_ACEOF
16557 #define HAVE_DLERROR 1
16563 LIBS="$lt_save_LIBS"
16568 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
16569 if test "x$ac_cv_func_shl_load" = xyes; then :
16571 $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
16573 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
16575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
16576 $as_echo_n "checking for shl_load in -ldld... " >&6; }
16577 if ${ac_cv_lib_dld_shl_load+:} false; then :
16578 $as_echo_n "(cached) " >&6
16580 ac_check_lib_save_LIBS=$LIBS
16582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16583 /* end confdefs.h. */
16585 /* Override any GCC internal prototype to avoid an error.
16586 Use char because int might match the return type of a GCC
16587 builtin and then its argument prototype would still apply. */
16595 return shl_load ();
16600 if ac_fn_c_try_link "$LINENO"; then :
16601 ac_cv_lib_dld_shl_load=yes
16603 ac_cv_lib_dld_shl_load=no
16605 rm -f core conftest.err conftest.$ac_objext \
16606 conftest$ac_exeext conftest.$ac_ext
16607 LIBS=$ac_check_lib_save_LIBS
16609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
16610 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
16611 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
16613 $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
16615 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
16616 LIBADD_SHL_LOAD="-ldld"
16625 # We only want this for pre-Mac OS X 10.4.
16626 ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup"
16627 if test "x$ac_cv_func__dyld_func_lookup" = xyes; then :
16629 $as_echo "#define HAVE_DYLD 1" >>confdefs.h
16631 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
16636 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
16638 cygwin* | mingw* | os2* | pw32*)
16639 ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h>
16641 if test "x$ac_cv_have_decl_cygwin_conv_path" = xyes; then :
16647 cat >>confdefs.h <<_ACEOF
16648 #define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl
16651 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
16655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
16656 $as_echo_n "checking for dld_link in -ldld... " >&6; }
16657 if ${ac_cv_lib_dld_dld_link+:} false; then :
16658 $as_echo_n "(cached) " >&6
16660 ac_check_lib_save_LIBS=$LIBS
16662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16663 /* end confdefs.h. */
16665 /* Override any GCC internal prototype to avoid an error.
16666 Use char because int might match the return type of a GCC
16667 builtin and then its argument prototype would still apply. */
16675 return dld_link ();
16680 if ac_fn_c_try_link "$LINENO"; then :
16681 ac_cv_lib_dld_dld_link=yes
16683 ac_cv_lib_dld_dld_link=no
16685 rm -f core conftest.err conftest.$ac_objext \
16686 conftest$ac_exeext conftest.$ac_ext
16687 LIBS=$ac_check_lib_save_LIBS
16689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
16690 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
16691 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
16693 $as_echo "#define HAVE_DLD 1" >>confdefs.h
16695 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
16702 if test -n "$LT_DLLOADERS"
16704 for lt_loader in $LT_DLLOADERS; do
16705 LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
16708 $as_echo "#define HAVE_LIBDLLOADER 1" >>confdefs.h
16713 LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
16717 ac_cpp='$CPP $CPPFLAGS'
16718 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16719 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16720 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16725 if test x$use_libtool != xno; then
16726 DEFAULT_OBJECT_TYPE=".lo"
16727 DEFAULT_ARCHIVE_TYPE=".la"
16728 DEFAULT_SHARED_OBJECT_TYPE=".la"
16729 LIBTOOL="\$(LIBTOOL)"
16730 LIBTOOL_INSTALL_TARGET="libtool-install"
16731 LIBTOOL_UNINSTALL_TARGET="libtool-uninstall"
16732 LIBTOOL_CLEAN_TARGET="libtool-clean"
16733 QMAKE_LIBTOOL="${BUILD_DIR}/libtool"
16734 FD_PLUGIN_DIR="src/plugins/fd"
16737 DEFAULT_OBJECT_TYPE=".o"
16738 DEFAULT_ARCHIVE_TYPE=".a"
16739 DEFAULT_SHARED_OBJECT_TYPE=".so"
16740 LIBTOOL="# \$(LIBTOOL)"
16741 LIBTOOL_INSTALL_TARGET=""
16742 LIBTOOL_UNINSTALL_TARGET=""
16743 LIBTOOL_CLEAN_TARGET=""
16744 QMAKE_LIBTOOL="# ${BUILD_DIR}/libtool"
16759 # Check whether --enable-includes was given.
16760 if test "${enable_includes+set}" = set; then :
16761 enableval=$enable_includes;
16762 if test x$enableval = xyes; then
16763 install_includes=yes
16771 if test x$use_libtool != xno -a x$install_includes = xyes; then
16772 INCLUDE_INSTALL_TARGET="install-includes"
16773 INCLUDE_UNINSTALL_TARGET="uninstall-includes"
16775 INCLUDE_INSTALL_TARGET=""
16776 INCLUDE_UNINSTALL_TARGET=""
16784 *cygwin* ) CYGWIN=yes;;
16788 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
16794 HAVE_SUN_OS_FALSE='#'
16796 HAVE_SUN_OS_TRUE='#'
16799 $as_echo "#define HAVE_SUN_OS 1" >>confdefs.h
16806 HAVE_SUN_OS_FALSE='#'
16808 HAVE_SUN_OS_TRUE='#'
16813 if test $HAVE_UNAME=yes -a x`uname -s` = xGNU
16819 HAVE_HURD_OS_FALSE='#'
16821 HAVE_HURD_OS_TRUE='#'
16822 HAVE_HURD_OS_FALSE=
16824 $as_echo "#define HAVE_HURD_OS 1" >>confdefs.h
16831 HAVE_HURD_OS_FALSE='#'
16833 HAVE_HURD_OS_TRUE='#'
16834 HAVE_HURD_OS_FALSE=
16838 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
16844 HAVE_OSF1_OS_FALSE='#'
16846 HAVE_OSF1_OS_TRUE='#'
16847 HAVE_OSF1_OS_FALSE=
16849 $as_echo "#define HAVE_OSF1_OS 1" >>confdefs.h
16856 HAVE_OSF1_OS_FALSE='#'
16858 HAVE_OSF1_OS_TRUE='#'
16859 HAVE_OSF1_OS_FALSE=
16863 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
16869 HAVE_AIX_OS_FALSE='#'
16871 HAVE_AIX_OS_TRUE='#'
16874 $as_echo "#define HAVE_AIX_OS 1" >>confdefs.h
16881 HAVE_AIX_OS_FALSE='#'
16883 HAVE_AIX_OS_TRUE='#'
16888 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
16894 HAVE_HPUX_OS_FALSE='#'
16896 HAVE_HPUX_OS_TRUE='#'
16897 HAVE_HPUX_OS_FALSE=
16899 $as_echo "#define HAVE_HPUX_OS 1" >>confdefs.h
16906 HAVE_HPUX_OS_FALSE='#'
16908 HAVE_HPUX_OS_TRUE='#'
16909 HAVE_HPUX_OS_FALSE=
16913 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
16918 HAVE_LINUX_OS_TRUE=
16919 HAVE_LINUX_OS_FALSE='#'
16921 HAVE_LINUX_OS_TRUE='#'
16922 HAVE_LINUX_OS_FALSE=
16924 $as_echo "#define HAVE_LINUX_OS 1" >>confdefs.h
16930 HAVE_LINUX_OS_TRUE=
16931 HAVE_LINUX_OS_FALSE='#'
16933 HAVE_LINUX_OS_TRUE='#'
16934 HAVE_LINUX_OS_FALSE=
16938 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
16943 HAVE_FREEBSD_OS_TRUE=
16944 HAVE_FREEBSD_OS_FALSE='#'
16946 HAVE_FREEBSD_OS_TRUE='#'
16947 HAVE_FREEBSD_OS_FALSE=
16949 $as_echo "#define HAVE_FREEBSD_OS 1" >>confdefs.h
16955 HAVE_FREEBSD_OS_TRUE=
16956 HAVE_FREEBSD_OS_FALSE='#'
16958 HAVE_FREEBSD_OS_TRUE='#'
16959 HAVE_FREEBSD_OS_FALSE=
16963 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
16968 HAVE_NETBSD_OS_TRUE=
16969 HAVE_NETBSD_OS_FALSE='#'
16971 HAVE_NETBSD_OS_TRUE='#'
16972 HAVE_NETBSD_OS_FALSE=
16974 $as_echo "#define HAVE_NETBSD_OS 1" >>confdefs.h
16980 HAVE_NETBSD_OS_TRUE=
16981 HAVE_NETBSD_OS_FALSE='#'
16983 HAVE_NETBSD_OS_TRUE='#'
16984 HAVE_NETBSD_OS_FALSE=
16988 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
16993 HAVE_OPENBSD_OS_TRUE=
16994 HAVE_OPENBSD_OS_FALSE='#'
16996 HAVE_OPENBSD_OS_TRUE='#'
16997 HAVE_OPENBSD_OS_FALSE=
16999 $as_echo "#define HAVE_OPENBSD_OS 1" >>confdefs.h
17005 HAVE_OPENBSD_OS_TRUE=
17006 HAVE_OPENBSD_OS_FALSE='#'
17008 HAVE_OPENBSD_OS_TRUE='#'
17009 HAVE_OPENBSD_OS_FALSE=
17013 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
17019 HAVE_BSDI_OS_FALSE='#'
17021 HAVE_BSDI_OS_TRUE='#'
17022 HAVE_BSDI_OS_FALSE=
17024 $as_echo "#define HAVE_BSDI_OS 1" >>confdefs.h
17031 HAVE_BSDI_OS_FALSE='#'
17033 HAVE_BSDI_OS_TRUE='#'
17034 HAVE_BSDI_OS_FALSE=
17038 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
17044 HAVE_SGI_OS_FALSE='#'
17046 HAVE_SGI_OS_TRUE='#'
17049 $as_echo "#define HAVE_SGI_OS 1" >>confdefs.h
17056 HAVE_SGI_OS_FALSE='#'
17058 HAVE_SGI_OS_TRUE='#'
17063 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX -o x`uname -s` = xIRIX64
17069 HAVE_IRIX_OS_FALSE='#'
17071 HAVE_IRIX_OS_TRUE='#'
17072 HAVE_IRIX_OS_FALSE=
17074 $as_echo "#define HAVE_IRIX_OS 1" >>confdefs.h
17081 HAVE_IRIX_OS_FALSE='#'
17083 HAVE_IRIX_OS_TRUE='#'
17084 HAVE_IRIX_OS_FALSE=
17088 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
17093 HAVE_DARWIN_OS_TRUE=
17094 HAVE_DARWIN_OS_FALSE='#'
17096 HAVE_DARWIN_OS_TRUE='#'
17097 HAVE_DARWIN_OS_FALSE=
17099 $as_echo "#define HAVE_DARWIN_OS 1" >>confdefs.h
17105 HAVE_DARWIN_OS_TRUE=
17106 HAVE_DARWIN_OS_FALSE='#'
17108 HAVE_DARWIN_OS_TRUE='#'
17109 HAVE_DARWIN_OS_FALSE=
17114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Operating System Distribution" >&5
17115 $as_echo_n "checking for Operating System Distribution... " >&6; }
17116 if test "x$DISTNAME" != "x"
17118 echo "distname set to $DISTNAME"
17119 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
17122 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
17125 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
17128 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
17131 elif test $HAVE_UNAME=yes -a x`uname -s` = xGNU
17134 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
17137 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
17140 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
17143 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
17146 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
17149 elif test -f /etc/SuSE-release
17152 elif test -d /etc/SuSEconfig
17155 elif test -f /etc/mandrake-release
17158 elif test -f /etc/whitebox-release
17161 elif test -f /etc/redhat-release
17164 elif test -f /etc/gentoo-release
17167 elif test -f /etc/debian_version
17170 elif test -f /etc/slackware-version
17173 elif test x$host_vendor = xapple
17176 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
17179 elif test -f /etc/engarde-version
17182 elif test -f /etc/arch-release
17185 elif test "$CYGWIN" = yes
17188 $as_echo "#define HAVE_CYGWIN 1" >>confdefs.h
17193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
17194 $as_echo "done" >&6; }
17197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
17198 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
17200 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
17201 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
17202 $as_echo_n "(cached) " >&6
17204 cat >conftest.make <<\_ACEOF
17207 @echo '@@@%%%=$(MAKE)=@@@%%%'
17209 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
17210 case `${MAKE-make} -f conftest.make 2>/dev/null` in
17211 *@@@%%%=?*=@@@%%%*)
17212 eval ac_cv_prog_make_${ac_make}_set=yes;;
17214 eval ac_cv_prog_make_${ac_make}_set=no;;
17216 rm -f conftest.make
17218 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
17219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17220 $as_echo "yes" >&6; }
17223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17224 $as_echo "no" >&6; }
17225 SET_MAKE="MAKE=${MAKE-make}"
17231 if test -n "$ac_aux_dir"; then
17232 case "$ac_aux_dir" in
17233 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
17234 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
17237 if test -z "$MKINSTALLDIRS"; then
17238 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
17243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
17244 $as_echo_n "checking whether NLS is requested... " >&6; }
17245 # Check whether --enable-nls was given.
17246 if test "${enable_nls+set}" = set; then :
17247 enableval=$enable_nls; USE_NLS=$enableval
17252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
17253 $as_echo "$USE_NLS" >&6; }
17260 # Prepare PATH_SEPARATOR.
17261 # The user is always right.
17262 if test "${PATH_SEPARATOR+set}" != set; then
17263 echo "#! /bin/sh" >conf$$.sh
17264 echo "exit 0" >>conf$$.sh
17266 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17274 # Find out how to test for executable files. Don't use a zero-byte file,
17275 # as systems may use methods other than mode bits to determine executability.
17276 cat >conf$$.file <<_ASEOF
17280 chmod +x conf$$.file
17281 if test -x conf$$.file >/dev/null 2>&1; then
17282 ac_executable_p="test -x"
17284 ac_executable_p="test -f"
17288 # Extract the first word of "msgfmt", so it can be a program name with args.
17289 set dummy msgfmt; ac_word=$2
17290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17291 $as_echo_n "checking for $ac_word... " >&6; }
17292 if ${ac_cv_path_MSGFMT+:} false; then :
17293 $as_echo_n "(cached) " >&6
17297 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
17300 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
17301 for ac_dir in $PATH; do
17303 test -z "$ac_dir" && ac_dir=.
17304 for ac_exec_ext in '' $ac_executable_extensions; do
17305 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
17306 echo "$as_me: trying $ac_dir/$ac_word..." >&5
17307 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
17308 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
17309 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
17316 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
17320 MSGFMT="$ac_cv_path_MSGFMT"
17321 if test "$MSGFMT" != ":"; then
17322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
17323 $as_echo "$MSGFMT" >&6; }
17325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17326 $as_echo "no" >&6; }
17329 # Extract the first word of "gmsgfmt", so it can be a program name with args.
17330 set dummy gmsgfmt; ac_word=$2
17331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17332 $as_echo_n "checking for $ac_word... " >&6; }
17333 if ${ac_cv_path_GMSGFMT+:} false; then :
17334 $as_echo_n "(cached) " >&6
17338 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
17341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17342 for as_dir in $PATH
17345 test -z "$as_dir" && as_dir=.
17346 for ac_exec_ext in '' $ac_executable_extensions; do
17347 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17348 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
17349 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17356 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
17360 GMSGFMT=$ac_cv_path_GMSGFMT
17361 if test -n "$GMSGFMT"; then
17362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
17363 $as_echo "$GMSGFMT" >&6; }
17365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17366 $as_echo "no" >&6; }
17372 # Prepare PATH_SEPARATOR.
17373 # The user is always right.
17374 if test "${PATH_SEPARATOR+set}" != set; then
17375 echo "#! /bin/sh" >conf$$.sh
17376 echo "exit 0" >>conf$$.sh
17378 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17386 # Find out how to test for executable files. Don't use a zero-byte file,
17387 # as systems may use methods other than mode bits to determine executability.
17388 cat >conf$$.file <<_ASEOF
17392 chmod +x conf$$.file
17393 if test -x conf$$.file >/dev/null 2>&1; then
17394 ac_executable_p="test -x"
17396 ac_executable_p="test -f"
17400 # Extract the first word of "xgettext", so it can be a program name with args.
17401 set dummy xgettext; ac_word=$2
17402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17403 $as_echo_n "checking for $ac_word... " >&6; }
17404 if ${ac_cv_path_XGETTEXT+:} false; then :
17405 $as_echo_n "(cached) " >&6
17407 case "$XGETTEXT" in
17409 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
17412 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
17413 for ac_dir in $PATH; do
17415 test -z "$ac_dir" && ac_dir=.
17416 for ac_exec_ext in '' $ac_executable_extensions; do
17417 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
17418 echo "$as_me: trying $ac_dir/$ac_word..." >&5
17419 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
17420 (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
17421 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
17428 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
17432 XGETTEXT="$ac_cv_path_XGETTEXT"
17433 if test "$XGETTEXT" != ":"; then
17434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
17435 $as_echo "$XGETTEXT" >&6; }
17437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17438 $as_echo "no" >&6; }
17444 # Prepare PATH_SEPARATOR.
17445 # The user is always right.
17446 if test "${PATH_SEPARATOR+set}" != set; then
17447 echo "#! /bin/sh" >conf$$.sh
17448 echo "exit 0" >>conf$$.sh
17450 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17458 # Find out how to test for executable files. Don't use a zero-byte file,
17459 # as systems may use methods other than mode bits to determine executability.
17460 cat >conf$$.file <<_ASEOF
17464 chmod +x conf$$.file
17465 if test -x conf$$.file >/dev/null 2>&1; then
17466 ac_executable_p="test -x"
17468 ac_executable_p="test -f"
17472 # Extract the first word of "msgmerge", so it can be a program name with args.
17473 set dummy msgmerge; ac_word=$2
17474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17475 $as_echo_n "checking for $ac_word... " >&6; }
17476 if ${ac_cv_path_MSGMERGE+:} false; then :
17477 $as_echo_n "(cached) " >&6
17479 case "$MSGMERGE" in
17481 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
17484 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
17485 for ac_dir in $PATH; do
17487 test -z "$ac_dir" && ac_dir=.
17488 for ac_exec_ext in '' $ac_executable_extensions; do
17489 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
17490 echo "$as_me: trying $ac_dir/$ac_word..." >&5
17491 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
17492 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
17499 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
17503 MSGMERGE="$ac_cv_path_MSGMERGE"
17504 if test "$MSGMERGE" != ":"; then
17505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
17506 $as_echo "$MSGMERGE" >&6; }
17508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17509 $as_echo "no" >&6; }
17513 if test "$GMSGFMT" != ":"; then
17514 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
17515 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
17518 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
17519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
17520 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
17525 if test "$XGETTEXT" != ":"; then
17526 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
17527 (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
17530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
17531 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
17537 ac_config_commands="$ac_config_commands default-1"
17541 if test "X$prefix" = "XNONE"; then
17542 acl_final_prefix="$ac_default_prefix"
17544 acl_final_prefix="$prefix"
17546 if test "X$exec_prefix" = "XNONE"; then
17547 acl_final_exec_prefix='${prefix}'
17549 acl_final_exec_prefix="$exec_prefix"
17551 acl_save_prefix="$prefix"
17552 prefix="$acl_final_prefix"
17553 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
17554 prefix="$acl_save_prefix"
17557 # Check whether --with-gnu-ld was given.
17558 if test "${with_gnu_ld+set}" = set; then :
17559 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
17564 # Prepare PATH_SEPARATOR.
17565 # The user is always right.
17566 if test "${PATH_SEPARATOR+set}" != set; then
17567 echo "#! /bin/sh" >conf$$.sh
17568 echo "exit 0" >>conf$$.sh
17570 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17578 if test "$GCC" = yes; then
17579 # Check if gcc -print-prog-name=ld gives a path.
17580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
17581 $as_echo_n "checking for ld used by GCC... " >&6; }
17584 # gcc leaves a trailing carriage return which upsets mingw
17585 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17587 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
17590 # Accept absolute paths.
17591 [\\/]* | [A-Za-z]:[\\/]*)
17592 re_direlt='/[^/][^/]*/\.\./'
17593 # Canonicalize the path of ld
17594 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
17595 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
17596 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
17598 test -z "$LD" && LD="$ac_prog"
17601 # If it fails, then pretend we aren't using GCC.
17605 # If it is relative, then search for the first ld in PATH.
17606 with_gnu_ld=unknown
17609 elif test "$with_gnu_ld" = yes; then
17610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
17611 $as_echo_n "checking for GNU ld... " >&6; }
17613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
17614 $as_echo_n "checking for non-GNU ld... " >&6; }
17616 if ${acl_cv_path_LD+:} false; then :
17617 $as_echo_n "(cached) " >&6
17619 if test -z "$LD"; then
17620 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
17621 for ac_dir in $PATH; do
17622 test -z "$ac_dir" && ac_dir=.
17623 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
17624 acl_cv_path_LD="$ac_dir/$ac_prog"
17625 # Check to see if the program is GNU ld. I'd rather use --version,
17626 # but apparently some GNU ld's only accept -v.
17627 # Break only if it was the GNU/non-GNU ld that we prefer.
17628 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
17629 *GNU* | *'with BFD'*)
17630 test "$with_gnu_ld" != no && break ;;
17632 test "$with_gnu_ld" != yes && break ;;
17638 acl_cv_path_LD="$LD" # Let the user override the test with a path.
17642 LD="$acl_cv_path_LD"
17643 if test -n "$LD"; then
17644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
17645 $as_echo "$LD" >&6; }
17647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17648 $as_echo "no" >&6; }
17650 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
17651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
17652 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
17653 if ${acl_cv_prog_gnu_ld+:} false; then :
17654 $as_echo_n "(cached) " >&6
17656 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
17657 case `$LD -v 2>&1 </dev/null` in
17658 *GNU* | *'with BFD'*)
17659 acl_cv_prog_gnu_ld=yes ;;
17661 acl_cv_prog_gnu_ld=no ;;
17664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
17665 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
17666 with_gnu_ld=$acl_cv_prog_gnu_ld
17671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
17672 $as_echo_n "checking for shared library run path origin... " >&6; }
17673 if ${acl_cv_rpath+:} false; then :
17674 $as_echo_n "(cached) " >&6
17677 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
17678 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
17680 rm -f ./conftest.sh
17684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
17685 $as_echo "$acl_cv_rpath" >&6; }
17687 libext="$acl_cv_libext"
17688 shlibext="$acl_cv_shlibext"
17689 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
17690 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
17691 hardcode_direct="$acl_cv_hardcode_direct"
17692 hardcode_minus_L="$acl_cv_hardcode_minus_L"
17693 # Check whether --enable-rpath was given.
17694 if test "${enable_rpath+set}" = set; then :
17695 enableval=$enable_rpath; :
17709 acl_save_prefix="$prefix"
17710 prefix="$acl_final_prefix"
17711 acl_save_exec_prefix="$exec_prefix"
17712 exec_prefix="$acl_final_exec_prefix"
17714 eval additional_includedir=\"$includedir\"
17715 eval additional_libdir=\"$libdir\"
17717 exec_prefix="$acl_save_exec_prefix"
17718 prefix="$acl_save_prefix"
17721 # Check whether --with-libiconv-prefix was given.
17722 if test "${with_libiconv_prefix+set}" = set; then :
17723 withval=$with_libiconv_prefix;
17724 if test "X$withval" = "Xno"; then
17727 if test "X$withval" = "X"; then
17729 acl_save_prefix="$prefix"
17730 prefix="$acl_final_prefix"
17731 acl_save_exec_prefix="$exec_prefix"
17732 exec_prefix="$acl_final_exec_prefix"
17734 eval additional_includedir=\"$includedir\"
17735 eval additional_libdir=\"$libdir\"
17737 exec_prefix="$acl_save_exec_prefix"
17738 prefix="$acl_save_prefix"
17741 additional_includedir="$withval/include"
17742 additional_libdir="$withval/lib"
17753 names_already_handled=
17754 names_next_round='iconv '
17755 while test -n "$names_next_round"; do
17756 names_this_round="$names_next_round"
17758 for name in $names_this_round; do
17760 for n in $names_already_handled; do
17761 if test "$n" = "$name"; then
17762 already_handled=yes
17766 if test -z "$already_handled"; then
17767 names_already_handled="$names_already_handled $name"
17768 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
17769 eval value=\"\$HAVE_LIB$uppername\"
17770 if test -n "$value"; then
17771 if test "$value" = yes; then
17772 eval value=\"\$LIB$uppername\"
17773 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
17774 eval value=\"\$LTLIB$uppername\"
17775 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
17784 if test $use_additional = yes; then
17785 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
17786 found_dir="$additional_libdir"
17787 found_so="$additional_libdir/lib$name.$shlibext"
17788 if test -f "$additional_libdir/lib$name.la"; then
17789 found_la="$additional_libdir/lib$name.la"
17792 if test -f "$additional_libdir/lib$name.$libext"; then
17793 found_dir="$additional_libdir"
17794 found_a="$additional_libdir/lib$name.$libext"
17795 if test -f "$additional_libdir/lib$name.la"; then
17796 found_la="$additional_libdir/lib$name.la"
17801 if test "X$found_dir" = "X"; then
17802 for x in $LDFLAGS $LTLIBICONV; do
17804 acl_save_prefix="$prefix"
17805 prefix="$acl_final_prefix"
17806 acl_save_exec_prefix="$exec_prefix"
17807 exec_prefix="$acl_final_exec_prefix"
17809 exec_prefix="$acl_save_exec_prefix"
17810 prefix="$acl_save_prefix"
17814 dir=`echo "X$x" | sed -e 's/^X-L//'`
17815 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
17817 found_so="$dir/lib$name.$shlibext"
17818 if test -f "$dir/lib$name.la"; then
17819 found_la="$dir/lib$name.la"
17822 if test -f "$dir/lib$name.$libext"; then
17824 found_a="$dir/lib$name.$libext"
17825 if test -f "$dir/lib$name.la"; then
17826 found_la="$dir/lib$name.la"
17832 if test "X$found_dir" != "X"; then
17837 if test "X$found_dir" != "X"; then
17838 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
17839 if test "X$found_so" != "X"; then
17840 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
17841 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17844 for x in $ltrpathdirs; do
17845 if test "X$x" = "X$found_dir"; then
17850 if test -z "$haveit"; then
17851 ltrpathdirs="$ltrpathdirs $found_dir"
17853 if test "$hardcode_direct" = yes; then
17854 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17856 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
17857 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17859 for x in $rpathdirs; do
17860 if test "X$x" = "X$found_dir"; then
17865 if test -z "$haveit"; then
17866 rpathdirs="$rpathdirs $found_dir"
17870 for x in $LDFLAGS $LIBICONV; do
17872 acl_save_prefix="$prefix"
17873 prefix="$acl_final_prefix"
17874 acl_save_exec_prefix="$exec_prefix"
17875 exec_prefix="$acl_final_exec_prefix"
17877 exec_prefix="$acl_save_exec_prefix"
17878 prefix="$acl_save_prefix"
17880 if test "X$x" = "X-L$found_dir"; then
17885 if test -z "$haveit"; then
17886 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
17888 if test "$hardcode_minus_L" != no; then
17889 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17891 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
17897 if test "X$found_a" != "X"; then
17898 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
17900 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
17903 additional_includedir=
17904 case "$found_dir" in
17906 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
17907 additional_includedir="$basedir/include"
17910 if test "X$additional_includedir" != "X"; then
17911 if test "X$additional_includedir" != "X/usr/include"; then
17913 if test "X$additional_includedir" = "X/usr/local/include"; then
17914 if test -n "$GCC"; then
17916 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17920 if test -z "$haveit"; then
17921 for x in $CPPFLAGS $INCICONV; do
17923 acl_save_prefix="$prefix"
17924 prefix="$acl_final_prefix"
17925 acl_save_exec_prefix="$exec_prefix"
17926 exec_prefix="$acl_final_exec_prefix"
17928 exec_prefix="$acl_save_exec_prefix"
17929 prefix="$acl_save_prefix"
17931 if test "X$x" = "X-I$additional_includedir"; then
17936 if test -z "$haveit"; then
17937 if test -d "$additional_includedir"; then
17938 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
17944 if test -n "$found_la"; then
17945 save_libdir="$libdir"
17946 case "$found_la" in
17947 */* | *\\*) . "$found_la" ;;
17948 *) . "./$found_la" ;;
17950 libdir="$save_libdir"
17951 for dep in $dependency_libs; do
17954 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17955 if test "X$additional_libdir" != "X/usr/lib"; then
17957 if test "X$additional_libdir" = "X/usr/local/lib"; then
17958 if test -n "$GCC"; then
17960 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17964 if test -z "$haveit"; then
17966 for x in $LDFLAGS $LIBICONV; do
17968 acl_save_prefix="$prefix"
17969 prefix="$acl_final_prefix"
17970 acl_save_exec_prefix="$exec_prefix"
17971 exec_prefix="$acl_final_exec_prefix"
17973 exec_prefix="$acl_save_exec_prefix"
17974 prefix="$acl_save_prefix"
17976 if test "X$x" = "X-L$additional_libdir"; then
17981 if test -z "$haveit"; then
17982 if test -d "$additional_libdir"; then
17983 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
17987 for x in $LDFLAGS $LTLIBICONV; do
17989 acl_save_prefix="$prefix"
17990 prefix="$acl_final_prefix"
17991 acl_save_exec_prefix="$exec_prefix"
17992 exec_prefix="$acl_final_exec_prefix"
17994 exec_prefix="$acl_save_exec_prefix"
17995 prefix="$acl_save_prefix"
17997 if test "X$x" = "X-L$additional_libdir"; then
18002 if test -z "$haveit"; then
18003 if test -d "$additional_libdir"; then
18004 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
18011 dir=`echo "X$dep" | sed -e 's/^X-R//'`
18012 if test "$enable_rpath" != no; then
18014 for x in $rpathdirs; do
18015 if test "X$x" = "X$dir"; then
18020 if test -z "$haveit"; then
18021 rpathdirs="$rpathdirs $dir"
18024 for x in $ltrpathdirs; do
18025 if test "X$x" = "X$dir"; then
18030 if test -z "$haveit"; then
18031 ltrpathdirs="$ltrpathdirs $dir"
18036 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
18039 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
18042 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
18043 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
18049 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
18050 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
18056 if test "X$rpathdirs" != "X"; then
18057 if test -n "$hardcode_libdir_separator"; then
18059 for found_dir in $rpathdirs; do
18060 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
18062 acl_save_libdir="$libdir"
18064 eval flag=\"$hardcode_libdir_flag_spec\"
18065 libdir="$acl_save_libdir"
18066 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
18068 for found_dir in $rpathdirs; do
18069 acl_save_libdir="$libdir"
18070 libdir="$found_dir"
18071 eval flag=\"$hardcode_libdir_flag_spec\"
18072 libdir="$acl_save_libdir"
18073 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
18077 if test "X$ltrpathdirs" != "X"; then
18078 for found_dir in $ltrpathdirs; do
18079 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
18100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
18101 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
18102 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
18103 $as_echo_n "(cached) " >&6
18105 gt_save_CPPFLAGS="$CPPFLAGS"
18106 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
18107 gt_save_LIBS="$LIBS"
18108 LIBS="$LIBS -framework CoreFoundation"
18109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18110 /* end confdefs.h. */
18111 #include <CFPreferences.h>
18115 CFPreferencesCopyAppValue(NULL, NULL)
18120 if ac_fn_c_try_link "$LINENO"; then :
18121 gt_cv_func_CFPreferencesCopyAppValue=yes
18123 gt_cv_func_CFPreferencesCopyAppValue=no
18125 rm -f core conftest.err conftest.$ac_objext \
18126 conftest$ac_exeext conftest.$ac_ext
18127 CPPFLAGS="$gt_save_CPPFLAGS"
18128 LIBS="$gt_save_LIBS"
18130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
18131 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
18132 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
18134 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
18137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
18138 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
18139 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
18140 $as_echo_n "(cached) " >&6
18142 gt_save_CPPFLAGS="$CPPFLAGS"
18143 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
18144 gt_save_LIBS="$LIBS"
18145 LIBS="$LIBS -framework CoreFoundation"
18146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18147 /* end confdefs.h. */
18148 #include <CFLocale.h>
18152 CFLocaleCopyCurrent();
18157 if ac_fn_c_try_link "$LINENO"; then :
18158 gt_cv_func_CFLocaleCopyCurrent=yes
18160 gt_cv_func_CFLocaleCopyCurrent=no
18162 rm -f core conftest.err conftest.$ac_objext \
18163 conftest$ac_exeext conftest.$ac_ext
18164 CPPFLAGS="$gt_save_CPPFLAGS"
18165 LIBS="$gt_save_LIBS"
18167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
18168 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
18169 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
18171 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
18175 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
18176 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
18182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
18183 $as_echo_n "checking whether NLS is requested... " >&6; }
18184 # Check whether --enable-nls was given.
18185 if test "${enable_nls+set}" = set; then :
18186 enableval=$enable_nls; USE_NLS=$enableval
18191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
18192 $as_echo "$USE_NLS" >&6; }
18201 if test "$USE_NLS" = "yes"; then
18202 gt_use_preinstalled_gnugettext=no
18209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
18210 $as_echo_n "checking for GNU gettext in libc... " >&6; }
18211 if ${gt_cv_func_gnugettext1_libc+:} false; then :
18212 $as_echo_n "(cached) " >&6
18214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18215 /* end confdefs.h. */
18216 #include <libintl.h>
18217 extern int _nl_msg_cat_cntr;
18218 extern int *_nl_domain_bindings;
18222 bindtextdomain ("", "");
18223 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
18228 if ac_fn_c_try_link "$LINENO"; then :
18229 gt_cv_func_gnugettext1_libc=yes
18231 gt_cv_func_gnugettext1_libc=no
18233 rm -f core conftest.err conftest.$ac_objext \
18234 conftest$ac_exeext conftest.$ac_ext
18236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5
18237 $as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
18239 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
18245 am_save_CPPFLAGS="$CPPFLAGS"
18247 for element in $INCICONV; do
18249 for x in $CPPFLAGS; do
18251 acl_save_prefix="$prefix"
18252 prefix="$acl_final_prefix"
18253 acl_save_exec_prefix="$exec_prefix"
18254 exec_prefix="$acl_final_exec_prefix"
18256 exec_prefix="$acl_save_exec_prefix"
18257 prefix="$acl_save_prefix"
18259 if test "X$x" = "X$element"; then
18264 if test -z "$haveit"; then
18265 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
18270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
18271 $as_echo_n "checking for iconv... " >&6; }
18272 if ${am_cv_func_iconv+:} false; then :
18273 $as_echo_n "(cached) " >&6
18276 am_cv_func_iconv="no, consider installing GNU libiconv"
18278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18279 /* end confdefs.h. */
18280 #include <stdlib.h>
18285 iconv_t cd = iconv_open("","");
18286 iconv(cd,NULL,NULL,NULL,NULL);
18292 if ac_fn_c_try_link "$LINENO"; then :
18293 am_cv_func_iconv=yes
18295 rm -f core conftest.err conftest.$ac_objext \
18296 conftest$ac_exeext conftest.$ac_ext
18297 if test "$am_cv_func_iconv" != yes; then
18298 am_save_LIBS="$LIBS"
18299 LIBS="$LIBS $LIBICONV"
18300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18301 /* end confdefs.h. */
18302 #include <stdlib.h>
18307 iconv_t cd = iconv_open("","");
18308 iconv(cd,NULL,NULL,NULL,NULL);
18314 if ac_fn_c_try_link "$LINENO"; then :
18315 am_cv_lib_iconv=yes
18316 am_cv_func_iconv=yes
18318 rm -f core conftest.err conftest.$ac_objext \
18319 conftest$ac_exeext conftest.$ac_ext
18320 LIBS="$am_save_LIBS"
18324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
18325 $as_echo "$am_cv_func_iconv" >&6; }
18326 if test "$am_cv_func_iconv" = yes; then
18328 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
18331 if test "$am_cv_lib_iconv" = yes; then
18332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
18333 $as_echo_n "checking how to link with libiconv... " >&6; }
18334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
18335 $as_echo "$LIBICONV" >&6; }
18337 CPPFLAGS="$am_save_CPPFLAGS"
18349 acl_save_prefix="$prefix"
18350 prefix="$acl_final_prefix"
18351 acl_save_exec_prefix="$exec_prefix"
18352 exec_prefix="$acl_final_exec_prefix"
18354 eval additional_includedir=\"$includedir\"
18355 eval additional_libdir=\"$libdir\"
18357 exec_prefix="$acl_save_exec_prefix"
18358 prefix="$acl_save_prefix"
18361 # Check whether --with-libintl-prefix was given.
18362 if test "${with_libintl_prefix+set}" = set; then :
18363 withval=$with_libintl_prefix;
18364 if test "X$withval" = "Xno"; then
18367 if test "X$withval" = "X"; then
18369 acl_save_prefix="$prefix"
18370 prefix="$acl_final_prefix"
18371 acl_save_exec_prefix="$exec_prefix"
18372 exec_prefix="$acl_final_exec_prefix"
18374 eval additional_includedir=\"$includedir\"
18375 eval additional_libdir=\"$libdir\"
18377 exec_prefix="$acl_save_exec_prefix"
18378 prefix="$acl_save_prefix"
18381 additional_includedir="$withval/include"
18382 additional_libdir="$withval/lib"
18393 names_already_handled=
18394 names_next_round='intl '
18395 while test -n "$names_next_round"; do
18396 names_this_round="$names_next_round"
18398 for name in $names_this_round; do
18400 for n in $names_already_handled; do
18401 if test "$n" = "$name"; then
18402 already_handled=yes
18406 if test -z "$already_handled"; then
18407 names_already_handled="$names_already_handled $name"
18408 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
18409 eval value=\"\$HAVE_LIB$uppername\"
18410 if test -n "$value"; then
18411 if test "$value" = yes; then
18412 eval value=\"\$LIB$uppername\"
18413 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
18414 eval value=\"\$LTLIB$uppername\"
18415 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
18424 if test $use_additional = yes; then
18425 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
18426 found_dir="$additional_libdir"
18427 found_so="$additional_libdir/lib$name.$shlibext"
18428 if test -f "$additional_libdir/lib$name.la"; then
18429 found_la="$additional_libdir/lib$name.la"
18432 if test -f "$additional_libdir/lib$name.$libext"; then
18433 found_dir="$additional_libdir"
18434 found_a="$additional_libdir/lib$name.$libext"
18435 if test -f "$additional_libdir/lib$name.la"; then
18436 found_la="$additional_libdir/lib$name.la"
18441 if test "X$found_dir" = "X"; then
18442 for x in $LDFLAGS $LTLIBINTL; do
18444 acl_save_prefix="$prefix"
18445 prefix="$acl_final_prefix"
18446 acl_save_exec_prefix="$exec_prefix"
18447 exec_prefix="$acl_final_exec_prefix"
18449 exec_prefix="$acl_save_exec_prefix"
18450 prefix="$acl_save_prefix"
18454 dir=`echo "X$x" | sed -e 's/^X-L//'`
18455 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
18457 found_so="$dir/lib$name.$shlibext"
18458 if test -f "$dir/lib$name.la"; then
18459 found_la="$dir/lib$name.la"
18462 if test -f "$dir/lib$name.$libext"; then
18464 found_a="$dir/lib$name.$libext"
18465 if test -f "$dir/lib$name.la"; then
18466 found_la="$dir/lib$name.la"
18472 if test "X$found_dir" != "X"; then
18477 if test "X$found_dir" != "X"; then
18478 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
18479 if test "X$found_so" != "X"; then
18480 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
18481 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
18484 for x in $ltrpathdirs; do
18485 if test "X$x" = "X$found_dir"; then
18490 if test -z "$haveit"; then
18491 ltrpathdirs="$ltrpathdirs $found_dir"
18493 if test "$hardcode_direct" = yes; then
18494 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
18496 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
18497 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
18499 for x in $rpathdirs; do
18500 if test "X$x" = "X$found_dir"; then
18505 if test -z "$haveit"; then
18506 rpathdirs="$rpathdirs $found_dir"
18510 for x in $LDFLAGS $LIBINTL; do
18512 acl_save_prefix="$prefix"
18513 prefix="$acl_final_prefix"
18514 acl_save_exec_prefix="$exec_prefix"
18515 exec_prefix="$acl_final_exec_prefix"
18517 exec_prefix="$acl_save_exec_prefix"
18518 prefix="$acl_save_prefix"
18520 if test "X$x" = "X-L$found_dir"; then
18525 if test -z "$haveit"; then
18526 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
18528 if test "$hardcode_minus_L" != no; then
18529 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
18531 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
18537 if test "X$found_a" != "X"; then
18538 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
18540 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
18543 additional_includedir=
18544 case "$found_dir" in
18546 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
18547 additional_includedir="$basedir/include"
18550 if test "X$additional_includedir" != "X"; then
18551 if test "X$additional_includedir" != "X/usr/include"; then
18553 if test "X$additional_includedir" = "X/usr/local/include"; then
18554 if test -n "$GCC"; then
18556 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
18560 if test -z "$haveit"; then
18561 for x in $CPPFLAGS $INCINTL; do
18563 acl_save_prefix="$prefix"
18564 prefix="$acl_final_prefix"
18565 acl_save_exec_prefix="$exec_prefix"
18566 exec_prefix="$acl_final_exec_prefix"
18568 exec_prefix="$acl_save_exec_prefix"
18569 prefix="$acl_save_prefix"
18571 if test "X$x" = "X-I$additional_includedir"; then
18576 if test -z "$haveit"; then
18577 if test -d "$additional_includedir"; then
18578 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
18584 if test -n "$found_la"; then
18585 save_libdir="$libdir"
18586 case "$found_la" in
18587 */* | *\\*) . "$found_la" ;;
18588 *) . "./$found_la" ;;
18590 libdir="$save_libdir"
18591 for dep in $dependency_libs; do
18594 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
18595 if test "X$additional_libdir" != "X/usr/lib"; then
18597 if test "X$additional_libdir" = "X/usr/local/lib"; then
18598 if test -n "$GCC"; then
18600 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
18604 if test -z "$haveit"; then
18606 for x in $LDFLAGS $LIBINTL; do
18608 acl_save_prefix="$prefix"
18609 prefix="$acl_final_prefix"
18610 acl_save_exec_prefix="$exec_prefix"
18611 exec_prefix="$acl_final_exec_prefix"
18613 exec_prefix="$acl_save_exec_prefix"
18614 prefix="$acl_save_prefix"
18616 if test "X$x" = "X-L$additional_libdir"; then
18621 if test -z "$haveit"; then
18622 if test -d "$additional_libdir"; then
18623 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
18627 for x in $LDFLAGS $LTLIBINTL; do
18629 acl_save_prefix="$prefix"
18630 prefix="$acl_final_prefix"
18631 acl_save_exec_prefix="$exec_prefix"
18632 exec_prefix="$acl_final_exec_prefix"
18634 exec_prefix="$acl_save_exec_prefix"
18635 prefix="$acl_save_prefix"
18637 if test "X$x" = "X-L$additional_libdir"; then
18642 if test -z "$haveit"; then
18643 if test -d "$additional_libdir"; then
18644 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
18651 dir=`echo "X$dep" | sed -e 's/^X-R//'`
18652 if test "$enable_rpath" != no; then
18654 for x in $rpathdirs; do
18655 if test "X$x" = "X$dir"; then
18660 if test -z "$haveit"; then
18661 rpathdirs="$rpathdirs $dir"
18664 for x in $ltrpathdirs; do
18665 if test "X$x" = "X$dir"; then
18670 if test -z "$haveit"; then
18671 ltrpathdirs="$ltrpathdirs $dir"
18676 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
18679 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
18682 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
18683 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
18689 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
18690 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
18696 if test "X$rpathdirs" != "X"; then
18697 if test -n "$hardcode_libdir_separator"; then
18699 for found_dir in $rpathdirs; do
18700 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
18702 acl_save_libdir="$libdir"
18704 eval flag=\"$hardcode_libdir_flag_spec\"
18705 libdir="$acl_save_libdir"
18706 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
18708 for found_dir in $rpathdirs; do
18709 acl_save_libdir="$libdir"
18710 libdir="$found_dir"
18711 eval flag=\"$hardcode_libdir_flag_spec\"
18712 libdir="$acl_save_libdir"
18713 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
18717 if test "X$ltrpathdirs" != "X"; then
18718 for found_dir in $ltrpathdirs; do
18719 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
18723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
18724 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
18725 if ${gt_cv_func_gnugettext1_libintl+:} false; then :
18726 $as_echo_n "(cached) " >&6
18728 gt_save_CPPFLAGS="$CPPFLAGS"
18729 CPPFLAGS="$CPPFLAGS $INCINTL"
18730 gt_save_LIBS="$LIBS"
18731 LIBS="$LIBS $LIBINTL"
18732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18733 /* end confdefs.h. */
18734 #include <libintl.h>
18735 extern int _nl_msg_cat_cntr;
18740 const char *_nl_expand_alias (const char *);
18744 bindtextdomain ("", "");
18745 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
18750 if ac_fn_c_try_link "$LINENO"; then :
18751 gt_cv_func_gnugettext1_libintl=yes
18753 gt_cv_func_gnugettext1_libintl=no
18755 rm -f core conftest.err conftest.$ac_objext \
18756 conftest$ac_exeext conftest.$ac_ext
18757 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
18758 LIBS="$LIBS $LIBICONV"
18759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18760 /* end confdefs.h. */
18761 #include <libintl.h>
18762 extern int _nl_msg_cat_cntr;
18767 const char *_nl_expand_alias (const char *);
18771 bindtextdomain ("", "");
18772 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
18777 if ac_fn_c_try_link "$LINENO"; then :
18778 LIBINTL="$LIBINTL $LIBICONV"
18779 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
18780 gt_cv_func_gnugettext1_libintl=yes
18783 rm -f core conftest.err conftest.$ac_objext \
18784 conftest$ac_exeext conftest.$ac_ext
18786 CPPFLAGS="$gt_save_CPPFLAGS"
18787 LIBS="$gt_save_LIBS"
18789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5
18790 $as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
18793 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
18794 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
18795 && test "$PACKAGE" != gettext-runtime \
18796 && test "$PACKAGE" != gettext-tools; }; then
18797 gt_use_preinstalled_gnugettext=yes
18806 if test -n "$INTL_MACOSX_LIBS"; then
18807 if test "$gt_use_preinstalled_gnugettext" = "yes" \
18808 || test "$nls_cv_use_gnu_gettext" = "yes"; then
18809 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
18810 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
18814 if test "$gt_use_preinstalled_gnugettext" = "yes" \
18815 || test "$nls_cv_use_gnu_gettext" = "yes"; then
18817 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
18824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
18825 $as_echo_n "checking whether to use NLS... " >&6; }
18826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
18827 $as_echo "$USE_NLS" >&6; }
18828 if test "$USE_NLS" = "yes"; then
18829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
18830 $as_echo_n "checking where the gettext function comes from... " >&6; }
18831 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
18832 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
18833 gt_source="external libintl"
18838 gt_source="included intl directory"
18840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
18841 $as_echo "$gt_source" >&6; }
18844 if test "$USE_NLS" = "yes"; then
18846 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
18847 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
18848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
18849 $as_echo_n "checking how to link with libintl... " >&6; }
18850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
18851 $as_echo "$LIBINTL" >&6; }
18853 for element in $INCINTL; do
18855 for x in $CPPFLAGS; do
18857 acl_save_prefix="$prefix"
18858 prefix="$acl_final_prefix"
18859 acl_save_exec_prefix="$exec_prefix"
18860 exec_prefix="$acl_final_exec_prefix"
18862 exec_prefix="$acl_save_exec_prefix"
18863 prefix="$acl_save_prefix"
18865 if test "X$x" = "X$element"; then
18870 if test -z "$haveit"; then
18871 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
18878 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
18881 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
18890 INTLLIBS="$LIBINTL"
18898 os_name=`uname -s 2>/dev/null`
18899 if test x${prefix} = xNONE ; then
18900 if test `eval echo ${sysconfdir}` = NONE/etc ; then
18901 sysconfdir=/etc/bacula
18904 if test `eval echo ${libdir}` = NONE/lib ; then
18907 os_processor=`uname -p 2>/dev/null`
18908 case ${os_processor} in
18923 if test `eval echo ${includedir}` = NONE/include ; then
18924 includedir=/usr/include
18927 if test `eval echo ${datarootdir}` = NONE/share ; then
18928 datarootdir=/usr/share
18933 if test x${exec_prefix} = xNONE ; then
18934 exec_prefix=${prefix}
18937 sysconfdir=`eval echo ${sysconfdir}`
18938 datarootdir=`eval echo ${datarootdir}`
18939 docdir=`eval echo ${docdir}`
18940 htmldir=`eval echo ${htmldir}`
18941 libdir=`eval echo ${libdir}`
18942 includedir=`eval echo ${includedir}`
18943 localedir=`eval echo ${datarootdir}/locale`
18944 cat >>confdefs.h <<_ACEOF
18945 #define SYSCONFDIR "$sysconfdir"
18948 cat >>confdefs.h <<_ACEOF
18949 #define LOCALEDIR "$localedir"
18953 if test x$sbindir = x'${exec_prefix}/sbin' ; then
18954 sbindir=${exec_prefix}/sbin
18956 sbindir=`eval echo ${sbindir}`
18958 if test x$mandir = x'${prefix}/man' ; then
18959 mandir=/usr/share/man
18962 if test x$htmldir = x'/usr/share/doc/bacula/' ; then
18963 htmldir=`eval echo ${docdir}html`
18966 if test x$docdir = x'/usr/share/doc/' ; then
18967 docdir=`eval echo ${docdir}bacula`
18971 for ac_prog in msgfmt
18973 # Extract the first word of "$ac_prog", so it can be a program name with args.
18974 set dummy $ac_prog; ac_word=$2
18975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18976 $as_echo_n "checking for $ac_word... " >&6; }
18977 if ${ac_cv_path_MSGFMT+:} false; then :
18978 $as_echo_n "(cached) " >&6
18982 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
18985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18986 for as_dir in $PATH
18989 test -z "$as_dir" && as_dir=.
18990 for ac_exec_ext in '' $ac_executable_extensions; do
18991 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18992 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
18993 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19003 MSGFMT=$ac_cv_path_MSGFMT
19004 if test -n "$MSGFMT"; then
19005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
19006 $as_echo "$MSGFMT" >&6; }
19008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19009 $as_echo "no" >&6; }
19013 test -n "$MSGFMT" && break
19015 test -n "$MSGFMT" || MSGFMT="no"
19017 if test "$MSGFMT" = "no"
19019 echo 'msgfmt program not found, disabling NLS !'
19021 USE_INCLUDED_LIBINTL=no
19024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2 or newer" >&5
19025 $as_echo_n "checking whether we are using the GNU C Library 2 or newer... " >&6; }
19026 if ${ac_cv_gnu_library_2+:} false; then :
19027 $as_echo_n "(cached) " >&6
19029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19030 /* end confdefs.h. */
19032 #include <features.h>
19033 #ifdef __GNU_LIBRARY__
19034 #if (__GLIBC__ >= 2)
19040 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19041 $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
19042 ac_cv_gnu_library_2=yes
19044 ac_cv_gnu_library_2=no
19051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2" >&5
19052 $as_echo "$ac_cv_gnu_library_2" >&6; }
19054 GLIBC2="$ac_cv_gnu_library_2"
19057 if test -n "$ac_tool_prefix"; then
19058 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
19059 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
19060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19061 $as_echo_n "checking for $ac_word... " >&6; }
19062 if ${ac_cv_prog_RANLIB+:} false; then :
19063 $as_echo_n "(cached) " >&6
19065 if test -n "$RANLIB"; then
19066 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
19068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19069 for as_dir in $PATH
19072 test -z "$as_dir" && as_dir=.
19073 for ac_exec_ext in '' $ac_executable_extensions; do
19074 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19075 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
19076 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19085 RANLIB=$ac_cv_prog_RANLIB
19086 if test -n "$RANLIB"; then
19087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
19088 $as_echo "$RANLIB" >&6; }
19090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19091 $as_echo "no" >&6; }
19096 if test -z "$ac_cv_prog_RANLIB"; then
19097 ac_ct_RANLIB=$RANLIB
19098 # Extract the first word of "ranlib", so it can be a program name with args.
19099 set dummy ranlib; ac_word=$2
19100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19101 $as_echo_n "checking for $ac_word... " >&6; }
19102 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
19103 $as_echo_n "(cached) " >&6
19105 if test -n "$ac_ct_RANLIB"; then
19106 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
19108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19109 for as_dir in $PATH
19112 test -z "$as_dir" && as_dir=.
19113 for ac_exec_ext in '' $ac_executable_extensions; do
19114 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19115 ac_cv_prog_ac_ct_RANLIB="ranlib"
19116 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19125 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
19126 if test -n "$ac_ct_RANLIB"; then
19127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
19128 $as_echo "$ac_ct_RANLIB" >&6; }
19130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19131 $as_echo "no" >&6; }
19134 if test "x$ac_ct_RANLIB" = x; then
19137 case $cross_compiling:$ac_tool_warned in
19139 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19140 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19141 ac_tool_warned=yes ;;
19143 RANLIB=$ac_ct_RANLIB
19146 RANLIB="$ac_cv_prog_RANLIB"
19150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strerror in -lcposix" >&5
19151 $as_echo_n "checking for strerror in -lcposix... " >&6; }
19152 if ${ac_cv_lib_cposix_strerror+:} false; then :
19153 $as_echo_n "(cached) " >&6
19155 ac_check_lib_save_LIBS=$LIBS
19156 LIBS="-lcposix $LIBS"
19157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19158 /* end confdefs.h. */
19160 /* Override any GCC internal prototype to avoid an error.
19161 Use char because int might match the return type of a GCC
19162 builtin and then its argument prototype would still apply. */
19170 return strerror ();
19175 if ac_fn_c_try_link "$LINENO"; then :
19176 ac_cv_lib_cposix_strerror=yes
19178 ac_cv_lib_cposix_strerror=no
19180 rm -f core conftest.err conftest.$ac_objext \
19181 conftest$ac_exeext conftest.$ac_ext
19182 LIBS=$ac_check_lib_save_LIBS
19184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cposix_strerror" >&5
19185 $as_echo "$ac_cv_lib_cposix_strerror" >&6; }
19186 if test "x$ac_cv_lib_cposix_strerror" = xyes; then :
19187 LIBS="$LIBS -lcposix"
19192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
19193 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
19194 if ${ac_cv_c_const+:} false; then :
19195 $as_echo_n "(cached) " >&6
19197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19198 /* end confdefs.h. */
19204 #ifndef __cplusplus
19205 /* Ultrix mips cc rejects this sort of thing. */
19206 typedef int charset[2];
19207 const charset cs = { 0, 0 };
19208 /* SunOS 4.1.1 cc rejects this. */
19209 char const *const *pcpcc;
19211 /* NEC SVR4.0.2 mips cc rejects this. */
19212 struct point {int x, y;};
19213 static struct point const zero = {0,0};
19214 /* AIX XL C 1.02.0.0 rejects this.
19215 It does not let you subtract one const X* pointer from another in
19216 an arm of an if-expression whose if-part is not a constant
19218 const char *g = "string";
19219 pcpcc = &g + (g ? g-g : 0);
19220 /* HPUX 7.0 cc rejects these. */
19222 ppc = (char**) pcpcc;
19223 pcpcc = (char const *const *) ppc;
19224 { /* SCO 3.2v4 cc rejects this sort of thing. */
19227 char const *s = 0 ? (char *) 0 : (char const *) 0;
19232 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
19233 int x[] = {25, 17};
19234 const int *foo = &x[0];
19237 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
19238 typedef const int *iptr;
19242 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
19243 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
19244 struct s { int j; const int *ap[3]; } bx;
19245 struct s *b = &bx; b->j = 5;
19247 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
19248 const int foo = 10;
19249 if (!foo) return 0;
19251 return !cs[0] && !zero.x;
19258 if ac_fn_c_try_compile "$LINENO"; then :
19263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
19266 $as_echo "$ac_cv_c_const" >&6; }
19267 if test $ac_cv_c_const = no; then
19269 $as_echo "#define const /**/" >>confdefs.h
19274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed" >&5
19275 $as_echo_n "checking for signed... " >&6; }
19276 if ${bh_cv_c_signed+:} false; then :
19277 $as_echo_n "(cached) " >&6
19279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19280 /* end confdefs.h. */
19290 if ac_fn_c_try_compile "$LINENO"; then :
19295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bh_cv_c_signed" >&5
19298 $as_echo "$bh_cv_c_signed" >&6; }
19299 if test $bh_cv_c_signed = no; then
19301 $as_echo "#define signed /**/" >>confdefs.h
19305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
19306 $as_echo_n "checking for inline... " >&6; }
19307 if ${ac_cv_c_inline+:} false; then :
19308 $as_echo_n "(cached) " >&6
19311 for ac_kw in inline __inline__ __inline; do
19312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19313 /* end confdefs.h. */
19314 #ifndef __cplusplus
19316 static $ac_kw foo_t static_foo () {return 0; }
19317 $ac_kw foo_t foo () {return 0; }
19321 if ac_fn_c_try_compile "$LINENO"; then :
19322 ac_cv_c_inline=$ac_kw
19324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19325 test "$ac_cv_c_inline" != no && break
19329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
19330 $as_echo "$ac_cv_c_inline" >&6; }
19332 case $ac_cv_c_inline in
19335 case $ac_cv_c_inline in
19337 *) ac_val=$ac_cv_c_inline;;
19339 cat >>confdefs.h <<_ACEOF
19340 #ifndef __cplusplus
19341 #define inline $ac_val
19347 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
19348 if test "x$ac_cv_type_off_t" = xyes; then :
19352 cat >>confdefs.h <<_ACEOF
19353 #define off_t long int
19358 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
19359 if test "x$ac_cv_type_size_t" = xyes; then :
19363 cat >>confdefs.h <<_ACEOF
19364 #define size_t unsigned int
19370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long" >&5
19371 $as_echo_n "checking for long long... " >&6; }
19372 if ${ac_cv_type_long_long+:} false; then :
19373 $as_echo_n "(cached) " >&6
19375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19376 /* end confdefs.h. */
19377 long long ll = 1LL; int i = 63;
19381 long long llmax = (long long) -1;
19382 return ll << i | ll >> i | llmax / ll | llmax % ll;
19387 if ac_fn_c_try_link "$LINENO"; then :
19388 ac_cv_type_long_long=yes
19390 ac_cv_type_long_long=no
19392 rm -f core conftest.err conftest.$ac_objext \
19393 conftest$ac_exeext conftest.$ac_ext
19395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long" >&5
19396 $as_echo "$ac_cv_type_long_long" >&6; }
19397 if test $ac_cv_type_long_long = yes; then
19399 $as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h
19404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
19405 $as_echo_n "checking for long double... " >&6; }
19406 if ${gt_cv_c_long_double+:} false; then :
19407 $as_echo_n "(cached) " >&6
19409 if test "$GCC" = yes; then
19410 gt_cv_c_long_double=yes
19412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19413 /* end confdefs.h. */
19415 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
19416 long double foo = 0.0;
19417 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
19418 int array [2*(sizeof(long double) >= sizeof(double)) - 1];
19428 if ac_fn_c_try_compile "$LINENO"; then :
19429 gt_cv_c_long_double=yes
19431 gt_cv_c_long_double=no
19433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_long_double" >&5
19437 $as_echo "$gt_cv_c_long_double" >&6; }
19438 if test $gt_cv_c_long_double = yes; then
19440 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
19445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
19446 $as_echo_n "checking for wchar_t... " >&6; }
19447 if ${gt_cv_c_wchar_t+:} false; then :
19448 $as_echo_n "(cached) " >&6
19450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19451 /* end confdefs.h. */
19452 #include <stddef.h>
19453 wchar_t foo = (wchar_t)'\0';
19462 if ac_fn_c_try_compile "$LINENO"; then :
19463 gt_cv_c_wchar_t=yes
19467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
19470 $as_echo "$gt_cv_c_wchar_t" >&6; }
19471 if test $gt_cv_c_wchar_t = yes; then
19473 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
19478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
19479 $as_echo_n "checking for wint_t... " >&6; }
19480 if ${gt_cv_c_wint_t+:} false; then :
19481 $as_echo_n "(cached) " >&6
19483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19484 /* end confdefs.h. */
19486 wint_t foo = (wchar_t)'\0';
19495 if ac_fn_c_try_compile "$LINENO"; then :
19500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
19503 $as_echo "$gt_cv_c_wint_t" >&6; }
19504 if test $gt_cv_c_wint_t = yes; then
19506 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
19511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
19512 $as_echo_n "checking for inttypes.h... " >&6; }
19513 if ${gl_cv_header_inttypes_h+:} false; then :
19514 $as_echo_n "(cached) " >&6
19516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19517 /* end confdefs.h. */
19518 #include <sys/types.h>
19519 #include <inttypes.h>
19523 uintmax_t i = (uintmax_t) -1;
19528 if ac_fn_c_try_compile "$LINENO"; then :
19529 gl_cv_header_inttypes_h=yes
19531 gl_cv_header_inttypes_h=no
19533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5
19536 $as_echo "$gl_cv_header_inttypes_h" >&6; }
19537 if test $gl_cv_header_inttypes_h = yes; then
19539 cat >>confdefs.h <<_ACEOF
19540 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
19546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
19547 $as_echo_n "checking for stdint.h... " >&6; }
19548 if ${gl_cv_header_stdint_h+:} false; then :
19549 $as_echo_n "(cached) " >&6
19551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19552 /* end confdefs.h. */
19553 #include <sys/types.h>
19554 #include <stdint.h>
19558 uintmax_t i = (uintmax_t) -1;
19563 if ac_fn_c_try_compile "$LINENO"; then :
19564 gl_cv_header_stdint_h=yes
19566 gl_cv_header_stdint_h=no
19568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5
19571 $as_echo "$gl_cv_header_stdint_h" >&6; }
19572 if test $gl_cv_header_stdint_h = yes; then
19574 cat >>confdefs.h <<_ACEOF
19575 #define HAVE_STDINT_H_WITH_UINTMAX 1
19583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
19584 $as_echo_n "checking for intmax_t... " >&6; }
19585 if ${gt_cv_c_intmax_t+:} false; then :
19586 $as_echo_n "(cached) " >&6
19588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19589 /* end confdefs.h. */
19591 #include <stddef.h>
19592 #include <stdlib.h>
19593 #if HAVE_STDINT_H_WITH_UINTMAX
19594 #include <stdint.h>
19596 #if HAVE_INTTYPES_H_WITH_UINTMAX
19597 #include <inttypes.h>
19608 if ac_fn_c_try_compile "$LINENO"; then :
19609 gt_cv_c_intmax_t=yes
19611 gt_cv_c_intmax_t=no
19613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
19616 $as_echo "$gt_cv_c_intmax_t" >&6; }
19617 if test $gt_cv_c_intmax_t = yes; then
19619 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
19625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5
19626 $as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
19627 if ${gt_cv_func_printf_posix+:} false; then :
19628 $as_echo_n "(cached) " >&6
19631 if test "$cross_compiling" = yes; then :
19633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19634 /* end confdefs.h. */
19636 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
19641 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19642 $EGREP "notposix" >/dev/null 2>&1; then :
19643 gt_cv_func_printf_posix="guessing no"
19645 gt_cv_func_printf_posix="guessing yes"
19651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19652 /* end confdefs.h. */
19655 #include <string.h>
19656 /* The string "%2$d %1$d", with dollar characters protected from the shell's
19657 dollar expansion (possibly an autoconf bug). */
19658 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
19659 static char buf[100];
19662 sprintf (buf, format, 33, 55);
19663 return (strcmp (buf, "55 33") != 0);
19666 if ac_fn_c_try_run "$LINENO"; then :
19667 gt_cv_func_printf_posix=yes
19669 gt_cv_func_printf_posix=no
19671 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19672 conftest.$ac_objext conftest.beam conftest.$ac_ext
19677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5
19678 $as_echo "$gt_cv_func_printf_posix" >&6; }
19679 case $gt_cv_func_printf_posix in
19682 $as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h
19687 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
19688 # for constant arguments. Useless!
19689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
19690 $as_echo_n "checking for working alloca.h... " >&6; }
19691 if ${ac_cv_working_alloca_h+:} false; then :
19692 $as_echo_n "(cached) " >&6
19694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19695 /* end confdefs.h. */
19696 #include <alloca.h>
19700 char *p = (char *) alloca (2 * sizeof (int));
19706 if ac_fn_c_try_link "$LINENO"; then :
19707 ac_cv_working_alloca_h=yes
19709 ac_cv_working_alloca_h=no
19711 rm -f core conftest.err conftest.$ac_objext \
19712 conftest$ac_exeext conftest.$ac_ext
19714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
19715 $as_echo "$ac_cv_working_alloca_h" >&6; }
19716 if test $ac_cv_working_alloca_h = yes; then
19718 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
19722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
19723 $as_echo_n "checking for alloca... " >&6; }
19724 if ${ac_cv_func_alloca_works+:} false; then :
19725 $as_echo_n "(cached) " >&6
19727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19728 /* end confdefs.h. */
19730 # define alloca __builtin_alloca
19733 # include <malloc.h>
19734 # define alloca _alloca
19736 # ifdef HAVE_ALLOCA_H
19737 # include <alloca.h>
19742 # ifndef alloca /* predefined by HP cc +Olibcalls */
19743 void *alloca (size_t);
19753 char *p = (char *) alloca (1);
19759 if ac_fn_c_try_link "$LINENO"; then :
19760 ac_cv_func_alloca_works=yes
19762 ac_cv_func_alloca_works=no
19764 rm -f core conftest.err conftest.$ac_objext \
19765 conftest$ac_exeext conftest.$ac_ext
19767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
19768 $as_echo "$ac_cv_func_alloca_works" >&6; }
19770 if test $ac_cv_func_alloca_works = yes; then
19772 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
19775 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
19776 # that cause trouble. Some versions do not even contain alloca or
19777 # contain a buggy version. If you still want to use their alloca,
19778 # use ar to extract alloca.o from them instead of compiling alloca.c.
19780 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
19782 $as_echo "#define C_ALLOCA 1" >>confdefs.h
19785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
19786 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
19787 if ${ac_cv_os_cray+:} false; then :
19788 $as_echo_n "(cached) " >&6
19790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19791 /* end confdefs.h. */
19792 #if defined CRAY && ! defined CRAY2
19799 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19800 $EGREP "webecray" >/dev/null 2>&1; then :
19808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
19809 $as_echo "$ac_cv_os_cray" >&6; }
19810 if test $ac_cv_os_cray = yes; then
19811 for ac_func in _getb67 GETB67 getb67; do
19812 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19813 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19814 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19816 cat >>confdefs.h <<_ACEOF
19817 #define CRAY_STACKSEG_END $ac_func
19826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
19827 $as_echo_n "checking stack direction for C alloca... " >&6; }
19828 if ${ac_cv_c_stack_direction+:} false; then :
19829 $as_echo_n "(cached) " >&6
19831 if test "$cross_compiling" = yes; then :
19832 ac_cv_c_stack_direction=0
19834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19835 /* end confdefs.h. */
19836 $ac_includes_default
19838 find_stack_direction (int *addr, int depth)
19840 int dir, dummy = 0;
19843 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
19844 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
19845 return dir + dummy;
19849 main (int argc, char **argv)
19851 return find_stack_direction (0, argc + !argv + 20) < 0;
19854 if ac_fn_c_try_run "$LINENO"; then :
19855 ac_cv_c_stack_direction=1
19857 ac_cv_c_stack_direction=-1
19859 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19860 conftest.$ac_objext conftest.beam conftest.$ac_ext
19864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
19865 $as_echo "$ac_cv_c_stack_direction" >&6; }
19866 cat >>confdefs.h <<_ACEOF
19867 #define STACK_DIRECTION $ac_cv_c_stack_direction
19876 for ac_header in $ac_header_list
19878 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19879 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
19881 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19882 cat >>confdefs.h <<_ACEOF
19883 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19897 for ac_func in getpagesize
19899 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
19900 if test "x$ac_cv_func_getpagesize" = xyes; then :
19901 cat >>confdefs.h <<_ACEOF
19902 #define HAVE_GETPAGESIZE 1
19908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
19909 $as_echo_n "checking for working mmap... " >&6; }
19910 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
19911 $as_echo_n "(cached) " >&6
19913 if test "$cross_compiling" = yes; then :
19914 ac_cv_func_mmap_fixed_mapped=no
19916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19917 /* end confdefs.h. */
19918 $ac_includes_default
19919 /* malloc might have been renamed as rpl_malloc. */
19922 /* Thanks to Mike Haertel and Jim Avera for this test.
19923 Here is a matrix of mmap possibilities:
19924 mmap private not fixed
19925 mmap private fixed at somewhere currently unmapped
19926 mmap private fixed at somewhere already mapped
19927 mmap shared not fixed
19928 mmap shared fixed at somewhere currently unmapped
19929 mmap shared fixed at somewhere already mapped
19930 For private mappings, we should verify that changes cannot be read()
19931 back from the file, nor mmap's back from the file at a different
19932 address. (There have been systems where private was not correctly
19933 implemented like the infamous i386 svr4.0, and systems where the
19934 VM page cache was not coherent with the file system buffer cache
19935 like early versions of FreeBSD and possibly contemporary NetBSD.)
19936 For shared mappings, we should conversely verify that changes get
19937 propagated back to all the places they're supposed to be.
19939 Grep wants private fixed already mapped.
19940 The main things grep needs to know about mmap are:
19941 * does it exist and is it safe to write into the mmap'd area
19942 * how to use it (BSD variants) */
19945 #include <sys/mman.h>
19947 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
19951 /* This mess was copied from the GNU getpagesize.h. */
19952 #ifndef HAVE_GETPAGESIZE
19953 # ifdef _SC_PAGESIZE
19954 # define getpagesize() sysconf(_SC_PAGESIZE)
19955 # else /* no _SC_PAGESIZE */
19956 # ifdef HAVE_SYS_PARAM_H
19957 # include <sys/param.h>
19958 # ifdef EXEC_PAGESIZE
19959 # define getpagesize() EXEC_PAGESIZE
19960 # else /* no EXEC_PAGESIZE */
19962 # define getpagesize() NBPG * CLSIZE
19965 # endif /* no CLSIZE */
19966 # else /* no NBPG */
19968 # define getpagesize() NBPC
19969 # else /* no NBPC */
19971 # define getpagesize() PAGESIZE
19972 # endif /* PAGESIZE */
19973 # endif /* no NBPC */
19974 # endif /* no NBPG */
19975 # endif /* no EXEC_PAGESIZE */
19976 # else /* no HAVE_SYS_PARAM_H */
19977 # define getpagesize() 8192 /* punt totally */
19978 # endif /* no HAVE_SYS_PARAM_H */
19979 # endif /* no _SC_PAGESIZE */
19981 #endif /* no HAVE_GETPAGESIZE */
19986 char *data, *data2, *data3;
19987 const char *cdata2;
19991 pagesize = getpagesize ();
19993 /* First, make a file with some known garbage in it. */
19994 data = (char *) malloc (pagesize);
19997 for (i = 0; i < pagesize; ++i)
19998 *(data + i) = rand ();
20000 fd = creat ("conftest.mmap", 0600);
20003 if (write (fd, data, pagesize) != pagesize)
20007 /* Next, check that the tail of a page is zero-filled. File must have
20008 non-zero length, otherwise we risk SIGBUS for entire page. */
20009 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
20013 if (write (fd2, cdata2, 1) != 1)
20015 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
20016 if (data2 == MAP_FAILED)
20018 for (i = 0; i < pagesize; ++i)
20022 if (munmap (data2, pagesize))
20025 /* Next, try to mmap the file at a fixed address which already has
20026 something else allocated at it. If we can, also make sure that
20027 we see the same garbage. */
20028 fd = open ("conftest.mmap", O_RDWR);
20031 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20032 MAP_PRIVATE | MAP_FIXED, fd, 0L))
20034 for (i = 0; i < pagesize; ++i)
20035 if (*(data + i) != *(data2 + i))
20038 /* Finally, make sure that changes to the mapped area do not
20039 percolate back to the file as seen by read(). (This is a bug on
20040 some variants of i386 svr4.0.) */
20041 for (i = 0; i < pagesize; ++i)
20042 *(data2 + i) = *(data2 + i) + 1;
20043 data3 = (char *) malloc (pagesize);
20046 if (read (fd, data3, pagesize) != pagesize)
20048 for (i = 0; i < pagesize; ++i)
20049 if (*(data + i) != *(data3 + i))
20055 if ac_fn_c_try_run "$LINENO"; then :
20056 ac_cv_func_mmap_fixed_mapped=yes
20058 ac_cv_func_mmap_fixed_mapped=no
20060 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20061 conftest.$ac_objext conftest.beam conftest.$ac_ext
20065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
20066 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
20067 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20069 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
20072 rm -f conftest.mmap conftest.txt
20075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5
20076 $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
20077 if ${ac_cv_gnu_library_2_1+:} false; then :
20078 $as_echo_n "(cached) " >&6
20080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20081 /* end confdefs.h. */
20083 #include <features.h>
20084 #ifdef __GNU_LIBRARY__
20085 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
20091 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20092 $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
20093 ac_cv_gnu_library_2_1=yes
20095 ac_cv_gnu_library_2_1=no
20102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
20103 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
20105 GLIBC21="$ac_cv_gnu_library_2_1"
20110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
20111 $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
20112 if ${gt_cv_int_divbyzero_sigfpe+:} false; then :
20113 $as_echo_n "(cached) " >&6
20116 if test "$cross_compiling" = yes; then :
20118 # Guess based on the CPU.
20119 case "$host_cpu" in
20120 alpha* | i3456786 | m68k | s390*)
20121 gt_cv_int_divbyzero_sigfpe="guessing yes";;
20123 gt_cv_int_divbyzero_sigfpe="guessing no";;
20127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20128 /* end confdefs.h. */
20130 #include <stdlib.h>
20131 #include <signal.h>
20135 sigfpe_handler (int sig)
20137 sigfpe_handler (sig) int sig;
20140 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
20141 exit (sig != SIGFPE);
20151 signal (SIGFPE, sigfpe_handler);
20152 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
20153 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
20154 signal (SIGTRAP, sigfpe_handler);
20156 /* Linux/SPARC yields signal SIGILL. */
20157 #if defined (__sparc__) && defined (__linux__)
20158 signal (SIGILL, sigfpe_handler);
20167 if ac_fn_c_try_run "$LINENO"; then :
20168 gt_cv_int_divbyzero_sigfpe=yes
20170 gt_cv_int_divbyzero_sigfpe=no
20172 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20173 conftest.$ac_objext conftest.beam conftest.$ac_ext
20178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
20179 $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
20180 case "$gt_cv_int_divbyzero_sigfpe" in
20185 cat >>confdefs.h <<_ACEOF
20186 #define INTDIV0_RAISES_SIGFPE $value
20191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long" >&5
20192 $as_echo_n "checking for unsigned long long... " >&6; }
20193 if ${ac_cv_type_unsigned_long_long+:} false; then :
20194 $as_echo_n "(cached) " >&6
20196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20197 /* end confdefs.h. */
20198 unsigned long long ull = 1ULL; int i = 63;
20202 unsigned long long ullmax = (unsigned long long) -1;
20203 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
20208 if ac_fn_c_try_link "$LINENO"; then :
20209 ac_cv_type_unsigned_long_long=yes
20211 ac_cv_type_unsigned_long_long=no
20213 rm -f core conftest.err conftest.$ac_objext \
20214 conftest$ac_exeext conftest.$ac_ext
20216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long" >&5
20217 $as_echo "$ac_cv_type_unsigned_long_long" >&6; }
20218 if test $ac_cv_type_unsigned_long_long = yes; then
20220 $as_echo "#define HAVE_UNSIGNED_LONG_LONG 1" >>confdefs.h
20227 if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
20229 test $ac_cv_type_unsigned_long_long = yes \
20230 && ac_type='unsigned long long' \
20231 || ac_type='unsigned long'
20233 cat >>confdefs.h <<_ACEOF
20234 #define uintmax_t $ac_type
20239 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
20244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
20245 $as_echo_n "checking for inttypes.h... " >&6; }
20246 if ${gt_cv_header_inttypes_h+:} false; then :
20247 $as_echo_n "(cached) " >&6
20250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20251 /* end confdefs.h. */
20252 #include <sys/types.h>
20253 #include <inttypes.h>
20262 if ac_fn_c_try_compile "$LINENO"; then :
20263 gt_cv_header_inttypes_h=yes
20265 gt_cv_header_inttypes_h=no
20267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_header_inttypes_h" >&5
20271 $as_echo "$gt_cv_header_inttypes_h" >&6; }
20272 if test $gt_cv_header_inttypes_h = yes; then
20274 cat >>confdefs.h <<_ACEOF
20275 #define HAVE_INTTYPES_H 1
20282 if test $gt_cv_header_inttypes_h = yes; then
20283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
20284 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
20285 if ${gt_cv_inttypes_pri_broken+:} false; then :
20286 $as_echo_n "(cached) " >&6
20289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20290 /* end confdefs.h. */
20291 #include <inttypes.h>
20304 if ac_fn_c_try_compile "$LINENO"; then :
20305 gt_cv_inttypes_pri_broken=no
20307 gt_cv_inttypes_pri_broken=yes
20309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
20313 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
20315 if test "$gt_cv_inttypes_pri_broken" = yes; then
20317 cat >>confdefs.h <<_ACEOF
20318 #define PRI_MACROS_BROKEN 1
20324 for ac_header in stdint.h
20326 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
20327 if test "x$ac_cv_header_stdint_h" = xyes; then :
20328 cat >>confdefs.h <<_ACEOF
20329 #define HAVE_STDINT_H 1
20336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
20337 $as_echo_n "checking for SIZE_MAX... " >&6; }
20339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20340 /* end confdefs.h. */
20342 #include <limits.h>
20344 #include <stdint.h>
20351 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20352 $EGREP "Found it" >/dev/null 2>&1; then :
20357 if test -z "$result"; then
20358 if ac_fn_c_compute_int "$LINENO" "~(size_t)0 / 10" "res_hi" "#include <stddef.h>"; then :
20365 if ac_fn_c_compute_int "$LINENO" "~(size_t)0 % 10" "res_lo" "#include <stddef.h>"; then :
20372 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint" "#include <stddef.h>"; then :
20379 if test "$fits_in_uint" = 1; then
20380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20381 /* end confdefs.h. */
20382 #include <stddef.h>
20384 extern unsigned long foo;
20394 if ac_fn_c_try_compile "$LINENO"; then :
20397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20399 if test -z "$result"; then
20400 if test "$fits_in_uint" = 1; then
20401 result="$res_hi$res_lo"U
20403 result="$res_hi$res_lo"UL
20406 result='~(size_t)0'
20409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
20410 $as_echo "$result" >&6; }
20411 if test "$result" != yes; then
20413 cat >>confdefs.h <<_ACEOF
20414 #define SIZE_MAX $result
20422 for ac_header in stdint.h
20424 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
20425 if test "x$ac_cv_header_stdint_h" = xyes; then :
20426 cat >>confdefs.h <<_ACEOF
20427 #define HAVE_STDINT_H 1
20441 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
20442 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
20446 $as_echo "#define ptrdiff_t long" >>confdefs.h
20451 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
20452 stdlib.h string.h unistd.h sys/param.h
20454 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20455 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20456 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20457 cat >>confdefs.h <<_ACEOF
20458 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20465 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
20466 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
20467 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
20470 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20471 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20472 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
20473 cat >>confdefs.h <<_ACEOF
20474 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snprintf is declared" >&5
20483 $as_echo_n "checking whether _snprintf is declared... " >&6; }
20484 if ${ac_cv_have_decl__snprintf+:} false; then :
20485 $as_echo_n "(cached) " >&6
20487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20488 /* end confdefs.h. */
20495 char *p = (char *) _snprintf;
20502 if ac_fn_c_try_compile "$LINENO"; then :
20503 ac_cv_have_decl__snprintf=yes
20505 ac_cv_have_decl__snprintf=no
20507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snprintf" >&5
20510 $as_echo "$ac_cv_have_decl__snprintf" >&6; }
20511 if test $ac_cv_have_decl__snprintf = yes; then
20517 cat >>confdefs.h <<_ACEOF
20518 #define HAVE_DECL__SNPRINTF $gt_value
20523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snwprintf is declared" >&5
20524 $as_echo_n "checking whether _snwprintf is declared... " >&6; }
20525 if ${ac_cv_have_decl__snwprintf+:} false; then :
20526 $as_echo_n "(cached) " >&6
20528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20529 /* end confdefs.h. */
20536 char *p = (char *) _snwprintf;
20543 if ac_fn_c_try_compile "$LINENO"; then :
20544 ac_cv_have_decl__snwprintf=yes
20546 ac_cv_have_decl__snwprintf=no
20548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snwprintf" >&5
20551 $as_echo "$ac_cv_have_decl__snwprintf" >&6; }
20552 if test $ac_cv_have_decl__snwprintf = yes; then
20558 cat >>confdefs.h <<_ACEOF
20559 #define HAVE_DECL__SNWPRINTF $gt_value
20565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether feof_unlocked is declared" >&5
20566 $as_echo_n "checking whether feof_unlocked is declared... " >&6; }
20567 if ${ac_cv_have_decl_feof_unlocked+:} false; then :
20568 $as_echo_n "(cached) " >&6
20570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20571 /* end confdefs.h. */
20577 #ifndef feof_unlocked
20578 char *p = (char *) feof_unlocked;
20585 if ac_fn_c_try_compile "$LINENO"; then :
20586 ac_cv_have_decl_feof_unlocked=yes
20588 ac_cv_have_decl_feof_unlocked=no
20590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_feof_unlocked" >&5
20593 $as_echo "$ac_cv_have_decl_feof_unlocked" >&6; }
20594 if test $ac_cv_have_decl_feof_unlocked = yes; then
20600 cat >>confdefs.h <<_ACEOF
20601 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
20606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fgets_unlocked is declared" >&5
20607 $as_echo_n "checking whether fgets_unlocked is declared... " >&6; }
20608 if ${ac_cv_have_decl_fgets_unlocked+:} false; then :
20609 $as_echo_n "(cached) " >&6
20611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20612 /* end confdefs.h. */
20618 #ifndef fgets_unlocked
20619 char *p = (char *) fgets_unlocked;
20626 if ac_fn_c_try_compile "$LINENO"; then :
20627 ac_cv_have_decl_fgets_unlocked=yes
20629 ac_cv_have_decl_fgets_unlocked=no
20631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_fgets_unlocked" >&5
20634 $as_echo "$ac_cv_have_decl_fgets_unlocked" >&6; }
20635 if test $ac_cv_have_decl_fgets_unlocked = yes; then
20641 cat >>confdefs.h <<_ACEOF
20642 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
20647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getc_unlocked is declared" >&5
20648 $as_echo_n "checking whether getc_unlocked is declared... " >&6; }
20649 if ${ac_cv_have_decl_getc_unlocked+:} false; then :
20650 $as_echo_n "(cached) " >&6
20652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20653 /* end confdefs.h. */
20659 #ifndef getc_unlocked
20660 char *p = (char *) getc_unlocked;
20667 if ac_fn_c_try_compile "$LINENO"; then :
20668 ac_cv_have_decl_getc_unlocked=yes
20670 ac_cv_have_decl_getc_unlocked=no
20672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_getc_unlocked" >&5
20675 $as_echo "$ac_cv_have_decl_getc_unlocked" >&6; }
20676 if test $ac_cv_have_decl_getc_unlocked = yes; then
20682 cat >>confdefs.h <<_ACEOF
20683 #define HAVE_DECL_GETC_UNLOCKED $gt_value
20688 case $gt_cv_func_printf_posix in
20689 *yes) HAVE_POSIX_PRINTF=1 ;;
20690 *) HAVE_POSIX_PRINTF=0 ;;
20693 if test "$ac_cv_func_asprintf" = yes; then
20699 if test "$ac_cv_func_snprintf" = yes; then
20705 if test "$ac_cv_func_wprintf" = yes; then
20717 am_save_CPPFLAGS="$CPPFLAGS"
20719 for element in $INCICONV; do
20721 for x in $CPPFLAGS; do
20723 acl_save_prefix="$prefix"
20724 prefix="$acl_final_prefix"
20725 acl_save_exec_prefix="$exec_prefix"
20726 exec_prefix="$acl_final_exec_prefix"
20728 exec_prefix="$acl_save_exec_prefix"
20729 prefix="$acl_save_prefix"
20731 if test "X$x" = "X$element"; then
20736 if test -z "$haveit"; then
20737 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
20742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
20743 $as_echo_n "checking for iconv... " >&6; }
20744 if ${am_cv_func_iconv+:} false; then :
20745 $as_echo_n "(cached) " >&6
20748 am_cv_func_iconv="no, consider installing GNU libiconv"
20750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20751 /* end confdefs.h. */
20752 #include <stdlib.h>
20757 iconv_t cd = iconv_open("","");
20758 iconv(cd,NULL,NULL,NULL,NULL);
20764 if ac_fn_c_try_link "$LINENO"; then :
20765 am_cv_func_iconv=yes
20767 rm -f core conftest.err conftest.$ac_objext \
20768 conftest$ac_exeext conftest.$ac_ext
20769 if test "$am_cv_func_iconv" != yes; then
20770 am_save_LIBS="$LIBS"
20771 LIBS="$LIBS $LIBICONV"
20772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20773 /* end confdefs.h. */
20774 #include <stdlib.h>
20779 iconv_t cd = iconv_open("","");
20780 iconv(cd,NULL,NULL,NULL,NULL);
20786 if ac_fn_c_try_link "$LINENO"; then :
20787 am_cv_lib_iconv=yes
20788 am_cv_func_iconv=yes
20790 rm -f core conftest.err conftest.$ac_objext \
20791 conftest$ac_exeext conftest.$ac_ext
20792 LIBS="$am_save_LIBS"
20796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
20797 $as_echo "$am_cv_func_iconv" >&6; }
20798 if test "$am_cv_func_iconv" = yes; then
20800 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
20803 if test "$am_cv_lib_iconv" = yes; then
20804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
20805 $as_echo_n "checking how to link with libiconv... " >&6; }
20806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
20807 $as_echo "$LIBICONV" >&6; }
20809 CPPFLAGS="$am_save_CPPFLAGS"
20816 if test "$am_cv_func_iconv" = yes; then
20817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
20818 $as_echo_n "checking for iconv declaration... " >&6; }
20819 if ${am_cv_proto_iconv+:} false; then :
20820 $as_echo_n "(cached) " >&6
20823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20824 /* end confdefs.h. */
20826 #include <stdlib.h>
20832 #if defined(__STDC__) || defined(__cplusplus)
20833 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
20846 if ac_fn_c_try_compile "$LINENO"; then :
20847 am_cv_proto_iconv_arg1=""
20849 am_cv_proto_iconv_arg1="const"
20851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20852 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);"
20855 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
20856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
20857 }$am_cv_proto_iconv" >&5
20859 }$am_cv_proto_iconv" >&6; }
20861 cat >>confdefs.h <<_ACEOF
20862 #define ICONV_CONST $am_cv_proto_iconv_arg1
20868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
20869 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
20870 if ${am_cv_langinfo_codeset+:} false; then :
20871 $as_echo_n "(cached) " >&6
20873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20874 /* end confdefs.h. */
20875 #include <langinfo.h>
20879 char* cs = nl_langinfo(CODESET);
20884 if ac_fn_c_try_link "$LINENO"; then :
20885 am_cv_langinfo_codeset=yes
20887 am_cv_langinfo_codeset=no
20889 rm -f core conftest.err conftest.$ac_objext \
20890 conftest$ac_exeext conftest.$ac_ext
20893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
20894 $as_echo "$am_cv_langinfo_codeset" >&6; }
20895 if test $am_cv_langinfo_codeset = yes; then
20897 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
20901 if test $ac_cv_header_locale_h = yes; then
20903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
20904 $as_echo_n "checking for LC_MESSAGES... " >&6; }
20905 if ${gt_cv_val_LC_MESSAGES+:} false; then :
20906 $as_echo_n "(cached) " >&6
20908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20909 /* end confdefs.h. */
20910 #include <locale.h>
20919 if ac_fn_c_try_link "$LINENO"; then :
20920 gt_cv_val_LC_MESSAGES=yes
20922 gt_cv_val_LC_MESSAGES=no
20924 rm -f core conftest.err conftest.$ac_objext \
20925 conftest$ac_exeext conftest.$ac_ext
20927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_val_LC_MESSAGES" >&5
20928 $as_echo "$gt_cv_val_LC_MESSAGES" >&6; }
20929 if test $gt_cv_val_LC_MESSAGES = yes; then
20931 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
20937 if test -n "$INTL_MACOSX_LIBS"; then
20938 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
20941 for ac_prog in bison
20943 # Extract the first word of "$ac_prog", so it can be a program name with args.
20944 set dummy $ac_prog; ac_word=$2
20945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20946 $as_echo_n "checking for $ac_word... " >&6; }
20947 if ${ac_cv_prog_INTLBISON+:} false; then :
20948 $as_echo_n "(cached) " >&6
20950 if test -n "$INTLBISON"; then
20951 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
20953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20954 for as_dir in $PATH
20957 test -z "$as_dir" && as_dir=.
20958 for ac_exec_ext in '' $ac_executable_extensions; do
20959 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20960 ac_cv_prog_INTLBISON="$ac_prog"
20961 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20970 INTLBISON=$ac_cv_prog_INTLBISON
20971 if test -n "$INTLBISON"; then
20972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
20973 $as_echo "$INTLBISON" >&6; }
20975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20976 $as_echo "no" >&6; }
20980 test -n "$INTLBISON" && break
20983 if test -z "$INTLBISON"; then
20986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
20987 $as_echo_n "checking version of bison... " >&6; }
20988 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
20989 case $ac_prog_version in
20990 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
20991 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
20992 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
20993 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
20995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
20996 $as_echo "$ac_prog_version" >&6; }
20998 if test $ac_verc_fail = yes; then
21017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
21018 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
21019 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
21020 $as_echo_n "(cached) " >&6
21022 gt_save_CPPFLAGS="$CPPFLAGS"
21023 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
21024 gt_save_LIBS="$LIBS"
21025 LIBS="$LIBS -framework CoreFoundation"
21026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21027 /* end confdefs.h. */
21028 #include <CFPreferences.h>
21032 CFPreferencesCopyAppValue(NULL, NULL)
21037 if ac_fn_c_try_link "$LINENO"; then :
21038 gt_cv_func_CFPreferencesCopyAppValue=yes
21040 gt_cv_func_CFPreferencesCopyAppValue=no
21042 rm -f core conftest.err conftest.$ac_objext \
21043 conftest$ac_exeext conftest.$ac_ext
21044 CPPFLAGS="$gt_save_CPPFLAGS"
21045 LIBS="$gt_save_LIBS"
21047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
21048 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
21049 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
21051 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
21054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
21055 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
21056 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
21057 $as_echo_n "(cached) " >&6
21059 gt_save_CPPFLAGS="$CPPFLAGS"
21060 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
21061 gt_save_LIBS="$LIBS"
21062 LIBS="$LIBS -framework CoreFoundation"
21063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21064 /* end confdefs.h. */
21065 #include <CFLocale.h>
21069 CFLocaleCopyCurrent();
21074 if ac_fn_c_try_link "$LINENO"; then :
21075 gt_cv_func_CFLocaleCopyCurrent=yes
21077 gt_cv_func_CFLocaleCopyCurrent=no
21079 rm -f core conftest.err conftest.$ac_objext \
21080 conftest$ac_exeext conftest.$ac_ext
21081 CPPFLAGS="$gt_save_CPPFLAGS"
21082 LIBS="$gt_save_LIBS"
21084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
21085 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
21086 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
21088 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
21092 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
21093 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
21099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
21100 $as_echo_n "checking whether NLS is requested... " >&6; }
21101 # Check whether --enable-nls was given.
21102 if test "${enable_nls+set}" = set; then :
21103 enableval=$enable_nls; USE_NLS=$enableval
21108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
21109 $as_echo "$USE_NLS" >&6; }
21114 BUILD_INCLUDED_LIBINTL=no
21115 USE_INCLUDED_LIBINTL=no
21121 if test "$USE_NLS" = "yes"; then
21122 gt_use_preinstalled_gnugettext=no
21124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
21125 $as_echo_n "checking whether included gettext is requested... " >&6; }
21127 # Check whether --with-included-gettext was given.
21128 if test "${with_included_gettext+set}" = set; then :
21129 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
21131 nls_cv_force_use_gnu_gettext=no
21134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
21135 $as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
21137 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
21138 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
21145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
21146 $as_echo_n "checking for GNU gettext in libc... " >&6; }
21147 if ${gt_cv_func_gnugettext1_libc+:} false; then :
21148 $as_echo_n "(cached) " >&6
21150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21151 /* end confdefs.h. */
21152 #include <libintl.h>
21153 extern int _nl_msg_cat_cntr;
21154 extern int *_nl_domain_bindings;
21158 bindtextdomain ("", "");
21159 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
21164 if ac_fn_c_try_link "$LINENO"; then :
21165 gt_cv_func_gnugettext1_libc=yes
21167 gt_cv_func_gnugettext1_libc=no
21169 rm -f core conftest.err conftest.$ac_objext \
21170 conftest$ac_exeext conftest.$ac_ext
21172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5
21173 $as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
21175 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
21181 acl_save_prefix="$prefix"
21182 prefix="$acl_final_prefix"
21183 acl_save_exec_prefix="$exec_prefix"
21184 exec_prefix="$acl_final_exec_prefix"
21186 eval additional_includedir=\"$includedir\"
21187 eval additional_libdir=\"$libdir\"
21189 exec_prefix="$acl_save_exec_prefix"
21190 prefix="$acl_save_prefix"
21193 # Check whether --with-libintl-prefix was given.
21194 if test "${with_libintl_prefix+set}" = set; then :
21195 withval=$with_libintl_prefix;
21196 if test "X$withval" = "Xno"; then
21199 if test "X$withval" = "X"; then
21201 acl_save_prefix="$prefix"
21202 prefix="$acl_final_prefix"
21203 acl_save_exec_prefix="$exec_prefix"
21204 exec_prefix="$acl_final_exec_prefix"
21206 eval additional_includedir=\"$includedir\"
21207 eval additional_libdir=\"$libdir\"
21209 exec_prefix="$acl_save_exec_prefix"
21210 prefix="$acl_save_prefix"
21213 additional_includedir="$withval/include"
21214 additional_libdir="$withval/lib"
21225 names_already_handled=
21226 names_next_round='intl '
21227 while test -n "$names_next_round"; do
21228 names_this_round="$names_next_round"
21230 for name in $names_this_round; do
21232 for n in $names_already_handled; do
21233 if test "$n" = "$name"; then
21234 already_handled=yes
21238 if test -z "$already_handled"; then
21239 names_already_handled="$names_already_handled $name"
21240 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
21241 eval value=\"\$HAVE_LIB$uppername\"
21242 if test -n "$value"; then
21243 if test "$value" = yes; then
21244 eval value=\"\$LIB$uppername\"
21245 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
21246 eval value=\"\$LTLIB$uppername\"
21247 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
21256 if test $use_additional = yes; then
21257 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
21258 found_dir="$additional_libdir"
21259 found_so="$additional_libdir/lib$name.$shlibext"
21260 if test -f "$additional_libdir/lib$name.la"; then
21261 found_la="$additional_libdir/lib$name.la"
21264 if test -f "$additional_libdir/lib$name.$libext"; then
21265 found_dir="$additional_libdir"
21266 found_a="$additional_libdir/lib$name.$libext"
21267 if test -f "$additional_libdir/lib$name.la"; then
21268 found_la="$additional_libdir/lib$name.la"
21273 if test "X$found_dir" = "X"; then
21274 for x in $LDFLAGS $LTLIBINTL; do
21276 acl_save_prefix="$prefix"
21277 prefix="$acl_final_prefix"
21278 acl_save_exec_prefix="$exec_prefix"
21279 exec_prefix="$acl_final_exec_prefix"
21281 exec_prefix="$acl_save_exec_prefix"
21282 prefix="$acl_save_prefix"
21286 dir=`echo "X$x" | sed -e 's/^X-L//'`
21287 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
21289 found_so="$dir/lib$name.$shlibext"
21290 if test -f "$dir/lib$name.la"; then
21291 found_la="$dir/lib$name.la"
21294 if test -f "$dir/lib$name.$libext"; then
21296 found_a="$dir/lib$name.$libext"
21297 if test -f "$dir/lib$name.la"; then
21298 found_la="$dir/lib$name.la"
21304 if test "X$found_dir" != "X"; then
21309 if test "X$found_dir" != "X"; then
21310 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
21311 if test "X$found_so" != "X"; then
21312 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
21313 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
21316 for x in $ltrpathdirs; do
21317 if test "X$x" = "X$found_dir"; then
21322 if test -z "$haveit"; then
21323 ltrpathdirs="$ltrpathdirs $found_dir"
21325 if test "$hardcode_direct" = yes; then
21326 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
21328 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
21329 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
21331 for x in $rpathdirs; do
21332 if test "X$x" = "X$found_dir"; then
21337 if test -z "$haveit"; then
21338 rpathdirs="$rpathdirs $found_dir"
21342 for x in $LDFLAGS $LIBINTL; do
21344 acl_save_prefix="$prefix"
21345 prefix="$acl_final_prefix"
21346 acl_save_exec_prefix="$exec_prefix"
21347 exec_prefix="$acl_final_exec_prefix"
21349 exec_prefix="$acl_save_exec_prefix"
21350 prefix="$acl_save_prefix"
21352 if test "X$x" = "X-L$found_dir"; then
21357 if test -z "$haveit"; then
21358 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
21360 if test "$hardcode_minus_L" != no; then
21361 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
21363 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
21369 if test "X$found_a" != "X"; then
21370 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
21372 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
21375 additional_includedir=
21376 case "$found_dir" in
21378 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
21379 additional_includedir="$basedir/include"
21382 if test "X$additional_includedir" != "X"; then
21383 if test "X$additional_includedir" != "X/usr/include"; then
21385 if test "X$additional_includedir" = "X/usr/local/include"; then
21386 if test -n "$GCC"; then
21388 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
21392 if test -z "$haveit"; then
21393 for x in $CPPFLAGS $INCINTL; do
21395 acl_save_prefix="$prefix"
21396 prefix="$acl_final_prefix"
21397 acl_save_exec_prefix="$exec_prefix"
21398 exec_prefix="$acl_final_exec_prefix"
21400 exec_prefix="$acl_save_exec_prefix"
21401 prefix="$acl_save_prefix"
21403 if test "X$x" = "X-I$additional_includedir"; then
21408 if test -z "$haveit"; then
21409 if test -d "$additional_includedir"; then
21410 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
21416 if test -n "$found_la"; then
21417 save_libdir="$libdir"
21418 case "$found_la" in
21419 */* | *\\*) . "$found_la" ;;
21420 *) . "./$found_la" ;;
21422 libdir="$save_libdir"
21423 for dep in $dependency_libs; do
21426 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
21427 if test "X$additional_libdir" != "X/usr/lib"; then
21429 if test "X$additional_libdir" = "X/usr/local/lib"; then
21430 if test -n "$GCC"; then
21432 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
21436 if test -z "$haveit"; then
21438 for x in $LDFLAGS $LIBINTL; do
21440 acl_save_prefix="$prefix"
21441 prefix="$acl_final_prefix"
21442 acl_save_exec_prefix="$exec_prefix"
21443 exec_prefix="$acl_final_exec_prefix"
21445 exec_prefix="$acl_save_exec_prefix"
21446 prefix="$acl_save_prefix"
21448 if test "X$x" = "X-L$additional_libdir"; then
21453 if test -z "$haveit"; then
21454 if test -d "$additional_libdir"; then
21455 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
21459 for x in $LDFLAGS $LTLIBINTL; do
21461 acl_save_prefix="$prefix"
21462 prefix="$acl_final_prefix"
21463 acl_save_exec_prefix="$exec_prefix"
21464 exec_prefix="$acl_final_exec_prefix"
21466 exec_prefix="$acl_save_exec_prefix"
21467 prefix="$acl_save_prefix"
21469 if test "X$x" = "X-L$additional_libdir"; then
21474 if test -z "$haveit"; then
21475 if test -d "$additional_libdir"; then
21476 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
21483 dir=`echo "X$dep" | sed -e 's/^X-R//'`
21484 if test "$enable_rpath" != no; then
21486 for x in $rpathdirs; do
21487 if test "X$x" = "X$dir"; then
21492 if test -z "$haveit"; then
21493 rpathdirs="$rpathdirs $dir"
21496 for x in $ltrpathdirs; do
21497 if test "X$x" = "X$dir"; then
21502 if test -z "$haveit"; then
21503 ltrpathdirs="$ltrpathdirs $dir"
21508 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
21511 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
21514 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
21515 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
21521 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
21522 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
21528 if test "X$rpathdirs" != "X"; then
21529 if test -n "$hardcode_libdir_separator"; then
21531 for found_dir in $rpathdirs; do
21532 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
21534 acl_save_libdir="$libdir"
21536 eval flag=\"$hardcode_libdir_flag_spec\"
21537 libdir="$acl_save_libdir"
21538 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
21540 for found_dir in $rpathdirs; do
21541 acl_save_libdir="$libdir"
21542 libdir="$found_dir"
21543 eval flag=\"$hardcode_libdir_flag_spec\"
21544 libdir="$acl_save_libdir"
21545 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
21549 if test "X$ltrpathdirs" != "X"; then
21550 for found_dir in $ltrpathdirs; do
21551 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
21555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
21556 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
21557 if ${gt_cv_func_gnugettext1_libintl+:} false; then :
21558 $as_echo_n "(cached) " >&6
21560 gt_save_CPPFLAGS="$CPPFLAGS"
21561 CPPFLAGS="$CPPFLAGS $INCINTL"
21562 gt_save_LIBS="$LIBS"
21563 LIBS="$LIBS $LIBINTL"
21564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21565 /* end confdefs.h. */
21566 #include <libintl.h>
21567 extern int _nl_msg_cat_cntr;
21572 const char *_nl_expand_alias (const char *);
21576 bindtextdomain ("", "");
21577 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
21582 if ac_fn_c_try_link "$LINENO"; then :
21583 gt_cv_func_gnugettext1_libintl=yes
21585 gt_cv_func_gnugettext1_libintl=no
21587 rm -f core conftest.err conftest.$ac_objext \
21588 conftest$ac_exeext conftest.$ac_ext
21589 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
21590 LIBS="$LIBS $LIBICONV"
21591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21592 /* end confdefs.h. */
21593 #include <libintl.h>
21594 extern int _nl_msg_cat_cntr;
21599 const char *_nl_expand_alias (const char *);
21603 bindtextdomain ("", "");
21604 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
21609 if ac_fn_c_try_link "$LINENO"; then :
21610 LIBINTL="$LIBINTL $LIBICONV"
21611 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
21612 gt_cv_func_gnugettext1_libintl=yes
21615 rm -f core conftest.err conftest.$ac_objext \
21616 conftest$ac_exeext conftest.$ac_ext
21618 CPPFLAGS="$gt_save_CPPFLAGS"
21619 LIBS="$gt_save_LIBS"
21621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5
21622 $as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
21625 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
21626 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
21627 && test "$PACKAGE" != gettext-runtime \
21628 && test "$PACKAGE" != gettext-tools; }; then
21629 gt_use_preinstalled_gnugettext=yes
21637 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
21638 nls_cv_use_gnu_gettext=yes
21642 if test "$nls_cv_use_gnu_gettext" = "yes"; then
21643 BUILD_INCLUDED_LIBINTL=yes
21644 USE_INCLUDED_LIBINTL=yes
21645 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
21646 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
21647 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
21651 if test "$gt_use_preinstalled_gnugettext" = "yes" \
21652 || test "$nls_cv_use_gnu_gettext" = "yes"; then
21657 if test -n "$INTL_MACOSX_LIBS"; then
21658 if test "$gt_use_preinstalled_gnugettext" = "yes" \
21659 || test "$nls_cv_use_gnu_gettext" = "yes"; then
21660 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
21661 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
21665 if test "$gt_use_preinstalled_gnugettext" = "yes" \
21666 || test "$nls_cv_use_gnu_gettext" = "yes"; then
21668 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
21675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
21676 $as_echo_n "checking whether to use NLS... " >&6; }
21677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
21678 $as_echo "$USE_NLS" >&6; }
21679 if test "$USE_NLS" = "yes"; then
21680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
21681 $as_echo_n "checking where the gettext function comes from... " >&6; }
21682 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
21683 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
21684 gt_source="external libintl"
21689 gt_source="included intl directory"
21691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
21692 $as_echo "$gt_source" >&6; }
21695 if test "$USE_NLS" = "yes"; then
21697 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
21698 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
21699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
21700 $as_echo_n "checking how to link with libintl... " >&6; }
21701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
21702 $as_echo "$LIBINTL" >&6; }
21704 for element in $INCINTL; do
21706 for x in $CPPFLAGS; do
21708 acl_save_prefix="$prefix"
21709 prefix="$acl_final_prefix"
21710 acl_save_exec_prefix="$exec_prefix"
21711 exec_prefix="$acl_final_exec_prefix"
21713 exec_prefix="$acl_save_exec_prefix"
21714 prefix="$acl_save_prefix"
21716 if test "X$x" = "X$element"; then
21721 if test -z "$haveit"; then
21722 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
21729 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
21732 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
21740 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
21741 BUILD_INCLUDED_LIBINTL=yes
21748 nls_cv_header_intl=
21749 nls_cv_header_libgt=
21761 if test "$USE_INCLUDED_LIBINTL" = yes; then
21762 INTLOBJS="\$(GETTOBJS)"
21766 INTL_LIBTOOL_SUFFIX_PREFIX=
21770 INTLLIBS="$LIBINTL"
21779 support_smartalloc=yes
21780 support_readline=yes
21786 support_static_tools=no
21787 support_static_fd=no
21788 support_static_sd=no
21789 support_static_dir=no
21790 support_static_cons=no
21791 build_client_only=no
21795 batch_insert_db_backends=""
21799 # Check whether --enable-bat was given.
21800 if test "${enable_bat+set}" = set; then :
21801 enableval=$enable_bat;
21802 if test x$enableval = xyes; then
21804 $as_echo "#define HAVE_BAT 1" >>confdefs.h
21814 if test x$support_bat = xyes; then
21815 abc=`$PKGCONFIG --atleast-version=4.2 QtGui`
21817 if test $pkg = 0; then
21818 BAT_DIR=src/qt-console
21820 as_fn_error $? "Unable to find Qt4 installation needed by bat" "$LINENO" 5
21839 # Check whether --enable-smartalloc was given.
21840 if test "${enable_smartalloc+set}" = set; then :
21841 enableval=$enable_smartalloc;
21842 if test x$enableval = xno; then
21843 support_smartalloc=no
21850 if test x$support_smartalloc = xyes; then
21852 $as_echo "#define SMARTALLOC 1" >>confdefs.h
21856 # Check whether --enable-lockmgr was given.
21857 if test "${enable_lockmgr+set}" = set; then :
21858 enableval=$enable_lockmgr;
21859 if test x$enableval = xyes; then
21860 support_lockmgr=yes
21867 if test x$support_lockmgr = xyes; then
21869 $as_echo "#define _USE_LOCKMGR 1" >>confdefs.h
21874 # Check whether --enable-static-tools was given.
21875 if test "${enable_static_tools+set}" = set; then :
21876 enableval=$enable_static_tools;
21877 if test x$enableval = xyes; then
21878 if test x$use_libtool = xyes; then
21879 as_fn_error $? "Libtool is enabled, not compatible with static tools,
21880 please rerun configure with --disable-libtool" "$LINENO" 5
21882 support_static_tools=yes
21890 if test x$support_static_tools = xyes; then
21891 TTOOL_LDFLAGS="-static"
21895 # Check whether --enable-static-fd was given.
21896 if test "${enable_static_fd+set}" = set; then :
21897 enableval=$enable_static_fd;
21898 if test x$enableval = xyes; then
21899 if test x$use_libtool = xyes; then
21900 as_fn_error $? "Libtool is enabled, not compatible with static tools,
21901 please rerun configure with --disable-libtool" "$LINENO" 5
21903 support_static_fd=yes
21911 if test x$support_static_fd = xyes; then
21912 STATIC_FD="static-bacula-fd"
21916 # Check whether --enable-static-sd was given.
21917 if test "${enable_static_sd+set}" = set; then :
21918 enableval=$enable_static_sd;
21919 if test x$enableval = xyes; then
21920 if test x$use_libtool = xyes; then
21921 as_fn_error $? "Libtool is enabled, not compatible with static tools,
21922 please rerun configure with --disable-libtool" "$LINENO" 5
21924 support_static_sd=yes
21932 if test x$support_static_sd = xyes; then
21933 STATIC_SD="static-bacula-sd"
21937 # Check whether --enable-static-dir was given.
21938 if test "${enable_static_dir+set}" = set; then :
21939 enableval=$enable_static_dir;
21940 if test x$enableval = xyes; then
21941 if test x$use_libtool = xyes; then
21942 as_fn_error $? "Libtool is enabled, not compatible with static tools,
21943 please rerun configure with --disable-libtool" "$LINENO" 5
21945 support_static_dir=yes
21953 if test x$support_static_dir = xyes; then
21954 STATIC_DIR="static-bacula-dir"
21958 # Check whether --enable-static-cons was given.
21959 if test "${enable_static_cons+set}" = set; then :
21960 enableval=$enable_static_cons;
21961 if test x$enableval = xyes; then
21962 if test x$use_libtool = xyes; then
21963 as_fn_error $? "Libtool is enabled, not compatible with static tools,
21964 please rerun configure with --disable-libtool" "$LINENO" 5
21966 support_static_cons=yes
21974 if test x$support_static_cons = xyes; then
21975 STATIC_CONS="static-bconsole"
21979 # Check whether --enable-client-only was given.
21980 if test "${enable_client_only+set}" = set; then :
21981 enableval=$enable_client_only;
21982 if test x$enableval = xyes; then
21983 build_client_only=yes
21991 if test x$build_client_only = xno; then
21998 # Check whether --enable-build-dird was given.
21999 if test "${enable_build_dird+set}" = set; then :
22000 enableval=$enable_build_dird;
22001 if test x$enableval = xno; then
22008 if test x$build_dird = xyes; then
22009 DIRD_DIR="src/dird"
22010 DIR_TOOLS="DIRTOOLS"
22013 DIR_TOOLS="NODIRTOOLS"
22018 # Check whether --enable-build-stored was given.
22019 if test "${enable_build_stored+set}" = set; then :
22020 enableval=$enable_build_stored;
22021 if test x$enableval = xno; then
22028 if test x$build_stored = xyes; then
22029 STORED_DIR="src/stored"
22035 # Check whether --enable-conio was given.
22036 if test "${enable_conio+set}" = set; then :
22037 enableval=$enable_conio;
22038 if test x$enableval = xno; then
22048 # Check whether --enable-ipv6 was given.
22049 if test "${enable_ipv6+set}" = set; then :
22050 enableval=$enable_ipv6;
22051 if test x$enableval = xno; then
22059 if test x$support_ipv6 = xyes; then
22060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22061 /* end confdefs.h. */
22062 #include <sys/types.h>
22063 #include <sys/socket.h>
22064 #include <netinet/in.h>
22068 struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] = 0;
22073 if ac_fn_c_try_link "$LINENO"; then :
22078 rm -f core conftest.err conftest.$ac_objext \
22079 conftest$ac_exeext conftest.$ac_ext
22082 if test x$support_ipv6 = xyes; then
22084 $as_echo "#define HAVE_IPV6 1" >>confdefs.h
22089 ac_fn_c_check_header_mongrel "$LINENO" "curses.h" "ac_cv_header_curses_h" "$ac_includes_default"
22090 if test "x$ac_cv_header_curses_h" = xyes; then :
22092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltinfo" >&5
22093 $as_echo_n "checking for tgetent in -ltinfo... " >&6; }
22094 if ${ac_cv_lib_tinfo_tgetent+:} false; then :
22095 $as_echo_n "(cached) " >&6
22097 ac_check_lib_save_LIBS=$LIBS
22098 LIBS="-ltinfo $LIBS"
22099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22100 /* end confdefs.h. */
22102 /* Override any GCC internal prototype to avoid an error.
22103 Use char because int might match the return type of a GCC
22104 builtin and then its argument prototype would still apply. */
22117 if ac_fn_c_try_link "$LINENO"; then :
22118 ac_cv_lib_tinfo_tgetent=yes
22120 ac_cv_lib_tinfo_tgetent=no
22122 rm -f core conftest.err conftest.$ac_objext \
22123 conftest$ac_exeext conftest.$ac_ext
22124 LIBS=$ac_check_lib_save_LIBS
22126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tinfo_tgetent" >&5
22127 $as_echo "$ac_cv_lib_tinfo_tgetent" >&6; }
22128 if test "x$ac_cv_lib_tinfo_tgetent" = xyes; then :
22132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lncurses" >&5
22133 $as_echo_n "checking for tgetent in -lncurses... " >&6; }
22134 if ${ac_cv_lib_ncurses_tgetent+:} false; then :
22135 $as_echo_n "(cached) " >&6
22137 ac_check_lib_save_LIBS=$LIBS
22138 LIBS="-lncurses $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_ncurses_tgetent=yes
22160 ac_cv_lib_ncurses_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_ncurses_tgetent" >&5
22167 $as_echo "$ac_cv_lib_ncurses_tgetent" >&6; }
22168 if test "x$ac_cv_lib_ncurses_tgetent" = xyes; then :
22169 TERM_LIB="-lncurses"
22172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltermcap" >&5
22173 $as_echo_n "checking for tgetent in -ltermcap... " >&6; }
22174 if ${ac_cv_lib_termcap_tgetent+:} false; then :
22175 $as_echo_n "(cached) " >&6
22177 ac_check_lib_save_LIBS=$LIBS
22178 LIBS="-ltermcap $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_termcap_tgetent=yes
22200 ac_cv_lib_termcap_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_termcap_tgetent" >&5
22207 $as_echo "$ac_cv_lib_termcap_tgetent" >&6; }
22208 if test "x$ac_cv_lib_termcap_tgetent" = xyes; then :
22209 TERM_LIB="-ltermcap"
22220 for ac_header in curses.h
22222 ac_fn_c_check_header_mongrel "$LINENO" "curses.h" "ac_cv_header_curses_h" "$ac_includes_default"
22223 if test "x$ac_cv_header_curses_h" = xyes; then :
22224 cat >>confdefs.h <<_ACEOF
22225 #define HAVE_CURSES_H 1
22232 ac_fn_c_check_header_mongrel "$LINENO" "term.h" "ac_cv_header_term_h" "$ac_includes_default"
22233 if test "x$ac_cv_header_term_h" = xyes; then :
22234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lcurses" >&5
22235 $as_echo_n "checking for tgetent in -lcurses... " >&6; }
22236 if ${ac_cv_lib_curses_tgetent+:} false; then :
22237 $as_echo_n "(cached) " >&6
22239 ac_check_lib_save_LIBS=$LIBS
22240 LIBS="-lcurses $LIBS"
22241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22242 /* end confdefs.h. */
22244 /* Override any GCC internal prototype to avoid an error.
22245 Use char because int might match the return type of a GCC
22246 builtin and then its argument prototype would still apply. */
22259 if ac_fn_c_try_link "$LINENO"; then :
22260 ac_cv_lib_curses_tgetent=yes
22262 ac_cv_lib_curses_tgetent=no
22264 rm -f core conftest.err conftest.$ac_objext \
22265 conftest$ac_exeext conftest.$ac_ext
22266 LIBS=$ac_check_lib_save_LIBS
22268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_tgetent" >&5
22269 $as_echo "$ac_cv_lib_curses_tgetent" >&6; }
22270 if test "x$ac_cv_lib_curses_tgetent" = xyes; then :
22271 TERM_LIB="-lcurses"
22285 if test x$support_conio = xyes; then
22286 if test x$TERM_LIB != x; then
22287 CONS_LIBS=$TERM_LIB
22291 support_readline=no
22293 $as_echo "#define HAVE_CONIO 1" >>confdefs.h
22296 echo " "; echo "Required libraries not found. CONIO turned off ..."; echo " "
22301 # Check whether --enable-readline was given.
22302 if test "${enable_readline+set}" = set; then :
22303 enableval=$enable_readline;
22304 if test x$enableval = xno; then
22305 support_readline=no
22314 if test x$support_readline = xyes; then
22316 # Check whether --with-readline was given.
22317 if test "${with_readline+set}" = set; then :
22318 withval=$with_readline;
22319 case "$with_readline" in
22324 if test -f ${with_readline}/readline.h; then
22325 CONS_INC="-I${with_readline}"
22326 CONS_LDFLAGS="-L$with_readline"
22327 elif test -f ${with_readline}/include/readline/readline.h; then
22328 CONS_INC="-I${with_readline}/include/readline"
22329 CONS_LDFLAGS="-L${with_readline}/lib"
22330 with_readline="${with_readline}/include/readline"
22332 with_readline="/usr/include/readline"
22335 as_ac_Header=`$as_echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
22336 ac_fn_c_check_header_mongrel "$LINENO" "${with_readline}/readline.h" "$as_ac_Header" "$ac_includes_default"
22337 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22340 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
22342 CONS_LIBS="-lreadline -lhistory ${TERM_LIB}"
22348 echo "readline.h not found. readline turned off ..."
22360 ac_fn_c_check_header_mongrel "$LINENO" "/usr/include/readline/readline.h" "ac_cv_header__usr_include_readline_readline_h" "$ac_includes_default"
22361 if test "x$ac_cv_header__usr_include_readline_readline_h" = xyes; then :
22364 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
22367 CONS_INC="-I/usr/include/readline"
22368 CONS_LIBS="-lreadline ${TERM_LIB}"
22372 as_ac_Header=`$as_echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
22373 ac_fn_c_check_header_mongrel "$LINENO" "${TOP_DIR}/depkgs/readline/readline.h" "$as_ac_Header" "$ac_includes_default"
22374 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22377 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
22380 CONS_INC="-I${TOP_DIR}/depkgs/readline"
22381 CONS_LIBS="-lreadline -lhistory ${TERM_LIB}"
22382 CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
22383 PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
22388 echo "readline.h not found. readline turned off ..."
22415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
22416 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
22417 if ${ac_cv_header_stat_broken+:} false; then :
22418 $as_echo_n "(cached) " >&6
22420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22421 /* end confdefs.h. */
22422 #include <sys/types.h>
22423 #include <sys/stat.h>
22425 #if defined S_ISBLK && defined S_IFDIR
22426 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
22429 #if defined S_ISBLK && defined S_IFCHR
22430 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
22433 #if defined S_ISLNK && defined S_IFREG
22434 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
22437 #if defined S_ISSOCK && defined S_IFREG
22438 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
22442 if ac_fn_c_try_compile "$LINENO"; then :
22443 ac_cv_header_stat_broken=no
22445 ac_cv_header_stat_broken=yes
22447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
22450 $as_echo "$ac_cv_header_stat_broken" >&6; }
22451 if test $ac_cv_header_stat_broken = yes; then
22453 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
22457 ac_header_dirent=no
22458 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
22459 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
22460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
22461 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
22462 if eval \${$as_ac_Header+:} false; then :
22463 $as_echo_n "(cached) " >&6
22465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22466 /* end confdefs.h. */
22467 #include <sys/types.h>
22479 if ac_fn_c_try_compile "$LINENO"; then :
22480 eval "$as_ac_Header=yes"
22482 eval "$as_ac_Header=no"
22484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22486 eval ac_res=\$$as_ac_Header
22487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
22488 $as_echo "$ac_res" >&6; }
22489 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22490 cat >>confdefs.h <<_ACEOF
22491 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
22494 ac_header_dirent=$ac_hdr; break
22498 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
22499 if test $ac_header_dirent = dirent.h; then
22500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
22501 $as_echo_n "checking for library containing opendir... " >&6; }
22502 if ${ac_cv_search_opendir+:} false; then :
22503 $as_echo_n "(cached) " >&6
22505 ac_func_search_save_LIBS=$LIBS
22506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22507 /* end confdefs.h. */
22509 /* Override any GCC internal prototype to avoid an error.
22510 Use char because int might match the return type of a GCC
22511 builtin and then its argument prototype would still apply. */
22524 for ac_lib in '' dir; do
22525 if test -z "$ac_lib"; then
22526 ac_res="none required"
22529 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22531 if ac_fn_c_try_link "$LINENO"; then :
22532 ac_cv_search_opendir=$ac_res
22534 rm -f core conftest.err conftest.$ac_objext \
22536 if ${ac_cv_search_opendir+:} false; then :
22540 if ${ac_cv_search_opendir+:} false; then :
22543 ac_cv_search_opendir=no
22545 rm conftest.$ac_ext
22546 LIBS=$ac_func_search_save_LIBS
22548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
22549 $as_echo "$ac_cv_search_opendir" >&6; }
22550 ac_res=$ac_cv_search_opendir
22551 if test "$ac_res" != no; then :
22552 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
22558 $as_echo_n "checking for library containing opendir... " >&6; }
22559 if ${ac_cv_search_opendir+:} false; then :
22560 $as_echo_n "(cached) " >&6
22562 ac_func_search_save_LIBS=$LIBS
22563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22564 /* end confdefs.h. */
22566 /* Override any GCC internal prototype to avoid an error.
22567 Use char because int might match the return type of a GCC
22568 builtin and then its argument prototype would still apply. */
22581 for ac_lib in '' x; do
22582 if test -z "$ac_lib"; then
22583 ac_res="none required"
22586 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22588 if ac_fn_c_try_link "$LINENO"; then :
22589 ac_cv_search_opendir=$ac_res
22591 rm -f core conftest.err conftest.$ac_objext \
22593 if ${ac_cv_search_opendir+:} false; then :
22597 if ${ac_cv_search_opendir+:} false; then :
22600 ac_cv_search_opendir=no
22602 rm conftest.$ac_ext
22603 LIBS=$ac_func_search_save_LIBS
22605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
22606 $as_echo "$ac_cv_search_opendir" >&6; }
22607 ac_res=$ac_cv_search_opendir
22608 if test "$ac_res" != no; then :
22609 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22615 for ac_func in strcasecmp select setenv putenv tcgetattr
22617 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22618 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22619 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22620 cat >>confdefs.h <<_ACEOF
22621 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22627 for ac_func in lstat lchown lchmod futimes fchmod fchown
22629 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22630 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22631 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22632 cat >>confdefs.h <<_ACEOF
22633 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22639 for ac_func in nanosleep nl_langinfo
22641 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22642 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22643 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22644 cat >>confdefs.h <<_ACEOF
22645 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22651 for ac_header in varargs.h
22653 ac_fn_c_check_header_mongrel "$LINENO" "varargs.h" "ac_cv_header_varargs_h" "$ac_includes_default"
22654 if test "x$ac_cv_header_varargs_h" = xyes; then :
22655 cat >>confdefs.h <<_ACEOF
22656 #define HAVE_VARARGS_H 1
22665 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
22666 if test "x$ac_cv_func_socket" = xyes; then :
22667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using libc's socket" >&5
22668 $as_echo "using libc's socket" >&6; }
22670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lxnet" >&5
22671 $as_echo_n "checking for socket in -lxnet... " >&6; }
22672 if ${ac_cv_lib_xnet_socket+:} false; then :
22673 $as_echo_n "(cached) " >&6
22675 ac_check_lib_save_LIBS=$LIBS
22676 LIBS="-lxnet $LIBS"
22677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22678 /* end confdefs.h. */
22680 /* Override any GCC internal prototype to avoid an error.
22681 Use char because int might match the return type of a GCC
22682 builtin and then its argument prototype would still apply. */
22695 if ac_fn_c_try_link "$LINENO"; then :
22696 ac_cv_lib_xnet_socket=yes
22698 ac_cv_lib_xnet_socket=no
22700 rm -f core conftest.err conftest.$ac_objext \
22701 conftest$ac_exeext conftest.$ac_ext
22702 LIBS=$ac_check_lib_save_LIBS
22704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xnet_socket" >&5
22705 $as_echo "$ac_cv_lib_xnet_socket" >&6; }
22706 if test "x$ac_cv_lib_xnet_socket" = xyes; then :
22707 cat >>confdefs.h <<_ACEOF
22708 #define HAVE_LIBXNET 1
22711 LIBS="-lxnet $LIBS"
22715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
22716 $as_echo_n "checking for socket in -lsocket... " >&6; }
22717 if ${ac_cv_lib_socket_socket+:} false; then :
22718 $as_echo_n "(cached) " >&6
22720 ac_check_lib_save_LIBS=$LIBS
22721 LIBS="-lsocket $LIBS"
22722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22723 /* end confdefs.h. */
22725 /* Override any GCC internal prototype to avoid an error.
22726 Use char because int might match the return type of a GCC
22727 builtin and then its argument prototype would still apply. */
22740 if ac_fn_c_try_link "$LINENO"; then :
22741 ac_cv_lib_socket_socket=yes
22743 ac_cv_lib_socket_socket=no
22745 rm -f core conftest.err conftest.$ac_objext \
22746 conftest$ac_exeext conftest.$ac_ext
22747 LIBS=$ac_check_lib_save_LIBS
22749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
22750 $as_echo "$ac_cv_lib_socket_socket" >&6; }
22751 if test "x$ac_cv_lib_socket_socket" = xyes; then :
22752 cat >>confdefs.h <<_ACEOF
22753 #define HAVE_LIBSOCKET 1
22756 LIBS="-lsocket $LIBS"
22760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -linet" >&5
22761 $as_echo_n "checking for socket in -linet... " >&6; }
22762 if ${ac_cv_lib_inet_socket+:} false; then :
22763 $as_echo_n "(cached) " >&6
22765 ac_check_lib_save_LIBS=$LIBS
22766 LIBS="-linet $LIBS"
22767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22768 /* end confdefs.h. */
22770 /* Override any GCC internal prototype to avoid an error.
22771 Use char because int might match the return type of a GCC
22772 builtin and then its argument prototype would still apply. */
22785 if ac_fn_c_try_link "$LINENO"; then :
22786 ac_cv_lib_inet_socket=yes
22788 ac_cv_lib_inet_socket=no
22790 rm -f core conftest.err conftest.$ac_objext \
22791 conftest$ac_exeext conftest.$ac_ext
22792 LIBS=$ac_check_lib_save_LIBS
22794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_inet_socket" >&5
22795 $as_echo "$ac_cv_lib_inet_socket" >&6; }
22796 if test "x$ac_cv_lib_inet_socket" = xyes; then :
22797 cat >>confdefs.h <<_ACEOF
22798 #define HAVE_LIBINET 1
22801 LIBS="-linet $LIBS"
22811 # Check whether --with-tcp-wrappers was given.
22812 if test "${with_tcp_wrappers+set}" = set; then :
22813 withval=$with_tcp_wrappers;
22814 if test "x$withval" != "xno" ; then
22816 LIBS="$saved_LIBS -lwrap"
22817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nanosleep" >&5
22818 $as_echo_n "checking for library containing nanosleep... " >&6; }
22819 if ${ac_cv_search_nanosleep+:} false; then :
22820 $as_echo_n "(cached) " >&6
22822 ac_func_search_save_LIBS=$LIBS
22823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22824 /* end confdefs.h. */
22826 /* Override any GCC internal prototype to avoid an error.
22827 Use char because int might match the return type of a GCC
22828 builtin and then its argument prototype would still apply. */
22836 return nanosleep ();
22841 for ac_lib in '' rt; do
22842 if test -z "$ac_lib"; then
22843 ac_res="none required"
22846 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22848 if ac_fn_c_try_link "$LINENO"; then :
22849 ac_cv_search_nanosleep=$ac_res
22851 rm -f core conftest.err conftest.$ac_objext \
22853 if ${ac_cv_search_nanosleep+:} false; then :
22857 if ${ac_cv_search_nanosleep+:} false; then :
22860 ac_cv_search_nanosleep=no
22862 rm conftest.$ac_ext
22863 LIBS=$ac_func_search_save_LIBS
22865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nanosleep" >&5
22866 $as_echo "$ac_cv_search_nanosleep" >&6; }
22867 ac_res=$ac_cv_search_nanosleep
22868 if test "$ac_res" != no; then :
22869 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libwrap" >&5
22874 $as_echo_n "checking for libwrap... " >&6; }
22875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22876 /* end confdefs.h. */
22878 #include <sys/types.h>
22880 int deny_severity = 0;
22881 int allow_severity = 0;
22882 struct request_info *req;
22894 if ac_fn_c_try_link "$LINENO"; then :
22896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22897 $as_echo "yes" >&6; }
22899 $as_echo "#define HAVE_LIBWRAP 1" >>confdefs.h
22907 LIBS="$saved_LIBS -lwrap -lnsl"
22908 WRAPLIBS="$saved_LIBS -lwrap -lnsl"
22909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22910 /* end confdefs.h. */
22912 #include <sys/types.h>
22914 int deny_severity = 0;
22915 int allow_severity = 0;
22916 struct request_info *req;
22928 if ac_fn_c_try_link "$LINENO"; then :
22930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22931 $as_echo "yes" >&6; }
22933 $as_echo "#define HAVE_LIBWRAP 1" >>confdefs.h
22941 as_fn_error $? "*** libwrap missing" "$LINENO" 5
22945 rm -f core conftest.err conftest.$ac_objext \
22946 conftest$ac_exeext conftest.$ac_ext
22950 rm -f core conftest.err conftest.$ac_objext \
22951 conftest$ac_exeext conftest.$ac_ext
22959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL" >&5
22960 $as_echo_n "checking for OpenSSL... " >&6; }
22962 # Check whether --with-openssl was given.
22963 if test "${with_openssl+set}" = set; then :
22964 withval=$with_openssl;
22965 with_openssl_directory=${withval}
22971 if test "x$with_openssl_directory" != "xno"; then
22972 OPENSSL_LIBS="-lssl -lcrypto"
22975 if test "x$with_openssl_directory" != "xyes" && test x"${with_openssl_directory}" != "x"; then
22977 # Make sure the $with_openssl_directory also makes sense
22979 if test -d "$with_openssl_directory/lib" -a -d "$with_openssl_directory/include"; then
22980 OPENSSL_LIBS="-L$with_openssl_directory/lib $OPENSSL_LIBS"
22981 OPENSSL_INC="-I$with_openssl_directory/include $OPENSSL_INC"
22985 saved_LIBS="${LIBS}"
22986 saved_CFLAGS="${CFLAGS}"
22987 LIBS="${saved_LIBS} ${OPENSSL_LIBS}"
22988 CFLAGS="${saved_CFLAGS} ${OPENSSL_INC}"
22990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22991 /* end confdefs.h. */
22993 #include <openssl/ssl.h>
22999 CRYPTO_set_id_callback(NULL);
23005 if ac_fn_c_try_link "$LINENO"; then :
23008 support_crypto="yes"
23013 support_crypto="no"
23017 rm -f core conftest.err conftest.$ac_objext \
23018 conftest$ac_exeext conftest.$ac_ext
23020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23021 /* end confdefs.h. */
23023 #include <openssl/evp.h>
23035 if ac_fn_c_try_link "$LINENO"; then :
23037 ac_cv_openssl_sha2="yes"
23041 ac_cv_openssl_sha2="no"
23045 rm -f core conftest.err conftest.$ac_objext \
23046 conftest$ac_exeext conftest.$ac_ext
23048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23049 /* end confdefs.h. */
23051 #include <openssl/evp.h>
23063 if ac_fn_c_try_link "$LINENO"; then :
23065 ac_cv_openssl_export="no"
23069 ac_cv_openssl_export="yes"
23073 rm -f core conftest.err conftest.$ac_objext \
23074 conftest$ac_exeext conftest.$ac_ext
23076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $support_tls" >&5
23077 $as_echo "$support_tls" >&6; }
23078 if test "$support_tls" = "yes"; then
23080 $as_echo "#define HAVE_OPENSSL 1" >>confdefs.h
23083 $as_echo "#define HAVE_TLS 1" >>confdefs.h
23086 $as_echo "#define HAVE_CRYPTO 1" >>confdefs.h
23090 if test "$ac_cv_openssl_sha2" = "yes"; then
23092 $as_echo "#define HAVE_SHA2 1" >>confdefs.h
23096 if test "$ac_cv_openssl_export" = "yes"; then
23098 $as_echo "#define HAVE_OPENSSL_EXPORT_LIBRARY 1" >>confdefs.h
23102 if test "$support_crypto" = "yes"; then
23103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVP_PKEY_encrypt_old in -lcrypto" >&5
23104 $as_echo_n "checking for EVP_PKEY_encrypt_old in -lcrypto... " >&6; }
23105 if ${ac_cv_lib_crypto_EVP_PKEY_encrypt_old+:} false; then :
23106 $as_echo_n "(cached) " >&6
23108 ac_check_lib_save_LIBS=$LIBS
23109 LIBS="-lcrypto $LIBS"
23110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23111 /* end confdefs.h. */
23113 /* Override any GCC internal prototype to avoid an error.
23114 Use char because int might match the return type of a GCC
23115 builtin and then its argument prototype would still apply. */
23119 char EVP_PKEY_encrypt_old ();
23123 return EVP_PKEY_encrypt_old ();
23128 if ac_fn_c_try_link "$LINENO"; then :
23129 ac_cv_lib_crypto_EVP_PKEY_encrypt_old=yes
23131 ac_cv_lib_crypto_EVP_PKEY_encrypt_old=no
23133 rm -f core conftest.err conftest.$ac_objext \
23134 conftest$ac_exeext conftest.$ac_ext
23135 LIBS=$ac_check_lib_save_LIBS
23137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_EVP_PKEY_encrypt_old" >&5
23138 $as_echo "$ac_cv_lib_crypto_EVP_PKEY_encrypt_old" >&6; }
23139 if test "x$ac_cv_lib_crypto_EVP_PKEY_encrypt_old" = xyes; then :
23141 $as_echo "#define HAVE_OPENSSLv1 1" >>confdefs.h
23147 LIBS="${saved_LIBS}"
23148 CFLAGS="${saved_CFLAGS}"
23151 support_crypto="no"
23152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $support_tls" >&5
23153 $as_echo "$support_tls" >&6; }
23156 if test "$support_tls" = "no" -o "$support_crypto" = "no"; then
23164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
23165 $as_echo_n "checking for library containing dlopen... " >&6; }
23166 if ${ac_cv_search_dlopen+:} false; then :
23167 $as_echo_n "(cached) " >&6
23169 ac_func_search_save_LIBS=$LIBS
23170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23171 /* end confdefs.h. */
23173 /* Override any GCC internal prototype to avoid an error.
23174 Use char because int might match the return type of a GCC
23175 builtin and then its argument prototype would still apply. */
23188 for ac_lib in '' dl; do
23189 if test -z "$ac_lib"; then
23190 ac_res="none required"
23193 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
23195 if ac_fn_c_try_link "$LINENO"; then :
23196 ac_cv_search_dlopen=$ac_res
23198 rm -f core conftest.err conftest.$ac_objext \
23200 if ${ac_cv_search_dlopen+:} false; then :
23204 if ${ac_cv_search_dlopen+:} false; then :
23207 ac_cv_search_dlopen=no
23209 rm conftest.$ac_ext
23210 LIBS=$ac_func_search_save_LIBS
23212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
23213 $as_echo "$ac_cv_search_dlopen" >&6; }
23214 ac_res=$ac_cv_search_dlopen
23215 if test "$ac_res" != no; then :
23216 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23221 working_dir=`eval echo /opt/bacula/working`
23223 # Check whether --with-working-dir was given.
23224 if test "${with_working_dir+set}" = set; then :
23225 withval=$with_working_dir;
23226 if test "x$withval" != "xno" ; then
23227 working_dir=$withval
23238 # Check whether --with-archivedir was given.
23239 if test "${with_archivedir+set}" = set; then :
23240 withval=$with_archivedir;
23241 if test "x$withval" != "xno" ; then
23242 archivedir=$withval
23251 basename=`hostname`
23253 # Check whether --with-basename was given.
23254 if test "${with_basename+set}" = set; then :
23255 withval=$with_basename;
23256 if test "x$withval" != "xno" ; then
23266 hostname=`uname -n | cut -d '.' -f 1`
23267 if test x${hostname} = x ; then
23268 hostname="localhost"
23270 ping -c 1 $hostname 2>/dev/null 1>/dev/null
23271 if test ! $? = 0; then
23272 hostname="localhost"
23275 # Check whether --with-hostname was given.
23276 if test "${with_hostname+set}" = set; then :
23277 withval=$with_hostname;
23278 if test "x$withval" != "xno" ; then
23289 scriptdir=`eval echo ${sysconfdir}`
23291 # Check whether --with-scriptdir was given.
23292 if test "${with_scriptdir+set}" = set; then :
23293 withval=$with_scriptdir;
23294 if test "x$withval" != "xno" ; then
23305 bsrdir=`eval echo /opt/bacula/bsr`
23307 # Check whether --with-bsrdir was given.
23308 if test "${with_bsrdir+set}" = set; then :
23309 withval=$with_bsrdir;
23310 if test "x$withval" != "xno" ; then
23320 logdir=`eval echo /opt/bacula/log`
23322 # Check whether --with-logdir was given.
23323 if test "${with_logdir+set}" = set; then :
23324 withval=$with_logdir;
23325 if test "x$withval" != "xno" ; then
23336 # ------------------------------------------
23337 # Where to place plugindir (plugin files)
23338 # ------------------------------------------
23339 plugindir=`eval echo ${libdir}`
23341 # Check whether --with-plugindir was given.
23342 if test "${with_plugindir+set}" = set; then :
23343 withval=$with_plugindir;
23344 if test "x$withval" != "xno" ; then
23354 dump_email=root@localhost
23356 # Check whether --with-dump-email was given.
23357 if test "${with_dump_email+set}" = set; then :
23358 withval=$with_dump_email;
23359 if test "x$withval" != "xno" ; then
23360 dump_email=$withval
23369 job_email=root@localhost
23371 # Check whether --with-job-email was given.
23372 if test "${with_job_email+set}" = set; then :
23373 withval=$with_job_email;
23374 if test "x$withval" != "xno" ; then
23384 smtp_host=localhost
23386 # Check whether --with-smtp_host was given.
23387 if test "${with_smtp_host+set}" = set; then :
23388 withval=$with_smtp_host;
23389 if test "x$withval" != "xno" ; then
23401 # Check whether --with-pid-dir was given.
23402 if test "${with_pid_dir+set}" = set; then :
23403 withval=$with_pid_dir;
23404 if test "x$withval" != "xno" ; then
23412 cat >>confdefs.h <<_ACEOF
23413 #define _PATH_BACULA_PIDDIR "$piddir"
23418 subsysdir=/var/run/subsys
23419 if test -d /var/run/subsys; then
23420 subsysdir=/var/run/subsys
23421 elif test -d /var/lock/subsys; then
23422 subsysdir=/var/lock/subsys
23424 subsysdir=/var/run/subsys
23427 # Check whether --with-subsys-dir was given.
23428 if test "${with_subsys_dir+set}" = set; then :
23429 withval=$with_subsys_dir;
23430 if test "x$withval" != "xno" ; then
23442 # Check whether --with-baseport was given.
23443 if test "${with_baseport+set}" = set; then :
23444 withval=$with_baseport;
23445 if test "x$withval" != "xno" ; then
23454 dir_port=`expr $baseport`
23455 fd_port=`expr $baseport + 1`
23456 sd_port=`expr $fd_port + 1`
23464 # Check whether --with-dir-password was given.
23465 if test "${with_dir_password+set}" = set; then :
23466 withval=$with_dir_password;
23467 if test "x$withval" != "xno" ; then
23468 dir_password=$withval
23475 if test "x$dir_password" = "x" ; then
23476 if test "x$OPENSSL" = "xnone" ; then
23477 key=`autoconf/randpass 33`
23479 key=`openssl rand -base64 33`
23486 # Check whether --with-fd-password was given.
23487 if test "${with_fd_password+set}" = set; then :
23488 withval=$with_fd_password;
23489 if test "x$withval" != "xno" ; then
23490 fd_password=$withval
23497 if test "x$fd_password" = "x" ; then
23498 if test "x$OPENSSL" = "xnone" ; then
23499 key=`autoconf/randpass 37`
23501 key=`openssl rand -base64 33`
23508 # Check whether --with-sd-password was given.
23509 if test "${with_sd_password+set}" = set; then :
23510 withval=$with_sd_password;
23511 if test "x$withval" != "xno" ; then
23512 sd_password=$withval
23519 if test "x$sd_password" = "x" ; then
23520 if test "x$OPENSSL" = "xnone" ; then
23521 key=`autoconf/randpass 41`
23523 key=`openssl rand -base64 33`
23530 # Check whether --with-mon-dir-password was given.
23531 if test "${with_mon_dir_password+set}" = set; then :
23532 withval=$with_mon_dir_password;
23533 if test "x$withval" != "xno" ; then
23534 mon_dir_password=$withval
23541 if test "x$mon_dir_password" = "x" ; then
23542 if test "x$OPENSSL" = "xnone" ; then
23543 key=`autoconf/randpass 33`
23545 key=`openssl rand -base64 33`
23547 mon_dir_password=$key
23552 # Check whether --with-mon-fd-password was given.
23553 if test "${with_mon_fd_password+set}" = set; then :
23554 withval=$with_mon_fd_password;
23555 if test "x$withval" != "xno" ; then
23556 mon_fd_password=$withval
23563 if test "x$mon_fd_password" = "x" ; then
23564 if test "x$OPENSSL" = "xnone" ; then
23565 key=`autoconf/randpass 37`
23567 key=`openssl rand -base64 33`
23569 mon_fd_password=$key
23574 # Check whether --with-mon-sd-password was given.
23575 if test "${with_mon_sd_password+set}" = set; then :
23576 withval=$with_mon_sd_password;
23577 if test "x$withval" != "xno" ; then
23578 mon_sd_password=$withval
23585 if test "x$mon_sd_password" = "x" ; then
23586 if test "x$OPENSSL" = "xnone" ; then
23587 key=`autoconf/randpass 41`
23589 key=`openssl rand -base64 33`
23591 mon_sd_password=$key
23603 # Check whether --with-db_name was given.
23604 if test "${with_db_name+set}" = set; then :
23605 withval=$with_db_name;
23606 if test "x$withval" != "x" ; then
23617 # Check whether --with-db_user was given.
23618 if test "${with_db_user+set}" = set; then :
23619 withval=$with_db_user;
23620 if test "x$withval" != "x" ; then
23631 # Check whether --with-db_password was given.
23632 if test "${with_db_password+set}" = set; then :
23633 withval=$with_db_password;
23634 if test "x$withval" != "x" ; then
23635 db_password=$withval
23645 # Check whether --with-db_port was given.
23646 if test "${with_db_port+set}" = set; then :
23647 withval=$with_db_port;
23648 if test "x$withval" != "x" ; then
23658 # Handle users and groups for each daemon
23662 # Check whether --with-dir_user was given.
23663 if test "${with_dir_user+set}" = set; then :
23664 withval=$with_dir_user;
23665 if test "x$withval" != "x" ; then
23675 # Check whether --with-dir_group was given.
23676 if test "${with_dir_group+set}" = set; then :
23677 withval=$with_dir_group;
23678 if test "x$withval" != "x" ; then
23688 # Check whether --with-sd_user was given.
23689 if test "${with_sd_user+set}" = set; then :
23690 withval=$with_sd_user;
23691 if test "x$withval" != "x" ; then
23701 # Check whether --with-sd_group was given.
23702 if test "${with_sd_group+set}" = set; then :
23703 withval=$with_sd_group;
23704 if test "x$withval" != "x" ; then
23714 # Check whether --with-fd_user was given.
23715 if test "${with_fd_user+set}" = set; then :
23716 withval=$with_fd_user;
23717 if test "x$withval" != "x" ; then
23727 # Check whether --with-fd_group was given.
23728 if test "${with_fd_group+set}" = set; then :
23729 withval=$with_fd_group;
23730 if test "x$withval" != "x" ; then
23747 # Check whether --with-sbin-perm was given.
23748 if test "${with_sbin_perm+set}" = set; then :
23749 withval=$with_sbin_perm;
23750 if test "x$withval" != "x" ; then
23760 support_batch_insert=yes
23761 # Check whether --enable-batch-insert was given.
23762 if test "${enable_batch_insert+set}" = set; then :
23763 enableval=$enable_batch_insert;
23764 if test x$enableval = xno; then
23765 support_batch_insert=no
23772 if test x$support_batch_insert = xyes; then
23774 $as_echo "#define USE_BATCH_FILE_INSERT 1" >>confdefs.h
23782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PostgreSQL support" >&5
23783 $as_echo_n "checking for PostgreSQL support... " >&6; }
23785 # Check whether --with-postgresql was given.
23786 if test "${with_postgresql+set}" = set; then :
23787 withval=$with_postgresql;
23788 if test "$withval" != "no"; then
23789 if test "$withval" = "yes"; then
23790 PG_CONFIG=`which pg_config 2>/dev/null`
23791 if test -n "$PG_CONFIG"; then
23792 POSTGRESQL_INCDIR=`"$PG_CONFIG" --includedir`
23793 POSTGRESQL_LIBDIR=`"$PG_CONFIG" --libdir`
23794 POSTGRESQL_BINDIR=`"$PG_CONFIG" --bindir`
23795 elif test -f /usr/local/include/libpq-fe.h; then
23796 POSTGRESQL_INCDIR=/usr/local/include
23797 if test -d /usr/local/lib64; then
23798 POSTGRESQL_LIBDIR=/usr/local/lib64
23800 POSTGRESQL_LIBDIR=/usr/local/lib
23802 POSTGRESQL_BINDIR=/usr/local/bin
23803 elif test -f /usr/include/libpq-fe.h; then
23804 POSTGRESQL_INCDIR=/usr/include
23805 if test -d /usr/lib64; then
23806 POSTGRESQL_LIBDIR=/usr/lib64
23808 POSTGRESQL_LIBDIR=/usr/lib
23810 POSTGRESQL_BINDIR=/usr/bin
23811 elif test -f /usr/include/pgsql/libpq-fe.h; then
23812 POSTGRESQL_INCDIR=/usr/include/pgsql
23813 if test -d /usr/lib64/pgsql; then
23814 POSTGRESQL_LIBDIR=/usr/lib64/pgsql
23816 POSTGRESQL_LIBDIR=/usr/lib/pgsql
23818 POSTGRESQL_BINDIR=/usr/bin
23819 elif test -f /usr/include/postgresql/libpq-fe.h; then
23820 POSTGRESQL_INCDIR=/usr/include/postgresql
23821 if test -d /usr/lib64/postgresql; then
23822 POSTGRESQL_LIBDIR=/usr/lib64/postgresql
23824 POSTGRESQL_LIBDIR=/usr/lib/postgresql
23826 POSTGRESQL_BINDIR=/usr/bin
23828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23829 $as_echo "no" >&6; }
23830 as_fn_error $? "Unable to find libpq-fe.h in standard locations" "$LINENO" 5
23832 elif test -f $withval/include/libpq-fe.h; then
23833 POSTGRESQL_INCDIR=$withval/include
23834 POSTGRESQL_LIBDIR=$withval/lib
23835 POSTGRESQL_BINDIR=$withval/bin
23836 elif test -f $withval/include/postgresql/libpq-fe.h; then
23837 POSTGRESQL_INCDIR=$withval/include/postgresql
23838 if test -d $withval/lib64; then
23839 POSTGRESQL_LIBDIR=$withval/lib64
23841 POSTGRESQL_LIBDIR=$withval/lib
23843 POSTGRESQL_BINDIR=$withval/bin
23845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23846 $as_echo "no" >&6; }
23847 as_fn_error $? "Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" "$LINENO" 5
23850 $as_echo "#define HAVE_POSTGRESQL 1" >>confdefs.h
23852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23853 $as_echo "yes" >&6; }
23855 POSTGRESQL_INCLUDE=-I$POSTGRESQL_INCDIR
23856 if test x$use_libtool != xno; then
23857 POSTGRESQL_LIBS="-R $POSTGRESQL_LIBDIR -L$POSTGRESQL_LIBDIR -lpq"
23859 POSTGRESQL_LIBS="-L$POSTGRESQL_LIBDIR -lpq"
23861 ac_fn_c_check_func "$LINENO" "crypt" "ac_cv_func_crypt"
23862 if test "x$ac_cv_func_crypt" = xyes; then :
23865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
23866 $as_echo_n "checking for crypt in -lcrypt... " >&6; }
23867 if ${ac_cv_lib_crypt_crypt+:} false; then :
23868 $as_echo_n "(cached) " >&6
23870 ac_check_lib_save_LIBS=$LIBS
23871 LIBS="-lcrypt $LIBS"
23872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23873 /* end confdefs.h. */
23875 /* Override any GCC internal prototype to avoid an error.
23876 Use char because int might match the return type of a GCC
23877 builtin and then its argument prototype would still apply. */
23890 if ac_fn_c_try_link "$LINENO"; then :
23891 ac_cv_lib_crypt_crypt=yes
23893 ac_cv_lib_crypt_crypt=no
23895 rm -f core conftest.err conftest.$ac_objext \
23896 conftest$ac_exeext conftest.$ac_ext
23897 LIBS=$ac_check_lib_save_LIBS
23899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
23900 $as_echo "$ac_cv_lib_crypt_crypt" >&6; }
23901 if test "x$ac_cv_lib_crypt_crypt" = xyes; then :
23902 POSTGRESQL_LIBS="$POSTGRESQL_LIBS -lcrypt"
23907 POSTGRESQL_LIB=$POSTGRESQL_LIBDIR/libpq.a
23908 DB_LIBS="${DB_LIBS} ${POSTGRESQL_LIBS}"
23910 if test -z "${db_backends}"; then
23911 db_backends="PostgreSQL"
23913 db_backends="${db_backends} PostgreSQL"
23915 if test -z "${DB_BACKENDS}"; then
23916 DB_BACKENDS="postgresql"
23918 DB_BACKENDS="${DB_BACKENDS} postgresql"
23921 if test "x$support_batch_insert" = "xyes"; then
23922 saved_LDFLAGS="${LDFLAGS}"
23923 LDFLAGS="${saved_LDFLAGS} -L$POSTGRESQL_LIBDIR"
23924 saved_LIBS="${LIBS}"
23925 if test "x$ac_cv_lib_crypt_crypt" = "xyes" ; then
23926 LIBS="${saved_LIBS} -lcrypt"
23929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQisthreadsafe in -lpq" >&5
23930 $as_echo_n "checking for PQisthreadsafe in -lpq... " >&6; }
23931 if ${ac_cv_lib_pq_PQisthreadsafe+:} false; then :
23932 $as_echo_n "(cached) " >&6
23934 ac_check_lib_save_LIBS=$LIBS
23936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23937 /* end confdefs.h. */
23939 /* Override any GCC internal prototype to avoid an error.
23940 Use char because int might match the return type of a GCC
23941 builtin and then its argument prototype would still apply. */
23945 char PQisthreadsafe ();
23949 return PQisthreadsafe ();
23954 if ac_fn_c_try_link "$LINENO"; then :
23955 ac_cv_lib_pq_PQisthreadsafe=yes
23957 ac_cv_lib_pq_PQisthreadsafe=no
23959 rm -f core conftest.err conftest.$ac_objext \
23960 conftest$ac_exeext conftest.$ac_ext
23961 LIBS=$ac_check_lib_save_LIBS
23963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQisthreadsafe" >&5
23964 $as_echo "$ac_cv_lib_pq_PQisthreadsafe" >&6; }
23965 if test "x$ac_cv_lib_pq_PQisthreadsafe" = xyes; then :
23967 $as_echo "#define HAVE_PQISTHREADSAFE 1" >>confdefs.h
23971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQputCopyData in -lpq" >&5
23972 $as_echo_n "checking for PQputCopyData in -lpq... " >&6; }
23973 if ${ac_cv_lib_pq_PQputCopyData+:} false; then :
23974 $as_echo_n "(cached) " >&6
23976 ac_check_lib_save_LIBS=$LIBS
23978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23979 /* end confdefs.h. */
23981 /* Override any GCC internal prototype to avoid an error.
23982 Use char because int might match the return type of a GCC
23983 builtin and then its argument prototype would still apply. */
23987 char PQputCopyData ();
23991 return PQputCopyData ();
23996 if ac_fn_c_try_link "$LINENO"; then :
23997 ac_cv_lib_pq_PQputCopyData=yes
23999 ac_cv_lib_pq_PQputCopyData=no
24001 rm -f core conftest.err conftest.$ac_objext \
24002 conftest$ac_exeext conftest.$ac_ext
24003 LIBS=$ac_check_lib_save_LIBS
24005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQputCopyData" >&5
24006 $as_echo "$ac_cv_lib_pq_PQputCopyData" >&6; }
24007 if test "x$ac_cv_lib_pq_PQputCopyData" = xyes; then :
24009 $as_echo "#define HAVE_PQ_COPY 1" >>confdefs.h
24013 if test "x$ac_cv_lib_pq_PQputCopyData" = "xyes"; then
24014 if test $support_batch_insert = yes ; then
24016 $as_echo "#define HAVE_POSTGRESQL_BATCH_FILE_INSERT 1" >>confdefs.h
24018 if test -z "${batch_insert_db_backends}"; then
24019 batch_insert_db_backends="PostgreSQL"
24021 batch_insert_db_backends="${batch_insert_db_backends} PostgreSQL"
24026 if test x$ac_cv_lib_pq_PQisthreadsafe != xyes -a x$support_batch_insert = xyes
24028 echo "WARNING: Your PostgreSQL client library is too old to detect "
24029 echo "if it was compiled with --enable-thread-safety, consider to "
24030 echo "upgrade it in order to avoid problems with Batch insert mode"
24033 LDFLAGS="${saved_LDFLAGS}"
24034 LIBS="${saved_LIBS}"
24037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24038 $as_echo "no" >&6; }
24043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24044 $as_echo "no" >&6; }
24055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MySQL support" >&5
24056 $as_echo_n "checking for MySQL support... " >&6; }
24058 # Check whether --with-mysql was given.
24059 if test "${with_mysql+set}" = set; then :
24060 withval=$with_mysql;
24061 if test "$withval" != "no"; then
24062 if test "$withval" = "yes"; then
24064 # This code is very broken on older systems
24066 # MYSQL_CONFIG=`which mysql_config 2>/dev/null`
24067 # if test "x${MYSQL_CONFIG}" != x; then
24068 # MYSQL_BINDIR="${MYSQL_CONFIG%/*}"
24069 # ${MYSQL_CONFIG} --variable=pkglibdir > /dev/null 2>&1
24070 # if test $? = 0 ; then
24071 # MYSQL_LIBDIR=`${MYSQL_CONFIG} --variable=pkglibdir`
24072 # MYSQL_INCDIR=`${MYSQL_CONFIG} --variable=pkgincludedir`
24074 # MYSQL_LIBDIR=`${MYSQL_CONFIG} --libs_r | sed -e 's/.*-L//' -e 's/ .*//'`
24075 # MYSQL_INCDIR=`${MYSQL_CONFIG} --include | sed -e 's/-I//'`
24078 # if [ "x${MYSQL_LIB}" = x -o "x${MYSQL_INCDIR}" = x ]; then
24079 if test -f /usr/local/mysql/include/mysql/mysql.h; then
24080 MYSQL_INCDIR=/usr/local/mysql/include/mysql
24081 if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
24082 -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
24083 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
24085 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
24087 MYSQL_BINDIR=/usr/local/mysql/bin
24088 elif test -f /usr/include/mysql/mysql.h; then
24089 MYSQL_INCDIR=/usr/include/mysql
24090 if test -f /usr/lib64/mysql/libmysqlclient_r.a \
24091 -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
24092 MYSQL_LIBDIR=/usr/lib64/mysql
24093 elif test -f /usr/lib64/libmysqlclient_r.a \
24094 -o -f /usr/lib64/libmysqlclient_r.so; then
24095 MYSQL_LIBDIR=/usr/lib64
24096 elif test -f /usr/lib/x86_64-linux-gnu/libmysqlclient_r.a \
24097 -o -f /usr/lib/x86_64-linux-gnu/libmysqlclient_r.so; then
24098 MYSQL_LIBDIR=/usr/lib/x86_64-linux-gnu
24099 elif test -f /usr/lib/mysql/libmysqlclient_r.a \
24100 -o -f /usr/lib/mysql/libmysqlclient_r.so; then
24101 MYSQL_LIBDIR=/usr/lib/mysql
24103 MYSQL_LIBDIR=/usr/lib
24105 MYSQL_BINDIR=/usr/bin
24106 elif test -f /usr/include/mysql.h; then
24107 MYSQL_INCDIR=/usr/include
24108 if test -f /usr/lib64/libmysqlclient_r.a \
24109 -o -f /usr/lib64/libmysqlclient_r.so; then
24110 MYSQL_LIBDIR=/usr/lib64
24112 MYSQL_LIBDIR=/usr/lib
24114 MYSQL_BINDIR=/usr/bin
24115 elif test -f /usr/local/include/mysql/mysql.h; then
24116 MYSQL_INCDIR=/usr/local/include/mysql
24117 if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
24118 -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
24119 MYSQL_LIBDIR=/usr/local/lib64/mysql
24121 MYSQL_LIBDIR=/usr/local/lib/mysql
24123 MYSQL_BINDIR=/usr/local/bin
24124 elif test -f /usr/local/include/mysql.h; then
24125 MYSQL_INCDIR=/usr/local/include
24126 if test -f /usr/local/lib64/libmysqlclient_r.a \
24127 -o -f /usr/local/lib64/libmysqlclient_r.so; then
24128 MYSQL_LIBDIR=/usr/local/lib64
24130 MYSQL_LIBDIR=/usr/local/lib
24132 MYSQL_BINDIR=/usr/local/bin
24134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24135 $as_echo "no" >&6; }
24136 as_fn_error $? "Unable to find mysql.h in standard locations" "$LINENO" 5
24139 if test -f $withval/include/mysql/mysql.h; then
24140 MYSQL_INCDIR=$withval/include/mysql
24141 if test -f $withval/lib64/mysql/libmysqlclient_r.a \
24142 -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
24143 MYSQL_LIBDIR=$withval/lib64/mysql
24144 elif test -f $withval/lib64/libmysqlclient_r.a \
24145 -o -f $withval/lib64/libmysqlclient_r.so; then
24146 MYSQL_LIBDIR=$withval/lib64
24147 elif test -f $withval/lib/libmysqlclient_r.a \
24148 -o -f $withval/lib/libmysqlclient_r.so; then
24149 MYSQL_LIBDIR=$withval/lib
24151 MYSQL_LIBDIR=$withval/lib/mysql
24153 MYSQL_BINDIR=$withval/bin
24154 elif test -f $withval/include/mysql.h; then
24155 MYSQL_INCDIR=$withval/include
24156 if test -f $withval/lib64/libmysqlclient_r.a \
24157 -o -f $withval/lib64/libmysqlclient_r.so; then
24158 MYSQL_LIBDIR=$withval/lib64
24160 MYSQL_LIBDIR=$withval/lib
24162 MYSQL_BINDIR=$withval/bin
24163 elif test -f $withval/mysql.h; then
24164 MYSQL_INCDIR=$withval
24165 { $as_echo "$as_me:${as_lineno-$LINENO}: Got with-mysql variable $MYSQL_INCDIR checking MySQL version" >&5
24166 $as_echo "$as_me: Got with-mysql variable $MYSQL_INCDIR checking MySQL version" >&6;}
24167 case $MYSQL_INCDIR in
24169 { $as_echo "$as_me:${as_lineno-$LINENO}: Assuming MacPorts MySQL 5.5 variant installed" >&5
24170 $as_echo "$as_me: Assuming MacPorts MySQL 5.5 variant installed" >&6;}
24171 if test -f $prefix/lib/mysql55/mysql/libmysqlclient_r.a \
24172 -o -f $prefix/lib/mysql55/mysql/libmysqlclient_r.so; then
24173 { $as_echo "$as_me:${as_lineno-$LINENO}: Found MySQL 5.5 library in $prefix/lib/mysql55/mysql" >&5
24174 $as_echo "$as_me: Found MySQL 5.5 library in $prefix/lib/mysql55/mysql" >&6;}
24175 MYSQL_LIBDIR=$prefix/lib/mysql55/mysql
24177 MYSQL_BINDIR=$prefix/lib/mysql55/bin
24180 { $as_echo "$as_me:${as_lineno-$LINENO}: Assuming MacPorts MySQL 5.1 variant installed" >&5
24181 $as_echo "$as_me: Assuming MacPorts MySQL 5.1 variant installed" >&6;}
24182 if test -f $prefix/lib/mysql51/mysql/libmysqlclient_r.a \
24183 -o -f $prefix/lib/mysql51/mysql/libmysqlclient_r.so; then
24184 { $as_echo "$as_me:${as_lineno-$LINENO}: Found MySQL 5.1 library in $prefix/lib/mysql55/mysql" >&5
24185 $as_echo "$as_me: Found MySQL 5.1 library in $prefix/lib/mysql55/mysql" >&6;}
24186 MYSQL_LIBDIR=$prefix/lib/mysql51/mysql
24188 MYSQL_BINDIR=$prefix/lib/mysql51/bin
24191 if test -z "${MYSQL_LIBDIR}" ; then
24192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24193 $as_echo "no" >&6; }
24194 as_fn_error $? "MySQL $withval - unable to find MySQL libraries" "$LINENO" 5
24197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24198 $as_echo "no" >&6; }
24199 as_fn_error $? "Invalid MySQL directory $withval - unable to find mysql.h under $withval" "$LINENO" 5
24202 MYSQL_INCLUDE=-I$MYSQL_INCDIR
24203 if test -f $MYSQL_LIBDIR/libmysqlclient_r.a \
24204 -o -f $MYSQL_LIBDIR/libmysqlclient_r.so; then
24205 if test x$use_libtool != xno; then
24206 MYSQL_LIBS="-R $MYSQL_LIBDIR -L$MYSQL_LIBDIR -lmysqlclient_r -lz"
24208 MYSQL_LIBS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
24210 DB_LIBS="${DB_LIBS} ${MYSQL_LIBS}"
24212 MYSQL_LIB=$MYSQL_LIBDIR/libmysqlclient_r.a
24215 $as_echo "#define HAVE_MYSQL 1" >>confdefs.h
24217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24218 $as_echo "yes" >&6; }
24220 if test -z "${db_backends}" ; then
24221 db_backends="MySQL"
24223 db_backends="${db_backends} MySQL"
24225 if test -z "${DB_BACKENDS}" ; then
24226 DB_BACKENDS="mysql"
24228 DB_BACKENDS="${DB_BACKENDS} mysql"
24231 if test "x$support_batch_insert" = "xyes"; then
24232 saved_LDFLAGS="${LDFLAGS}"
24233 LDFLAGS="${saved_LDFLAGS} -L$MYSQL_LIBDIR"
24234 saved_LIBS="${LIBS}"
24235 LIBS="${saved_LIBS} -lz"
24237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql_thread_safe in -lmysqlclient_r" >&5
24238 $as_echo_n "checking for mysql_thread_safe in -lmysqlclient_r... " >&6; }
24239 if ${ac_cv_lib_mysqlclient_r_mysql_thread_safe+:} false; then :
24240 $as_echo_n "(cached) " >&6
24242 ac_check_lib_save_LIBS=$LIBS
24243 LIBS="-lmysqlclient_r $LIBS"
24244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24245 /* end confdefs.h. */
24247 /* Override any GCC internal prototype to avoid an error.
24248 Use char because int might match the return type of a GCC
24249 builtin and then its argument prototype would still apply. */
24253 char mysql_thread_safe ();
24257 return mysql_thread_safe ();
24262 if ac_fn_c_try_link "$LINENO"; then :
24263 ac_cv_lib_mysqlclient_r_mysql_thread_safe=yes
24265 ac_cv_lib_mysqlclient_r_mysql_thread_safe=no
24267 rm -f core conftest.err conftest.$ac_objext \
24268 conftest$ac_exeext conftest.$ac_ext
24269 LIBS=$ac_check_lib_save_LIBS
24271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mysqlclient_r_mysql_thread_safe" >&5
24272 $as_echo "$ac_cv_lib_mysqlclient_r_mysql_thread_safe" >&6; }
24273 if test "x$ac_cv_lib_mysqlclient_r_mysql_thread_safe" = xyes; then :
24275 $as_echo "#define HAVE_MYSQL_THREAD_SAFE 1" >>confdefs.h
24279 if test "x$ac_cv_lib_mysqlclient_r_mysql_thread_safe" = "xyes"; then
24280 if test -z "${batch_insert_db_backends}"; then
24281 batch_insert_db_backends="MySQL"
24283 batch_insert_db_backends="${batch_insert_db_backends} MySQL"
24287 LDFLAGS="${saved_LDFLAGS}"
24288 LIBS="${saved_LIBS}"
24291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24292 $as_echo "no" >&6; }
24297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24298 $as_echo "no" >&6; }
24303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MySQL embedded support" >&5
24304 $as_echo_n "checking for MySQL embedded support... " >&6; }
24306 # Check whether --with-embedded-mysql was given.
24307 if test "${with_embedded_mysql+set}" = set; then :
24308 withval=$with_embedded_mysql;
24309 if test "$withval" != "no"; then
24310 if test "$withval" = "yes"; then
24311 if test -f /usr/local/mysql/include/mysql/mysql.h; then
24312 MYSQL_INCDIR=/usr/local/mysql/include/mysql
24313 if test -d /usr/local/mysql/lib64/mysql; then
24314 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
24316 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
24318 MYSQL_BINDIR=/usr/local/mysql/bin
24319 elif test -f /usr/include/mysql/mysql.h; then
24320 MYSQL_INCDIR=/usr/include/mysql
24321 if test -d /usr/lib64/mysql; then
24322 MYSQL_LIBDIR=/usr/lib64/mysql
24324 MYSQL_LIBDIR=/usr/lib/mysql
24326 MYSQL_BINDIR=/usr/bin
24327 elif test -f /usr/include/mysql.h; then
24328 MYSQL_INCDIR=/usr/include
24329 if test -d /usr/lib64; then
24330 MYSQL_LIBDIR=/usr/lib64
24332 MYSQL_LIBDIR=/usr/lib
24334 MYSQL_BINDIR=/usr/bin
24335 elif test -f /usr/local/include/mysql/mysql.h; then
24336 MYSQL_INCDIR=/usr/local/include/mysql
24337 if test -d /usr/local/lib64/mysql; then
24338 MYSQL_LIBDIR=/usr/local/lib64/mysql
24340 MYSQL_LIBDIR=/usr/local/lib/mysql
24342 MYSQL_BINDIR=/usr/local/bin
24343 elif test -f /usr/local/include/mysql.h; then
24344 MYSQL_INCDIR=/usr/local/include
24345 if test -d /usr/local/lib64; then
24346 MYSQL_LIBDIR=/usr/local/lib64
24348 MYSQL_LIBDIR=/usr/local/lib
24350 MYSQL_BINDIR=/usr/local/bin
24352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24353 $as_echo "no" >&6; }
24354 as_fn_error $? "Unable to find mysql.h in standard locations" "$LINENO" 5
24357 if test -f $withval/include/mysql/mysql.h; then
24358 MYSQL_INCDIR=$withval/include/mysql
24359 if test -d $withval/lib64/mysql; then
24360 MYSQL_LIBDIR=$withval/lib64/mysql
24362 MYSQL_LIBDIR=$withval/lib/mysql
24364 MYSQL_BINDIR=$withval/bin
24365 elif test -f $withval/include/mysql.h; then
24366 MYSQL_INCDIR=$withval/include
24367 if test -d $withval/lib64; then
24368 MYSQL_LIBDIR=$withval/lib64
24370 MYSQL_LIBDIR=$withval/lib
24372 MYSQL_BINDIR=$withval/bin
24374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24375 $as_echo "no" >&6; }
24376 as_fn_error $? "Invalid MySQL directory $withval - unable to find mysql.h under $withval" "$LINENO" 5
24379 MYSQL_INCLUDE=-I$MYSQL_INCDIR
24380 if test x$use_libtool != xno; then
24381 MYSQL_LIBS="-R $MYSQL_LIBDIR -L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
24383 MYSQL_LIBS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
24385 MYSQL_LIB=$MYSQL_LIBDIR/libmysqld.a
24386 DB_LIBS="${DB_LIBS} ${MYSQL_LIBS}"
24389 $as_echo "#define HAVE_MYSQL 1" >>confdefs.h
24392 $as_echo "#define HAVE_EMBEDDED_MYSQL 1" >>confdefs.h
24394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24395 $as_echo "yes" >&6; }
24397 if test -z "${db_backends}"; then
24398 db_backends="MySQL"
24400 db_backends="${db_backends} MySQL"
24402 if test -z "${DB_BACKENDS}"; then
24403 DB_BACKENDS="mysql"
24405 DB_BACKENDS="${DB_BACKENDS} mysql"
24408 if test "x$support_batch_insert" = "xyes"; then
24409 saved_LDFLAGS="${LDFLAGS}"
24410 LDFLAGS="${saved_LDFLAGS} -L$MYSQL_LIBDIR"
24411 saved_LIBS="${LIBS}"
24412 LIBS="${saved_LIBS} -lz -lm -lcrypt"
24414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql_thread_safe in -lmysqlclient_r" >&5
24415 $as_echo_n "checking for mysql_thread_safe in -lmysqlclient_r... " >&6; }
24416 if ${ac_cv_lib_mysqlclient_r_mysql_thread_safe+:} false; then :
24417 $as_echo_n "(cached) " >&6
24419 ac_check_lib_save_LIBS=$LIBS
24420 LIBS="-lmysqlclient_r $LIBS"
24421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24422 /* end confdefs.h. */
24424 /* Override any GCC internal prototype to avoid an error.
24425 Use char because int might match the return type of a GCC
24426 builtin and then its argument prototype would still apply. */
24430 char mysql_thread_safe ();
24434 return mysql_thread_safe ();
24439 if ac_fn_c_try_link "$LINENO"; then :
24440 ac_cv_lib_mysqlclient_r_mysql_thread_safe=yes
24442 ac_cv_lib_mysqlclient_r_mysql_thread_safe=no
24444 rm -f core conftest.err conftest.$ac_objext \
24445 conftest$ac_exeext conftest.$ac_ext
24446 LIBS=$ac_check_lib_save_LIBS
24448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mysqlclient_r_mysql_thread_safe" >&5
24449 $as_echo "$ac_cv_lib_mysqlclient_r_mysql_thread_safe" >&6; }
24450 if test "x$ac_cv_lib_mysqlclient_r_mysql_thread_safe" = xyes; then :
24452 $as_echo "#define HAVE_MYSQL_THREAD_SAFE 1" >>confdefs.h
24456 if test "x$ac_cv_lib_mysqlclient_r_mysql_thread_safe" = "xyes"; then
24457 if test -z "${batch_insert_db_backends}"; then
24458 batch_insert_db_backends="MySQL"
24460 batch_insert_db_backends="${batch_insert_db_backends} MySQL"
24464 LDFLAGS="${saved_LDFLAGS}"
24465 LIBS="${saved_LIBS}"
24468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24469 $as_echo "no" >&6; }
24474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24475 $as_echo "no" >&6; }
24487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLite3 support" >&5
24488 $as_echo_n "checking for SQLite3 support... " >&6; }
24490 # Check whether --with-sqlite3 was given.
24491 if test "${with_sqlite3+set}" = set; then :
24492 withval=$with_sqlite3;
24493 if test "$withval" != "no"; then
24494 if test "$withval" = "yes"; then
24495 if test -f /usr/local/include/sqlite3.h; then
24496 SQLITE_INCDIR=/usr/local/include
24497 if test -d /usr/local/lib64; then
24498 SQLITE_LIBDIR=/usr/local/lib64
24500 SQLITE_LIBDIR=/usr/local/lib
24502 SQLITE_BINDIR=/usr/local/bin
24503 elif test -f /usr/include/sqlite3.h; then
24504 SQLITE_INCDIR=/usr/include
24505 if test -d /usr/lib64; then
24506 SQLITE_LIBDIR=/usr/lib64
24508 SQLITE_LIBDIR=/usr/lib
24510 SQLITE_BINDIR=/usr/bin
24511 elif test -f $prefix/include/sqlite3.h; then
24512 SQLITE_INCDIR=$prefix/include
24513 if test -d $prefix/lib64; then
24514 SQLITE_LIBDIR=$prefix/lib64
24516 SQLITE_LIBDIR=$prefix/lib
24518 SQLITE_BINDIR=$prefix/bin
24520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24521 $as_echo "no" >&6; }
24522 as_fn_error $? "Unable to find sqlite3.h in standard locations" "$LINENO" 5
24525 if test -f $withval/sqlite3.h; then
24526 SQLITE_INCDIR=$withval
24527 SQLITE_LIBDIR=$withval
24528 SQLITE_BINDIR=$withval
24529 elif test -f $withval/include/sqlite3.h; then
24530 SQLITE_INCDIR=$withval/include
24531 if test -d $withval/lib64; then
24532 SQLITE_LIBDIR=$withval/lib64
24534 SQLITE_LIBDIR=$withval/lib
24536 SQLITE_BINDIR=$withval/bin
24538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24539 $as_echo "no" >&6; }
24540 as_fn_error $? "Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" "$LINENO" 5
24543 SQLITE_INCLUDE=-I$SQLITE_INCDIR
24544 if test x$use_libtool != xno; then
24545 SQLITE_LIBS="-R $SQLITE_LIBDIR -L$SQLITE_LIBDIR -lsqlite3"
24547 SQLITE_LIBS="-L$SQLITE_LIBDIR -lsqlite3"
24549 SQLITE_LIB=$SQLITE_LIBDIR/libsqlite3.a
24550 DB_LIBS="${DB_LIBS} ${SQLITE_LIBS}"
24553 $as_echo "#define HAVE_SQLITE3 1" >>confdefs.h
24555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24556 $as_echo "yes" >&6; }
24558 if test -z "${db_backends}"; then
24559 db_backends="SQLite3"
24561 db_backends="${db_backends} SQLite3"
24563 if test -z "${DB_BACKENDS}"; then
24564 DB_BACKENDS="sqlite3"
24566 DB_BACKENDS="${DB_BACKENDS} sqlite3"
24569 if test "x$support_batch_insert" = "xyes"; then
24570 saved_LDFLAGS="${LDFLAGS}"
24571 LDFLAGS="${saved_LDFLAGS} -lpthread -L$SQLITE_LIBDIR"
24573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_threadsafe in -lsqlite3" >&5
24574 $as_echo_n "checking for sqlite3_threadsafe in -lsqlite3... " >&6; }
24575 if ${ac_cv_lib_sqlite3_sqlite3_threadsafe+:} false; then :
24576 $as_echo_n "(cached) " >&6
24578 ac_check_lib_save_LIBS=$LIBS
24579 LIBS="-lsqlite3 $LIBS"
24580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24581 /* end confdefs.h. */
24583 /* Override any GCC internal prototype to avoid an error.
24584 Use char because int might match the return type of a GCC
24585 builtin and then its argument prototype would still apply. */
24589 char sqlite3_threadsafe ();
24593 return sqlite3_threadsafe ();
24598 if ac_fn_c_try_link "$LINENO"; then :
24599 ac_cv_lib_sqlite3_sqlite3_threadsafe=yes
24601 ac_cv_lib_sqlite3_sqlite3_threadsafe=no
24603 rm -f core conftest.err conftest.$ac_objext \
24604 conftest$ac_exeext conftest.$ac_ext
24605 LIBS=$ac_check_lib_save_LIBS
24607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_threadsafe" >&5
24608 $as_echo "$ac_cv_lib_sqlite3_sqlite3_threadsafe" >&6; }
24609 if test "x$ac_cv_lib_sqlite3_sqlite3_threadsafe" = xyes; then :
24611 $as_echo "#define HAVE_SQLITE3_THREADSAFE 1" >>confdefs.h
24615 if test "x$ac_cv_lib_sqlite3_sqlite3_threadsafe" = "xyes"; then
24616 if test -z "${batch_insert_db_backends}"; then
24617 batch_insert_db_backends="SQLite3"
24619 batch_insert_db_backends="${batch_insert_db_backends} SQLite3"
24623 LDFLAGS="${saved_LDFLAGS}"
24626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24627 $as_echo "no" >&6; }
24632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24633 $as_echo "no" >&6; }
24643 if test -z "${batch_insert_db_backends}"; then
24644 batch_insert_db_backends="None"
24647 if test "x${db_backends}" = "x" ; then
24650 echo "You have not specified either --enable-client-only or one of the"
24651 echo "supported databases: MySQL, PostgreSQL, or SQLite3."
24652 echo "This is not permitted. Please reconfigure."
24654 echo "Aborting the configuration ..."
24660 case `echo $DB_BACKENDS | wc -w | sed -e 's/^ *//'` in
24662 DEFAULT_DB_TYPE="${DB_BACKENDS}"
24663 if test x$use_libtool = xno; then
24664 SHARED_CATALOG_TARGETS=""
24666 SHARED_CATALOG_TARGETS="libbaccats-${DEFAULT_DB_TYPE}.la"
24670 DEFAULT_DB_TYPE=`echo ${DB_BACKENDS} | cut -d' ' -f1`
24672 if test x$use_libtool = xno; then
24675 echo "You have specified two or more of the"
24676 echo "supported databases: MySQL, PostgreSQL, or SQLite3."
24677 echo "This is not permitted when not using libtool Please reconfigure."
24679 echo "Aborting the configuration ..."
24685 SHARED_CATALOG_TARGETS=""
24686 for db_type in ${DB_BACKENDS}
24688 if test -z "${SHARED_CATALOG_TARGETS}"; then
24689 SHARED_CATALOG_TARGETS="libbaccats-${db_type}.la"
24691 SHARED_CATALOG_TARGETS="${SHARED_CATALOG_TARGETS} libbaccats-${db_type}.la"
24697 if test x$use_libtool = xyes; then
24707 $as_echo "#define PROTOTYPES 1" >>confdefs.h
24710 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
24711 if test -z "$CCOPTS"; then
24712 CCOPTS='-g -O2 -Wall'
24719 largefile_support="no"
24721 # Check whether --enable-largefile was given.
24722 if test "${enable_largefile+set}" = set; then :
24723 enableval=$enable_largefile;
24726 if test "$enable_largefile" != no; then
24727 if test -n "$ac_tool_prefix"; then
24728 # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
24729 set dummy ${ac_tool_prefix}getconf; ac_word=$2
24730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24731 $as_echo_n "checking for $ac_word... " >&6; }
24732 if ${ac_cv_prog_GETCONF+:} false; then :
24733 $as_echo_n "(cached) " >&6
24735 if test -n "$GETCONF"; then
24736 ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
24738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24739 for as_dir in $PATH
24742 test -z "$as_dir" && as_dir=.
24743 for ac_exec_ext in '' $ac_executable_extensions; do
24744 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24745 ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
24746 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24755 GETCONF=$ac_cv_prog_GETCONF
24756 if test -n "$GETCONF"; then
24757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GETCONF" >&5
24758 $as_echo "$GETCONF" >&6; }
24760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24761 $as_echo "no" >&6; }
24766 if test -z "$ac_cv_prog_GETCONF"; then
24767 ac_ct_GETCONF=$GETCONF
24768 # Extract the first word of "getconf", so it can be a program name with args.
24769 set dummy getconf; ac_word=$2
24770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24771 $as_echo_n "checking for $ac_word... " >&6; }
24772 if ${ac_cv_prog_ac_ct_GETCONF+:} false; then :
24773 $as_echo_n "(cached) " >&6
24775 if test -n "$ac_ct_GETCONF"; then
24776 ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
24778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24779 for as_dir in $PATH
24782 test -z "$as_dir" && as_dir=.
24783 for ac_exec_ext in '' $ac_executable_extensions; do
24784 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24785 ac_cv_prog_ac_ct_GETCONF="getconf"
24786 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24795 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
24796 if test -n "$ac_ct_GETCONF"; then
24797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GETCONF" >&5
24798 $as_echo "$ac_ct_GETCONF" >&6; }
24800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24801 $as_echo "no" >&6; }
24804 if test "x$ac_ct_GETCONF" = x; then
24807 case $cross_compiling:$ac_tool_warned in
24809 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
24810 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
24811 ac_tool_warned=yes ;;
24813 GETCONF=$ac_ct_GETCONF
24816 GETCONF="$ac_cv_prog_GETCONF"
24819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLAGS value to request large file support" >&5
24820 $as_echo_n "checking for CFLAGS value to request large file support... " >&6; }
24821 if ${ac_cv_sys_largefile_CFLAGS+:} false; then :
24822 $as_echo_n "(cached) " >&6
24824 ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
24825 ac_cv_sys_largefile_CFLAGS=no
24827 # IRIX 6.2 and later require cc -n32.
24828 irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
24829 if test "$GCC" != yes; then
24830 ac_cv_sys_largefile_CFLAGS=-n32
24833 CC="$CC $ac_cv_sys_largefile_CFLAGS"
24834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24835 /* end confdefs.h. */
24845 if ac_fn_c_try_link "$LINENO"; then :
24848 ac_cv_sys_largefile_CFLAGS=no
24850 rm -f core conftest.err conftest.$ac_objext \
24851 conftest$ac_exeext conftest.$ac_ext
24856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CFLAGS" >&5
24857 $as_echo "$ac_cv_sys_largefile_CFLAGS" >&6; }
24858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDFLAGS value to request large file support" >&5
24859 $as_echo_n "checking for LDFLAGS value to request large file support... " >&6; }
24860 if ${ac_cv_sys_largefile_LDFLAGS+:} false; then :
24861 $as_echo_n "(cached) " >&6
24863 ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
24864 ac_cv_sys_largefile_LDFLAGS=no
24868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_LDFLAGS" >&5
24869 $as_echo "$ac_cv_sys_largefile_LDFLAGS" >&6; }
24870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBS value to request large file support" >&5
24871 $as_echo_n "checking for LIBS value to request large file support... " >&6; }
24872 if ${ac_cv_sys_largefile_LIBS+:} false; then :
24873 $as_echo_n "(cached) " >&6
24875 ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
24876 ac_cv_sys_largefile_LIBS=no
24880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_LIBS" >&5
24881 $as_echo "$ac_cv_sys_largefile_LIBS" >&6; }
24883 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
24886 -D_FILE_OFFSET_BITS=*) ;;
24887 -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
24888 -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
24893 case "$CPPFLAGS" in
24894 '') CPPFLAGS="$ac_flag" ;;
24895 *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
24903 '') CFLAGS="$ac_flag" ;;
24904 *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
24909 case "$ac_cv_sys_largefile_LDFLAGS" in
24913 '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
24914 *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
24917 case "$ac_cv_sys_largefile_LIBS" in
24921 '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
24922 *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
24925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS" >&5
24926 $as_echo_n "checking for _FILE_OFFSET_BITS... " >&6; }
24927 if ${ac_cv_sys_file_offset_bits+:} false; then :
24928 $as_echo_n "(cached) " >&6
24930 ac_cv_sys_file_offset_bits=no
24931 ac_cv_sys_file_offset_bits=64
24932 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
24934 -D_FILE_OFFSET_BITS)
24935 ac_cv_sys_file_offset_bits=1 ;;
24936 -D_FILE_OFFSET_BITS=*)
24937 ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
24942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
24943 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
24944 if test "$ac_cv_sys_file_offset_bits" != no; then
24946 cat >>confdefs.h <<_ACEOF
24947 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
24951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE" >&5
24952 $as_echo_n "checking for _LARGEFILE_SOURCE... " >&6; }
24953 if ${ac_cv_sys_largefile_source+:} false; then :
24954 $as_echo_n "(cached) " >&6
24956 ac_cv_sys_largefile_source=no
24957 ac_cv_sys_largefile_source=1
24958 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
24960 -D_LARGEFILE_SOURCE)
24961 ac_cv_sys_largefile_source=1 ;;
24962 -D_LARGEFILE_SOURCE=*)
24963 ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
24968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
24969 $as_echo "$ac_cv_sys_largefile_source" >&6; }
24970 if test "$ac_cv_sys_largefile_source" != no; then
24972 cat >>confdefs.h <<_ACEOF
24973 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
24977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES" >&5
24978 $as_echo_n "checking for _LARGE_FILES... " >&6; }
24979 if ${ac_cv_sys_large_files+:} false; then :
24980 $as_echo_n "(cached) " >&6
24982 ac_cv_sys_large_files=no
24983 ac_cv_sys_large_files=1
24984 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
24987 ac_cv_sys_large_files=1 ;;
24989 ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
24994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
24995 $as_echo "$ac_cv_sys_large_files" >&6; }
24996 if test "$ac_cv_sys_large_files" != no; then
24998 cat >>confdefs.h <<_ACEOF
24999 #define _LARGE_FILES $ac_cv_sys_large_files
25006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
25007 $as_echo_n "checking for X... " >&6; }
25010 # Check whether --with-x was given.
25011 if test "${with_x+set}" = set; then :
25015 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
25016 if test "x$with_x" = xno; then
25017 # The user explicitly disabled X.
25020 case $x_includes,$x_libraries in #(
25021 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
25022 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
25023 $as_echo_n "(cached) " >&6
25025 # One or both of the vars are not set, and there is no cached value.
25026 ac_x_includes=no ac_x_libraries=no
25027 rm -f -r conftest.dir
25028 if mkdir conftest.dir; then
25030 cat >Imakefile <<'_ACEOF'
25032 @echo incroot='${INCROOT}'
25034 @echo usrlibdir='${USRLIBDIR}'
25036 @echo libdir='${LIBDIR}'
25038 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
25039 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
25040 for ac_var in incroot usrlibdir libdir; do
25041 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
25043 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
25044 for ac_extension in a so sl dylib la dll; do
25045 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
25046 test -f "$ac_im_libdir/libX11.$ac_extension"; then
25047 ac_im_usrlibdir=$ac_im_libdir; break
25050 # Screen out bogus values from the imake configuration. They are
25051 # bogus both because they are the default anyway, and because
25052 # using them would break gcc on systems where it needs fixed includes.
25053 case $ac_im_incroot in
25054 /usr/include) ac_x_includes= ;;
25055 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
25057 case $ac_im_usrlibdir in
25058 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
25059 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
25063 rm -f -r conftest.dir
25066 # Standard set of common directories for X headers.
25067 # Check X11 before X11Rn because it is often a symlink to the current release.
25081 /usr/local/X11/include
25082 /usr/local/X11R7/include
25083 /usr/local/X11R6/include
25084 /usr/local/X11R5/include
25085 /usr/local/X11R4/include
25087 /usr/local/include/X11
25088 /usr/local/include/X11R7
25089 /usr/local/include/X11R6
25090 /usr/local/include/X11R5
25091 /usr/local/include/X11R4
25095 /usr/XFree86/include/X11
25099 /usr/unsupported/include
25100 /usr/athena/include
25101 /usr/local/x11r5/include
25102 /usr/lpp/Xamples/include
25104 /usr/openwin/include
25105 /usr/openwin/share/include'
25107 if test "$ac_x_includes" = no; then
25108 # Guess where to find include files, by looking for Xlib.h.
25109 # First, try using that file with no special directory specified.
25110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25111 /* end confdefs.h. */
25112 #include <X11/Xlib.h>
25114 if ac_fn_c_try_cpp "$LINENO"; then :
25115 # We can compile using X headers with no special include directory.
25118 for ac_dir in $ac_x_header_dirs; do
25119 if test -r "$ac_dir/X11/Xlib.h"; then
25120 ac_x_includes=$ac_dir
25125 rm -f conftest.err conftest.i conftest.$ac_ext
25126 fi # $ac_x_includes = no
25128 if test "$ac_x_libraries" = no; then
25129 # Check for the libraries.
25130 # See if we find them without any special options.
25131 # Don't add to $LIBS permanently.
25134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25135 /* end confdefs.h. */
25136 #include <X11/Xlib.h>
25145 if ac_fn_c_try_link "$LINENO"; then :
25147 # We can link X programs with no special library path.
25151 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
25153 # Don't even attempt the hair of trying to link an X program!
25154 for ac_extension in a so sl dylib la dll; do
25155 if test -r "$ac_dir/libX11.$ac_extension"; then
25156 ac_x_libraries=$ac_dir
25162 rm -f core conftest.err conftest.$ac_objext \
25163 conftest$ac_exeext conftest.$ac_ext
25164 fi # $ac_x_libraries = no
25166 case $ac_x_includes,$ac_x_libraries in #(
25167 no,* | *,no | *\'*)
25168 # Didn't find X, or a directory has "'" in its name.
25169 ac_cv_have_x="have_x=no";; #(
25171 # Record where we found X for the cache.
25172 ac_cv_have_x="have_x=yes\
25173 ac_x_includes='$ac_x_includes'\
25174 ac_x_libraries='$ac_x_libraries'"
25180 eval "$ac_cv_have_x"
25183 if test "$have_x" != yes; then
25184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
25185 $as_echo "$have_x" >&6; }
25188 # If each of the values was on the command line, it overrides each guess.
25189 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
25190 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
25191 # Update the cache value to reflect the command line values.
25192 ac_cv_have_x="have_x=yes\
25193 ac_x_includes='$x_includes'\
25194 ac_x_libraries='$x_libraries'"
25195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
25196 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
25199 if test "$no_x" = yes; then
25200 # Not all programs may use this symbol, but it does not hurt to define it.
25202 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
25204 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
25206 if test -n "$x_includes"; then
25207 X_CFLAGS="$X_CFLAGS -I$x_includes"
25210 # It would also be nice to do this for all -L options, not just this one.
25211 if test -n "$x_libraries"; then
25212 X_LIBS="$X_LIBS -L$x_libraries"
25213 # For Solaris; some versions of Sun CC require a space after -R and
25214 # others require no space. Words are not sufficient . . . .
25215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
25216 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
25217 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
25218 ac_xsave_c_werror_flag=$ac_c_werror_flag
25219 ac_c_werror_flag=yes
25220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25221 /* end confdefs.h. */
25231 if ac_fn_c_try_link "$LINENO"; then :
25232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25233 $as_echo "no" >&6; }
25234 X_LIBS="$X_LIBS -R$x_libraries"
25236 LIBS="$ac_xsave_LIBS -R $x_libraries"
25237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25238 /* end confdefs.h. */
25248 if ac_fn_c_try_link "$LINENO"; then :
25249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25250 $as_echo "yes" >&6; }
25251 X_LIBS="$X_LIBS -R $x_libraries"
25253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
25254 $as_echo "neither works" >&6; }
25256 rm -f core conftest.err conftest.$ac_objext \
25257 conftest$ac_exeext conftest.$ac_ext
25259 rm -f core conftest.err conftest.$ac_objext \
25260 conftest$ac_exeext conftest.$ac_ext
25261 ac_c_werror_flag=$ac_xsave_c_werror_flag
25262 LIBS=$ac_xsave_LIBS
25265 # Check for system-dependent libraries X programs must link with.
25266 # Do this before checking for the system-independent R6 libraries
25267 # (-lICE), since we may need -lsocket or whatever for X linking.
25269 if test "$ISC" = yes; then
25270 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
25272 # Martyn Johnson says this is needed for Ultrix, if the X
25273 # libraries were built with DECnet support. And Karl Berry says
25274 # the Alpha needs dnet_stub (dnet does not exist).
25275 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
25276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25277 /* end confdefs.h. */
25279 /* Override any GCC internal prototype to avoid an error.
25280 Use char because int might match the return type of a GCC
25281 builtin and then its argument prototype would still apply. */
25285 char XOpenDisplay ();
25289 return XOpenDisplay ();
25294 if ac_fn_c_try_link "$LINENO"; then :
25297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
25298 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
25299 if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
25300 $as_echo_n "(cached) " >&6
25302 ac_check_lib_save_LIBS=$LIBS
25303 LIBS="-ldnet $LIBS"
25304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25305 /* end confdefs.h. */
25307 /* Override any GCC internal prototype to avoid an error.
25308 Use char because int might match the return type of a GCC
25309 builtin and then its argument prototype would still apply. */
25317 return dnet_ntoa ();
25322 if ac_fn_c_try_link "$LINENO"; then :
25323 ac_cv_lib_dnet_dnet_ntoa=yes
25325 ac_cv_lib_dnet_dnet_ntoa=no
25327 rm -f core conftest.err conftest.$ac_objext \
25328 conftest$ac_exeext conftest.$ac_ext
25329 LIBS=$ac_check_lib_save_LIBS
25331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
25332 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
25333 if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
25334 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
25337 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
25338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
25339 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
25340 if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
25341 $as_echo_n "(cached) " >&6
25343 ac_check_lib_save_LIBS=$LIBS
25344 LIBS="-ldnet_stub $LIBS"
25345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25346 /* end confdefs.h. */
25348 /* Override any GCC internal prototype to avoid an error.
25349 Use char because int might match the return type of a GCC
25350 builtin and then its argument prototype would still apply. */
25358 return dnet_ntoa ();
25363 if ac_fn_c_try_link "$LINENO"; then :
25364 ac_cv_lib_dnet_stub_dnet_ntoa=yes
25366 ac_cv_lib_dnet_stub_dnet_ntoa=no
25368 rm -f core conftest.err conftest.$ac_objext \
25369 conftest$ac_exeext conftest.$ac_ext
25370 LIBS=$ac_check_lib_save_LIBS
25372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
25373 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
25374 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
25375 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
25380 rm -f core conftest.err conftest.$ac_objext \
25381 conftest$ac_exeext conftest.$ac_ext
25382 LIBS="$ac_xsave_LIBS"
25384 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
25385 # to get the SysV transport functions.
25386 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
25388 # The nsl library prevents programs from opening the X display
25389 # on Irix 5.2, according to T.E. Dickey.
25390 # The functions gethostbyname, getservbyname, and inet_addr are
25391 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
25392 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
25393 if test "x$ac_cv_func_gethostbyname" = xyes; then :
25397 if test $ac_cv_func_gethostbyname = no; then
25398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
25399 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
25400 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
25401 $as_echo_n "(cached) " >&6
25403 ac_check_lib_save_LIBS=$LIBS
25405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25406 /* end confdefs.h. */
25408 /* Override any GCC internal prototype to avoid an error.
25409 Use char because int might match the return type of a GCC
25410 builtin and then its argument prototype would still apply. */
25414 char gethostbyname ();
25418 return gethostbyname ();
25423 if ac_fn_c_try_link "$LINENO"; then :
25424 ac_cv_lib_nsl_gethostbyname=yes
25426 ac_cv_lib_nsl_gethostbyname=no
25428 rm -f core conftest.err conftest.$ac_objext \
25429 conftest$ac_exeext conftest.$ac_ext
25430 LIBS=$ac_check_lib_save_LIBS
25432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
25433 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
25434 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
25435 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
25438 if test $ac_cv_lib_nsl_gethostbyname = no; then
25439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
25440 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
25441 if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
25442 $as_echo_n "(cached) " >&6
25444 ac_check_lib_save_LIBS=$LIBS
25446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25447 /* end confdefs.h. */
25449 /* Override any GCC internal prototype to avoid an error.
25450 Use char because int might match the return type of a GCC
25451 builtin and then its argument prototype would still apply. */
25455 char gethostbyname ();
25459 return gethostbyname ();
25464 if ac_fn_c_try_link "$LINENO"; then :
25465 ac_cv_lib_bsd_gethostbyname=yes
25467 ac_cv_lib_bsd_gethostbyname=no
25469 rm -f core conftest.err conftest.$ac_objext \
25470 conftest$ac_exeext conftest.$ac_ext
25471 LIBS=$ac_check_lib_save_LIBS
25473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
25474 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
25475 if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
25476 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
25482 # lieder@skyler.mavd.honeywell.com says without -lsocket,
25483 # socket/setsockopt and other routines are undefined under SCO ODT
25484 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
25485 # on later versions), says Simon Leinen: it contains gethostby*
25486 # variants that don't use the name server (or something). -lsocket
25487 # must be given before -lnsl if both are needed. We assume that
25488 # if connect needs -lnsl, so does gethostbyname.
25489 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
25490 if test "x$ac_cv_func_connect" = xyes; then :
25494 if test $ac_cv_func_connect = no; then
25495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
25496 $as_echo_n "checking for connect in -lsocket... " >&6; }
25497 if ${ac_cv_lib_socket_connect+:} false; then :
25498 $as_echo_n "(cached) " >&6
25500 ac_check_lib_save_LIBS=$LIBS
25501 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
25502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25503 /* end confdefs.h. */
25505 /* Override any GCC internal prototype to avoid an error.
25506 Use char because int might match the return type of a GCC
25507 builtin and then its argument prototype would still apply. */
25520 if ac_fn_c_try_link "$LINENO"; then :
25521 ac_cv_lib_socket_connect=yes
25523 ac_cv_lib_socket_connect=no
25525 rm -f core conftest.err conftest.$ac_objext \
25526 conftest$ac_exeext conftest.$ac_ext
25527 LIBS=$ac_check_lib_save_LIBS
25529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
25530 $as_echo "$ac_cv_lib_socket_connect" >&6; }
25531 if test "x$ac_cv_lib_socket_connect" = xyes; then :
25532 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
25537 # Guillermo Gomez says -lposix is necessary on A/UX.
25538 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
25539 if test "x$ac_cv_func_remove" = xyes; then :
25543 if test $ac_cv_func_remove = no; then
25544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
25545 $as_echo_n "checking for remove in -lposix... " >&6; }
25546 if ${ac_cv_lib_posix_remove+:} false; then :
25547 $as_echo_n "(cached) " >&6
25549 ac_check_lib_save_LIBS=$LIBS
25550 LIBS="-lposix $LIBS"
25551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25552 /* end confdefs.h. */
25554 /* Override any GCC internal prototype to avoid an error.
25555 Use char because int might match the return type of a GCC
25556 builtin and then its argument prototype would still apply. */
25569 if ac_fn_c_try_link "$LINENO"; then :
25570 ac_cv_lib_posix_remove=yes
25572 ac_cv_lib_posix_remove=no
25574 rm -f core conftest.err conftest.$ac_objext \
25575 conftest$ac_exeext conftest.$ac_ext
25576 LIBS=$ac_check_lib_save_LIBS
25578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
25579 $as_echo "$ac_cv_lib_posix_remove" >&6; }
25580 if test "x$ac_cv_lib_posix_remove" = xyes; then :
25581 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
25586 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
25587 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
25588 if test "x$ac_cv_func_shmat" = xyes; then :
25592 if test $ac_cv_func_shmat = no; then
25593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
25594 $as_echo_n "checking for shmat in -lipc... " >&6; }
25595 if ${ac_cv_lib_ipc_shmat+:} false; then :
25596 $as_echo_n "(cached) " >&6
25598 ac_check_lib_save_LIBS=$LIBS
25600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25601 /* end confdefs.h. */
25603 /* Override any GCC internal prototype to avoid an error.
25604 Use char because int might match the return type of a GCC
25605 builtin and then its argument prototype would still apply. */
25618 if ac_fn_c_try_link "$LINENO"; then :
25619 ac_cv_lib_ipc_shmat=yes
25621 ac_cv_lib_ipc_shmat=no
25623 rm -f core conftest.err conftest.$ac_objext \
25624 conftest$ac_exeext conftest.$ac_ext
25625 LIBS=$ac_check_lib_save_LIBS
25627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
25628 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
25629 if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
25630 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
25636 # Check for libraries that X11R6 Xt/Xaw programs need.
25637 ac_save_LDFLAGS=$LDFLAGS
25638 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
25639 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
25640 # check for ICE first), but we must link in the order -lSM -lICE or
25641 # we get undefined symbols. So assume we have SM if we have ICE.
25642 # These have to be linked with before -lX11, unlike the other
25643 # libraries we check for below, so use a different variable.
25644 # John Interrante, Karl Berry
25645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
25646 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
25647 if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
25648 $as_echo_n "(cached) " >&6
25650 ac_check_lib_save_LIBS=$LIBS
25651 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
25652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25653 /* end confdefs.h. */
25655 /* Override any GCC internal prototype to avoid an error.
25656 Use char because int might match the return type of a GCC
25657 builtin and then its argument prototype would still apply. */
25661 char IceConnectionNumber ();
25665 return IceConnectionNumber ();
25670 if ac_fn_c_try_link "$LINENO"; then :
25671 ac_cv_lib_ICE_IceConnectionNumber=yes
25673 ac_cv_lib_ICE_IceConnectionNumber=no
25675 rm -f core conftest.err conftest.$ac_objext \
25676 conftest$ac_exeext conftest.$ac_ext
25677 LIBS=$ac_check_lib_save_LIBS
25679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
25680 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
25681 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
25682 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
25685 LDFLAGS=$ac_save_LDFLAGS
25723 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25724 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
25725 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
25726 cat >>confdefs.h <<_ACEOF
25727 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
25735 $as_echo_n "checking for ANSI C header files... " >&6; }
25736 if ${ac_cv_header_stdc+:} false; then :
25737 $as_echo_n "(cached) " >&6
25739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25740 /* end confdefs.h. */
25741 #include <stdlib.h>
25742 #include <stdarg.h>
25743 #include <string.h>
25754 if ac_fn_c_try_compile "$LINENO"; then :
25755 ac_cv_header_stdc=yes
25757 ac_cv_header_stdc=no
25759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25761 if test $ac_cv_header_stdc = yes; then
25762 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
25763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25764 /* end confdefs.h. */
25765 #include <string.h>
25768 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25769 $EGREP "memchr" >/dev/null 2>&1; then :
25772 ac_cv_header_stdc=no
25778 if test $ac_cv_header_stdc = yes; then
25779 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
25780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25781 /* end confdefs.h. */
25782 #include <stdlib.h>
25785 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25786 $EGREP "free" >/dev/null 2>&1; then :
25789 ac_cv_header_stdc=no
25795 if test $ac_cv_header_stdc = yes; then
25796 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
25797 if test "$cross_compiling" = yes; then :
25800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25801 /* end confdefs.h. */
25803 #include <stdlib.h>
25804 #if ((' ' & 0x0FF) == 0x020)
25805 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
25806 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
25808 # define ISLOWER(c) \
25809 (('a' <= (c) && (c) <= 'i') \
25810 || ('j' <= (c) && (c) <= 'r') \
25811 || ('s' <= (c) && (c) <= 'z'))
25812 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
25815 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
25820 for (i = 0; i < 256; i++)
25821 if (XOR (islower (i), ISLOWER (i))
25822 || toupper (i) != TOUPPER (i))
25827 if ac_fn_c_try_run "$LINENO"; then :
25830 ac_cv_header_stdc=no
25832 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25833 conftest.$ac_objext conftest.beam conftest.$ac_ext
25838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
25839 $as_echo "$ac_cv_header_stdc" >&6; }
25840 if test $ac_cv_header_stdc = yes; then
25842 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
25846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev" >&5
25847 $as_echo_n "checking whether sys/types.h defines makedev... " >&6; }
25848 if ${ac_cv_header_sys_types_h_makedev+:} false; then :
25849 $as_echo_n "(cached) " >&6
25851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25852 /* end confdefs.h. */
25853 #include <sys/types.h>
25857 return makedev(0, 0);
25862 if ac_fn_c_try_link "$LINENO"; then :
25863 ac_cv_header_sys_types_h_makedev=yes
25865 ac_cv_header_sys_types_h_makedev=no
25867 rm -f core conftest.err conftest.$ac_objext \
25868 conftest$ac_exeext conftest.$ac_ext
25871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_types_h_makedev" >&5
25872 $as_echo "$ac_cv_header_sys_types_h_makedev" >&6; }
25874 if test $ac_cv_header_sys_types_h_makedev = no; then
25875 ac_fn_c_check_header_mongrel "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"
25876 if test "x$ac_cv_header_sys_mkdev_h" = xyes; then :
25878 $as_echo "#define MAJOR_IN_MKDEV 1" >>confdefs.h
25884 if test $ac_cv_header_sys_mkdev_h = no; then
25885 ac_fn_c_check_header_mongrel "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
25886 if test "x$ac_cv_header_sys_sysmacros_h" = xyes; then :
25888 $as_echo "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h
25896 ac_header_dirent=no
25897 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
25898 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
25899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
25900 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
25901 if eval \${$as_ac_Header+:} false; then :
25902 $as_echo_n "(cached) " >&6
25904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25905 /* end confdefs.h. */
25906 #include <sys/types.h>
25918 if ac_fn_c_try_compile "$LINENO"; then :
25919 eval "$as_ac_Header=yes"
25921 eval "$as_ac_Header=no"
25923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25925 eval ac_res=\$$as_ac_Header
25926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
25927 $as_echo "$ac_res" >&6; }
25928 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
25929 cat >>confdefs.h <<_ACEOF
25930 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
25933 ac_header_dirent=$ac_hdr; break
25937 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
25938 if test $ac_header_dirent = dirent.h; then
25939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
25940 $as_echo_n "checking for library containing opendir... " >&6; }
25941 if ${ac_cv_search_opendir+:} false; then :
25942 $as_echo_n "(cached) " >&6
25944 ac_func_search_save_LIBS=$LIBS
25945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25946 /* end confdefs.h. */
25948 /* Override any GCC internal prototype to avoid an error.
25949 Use char because int might match the return type of a GCC
25950 builtin and then its argument prototype would still apply. */
25963 for ac_lib in '' dir; do
25964 if test -z "$ac_lib"; then
25965 ac_res="none required"
25968 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25970 if ac_fn_c_try_link "$LINENO"; then :
25971 ac_cv_search_opendir=$ac_res
25973 rm -f core conftest.err conftest.$ac_objext \
25975 if ${ac_cv_search_opendir+:} false; then :
25979 if ${ac_cv_search_opendir+:} false; then :
25982 ac_cv_search_opendir=no
25984 rm conftest.$ac_ext
25985 LIBS=$ac_func_search_save_LIBS
25987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
25988 $as_echo "$ac_cv_search_opendir" >&6; }
25989 ac_res=$ac_cv_search_opendir
25990 if test "$ac_res" != no; then :
25991 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
25997 $as_echo_n "checking for library containing opendir... " >&6; }
25998 if ${ac_cv_search_opendir+:} false; then :
25999 $as_echo_n "(cached) " >&6
26001 ac_func_search_save_LIBS=$LIBS
26002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26003 /* end confdefs.h. */
26005 /* Override any GCC internal prototype to avoid an error.
26006 Use char because int might match the return type of a GCC
26007 builtin and then its argument prototype would still apply. */
26020 for ac_lib in '' x; do
26021 if test -z "$ac_lib"; then
26022 ac_res="none required"
26025 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26027 if ac_fn_c_try_link "$LINENO"; then :
26028 ac_cv_search_opendir=$ac_res
26030 rm -f core conftest.err conftest.$ac_objext \
26032 if ${ac_cv_search_opendir+:} false; then :
26036 if ${ac_cv_search_opendir+:} false; then :
26039 ac_cv_search_opendir=no
26041 rm conftest.$ac_ext
26042 LIBS=$ac_func_search_save_LIBS
26044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
26045 $as_echo "$ac_cv_search_opendir" >&6; }
26046 ac_res=$ac_cv_search_opendir
26047 if test "$ac_res" != no; then :
26048 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
26055 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
26056 if ${ac_cv_header_stat_broken+:} false; then :
26057 $as_echo_n "(cached) " >&6
26059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26060 /* end confdefs.h. */
26061 #include <sys/types.h>
26062 #include <sys/stat.h>
26064 #if defined S_ISBLK && defined S_IFDIR
26065 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
26068 #if defined S_ISBLK && defined S_IFCHR
26069 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
26072 #if defined S_ISLNK && defined S_IFREG
26073 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
26076 #if defined S_ISSOCK && defined S_IFREG
26077 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
26081 if ac_fn_c_try_compile "$LINENO"; then :
26082 ac_cv_header_stat_broken=no
26084 ac_cv_header_stat_broken=yes
26086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
26089 $as_echo "$ac_cv_header_stat_broken" >&6; }
26090 if test $ac_cv_header_stat_broken = yes; then
26092 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
26096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
26097 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
26098 if ${ac_cv_header_sys_wait_h+:} false; then :
26099 $as_echo_n "(cached) " >&6
26101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26102 /* end confdefs.h. */
26103 #include <sys/types.h>
26104 #include <sys/wait.h>
26105 #ifndef WEXITSTATUS
26106 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
26109 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
26117 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
26122 if ac_fn_c_try_compile "$LINENO"; then :
26123 ac_cv_header_sys_wait_h=yes
26125 ac_cv_header_sys_wait_h=no
26127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
26130 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
26131 if test $ac_cv_header_sys_wait_h = yes; then
26133 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
26137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
26138 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
26139 if ${ac_cv_header_time+:} false; then :
26140 $as_echo_n "(cached) " >&6
26142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26143 /* end confdefs.h. */
26144 #include <sys/types.h>
26145 #include <sys/time.h>
26151 if ((struct tm *) 0)
26157 if ac_fn_c_try_compile "$LINENO"; then :
26158 ac_cv_header_time=yes
26160 ac_cv_header_time=no
26162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
26165 $as_echo "$ac_cv_header_time" >&6; }
26166 if test $ac_cv_header_time = yes; then
26168 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
26172 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
26173 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
26175 cat >>confdefs.h <<_ACEOF
26176 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
26180 $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h
26185 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
26186 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
26188 cat >>confdefs.h <<_ACEOF
26189 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
26193 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
26196 case " $LIBOBJS " in
26197 *" fileblocks.$ac_objext "* ) ;;
26198 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
26205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
26206 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
26207 if ${ac_cv_struct_tm+:} false; then :
26208 $as_echo_n "(cached) " >&6
26210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26211 /* end confdefs.h. */
26212 #include <sys/types.h>
26219 int *p = &tm.tm_sec;
26225 if ac_fn_c_try_compile "$LINENO"; then :
26226 ac_cv_struct_tm=time.h
26228 ac_cv_struct_tm=sys/time.h
26230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
26233 $as_echo "$ac_cv_struct_tm" >&6; }
26234 if test $ac_cv_struct_tm = sys/time.h; then
26236 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
26240 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
26241 #include <$ac_cv_struct_tm>
26244 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
26246 cat >>confdefs.h <<_ACEOF
26247 #define HAVE_STRUCT_TM_TM_ZONE 1
26253 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
26255 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
26258 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
26260 if test "x$ac_cv_have_decl_tzname" = xyes; then :
26266 cat >>confdefs.h <<_ACEOF
26267 #define HAVE_DECL_TZNAME $ac_have_decl
26270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
26271 $as_echo_n "checking for tzname... " >&6; }
26272 if ${ac_cv_var_tzname+:} false; then :
26273 $as_echo_n "(cached) " >&6
26275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26276 /* end confdefs.h. */
26278 #if !HAVE_DECL_TZNAME
26279 extern char *tzname[];
26285 return tzname[0][0];
26290 if ac_fn_c_try_link "$LINENO"; then :
26291 ac_cv_var_tzname=yes
26293 ac_cv_var_tzname=no
26295 rm -f core conftest.err conftest.$ac_objext \
26296 conftest$ac_exeext conftest.$ac_ext
26298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
26299 $as_echo "$ac_cv_var_tzname" >&6; }
26300 if test $ac_cv_var_tzname = yes; then
26302 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
26308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for utime.h" >&5
26309 $as_echo_n "checking for utime.h... " >&6; }
26310 if ${ba_cv_header_utime_h+:} false; then :
26311 $as_echo_n "(cached) " >&6
26314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26315 /* end confdefs.h. */
26317 #include <sys/types.h>
26330 if ac_fn_c_try_compile "$LINENO"; then :
26332 ba_cv_header_utime_h=yes
26336 ba_cv_header_utime_h=no
26340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_header_utime_h" >&5
26345 $as_echo "$ba_cv_header_utime_h" >&6; }
26346 test $ba_cv_header_utime_h = yes &&
26347 $as_echo "#define HAVE_UTIME_H 1" >>confdefs.h
26350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5
26351 $as_echo_n "checking for socklen_t... " >&6; }
26352 if ${ba_cv_header_socklen_t+:} false; then :
26353 $as_echo_n "(cached) " >&6
26356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26357 /* end confdefs.h. */
26359 #include <sys/types.h>
26360 #include <sys/socket.h>
26372 if ac_fn_c_try_compile "$LINENO"; then :
26374 ba_cv_header_socklen_t=yes
26378 ba_cv_header_socklen_t=no
26382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_header_socklen_t" >&5
26387 $as_echo "$ba_cv_header_socklen_t" >&6; }
26388 test $ba_cv_header_socklen_t = yes &&
26389 $as_echo "#define HAVE_SOCKLEN_T 1" >>confdefs.h
26393 ac_cpp='$CXXCPP $CPPFLAGS'
26394 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26395 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26396 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ioctl_req_t" >&5
26399 $as_echo_n "checking for ioctl_req_t... " >&6; }
26400 if ${ba_cv_header_ioctl_req_t+:} false; then :
26401 $as_echo_n "(cached) " >&6
26404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26405 /* end confdefs.h. */
26407 #include <unistd.h>
26408 #include <sys/types.h>
26409 #include <sys/ioctl.h>
26415 int (*d_ioctl)(int fd, unsigned long int request, ...);
26422 if ac_fn_cxx_try_compile "$LINENO"; then :
26424 ba_cv_header_ioctl_req_t=yes
26428 ba_cv_header_ioctl_req_t=no
26432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_header_ioctl_req_t" >&5
26437 $as_echo "$ba_cv_header_ioctl_req_t" >&6; }
26438 test $ba_cv_header_ioctl_req_t = yes &&
26439 $as_echo "#define HAVE_IOCTL_ULINT_REQUEST 1" >>confdefs.h
26443 ac_cpp='$CPP $CPPFLAGS'
26444 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26445 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26446 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26450 ac_cpp='$CXXCPP $CPPFLAGS'
26451 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26452 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26453 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for typeof" >&5
26456 $as_echo_n "checking for typeof... " >&6; }
26457 if ${ba_cv_have_typeof+:} false; then :
26458 $as_echo_n "(cached) " >&6
26461 if test "$cross_compiling" = yes; then :
26463 ba_cv_have_typeof=no
26467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26468 /* end confdefs.h. */
26470 main(){char *a = 0; a = (typeof a)a;}
26473 if ac_fn_cxx_try_run "$LINENO"; then :
26475 ba_cv_have_typeof=yes
26479 ba_cv_have_typeof=no
26482 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26483 conftest.$ac_objext conftest.beam conftest.$ac_ext
26489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_have_typeof" >&5
26490 $as_echo "$ba_cv_have_typeof" >&6; }
26491 test $ba_cv_have_typeof = yes &&
26492 $as_echo "#define HAVE_TYPEOF 1" >>confdefs.h
26495 ac_cpp='$CPP $CPPFLAGS'
26496 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26497 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26498 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
26502 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
26503 if ${ac_cv_c_const+:} false; then :
26504 $as_echo_n "(cached) " >&6
26506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26507 /* end confdefs.h. */
26513 #ifndef __cplusplus
26514 /* Ultrix mips cc rejects this sort of thing. */
26515 typedef int charset[2];
26516 const charset cs = { 0, 0 };
26517 /* SunOS 4.1.1 cc rejects this. */
26518 char const *const *pcpcc;
26520 /* NEC SVR4.0.2 mips cc rejects this. */
26521 struct point {int x, y;};
26522 static struct point const zero = {0,0};
26523 /* AIX XL C 1.02.0.0 rejects this.
26524 It does not let you subtract one const X* pointer from another in
26525 an arm of an if-expression whose if-part is not a constant
26527 const char *g = "string";
26528 pcpcc = &g + (g ? g-g : 0);
26529 /* HPUX 7.0 cc rejects these. */
26531 ppc = (char**) pcpcc;
26532 pcpcc = (char const *const *) ppc;
26533 { /* SCO 3.2v4 cc rejects this sort of thing. */
26536 char const *s = 0 ? (char *) 0 : (char const *) 0;
26541 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
26542 int x[] = {25, 17};
26543 const int *foo = &x[0];
26546 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
26547 typedef const int *iptr;
26551 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
26552 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
26553 struct s { int j; const int *ap[3]; } bx;
26554 struct s *b = &bx; b->j = 5;
26556 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
26557 const int foo = 10;
26558 if (!foo) return 0;
26560 return !cs[0] && !zero.x;
26567 if ac_fn_c_try_compile "$LINENO"; then :
26572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
26575 $as_echo "$ac_cv_c_const" >&6; }
26576 if test $ac_cv_c_const = no; then
26578 $as_echo "#define const /**/" >>confdefs.h
26583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
26584 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
26585 if ${ac_cv_c_bigendian+:} false; then :
26586 $as_echo_n "(cached) " >&6
26588 ac_cv_c_bigendian=unknown
26589 # See if we're dealing with a universal compiler.
26590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26591 /* end confdefs.h. */
26592 #ifndef __APPLE_CC__
26593 not a universal capable compiler
26598 if ac_fn_c_try_compile "$LINENO"; then :
26600 # Check for potential -arch flags. It is not universal unless
26601 # there are at least two -arch flags with different values.
26604 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
26605 if test -n "$ac_prev"; then
26607 i?86 | x86_64 | ppc | ppc64)
26608 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
26611 ac_cv_c_bigendian=universal
26617 elif test "x$ac_word" = "x-arch"; then
26622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26623 if test $ac_cv_c_bigendian = unknown; then
26624 # See if sys/param.h defines the BYTE_ORDER macro.
26625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26626 /* end confdefs.h. */
26627 #include <sys/types.h>
26628 #include <sys/param.h>
26633 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
26634 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
26636 bogus endian macros
26643 if ac_fn_c_try_compile "$LINENO"; then :
26644 # It does; now see whether it defined to BIG_ENDIAN or not.
26645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26646 /* end confdefs.h. */
26647 #include <sys/types.h>
26648 #include <sys/param.h>
26653 #if BYTE_ORDER != BIG_ENDIAN
26661 if ac_fn_c_try_compile "$LINENO"; then :
26662 ac_cv_c_bigendian=yes
26664 ac_cv_c_bigendian=no
26666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26670 if test $ac_cv_c_bigendian = unknown; then
26671 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
26672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26673 /* end confdefs.h. */
26674 #include <limits.h>
26679 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
26680 bogus endian macros
26687 if ac_fn_c_try_compile "$LINENO"; then :
26688 # It does; now see whether it defined to _BIG_ENDIAN or not.
26689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26690 /* end confdefs.h. */
26691 #include <limits.h>
26696 #ifndef _BIG_ENDIAN
26704 if ac_fn_c_try_compile "$LINENO"; then :
26705 ac_cv_c_bigendian=yes
26707 ac_cv_c_bigendian=no
26709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26713 if test $ac_cv_c_bigendian = unknown; then
26714 # Compile a test program.
26715 if test "$cross_compiling" = yes; then :
26716 # Try to guess by grepping values from an object file.
26717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26718 /* end confdefs.h. */
26719 short int ascii_mm[] =
26720 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
26721 short int ascii_ii[] =
26722 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
26723 int use_ascii (int i) {
26724 return ascii_mm[i] + ascii_ii[i];
26726 short int ebcdic_ii[] =
26727 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
26728 short int ebcdic_mm[] =
26729 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
26730 int use_ebcdic (int i) {
26731 return ebcdic_mm[i] + ebcdic_ii[i];
26738 return use_ascii (foo) == use_ebcdic (foo);
26743 if ac_fn_c_try_compile "$LINENO"; then :
26744 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
26745 ac_cv_c_bigendian=yes
26747 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
26748 if test "$ac_cv_c_bigendian" = unknown; then
26749 ac_cv_c_bigendian=no
26751 # finding both strings is unlikely to happen, but who knows?
26752 ac_cv_c_bigendian=unknown
26756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26759 /* end confdefs.h. */
26760 $ac_includes_default
26765 /* Are we little or big endian? From Harbison&Steele. */
26769 char c[sizeof (long int)];
26772 return u.c[sizeof (long int) - 1] == 1;
26778 if ac_fn_c_try_run "$LINENO"; then :
26779 ac_cv_c_bigendian=no
26781 ac_cv_c_bigendian=yes
26783 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26784 conftest.$ac_objext conftest.beam conftest.$ac_ext
26789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
26790 $as_echo "$ac_cv_c_bigendian" >&6; }
26791 case $ac_cv_c_bigendian in #(
26794 $as_echo "#define HAVE_BIG_ENDIAN 1" >>confdefs.h
26798 $as_echo "#define HAVE_LITTLE_ENDIAN 1" >>confdefs.h
26802 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
26806 as_fn_error $? "unknown endianness
26807 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
26811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to get filesystem type" >&5
26812 $as_echo_n "checking how to get filesystem type... " >&6; }
26814 # The order of these tests is important.
26815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26816 /* end confdefs.h. */
26818 #include <sys/statvfs.h>
26819 #include <sys/fstyp.h>
26822 if ac_fn_c_try_cpp "$LINENO"; then :
26823 $as_echo "#define FSTYPE_STATVFS 1" >>confdefs.h
26827 rm -f conftest.err conftest.i conftest.$ac_ext
26828 if test $fstype = no; then
26829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26830 /* end confdefs.h. */
26832 #include <sys/statfs.h>
26833 #include <sys/fstyp.h>
26836 if ac_fn_c_try_cpp "$LINENO"; then :
26837 $as_echo "#define FSTYPE_USG_STATFS 1" >>confdefs.h
26841 rm -f conftest.err conftest.i conftest.$ac_ext
26843 if test $fstype = no; then
26844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26845 /* end confdefs.h. */
26847 #include <sys/statfs.h>
26848 #include <sys/vmount.h>
26851 if ac_fn_c_try_cpp "$LINENO"; then :
26852 $as_echo "#define FSTYPE_AIX_STATFS 1" >>confdefs.h
26856 rm -f conftest.err conftest.i conftest.$ac_ext
26858 if test $fstype = no; then
26859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26860 /* end confdefs.h. */
26862 #include <mntent.h>
26865 if ac_fn_c_try_cpp "$LINENO"; then :
26866 $as_echo "#define FSTYPE_MNTENT 1" >>confdefs.h
26870 rm -f conftest.err conftest.i conftest.$ac_ext
26872 if test $fstype = no; then
26873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26874 /* end confdefs.h. */
26875 #include <sys/mount.h>
26878 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26879 $EGREP "f_type;" >/dev/null 2>&1; then :
26880 $as_echo "#define FSTYPE_STATFS 1" >>confdefs.h
26886 if test $fstype = no; then
26887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26888 /* end confdefs.h. */
26890 #include <sys/mount.h>
26891 #include <sys/fs_types.h>
26894 if ac_fn_c_try_cpp "$LINENO"; then :
26895 $as_echo "#define FSTYPE_GETMNT 1" >>confdefs.h
26899 rm -f conftest.err conftest.i conftest.$ac_ext
26901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fstype" >&5
26902 $as_echo "$fstype" >&6; }
26904 ac_fn_c_check_header_mongrel "$LINENO" "sys/statvfs.h" "ac_cv_header_sys_statvfs_h" "$ac_includes_default"
26905 if test "x$ac_cv_header_sys_statvfs_h" = xyes; then :
26907 $as_echo "#define HAVE_SYS_STATVFS_H 1" >>confdefs.h
26914 ac_cpp='$CXXCPP $CPPFLAGS'
26915 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26916 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26917 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26919 for ac_func in backtrace
26921 ac_fn_cxx_check_func "$LINENO" "backtrace" "ac_cv_func_backtrace"
26922 if test "x$ac_cv_func_backtrace" = xyes; then :
26923 cat >>confdefs.h <<_ACEOF
26924 #define HAVE_BACKTRACE 1
26931 ac_cpp='$CPP $CPPFLAGS'
26932 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26933 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26934 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
26938 $as_echo_n "checking return type of signal handlers... " >&6; }
26939 if ${ac_cv_type_signal+:} false; then :
26940 $as_echo_n "(cached) " >&6
26942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26943 /* end confdefs.h. */
26944 #include <sys/types.h>
26945 #include <signal.h>
26950 return *(signal (0, 0)) (0) == 1;
26955 if ac_fn_c_try_compile "$LINENO"; then :
26956 ac_cv_type_signal=int
26958 ac_cv_type_signal=void
26960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
26963 $as_echo "$ac_cv_type_signal" >&6; }
26965 cat >>confdefs.h <<_ACEOF
26966 #define RETSIGTYPE $ac_cv_type_signal
26971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type of signal functions" >&5
26972 $as_echo_n "checking for type of signal functions... " >&6; }
26973 if ${bash_cv_signal_vintage+:} false; then :
26974 $as_echo_n "(cached) " >&6
26977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26978 /* end confdefs.h. */
26979 #include <signal.h>
26985 struct sigaction sa;
26986 sigemptyset(&ss); sigsuspend(&ss);
26987 sigaction(SIGINT, &sa, (struct sigaction *) 0);
26988 sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
26994 if ac_fn_c_try_link "$LINENO"; then :
26995 bash_cv_signal_vintage="posix"
26998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26999 /* end confdefs.h. */
27000 #include <signal.h>
27005 int mask = sigmask(SIGINT);
27006 sigsetmask(mask); sigblock(mask); sigpause(mask);
27012 if ac_fn_c_try_link "$LINENO"; then :
27013 bash_cv_signal_vintage="4.2bsd"
27016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27017 /* end confdefs.h. */
27019 #include <signal.h>
27020 RETSIGTYPE foo() { }
27025 int mask = sigmask(SIGINT);
27026 sigset(SIGINT, foo); sigrelse(SIGINT);
27027 sighold(SIGINT); sigpause(SIGINT);
27033 if ac_fn_c_try_link "$LINENO"; then :
27034 bash_cv_signal_vintage="svr3"
27036 bash_cv_signal_vintage="v7"
27039 rm -f core conftest.err conftest.$ac_objext \
27040 conftest$ac_exeext conftest.$ac_ext
27043 rm -f core conftest.err conftest.$ac_objext \
27044 conftest$ac_exeext conftest.$ac_ext
27047 rm -f core conftest.err conftest.$ac_objext \
27048 conftest$ac_exeext conftest.$ac_ext
27052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_signal_vintage" >&5
27053 $as_echo "$bash_cv_signal_vintage" >&6; }
27054 if test "$bash_cv_signal_vintage" = "posix"; then
27055 $as_echo "#define HAVE_POSIX_SIGNALS 1" >>confdefs.h
27057 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
27058 $as_echo "#define HAVE_BSD_SIGNALS 1" >>confdefs.h
27060 elif test "$bash_cv_signal_vintage" = "svr3"; then
27061 $as_echo "#define HAVE_USG_SIGHOLD 1" >>confdefs.h
27065 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
27066 if test "x$ac_cv_type_mode_t" = xyes; then :
27070 cat >>confdefs.h <<_ACEOF
27076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
27077 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
27078 if ${ac_cv_type_uid_t+:} false; then :
27079 $as_echo_n "(cached) " >&6
27081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27082 /* end confdefs.h. */
27083 #include <sys/types.h>
27086 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27087 $EGREP "uid_t" >/dev/null 2>&1; then :
27088 ac_cv_type_uid_t=yes
27090 ac_cv_type_uid_t=no
27095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
27096 $as_echo "$ac_cv_type_uid_t" >&6; }
27097 if test $ac_cv_type_uid_t = no; then
27099 $as_echo "#define uid_t int" >>confdefs.h
27102 $as_echo "#define gid_t int" >>confdefs.h
27106 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
27107 if test "x$ac_cv_type_size_t" = xyes; then :
27111 cat >>confdefs.h <<_ACEOF
27112 #define size_t unsigned int
27117 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
27118 if test "x$ac_cv_type_pid_t" = xyes; then :
27122 cat >>confdefs.h <<_ACEOF
27128 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
27129 if test "x$ac_cv_type_off_t" = xyes; then :
27133 cat >>confdefs.h <<_ACEOF
27134 #define off_t long int
27140 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
27141 if test "x$ac_cv_type_intptr_t" = xyes; then :
27143 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
27146 for ac_type in 'int' 'long int' 'long long int'; do
27147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27148 /* end confdefs.h. */
27149 $ac_includes_default
27153 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
27154 test_array [0] = 0;
27155 return test_array [0];
27161 if ac_fn_c_try_compile "$LINENO"; then :
27163 cat >>confdefs.h <<_ACEOF
27164 #define intptr_t $ac_type
27169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27170 test -z "$ac_type" && break
27176 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
27177 if test "x$ac_cv_type_uintptr_t" = xyes; then :
27179 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
27182 for ac_type in 'unsigned int' 'unsigned long int' \
27183 'unsigned long long int'; do
27184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27185 /* end confdefs.h. */
27186 $ac_includes_default
27190 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
27191 test_array [0] = 0;
27192 return test_array [0];
27198 if ac_fn_c_try_compile "$LINENO"; then :
27200 cat >>confdefs.h <<_ACEOF
27201 #define uintptr_t $ac_type
27206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27207 test -z "$ac_type" && break
27212 ac_fn_c_check_type "$LINENO" "ino_t" "ac_cv_type_ino_t" "$ac_includes_default"
27213 if test "x$ac_cv_type_ino_t" = xyes; then :
27217 cat >>confdefs.h <<_ACEOF
27218 #define ino_t unsigned long
27223 ac_fn_c_check_type "$LINENO" "dev_t" "ac_cv_type_dev_t" "$ac_includes_default"
27224 if test "x$ac_cv_type_dev_t" = xyes; then :
27228 cat >>confdefs.h <<_ACEOF
27229 #define dev_t unsigned long
27234 ac_fn_c_check_type "$LINENO" "daddr_t" "ac_cv_type_daddr_t" "$ac_includes_default"
27235 if test "x$ac_cv_type_daddr_t" = xyes; then :
27239 cat >>confdefs.h <<_ACEOF
27240 #define daddr_t long
27245 ac_fn_c_check_type "$LINENO" "major_t" "ac_cv_type_major_t" "$ac_includes_default"
27246 if test "x$ac_cv_type_major_t" = xyes; then :
27250 cat >>confdefs.h <<_ACEOF
27251 #define major_t int
27256 ac_fn_c_check_type "$LINENO" "minor_t" "ac_cv_type_minor_t" "$ac_includes_default"
27257 if test "x$ac_cv_type_minor_t" = xyes; then :
27261 cat >>confdefs.h <<_ACEOF
27262 #define minor_t int
27267 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
27268 if test "x$ac_cv_type_ssize_t" = xyes; then :
27272 cat >>confdefs.h <<_ACEOF
27273 #define ssize_t int
27278 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
27279 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
27281 cat >>confdefs.h <<_ACEOF
27282 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
27286 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
27289 case " $LIBOBJS " in
27290 *" fileblocks.$ac_objext "* ) ;;
27291 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
27298 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
27299 if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
27301 cat >>confdefs.h <<_ACEOF
27302 #define HAVE_STRUCT_STAT_ST_RDEV 1
27306 $as_echo "#define HAVE_ST_RDEV 1" >>confdefs.h
27311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
27312 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
27313 if ${ac_cv_struct_tm+:} false; then :
27314 $as_echo_n "(cached) " >&6
27316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27317 /* end confdefs.h. */
27318 #include <sys/types.h>
27325 int *p = &tm.tm_sec;
27331 if ac_fn_c_try_compile "$LINENO"; then :
27332 ac_cv_struct_tm=time.h
27334 ac_cv_struct_tm=sys/time.h
27336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
27339 $as_echo "$ac_cv_struct_tm" >&6; }
27340 if test $ac_cv_struct_tm = sys/time.h; then
27342 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
27346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
27347 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
27348 if ${ac_cv_c_const+:} false; then :
27349 $as_echo_n "(cached) " >&6
27351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27352 /* end confdefs.h. */
27358 #ifndef __cplusplus
27359 /* Ultrix mips cc rejects this sort of thing. */
27360 typedef int charset[2];
27361 const charset cs = { 0, 0 };
27362 /* SunOS 4.1.1 cc rejects this. */
27363 char const *const *pcpcc;
27365 /* NEC SVR4.0.2 mips cc rejects this. */
27366 struct point {int x, y;};
27367 static struct point const zero = {0,0};
27368 /* AIX XL C 1.02.0.0 rejects this.
27369 It does not let you subtract one const X* pointer from another in
27370 an arm of an if-expression whose if-part is not a constant
27372 const char *g = "string";
27373 pcpcc = &g + (g ? g-g : 0);
27374 /* HPUX 7.0 cc rejects these. */
27376 ppc = (char**) pcpcc;
27377 pcpcc = (char const *const *) ppc;
27378 { /* SCO 3.2v4 cc rejects this sort of thing. */
27381 char const *s = 0 ? (char *) 0 : (char const *) 0;
27386 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
27387 int x[] = {25, 17};
27388 const int *foo = &x[0];
27391 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
27392 typedef const int *iptr;
27396 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
27397 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
27398 struct s { int j; const int *ap[3]; } bx;
27399 struct s *b = &bx; b->j = 5;
27401 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
27402 const int foo = 10;
27403 if (!foo) return 0;
27405 return !cs[0] && !zero.x;
27412 if ac_fn_c_try_compile "$LINENO"; then :
27417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
27420 $as_echo "$ac_cv_c_const" >&6; }
27421 if test $ac_cv_c_const = no; then
27423 $as_echo "#define const /**/" >>confdefs.h
27428 # The cast to long int works around a bug in the HP C Compiler
27429 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27430 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27431 # This bug is HP SR number 8606223364.
27432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
27433 $as_echo_n "checking size of char... " >&6; }
27434 if ${ac_cv_sizeof_char+:} false; then :
27435 $as_echo_n "(cached) " >&6
27437 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
27440 if test "$ac_cv_type_char" = yes; then
27441 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27442 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27443 as_fn_error 77 "cannot compute sizeof (char)
27444 See \`config.log' for more details" "$LINENO" 5; }
27446 ac_cv_sizeof_char=0
27451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
27452 $as_echo "$ac_cv_sizeof_char" >&6; }
27456 cat >>confdefs.h <<_ACEOF
27457 #define SIZEOF_CHAR $ac_cv_sizeof_char
27461 # The cast to long int works around a bug in the HP C Compiler
27462 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27463 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27464 # This bug is HP SR number 8606223364.
27465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short int" >&5
27466 $as_echo_n "checking size of short int... " >&6; }
27467 if ${ac_cv_sizeof_short_int+:} false; then :
27468 $as_echo_n "(cached) " >&6
27470 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short int))" "ac_cv_sizeof_short_int" "$ac_includes_default"; then :
27473 if test "$ac_cv_type_short_int" = yes; then
27474 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27475 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27476 as_fn_error 77 "cannot compute sizeof (short int)
27477 See \`config.log' for more details" "$LINENO" 5; }
27479 ac_cv_sizeof_short_int=0
27484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short_int" >&5
27485 $as_echo "$ac_cv_sizeof_short_int" >&6; }
27489 cat >>confdefs.h <<_ACEOF
27490 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
27494 # The cast to long int works around a bug in the HP C Compiler
27495 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27496 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27497 # This bug is HP SR number 8606223364.
27498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
27499 $as_echo_n "checking size of int... " >&6; }
27500 if ${ac_cv_sizeof_int+:} false; then :
27501 $as_echo_n "(cached) " >&6
27503 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
27506 if test "$ac_cv_type_int" = yes; then
27507 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27508 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27509 as_fn_error 77 "cannot compute sizeof (int)
27510 See \`config.log' for more details" "$LINENO" 5; }
27517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
27518 $as_echo "$ac_cv_sizeof_int" >&6; }
27522 cat >>confdefs.h <<_ACEOF
27523 #define SIZEOF_INT $ac_cv_sizeof_int
27527 # The cast to long int works around a bug in the HP C Compiler
27528 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27529 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27530 # This bug is HP SR number 8606223364.
27531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long int" >&5
27532 $as_echo_n "checking size of long int... " >&6; }
27533 if ${ac_cv_sizeof_long_int+:} false; then :
27534 $as_echo_n "(cached) " >&6
27536 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long int))" "ac_cv_sizeof_long_int" "$ac_includes_default"; then :
27539 if test "$ac_cv_type_long_int" = yes; then
27540 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27541 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27542 as_fn_error 77 "cannot compute sizeof (long int)
27543 See \`config.log' for more details" "$LINENO" 5; }
27545 ac_cv_sizeof_long_int=0
27550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_int" >&5
27551 $as_echo "$ac_cv_sizeof_long_int" >&6; }
27555 cat >>confdefs.h <<_ACEOF
27556 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
27560 # The cast to long int works around a bug in the HP C Compiler
27561 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27562 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27563 # This bug is HP SR number 8606223364.
27564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long int" >&5
27565 $as_echo_n "checking size of long long int... " >&6; }
27566 if ${ac_cv_sizeof_long_long_int+:} false; then :
27567 $as_echo_n "(cached) " >&6
27569 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long int))" "ac_cv_sizeof_long_long_int" "$ac_includes_default"; then :
27572 if test "$ac_cv_type_long_long_int" = yes; then
27573 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27574 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27575 as_fn_error 77 "cannot compute sizeof (long long int)
27576 See \`config.log' for more details" "$LINENO" 5; }
27578 ac_cv_sizeof_long_long_int=0
27583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long_int" >&5
27584 $as_echo "$ac_cv_sizeof_long_long_int" >&6; }
27588 cat >>confdefs.h <<_ACEOF
27589 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
27593 # The cast to long int works around a bug in the HP C Compiler
27594 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27595 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27596 # This bug is HP SR number 8606223364.
27597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int *" >&5
27598 $as_echo_n "checking size of int *... " >&6; }
27599 if ${ac_cv_sizeof_int_p+:} false; then :
27600 $as_echo_n "(cached) " >&6
27602 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int *))" "ac_cv_sizeof_int_p" "$ac_includes_default"; then :
27605 if test "$ac_cv_type_int_p" = yes; then
27606 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27607 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27608 as_fn_error 77 "cannot compute sizeof (int *)
27609 See \`config.log' for more details" "$LINENO" 5; }
27611 ac_cv_sizeof_int_p=0
27616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int_p" >&5
27617 $as_echo "$ac_cv_sizeof_int_p" >&6; }
27621 cat >>confdefs.h <<_ACEOF
27622 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
27627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int type" >&5
27628 $as_echo_n "checking for u_int type... " >&6; }
27629 if ${ac_cv_have_u_int+:} false; then :
27630 $as_echo_n "(cached) " >&6
27633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27634 /* end confdefs.h. */
27636 #include <sys/types.h>
27648 if ac_fn_c_try_compile "$LINENO"; then :
27650 ac_cv_have_u_int="yes"
27654 ac_cv_have_u_int="no"
27658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_int" >&5
27663 $as_echo "$ac_cv_have_u_int" >&6; }
27664 if test "x$ac_cv_have_u_int" = "xyes" ; then
27665 $as_echo "#define HAVE_U_INT 1" >>confdefs.h
27670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t type" >&5
27671 $as_echo_n "checking for intmax_t type... " >&6; }
27672 if ${ac_cv_have_intmax_t+:} false; then :
27673 $as_echo_n "(cached) " >&6
27676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27677 /* end confdefs.h. */
27679 #include <sys/types.h>
27691 if ac_fn_c_try_compile "$LINENO"; then :
27693 ac_cv_have_intmax_t="yes"
27697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27698 /* end confdefs.h. */
27700 #include <stdint.h>
27712 if ac_fn_c_try_compile "$LINENO"; then :
27714 ac_cv_have_intmax_t="yes"
27718 ac_cv_have_intmax_t="no"
27722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_intmax_t" >&5
27731 $as_echo "$ac_cv_have_intmax_t" >&6; }
27732 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
27733 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
27738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_intmax_t type" >&5
27739 $as_echo_n "checking for u_intmax_t type... " >&6; }
27740 if ${ac_cv_have_u_intmax_t+:} false; then :
27741 $as_echo_n "(cached) " >&6
27744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27745 /* end confdefs.h. */
27747 #include <sys/types.h>
27753 u_intmax_t a; a = 1;
27759 if ac_fn_c_try_compile "$LINENO"; then :
27761 ac_cv_have_u_intmax_t="yes"
27765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27766 /* end confdefs.h. */
27768 #include <stdint.h>
27774 u_intmax_t a; a = 1;
27780 if ac_fn_c_try_compile "$LINENO"; then :
27782 ac_cv_have_u_intmax_t="yes"
27786 ac_cv_have_u_intmax_t="no"
27790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_intmax_t" >&5
27799 $as_echo "$ac_cv_have_u_intmax_t" >&6; }
27800 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
27801 $as_echo "#define HAVE_U_INTMAX_T 1" >>confdefs.h
27806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intXX_t types" >&5
27807 $as_echo_n "checking for intXX_t types... " >&6; }
27808 if ${ac_cv_have_intxx_t+:} false; then :
27809 $as_echo_n "(cached) " >&6
27812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27813 /* end confdefs.h. */
27815 #include <sys/types.h>
27821 int8_t a; int16_t b; int32_t c; a = b = c = 1;
27827 if ac_fn_c_try_compile "$LINENO"; then :
27829 ac_cv_have_intxx_t="yes"
27833 ac_cv_have_intxx_t="no"
27837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_intxx_t" >&5
27842 $as_echo "$ac_cv_have_intxx_t" >&6; }
27843 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
27844 $as_echo "#define HAVE_INTXX_T 1" >>confdefs.h
27849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t type" >&5
27850 $as_echo_n "checking for int64_t type... " >&6; }
27851 if ${ac_cv_have_int64_t+:} false; then :
27852 $as_echo_n "(cached) " >&6
27855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27856 /* end confdefs.h. */
27858 #include <sys/types.h>
27870 if ac_fn_c_try_compile "$LINENO"; then :
27872 ac_cv_have_int64_t="yes"
27876 ac_cv_have_int64_t="no"
27880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_int64_t" >&5
27885 $as_echo "$ac_cv_have_int64_t" >&6; }
27886 if test "x$ac_cv_have_int64_t" = "xyes" ; then
27887 $as_echo "#define HAVE_INT64_T 1" >>confdefs.h
27892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_intXX_t types" >&5
27893 $as_echo_n "checking for u_intXX_t types... " >&6; }
27894 if ${ac_cv_have_u_intxx_t+:} false; then :
27895 $as_echo_n "(cached) " >&6
27898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27899 /* end confdefs.h. */
27901 #include <sys/types.h>
27907 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
27913 if ac_fn_c_try_compile "$LINENO"; then :
27915 ac_cv_have_u_intxx_t="yes"
27919 ac_cv_have_u_intxx_t="no"
27923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_intxx_t" >&5
27928 $as_echo "$ac_cv_have_u_intxx_t" >&6; }
27929 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
27930 $as_echo "#define HAVE_U_INTXX_T 1" >>confdefs.h
27935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int64_t types" >&5
27936 $as_echo_n "checking for u_int64_t types... " >&6; }
27937 if ${ac_cv_have_u_int64_t+:} false; then :
27938 $as_echo_n "(cached) " >&6
27941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27942 /* end confdefs.h. */
27944 #include <sys/types.h>
27950 u_int64_t a; a = 1;
27956 if ac_fn_c_try_compile "$LINENO"; then :
27958 ac_cv_have_u_int64_t="yes"
27962 ac_cv_have_u_int64_t="no"
27966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_int64_t" >&5
27971 $as_echo "$ac_cv_have_u_int64_t" >&6; }
27972 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
27973 $as_echo "#define HAVE_U_INT64_T 1" >>confdefs.h
27978 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
27979 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
27981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
27982 $as_echo_n "checking for intXX_t and u_intXX_t types in sys/bitypes.h... " >&6; }
27983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27984 /* end confdefs.h. */
27986 #include <sys/bitypes.h>
27992 int8_t a; int16_t b; int32_t c;
27993 u_int8_t e; u_int16_t f; u_int32_t g;
27994 a = b = c = e = f = g = 1;
28000 if ac_fn_c_try_compile "$LINENO"; then :
28002 $as_echo "#define HAVE_U_INTXX_T 1" >>confdefs.h
28004 $as_echo "#define HAVE_INTXX_T 1" >>confdefs.h
28006 $as_echo "#define HAVE_SYS_BITYPES_H 1" >>confdefs.h
28008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28009 $as_echo "yes" >&6; }
28013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28014 $as_echo "no" >&6; }
28018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28021 if test -z "$have_u_intxx_t" ; then
28022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uintXX_t types" >&5
28023 $as_echo_n "checking for uintXX_t types... " >&6; }
28024 if ${ac_cv_have_uintxx_t+:} false; then :
28025 $as_echo_n "(cached) " >&6
28028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28029 /* end confdefs.h. */
28031 #include <sys/types.h>
28037 uint8_t a; uint16_t b;
28038 uint32_t c; a = b = c = 1;
28044 if ac_fn_c_try_compile "$LINENO"; then :
28046 ac_cv_have_uintxx_t="yes"
28050 ac_cv_have_uintxx_t="no"
28054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_uintxx_t" >&5
28059 $as_echo "$ac_cv_have_uintxx_t" >&6; }
28060 if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
28061 $as_echo "#define HAVE_UINTXX_T 1" >>confdefs.h
28066 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
28067 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
28069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
28070 $as_echo_n "checking for int64_t and u_int64_t types in sys/bitypes.h... " >&6; }
28071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28072 /* end confdefs.h. */
28074 #include <sys/bitypes.h>
28080 int64_t a; u_int64_t b;
28087 if ac_fn_c_try_compile "$LINENO"; then :
28089 $as_echo "#define HAVE_U_INT64_T 1" >>confdefs.h
28091 $as_echo "#define HAVE_INT64_T 1" >>confdefs.h
28093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28094 $as_echo "yes" >&6; }
28098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28099 $as_echo "no" >&6; }
28103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28106 if (test -z "$have_uintxx_t" && \
28107 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
28109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uintXX_t types in sys/bitypes.h" >&5
28110 $as_echo_n "checking for uintXX_t types in sys/bitypes.h... " >&6; }
28111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28112 /* end confdefs.h. */
28114 #include <sys/bitypes.h>
28120 uint8_t a; uint16_t b;
28121 uint32_t c; a = b = c = 1;
28127 if ac_fn_c_try_compile "$LINENO"; then :
28129 $as_echo "#define HAVE_UINTXX_T 1" >>confdefs.h
28131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28132 $as_echo "yes" >&6; }
28136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28137 $as_echo "no" >&6; }
28141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28160 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28161 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28162 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
28163 cat >>confdefs.h <<_ACEOF
28164 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28168 echo 'configure: cannot find needed function.'; exit 1
28174 ac_fn_c_check_decl "$LINENO" "F_CLOSEM" "ac_cv_have_decl_F_CLOSEM" "#include <fcntl.h>
28177 if test "x$ac_cv_have_decl_F_CLOSEM" = xyes; then :
28179 $as_echo "#define HAVE_FCNTL_F_CLOSEM 1" >>confdefs.h
28184 ac_fn_c_check_func "$LINENO" "closefrom" "ac_cv_func_closefrom"
28185 if test "x$ac_cv_func_closefrom" = xyes; then :
28187 $as_echo "#define HAVE_CLOSEFROM 1" >>confdefs.h
28191 for ac_func in getpagesize
28193 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
28194 if test "x$ac_cv_func_getpagesize" = xyes; then :
28195 cat >>confdefs.h <<_ACEOF
28196 #define HAVE_GETPAGESIZE 1
28199 $as_echo "#define HAVE_GETPAGESIZE 1" >>confdefs.h
28204 for ac_func in malloc_trim
28206 ac_fn_c_check_func "$LINENO" "malloc_trim" "ac_cv_func_malloc_trim"
28207 if test "x$ac_cv_func_malloc_trim" = xyes; then :
28208 cat >>confdefs.h <<_ACEOF
28209 #define HAVE_MALLOC_TRIM 1
28212 $as_echo "#define HAVE_MALLOC_TRIM 1" >>confdefs.h
28218 for ac_func in fchdir
28220 ac_fn_c_check_func "$LINENO" "fchdir" "ac_cv_func_fchdir"
28221 if test "x$ac_cv_func_fchdir" = xyes; then :
28222 cat >>confdefs.h <<_ACEOF
28223 #define HAVE_FCHDIR 1
28225 $as_echo "#define HAVE_FCHDIR 1" >>confdefs.h
28230 for ac_func in strtoll
28232 ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll"
28233 if test "x$ac_cv_func_strtoll" = xyes; then :
28234 cat >>confdefs.h <<_ACEOF
28235 #define HAVE_STRTOLL 1
28237 $as_echo "#define HAVE_STRTOLL 1" >>confdefs.h
28242 for ac_func in posix_fadvise
28244 ac_fn_c_check_func "$LINENO" "posix_fadvise" "ac_cv_func_posix_fadvise"
28245 if test "x$ac_cv_func_posix_fadvise" = xyes; then :
28246 cat >>confdefs.h <<_ACEOF
28247 #define HAVE_POSIX_FADVISE 1
28253 for ac_func in fdatasync
28255 ac_fn_c_check_func "$LINENO" "fdatasync" "ac_cv_func_fdatasync"
28256 if test "x$ac_cv_func_fdatasync" = xyes; then :
28257 cat >>confdefs.h <<_ACEOF
28258 #define HAVE_FDATASYNC 1
28265 for ac_func in chflags
28267 ac_fn_c_check_func "$LINENO" "chflags" "ac_cv_func_chflags"
28268 if test "x$ac_cv_func_chflags" = xyes; then :
28269 cat >>confdefs.h <<_ACEOF
28270 #define HAVE_CHFLAGS 1
28277 for ac_func in snprintf vsnprintf gethostid fseeko
28279 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28280 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28281 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
28282 cat >>confdefs.h <<_ACEOF
28283 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
28291 $as_echo_n "checking for va_copy... " >&6; }
28292 if ${ba_cv_va_copy+:} false; then :
28293 $as_echo_n "(cached) " >&6
28296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28297 /* end confdefs.h. */
28299 #include <stdarg.h>
28300 void use_va_copy(va_list args){va_list args2; va_copy(args2,args); va_end(args2);}
28301 void call_use_va_copy(int junk,...){va_list args; va_start(args,junk); use_va_copy(args); va_end(args);}
28307 call_use_va_copy(1,2,3)
28313 if ac_fn_c_try_link "$LINENO"; then :
28323 rm -f core conftest.err conftest.$ac_objext \
28324 conftest$ac_exeext conftest.$ac_ext
28328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_va_copy" >&5
28329 $as_echo "$ba_cv_va_copy" >&6; }
28330 test $ba_cv_va_copy = yes &&
28331 $as_echo "#define HAVE_VA_COPY 1" >>confdefs.h
28334 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
28336 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28337 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28338 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
28339 cat >>confdefs.h <<_ACEOF
28340 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28347 # If resolver functions are not in libc check for -lnsl or -lresolv.
28348 ac_fn_c_check_func "$LINENO" "gethostbyname_r" "ac_cv_func_gethostbyname_r"
28349 if test "x$ac_cv_func_gethostbyname_r" = xyes; then :
28350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using libc's resolver" >&5
28351 $as_echo "using libc's resolver" >&6; }
28353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname_r in -lnsl" >&5
28354 $as_echo_n "checking for gethostbyname_r in -lnsl... " >&6; }
28355 if ${ac_cv_lib_nsl_gethostbyname_r+:} false; then :
28356 $as_echo_n "(cached) " >&6
28358 ac_check_lib_save_LIBS=$LIBS
28360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28361 /* end confdefs.h. */
28363 /* Override any GCC internal prototype to avoid an error.
28364 Use char because int might match the return type of a GCC
28365 builtin and then its argument prototype would still apply. */
28369 char gethostbyname_r ();
28373 return gethostbyname_r ();
28378 if ac_fn_c_try_link "$LINENO"; then :
28379 ac_cv_lib_nsl_gethostbyname_r=yes
28381 ac_cv_lib_nsl_gethostbyname_r=no
28383 rm -f core conftest.err conftest.$ac_objext \
28384 conftest$ac_exeext conftest.$ac_ext
28385 LIBS=$ac_check_lib_save_LIBS
28387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
28388 $as_echo "$ac_cv_lib_nsl_gethostbyname_r" >&6; }
28389 if test "x$ac_cv_lib_nsl_gethostbyname_r" = xyes; then :
28390 cat >>confdefs.h <<_ACEOF
28391 #define HAVE_LIBNSL 1
28398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname_r in -lresolv" >&5
28399 $as_echo_n "checking for gethostbyname_r in -lresolv... " >&6; }
28400 if ${ac_cv_lib_resolv_gethostbyname_r+:} false; then :
28401 $as_echo_n "(cached) " >&6
28403 ac_check_lib_save_LIBS=$LIBS
28404 LIBS="-lresolv $LIBS"
28405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28406 /* end confdefs.h. */
28408 /* Override any GCC internal prototype to avoid an error.
28409 Use char because int might match the return type of a GCC
28410 builtin and then its argument prototype would still apply. */
28414 char gethostbyname_r ();
28418 return gethostbyname_r ();
28423 if ac_fn_c_try_link "$LINENO"; then :
28424 ac_cv_lib_resolv_gethostbyname_r=yes
28426 ac_cv_lib_resolv_gethostbyname_r=no
28428 rm -f core conftest.err conftest.$ac_objext \
28429 conftest$ac_exeext conftest.$ac_ext
28430 LIBS=$ac_check_lib_save_LIBS
28432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
28433 $as_echo "$ac_cv_lib_resolv_gethostbyname_r" >&6; }
28434 if test "x$ac_cv_lib_resolv_gethostbyname_r" = xyes; then :
28435 cat >>confdefs.h <<_ACEOF
28436 #define HAVE_LIBRESOLV 1
28439 LIBS="-lresolv $LIBS"
28446 for ac_func in inet_pton
28448 ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton"
28449 if test "x$ac_cv_func_inet_pton" = xyes; then :
28450 cat >>confdefs.h <<_ACEOF
28451 #define HAVE_INET_PTON 1
28453 $as_echo "#define HAVE_INET_PTON 1" >>confdefs.h
28458 for ac_func in inet_ntop
28460 ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
28461 if test "x$ac_cv_func_inet_ntop" = xyes; then :
28462 cat >>confdefs.h <<_ACEOF
28463 #define HAVE_INET_NTOP 1
28465 $as_echo "#define HAVE_INET_NTOP 1" >>confdefs.h
28470 for ac_func in gethostbyname2
28472 ac_fn_c_check_func "$LINENO" "gethostbyname2" "ac_cv_func_gethostbyname2"
28473 if test "x$ac_cv_func_gethostbyname2" = xyes; then :
28474 cat >>confdefs.h <<_ACEOF
28475 #define HAVE_GETHOSTBYNAME2 1
28477 $as_echo "#define HAVE_GETHOSTBYNAME2 1" >>confdefs.h
28482 for ac_func in getnameinfo
28484 ac_fn_c_check_func "$LINENO" "getnameinfo" "ac_cv_func_getnameinfo"
28485 if test "x$ac_cv_func_getnameinfo" = xyes; then :
28486 cat >>confdefs.h <<_ACEOF
28487 #define HAVE_GETNAMEINFO 1
28489 $as_echo "#define HAVE_GETNAMEINFO 1" >>confdefs.h
28496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr has a sa_len field" >&5
28497 $as_echo_n "checking for struct sockaddr has a sa_len field... " >&6; }
28498 if ${ac_cv_struct_sockaddr_sa_len+:} false; then :
28499 $as_echo_n "(cached) " >&6
28502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28503 /* end confdefs.h. */
28505 #include <sys/socket.h>
28511 struct sockaddr s; s.sa_len;
28517 if ac_fn_c_try_compile "$LINENO"; then :
28519 ac_cv_struct_sockaddr_sa_len=yes
28522 ac_cv_struct_sockaddr_sa_len=no
28526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_sockaddr_sa_len" >&5
28531 $as_echo "$ac_cv_struct_sockaddr_sa_len" >&6; }
28533 if test $ac_cv_struct_sockaddr_sa_len = yes; then
28535 $as_echo "#define HAVE_SA_LEN 1" >>confdefs.h
28539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getaddrinfo" >&5
28540 $as_echo_n "checking for working getaddrinfo... " >&6; }
28541 if ${ac_cv_working_getaddrinfo+:} false; then :
28542 $as_echo_n "(cached) " >&6
28545 if test "$cross_compiling" = yes; then :
28547 ac_cv_working_getaddrinfo="yes"
28551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28552 /* end confdefs.h. */
28555 #include <string.h>
28556 #include <sys/types.h>
28557 #include <sys/socket.h>
28560 struct addrinfo hints, *ai;
28563 memset(&hints, 0, sizeof(hints));
28564 hints.ai_family = AF_UNSPEC;
28565 hints.ai_socktype = SOCK_STREAM;
28566 error = getaddrinfo("127.0.0.1", NULL, &hints, &ai);
28570 if (ai->ai_addr->sa_family != AF_INET) {
28577 if ac_fn_c_try_run "$LINENO"; then :
28579 ac_cv_working_getaddrinfo="yes"
28583 ac_cv_working_getaddrinfo="no"
28586 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28587 conftest.$ac_objext conftest.beam conftest.$ac_ext
28593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_getaddrinfo" >&5
28594 $as_echo "$ac_cv_working_getaddrinfo" >&6; }
28595 ac_fn_c_check_func "$LINENO" "gai_strerror" "ac_cv_func_gai_strerror"
28596 if test "x$ac_cv_func_gai_strerror" = xyes; then :
28598 $as_echo "#define HAVE_GAI_STRERROR 1" >>confdefs.h
28603 if test "$ac_cv_working_getaddrinfo" = "yes"; then
28604 if test "$ac_cv_func_gai_strerror" != "yes"; then
28605 ac_cv_working_getaddrinfo="no"
28608 $as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h
28613 for ac_func in strftime
28615 ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
28616 if test "x$ac_cv_func_strftime" = xyes; then :
28617 cat >>confdefs.h <<_ACEOF
28618 #define HAVE_STRFTIME 1
28622 # strftime is in -lintl on SCO UNIX.
28623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
28624 $as_echo_n "checking for strftime in -lintl... " >&6; }
28625 if ${ac_cv_lib_intl_strftime+:} false; then :
28626 $as_echo_n "(cached) " >&6
28628 ac_check_lib_save_LIBS=$LIBS
28629 LIBS="-lintl $LIBS"
28630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28631 /* end confdefs.h. */
28633 /* Override any GCC internal prototype to avoid an error.
28634 Use char because int might match the return type of a GCC
28635 builtin and then its argument prototype would still apply. */
28643 return strftime ();
28648 if ac_fn_c_try_link "$LINENO"; then :
28649 ac_cv_lib_intl_strftime=yes
28651 ac_cv_lib_intl_strftime=no
28653 rm -f core conftest.err conftest.$ac_objext \
28654 conftest$ac_exeext conftest.$ac_ext
28655 LIBS=$ac_check_lib_save_LIBS
28657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
28658 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
28659 if test "x$ac_cv_lib_intl_strftime" = xyes; then :
28660 $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
28662 LIBS="-lintl $LIBS"
28668 for ac_func in vprintf
28670 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
28671 if test "x$ac_cv_func_vprintf" = xyes; then :
28672 cat >>confdefs.h <<_ACEOF
28673 #define HAVE_VPRINTF 1
28676 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
28677 if test "x$ac_cv_func__doprnt" = xyes; then :
28679 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
28687 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
28688 # for constant arguments. Useless!
28689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
28690 $as_echo_n "checking for working alloca.h... " >&6; }
28691 if ${ac_cv_working_alloca_h+:} false; then :
28692 $as_echo_n "(cached) " >&6
28694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28695 /* end confdefs.h. */
28696 #include <alloca.h>
28700 char *p = (char *) alloca (2 * sizeof (int));
28706 if ac_fn_c_try_link "$LINENO"; then :
28707 ac_cv_working_alloca_h=yes
28709 ac_cv_working_alloca_h=no
28711 rm -f core conftest.err conftest.$ac_objext \
28712 conftest$ac_exeext conftest.$ac_ext
28714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
28715 $as_echo "$ac_cv_working_alloca_h" >&6; }
28716 if test $ac_cv_working_alloca_h = yes; then
28718 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
28722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
28723 $as_echo_n "checking for alloca... " >&6; }
28724 if ${ac_cv_func_alloca_works+:} false; then :
28725 $as_echo_n "(cached) " >&6
28727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28728 /* end confdefs.h. */
28730 # define alloca __builtin_alloca
28733 # include <malloc.h>
28734 # define alloca _alloca
28736 # ifdef HAVE_ALLOCA_H
28737 # include <alloca.h>
28742 # ifndef alloca /* predefined by HP cc +Olibcalls */
28743 void *alloca (size_t);
28753 char *p = (char *) alloca (1);
28759 if ac_fn_c_try_link "$LINENO"; then :
28760 ac_cv_func_alloca_works=yes
28762 ac_cv_func_alloca_works=no
28764 rm -f core conftest.err conftest.$ac_objext \
28765 conftest$ac_exeext conftest.$ac_ext
28767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
28768 $as_echo "$ac_cv_func_alloca_works" >&6; }
28770 if test $ac_cv_func_alloca_works = yes; then
28772 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
28775 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
28776 # that cause trouble. Some versions do not even contain alloca or
28777 # contain a buggy version. If you still want to use their alloca,
28778 # use ar to extract alloca.o from them instead of compiling alloca.c.
28780 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
28782 $as_echo "#define C_ALLOCA 1" >>confdefs.h
28785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
28786 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
28787 if ${ac_cv_os_cray+:} false; then :
28788 $as_echo_n "(cached) " >&6
28790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28791 /* end confdefs.h. */
28792 #if defined CRAY && ! defined CRAY2
28799 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28800 $EGREP "webecray" >/dev/null 2>&1; then :
28808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
28809 $as_echo "$ac_cv_os_cray" >&6; }
28810 if test $ac_cv_os_cray = yes; then
28811 for ac_func in _getb67 GETB67 getb67; do
28812 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28813 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28814 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
28816 cat >>confdefs.h <<_ACEOF
28817 #define CRAY_STACKSEG_END $ac_func
28826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
28827 $as_echo_n "checking stack direction for C alloca... " >&6; }
28828 if ${ac_cv_c_stack_direction+:} false; then :
28829 $as_echo_n "(cached) " >&6
28831 if test "$cross_compiling" = yes; then :
28832 ac_cv_c_stack_direction=0
28834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28835 /* end confdefs.h. */
28836 $ac_includes_default
28838 find_stack_direction (int *addr, int depth)
28840 int dir, dummy = 0;
28843 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
28844 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
28845 return dir + dummy;
28849 main (int argc, char **argv)
28851 return find_stack_direction (0, argc + !argv + 20) < 0;
28854 if ac_fn_c_try_run "$LINENO"; then :
28855 ac_cv_c_stack_direction=1
28857 ac_cv_c_stack_direction=-1
28859 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28860 conftest.$ac_objext conftest.beam conftest.$ac_ext
28864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
28865 $as_echo "$ac_cv_c_stack_direction" >&6; }
28866 cat >>confdefs.h <<_ACEOF
28867 #define STACK_DIRECTION $ac_cv_c_stack_direction
28873 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
28874 # -lseq on Dynix/PTX, -lgen on Unixware.
28875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getmntent" >&5
28876 $as_echo_n "checking for library containing getmntent... " >&6; }
28877 if ${ac_cv_search_getmntent+:} false; then :
28878 $as_echo_n "(cached) " >&6
28880 ac_func_search_save_LIBS=$LIBS
28881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28882 /* end confdefs.h. */
28884 /* Override any GCC internal prototype to avoid an error.
28885 Use char because int might match the return type of a GCC
28886 builtin and then its argument prototype would still apply. */
28894 return getmntent ();
28899 for ac_lib in '' sun seq gen; do
28900 if test -z "$ac_lib"; then
28901 ac_res="none required"
28904 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28906 if ac_fn_c_try_link "$LINENO"; then :
28907 ac_cv_search_getmntent=$ac_res
28909 rm -f core conftest.err conftest.$ac_objext \
28911 if ${ac_cv_search_getmntent+:} false; then :
28915 if ${ac_cv_search_getmntent+:} false; then :
28918 ac_cv_search_getmntent=no
28920 rm conftest.$ac_ext
28921 LIBS=$ac_func_search_save_LIBS
28923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getmntent" >&5
28924 $as_echo "$ac_cv_search_getmntent" >&6; }
28925 ac_res=$ac_cv_search_getmntent
28926 if test "$ac_res" != no; then :
28927 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28928 ac_cv_func_getmntent=yes
28930 $as_echo "#define HAVE_GETMNTENT 1" >>confdefs.h
28933 ac_cv_func_getmntent=no
28937 for ac_func in getmntinfo
28939 ac_fn_c_check_func "$LINENO" "getmntinfo" "ac_cv_func_getmntinfo"
28940 if test "x$ac_cv_func_getmntinfo" = xyes; then :
28941 cat >>confdefs.h <<_ACEOF
28942 #define HAVE_GETMNTINFO 1
28944 $as_echo "#define HAVE_GETMNTINFO 1" >>confdefs.h
28949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
28950 $as_echo_n "checking whether closedir returns void... " >&6; }
28951 if ${ac_cv_func_closedir_void+:} false; then :
28952 $as_echo_n "(cached) " >&6
28954 if test "$cross_compiling" = yes; then :
28955 ac_cv_func_closedir_void=yes
28957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28958 /* end confdefs.h. */
28959 $ac_includes_default
28960 #include <$ac_header_dirent>
28961 #ifndef __cplusplus
28968 return closedir (opendir (".")) != 0;
28973 if ac_fn_c_try_run "$LINENO"; then :
28974 ac_cv_func_closedir_void=no
28976 ac_cv_func_closedir_void=yes
28978 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28979 conftest.$ac_objext conftest.beam conftest.$ac_ext
28983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
28984 $as_echo "$ac_cv_func_closedir_void" >&6; }
28985 if test $ac_cv_func_closedir_void = yes; then
28987 $as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
28991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
28992 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
28993 if ${ac_cv_func_setpgrp_void+:} false; then :
28994 $as_echo_n "(cached) " >&6
28996 if test "$cross_compiling" = yes; then :
28997 as_fn_error $? "cannot check setpgrp when cross compiling" "$LINENO" 5
28999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29000 /* end confdefs.h. */
29001 $ac_includes_default
29005 /* If this system has a BSD-style setpgrp which takes arguments,
29006 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
29007 exit successfully. */
29008 return setpgrp (1,1) != -1;
29013 if ac_fn_c_try_run "$LINENO"; then :
29014 ac_cv_func_setpgrp_void=no
29016 ac_cv_func_setpgrp_void=yes
29018 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
29019 conftest.$ac_objext conftest.beam conftest.$ac_ext
29023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
29024 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
29025 if test $ac_cv_func_setpgrp_void = yes; then
29027 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
29030 # AC_FUNC_FNMATCH dnl use local version
29032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettext in -lintl" >&5
29033 $as_echo_n "checking for gettext in -lintl... " >&6; }
29034 if ${ac_cv_lib_intl_gettext+:} false; then :
29035 $as_echo_n "(cached) " >&6
29037 ac_check_lib_save_LIBS=$LIBS
29038 LIBS="-lintl $LIBS"
29039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29040 /* end confdefs.h. */
29042 /* Override any GCC internal prototype to avoid an error.
29043 Use char because int might match the return type of a GCC
29044 builtin and then its argument prototype would still apply. */
29057 if ac_fn_c_try_link "$LINENO"; then :
29058 ac_cv_lib_intl_gettext=yes
29060 ac_cv_lib_intl_gettext=no
29062 rm -f core conftest.err conftest.$ac_objext \
29063 conftest$ac_exeext conftest.$ac_ext
29064 LIBS=$ac_check_lib_save_LIBS
29066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_gettext" >&5
29067 $as_echo "$ac_cv_lib_intl_gettext" >&6; }
29068 if test "x$ac_cv_lib_intl_gettext" = xyes; then :
29069 LIBS="$LIBS -lintl"
29073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpwnam in -lsun" >&5
29074 $as_echo_n "checking for getpwnam in -lsun... " >&6; }
29075 if ${ac_cv_lib_sun_getpwnam+:} false; then :
29076 $as_echo_n "(cached) " >&6
29078 ac_check_lib_save_LIBS=$LIBS
29080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29081 /* end confdefs.h. */
29083 /* Override any GCC internal prototype to avoid an error.
29084 Use char because int might match the return type of a GCC
29085 builtin and then its argument prototype would still apply. */
29093 return getpwnam ();
29098 if ac_fn_c_try_link "$LINENO"; then :
29099 ac_cv_lib_sun_getpwnam=yes
29101 ac_cv_lib_sun_getpwnam=no
29103 rm -f core conftest.err conftest.$ac_objext \
29104 conftest$ac_exeext conftest.$ac_ext
29105 LIBS=$ac_check_lib_save_LIBS
29107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sun_getpwnam" >&5
29108 $as_echo "$ac_cv_lib_sun_getpwnam" >&6; }
29109 if test "x$ac_cv_lib_sun_getpwnam" = xyes; then :
29110 cat >>confdefs.h <<_ACEOF
29111 #define HAVE_LIBSUN 1
29119 for ac_header in zlib.h
29121 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
29122 if test "x$ac_cv_header_zlib_h" = xyes; then :
29123 cat >>confdefs.h <<_ACEOF
29124 #define HAVE_ZLIB_H 1
29131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
29132 $as_echo_n "checking for deflate in -lz... " >&6; }
29133 if ${ac_cv_lib_z_deflate+:} false; then :
29134 $as_echo_n "(cached) " >&6
29136 ac_check_lib_save_LIBS=$LIBS
29138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29139 /* end confdefs.h. */
29141 /* Override any GCC internal prototype to avoid an error.
29142 Use char because int might match the return type of a GCC
29143 builtin and then its argument prototype would still apply. */
29156 if ac_fn_c_try_link "$LINENO"; then :
29157 ac_cv_lib_z_deflate=yes
29159 ac_cv_lib_z_deflate=no
29161 rm -f core conftest.err conftest.$ac_objext \
29162 conftest$ac_exeext conftest.$ac_ext
29163 LIBS=$ac_check_lib_save_LIBS
29165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
29166 $as_echo "$ac_cv_lib_z_deflate" >&6; }
29167 if test "x$ac_cv_lib_z_deflate" = xyes; then :
29172 if test x$ZLIBS = x-lz; then
29173 $as_echo "#define HAVE_LIBZ 1" >>confdefs.h
29182 # Check whether --enable-afs was given.
29183 if test "${enable_afs+set}" = set; then :
29184 enableval=$enable_afs;
29185 if test x$enableval = xyes; then
29187 elif test x$enableval = xno; then
29196 if test x$support_afs = xyes -o x$support_afs = xauto; then
29198 # Check whether --with-afsdir was given.
29199 if test "${with_afsdir+set}" = set; then :
29200 withval=$with_afsdir; with_afsdir=$withval
29205 if test x$with_afsdir = x; then
29206 for root in /usr /usr/local; do
29207 if test -d ${root}/include/afs/ ; then
29208 with_afsdir=${root}
29211 if test -d ${root}/include/openafs/afs/ ; then
29212 with_afsdir=${root}
29218 if test -d ${with_afsdir}/include/afs/ ; then
29219 AFS_CFLAGS="-I${with_afsdir}/include"
29221 if test -d ${with_afsdir}/include/openafs/afs/ ; then
29222 AFS_CFLAGS="-I${with_afsdir}/include/openafs"
29226 saved_CFLAGS="${CFLAGS}"
29227 saved_CPPFLAGS="${CPPFLAGS}"
29228 CFLAGS="${AFS_CFLAGS} ${saved_CFLAGS}"
29229 CPPFLAGS="${AFS_CFLAGS} ${saved_CPPFLAGS}"
29231 for ac_header in afs/afsint.h
29233 ac_fn_c_check_header_mongrel "$LINENO" "afs/afsint.h" "ac_cv_header_afs_afsint_h" "$ac_includes_default"
29234 if test "x$ac_cv_header_afs_afsint_h" = xyes; then :
29235 cat >>confdefs.h <<_ACEOF
29236 #define HAVE_AFS_AFSINT_H 1
29243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29244 /* end confdefs.h. */
29246 #include <afs/afsint.h>
29247 #include <afs/venus.h>
29250 if ac_fn_c_try_cpp "$LINENO"; then :
29252 $as_echo "#define HAVE_AFS_VENUS_H 1" >>confdefs.h
29256 rm -f conftest.err conftest.i conftest.$ac_ext
29258 CFLAGS="${saved_CFLAGS}"
29259 CPPFLAGS="${saved_CPPFLAGS}"
29261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pioctl in AFS libsys" >&5
29262 $as_echo_n "checking for pioctl in AFS libsys... " >&6; }
29263 for dir in ${with_afsdir}/lib \
29264 ${with_afsdir}/lib/afs \
29265 ${with_afsdir}/lib/openafs \
29266 ${with_afsdir}/lib64 \
29267 ${with_afsdir}/lib64/afs \
29268 ${with_afsdir}/lib64/openafs
29270 for arch_type in .a .so
29272 A=`test -f ${dir}/libsys${arch_type} && nm ${dir}/libsys${arch_type} 2>/dev/null | grep pioctl`
29274 if test $pkg = 0; then
29276 AFS_LIBS="-L${dir} -lsys -lrx -llwp ${dir}/util${arch_type}"
29282 if test $have_afs = yes; then
29283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29284 $as_echo "yes" >&6; }
29286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29287 $as_echo "no" >&6; }
29290 if test x$support_afs = xyes -a $have_afs != yes; then
29291 as_fn_error $? "afs support explicitly enabled but no supported afs implementation found,
29292 please either load the afs libraries or rerun configure without --enable-afs" "$LINENO" 5
29294 if test $have_afs = yes; then
29296 $as_echo "#define HAVE_AFS 1" >>confdefs.h
29299 $as_echo "#define HAVE_AFS_ACL 1" >>confdefs.h
29308 # Check whether --enable-lzo was given.
29309 if test "${enable_lzo+set}" = set; then :
29310 enableval=$enable_lzo;
29311 if test x$enableval = xno; then
29324 if test x$support_lzo = xyes; then
29326 # Check whether --with-lzo was given.
29327 if test "${with_lzo+set}" = set; then :
29329 case "$with_lzo" in
29334 if test -f ${with_lzo}/include/lzo/lzoconf.h; then
29335 LZO_INC="-I${with_lzo}/include"
29336 LZO_LDFLAGS="-L${with_lzo}/lib"
29337 with_lzo="${with_lzo}/include"
29339 with_lzo="/usr/include"
29342 as_ac_Header=`$as_echo "ac_cv_header_${with_lzo}/lzo/lzoconf.h" | $as_tr_sh`
29343 ac_fn_c_check_header_mongrel "$LINENO" "${with_lzo}/lzo/lzoconf.h" "$as_ac_Header" "$ac_includes_default"
29344 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29347 $as_echo "#define HAVE_LZO 1" >>confdefs.h
29349 LZO_LIBS="${LZO_LDFLAGS} -lzo2"
29355 echo "lzoconf.h not found. lzo turned off ..."
29367 ac_fn_c_check_header_mongrel "$LINENO" "lzo/lzoconf.h" "ac_cv_header_lzo_lzoconf_h" "$ac_includes_default"
29368 if test "x$ac_cv_header_lzo_lzoconf_h" = xyes; then :
29370 ac_fn_c_check_header_mongrel "$LINENO" "lzo/lzo1x.h" "ac_cv_header_lzo_lzo1x_h" "$ac_includes_default"
29371 if test "x$ac_cv_header_lzo_lzo1x_h" = xyes; then :
29373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lzo1x_1_compress in -llzo2" >&5
29374 $as_echo_n "checking for lzo1x_1_compress in -llzo2... " >&6; }
29375 if ${ac_cv_lib_lzo2_lzo1x_1_compress+:} false; then :
29376 $as_echo_n "(cached) " >&6
29378 ac_check_lib_save_LIBS=$LIBS
29379 LIBS="-llzo2 $LIBS"
29380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29381 /* end confdefs.h. */
29383 /* Override any GCC internal prototype to avoid an error.
29384 Use char because int might match the return type of a GCC
29385 builtin and then its argument prototype would still apply. */
29389 char lzo1x_1_compress ();
29393 return lzo1x_1_compress ();
29398 if ac_fn_c_try_link "$LINENO"; then :
29399 ac_cv_lib_lzo2_lzo1x_1_compress=yes
29401 ac_cv_lib_lzo2_lzo1x_1_compress=no
29403 rm -f core conftest.err conftest.$ac_objext \
29404 conftest$ac_exeext conftest.$ac_ext
29405 LIBS=$ac_check_lib_save_LIBS
29407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lzo2_lzo1x_1_compress" >&5
29408 $as_echo "$ac_cv_lib_lzo2_lzo1x_1_compress" >&6; }
29409 if test "x$ac_cv_lib_lzo2_lzo1x_1_compress" = xyes; then :
29413 $as_echo "#define HAVE_LZO 1" >>confdefs.h
29437 # Check whether --enable-acl was given.
29438 if test "${enable_acl+set}" = set; then :
29439 enableval=$enable_acl;
29440 if test x$enableval = xyes; then
29442 elif test x$enableval = xno; then
29451 have_extended_acl=no
29452 if test x$support_acl = xyes -o x$support_acl = xauto; then
29453 ac_fn_c_check_header_mongrel "$LINENO" "sys/acl.h" "ac_cv_header_sys_acl_h" "$ac_includes_default"
29454 if test "x$ac_cv_header_sys_acl_h" = xyes; then :
29456 $as_echo "#define HAVE_SYS_ACL_H 1" >>confdefs.h
29462 ac_fn_c_check_func "$LINENO" "acl_get_file" "ac_cv_func_acl_get_file"
29463 if test "x$ac_cv_func_acl_get_file" = xyes; then :
29471 if test $have_acl = no; then
29472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get_file in -lacl" >&5
29473 $as_echo_n "checking for acl_get_file in -lacl... " >&6; }
29474 if ${ac_cv_lib_acl_acl_get_file+:} false; then :
29475 $as_echo_n "(cached) " >&6
29477 ac_check_lib_save_LIBS=$LIBS
29479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29480 /* end confdefs.h. */
29482 /* Override any GCC internal prototype to avoid an error.
29483 Use char because int might match the return type of a GCC
29484 builtin and then its argument prototype would still apply. */
29488 char acl_get_file ();
29492 return acl_get_file ();
29497 if ac_fn_c_try_link "$LINENO"; then :
29498 ac_cv_lib_acl_acl_get_file=yes
29500 ac_cv_lib_acl_acl_get_file=no
29502 rm -f core conftest.err conftest.$ac_objext \
29503 conftest$ac_exeext conftest.$ac_ext
29504 LIBS=$ac_check_lib_save_LIBS
29506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_acl_acl_get_file" >&5
29507 $as_echo "$ac_cv_lib_acl_acl_get_file" >&6; }
29508 if test "x$ac_cv_lib_acl_acl_get_file" = xyes; then :
29511 if test $have_afs = yes; then
29512 if test -d /usr/lib64/; then
29513 FDLIBS="-L/usr/lib64 -lacl $FDLIBS"
29515 FDLIBS="-L/usr/lib -lacl $FDLIBS"
29518 FDLIBS="-lacl $FDLIBS"
29526 if test $have_acl = no -a \
29527 x${HAVE_OSF1_OS_TRUE} = x; then
29528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get_file in -lpacl" >&5
29529 $as_echo_n "checking for acl_get_file in -lpacl... " >&6; }
29530 if ${ac_cv_lib_pacl_acl_get_file+:} false; then :
29531 $as_echo_n "(cached) " >&6
29533 ac_check_lib_save_LIBS=$LIBS
29534 LIBS="-lpacl $LIBS"
29535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29536 /* end confdefs.h. */
29538 /* Override any GCC internal prototype to avoid an error.
29539 Use char because int might match the return type of a GCC
29540 builtin and then its argument prototype would still apply. */
29544 char acl_get_file ();
29548 return acl_get_file ();
29553 if ac_fn_c_try_link "$LINENO"; then :
29554 ac_cv_lib_pacl_acl_get_file=yes
29556 ac_cv_lib_pacl_acl_get_file=no
29558 rm -f core conftest.err conftest.$ac_objext \
29559 conftest$ac_exeext conftest.$ac_ext
29560 LIBS=$ac_check_lib_save_LIBS
29562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pacl_acl_get_file" >&5
29563 $as_echo "$ac_cv_lib_pacl_acl_get_file" >&6; }
29564 if test "x$ac_cv_lib_pacl_acl_get_file" = xyes; then :
29567 FDLIBS="-lpacl $FDLIBS"
29573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ACL_TYPE_DEFAULT_DIR in acl.h include file" >&5
29574 $as_echo_n "checking for ACL_TYPE_DEFAULT_DIR in acl.h include file... " >&6; }
29575 grep ACL_TYPE_DEFAULT_DIR /usr/include/sys/acl.h > /dev/null 2>&1
29576 if test $? = 0; then
29578 $as_echo "#define HAVE_ACL_TYPE_DEFAULT_DIR 1" >>confdefs.h
29580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29581 $as_echo "yes" >&6; }
29583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29584 $as_echo "no" >&6; }
29588 if test $have_acl = yes -a \
29589 x${HAVE_DARWIN_OS_TRUE} = x; then
29590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ACL_TYPE_EXTENDED in acl.h include file" >&5
29591 $as_echo_n "checking for ACL_TYPE_EXTENDED in acl.h include file... " >&6; }
29592 grep ACL_TYPE_EXTENDED /usr/include/sys/acl.h > /dev/null 2>&1
29593 if test $? = 0; then
29595 $as_echo "#define HAVE_ACL_TYPE_EXTENDED 1" >>confdefs.h
29597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29598 $as_echo "yes" >&6; }
29600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29601 $as_echo "no" >&6; }
29605 if test $have_acl = yes -a \
29606 x${HAVE_FREEBSD_OS_TRUE} = x; then
29607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ACL_TYPE_NFS4 in acl.h include file" >&5
29608 $as_echo_n "checking for ACL_TYPE_NFS4 in acl.h include file... " >&6; }
29609 grep ACL_TYPE_NFS4 /usr/include/sys/acl.h > /dev/null 2>&1
29610 if test $? = 0; then
29612 $as_echo "#define HAVE_ACL_TYPE_NFS4 1" >>confdefs.h
29614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29615 $as_echo "yes" >&6; }
29617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29618 $as_echo "no" >&6; }
29622 if test $have_acl = no -a \
29623 x${HAVE_SUN_OS_TRUE} = x; then
29624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acltotext in -lsec" >&5
29625 $as_echo_n "checking for acltotext in -lsec... " >&6; }
29626 if ${ac_cv_lib_sec_acltotext+:} false; then :
29627 $as_echo_n "(cached) " >&6
29629 ac_check_lib_save_LIBS=$LIBS
29631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29632 /* end confdefs.h. */
29634 /* Override any GCC internal prototype to avoid an error.
29635 Use char because int might match the return type of a GCC
29636 builtin and then its argument prototype would still apply. */
29644 return acltotext ();
29649 if ac_fn_c_try_link "$LINENO"; then :
29650 ac_cv_lib_sec_acltotext=yes
29652 ac_cv_lib_sec_acltotext=no
29654 rm -f core conftest.err conftest.$ac_objext \
29655 conftest$ac_exeext conftest.$ac_ext
29656 LIBS=$ac_check_lib_save_LIBS
29658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sec_acltotext" >&5
29659 $as_echo "$ac_cv_lib_sec_acltotext" >&6; }
29660 if test "x$ac_cv_lib_sec_acltotext" = xyes; then :
29663 FDLIBS="-lsec $FDLIBS"
29665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_totext in -lsec" >&5
29666 $as_echo_n "checking for acl_totext in -lsec... " >&6; }
29667 if ${ac_cv_lib_sec_acl_totext+:} false; then :
29668 $as_echo_n "(cached) " >&6
29670 ac_check_lib_save_LIBS=$LIBS
29672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29673 /* end confdefs.h. */
29675 /* Override any GCC internal prototype to avoid an error.
29676 Use char because int might match the return type of a GCC
29677 builtin and then its argument prototype would still apply. */
29681 char acl_totext ();
29685 return acl_totext ();
29690 if ac_fn_c_try_link "$LINENO"; then :
29691 ac_cv_lib_sec_acl_totext=yes
29693 ac_cv_lib_sec_acl_totext=no
29695 rm -f core conftest.err conftest.$ac_objext \
29696 conftest$ac_exeext conftest.$ac_ext
29697 LIBS=$ac_check_lib_save_LIBS
29699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sec_acl_totext" >&5
29700 $as_echo "$ac_cv_lib_sec_acl_totext" >&6; }
29701 if test "x$ac_cv_lib_sec_acl_totext" = xyes; then :
29703 have_extended_acl=yes
29714 if test $have_acl = no -a \
29715 x${HAVE_AIX_OS_TRUE} = x; then
29716 ac_fn_c_check_func "$LINENO" "acl_get" "ac_cv_func_acl_get"
29717 if test "x$ac_cv_func_acl_get" = xyes; then :
29721 ac_fn_c_check_func "$LINENO" "aclx_get" "ac_cv_func_aclx_get"
29722 if test "x$ac_cv_func_aclx_get" = xyes; then :
29724 have_extended_acl=yes
29735 if test x$support_acl = xyes -a $have_acl != yes; then
29736 as_fn_error $? "acl support explicitly enabled but no supported acl implementation found,
29737 please either load the acl libraries or rerun configure without --enable-acl" "$LINENO" 5
29739 if test $have_acl = yes; then
29741 $as_echo "#define HAVE_ACL 1" >>confdefs.h
29745 if test $have_extended_acl = yes; then
29747 $as_echo "#define HAVE_EXTENDED_ACL 1" >>confdefs.h
29754 # Check whether --enable-xattr was given.
29755 if test "${enable_xattr+set}" = set; then :
29756 enableval=$enable_xattr;
29757 if test x$enableval = xyes; then
29759 elif test x$enableval = xno; then
29768 if test x$support_xattr = xyes -o x$support_xattr = xauto; then
29769 if test x${HAVE_FREEBSD_OS_TRUE} = x -o \
29770 x${HAVE_NETBSD_OS_TRUE} = x -o \
29771 x${HAVE_OPENBSD_OS_TRUE} = x; then
29772 ac_fn_c_check_header_mongrel "$LINENO" "sys/extattr.h" "ac_cv_header_sys_extattr_h" "$ac_includes_default"
29773 if test "x$ac_cv_header_sys_extattr_h" = xyes; then :
29775 $as_echo "#define HAVE_SYS_EXTATTR_H 1" >>confdefs.h
29780 ac_fn_c_check_header_mongrel "$LINENO" "libutil.h" "ac_cv_header_libutil_h" "$ac_includes_default"
29781 if test "x$ac_cv_header_libutil_h" = xyes; then :
29783 $as_echo "#define HAVE_LIBUTIL_H 1" >>confdefs.h
29788 for ac_func in extattr_get_link extattr_set_link extattr_list_link
29790 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29791 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29792 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
29793 cat >>confdefs.h <<_ACEOF
29794 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29799 $as_echo "#define HAVE_EXTATTR_GET_LINK 1" >>confdefs.h
29802 $as_echo "#define HAVE_EXTATTR_SET_LINK 1" >>confdefs.h
29805 $as_echo "#define HAVE_EXTATTR_LIST_LINK 1" >>confdefs.h
29813 if test $have_xattr = no; then
29814 for ac_func in extattr_get_file extattr_set_file extattr_list_file
29816 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29817 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29818 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
29819 cat >>confdefs.h <<_ACEOF
29820 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29825 $as_echo "#define HAVE_EXTATTR_GET_FILE 1" >>confdefs.h
29828 $as_echo "#define HAVE_EXTATTR_SET_FILE 1" >>confdefs.h
29831 $as_echo "#define HAVE_EXTATTR_LIST_FILE 1" >>confdefs.h
29840 if test $have_xattr = yes; then
29841 have_extattr_string_in_libc=no
29842 for ac_func in extattr_namespace_to_string extattr_string_to_namespace
29844 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29845 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29846 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
29847 cat >>confdefs.h <<_ACEOF
29848 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29851 have_extattr_string_in_libc=yes
29853 $as_echo "#define HAVE_EXTATTR_NAMESPACE_TO_STRING 1" >>confdefs.h
29856 $as_echo "#define HAVE_EXTATTR_STRING_TO_NAMESPACE 1" >>confdefs.h
29864 if test $have_extattr_string_in_libc = no; then
29865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extattr_namespace_to_string extattr_string_to_namespace in -lutil" >&5
29866 $as_echo_n "checking for extattr_namespace_to_string extattr_string_to_namespace in -lutil... " >&6; }
29867 if ${ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace+:} false; then :
29868 $as_echo_n "(cached) " >&6
29870 ac_check_lib_save_LIBS=$LIBS
29871 LIBS="-lutil $LIBS"
29872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29873 /* end confdefs.h. */
29875 /* Override any GCC internal prototype to avoid an error.
29876 Use char because int might match the return type of a GCC
29877 builtin and then its argument prototype would still apply. */
29881 char extattr_namespace_to_string extattr_string_to_namespace ();
29885 return extattr_namespace_to_string extattr_string_to_namespace ();
29890 if ac_fn_c_try_link "$LINENO"; then :
29891 ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace=yes
29893 ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace=no
29895 rm -f core conftest.err conftest.$ac_objext \
29896 conftest$ac_exeext conftest.$ac_ext
29897 LIBS=$ac_check_lib_save_LIBS
29899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" >&5
29900 $as_echo "$ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" >&6; }
29901 if test "x$ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" = xyes; then :
29904 $as_echo "#define HAVE_EXTATTR_NAMESPACE_TO_STRING 1" >>confdefs.h
29907 $as_echo "#define HAVE_EXTATTR_STRING_TO_NAMESPACE 1" >>confdefs.h
29909 FDLIBS="-lutil $FDLIBS"
29918 if test $have_xattr = no -a \
29919 x${HAVE_AIX_OS_TRUE} = x; then
29920 ac_fn_c_check_header_mongrel "$LINENO" "sys/ea.h" "ac_cv_header_sys_ea_h" "$ac_includes_default"
29921 if test "x$ac_cv_header_sys_ea_h" = xyes; then :
29923 $as_echo "#define HAVE_SYS_EA_H 1" >>confdefs.h
29928 for ac_func in llistea lgetea lsetea
29930 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29931 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29932 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
29933 cat >>confdefs.h <<_ACEOF
29934 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29939 $as_echo "#define HAVE_LLISTEA 1" >>confdefs.h
29942 $as_echo "#define HAVE_LGETEA 1" >>confdefs.h
29945 $as_echo "#define HAVE_LSETEA 1" >>confdefs.h
29953 if test $have_xattr = no; then
29954 for ac_func in listea getea setea
29956 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29957 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29958 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
29959 cat >>confdefs.h <<_ACEOF
29960 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29965 $as_echo "#define HAVE_LISTEA 1" >>confdefs.h
29968 $as_echo "#define HAVE_GETEA 1" >>confdefs.h
29971 $as_echo "#define HAVE_SETEA 1" >>confdefs.h
29981 if test $have_xattr = no -a \
29982 x${HAVE_OSF1_OS_TRUE} = x; then
29983 ac_fn_c_check_header_mongrel "$LINENO" "sys/proplist.h" "ac_cv_header_sys_proplist_h" "$ac_includes_default"
29984 if test "x$ac_cv_header_sys_proplist_h" = xyes; then :
29986 $as_echo "#define HAVE_SYS_PROPLIST_H 1" >>confdefs.h
29991 for ac_func in getproplist get_proplist_entry sizeof_proplist_entry add_proplist_entry setproplist
29993 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29994 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29995 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
29996 cat >>confdefs.h <<_ACEOF
29997 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30002 $as_echo "#define HAVE_GETPROPLIST 1" >>confdefs.h
30005 $as_echo "#define HAVE_GET_PROPLIST_ENTRY 1" >>confdefs.h
30008 $as_echo "#define HAVE_SIZEOF_PROPLIST_ENTRY 1" >>confdefs.h
30011 $as_echo "#define HAVE_ADD_PROPLIST_ENTRY 1" >>confdefs.h
30014 $as_echo "#define HAVE_SETPROPLIST 1" >>confdefs.h
30023 if test $have_xattr = no -a \
30024 x${HAVE_SUN_OS_TRUE} = x; then
30025 ac_fn_c_check_header_mongrel "$LINENO" "sys/attr.h" "ac_cv_header_sys_attr_h" "$ac_includes_default"
30026 if test "x$ac_cv_header_sys_attr_h" = xyes; then :
30028 $as_echo "#define HAVE_SYS_ATTR_H 1" >>confdefs.h
30033 ac_fn_c_check_header_mongrel "$LINENO" "sys/nvpair.h" "ac_cv_header_sys_nvpair_h" "$ac_includes_default"
30034 if test "x$ac_cv_header_sys_nvpair_h" = xyes; then :
30036 $as_echo "#define HAVE_SYS_NVPAIR_H 1" >>confdefs.h
30041 ac_fn_c_check_header_mongrel "$LINENO" "attr.h" "ac_cv_header_attr_h" "$ac_includes_default"
30042 if test "x$ac_cv_header_attr_h" = xyes; then :
30044 $as_echo "#define HAVE_ATTR_H 1" >>confdefs.h
30050 for ac_func in openat fstatat unlinkat fchownat futimesat
30052 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30053 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30054 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30055 cat >>confdefs.h <<_ACEOF
30056 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30061 $as_echo "#define HAVE_OPENAT 1" >>confdefs.h
30064 $as_echo "#define HAVE_FSTATAT 1" >>confdefs.h
30067 $as_echo "#define HAVE_UNLINKAT 1" >>confdefs.h
30070 $as_echo "#define HAVE_FCHOWNAT 1" >>confdefs.h
30073 $as_echo "#define HAVE_FUTIMESAT 1" >>confdefs.h
30081 if test $have_xattr = yes; then
30082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nvlist_next_nvpair in -lnvpair" >&5
30083 $as_echo_n "checking for nvlist_next_nvpair in -lnvpair... " >&6; }
30084 if ${ac_cv_lib_nvpair_nvlist_next_nvpair+:} false; then :
30085 $as_echo_n "(cached) " >&6
30087 ac_check_lib_save_LIBS=$LIBS
30088 LIBS="-lnvpair $LIBS"
30089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30090 /* end confdefs.h. */
30092 /* Override any GCC internal prototype to avoid an error.
30093 Use char because int might match the return type of a GCC
30094 builtin and then its argument prototype would still apply. */
30098 char nvlist_next_nvpair ();
30102 return nvlist_next_nvpair ();
30107 if ac_fn_c_try_link "$LINENO"; then :
30108 ac_cv_lib_nvpair_nvlist_next_nvpair=yes
30110 ac_cv_lib_nvpair_nvlist_next_nvpair=no
30112 rm -f core conftest.err conftest.$ac_objext \
30113 conftest$ac_exeext conftest.$ac_ext
30114 LIBS=$ac_check_lib_save_LIBS
30116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nvpair_nvlist_next_nvpair" >&5
30117 $as_echo "$ac_cv_lib_nvpair_nvlist_next_nvpair" >&6; }
30118 if test "x$ac_cv_lib_nvpair_nvlist_next_nvpair" = xyes; then :
30121 $as_echo "#define HAVE_NVLIST_NEXT_NVPAIR 1" >>confdefs.h
30123 FDLIBS="-lnvpair $FDLIBS"
30131 if test $have_xattr = no; then
30132 ac_fn_c_check_header_mongrel "$LINENO" "sys/xattr.h" "ac_cv_header_sys_xattr_h" "$ac_includes_default"
30133 if test "x$ac_cv_header_sys_xattr_h" = xyes; then :
30135 $as_echo "#define HAVE_SYS_XATTR_H 1" >>confdefs.h
30140 for ac_func in llistxattr lgetxattr lsetxattr
30142 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30143 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30144 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30145 cat >>confdefs.h <<_ACEOF
30146 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30151 $as_echo "#define HAVE_LLISTXATTR 1" >>confdefs.h
30154 $as_echo "#define HAVE_LGETXATTR 1" >>confdefs.h
30157 $as_echo "#define HAVE_LSETXATTR 1" >>confdefs.h
30165 if test $have_xattr = no; then
30166 for ac_func in listxattr getxattr setxattr
30168 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30169 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30170 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30171 cat >>confdefs.h <<_ACEOF
30172 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30177 $as_echo "#define HAVE_LISTXATTR 1" >>confdefs.h
30180 $as_echo "#define HAVE_GETXATTR 1" >>confdefs.h
30183 $as_echo "#define HAVE_SETXATTR 1" >>confdefs.h
30193 if test x$support_xattr = xyes -a $have_xattr != yes; then
30194 as_fn_error $? "xattr support explicitly enabled but no supported xattr implementation found,
30195 please either load the xattr libraries or rerun configure without --enable-xattr" "$LINENO" 5
30197 if test $have_xattr = yes; then
30199 $as_echo "#define HAVE_XATTR 1" >>confdefs.h
30206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
30207 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
30208 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
30209 $as_echo_n "(cached) " >&6
30211 ac_check_lib_save_LIBS=$LIBS
30212 LIBS="-lpthread $LIBS"
30213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30214 /* end confdefs.h. */
30216 /* Override any GCC internal prototype to avoid an error.
30217 Use char because int might match the return type of a GCC
30218 builtin and then its argument prototype would still apply. */
30222 char pthread_create ();
30226 return pthread_create ();
30231 if ac_fn_c_try_link "$LINENO"; then :
30232 ac_cv_lib_pthread_pthread_create=yes
30234 ac_cv_lib_pthread_pthread_create=no
30236 rm -f core conftest.err conftest.$ac_objext \
30237 conftest$ac_exeext conftest.$ac_ext
30238 LIBS=$ac_check_lib_save_LIBS
30240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
30241 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
30242 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
30243 PTHREAD_LIB="-lpthread"
30246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthreads" >&5
30247 $as_echo_n "checking for pthread_create in -lpthreads... " >&6; }
30248 if ${ac_cv_lib_pthreads_pthread_create+:} false; then :
30249 $as_echo_n "(cached) " >&6
30251 ac_check_lib_save_LIBS=$LIBS
30252 LIBS="-lpthreads $LIBS"
30253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30254 /* end confdefs.h. */
30256 /* Override any GCC internal prototype to avoid an error.
30257 Use char because int might match the return type of a GCC
30258 builtin and then its argument prototype would still apply. */
30262 char pthread_create ();
30266 return pthread_create ();
30271 if ac_fn_c_try_link "$LINENO"; then :
30272 ac_cv_lib_pthreads_pthread_create=yes
30274 ac_cv_lib_pthreads_pthread_create=no
30276 rm -f core conftest.err conftest.$ac_objext \
30277 conftest$ac_exeext conftest.$ac_ext
30278 LIBS=$ac_check_lib_save_LIBS
30280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_pthread_create" >&5
30281 $as_echo "$ac_cv_lib_pthreads_pthread_create" >&6; }
30282 if test "x$ac_cv_lib_pthreads_pthread_create" = xyes; then :
30283 PTHREAD_LIB="-lpthreads"
30286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lc_r" >&5
30287 $as_echo_n "checking for pthread_create in -lc_r... " >&6; }
30288 if ${ac_cv_lib_c_r_pthread_create+:} false; then :
30289 $as_echo_n "(cached) " >&6
30291 ac_check_lib_save_LIBS=$LIBS
30293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30294 /* end confdefs.h. */
30296 /* Override any GCC internal prototype to avoid an error.
30297 Use char because int might match the return type of a GCC
30298 builtin and then its argument prototype would still apply. */
30302 char pthread_create ();
30306 return pthread_create ();
30311 if ac_fn_c_try_link "$LINENO"; then :
30312 ac_cv_lib_c_r_pthread_create=yes
30314 ac_cv_lib_c_r_pthread_create=no
30316 rm -f core conftest.err conftest.$ac_objext \
30317 conftest$ac_exeext conftest.$ac_ext
30318 LIBS=$ac_check_lib_save_LIBS
30320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_create" >&5
30321 $as_echo "$ac_cv_lib_c_r_pthread_create" >&6; }
30322 if test "x$ac_cv_lib_c_r_pthread_create" = xyes; then :
30323 PTHREAD_LIB="-lc_r"
30326 ac_fn_c_check_func "$LINENO" "pthread_create" "ac_cv_func_pthread_create"
30327 if test "x$ac_cv_func_pthread_create" = xyes; then :
30344 for ac_header in sys/prctl.h sys/capability.h
30346 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30347 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
30348 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
30349 cat >>confdefs.h <<_ACEOF
30350 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30357 for ac_func in prctl setreuid
30359 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30360 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30361 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30362 cat >>confdefs.h <<_ACEOF
30363 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cap_set_proc in -lcap" >&5
30370 $as_echo_n "checking for cap_set_proc in -lcap... " >&6; }
30371 if ${ac_cv_lib_cap_cap_set_proc+:} false; then :
30372 $as_echo_n "(cached) " >&6
30374 ac_check_lib_save_LIBS=$LIBS
30376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30377 /* end confdefs.h. */
30379 /* Override any GCC internal prototype to avoid an error.
30380 Use char because int might match the return type of a GCC
30381 builtin and then its argument prototype would still apply. */
30385 char cap_set_proc ();
30389 return cap_set_proc ();
30394 if ac_fn_c_try_link "$LINENO"; then :
30395 ac_cv_lib_cap_cap_set_proc=yes
30397 ac_cv_lib_cap_cap_set_proc=no
30399 rm -f core conftest.err conftest.$ac_objext \
30400 conftest$ac_exeext conftest.$ac_ext
30401 LIBS=$ac_check_lib_save_LIBS
30403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cap_cap_set_proc" >&5
30404 $as_echo "$ac_cv_lib_cap_cap_set_proc" >&6; }
30405 if test "x$ac_cv_lib_cap_cap_set_proc" = xyes; then :
30411 if test x$CAP_LIBS = x-lcap; then
30413 $as_echo "#define HAVE_LIBCAP 1" >>confdefs.h
30419 $as_echo "#define FDLIBS 1" >>confdefs.h
30422 CFLAGS=${CFLAGS--O}
30424 if test x$have_gcc = xyes ; then
30425 CPPFLAGS="$CPPFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
30426 CFLAGS="$CFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
30428 LDFLAGS=${LDFLAGS--O}
30429 CPPFLAGS="$CPPFLAGS"
30455 PFILES="platforms/Makefile"
30458 COMPRESS_MANPAGES=yes
30460 case "$DISTNAME" in
30463 PSCMD="ps -e -o pid,comm"
30464 PFILES="${PFILES} \
30465 platforms/aix/Makefile"
30466 TAPEDRIVE="/dev/rmt0.1"
30470 PTHREAD_LIB="-lpthread -lexc"
30471 if test "${CC}" = "gcc" ; then
30478 TAPEDRIVE="/dev/nrmt0"
30481 DISTVER=`uname -a |awk '{print $3}'`
30482 TAPEDRIVE="/dev/nrmt0"
30483 PTHREAD_LIB="-pthread"
30484 CFLAGS="${CFLAGS} -pthread"
30485 PSCMD="ps -ax -o pid,command"
30488 PFILES="${PFILES} \
30489 platforms/bsdi/Makefile \
30490 platforms/bsdi/bacula-fd \
30491 platforms/bsdi/bacula-sd \
30492 platforms/bsdi/bacula-dir"
30493 largefile_support="yes"
30497 TAPEDRIVE="/dev/nst0"
30498 PSCMD="ps -e -o pid,command"
30500 PFILES="${PFILES} \
30501 platforms/darwin/Makefile"
30505 TAPEDRIVE="/dev/nst0"
30506 PSCMD="ps -e -o pid,command"
30508 PFILES="${PFILES} \
30509 platforms/osx/Makefile"
30512 if `test -f /etc/apt/sources.list && grep -q ubuntu /etc/apt/sources.list`; then
30515 DISTVER=`cat /etc/debian_version`
30516 if test -f /etc/lsb-release ; then
30518 if test "x$DISTRIB_ID" != "x" ; then
30519 DISTNAME=$DISTRIB_ID
30521 if test "x$DISTRIB_RELEASE" != "x" ; then
30522 DISTVER=$DISTRIB_RELEASE
30525 if test "$DISTNAME" = "Ubuntu" ; then
30528 TAPEDRIVE="/dev/nst0"
30529 PSCMD="ps -e -o pid,command"
30530 if test "$DISTNAME" = "ubuntu" ; then
30531 PFILES="${PFILES} \
30532 platforms/ubuntu/Makefile \
30533 platforms/ubuntu/bacula-fd \
30534 platforms/ubuntu/bacula-sd \
30535 platforms/ubuntu/bacula-dir"
30537 PFILES="${PFILES} \
30538 platforms/debian/Makefile \
30539 platforms/debian/bacula-fd \
30540 platforms/debian/bacula-sd \
30541 platforms/debian/bacula-dir"
30545 DISTVER=`uname -a |awk '{print $3}'`
30546 VER=`echo $DISTVER | cut -c 1`
30547 if test x$VER = x4 ; then
30548 PTHREAD_LIB="${PTHREAD_LIBS:--pthread}"
30549 CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS:--pthread}"
30553 TAPEDRIVE="/dev/nrsa0"
30554 PSCMD="ps -ax -o pid,command"
30555 PFILES="${PFILES} \
30556 platforms/freebsd/Makefile \
30557 platforms/freebsd/bacula-fd \
30558 platforms/freebsd/bacula-sd \
30559 platforms/freebsd/bacula-dir"
30560 largefile_support="yes"
30564 TAPEDRIVE="/dev/nst0"
30565 PSCMD="ps -e -o pid,command"
30566 PFILES="${PFILES} \
30567 platforms/hurd/Makefile \
30568 platforms/hurd/bacula-fd \
30569 platforms/hurd/bacula-sd \
30570 platforms/hurd/bacula-dir"
30573 PSCMD="UNIX95=1; ps -e -o pid,comm"
30574 CFLAGS="${CFLAGS} -D_XOPEN_SOURCE_EXTENDED=1"
30576 TAPEDRIVE="/dev/rmt/0hnb"
30577 PTHREAD_LIB="-lpthread"
30578 $as_echo "#define _INCLUDE_LONGLONG 1" >>confdefs.h
30583 TAPEDRIVE="/dev/rmt/0cbn"
30584 PSCMD="ps -e -o pid,comm"
30585 PFILES="${PFILES} \
30586 platforms/irix/Makefile \
30587 platforms/irix/bacula-fd \
30588 platforms/irix/bacula-sd \
30589 platforms/irix/bacula-dir"
30592 DISTVER=`uname -a |awk '{print $3}'`
30595 TAPEDRIVE="/dev/nrst0"
30596 PSCMD="ps -ax -o pid,command"
30597 PTHREAD_LIB="-pthread"
30598 CFLAGS="${CFLAGS} -pthread"
30601 DISTVER=`uname -a |awk '{print $3}'`
30604 TAPEDRIVE="/dev/nrst0"
30605 PSCMD="ps -ax -o pid,command"
30606 PTHREAD_LIB="-pthread"
30607 CFLAGS="${CFLAGS} -pthread"
30608 PFILES="${PFILES} \
30609 platforms/openbsd/Makefile \
30610 platforms/openbsd/bacula-fd \
30611 platforms/openbsd/bacula-sd \
30612 platforms/openbsd/bacula-dir"
30615 if test -f /etc/whitebox-release ; then
30616 f=/etc/whitebox-release
30618 f=/etc/redhat-release
30620 if test `cat $f | grep release |\
30621 cut -f 3 -d ' '`x = "Enterprise"x ; then
30622 DISTVER="Enterprise "`cat $f | grep release |\
30625 DISTVER=`cat /etc/redhat-release | grep release |\
30628 TAPEDRIVE="/dev/nst0"
30629 PSCMD="ps -e -o pid,command"
30630 PFILES="${PFILES} \
30631 platforms/redhat/Makefile \
30632 platforms/redhat/bacula-fd \
30633 platforms/redhat/bacula-sd \
30634 platforms/redhat/bacula-dir
30638 DISTVER=`cat /etc/mandrake-release | grep release |\
30640 TAPEDRIVE="/dev/nst0"
30641 PSCMD="ps -e -o pid,command"
30642 PFILES="${PFILES} \
30643 platforms/mandrake/Makefile \
30644 platforms/mandrake/bacula-fd \
30645 platforms/mandrake/bacula-sd \
30646 platforms/mandrake/bacula-dir \
30650 DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
30651 TAPEDRIVE="/dev/nst0"
30652 PSCMD="ps -e -o pid,command"
30653 PFILES="${PFILES} \
30654 platforms/gentoo/Makefile \
30655 platforms/gentoo/bacula-init \
30656 platforms/gentoo/bacula-fd \
30657 platforms/gentoo/bacula-sd \
30658 platforms/gentoo/bacula-dir"
30661 DISTVER=`cat /etc/slackware-version`
30662 TAPEDRIVE="/dev/nst0"
30663 PSCMD="ps -e -o pid,command"
30664 PFILES="${PFILES} \
30665 platforms/slackware/Makefile \
30666 platforms/slackware/rc.bacula-fd \
30667 platforms/slackware/rc.bacula-sd \
30668 platforms/slackware/rc.bacula-dir\
30669 platforms/slackware/functions.bacula"
30673 TAPEDRIVE="/dev/rmt/0cbn"
30674 PSCMD="ps -e -o pid,comm"
30675 PFILES="${PFILES} \
30676 platforms/solaris/Makefile \
30677 platforms/solaris/bacula-fd \
30678 platforms/solaris/bacula-sd \
30679 platforms/solaris/bacula-dir"
30683 $as_echo "#define HAVE_OLD_SOCKOPT 1" >>confdefs.h
30685 $as_echo "#define USE_THR_SETCONCURRENCY 1" >>confdefs.h
30689 $as_echo "#define USE_THR_SETCONCURRENCY 1" >>confdefs.h
30695 LIBS="$LIBS -lresolv -lrt"
30698 DISTVER=`cat /etc/SuSE-release |grep VERSION|\
30700 TAPEDRIVE="/dev/nst0"
30701 PSCMD="ps -e -o pid,command"
30702 PFILES="${PFILES} \
30703 platforms/suse/Makefile \
30704 platforms/suse/bacula-fd \
30705 platforms/suse/bacula-sd \
30706 platforms/suse/bacula-dir \
30707 platforms/suse/bacula"
30712 TAPEDRIVE="/dev/nst0"
30713 PSCMD="ps -e -o pid,command"
30714 PFILES="${PFILES} \
30715 platforms/suse/Makefile \
30716 platforms/suse/bacula-fd \
30717 platforms/suse/bacula-sd \
30718 platforms/suse/bacula-dir"
30722 TAPEDRIVE="/dev/nst0"
30725 echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
30729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for systemd support" >&5
30730 $as_echo_n "checking for systemd support... " >&6; }
30732 # Check whether --with-systemd was given.
30733 if test "${with_systemd+set}" = set; then :
30734 withval=$with_systemd;
30735 if test "$withval" != "no"; then
30736 if test "$withval" = "yes"; then
30737 SYSTEMD_UNITDIR="`systemctl show | grep UnitPath | cut -d " " -f2`"
30739 SYSTEMD_UNITDIR="${withval}"
30742 PFILES="${PFILES} \
30743 platforms/systemd/Makefile \
30744 platforms/systemd/bacula.conf \
30745 platforms/systemd/bacula-dir.service \
30746 platforms/systemd/bacula-fd.service \
30747 platforms/systemd/bacula-sd.service"
30749 $as_echo "#define HAVE_SYSTEMD 1" >>confdefs.h
30751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30752 $as_echo "yes" >&6; }
30753 support_systemd="yes"
30755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30756 $as_echo "no" >&6; }
30757 support_systemd="no"
30762 support_systemd="no"
30763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30764 $as_echo "no" >&6; }
30773 LIBS="$PTHREAD_LIB $LIBS"
30775 cat >>confdefs.h <<_ACEOF
30779 cat >>confdefs.h <<_ACEOF
30790 MCOMMON=./autoconf/Make.common
30793 if test "x${subsysdir}" = "x${sbindir}" ; then
30796 echo "You have set both --sbindir and --with-subsys-dir"
30797 echo " equal to: ${subsysdir} "
30798 echo "This is not permitted. Please reconfigure."
30800 echo "Aborting configuration ..."
30806 ac_config_files="$ac_config_files autoconf/Make.common Makefile manpages/Makefile scripts/btraceback scripts/bconsole scripts/bacula scripts/bacula-ctl-dir scripts/bacula-ctl-fd scripts/bacula-ctl-sd scripts/devel_bacula scripts/Makefile scripts/logrotate scripts/mtx-changer scripts/disk-changer scripts/dvd-handler scripts/dvd-simulator scripts/logwatch/Makefile scripts/logwatch/logfile.bacula.conf scripts/bat.desktop scripts/bat.desktop.xsu scripts/bat.desktop.consolehelper scripts/bat.console_apps src/Makefile src/host.h src/console/Makefile src/console/bconsole.conf src/qt-console/bat.conf src/qt-console/bat.pro src/qt-console/bat.pro.mingw32 src/qt-console/install_conf_file src/dird/Makefile src/dird/bacula-dir.conf src/lib/Makefile src/stored/Makefile src/stored/bacula-sd.conf src/filed/Makefile src/filed/bacula-fd.conf src/cats/Makefile src/cats/make_catalog_backup.pl src/cats/make_catalog_backup src/cats/delete_catalog_backup src/cats/create_postgresql_database src/cats/update_postgresql_tables src/cats/make_postgresql_tables src/cats/grant_postgresql_privileges src/cats/drop_postgresql_tables src/cats/drop_postgresql_database src/cats/create_mysql_database src/cats/update_mysql_tables src/cats/make_mysql_tables src/cats/grant_mysql_privileges src/cats/drop_mysql_tables src/cats/drop_mysql_database src/cats/create_sqlite3_database src/cats/update_sqlite3_tables src/cats/make_sqlite3_tables src/cats/grant_sqlite3_privileges src/cats/drop_sqlite3_tables src/cats/drop_sqlite3_database src/cats/sqlite src/cats/mysql src/cats/create_bacula_database src/cats/update_bacula_tables src/cats/grant_bacula_privileges src/cats/make_bacula_tables src/cats/drop_bacula_tables src/cats/drop_bacula_database src/cats/install-default-backend src/findlib/Makefile src/tools/Makefile src/plugins/fd/Makefile src/plugins/sd/Makefile src/plugins/dir/Makefile po/Makefile.in updatedb/update_mysql_tables_9_to_10 updatedb/update_sqlite3_tables_9_to_10 updatedb/update_postgresql_tables_9_to_10 updatedb/update_mysql_tables_10_to_11 updatedb/update_sqlite3_tables_10_to_11 updatedb/update_postgresql_tables_10_to_11 updatedb/update_mysql_tables_11_to_12 updatedb/update_sqlite3_tables_11_to_12 updatedb/update_postgresql_tables_11_to_12 updatedb/update_mysql_tables_12_to_14 updatedb/update_sqlite3_tables_12_to_14 updatedb/update_postgresql_tables_12_to_14 examples/nagios/check_bacula/Makefile platforms/rpms/redhat/bacula.spec platforms/rpms/redhat/bacula-bat.spec platforms/rpms/redhat/bacula-docs.spec platforms/rpms/redhat/bacula-mtx.spec platforms/rpms/suse/bacula.spec platforms/rpms/suse/bacula-bat.spec platforms/rpms/suse/bacula-docs.spec platforms/rpms/suse/bacula-mtx.spec $PFILES"
30808 ac_config_commands="$ac_config_commands default"
30810 cat >confcache <<\_ACEOF
30811 # This file is a shell script that caches the results of configure
30812 # tests run on this system so they can be shared between configure
30813 # scripts and configure runs, see configure's option --config-cache.
30814 # It is not useful on other systems. If it contains results you don't
30815 # want to keep, you may remove or edit it.
30817 # config.status only pays attention to the cache file if you give it
30818 # the --recheck option to rerun configure.
30820 # `ac_cv_env_foo' variables (set or unset) will be overridden when
30821 # loading this file, other *unset* `ac_cv_foo' will be assigned the
30822 # following values.
30826 # The following way of writing the cache mishandles newlines in values,
30827 # but we know of no workaround that is simple, portable, and efficient.
30828 # So, we kill variables containing newlines.
30829 # Ultrix sh set writes to stderr and can't be redirected directly,
30830 # and sets the high bit in the cache file unless we assign to the vars.
30832 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
30833 eval ac_val=\$$ac_var
30837 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
30838 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
30841 _ | IFS | as_nl) ;; #(
30842 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
30843 *) { eval $ac_var=; unset $ac_var;} ;;
30849 case $as_nl`(ac_space=' '; set) 2>&1` in #(
30850 *${as_nl}ac_space=\ *)
30851 # `set' does not quote correctly, so add quotes: double-quote
30852 # substitution turns \\\\ into \\, and sed turns \\ into \.
30855 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
30858 # `set' quotes correctly as required by POSIX, so do not add quotes.
30859 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
30868 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30870 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30872 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
30873 if test -w "$cache_file"; then
30874 if test "x$cache_file" != "x/dev/null"; then
30875 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
30876 $as_echo "$as_me: updating cache $cache_file" >&6;}
30877 if test ! -f "$cache_file" || test -h "$cache_file"; then
30878 cat confcache >"$cache_file"
30880 case $cache_file in #(
30882 mv -f confcache "$cache_file"$$ &&
30883 mv -f "$cache_file"$$ "$cache_file" ;; #(
30885 mv -f confcache "$cache_file" ;;
30890 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
30891 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
30896 test "x$prefix" = xNONE && prefix=$ac_default_prefix
30897 # Let make expand exec_prefix.
30898 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
30900 DEFS=-DHAVE_CONFIG_H
30905 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
30906 # 1. Remove the extension, and $U if already installed.
30907 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
30908 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
30909 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
30910 # will be set to the directory where LIBOBJS objects are built.
30911 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
30912 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
30914 LIBOBJS=$ac_libobjs
30916 LTLIBOBJS=$ac_ltlibobjs
30921 : "${CONFIG_STATUS=./config.status}"
30923 ac_clean_files_save=$ac_clean_files
30924 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
30925 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
30926 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
30928 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
30930 # Generated by $as_me.
30931 # Run this file to recreate the current configuration.
30932 # Compiler output produced by configure, useful for debugging
30933 # configure, is in config.log if it exists.
30936 ac_cs_recheck=false
30939 SHELL=\${CONFIG_SHELL-$SHELL}
30942 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
30943 ## -------------------- ##
30944 ## M4sh Initialization. ##
30945 ## -------------------- ##
30947 # Be more Bourne compatible
30948 DUALCASE=1; export DUALCASE # for MKS sh
30949 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
30952 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
30953 # is contrary to our usage. Disable this feature.
30954 alias -g '${1+"$@"}'='"$@"'
30955 setopt NO_GLOB_SUBST
30957 case `(set -o) 2>/dev/null` in #(
30969 # Printing a long string crashes Solaris 7 /usr/bin/printf.
30970 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
30971 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
30972 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
30973 # Prefer a ksh shell builtin over an external printf program on Solaris,
30974 # but without wasting forks for bash or zsh.
30975 if test -z "$BASH_VERSION$ZSH_VERSION" \
30976 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
30977 as_echo='print -r --'
30978 as_echo_n='print -rn --'
30979 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
30980 as_echo='printf %s\n'
30981 as_echo_n='printf %s'
30983 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
30984 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
30985 as_echo_n='/usr/ucb/echo -n'
30987 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
30988 as_echo_n_body='eval
30992 expr "X$arg" : "X\\(.*\\)$as_nl";
30993 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
30995 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
30997 export as_echo_n_body
30998 as_echo_n='sh -c $as_echo_n_body as_echo'
31000 export as_echo_body
31001 as_echo='sh -c $as_echo_body as_echo'
31004 # The user is always right.
31005 if test "${PATH_SEPARATOR+set}" != set; then
31007 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
31008 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
31015 # We need space, tab and new line, in precisely that order. Quoting is
31016 # there to prevent editors from complaining about space-tab.
31017 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
31018 # splitting by setting IFS to empty value.)
31021 # Find who we are. Look in the path if we contain no directory separator.
31024 *[\\/]* ) as_myself=$0 ;;
31025 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31026 for as_dir in $PATH
31029 test -z "$as_dir" && as_dir=.
31030 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
31036 # We did not find ourselves, most probably we were run as `sh COMMAND'
31037 # in which case we are not to be found in the path.
31038 if test "x$as_myself" = x; then
31041 if test ! -f "$as_myself"; then
31042 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
31046 # Unset variables that we do not need and which cause bugs (e.g. in
31047 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
31048 # suppresses any "Segmentation fault" message there. '((' could
31049 # trigger a bug in pdksh 5.2.14.
31050 for as_var in BASH_ENV ENV MAIL MAILPATH
31051 do eval test x\${$as_var+set} = xset \
31052 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
31065 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
31068 # as_fn_error STATUS ERROR [LINENO LOG_FD]
31069 # ----------------------------------------
31070 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
31071 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
31072 # script with STATUS, using 1 if that was 0.
31075 as_status=$1; test $as_status -eq 0 && as_status=1
31077 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
31078 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
31080 $as_echo "$as_me: error: $2" >&2
31081 as_fn_exit $as_status
31085 # as_fn_set_status STATUS
31086 # -----------------------
31087 # Set $? to STATUS, without forking.
31088 as_fn_set_status ()
31091 } # as_fn_set_status
31093 # as_fn_exit STATUS
31094 # -----------------
31095 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
31099 as_fn_set_status $1
31105 # Portably unset VAR.
31108 { eval $1=; unset $1;}
31110 as_unset=as_fn_unset
31111 # as_fn_append VAR VALUE
31112 # ----------------------
31113 # Append the text in VALUE to the end of the definition contained in VAR. Take
31114 # advantage of any shell optimizations that allow amortized linear growth over
31115 # repeated appends, instead of the typical quadratic growth present in naive
31117 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
31118 eval 'as_fn_append ()
31129 # as_fn_arith ARG...
31130 # ------------------
31131 # Perform arithmetic evaluation on the ARGs, and store the result in the
31132 # global $as_val. Take advantage of shells that can avoid forks. The arguments
31133 # must be portable across $(()) and expr.
31134 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
31135 eval 'as_fn_arith ()
31142 as_val=`expr "$@" || test $? -eq 1`
31147 if expr a : '\(a\)' >/dev/null 2>&1 &&
31148 test "X`expr 00001 : '.*\(...\)'`" = X001; then
31154 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
31155 as_basename=basename
31160 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
31166 as_me=`$as_basename -- "$0" ||
31167 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
31168 X"$0" : 'X\(//\)$' \| \
31169 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
31171 sed '/^.*\/\([^/][^/]*\)\/*$/{
31185 # Avoid depending upon Character Ranges.
31186 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
31187 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
31188 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
31189 as_cr_digits='0123456789'
31190 as_cr_alnum=$as_cr_Letters$as_cr_digits
31192 ECHO_C= ECHO_N= ECHO_T=
31193 case `echo -n x` in #(((((
31195 case `echo 'xy\c'` in
31196 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
31198 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
31205 rm -f conf$$ conf$$.exe conf$$.file
31206 if test -d conf$$.dir; then
31207 rm -f conf$$.dir/conf$$.file
31210 mkdir conf$$.dir 2>/dev/null
31212 if (echo >conf$$.file) 2>/dev/null; then
31213 if ln -s conf$$.file conf$$ 2>/dev/null; then
31215 # ... but there are two gotchas:
31216 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
31217 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
31218 # In both cases, we have to default to `cp -pR'.
31219 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
31221 elif ln conf$$.file conf$$ 2>/dev/null; then
31229 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
31230 rmdir conf$$.dir 2>/dev/null
31235 # Create "$as_dir" as a directory, including parents if necessary.
31240 -*) as_dir=./$as_dir;;
31242 test -d "$as_dir" || eval $as_mkdir_p || {
31246 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
31247 *) as_qdir=$as_dir;;
31249 as_dirs="'$as_qdir' $as_dirs"
31250 as_dir=`$as_dirname -- "$as_dir" ||
31251 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31252 X"$as_dir" : 'X\(//\)[^/]' \| \
31253 X"$as_dir" : 'X\(//\)$' \| \
31254 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
31255 $as_echo X"$as_dir" |
31256 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31260 /^X\(\/\/\)[^/].*/{
31273 test -d "$as_dir" && break
31275 test -z "$as_dirs" || eval "mkdir $as_dirs"
31276 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
31280 if mkdir -p . 2>/dev/null; then
31281 as_mkdir_p='mkdir -p "$as_dir"'
31283 test -d ./-p && rmdir ./-p
31288 # as_fn_executable_p FILE
31289 # -----------------------
31290 # Test if FILE is an executable regular file.
31291 as_fn_executable_p ()
31293 test -f "$1" && test -x "$1"
31294 } # as_fn_executable_p
31295 as_test_x='test -x'
31296 as_executable_p=as_fn_executable_p
31298 # Sed expression to map a string onto a valid CPP name.
31299 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
31301 # Sed expression to map a string onto a valid variable name.
31302 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
31306 ## ----------------------------------- ##
31307 ## Main body of $CONFIG_STATUS script. ##
31308 ## ----------------------------------- ##
31310 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
31312 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31313 # Save the log message, to keep $0 and so on meaningful, and to
31314 # report actual input values of CONFIG_FILES etc. instead of their
31315 # values after options handling.
31317 This file was extended by bacula $as_me 7.0.6, which was
31318 generated by GNU Autoconf 2.69. Invocation command line was
31320 CONFIG_FILES = $CONFIG_FILES
31321 CONFIG_HEADERS = $CONFIG_HEADERS
31322 CONFIG_LINKS = $CONFIG_LINKS
31323 CONFIG_COMMANDS = $CONFIG_COMMANDS
31326 on `(hostname || uname -n) 2>/dev/null | sed 1q`
31331 case $ac_config_files in *"
31332 "*) set x $ac_config_files; shift; ac_config_files=$*;;
31335 case $ac_config_headers in *"
31336 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
31340 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31341 # Files that config.status was made for.
31342 config_files="$ac_config_files"
31343 config_headers="$ac_config_headers"
31344 config_commands="$ac_config_commands"
31348 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31350 \`$as_me' instantiates files and other configuration actions
31351 from templates according to the current configuration. Unless the files
31352 and actions are specified as TAGs, all are instantiated by default.
31354 Usage: $0 [OPTION]... [TAG]...
31356 -h, --help print this help, then exit
31357 -V, --version print version number and configuration settings, then exit
31358 --config print configuration, then exit
31359 -q, --quiet, --silent
31360 do not print progress messages
31361 -d, --debug don't remove temporary files
31362 --recheck update $as_me by reconfiguring in the same conditions
31363 --file=FILE[:TEMPLATE]
31364 instantiate the configuration file FILE
31365 --header=FILE[:TEMPLATE]
31366 instantiate the configuration header FILE
31368 Configuration files:
31371 Configuration headers:
31374 Configuration commands:
31377 Report bugs to the package provider."
31380 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31381 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
31383 bacula config.status 7.0.6
31384 configured by $0, generated by GNU Autoconf 2.69,
31385 with options \\"\$ac_cs_config\\"
31387 Copyright (C) 2012 Free Software Foundation, Inc.
31388 This config.status script is free software; the Free Software Foundation
31389 gives unlimited permission to copy, distribute and modify it."
31395 test -n "\$AWK" || AWK=awk
31398 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31399 # The default lists apply if the user does not specify any file.
31405 ac_option=`expr "X$1" : 'X\([^=]*\)='`
31406 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
31410 ac_option=`expr "X$1" : 'X\([^=]*\)='`
31422 # Handling of the options.
31423 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
31425 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
31426 $as_echo "$ac_cs_version"; exit ;;
31427 --config | --confi | --conf | --con | --co | --c )
31428 $as_echo "$ac_cs_config"; exit ;;
31429 --debug | --debu | --deb | --de | --d | -d )
31431 --file | --fil | --fi | --f )
31434 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
31435 '') as_fn_error $? "missing file argument" ;;
31437 as_fn_append CONFIG_FILES " '$ac_optarg'"
31438 ac_need_defaults=false;;
31439 --header | --heade | --head | --hea )
31442 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
31444 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
31445 ac_need_defaults=false;;
31447 # Conflict between --help and --header
31448 as_fn_error $? "ambiguous option: \`$1'
31449 Try \`$0 --help' for more information.";;
31450 --help | --hel | -h )
31451 $as_echo "$ac_cs_usage"; exit ;;
31452 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
31453 | -silent | --silent | --silen | --sile | --sil | --si | --s)
31456 # This is an error.
31457 -*) as_fn_error $? "unrecognized option: \`$1'
31458 Try \`$0 --help' for more information." ;;
31460 *) as_fn_append ac_config_targets " $1"
31461 ac_need_defaults=false ;;
31467 ac_configure_extra_args=
31469 if $ac_cs_silent; then
31471 ac_configure_extra_args="$ac_configure_extra_args --silent"
31475 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31476 if \$ac_cs_recheck; then
31477 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
31479 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
31480 CONFIG_SHELL='$SHELL'
31481 export CONFIG_SHELL
31486 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31490 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
31491 ## Running $as_me. ##
31497 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31503 # The HP-UX ksh and POSIX shell print the target directory to stdout
31504 # if CDPATH is set.
31505 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
31507 sed_quote_subst='$sed_quote_subst'
31508 double_quote_subst='$double_quote_subst'
31509 delay_variable_subst='$delay_variable_subst'
31510 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
31511 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
31512 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
31513 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
31514 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
31515 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
31516 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
31517 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
31518 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
31519 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
31520 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
31521 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
31522 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
31523 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
31524 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
31525 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
31526 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
31527 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
31528 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
31529 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
31530 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
31531 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
31532 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
31533 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
31534 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
31535 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
31536 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
31537 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
31538 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
31539 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
31540 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
31541 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
31542 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
31543 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
31544 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
31545 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
31546 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
31547 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
31548 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
31549 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
31550 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
31551 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
31552 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
31553 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
31554 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
31555 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
31556 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
31557 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
31558 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
31559 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
31560 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
31561 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
31562 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
31563 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
31564 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
31565 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
31566 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"`'
31567 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
31568 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
31569 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
31570 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
31571 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
31572 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
31573 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
31574 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
31575 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
31576 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
31577 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
31578 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
31579 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
31580 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
31581 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
31582 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
31583 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
31584 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
31585 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
31586 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
31587 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
31588 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
31589 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
31590 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
31591 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
31592 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
31593 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
31594 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
31595 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
31596 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
31597 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
31598 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
31599 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
31600 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
31601 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
31602 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
31603 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
31604 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
31605 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
31606 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
31607 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
31608 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
31609 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
31610 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
31611 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
31612 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
31613 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
31614 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
31615 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
31616 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
31617 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
31618 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
31619 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
31620 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
31621 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
31622 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
31623 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
31624 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
31625 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
31626 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
31627 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
31628 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
31629 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
31630 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
31631 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
31632 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
31633 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
31634 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
31635 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
31636 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
31637 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
31638 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
31639 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
31640 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
31641 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
31642 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
31643 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
31644 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
31645 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
31646 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
31647 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
31648 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31649 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31650 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
31651 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
31652 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
31653 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
31654 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
31655 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
31656 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
31657 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
31658 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
31659 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
31660 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
31661 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
31662 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31663 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31664 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31665 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31666 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31667 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31668 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
31669 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
31670 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
31671 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
31672 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
31673 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
31674 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
31675 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
31676 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
31677 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
31678 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
31679 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
31680 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
31681 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31682 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
31683 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
31684 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31685 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31686 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
31687 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
31688 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
31689 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
31690 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
31691 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
31692 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
31693 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
31696 LTCFLAGS='$LTCFLAGS'
31697 compiler='$compiler_DEFAULT'
31699 # A function that is used when there is no print builtin or printf.
31700 func_fallback_echo ()
31702 eval 'cat <<_LTECHO_EOF
31707 # Quote evaled strings.
31722 deplibs_check_method \
31727 sharedlib_from_linklib_cmd \
31730 archiver_list_spec \
31736 lt_cv_sys_global_symbol_pipe \
31737 lt_cv_sys_global_symbol_to_cdecl \
31738 lt_cv_sys_global_symbol_to_c_name_address \
31739 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
31740 nm_file_list_spec \
31741 lt_prog_compiler_no_builtin_flag \
31742 lt_prog_compiler_pic \
31743 lt_prog_compiler_wl \
31744 lt_prog_compiler_static \
31745 lt_cv_prog_compiler_c_o \
31754 export_dynamic_flag_spec \
31755 whole_archive_flag_spec \
31756 compiler_needs_object \
31758 allow_undefined_flag \
31759 no_undefined_flag \
31760 hardcode_libdir_flag_spec \
31761 hardcode_libdir_separator \
31765 variables_saved_for_relink \
31767 library_names_spec \
31769 install_override_mode \
31773 compiler_lib_search_dirs \
31778 compiler_lib_search_path \
31782 lt_prog_compiler_no_builtin_flag_CXX \
31783 lt_prog_compiler_pic_CXX \
31784 lt_prog_compiler_wl_CXX \
31785 lt_prog_compiler_static_CXX \
31786 lt_cv_prog_compiler_c_o_CXX \
31787 export_dynamic_flag_spec_CXX \
31788 whole_archive_flag_spec_CXX \
31789 compiler_needs_object_CXX \
31791 allow_undefined_flag_CXX \
31792 no_undefined_flag_CXX \
31793 hardcode_libdir_flag_spec_CXX \
31794 hardcode_libdir_separator_CXX \
31795 exclude_expsyms_CXX \
31796 include_expsyms_CXX \
31797 file_list_spec_CXX \
31798 compiler_lib_search_dirs_CXX \
31799 predep_objects_CXX \
31800 postdep_objects_CXX \
31803 compiler_lib_search_path_CXX; do
31804 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
31805 *[\\\\\\\`\\"\\\$]*)
31806 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
31809 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
31814 # Double-quote double-evaled strings.
31815 for var in reload_cmds \
31816 old_postinstall_cmds \
31817 old_postuninstall_cmds \
31819 extract_expsyms_cmds \
31820 old_archive_from_new_cmds \
31821 old_archive_from_expsyms_cmds \
31823 archive_expsym_cmds \
31825 module_expsym_cmds \
31826 export_symbols_cmds \
31830 postuninstall_cmds \
31832 sys_lib_search_path_spec \
31833 sys_lib_dlsearch_path_spec \
31835 old_archive_cmds_CXX \
31836 old_archive_from_new_cmds_CXX \
31837 old_archive_from_expsyms_cmds_CXX \
31839 archive_expsym_cmds_CXX \
31841 module_expsym_cmds_CXX \
31842 export_symbols_cmds_CXX \
31844 postlink_cmds_CXX; do
31845 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
31846 *[\\\\\\\`\\"\\\$]*)
31847 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
31850 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
31855 ac_aux_dir='$ac_aux_dir'
31856 xsi_shell='$xsi_shell'
31857 lt_shell_append='$lt_shell_append'
31859 # See if we are running on zsh, and set the options which allow our
31860 # commands through without removal of \ escapes INIT.
31861 if test -n "\${ZSH_VERSION+set}" ; then
31862 setopt NO_GLOB_SUBST
31868 TIMESTAMP='$TIMESTAMP'
31876 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
31877 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
31879 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
31880 # Capture the value of LINGUAS because we need it to compute CATALOGS.
31881 LINGUAS="${LINGUAS-%UNSET%}"
31886 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31888 # Handling of arguments.
31889 for ac_config_target in $ac_config_targets
31891 case $ac_config_target in
31892 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
31893 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
31894 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
31895 "autoconf/Make.common") CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
31896 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
31897 "manpages/Makefile") CONFIG_FILES="$CONFIG_FILES manpages/Makefile" ;;
31898 "scripts/btraceback") CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
31899 "scripts/bconsole") CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
31900 "scripts/bacula") CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
31901 "scripts/bacula-ctl-dir") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-dir" ;;
31902 "scripts/bacula-ctl-fd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-fd" ;;
31903 "scripts/bacula-ctl-sd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-sd" ;;
31904 "scripts/devel_bacula") CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
31905 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
31906 "scripts/logrotate") CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
31907 "scripts/mtx-changer") CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
31908 "scripts/disk-changer") CONFIG_FILES="$CONFIG_FILES scripts/disk-changer" ;;
31909 "scripts/dvd-handler") CONFIG_FILES="$CONFIG_FILES scripts/dvd-handler" ;;
31910 "scripts/dvd-simulator") CONFIG_FILES="$CONFIG_FILES scripts/dvd-simulator" ;;
31911 "scripts/logwatch/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/Makefile" ;;
31912 "scripts/logwatch/logfile.bacula.conf") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/logfile.bacula.conf" ;;
31913 "scripts/bat.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop" ;;
31914 "scripts/bat.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.xsu" ;;
31915 "scripts/bat.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.consolehelper" ;;
31916 "scripts/bat.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bat.console_apps" ;;
31917 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
31918 "src/host.h") CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
31919 "src/console/Makefile") CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
31920 "src/console/bconsole.conf") CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
31921 "src/qt-console/bat.conf") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.conf" ;;
31922 "src/qt-console/bat.pro") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro" ;;
31923 "src/qt-console/bat.pro.mingw32") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro.mingw32" ;;
31924 "src/qt-console/install_conf_file") CONFIG_FILES="$CONFIG_FILES src/qt-console/install_conf_file" ;;
31925 "src/dird/Makefile") CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
31926 "src/dird/bacula-dir.conf") CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
31927 "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
31928 "src/stored/Makefile") CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
31929 "src/stored/bacula-sd.conf") CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
31930 "src/filed/Makefile") CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
31931 "src/filed/bacula-fd.conf") CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
31932 "src/cats/Makefile") CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
31933 "src/cats/make_catalog_backup.pl") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup.pl" ;;
31934 "src/cats/make_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
31935 "src/cats/delete_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
31936 "src/cats/create_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
31937 "src/cats/update_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
31938 "src/cats/make_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
31939 "src/cats/grant_postgresql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
31940 "src/cats/drop_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
31941 "src/cats/drop_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
31942 "src/cats/create_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
31943 "src/cats/update_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
31944 "src/cats/make_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
31945 "src/cats/grant_mysql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
31946 "src/cats/drop_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
31947 "src/cats/drop_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
31948 "src/cats/create_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite3_database" ;;
31949 "src/cats/update_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite3_tables" ;;
31950 "src/cats/make_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite3_tables" ;;
31951 "src/cats/grant_sqlite3_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite3_privileges" ;;
31952 "src/cats/drop_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_tables" ;;
31953 "src/cats/drop_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_database" ;;
31954 "src/cats/sqlite") CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
31955 "src/cats/mysql") CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
31956 "src/cats/create_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
31957 "src/cats/update_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
31958 "src/cats/grant_bacula_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
31959 "src/cats/make_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
31960 "src/cats/drop_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
31961 "src/cats/drop_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
31962 "src/cats/install-default-backend") CONFIG_FILES="$CONFIG_FILES src/cats/install-default-backend" ;;
31963 "src/findlib/Makefile") CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
31964 "src/tools/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
31965 "src/plugins/fd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/fd/Makefile" ;;
31966 "src/plugins/sd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/sd/Makefile" ;;
31967 "src/plugins/dir/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/dir/Makefile" ;;
31968 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
31969 "updatedb/update_mysql_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_9_to_10" ;;
31970 "updatedb/update_sqlite3_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_9_to_10" ;;
31971 "updatedb/update_postgresql_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_9_to_10" ;;
31972 "updatedb/update_mysql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_10_to_11" ;;
31973 "updatedb/update_sqlite3_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_10_to_11" ;;
31974 "updatedb/update_postgresql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_10_to_11" ;;
31975 "updatedb/update_mysql_tables_11_to_12") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_11_to_12" ;;
31976 "updatedb/update_sqlite3_tables_11_to_12") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_11_to_12" ;;
31977 "updatedb/update_postgresql_tables_11_to_12") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_11_to_12" ;;
31978 "updatedb/update_mysql_tables_12_to_14") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_12_to_14" ;;
31979 "updatedb/update_sqlite3_tables_12_to_14") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_12_to_14" ;;
31980 "updatedb/update_postgresql_tables_12_to_14") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_12_to_14" ;;
31981 "examples/nagios/check_bacula/Makefile") CONFIG_FILES="$CONFIG_FILES examples/nagios/check_bacula/Makefile" ;;
31982 "platforms/rpms/redhat/bacula.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/redhat/bacula.spec" ;;
31983 "platforms/rpms/redhat/bacula-bat.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/redhat/bacula-bat.spec" ;;
31984 "platforms/rpms/redhat/bacula-docs.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/redhat/bacula-docs.spec" ;;
31985 "platforms/rpms/redhat/bacula-mtx.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/redhat/bacula-mtx.spec" ;;
31986 "platforms/rpms/suse/bacula.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/suse/bacula.spec" ;;
31987 "platforms/rpms/suse/bacula-bat.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/suse/bacula-bat.spec" ;;
31988 "platforms/rpms/suse/bacula-docs.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/suse/bacula-docs.spec" ;;
31989 "platforms/rpms/suse/bacula-mtx.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/suse/bacula-mtx.spec" ;;
31990 "$PFILES") CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
31991 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
31993 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
31998 # If the user did not use the arguments to specify the items to instantiate,
31999 # then the envvar interface is used. Set only those that are not.
32000 # We use the long form for the default assignment because of an extremely
32001 # bizarre bug on SunOS 4.1.3.
32002 if $ac_need_defaults; then
32003 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
32004 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
32005 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
32008 # Have a temporary directory for convenience. Make it in the build tree
32009 # simply because there is no reason against having it here, and in addition,
32010 # creating and moving files from /tmp can sometimes cause problems.
32011 # Hook for its removal unless debugging.
32012 # Note that there is a small window in which the directory will not be cleaned:
32013 # after its creation but before its name has been assigned to `$tmp'.
32017 trap 'exit_status=$?
32018 : "${ac_tmp:=$tmp}"
32019 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
32021 trap 'as_fn_exit 1' 1 2 13 15
32023 # Create a (secure) tmp directory for tmp files.
32026 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
32030 tmp=./conf$$-$RANDOM
32031 (umask 077 && mkdir "$tmp")
32032 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
32035 # Set up the scripts for CONFIG_FILES section.
32036 # No need to generate them if there are no CONFIG_FILES.
32037 # This happens for instance with `./config.status config.h'.
32038 if test -n "$CONFIG_FILES"; then
32040 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
32041 ac_cs_awk_getline=:
32042 ac_cs_awk_pipe_init=
32043 ac_cs_awk_read_file='
32044 while ((getline aline < (F[key])) > 0)
32047 ac_cs_awk_pipe_fini=
32049 ac_cs_awk_getline=false
32050 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
32051 ac_cs_awk_read_file='
32053 print "cat " F[key] " &&"
32054 '$ac_cs_awk_pipe_init
32055 # The final `:' finishes the AND list.
32056 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
32058 ac_cr=`echo X | tr X '\015'`
32059 # On cygwin, bash can eat \r inside `` if the user requested igncr.
32060 # But we know of no other shell where ac_cr would be empty at this
32061 # point, so we can use a bashism as a fallback.
32062 if test "x$ac_cr" = x; then
32063 eval ac_cr=\$\'\\r\'
32065 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
32066 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
32069 ac_cs_awk_cr=$ac_cr
32072 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
32075 # Create commands to substitute file output variables.
32077 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
32078 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
32079 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
32082 } >conf$$files.sh &&
32083 . ./conf$$files.sh ||
32084 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
32085 rm -f conf$$files.sh
32088 echo "cat >conf$$subs.awk <<_ACEOF" &&
32089 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
32091 } >conf$$subs.sh ||
32092 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
32093 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
32095 for ac_last_try in false false false false false :; do
32096 . ./conf$$subs.sh ||
32097 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
32099 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
32100 if test $ac_delim_n = $ac_delim_num; then
32102 elif $ac_last_try; then
32103 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
32105 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
32108 rm -f conf$$subs.sh
32110 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32111 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
32115 s/^/S["/; s/!.*/"]=/
32125 s/\(.\{148\}\)..*/\1/
32127 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
32132 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
32139 s/\(.\{148\}\)..*/\1/
32141 s/["\\]/\\&/g; s/^/"/; s/$/"/
32145 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
32150 ' <conf$$subs.awk | sed '
32155 ' >>$CONFIG_STATUS || ac_write_fail=1
32156 rm -f conf$$subs.awk
32157 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32159 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
32160 for (key in S) S_is_set[key] = 1
32162 \$ac_cs_awk_pipe_init
32166 nfields = split(line, field, "@")
32168 len = length(field[1])
32169 for (i = 2; i < nfields; i++) {
32171 keylen = length(key)
32172 if (S_is_set[key]) {
32174 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
32175 len += length(value) + length(field[++i])
32180 if (nfields == 3 && !substed) {
32182 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
32183 \$ac_cs_awk_read_file
32189 \$ac_cs_awk_pipe_fini
32192 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32193 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
32194 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
32197 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
32198 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
32201 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
32202 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
32203 # trailing colons and then remove the whole line if VPATH becomes empty
32204 # (actually we leave an empty line to preserve line numbers).
32205 if test "x$srcdir" = x.; then
32206 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
32224 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32225 fi # test -n "$CONFIG_FILES"
32227 # Set up the scripts for CONFIG_HEADERS section.
32228 # No need to generate them if there are no CONFIG_HEADERS.
32229 # This happens for instance with `./config.status Makefile'.
32230 if test -n "$CONFIG_HEADERS"; then
32231 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
32235 # Transform confdefs.h into an awk script `defines.awk', embedded as
32236 # here-document in config.status, that substitutes the proper values into
32237 # config.h.in to produce config.h.
32239 # Create a delimiter string that does not exist in confdefs.h, to ease
32240 # handling of long lines.
32242 for ac_last_try in false false :; do
32243 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
32244 if test -z "$ac_tt"; then
32246 elif $ac_last_try; then
32247 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
32249 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
32253 # For the awk script, D is an array of macro values keyed by name,
32254 # likewise P contains macro parameters if any. Preserve backslash
32255 # newline sequences.
32257 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
32259 s/.\{148\}/&'"$ac_delim"'/g
32262 s/^[ ]*#[ ]*define[ ][ ]*/ /
32269 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
32271 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
32275 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
32276 D["\1"]=" \3\\\\\\n"\\/p
32278 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
32283 s/.\{148\}/&'"$ac_delim"'/g
32288 s/["\\]/\\&/g; s/^/"/; s/$/"/p
32291 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
32293 ' <confdefs.h | sed '
32294 s/'"$ac_delim"'/"\\\
32295 "/g' >>$CONFIG_STATUS || ac_write_fail=1
32297 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32298 for (key in D) D_is_set[key] = 1
32301 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
32303 split(line, arg, " ")
32304 if (arg[1] == "#") {
32308 defundef = substr(arg[1], 2)
32311 split(mac1, mac2, "(") #)
32313 prefix = substr(line, 1, index(line, defundef) - 1)
32314 if (D_is_set[macro]) {
32315 # Preserve the white space surrounding the "#".
32316 print prefix "define", macro P[macro] D[macro]
32319 # Replace #undef with comments. This is necessary, for example,
32320 # in the case of _POSIX_SOURCE, which is predefined and required
32321 # on some systems where configure will not decide to define it.
32322 if (defundef == "undef") {
32323 print "/*", prefix defundef, macro, "*/"
32331 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32332 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
32333 fi # test -n "$CONFIG_HEADERS"
32336 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
32341 :[FHLC]) ac_mode=$ac_tag; continue;;
32343 case $ac_mode$ac_tag in
32345 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
32346 :[FH]-) ac_tag=-:-;;
32347 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
32364 -) ac_f="$ac_tmp/stdin";;
32365 *) # Look for the file first in the build tree, then in the source tree
32366 # (if the path is not absolute). The absolute path cannot be DOS-style,
32367 # because $ac_f cannot contain `:'.
32371 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
32373 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
32375 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
32376 as_fn_append ac_file_inputs " '$ac_f'"
32379 # Let's still pretend it is `configure' which instantiates (i.e., don't
32380 # use $as_me), people would be surprised to read:
32381 # /* config.h. Generated by config.status. */
32382 configure_input='Generated from '`
32383 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
32385 if test x"$ac_file" != x-; then
32386 configure_input="$ac_file. $configure_input"
32387 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
32388 $as_echo "$as_me: creating $ac_file" >&6;}
32390 # Neutralize special characters interpreted by sed in replacement strings.
32391 case $configure_input in #(
32392 *\&* | *\|* | *\\* )
32393 ac_sed_conf_input=`$as_echo "$configure_input" |
32394 sed 's/[\\\\&|]/\\\\&/g'`;; #(
32395 *) ac_sed_conf_input=$configure_input;;
32399 *:-:* | *:-) cat >"$ac_tmp/stdin" \
32400 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
32405 ac_dir=`$as_dirname -- "$ac_file" ||
32406 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32407 X"$ac_file" : 'X\(//\)[^/]' \| \
32408 X"$ac_file" : 'X\(//\)$' \| \
32409 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
32410 $as_echo X"$ac_file" |
32411 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32415 /^X\(\/\/\)[^/].*/{
32428 as_dir="$ac_dir"; as_fn_mkdir_p
32432 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
32434 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
32435 # A ".." for each directory in $ac_dir_suffix.
32436 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
32437 case $ac_top_builddir_sub in
32438 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
32439 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
32442 ac_abs_top_builddir=$ac_pwd
32443 ac_abs_builddir=$ac_pwd$ac_dir_suffix
32444 # for backward compatibility:
32445 ac_top_builddir=$ac_top_build_prefix
32448 .) # We are building in place.
32450 ac_top_srcdir=$ac_top_builddir_sub
32451 ac_abs_top_srcdir=$ac_pwd ;;
32452 [\\/]* | ?:[\\/]* ) # Absolute name.
32453 ac_srcdir=$srcdir$ac_dir_suffix;
32454 ac_top_srcdir=$srcdir
32455 ac_abs_top_srcdir=$srcdir ;;
32456 *) # Relative name.
32457 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
32458 ac_top_srcdir=$ac_top_build_prefix$srcdir
32459 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
32461 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
32471 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
32472 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
32476 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32477 # If the template does not know about datarootdir, expand it.
32478 # FIXME: This hack should be removed a few years after 2.60.
32479 ac_datarootdir_hack=; ac_datarootdir_seen=
32490 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
32491 *datarootdir*) ac_datarootdir_seen=yes;;
32492 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
32493 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
32494 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
32496 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32497 ac_datarootdir_hack='
32498 s&@datadir@&$datadir&g
32499 s&@docdir@&$docdir&g
32500 s&@infodir@&$infodir&g
32501 s&@localedir@&$localedir&g
32502 s&@mandir@&$mandir&g
32503 s&\\\${datarootdir}&$datarootdir&g' ;;
32507 # Neutralize VPATH when `$srcdir' = `.'.
32508 # Shell code in configure.ac might set extrasub.
32509 # FIXME: do we really want to maintain this feature?
32510 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32511 ac_sed_extra="$ac_vpsub
32514 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32516 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
32517 s|@configure_input@|$ac_sed_conf_input|;t t
32518 s&@top_builddir@&$ac_top_builddir_sub&;t t
32519 s&@top_build_prefix@&$ac_top_build_prefix&;t t
32520 s&@srcdir@&$ac_srcdir&;t t
32521 s&@abs_srcdir@&$ac_abs_srcdir&;t t
32522 s&@top_srcdir@&$ac_top_srcdir&;t t
32523 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
32524 s&@builddir@&$ac_builddir&;t t
32525 s&@abs_builddir@&$ac_abs_builddir&;t t
32526 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
32527 s&@INSTALL@&$ac_INSTALL&;t t
32528 $ac_datarootdir_hack
32530 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
32531 if $ac_cs_awk_getline; then
32532 $AWK -f "$ac_tmp/subs.awk"
32534 $AWK -f "$ac_tmp/subs.awk" | $SHELL
32536 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32538 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
32539 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
32540 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
32541 "$ac_tmp/out"`; test -z "$ac_out"; } &&
32542 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
32543 which seems to be undefined. Please make sure it is defined" >&5
32544 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
32545 which seems to be undefined. Please make sure it is defined" >&2;}
32547 rm -f "$ac_tmp/stdin"
32549 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
32550 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
32552 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32558 if test x"$ac_file" != x-; then
32560 $as_echo "/* $configure_input */" \
32561 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
32562 } >"$ac_tmp/config.h" \
32563 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32564 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
32565 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
32566 $as_echo "$as_me: $ac_file is unchanged" >&6;}
32569 mv "$ac_tmp/config.h" "$ac_file" \
32570 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32573 $as_echo "/* $configure_input */" \
32574 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
32575 || as_fn_error $? "could not create -" "$LINENO" 5
32579 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
32580 $as_echo "$as_me: executing $ac_file commands" >&6;}
32585 case $ac_file$ac_mode in
32588 # See if we are running on zsh, and set the options which allow our
32589 # commands through without removal of \ escapes.
32590 if test -n "${ZSH_VERSION+set}" ; then
32591 setopt NO_GLOB_SUBST
32594 cfgfile="${ofile}T"
32595 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
32598 cat <<_LT_EOF >> "$cfgfile"
32601 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
32602 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
32603 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
32604 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
32606 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
32607 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
32609 # Written by Gordon Matzigkeit, 1996
32611 # This file is part of GNU Libtool.
32613 # GNU Libtool is free software; you can redistribute it and/or
32614 # modify it under the terms of the GNU General Public License as
32615 # published by the Free Software Foundation; either version 2 of
32616 # the License, or (at your option) any later version.
32618 # As a special exception to the GNU General Public License,
32619 # if you distribute this file as part of a program or library that
32620 # is built using GNU Libtool, you may include this file under the
32621 # same distribution terms that you use for the rest of that program.
32623 # GNU Libtool is distributed in the hope that it will be useful,
32624 # but WITHOUT ANY WARRANTY; without even the implied warranty of
32625 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
32626 # GNU General Public License for more details.
32628 # You should have received a copy of the GNU General Public License
32629 # along with GNU Libtool; see the file COPYING. If not, a copy
32630 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
32631 # obtained by writing to the Free Software Foundation, Inc.,
32632 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
32635 # The names of the tagged configurations supported by this script.
32636 available_tags="CXX "
32638 # ### BEGIN LIBTOOL CONFIG
32640 # Which release of libtool.m4 was used?
32641 macro_version=$macro_version
32642 macro_revision=$macro_revision
32644 # Whether or not to build shared libraries.
32645 build_libtool_libs=$enable_shared
32647 # Whether or not to build static libraries.
32648 build_old_libs=$enable_static
32650 # What type of objects to build.
32653 # Whether or not to optimize for fast installation.
32654 fast_install=$enable_fast_install
32656 # Shell to use when invoking shell scripts.
32659 # An echo program that protects backslashes.
32662 # The PATH separator for the build system.
32663 PATH_SEPARATOR=$lt_PATH_SEPARATOR
32666 host_alias=$host_alias
32670 # The build system.
32671 build_alias=$build_alias
32675 # A sed program that does not truncate output.
32678 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
32679 Xsed="\$SED -e 1s/^X//"
32681 # A grep program that handles long lines.
32687 # A literal string matcher.
32690 # A BSD- or MS-compatible name lister.
32693 # Whether we need soft or hard links.
32696 # What is the maximum length of a command?
32697 max_cmd_len=$max_cmd_len
32699 # Object file suffix (normally "o").
32702 # Executable file suffix (normally "").
32705 # whether the shell understands "unset".
32708 # turn spaces into newlines.
32711 # turn newlines into spaces.
32714 # convert \$build file names to \$host format.
32715 to_host_file_cmd=$lt_cv_to_host_file_cmd
32717 # convert \$build files to toolchain format.
32718 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
32720 # An object symbol dumper.
32721 OBJDUMP=$lt_OBJDUMP
32723 # Method to check whether dependent libraries are shared objects.
32724 deplibs_check_method=$lt_deplibs_check_method
32726 # Command to use when deplibs_check_method = "file_magic".
32727 file_magic_cmd=$lt_file_magic_cmd
32729 # How to find potential files when deplibs_check_method = "file_magic".
32730 file_magic_glob=$lt_file_magic_glob
32732 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
32733 want_nocaseglob=$lt_want_nocaseglob
32735 # DLL creation program.
32736 DLLTOOL=$lt_DLLTOOL
32738 # Command to associate shared and link libraries.
32739 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
32744 # Flags to create an archive.
32745 AR_FLAGS=$lt_AR_FLAGS
32747 # How to feed a file listing to the archiver.
32748 archiver_list_spec=$lt_archiver_list_spec
32750 # A symbol stripping program.
32753 # Commands used to install an old-style archive.
32755 old_postinstall_cmds=$lt_old_postinstall_cmds
32756 old_postuninstall_cmds=$lt_old_postuninstall_cmds
32758 # Whether to use a lock for old archive extraction.
32759 lock_old_archive_extraction=$lock_old_archive_extraction
32764 # LTCC compiler flags.
32765 LTCFLAGS=$lt_CFLAGS
32767 # Take the output of nm and produce a listing of raw symbols and C names.
32768 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
32770 # Transform the output of nm in a proper C declaration.
32771 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
32773 # Transform the output of nm in a C name address pair.
32774 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
32776 # Transform the output of nm in a C name address pair when lib prefix is needed.
32777 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
32779 # Specify filename containing input files for \$NM.
32780 nm_file_list_spec=$lt_nm_file_list_spec
32782 # The root where to search for dependent libraries,and in which our libraries should be installed.
32783 lt_sysroot=$lt_sysroot
32785 # The name of the directory that contains temporary libtool files.
32788 # Used to examine libraries when file_magic_cmd begins with "file".
32789 MAGIC_CMD=$MAGIC_CMD
32791 # Must we lock files when doing compilation?
32792 need_locks=$lt_need_locks
32795 MANIFEST_TOOL=$lt_MANIFEST_TOOL
32797 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
32798 DSYMUTIL=$lt_DSYMUTIL
32800 # Tool to change global to local symbols on Mac OS X.
32803 # Tool to manipulate fat objects and archives on Mac OS X.
32806 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
32809 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
32810 OTOOL64=$lt_OTOOL64
32812 # Old archive suffix (normally "a").
32815 # Shared library suffix (normally ".so").
32816 shrext_cmds=$lt_shrext_cmds
32818 # The commands to extract the exported symbol list from a shared archive.
32819 extract_expsyms_cmds=$lt_extract_expsyms_cmds
32821 # Variables whose values should be saved in libtool wrapper scripts and
32822 # restored at link time.
32823 variables_saved_for_relink=$lt_variables_saved_for_relink
32825 # Do we need the "lib" prefix for modules?
32826 need_lib_prefix=$need_lib_prefix
32828 # Do we need a version for libraries?
32829 need_version=$need_version
32831 # Library versioning type.
32832 version_type=$version_type
32834 # Shared library runtime path variable.
32835 runpath_var=$runpath_var
32837 # Shared library path variable.
32838 shlibpath_var=$shlibpath_var
32840 # Is shlibpath searched before the hard-coded library search path?
32841 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
32843 # Format of library name prefix.
32844 libname_spec=$lt_libname_spec
32846 # List of archive names. First name is the real one, the rest are links.
32847 # The last name is the one that the linker finds with -lNAME
32848 library_names_spec=$lt_library_names_spec
32850 # The coded name of the library, if different from the real name.
32851 soname_spec=$lt_soname_spec
32853 # Permission mode override for installation of shared libraries.
32854 install_override_mode=$lt_install_override_mode
32856 # Command to use after installation of a shared archive.
32857 postinstall_cmds=$lt_postinstall_cmds
32859 # Command to use after uninstallation of a shared archive.
32860 postuninstall_cmds=$lt_postuninstall_cmds
32862 # Commands used to finish a libtool library installation in a directory.
32863 finish_cmds=$lt_finish_cmds
32865 # As "finish_cmds", except a single script fragment to be evaled but
32867 finish_eval=$lt_finish_eval
32869 # Whether we should hardcode library paths into libraries.
32870 hardcode_into_libs=$hardcode_into_libs
32872 # Compile-time system search path for libraries.
32873 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
32875 # Run-time system search path for libraries.
32876 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
32878 # Whether dlopen is supported.
32879 dlopen_support=$enable_dlopen
32881 # Whether dlopen of programs is supported.
32882 dlopen_self=$enable_dlopen_self
32884 # Whether dlopen of statically linked programs is supported.
32885 dlopen_self_static=$enable_dlopen_self_static
32887 # Commands to strip libraries.
32888 old_striplib=$lt_old_striplib
32889 striplib=$lt_striplib
32892 # The linker used to build libraries.
32895 # How to create reloadable object files.
32896 reload_flag=$lt_reload_flag
32897 reload_cmds=$lt_reload_cmds
32899 # Commands used to build an old-style archive.
32900 old_archive_cmds=$lt_old_archive_cmds
32902 # A language specific compiler.
32905 # Is the compiler the GNU compiler?
32908 # Compiler flag to turn off builtin functions.
32909 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
32911 # Additional compiler flags for building library objects.
32912 pic_flag=$lt_lt_prog_compiler_pic
32914 # How to pass a linker flag through the compiler.
32915 wl=$lt_lt_prog_compiler_wl
32917 # Compiler flag to prevent dynamic linking.
32918 link_static_flag=$lt_lt_prog_compiler_static
32920 # Does compiler simultaneously support -c and -o options?
32921 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
32923 # Whether or not to add -lc for building shared libraries.
32924 build_libtool_need_lc=$archive_cmds_need_lc
32926 # Whether or not to disallow shared libs when runtime libs are static.
32927 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
32929 # Compiler flag to allow reflexive dlopens.
32930 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
32932 # Compiler flag to generate shared objects directly from archives.
32933 whole_archive_flag_spec=$lt_whole_archive_flag_spec
32935 # Whether the compiler copes with passing no objects directly.
32936 compiler_needs_object=$lt_compiler_needs_object
32938 # Create an old-style archive from a shared archive.
32939 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
32941 # Create a temporary old-style archive to link instead of a shared archive.
32942 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
32944 # Commands used to build a shared archive.
32945 archive_cmds=$lt_archive_cmds
32946 archive_expsym_cmds=$lt_archive_expsym_cmds
32948 # Commands used to build a loadable module if different from building
32949 # a shared archive.
32950 module_cmds=$lt_module_cmds
32951 module_expsym_cmds=$lt_module_expsym_cmds
32953 # Whether we are building with GNU ld or not.
32954 with_gnu_ld=$lt_with_gnu_ld
32956 # Flag that allows shared libraries with undefined symbols to be built.
32957 allow_undefined_flag=$lt_allow_undefined_flag
32959 # Flag that enforces no undefined symbols.
32960 no_undefined_flag=$lt_no_undefined_flag
32962 # Flag to hardcode \$libdir into a binary during linking.
32963 # This must work even if \$libdir does not exist
32964 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
32966 # Whether we need a single "-rpath" flag with a separated argument.
32967 hardcode_libdir_separator=$lt_hardcode_libdir_separator
32969 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
32970 # DIR into the resulting binary.
32971 hardcode_direct=$hardcode_direct
32973 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
32974 # DIR into the resulting binary and the resulting library dependency is
32975 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
32976 # library is relocated.
32977 hardcode_direct_absolute=$hardcode_direct_absolute
32979 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
32980 # into the resulting binary.
32981 hardcode_minus_L=$hardcode_minus_L
32983 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
32984 # into the resulting binary.
32985 hardcode_shlibpath_var=$hardcode_shlibpath_var
32987 # Set to "yes" if building a shared library automatically hardcodes DIR
32988 # into the library and all subsequent libraries and executables linked
32990 hardcode_automatic=$hardcode_automatic
32992 # Set to yes if linker adds runtime paths of dependent libraries
32993 # to runtime path list.
32994 inherit_rpath=$inherit_rpath
32996 # Whether libtool must link a program against all its dependency libraries.
32997 link_all_deplibs=$link_all_deplibs
32999 # Set to "yes" if exported symbols are required.
33000 always_export_symbols=$always_export_symbols
33002 # The commands to list exported symbols.
33003 export_symbols_cmds=$lt_export_symbols_cmds
33005 # Symbols that should not be listed in the preloaded symbols.
33006 exclude_expsyms=$lt_exclude_expsyms
33008 # Symbols that must always be exported.
33009 include_expsyms=$lt_include_expsyms
33011 # Commands necessary for linking programs (against libraries) with templates.
33012 prelink_cmds=$lt_prelink_cmds
33014 # Commands necessary for finishing linking programs.
33015 postlink_cmds=$lt_postlink_cmds
33017 # Specify filename containing input files.
33018 file_list_spec=$lt_file_list_spec
33020 # How to hardcode a shared library path into an executable.
33021 hardcode_action=$hardcode_action
33023 # The directories searched by this compiler when creating a shared library.
33024 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
33026 # Dependencies to place before and after the objects being linked to
33027 # create a shared library.
33028 predep_objects=$lt_predep_objects
33029 postdep_objects=$lt_postdep_objects
33030 predeps=$lt_predeps
33031 postdeps=$lt_postdeps
33033 # The library search path used internally by the compiler when linking
33034 # a shared library.
33035 compiler_lib_search_path=$lt_compiler_lib_search_path
33037 # ### END LIBTOOL CONFIG
33043 cat <<\_LT_EOF >> "$cfgfile"
33044 # AIX sometimes has problems with the GCC collect2 program. For some
33045 # reason, if we set the COLLECT_NAMES environment variable, the problems
33046 # vanish in a puff of smoke.
33047 if test "X${COLLECT_NAMES+set}" != Xset; then
33049 export COLLECT_NAMES
33056 ltmain="$ac_aux_dir/ltmain.sh"
33059 # We use sed instead of cat because bash on DJGPP gets confused if
33060 # if finds mixed CR/LF and LF-only lines. Since sed operates in
33061 # text mode, it properly converts lines to CR/LF. This bash problem
33062 # is reportedly fixed, but why not run on old versions too?
33063 sed '$q' "$ltmain" >> "$cfgfile" \
33064 || (rm -f "$cfgfile"; exit 1)
33066 if test x"$xsi_shell" = xyes; then
33067 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
33071 \ */*) func_dirname_result="${1%/*}${2}" ;;\
33072 \ * ) func_dirname_result="${3}" ;;\
33074 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
33075 && mv -f "$cfgfile.tmp" "$cfgfile" \
33076 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33077 test 0 -eq $? || _lt_function_replace_fail=:
33080 sed -e '/^func_basename ()$/,/^} # func_basename /c\
33083 \ func_basename_result="${1##*/}"\
33084 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
33085 && mv -f "$cfgfile.tmp" "$cfgfile" \
33086 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33087 test 0 -eq $? || _lt_function_replace_fail=:
33090 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
33091 func_dirname_and_basename ()\
33094 \ */*) func_dirname_result="${1%/*}${2}" ;;\
33095 \ * ) func_dirname_result="${3}" ;;\
33097 \ func_basename_result="${1##*/}"\
33098 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
33099 && mv -f "$cfgfile.tmp" "$cfgfile" \
33100 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33101 test 0 -eq $? || _lt_function_replace_fail=:
33104 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
33107 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
33108 \ # positional parameters, so assign one to ordinary parameter first.\
33109 \ func_stripname_result=${3}\
33110 \ func_stripname_result=${func_stripname_result#"${1}"}\
33111 \ func_stripname_result=${func_stripname_result%"${2}"}\
33112 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
33113 && mv -f "$cfgfile.tmp" "$cfgfile" \
33114 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33115 test 0 -eq $? || _lt_function_replace_fail=:
33118 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
33119 func_split_long_opt ()\
33121 \ func_split_long_opt_name=${1%%=*}\
33122 \ func_split_long_opt_arg=${1#*=}\
33123 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
33124 && mv -f "$cfgfile.tmp" "$cfgfile" \
33125 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33126 test 0 -eq $? || _lt_function_replace_fail=:
33129 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
33130 func_split_short_opt ()\
33132 \ func_split_short_opt_arg=${1#??}\
33133 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
33134 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
33135 && mv -f "$cfgfile.tmp" "$cfgfile" \
33136 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33137 test 0 -eq $? || _lt_function_replace_fail=:
33140 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
33144 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
33145 \ *) func_lo2o_result=${1} ;;\
33147 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
33148 && mv -f "$cfgfile.tmp" "$cfgfile" \
33149 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33150 test 0 -eq $? || _lt_function_replace_fail=:
33153 sed -e '/^func_xform ()$/,/^} # func_xform /c\
33156 func_xform_result=${1%.*}.lo\
33157 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
33158 && mv -f "$cfgfile.tmp" "$cfgfile" \
33159 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33160 test 0 -eq $? || _lt_function_replace_fail=:
33163 sed -e '/^func_arith ()$/,/^} # func_arith /c\
33166 func_arith_result=$(( $* ))\
33167 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
33168 && mv -f "$cfgfile.tmp" "$cfgfile" \
33169 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33170 test 0 -eq $? || _lt_function_replace_fail=:
33173 sed -e '/^func_len ()$/,/^} # func_len /c\
33176 func_len_result=${#1}\
33177 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
33178 && mv -f "$cfgfile.tmp" "$cfgfile" \
33179 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33180 test 0 -eq $? || _lt_function_replace_fail=:
33184 if test x"$lt_shell_append" = xyes; then
33185 sed -e '/^func_append ()$/,/^} # func_append /c\
33188 eval "${1}+=\\${2}"\
33189 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
33190 && mv -f "$cfgfile.tmp" "$cfgfile" \
33191 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33192 test 0 -eq $? || _lt_function_replace_fail=:
33195 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
33196 func_append_quoted ()\
33198 \ func_quote_for_eval "${2}"\
33199 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
33200 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
33201 && mv -f "$cfgfile.tmp" "$cfgfile" \
33202 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33203 test 0 -eq $? || _lt_function_replace_fail=:
33206 # Save a `func_append' function call where possible by direct use of '+='
33207 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
33208 && mv -f "$cfgfile.tmp" "$cfgfile" \
33209 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33210 test 0 -eq $? || _lt_function_replace_fail=:
33212 # Save a `func_append' function call even when '+=' is not available
33213 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
33214 && mv -f "$cfgfile.tmp" "$cfgfile" \
33215 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33216 test 0 -eq $? || _lt_function_replace_fail=:
33219 if test x"$_lt_function_replace_fail" = x":"; then
33220 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
33221 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
33225 mv -f "$cfgfile" "$ofile" ||
33226 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
33230 cat <<_LT_EOF >> "$ofile"
33232 # ### BEGIN LIBTOOL TAG CONFIG: CXX
33234 # The linker used to build libraries.
33237 # How to create reloadable object files.
33238 reload_flag=$lt_reload_flag_CXX
33239 reload_cmds=$lt_reload_cmds_CXX
33241 # Commands used to build an old-style archive.
33242 old_archive_cmds=$lt_old_archive_cmds_CXX
33244 # A language specific compiler.
33245 CC=$lt_compiler_CXX
33247 # Is the compiler the GNU compiler?
33250 # Compiler flag to turn off builtin functions.
33251 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
33253 # Additional compiler flags for building library objects.
33254 pic_flag=$lt_lt_prog_compiler_pic_CXX
33256 # How to pass a linker flag through the compiler.
33257 wl=$lt_lt_prog_compiler_wl_CXX
33259 # Compiler flag to prevent dynamic linking.
33260 link_static_flag=$lt_lt_prog_compiler_static_CXX
33262 # Does compiler simultaneously support -c and -o options?
33263 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
33265 # Whether or not to add -lc for building shared libraries.
33266 build_libtool_need_lc=$archive_cmds_need_lc_CXX
33268 # Whether or not to disallow shared libs when runtime libs are static.
33269 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
33271 # Compiler flag to allow reflexive dlopens.
33272 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
33274 # Compiler flag to generate shared objects directly from archives.
33275 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
33277 # Whether the compiler copes with passing no objects directly.
33278 compiler_needs_object=$lt_compiler_needs_object_CXX
33280 # Create an old-style archive from a shared archive.
33281 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
33283 # Create a temporary old-style archive to link instead of a shared archive.
33284 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
33286 # Commands used to build a shared archive.
33287 archive_cmds=$lt_archive_cmds_CXX
33288 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
33290 # Commands used to build a loadable module if different from building
33291 # a shared archive.
33292 module_cmds=$lt_module_cmds_CXX
33293 module_expsym_cmds=$lt_module_expsym_cmds_CXX
33295 # Whether we are building with GNU ld or not.
33296 with_gnu_ld=$lt_with_gnu_ld_CXX
33298 # Flag that allows shared libraries with undefined symbols to be built.
33299 allow_undefined_flag=$lt_allow_undefined_flag_CXX
33301 # Flag that enforces no undefined symbols.
33302 no_undefined_flag=$lt_no_undefined_flag_CXX
33304 # Flag to hardcode \$libdir into a binary during linking.
33305 # This must work even if \$libdir does not exist
33306 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
33308 # Whether we need a single "-rpath" flag with a separated argument.
33309 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
33311 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
33312 # DIR into the resulting binary.
33313 hardcode_direct=$hardcode_direct_CXX
33315 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
33316 # DIR into the resulting binary and the resulting library dependency is
33317 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
33318 # library is relocated.
33319 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
33321 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
33322 # into the resulting binary.
33323 hardcode_minus_L=$hardcode_minus_L_CXX
33325 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
33326 # into the resulting binary.
33327 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
33329 # Set to "yes" if building a shared library automatically hardcodes DIR
33330 # into the library and all subsequent libraries and executables linked
33332 hardcode_automatic=$hardcode_automatic_CXX
33334 # Set to yes if linker adds runtime paths of dependent libraries
33335 # to runtime path list.
33336 inherit_rpath=$inherit_rpath_CXX
33338 # Whether libtool must link a program against all its dependency libraries.
33339 link_all_deplibs=$link_all_deplibs_CXX
33341 # Set to "yes" if exported symbols are required.
33342 always_export_symbols=$always_export_symbols_CXX
33344 # The commands to list exported symbols.
33345 export_symbols_cmds=$lt_export_symbols_cmds_CXX
33347 # Symbols that should not be listed in the preloaded symbols.
33348 exclude_expsyms=$lt_exclude_expsyms_CXX
33350 # Symbols that must always be exported.
33351 include_expsyms=$lt_include_expsyms_CXX
33353 # Commands necessary for linking programs (against libraries) with templates.
33354 prelink_cmds=$lt_prelink_cmds_CXX
33356 # Commands necessary for finishing linking programs.
33357 postlink_cmds=$lt_postlink_cmds_CXX
33359 # Specify filename containing input files.
33360 file_list_spec=$lt_file_list_spec_CXX
33362 # How to hardcode a shared library path into an executable.
33363 hardcode_action=$hardcode_action_CXX
33365 # The directories searched by this compiler when creating a shared library.
33366 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
33368 # Dependencies to place before and after the objects being linked to
33369 # create a shared library.
33370 predep_objects=$lt_predep_objects_CXX
33371 postdep_objects=$lt_postdep_objects_CXX
33372 predeps=$lt_predeps_CXX
33373 postdeps=$lt_postdeps_CXX
33375 # The library search path used internally by the compiler when linking
33376 # a shared library.
33377 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
33379 # ### END LIBTOOL TAG CONFIG: CXX
33384 for ac_file in $CONFIG_FILES; do
33385 # Support "outfile[:infile[:infile...]]"
33387 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
33389 # PO directories have a Makefile.in generated from Makefile.in.in.
33390 case "$ac_file" in */Makefile.in)
33391 # Adjust a relative srcdir.
33392 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
33393 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
33394 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
33395 # In autoconf-2.13 it is called $ac_given_srcdir.
33396 # In autoconf-2.50 it is called $srcdir.
33397 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
33398 case "$ac_given_srcdir" in
33399 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
33400 /*) top_srcdir="$ac_given_srcdir" ;;
33401 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
33403 # Treat a directory as a PO directory if and only if it has a
33404 # POTFILES.in file. This allows packages to have multiple PO
33405 # directories under different names or in different locations.
33406 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
33407 rm -f "$ac_dir/POTFILES"
33408 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
33409 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
33410 POMAKEFILEDEPS="POTFILES.in"
33411 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
33412 # on $ac_dir but don't depend on user-specified configuration
33414 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
33415 # The LINGUAS file contains the set of available languages.
33416 if test -n "$OBSOLETE_ALL_LINGUAS"; then
33417 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
33419 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
33420 # Hide the ALL_LINGUAS assigment from automake.
33421 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
33422 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
33424 # The set of available languages was given in configure.in.
33425 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
33428 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
33429 # Compute UPDATEPOFILES
33430 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
33431 # Compute DUMMYPOFILES
33432 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
33434 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
33435 case "$ac_given_srcdir" in
33437 *) srcdirpre='$(srcdir)/' ;;
33443 for lang in $ALL_LINGUAS; do
33444 POFILES="$POFILES $srcdirpre$lang.po"
33445 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
33446 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
33447 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
33449 # CATALOGS depends on both $ac_dir and the user's LINGUAS
33450 # environment variable.
33452 if test -n "$ALL_LINGUAS"; then
33453 for presentlang in $ALL_LINGUAS; do
33455 if test "%UNSET%" != "$LINGUAS"; then
33456 desiredlanguages="$LINGUAS"
33458 desiredlanguages="$ALL_LINGUAS"
33460 for desiredlang in $desiredlanguages; do
33461 # Use the presentlang catalog if desiredlang is
33462 # a. equal to presentlang, or
33463 # b. a variant of presentlang (because in this case,
33464 # presentlang can be used as a fallback for messages
33465 # which are not translated in the desiredlang catalog).
33466 case "$desiredlang" in
33467 "$presentlang"*) useit=yes;;
33470 if test $useit = yes; then
33471 INST_LINGUAS="$INST_LINGUAS $presentlang"
33476 if test -n "$INST_LINGUAS"; then
33477 for lang in $INST_LINGUAS; do
33478 CATALOGS="$CATALOGS $lang.gmo"
33481 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
33482 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"
33483 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
33484 if test -f "$f"; then
33486 *.orig | *.bak | *~) ;;
33487 *) cat "$f" >> "$ac_dir/Makefile" ;;
33504 ac_clean_files=$ac_clean_files_save
33506 test $ac_write_fail = 0 ||
33507 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
33510 # configure is writing to config.log, and then calls config.status.
33511 # config.status does its own redirection, appending to config.log.
33512 # Unfortunately, on DOS this fails, as config.log is still kept open
33513 # by configure, so config.status won't be able to write to it; its
33514 # output is simply discarded. So we exec the FD to /dev/null,
33515 # effectively closing config.log, so it can be properly (re)opened and
33516 # appended to by config.status. When coming back to configure, we
33517 # need to make the FD available again.
33518 if test "$no_create" != yes; then
33520 ac_config_status_args=
33521 test "$silent" = yes &&
33522 ac_config_status_args="$ac_config_status_args --quiet"
33524 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
33526 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
33527 # would make configure fail if this is the last instruction.
33528 $ac_cs_success || as_fn_exit 1
33530 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
33531 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
33532 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
33536 if test "${support_bat}" = "yes" ; then
33537 if test "x$QMAKE" = "xnone"; then
33538 as_fn_error $? "Could not find qmake $PATH. Check your Qt installation" "$LINENO" 5
33542 echo "Creating bat Makefile"
33548 ${MAKE:-make} clean
33552 if test X"$GCC" = "Xyes" ; then
33553 echo "Doing make of dependencies"
33554 ${MAKE:-make} depend
33558 chmod 755 install_conf_file build-depkgs-qt-console
33562 chmod 755 bacula btraceback mtx-changer
33563 chmod 755 dvd-handler dvd-simulator
33564 chmod 755 bconsole disk-changer devel_bacula logrotate
33568 chmod 755 $c/update_mysql_tables_10_to_11 $c/update_sqlite3_tables_10_to_11
33569 chmod 755 $c/update_postgresql_tables_10_to_11
33570 chmod 755 $c/update_mysql_tables_11_to_12 $c/update_sqlite3_tables_11_to_12
33571 chmod 755 $c/update_postgresql_tables_11_to_12
33576 chmod 755 $c/create_bacula_database $c/update_bacula_tables $c/make_bacula_tables
33577 chmod 755 $c/grant_bacula_privileges $c/drop_bacula_tables $c/drop_bacula_database
33579 chmod 755 $c/create_mysql_database $c/update_mysql_tables $c/make_mysql_tables
33580 chmod 755 $c/grant_mysql_privileges $c/drop_mysql_tables $c/drop_mysql_database
33582 chmod 755 $c/create_sqlite3_database $c/update_sqlite3_tables $c/make_sqlite3_tables
33583 chmod 755 $c/grant_sqlite3_privileges $c/drop_sqlite3_tables $c/drop_sqlite3_database
33585 chmod 755 $c/create_postgresql_database $c/update_postgresql_tables $c/make_postgresql_tables
33586 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables $c/drop_postgresql_database
33588 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup $c/make_catalog_backup.pl
33589 chmod 755 $c/sqlite
33592 chmod 755 $c/install-default-backend
33594 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
33595 largefile_support="yes"
33598 if test X"$GCC" = "Xyes" ; then
33599 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
33600 if test "x${CCVERSION}" = "x" ; then
33601 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
33603 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
33604 if test x"${CXXVERSION}" = x ; then
33605 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
33609 # clean up any old junk
33613 ${MAKE:-make} clean
33616 Configuration on `date`:
33618 Host: ${host}${post_host} -- ${DISTNAME} ${DISTVER}
33619 Bacula version: ${BACULA} ${VERSION} (${DATE})
33620 Source code location: ${srcdir}
33621 Install binaries: ${sbindir}
33622 Install libraries: ${libdir}
33623 Install config files: ${sysconfdir}
33624 Scripts directory: ${scriptdir}
33625 Archive directory: ${archivedir}
33626 Working directory: ${working_dir}
33627 PID directory: ${piddir}
33628 Subsys directory: ${subsysdir}
33629 Man directory: ${mandir}
33630 Data directory: ${datarootdir}
33631 Plugin directory: ${plugindir}
33632 C Compiler: ${CC} ${CCVERSION}
33633 C++ Compiler: ${CXX} ${CXXVERSION}
33634 Compiler flags: ${WCFLAGS} ${CFLAGS}
33635 Linker flags: ${WLDFLAGS} ${LDFLAGS}
33637 Statically Linked Tools: ${support_static_tools}
33638 Statically Linked FD: ${support_static_fd}
33639 Statically Linked SD: ${support_static_sd}
33640 Statically Linked DIR: ${support_static_dir}
33641 Statically Linked CONS: ${support_static_cons}
33642 Database backends: ${db_backends}
33643 Database port: ${db_port}
33644 Database name: ${db_name}
33645 Database user: ${db_user}
33647 Job Output Email: ${job_email}
33648 Traceback Email: ${dump_email}
33649 SMTP Host Address: ${smtp_host}
33651 Director Port: ${dir_port}
33652 File daemon Port: ${fd_port}
33653 Storage daemon Port: ${sd_port}
33655 Director User: ${dir_user}
33656 Director Group: ${dir_group}
33657 Storage Daemon User: ${sd_user}
33658 Storage DaemonGroup: ${sd_group}
33659 File Daemon User: ${fd_user}
33660 File Daemon Group: ${fd_group}
33662 Large file support: $largefile_support
33663 Bacula conio support: ${got_conio} ${CONS_LIBS}
33664 readline support: ${got_readline} ${PRTREADLINE_SRC}
33665 TCP Wrappers support: ${TCPW_MSG} ${WRAPLIBS}
33666 TLS support: ${support_tls}
33667 Encryption support: ${support_crypto}
33668 ZLIB support: ${have_zlib}
33669 LZO support: ${have_lzo}
33670 enable-smartalloc: ${support_smartalloc}
33671 enable-lockmgr: ${support_lockmgr}
33672 bat support: ${support_bat}
33673 client-only: ${build_client_only}
33674 build-dird: ${build_dird}
33675 build-stored: ${build_stored}
33676 Plugin support: ${have_plugins}
33677 AFS support: ${have_afs}
33678 ACL support: ${have_acl}
33679 XATTR support: ${have_xattr}
33680 systemd support: ${support_systemd} ${SYSTEMD_UNITDIR}
33681 Batch insert enabled: ${batch_insert_db_backends}
33685 # create a small shell script useful for support with
33686 # configure options and config.out info
33687 cat > scripts/bacula_config << EOF
33690 $ $0 $ac_configure_args
33692 cat config.out >> scripts/bacula_config
33693 echo __EOC__ >> scripts/bacula_config
33694 chmod 755 scripts/bacula_config