2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for bacula 5.1.14.
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
27 case `(set -o) 2>/dev/null` in #(
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 as_echo_n='sh -c $as_echo_n_body as_echo'
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
91 # Find who we are. Look in the path if we contain no directory separator.
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137 if test "x$CONFIG_SHELL" = x; then
138 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
142 # is contrary to our usage. Disable this feature.
143 alias -g '\${1+\"\$@\"}'='\"\$@\"'
146 case \`(set -o) 2>/dev/null\` in #(
154 as_required="as_fn_return () { (exit \$1); }
155 as_fn_success () { as_fn_return 0; }
156 as_fn_failure () { as_fn_return 1; }
157 as_fn_ret_success () { return 0; }
158 as_fn_ret_failure () { return 1; }
161 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
162 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
163 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
164 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
165 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168 exitcode=1; echo positional parameters were not saved.
170 test x\$exitcode = x0 || exit 1"
171 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
172 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
173 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
174 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
175 test \$(( 1 + 1 )) = 2 || exit 1"
176 if (eval "$as_required") 2>/dev/null; then :
181 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
186 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
189 test -z "$as_dir" && as_dir=.
193 for as_base in sh bash ksh sh5; do
194 # Try only shells that exist, to save several forks.
195 as_shell=$as_dir/$as_base
196 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
197 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
198 CONFIG_SHELL=$as_shell as_have_required=yes
199 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
207 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
208 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
209 CONFIG_SHELL=$SHELL as_have_required=yes
214 if test "x$CONFIG_SHELL" != x; then :
215 # We cannot yet assume a decent shell, so we have to provide a
216 # neutralization value for shells without unset; and this also
217 # works around shells that cannot unset nonexistent variables.
218 # Preserve -v and -x to the replacement shell.
221 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
224 *v*x* | *x*v* ) as_opts=-vx ;;
229 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
232 if test x$as_have_required = xno; then :
233 $as_echo "$0: This script requires a shell more modern than all"
234 $as_echo "$0: the shells that I found on your system."
235 if test x${ZSH_VERSION+set} = xset ; then
236 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
237 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
239 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
240 $0: including any error possibly output before this
241 $0: message. Then install a modern shell, or manually run
242 $0: the script under such a shell if you do have one."
248 SHELL=${CONFIG_SHELL-/bin/sh}
250 # Unset more variables known to interfere with behavior of common tools.
251 CLICOLOR_FORCE= GREP_OPTIONS=
252 unset CLICOLOR_FORCE GREP_OPTIONS
254 ## --------------------- ##
255 ## M4sh Shell Functions. ##
256 ## --------------------- ##
259 # Portably unset VAR.
262 { eval $1=; unset $1;}
266 # as_fn_set_status STATUS
267 # -----------------------
268 # Set $? to STATUS, without forking.
276 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
286 # Create "$as_dir" as a directory, including parents if necessary.
291 -*) as_dir=./$as_dir;;
293 test -d "$as_dir" || eval $as_mkdir_p || {
297 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
300 as_dirs="'$as_qdir' $as_dirs"
301 as_dir=`$as_dirname -- "$as_dir" ||
302 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
303 X"$as_dir" : 'X\(//\)[^/]' \| \
304 X"$as_dir" : 'X\(//\)$' \| \
305 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
306 $as_echo X"$as_dir" |
307 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
324 test -d "$as_dir" && break
326 test -z "$as_dirs" || eval "mkdir $as_dirs"
327 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
331 # as_fn_append VAR VALUE
332 # ----------------------
333 # Append the text in VALUE to the end of the definition contained in VAR. Take
334 # advantage of any shell optimizations that allow amortized linear growth over
335 # repeated appends, instead of the typical quadratic growth present in naive
337 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
338 eval 'as_fn_append ()
351 # Perform arithmetic evaluation on the ARGs, and store the result in the
352 # global $as_val. Take advantage of shells that can avoid forks. The arguments
353 # must be portable across $(()) and expr.
354 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
362 as_val=`expr "$@" || test $? -eq 1`
367 # as_fn_error STATUS ERROR [LINENO LOG_FD]
368 # ----------------------------------------
369 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
370 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
371 # script with STATUS, using 1 if that was 0.
374 as_status=$1; test $as_status -eq 0 && as_status=1
376 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
377 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
379 $as_echo "$as_me: error: $2" >&2
380 as_fn_exit $as_status
383 if expr a : '\(a\)' >/dev/null 2>&1 &&
384 test "X`expr 00001 : '.*\(...\)'`" = X001; then
390 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
396 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
402 as_me=`$as_basename -- "$0" ||
403 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
404 X"$0" : 'X\(//\)$' \| \
405 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
407 sed '/^.*\/\([^/][^/]*\)\/*$/{
421 # Avoid depending upon Character Ranges.
422 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
423 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
424 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
425 as_cr_digits='0123456789'
426 as_cr_alnum=$as_cr_Letters$as_cr_digits
429 as_lineno_1=$LINENO as_lineno_1a=$LINENO
430 as_lineno_2=$LINENO as_lineno_2a=$LINENO
431 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
432 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
433 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
445 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
449 chmod +x "$as_me.lineno" ||
450 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
452 # Don't try to exec as it changes $[0], causing all sort of problems
453 # (the dirname of $[0] is not the place where we might find the
454 # original and so on. Autoconf is especially sensitive to this).
456 # Exit status is that of the last command.
460 ECHO_C= ECHO_N= ECHO_T=
461 case `echo -n x` in #(((((
463 case `echo 'xy\c'` in
464 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
466 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
473 rm -f conf$$ conf$$.exe conf$$.file
474 if test -d conf$$.dir; then
475 rm -f conf$$.dir/conf$$.file
478 mkdir conf$$.dir 2>/dev/null
480 if (echo >conf$$.file) 2>/dev/null; then
481 if ln -s conf$$.file conf$$ 2>/dev/null; then
483 # ... but there are two gotchas:
484 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
485 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
486 # In both cases, we have to default to `cp -p'.
487 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
489 elif ln conf$$.file conf$$ 2>/dev/null; then
497 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
498 rmdir conf$$.dir 2>/dev/null
500 if mkdir -p . 2>/dev/null; then
501 as_mkdir_p='mkdir -p "$as_dir"'
503 test -d ./-p && rmdir ./-p
507 if test -x / >/dev/null 2>&1; then
510 if ls -dL / >/dev/null 2>&1; then
517 if test -d "$1"; then
523 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
524 ???[sx]*):;;*)false;;esac;fi
528 as_executable_p=$as_test_x
530 # Sed expression to map a string onto a valid CPP name.
531 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
533 # Sed expression to map a string onto a valid variable name.
534 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
538 # Check that we are running under the correct shell.
539 SHELL=${CONFIG_SHELL-/bin/sh}
543 # Remove one level of quotation (which was required for Make).
544 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
549 if test "X$1" = X--no-reexec; then
550 # Discard the --no-reexec flag, and continue.
552 elif test "X$1" = X--fallback-echo; then
553 # Avoid inline document here, it may be left over
555 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
556 # Yippee, $ECHO works!
559 # Restart under the correct shell.
560 exec $SHELL "$0" --no-reexec ${1+"$@"}
563 if test "X$1" = X--fallback-echo; then
564 # used as fallback echo
572 # The HP-UX ksh and POSIX shell print the target directory to stdout
574 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
576 if test -z "$lt_ECHO"; then
577 if test "X${echo_test_string+set}" != Xset; then
578 # find a string as large as possible, as long as the shell can cope with it
579 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
580 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
581 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
582 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
589 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
590 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
591 test "X$echo_testing_string" = "X$echo_test_string"; then
594 # The Solaris, AIX, and Digital Unix default echo programs unquote
595 # backslashes. This makes it impossible to quote backslashes using
596 # echo "$something" | sed 's/\\/\\\\/g'
598 # So, first we look for a working echo in the user's PATH.
600 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
601 for dir in $PATH /usr/ucb; do
603 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
604 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
605 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
606 test "X$echo_testing_string" = "X$echo_test_string"; then
613 if test "X$ECHO" = Xecho; then
614 # We didn't find a better echo, so look for alternatives.
615 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
616 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
617 test "X$echo_testing_string" = "X$echo_test_string"; then
618 # This shell has a builtin print -r that does the trick.
620 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
621 test "X$CONFIG_SHELL" != X/bin/ksh; then
622 # If we have ksh, try running configure again with it.
623 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
624 export ORIGINAL_CONFIG_SHELL
625 CONFIG_SHELL=/bin/ksh
627 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
631 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
632 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
633 test "X$echo_testing_string" = "X$echo_test_string"; then
636 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
637 test "X$echo_testing_string" = 'X\t' &&
638 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
639 test "X$echo_testing_string" = "X$echo_test_string"; then
640 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
642 SHELL="$CONFIG_SHELL"
644 ECHO="$CONFIG_SHELL $0 --fallback-echo"
645 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
646 test "X$echo_testing_string" = 'X\t' &&
647 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
648 test "X$echo_testing_string" = "X$echo_test_string"; then
649 ECHO="$CONFIG_SHELL $0 --fallback-echo"
651 # maybe with a smaller string...
654 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
655 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
662 if test "$prev" != 'sed 50q "$0"'; then
663 echo_test_string=`eval $prev`
664 export echo_test_string
665 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
667 # Oops. We lost completely, so just stick with echo.
676 # Copy echo and quote the copy suitably for passing to libtool from
677 # the Makefile, instead of quoting the original, which is used later.
679 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
680 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
686 test -n "$DJDIR" || exec 7<&0 </dev/null
690 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
691 # so uname gets run too.
692 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
697 ac_default_prefix=/usr/local
699 ac_config_libobj_dir=.
706 # Identity of this package.
707 PACKAGE_NAME='bacula'
708 PACKAGE_TARNAME='bacula'
709 PACKAGE_VERSION='5.1.14'
710 PACKAGE_STRING='bacula 5.1.14'
714 ac_unique_file="src/version.h"
715 # Factoring default headers for most tests.
716 ac_includes_default="\
718 #ifdef HAVE_SYS_TYPES_H
719 # include <sys/types.h>
721 #ifdef HAVE_SYS_STAT_H
722 # include <sys/stat.h>
728 # ifdef HAVE_STDLIB_H
733 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
738 #ifdef HAVE_STRINGS_H
739 # include <strings.h>
741 #ifdef HAVE_INTTYPES_H
742 # include <inttypes.h>
752 ac_subst_vars='LTLIBOBJS
778 SHARED_CATALOG_TARGETS
858 TRAY_MONITOR_CPPFLAGS
867 INTL_LIBTOOL_SUFFIX_PREFIX
874 BUILD_INCLUDED_LIBINTL
905 HAVE_OPENBSD_OS_FALSE
909 HAVE_FREEBSD_OS_FALSE
921 INCLUDE_UNINSTALL_TARGET
922 INCLUDE_INSTALL_TARGET
926 LIBTOOL_UNINSTALL_TARGET
927 LIBTOOL_INSTALL_TARGET
928 DEFAULT_SHARED_OBJECT_TYPE
1002 LIBBACFIND_LT_RELEASE
1003 LIBBACCATS_LT_RELEASE
1004 LIBBACSQL_LT_RELEASE
1006 LIBBACCFG_LT_RELEASE
1048 program_transform_name
1059 ac_subst_files='MCOMMON'
1061 enable_option_checking
1072 with_libiconv_prefix
1074 with_included_gettext
1113 with_mon_dir_password
1114 with_mon_fd_password
1115 with_mon_sd_password
1142 ac_precious_vars='build_alias
1160 # Initialize some variables set by options.
1162 ac_init_version=false
1163 ac_unrecognized_opts=
1164 ac_unrecognized_sep=
1165 # The variables have the same names as the options, with
1166 # dashes changed to underlines.
1167 cache_file=/dev/null
1174 program_transform_name=s,x,x,
1182 # Installation directory options.
1183 # These are left unexpanded so users can "make install exec_prefix=/foo"
1184 # and all the variables that are supposed to be based on exec_prefix
1185 # by default will actually change.
1186 # Use braces instead of parens because sh, perl, etc. also accept them.
1187 # (The list follows the same order as the GNU Coding Standards.)
1188 bindir='${exec_prefix}/bin'
1189 sbindir='${exec_prefix}/sbin'
1190 libexecdir='${exec_prefix}/libexec'
1191 datarootdir='${prefix}/share'
1192 datadir='${datarootdir}'
1193 sysconfdir='${prefix}/etc'
1194 sharedstatedir='${prefix}/com'
1195 localstatedir='${prefix}/var'
1196 includedir='${prefix}/include'
1197 oldincludedir='/usr/include'
1198 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1199 infodir='${datarootdir}/info'
1204 libdir='${exec_prefix}/lib'
1205 localedir='${datarootdir}/locale'
1206 mandir='${datarootdir}/man'
1212 # If the previous option needs an argument, assign it.
1213 if test -n "$ac_prev"; then
1214 eval $ac_prev=\$ac_option
1220 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1225 # Accept the important Cygnus configure options, so we can diagnose typos.
1227 case $ac_dashdash$ac_option in
1231 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1233 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1234 bindir=$ac_optarg ;;
1236 -build | --build | --buil | --bui | --bu)
1237 ac_prev=build_alias ;;
1238 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1239 build_alias=$ac_optarg ;;
1241 -cache-file | --cache-file | --cache-fil | --cache-fi \
1242 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1243 ac_prev=cache_file ;;
1244 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1245 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1246 cache_file=$ac_optarg ;;
1248 --config-cache | -C)
1249 cache_file=config.cache ;;
1251 -datadir | --datadir | --datadi | --datad)
1253 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1254 datadir=$ac_optarg ;;
1256 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1257 | --dataroo | --dataro | --datar)
1258 ac_prev=datarootdir ;;
1259 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1260 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1261 datarootdir=$ac_optarg ;;
1263 -disable-* | --disable-*)
1264 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1265 # Reject names that are not valid shell variable names.
1266 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1267 as_fn_error $? "invalid feature name: $ac_useropt"
1268 ac_useropt_orig=$ac_useropt
1269 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1270 case $ac_user_opts in
1272 "enable_$ac_useropt"
1274 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1275 ac_unrecognized_sep=', ';;
1277 eval enable_$ac_useropt=no ;;
1279 -docdir | --docdir | --docdi | --doc | --do)
1281 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1282 docdir=$ac_optarg ;;
1284 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1286 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1287 dvidir=$ac_optarg ;;
1289 -enable-* | --enable-*)
1290 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1291 # Reject names that are not valid shell variable names.
1292 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1293 as_fn_error $? "invalid feature name: $ac_useropt"
1294 ac_useropt_orig=$ac_useropt
1295 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1296 case $ac_user_opts in
1298 "enable_$ac_useropt"
1300 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1301 ac_unrecognized_sep=', ';;
1303 eval enable_$ac_useropt=\$ac_optarg ;;
1305 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1306 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1307 | --exec | --exe | --ex)
1308 ac_prev=exec_prefix ;;
1309 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1310 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1311 | --exec=* | --exe=* | --ex=*)
1312 exec_prefix=$ac_optarg ;;
1314 -gas | --gas | --ga | --g)
1315 # Obsolete; use --with-gas.
1318 -help | --help | --hel | --he | -h)
1319 ac_init_help=long ;;
1320 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1321 ac_init_help=recursive ;;
1322 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1323 ac_init_help=short ;;
1325 -host | --host | --hos | --ho)
1326 ac_prev=host_alias ;;
1327 -host=* | --host=* | --hos=* | --ho=*)
1328 host_alias=$ac_optarg ;;
1330 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1332 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1334 htmldir=$ac_optarg ;;
1336 -includedir | --includedir | --includedi | --included | --include \
1337 | --includ | --inclu | --incl | --inc)
1338 ac_prev=includedir ;;
1339 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1340 | --includ=* | --inclu=* | --incl=* | --inc=*)
1341 includedir=$ac_optarg ;;
1343 -infodir | --infodir | --infodi | --infod | --info | --inf)
1345 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1346 infodir=$ac_optarg ;;
1348 -libdir | --libdir | --libdi | --libd)
1350 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1351 libdir=$ac_optarg ;;
1353 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1354 | --libexe | --libex | --libe)
1355 ac_prev=libexecdir ;;
1356 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1357 | --libexe=* | --libex=* | --libe=*)
1358 libexecdir=$ac_optarg ;;
1360 -localedir | --localedir | --localedi | --localed | --locale)
1361 ac_prev=localedir ;;
1362 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1363 localedir=$ac_optarg ;;
1365 -localstatedir | --localstatedir | --localstatedi | --localstated \
1366 | --localstate | --localstat | --localsta | --localst | --locals)
1367 ac_prev=localstatedir ;;
1368 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1369 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1370 localstatedir=$ac_optarg ;;
1372 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1374 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1375 mandir=$ac_optarg ;;
1377 -nfp | --nfp | --nf)
1378 # Obsolete; use --without-fp.
1381 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1382 | --no-cr | --no-c | -n)
1385 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1386 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1389 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1390 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1391 | --oldin | --oldi | --old | --ol | --o)
1392 ac_prev=oldincludedir ;;
1393 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1394 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1395 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1396 oldincludedir=$ac_optarg ;;
1398 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1400 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1401 prefix=$ac_optarg ;;
1403 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1404 | --program-pre | --program-pr | --program-p)
1405 ac_prev=program_prefix ;;
1406 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1407 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1408 program_prefix=$ac_optarg ;;
1410 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1411 | --program-suf | --program-su | --program-s)
1412 ac_prev=program_suffix ;;
1413 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1414 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1415 program_suffix=$ac_optarg ;;
1417 -program-transform-name | --program-transform-name \
1418 | --program-transform-nam | --program-transform-na \
1419 | --program-transform-n | --program-transform- \
1420 | --program-transform | --program-transfor \
1421 | --program-transfo | --program-transf \
1422 | --program-trans | --program-tran \
1423 | --progr-tra | --program-tr | --program-t)
1424 ac_prev=program_transform_name ;;
1425 -program-transform-name=* | --program-transform-name=* \
1426 | --program-transform-nam=* | --program-transform-na=* \
1427 | --program-transform-n=* | --program-transform-=* \
1428 | --program-transform=* | --program-transfor=* \
1429 | --program-transfo=* | --program-transf=* \
1430 | --program-trans=* | --program-tran=* \
1431 | --progr-tra=* | --program-tr=* | --program-t=*)
1432 program_transform_name=$ac_optarg ;;
1434 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1436 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1437 pdfdir=$ac_optarg ;;
1439 -psdir | --psdir | --psdi | --psd | --ps)
1441 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1444 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1445 | -silent | --silent | --silen | --sile | --sil)
1448 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1450 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1452 sbindir=$ac_optarg ;;
1454 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1455 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1456 | --sharedst | --shareds | --shared | --share | --shar \
1458 ac_prev=sharedstatedir ;;
1459 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1460 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1461 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1463 sharedstatedir=$ac_optarg ;;
1465 -site | --site | --sit)
1467 -site=* | --site=* | --sit=*)
1470 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1472 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1473 srcdir=$ac_optarg ;;
1475 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1476 | --syscon | --sysco | --sysc | --sys | --sy)
1477 ac_prev=sysconfdir ;;
1478 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1479 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1480 sysconfdir=$ac_optarg ;;
1482 -target | --target | --targe | --targ | --tar | --ta | --t)
1483 ac_prev=target_alias ;;
1484 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1485 target_alias=$ac_optarg ;;
1487 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1490 -version | --version | --versio | --versi | --vers | -V)
1491 ac_init_version=: ;;
1494 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1495 # Reject names that are not valid shell variable names.
1496 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1497 as_fn_error $? "invalid package name: $ac_useropt"
1498 ac_useropt_orig=$ac_useropt
1499 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1500 case $ac_user_opts in
1504 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1505 ac_unrecognized_sep=', ';;
1507 eval with_$ac_useropt=\$ac_optarg ;;
1509 -without-* | --without-*)
1510 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1511 # Reject names that are not valid shell variable names.
1512 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1513 as_fn_error $? "invalid package name: $ac_useropt"
1514 ac_useropt_orig=$ac_useropt
1515 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1516 case $ac_user_opts in
1520 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1521 ac_unrecognized_sep=', ';;
1523 eval with_$ac_useropt=no ;;
1526 # Obsolete; use --with-x.
1529 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1530 | --x-incl | --x-inc | --x-in | --x-i)
1531 ac_prev=x_includes ;;
1532 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1533 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1534 x_includes=$ac_optarg ;;
1536 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1537 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1538 ac_prev=x_libraries ;;
1539 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1540 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1541 x_libraries=$ac_optarg ;;
1543 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1544 Try \`$0 --help' for more information"
1548 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1549 # Reject names that are not valid shell variable names.
1550 case $ac_envvar in #(
1551 '' | [0-9]* | *[!_$as_cr_alnum]* )
1552 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1554 eval $ac_envvar=\$ac_optarg
1555 export $ac_envvar ;;
1558 # FIXME: should be removed in autoconf 3.0.
1559 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1560 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1561 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1562 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1568 if test -n "$ac_prev"; then
1569 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1570 as_fn_error $? "missing argument to $ac_option"
1573 if test -n "$ac_unrecognized_opts"; then
1574 case $enable_option_checking in
1576 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1577 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1581 # Check all directory arguments for consistency.
1582 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1583 datadir sysconfdir sharedstatedir localstatedir includedir \
1584 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1585 libdir localedir mandir
1587 eval ac_val=\$$ac_var
1588 # Remove trailing slashes.
1591 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1592 eval $ac_var=\$ac_val;;
1594 # Be sure to have absolute directory names.
1596 [\\/$]* | ?:[\\/]* ) continue;;
1597 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1599 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1602 # There might be people who depend on the old broken behavior: `$host'
1603 # used to hold the argument of --host etc.
1604 # FIXME: To remove some day.
1607 target=$target_alias
1609 # FIXME: To remove some day.
1610 if test "x$host_alias" != x; then
1611 if test "x$build_alias" = x; then
1612 cross_compiling=maybe
1613 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1614 If a cross compiler is detected then cross compile mode will be used" >&2
1615 elif test "x$build_alias" != "x$host_alias"; then
1621 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1623 test "$silent" = yes && exec 6>/dev/null
1626 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1627 ac_ls_di=`ls -di .` &&
1628 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1629 as_fn_error $? "working directory cannot be determined"
1630 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1631 as_fn_error $? "pwd does not report name of working directory"
1634 # Find the source files, if location was not specified.
1635 if test -z "$srcdir"; then
1636 ac_srcdir_defaulted=yes
1637 # Try the directory containing this script, then the parent directory.
1638 ac_confdir=`$as_dirname -- "$as_myself" ||
1639 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1640 X"$as_myself" : 'X\(//\)[^/]' \| \
1641 X"$as_myself" : 'X\(//\)$' \| \
1642 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1643 $as_echo X"$as_myself" |
1644 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1662 if test ! -r "$srcdir/$ac_unique_file"; then
1666 ac_srcdir_defaulted=no
1668 if test ! -r "$srcdir/$ac_unique_file"; then
1669 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1670 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1672 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1674 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1676 # When building in place, set srcdir=.
1677 if test "$ac_abs_confdir" = "$ac_pwd"; then
1680 # Remove unnecessary trailing slashes from srcdir.
1681 # Double slashes in file names in object file debugging info
1682 # mess up M-x gdb in Emacs.
1684 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1686 for ac_var in $ac_precious_vars; do
1687 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1688 eval ac_env_${ac_var}_value=\$${ac_var}
1689 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1690 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1694 # Report the --help message.
1696 if test "$ac_init_help" = "long"; then
1697 # Omit some internal or obsolete options to make the list less imposing.
1698 # This message is too long to be a string in the A/UX 3.1 sh.
1700 \`configure' configures bacula 5.1.14 to adapt to many kinds of systems.
1702 Usage: $0 [OPTION]... [VAR=VALUE]...
1704 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1705 VAR=VALUE. See below for descriptions of some of the useful variables.
1707 Defaults for the options are specified in brackets.
1710 -h, --help display this help and exit
1711 --help=short display options specific to this package
1712 --help=recursive display the short help of all the included packages
1713 -V, --version display version information and exit
1714 -q, --quiet, --silent do not print \`checking ...' messages
1715 --cache-file=FILE cache test results in FILE [disabled]
1716 -C, --config-cache alias for \`--cache-file=config.cache'
1717 -n, --no-create do not create output files
1718 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1720 Installation directories:
1721 --prefix=PREFIX install architecture-independent files in PREFIX
1722 [$ac_default_prefix]
1723 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1726 By default, \`make install' will install all the files in
1727 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1728 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1729 for instance \`--prefix=\$HOME'.
1731 For better control, use the options below.
1733 Fine tuning of the installation directories:
1734 --bindir=DIR user executables [EPREFIX/bin]
1735 --sbindir=DIR system admin executables [EPREFIX/sbin]
1736 --libexecdir=DIR program executables [EPREFIX/libexec]
1737 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1738 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1739 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1740 --libdir=DIR object code libraries [EPREFIX/lib]
1741 --includedir=DIR C header files [PREFIX/include]
1742 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1743 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1744 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1745 --infodir=DIR info documentation [DATAROOTDIR/info]
1746 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1747 --mandir=DIR man documentation [DATAROOTDIR/man]
1748 --docdir=DIR documentation root [DATAROOTDIR/doc/bacula]
1749 --htmldir=DIR html documentation [DOCDIR]
1750 --dvidir=DIR dvi documentation [DOCDIR]
1751 --pdfdir=DIR pdf documentation [DOCDIR]
1752 --psdir=DIR ps documentation [DOCDIR]
1758 --x-includes=DIR X include files are in DIR
1759 --x-libraries=DIR X library files are in DIR
1762 --build=BUILD configure for building on BUILD [guessed]
1763 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1767 if test -n "$ac_init_help"; then
1768 case $ac_init_help in
1769 short | recursive ) echo "Configuration of bacula 5.1.14:";;
1774 --disable-option-checking ignore unrecognized --enable/--with options
1775 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1776 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1777 --enable-libtool enable building using GNU libtool [default=yes]
1778 --enable-shared[=PKGS] build shared libraries [default=yes]
1779 --enable-static[=PKGS] build static libraries [default=no]
1780 --enable-fast-install[=PKGS]
1781 optimize for fast installation [default=yes]
1782 --disable-libtool-lock avoid locking (might break parallel builds)
1783 --enable-includes enable installing of include files [default=no]
1784 --disable-nls do not use Native Language Support
1785 --disable-rpath do not hardcode runtime library paths
1786 --enable-gnome enable build of bgnome-console GUI [default=no]
1787 --enable-bat enable build of bat Qt4 GUI [default=no]
1788 --enable-bwx-console enable build of wxWidgets console [default=no]
1789 --enable-tray-monitor enable build of Gnome tray monitor (compatible with
1791 --enable-smartalloc enable smartalloc debugging support [default=no]
1792 --enable-lockmgr enable lock manager support [default=no]
1793 --enable-static-tools enable static tape tools [default=no]
1794 --enable-static-fd enable static File daemon [default=no]
1795 --enable-static-sd enable static Storage daemon [default=no]
1796 --enable-static-dir enable static Director [default=no]
1797 --enable-static-cons enable static Console [default=no]
1798 --enable-client-only build client (File daemon) only [default=no]
1799 --enable-build-dird enable building of dird (Director) [default=yes]
1800 --enable-build-stored enable building of stored (Storage daemon)
1802 --disable-conio disable conio support [default=no]
1803 --enable-ipv6 enable ipv6 support [default=yes]
1804 --disable-readline disable readline support [default=yes]
1805 --enable-batch-insert enable the DB batch insert code [default=yes]
1806 --disable-largefile omit support for large files
1807 --disable-afs disable afs support [default=auto]
1808 --disable-acl disable acl support [default=auto]
1809 --disable-xattr disable xattr support [default=auto]
1812 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1813 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1814 --with-pic try to use only PIC/non-PIC objects [default=use
1816 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1817 --with-gnu-ld assume the C compiler uses GNU ld default=no
1818 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1819 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1820 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1821 --without-libintl-prefix don't search for libintl in includedir and libdir
1822 --with-included-gettext use the GNU gettext library included here
1823 --with-readline[=DIR] specify readline library directory
1824 --with-python[=DIR] Include Python support. DIR is the Python base
1825 install directory, default is to search through a
1826 number of common places for the Python files.
1827 --with-tcp-wrappers[=DIR]
1828 enable tcpwrappers support
1829 --with-openssl[=DIR] Include OpenSSL support. DIR is the OpenSSL base
1830 --with-working-dir=PATH specify path of Bacula working directory
1831 --with-archivedir=PATH specify path of SD archive directory
1832 --with-basename=RESNAME specify base resource name for daemons
1833 --with-hostname=RESNAME specify host name for daemons
1834 --with-scriptdir=PATH specify path of Bacula scripts directory
1835 --with-bsrdir=PATH specify path of Bacula bsrs directory
1836 --with-logdir=PATH specify path of Bacula logs directory
1837 --with-plugindir=PATH specify path of Bacula plugins directory
1838 --with-dump-email=EMAIL dump email address
1839 --with-job-email=EMAIL job output email address
1840 --with-smtp-host=HOST SMTP mail host address
1841 --with-pid-dir=PATH specify location of Bacula pid files
1842 --with-subsys-dir=PATH specify location of Bacula subsys file
1843 --with-baseport=PORT specify base port address for daemons
1844 --with-dir-password=PASSWORD
1845 specify Director's password
1846 --with-fd-password=PASSWORD
1847 specify Client's password
1848 --with-sd-password=PASSWORD
1849 specify Storage daemon's password
1850 --with-mon-dir-password=PASSWORD
1851 specify Director's password used by the monitor
1852 --with-mon-fd-password=PASSWORD
1853 specify Client's password used by the monitor
1854 --with-mon-sd-password=PASSWORD
1855 specify Storage daemon's password used by the
1857 --with-db-name=DBNAME specify database name [default=bacula]
1858 --with-db-user=UNAME specify database user [default=bacula]
1859 --with-db-password=PWD specify database password [default=*none*]
1860 --with-db-port=DBPORT specify a database port [default=null]
1861 --with-dir-user=USER specify user for Director daemon
1862 --with-dir-group=GROUP specify group for Director daemon
1863 --with-sd-user=USER specify user for Storage daemon
1864 --with-sd-group=GROUP specify group for Storage daemon
1865 --with-fd-user=USER specify user for File daemon
1866 --with-fd-group=GROUP specify group for File daemon
1867 --with-sbin-perm=MODE specify permissions for sbin binaries [default=0750]
1868 --with-postgresql[=DIR] Include PostgreSQL support. DIR is the PostgreSQL
1869 base install directory, [default=/usr/local/pgsql]
1870 --with-mysql[=DIR] Include MySQL support. DIR is the MySQL base install
1871 directory, default is to search through a number of
1872 common places for the MySQL files.
1873 --with-embedded-mysql[=DIR]
1874 Include MySQL support. DIR is the MySQL base install
1875 directory, default is to search through a number of
1876 common places for the MySQL files.
1877 --with-sqlite3[=DIR] Include SQLite3 support. DIR is the SQLite3 base
1878 install directory, default is to search through a
1879 number of common places for the SQLite3 files.
1880 --with-ingres[=DIR] Include Ingres support. DIR is the Ingres base
1881 install directory, default is to search through a
1882 number of common places for the Ingres files.
1883 --with-dbi[=DIR] Include DBI support. DIR is the DBD base install
1884 directory, default is to search through a number of
1885 common places for the DBI files.
1886 --with-dbi-driver[=DRIVER]
1887 Suport for DBI driver. DRIVER is the one DBI driver
1888 like Mysql, Postgresql, others. Default is to not
1889 configure any driver.
1890 --with-x use the X Window System
1891 --with-afsdir[=DIR] Directory holding AFS includes/libs
1893 Some influential environment variables:
1894 CC C compiler command
1895 CFLAGS C compiler flags
1896 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1897 nonstandard directory <lib dir>
1898 LIBS libraries to pass to the linker, e.g. -l<library>
1899 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1900 you have headers in a nonstandard directory <include dir>
1901 CXX C++ compiler command
1902 CXXFLAGS C++ compiler flags
1904 WXCONFIG wx-config command. On some systems, you must set it to
1905 wx-config-2.6 to use wxWidgets 2.6.
1906 WXFLAGS Parameters to pass to wx-config (e.g. --unicode=no).
1907 CXXCPP C++ preprocessor
1908 XMKMF Path to xmkmf, Makefile generator for X Window System
1910 Use these variables to override the choices made by `configure' or to help
1911 it to find libraries and programs with nonstandard names/locations.
1913 Report bugs to the package provider.
1918 if test "$ac_init_help" = "recursive"; then
1919 # If there are subdirs, report their specific --help.
1920 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1921 test -d "$ac_dir" ||
1922 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1927 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1929 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1930 # A ".." for each directory in $ac_dir_suffix.
1931 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1932 case $ac_top_builddir_sub in
1933 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1934 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1937 ac_abs_top_builddir=$ac_pwd
1938 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1939 # for backward compatibility:
1940 ac_top_builddir=$ac_top_build_prefix
1943 .) # We are building in place.
1945 ac_top_srcdir=$ac_top_builddir_sub
1946 ac_abs_top_srcdir=$ac_pwd ;;
1947 [\\/]* | ?:[\\/]* ) # Absolute name.
1948 ac_srcdir=$srcdir$ac_dir_suffix;
1949 ac_top_srcdir=$srcdir
1950 ac_abs_top_srcdir=$srcdir ;;
1952 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1953 ac_top_srcdir=$ac_top_build_prefix$srcdir
1954 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1956 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1958 cd "$ac_dir" || { ac_status=$?; continue; }
1959 # Check for guested configure.
1960 if test -f "$ac_srcdir/configure.gnu"; then
1962 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1963 elif test -f "$ac_srcdir/configure"; then
1965 $SHELL "$ac_srcdir/configure" --help=recursive
1967 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1969 cd "$ac_pwd" || { ac_status=$?; break; }
1973 test -n "$ac_init_help" && exit $ac_status
1974 if $ac_init_version; then
1976 bacula configure 5.1.14
1977 generated by GNU Autoconf 2.68
1979 Copyright (C) 2010 Free Software Foundation, Inc.
1980 This configure script is free software; the Free Software Foundation
1981 gives unlimited permission to copy, distribute and modify it.
1986 ## ------------------------ ##
1987 ## Autoconf initialization. ##
1988 ## ------------------------ ##
1990 # ac_fn_c_try_compile LINENO
1991 # --------------------------
1992 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1993 ac_fn_c_try_compile ()
1995 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1996 rm -f conftest.$ac_objext
1997 if { { ac_try="$ac_compile"
1999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2000 *) ac_try_echo=$ac_try;;
2002 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2003 $as_echo "$ac_try_echo"; } >&5
2004 (eval "$ac_compile") 2>conftest.err
2006 if test -s conftest.err; then
2007 grep -v '^ *+' conftest.err >conftest.er1
2008 cat conftest.er1 >&5
2009 mv -f conftest.er1 conftest.err
2011 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2012 test $ac_status = 0; } && {
2013 test -z "$ac_c_werror_flag" ||
2014 test ! -s conftest.err
2015 } && test -s conftest.$ac_objext; then :
2018 $as_echo "$as_me: failed program was:" >&5
2019 sed 's/^/| /' conftest.$ac_ext >&5
2023 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2024 as_fn_set_status $ac_retval
2026 } # ac_fn_c_try_compile
2028 # ac_fn_cxx_try_compile LINENO
2029 # ----------------------------
2030 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2031 ac_fn_cxx_try_compile ()
2033 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2034 rm -f conftest.$ac_objext
2035 if { { ac_try="$ac_compile"
2037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2038 *) ac_try_echo=$ac_try;;
2040 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2041 $as_echo "$ac_try_echo"; } >&5
2042 (eval "$ac_compile") 2>conftest.err
2044 if test -s conftest.err; then
2045 grep -v '^ *+' conftest.err >conftest.er1
2046 cat conftest.er1 >&5
2047 mv -f conftest.er1 conftest.err
2049 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2050 test $ac_status = 0; } && {
2051 test -z "$ac_cxx_werror_flag" ||
2052 test ! -s conftest.err
2053 } && test -s conftest.$ac_objext; then :
2056 $as_echo "$as_me: failed program was:" >&5
2057 sed 's/^/| /' conftest.$ac_ext >&5
2061 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2062 as_fn_set_status $ac_retval
2064 } # ac_fn_cxx_try_compile
2066 # ac_fn_c_try_cpp LINENO
2067 # ----------------------
2068 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2071 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2072 if { { ac_try="$ac_cpp conftest.$ac_ext"
2074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2075 *) ac_try_echo=$ac_try;;
2077 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2078 $as_echo "$ac_try_echo"; } >&5
2079 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2081 if test -s conftest.err; then
2082 grep -v '^ *+' conftest.err >conftest.er1
2083 cat conftest.er1 >&5
2084 mv -f conftest.er1 conftest.err
2086 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2087 test $ac_status = 0; } > conftest.i && {
2088 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2089 test ! -s conftest.err
2093 $as_echo "$as_me: failed program was:" >&5
2094 sed 's/^/| /' conftest.$ac_ext >&5
2098 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2099 as_fn_set_status $ac_retval
2103 # ac_fn_c_try_link LINENO
2104 # -----------------------
2105 # Try to link conftest.$ac_ext, and return whether this succeeded.
2108 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2109 rm -f conftest.$ac_objext conftest$ac_exeext
2110 if { { ac_try="$ac_link"
2112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2113 *) ac_try_echo=$ac_try;;
2115 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2116 $as_echo "$ac_try_echo"; } >&5
2117 (eval "$ac_link") 2>conftest.err
2119 if test -s conftest.err; then
2120 grep -v '^ *+' conftest.err >conftest.er1
2121 cat conftest.er1 >&5
2122 mv -f conftest.er1 conftest.err
2124 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2125 test $ac_status = 0; } && {
2126 test -z "$ac_c_werror_flag" ||
2127 test ! -s conftest.err
2128 } && test -s conftest$ac_exeext && {
2129 test "$cross_compiling" = yes ||
2130 $as_test_x conftest$ac_exeext
2134 $as_echo "$as_me: failed program was:" >&5
2135 sed 's/^/| /' conftest.$ac_ext >&5
2139 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2140 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2141 # interfere with the next link command; also delete a directory that is
2142 # left behind by Apple's compiler. We do this before executing the actions.
2143 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2144 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2145 as_fn_set_status $ac_retval
2147 } # ac_fn_c_try_link
2149 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2150 # -------------------------------------------------------
2151 # Tests whether HEADER exists and can be compiled using the include files in
2152 # INCLUDES, setting the cache variable VAR accordingly.
2153 ac_fn_c_check_header_compile ()
2155 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2157 $as_echo_n "checking for $2... " >&6; }
2158 if eval \${$3+:} false; then :
2159 $as_echo_n "(cached) " >&6
2161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2162 /* end confdefs.h. */
2166 if ac_fn_c_try_compile "$LINENO"; then :
2171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2175 $as_echo "$ac_res" >&6; }
2176 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2178 } # ac_fn_c_check_header_compile
2180 # ac_fn_c_try_run LINENO
2181 # ----------------------
2182 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2183 # that executables *can* be run.
2186 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2187 if { { ac_try="$ac_link"
2189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2190 *) ac_try_echo=$ac_try;;
2192 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2193 $as_echo "$ac_try_echo"; } >&5
2194 (eval "$ac_link") 2>&5
2196 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2197 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2198 { { case "(($ac_try" in
2199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2200 *) ac_try_echo=$ac_try;;
2202 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2203 $as_echo "$ac_try_echo"; } >&5
2204 (eval "$ac_try") 2>&5
2206 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2207 test $ac_status = 0; }; }; then :
2210 $as_echo "$as_me: program exited with status $ac_status" >&5
2211 $as_echo "$as_me: failed program was:" >&5
2212 sed 's/^/| /' conftest.$ac_ext >&5
2214 ac_retval=$ac_status
2216 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2217 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2218 as_fn_set_status $ac_retval
2222 # ac_fn_c_check_func LINENO FUNC VAR
2223 # ----------------------------------
2224 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2225 ac_fn_c_check_func ()
2227 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2229 $as_echo_n "checking for $2... " >&6; }
2230 if eval \${$3+:} false; then :
2231 $as_echo_n "(cached) " >&6
2233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2234 /* end confdefs.h. */
2235 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2236 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2237 #define $2 innocuous_$2
2239 /* System header to define __stub macros and hopefully few prototypes,
2240 which can conflict with char $2 (); below.
2241 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2242 <limits.h> exists even on freestanding compilers. */
2245 # include <limits.h>
2247 # include <assert.h>
2252 /* Override any GCC internal prototype to avoid an error.
2253 Use char because int might match the return type of a GCC
2254 builtin and then its argument prototype would still apply. */
2259 /* The GNU C library defines this for functions which it implements
2260 to always fail with ENOSYS. Some functions are actually named
2261 something starting with __ and the normal name is an alias. */
2262 #if defined __stub_$2 || defined __stub___$2
2274 if ac_fn_c_try_link "$LINENO"; then :
2279 rm -f core conftest.err conftest.$ac_objext \
2280 conftest$ac_exeext conftest.$ac_ext
2283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2284 $as_echo "$ac_res" >&6; }
2285 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2287 } # ac_fn_c_check_func
2289 # ac_fn_cxx_try_cpp LINENO
2290 # ------------------------
2291 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2292 ac_fn_cxx_try_cpp ()
2294 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2295 if { { ac_try="$ac_cpp conftest.$ac_ext"
2297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2298 *) ac_try_echo=$ac_try;;
2300 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2301 $as_echo "$ac_try_echo"; } >&5
2302 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2304 if test -s conftest.err; then
2305 grep -v '^ *+' conftest.err >conftest.er1
2306 cat conftest.er1 >&5
2307 mv -f conftest.er1 conftest.err
2309 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2310 test $ac_status = 0; } > conftest.i && {
2311 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2312 test ! -s conftest.err
2316 $as_echo "$as_me: failed program was:" >&5
2317 sed 's/^/| /' conftest.$ac_ext >&5
2321 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2322 as_fn_set_status $ac_retval
2324 } # ac_fn_cxx_try_cpp
2326 # ac_fn_cxx_try_link LINENO
2327 # -------------------------
2328 # Try to link conftest.$ac_ext, and return whether this succeeded.
2329 ac_fn_cxx_try_link ()
2331 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2332 rm -f conftest.$ac_objext conftest$ac_exeext
2333 if { { ac_try="$ac_link"
2335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2336 *) ac_try_echo=$ac_try;;
2338 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2339 $as_echo "$ac_try_echo"; } >&5
2340 (eval "$ac_link") 2>conftest.err
2342 if test -s conftest.err; then
2343 grep -v '^ *+' conftest.err >conftest.er1
2344 cat conftest.er1 >&5
2345 mv -f conftest.er1 conftest.err
2347 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2348 test $ac_status = 0; } && {
2349 test -z "$ac_cxx_werror_flag" ||
2350 test ! -s conftest.err
2351 } && test -s conftest$ac_exeext && {
2352 test "$cross_compiling" = yes ||
2353 $as_test_x conftest$ac_exeext
2357 $as_echo "$as_me: failed program was:" >&5
2358 sed 's/^/| /' conftest.$ac_ext >&5
2362 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2363 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2364 # interfere with the next link command; also delete a directory that is
2365 # left behind by Apple's compiler. We do this before executing the actions.
2366 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2367 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2368 as_fn_set_status $ac_retval
2370 } # ac_fn_cxx_try_link
2372 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2373 # -------------------------------------------
2374 # Tests whether TYPE exists after having included INCLUDES, setting cache
2375 # variable VAR accordingly.
2376 ac_fn_c_check_type ()
2378 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2380 $as_echo_n "checking for $2... " >&6; }
2381 if eval \${$3+:} false; then :
2382 $as_echo_n "(cached) " >&6
2385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2386 /* end confdefs.h. */
2397 if ac_fn_c_try_compile "$LINENO"; then :
2398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2399 /* end confdefs.h. */
2410 if ac_fn_c_try_compile "$LINENO"; then :
2415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2421 $as_echo "$ac_res" >&6; }
2422 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2424 } # ac_fn_c_check_type
2426 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2427 # -------------------------------------------------------
2428 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2429 # the include files in INCLUDES and setting the cache variable VAR
2431 ac_fn_c_check_header_mongrel ()
2433 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2434 if eval \${$3+:} false; then :
2435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2436 $as_echo_n "checking for $2... " >&6; }
2437 if eval \${$3+:} false; then :
2438 $as_echo_n "(cached) " >&6
2441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2442 $as_echo "$ac_res" >&6; }
2444 # Is the header compilable?
2445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2446 $as_echo_n "checking $2 usability... " >&6; }
2447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2448 /* end confdefs.h. */
2452 if ac_fn_c_try_compile "$LINENO"; then :
2453 ac_header_compiler=yes
2455 ac_header_compiler=no
2457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2459 $as_echo "$ac_header_compiler" >&6; }
2461 # Is the header present?
2462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2463 $as_echo_n "checking $2 presence... " >&6; }
2464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2465 /* end confdefs.h. */
2468 if ac_fn_c_try_cpp "$LINENO"; then :
2469 ac_header_preproc=yes
2471 ac_header_preproc=no
2473 rm -f conftest.err conftest.i conftest.$ac_ext
2474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2475 $as_echo "$ac_header_preproc" >&6; }
2477 # So? What about this header?
2478 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2480 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2481 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2482 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2483 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2486 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2487 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2488 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2489 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2490 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2491 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2492 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2493 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2494 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2495 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2499 $as_echo_n "checking for $2... " >&6; }
2500 if eval \${$3+:} false; then :
2501 $as_echo_n "(cached) " >&6
2503 eval "$3=\$ac_header_compiler"
2506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2507 $as_echo "$ac_res" >&6; }
2509 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2511 } # ac_fn_c_check_header_mongrel
2513 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2514 # --------------------------------------------
2515 # Tries to find the compile-time value of EXPR in a program that includes
2516 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2518 ac_fn_c_compute_int ()
2520 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2521 if test "$cross_compiling" = yes; then
2522 # Depending upon the size, compute the lo and hi bounds.
2523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2524 /* end confdefs.h. */
2529 static int test_array [1 - 2 * !(($2) >= 0)];
2536 if ac_fn_c_try_compile "$LINENO"; then :
2539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2540 /* end confdefs.h. */
2545 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2552 if ac_fn_c_try_compile "$LINENO"; then :
2553 ac_hi=$ac_mid; break
2555 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2556 if test $ac_lo -le $ac_mid; then
2560 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2566 /* end confdefs.h. */
2571 static int test_array [1 - 2 * !(($2) < 0)];
2578 if ac_fn_c_try_compile "$LINENO"; then :
2581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2582 /* end confdefs.h. */
2587 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2594 if ac_fn_c_try_compile "$LINENO"; then :
2595 ac_lo=$ac_mid; break
2597 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2598 if test $ac_mid -le $ac_hi; then
2602 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2612 # Binary search between lo and hi bounds.
2613 while test "x$ac_lo" != "x$ac_hi"; do
2614 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2616 /* end confdefs.h. */
2621 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2628 if ac_fn_c_try_compile "$LINENO"; then :
2631 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2636 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2641 /* end confdefs.h. */
2643 static long int longval () { return $2; }
2644 static unsigned long int ulongval () { return $2; }
2651 FILE *f = fopen ("conftest.val", "w");
2656 long int i = longval ();
2659 fprintf (f, "%ld", i);
2663 unsigned long int i = ulongval ();
2666 fprintf (f, "%lu", i);
2668 /* Do not output a trailing newline, as this causes \r\n confusion
2669 on some platforms. */
2670 return ferror (f) || fclose (f) != 0;
2676 if ac_fn_c_try_run "$LINENO"; then :
2677 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2681 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2682 conftest.$ac_objext conftest.beam conftest.$ac_ext
2686 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2687 as_fn_set_status $ac_retval
2689 } # ac_fn_c_compute_int
2691 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2692 # ----------------------------------------------------
2693 # Tries to find if the field MEMBER exists in type AGGR, after including
2694 # INCLUDES, setting cache variable VAR accordingly.
2695 ac_fn_c_check_member ()
2697 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2699 $as_echo_n "checking for $2.$3... " >&6; }
2700 if eval \${$4+:} false; then :
2701 $as_echo_n "(cached) " >&6
2703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2704 /* end confdefs.h. */
2716 if ac_fn_c_try_compile "$LINENO"; then :
2719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2720 /* end confdefs.h. */
2726 if (sizeof ac_aggr.$3)
2732 if ac_fn_c_try_compile "$LINENO"; then :
2737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2743 $as_echo "$ac_res" >&6; }
2744 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2746 } # ac_fn_c_check_member
2748 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2749 # ---------------------------------------------
2750 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2752 ac_fn_c_check_decl ()
2754 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2755 as_decl_name=`echo $2|sed 's/ *(.*//'`
2756 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2758 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2759 if eval \${$3+:} false; then :
2760 $as_echo_n "(cached) " >&6
2762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2763 /* end confdefs.h. */
2768 #ifndef $as_decl_name
2770 (void) $as_decl_use;
2772 (void) $as_decl_name;
2780 if ac_fn_c_try_compile "$LINENO"; then :
2785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2789 $as_echo "$ac_res" >&6; }
2790 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2792 } # ac_fn_c_check_decl
2794 # ac_fn_cxx_try_run LINENO
2795 # ------------------------
2796 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2797 # that executables *can* be run.
2798 ac_fn_cxx_try_run ()
2800 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2801 if { { ac_try="$ac_link"
2803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2804 *) ac_try_echo=$ac_try;;
2806 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2807 $as_echo "$ac_try_echo"; } >&5
2808 (eval "$ac_link") 2>&5
2810 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2811 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2812 { { case "(($ac_try" in
2813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2814 *) ac_try_echo=$ac_try;;
2816 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2817 $as_echo "$ac_try_echo"; } >&5
2818 (eval "$ac_try") 2>&5
2820 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2821 test $ac_status = 0; }; }; then :
2824 $as_echo "$as_me: program exited with status $ac_status" >&5
2825 $as_echo "$as_me: failed program was:" >&5
2826 sed 's/^/| /' conftest.$ac_ext >&5
2828 ac_retval=$ac_status
2830 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2831 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2832 as_fn_set_status $ac_retval
2834 } # ac_fn_cxx_try_run
2836 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2837 # ---------------------------------------------------------
2838 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2839 # the include files in INCLUDES and setting the cache variable VAR
2841 ac_fn_cxx_check_header_mongrel ()
2843 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2844 if eval \${$3+:} false; then :
2845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2846 $as_echo_n "checking for $2... " >&6; }
2847 if eval \${$3+:} false; then :
2848 $as_echo_n "(cached) " >&6
2851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2852 $as_echo "$ac_res" >&6; }
2854 # Is the header compilable?
2855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2856 $as_echo_n "checking $2 usability... " >&6; }
2857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2858 /* end confdefs.h. */
2862 if ac_fn_cxx_try_compile "$LINENO"; then :
2863 ac_header_compiler=yes
2865 ac_header_compiler=no
2867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2869 $as_echo "$ac_header_compiler" >&6; }
2871 # Is the header present?
2872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2873 $as_echo_n "checking $2 presence... " >&6; }
2874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2875 /* end confdefs.h. */
2878 if ac_fn_cxx_try_cpp "$LINENO"; then :
2879 ac_header_preproc=yes
2881 ac_header_preproc=no
2883 rm -f conftest.err conftest.i conftest.$ac_ext
2884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2885 $as_echo "$ac_header_preproc" >&6; }
2887 # So? What about this header?
2888 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2890 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2891 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2892 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2893 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2896 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2897 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2898 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2899 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2900 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2901 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2902 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2903 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2904 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2905 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2909 $as_echo_n "checking for $2... " >&6; }
2910 if eval \${$3+:} false; then :
2911 $as_echo_n "(cached) " >&6
2913 eval "$3=\$ac_header_compiler"
2916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2917 $as_echo "$ac_res" >&6; }
2919 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2921 } # ac_fn_cxx_check_header_mongrel
2922 cat >config.log <<_ACEOF
2923 This file contains any messages produced by compilers while
2924 running configure, to aid debugging if configure makes a mistake.
2926 It was created by bacula $as_me 5.1.14, which was
2927 generated by GNU Autoconf 2.68. Invocation command line was
2939 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2940 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2941 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2942 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2943 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2945 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2946 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2948 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2949 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2950 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2951 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2952 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2953 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2954 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2962 test -z "$as_dir" && as_dir=.
2963 $as_echo "PATH: $as_dir"
2979 # Keep a trace of the command line.
2980 # Strip out --no-create and --no-recursion so they do not pile up.
2981 # Strip out --silent because we don't want to record it for future runs.
2982 # Also quote any args containing shell meta-characters.
2983 # Make two passes to allow for proper duplicate-argument suppression.
2987 ac_must_keep_next=false
2993 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2994 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2995 | -silent | --silent | --silen | --sile | --sil)
2998 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3001 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
3003 as_fn_append ac_configure_args1 " '$ac_arg'"
3004 if test $ac_must_keep_next = true; then
3005 ac_must_keep_next=false # Got value, back to normal.
3008 *=* | --config-cache | -C | -disable-* | --disable-* \
3009 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3010 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3011 | -with-* | --with-* | -without-* | --without-* | --x)
3012 case "$ac_configure_args0 " in
3013 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3016 -* ) ac_must_keep_next=true ;;
3019 as_fn_append ac_configure_args " '$ac_arg'"
3024 { ac_configure_args0=; unset ac_configure_args0;}
3025 { ac_configure_args1=; unset ac_configure_args1;}
3027 # When interrupted or exit'd, cleanup temporary files, and complete
3028 # config.log. We remove comments because anyway the quotes in there
3029 # would cause problems or look ugly.
3030 # WARNING: Use '\'' to represent an apostrophe within the trap.
3031 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3032 trap 'exit_status=$?
3033 # Save into config.log some information that might help in debugging.
3037 $as_echo "## ---------------- ##
3038 ## Cache variables. ##
3039 ## ---------------- ##"
3041 # The following way of writing the cache mishandles newlines in values,
3043 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3044 eval ac_val=\$$ac_var
3048 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3049 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3052 _ | IFS | as_nl) ;; #(
3053 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3054 *) { eval $ac_var=; unset $ac_var;} ;;
3059 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3060 *${as_nl}ac_space=\ *)
3062 "s/'\''/'\''\\\\'\'''\''/g;
3063 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3066 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3073 $as_echo "## ----------------- ##
3074 ## Output variables. ##
3075 ## ----------------- ##"
3077 for ac_var in $ac_subst_vars
3079 eval ac_val=\$$ac_var
3081 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3083 $as_echo "$ac_var='\''$ac_val'\''"
3087 if test -n "$ac_subst_files"; then
3088 $as_echo "## ------------------- ##
3089 ## File substitutions. ##
3090 ## ------------------- ##"
3092 for ac_var in $ac_subst_files
3094 eval ac_val=\$$ac_var
3096 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3098 $as_echo "$ac_var='\''$ac_val'\''"
3103 if test -s confdefs.h; then
3104 $as_echo "## ----------- ##
3111 test "$ac_signal" != 0 &&
3112 $as_echo "$as_me: caught signal $ac_signal"
3113 $as_echo "$as_me: exit $exit_status"
3115 rm -f core *.core core.conftest.* &&
3116 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3119 for ac_signal in 1 2 13 15; do
3120 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3124 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3125 rm -f -r conftest* confdefs.h
3127 $as_echo "/* confdefs.h */" > confdefs.h
3129 # Predefined preprocessor variables.
3131 cat >>confdefs.h <<_ACEOF
3132 #define PACKAGE_NAME "$PACKAGE_NAME"
3135 cat >>confdefs.h <<_ACEOF
3136 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3139 cat >>confdefs.h <<_ACEOF
3140 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3143 cat >>confdefs.h <<_ACEOF
3144 #define PACKAGE_STRING "$PACKAGE_STRING"
3147 cat >>confdefs.h <<_ACEOF
3148 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3151 cat >>confdefs.h <<_ACEOF
3152 #define PACKAGE_URL "$PACKAGE_URL"
3156 # Let the site file select an alternate cache file if it wants to.
3157 # Prefer an explicitly selected file to automatically selected ones.
3160 if test -n "$CONFIG_SITE"; then
3161 # We do not want a PATH search for config.site.
3162 case $CONFIG_SITE in #((
3163 -*) ac_site_file1=./$CONFIG_SITE;;
3164 */*) ac_site_file1=$CONFIG_SITE;;
3165 *) ac_site_file1=./$CONFIG_SITE;;
3167 elif test "x$prefix" != xNONE; then
3168 ac_site_file1=$prefix/share/config.site
3169 ac_site_file2=$prefix/etc/config.site
3171 ac_site_file1=$ac_default_prefix/share/config.site
3172 ac_site_file2=$ac_default_prefix/etc/config.site
3174 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3176 test "x$ac_site_file" = xNONE && continue
3177 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3178 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3179 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3180 sed 's/^/| /' "$ac_site_file" >&5
3182 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3183 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3184 as_fn_error $? "failed to load site script $ac_site_file
3185 See \`config.log' for more details" "$LINENO" 5; }
3189 if test -r "$cache_file"; then
3190 # Some versions of bash will fail to source /dev/null (special files
3191 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3192 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3193 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3194 $as_echo "$as_me: loading cache $cache_file" >&6;}
3196 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3197 *) . "./$cache_file";;
3201 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3202 $as_echo "$as_me: creating cache $cache_file" >&6;}
3206 as_fn_append ac_header_list " stdlib.h"
3207 as_fn_append ac_header_list " unistd.h"
3208 as_fn_append ac_header_list " sys/param.h"
3209 # Check that the precious variables saved in the cache have kept the same
3211 ac_cache_corrupted=false
3212 for ac_var in $ac_precious_vars; do
3213 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3214 eval ac_new_set=\$ac_env_${ac_var}_set
3215 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3216 eval ac_new_val=\$ac_env_${ac_var}_value
3217 case $ac_old_set,$ac_new_set in
3219 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3220 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3221 ac_cache_corrupted=: ;;
3223 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3224 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3225 ac_cache_corrupted=: ;;
3228 if test "x$ac_old_val" != "x$ac_new_val"; then
3229 # differences in whitespace do not lead to failure.
3230 ac_old_val_w=`echo x $ac_old_val`
3231 ac_new_val_w=`echo x $ac_new_val`
3232 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3233 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3234 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3235 ac_cache_corrupted=:
3237 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3238 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3239 eval $ac_var=\$ac_old_val
3241 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3242 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3243 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3244 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3247 # Pass precious variables to config.status.
3248 if test "$ac_new_set" = set; then
3250 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3251 *) ac_arg=$ac_var=$ac_new_val ;;
3253 case " $ac_configure_args " in
3254 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3255 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3259 if $ac_cache_corrupted; then
3260 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3261 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3262 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3263 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3264 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3266 ## -------------------- ##
3267 ## Main body of script. ##
3268 ## -------------------- ##
3271 ac_cpp='$CPP $CPPFLAGS'
3272 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3273 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3274 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3286 for ac_dir in ${BUILD_DIR}/autoconf "$srcdir"/${BUILD_DIR}/autoconf; do
3287 if test -f "$ac_dir/install-sh"; then
3289 ac_install_sh="$ac_aux_dir/install-sh -c"
3291 elif test -f "$ac_dir/install.sh"; then
3293 ac_install_sh="$ac_aux_dir/install.sh -c"
3295 elif test -f "$ac_dir/shtool"; then
3297 ac_install_sh="$ac_aux_dir/shtool install -c"
3301 if test -z "$ac_aux_dir"; then
3302 as_fn_error $? "cannot find install-sh, install.sh, or shtool in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" "$LINENO" 5
3305 # These three variables are undocumented and unsupported,
3306 # and are intended to be withdrawn in a future Autoconf release.
3307 # They can cause serious problems if a builder's source tree is in a directory
3308 # whose full name contains unusual characters.
3309 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3310 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3311 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3314 ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
3317 WIN32BUILDDIR=${BUILD_DIR}/src/win32
3318 WIN32MAINDIR=${BUILD_DIR}
3319 WIN32TOPDIR=${TOP_DIR}
3326 # Extract the first word of "$ac_prog", so it can be a program name with args.
3327 set dummy $ac_prog; ac_word=$2
3328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3329 $as_echo_n "checking for $ac_word... " >&6; }
3330 if ${ac_cv_path_TRUEPRG+:} false; then :
3331 $as_echo_n "(cached) " >&6
3335 ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
3338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3342 test -z "$as_dir" && as_dir=.
3343 for ac_exec_ext in '' $ac_executable_extensions; do
3344 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3345 ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
3346 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3356 TRUEPRG=$ac_cv_path_TRUEPRG
3357 if test -n "$TRUEPRG"; then
3358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TRUEPRG" >&5
3359 $as_echo "$TRUEPRG" >&6; }
3361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3362 $as_echo "no" >&6; }
3366 test -n "$TRUEPRG" && break
3368 test -n "$TRUEPRG" || TRUEPRG=":"
3370 for ac_prog in false
3372 # Extract the first word of "$ac_prog", so it can be a program name with args.
3373 set dummy $ac_prog; ac_word=$2
3374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3375 $as_echo_n "checking for $ac_word... " >&6; }
3376 if ${ac_cv_path_FALSEPRG+:} false; then :
3377 $as_echo_n "(cached) " >&6
3381 ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
3384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3388 test -z "$as_dir" && as_dir=.
3389 for ac_exec_ext in '' $ac_executable_extensions; do
3390 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3391 ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
3392 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3402 FALSEPRG=$ac_cv_path_FALSEPRG
3403 if test -n "$FALSEPRG"; then
3404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FALSEPRG" >&5
3405 $as_echo "$FALSEPRG" >&6; }
3407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3408 $as_echo "no" >&6; }
3412 test -n "$FALSEPRG" && break
3414 test -n "$FALSEPRG" || FALSEPRG=":"
3419 if test "x$BACULA" != x; then
3420 post_host=`echo -${BACULA} | tr 'A-Z ' 'a-z-'`
3422 BACULA=${BACULA:-Bacula}
3423 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3424 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3425 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3426 BDB_VERSION=`sed -n -e 's/^.*BDB_VERSION \(.*\)$/\1/p' ${srcdir}/src/cats/cats.h`
3428 LIBBAC_LT_RELEASE=`sed -n -e 's/^#.*LIBBAC_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3429 LIBBACCFG_LT_RELEASE=`sed -n -e 's/^#.*LIBBACCFG_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3430 LIBBACPY_LT_RELEASE=`sed -n -e 's/^#.*LIBBACPY_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3432 LIBBAC_LT_RELEASE=${LIBBAC_LT_RELEASE:-$VERSION}
3433 LIBBACCFG_LT_RELEASE=${LIBBACCFG_LT_RELEASE:-$VERSION}
3434 LIBBACPY_LT_RELEASE=${LIBBACPY_LT_RELEASE:-$VERSION}
3437 LIBBACSQL_LT_RELEASE=`sed -n -e 's/^#.*LIBBACSQL_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3438 LIBBACCATS_LT_RELEASE=`sed -n -e 's/^#.*LIBBACCATS_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3440 LIBBACSQL_LT_RELEASE=${LIBBACSQL_LT_RELEASE:-$VERSION}
3441 LIBBACCATS_LT_RELEASE=${LIBBACCATS_LT_RELEASE:-$VERSION}
3444 LIBBACFIND_LT_RELEASE=`sed -n -e 's/^#.*LIBBACFIND_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3446 LIBBACFIND_LT_RELEASE=${LIBBACFIND_LT_RELEASE:-$VERSION}
3449 echo "configuring for ${BACULA} $VERSION ($DATE)"
3454 ac_cpp='$CPP $CPPFLAGS'
3455 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3456 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3457 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3458 if test -n "$ac_tool_prefix"; then
3459 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3460 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3462 $as_echo_n "checking for $ac_word... " >&6; }
3463 if ${ac_cv_prog_CC+:} false; then :
3464 $as_echo_n "(cached) " >&6
3466 if test -n "$CC"; then
3467 ac_cv_prog_CC="$CC" # Let the user override the test.
3469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3473 test -z "$as_dir" && as_dir=.
3474 for ac_exec_ext in '' $ac_executable_extensions; do
3475 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3476 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3477 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3487 if test -n "$CC"; then
3488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3489 $as_echo "$CC" >&6; }
3491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3492 $as_echo "no" >&6; }
3497 if test -z "$ac_cv_prog_CC"; then
3499 # Extract the first word of "gcc", so it can be a program name with args.
3500 set dummy gcc; ac_word=$2
3501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3502 $as_echo_n "checking for $ac_word... " >&6; }
3503 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3504 $as_echo_n "(cached) " >&6
3506 if test -n "$ac_ct_CC"; then
3507 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3513 test -z "$as_dir" && as_dir=.
3514 for ac_exec_ext in '' $ac_executable_extensions; do
3515 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3516 ac_cv_prog_ac_ct_CC="gcc"
3517 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3526 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3527 if test -n "$ac_ct_CC"; then
3528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3529 $as_echo "$ac_ct_CC" >&6; }
3531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3532 $as_echo "no" >&6; }
3535 if test "x$ac_ct_CC" = x; then
3538 case $cross_compiling:$ac_tool_warned in
3540 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3541 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3542 ac_tool_warned=yes ;;
3550 if test -z "$CC"; then
3551 if test -n "$ac_tool_prefix"; then
3552 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3553 set dummy ${ac_tool_prefix}cc; ac_word=$2
3554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3555 $as_echo_n "checking for $ac_word... " >&6; }
3556 if ${ac_cv_prog_CC+:} false; then :
3557 $as_echo_n "(cached) " >&6
3559 if test -n "$CC"; then
3560 ac_cv_prog_CC="$CC" # Let the user override the test.
3562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3566 test -z "$as_dir" && as_dir=.
3567 for ac_exec_ext in '' $ac_executable_extensions; do
3568 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3569 ac_cv_prog_CC="${ac_tool_prefix}cc"
3570 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3580 if test -n "$CC"; then
3581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3582 $as_echo "$CC" >&6; }
3584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3585 $as_echo "no" >&6; }
3591 if test -z "$CC"; then
3592 # Extract the first word of "cc", so it can be a program name with args.
3593 set dummy cc; ac_word=$2
3594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3595 $as_echo_n "checking for $ac_word... " >&6; }
3596 if ${ac_cv_prog_CC+:} false; then :
3597 $as_echo_n "(cached) " >&6
3599 if test -n "$CC"; then
3600 ac_cv_prog_CC="$CC" # Let the user override the test.
3603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3607 test -z "$as_dir" && as_dir=.
3608 for ac_exec_ext in '' $ac_executable_extensions; do
3609 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3610 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3611 ac_prog_rejected=yes
3615 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3622 if test $ac_prog_rejected = yes; then
3623 # We found a bogon in the path, so make sure we never use it.
3624 set dummy $ac_cv_prog_CC
3626 if test $# != 0; then
3627 # We chose a different compiler from the bogus one.
3628 # However, it has the same basename, so the bogon will be chosen
3629 # first if we set CC to just the basename; use the full file name.
3631 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3637 if test -n "$CC"; then
3638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3639 $as_echo "$CC" >&6; }
3641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3642 $as_echo "no" >&6; }
3647 if test -z "$CC"; then
3648 if test -n "$ac_tool_prefix"; then
3649 for ac_prog in cl.exe
3651 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3652 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3654 $as_echo_n "checking for $ac_word... " >&6; }
3655 if ${ac_cv_prog_CC+:} false; then :
3656 $as_echo_n "(cached) " >&6
3658 if test -n "$CC"; then
3659 ac_cv_prog_CC="$CC" # Let the user override the test.
3661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3665 test -z "$as_dir" && as_dir=.
3666 for ac_exec_ext in '' $ac_executable_extensions; do
3667 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3668 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3669 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3679 if test -n "$CC"; then
3680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3681 $as_echo "$CC" >&6; }
3683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3684 $as_echo "no" >&6; }
3688 test -n "$CC" && break
3691 if test -z "$CC"; then
3693 for ac_prog in cl.exe
3695 # Extract the first word of "$ac_prog", so it can be a program name with args.
3696 set dummy $ac_prog; ac_word=$2
3697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3698 $as_echo_n "checking for $ac_word... " >&6; }
3699 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3700 $as_echo_n "(cached) " >&6
3702 if test -n "$ac_ct_CC"; then
3703 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3709 test -z "$as_dir" && as_dir=.
3710 for ac_exec_ext in '' $ac_executable_extensions; do
3711 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3712 ac_cv_prog_ac_ct_CC="$ac_prog"
3713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3722 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3723 if test -n "$ac_ct_CC"; then
3724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3725 $as_echo "$ac_ct_CC" >&6; }
3727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3728 $as_echo "no" >&6; }
3732 test -n "$ac_ct_CC" && break
3735 if test "x$ac_ct_CC" = x; then
3738 case $cross_compiling:$ac_tool_warned in
3740 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3741 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3742 ac_tool_warned=yes ;;
3751 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3752 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3753 as_fn_error $? "no acceptable C compiler found in \$PATH
3754 See \`config.log' for more details" "$LINENO" 5; }
3756 # Provide some information about the compiler.
3757 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3760 for ac_option in --version -v -V -qversion; do
3761 { { ac_try="$ac_compiler $ac_option >&5"
3763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3764 *) ac_try_echo=$ac_try;;
3766 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3767 $as_echo "$ac_try_echo"; } >&5
3768 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3770 if test -s conftest.err; then
3772 ... rest of stderr output deleted ...
3773 10q' conftest.err >conftest.er1
3774 cat conftest.er1 >&5
3776 rm -f conftest.er1 conftest.err
3777 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3778 test $ac_status = 0; }
3781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3782 /* end confdefs.h. */
3792 ac_clean_files_save=$ac_clean_files
3793 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3794 # Try to create an executable without -o first, disregard a.out.
3795 # It will help us diagnose broken compilers, and finding out an intuition
3797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3798 $as_echo_n "checking whether the C compiler works... " >&6; }
3799 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3801 # The possible output files:
3802 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3805 for ac_file in $ac_files
3808 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3809 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3814 if { { ac_try="$ac_link_default"
3816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3817 *) ac_try_echo=$ac_try;;
3819 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3820 $as_echo "$ac_try_echo"; } >&5
3821 (eval "$ac_link_default") 2>&5
3823 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3824 test $ac_status = 0; }; then :
3825 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3826 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3827 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3828 # so that the user can short-circuit this test for compilers unknown to
3830 for ac_file in $ac_files ''
3832 test -f "$ac_file" || continue
3834 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3837 # We found the default executable, but exeext='' is most
3841 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3843 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3845 # We set ac_cv_exeext here because the later test for it is not
3846 # safe: cross compilers may not add the suffix if given an `-o'
3847 # argument, so we may need to know it at that point already.
3848 # Even if this section looks crufty: it has the advantage of
3855 test "$ac_cv_exeext" = no && ac_cv_exeext=
3860 if test -z "$ac_file"; then :
3861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3862 $as_echo "no" >&6; }
3863 $as_echo "$as_me: failed program was:" >&5
3864 sed 's/^/| /' conftest.$ac_ext >&5
3866 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3867 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3868 as_fn_error 77 "C compiler cannot create executables
3869 See \`config.log' for more details" "$LINENO" 5; }
3871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3872 $as_echo "yes" >&6; }
3874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3875 $as_echo_n "checking for C compiler default output file name... " >&6; }
3876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3877 $as_echo "$ac_file" >&6; }
3878 ac_exeext=$ac_cv_exeext
3880 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3881 ac_clean_files=$ac_clean_files_save
3882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3883 $as_echo_n "checking for suffix of executables... " >&6; }
3884 if { { ac_try="$ac_link"
3886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3887 *) ac_try_echo=$ac_try;;
3889 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3890 $as_echo "$ac_try_echo"; } >&5
3891 (eval "$ac_link") 2>&5
3893 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3894 test $ac_status = 0; }; then :
3895 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3896 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3897 # work properly (i.e., refer to `conftest.exe'), while it won't with
3899 for ac_file in conftest.exe conftest conftest.*; do
3900 test -f "$ac_file" || continue
3902 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3903 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3909 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3910 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3911 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3912 See \`config.log' for more details" "$LINENO" 5; }
3914 rm -f conftest conftest$ac_cv_exeext
3915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3916 $as_echo "$ac_cv_exeext" >&6; }
3918 rm -f conftest.$ac_ext
3919 EXEEXT=$ac_cv_exeext
3921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3922 /* end confdefs.h. */
3927 FILE *f = fopen ("conftest.out", "w");
3928 return ferror (f) || fclose (f) != 0;
3934 ac_clean_files="$ac_clean_files conftest.out"
3935 # Check that the compiler produces executables we can run. If not, either
3936 # the compiler is broken, or we cross compile.
3937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3938 $as_echo_n "checking whether we are cross compiling... " >&6; }
3939 if test "$cross_compiling" != yes; then
3940 { { ac_try="$ac_link"
3942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3943 *) ac_try_echo=$ac_try;;
3945 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3946 $as_echo "$ac_try_echo"; } >&5
3947 (eval "$ac_link") 2>&5
3949 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3950 test $ac_status = 0; }
3951 if { ac_try='./conftest$ac_cv_exeext'
3952 { { case "(($ac_try" in
3953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3954 *) ac_try_echo=$ac_try;;
3956 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3957 $as_echo "$ac_try_echo"; } >&5
3958 (eval "$ac_try") 2>&5
3960 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3961 test $ac_status = 0; }; }; then
3964 if test "$cross_compiling" = maybe; then
3967 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3968 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3969 as_fn_error $? "cannot run C compiled programs.
3970 If you meant to cross compile, use \`--host'.
3971 See \`config.log' for more details" "$LINENO" 5; }
3975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3976 $as_echo "$cross_compiling" >&6; }
3978 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3979 ac_clean_files=$ac_clean_files_save
3980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3981 $as_echo_n "checking for suffix of object files... " >&6; }
3982 if ${ac_cv_objext+:} false; then :
3983 $as_echo_n "(cached) " >&6
3985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3986 /* end confdefs.h. */
3996 rm -f conftest.o conftest.obj
3997 if { { ac_try="$ac_compile"
3999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4000 *) ac_try_echo=$ac_try;;
4002 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4003 $as_echo "$ac_try_echo"; } >&5
4004 (eval "$ac_compile") 2>&5
4006 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4007 test $ac_status = 0; }; then :
4008 for ac_file in conftest.o conftest.obj conftest.*; do
4009 test -f "$ac_file" || continue;
4011 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4012 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4017 $as_echo "$as_me: failed program was:" >&5
4018 sed 's/^/| /' conftest.$ac_ext >&5
4020 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4021 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4022 as_fn_error $? "cannot compute suffix of object files: cannot compile
4023 See \`config.log' for more details" "$LINENO" 5; }
4025 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4028 $as_echo "$ac_cv_objext" >&6; }
4029 OBJEXT=$ac_cv_objext
4031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4032 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4033 if ${ac_cv_c_compiler_gnu+:} false; then :
4034 $as_echo_n "(cached) " >&6
4036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4037 /* end confdefs.h. */
4050 if ac_fn_c_try_compile "$LINENO"; then :
4055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4056 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4060 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4061 if test $ac_compiler_gnu = yes; then
4066 ac_test_CFLAGS=${CFLAGS+set}
4067 ac_save_CFLAGS=$CFLAGS
4068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4069 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4070 if ${ac_cv_prog_cc_g+:} false; then :
4071 $as_echo_n "(cached) " >&6
4073 ac_save_c_werror_flag=$ac_c_werror_flag
4074 ac_c_werror_flag=yes
4077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4078 /* end confdefs.h. */
4088 if ac_fn_c_try_compile "$LINENO"; then :
4092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4093 /* end confdefs.h. */
4103 if ac_fn_c_try_compile "$LINENO"; then :
4106 ac_c_werror_flag=$ac_save_c_werror_flag
4108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4109 /* end confdefs.h. */
4119 if ac_fn_c_try_compile "$LINENO"; then :
4122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4127 ac_c_werror_flag=$ac_save_c_werror_flag
4129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4130 $as_echo "$ac_cv_prog_cc_g" >&6; }
4131 if test "$ac_test_CFLAGS" = set; then
4132 CFLAGS=$ac_save_CFLAGS
4133 elif test $ac_cv_prog_cc_g = yes; then
4134 if test "$GCC" = yes; then
4140 if test "$GCC" = yes; then
4146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4147 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4148 if ${ac_cv_prog_cc_c89+:} false; then :
4149 $as_echo_n "(cached) " >&6
4151 ac_cv_prog_cc_c89=no
4153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4154 /* end confdefs.h. */
4157 #include <sys/types.h>
4158 #include <sys/stat.h>
4159 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4160 struct buf { int x; };
4161 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4162 static char *e (p, i)
4168 static char *f (char * (*g) (char **, int), char **p, ...)
4173 s = g (p, va_arg (v,int));
4178 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4179 function prototypes and stuff, but not '\xHH' hex character constants.
4180 These don't provoke an error unfortunately, instead are silently treated
4181 as 'x'. The following induces an error, until -std is added to get
4182 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4183 array size at least. It's necessary to write '\x00'==0 to get something
4184 that's true only with -std. */
4185 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4187 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4188 inside strings and character constants. */
4190 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4192 int test (int i, double x);
4193 struct s1 {int (*f) (int a);};
4194 struct s2 {int (*f) (double a);};
4195 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4201 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4206 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4207 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4209 CC="$ac_save_CC $ac_arg"
4210 if ac_fn_c_try_compile "$LINENO"; then :
4211 ac_cv_prog_cc_c89=$ac_arg
4213 rm -f core conftest.err conftest.$ac_objext
4214 test "x$ac_cv_prog_cc_c89" != "xno" && break
4216 rm -f conftest.$ac_ext
4221 case "x$ac_cv_prog_cc_c89" in
4223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4224 $as_echo "none needed" >&6; } ;;
4226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4227 $as_echo "unsupported" >&6; } ;;
4229 CC="$CC $ac_cv_prog_cc_c89"
4230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4231 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4233 if test "x$ac_cv_prog_cc_c89" != xno; then :
4238 ac_cpp='$CPP $CPPFLAGS'
4239 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4240 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4241 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4244 ac_cpp='$CXXCPP $CPPFLAGS'
4245 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4246 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4247 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4248 if test -z "$CXX"; then
4249 if test -n "$CCC"; then
4252 if test -n "$ac_tool_prefix"; then
4253 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4255 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4256 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4258 $as_echo_n "checking for $ac_word... " >&6; }
4259 if ${ac_cv_prog_CXX+:} false; then :
4260 $as_echo_n "(cached) " >&6
4262 if test -n "$CXX"; then
4263 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4269 test -z "$as_dir" && as_dir=.
4270 for ac_exec_ext in '' $ac_executable_extensions; do
4271 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4272 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4273 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4283 if test -n "$CXX"; then
4284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4285 $as_echo "$CXX" >&6; }
4287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4288 $as_echo "no" >&6; }
4292 test -n "$CXX" && break
4295 if test -z "$CXX"; then
4297 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4299 # Extract the first word of "$ac_prog", so it can be a program name with args.
4300 set dummy $ac_prog; ac_word=$2
4301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4302 $as_echo_n "checking for $ac_word... " >&6; }
4303 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4304 $as_echo_n "(cached) " >&6
4306 if test -n "$ac_ct_CXX"; then
4307 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4313 test -z "$as_dir" && as_dir=.
4314 for ac_exec_ext in '' $ac_executable_extensions; do
4315 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4316 ac_cv_prog_ac_ct_CXX="$ac_prog"
4317 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4326 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4327 if test -n "$ac_ct_CXX"; then
4328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4329 $as_echo "$ac_ct_CXX" >&6; }
4331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4332 $as_echo "no" >&6; }
4336 test -n "$ac_ct_CXX" && break
4339 if test "x$ac_ct_CXX" = x; then
4342 case $cross_compiling:$ac_tool_warned in
4344 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4345 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4346 ac_tool_warned=yes ;;
4354 # Provide some information about the compiler.
4355 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4358 for ac_option in --version -v -V -qversion; do
4359 { { ac_try="$ac_compiler $ac_option >&5"
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_compiler $ac_option >&5") 2>conftest.err
4368 if test -s conftest.err; then
4370 ... rest of stderr output deleted ...
4371 10q' conftest.err >conftest.er1
4372 cat conftest.er1 >&5
4374 rm -f conftest.er1 conftest.err
4375 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4376 test $ac_status = 0; }
4379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4380 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4381 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4382 $as_echo_n "(cached) " >&6
4384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4385 /* end confdefs.h. */
4398 if ac_fn_cxx_try_compile "$LINENO"; then :
4403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4404 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4408 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4409 if test $ac_compiler_gnu = yes; then
4414 ac_test_CXXFLAGS=${CXXFLAGS+set}
4415 ac_save_CXXFLAGS=$CXXFLAGS
4416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4417 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4418 if ${ac_cv_prog_cxx_g+:} false; then :
4419 $as_echo_n "(cached) " >&6
4421 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4422 ac_cxx_werror_flag=yes
4425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4426 /* end confdefs.h. */
4436 if ac_fn_cxx_try_compile "$LINENO"; then :
4437 ac_cv_prog_cxx_g=yes
4440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4441 /* end confdefs.h. */
4451 if ac_fn_cxx_try_compile "$LINENO"; then :
4454 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4457 /* end confdefs.h. */
4467 if ac_fn_cxx_try_compile "$LINENO"; then :
4468 ac_cv_prog_cxx_g=yes
4470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4475 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4478 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4479 if test "$ac_test_CXXFLAGS" = set; then
4480 CXXFLAGS=$ac_save_CXXFLAGS
4481 elif test $ac_cv_prog_cxx_g = yes; then
4482 if test "$GXX" = yes; then
4488 if test "$GXX" = yes; then
4495 ac_cpp='$CPP $CPPFLAGS'
4496 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4497 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4498 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4500 if test "x$CC" != xcc; then
4501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4502 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4505 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4507 set dummy $CC; ac_cc=`$as_echo "$2" |
4508 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4509 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
4510 $as_echo_n "(cached) " >&6
4512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4513 /* end confdefs.h. */
4523 # Make sure it works both with $CC and with simple cc.
4524 # We do the test twice because some compilers refuse to overwrite an
4525 # existing .o file with -o, though they will create one.
4526 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4528 if { { case "(($ac_try" in
4529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4530 *) ac_try_echo=$ac_try;;
4532 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4533 $as_echo "$ac_try_echo"; } >&5
4534 (eval "$ac_try") 2>&5
4536 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4537 test $ac_status = 0; } &&
4538 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4540 *) ac_try_echo=$ac_try;;
4542 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4543 $as_echo "$ac_try_echo"; } >&5
4544 (eval "$ac_try") 2>&5
4546 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4547 test $ac_status = 0; };
4549 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4550 if test "x$CC" != xcc; then
4551 # Test first that cc exists at all.
4552 if { ac_try='cc -c conftest.$ac_ext >&5'
4553 { { case "(($ac_try" in
4554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4555 *) ac_try_echo=$ac_try;;
4557 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4558 $as_echo "$ac_try_echo"; } >&5
4559 (eval "$ac_try") 2>&5
4561 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4562 test $ac_status = 0; }; }; then
4563 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4565 if { { case "(($ac_try" in
4566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4567 *) ac_try_echo=$ac_try;;
4569 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4570 $as_echo "$ac_try_echo"; } >&5
4571 (eval "$ac_try") 2>&5
4573 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4574 test $ac_status = 0; } &&
4575 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4577 *) ac_try_echo=$ac_try;;
4579 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4580 $as_echo "$ac_try_echo"; } >&5
4581 (eval "$ac_try") 2>&5
4583 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4584 test $ac_status = 0; };
4589 # cc exists but doesn't like -o.
4590 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4595 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4597 rm -f core conftest*
4600 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4602 $as_echo "yes" >&6; }
4604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4605 $as_echo "no" >&6; }
4607 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4612 ac_cpp='$CPP $CPPFLAGS'
4613 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4614 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4615 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4617 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4618 # On Suns, sometimes $CPP names a directory.
4619 if test -n "$CPP" && test -d "$CPP"; then
4622 if test -z "$CPP"; then
4623 if ${ac_cv_prog_CPP+:} false; then :
4624 $as_echo_n "(cached) " >&6
4626 # Double quotes because CPP needs to be expanded
4627 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4630 for ac_c_preproc_warn_flag in '' yes
4632 # Use a header file that comes with gcc, so configuring glibc
4633 # with a fresh cross-compiler works.
4634 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4635 # <limits.h> exists even on freestanding compilers.
4636 # On the NeXT, cc -E runs the code through the compiler's parser,
4637 # not just through cpp. "Syntax error" is here to catch this case.
4638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4639 /* end confdefs.h. */
4641 # include <limits.h>
4643 # include <assert.h>
4647 if ac_fn_c_try_cpp "$LINENO"; then :
4650 # Broken: fails on valid input.
4653 rm -f conftest.err conftest.i conftest.$ac_ext
4655 # OK, works on sane cases. Now check whether nonexistent headers
4656 # can be detected and how.
4657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4658 /* end confdefs.h. */
4659 #include <ac_nonexistent.h>
4661 if ac_fn_c_try_cpp "$LINENO"; then :
4662 # Broken: success on invalid input.
4665 # Passes both tests.
4669 rm -f conftest.err conftest.i conftest.$ac_ext
4672 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4673 rm -f conftest.i conftest.err conftest.$ac_ext
4674 if $ac_preproc_ok; then :
4686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4687 $as_echo "$CPP" >&6; }
4689 for ac_c_preproc_warn_flag in '' yes
4691 # Use a header file that comes with gcc, so configuring glibc
4692 # with a fresh cross-compiler works.
4693 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4694 # <limits.h> exists even on freestanding compilers.
4695 # On the NeXT, cc -E runs the code through the compiler's parser,
4696 # not just through cpp. "Syntax error" is here to catch this case.
4697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4698 /* end confdefs.h. */
4700 # include <limits.h>
4702 # include <assert.h>
4706 if ac_fn_c_try_cpp "$LINENO"; then :
4709 # Broken: fails on valid input.
4712 rm -f conftest.err conftest.i conftest.$ac_ext
4714 # OK, works on sane cases. Now check whether nonexistent headers
4715 # can be detected and how.
4716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4717 /* end confdefs.h. */
4718 #include <ac_nonexistent.h>
4720 if ac_fn_c_try_cpp "$LINENO"; then :
4721 # Broken: success on invalid input.
4724 # Passes both tests.
4728 rm -f conftest.err conftest.i conftest.$ac_ext
4731 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4732 rm -f conftest.i conftest.err conftest.$ac_ext
4733 if $ac_preproc_ok; then :
4736 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4737 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4738 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4739 See \`config.log' for more details" "$LINENO" 5; }
4743 ac_cpp='$CPP $CPPFLAGS'
4744 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4745 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4746 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4750 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4751 if ${ac_cv_path_GREP+:} false; then :
4752 $as_echo_n "(cached) " >&6
4754 if test -z "$GREP"; then
4755 ac_path_GREP_found=false
4756 # Loop through the user's path and test for each of PROGNAME-LIST
4757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4758 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4761 test -z "$as_dir" && as_dir=.
4762 for ac_prog in grep ggrep; do
4763 for ac_exec_ext in '' $ac_executable_extensions; do
4764 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4765 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4766 # Check for GNU ac_path_GREP and select it if it is found.
4767 # Check for GNU $ac_path_GREP
4768 case `"$ac_path_GREP" --version 2>&1` in
4770 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4773 $as_echo_n 0123456789 >"conftest.in"
4776 cat "conftest.in" "conftest.in" >"conftest.tmp"
4777 mv "conftest.tmp" "conftest.in"
4778 cp "conftest.in" "conftest.nl"
4779 $as_echo 'GREP' >> "conftest.nl"
4780 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4781 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4782 as_fn_arith $ac_count + 1 && ac_count=$as_val
4783 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4784 # Best one so far, save it but keep looking for a better one
4785 ac_cv_path_GREP="$ac_path_GREP"
4786 ac_path_GREP_max=$ac_count
4788 # 10*(2^10) chars as input seems more than enough
4789 test $ac_count -gt 10 && break
4791 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4794 $ac_path_GREP_found && break 3
4799 if test -z "$ac_cv_path_GREP"; then
4800 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4803 ac_cv_path_GREP=$GREP
4807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4808 $as_echo "$ac_cv_path_GREP" >&6; }
4809 GREP="$ac_cv_path_GREP"
4812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4813 $as_echo_n "checking for egrep... " >&6; }
4814 if ${ac_cv_path_EGREP+:} false; then :
4815 $as_echo_n "(cached) " >&6
4817 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4818 then ac_cv_path_EGREP="$GREP -E"
4820 if test -z "$EGREP"; then
4821 ac_path_EGREP_found=false
4822 # Loop through the user's path and test for each of PROGNAME-LIST
4823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4824 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4827 test -z "$as_dir" && as_dir=.
4828 for ac_prog in egrep; do
4829 for ac_exec_ext in '' $ac_executable_extensions; do
4830 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4831 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4832 # Check for GNU ac_path_EGREP and select it if it is found.
4833 # Check for GNU $ac_path_EGREP
4834 case `"$ac_path_EGREP" --version 2>&1` in
4836 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4839 $as_echo_n 0123456789 >"conftest.in"
4842 cat "conftest.in" "conftest.in" >"conftest.tmp"
4843 mv "conftest.tmp" "conftest.in"
4844 cp "conftest.in" "conftest.nl"
4845 $as_echo 'EGREP' >> "conftest.nl"
4846 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4847 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4848 as_fn_arith $ac_count + 1 && ac_count=$as_val
4849 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4850 # Best one so far, save it but keep looking for a better one
4851 ac_cv_path_EGREP="$ac_path_EGREP"
4852 ac_path_EGREP_max=$ac_count
4854 # 10*(2^10) chars as input seems more than enough
4855 test $ac_count -gt 10 && break
4857 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4860 $ac_path_EGREP_found && break 3
4865 if test -z "$ac_cv_path_EGREP"; then
4866 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4869 ac_cv_path_EGREP=$EGREP
4874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4875 $as_echo "$ac_cv_path_EGREP" >&6; }
4876 EGREP="$ac_cv_path_EGREP"
4879 if test $ac_cv_c_compiler_gnu = yes; then
4880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
4881 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
4882 if ${ac_cv_prog_gcc_traditional+:} false; then :
4883 $as_echo_n "(cached) " >&6
4885 ac_pattern="Autoconf.*'x'"
4886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4887 /* end confdefs.h. */
4891 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4892 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4893 ac_cv_prog_gcc_traditional=yes
4895 ac_cv_prog_gcc_traditional=no
4900 if test $ac_cv_prog_gcc_traditional = no; then
4901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4902 /* end confdefs.h. */
4906 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4907 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4908 ac_cv_prog_gcc_traditional=yes
4914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
4915 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
4916 if test $ac_cv_prog_gcc_traditional = yes; then
4917 CC="$CC -traditional"
4921 BASECC=`basename $CC`
4923 if test "x$BASECC" = xgcc; then
4924 $as_echo "#define HAVE_GCC 1" >>confdefs.h
4928 # Extract the first word of "$CXX", so it can be a program name with args.
4929 set dummy $CXX; ac_word=$2
4930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4931 $as_echo_n "checking for $ac_word... " >&6; }
4932 if ${ac_cv_path_CXX+:} false; then :
4933 $as_echo_n "(cached) " >&6
4937 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
4940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4944 test -z "$as_dir" && as_dir=.
4945 for ac_exec_ext in '' $ac_executable_extensions; do
4946 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4947 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
4948 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4955 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="$CXX"
4960 if test -n "$CXX"; then
4961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4962 $as_echo "$CXX" >&6; }
4964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4965 $as_echo "no" >&6; }
4969 if test ! -e $CXX; then
4970 as_fn_error $? "Unable to find C++ compiler" "$LINENO" 5
4973 # Find a good install program. We prefer a C program (faster),
4974 # so one script is as good as another. But avoid the broken or
4975 # incompatible versions:
4976 # SysV /etc/install, /usr/sbin/install
4977 # SunOS /usr/etc/install
4978 # IRIX /sbin/install
4980 # AmigaOS /C/install, which installs bootblocks on floppy discs
4981 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4982 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4983 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4984 # OS/2's system install, which has a completely different semantic
4985 # ./install, which can be erroneously created by make from ./install.sh.
4986 # Reject install programs that cannot install multiple files.
4987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4988 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4989 if test -z "$INSTALL"; then
4990 if ${ac_cv_path_install+:} false; then :
4991 $as_echo_n "(cached) " >&6
4993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4997 test -z "$as_dir" && as_dir=.
4998 # Account for people who put trailing slashes in PATH elements.
4999 case $as_dir/ in #((
5000 ./ | .// | /[cC]/* | \
5001 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5002 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
5005 # OSF1 and SCO ODT 3.0 have their own names for install.
5006 # Don't use installbsd from OSF since it installs stuff as root
5008 for ac_prog in ginstall scoinst install; do
5009 for ac_exec_ext in '' $ac_executable_extensions; do
5010 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5011 if test $ac_prog = install &&
5012 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5013 # AIX install. It has an incompatible calling convention.
5015 elif test $ac_prog = install &&
5016 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5017 # program-specific install script used by HP pwplus--don't use.
5020 rm -rf conftest.one conftest.two conftest.dir
5021 echo one > conftest.one
5022 echo two > conftest.two
5024 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
5025 test -s conftest.one && test -s conftest.two &&
5026 test -s conftest.dir/conftest.one &&
5027 test -s conftest.dir/conftest.two
5029 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5042 rm -rf conftest.one conftest.two conftest.dir
5045 if test "${ac_cv_path_install+set}" = set; then
5046 INSTALL=$ac_cv_path_install
5048 # As a last resort, use the slow shell script. Don't cache a
5049 # value for INSTALL within a source directory, because that will
5050 # break other packages using the cache if that directory is
5051 # removed, or if the value is a relative name.
5052 INSTALL=$ac_install_sh
5055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
5056 $as_echo "$INSTALL" >&6; }
5058 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5059 # It thinks the first close brace ends the variable substitution.
5060 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5062 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5064 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5066 # Extract the first word of "mv", so it can be a program name with args.
5067 set dummy mv; ac_word=$2
5068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5069 $as_echo_n "checking for $ac_word... " >&6; }
5070 if ${ac_cv_path_MV+:} false; then :
5071 $as_echo_n "(cached) " >&6
5075 ac_cv_path_MV="$MV" # Let the user override the test with a path.
5078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5082 test -z "$as_dir" && as_dir=.
5083 for ac_exec_ext in '' $ac_executable_extensions; do
5084 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5085 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
5086 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5093 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
5098 if test -n "$MV"; then
5099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
5100 $as_echo "$MV" >&6; }
5102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5103 $as_echo "no" >&6; }
5107 # Extract the first word of "rm", so it can be a program name with args.
5108 set dummy rm; ac_word=$2
5109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5110 $as_echo_n "checking for $ac_word... " >&6; }
5111 if ${ac_cv_path_REMOVE+:} false; then :
5112 $as_echo_n "(cached) " >&6
5116 ac_cv_path_REMOVE="$REMOVE" # Let the user override the test with a path.
5119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5123 test -z "$as_dir" && as_dir=.
5124 for ac_exec_ext in '' $ac_executable_extensions; do
5125 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5126 ac_cv_path_REMOVE="$as_dir/$ac_word$ac_exec_ext"
5127 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5134 test -z "$ac_cv_path_REMOVE" && ac_cv_path_REMOVE="rm"
5138 REMOVE=$ac_cv_path_REMOVE
5139 if test -n "$REMOVE"; then
5140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $REMOVE" >&5
5141 $as_echo "$REMOVE" >&6; }
5143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5144 $as_echo "no" >&6; }
5148 # Extract the first word of "cp", so it can be a program name with args.
5149 set dummy cp; ac_word=$2
5150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5151 $as_echo_n "checking for $ac_word... " >&6; }
5152 if ${ac_cv_path_CP+:} false; then :
5153 $as_echo_n "(cached) " >&6
5157 ac_cv_path_CP="$CP" # Let the user override the test with a path.
5160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5164 test -z "$as_dir" && as_dir=.
5165 for ac_exec_ext in '' $ac_executable_extensions; do
5166 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5167 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5168 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5175 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5180 if test -n "$CP"; then
5181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
5182 $as_echo "$CP" >&6; }
5184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5185 $as_echo "no" >&6; }
5189 # Extract the first word of "sed", so it can be a program name with args.
5190 set dummy sed; ac_word=$2
5191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5192 $as_echo_n "checking for $ac_word... " >&6; }
5193 if ${ac_cv_path_SED+:} false; then :
5194 $as_echo_n "(cached) " >&6
5198 ac_cv_path_SED="$SED" # Let the user override the test with a path.
5201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5205 test -z "$as_dir" && as_dir=.
5206 for ac_exec_ext in '' $ac_executable_extensions; do
5207 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5208 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
5209 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5216 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
5221 if test -n "$SED"; then
5222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
5223 $as_echo "$SED" >&6; }
5225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5226 $as_echo "no" >&6; }
5230 # Extract the first word of "echo", so it can be a program name with args.
5231 set dummy echo; ac_word=$2
5232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5233 $as_echo_n "checking for $ac_word... " >&6; }
5234 if ${ac_cv_path_ECHO+:} false; then :
5235 $as_echo_n "(cached) " >&6
5239 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
5242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5246 test -z "$as_dir" && as_dir=.
5247 for ac_exec_ext in '' $ac_executable_extensions; do
5248 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5249 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
5250 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5257 test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
5261 ECHO=$ac_cv_path_ECHO
5262 if test -n "$ECHO"; then
5263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
5264 $as_echo "$ECHO" >&6; }
5266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5267 $as_echo "no" >&6; }
5271 # Extract the first word of "cmp", so it can be a program name with args.
5272 set dummy cmp; ac_word=$2
5273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5274 $as_echo_n "checking for $ac_word... " >&6; }
5275 if ${ac_cv_path_CMP+:} false; then :
5276 $as_echo_n "(cached) " >&6
5280 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5287 test -z "$as_dir" && as_dir=.
5288 for ac_exec_ext in '' $ac_executable_extensions; do
5289 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5290 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5291 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5298 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5303 if test -n "$CMP"; then
5304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5
5305 $as_echo "$CMP" >&6; }
5307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5308 $as_echo "no" >&6; }
5312 # Extract the first word of "tbl", so it can be a program name with args.
5313 set dummy tbl; ac_word=$2
5314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5315 $as_echo_n "checking for $ac_word... " >&6; }
5316 if ${ac_cv_path_TBL+:} false; then :
5317 $as_echo_n "(cached) " >&6
5321 ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
5324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5328 test -z "$as_dir" && as_dir=.
5329 for ac_exec_ext in '' $ac_executable_extensions; do
5330 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5331 ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
5332 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5339 test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
5344 if test -n "$TBL"; then
5345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TBL" >&5
5346 $as_echo "$TBL" >&6; }
5348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5349 $as_echo "no" >&6; }
5353 # Extract the first word of "ar", so it can be a program name with args.
5354 set dummy ar; ac_word=$2
5355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5356 $as_echo_n "checking for $ac_word... " >&6; }
5357 if ${ac_cv_path_AR+:} false; then :
5358 $as_echo_n "(cached) " >&6
5362 ac_cv_path_AR="$AR" # Let the user override the test with a path.
5365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5369 test -z "$as_dir" && as_dir=.
5370 for ac_exec_ext in '' $ac_executable_extensions; do
5371 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5372 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
5373 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5380 test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
5385 if test -n "$AR"; then
5386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5387 $as_echo "$AR" >&6; }
5389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5390 $as_echo "no" >&6; }
5394 # Extract the first word of "openssl", so it can be a program name with args.
5395 set dummy openssl; ac_word=$2
5396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5397 $as_echo_n "checking for $ac_word... " >&6; }
5398 if ${ac_cv_path_OPENSSL+:} false; then :
5399 $as_echo_n "(cached) " >&6
5403 ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
5406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5410 test -z "$as_dir" && as_dir=.
5411 for ac_exec_ext in '' $ac_executable_extensions; do
5412 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5413 ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
5414 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5421 test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
5425 OPENSSL=$ac_cv_path_OPENSSL
5426 if test -n "$OPENSSL"; then
5427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENSSL" >&5
5428 $as_echo "$OPENSSL" >&6; }
5430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5431 $as_echo "no" >&6; }
5435 # Extract the first word of "mtx", so it can be a program name with args.
5436 set dummy mtx; ac_word=$2
5437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5438 $as_echo_n "checking for $ac_word... " >&6; }
5439 if ${ac_cv_path_MTX+:} false; then :
5440 $as_echo_n "(cached) " >&6
5444 ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
5447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5451 test -z "$as_dir" && as_dir=.
5452 for ac_exec_ext in '' $ac_executable_extensions; do
5453 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5454 ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
5455 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5462 test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
5467 if test -n "$MTX"; then
5468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MTX" >&5
5469 $as_echo "$MTX" >&6; }
5471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5472 $as_echo "no" >&6; }
5476 # Extract the first word of "dd", so it can be a program name with args.
5477 set dummy dd; ac_word=$2
5478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5479 $as_echo_n "checking for $ac_word... " >&6; }
5480 if ${ac_cv_path_DD+:} false; then :
5481 $as_echo_n "(cached) " >&6
5485 ac_cv_path_DD="$DD" # Let the user override the test with a path.
5488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5492 test -z "$as_dir" && as_dir=.
5493 for ac_exec_ext in '' $ac_executable_extensions; do
5494 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5495 ac_cv_path_DD="$as_dir/$ac_word$ac_exec_ext"
5496 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5503 test -z "$ac_cv_path_DD" && ac_cv_path_DD="dd"
5508 if test -n "$DD"; then
5509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DD" >&5
5510 $as_echo "$DD" >&6; }
5512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5513 $as_echo "no" >&6; }
5517 # Extract the first word of "mkisofs", so it can be a program name with args.
5518 set dummy mkisofs; ac_word=$2
5519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5520 $as_echo_n "checking for $ac_word... " >&6; }
5521 if ${ac_cv_path_MKISOFS+:} false; then :
5522 $as_echo_n "(cached) " >&6
5526 ac_cv_path_MKISOFS="$MKISOFS" # Let the user override the test with a path.
5529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5533 test -z "$as_dir" && as_dir=.
5534 for ac_exec_ext in '' $ac_executable_extensions; do
5535 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5536 ac_cv_path_MKISOFS="$as_dir/$ac_word$ac_exec_ext"
5537 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5544 test -z "$ac_cv_path_MKISOFS" && ac_cv_path_MKISOFS="mkisofs"
5548 MKISOFS=$ac_cv_path_MKISOFS
5549 if test -n "$MKISOFS"; then
5550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKISOFS" >&5
5551 $as_echo "$MKISOFS" >&6; }
5553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5554 $as_echo "no" >&6; }
5558 # Extract the first word of "python", so it can be a program name with args.
5559 set dummy python; ac_word=$2
5560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5561 $as_echo_n "checking for $ac_word... " >&6; }
5562 if ${ac_cv_path_PYTHON+:} false; then :
5563 $as_echo_n "(cached) " >&6
5567 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
5570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5574 test -z "$as_dir" && as_dir=.
5575 for ac_exec_ext in '' $ac_executable_extensions; do
5576 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5577 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
5578 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5585 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="python"
5589 PYTHON=$ac_cv_path_PYTHON
5590 if test -n "$PYTHON"; then
5591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
5592 $as_echo "$PYTHON" >&6; }
5594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5595 $as_echo "no" >&6; }
5599 # Extract the first word of "growisofs", so it can be a program name with args.
5600 set dummy growisofs; ac_word=$2
5601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5602 $as_echo_n "checking for $ac_word... " >&6; }
5603 if ${ac_cv_path_GROWISOFS+:} false; then :
5604 $as_echo_n "(cached) " >&6
5608 ac_cv_path_GROWISOFS="$GROWISOFS" # Let the user override the test with a path.
5611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5615 test -z "$as_dir" && as_dir=.
5616 for ac_exec_ext in '' $ac_executable_extensions; do
5617 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5618 ac_cv_path_GROWISOFS="$as_dir/$ac_word$ac_exec_ext"
5619 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5626 test -z "$ac_cv_path_GROWISOFS" && ac_cv_path_GROWISOFS="growisofs"
5630 GROWISOFS=$ac_cv_path_GROWISOFS
5631 if test -n "$GROWISOFS"; then
5632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GROWISOFS" >&5
5633 $as_echo "$GROWISOFS" >&6; }
5635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5636 $as_echo "no" >&6; }
5640 # Extract the first word of "dvd+rw-mediainfo", so it can be a program name with args.
5641 set dummy dvd+rw-mediainfo; ac_word=$2
5642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5643 $as_echo_n "checking for $ac_word... " >&6; }
5644 if ${ac_cv_path_DVDRWMEDIAINFO+:} false; then :
5645 $as_echo_n "(cached) " >&6
5647 case $DVDRWMEDIAINFO in
5649 ac_cv_path_DVDRWMEDIAINFO="$DVDRWMEDIAINFO" # Let the user override the test with a path.
5652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5656 test -z "$as_dir" && as_dir=.
5657 for ac_exec_ext in '' $ac_executable_extensions; do
5658 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5659 ac_cv_path_DVDRWMEDIAINFO="$as_dir/$ac_word$ac_exec_ext"
5660 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5667 test -z "$ac_cv_path_DVDRWMEDIAINFO" && ac_cv_path_DVDRWMEDIAINFO="dvd+rw-mediainfo"
5671 DVDRWMEDIAINFO=$ac_cv_path_DVDRWMEDIAINFO
5672 if test -n "$DVDRWMEDIAINFO"; then
5673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVDRWMEDIAINFO" >&5
5674 $as_echo "$DVDRWMEDIAINFO" >&6; }
5676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5677 $as_echo "no" >&6; }
5681 # Extract the first word of "dvd+rw-format", so it can be a program name with args.
5682 set dummy dvd+rw-format; ac_word=$2
5683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5684 $as_echo_n "checking for $ac_word... " >&6; }
5685 if ${ac_cv_path_DVDRWFORMAT+:} false; then :
5686 $as_echo_n "(cached) " >&6
5688 case $DVDRWFORMAT in
5690 ac_cv_path_DVDRWFORMAT="$DVDRWFORMAT" # Let the user override the test with a path.
5693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5697 test -z "$as_dir" && as_dir=.
5698 for ac_exec_ext in '' $ac_executable_extensions; do
5699 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5700 ac_cv_path_DVDRWFORMAT="$as_dir/$ac_word$ac_exec_ext"
5701 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5708 test -z "$ac_cv_path_DVDRWFORMAT" && ac_cv_path_DVDRWFORMAT="dvd+rw-format"
5712 DVDRWFORMAT=$ac_cv_path_DVDRWFORMAT
5713 if test -n "$DVDRWFORMAT"; then
5714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVDRWFORMAT" >&5
5715 $as_echo "$DVDRWFORMAT" >&6; }
5717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5718 $as_echo "no" >&6; }
5722 # Extract the first word of "pkg-config", so it can be a program name with args.
5723 set dummy pkg-config; ac_word=$2
5724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5725 $as_echo_n "checking for $ac_word... " >&6; }
5726 if ${ac_cv_path_PKGCONFIG+:} false; then :
5727 $as_echo_n "(cached) " >&6
5731 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
5734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5738 test -z "$as_dir" && as_dir=.
5739 for ac_exec_ext in '' $ac_executable_extensions; do
5740 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5741 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
5742 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5749 test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
5753 PKGCONFIG=$ac_cv_path_PKGCONFIG
5754 if test -n "$PKGCONFIG"; then
5755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
5756 $as_echo "$PKGCONFIG" >&6; }
5758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5759 $as_echo "no" >&6; }
5763 # Extract the first word of "qmake", so it can be a program name with args.
5764 set dummy qmake; ac_word=$2
5765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5766 $as_echo_n "checking for $ac_word... " >&6; }
5767 if ${ac_cv_path_QMAKE+:} false; then :
5768 $as_echo_n "(cached) " >&6
5772 ac_cv_path_QMAKE="$QMAKE" # Let the user override the test with a path.
5775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5779 test -z "$as_dir" && as_dir=.
5780 for ac_exec_ext in '' $ac_executable_extensions; do
5781 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5782 ac_cv_path_QMAKE="$as_dir/$ac_word$ac_exec_ext"
5783 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5790 test -z "$ac_cv_path_QMAKE" && ac_cv_path_QMAKE="none"
5794 QMAKE=$ac_cv_path_QMAKE
5795 if test -n "$QMAKE"; then
5796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QMAKE" >&5
5797 $as_echo "$QMAKE" >&6; }
5799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5800 $as_echo "no" >&6; }
5804 # Extract the first word of "gmake", so it can be a program name with args.
5805 set dummy gmake; ac_word=$2
5806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5807 $as_echo_n "checking for $ac_word... " >&6; }
5808 if ${ac_cv_path_GMAKE+:} false; then :
5809 $as_echo_n "(cached) " >&6
5813 ac_cv_path_GMAKE="$GMAKE" # Let the user override the test with a path.
5816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5820 test -z "$as_dir" && as_dir=.
5821 for ac_exec_ext in '' $ac_executable_extensions; do
5822 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5823 ac_cv_path_GMAKE="$as_dir/$ac_word$ac_exec_ext"
5824 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5831 test -z "$ac_cv_path_GMAKE" && ac_cv_path_GMAKE="none"
5835 GMAKE=$ac_cv_path_GMAKE
5836 if test -n "$GMAKE"; then
5837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMAKE" >&5
5838 $as_echo "$GMAKE" >&6; }
5840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5841 $as_echo "no" >&6; }
5846 if test "x$WXCONFIG" = x; then
5849 # Extract the first word of "${WXCONFIG}", so it can be a program name with args.
5850 set dummy ${WXCONFIG}; ac_word=$2
5851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5852 $as_echo_n "checking for $ac_word... " >&6; }
5853 if ${ac_cv_path_WXCONFIG+:} false; then :
5854 $as_echo_n "(cached) " >&6
5858 ac_cv_path_WXCONFIG="$WXCONFIG" # Let the user override the test with a path.
5861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5865 test -z "$as_dir" && as_dir=.
5866 for ac_exec_ext in '' $ac_executable_extensions; do
5867 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5868 ac_cv_path_WXCONFIG="$as_dir/$ac_word$ac_exec_ext"
5869 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5876 test -z "$ac_cv_path_WXCONFIG" && ac_cv_path_WXCONFIG="${WXCONFIG}"
5880 WXCONFIG=$ac_cv_path_WXCONFIG
5881 if test -n "$WXCONFIG"; then
5882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WXCONFIG" >&5
5883 $as_echo "$WXCONFIG" >&6; }
5885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5886 $as_echo "no" >&6; }
5891 # Extract the first word of "cdrecord", so it can be a program name with args.
5892 set dummy cdrecord; ac_word=$2
5893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5894 $as_echo_n "checking for $ac_word... " >&6; }
5895 if ${ac_cv_path_CDRECORD+:} false; then :
5896 $as_echo_n "(cached) " >&6
5900 ac_cv_path_CDRECORD="$CDRECORD" # Let the user override the test with a path.
5903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5907 test -z "$as_dir" && as_dir=.
5908 for ac_exec_ext in '' $ac_executable_extensions; do
5909 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5910 ac_cv_path_CDRECORD="$as_dir/$ac_word$ac_exec_ext"
5911 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5918 test -z "$ac_cv_path_CDRECORD" && ac_cv_path_CDRECORD="cdrecord"
5922 CDRECORD=$ac_cv_path_CDRECORD
5923 if test -n "$CDRECORD"; then
5924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CDRECORD" >&5
5925 $as_echo "$CDRECORD" >&6; }
5927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5928 $as_echo "no" >&6; }
5932 # Extract the first word of "pidof", so it can be a program name with args.
5933 set dummy pidof; ac_word=$2
5934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5935 $as_echo_n "checking for $ac_word... " >&6; }
5936 if ${ac_cv_path_PIDOF+:} false; then :
5937 $as_echo_n "(cached) " >&6
5941 ac_cv_path_PIDOF="$PIDOF" # Let the user override the test with a path.
5944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5948 test -z "$as_dir" && as_dir=.
5949 for ac_exec_ext in '' $ac_executable_extensions; do
5950 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5951 ac_cv_path_PIDOF="$as_dir/$ac_word$ac_exec_ext"
5952 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5959 test -z "$ac_cv_path_PIDOF" && ac_cv_path_PIDOF="pidof"
5963 PIDOF=$ac_cv_path_PIDOF
5964 if test -n "$PIDOF"; then
5965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PIDOF" >&5
5966 $as_echo "$PIDOF" >&6; }
5968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5969 $as_echo "no" >&6; }
5973 for ac_prog in gawk mawk nawk awk
5975 # Extract the first word of "$ac_prog", so it can be a program name with args.
5976 set dummy $ac_prog; ac_word=$2
5977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5978 $as_echo_n "checking for $ac_word... " >&6; }
5979 if ${ac_cv_prog_AWK+:} false; then :
5980 $as_echo_n "(cached) " >&6
5982 if test -n "$AWK"; then
5983 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5989 test -z "$as_dir" && as_dir=.
5990 for ac_exec_ext in '' $ac_executable_extensions; do
5991 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5992 ac_cv_prog_AWK="$ac_prog"
5993 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6003 if test -n "$AWK"; then
6004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
6005 $as_echo "$AWK" >&6; }
6007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6008 $as_echo "no" >&6; }
6012 test -n "$AWK" && break
6015 # Some AWK programs fail, so test it and warn the user
6016 if echo xfoo | $AWK 'BEGIN { prog=ARGV1; ARGC=1 }
6017 { if ((prog == $2) || (("(" prog ")") == $2) ||
6018 (("" prog "") == $2) ||
6019 ((prog ":") == $2)) { print $1 ; exit 0 } }' xfoo>/dev/null; then :;
6021 as_fn_error $? "!!!!!!!!! WARNING !!!!!!!!!!!!!!
6022 The regex engine of $AWK is too broken to be used you
6023 might want to install GNU AWK.
6024 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" "$LINENO" 5
6027 # Extract the first word of "$THE_AWK", so it can be a program name with args.
6028 set dummy $THE_AWK; ac_word=$2
6029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6030 $as_echo_n "checking for $ac_word... " >&6; }
6031 if ${ac_cv_path_AWK+:} false; then :
6032 $as_echo_n "(cached) " >&6
6036 ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
6039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6043 test -z "$as_dir" && as_dir=.
6044 for ac_exec_ext in '' $ac_executable_extensions; do
6045 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6046 ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
6047 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6054 test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="$THE_AWK"
6059 if test -n "$AWK"; then
6060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
6061 $as_echo "$AWK" >&6; }
6063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6064 $as_echo "no" >&6; }
6070 test -n "$ARFLAG" || ARFLAGS="cr"
6082 # Check whether --enable-libtool was given.
6083 if test "${enable_libtool+set}" = set; then :
6084 enableval=$enable_libtool;
6085 if test x$enableval = xno; then
6094 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6095 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6100 macro_version='2.2.6'
6101 macro_revision='1.3012'
6115 ltmain="$ac_aux_dir/ltmain.sh"
6117 # Make sure we can run config.sub.
6118 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
6119 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
6121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
6122 $as_echo_n "checking build system type... " >&6; }
6123 if ${ac_cv_build+:} false; then :
6124 $as_echo_n "(cached) " >&6
6126 ac_build_alias=$build_alias
6127 test "x$ac_build_alias" = x &&
6128 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
6129 test "x$ac_build_alias" = x &&
6130 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
6131 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
6132 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
6135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
6136 $as_echo "$ac_cv_build" >&6; }
6137 case $ac_cv_build in
6139 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
6142 ac_save_IFS=$IFS; IFS='-'
6148 # Remember, the first character of IFS is used to create $*,
6149 # except with old shells:
6152 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
6155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
6156 $as_echo_n "checking host system type... " >&6; }
6157 if ${ac_cv_host+:} false; then :
6158 $as_echo_n "(cached) " >&6
6160 if test "x$host_alias" = x; then
6161 ac_cv_host=$ac_cv_build
6163 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
6164 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
6168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
6169 $as_echo "$ac_cv_host" >&6; }
6172 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
6175 ac_save_IFS=$IFS; IFS='-'
6181 # Remember, the first character of IFS is used to create $*,
6182 # except with old shells:
6185 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
6188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6189 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6190 if ${ac_cv_path_SED+:} false; then :
6191 $as_echo_n "(cached) " >&6
6193 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6194 for ac_i in 1 2 3 4 5 6 7; do
6195 ac_script="$ac_script$as_nl$ac_script"
6197 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6198 { ac_script=; unset ac_script;}
6199 if test -z "$SED"; then
6200 ac_path_SED_found=false
6201 # Loop through the user's path and test for each of PROGNAME-LIST
6202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6206 test -z "$as_dir" && as_dir=.
6207 for ac_prog in sed gsed; do
6208 for ac_exec_ext in '' $ac_executable_extensions; do
6209 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6210 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
6211 # Check for GNU ac_path_SED and select it if it is found.
6212 # Check for GNU $ac_path_SED
6213 case `"$ac_path_SED" --version 2>&1` in
6215 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6218 $as_echo_n 0123456789 >"conftest.in"
6221 cat "conftest.in" "conftest.in" >"conftest.tmp"
6222 mv "conftest.tmp" "conftest.in"
6223 cp "conftest.in" "conftest.nl"
6224 $as_echo '' >> "conftest.nl"
6225 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6226 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6227 as_fn_arith $ac_count + 1 && ac_count=$as_val
6228 if test $ac_count -gt ${ac_path_SED_max-0}; then
6229 # Best one so far, save it but keep looking for a better one
6230 ac_cv_path_SED="$ac_path_SED"
6231 ac_path_SED_max=$ac_count
6233 # 10*(2^10) chars as input seems more than enough
6234 test $ac_count -gt 10 && break
6236 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6239 $ac_path_SED_found && break 3
6244 if test -z "$ac_cv_path_SED"; then
6245 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6253 $as_echo "$ac_cv_path_SED" >&6; }
6254 SED="$ac_cv_path_SED"
6257 test -z "$SED" && SED=sed
6258 Xsed="$SED -e 1s/^X//"
6270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6271 $as_echo_n "checking for fgrep... " >&6; }
6272 if ${ac_cv_path_FGREP+:} false; then :
6273 $as_echo_n "(cached) " >&6
6275 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6276 then ac_cv_path_FGREP="$GREP -F"
6278 if test -z "$FGREP"; then
6279 ac_path_FGREP_found=false
6280 # Loop through the user's path and test for each of PROGNAME-LIST
6281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6282 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6285 test -z "$as_dir" && as_dir=.
6286 for ac_prog in fgrep; do
6287 for ac_exec_ext in '' $ac_executable_extensions; do
6288 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6289 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
6290 # Check for GNU ac_path_FGREP and select it if it is found.
6291 # Check for GNU $ac_path_FGREP
6292 case `"$ac_path_FGREP" --version 2>&1` in
6294 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6297 $as_echo_n 0123456789 >"conftest.in"
6300 cat "conftest.in" "conftest.in" >"conftest.tmp"
6301 mv "conftest.tmp" "conftest.in"
6302 cp "conftest.in" "conftest.nl"
6303 $as_echo 'FGREP' >> "conftest.nl"
6304 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6305 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6306 as_fn_arith $ac_count + 1 && ac_count=$as_val
6307 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6308 # Best one so far, save it but keep looking for a better one
6309 ac_cv_path_FGREP="$ac_path_FGREP"
6310 ac_path_FGREP_max=$ac_count
6312 # 10*(2^10) chars as input seems more than enough
6313 test $ac_count -gt 10 && break
6315 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6318 $ac_path_FGREP_found && break 3
6323 if test -z "$ac_cv_path_FGREP"; then
6324 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6327 ac_cv_path_FGREP=$FGREP
6332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6333 $as_echo "$ac_cv_path_FGREP" >&6; }
6334 FGREP="$ac_cv_path_FGREP"
6337 test -z "$GREP" && GREP=grep
6357 # Check whether --with-gnu-ld was given.
6358 if test "${with_gnu_ld+set}" = set; then :
6359 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6365 if test "$GCC" = yes; then
6366 # Check if gcc -print-prog-name=ld gives a path.
6367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6368 $as_echo_n "checking for ld used by $CC... " >&6; }
6371 # gcc leaves a trailing carriage return which upsets mingw
6372 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6374 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6377 # Accept absolute paths.
6379 re_direlt='/[^/][^/]*/\.\./'
6380 # Canonicalize the pathname of ld
6381 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6382 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6383 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6385 test -z "$LD" && LD="$ac_prog"
6388 # If it fails, then pretend we aren't using GCC.
6392 # If it is relative, then search for the first ld in PATH.
6396 elif test "$with_gnu_ld" = yes; then
6397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6398 $as_echo_n "checking for GNU ld... " >&6; }
6400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6401 $as_echo_n "checking for non-GNU ld... " >&6; }
6403 if ${lt_cv_path_LD+:} false; then :
6404 $as_echo_n "(cached) " >&6
6406 if test -z "$LD"; then
6407 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6408 for ac_dir in $PATH; do
6410 test -z "$ac_dir" && ac_dir=.
6411 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6412 lt_cv_path_LD="$ac_dir/$ac_prog"
6413 # Check to see if the program is GNU ld. I'd rather use --version,
6414 # but apparently some variants of GNU ld only accept -v.
6415 # Break only if it was the GNU/non-GNU ld that we prefer.
6416 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6417 *GNU* | *'with BFD'*)
6418 test "$with_gnu_ld" != no && break
6421 test "$with_gnu_ld" != yes && break
6428 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6433 if test -n "$LD"; then
6434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6435 $as_echo "$LD" >&6; }
6437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6438 $as_echo "no" >&6; }
6440 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6442 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6443 if ${lt_cv_prog_gnu_ld+:} false; then :
6444 $as_echo_n "(cached) " >&6
6446 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6447 case `$LD -v 2>&1 </dev/null` in
6448 *GNU* | *'with BFD'*)
6449 lt_cv_prog_gnu_ld=yes
6452 lt_cv_prog_gnu_ld=no
6456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6457 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6458 with_gnu_ld=$lt_cv_prog_gnu_ld
6468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6469 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6470 if ${lt_cv_path_NM+:} false; then :
6471 $as_echo_n "(cached) " >&6
6473 if test -n "$NM"; then
6474 # Let the user override the test.
6477 lt_nm_to_check="${ac_tool_prefix}nm"
6478 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6479 lt_nm_to_check="$lt_nm_to_check nm"
6481 for lt_tmp_nm in $lt_nm_to_check; do
6482 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6483 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6485 test -z "$ac_dir" && ac_dir=.
6486 tmp_nm="$ac_dir/$lt_tmp_nm"
6487 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6488 # Check to see if the nm accepts a BSD-compat flag.
6489 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6490 # nm: unknown option "B" ignored
6491 # Tru64's nm complains that /dev/null is an invalid object file
6492 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6493 */dev/null* | *'Invalid file or object type'*)
6494 lt_cv_path_NM="$tmp_nm -B"
6498 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6500 lt_cv_path_NM="$tmp_nm -p"
6504 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6505 continue # so that we can try to find one that supports BSD flags
6514 : ${lt_cv_path_NM=no}
6517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6518 $as_echo "$lt_cv_path_NM" >&6; }
6519 if test "$lt_cv_path_NM" != "no"; then
6522 # Didn't find any BSD compatible name lister, look for dumpbin.
6523 if test -n "$ac_tool_prefix"; then
6524 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
6526 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6527 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6529 $as_echo_n "checking for $ac_word... " >&6; }
6530 if ${ac_cv_prog_DUMPBIN+:} false; then :
6531 $as_echo_n "(cached) " >&6
6533 if test -n "$DUMPBIN"; then
6534 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6540 test -z "$as_dir" && as_dir=.
6541 for ac_exec_ext in '' $ac_executable_extensions; do
6542 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6543 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6544 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6553 DUMPBIN=$ac_cv_prog_DUMPBIN
6554 if test -n "$DUMPBIN"; then
6555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6556 $as_echo "$DUMPBIN" >&6; }
6558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6559 $as_echo "no" >&6; }
6563 test -n "$DUMPBIN" && break
6566 if test -z "$DUMPBIN"; then
6567 ac_ct_DUMPBIN=$DUMPBIN
6568 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
6570 # Extract the first word of "$ac_prog", so it can be a program name with args.
6571 set dummy $ac_prog; ac_word=$2
6572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6573 $as_echo_n "checking for $ac_word... " >&6; }
6574 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6575 $as_echo_n "(cached) " >&6
6577 if test -n "$ac_ct_DUMPBIN"; then
6578 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6584 test -z "$as_dir" && as_dir=.
6585 for ac_exec_ext in '' $ac_executable_extensions; do
6586 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6587 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6588 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6597 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6598 if test -n "$ac_ct_DUMPBIN"; then
6599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6600 $as_echo "$ac_ct_DUMPBIN" >&6; }
6602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6603 $as_echo "no" >&6; }
6607 test -n "$ac_ct_DUMPBIN" && break
6610 if test "x$ac_ct_DUMPBIN" = x; then
6613 case $cross_compiling:$ac_tool_warned in
6615 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6616 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6617 ac_tool_warned=yes ;;
6619 DUMPBIN=$ac_ct_DUMPBIN
6624 if test "$DUMPBIN" != ":"; then
6628 test -z "$NM" && NM=nm
6635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6636 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6637 if ${lt_cv_nm_interface+:} false; then :
6638 $as_echo_n "(cached) " >&6
6640 lt_cv_nm_interface="BSD nm"
6641 echo "int some_variable = 0;" > conftest.$ac_ext
6642 (eval echo "\"\$as_me:6642: $ac_compile\"" >&5)
6643 (eval "$ac_compile" 2>conftest.err)
6644 cat conftest.err >&5
6645 (eval echo "\"\$as_me:6645: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6646 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6647 cat conftest.err >&5
6648 (eval echo "\"\$as_me:6648: output\"" >&5)
6649 cat conftest.out >&5
6650 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6651 lt_cv_nm_interface="MS dumpbin"
6655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6656 $as_echo "$lt_cv_nm_interface" >&6; }
6658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6659 $as_echo_n "checking whether ln -s works... " >&6; }
6661 if test "$LN_S" = "ln -s"; then
6662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6663 $as_echo "yes" >&6; }
6665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6666 $as_echo "no, using $LN_S" >&6; }
6669 # find the maximum length of command line arguments
6670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6671 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6672 if ${lt_cv_sys_max_cmd_len+:} false; then :
6673 $as_echo_n "(cached) " >&6
6680 # On DJGPP, this test can blow up pretty badly due to problems in libc
6681 # (any single argument exceeding 2000 bytes causes a buffer overrun
6682 # during glob expansion). Even if it were fixed, the result of this
6683 # check would be larger than it should be.
6684 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6688 # Under GNU Hurd, this test is not required because there is
6689 # no limit to the length of command line arguments.
6690 # Libtool will interpret -1 as no limit whatsoever
6691 lt_cv_sys_max_cmd_len=-1;
6694 cygwin* | mingw* | cegcc*)
6695 # On Win9x/ME, this test blows up -- it succeeds, but takes
6696 # about 5 minutes as the teststring grows exponentially.
6697 # Worse, since 9x/ME are not pre-emptively multitasking,
6698 # you end up with a "frozen" computer, even though with patience
6699 # the test eventually succeeds (with a max line length of 256k).
6700 # Instead, let's just punt: use the minimum linelength reported by
6701 # all of the supported platforms: 8192 (on NT/2K/XP).
6702 lt_cv_sys_max_cmd_len=8192;
6706 # On AmigaOS with pdksh, this test takes hours, literally.
6707 # So we just punt and use a minimum line length of 8192.
6708 lt_cv_sys_max_cmd_len=8192;
6711 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6712 # This has been around since 386BSD, at least. Likely further.
6713 if test -x /sbin/sysctl; then
6714 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6715 elif test -x /usr/sbin/sysctl; then
6716 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6718 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6720 # And add a safety zone
6721 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6722 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6726 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6727 lt_cv_sys_max_cmd_len=196608
6731 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6732 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6733 # nice to cause kernel panics so lets avoid the loop below.
6734 # First set a reasonable default.
6735 lt_cv_sys_max_cmd_len=16384
6737 if test -x /sbin/sysconfig; then
6738 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6739 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6744 lt_cv_sys_max_cmd_len=102400
6746 sysv5* | sco5v6* | sysv4.2uw2*)
6747 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6748 if test -n "$kargmax"; then
6749 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6751 lt_cv_sys_max_cmd_len=32768
6755 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6756 if test -n "$lt_cv_sys_max_cmd_len"; then
6757 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6758 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6760 # Make teststring a little bigger before we do anything with it.
6761 # a 1K string should be a reasonable start.
6762 for i in 1 2 3 4 5 6 7 8 ; do
6763 teststring=$teststring$teststring
6765 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6766 # If test is not a shell built-in, we'll probably end up computing a
6767 # maximum length that is only half of the actual maximum length, but
6769 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
6770 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
6771 test $i != 17 # 1/2 MB should be enough
6774 teststring=$teststring$teststring
6776 # Only check the string length outside the loop.
6777 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6779 # Add a significant safety factor because C++ compilers can tack on
6780 # massive amounts of additional arguments before passing them to the
6781 # linker. It appears as though 1/2 is a usable value.
6782 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6789 if test -n $lt_cv_sys_max_cmd_len ; then
6790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6791 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6794 $as_echo "none" >&6; }
6796 max_cmd_len=$lt_cv_sys_max_cmd_len
6807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6808 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6809 # Try some XSI features
6812 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6814 && eval 'test $(( 1 + 1 )) -eq 2 \
6815 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6818 $as_echo "$xsi_shell" >&6; }
6821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6822 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6824 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6826 && lt_shell_append=yes
6827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6828 $as_echo "$lt_shell_append" >&6; }
6831 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6841 # test EBCDIC or ASCII
6842 case `echo X|tr X '\101'` in
6843 A) # ASCII based system
6844 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6845 lt_SP2NL='tr \040 \012'
6846 lt_NL2SP='tr \015\012 \040\040'
6848 *) # EBCDIC based system
6849 lt_SP2NL='tr \100 \n'
6850 lt_NL2SP='tr \r\n \100\100'
6862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6863 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6864 if ${lt_cv_ld_reload_flag+:} false; then :
6865 $as_echo_n "(cached) " >&6
6867 lt_cv_ld_reload_flag='-r'
6869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6870 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6871 reload_flag=$lt_cv_ld_reload_flag
6872 case $reload_flag in
6874 *) reload_flag=" $reload_flag" ;;
6876 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6879 if test "$GCC" = yes; then
6880 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6882 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6895 if test -n "$ac_tool_prefix"; then
6896 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6897 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6899 $as_echo_n "checking for $ac_word... " >&6; }
6900 if ${ac_cv_prog_OBJDUMP+:} false; then :
6901 $as_echo_n "(cached) " >&6
6903 if test -n "$OBJDUMP"; then
6904 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6910 test -z "$as_dir" && as_dir=.
6911 for ac_exec_ext in '' $ac_executable_extensions; do
6912 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6913 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6914 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6923 OBJDUMP=$ac_cv_prog_OBJDUMP
6924 if test -n "$OBJDUMP"; then
6925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6926 $as_echo "$OBJDUMP" >&6; }
6928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6929 $as_echo "no" >&6; }
6934 if test -z "$ac_cv_prog_OBJDUMP"; then
6935 ac_ct_OBJDUMP=$OBJDUMP
6936 # Extract the first word of "objdump", so it can be a program name with args.
6937 set dummy objdump; ac_word=$2
6938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6939 $as_echo_n "checking for $ac_word... " >&6; }
6940 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6941 $as_echo_n "(cached) " >&6
6943 if test -n "$ac_ct_OBJDUMP"; then
6944 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6950 test -z "$as_dir" && as_dir=.
6951 for ac_exec_ext in '' $ac_executable_extensions; do
6952 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6953 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6954 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6963 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6964 if test -n "$ac_ct_OBJDUMP"; then
6965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6966 $as_echo "$ac_ct_OBJDUMP" >&6; }
6968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6969 $as_echo "no" >&6; }
6972 if test "x$ac_ct_OBJDUMP" = x; then
6975 case $cross_compiling:$ac_tool_warned in
6977 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6978 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6979 ac_tool_warned=yes ;;
6981 OBJDUMP=$ac_ct_OBJDUMP
6984 OBJDUMP="$ac_cv_prog_OBJDUMP"
6987 test -z "$OBJDUMP" && OBJDUMP=objdump
6997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6998 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6999 if ${lt_cv_deplibs_check_method+:} false; then :
7000 $as_echo_n "(cached) " >&6
7002 lt_cv_file_magic_cmd='$MAGIC_CMD'
7003 lt_cv_file_magic_test_file=
7004 lt_cv_deplibs_check_method='unknown'
7005 # Need to set the preceding variable on all platforms that support
7006 # interlibrary dependencies.
7007 # 'none' -- dependencies not supported.
7008 # `unknown' -- same as none, but documents that we really don't know.
7009 # 'pass_all' -- all dependencies passed with no checks.
7010 # 'test_compile' -- check by making test program.
7011 # 'file_magic [[regex]]' -- check by looking for files in library path
7012 # which responds to the $file_magic_cmd with a given extended regex.
7013 # If you have `file' or equivalent on your system and you're not sure
7014 # whether `pass_all' will *always* work, you probably want this one.
7018 lt_cv_deplibs_check_method=pass_all
7022 lt_cv_deplibs_check_method=pass_all
7026 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7027 lt_cv_file_magic_cmd='/usr/bin/file -L'
7028 lt_cv_file_magic_test_file=/shlib/libc.so
7032 # func_win32_libid is a shell function defined in ltmain.sh
7033 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7034 lt_cv_file_magic_cmd='func_win32_libid'
7038 # Base MSYS/MinGW do not provide the 'file' command needed by
7039 # func_win32_libid shell function, so use a weaker test based on 'objdump',
7040 # unless we find 'file', for example because we are cross-compiling.
7041 if ( file / ) >/dev/null 2>&1; then
7042 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7043 lt_cv_file_magic_cmd='func_win32_libid'
7045 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
7046 lt_cv_file_magic_cmd='$OBJDUMP -f'
7051 # use the weaker test based on 'objdump'. See mingw*.
7052 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7053 lt_cv_file_magic_cmd='$OBJDUMP -f'
7056 darwin* | rhapsody*)
7057 lt_cv_deplibs_check_method=pass_all
7060 freebsd* | dragonfly*)
7061 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7064 # Not sure whether the presence of OpenBSD here was a mistake.
7065 # Let's accept both of them until this is cleared up.
7066 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7067 lt_cv_file_magic_cmd=/usr/bin/file
7068 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7072 lt_cv_deplibs_check_method=pass_all
7077 lt_cv_deplibs_check_method=pass_all
7080 hpux10.20* | hpux11*)
7081 lt_cv_file_magic_cmd=/usr/bin/file
7084 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7085 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7088 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
7089 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7092 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
7093 lt_cv_file_magic_test_file=/usr/lib/libc.sl
7099 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7100 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7103 irix5* | irix6* | nonstopux*)
7105 *-32|*"-32 ") libmagic=32-bit;;
7106 *-n32|*"-n32 ") libmagic=N32;;
7107 *-64|*"-64 ") libmagic=64-bit;;
7108 *) libmagic=never-match;;
7110 lt_cv_deplibs_check_method=pass_all
7113 # This must be Linux ELF.
7114 linux* | k*bsd*-gnu)
7115 lt_cv_deplibs_check_method=pass_all
7119 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7120 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7122 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7127 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7128 lt_cv_file_magic_cmd=/usr/bin/file
7129 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7133 lt_cv_deplibs_check_method=pass_all
7137 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7138 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7140 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7144 osf3* | osf4* | osf5*)
7145 lt_cv_deplibs_check_method=pass_all
7149 lt_cv_deplibs_check_method=pass_all
7153 lt_cv_deplibs_check_method=pass_all
7156 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7157 lt_cv_deplibs_check_method=pass_all
7161 case $host_vendor in
7163 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]'
7164 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7167 lt_cv_deplibs_check_method=pass_all
7170 lt_cv_file_magic_cmd='/bin/file'
7171 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7174 lt_cv_file_magic_cmd='/bin/file'
7175 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7176 lt_cv_file_magic_test_file=/lib/libc.so
7179 lt_cv_deplibs_check_method=pass_all
7182 lt_cv_deplibs_check_method=pass_all
7188 lt_cv_deplibs_check_method=pass_all
7193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7194 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7195 file_magic_cmd=$lt_cv_file_magic_cmd
7196 deplibs_check_method=$lt_cv_deplibs_check_method
7197 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7210 if test -n "$ac_tool_prefix"; then
7211 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7212 set dummy ${ac_tool_prefix}ar; ac_word=$2
7213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7214 $as_echo_n "checking for $ac_word... " >&6; }
7215 if ${ac_cv_prog_AR+:} false; then :
7216 $as_echo_n "(cached) " >&6
7218 if test -n "$AR"; then
7219 ac_cv_prog_AR="$AR" # Let the user override the test.
7221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7225 test -z "$as_dir" && as_dir=.
7226 for ac_exec_ext in '' $ac_executable_extensions; do
7227 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7228 ac_cv_prog_AR="${ac_tool_prefix}ar"
7229 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7239 if test -n "$AR"; then
7240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7241 $as_echo "$AR" >&6; }
7243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7244 $as_echo "no" >&6; }
7249 if test -z "$ac_cv_prog_AR"; then
7251 # Extract the first word of "ar", so it can be a program name with args.
7252 set dummy ar; ac_word=$2
7253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7254 $as_echo_n "checking for $ac_word... " >&6; }
7255 if ${ac_cv_prog_ac_ct_AR+:} false; then :
7256 $as_echo_n "(cached) " >&6
7258 if test -n "$ac_ct_AR"; then
7259 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7265 test -z "$as_dir" && as_dir=.
7266 for ac_exec_ext in '' $ac_executable_extensions; do
7267 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7268 ac_cv_prog_ac_ct_AR="ar"
7269 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7278 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7279 if test -n "$ac_ct_AR"; then
7280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7281 $as_echo "$ac_ct_AR" >&6; }
7283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7284 $as_echo "no" >&6; }
7287 if test "x$ac_ct_AR" = x; then
7290 case $cross_compiling:$ac_tool_warned in
7292 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7293 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7294 ac_tool_warned=yes ;;
7302 test -z "$AR" && AR=ar
7303 test -z "$AR_FLAGS" && AR_FLAGS=cru
7315 if test -n "$ac_tool_prefix"; then
7316 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7317 set dummy ${ac_tool_prefix}strip; ac_word=$2
7318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7319 $as_echo_n "checking for $ac_word... " >&6; }
7320 if ${ac_cv_prog_STRIP+:} false; then :
7321 $as_echo_n "(cached) " >&6
7323 if test -n "$STRIP"; then
7324 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7330 test -z "$as_dir" && as_dir=.
7331 for ac_exec_ext in '' $ac_executable_extensions; do
7332 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7333 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7334 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7343 STRIP=$ac_cv_prog_STRIP
7344 if test -n "$STRIP"; then
7345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7346 $as_echo "$STRIP" >&6; }
7348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7349 $as_echo "no" >&6; }
7354 if test -z "$ac_cv_prog_STRIP"; then
7356 # Extract the first word of "strip", so it can be a program name with args.
7357 set dummy strip; ac_word=$2
7358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7359 $as_echo_n "checking for $ac_word... " >&6; }
7360 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7361 $as_echo_n "(cached) " >&6
7363 if test -n "$ac_ct_STRIP"; then
7364 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7370 test -z "$as_dir" && as_dir=.
7371 for ac_exec_ext in '' $ac_executable_extensions; do
7372 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7373 ac_cv_prog_ac_ct_STRIP="strip"
7374 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7383 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7384 if test -n "$ac_ct_STRIP"; then
7385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7386 $as_echo "$ac_ct_STRIP" >&6; }
7388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7389 $as_echo "no" >&6; }
7392 if test "x$ac_ct_STRIP" = x; then
7395 case $cross_compiling:$ac_tool_warned in
7397 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7398 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7399 ac_tool_warned=yes ;;
7404 STRIP="$ac_cv_prog_STRIP"
7407 test -z "$STRIP" && STRIP=:
7414 if test -n "$ac_tool_prefix"; then
7415 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7416 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7418 $as_echo_n "checking for $ac_word... " >&6; }
7419 if ${ac_cv_prog_RANLIB+:} false; then :
7420 $as_echo_n "(cached) " >&6
7422 if test -n "$RANLIB"; then
7423 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7429 test -z "$as_dir" && as_dir=.
7430 for ac_exec_ext in '' $ac_executable_extensions; do
7431 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7432 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7433 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7442 RANLIB=$ac_cv_prog_RANLIB
7443 if test -n "$RANLIB"; then
7444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7445 $as_echo "$RANLIB" >&6; }
7447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7448 $as_echo "no" >&6; }
7453 if test -z "$ac_cv_prog_RANLIB"; then
7454 ac_ct_RANLIB=$RANLIB
7455 # Extract the first word of "ranlib", so it can be a program name with args.
7456 set dummy ranlib; ac_word=$2
7457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7458 $as_echo_n "checking for $ac_word... " >&6; }
7459 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7460 $as_echo_n "(cached) " >&6
7462 if test -n "$ac_ct_RANLIB"; then
7463 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7469 test -z "$as_dir" && as_dir=.
7470 for ac_exec_ext in '' $ac_executable_extensions; do
7471 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7472 ac_cv_prog_ac_ct_RANLIB="ranlib"
7473 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7482 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7483 if test -n "$ac_ct_RANLIB"; then
7484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7485 $as_echo "$ac_ct_RANLIB" >&6; }
7487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7488 $as_echo "no" >&6; }
7491 if test "x$ac_ct_RANLIB" = x; then
7494 case $cross_compiling:$ac_tool_warned in
7496 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7497 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7498 ac_tool_warned=yes ;;
7500 RANLIB=$ac_ct_RANLIB
7503 RANLIB="$ac_cv_prog_RANLIB"
7506 test -z "$RANLIB" && RANLIB=:
7513 # Determine commands to create old-style static archives.
7514 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7515 old_postinstall_cmds='chmod 644 $oldlib'
7516 old_postuninstall_cmds=
7518 if test -n "$RANLIB"; then
7521 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7524 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7527 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7563 # If no C compiler was specified, use CC.
7566 # If no C compiler flags were specified, use CFLAGS.
7567 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7569 # Allow CC to be a program name with arguments.
7573 # Check for command to grab the raw symbol name followed by C symbol from nm.
7574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7575 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7576 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7577 $as_echo_n "(cached) " >&6
7580 # These are sane defaults that work on at least a few old systems.
7581 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7583 # Character class describing NM global symbol codes.
7584 symcode='[BCDEGRST]'
7586 # Regexp to match symbols that can be accessed directly from C.
7587 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7589 # Define system-specific variables.
7594 cygwin* | mingw* | pw32* | cegcc*)
7595 symcode='[ABCDGISTW]'
7598 if test "$host_cpu" = ia64; then
7599 symcode='[ABCDEGRST]'
7603 symcode='[BCDEGRST]'
7606 symcode='[BCDEGQRST]'
7617 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7625 # If we're using GNU nm, then use its standard symbol codes.
7626 case `$NM -V 2>&1` in
7627 *GNU* | *'with BFD'*)
7628 symcode='[ABCDGIRSTW]' ;;
7631 # Transform an extracted symbol line into a proper C declaration.
7632 # Some systems (esp. on ia64) link data and code symbols differently,
7633 # so use this general approach.
7634 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7636 # Transform an extracted symbol line into symbol name and symbol address
7637 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7638 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'"
7640 # Handle CRLF in mingw tool chain
7644 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7648 # Try without a prefix underscore, then with it.
7649 for ac_symprfx in "" "_"; do
7651 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7652 symxfrm="\\1 $ac_symprfx\\2 \\2"
7654 # Write the raw and C identifiers.
7655 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7656 # Fake it for dumpbin and say T for any non-static function
7657 # and D for any global variable.
7658 # Also find C++ and __fastcall symbols from MSVC++,
7659 # which start with @ or ?.
7660 lt_cv_sys_global_symbol_pipe="$AWK '"\
7661 " {last_section=section; section=\$ 3};"\
7662 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7663 " \$ 0!~/External *\|/{next};"\
7664 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7665 " {if(hide[section]) next};"\
7666 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7667 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7668 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7669 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7670 " ' prfx=^$ac_symprfx"
7672 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7675 # Check to see that the pipe works correctly.
7679 cat > conftest.$ac_ext <<_LT_EOF
7684 void nm_test_func(void);
7685 void nm_test_func(void){}
7689 int main(){nm_test_var='a';nm_test_func();return(0);}
7692 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7693 (eval $ac_compile) 2>&5
7695 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7696 test $ac_status = 0; }; then
7697 # Now try to grab the symbols.
7699 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
7700 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7702 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7703 test $ac_status = 0; } && test -s "$nlist"; then
7704 # Try sorting and uniquifying the output.
7705 if sort "$nlist" | uniq > "$nlist"T; then
7706 mv -f "$nlist"T "$nlist"
7711 # Make sure that we snagged all the symbols we need.
7712 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7713 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7714 cat <<_LT_EOF > conftest.$ac_ext
7720 # Now generate the symbol file.
7721 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7723 cat <<_LT_EOF >> conftest.$ac_ext
7725 /* The mapping between symbol names and symbols. */
7730 lt__PROGRAM__LTX_preloaded_symbols[] =
7732 { "@PROGRAM@", (void *) 0 },
7734 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7735 cat <<\_LT_EOF >> conftest.$ac_ext
7739 /* This works around a problem in FreeBSD linker */
7740 #ifdef FREEBSD_WORKAROUND
7741 static const void *lt_preloaded_setup() {
7742 return lt__PROGRAM__LTX_preloaded_symbols;
7750 # Now try linking the two files.
7751 mv conftest.$ac_objext conftstm.$ac_objext
7752 lt_save_LIBS="$LIBS"
7753 lt_save_CFLAGS="$CFLAGS"
7754 LIBS="conftstm.$ac_objext"
7755 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7756 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7757 (eval $ac_link) 2>&5
7759 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7760 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7763 LIBS="$lt_save_LIBS"
7764 CFLAGS="$lt_save_CFLAGS"
7766 echo "cannot find nm_test_func in $nlist" >&5
7769 echo "cannot find nm_test_var in $nlist" >&5
7772 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7775 echo "$progname: failed program was:" >&5
7776 cat conftest.$ac_ext >&5
7778 rm -rf conftest* conftst*
7780 # Do not use the global_symbol_pipe unless it works.
7781 if test "$pipe_works" = yes; then
7784 lt_cv_sys_global_symbol_pipe=
7790 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7791 lt_cv_sys_global_symbol_to_cdecl=
7793 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7795 $as_echo "failed" >&6; }
7797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7798 $as_echo "ok" >&6; }
7822 # Check whether --enable-libtool-lock was given.
7823 if test "${enable_libtool_lock+set}" = set; then :
7824 enableval=$enable_libtool_lock;
7827 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7829 # Some flags need to be propagated to the compiler or linker for good
7833 # Find out which ABI we are using.
7834 echo 'int i;' > conftest.$ac_ext
7835 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7836 (eval $ac_compile) 2>&5
7838 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7839 test $ac_status = 0; }; then
7840 case `/usr/bin/file conftest.$ac_objext` in
7852 # Find out which ABI we are using.
7853 echo '#line 7853 "configure"' > conftest.$ac_ext
7854 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7855 (eval $ac_compile) 2>&5
7857 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7858 test $ac_status = 0; }; then
7859 if test "$lt_cv_prog_gnu_ld" = yes; then
7860 case `/usr/bin/file conftest.$ac_objext` in
7862 LD="${LD-ld} -melf32bsmip"
7865 LD="${LD-ld} -melf32bmipn32"
7868 LD="${LD-ld} -melf64bmip"
7872 case `/usr/bin/file conftest.$ac_objext` in
7888 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7889 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7890 # Find out which ABI we are using.
7891 echo 'int i;' > conftest.$ac_ext
7892 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7893 (eval $ac_compile) 2>&5
7895 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7896 test $ac_status = 0; }; then
7897 case `/usr/bin/file conftest.o` in
7900 x86_64-*kfreebsd*-gnu)
7901 LD="${LD-ld} -m elf_i386_fbsd"
7904 LD="${LD-ld} -m elf_i386"
7906 ppc64-*linux*|powerpc64-*linux*)
7907 LD="${LD-ld} -m elf32ppclinux"
7910 LD="${LD-ld} -m elf_s390"
7913 LD="${LD-ld} -m elf32_sparc"
7919 x86_64-*kfreebsd*-gnu)
7920 LD="${LD-ld} -m elf_x86_64_fbsd"
7923 LD="${LD-ld} -m elf_x86_64"
7925 ppc*-*linux*|powerpc*-*linux*)
7926 LD="${LD-ld} -m elf64ppc"
7928 s390*-*linux*|s390*-*tpf*)
7929 LD="${LD-ld} -m elf64_s390"
7932 LD="${LD-ld} -m elf64_sparc"
7942 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7943 SAVE_CFLAGS="$CFLAGS"
7944 CFLAGS="$CFLAGS -belf"
7945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7946 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7947 if ${lt_cv_cc_needs_belf+:} false; then :
7948 $as_echo_n "(cached) " >&6
7951 ac_cpp='$CPP $CPPFLAGS'
7952 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7953 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7954 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7957 /* end confdefs.h. */
7967 if ac_fn_c_try_link "$LINENO"; then :
7968 lt_cv_cc_needs_belf=yes
7970 lt_cv_cc_needs_belf=no
7972 rm -f core conftest.err conftest.$ac_objext \
7973 conftest$ac_exeext conftest.$ac_ext
7975 ac_cpp='$CPP $CPPFLAGS'
7976 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7977 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7978 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7982 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7983 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7984 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7985 CFLAGS="$SAVE_CFLAGS"
7989 # Find out which ABI we are using.
7990 echo 'int i;' > conftest.$ac_ext
7991 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7992 (eval $ac_compile) 2>&5
7994 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7995 test $ac_status = 0; }; then
7996 case `/usr/bin/file conftest.o` in
7998 case $lt_cv_prog_gnu_ld in
7999 yes*) LD="${LD-ld} -m elf64_sparc" ;;
8001 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8013 need_locks="$enable_libtool_lock"
8017 rhapsody* | darwin*)
8018 if test -n "$ac_tool_prefix"; then
8019 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8020 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8022 $as_echo_n "checking for $ac_word... " >&6; }
8023 if ${ac_cv_prog_DSYMUTIL+:} false; then :
8024 $as_echo_n "(cached) " >&6
8026 if test -n "$DSYMUTIL"; then
8027 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8033 test -z "$as_dir" && as_dir=.
8034 for ac_exec_ext in '' $ac_executable_extensions; do
8035 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8036 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8037 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8046 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8047 if test -n "$DSYMUTIL"; then
8048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8049 $as_echo "$DSYMUTIL" >&6; }
8051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8052 $as_echo "no" >&6; }
8057 if test -z "$ac_cv_prog_DSYMUTIL"; then
8058 ac_ct_DSYMUTIL=$DSYMUTIL
8059 # Extract the first word of "dsymutil", so it can be a program name with args.
8060 set dummy dsymutil; ac_word=$2
8061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8062 $as_echo_n "checking for $ac_word... " >&6; }
8063 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8064 $as_echo_n "(cached) " >&6
8066 if test -n "$ac_ct_DSYMUTIL"; then
8067 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8073 test -z "$as_dir" && as_dir=.
8074 for ac_exec_ext in '' $ac_executable_extensions; do
8075 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8076 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8077 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8086 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8087 if test -n "$ac_ct_DSYMUTIL"; then
8088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8089 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8092 $as_echo "no" >&6; }
8095 if test "x$ac_ct_DSYMUTIL" = x; then
8098 case $cross_compiling:$ac_tool_warned in
8100 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8101 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8102 ac_tool_warned=yes ;;
8104 DSYMUTIL=$ac_ct_DSYMUTIL
8107 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8110 if test -n "$ac_tool_prefix"; then
8111 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8112 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8114 $as_echo_n "checking for $ac_word... " >&6; }
8115 if ${ac_cv_prog_NMEDIT+:} false; then :
8116 $as_echo_n "(cached) " >&6
8118 if test -n "$NMEDIT"; then
8119 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8125 test -z "$as_dir" && as_dir=.
8126 for ac_exec_ext in '' $ac_executable_extensions; do
8127 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8128 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8129 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8138 NMEDIT=$ac_cv_prog_NMEDIT
8139 if test -n "$NMEDIT"; then
8140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8141 $as_echo "$NMEDIT" >&6; }
8143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8144 $as_echo "no" >&6; }
8149 if test -z "$ac_cv_prog_NMEDIT"; then
8150 ac_ct_NMEDIT=$NMEDIT
8151 # Extract the first word of "nmedit", so it can be a program name with args.
8152 set dummy nmedit; ac_word=$2
8153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8154 $as_echo_n "checking for $ac_word... " >&6; }
8155 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8156 $as_echo_n "(cached) " >&6
8158 if test -n "$ac_ct_NMEDIT"; then
8159 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8165 test -z "$as_dir" && as_dir=.
8166 for ac_exec_ext in '' $ac_executable_extensions; do
8167 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8168 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8169 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8178 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8179 if test -n "$ac_ct_NMEDIT"; then
8180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8181 $as_echo "$ac_ct_NMEDIT" >&6; }
8183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8184 $as_echo "no" >&6; }
8187 if test "x$ac_ct_NMEDIT" = x; then
8190 case $cross_compiling:$ac_tool_warned in
8192 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8193 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8194 ac_tool_warned=yes ;;
8196 NMEDIT=$ac_ct_NMEDIT
8199 NMEDIT="$ac_cv_prog_NMEDIT"
8202 if test -n "$ac_tool_prefix"; then
8203 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8204 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8206 $as_echo_n "checking for $ac_word... " >&6; }
8207 if ${ac_cv_prog_LIPO+:} false; then :
8208 $as_echo_n "(cached) " >&6
8210 if test -n "$LIPO"; then
8211 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8217 test -z "$as_dir" && as_dir=.
8218 for ac_exec_ext in '' $ac_executable_extensions; do
8219 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8220 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8221 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8230 LIPO=$ac_cv_prog_LIPO
8231 if test -n "$LIPO"; then
8232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8233 $as_echo "$LIPO" >&6; }
8235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8236 $as_echo "no" >&6; }
8241 if test -z "$ac_cv_prog_LIPO"; then
8243 # Extract the first word of "lipo", so it can be a program name with args.
8244 set dummy lipo; ac_word=$2
8245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8246 $as_echo_n "checking for $ac_word... " >&6; }
8247 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8248 $as_echo_n "(cached) " >&6
8250 if test -n "$ac_ct_LIPO"; then
8251 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8257 test -z "$as_dir" && as_dir=.
8258 for ac_exec_ext in '' $ac_executable_extensions; do
8259 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8260 ac_cv_prog_ac_ct_LIPO="lipo"
8261 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8270 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8271 if test -n "$ac_ct_LIPO"; then
8272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8273 $as_echo "$ac_ct_LIPO" >&6; }
8275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8276 $as_echo "no" >&6; }
8279 if test "x$ac_ct_LIPO" = x; then
8282 case $cross_compiling:$ac_tool_warned in
8284 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8285 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8286 ac_tool_warned=yes ;;
8291 LIPO="$ac_cv_prog_LIPO"
8294 if test -n "$ac_tool_prefix"; then
8295 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8296 set dummy ${ac_tool_prefix}otool; ac_word=$2
8297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8298 $as_echo_n "checking for $ac_word... " >&6; }
8299 if ${ac_cv_prog_OTOOL+:} false; then :
8300 $as_echo_n "(cached) " >&6
8302 if test -n "$OTOOL"; then
8303 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8309 test -z "$as_dir" && as_dir=.
8310 for ac_exec_ext in '' $ac_executable_extensions; do
8311 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8312 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8313 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8322 OTOOL=$ac_cv_prog_OTOOL
8323 if test -n "$OTOOL"; then
8324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8325 $as_echo "$OTOOL" >&6; }
8327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8328 $as_echo "no" >&6; }
8333 if test -z "$ac_cv_prog_OTOOL"; then
8335 # Extract the first word of "otool", so it can be a program name with args.
8336 set dummy otool; ac_word=$2
8337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8338 $as_echo_n "checking for $ac_word... " >&6; }
8339 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8340 $as_echo_n "(cached) " >&6
8342 if test -n "$ac_ct_OTOOL"; then
8343 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8349 test -z "$as_dir" && as_dir=.
8350 for ac_exec_ext in '' $ac_executable_extensions; do
8351 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8352 ac_cv_prog_ac_ct_OTOOL="otool"
8353 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8362 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8363 if test -n "$ac_ct_OTOOL"; then
8364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8365 $as_echo "$ac_ct_OTOOL" >&6; }
8367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8368 $as_echo "no" >&6; }
8371 if test "x$ac_ct_OTOOL" = x; then
8374 case $cross_compiling:$ac_tool_warned in
8376 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8377 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8378 ac_tool_warned=yes ;;
8383 OTOOL="$ac_cv_prog_OTOOL"
8386 if test -n "$ac_tool_prefix"; then
8387 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8388 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8390 $as_echo_n "checking for $ac_word... " >&6; }
8391 if ${ac_cv_prog_OTOOL64+:} false; then :
8392 $as_echo_n "(cached) " >&6
8394 if test -n "$OTOOL64"; then
8395 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8401 test -z "$as_dir" && as_dir=.
8402 for ac_exec_ext in '' $ac_executable_extensions; do
8403 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8404 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8405 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8414 OTOOL64=$ac_cv_prog_OTOOL64
8415 if test -n "$OTOOL64"; then
8416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8417 $as_echo "$OTOOL64" >&6; }
8419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8420 $as_echo "no" >&6; }
8425 if test -z "$ac_cv_prog_OTOOL64"; then
8426 ac_ct_OTOOL64=$OTOOL64
8427 # Extract the first word of "otool64", so it can be a program name with args.
8428 set dummy otool64; ac_word=$2
8429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8430 $as_echo_n "checking for $ac_word... " >&6; }
8431 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8432 $as_echo_n "(cached) " >&6
8434 if test -n "$ac_ct_OTOOL64"; then
8435 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8441 test -z "$as_dir" && as_dir=.
8442 for ac_exec_ext in '' $ac_executable_extensions; do
8443 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8444 ac_cv_prog_ac_ct_OTOOL64="otool64"
8445 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8454 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8455 if test -n "$ac_ct_OTOOL64"; then
8456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8457 $as_echo "$ac_ct_OTOOL64" >&6; }
8459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8460 $as_echo "no" >&6; }
8463 if test "x$ac_ct_OTOOL64" = x; then
8466 case $cross_compiling:$ac_tool_warned in
8468 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8469 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8470 ac_tool_warned=yes ;;
8472 OTOOL64=$ac_ct_OTOOL64
8475 OTOOL64="$ac_cv_prog_OTOOL64"
8504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8505 $as_echo_n "checking for -single_module linker flag... " >&6; }
8506 if ${lt_cv_apple_cc_single_mod+:} false; then :
8507 $as_echo_n "(cached) " >&6
8509 lt_cv_apple_cc_single_mod=no
8510 if test -z "${LT_MULTI_MODULE}"; then
8511 # By default we will add the -single_module flag. You can override
8512 # by either setting the environment variable LT_MULTI_MODULE
8513 # non-empty at configure time, or by adding -multi_module to the
8515 rm -rf libconftest.dylib*
8516 echo "int foo(void){return 1;}" > conftest.c
8517 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8518 -dynamiclib -Wl,-single_module conftest.c" >&5
8519 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8520 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8522 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8523 lt_cv_apple_cc_single_mod=yes
8525 cat conftest.err >&5
8527 rm -rf libconftest.dylib*
8531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8532 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8534 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8535 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8536 $as_echo_n "(cached) " >&6
8538 lt_cv_ld_exported_symbols_list=no
8539 save_LDFLAGS=$LDFLAGS
8540 echo "_main" > conftest.sym
8541 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8543 /* end confdefs.h. */
8553 if ac_fn_c_try_link "$LINENO"; then :
8554 lt_cv_ld_exported_symbols_list=yes
8556 lt_cv_ld_exported_symbols_list=no
8558 rm -f core conftest.err conftest.$ac_objext \
8559 conftest$ac_exeext conftest.$ac_ext
8560 LDFLAGS="$save_LDFLAGS"
8563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8564 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8566 rhapsody* | darwin1.[012])
8567 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8569 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8570 darwin*) # darwin 5.x on
8571 # if running on 10.5 or later, the deployment target defaults
8572 # to the OS version, if on x86, and 10.4, the deployment
8573 # target defaults to 10.4. Don't you love it?
8574 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8575 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8576 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8578 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8580 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8584 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8585 _lt_dar_single_mod='$single_module'
8587 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8588 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8590 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8592 if test "$DSYMUTIL" != ":"; then
8593 _lt_dsymutil='~$DSYMUTIL $lib || :'
8600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8601 $as_echo_n "checking for ANSI C header files... " >&6; }
8602 if ${ac_cv_header_stdc+:} false; then :
8603 $as_echo_n "(cached) " >&6
8605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8606 /* end confdefs.h. */
8620 if ac_fn_c_try_compile "$LINENO"; then :
8621 ac_cv_header_stdc=yes
8623 ac_cv_header_stdc=no
8625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8627 if test $ac_cv_header_stdc = yes; then
8628 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8630 /* end confdefs.h. */
8634 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8635 $EGREP "memchr" >/dev/null 2>&1; then :
8638 ac_cv_header_stdc=no
8644 if test $ac_cv_header_stdc = yes; then
8645 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8647 /* end confdefs.h. */
8651 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8652 $EGREP "free" >/dev/null 2>&1; then :
8655 ac_cv_header_stdc=no
8661 if test $ac_cv_header_stdc = yes; then
8662 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8663 if test "$cross_compiling" = yes; then :
8666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8667 /* end confdefs.h. */
8670 #if ((' ' & 0x0FF) == 0x020)
8671 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8672 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8674 # define ISLOWER(c) \
8675 (('a' <= (c) && (c) <= 'i') \
8676 || ('j' <= (c) && (c) <= 'r') \
8677 || ('s' <= (c) && (c) <= 'z'))
8678 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8681 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8686 for (i = 0; i < 256; i++)
8687 if (XOR (islower (i), ISLOWER (i))
8688 || toupper (i) != TOUPPER (i))
8693 if ac_fn_c_try_run "$LINENO"; then :
8696 ac_cv_header_stdc=no
8698 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8699 conftest.$ac_objext conftest.beam conftest.$ac_ext
8704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8705 $as_echo "$ac_cv_header_stdc" >&6; }
8706 if test $ac_cv_header_stdc = yes; then
8708 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8712 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8713 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8714 inttypes.h stdint.h unistd.h
8716 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8717 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8719 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8720 cat >>confdefs.h <<_ACEOF
8721 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8729 for ac_header in dlfcn.h
8731 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8733 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8734 cat >>confdefs.h <<_ACEOF
8735 #define HAVE_DLFCN_H 1
8745 ac_cpp='$CXXCPP $CPPFLAGS'
8746 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8747 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8748 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8749 if test -z "$CXX"; then
8750 if test -n "$CCC"; then
8753 if test -n "$ac_tool_prefix"; then
8754 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
8756 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8757 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8759 $as_echo_n "checking for $ac_word... " >&6; }
8760 if ${ac_cv_prog_CXX+:} false; then :
8761 $as_echo_n "(cached) " >&6
8763 if test -n "$CXX"; then
8764 ac_cv_prog_CXX="$CXX" # Let the user override the test.
8766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8770 test -z "$as_dir" && as_dir=.
8771 for ac_exec_ext in '' $ac_executable_extensions; do
8772 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8773 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
8774 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8784 if test -n "$CXX"; then
8785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
8786 $as_echo "$CXX" >&6; }
8788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8789 $as_echo "no" >&6; }
8793 test -n "$CXX" && break
8796 if test -z "$CXX"; then
8798 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
8800 # Extract the first word of "$ac_prog", so it can be a program name with args.
8801 set dummy $ac_prog; ac_word=$2
8802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8803 $as_echo_n "checking for $ac_word... " >&6; }
8804 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
8805 $as_echo_n "(cached) " >&6
8807 if test -n "$ac_ct_CXX"; then
8808 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
8810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8814 test -z "$as_dir" && as_dir=.
8815 for ac_exec_ext in '' $ac_executable_extensions; do
8816 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8817 ac_cv_prog_ac_ct_CXX="$ac_prog"
8818 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8827 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
8828 if test -n "$ac_ct_CXX"; then
8829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
8830 $as_echo "$ac_ct_CXX" >&6; }
8832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8833 $as_echo "no" >&6; }
8837 test -n "$ac_ct_CXX" && break
8840 if test "x$ac_ct_CXX" = x; then
8843 case $cross_compiling:$ac_tool_warned in
8845 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8846 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8847 ac_tool_warned=yes ;;
8855 # Provide some information about the compiler.
8856 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
8859 for ac_option in --version -v -V -qversion; do
8860 { { ac_try="$ac_compiler $ac_option >&5"
8862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8863 *) ac_try_echo=$ac_try;;
8865 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
8866 $as_echo "$ac_try_echo"; } >&5
8867 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
8869 if test -s conftest.err; then
8871 ... rest of stderr output deleted ...
8872 10q' conftest.err >conftest.er1
8873 cat conftest.er1 >&5
8875 rm -f conftest.er1 conftest.err
8876 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8877 test $ac_status = 0; }
8880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
8881 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
8882 if ${ac_cv_cxx_compiler_gnu+:} false; then :
8883 $as_echo_n "(cached) " >&6
8885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8886 /* end confdefs.h. */
8899 if ac_fn_cxx_try_compile "$LINENO"; then :
8904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8905 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
8908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
8909 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
8910 if test $ac_compiler_gnu = yes; then
8915 ac_test_CXXFLAGS=${CXXFLAGS+set}
8916 ac_save_CXXFLAGS=$CXXFLAGS
8917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
8918 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
8919 if ${ac_cv_prog_cxx_g+:} false; then :
8920 $as_echo_n "(cached) " >&6
8922 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
8923 ac_cxx_werror_flag=yes
8926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8927 /* end confdefs.h. */
8937 if ac_fn_cxx_try_compile "$LINENO"; then :
8938 ac_cv_prog_cxx_g=yes
8941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8942 /* end confdefs.h. */
8952 if ac_fn_cxx_try_compile "$LINENO"; then :
8955 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8958 /* end confdefs.h. */
8968 if ac_fn_cxx_try_compile "$LINENO"; then :
8969 ac_cv_prog_cxx_g=yes
8971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8976 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
8979 $as_echo "$ac_cv_prog_cxx_g" >&6; }
8980 if test "$ac_test_CXXFLAGS" = set; then
8981 CXXFLAGS=$ac_save_CXXFLAGS
8982 elif test $ac_cv_prog_cxx_g = yes; then
8983 if test "$GXX" = yes; then
8989 if test "$GXX" = yes; then
8996 ac_cpp='$CPP $CPPFLAGS'
8997 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8998 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8999 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9001 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
9002 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
9003 (test "X$CXX" != "Xg++"))) ; then
9005 ac_cpp='$CXXCPP $CPPFLAGS'
9006 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9007 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9008 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
9010 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
9011 if test -z "$CXXCPP"; then
9012 if ${ac_cv_prog_CXXCPP+:} false; then :
9013 $as_echo_n "(cached) " >&6
9015 # Double quotes because CXXCPP needs to be expanded
9016 for CXXCPP in "$CXX -E" "/lib/cpp"
9019 for ac_cxx_preproc_warn_flag in '' yes
9021 # Use a header file that comes with gcc, so configuring glibc
9022 # with a fresh cross-compiler works.
9023 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9024 # <limits.h> exists even on freestanding compilers.
9025 # On the NeXT, cc -E runs the code through the compiler's parser,
9026 # not just through cpp. "Syntax error" is here to catch this case.
9027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9028 /* end confdefs.h. */
9030 # include <limits.h>
9032 # include <assert.h>
9036 if ac_fn_cxx_try_cpp "$LINENO"; then :
9039 # Broken: fails on valid input.
9042 rm -f conftest.err conftest.i conftest.$ac_ext
9044 # OK, works on sane cases. Now check whether nonexistent headers
9045 # can be detected and how.
9046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9047 /* end confdefs.h. */
9048 #include <ac_nonexistent.h>
9050 if ac_fn_cxx_try_cpp "$LINENO"; then :
9051 # Broken: success on invalid input.
9054 # Passes both tests.
9058 rm -f conftest.err conftest.i conftest.$ac_ext
9061 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9062 rm -f conftest.i conftest.err conftest.$ac_ext
9063 if $ac_preproc_ok; then :
9068 ac_cv_prog_CXXCPP=$CXXCPP
9071 CXXCPP=$ac_cv_prog_CXXCPP
9073 ac_cv_prog_CXXCPP=$CXXCPP
9075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
9076 $as_echo "$CXXCPP" >&6; }
9078 for ac_cxx_preproc_warn_flag in '' yes
9080 # Use a header file that comes with gcc, so configuring glibc
9081 # with a fresh cross-compiler works.
9082 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9083 # <limits.h> exists even on freestanding compilers.
9084 # On the NeXT, cc -E runs the code through the compiler's parser,
9085 # not just through cpp. "Syntax error" is here to catch this case.
9086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9087 /* end confdefs.h. */
9089 # include <limits.h>
9091 # include <assert.h>
9095 if ac_fn_cxx_try_cpp "$LINENO"; then :
9098 # Broken: fails on valid input.
9101 rm -f conftest.err conftest.i conftest.$ac_ext
9103 # OK, works on sane cases. Now check whether nonexistent headers
9104 # can be detected and how.
9105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9106 /* end confdefs.h. */
9107 #include <ac_nonexistent.h>
9109 if ac_fn_cxx_try_cpp "$LINENO"; then :
9110 # Broken: success on invalid input.
9113 # Passes both tests.
9117 rm -f conftest.err conftest.i conftest.$ac_ext
9120 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9121 rm -f conftest.i conftest.err conftest.$ac_ext
9122 if $ac_preproc_ok; then :
9125 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9126 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9127 _lt_caught_CXX_error=yes; }
9131 ac_cpp='$CPP $CPPFLAGS'
9132 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9133 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9134 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9137 _lt_caught_CXX_error=yes
9145 # Check whether --enable-shared was given.
9146 if test "${enable_shared+set}" = set; then :
9147 enableval=$enable_shared; p=${PACKAGE-default}
9149 yes) enable_shared=yes ;;
9150 no) enable_shared=no ;;
9153 # Look at the argument we got. We use all the common list separators.
9154 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9155 for pkg in $enableval; do
9157 if test "X$pkg" = "X$p"; then
9174 # Check whether --enable-static was given.
9175 if test "${enable_static+set}" = set; then :
9176 enableval=$enable_static; p=${PACKAGE-default}
9178 yes) enable_static=yes ;;
9179 no) enable_static=no ;;
9182 # Look at the argument we got. We use all the common list separators.
9183 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9184 for pkg in $enableval; do
9186 if test "X$pkg" = "X$p"; then
9215 # Check whether --with-pic was given.
9216 if test "${with_pic+set}" = set; then :
9217 withval=$with_pic; pic_mode="$withval"
9223 test -z "$pic_mode" && pic_mode=default
9231 # Check whether --enable-fast-install was given.
9232 if test "${enable_fast_install+set}" = set; then :
9233 enableval=$enable_fast_install; p=${PACKAGE-default}
9235 yes) enable_fast_install=yes ;;
9236 no) enable_fast_install=no ;;
9238 enable_fast_install=no
9239 # Look at the argument we got. We use all the common list separators.
9240 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9241 for pkg in $enableval; do
9243 if test "X$pkg" = "X$p"; then
9244 enable_fast_install=yes
9251 enable_fast_install=yes
9264 # This can be used to rebuild libtool when needed
9265 LIBTOOL_DEPS="$ltmain"
9267 # Always use our own libtool.
9268 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9294 test -z "$LN_S" && LN_S="ln -s"
9309 if test -n "${ZSH_VERSION+set}" ; then
9310 setopt NO_GLOB_SUBST
9313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9314 $as_echo_n "checking for objdir... " >&6; }
9315 if ${lt_cv_objdir+:} false; then :
9316 $as_echo_n "(cached) " >&6
9318 rm -f .libs 2>/dev/null
9319 mkdir .libs 2>/dev/null
9320 if test -d .libs; then
9323 # MS-DOS does not allow filenames that begin with a dot.
9326 rmdir .libs 2>/dev/null
9328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9329 $as_echo "$lt_cv_objdir" >&6; }
9330 objdir=$lt_cv_objdir
9336 cat >>confdefs.h <<_ACEOF
9337 #define LT_OBJDIR "$lt_cv_objdir/"
9358 # AIX sometimes has problems with the GCC collect2 program. For some
9359 # reason, if we set the COLLECT_NAMES environment variable, the problems
9360 # vanish in a puff of smoke.
9361 if test "X${COLLECT_NAMES+set}" != Xset; then
9363 export COLLECT_NAMES
9368 # Sed substitution that helps us do robust quoting. It backslashifies
9369 # metacharacters that are still active within double-quoted strings.
9370 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
9372 # Same as above, but do not quote variable references.
9373 double_quote_subst='s/\(["`\\]\)/\\\1/g'
9375 # Sed substitution to delay expansion of an escaped shell variable in a
9376 # double_quote_subst'ed string.
9377 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
9379 # Sed substitution to delay expansion of an escaped single quote.
9380 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
9382 # Sed substitution to avoid accidental globbing in evaled expressions
9383 no_glob_subst='s/\*/\\\*/g'
9387 can_build_shared=yes
9389 # All known linkers require a `.a' archive for static linking (except MSVC,
9390 # which needs '.lib').
9393 with_gnu_ld="$lt_cv_prog_gnu_ld"
9396 old_CFLAGS="$CFLAGS"
9398 # Set sane defaults for various variables
9399 test -z "$CC" && CC=cc
9400 test -z "$LTCC" && LTCC=$CC
9401 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9402 test -z "$LD" && LD=ld
9403 test -z "$ac_objext" && ac_objext=o
9405 for cc_temp in $compiler""; do
9407 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9408 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9413 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9416 # Only perform the check for file, if the check method requires it
9417 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9418 case $deplibs_check_method in
9420 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9422 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9423 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9424 $as_echo_n "(cached) " >&6
9428 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9431 lt_save_MAGIC_CMD="$MAGIC_CMD"
9432 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9433 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9434 for ac_dir in $ac_dummy; do
9436 test -z "$ac_dir" && ac_dir=.
9437 if test -f $ac_dir/${ac_tool_prefix}file; then
9438 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9439 if test -n "$file_magic_test_file"; then
9440 case $deplibs_check_method in
9442 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9443 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9444 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9445 $EGREP "$file_magic_regex" > /dev/null; then
9450 *** Warning: the command libtool uses to detect shared libraries,
9451 *** $file_magic_cmd, produces output that libtool cannot recognize.
9452 *** The result is that libtool may fail to recognize shared libraries
9453 *** as such. This will affect the creation of libtool libraries that
9454 *** depend on shared libraries, but programs linked with such libtool
9455 *** libraries will work regardless of this problem. Nevertheless, you
9456 *** may want to report the problem to your system manager and/or to
9457 *** bug-libtool@gnu.org
9467 MAGIC_CMD="$lt_save_MAGIC_CMD"
9472 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9473 if test -n "$MAGIC_CMD"; then
9474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9475 $as_echo "$MAGIC_CMD" >&6; }
9477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9478 $as_echo "no" >&6; }
9485 if test -z "$lt_cv_path_MAGIC_CMD"; then
9486 if test -n "$ac_tool_prefix"; then
9487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9488 $as_echo_n "checking for file... " >&6; }
9489 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9490 $as_echo_n "(cached) " >&6
9494 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9497 lt_save_MAGIC_CMD="$MAGIC_CMD"
9498 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9499 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9500 for ac_dir in $ac_dummy; do
9502 test -z "$ac_dir" && ac_dir=.
9503 if test -f $ac_dir/file; then
9504 lt_cv_path_MAGIC_CMD="$ac_dir/file"
9505 if test -n "$file_magic_test_file"; then
9506 case $deplibs_check_method in
9508 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9509 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9510 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9511 $EGREP "$file_magic_regex" > /dev/null; then
9516 *** Warning: the command libtool uses to detect shared libraries,
9517 *** $file_magic_cmd, produces output that libtool cannot recognize.
9518 *** The result is that libtool may fail to recognize shared libraries
9519 *** as such. This will affect the creation of libtool libraries that
9520 *** depend on shared libraries, but programs linked with such libtool
9521 *** libraries will work regardless of this problem. Nevertheless, you
9522 *** may want to report the problem to your system manager and/or to
9523 *** bug-libtool@gnu.org
9533 MAGIC_CMD="$lt_save_MAGIC_CMD"
9538 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9539 if test -n "$MAGIC_CMD"; then
9540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9541 $as_echo "$MAGIC_CMD" >&6; }
9543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9544 $as_echo "no" >&6; }
9557 # Use C for the default configuration in the libtool script
9561 ac_cpp='$CPP $CPPFLAGS'
9562 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9563 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9564 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9567 # Source file extension for C test sources.
9570 # Object file extension for compiled C test sources.
9574 # Code to be used in simple compile tests
9575 lt_simple_compile_test_code="int some_variable = 0;"
9577 # Code to be used in simple link tests
9578 lt_simple_link_test_code='int main(){return(0);}'
9586 # If no C compiler was specified, use CC.
9589 # If no C compiler flags were specified, use CFLAGS.
9590 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9592 # Allow CC to be a program name with arguments.
9595 # Save the default compiler, since it gets overwritten when the other
9596 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9597 compiler_DEFAULT=$CC
9599 # save warnings/boilerplate of simple test code
9600 ac_outfile=conftest.$ac_objext
9601 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9602 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9603 _lt_compiler_boilerplate=`cat conftest.err`
9606 ac_outfile=conftest.$ac_objext
9607 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9608 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9609 _lt_linker_boilerplate=`cat conftest.err`
9614 ## There is no encapsulation within the following macros, do not change
9615 ## the running order or otherwise move them around unless you know exactly
9616 ## what you are doing...
9617 if test -n "$compiler"; then
9619 lt_prog_compiler_no_builtin_flag=
9621 if test "$GCC" = yes; then
9622 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
9624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9625 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9626 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9627 $as_echo_n "(cached) " >&6
9629 lt_cv_prog_compiler_rtti_exceptions=no
9630 ac_outfile=conftest.$ac_objext
9631 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9632 lt_compiler_flag="-fno-rtti -fno-exceptions"
9633 # Insert the option either (1) after the last *FLAGS variable, or
9634 # (2) before a word containing "conftest.", or (3) at the end.
9635 # Note that $ac_compile itself does not contain backslashes and begins
9636 # with a dollar sign (not a hyphen), so the echo should work correctly.
9637 # The option is referenced via a variable to avoid confusing sed.
9638 lt_compile=`echo "$ac_compile" | $SED \
9639 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9640 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9641 -e 's:$: $lt_compiler_flag:'`
9642 (eval echo "\"\$as_me:9642: $lt_compile\"" >&5)
9643 (eval "$lt_compile" 2>conftest.err)
9645 cat conftest.err >&5
9646 echo "$as_me:9646: \$? = $ac_status" >&5
9647 if (exit $ac_status) && test -s "$ac_outfile"; then
9648 # The compiler can only warn and ignore the option if not recognized
9649 # So say no if there are warnings other than the usual output.
9650 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9651 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9652 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9653 lt_cv_prog_compiler_rtti_exceptions=yes
9659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9660 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9662 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9663 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9675 lt_prog_compiler_wl=
9676 lt_prog_compiler_pic=
9677 lt_prog_compiler_static=
9679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9680 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9682 if test "$GCC" = yes; then
9683 lt_prog_compiler_wl='-Wl,'
9684 lt_prog_compiler_static='-static'
9688 # All AIX code is PIC.
9689 if test "$host_cpu" = ia64; then
9690 # AIX 5 now supports IA64 processor
9691 lt_prog_compiler_static='-Bstatic'
9698 # see comment about AmigaOS4 .so support
9699 lt_prog_compiler_pic='-fPIC'
9702 # FIXME: we need at least 68020 code to build shared libraries, but
9703 # adding the `-m68020' flag to GCC prevents building anything better,
9705 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9710 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9711 # PIC is the default for these OSes.
9714 mingw* | cygwin* | pw32* | os2* | cegcc*)
9715 # This hack is so that the source file can tell whether it is being
9716 # built for inclusion in a dll (and should export symbols for example).
9717 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9718 # (--disable-auto-import) libraries
9719 lt_prog_compiler_pic='-DDLL_EXPORT'
9722 darwin* | rhapsody*)
9723 # PIC is the default on this platform
9724 # Common symbols not allowed in MH_DYLIB files
9725 lt_prog_compiler_pic='-fno-common'
9729 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9730 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9731 # sets the default TLS model and affects inlining.
9737 lt_prog_compiler_pic='-fPIC'
9743 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9744 # Instead, we relocate shared libraries at runtime.
9748 # Just because we use GCC doesn't mean we suddenly get shared libraries
9749 # on systems that don't support them.
9750 lt_prog_compiler_can_build_shared=no
9755 # QNX uses GNU C++, but need to define -shared option too, otherwise
9757 lt_prog_compiler_pic='-fPIC -shared'
9761 if test -d /usr/nec; then
9762 lt_prog_compiler_pic=-Kconform_pic
9767 lt_prog_compiler_pic='-fPIC'
9771 # PORTME Check for flag to pass linker flags through the system compiler.
9774 lt_prog_compiler_wl='-Wl,'
9775 if test "$host_cpu" = ia64; then
9776 # AIX 5 now supports IA64 processor
9777 lt_prog_compiler_static='-Bstatic'
9779 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9783 mingw* | cygwin* | pw32* | os2* | cegcc*)
9784 # This hack is so that the source file can tell whether it is being
9785 # built for inclusion in a dll (and should export symbols for example).
9786 lt_prog_compiler_pic='-DDLL_EXPORT'
9789 hpux9* | hpux10* | hpux11*)
9790 lt_prog_compiler_wl='-Wl,'
9791 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9798 lt_prog_compiler_pic='+Z'
9801 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9802 lt_prog_compiler_static='${wl}-a ${wl}archive'
9805 irix5* | irix6* | nonstopux*)
9806 lt_prog_compiler_wl='-Wl,'
9807 # PIC (with -KPIC) is the default.
9808 lt_prog_compiler_static='-non_shared'
9811 linux* | k*bsd*-gnu)
9812 case $cc_basename in
9813 # old Intel for x86_64 which still supported -KPIC.
9815 lt_prog_compiler_wl='-Wl,'
9816 lt_prog_compiler_pic='-KPIC'
9817 lt_prog_compiler_static='-static'
9819 # icc used to be incompatible with GCC.
9820 # ICC 10 doesn't accept -KPIC any more.
9822 lt_prog_compiler_wl='-Wl,'
9823 lt_prog_compiler_pic='-fPIC'
9824 lt_prog_compiler_static='-static'
9826 # Lahey Fortran 8.1.
9828 lt_prog_compiler_wl='-Wl,'
9829 lt_prog_compiler_pic='--shared'
9830 lt_prog_compiler_static='--static'
9832 pgcc* | pgf77* | pgf90* | pgf95*)
9833 # Portland Group compilers (*not* the Pentium gcc compiler,
9834 # which looks to be a dead project)
9835 lt_prog_compiler_wl='-Wl,'
9836 lt_prog_compiler_pic='-fpic'
9837 lt_prog_compiler_static='-Bstatic'
9840 lt_prog_compiler_wl='-Wl,'
9841 # All Alpha code is PIC.
9842 lt_prog_compiler_static='-non_shared'
9845 # IBM XL C 8.0/Fortran 10.1 on PPC
9846 lt_prog_compiler_wl='-Wl,'
9847 lt_prog_compiler_pic='-qpic'
9848 lt_prog_compiler_static='-qstaticlink'
9851 case `$CC -V 2>&1 | sed 5q` in
9854 lt_prog_compiler_pic='-KPIC'
9855 lt_prog_compiler_static='-Bstatic'
9856 lt_prog_compiler_wl='-Wl,'
9859 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9860 lt_prog_compiler_pic='-KPIC'
9861 lt_prog_compiler_static='-Bstatic'
9862 lt_prog_compiler_wl=''
9870 lt_prog_compiler_pic='-KPIC'
9871 lt_prog_compiler_static='-Bstatic'
9875 # QNX uses GNU C++, but need to define -shared option too, otherwise
9877 lt_prog_compiler_pic='-fPIC -shared'
9880 osf3* | osf4* | osf5*)
9881 lt_prog_compiler_wl='-Wl,'
9882 # All OSF/1 code is PIC.
9883 lt_prog_compiler_static='-non_shared'
9887 lt_prog_compiler_static='-non_shared'
9891 lt_prog_compiler_pic='-KPIC'
9892 lt_prog_compiler_static='-Bstatic'
9893 case $cc_basename in
9895 lt_prog_compiler_wl='-Qoption ld ';;
9897 lt_prog_compiler_wl='-Wl,';;
9902 lt_prog_compiler_wl='-Qoption ld '
9903 lt_prog_compiler_pic='-PIC'
9904 lt_prog_compiler_static='-Bstatic'
9907 sysv4 | sysv4.2uw2* | sysv4.3*)
9908 lt_prog_compiler_wl='-Wl,'
9909 lt_prog_compiler_pic='-KPIC'
9910 lt_prog_compiler_static='-Bstatic'
9914 if test -d /usr/nec ;then
9915 lt_prog_compiler_pic='-Kconform_pic'
9916 lt_prog_compiler_static='-Bstatic'
9920 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9921 lt_prog_compiler_wl='-Wl,'
9922 lt_prog_compiler_pic='-KPIC'
9923 lt_prog_compiler_static='-Bstatic'
9927 lt_prog_compiler_wl='-Wl,'
9928 lt_prog_compiler_can_build_shared=no
9932 lt_prog_compiler_pic='-pic'
9933 lt_prog_compiler_static='-Bstatic'
9937 lt_prog_compiler_can_build_shared=no
9943 # For platforms which do not support PIC, -DPIC is meaningless:
9945 lt_prog_compiler_pic=
9948 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9952 $as_echo "$lt_prog_compiler_pic" >&6; }
9960 # Check to make sure the PIC flag actually works.
9962 if test -n "$lt_prog_compiler_pic"; then
9963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9964 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9965 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9966 $as_echo_n "(cached) " >&6
9968 lt_cv_prog_compiler_pic_works=no
9969 ac_outfile=conftest.$ac_objext
9970 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9971 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9972 # Insert the option either (1) after the last *FLAGS variable, or
9973 # (2) before a word containing "conftest.", or (3) at the end.
9974 # Note that $ac_compile itself does not contain backslashes and begins
9975 # with a dollar sign (not a hyphen), so the echo should work correctly.
9976 # The option is referenced via a variable to avoid confusing sed.
9977 lt_compile=`echo "$ac_compile" | $SED \
9978 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9979 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9980 -e 's:$: $lt_compiler_flag:'`
9981 (eval echo "\"\$as_me:9981: $lt_compile\"" >&5)
9982 (eval "$lt_compile" 2>conftest.err)
9984 cat conftest.err >&5
9985 echo "$as_me:9985: \$? = $ac_status" >&5
9986 if (exit $ac_status) && test -s "$ac_outfile"; then
9987 # The compiler can only warn and ignore the option if not recognized
9988 # So say no if there are warnings other than the usual output.
9989 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9990 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9991 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9992 lt_cv_prog_compiler_pic_works=yes
9998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9999 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10001 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
10002 case $lt_prog_compiler_pic in
10004 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10007 lt_prog_compiler_pic=
10008 lt_prog_compiler_can_build_shared=no
10019 # Check to make sure the static flag actually works.
10021 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10023 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10024 if ${lt_cv_prog_compiler_static_works+:} false; then :
10025 $as_echo_n "(cached) " >&6
10027 lt_cv_prog_compiler_static_works=no
10028 save_LDFLAGS="$LDFLAGS"
10029 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10030 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10031 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10032 # The linker can only warn and ignore the option if not recognized
10033 # So say no if there are warnings
10034 if test -s conftest.err; then
10035 # Append any errors to the config.log.
10036 cat conftest.err 1>&5
10037 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
10038 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10039 if diff conftest.exp conftest.er2 >/dev/null; then
10040 lt_cv_prog_compiler_static_works=yes
10043 lt_cv_prog_compiler_static_works=yes
10047 LDFLAGS="$save_LDFLAGS"
10050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10051 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10053 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
10056 lt_prog_compiler_static=
10065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10066 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10067 if ${lt_cv_prog_compiler_c_o+:} false; then :
10068 $as_echo_n "(cached) " >&6
10070 lt_cv_prog_compiler_c_o=no
10071 $RM -r conftest 2>/dev/null
10075 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10077 lt_compiler_flag="-o out/conftest2.$ac_objext"
10078 # Insert the option either (1) after the last *FLAGS variable, or
10079 # (2) before a word containing "conftest.", or (3) at the end.
10080 # Note that $ac_compile itself does not contain backslashes and begins
10081 # with a dollar sign (not a hyphen), so the echo should work correctly.
10082 lt_compile=`echo "$ac_compile" | $SED \
10083 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10084 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10085 -e 's:$: $lt_compiler_flag:'`
10086 (eval echo "\"\$as_me:10086: $lt_compile\"" >&5)
10087 (eval "$lt_compile" 2>out/conftest.err)
10089 cat out/conftest.err >&5
10090 echo "$as_me:10090: \$? = $ac_status" >&5
10091 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10093 # The compiler can only warn and ignore the option if not recognized
10094 # So say no if there are warnings
10095 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
10096 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10097 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10098 lt_cv_prog_compiler_c_o=yes
10103 # SGI C++ compiler will create directory out/ii_files/ for
10104 # template instantiation
10105 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10106 $RM out/* && rmdir out
10112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10113 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10121 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10122 if ${lt_cv_prog_compiler_c_o+:} false; then :
10123 $as_echo_n "(cached) " >&6
10125 lt_cv_prog_compiler_c_o=no
10126 $RM -r conftest 2>/dev/null
10130 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10132 lt_compiler_flag="-o out/conftest2.$ac_objext"
10133 # Insert the option either (1) after the last *FLAGS variable, or
10134 # (2) before a word containing "conftest.", or (3) at the end.
10135 # Note that $ac_compile itself does not contain backslashes and begins
10136 # with a dollar sign (not a hyphen), so the echo should work correctly.
10137 lt_compile=`echo "$ac_compile" | $SED \
10138 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10139 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10140 -e 's:$: $lt_compiler_flag:'`
10141 (eval echo "\"\$as_me:10141: $lt_compile\"" >&5)
10142 (eval "$lt_compile" 2>out/conftest.err)
10144 cat out/conftest.err >&5
10145 echo "$as_me:10145: \$? = $ac_status" >&5
10146 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10148 # The compiler can only warn and ignore the option if not recognized
10149 # So say no if there are warnings
10150 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
10151 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10152 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10153 lt_cv_prog_compiler_c_o=yes
10158 # SGI C++ compiler will create directory out/ii_files/ for
10159 # template instantiation
10160 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10161 $RM out/* && rmdir out
10167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10168 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10173 hard_links="nottested"
10174 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10175 # do not overwrite the value of need_locks provided by the user
10176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10177 $as_echo_n "checking if we can lock with hard links... " >&6; }
10180 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10182 ln conftest.a conftest.b 2>&5 || hard_links=no
10183 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10185 $as_echo "$hard_links" >&6; }
10186 if test "$hard_links" = no; then
10187 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10188 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10201 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10204 allow_undefined_flag=
10205 always_export_symbols=no
10207 archive_expsym_cmds=
10208 compiler_needs_object=no
10209 enable_shared_with_static_runtimes=no
10210 export_dynamic_flag_spec=
10211 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10212 hardcode_automatic=no
10214 hardcode_direct_absolute=no
10215 hardcode_libdir_flag_spec=
10216 hardcode_libdir_flag_spec_ld=
10217 hardcode_libdir_separator=
10218 hardcode_minus_L=no
10219 hardcode_shlibpath_var=unsupported
10221 link_all_deplibs=unknown
10223 module_expsym_cmds=
10224 old_archive_from_new_cmds=
10225 old_archive_from_expsyms_cmds=
10226 thread_safe_flag_spec=
10227 whole_archive_flag_spec=
10228 # include_expsyms should be a list of space-separated symbols to be *always*
10229 # included in the symbol list
10231 # exclude_expsyms can be an extended regexp of symbols to exclude
10232 # it will be wrapped by ` (' and `)$', so one must not match beginning or
10233 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10234 # as well as any symbol that contains `d'.
10235 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10236 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10237 # platforms (ab)use it in PIC code, but their linkers get confused if
10238 # the symbol is explicitly referenced. Since portable code cannot
10239 # rely on this symbol name, it's probably fine to never include it in
10240 # preloaded symbol tables.
10241 # Exclude shared library initialization/finalization symbols.
10242 extract_expsyms_cmds=
10245 cygwin* | mingw* | pw32* | cegcc*)
10246 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10247 # When not using gcc, we currently assume that we are using
10248 # Microsoft Visual C++.
10249 if test "$GCC" != yes; then
10254 # we just hope/assume this is gcc and not c89 (= MSVC++)
10263 if test "$with_gnu_ld" = yes; then
10264 # If archive_cmds runs LD, not CC, wlarc should be empty
10267 # Set some defaults for GNU ld with shared library support. These
10268 # are reset later if shared libraries are not supported. Putting them
10269 # here allows them to be overridden if necessary.
10270 runpath_var=LD_RUN_PATH
10271 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10272 export_dynamic_flag_spec='${wl}--export-dynamic'
10273 # ancient GNU ld didn't support --whole-archive et. al.
10274 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10275 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10277 whole_archive_flag_spec=
10279 supports_anon_versioning=no
10280 case `$LD -v 2>&1` in
10281 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10282 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10283 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10284 *\ 2.11.*) ;; # other 2.11 versions
10285 *) supports_anon_versioning=yes ;;
10288 # See if GNU ld supports shared libraries.
10291 # On AIX/PPC, the GNU linker is very broken
10292 if test "$host_cpu" != ia64; then
10296 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
10297 *** to be unable to reliably create shared libraries on AIX.
10298 *** Therefore, libtool is disabling shared libraries support. If you
10299 *** really care for shared libraries, you may want to modify your PATH
10300 *** so that a non-GNU linker is found, and then restart.
10309 # see comment about AmigaOS4 .so support
10310 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10311 archive_expsym_cmds=''
10314 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)'
10315 hardcode_libdir_flag_spec='-L$libdir'
10316 hardcode_minus_L=yes
10322 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10323 allow_undefined_flag=unsupported
10324 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10325 # support --undefined. This deserves some investigation. FIXME
10326 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10332 cygwin* | mingw* | pw32* | cegcc*)
10333 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10334 # as there is no search path for DLLs.
10335 hardcode_libdir_flag_spec='-L$libdir'
10336 allow_undefined_flag=unsupported
10337 always_export_symbols=no
10338 enable_shared_with_static_runtimes=yes
10339 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10341 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10342 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10343 # If the export-symbols file already is a .def file (1st line
10344 # is EXPORTS), use it as is; otherwise, prepend...
10345 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10346 cp $export_symbols $output_objdir/$soname.def;
10348 echo EXPORTS > $output_objdir/$soname.def;
10349 cat $export_symbols >> $output_objdir/$soname.def;
10351 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10359 hardcode_shlibpath_var=no
10360 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10361 export_dynamic_flag_spec='${wl}-E'
10362 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10363 # Instead, shared libraries are loaded at an image base (0x10000000 by
10364 # default) and relocated if they conflict, which is a slow very memory
10365 # consuming and fragmenting process. To avoid this, we pick a random,
10366 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10367 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10368 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10369 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'
10372 gnu* | linux* | tpf* | k*bsd*-gnu)
10374 if test "$host_os" = linux-dietlibc; then
10375 case $cc_basename in
10376 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10379 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10380 && test "$tmp_diet" = no
10383 tmp_sharedflag='-shared'
10384 case $cc_basename,$host_cpu in
10385 pgcc*) # Portland Group C compiler
10386 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
10387 tmp_addflag=' $pic_flag'
10389 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
10390 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
10391 tmp_addflag=' $pic_flag -Mnomain' ;;
10392 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10393 tmp_addflag=' -i_dynamic' ;;
10394 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10395 tmp_addflag=' -i_dynamic -nofor_main' ;;
10396 ifc* | ifort*) # Intel Fortran compiler
10397 tmp_addflag=' -nofor_main' ;;
10398 lf95*) # Lahey Fortran 8.1
10399 whole_archive_flag_spec=
10400 tmp_sharedflag='--shared' ;;
10401 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10402 tmp_sharedflag='-qmkshrobj'
10405 case `$CC -V 2>&1 | sed 5q` in
10406 *Sun\ C*) # Sun C 5.9
10407 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
10408 compiler_needs_object=yes
10409 tmp_sharedflag='-G' ;;
10410 *Sun\ F*) # Sun Fortran 8.3
10411 tmp_sharedflag='-G' ;;
10413 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10415 if test "x$supports_anon_versioning" = xyes; then
10416 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10417 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10418 echo "local: *; };" >> $output_objdir/$libname.ver~
10419 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10422 case $cc_basename in
10424 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10425 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10426 hardcode_libdir_flag_spec=
10427 hardcode_libdir_flag_spec_ld='-rpath $libdir'
10428 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
10429 if test "x$supports_anon_versioning" = xyes; then
10430 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10431 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10432 echo "local: *; };" >> $output_objdir/$libname.ver~
10433 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10443 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10444 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10447 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10448 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10453 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10457 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10458 *** create shared libraries on Solaris systems. Therefore, libtool
10459 *** is disabling shared libraries support. We urge you to upgrade GNU
10460 *** binutils to release 2.9.1 or newer. Another option is to modify
10461 *** your PATH or compiler configuration so that the native linker is
10462 *** used, and then restart.
10465 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10466 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10467 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10473 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10474 case `$LD -v 2>&1` in
10475 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10479 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10480 *** reliably create shared libraries on SCO systems. Therefore, libtool
10481 *** is disabling shared libraries support. We urge you to upgrade GNU
10482 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10483 *** your PATH or compiler configuration so that the native linker is
10484 *** used, and then restart.
10489 # For security reasons, it is highly recommended that you always
10490 # use absolute paths for naming shared libraries, and exclude the
10491 # DT_RUNPATH tag from executables and libraries. But doing so
10492 # requires that you compile everything twice, which is a pain.
10493 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10494 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10495 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10496 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10505 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10507 hardcode_direct=yes
10508 hardcode_shlibpath_var=no
10512 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10513 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10514 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10521 if test "$ld_shlibs" = no; then
10523 hardcode_libdir_flag_spec=
10524 export_dynamic_flag_spec=
10525 whole_archive_flag_spec=
10528 # PORTME fill in a description of your system's linker (not GNU ld)
10531 allow_undefined_flag=unsupported
10532 always_export_symbols=yes
10533 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'
10534 # Note: this linker hardcodes the directories in LIBPATH if there
10535 # are no directories specified by -L.
10536 hardcode_minus_L=yes
10537 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10538 # Neither direct hardcoding nor static linking is supported with a
10540 hardcode_direct=unsupported
10545 if test "$host_cpu" = ia64; then
10546 # On IA64, the linker does run time linking by default, so we don't
10547 # have to do anything special.
10548 aix_use_runtimelinking=no
10549 exp_sym_flag='-Bexport'
10552 # If we're using GNU nm, then we don't want the "-C" option.
10553 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10554 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10555 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
10557 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'
10559 aix_use_runtimelinking=no
10561 # Test if we are trying to use run time linking or normal
10562 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10563 # need to do runtime linking.
10564 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10565 for ld_flag in $LDFLAGS; do
10566 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10567 aix_use_runtimelinking=yes
10574 exp_sym_flag='-bexport'
10575 no_entry_flag='-bnoentry'
10578 # When large executables or shared objects are built, AIX ld can
10579 # have problems creating the table of contents. If linking a library
10580 # or program results in "error TOC overflow" add -mminimal-toc to
10581 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10582 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10585 hardcode_direct=yes
10586 hardcode_direct_absolute=yes
10587 hardcode_libdir_separator=':'
10588 link_all_deplibs=yes
10589 file_list_spec='${wl}-f,'
10591 if test "$GCC" = yes; then
10592 case $host_os in aix4.[012]|aix4.[012].*)
10593 # We only want to do this on AIX 4.2 and lower, the check
10594 # below for broken collect2 doesn't work under 4.3+
10595 collect2name=`${CC} -print-prog-name=collect2`
10596 if test -f "$collect2name" &&
10597 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10599 # We have reworked collect2
10602 # We have old collect2
10603 hardcode_direct=unsupported
10604 # It fails to find uninstalled libraries when the uninstalled
10605 # path is not listed in the libpath. Setting hardcode_minus_L
10606 # to unsupported forces relinking
10607 hardcode_minus_L=yes
10608 hardcode_libdir_flag_spec='-L$libdir'
10609 hardcode_libdir_separator=
10613 shared_flag='-shared'
10614 if test "$aix_use_runtimelinking" = yes; then
10615 shared_flag="$shared_flag "'${wl}-G'
10619 if test "$host_cpu" = ia64; then
10620 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10621 # chokes on -Wl,-G. The following line is correct:
10624 if test "$aix_use_runtimelinking" = yes; then
10625 shared_flag='${wl}-G'
10627 shared_flag='${wl}-bM:SRE'
10632 export_dynamic_flag_spec='${wl}-bexpall'
10633 # It seems that -bexpall does not export symbols beginning with
10634 # underscore (_), so it is better to generate a list of symbols to export.
10635 always_export_symbols=yes
10636 if test "$aix_use_runtimelinking" = yes; then
10637 # Warning - without using the other runtime loading flags (-brtl),
10638 # -berok will link without error, but may produce a broken library.
10639 allow_undefined_flag='-berok'
10640 # Determine the default libpath from the value encoded in an
10641 # empty executable.
10642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10643 /* end confdefs.h. */
10653 if ac_fn_c_try_link "$LINENO"; then :
10655 lt_aix_libpath_sed='
10656 /Import File Strings/,/^$/ {
10662 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10663 # Check for a 64-bit object if we didn't find anything.
10664 if test -z "$aix_libpath"; then
10665 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10668 rm -f core conftest.err conftest.$ac_objext \
10669 conftest$ac_exeext conftest.$ac_ext
10670 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10672 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10673 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10675 if test "$host_cpu" = ia64; then
10676 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10677 allow_undefined_flag="-z nodefs"
10678 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"
10680 # Determine the default libpath from the value encoded in an
10681 # empty executable.
10682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10683 /* end confdefs.h. */
10693 if ac_fn_c_try_link "$LINENO"; then :
10695 lt_aix_libpath_sed='
10696 /Import File Strings/,/^$/ {
10702 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10703 # Check for a 64-bit object if we didn't find anything.
10704 if test -z "$aix_libpath"; then
10705 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10708 rm -f core conftest.err conftest.$ac_objext \
10709 conftest$ac_exeext conftest.$ac_ext
10710 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10712 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10713 # Warning - without using the other run time loading flags,
10714 # -berok will link without error, but may produce a broken library.
10715 no_undefined_flag=' ${wl}-bernotok'
10716 allow_undefined_flag=' ${wl}-berok'
10717 # Exported symbols can be pulled into shared objects from archives
10718 whole_archive_flag_spec='$convenience'
10719 archive_cmds_need_lc=yes
10720 # This is similar to how AIX traditionally builds its shared libraries.
10721 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'
10729 # see comment about AmigaOS4 .so support
10730 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10731 archive_expsym_cmds=''
10734 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)'
10735 hardcode_libdir_flag_spec='-L$libdir'
10736 hardcode_minus_L=yes
10742 export_dynamic_flag_spec=-rdynamic
10745 cygwin* | mingw* | pw32* | cegcc*)
10746 # When not using gcc, we currently assume that we are using
10747 # Microsoft Visual C++.
10748 # hardcode_libdir_flag_spec is actually meaningless, as there is
10749 # no search path for DLLs.
10750 hardcode_libdir_flag_spec=' '
10751 allow_undefined_flag=unsupported
10752 # Tell ltmain to make .lib files, not .a files.
10754 # Tell ltmain to make .dll files, not .so files.
10756 # FIXME: Setting linknames here is a bad hack.
10757 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
10758 # The linker will automatically build a .lib file if we build a DLL.
10759 old_archive_from_new_cmds='true'
10760 # FIXME: Should let the user specify the lib program.
10761 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10762 fix_srcfile_path='`cygpath -w "$srcfile"`'
10763 enable_shared_with_static_runtimes=yes
10766 darwin* | rhapsody*)
10769 archive_cmds_need_lc=no
10771 hardcode_automatic=yes
10772 hardcode_shlibpath_var=unsupported
10773 whole_archive_flag_spec=''
10774 link_all_deplibs=yes
10775 allow_undefined_flag="$_lt_dar_allow_undefined"
10776 case $cc_basename in
10777 ifort*) _lt_dar_can_shared=yes ;;
10778 *) _lt_dar_can_shared=$GCC ;;
10780 if test "$_lt_dar_can_shared" = "yes"; then
10781 output_verbose_link_cmd=echo
10782 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10783 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10784 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}"
10785 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}"
10794 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10795 hardcode_libdir_flag_spec='-L$libdir'
10796 hardcode_shlibpath_var=no
10803 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10804 # support. Future versions do this automatically, but an explicit c++rt0.o
10805 # does not break anything, and helps significantly (at the cost of a little
10808 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10809 hardcode_libdir_flag_spec='-R$libdir'
10810 hardcode_direct=yes
10811 hardcode_shlibpath_var=no
10814 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10816 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10817 hardcode_direct=yes
10818 hardcode_minus_L=yes
10819 hardcode_shlibpath_var=no
10822 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10823 freebsd* | dragonfly*)
10824 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10825 hardcode_libdir_flag_spec='-R$libdir'
10826 hardcode_direct=yes
10827 hardcode_shlibpath_var=no
10831 if test "$GCC" = yes; then
10832 archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10834 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'
10836 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10837 hardcode_libdir_separator=:
10838 hardcode_direct=yes
10840 # hardcode_minus_L: Not really in the search PATH,
10841 # but as the default location of the library.
10842 hardcode_minus_L=yes
10843 export_dynamic_flag_spec='${wl}-E'
10847 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10848 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10850 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10852 if test "$with_gnu_ld" = no; then
10853 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10854 hardcode_libdir_flag_spec_ld='+b $libdir'
10855 hardcode_libdir_separator=:
10856 hardcode_direct=yes
10857 hardcode_direct_absolute=yes
10858 export_dynamic_flag_spec='${wl}-E'
10859 # hardcode_minus_L: Not really in the search PATH,
10860 # but as the default location of the library.
10861 hardcode_minus_L=yes
10866 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10869 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10872 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10875 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10881 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10884 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10887 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10891 if test "$with_gnu_ld" = no; then
10892 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10893 hardcode_libdir_separator=:
10898 hardcode_shlibpath_var=no
10901 hardcode_direct=yes
10902 hardcode_direct_absolute=yes
10903 export_dynamic_flag_spec='${wl}-E'
10905 # hardcode_minus_L: Not really in the search PATH,
10906 # but as the default location of the library.
10907 hardcode_minus_L=yes
10913 irix5* | irix6* | nonstopux*)
10914 if test "$GCC" = yes; then
10915 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10916 # Try to use the -exported_symbol ld option, if it does not
10917 # work, assume that -exports_file does not work either and
10918 # implicitly export all symbols.
10919 save_LDFLAGS="$LDFLAGS"
10920 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10922 /* end confdefs.h. */
10925 if ac_fn_c_try_link "$LINENO"; then :
10926 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
10929 rm -f core conftest.err conftest.$ac_objext \
10930 conftest$ac_exeext conftest.$ac_ext
10931 LDFLAGS="$save_LDFLAGS"
10933 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
10934 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
10936 archive_cmds_need_lc='no'
10937 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10938 hardcode_libdir_separator=:
10940 link_all_deplibs=yes
10944 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10945 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10947 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10949 hardcode_libdir_flag_spec='-R$libdir'
10950 hardcode_direct=yes
10951 hardcode_shlibpath_var=no
10955 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10956 hardcode_direct=yes
10957 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10958 hardcode_libdir_separator=:
10959 hardcode_shlibpath_var=no
10966 if test -f /usr/libexec/ld.so; then
10967 hardcode_direct=yes
10968 hardcode_shlibpath_var=no
10969 hardcode_direct_absolute=yes
10970 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10971 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10972 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10973 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10974 export_dynamic_flag_spec='${wl}-E'
10977 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10978 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10979 hardcode_libdir_flag_spec='-R$libdir'
10982 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10983 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10993 hardcode_libdir_flag_spec='-L$libdir'
10994 hardcode_minus_L=yes
10995 allow_undefined_flag=unsupported
10996 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'
10997 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11001 if test "$GCC" = yes; then
11002 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11003 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11005 allow_undefined_flag=' -expect_unresolved \*'
11006 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
11008 archive_cmds_need_lc='no'
11009 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11010 hardcode_libdir_separator=:
11013 osf4* | osf5*) # as osf3* with the addition of -msym flag
11014 if test "$GCC" = yes; then
11015 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11016 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11017 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11019 allow_undefined_flag=' -expect_unresolved \*'
11020 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
11021 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~
11022 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
11024 # Both c and cxx compiler support -rpath directly
11025 hardcode_libdir_flag_spec='-rpath $libdir'
11027 archive_cmds_need_lc='no'
11028 hardcode_libdir_separator=:
11032 no_undefined_flag=' -z defs'
11033 if test "$GCC" = yes; then
11035 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11036 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11037 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11039 case `$CC -V 2>&1` in
11042 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11043 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11044 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11048 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11049 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11050 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11054 hardcode_libdir_flag_spec='-R$libdir'
11055 hardcode_shlibpath_var=no
11057 solaris2.[0-5] | solaris2.[0-5].*) ;;
11059 # The compiler driver will combine and reorder linker options,
11060 # but understands `-z linker_flag'. GCC discards it without `$wl',
11061 # but is careful enough not to reorder.
11062 # Supported since Solaris 2.6 (maybe 2.5.1?)
11063 if test "$GCC" = yes; then
11064 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11066 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11070 link_all_deplibs=yes
11074 if test "x$host_vendor" = xsequent; then
11075 # Use $CC to link under sequent, because it throws in some extra .o
11076 # files that make .init and .fini sections work.
11077 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11079 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11081 hardcode_libdir_flag_spec='-L$libdir'
11082 hardcode_direct=yes
11083 hardcode_minus_L=yes
11084 hardcode_shlibpath_var=no
11088 case $host_vendor in
11090 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11091 hardcode_direct=yes # is this really true???
11094 ## LD is ld it makes a PLAMLIB
11095 ## CC just makes a GrossModule.
11096 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11097 reload_cmds='$CC -r -o $output$reload_objs'
11101 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11102 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11105 runpath_var='LD_RUN_PATH'
11106 hardcode_shlibpath_var=no
11110 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11111 hardcode_shlibpath_var=no
11112 export_dynamic_flag_spec='-Bexport'
11116 if test -d /usr/nec; then
11117 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11118 hardcode_shlibpath_var=no
11119 runpath_var=LD_RUN_PATH
11120 hardcode_runpath_var=yes
11125 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11126 no_undefined_flag='${wl}-z,text'
11127 archive_cmds_need_lc=no
11128 hardcode_shlibpath_var=no
11129 runpath_var='LD_RUN_PATH'
11131 if test "$GCC" = yes; then
11132 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11133 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11135 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11136 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11140 sysv5* | sco3.2v5* | sco5v6*)
11141 # Note: We can NOT use -z defs as we might desire, because we do not
11142 # link with -lc, and that would cause any symbols used from libc to
11143 # always be unresolved, which means just about no library would
11144 # ever link correctly. If we're not using GNU ld we use -z text
11145 # though, which does catch some bad symbols but isn't as heavy-handed
11147 no_undefined_flag='${wl}-z,text'
11148 allow_undefined_flag='${wl}-z,nodefs'
11149 archive_cmds_need_lc=no
11150 hardcode_shlibpath_var=no
11151 hardcode_libdir_flag_spec='${wl}-R,$libdir'
11152 hardcode_libdir_separator=':'
11153 link_all_deplibs=yes
11154 export_dynamic_flag_spec='${wl}-Bexport'
11155 runpath_var='LD_RUN_PATH'
11157 if test "$GCC" = yes; then
11158 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11159 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11161 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11162 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11167 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11168 hardcode_libdir_flag_spec='-L$libdir'
11169 hardcode_shlibpath_var=no
11177 if test x$host_vendor = xsni; then
11179 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11180 export_dynamic_flag_spec='${wl}-Blargedynsym'
11186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11187 $as_echo "$ld_shlibs" >&6; }
11188 test "$ld_shlibs" = no && can_build_shared=no
11190 with_gnu_ld=$with_gnu_ld
11207 # Do we need to explicitly link libc?
11209 case "x$archive_cmds_need_lc" in
11211 # Assume -lc should be added
11212 archive_cmds_need_lc=yes
11214 if test "$enable_shared" = yes && test "$GCC" = yes; then
11215 case $archive_cmds in
11217 # FIXME: we may have to deal with multi-command sequences.
11220 # Test whether the compiler implicitly links with -lc since on some
11221 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11222 # to ld, don't add -lc before -lgcc.
11223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11224 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11226 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11228 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11229 (eval $ac_compile) 2>&5
11231 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11232 test $ac_status = 0; } 2>conftest.err; then
11235 libobjs=conftest.$ac_objext
11237 wl=$lt_prog_compiler_wl
11238 pic_flag=$lt_prog_compiler_pic
11244 lt_save_allow_undefined_flag=$allow_undefined_flag
11245 allow_undefined_flag=
11246 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11247 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11249 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11250 test $ac_status = 0; }
11252 archive_cmds_need_lc=no
11254 archive_cmds_need_lc=yes
11256 allow_undefined_flag=$lt_save_allow_undefined_flag
11258 cat conftest.err 1>&5
11261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
11262 $as_echo "$archive_cmds_need_lc" >&6; }
11425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11426 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11428 if test "$GCC" = yes; then
11430 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11431 *) lt_awk_arg="/^libraries:/" ;;
11433 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11434 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
11435 # if the path contains ";" then we assume it to be the separator
11436 # otherwise default to the standard path separator (i.e. ":") - it is
11437 # assumed that no part of a normal pathname contains ";" but that should
11438 # okay in the real world where ";" in dirpaths is itself problematic.
11439 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
11441 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11443 # Ok, now we have the path, separated by spaces, we can step through it
11444 # and add multilib dir if necessary.
11445 lt_tmp_lt_search_path_spec=
11446 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11447 for lt_sys_path in $lt_search_path_spec; do
11448 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11449 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11451 test -d "$lt_sys_path" && \
11452 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11455 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
11456 BEGIN {RS=" "; FS="/|\n";} {
11459 for (lt_i = NF; lt_i > 0; lt_i--) {
11460 if ($lt_i != "" && $lt_i != ".") {
11461 if ($lt_i == "..") {
11464 if (lt_count == 0) {
11465 lt_foo="/" $lt_i lt_foo;
11472 if (lt_foo != "") { lt_freq[lt_foo]++; }
11473 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11475 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
11477 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11479 library_names_spec=
11480 libname_spec='lib$name'
11484 postuninstall_cmds=
11488 shlibpath_overrides_runpath=unknown
11490 dynamic_linker="$host_os ld.so"
11491 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11492 need_lib_prefix=unknown
11493 hardcode_into_libs=no
11495 # when you set need_version to no, make sure it does not cause -set_version
11496 # flags to be left without arguments
11497 need_version=unknown
11502 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11503 shlibpath_var=LIBPATH
11505 # AIX 3 has no versioning support, so we append a major version to the name.
11506 soname_spec='${libname}${release}${shared_ext}$major'
11513 hardcode_into_libs=yes
11514 if test "$host_cpu" = ia64; then
11515 # AIX 5 supports IA64
11516 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11517 shlibpath_var=LD_LIBRARY_PATH
11519 # With GCC up to 2.95.x, collect2 would create an import file
11520 # for dependence libraries. The import file would start with
11521 # the line `#! .'. This would cause the generated library to
11522 # depend on `.', always an invalid library. This was fixed in
11523 # development snapshots of GCC prior to 3.0.
11525 aix4 | aix4.[01] | aix4.[01].*)
11526 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11528 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11531 can_build_shared=no
11535 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11536 # soname into executable. Probably we can add versioning support to
11537 # collect2, so additional links can be useful in future.
11538 if test "$aix_use_runtimelinking" = yes; then
11539 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11540 # instead of lib<name>.a to let people know that these are not
11541 # typical AIX shared libraries.
11542 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11544 # We preserve .a as extension for shared libraries through AIX4.2
11545 # and later when we are not doing run time linking.
11546 library_names_spec='${libname}${release}.a $libname.a'
11547 soname_spec='${libname}${release}${shared_ext}$major'
11549 shlibpath_var=LIBPATH
11556 # Since July 2007 AmigaOS4 officially supports .so libraries.
11557 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11558 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11561 library_names_spec='$libname.ixlibrary $libname.a'
11562 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11563 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''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'
11569 library_names_spec='${libname}${shared_ext}'
11570 dynamic_linker="$host_os ld.so"
11571 shlibpath_var=LIBRARY_PATH
11577 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11578 soname_spec='${libname}${release}${shared_ext}$major'
11579 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11580 shlibpath_var=LD_LIBRARY_PATH
11581 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11582 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11583 # the default ld.so.conf also contains /usr/contrib/lib and
11584 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11585 # libtool to hard-code these into programs
11588 cygwin* | mingw* | pw32* | cegcc*)
11589 version_type=windows
11594 case $GCC,$host_os in
11595 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11596 library_names_spec='$libname.dll.a'
11597 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11598 postinstall_cmds='base_file=`basename \${file}`~
11599 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11600 dldir=$destdir/`dirname \$dlpath`~
11601 test -d \$dldir || mkdir -p \$dldir~
11602 $install_prog $dir/$dlname \$dldir/$dlname~
11603 chmod a+x \$dldir/$dlname~
11604 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11605 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11607 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11608 dlpath=$dir/\$dldll~
11610 shlibpath_overrides_runpath=yes
11614 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11615 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11616 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11619 # MinGW DLLs use traditional 'lib' prefix
11620 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11621 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11622 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11623 # It is most probably a Windows format PATH printed by
11624 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11625 # path with ; separators, and with drive letters. We can handle the
11626 # drive letters (cygwin fileutils understands them), so leave them,
11627 # especially as we might pass files found there to a mingw objdump,
11628 # which wouldn't understand a cygwinified path. Ahh.
11629 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11631 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11635 # pw32 DLLs use 'pw' prefix rather than 'lib'
11636 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11642 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11645 dynamic_linker='Win32 ld.exe'
11646 # FIXME: first we should search . and the directory the executable is in
11650 darwin* | rhapsody*)
11651 dynamic_linker="$host_os dyld"
11652 version_type=darwin
11655 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11656 soname_spec='${libname}${release}${major}$shared_ext'
11657 shlibpath_overrides_runpath=yes
11658 shlibpath_var=DYLD_LIBRARY_PATH
11659 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11661 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11662 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11669 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11670 soname_spec='${libname}${release}${shared_ext}$major'
11671 shlibpath_var=LD_LIBRARY_PATH
11678 freebsd* | dragonfly*)
11679 # DragonFly does not have aout. When/if they implement a new
11680 # versioning mechanism, adjust this.
11681 if test -x /usr/bin/objformat; then
11682 objformat=`/usr/bin/objformat`
11685 freebsd[123]*) objformat=aout ;;
11686 *) objformat=elf ;;
11689 version_type=freebsd-$objformat
11690 case $version_type in
11692 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11697 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11701 shlibpath_var=LD_LIBRARY_PATH
11704 shlibpath_overrides_runpath=yes
11706 freebsd3.[01]* | freebsdelf3.[01]*)
11707 shlibpath_overrides_runpath=yes
11708 hardcode_into_libs=yes
11710 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11711 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11712 shlibpath_overrides_runpath=no
11713 hardcode_into_libs=yes
11715 *) # from 4.6 on, and DragonFly
11716 shlibpath_overrides_runpath=yes
11717 hardcode_into_libs=yes
11726 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11727 soname_spec='${libname}${release}${shared_ext}$major'
11728 shlibpath_var=LD_LIBRARY_PATH
11729 hardcode_into_libs=yes
11732 hpux9* | hpux10* | hpux11*)
11733 # Give a soname corresponding to the major version so that dld.sl refuses to
11734 # link against other versions.
11741 hardcode_into_libs=yes
11742 dynamic_linker="$host_os dld.so"
11743 shlibpath_var=LD_LIBRARY_PATH
11744 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11745 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11746 soname_spec='${libname}${release}${shared_ext}$major'
11747 if test "X$HPUX_IA64_MODE" = X32; then
11748 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11750 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11752 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11756 hardcode_into_libs=yes
11757 dynamic_linker="$host_os dld.sl"
11758 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11759 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11760 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11761 soname_spec='${libname}${release}${shared_ext}$major'
11762 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11763 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11767 dynamic_linker="$host_os dld.sl"
11768 shlibpath_var=SHLIB_PATH
11769 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11770 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11771 soname_spec='${libname}${release}${shared_ext}$major'
11774 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11775 postinstall_cmds='chmod 555 $lib'
11782 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11783 soname_spec='${libname}${release}${shared_ext}$major'
11784 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11785 shlibpath_var=LD_LIBRARY_PATH
11786 shlibpath_overrides_runpath=no
11787 hardcode_into_libs=yes
11790 irix5* | irix6* | nonstopux*)
11792 nonstopux*) version_type=nonstopux ;;
11794 if test "$lt_cv_prog_gnu_ld" = yes; then
11802 soname_spec='${libname}${release}${shared_ext}$major'
11803 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11805 irix5* | nonstopux*)
11806 libsuff= shlibsuff=
11809 case $LD in # libtool.m4 will add one of these switches to LD
11810 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11811 libsuff= shlibsuff= libmagic=32-bit;;
11812 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11813 libsuff=32 shlibsuff=N32 libmagic=N32;;
11814 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11815 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11816 *) libsuff= shlibsuff= libmagic=never-match;;
11820 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11821 shlibpath_overrides_runpath=no
11822 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11823 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11824 hardcode_into_libs=yes
11827 # No shared lib support for Linux oldld, aout, or coff.
11828 linux*oldld* | linux*aout* | linux*coff*)
11832 # This must be Linux ELF.
11833 linux* | k*bsd*-gnu)
11837 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11838 soname_spec='${libname}${release}${shared_ext}$major'
11839 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11840 shlibpath_var=LD_LIBRARY_PATH
11841 shlibpath_overrides_runpath=no
11842 # Some binutils ld are patched to set DT_RUNPATH
11843 save_LDFLAGS=$LDFLAGS
11844 save_libdir=$libdir
11845 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11846 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11848 /* end confdefs.h. */
11858 if ac_fn_c_try_link "$LINENO"; then :
11859 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11860 shlibpath_overrides_runpath=yes
11863 rm -f core conftest.err conftest.$ac_objext \
11864 conftest$ac_exeext conftest.$ac_ext
11865 LDFLAGS=$save_LDFLAGS
11866 libdir=$save_libdir
11868 # This implies no fast_install, which is unacceptable.
11869 # Some rework will be needed to allow for fast_install
11870 # before this can be enabled.
11871 hardcode_into_libs=yes
11873 # Append ld.so.conf contents to the search path
11874 if test -f /etc/ld.so.conf; then
11875 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;/^$/d' | tr '\n' ' '`
11876 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11879 # We used to test for /lib/ld.so.1 and disable shared libraries on
11880 # powerpc, because MkLinux only supported shared libraries with the
11881 # GNU dynamic linker. Since this was broken with cross compilers,
11882 # most powerpc-linux boxes support dynamic linking these days and
11883 # people can always --disable-shared, the test was removed, and we
11884 # assume the GNU/Linux dynamic linker is in use.
11885 dynamic_linker='GNU/Linux ld.so'
11892 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11893 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11894 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11895 dynamic_linker='NetBSD (a.out) ld.so'
11897 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11898 soname_spec='${libname}${release}${shared_ext}$major'
11899 dynamic_linker='NetBSD ld.elf_so'
11901 shlibpath_var=LD_LIBRARY_PATH
11902 shlibpath_overrides_runpath=yes
11903 hardcode_into_libs=yes
11908 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11909 shlibpath_var=LD_LIBRARY_PATH
11910 shlibpath_overrides_runpath=yes
11917 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11918 soname_spec='${libname}${release}${shared_ext}$major'
11919 shlibpath_var=LD_LIBRARY_PATH
11920 shlibpath_overrides_runpath=no
11921 hardcode_into_libs=yes
11922 dynamic_linker='ldqnx.so'
11927 sys_lib_dlsearch_path_spec="/usr/lib"
11929 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11931 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11932 *) need_version=no ;;
11934 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11935 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11936 shlibpath_var=LD_LIBRARY_PATH
11937 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11939 openbsd2.[89] | openbsd2.[89].*)
11940 shlibpath_overrides_runpath=no
11943 shlibpath_overrides_runpath=yes
11947 shlibpath_overrides_runpath=yes
11952 libname_spec='$name'
11955 library_names_spec='$libname${shared_ext} $libname.a'
11956 dynamic_linker='OS/2 ld.exe'
11957 shlibpath_var=LIBPATH
11960 osf3* | osf4* | osf5*)
11964 soname_spec='${libname}${release}${shared_ext}$major'
11965 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11966 shlibpath_var=LD_LIBRARY_PATH
11967 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11968 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11979 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11980 soname_spec='${libname}${release}${shared_ext}$major'
11981 shlibpath_var=LD_LIBRARY_PATH
11982 shlibpath_overrides_runpath=yes
11983 hardcode_into_libs=yes
11984 # ldd complains unless libraries are executable
11985 postinstall_cmds='chmod +x $lib'
11990 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11991 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11992 shlibpath_var=LD_LIBRARY_PATH
11993 shlibpath_overrides_runpath=yes
11994 if test "$with_gnu_ld" = yes; then
12002 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12003 soname_spec='${libname}${release}${shared_ext}$major'
12004 shlibpath_var=LD_LIBRARY_PATH
12005 case $host_vendor in
12007 shlibpath_overrides_runpath=no
12009 runpath_var=LD_RUN_PATH
12017 shlibpath_overrides_runpath=no
12018 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12024 if test -d /usr/nec ;then
12026 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12027 soname_spec='$libname${shared_ext}.$major'
12028 shlibpath_var=LD_LIBRARY_PATH
12032 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12033 version_type=freebsd-elf
12036 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12037 soname_spec='${libname}${release}${shared_ext}$major'
12038 shlibpath_var=LD_LIBRARY_PATH
12039 shlibpath_overrides_runpath=yes
12040 hardcode_into_libs=yes
12041 if test "$with_gnu_ld" = yes; then
12042 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12044 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12047 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12051 sys_lib_dlsearch_path_spec='/usr/lib'
12055 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12059 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12060 shlibpath_var=LD_LIBRARY_PATH
12061 shlibpath_overrides_runpath=no
12062 hardcode_into_libs=yes
12067 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12068 soname_spec='${libname}${release}${shared_ext}$major'
12069 shlibpath_var=LD_LIBRARY_PATH
12076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12077 $as_echo "$dynamic_linker" >&6; }
12078 test "$dynamic_linker" = no && can_build_shared=no
12080 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12081 if test "$GCC" = yes; then
12082 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12085 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12086 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12088 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12089 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12179 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12181 if test -n "$hardcode_libdir_flag_spec" ||
12182 test -n "$runpath_var" ||
12183 test "X$hardcode_automatic" = "Xyes" ; then
12185 # We can hardcode non-existent directories.
12186 if test "$hardcode_direct" != no &&
12187 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12188 # have to relink, otherwise we might link with an installed library
12189 # when we should be linking with a yet-to-be-installed one
12190 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12191 test "$hardcode_minus_L" != no; then
12192 # Linking always hardcodes the temporary library directory.
12193 hardcode_action=relink
12195 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12196 hardcode_action=immediate
12199 # We cannot hardcode anything, or else we can only hardcode existing
12201 hardcode_action=unsupported
12203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12204 $as_echo "$hardcode_action" >&6; }
12206 if test "$hardcode_action" = relink ||
12207 test "$inherit_rpath" = yes; then
12208 # Fast installation is not supported
12209 enable_fast_install=no
12210 elif test "$shlibpath_overrides_runpath" = yes ||
12211 test "$enable_shared" = no; then
12212 # Fast installation is not necessary
12213 enable_fast_install=needless
12221 if test "x$enable_dlopen" != xyes; then
12222 enable_dlopen=unknown
12223 enable_dlopen_self=unknown
12224 enable_dlopen_self_static=unknown
12231 lt_cv_dlopen="load_add_on"
12233 lt_cv_dlopen_self=yes
12236 mingw* | pw32* | cegcc*)
12237 lt_cv_dlopen="LoadLibrary"
12242 lt_cv_dlopen="dlopen"
12247 # if libdl is installed we need to link against it
12248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12249 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12250 if ${ac_cv_lib_dl_dlopen+:} false; then :
12251 $as_echo_n "(cached) " >&6
12253 ac_check_lib_save_LIBS=$LIBS
12255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12256 /* end confdefs.h. */
12258 /* Override any GCC internal prototype to avoid an error.
12259 Use char because int might match the return type of a GCC
12260 builtin and then its argument prototype would still apply. */
12273 if ac_fn_c_try_link "$LINENO"; then :
12274 ac_cv_lib_dl_dlopen=yes
12276 ac_cv_lib_dl_dlopen=no
12278 rm -f core conftest.err conftest.$ac_objext \
12279 conftest$ac_exeext conftest.$ac_ext
12280 LIBS=$ac_check_lib_save_LIBS
12282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12283 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12284 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12285 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12288 lt_cv_dlopen="dyld"
12290 lt_cv_dlopen_self=yes
12297 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12298 if test "x$ac_cv_func_shl_load" = xyes; then :
12299 lt_cv_dlopen="shl_load"
12301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12302 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12303 if ${ac_cv_lib_dld_shl_load+:} false; then :
12304 $as_echo_n "(cached) " >&6
12306 ac_check_lib_save_LIBS=$LIBS
12308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12309 /* end confdefs.h. */
12311 /* Override any GCC internal prototype to avoid an error.
12312 Use char because int might match the return type of a GCC
12313 builtin and then its argument prototype would still apply. */
12321 return shl_load ();
12326 if ac_fn_c_try_link "$LINENO"; then :
12327 ac_cv_lib_dld_shl_load=yes
12329 ac_cv_lib_dld_shl_load=no
12331 rm -f core conftest.err conftest.$ac_objext \
12332 conftest$ac_exeext conftest.$ac_ext
12333 LIBS=$ac_check_lib_save_LIBS
12335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12336 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12337 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12338 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12340 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12341 if test "x$ac_cv_func_dlopen" = xyes; then :
12342 lt_cv_dlopen="dlopen"
12344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12345 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12346 if ${ac_cv_lib_dl_dlopen+:} false; then :
12347 $as_echo_n "(cached) " >&6
12349 ac_check_lib_save_LIBS=$LIBS
12351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12352 /* end confdefs.h. */
12354 /* Override any GCC internal prototype to avoid an error.
12355 Use char because int might match the return type of a GCC
12356 builtin and then its argument prototype would still apply. */
12369 if ac_fn_c_try_link "$LINENO"; then :
12370 ac_cv_lib_dl_dlopen=yes
12372 ac_cv_lib_dl_dlopen=no
12374 rm -f core conftest.err conftest.$ac_objext \
12375 conftest$ac_exeext conftest.$ac_ext
12376 LIBS=$ac_check_lib_save_LIBS
12378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12379 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12380 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12381 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12384 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12385 if ${ac_cv_lib_svld_dlopen+:} false; then :
12386 $as_echo_n "(cached) " >&6
12388 ac_check_lib_save_LIBS=$LIBS
12389 LIBS="-lsvld $LIBS"
12390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12391 /* end confdefs.h. */
12393 /* Override any GCC internal prototype to avoid an error.
12394 Use char because int might match the return type of a GCC
12395 builtin and then its argument prototype would still apply. */
12408 if ac_fn_c_try_link "$LINENO"; then :
12409 ac_cv_lib_svld_dlopen=yes
12411 ac_cv_lib_svld_dlopen=no
12413 rm -f core conftest.err conftest.$ac_objext \
12414 conftest$ac_exeext conftest.$ac_ext
12415 LIBS=$ac_check_lib_save_LIBS
12417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12418 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12419 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12420 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12423 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12424 if ${ac_cv_lib_dld_dld_link+:} false; then :
12425 $as_echo_n "(cached) " >&6
12427 ac_check_lib_save_LIBS=$LIBS
12429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12430 /* end confdefs.h. */
12432 /* Override any GCC internal prototype to avoid an error.
12433 Use char because int might match the return type of a GCC
12434 builtin and then its argument prototype would still apply. */
12442 return dld_link ();
12447 if ac_fn_c_try_link "$LINENO"; then :
12448 ac_cv_lib_dld_dld_link=yes
12450 ac_cv_lib_dld_dld_link=no
12452 rm -f core conftest.err conftest.$ac_objext \
12453 conftest$ac_exeext conftest.$ac_ext
12454 LIBS=$ac_check_lib_save_LIBS
12456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12457 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12458 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12459 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12480 if test "x$lt_cv_dlopen" != xno; then
12486 case $lt_cv_dlopen in
12488 save_CPPFLAGS="$CPPFLAGS"
12489 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12491 save_LDFLAGS="$LDFLAGS"
12492 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12495 LIBS="$lt_cv_dlopen_libs $LIBS"
12497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12498 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12499 if ${lt_cv_dlopen_self+:} false; then :
12500 $as_echo_n "(cached) " >&6
12502 if test "$cross_compiling" = yes; then :
12503 lt_cv_dlopen_self=cross
12505 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12506 lt_status=$lt_dlunknown
12507 cat > conftest.$ac_ext <<_LT_EOF
12508 #line 12508 "configure"
12509 #include "confdefs.h"
12518 # define LT_DLGLOBAL RTLD_GLOBAL
12521 # define LT_DLGLOBAL DL_GLOBAL
12523 # define LT_DLGLOBAL 0
12527 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12528 find out it does not work in some platform. */
12529 #ifndef LT_DLLAZY_OR_NOW
12531 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12534 # define LT_DLLAZY_OR_NOW DL_LAZY
12537 # define LT_DLLAZY_OR_NOW RTLD_NOW
12540 # define LT_DLLAZY_OR_NOW DL_NOW
12542 # define LT_DLLAZY_OR_NOW 0
12549 void fnord() { int i=42;}
12552 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12553 int status = $lt_dlunknown;
12557 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12558 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12559 /* dlclose (self); */
12567 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12568 (eval $ac_link) 2>&5
12570 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12571 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12572 (./conftest; exit; ) >&5 2>/dev/null
12574 case x$lt_status in
12575 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12576 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12577 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12580 # compilation failed
12581 lt_cv_dlopen_self=no
12588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12589 $as_echo "$lt_cv_dlopen_self" >&6; }
12591 if test "x$lt_cv_dlopen_self" = xyes; then
12592 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12594 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12595 if ${lt_cv_dlopen_self_static+:} false; then :
12596 $as_echo_n "(cached) " >&6
12598 if test "$cross_compiling" = yes; then :
12599 lt_cv_dlopen_self_static=cross
12601 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12602 lt_status=$lt_dlunknown
12603 cat > conftest.$ac_ext <<_LT_EOF
12604 #line 12604 "configure"
12605 #include "confdefs.h"
12614 # define LT_DLGLOBAL RTLD_GLOBAL
12617 # define LT_DLGLOBAL DL_GLOBAL
12619 # define LT_DLGLOBAL 0
12623 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12624 find out it does not work in some platform. */
12625 #ifndef LT_DLLAZY_OR_NOW
12627 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12630 # define LT_DLLAZY_OR_NOW DL_LAZY
12633 # define LT_DLLAZY_OR_NOW RTLD_NOW
12636 # define LT_DLLAZY_OR_NOW DL_NOW
12638 # define LT_DLLAZY_OR_NOW 0
12645 void fnord() { int i=42;}
12648 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12649 int status = $lt_dlunknown;
12653 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12654 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12655 /* dlclose (self); */
12663 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12664 (eval $ac_link) 2>&5
12666 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12667 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12668 (./conftest; exit; ) >&5 2>/dev/null
12670 case x$lt_status in
12671 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12672 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12673 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12676 # compilation failed
12677 lt_cv_dlopen_self_static=no
12684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12685 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12688 CPPFLAGS="$save_CPPFLAGS"
12689 LDFLAGS="$save_LDFLAGS"
12694 case $lt_cv_dlopen_self in
12695 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12696 *) enable_dlopen_self=unknown ;;
12699 case $lt_cv_dlopen_self_static in
12700 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12701 *) enable_dlopen_self_static=unknown ;;
12723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12724 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12725 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12726 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12727 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12729 $as_echo "yes" >&6; }
12731 # FIXME - insert some real tests, host_os isn't really good enough
12734 if test -n "$STRIP" ; then
12735 striplib="$STRIP -x"
12736 old_striplib="$STRIP -S"
12737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12738 $as_echo "yes" >&6; }
12740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12741 $as_echo "no" >&6; }
12745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12746 $as_echo "no" >&6; }
12762 # Report which library types will actually be built
12763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12764 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12766 $as_echo "$can_build_shared" >&6; }
12768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12769 $as_echo_n "checking whether to build shared libraries... " >&6; }
12770 test "$can_build_shared" = "no" && enable_shared=no
12772 # On AIX, shared libraries and static libraries use the same namespace, and
12773 # are all built from PIC.
12776 test "$enable_shared" = yes && enable_static=no
12777 if test -n "$RANLIB"; then
12778 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12779 postinstall_cmds='$RANLIB $lib'
12784 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12785 test "$enable_shared" = yes && enable_static=no
12789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12790 $as_echo "$enable_shared" >&6; }
12792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12793 $as_echo_n "checking whether to build static libraries... " >&6; }
12794 # Make sure either enable_shared or enable_static is yes.
12795 test "$enable_shared" = yes || enable_static=yes
12796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12797 $as_echo "$enable_static" >&6; }
12804 ac_cpp='$CPP $CPPFLAGS'
12805 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12806 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12807 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12813 ac_cpp='$CXXCPP $CPPFLAGS'
12814 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12815 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12816 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12818 archive_cmds_need_lc_CXX=no
12819 allow_undefined_flag_CXX=
12820 always_export_symbols_CXX=no
12821 archive_expsym_cmds_CXX=
12822 compiler_needs_object_CXX=no
12823 export_dynamic_flag_spec_CXX=
12824 hardcode_direct_CXX=no
12825 hardcode_direct_absolute_CXX=no
12826 hardcode_libdir_flag_spec_CXX=
12827 hardcode_libdir_flag_spec_ld_CXX=
12828 hardcode_libdir_separator_CXX=
12829 hardcode_minus_L_CXX=no
12830 hardcode_shlibpath_var_CXX=unsupported
12831 hardcode_automatic_CXX=no
12832 inherit_rpath_CXX=no
12834 module_expsym_cmds_CXX=
12835 link_all_deplibs_CXX=unknown
12836 old_archive_cmds_CXX=$old_archive_cmds
12837 no_undefined_flag_CXX=
12838 whole_archive_flag_spec_CXX=
12839 enable_shared_with_static_runtimes_CXX=no
12841 # Source file extension for C++ test sources.
12844 # Object file extension for compiled C++ test sources.
12848 # No sense in running all these tests if we already determined that
12849 # the CXX compiler isn't working. Some variables (like enable_shared)
12850 # are currently assumed to apply to all compilers on this platform,
12851 # and will be corrupted by setting them based on a non-working compiler.
12852 if test "$_lt_caught_CXX_error" != yes; then
12853 # Code to be used in simple compile tests
12854 lt_simple_compile_test_code="int some_variable = 0;"
12856 # Code to be used in simple link tests
12857 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12859 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12866 # If no C compiler was specified, use CC.
12869 # If no C compiler flags were specified, use CFLAGS.
12870 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12872 # Allow CC to be a program name with arguments.
12876 # save warnings/boilerplate of simple test code
12877 ac_outfile=conftest.$ac_objext
12878 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12879 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12880 _lt_compiler_boilerplate=`cat conftest.err`
12883 ac_outfile=conftest.$ac_objext
12884 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12885 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12886 _lt_linker_boilerplate=`cat conftest.err`
12890 # Allow CC to be a program name with arguments.
12895 lt_save_with_gnu_ld=$with_gnu_ld
12896 lt_save_path_LD=$lt_cv_path_LD
12897 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12898 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12900 $as_unset lt_cv_prog_gnu_ld
12902 if test -n "${lt_cv_path_LDCXX+set}"; then
12903 lt_cv_path_LD=$lt_cv_path_LDCXX
12905 $as_unset lt_cv_path_LD
12907 test -z "${LDCXX+set}" || LD=$LDCXX
12911 for cc_temp in $compiler""; do
12913 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12914 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12919 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12922 if test -n "$compiler"; then
12923 # We don't want -fno-exception when compiling C++ code, so set the
12924 # no_builtin_flag separately
12925 if test "$GXX" = yes; then
12926 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12928 lt_prog_compiler_no_builtin_flag_CXX=
12931 if test "$GXX" = yes; then
12932 # Set up default GNU C++ configuration
12936 # Check whether --with-gnu-ld was given.
12937 if test "${with_gnu_ld+set}" = set; then :
12938 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12944 if test "$GCC" = yes; then
12945 # Check if gcc -print-prog-name=ld gives a path.
12946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12947 $as_echo_n "checking for ld used by $CC... " >&6; }
12950 # gcc leaves a trailing carriage return which upsets mingw
12951 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12953 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12956 # Accept absolute paths.
12958 re_direlt='/[^/][^/]*/\.\./'
12959 # Canonicalize the pathname of ld
12960 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12961 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12962 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12964 test -z "$LD" && LD="$ac_prog"
12967 # If it fails, then pretend we aren't using GCC.
12971 # If it is relative, then search for the first ld in PATH.
12972 with_gnu_ld=unknown
12975 elif test "$with_gnu_ld" = yes; then
12976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12977 $as_echo_n "checking for GNU ld... " >&6; }
12979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12980 $as_echo_n "checking for non-GNU ld... " >&6; }
12982 if ${lt_cv_path_LD+:} false; then :
12983 $as_echo_n "(cached) " >&6
12985 if test -z "$LD"; then
12986 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12987 for ac_dir in $PATH; do
12989 test -z "$ac_dir" && ac_dir=.
12990 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12991 lt_cv_path_LD="$ac_dir/$ac_prog"
12992 # Check to see if the program is GNU ld. I'd rather use --version,
12993 # but apparently some variants of GNU ld only accept -v.
12994 # Break only if it was the GNU/non-GNU ld that we prefer.
12995 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12996 *GNU* | *'with BFD'*)
12997 test "$with_gnu_ld" != no && break
13000 test "$with_gnu_ld" != yes && break
13007 lt_cv_path_LD="$LD" # Let the user override the test with a path.
13011 LD="$lt_cv_path_LD"
13012 if test -n "$LD"; then
13013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13014 $as_echo "$LD" >&6; }
13016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13017 $as_echo "no" >&6; }
13019 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13021 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13022 if ${lt_cv_prog_gnu_ld+:} false; then :
13023 $as_echo_n "(cached) " >&6
13025 # I'd rather use --version here, but apparently some GNU lds only accept -v.
13026 case `$LD -v 2>&1 </dev/null` in
13027 *GNU* | *'with BFD'*)
13028 lt_cv_prog_gnu_ld=yes
13031 lt_cv_prog_gnu_ld=no
13035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13036 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
13037 with_gnu_ld=$lt_cv_prog_gnu_ld
13045 # Check if GNU C++ uses GNU ld as the underlying linker, since the
13046 # archiving commands below assume that GNU ld is being used.
13047 if test "$with_gnu_ld" = yes; then
13048 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13049 archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13051 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13052 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13054 # If archive_cmds runs LD, not CC, wlarc should be empty
13055 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13056 # investigate it a little bit more. (MM)
13059 # ancient GNU ld didn't support --whole-archive et. al.
13060 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13061 $GREP 'no-whole-archive' > /dev/null; then
13062 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13064 whole_archive_flag_spec_CXX=
13070 # A generic and very simple default shared library creation
13071 # command for GNU C++ for the case where it uses the native
13072 # linker, instead of GNU ld. If possible, this setting should
13073 # overridden to take advantage of the native linker features on
13074 # the platform it is being used on.
13075 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13078 # Commands to make compiler produce verbose output that lists
13079 # what "hidden" libraries, object files and flags are used when
13080 # linking a shared library.
13081 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13089 # PORTME: fill in a description of your system's C++ link characteristics
13090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13091 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13095 # FIXME: insert proper C++ library support
13099 if test "$host_cpu" = ia64; then
13100 # On IA64, the linker does run time linking by default, so we don't
13101 # have to do anything special.
13102 aix_use_runtimelinking=no
13103 exp_sym_flag='-Bexport'
13106 aix_use_runtimelinking=no
13108 # Test if we are trying to use run time linking or normal
13109 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13110 # need to do runtime linking.
13111 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13112 for ld_flag in $LDFLAGS; do
13115 aix_use_runtimelinking=yes
13123 exp_sym_flag='-bexport'
13124 no_entry_flag='-bnoentry'
13127 # When large executables or shared objects are built, AIX ld can
13128 # have problems creating the table of contents. If linking a library
13129 # or program results in "error TOC overflow" add -mminimal-toc to
13130 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13131 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13133 archive_cmds_CXX=''
13134 hardcode_direct_CXX=yes
13135 hardcode_direct_absolute_CXX=yes
13136 hardcode_libdir_separator_CXX=':'
13137 link_all_deplibs_CXX=yes
13138 file_list_spec_CXX='${wl}-f,'
13140 if test "$GXX" = yes; then
13141 case $host_os in aix4.[012]|aix4.[012].*)
13142 # We only want to do this on AIX 4.2 and lower, the check
13143 # below for broken collect2 doesn't work under 4.3+
13144 collect2name=`${CC} -print-prog-name=collect2`
13145 if test -f "$collect2name" &&
13146 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13148 # We have reworked collect2
13151 # We have old collect2
13152 hardcode_direct_CXX=unsupported
13153 # It fails to find uninstalled libraries when the uninstalled
13154 # path is not listed in the libpath. Setting hardcode_minus_L
13155 # to unsupported forces relinking
13156 hardcode_minus_L_CXX=yes
13157 hardcode_libdir_flag_spec_CXX='-L$libdir'
13158 hardcode_libdir_separator_CXX=
13161 shared_flag='-shared'
13162 if test "$aix_use_runtimelinking" = yes; then
13163 shared_flag="$shared_flag "'${wl}-G'
13167 if test "$host_cpu" = ia64; then
13168 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13169 # chokes on -Wl,-G. The following line is correct:
13172 if test "$aix_use_runtimelinking" = yes; then
13173 shared_flag='${wl}-G'
13175 shared_flag='${wl}-bM:SRE'
13180 export_dynamic_flag_spec_CXX='${wl}-bexpall'
13181 # It seems that -bexpall does not export symbols beginning with
13182 # underscore (_), so it is better to generate a list of symbols to
13184 always_export_symbols_CXX=yes
13185 if test "$aix_use_runtimelinking" = yes; then
13186 # Warning - without using the other runtime loading flags (-brtl),
13187 # -berok will link without error, but may produce a broken library.
13188 allow_undefined_flag_CXX='-berok'
13189 # Determine the default libpath from the value encoded in an empty
13191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13192 /* end confdefs.h. */
13202 if ac_fn_cxx_try_link "$LINENO"; then :
13204 lt_aix_libpath_sed='
13205 /Import File Strings/,/^$/ {
13211 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13212 # Check for a 64-bit object if we didn't find anything.
13213 if test -z "$aix_libpath"; then
13214 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13217 rm -f core conftest.err conftest.$ac_objext \
13218 conftest$ac_exeext conftest.$ac_ext
13219 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13221 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13223 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 $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
13225 if test "$host_cpu" = ia64; then
13226 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13227 allow_undefined_flag_CXX="-z nodefs"
13228 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"
13230 # Determine the default libpath from the value encoded in an
13231 # empty executable.
13232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13233 /* end confdefs.h. */
13243 if ac_fn_cxx_try_link "$LINENO"; then :
13245 lt_aix_libpath_sed='
13246 /Import File Strings/,/^$/ {
13252 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13253 # Check for a 64-bit object if we didn't find anything.
13254 if test -z "$aix_libpath"; then
13255 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13258 rm -f core conftest.err conftest.$ac_objext \
13259 conftest$ac_exeext conftest.$ac_ext
13260 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13262 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13263 # Warning - without using the other run time loading flags,
13264 # -berok will link without error, but may produce a broken library.
13265 no_undefined_flag_CXX=' ${wl}-bernotok'
13266 allow_undefined_flag_CXX=' ${wl}-berok'
13267 # Exported symbols can be pulled into shared objects from archives
13268 whole_archive_flag_spec_CXX='$convenience'
13269 archive_cmds_need_lc_CXX=yes
13270 # This is similar to how AIX traditionally builds its shared
13272 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'
13278 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13279 allow_undefined_flag_CXX=unsupported
13280 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13281 # support --undefined. This deserves some investigation. FIXME
13282 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13289 case $cc_basename in
13291 # FIXME: insert proper C++ library support
13297 cygwin* | mingw* | pw32* | cegcc*)
13298 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13299 # as there is no search path for DLLs.
13300 hardcode_libdir_flag_spec_CXX='-L$libdir'
13301 allow_undefined_flag_CXX=unsupported
13302 always_export_symbols_CXX=no
13303 enable_shared_with_static_runtimes_CXX=yes
13305 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13306 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'
13307 # If the export-symbols file already is a .def file (1st line
13308 # is EXPORTS), use it as is; otherwise, prepend...
13309 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13310 cp $export_symbols $output_objdir/$soname.def;
13312 echo EXPORTS > $output_objdir/$soname.def;
13313 cat $export_symbols >> $output_objdir/$soname.def;
13315 $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'
13320 darwin* | rhapsody*)
13323 archive_cmds_need_lc_CXX=no
13324 hardcode_direct_CXX=no
13325 hardcode_automatic_CXX=yes
13326 hardcode_shlibpath_var_CXX=unsupported
13327 whole_archive_flag_spec_CXX=''
13328 link_all_deplibs_CXX=yes
13329 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13330 case $cc_basename in
13331 ifort*) _lt_dar_can_shared=yes ;;
13332 *) _lt_dar_can_shared=$GCC ;;
13334 if test "$_lt_dar_can_shared" = "yes"; then
13335 output_verbose_link_cmd=echo
13336 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}"
13337 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13338 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}"
13339 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}"
13340 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13341 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}"
13342 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}"
13352 case $cc_basename in
13354 # FIXME: insert proper C++ library support
13358 # Green Hills C++ Compiler
13359 # FIXME: insert proper C++ library support
13363 # FIXME: insert proper C++ library support
13370 # C++ shared libraries reported to be fairly broken before
13376 archive_cmds_need_lc_CXX=no
13379 freebsd* | dragonfly*)
13380 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13389 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13390 hardcode_libdir_separator_CXX=:
13391 export_dynamic_flag_spec_CXX='${wl}-E'
13392 hardcode_direct_CXX=yes
13393 hardcode_minus_L_CXX=yes # Not in the search PATH,
13394 # but as the default
13395 # location of the library.
13397 case $cc_basename in
13399 # FIXME: insert proper C++ library support
13403 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'
13404 # Commands to make compiler produce verbose output that lists
13405 # what "hidden" libraries, object files and flags are used when
13406 # linking a shared library.
13408 # There doesn't appear to be a way to prevent this compiler from
13409 # explicitly linking system object files so we need to strip them
13410 # from the output so that they don't get included in the library
13412 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; $ECHO "X$list" | $Xsed'
13415 if test "$GXX" = yes; then
13416 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${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'
13418 # FIXME: insert proper C++ library support
13426 if test $with_gnu_ld = no; then
13427 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13428 hardcode_libdir_separator_CXX=:
13434 export_dynamic_flag_spec_CXX='${wl}-E'
13440 hardcode_direct_CXX=no
13441 hardcode_shlibpath_var_CXX=no
13444 hardcode_direct_CXX=yes
13445 hardcode_direct_absolute_CXX=yes
13446 hardcode_minus_L_CXX=yes # Not in the search PATH,
13447 # but as the default
13448 # location of the library.
13452 case $cc_basename in
13454 # FIXME: insert proper C++ library support
13460 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13463 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13466 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13469 # Commands to make compiler produce verbose output that lists
13470 # what "hidden" libraries, object files and flags are used when
13471 # linking a shared library.
13473 # There doesn't appear to be a way to prevent this compiler from
13474 # explicitly linking system object files so we need to strip them
13475 # from the output so that they don't get included in the library
13477 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; $ECHO "X$list" | $Xsed'
13480 if test "$GXX" = yes; then
13481 if test $with_gnu_ld = no; then
13484 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13487 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13490 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13495 # FIXME: insert proper C++ library support
13503 hardcode_direct_CXX=no
13504 hardcode_shlibpath_var_CXX=no
13505 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13506 export_dynamic_flag_spec_CXX='${wl}-E'
13507 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13508 # Instead, shared libraries are loaded at an image base (0x10000000 by
13509 # default) and relocated if they conflict, which is a slow very memory
13510 # consuming and fragmenting process. To avoid this, we pick a random,
13511 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13512 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13513 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'
13514 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'
13517 case $cc_basename in
13520 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
13522 # Archives containing C++ object files must be created using
13523 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13524 # necessary to make sure instantiated templates are included
13526 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13529 if test "$GXX" = yes; then
13530 if test "$with_gnu_ld" = no; then
13531 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13533 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
13536 link_all_deplibs_CXX=yes
13539 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13540 hardcode_libdir_separator_CXX=:
13541 inherit_rpath_CXX=yes
13544 linux* | k*bsd*-gnu)
13545 case $cc_basename in
13547 # Kuck and Associates, Inc. (KAI) C++ Compiler
13549 # KCC will only create a shared library if the output file
13550 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13551 # to its proper name (with version) after linking.
13552 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'
13553 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'
13554 # Commands to make compiler produce verbose output that lists
13555 # what "hidden" libraries, object files and flags are used when
13556 # linking a shared library.
13558 # There doesn't appear to be a way to prevent this compiler from
13559 # explicitly linking system object files so we need to strip them
13560 # from the output so that they don't get included in the library
13562 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; $ECHO "X$list" | $Xsed'
13564 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13565 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13567 # Archives containing C++ object files must be created using
13568 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13569 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13574 # version 8.0 and above of icpc choke on multiply defined symbols
13575 # if we add $predep_objects and $postdep_objects, however 7.1 and
13576 # earlier do not add the objects themselves.
13577 case `$CC -V 2>&1` in
13579 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13580 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'
13582 *) # Version 8.0 or newer
13585 ia64*) tmp_idyn=' -i_dynamic';;
13587 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13588 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'
13591 archive_cmds_need_lc_CXX=no
13592 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13593 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13594 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13597 # Portland Group C++ compiler
13599 *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
13600 prelink_cmds_CXX='tpldir=Template.dir~
13602 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13603 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
13604 old_archive_cmds_CXX='tpldir=Template.dir~
13606 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13607 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
13609 archive_cmds_CXX='tpldir=Template.dir~
13611 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13612 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13613 archive_expsym_cmds_CXX='tpldir=Template.dir~
13615 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13616 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
13618 *) # Version 6 will use weak symbols
13619 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13620 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'
13624 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13625 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13626 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
13630 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13631 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'
13633 runpath_var=LD_RUN_PATH
13634 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13635 hardcode_libdir_separator_CXX=:
13637 # Commands to make compiler produce verbose output that lists
13638 # what "hidden" libraries, object files and flags are used when
13639 # linking a shared library.
13641 # There doesn't appear to be a way to prevent this compiler from
13642 # explicitly linking system object files so we need to strip them
13643 # from the output so that they don't get included in the library
13645 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
13648 # IBM XL 8.0 on PPC, with GNU ld
13649 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13650 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13651 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13652 if test "x$supports_anon_versioning" = xyes; then
13653 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13654 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13655 echo "local: *; };" >> $output_objdir/$libname.ver~
13656 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13660 case `$CC -V 2>&1 | sed 5q` in
13663 no_undefined_flag_CXX=' -zdefs'
13664 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13665 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'
13666 hardcode_libdir_flag_spec_CXX='-R$libdir'
13667 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
13668 compiler_needs_object_CXX=yes
13670 # Not sure whether something based on
13671 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13673 output_verbose_link_cmd='echo'
13675 # Archives containing C++ object files must be created using
13676 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13677 # necessary to make sure instantiated templates are included
13679 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13687 # FIXME: insert proper C++ library support
13692 # FIXME: insert proper C++ library support
13697 case $cc_basename in
13699 # FIXME: insert proper C++ library support
13703 # FIXME: insert proper C++ library support
13710 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13711 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13713 hardcode_libdir_flag_spec_CXX='-R$libdir'
13714 hardcode_direct_CXX=yes
13715 hardcode_shlibpath_var_CXX=no
13717 # Workaround some broken pre-1.5 toolchains
13718 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13726 # C++ shared libraries are fairly broken
13731 if test -f /usr/libexec/ld.so; then
13732 hardcode_direct_CXX=yes
13733 hardcode_shlibpath_var_CXX=no
13734 hardcode_direct_absolute_CXX=yes
13735 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13736 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13737 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13738 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13739 export_dynamic_flag_spec_CXX='${wl}-E'
13740 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13742 output_verbose_link_cmd=echo
13748 osf3* | osf4* | osf5*)
13749 case $cc_basename in
13751 # Kuck and Associates, Inc. (KAI) C++ Compiler
13753 # KCC will only create a shared library if the output file
13754 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13755 # to its proper name (with version) after linking.
13756 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'
13758 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13759 hardcode_libdir_separator_CXX=:
13761 # Archives containing C++ object files must be created using
13762 # the KAI C++ compiler.
13764 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13765 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13769 # Rational C++ 2.4.1
13770 # FIXME: insert proper C++ library support
13776 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13777 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
13778 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13781 allow_undefined_flag_CXX=' -expect_unresolved \*'
13782 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
13783 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13784 echo "-hidden">> $lib.exp~
13785 $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 "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~
13787 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13791 hardcode_libdir_separator_CXX=:
13793 # Commands to make compiler produce verbose output that lists
13794 # what "hidden" libraries, object files and flags are used when
13795 # linking a shared library.
13797 # There doesn't appear to be a way to prevent this compiler from
13798 # explicitly linking system object files so we need to strip them
13799 # from the output so that they don't get included in the library
13801 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
13804 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13805 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13808 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13811 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13815 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13816 hardcode_libdir_separator_CXX=:
13818 # Commands to make compiler produce verbose output that lists
13819 # what "hidden" libraries, object files and flags are used when
13820 # linking a shared library.
13821 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13824 # FIXME: insert proper C++ library support
13832 # FIXME: insert proper C++ library support
13837 case $cc_basename in
13840 # FIXME: insert proper C++ library support
13845 # FIXME: insert proper C++ library support
13849 # FIXME: insert proper C++ library support
13856 case $cc_basename in
13858 # Sun C++ 4.2, 5.x and Centerline C++
13859 archive_cmds_need_lc_CXX=yes
13860 no_undefined_flag_CXX=' -zdefs'
13861 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13862 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13863 $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'
13865 hardcode_libdir_flag_spec_CXX='-R$libdir'
13866 hardcode_shlibpath_var_CXX=no
13868 solaris2.[0-5] | solaris2.[0-5].*) ;;
13870 # The compiler driver will combine and reorder linker options,
13871 # but understands `-z linker_flag'.
13872 # Supported since Solaris 2.6 (maybe 2.5.1?)
13873 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13876 link_all_deplibs_CXX=yes
13878 output_verbose_link_cmd='echo'
13880 # Archives containing C++ object files must be created using
13881 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13882 # necessary to make sure instantiated templates are included
13884 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13887 # Green Hills C++ Compiler
13888 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13890 # The C++ compiler must be used to create the archive.
13891 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13894 # GNU C++ compiler with Solaris linker
13895 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13896 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13897 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13898 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13899 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13900 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13902 # Commands to make compiler produce verbose output that lists
13903 # what "hidden" libraries, object files and flags are used when
13904 # linking a shared library.
13905 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13907 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13909 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13910 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13911 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13913 # Commands to make compiler produce verbose output that lists
13914 # what "hidden" libraries, object files and flags are used when
13915 # linking a shared library.
13916 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13919 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13921 solaris2.[0-5] | solaris2.[0-5].*) ;;
13923 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13931 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13932 no_undefined_flag_CXX='${wl}-z,text'
13933 archive_cmds_need_lc_CXX=no
13934 hardcode_shlibpath_var_CXX=no
13935 runpath_var='LD_RUN_PATH'
13937 case $cc_basename in
13939 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13940 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13943 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13944 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13949 sysv5* | sco3.2v5* | sco5v6*)
13950 # Note: We can NOT use -z defs as we might desire, because we do not
13951 # link with -lc, and that would cause any symbols used from libc to
13952 # always be unresolved, which means just about no library would
13953 # ever link correctly. If we're not using GNU ld we use -z text
13954 # though, which does catch some bad symbols but isn't as heavy-handed
13956 no_undefined_flag_CXX='${wl}-z,text'
13957 allow_undefined_flag_CXX='${wl}-z,nodefs'
13958 archive_cmds_need_lc_CXX=no
13959 hardcode_shlibpath_var_CXX=no
13960 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13961 hardcode_libdir_separator_CXX=':'
13962 link_all_deplibs_CXX=yes
13963 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13964 runpath_var='LD_RUN_PATH'
13966 case $cc_basename in
13968 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13969 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13972 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13973 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13979 case $cc_basename in
13981 # NonStop-UX NCC 3.20
13982 # FIXME: insert proper C++ library support
13986 # FIXME: insert proper C++ library support
13993 # FIXME: insert proper C++ library support
13998 # FIXME: insert proper C++ library support
14003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14004 $as_echo "$ld_shlibs_CXX" >&6; }
14005 test "$ld_shlibs_CXX" = no && can_build_shared=no
14011 ## There is no encapsulation within the following macros, do not change
14012 ## the running order or otherwise move them around unless you know exactly
14013 ## what you are doing...
14014 # Dependencies to place before and after the object being linked:
14015 predep_objects_CXX=
14016 postdep_objects_CXX=
14019 compiler_lib_search_path_CXX=
14021 cat > conftest.$ac_ext <<_LT_EOF
14025 Foo (void) { a = 0; }
14031 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14032 (eval $ac_compile) 2>&5
14034 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14035 test $ac_status = 0; }; then
14036 # Parse the compiler output and extract the necessary
14037 # objects, libraries and library flags.
14039 # Sentinel used to keep track of whether or not we are before
14040 # the conftest object file.
14041 pre_test_object_deps_done=no
14043 for p in `eval "$output_verbose_link_cmd"`; do
14047 # Some compilers place space between "-{L,R}" and the path.
14048 # Remove the space.
14049 if test $p = "-L" ||
14050 test $p = "-R"; then
14057 if test "$pre_test_object_deps_done" = no; then
14060 # Internal compiler library paths should come after those
14061 # provided the user. The postdeps already come after the
14062 # user supplied libs so there is no need to process them.
14063 if test -z "$compiler_lib_search_path_CXX"; then
14064 compiler_lib_search_path_CXX="${prev}${p}"
14066 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14069 # The "-l" case would never come before the object being
14070 # linked, so don't bother handling this case.
14073 if test -z "$postdeps_CXX"; then
14074 postdeps_CXX="${prev}${p}"
14076 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14082 # This assumes that the test object file only shows up
14083 # once in the compiler output.
14084 if test "$p" = "conftest.$objext"; then
14085 pre_test_object_deps_done=yes
14089 if test "$pre_test_object_deps_done" = no; then
14090 if test -z "$predep_objects_CXX"; then
14091 predep_objects_CXX="$p"
14093 predep_objects_CXX="$predep_objects_CXX $p"
14096 if test -z "$postdep_objects_CXX"; then
14097 postdep_objects_CXX="$p"
14099 postdep_objects_CXX="$postdep_objects_CXX $p"
14104 *) ;; # Ignore the rest.
14112 echo "libtool.m4: error: problem compiling CXX test program"
14115 $RM -f confest.$objext
14117 # PORTME: override above test on systems where it is broken
14120 # Interix 3.5 installs completely hosed .la files for C++, so rather than
14121 # hack all around it, let's just trust "g++" to DTRT.
14122 predep_objects_CXX=
14123 postdep_objects_CXX=
14128 case `$CC -V 2>&1 | sed 5q` in
14132 # The more standards-conforming stlport4 library is
14133 # incompatible with the Cstd library. Avoid specifying
14134 # it if it's in CXXFLAGS. Ignore libCrun as
14135 # -library=stlport4 depends on it.
14136 case " $CXX $CXXFLAGS " in
14137 *" -library=stlport4 "*)
14138 solaris_use_stlport4=yes
14142 if test "$solaris_use_stlport4" != yes; then
14143 postdeps_CXX='-library=Cstd -library=Crun'
14150 case $cc_basename in
14152 # The more standards-conforming stlport4 library is
14153 # incompatible with the Cstd library. Avoid specifying
14154 # it if it's in CXXFLAGS. Ignore libCrun as
14155 # -library=stlport4 depends on it.
14156 case " $CXX $CXXFLAGS " in
14157 *" -library=stlport4 "*)
14158 solaris_use_stlport4=yes
14162 # Adding this requires a known-good setup of shared libraries for
14163 # Sun compiler versions before 5.6, else PIC objects from an old
14164 # archive will be linked into the output, leading to subtle bugs.
14165 if test "$solaris_use_stlport4" != yes; then
14166 postdeps_CXX='-library=Cstd -library=Crun'
14174 case " $postdeps_CXX " in
14175 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14177 compiler_lib_search_dirs_CXX=
14178 if test -n "${compiler_lib_search_path_CXX}"; then
14179 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14212 lt_prog_compiler_wl_CXX=
14213 lt_prog_compiler_pic_CXX=
14214 lt_prog_compiler_static_CXX=
14216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14217 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14219 # C++ specific cases for pic, static, wl, etc.
14220 if test "$GXX" = yes; then
14221 lt_prog_compiler_wl_CXX='-Wl,'
14222 lt_prog_compiler_static_CXX='-static'
14226 # All AIX code is PIC.
14227 if test "$host_cpu" = ia64; then
14228 # AIX 5 now supports IA64 processor
14229 lt_prog_compiler_static_CXX='-Bstatic'
14236 # see comment about AmigaOS4 .so support
14237 lt_prog_compiler_pic_CXX='-fPIC'
14240 # FIXME: we need at least 68020 code to build shared libraries, but
14241 # adding the `-m68020' flag to GCC prevents building anything better,
14243 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14248 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14249 # PIC is the default for these OSes.
14251 mingw* | cygwin* | os2* | pw32* | cegcc*)
14252 # This hack is so that the source file can tell whether it is being
14253 # built for inclusion in a dll (and should export symbols for example).
14254 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14255 # (--disable-auto-import) libraries
14256 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14258 darwin* | rhapsody*)
14259 # PIC is the default on this platform
14260 # Common symbols not allowed in MH_DYLIB files
14261 lt_prog_compiler_pic_CXX='-fno-common'
14264 # DJGPP does not support shared libraries at all
14265 lt_prog_compiler_pic_CXX=
14268 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14269 # Instead, we relocate shared libraries at runtime.
14272 if test -d /usr/nec; then
14273 lt_prog_compiler_pic_CXX=-Kconform_pic
14277 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14278 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14279 # sets the default TLS model and affects inlining.
14284 lt_prog_compiler_pic_CXX='-fPIC'
14289 # QNX uses GNU C++, but need to define -shared option too, otherwise
14290 # it will coredump.
14291 lt_prog_compiler_pic_CXX='-fPIC -shared'
14294 lt_prog_compiler_pic_CXX='-fPIC'
14300 # All AIX code is PIC.
14301 if test "$host_cpu" = ia64; then
14302 # AIX 5 now supports IA64 processor
14303 lt_prog_compiler_static_CXX='-Bstatic'
14305 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14309 case $cc_basename in
14311 # Green Hills C++ Compiler
14312 # _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"
14317 case $cc_basename in
14319 lt_prog_compiler_pic_CXX='-KPIC'
14322 # Green Hills C++ Compiler
14323 lt_prog_compiler_pic_CXX='-pic'
14329 freebsd* | dragonfly*)
14330 # FreeBSD uses GNU C++
14332 hpux9* | hpux10* | hpux11*)
14333 case $cc_basename in
14335 lt_prog_compiler_wl_CXX='-Wl,'
14336 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14337 if test "$host_cpu" != ia64; then
14338 lt_prog_compiler_pic_CXX='+Z'
14342 lt_prog_compiler_wl_CXX='-Wl,'
14343 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14349 lt_prog_compiler_pic_CXX='+Z'
14358 # This is c89, which is MS Visual C++ (no shared libs)
14359 # Anyone wants to do a port?
14361 irix5* | irix6* | nonstopux*)
14362 case $cc_basename in
14364 lt_prog_compiler_wl_CXX='-Wl,'
14365 lt_prog_compiler_static_CXX='-non_shared'
14366 # CC pic flag -KPIC is the default.
14372 linux* | k*bsd*-gnu)
14373 case $cc_basename in
14376 lt_prog_compiler_wl_CXX='--backend -Wl,'
14377 lt_prog_compiler_pic_CXX='-fPIC'
14380 # old Intel C++ for x86_64 which still supported -KPIC.
14381 lt_prog_compiler_wl_CXX='-Wl,'
14382 lt_prog_compiler_pic_CXX='-KPIC'
14383 lt_prog_compiler_static_CXX='-static'
14386 # Intel C++, used to be incompatible with GCC.
14387 # ICC 10 doesn't accept -KPIC any more.
14388 lt_prog_compiler_wl_CXX='-Wl,'
14389 lt_prog_compiler_pic_CXX='-fPIC'
14390 lt_prog_compiler_static_CXX='-static'
14393 # Portland Group C++ compiler
14394 lt_prog_compiler_wl_CXX='-Wl,'
14395 lt_prog_compiler_pic_CXX='-fpic'
14396 lt_prog_compiler_static_CXX='-Bstatic'
14400 # Make sure the PIC flag is empty. It appears that all Alpha
14401 # Linux and Compaq Tru64 Unix objects are PIC.
14402 lt_prog_compiler_pic_CXX=
14403 lt_prog_compiler_static_CXX='-non_shared'
14406 # IBM XL 8.0 on PPC
14407 lt_prog_compiler_wl_CXX='-Wl,'
14408 lt_prog_compiler_pic_CXX='-qpic'
14409 lt_prog_compiler_static_CXX='-qstaticlink'
14412 case `$CC -V 2>&1 | sed 5q` in
14415 lt_prog_compiler_pic_CXX='-KPIC'
14416 lt_prog_compiler_static_CXX='-Bstatic'
14417 lt_prog_compiler_wl_CXX='-Qoption ld '
14428 case $cc_basename in
14430 lt_prog_compiler_pic_CXX='-W c,exportall'
14439 # QNX uses GNU C++, but need to define -shared option too, otherwise
14440 # it will coredump.
14441 lt_prog_compiler_pic_CXX='-fPIC -shared'
14443 osf3* | osf4* | osf5*)
14444 case $cc_basename in
14446 lt_prog_compiler_wl_CXX='--backend -Wl,'
14449 # Rational C++ 2.4.1
14450 lt_prog_compiler_pic_CXX='-pic'
14453 # Digital/Compaq C++
14454 lt_prog_compiler_wl_CXX='-Wl,'
14455 # Make sure the PIC flag is empty. It appears that all Alpha
14456 # Linux and Compaq Tru64 Unix objects are PIC.
14457 lt_prog_compiler_pic_CXX=
14458 lt_prog_compiler_static_CXX='-non_shared'
14467 case $cc_basename in
14469 # Sun C++ 4.2, 5.x and Centerline C++
14470 lt_prog_compiler_pic_CXX='-KPIC'
14471 lt_prog_compiler_static_CXX='-Bstatic'
14472 lt_prog_compiler_wl_CXX='-Qoption ld '
14475 # Green Hills C++ Compiler
14476 lt_prog_compiler_pic_CXX='-PIC'
14483 case $cc_basename in
14486 lt_prog_compiler_pic_CXX='-pic'
14487 lt_prog_compiler_static_CXX='-Bstatic'
14491 lt_prog_compiler_pic_CXX='-pic'
14497 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14498 case $cc_basename in
14500 lt_prog_compiler_wl_CXX='-Wl,'
14501 lt_prog_compiler_pic_CXX='-KPIC'
14502 lt_prog_compiler_static_CXX='-Bstatic'
14507 case $cc_basename in
14509 # NonStop-UX NCC 3.20
14510 lt_prog_compiler_pic_CXX='-KPIC'
14519 lt_prog_compiler_can_build_shared_CXX=no
14525 # For platforms which do not support PIC, -DPIC is meaningless:
14527 lt_prog_compiler_pic_CXX=
14530 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
14534 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
14539 # Check to make sure the PIC flag actually works.
14541 if test -n "$lt_prog_compiler_pic_CXX"; then
14542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14543 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14544 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
14545 $as_echo_n "(cached) " >&6
14547 lt_cv_prog_compiler_pic_works_CXX=no
14548 ac_outfile=conftest.$ac_objext
14549 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14550 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14551 # Insert the option either (1) after the last *FLAGS variable, or
14552 # (2) before a word containing "conftest.", or (3) at the end.
14553 # Note that $ac_compile itself does not contain backslashes and begins
14554 # with a dollar sign (not a hyphen), so the echo should work correctly.
14555 # The option is referenced via a variable to avoid confusing sed.
14556 lt_compile=`echo "$ac_compile" | $SED \
14557 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14558 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14559 -e 's:$: $lt_compiler_flag:'`
14560 (eval echo "\"\$as_me:14560: $lt_compile\"" >&5)
14561 (eval "$lt_compile" 2>conftest.err)
14563 cat conftest.err >&5
14564 echo "$as_me:14564: \$? = $ac_status" >&5
14565 if (exit $ac_status) && test -s "$ac_outfile"; then
14566 # The compiler can only warn and ignore the option if not recognized
14567 # So say no if there are warnings other than the usual output.
14568 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14569 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14570 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14571 lt_cv_prog_compiler_pic_works_CXX=yes
14577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14578 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14580 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14581 case $lt_prog_compiler_pic_CXX in
14583 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14586 lt_prog_compiler_pic_CXX=
14587 lt_prog_compiler_can_build_shared_CXX=no
14595 # Check to make sure the static flag actually works.
14597 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14599 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14600 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
14601 $as_echo_n "(cached) " >&6
14603 lt_cv_prog_compiler_static_works_CXX=no
14604 save_LDFLAGS="$LDFLAGS"
14605 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14606 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14607 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14608 # The linker can only warn and ignore the option if not recognized
14609 # So say no if there are warnings
14610 if test -s conftest.err; then
14611 # Append any errors to the config.log.
14612 cat conftest.err 1>&5
14613 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14614 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14615 if diff conftest.exp conftest.er2 >/dev/null; then
14616 lt_cv_prog_compiler_static_works_CXX=yes
14619 lt_cv_prog_compiler_static_works_CXX=yes
14623 LDFLAGS="$save_LDFLAGS"
14626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14627 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14629 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14632 lt_prog_compiler_static_CXX=
14638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14639 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14640 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14641 $as_echo_n "(cached) " >&6
14643 lt_cv_prog_compiler_c_o_CXX=no
14644 $RM -r conftest 2>/dev/null
14648 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14650 lt_compiler_flag="-o out/conftest2.$ac_objext"
14651 # Insert the option either (1) after the last *FLAGS variable, or
14652 # (2) before a word containing "conftest.", or (3) at the end.
14653 # Note that $ac_compile itself does not contain backslashes and begins
14654 # with a dollar sign (not a hyphen), so the echo should work correctly.
14655 lt_compile=`echo "$ac_compile" | $SED \
14656 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14657 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14658 -e 's:$: $lt_compiler_flag:'`
14659 (eval echo "\"\$as_me:14659: $lt_compile\"" >&5)
14660 (eval "$lt_compile" 2>out/conftest.err)
14662 cat out/conftest.err >&5
14663 echo "$as_me:14663: \$? = $ac_status" >&5
14664 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14666 # The compiler can only warn and ignore the option if not recognized
14667 # So say no if there are warnings
14668 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14669 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14670 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14671 lt_cv_prog_compiler_c_o_CXX=yes
14676 # SGI C++ compiler will create directory out/ii_files/ for
14677 # template instantiation
14678 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14679 $RM out/* && rmdir out
14685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14686 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14691 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14692 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14693 $as_echo_n "(cached) " >&6
14695 lt_cv_prog_compiler_c_o_CXX=no
14696 $RM -r conftest 2>/dev/null
14700 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14702 lt_compiler_flag="-o out/conftest2.$ac_objext"
14703 # Insert the option either (1) after the last *FLAGS variable, or
14704 # (2) before a word containing "conftest.", or (3) at the end.
14705 # Note that $ac_compile itself does not contain backslashes and begins
14706 # with a dollar sign (not a hyphen), so the echo should work correctly.
14707 lt_compile=`echo "$ac_compile" | $SED \
14708 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14709 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14710 -e 's:$: $lt_compiler_flag:'`
14711 (eval echo "\"\$as_me:14711: $lt_compile\"" >&5)
14712 (eval "$lt_compile" 2>out/conftest.err)
14714 cat out/conftest.err >&5
14715 echo "$as_me:14715: \$? = $ac_status" >&5
14716 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14718 # The compiler can only warn and ignore the option if not recognized
14719 # So say no if there are warnings
14720 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14721 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14722 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14723 lt_cv_prog_compiler_c_o_CXX=yes
14728 # SGI C++ compiler will create directory out/ii_files/ for
14729 # template instantiation
14730 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14731 $RM out/* && rmdir out
14737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14738 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14743 hard_links="nottested"
14744 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14745 # do not overwrite the value of need_locks provided by the user
14746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14747 $as_echo_n "checking if we can lock with hard links... " >&6; }
14750 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14752 ln conftest.a conftest.b 2>&5 || hard_links=no
14753 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14755 $as_echo "$hard_links" >&6; }
14756 if test "$hard_links" = no; then
14757 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14758 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14768 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14770 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14773 # If we're using GNU nm, then we don't want the "-C" option.
14774 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14775 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14776 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14778 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'
14782 export_symbols_cmds_CXX="$ltdll_cmds"
14784 cygwin* | mingw* | cegcc*)
14785 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
14788 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14791 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14794 $as_echo "$ld_shlibs_CXX" >&6; }
14795 test "$ld_shlibs_CXX" = no && can_build_shared=no
14797 with_gnu_ld_CXX=$with_gnu_ld
14805 # Do we need to explicitly link libc?
14807 case "x$archive_cmds_need_lc_CXX" in
14809 # Assume -lc should be added
14810 archive_cmds_need_lc_CXX=yes
14812 if test "$enable_shared" = yes && test "$GCC" = yes; then
14813 case $archive_cmds_CXX in
14815 # FIXME: we may have to deal with multi-command sequences.
14818 # Test whether the compiler implicitly links with -lc since on some
14819 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14820 # to ld, don't add -lc before -lgcc.
14821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14822 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14824 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14826 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14827 (eval $ac_compile) 2>&5
14829 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14830 test $ac_status = 0; } 2>conftest.err; then
14833 libobjs=conftest.$ac_objext
14835 wl=$lt_prog_compiler_wl_CXX
14836 pic_flag=$lt_prog_compiler_pic_CXX
14842 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14843 allow_undefined_flag_CXX=
14844 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14845 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14847 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14848 test $ac_status = 0; }
14850 archive_cmds_need_lc_CXX=no
14852 archive_cmds_need_lc_CXX=yes
14854 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14856 cat conftest.err 1>&5
14859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
14860 $as_echo "$archive_cmds_need_lc_CXX" >&6; }
14930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14931 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14933 library_names_spec=
14934 libname_spec='lib$name'
14938 postuninstall_cmds=
14942 shlibpath_overrides_runpath=unknown
14944 dynamic_linker="$host_os ld.so"
14945 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14946 need_lib_prefix=unknown
14947 hardcode_into_libs=no
14949 # when you set need_version to no, make sure it does not cause -set_version
14950 # flags to be left without arguments
14951 need_version=unknown
14956 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14957 shlibpath_var=LIBPATH
14959 # AIX 3 has no versioning support, so we append a major version to the name.
14960 soname_spec='${libname}${release}${shared_ext}$major'
14967 hardcode_into_libs=yes
14968 if test "$host_cpu" = ia64; then
14969 # AIX 5 supports IA64
14970 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14971 shlibpath_var=LD_LIBRARY_PATH
14973 # With GCC up to 2.95.x, collect2 would create an import file
14974 # for dependence libraries. The import file would start with
14975 # the line `#! .'. This would cause the generated library to
14976 # depend on `.', always an invalid library. This was fixed in
14977 # development snapshots of GCC prior to 3.0.
14979 aix4 | aix4.[01] | aix4.[01].*)
14980 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14982 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14985 can_build_shared=no
14989 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14990 # soname into executable. Probably we can add versioning support to
14991 # collect2, so additional links can be useful in future.
14992 if test "$aix_use_runtimelinking" = yes; then
14993 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14994 # instead of lib<name>.a to let people know that these are not
14995 # typical AIX shared libraries.
14996 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14998 # We preserve .a as extension for shared libraries through AIX4.2
14999 # and later when we are not doing run time linking.
15000 library_names_spec='${libname}${release}.a $libname.a'
15001 soname_spec='${libname}${release}${shared_ext}$major'
15003 shlibpath_var=LIBPATH
15010 # Since July 2007 AmigaOS4 officially supports .so libraries.
15011 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15012 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15015 library_names_spec='$libname.ixlibrary $libname.a'
15016 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15017 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''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'
15023 library_names_spec='${libname}${shared_ext}'
15024 dynamic_linker="$host_os ld.so"
15025 shlibpath_var=LIBRARY_PATH
15031 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15032 soname_spec='${libname}${release}${shared_ext}$major'
15033 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15034 shlibpath_var=LD_LIBRARY_PATH
15035 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15036 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15037 # the default ld.so.conf also contains /usr/contrib/lib and
15038 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15039 # libtool to hard-code these into programs
15042 cygwin* | mingw* | pw32* | cegcc*)
15043 version_type=windows
15048 case $GCC,$host_os in
15049 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
15050 library_names_spec='$libname.dll.a'
15051 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15052 postinstall_cmds='base_file=`basename \${file}`~
15053 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15054 dldir=$destdir/`dirname \$dlpath`~
15055 test -d \$dldir || mkdir -p \$dldir~
15056 $install_prog $dir/$dlname \$dldir/$dlname~
15057 chmod a+x \$dldir/$dlname~
15058 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15059 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15061 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15062 dlpath=$dir/\$dldll~
15064 shlibpath_overrides_runpath=yes
15068 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15069 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15070 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15073 # MinGW DLLs use traditional 'lib' prefix
15074 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15075 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15076 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15077 # It is most probably a Windows format PATH printed by
15078 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15079 # path with ; separators, and with drive letters. We can handle the
15080 # drive letters (cygwin fileutils understands them), so leave them,
15081 # especially as we might pass files found there to a mingw objdump,
15082 # which wouldn't understand a cygwinified path. Ahh.
15083 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15085 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15089 # pw32 DLLs use 'pw' prefix rather than 'lib'
15090 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15096 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15099 dynamic_linker='Win32 ld.exe'
15100 # FIXME: first we should search . and the directory the executable is in
15104 darwin* | rhapsody*)
15105 dynamic_linker="$host_os dyld"
15106 version_type=darwin
15109 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15110 soname_spec='${libname}${release}${major}$shared_ext'
15111 shlibpath_overrides_runpath=yes
15112 shlibpath_var=DYLD_LIBRARY_PATH
15113 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15115 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15122 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15123 soname_spec='${libname}${release}${shared_ext}$major'
15124 shlibpath_var=LD_LIBRARY_PATH
15131 freebsd* | dragonfly*)
15132 # DragonFly does not have aout. When/if they implement a new
15133 # versioning mechanism, adjust this.
15134 if test -x /usr/bin/objformat; then
15135 objformat=`/usr/bin/objformat`
15138 freebsd[123]*) objformat=aout ;;
15139 *) objformat=elf ;;
15142 version_type=freebsd-$objformat
15143 case $version_type in
15145 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15150 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15154 shlibpath_var=LD_LIBRARY_PATH
15157 shlibpath_overrides_runpath=yes
15159 freebsd3.[01]* | freebsdelf3.[01]*)
15160 shlibpath_overrides_runpath=yes
15161 hardcode_into_libs=yes
15163 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15164 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15165 shlibpath_overrides_runpath=no
15166 hardcode_into_libs=yes
15168 *) # from 4.6 on, and DragonFly
15169 shlibpath_overrides_runpath=yes
15170 hardcode_into_libs=yes
15179 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15180 soname_spec='${libname}${release}${shared_ext}$major'
15181 shlibpath_var=LD_LIBRARY_PATH
15182 hardcode_into_libs=yes
15185 hpux9* | hpux10* | hpux11*)
15186 # Give a soname corresponding to the major version so that dld.sl refuses to
15187 # link against other versions.
15194 hardcode_into_libs=yes
15195 dynamic_linker="$host_os dld.so"
15196 shlibpath_var=LD_LIBRARY_PATH
15197 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15198 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15199 soname_spec='${libname}${release}${shared_ext}$major'
15200 if test "X$HPUX_IA64_MODE" = X32; then
15201 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15203 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15205 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15209 hardcode_into_libs=yes
15210 dynamic_linker="$host_os dld.sl"
15211 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15212 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15213 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15214 soname_spec='${libname}${release}${shared_ext}$major'
15215 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15216 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15220 dynamic_linker="$host_os dld.sl"
15221 shlibpath_var=SHLIB_PATH
15222 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15223 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15224 soname_spec='${libname}${release}${shared_ext}$major'
15227 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15228 postinstall_cmds='chmod 555 $lib'
15235 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15236 soname_spec='${libname}${release}${shared_ext}$major'
15237 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15238 shlibpath_var=LD_LIBRARY_PATH
15239 shlibpath_overrides_runpath=no
15240 hardcode_into_libs=yes
15243 irix5* | irix6* | nonstopux*)
15245 nonstopux*) version_type=nonstopux ;;
15247 if test "$lt_cv_prog_gnu_ld" = yes; then
15255 soname_spec='${libname}${release}${shared_ext}$major'
15256 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15258 irix5* | nonstopux*)
15259 libsuff= shlibsuff=
15262 case $LD in # libtool.m4 will add one of these switches to LD
15263 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15264 libsuff= shlibsuff= libmagic=32-bit;;
15265 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15266 libsuff=32 shlibsuff=N32 libmagic=N32;;
15267 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15268 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15269 *) libsuff= shlibsuff= libmagic=never-match;;
15273 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15274 shlibpath_overrides_runpath=no
15275 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15276 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15277 hardcode_into_libs=yes
15280 # No shared lib support for Linux oldld, aout, or coff.
15281 linux*oldld* | linux*aout* | linux*coff*)
15285 # This must be Linux ELF.
15286 linux* | k*bsd*-gnu)
15290 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15291 soname_spec='${libname}${release}${shared_ext}$major'
15292 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15293 shlibpath_var=LD_LIBRARY_PATH
15294 shlibpath_overrides_runpath=no
15295 # Some binutils ld are patched to set DT_RUNPATH
15296 save_LDFLAGS=$LDFLAGS
15297 save_libdir=$libdir
15298 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15299 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15301 /* end confdefs.h. */
15311 if ac_fn_cxx_try_link "$LINENO"; then :
15312 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15313 shlibpath_overrides_runpath=yes
15316 rm -f core conftest.err conftest.$ac_objext \
15317 conftest$ac_exeext conftest.$ac_ext
15318 LDFLAGS=$save_LDFLAGS
15319 libdir=$save_libdir
15321 # This implies no fast_install, which is unacceptable.
15322 # Some rework will be needed to allow for fast_install
15323 # before this can be enabled.
15324 hardcode_into_libs=yes
15326 # Append ld.so.conf contents to the search path
15327 if test -f /etc/ld.so.conf; then
15328 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;/^$/d' | tr '\n' ' '`
15329 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15332 # We used to test for /lib/ld.so.1 and disable shared libraries on
15333 # powerpc, because MkLinux only supported shared libraries with the
15334 # GNU dynamic linker. Since this was broken with cross compilers,
15335 # most powerpc-linux boxes support dynamic linking these days and
15336 # people can always --disable-shared, the test was removed, and we
15337 # assume the GNU/Linux dynamic linker is in use.
15338 dynamic_linker='GNU/Linux ld.so'
15345 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15346 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15347 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15348 dynamic_linker='NetBSD (a.out) ld.so'
15350 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15351 soname_spec='${libname}${release}${shared_ext}$major'
15352 dynamic_linker='NetBSD ld.elf_so'
15354 shlibpath_var=LD_LIBRARY_PATH
15355 shlibpath_overrides_runpath=yes
15356 hardcode_into_libs=yes
15361 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15362 shlibpath_var=LD_LIBRARY_PATH
15363 shlibpath_overrides_runpath=yes
15370 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15371 soname_spec='${libname}${release}${shared_ext}$major'
15372 shlibpath_var=LD_LIBRARY_PATH
15373 shlibpath_overrides_runpath=no
15374 hardcode_into_libs=yes
15375 dynamic_linker='ldqnx.so'
15380 sys_lib_dlsearch_path_spec="/usr/lib"
15382 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15384 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15385 *) need_version=no ;;
15387 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15388 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15389 shlibpath_var=LD_LIBRARY_PATH
15390 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15392 openbsd2.[89] | openbsd2.[89].*)
15393 shlibpath_overrides_runpath=no
15396 shlibpath_overrides_runpath=yes
15400 shlibpath_overrides_runpath=yes
15405 libname_spec='$name'
15408 library_names_spec='$libname${shared_ext} $libname.a'
15409 dynamic_linker='OS/2 ld.exe'
15410 shlibpath_var=LIBPATH
15413 osf3* | osf4* | osf5*)
15417 soname_spec='${libname}${release}${shared_ext}$major'
15418 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15419 shlibpath_var=LD_LIBRARY_PATH
15420 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15421 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15432 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15433 soname_spec='${libname}${release}${shared_ext}$major'
15434 shlibpath_var=LD_LIBRARY_PATH
15435 shlibpath_overrides_runpath=yes
15436 hardcode_into_libs=yes
15437 # ldd complains unless libraries are executable
15438 postinstall_cmds='chmod +x $lib'
15443 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15444 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15445 shlibpath_var=LD_LIBRARY_PATH
15446 shlibpath_overrides_runpath=yes
15447 if test "$with_gnu_ld" = yes; then
15455 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15456 soname_spec='${libname}${release}${shared_ext}$major'
15457 shlibpath_var=LD_LIBRARY_PATH
15458 case $host_vendor in
15460 shlibpath_overrides_runpath=no
15462 runpath_var=LD_RUN_PATH
15470 shlibpath_overrides_runpath=no
15471 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15477 if test -d /usr/nec ;then
15479 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15480 soname_spec='$libname${shared_ext}.$major'
15481 shlibpath_var=LD_LIBRARY_PATH
15485 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15486 version_type=freebsd-elf
15489 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15490 soname_spec='${libname}${release}${shared_ext}$major'
15491 shlibpath_var=LD_LIBRARY_PATH
15492 shlibpath_overrides_runpath=yes
15493 hardcode_into_libs=yes
15494 if test "$with_gnu_ld" = yes; then
15495 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15497 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15500 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15504 sys_lib_dlsearch_path_spec='/usr/lib'
15508 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15512 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15513 shlibpath_var=LD_LIBRARY_PATH
15514 shlibpath_overrides_runpath=no
15515 hardcode_into_libs=yes
15520 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15521 soname_spec='${libname}${release}${shared_ext}$major'
15522 shlibpath_var=LD_LIBRARY_PATH
15529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15530 $as_echo "$dynamic_linker" >&6; }
15531 test "$dynamic_linker" = no && can_build_shared=no
15533 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15534 if test "$GCC" = yes; then
15535 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15538 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15539 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15541 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15542 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15581 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15582 hardcode_action_CXX=
15583 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15584 test -n "$runpath_var_CXX" ||
15585 test "X$hardcode_automatic_CXX" = "Xyes" ; then
15587 # We can hardcode non-existent directories.
15588 if test "$hardcode_direct_CXX" != no &&
15589 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15590 # have to relink, otherwise we might link with an installed library
15591 # when we should be linking with a yet-to-be-installed one
15592 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15593 test "$hardcode_minus_L_CXX" != no; then
15594 # Linking always hardcodes the temporary library directory.
15595 hardcode_action_CXX=relink
15597 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15598 hardcode_action_CXX=immediate
15601 # We cannot hardcode anything, or else we can only hardcode existing
15603 hardcode_action_CXX=unsupported
15605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15606 $as_echo "$hardcode_action_CXX" >&6; }
15608 if test "$hardcode_action_CXX" = relink ||
15609 test "$inherit_rpath_CXX" = yes; then
15610 # Fast installation is not supported
15611 enable_fast_install=no
15612 elif test "$shlibpath_overrides_runpath" = yes ||
15613 test "$enable_shared" = no; then
15614 # Fast installation is not necessary
15615 enable_fast_install=needless
15624 fi # test -n "$compiler"
15630 with_gnu_ld=$lt_save_with_gnu_ld
15631 lt_cv_path_LDCXX=$lt_cv_path_LD
15632 lt_cv_path_LD=$lt_save_path_LD
15633 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15634 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15635 fi # test "$_lt_caught_CXX_error" != yes
15638 ac_cpp='$CPP $CPPFLAGS'
15639 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15640 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15641 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15655 ac_config_commands="$ac_config_commands libtool"
15660 # Only expand once:
15665 if test x$use_libtool != xno; then
15666 DEFAULT_OBJECT_TYPE=".lo"
15667 DEFAULT_ARCHIVE_TYPE=".la"
15668 DEFAULT_SHARED_OBJECT_TYPE=".la"
15669 LIBTOOL="\$(LIBTOOL)"
15670 LIBTOOL_INSTALL_TARGET="libtool-install"
15671 LIBTOOL_UNINSTALL_TARGET="libtool-uninstall"
15672 LIBTOOL_CLEAN_TARGET="libtool-clean"
15673 QMAKE_LIBTOOL="${BUILD_DIR}/libtool"
15674 FD_PLUGIN_DIR="src/plugins/fd"
15677 DEFAULT_OBJECT_TYPE=".o"
15678 DEFAULT_ARCHIVE_TYPE=".a"
15679 DEFAULT_SHARED_OBJECT_TYPE=".so"
15680 LIBTOOL="# \$(LIBTOOL)"
15681 LIBTOOL_INSTALL_TARGET=""
15682 LIBTOOL_UNINSTALL_TARGET=""
15683 LIBTOOL_CLEAN_TARGET=""
15684 QMAKE_LIBTOOL="# ${BUILD_DIR}/libtool"
15699 # Check whether --enable-includes was given.
15700 if test "${enable_includes+set}" = set; then :
15701 enableval=$enable_includes;
15702 if test x$enableval = xyes; then
15703 install_includes=yes
15711 if test x$use_libtool != xno -a x$install_includes = xyes; then
15712 INCLUDE_INSTALL_TARGET="install-includes"
15713 INCLUDE_UNINSTALL_TARGET="uninstall-includes"
15715 INCLUDE_INSTALL_TARGET=""
15716 INCLUDE_UNINSTALL_TARGET=""
15724 *cygwin* ) CYGWIN=yes;;
15728 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
15734 HAVE_SUN_OS_FALSE='#'
15736 HAVE_SUN_OS_TRUE='#'
15739 $as_echo "#define HAVE_SUN_OS 1" >>confdefs.h
15746 HAVE_SUN_OS_FALSE='#'
15748 HAVE_SUN_OS_TRUE='#'
15753 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
15759 HAVE_OSF1_OS_FALSE='#'
15761 HAVE_OSF1_OS_TRUE='#'
15762 HAVE_OSF1_OS_FALSE=
15764 $as_echo "#define HAVE_OSF1_OS 1" >>confdefs.h
15771 HAVE_OSF1_OS_FALSE='#'
15773 HAVE_OSF1_OS_TRUE='#'
15774 HAVE_OSF1_OS_FALSE=
15778 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
15784 HAVE_AIX_OS_FALSE='#'
15786 HAVE_AIX_OS_TRUE='#'
15789 $as_echo "#define HAVE_AIX_OS 1" >>confdefs.h
15796 HAVE_AIX_OS_FALSE='#'
15798 HAVE_AIX_OS_TRUE='#'
15803 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
15809 HAVE_HPUX_OS_FALSE='#'
15811 HAVE_HPUX_OS_TRUE='#'
15812 HAVE_HPUX_OS_FALSE=
15814 $as_echo "#define HAVE_HPUX_OS 1" >>confdefs.h
15821 HAVE_HPUX_OS_FALSE='#'
15823 HAVE_HPUX_OS_TRUE='#'
15824 HAVE_HPUX_OS_FALSE=
15828 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
15833 HAVE_LINUX_OS_TRUE=
15834 HAVE_LINUX_OS_FALSE='#'
15836 HAVE_LINUX_OS_TRUE='#'
15837 HAVE_LINUX_OS_FALSE=
15839 $as_echo "#define HAVE_LINUX_OS 1" >>confdefs.h
15845 HAVE_LINUX_OS_TRUE=
15846 HAVE_LINUX_OS_FALSE='#'
15848 HAVE_LINUX_OS_TRUE='#'
15849 HAVE_LINUX_OS_FALSE=
15853 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
15858 HAVE_FREEBSD_OS_TRUE=
15859 HAVE_FREEBSD_OS_FALSE='#'
15861 HAVE_FREEBSD_OS_TRUE='#'
15862 HAVE_FREEBSD_OS_FALSE=
15864 $as_echo "#define HAVE_FREEBSD_OS 1" >>confdefs.h
15870 HAVE_FREEBSD_OS_TRUE=
15871 HAVE_FREEBSD_OS_FALSE='#'
15873 HAVE_FREEBSD_OS_TRUE='#'
15874 HAVE_FREEBSD_OS_FALSE=
15878 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
15883 HAVE_NETBSD_OS_TRUE=
15884 HAVE_NETBSD_OS_FALSE='#'
15886 HAVE_NETBSD_OS_TRUE='#'
15887 HAVE_NETBSD_OS_FALSE=
15889 $as_echo "#define HAVE_NETBSD_OS 1" >>confdefs.h
15895 HAVE_NETBSD_OS_TRUE=
15896 HAVE_NETBSD_OS_FALSE='#'
15898 HAVE_NETBSD_OS_TRUE='#'
15899 HAVE_NETBSD_OS_FALSE=
15903 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
15908 HAVE_OPENBSD_OS_TRUE=
15909 HAVE_OPENBSD_OS_FALSE='#'
15911 HAVE_OPENBSD_OS_TRUE='#'
15912 HAVE_OPENBSD_OS_FALSE=
15914 $as_echo "#define HAVE_OPENBSD_OS 1" >>confdefs.h
15920 HAVE_OPENBSD_OS_TRUE=
15921 HAVE_OPENBSD_OS_FALSE='#'
15923 HAVE_OPENBSD_OS_TRUE='#'
15924 HAVE_OPENBSD_OS_FALSE=
15928 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
15934 HAVE_BSDI_OS_FALSE='#'
15936 HAVE_BSDI_OS_TRUE='#'
15937 HAVE_BSDI_OS_FALSE=
15939 $as_echo "#define HAVE_BSDI_OS 1" >>confdefs.h
15946 HAVE_BSDI_OS_FALSE='#'
15948 HAVE_BSDI_OS_TRUE='#'
15949 HAVE_BSDI_OS_FALSE=
15953 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
15959 HAVE_SGI_OS_FALSE='#'
15961 HAVE_SGI_OS_TRUE='#'
15964 $as_echo "#define HAVE_SGI_OS 1" >>confdefs.h
15971 HAVE_SGI_OS_FALSE='#'
15973 HAVE_SGI_OS_TRUE='#'
15978 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX -o x`uname -s` = xIRIX64
15984 HAVE_IRIX_OS_FALSE='#'
15986 HAVE_IRIX_OS_TRUE='#'
15987 HAVE_IRIX_OS_FALSE=
15989 $as_echo "#define HAVE_IRIX_OS 1" >>confdefs.h
15996 HAVE_IRIX_OS_FALSE='#'
15998 HAVE_IRIX_OS_TRUE='#'
15999 HAVE_IRIX_OS_FALSE=
16003 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
16008 HAVE_DARWIN_OS_TRUE=
16009 HAVE_DARWIN_OS_FALSE='#'
16011 HAVE_DARWIN_OS_TRUE='#'
16012 HAVE_DARWIN_OS_FALSE=
16014 $as_echo "#define HAVE_DARWIN_OS 1" >>confdefs.h
16020 HAVE_DARWIN_OS_TRUE=
16021 HAVE_DARWIN_OS_FALSE='#'
16023 HAVE_DARWIN_OS_TRUE='#'
16024 HAVE_DARWIN_OS_FALSE=
16029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Operating System Distribution" >&5
16030 $as_echo_n "checking for Operating System Distribution... " >&6; }
16031 if test "x$DISTNAME" != "x"
16033 echo "distname set to $DISTNAME"
16034 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
16037 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
16040 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
16043 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
16046 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
16049 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
16052 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
16055 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
16058 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
16061 elif test -f /etc/SuSE-release
16064 elif test -d /etc/SuSEconfig
16067 elif test -f /etc/mandrake-release
16070 elif test -f /etc/whitebox-release
16073 elif test -f /etc/redhat-release
16076 elif test -f /etc/gentoo-release
16079 elif test -f /etc/debian_version
16082 elif test -f /etc/slackware-version
16085 elif test x$host_vendor = xapple
16088 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
16091 elif test -f /etc/engarde-version
16094 elif test -f /etc/arch-release
16097 elif test "$CYGWIN" = yes
16100 $as_echo "#define HAVE_CYGWIN 1" >>confdefs.h
16105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
16106 $as_echo "done" >&6; }
16109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
16110 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
16112 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
16113 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
16114 $as_echo_n "(cached) " >&6
16116 cat >conftest.make <<\_ACEOF
16119 @echo '@@@%%%=$(MAKE)=@@@%%%'
16121 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
16122 case `${MAKE-make} -f conftest.make 2>/dev/null` in
16123 *@@@%%%=?*=@@@%%%*)
16124 eval ac_cv_prog_make_${ac_make}_set=yes;;
16126 eval ac_cv_prog_make_${ac_make}_set=no;;
16128 rm -f conftest.make
16130 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
16131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16132 $as_echo "yes" >&6; }
16135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16136 $as_echo "no" >&6; }
16137 SET_MAKE="MAKE=${MAKE-make}"
16143 if test -n "$ac_aux_dir"; then
16144 case "$ac_aux_dir" in
16145 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
16146 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
16149 if test -z "$MKINSTALLDIRS"; then
16150 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
16155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
16156 $as_echo_n "checking whether NLS is requested... " >&6; }
16157 # Check whether --enable-nls was given.
16158 if test "${enable_nls+set}" = set; then :
16159 enableval=$enable_nls; USE_NLS=$enableval
16164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
16165 $as_echo "$USE_NLS" >&6; }
16172 # Prepare PATH_SEPARATOR.
16173 # The user is always right.
16174 if test "${PATH_SEPARATOR+set}" != set; then
16175 echo "#! /bin/sh" >conf$$.sh
16176 echo "exit 0" >>conf$$.sh
16178 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16186 # Find out how to test for executable files. Don't use a zero-byte file,
16187 # as systems may use methods other than mode bits to determine executability.
16188 cat >conf$$.file <<_ASEOF
16192 chmod +x conf$$.file
16193 if test -x conf$$.file >/dev/null 2>&1; then
16194 ac_executable_p="test -x"
16196 ac_executable_p="test -f"
16200 # Extract the first word of "msgfmt", so it can be a program name with args.
16201 set dummy msgfmt; ac_word=$2
16202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16203 $as_echo_n "checking for $ac_word... " >&6; }
16204 if ${ac_cv_path_MSGFMT+:} false; then :
16205 $as_echo_n "(cached) " >&6
16209 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
16212 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16213 for ac_dir in $PATH; do
16215 test -z "$ac_dir" && ac_dir=.
16216 for ac_exec_ext in '' $ac_executable_extensions; do
16217 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16218 echo "$as_me: trying $ac_dir/$ac_word..." >&5
16219 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
16220 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16221 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
16228 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
16232 MSGFMT="$ac_cv_path_MSGFMT"
16233 if test "$MSGFMT" != ":"; then
16234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
16235 $as_echo "$MSGFMT" >&6; }
16237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16238 $as_echo "no" >&6; }
16241 # Extract the first word of "gmsgfmt", so it can be a program name with args.
16242 set dummy gmsgfmt; ac_word=$2
16243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16244 $as_echo_n "checking for $ac_word... " >&6; }
16245 if ${ac_cv_path_GMSGFMT+:} false; then :
16246 $as_echo_n "(cached) " >&6
16250 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
16253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16254 for as_dir in $PATH
16257 test -z "$as_dir" && as_dir=.
16258 for ac_exec_ext in '' $ac_executable_extensions; do
16259 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16260 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
16261 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16268 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
16272 GMSGFMT=$ac_cv_path_GMSGFMT
16273 if test -n "$GMSGFMT"; then
16274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
16275 $as_echo "$GMSGFMT" >&6; }
16277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16278 $as_echo "no" >&6; }
16284 # Prepare PATH_SEPARATOR.
16285 # The user is always right.
16286 if test "${PATH_SEPARATOR+set}" != set; then
16287 echo "#! /bin/sh" >conf$$.sh
16288 echo "exit 0" >>conf$$.sh
16290 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16298 # Find out how to test for executable files. Don't use a zero-byte file,
16299 # as systems may use methods other than mode bits to determine executability.
16300 cat >conf$$.file <<_ASEOF
16304 chmod +x conf$$.file
16305 if test -x conf$$.file >/dev/null 2>&1; then
16306 ac_executable_p="test -x"
16308 ac_executable_p="test -f"
16312 # Extract the first word of "xgettext", so it can be a program name with args.
16313 set dummy xgettext; ac_word=$2
16314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16315 $as_echo_n "checking for $ac_word... " >&6; }
16316 if ${ac_cv_path_XGETTEXT+:} false; then :
16317 $as_echo_n "(cached) " >&6
16319 case "$XGETTEXT" in
16321 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
16324 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16325 for ac_dir in $PATH; do
16327 test -z "$ac_dir" && ac_dir=.
16328 for ac_exec_ext in '' $ac_executable_extensions; do
16329 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16330 echo "$as_me: trying $ac_dir/$ac_word..." >&5
16331 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
16332 (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
16333 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
16340 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
16344 XGETTEXT="$ac_cv_path_XGETTEXT"
16345 if test "$XGETTEXT" != ":"; then
16346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
16347 $as_echo "$XGETTEXT" >&6; }
16349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16350 $as_echo "no" >&6; }
16356 # Prepare PATH_SEPARATOR.
16357 # The user is always right.
16358 if test "${PATH_SEPARATOR+set}" != set; then
16359 echo "#! /bin/sh" >conf$$.sh
16360 echo "exit 0" >>conf$$.sh
16362 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16370 # Find out how to test for executable files. Don't use a zero-byte file,
16371 # as systems may use methods other than mode bits to determine executability.
16372 cat >conf$$.file <<_ASEOF
16376 chmod +x conf$$.file
16377 if test -x conf$$.file >/dev/null 2>&1; then
16378 ac_executable_p="test -x"
16380 ac_executable_p="test -f"
16384 # Extract the first word of "msgmerge", so it can be a program name with args.
16385 set dummy msgmerge; ac_word=$2
16386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16387 $as_echo_n "checking for $ac_word... " >&6; }
16388 if ${ac_cv_path_MSGMERGE+:} false; then :
16389 $as_echo_n "(cached) " >&6
16391 case "$MSGMERGE" in
16393 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
16396 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16397 for ac_dir in $PATH; do
16399 test -z "$ac_dir" && ac_dir=.
16400 for ac_exec_ext in '' $ac_executable_extensions; do
16401 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16402 echo "$as_me: trying $ac_dir/$ac_word..." >&5
16403 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
16404 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
16411 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
16415 MSGMERGE="$ac_cv_path_MSGMERGE"
16416 if test "$MSGMERGE" != ":"; then
16417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
16418 $as_echo "$MSGMERGE" >&6; }
16420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16421 $as_echo "no" >&6; }
16425 if test "$GMSGFMT" != ":"; then
16426 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
16427 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16430 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
16431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
16432 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
16437 if test "$XGETTEXT" != ":"; then
16438 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
16439 (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
16442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
16443 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
16449 ac_config_commands="$ac_config_commands default-1"
16453 if test "X$prefix" = "XNONE"; then
16454 acl_final_prefix="$ac_default_prefix"
16456 acl_final_prefix="$prefix"
16458 if test "X$exec_prefix" = "XNONE"; then
16459 acl_final_exec_prefix='${prefix}'
16461 acl_final_exec_prefix="$exec_prefix"
16463 acl_save_prefix="$prefix"
16464 prefix="$acl_final_prefix"
16465 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
16466 prefix="$acl_save_prefix"
16469 # Check whether --with-gnu-ld was given.
16470 if test "${with_gnu_ld+set}" = set; then :
16471 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
16476 # Prepare PATH_SEPARATOR.
16477 # The user is always right.
16478 if test "${PATH_SEPARATOR+set}" != set; then
16479 echo "#! /bin/sh" >conf$$.sh
16480 echo "exit 0" >>conf$$.sh
16482 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16490 if test "$GCC" = yes; then
16491 # Check if gcc -print-prog-name=ld gives a path.
16492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
16493 $as_echo_n "checking for ld used by GCC... " >&6; }
16496 # gcc leaves a trailing carriage return which upsets mingw
16497 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16499 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16502 # Accept absolute paths.
16503 [\\/]* | [A-Za-z]:[\\/]*)
16504 re_direlt='/[^/][^/]*/\.\./'
16505 # Canonicalize the path of ld
16506 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
16507 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
16508 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
16510 test -z "$LD" && LD="$ac_prog"
16513 # If it fails, then pretend we aren't using GCC.
16517 # If it is relative, then search for the first ld in PATH.
16518 with_gnu_ld=unknown
16521 elif test "$with_gnu_ld" = yes; then
16522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
16523 $as_echo_n "checking for GNU ld... " >&6; }
16525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
16526 $as_echo_n "checking for non-GNU ld... " >&6; }
16528 if ${acl_cv_path_LD+:} false; then :
16529 $as_echo_n "(cached) " >&6
16531 if test -z "$LD"; then
16532 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
16533 for ac_dir in $PATH; do
16534 test -z "$ac_dir" && ac_dir=.
16535 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16536 acl_cv_path_LD="$ac_dir/$ac_prog"
16537 # Check to see if the program is GNU ld. I'd rather use --version,
16538 # but apparently some GNU ld's only accept -v.
16539 # Break only if it was the GNU/non-GNU ld that we prefer.
16540 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
16541 *GNU* | *'with BFD'*)
16542 test "$with_gnu_ld" != no && break ;;
16544 test "$with_gnu_ld" != yes && break ;;
16550 acl_cv_path_LD="$LD" # Let the user override the test with a path.
16554 LD="$acl_cv_path_LD"
16555 if test -n "$LD"; then
16556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
16557 $as_echo "$LD" >&6; }
16559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16560 $as_echo "no" >&6; }
16562 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
16563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
16564 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
16565 if ${acl_cv_prog_gnu_ld+:} false; then :
16566 $as_echo_n "(cached) " >&6
16568 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
16569 case `$LD -v 2>&1 </dev/null` in
16570 *GNU* | *'with BFD'*)
16571 acl_cv_prog_gnu_ld=yes ;;
16573 acl_cv_prog_gnu_ld=no ;;
16576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
16577 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
16578 with_gnu_ld=$acl_cv_prog_gnu_ld
16583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
16584 $as_echo_n "checking for shared library run path origin... " >&6; }
16585 if ${acl_cv_rpath+:} false; then :
16586 $as_echo_n "(cached) " >&6
16589 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
16590 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
16592 rm -f ./conftest.sh
16596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
16597 $as_echo "$acl_cv_rpath" >&6; }
16599 libext="$acl_cv_libext"
16600 shlibext="$acl_cv_shlibext"
16601 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
16602 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
16603 hardcode_direct="$acl_cv_hardcode_direct"
16604 hardcode_minus_L="$acl_cv_hardcode_minus_L"
16605 # Check whether --enable-rpath was given.
16606 if test "${enable_rpath+set}" = set; then :
16607 enableval=$enable_rpath; :
16621 acl_save_prefix="$prefix"
16622 prefix="$acl_final_prefix"
16623 acl_save_exec_prefix="$exec_prefix"
16624 exec_prefix="$acl_final_exec_prefix"
16626 eval additional_includedir=\"$includedir\"
16627 eval additional_libdir=\"$libdir\"
16629 exec_prefix="$acl_save_exec_prefix"
16630 prefix="$acl_save_prefix"
16633 # Check whether --with-libiconv-prefix was given.
16634 if test "${with_libiconv_prefix+set}" = set; then :
16635 withval=$with_libiconv_prefix;
16636 if test "X$withval" = "Xno"; then
16639 if test "X$withval" = "X"; then
16641 acl_save_prefix="$prefix"
16642 prefix="$acl_final_prefix"
16643 acl_save_exec_prefix="$exec_prefix"
16644 exec_prefix="$acl_final_exec_prefix"
16646 eval additional_includedir=\"$includedir\"
16647 eval additional_libdir=\"$libdir\"
16649 exec_prefix="$acl_save_exec_prefix"
16650 prefix="$acl_save_prefix"
16653 additional_includedir="$withval/include"
16654 additional_libdir="$withval/lib"
16665 names_already_handled=
16666 names_next_round='iconv '
16667 while test -n "$names_next_round"; do
16668 names_this_round="$names_next_round"
16670 for name in $names_this_round; do
16672 for n in $names_already_handled; do
16673 if test "$n" = "$name"; then
16674 already_handled=yes
16678 if test -z "$already_handled"; then
16679 names_already_handled="$names_already_handled $name"
16680 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
16681 eval value=\"\$HAVE_LIB$uppername\"
16682 if test -n "$value"; then
16683 if test "$value" = yes; then
16684 eval value=\"\$LIB$uppername\"
16685 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
16686 eval value=\"\$LTLIB$uppername\"
16687 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
16696 if test $use_additional = yes; then
16697 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
16698 found_dir="$additional_libdir"
16699 found_so="$additional_libdir/lib$name.$shlibext"
16700 if test -f "$additional_libdir/lib$name.la"; then
16701 found_la="$additional_libdir/lib$name.la"
16704 if test -f "$additional_libdir/lib$name.$libext"; then
16705 found_dir="$additional_libdir"
16706 found_a="$additional_libdir/lib$name.$libext"
16707 if test -f "$additional_libdir/lib$name.la"; then
16708 found_la="$additional_libdir/lib$name.la"
16713 if test "X$found_dir" = "X"; then
16714 for x in $LDFLAGS $LTLIBICONV; do
16716 acl_save_prefix="$prefix"
16717 prefix="$acl_final_prefix"
16718 acl_save_exec_prefix="$exec_prefix"
16719 exec_prefix="$acl_final_exec_prefix"
16721 exec_prefix="$acl_save_exec_prefix"
16722 prefix="$acl_save_prefix"
16726 dir=`echo "X$x" | sed -e 's/^X-L//'`
16727 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
16729 found_so="$dir/lib$name.$shlibext"
16730 if test -f "$dir/lib$name.la"; then
16731 found_la="$dir/lib$name.la"
16734 if test -f "$dir/lib$name.$libext"; then
16736 found_a="$dir/lib$name.$libext"
16737 if test -f "$dir/lib$name.la"; then
16738 found_la="$dir/lib$name.la"
16744 if test "X$found_dir" != "X"; then
16749 if test "X$found_dir" != "X"; then
16750 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
16751 if test "X$found_so" != "X"; then
16752 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
16753 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
16756 for x in $ltrpathdirs; do
16757 if test "X$x" = "X$found_dir"; then
16762 if test -z "$haveit"; then
16763 ltrpathdirs="$ltrpathdirs $found_dir"
16765 if test "$hardcode_direct" = yes; then
16766 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
16768 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
16769 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
16771 for x in $rpathdirs; do
16772 if test "X$x" = "X$found_dir"; then
16777 if test -z "$haveit"; then
16778 rpathdirs="$rpathdirs $found_dir"
16782 for x in $LDFLAGS $LIBICONV; do
16784 acl_save_prefix="$prefix"
16785 prefix="$acl_final_prefix"
16786 acl_save_exec_prefix="$exec_prefix"
16787 exec_prefix="$acl_final_exec_prefix"
16789 exec_prefix="$acl_save_exec_prefix"
16790 prefix="$acl_save_prefix"
16792 if test "X$x" = "X-L$found_dir"; then
16797 if test -z "$haveit"; then
16798 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
16800 if test "$hardcode_minus_L" != no; then
16801 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
16803 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
16809 if test "X$found_a" != "X"; then
16810 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
16812 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
16815 additional_includedir=
16816 case "$found_dir" in
16818 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
16819 additional_includedir="$basedir/include"
16822 if test "X$additional_includedir" != "X"; then
16823 if test "X$additional_includedir" != "X/usr/include"; then
16825 if test "X$additional_includedir" = "X/usr/local/include"; then
16826 if test -n "$GCC"; then
16828 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
16832 if test -z "$haveit"; then
16833 for x in $CPPFLAGS $INCICONV; do
16835 acl_save_prefix="$prefix"
16836 prefix="$acl_final_prefix"
16837 acl_save_exec_prefix="$exec_prefix"
16838 exec_prefix="$acl_final_exec_prefix"
16840 exec_prefix="$acl_save_exec_prefix"
16841 prefix="$acl_save_prefix"
16843 if test "X$x" = "X-I$additional_includedir"; then
16848 if test -z "$haveit"; then
16849 if test -d "$additional_includedir"; then
16850 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
16856 if test -n "$found_la"; then
16857 save_libdir="$libdir"
16858 case "$found_la" in
16859 */* | *\\*) . "$found_la" ;;
16860 *) . "./$found_la" ;;
16862 libdir="$save_libdir"
16863 for dep in $dependency_libs; do
16866 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
16867 if test "X$additional_libdir" != "X/usr/lib"; then
16869 if test "X$additional_libdir" = "X/usr/local/lib"; then
16870 if test -n "$GCC"; then
16872 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
16876 if test -z "$haveit"; then
16878 for x in $LDFLAGS $LIBICONV; do
16880 acl_save_prefix="$prefix"
16881 prefix="$acl_final_prefix"
16882 acl_save_exec_prefix="$exec_prefix"
16883 exec_prefix="$acl_final_exec_prefix"
16885 exec_prefix="$acl_save_exec_prefix"
16886 prefix="$acl_save_prefix"
16888 if test "X$x" = "X-L$additional_libdir"; then
16893 if test -z "$haveit"; then
16894 if test -d "$additional_libdir"; then
16895 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
16899 for x in $LDFLAGS $LTLIBICONV; do
16901 acl_save_prefix="$prefix"
16902 prefix="$acl_final_prefix"
16903 acl_save_exec_prefix="$exec_prefix"
16904 exec_prefix="$acl_final_exec_prefix"
16906 exec_prefix="$acl_save_exec_prefix"
16907 prefix="$acl_save_prefix"
16909 if test "X$x" = "X-L$additional_libdir"; then
16914 if test -z "$haveit"; then
16915 if test -d "$additional_libdir"; then
16916 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
16923 dir=`echo "X$dep" | sed -e 's/^X-R//'`
16924 if test "$enable_rpath" != no; then
16926 for x in $rpathdirs; do
16927 if test "X$x" = "X$dir"; then
16932 if test -z "$haveit"; then
16933 rpathdirs="$rpathdirs $dir"
16936 for x in $ltrpathdirs; do
16937 if test "X$x" = "X$dir"; then
16942 if test -z "$haveit"; then
16943 ltrpathdirs="$ltrpathdirs $dir"
16948 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
16951 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
16954 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
16955 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
16961 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
16962 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
16968 if test "X$rpathdirs" != "X"; then
16969 if test -n "$hardcode_libdir_separator"; then
16971 for found_dir in $rpathdirs; do
16972 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
16974 acl_save_libdir="$libdir"
16976 eval flag=\"$hardcode_libdir_flag_spec\"
16977 libdir="$acl_save_libdir"
16978 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
16980 for found_dir in $rpathdirs; do
16981 acl_save_libdir="$libdir"
16982 libdir="$found_dir"
16983 eval flag=\"$hardcode_libdir_flag_spec\"
16984 libdir="$acl_save_libdir"
16985 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
16989 if test "X$ltrpathdirs" != "X"; then
16990 for found_dir in $ltrpathdirs; do
16991 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
17012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
17013 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
17014 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
17015 $as_echo_n "(cached) " >&6
17017 gt_save_CPPFLAGS="$CPPFLAGS"
17018 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
17019 gt_save_LIBS="$LIBS"
17020 LIBS="$LIBS -framework CoreFoundation"
17021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17022 /* end confdefs.h. */
17023 #include <CFPreferences.h>
17027 CFPreferencesCopyAppValue(NULL, NULL)
17032 if ac_fn_c_try_link "$LINENO"; then :
17033 gt_cv_func_CFPreferencesCopyAppValue=yes
17035 gt_cv_func_CFPreferencesCopyAppValue=no
17037 rm -f core conftest.err conftest.$ac_objext \
17038 conftest$ac_exeext conftest.$ac_ext
17039 CPPFLAGS="$gt_save_CPPFLAGS"
17040 LIBS="$gt_save_LIBS"
17042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
17043 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
17044 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
17046 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
17049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
17050 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
17051 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
17052 $as_echo_n "(cached) " >&6
17054 gt_save_CPPFLAGS="$CPPFLAGS"
17055 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
17056 gt_save_LIBS="$LIBS"
17057 LIBS="$LIBS -framework CoreFoundation"
17058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17059 /* end confdefs.h. */
17060 #include <CFLocale.h>
17064 CFLocaleCopyCurrent();
17069 if ac_fn_c_try_link "$LINENO"; then :
17070 gt_cv_func_CFLocaleCopyCurrent=yes
17072 gt_cv_func_CFLocaleCopyCurrent=no
17074 rm -f core conftest.err conftest.$ac_objext \
17075 conftest$ac_exeext conftest.$ac_ext
17076 CPPFLAGS="$gt_save_CPPFLAGS"
17077 LIBS="$gt_save_LIBS"
17079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
17080 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
17081 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
17083 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
17087 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
17088 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
17094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
17095 $as_echo_n "checking whether NLS is requested... " >&6; }
17096 # Check whether --enable-nls was given.
17097 if test "${enable_nls+set}" = set; then :
17098 enableval=$enable_nls; USE_NLS=$enableval
17103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
17104 $as_echo "$USE_NLS" >&6; }
17113 if test "$USE_NLS" = "yes"; then
17114 gt_use_preinstalled_gnugettext=no
17121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
17122 $as_echo_n "checking for GNU gettext in libc... " >&6; }
17123 if ${gt_cv_func_gnugettext1_libc+:} false; then :
17124 $as_echo_n "(cached) " >&6
17126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17127 /* end confdefs.h. */
17128 #include <libintl.h>
17129 extern int _nl_msg_cat_cntr;
17130 extern int *_nl_domain_bindings;
17134 bindtextdomain ("", "");
17135 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
17140 if ac_fn_c_try_link "$LINENO"; then :
17141 gt_cv_func_gnugettext1_libc=yes
17143 gt_cv_func_gnugettext1_libc=no
17145 rm -f core conftest.err conftest.$ac_objext \
17146 conftest$ac_exeext conftest.$ac_ext
17148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5
17149 $as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
17151 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
17157 am_save_CPPFLAGS="$CPPFLAGS"
17159 for element in $INCICONV; do
17161 for x in $CPPFLAGS; do
17163 acl_save_prefix="$prefix"
17164 prefix="$acl_final_prefix"
17165 acl_save_exec_prefix="$exec_prefix"
17166 exec_prefix="$acl_final_exec_prefix"
17168 exec_prefix="$acl_save_exec_prefix"
17169 prefix="$acl_save_prefix"
17171 if test "X$x" = "X$element"; then
17176 if test -z "$haveit"; then
17177 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
17182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
17183 $as_echo_n "checking for iconv... " >&6; }
17184 if ${am_cv_func_iconv+:} false; then :
17185 $as_echo_n "(cached) " >&6
17188 am_cv_func_iconv="no, consider installing GNU libiconv"
17190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17191 /* end confdefs.h. */
17192 #include <stdlib.h>
17197 iconv_t cd = iconv_open("","");
17198 iconv(cd,NULL,NULL,NULL,NULL);
17204 if ac_fn_c_try_link "$LINENO"; then :
17205 am_cv_func_iconv=yes
17207 rm -f core conftest.err conftest.$ac_objext \
17208 conftest$ac_exeext conftest.$ac_ext
17209 if test "$am_cv_func_iconv" != yes; then
17210 am_save_LIBS="$LIBS"
17211 LIBS="$LIBS $LIBICONV"
17212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17213 /* end confdefs.h. */
17214 #include <stdlib.h>
17219 iconv_t cd = iconv_open("","");
17220 iconv(cd,NULL,NULL,NULL,NULL);
17226 if ac_fn_c_try_link "$LINENO"; then :
17227 am_cv_lib_iconv=yes
17228 am_cv_func_iconv=yes
17230 rm -f core conftest.err conftest.$ac_objext \
17231 conftest$ac_exeext conftest.$ac_ext
17232 LIBS="$am_save_LIBS"
17236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
17237 $as_echo "$am_cv_func_iconv" >&6; }
17238 if test "$am_cv_func_iconv" = yes; then
17240 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
17243 if test "$am_cv_lib_iconv" = yes; then
17244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
17245 $as_echo_n "checking how to link with libiconv... " >&6; }
17246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
17247 $as_echo "$LIBICONV" >&6; }
17249 CPPFLAGS="$am_save_CPPFLAGS"
17261 acl_save_prefix="$prefix"
17262 prefix="$acl_final_prefix"
17263 acl_save_exec_prefix="$exec_prefix"
17264 exec_prefix="$acl_final_exec_prefix"
17266 eval additional_includedir=\"$includedir\"
17267 eval additional_libdir=\"$libdir\"
17269 exec_prefix="$acl_save_exec_prefix"
17270 prefix="$acl_save_prefix"
17273 # Check whether --with-libintl-prefix was given.
17274 if test "${with_libintl_prefix+set}" = set; then :
17275 withval=$with_libintl_prefix;
17276 if test "X$withval" = "Xno"; then
17279 if test "X$withval" = "X"; then
17281 acl_save_prefix="$prefix"
17282 prefix="$acl_final_prefix"
17283 acl_save_exec_prefix="$exec_prefix"
17284 exec_prefix="$acl_final_exec_prefix"
17286 eval additional_includedir=\"$includedir\"
17287 eval additional_libdir=\"$libdir\"
17289 exec_prefix="$acl_save_exec_prefix"
17290 prefix="$acl_save_prefix"
17293 additional_includedir="$withval/include"
17294 additional_libdir="$withval/lib"
17305 names_already_handled=
17306 names_next_round='intl '
17307 while test -n "$names_next_round"; do
17308 names_this_round="$names_next_round"
17310 for name in $names_this_round; do
17312 for n in $names_already_handled; do
17313 if test "$n" = "$name"; then
17314 already_handled=yes
17318 if test -z "$already_handled"; then
17319 names_already_handled="$names_already_handled $name"
17320 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
17321 eval value=\"\$HAVE_LIB$uppername\"
17322 if test -n "$value"; then
17323 if test "$value" = yes; then
17324 eval value=\"\$LIB$uppername\"
17325 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
17326 eval value=\"\$LTLIB$uppername\"
17327 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
17336 if test $use_additional = yes; then
17337 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
17338 found_dir="$additional_libdir"
17339 found_so="$additional_libdir/lib$name.$shlibext"
17340 if test -f "$additional_libdir/lib$name.la"; then
17341 found_la="$additional_libdir/lib$name.la"
17344 if test -f "$additional_libdir/lib$name.$libext"; then
17345 found_dir="$additional_libdir"
17346 found_a="$additional_libdir/lib$name.$libext"
17347 if test -f "$additional_libdir/lib$name.la"; then
17348 found_la="$additional_libdir/lib$name.la"
17353 if test "X$found_dir" = "X"; then
17354 for x in $LDFLAGS $LTLIBINTL; do
17356 acl_save_prefix="$prefix"
17357 prefix="$acl_final_prefix"
17358 acl_save_exec_prefix="$exec_prefix"
17359 exec_prefix="$acl_final_exec_prefix"
17361 exec_prefix="$acl_save_exec_prefix"
17362 prefix="$acl_save_prefix"
17366 dir=`echo "X$x" | sed -e 's/^X-L//'`
17367 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
17369 found_so="$dir/lib$name.$shlibext"
17370 if test -f "$dir/lib$name.la"; then
17371 found_la="$dir/lib$name.la"
17374 if test -f "$dir/lib$name.$libext"; then
17376 found_a="$dir/lib$name.$libext"
17377 if test -f "$dir/lib$name.la"; then
17378 found_la="$dir/lib$name.la"
17384 if test "X$found_dir" != "X"; then
17389 if test "X$found_dir" != "X"; then
17390 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
17391 if test "X$found_so" != "X"; then
17392 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
17393 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17396 for x in $ltrpathdirs; do
17397 if test "X$x" = "X$found_dir"; then
17402 if test -z "$haveit"; then
17403 ltrpathdirs="$ltrpathdirs $found_dir"
17405 if test "$hardcode_direct" = yes; then
17406 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17408 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
17409 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17411 for x in $rpathdirs; do
17412 if test "X$x" = "X$found_dir"; then
17417 if test -z "$haveit"; then
17418 rpathdirs="$rpathdirs $found_dir"
17422 for x in $LDFLAGS $LIBINTL; do
17424 acl_save_prefix="$prefix"
17425 prefix="$acl_final_prefix"
17426 acl_save_exec_prefix="$exec_prefix"
17427 exec_prefix="$acl_final_exec_prefix"
17429 exec_prefix="$acl_save_exec_prefix"
17430 prefix="$acl_save_prefix"
17432 if test "X$x" = "X-L$found_dir"; then
17437 if test -z "$haveit"; then
17438 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
17440 if test "$hardcode_minus_L" != no; then
17441 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17443 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
17449 if test "X$found_a" != "X"; then
17450 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
17452 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
17455 additional_includedir=
17456 case "$found_dir" in
17458 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
17459 additional_includedir="$basedir/include"
17462 if test "X$additional_includedir" != "X"; then
17463 if test "X$additional_includedir" != "X/usr/include"; then
17465 if test "X$additional_includedir" = "X/usr/local/include"; then
17466 if test -n "$GCC"; then
17468 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17472 if test -z "$haveit"; then
17473 for x in $CPPFLAGS $INCINTL; do
17475 acl_save_prefix="$prefix"
17476 prefix="$acl_final_prefix"
17477 acl_save_exec_prefix="$exec_prefix"
17478 exec_prefix="$acl_final_exec_prefix"
17480 exec_prefix="$acl_save_exec_prefix"
17481 prefix="$acl_save_prefix"
17483 if test "X$x" = "X-I$additional_includedir"; then
17488 if test -z "$haveit"; then
17489 if test -d "$additional_includedir"; then
17490 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
17496 if test -n "$found_la"; then
17497 save_libdir="$libdir"
17498 case "$found_la" in
17499 */* | *\\*) . "$found_la" ;;
17500 *) . "./$found_la" ;;
17502 libdir="$save_libdir"
17503 for dep in $dependency_libs; do
17506 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17507 if test "X$additional_libdir" != "X/usr/lib"; then
17509 if test "X$additional_libdir" = "X/usr/local/lib"; then
17510 if test -n "$GCC"; then
17512 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17516 if test -z "$haveit"; then
17518 for x in $LDFLAGS $LIBINTL; do
17520 acl_save_prefix="$prefix"
17521 prefix="$acl_final_prefix"
17522 acl_save_exec_prefix="$exec_prefix"
17523 exec_prefix="$acl_final_exec_prefix"
17525 exec_prefix="$acl_save_exec_prefix"
17526 prefix="$acl_save_prefix"
17528 if test "X$x" = "X-L$additional_libdir"; then
17533 if test -z "$haveit"; then
17534 if test -d "$additional_libdir"; then
17535 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
17539 for x in $LDFLAGS $LTLIBINTL; do
17541 acl_save_prefix="$prefix"
17542 prefix="$acl_final_prefix"
17543 acl_save_exec_prefix="$exec_prefix"
17544 exec_prefix="$acl_final_exec_prefix"
17546 exec_prefix="$acl_save_exec_prefix"
17547 prefix="$acl_save_prefix"
17549 if test "X$x" = "X-L$additional_libdir"; then
17554 if test -z "$haveit"; then
17555 if test -d "$additional_libdir"; then
17556 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
17563 dir=`echo "X$dep" | sed -e 's/^X-R//'`
17564 if test "$enable_rpath" != no; then
17566 for x in $rpathdirs; do
17567 if test "X$x" = "X$dir"; then
17572 if test -z "$haveit"; then
17573 rpathdirs="$rpathdirs $dir"
17576 for x in $ltrpathdirs; do
17577 if test "X$x" = "X$dir"; then
17582 if test -z "$haveit"; then
17583 ltrpathdirs="$ltrpathdirs $dir"
17588 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
17591 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
17594 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
17595 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
17601 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
17602 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
17608 if test "X$rpathdirs" != "X"; then
17609 if test -n "$hardcode_libdir_separator"; then
17611 for found_dir in $rpathdirs; do
17612 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
17614 acl_save_libdir="$libdir"
17616 eval flag=\"$hardcode_libdir_flag_spec\"
17617 libdir="$acl_save_libdir"
17618 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
17620 for found_dir in $rpathdirs; do
17621 acl_save_libdir="$libdir"
17622 libdir="$found_dir"
17623 eval flag=\"$hardcode_libdir_flag_spec\"
17624 libdir="$acl_save_libdir"
17625 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
17629 if test "X$ltrpathdirs" != "X"; then
17630 for found_dir in $ltrpathdirs; do
17631 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
17635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
17636 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
17637 if ${gt_cv_func_gnugettext1_libintl+:} false; then :
17638 $as_echo_n "(cached) " >&6
17640 gt_save_CPPFLAGS="$CPPFLAGS"
17641 CPPFLAGS="$CPPFLAGS $INCINTL"
17642 gt_save_LIBS="$LIBS"
17643 LIBS="$LIBS $LIBINTL"
17644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17645 /* end confdefs.h. */
17646 #include <libintl.h>
17647 extern int _nl_msg_cat_cntr;
17652 const char *_nl_expand_alias (const char *);
17656 bindtextdomain ("", "");
17657 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
17662 if ac_fn_c_try_link "$LINENO"; then :
17663 gt_cv_func_gnugettext1_libintl=yes
17665 gt_cv_func_gnugettext1_libintl=no
17667 rm -f core conftest.err conftest.$ac_objext \
17668 conftest$ac_exeext conftest.$ac_ext
17669 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
17670 LIBS="$LIBS $LIBICONV"
17671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17672 /* end confdefs.h. */
17673 #include <libintl.h>
17674 extern int _nl_msg_cat_cntr;
17679 const char *_nl_expand_alias (const char *);
17683 bindtextdomain ("", "");
17684 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
17689 if ac_fn_c_try_link "$LINENO"; then :
17690 LIBINTL="$LIBINTL $LIBICONV"
17691 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
17692 gt_cv_func_gnugettext1_libintl=yes
17695 rm -f core conftest.err conftest.$ac_objext \
17696 conftest$ac_exeext conftest.$ac_ext
17698 CPPFLAGS="$gt_save_CPPFLAGS"
17699 LIBS="$gt_save_LIBS"
17701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5
17702 $as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
17705 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
17706 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
17707 && test "$PACKAGE" != gettext-runtime \
17708 && test "$PACKAGE" != gettext-tools; }; then
17709 gt_use_preinstalled_gnugettext=yes
17718 if test -n "$INTL_MACOSX_LIBS"; then
17719 if test "$gt_use_preinstalled_gnugettext" = "yes" \
17720 || test "$nls_cv_use_gnu_gettext" = "yes"; then
17721 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
17722 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
17726 if test "$gt_use_preinstalled_gnugettext" = "yes" \
17727 || test "$nls_cv_use_gnu_gettext" = "yes"; then
17729 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
17736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
17737 $as_echo_n "checking whether to use NLS... " >&6; }
17738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
17739 $as_echo "$USE_NLS" >&6; }
17740 if test "$USE_NLS" = "yes"; then
17741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
17742 $as_echo_n "checking where the gettext function comes from... " >&6; }
17743 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
17744 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
17745 gt_source="external libintl"
17750 gt_source="included intl directory"
17752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
17753 $as_echo "$gt_source" >&6; }
17756 if test "$USE_NLS" = "yes"; then
17758 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
17759 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
17760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
17761 $as_echo_n "checking how to link with libintl... " >&6; }
17762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
17763 $as_echo "$LIBINTL" >&6; }
17765 for element in $INCINTL; do
17767 for x in $CPPFLAGS; do
17769 acl_save_prefix="$prefix"
17770 prefix="$acl_final_prefix"
17771 acl_save_exec_prefix="$exec_prefix"
17772 exec_prefix="$acl_final_exec_prefix"
17774 exec_prefix="$acl_save_exec_prefix"
17775 prefix="$acl_save_prefix"
17777 if test "X$x" = "X$element"; then
17782 if test -z "$haveit"; then
17783 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
17790 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
17793 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
17802 INTLLIBS="$LIBINTL"
17810 os_name=`uname -s 2>/dev/null`
17811 if test x${prefix} = xNONE ; then
17812 if test `eval echo ${sysconfdir}` = NONE/etc ; then
17813 sysconfdir=/etc/bacula
17816 if test `eval echo ${libdir}` = NONE/lib ; then
17819 os_processor=`uname -p 2>/dev/null`
17820 case ${os_processor} in
17835 if test `eval echo ${includedir}` = NONE/include ; then
17836 includedir=/usr/include
17839 if test `eval echo ${datarootdir}` = NONE/share ; then
17840 datarootdir=/usr/share
17845 if test x${exec_prefix} = xNONE ; then
17846 exec_prefix=${prefix}
17849 sysconfdir=`eval echo ${sysconfdir}`
17850 datarootdir=`eval echo ${datarootdir}`
17851 docdir=`eval echo ${docdir}`
17852 htmldir=`eval echo ${htmldir}`
17853 libdir=`eval echo ${libdir}`
17854 includedir=`eval echo ${includedir}`
17855 localedir=`eval echo ${datarootdir}/locale`
17856 cat >>confdefs.h <<_ACEOF
17857 #define SYSCONFDIR "$sysconfdir"
17860 cat >>confdefs.h <<_ACEOF
17861 #define LOCALEDIR "$localedir"
17865 if test x$sbindir = x'${exec_prefix}/sbin' ; then
17866 sbindir=${exec_prefix}/sbin
17868 sbindir=`eval echo ${sbindir}`
17870 if test x$mandir = x'${prefix}/man' ; then
17871 mandir=/usr/share/man
17874 if test x$htmldir = x${docdir} ; then
17875 htmldir=`eval echo ${docdir}bacula/html`
17878 if test x$docdir = x'/usr/share/doc/' ; then
17879 docdir=`eval echo ${docdir}bacula`
17883 for ac_prog in msgfmt
17885 # Extract the first word of "$ac_prog", so it can be a program name with args.
17886 set dummy $ac_prog; ac_word=$2
17887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17888 $as_echo_n "checking for $ac_word... " >&6; }
17889 if ${ac_cv_path_MSGFMT+:} false; then :
17890 $as_echo_n "(cached) " >&6
17894 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
17897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17898 for as_dir in $PATH
17901 test -z "$as_dir" && as_dir=.
17902 for ac_exec_ext in '' $ac_executable_extensions; do
17903 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17904 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
17905 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17915 MSGFMT=$ac_cv_path_MSGFMT
17916 if test -n "$MSGFMT"; then
17917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
17918 $as_echo "$MSGFMT" >&6; }
17920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17921 $as_echo "no" >&6; }
17925 test -n "$MSGFMT" && break
17927 test -n "$MSGFMT" || MSGFMT="no"
17929 if test "$MSGFMT" = "no"
17931 echo 'msgfmt program not found, disabling NLS !'
17933 USE_INCLUDED_LIBINTL=no
17936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2 or newer" >&5
17937 $as_echo_n "checking whether we are using the GNU C Library 2 or newer... " >&6; }
17938 if ${ac_cv_gnu_library_2+:} false; then :
17939 $as_echo_n "(cached) " >&6
17941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17942 /* end confdefs.h. */
17944 #include <features.h>
17945 #ifdef __GNU_LIBRARY__
17946 #if (__GLIBC__ >= 2)
17952 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17953 $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
17954 ac_cv_gnu_library_2=yes
17956 ac_cv_gnu_library_2=no
17963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2" >&5
17964 $as_echo "$ac_cv_gnu_library_2" >&6; }
17966 GLIBC2="$ac_cv_gnu_library_2"
17969 if test -n "$ac_tool_prefix"; then
17970 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
17971 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
17972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17973 $as_echo_n "checking for $ac_word... " >&6; }
17974 if ${ac_cv_prog_RANLIB+:} false; then :
17975 $as_echo_n "(cached) " >&6
17977 if test -n "$RANLIB"; then
17978 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
17980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17981 for as_dir in $PATH
17984 test -z "$as_dir" && as_dir=.
17985 for ac_exec_ext in '' $ac_executable_extensions; do
17986 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17987 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
17988 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17997 RANLIB=$ac_cv_prog_RANLIB
17998 if test -n "$RANLIB"; then
17999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
18000 $as_echo "$RANLIB" >&6; }
18002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18003 $as_echo "no" >&6; }
18008 if test -z "$ac_cv_prog_RANLIB"; then
18009 ac_ct_RANLIB=$RANLIB
18010 # Extract the first word of "ranlib", so it can be a program name with args.
18011 set dummy ranlib; ac_word=$2
18012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18013 $as_echo_n "checking for $ac_word... " >&6; }
18014 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
18015 $as_echo_n "(cached) " >&6
18017 if test -n "$ac_ct_RANLIB"; then
18018 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
18020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18021 for as_dir in $PATH
18024 test -z "$as_dir" && as_dir=.
18025 for ac_exec_ext in '' $ac_executable_extensions; do
18026 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18027 ac_cv_prog_ac_ct_RANLIB="ranlib"
18028 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18037 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
18038 if test -n "$ac_ct_RANLIB"; then
18039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
18040 $as_echo "$ac_ct_RANLIB" >&6; }
18042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18043 $as_echo "no" >&6; }
18046 if test "x$ac_ct_RANLIB" = x; then
18049 case $cross_compiling:$ac_tool_warned in
18051 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18052 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18053 ac_tool_warned=yes ;;
18055 RANLIB=$ac_ct_RANLIB
18058 RANLIB="$ac_cv_prog_RANLIB"
18062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strerror in -lcposix" >&5
18063 $as_echo_n "checking for strerror in -lcposix... " >&6; }
18064 if ${ac_cv_lib_cposix_strerror+:} false; then :
18065 $as_echo_n "(cached) " >&6
18067 ac_check_lib_save_LIBS=$LIBS
18068 LIBS="-lcposix $LIBS"
18069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18070 /* end confdefs.h. */
18072 /* Override any GCC internal prototype to avoid an error.
18073 Use char because int might match the return type of a GCC
18074 builtin and then its argument prototype would still apply. */
18082 return strerror ();
18087 if ac_fn_c_try_link "$LINENO"; then :
18088 ac_cv_lib_cposix_strerror=yes
18090 ac_cv_lib_cposix_strerror=no
18092 rm -f core conftest.err conftest.$ac_objext \
18093 conftest$ac_exeext conftest.$ac_ext
18094 LIBS=$ac_check_lib_save_LIBS
18096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cposix_strerror" >&5
18097 $as_echo "$ac_cv_lib_cposix_strerror" >&6; }
18098 if test "x$ac_cv_lib_cposix_strerror" = xyes; then :
18099 LIBS="$LIBS -lcposix"
18104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
18105 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
18106 if ${ac_cv_c_const+:} false; then :
18107 $as_echo_n "(cached) " >&6
18109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18110 /* end confdefs.h. */
18115 /* FIXME: Include the comments suggested by Paul. */
18116 #ifndef __cplusplus
18117 /* Ultrix mips cc rejects this. */
18118 typedef int charset[2];
18120 /* SunOS 4.1.1 cc rejects this. */
18121 char const *const *pcpcc;
18123 /* NEC SVR4.0.2 mips cc rejects this. */
18124 struct point {int x, y;};
18125 static struct point const zero = {0,0};
18126 /* AIX XL C 1.02.0.0 rejects this.
18127 It does not let you subtract one const X* pointer from another in
18128 an arm of an if-expression whose if-part is not a constant
18130 const char *g = "string";
18131 pcpcc = &g + (g ? g-g : 0);
18132 /* HPUX 7.0 cc rejects these. */
18134 ppc = (char**) pcpcc;
18135 pcpcc = (char const *const *) ppc;
18136 { /* SCO 3.2v4 cc rejects this. */
18138 char const *s = 0 ? (char *) 0 : (char const *) 0;
18143 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
18144 int x[] = {25, 17};
18145 const int *foo = &x[0];
18148 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
18149 typedef const int *iptr;
18153 { /* AIX XL C 1.02.0.0 rejects this saying
18154 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
18155 struct s { int j; const int *ap[3]; };
18156 struct s *b; b->j = 5;
18158 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
18159 const int foo = 10;
18160 if (!foo) return 0;
18162 return !cs[0] && !zero.x;
18169 if ac_fn_c_try_compile "$LINENO"; then :
18174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
18177 $as_echo "$ac_cv_c_const" >&6; }
18178 if test $ac_cv_c_const = no; then
18180 $as_echo "#define const /**/" >>confdefs.h
18185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed" >&5
18186 $as_echo_n "checking for signed... " >&6; }
18187 if ${bh_cv_c_signed+:} false; then :
18188 $as_echo_n "(cached) " >&6
18190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18191 /* end confdefs.h. */
18201 if ac_fn_c_try_compile "$LINENO"; then :
18206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bh_cv_c_signed" >&5
18209 $as_echo "$bh_cv_c_signed" >&6; }
18210 if test $bh_cv_c_signed = no; then
18212 $as_echo "#define signed /**/" >>confdefs.h
18216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
18217 $as_echo_n "checking for inline... " >&6; }
18218 if ${ac_cv_c_inline+:} false; then :
18219 $as_echo_n "(cached) " >&6
18222 for ac_kw in inline __inline__ __inline; do
18223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18224 /* end confdefs.h. */
18225 #ifndef __cplusplus
18227 static $ac_kw foo_t static_foo () {return 0; }
18228 $ac_kw foo_t foo () {return 0; }
18232 if ac_fn_c_try_compile "$LINENO"; then :
18233 ac_cv_c_inline=$ac_kw
18235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18236 test "$ac_cv_c_inline" != no && break
18240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
18241 $as_echo "$ac_cv_c_inline" >&6; }
18243 case $ac_cv_c_inline in
18246 case $ac_cv_c_inline in
18248 *) ac_val=$ac_cv_c_inline;;
18250 cat >>confdefs.h <<_ACEOF
18251 #ifndef __cplusplus
18252 #define inline $ac_val
18258 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
18259 if test "x$ac_cv_type_off_t" = xyes; then :
18263 cat >>confdefs.h <<_ACEOF
18264 #define off_t long int
18269 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
18270 if test "x$ac_cv_type_size_t" = xyes; then :
18274 cat >>confdefs.h <<_ACEOF
18275 #define size_t unsigned int
18281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long" >&5
18282 $as_echo_n "checking for long long... " >&6; }
18283 if ${ac_cv_type_long_long+:} false; then :
18284 $as_echo_n "(cached) " >&6
18286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18287 /* end confdefs.h. */
18288 long long ll = 1LL; int i = 63;
18292 long long llmax = (long long) -1;
18293 return ll << i | ll >> i | llmax / ll | llmax % ll;
18298 if ac_fn_c_try_link "$LINENO"; then :
18299 ac_cv_type_long_long=yes
18301 ac_cv_type_long_long=no
18303 rm -f core conftest.err conftest.$ac_objext \
18304 conftest$ac_exeext conftest.$ac_ext
18306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long" >&5
18307 $as_echo "$ac_cv_type_long_long" >&6; }
18308 if test $ac_cv_type_long_long = yes; then
18310 $as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h
18315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
18316 $as_echo_n "checking for long double... " >&6; }
18317 if ${gt_cv_c_long_double+:} false; then :
18318 $as_echo_n "(cached) " >&6
18320 if test "$GCC" = yes; then
18321 gt_cv_c_long_double=yes
18323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18324 /* end confdefs.h. */
18326 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
18327 long double foo = 0.0;
18328 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
18329 int array [2*(sizeof(long double) >= sizeof(double)) - 1];
18339 if ac_fn_c_try_compile "$LINENO"; then :
18340 gt_cv_c_long_double=yes
18342 gt_cv_c_long_double=no
18344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_long_double" >&5
18348 $as_echo "$gt_cv_c_long_double" >&6; }
18349 if test $gt_cv_c_long_double = yes; then
18351 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
18356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
18357 $as_echo_n "checking for wchar_t... " >&6; }
18358 if ${gt_cv_c_wchar_t+:} false; then :
18359 $as_echo_n "(cached) " >&6
18361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18362 /* end confdefs.h. */
18363 #include <stddef.h>
18364 wchar_t foo = (wchar_t)'\0';
18373 if ac_fn_c_try_compile "$LINENO"; then :
18374 gt_cv_c_wchar_t=yes
18378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
18381 $as_echo "$gt_cv_c_wchar_t" >&6; }
18382 if test $gt_cv_c_wchar_t = yes; then
18384 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
18389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
18390 $as_echo_n "checking for wint_t... " >&6; }
18391 if ${gt_cv_c_wint_t+:} false; then :
18392 $as_echo_n "(cached) " >&6
18394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18395 /* end confdefs.h. */
18397 wint_t foo = (wchar_t)'\0';
18406 if ac_fn_c_try_compile "$LINENO"; then :
18411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
18414 $as_echo "$gt_cv_c_wint_t" >&6; }
18415 if test $gt_cv_c_wint_t = yes; then
18417 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
18422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
18423 $as_echo_n "checking for inttypes.h... " >&6; }
18424 if ${gl_cv_header_inttypes_h+:} false; then :
18425 $as_echo_n "(cached) " >&6
18427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18428 /* end confdefs.h. */
18429 #include <sys/types.h>
18430 #include <inttypes.h>
18434 uintmax_t i = (uintmax_t) -1;
18439 if ac_fn_c_try_compile "$LINENO"; then :
18440 gl_cv_header_inttypes_h=yes
18442 gl_cv_header_inttypes_h=no
18444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5
18447 $as_echo "$gl_cv_header_inttypes_h" >&6; }
18448 if test $gl_cv_header_inttypes_h = yes; then
18450 cat >>confdefs.h <<_ACEOF
18451 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
18457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
18458 $as_echo_n "checking for stdint.h... " >&6; }
18459 if ${gl_cv_header_stdint_h+:} false; then :
18460 $as_echo_n "(cached) " >&6
18462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18463 /* end confdefs.h. */
18464 #include <sys/types.h>
18465 #include <stdint.h>
18469 uintmax_t i = (uintmax_t) -1;
18474 if ac_fn_c_try_compile "$LINENO"; then :
18475 gl_cv_header_stdint_h=yes
18477 gl_cv_header_stdint_h=no
18479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5
18482 $as_echo "$gl_cv_header_stdint_h" >&6; }
18483 if test $gl_cv_header_stdint_h = yes; then
18485 cat >>confdefs.h <<_ACEOF
18486 #define HAVE_STDINT_H_WITH_UINTMAX 1
18494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
18495 $as_echo_n "checking for intmax_t... " >&6; }
18496 if ${gt_cv_c_intmax_t+:} false; then :
18497 $as_echo_n "(cached) " >&6
18499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18500 /* end confdefs.h. */
18502 #include <stddef.h>
18503 #include <stdlib.h>
18504 #if HAVE_STDINT_H_WITH_UINTMAX
18505 #include <stdint.h>
18507 #if HAVE_INTTYPES_H_WITH_UINTMAX
18508 #include <inttypes.h>
18519 if ac_fn_c_try_compile "$LINENO"; then :
18520 gt_cv_c_intmax_t=yes
18522 gt_cv_c_intmax_t=no
18524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
18527 $as_echo "$gt_cv_c_intmax_t" >&6; }
18528 if test $gt_cv_c_intmax_t = yes; then
18530 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
18536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5
18537 $as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
18538 if ${gt_cv_func_printf_posix+:} false; then :
18539 $as_echo_n "(cached) " >&6
18542 if test "$cross_compiling" = yes; then :
18544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18545 /* end confdefs.h. */
18547 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
18552 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18553 $EGREP "notposix" >/dev/null 2>&1; then :
18554 gt_cv_func_printf_posix="guessing no"
18556 gt_cv_func_printf_posix="guessing yes"
18562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18563 /* end confdefs.h. */
18566 #include <string.h>
18567 /* The string "%2$d %1$d", with dollar characters protected from the shell's
18568 dollar expansion (possibly an autoconf bug). */
18569 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
18570 static char buf[100];
18573 sprintf (buf, format, 33, 55);
18574 return (strcmp (buf, "55 33") != 0);
18577 if ac_fn_c_try_run "$LINENO"; then :
18578 gt_cv_func_printf_posix=yes
18580 gt_cv_func_printf_posix=no
18582 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18583 conftest.$ac_objext conftest.beam conftest.$ac_ext
18588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5
18589 $as_echo "$gt_cv_func_printf_posix" >&6; }
18590 case $gt_cv_func_printf_posix in
18593 $as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h
18598 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
18599 # for constant arguments. Useless!
18600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
18601 $as_echo_n "checking for working alloca.h... " >&6; }
18602 if ${ac_cv_working_alloca_h+:} false; then :
18603 $as_echo_n "(cached) " >&6
18605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18606 /* end confdefs.h. */
18607 #include <alloca.h>
18611 char *p = (char *) alloca (2 * sizeof (int));
18617 if ac_fn_c_try_link "$LINENO"; then :
18618 ac_cv_working_alloca_h=yes
18620 ac_cv_working_alloca_h=no
18622 rm -f core conftest.err conftest.$ac_objext \
18623 conftest$ac_exeext conftest.$ac_ext
18625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
18626 $as_echo "$ac_cv_working_alloca_h" >&6; }
18627 if test $ac_cv_working_alloca_h = yes; then
18629 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
18633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
18634 $as_echo_n "checking for alloca... " >&6; }
18635 if ${ac_cv_func_alloca_works+:} false; then :
18636 $as_echo_n "(cached) " >&6
18638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18639 /* end confdefs.h. */
18641 # define alloca __builtin_alloca
18644 # include <malloc.h>
18645 # define alloca _alloca
18647 # ifdef HAVE_ALLOCA_H
18648 # include <alloca.h>
18653 # ifndef alloca /* predefined by HP cc +Olibcalls */
18654 void *alloca (size_t);
18664 char *p = (char *) alloca (1);
18670 if ac_fn_c_try_link "$LINENO"; then :
18671 ac_cv_func_alloca_works=yes
18673 ac_cv_func_alloca_works=no
18675 rm -f core conftest.err conftest.$ac_objext \
18676 conftest$ac_exeext conftest.$ac_ext
18678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
18679 $as_echo "$ac_cv_func_alloca_works" >&6; }
18681 if test $ac_cv_func_alloca_works = yes; then
18683 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
18686 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
18687 # that cause trouble. Some versions do not even contain alloca or
18688 # contain a buggy version. If you still want to use their alloca,
18689 # use ar to extract alloca.o from them instead of compiling alloca.c.
18691 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
18693 $as_echo "#define C_ALLOCA 1" >>confdefs.h
18696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
18697 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
18698 if ${ac_cv_os_cray+:} false; then :
18699 $as_echo_n "(cached) " >&6
18701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18702 /* end confdefs.h. */
18703 #if defined CRAY && ! defined CRAY2
18710 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18711 $EGREP "webecray" >/dev/null 2>&1; then :
18719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
18720 $as_echo "$ac_cv_os_cray" >&6; }
18721 if test $ac_cv_os_cray = yes; then
18722 for ac_func in _getb67 GETB67 getb67; do
18723 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18724 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18725 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
18727 cat >>confdefs.h <<_ACEOF
18728 #define CRAY_STACKSEG_END $ac_func
18737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
18738 $as_echo_n "checking stack direction for C alloca... " >&6; }
18739 if ${ac_cv_c_stack_direction+:} false; then :
18740 $as_echo_n "(cached) " >&6
18742 if test "$cross_compiling" = yes; then :
18743 ac_cv_c_stack_direction=0
18745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18746 /* end confdefs.h. */
18747 $ac_includes_default
18749 find_stack_direction ()
18751 static char *addr = 0;
18756 return find_stack_direction ();
18759 return (&dummy > addr) ? 1 : -1;
18765 return find_stack_direction () < 0;
18768 if ac_fn_c_try_run "$LINENO"; then :
18769 ac_cv_c_stack_direction=1
18771 ac_cv_c_stack_direction=-1
18773 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18774 conftest.$ac_objext conftest.beam conftest.$ac_ext
18778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
18779 $as_echo "$ac_cv_c_stack_direction" >&6; }
18780 cat >>confdefs.h <<_ACEOF
18781 #define STACK_DIRECTION $ac_cv_c_stack_direction
18790 for ac_header in $ac_header_list
18792 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18793 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
18795 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18796 cat >>confdefs.h <<_ACEOF
18797 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18811 for ac_func in getpagesize
18813 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
18814 if test "x$ac_cv_func_getpagesize" = xyes; then :
18815 cat >>confdefs.h <<_ACEOF
18816 #define HAVE_GETPAGESIZE 1
18822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
18823 $as_echo_n "checking for working mmap... " >&6; }
18824 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
18825 $as_echo_n "(cached) " >&6
18827 if test "$cross_compiling" = yes; then :
18828 ac_cv_func_mmap_fixed_mapped=no
18830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18831 /* end confdefs.h. */
18832 $ac_includes_default
18833 /* malloc might have been renamed as rpl_malloc. */
18836 /* Thanks to Mike Haertel and Jim Avera for this test.
18837 Here is a matrix of mmap possibilities:
18838 mmap private not fixed
18839 mmap private fixed at somewhere currently unmapped
18840 mmap private fixed at somewhere already mapped
18841 mmap shared not fixed
18842 mmap shared fixed at somewhere currently unmapped
18843 mmap shared fixed at somewhere already mapped
18844 For private mappings, we should verify that changes cannot be read()
18845 back from the file, nor mmap's back from the file at a different
18846 address. (There have been systems where private was not correctly
18847 implemented like the infamous i386 svr4.0, and systems where the
18848 VM page cache was not coherent with the file system buffer cache
18849 like early versions of FreeBSD and possibly contemporary NetBSD.)
18850 For shared mappings, we should conversely verify that changes get
18851 propagated back to all the places they're supposed to be.
18853 Grep wants private fixed already mapped.
18854 The main things grep needs to know about mmap are:
18855 * does it exist and is it safe to write into the mmap'd area
18856 * how to use it (BSD variants) */
18859 #include <sys/mman.h>
18861 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
18865 /* This mess was copied from the GNU getpagesize.h. */
18866 #ifndef HAVE_GETPAGESIZE
18867 # ifdef _SC_PAGESIZE
18868 # define getpagesize() sysconf(_SC_PAGESIZE)
18869 # else /* no _SC_PAGESIZE */
18870 # ifdef HAVE_SYS_PARAM_H
18871 # include <sys/param.h>
18872 # ifdef EXEC_PAGESIZE
18873 # define getpagesize() EXEC_PAGESIZE
18874 # else /* no EXEC_PAGESIZE */
18876 # define getpagesize() NBPG * CLSIZE
18879 # endif /* no CLSIZE */
18880 # else /* no NBPG */
18882 # define getpagesize() NBPC
18883 # else /* no NBPC */
18885 # define getpagesize() PAGESIZE
18886 # endif /* PAGESIZE */
18887 # endif /* no NBPC */
18888 # endif /* no NBPG */
18889 # endif /* no EXEC_PAGESIZE */
18890 # else /* no HAVE_SYS_PARAM_H */
18891 # define getpagesize() 8192 /* punt totally */
18892 # endif /* no HAVE_SYS_PARAM_H */
18893 # endif /* no _SC_PAGESIZE */
18895 #endif /* no HAVE_GETPAGESIZE */
18900 char *data, *data2, *data3;
18901 const char *cdata2;
18905 pagesize = getpagesize ();
18907 /* First, make a file with some known garbage in it. */
18908 data = (char *) malloc (pagesize);
18911 for (i = 0; i < pagesize; ++i)
18912 *(data + i) = rand ();
18914 fd = creat ("conftest.mmap", 0600);
18917 if (write (fd, data, pagesize) != pagesize)
18921 /* Next, check that the tail of a page is zero-filled. File must have
18922 non-zero length, otherwise we risk SIGBUS for entire page. */
18923 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
18927 if (write (fd2, cdata2, 1) != 1)
18929 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
18930 if (data2 == MAP_FAILED)
18932 for (i = 0; i < pagesize; ++i)
18936 if (munmap (data2, pagesize))
18939 /* Next, try to mmap the file at a fixed address which already has
18940 something else allocated at it. If we can, also make sure that
18941 we see the same garbage. */
18942 fd = open ("conftest.mmap", O_RDWR);
18945 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
18946 MAP_PRIVATE | MAP_FIXED, fd, 0L))
18948 for (i = 0; i < pagesize; ++i)
18949 if (*(data + i) != *(data2 + i))
18952 /* Finally, make sure that changes to the mapped area do not
18953 percolate back to the file as seen by read(). (This is a bug on
18954 some variants of i386 svr4.0.) */
18955 for (i = 0; i < pagesize; ++i)
18956 *(data2 + i) = *(data2 + i) + 1;
18957 data3 = (char *) malloc (pagesize);
18960 if (read (fd, data3, pagesize) != pagesize)
18962 for (i = 0; i < pagesize; ++i)
18963 if (*(data + i) != *(data3 + i))
18969 if ac_fn_c_try_run "$LINENO"; then :
18970 ac_cv_func_mmap_fixed_mapped=yes
18972 ac_cv_func_mmap_fixed_mapped=no
18974 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18975 conftest.$ac_objext conftest.beam conftest.$ac_ext
18979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
18980 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
18981 if test $ac_cv_func_mmap_fixed_mapped = yes; then
18983 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
18986 rm -f conftest.mmap conftest.txt
18989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5
18990 $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
18991 if ${ac_cv_gnu_library_2_1+:} false; then :
18992 $as_echo_n "(cached) " >&6
18994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18995 /* end confdefs.h. */
18997 #include <features.h>
18998 #ifdef __GNU_LIBRARY__
18999 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
19005 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19006 $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
19007 ac_cv_gnu_library_2_1=yes
19009 ac_cv_gnu_library_2_1=no
19016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
19017 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
19019 GLIBC21="$ac_cv_gnu_library_2_1"
19024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
19025 $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
19026 if ${gt_cv_int_divbyzero_sigfpe+:} false; then :
19027 $as_echo_n "(cached) " >&6
19030 if test "$cross_compiling" = yes; then :
19032 # Guess based on the CPU.
19033 case "$host_cpu" in
19034 alpha* | i3456786 | m68k | s390*)
19035 gt_cv_int_divbyzero_sigfpe="guessing yes";;
19037 gt_cv_int_divbyzero_sigfpe="guessing no";;
19041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19042 /* end confdefs.h. */
19044 #include <stdlib.h>
19045 #include <signal.h>
19049 sigfpe_handler (int sig)
19051 sigfpe_handler (sig) int sig;
19054 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
19055 exit (sig != SIGFPE);
19065 signal (SIGFPE, sigfpe_handler);
19066 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
19067 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
19068 signal (SIGTRAP, sigfpe_handler);
19070 /* Linux/SPARC yields signal SIGILL. */
19071 #if defined (__sparc__) && defined (__linux__)
19072 signal (SIGILL, sigfpe_handler);
19081 if ac_fn_c_try_run "$LINENO"; then :
19082 gt_cv_int_divbyzero_sigfpe=yes
19084 gt_cv_int_divbyzero_sigfpe=no
19086 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19087 conftest.$ac_objext conftest.beam conftest.$ac_ext
19092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
19093 $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
19094 case "$gt_cv_int_divbyzero_sigfpe" in
19099 cat >>confdefs.h <<_ACEOF
19100 #define INTDIV0_RAISES_SIGFPE $value
19105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long" >&5
19106 $as_echo_n "checking for unsigned long long... " >&6; }
19107 if ${ac_cv_type_unsigned_long_long+:} false; then :
19108 $as_echo_n "(cached) " >&6
19110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19111 /* end confdefs.h. */
19112 unsigned long long ull = 1ULL; int i = 63;
19116 unsigned long long ullmax = (unsigned long long) -1;
19117 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
19122 if ac_fn_c_try_link "$LINENO"; then :
19123 ac_cv_type_unsigned_long_long=yes
19125 ac_cv_type_unsigned_long_long=no
19127 rm -f core conftest.err conftest.$ac_objext \
19128 conftest$ac_exeext conftest.$ac_ext
19130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long" >&5
19131 $as_echo "$ac_cv_type_unsigned_long_long" >&6; }
19132 if test $ac_cv_type_unsigned_long_long = yes; then
19134 $as_echo "#define HAVE_UNSIGNED_LONG_LONG 1" >>confdefs.h
19141 if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
19143 test $ac_cv_type_unsigned_long_long = yes \
19144 && ac_type='unsigned long long' \
19145 || ac_type='unsigned long'
19147 cat >>confdefs.h <<_ACEOF
19148 #define uintmax_t $ac_type
19153 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
19158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
19159 $as_echo_n "checking for inttypes.h... " >&6; }
19160 if ${gt_cv_header_inttypes_h+:} false; then :
19161 $as_echo_n "(cached) " >&6
19164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19165 /* end confdefs.h. */
19166 #include <sys/types.h>
19167 #include <inttypes.h>
19176 if ac_fn_c_try_compile "$LINENO"; then :
19177 gt_cv_header_inttypes_h=yes
19179 gt_cv_header_inttypes_h=no
19181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_header_inttypes_h" >&5
19185 $as_echo "$gt_cv_header_inttypes_h" >&6; }
19186 if test $gt_cv_header_inttypes_h = yes; then
19188 cat >>confdefs.h <<_ACEOF
19189 #define HAVE_INTTYPES_H 1
19196 if test $gt_cv_header_inttypes_h = yes; then
19197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
19198 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
19199 if ${gt_cv_inttypes_pri_broken+:} false; then :
19200 $as_echo_n "(cached) " >&6
19203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19204 /* end confdefs.h. */
19205 #include <inttypes.h>
19218 if ac_fn_c_try_compile "$LINENO"; then :
19219 gt_cv_inttypes_pri_broken=no
19221 gt_cv_inttypes_pri_broken=yes
19223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
19227 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
19229 if test "$gt_cv_inttypes_pri_broken" = yes; then
19231 cat >>confdefs.h <<_ACEOF
19232 #define PRI_MACROS_BROKEN 1
19238 for ac_header in stdint.h
19240 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
19241 if test "x$ac_cv_header_stdint_h" = xyes; then :
19242 cat >>confdefs.h <<_ACEOF
19243 #define HAVE_STDINT_H 1
19250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
19251 $as_echo_n "checking for SIZE_MAX... " >&6; }
19253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19254 /* end confdefs.h. */
19256 #include <limits.h>
19258 #include <stdint.h>
19265 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19266 $EGREP "Found it" >/dev/null 2>&1; then :
19271 if test -z "$result"; then
19272 if ac_fn_c_compute_int "$LINENO" "~(size_t)0 / 10" "res_hi" "#include <stddef.h>"; then :
19279 if ac_fn_c_compute_int "$LINENO" "~(size_t)0 % 10" "res_lo" "#include <stddef.h>"; then :
19286 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint" "#include <stddef.h>"; then :
19293 if test "$fits_in_uint" = 1; then
19294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19295 /* end confdefs.h. */
19296 #include <stddef.h>
19298 extern unsigned long foo;
19308 if ac_fn_c_try_compile "$LINENO"; then :
19311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19313 if test -z "$result"; then
19314 if test "$fits_in_uint" = 1; then
19315 result="$res_hi$res_lo"U
19317 result="$res_hi$res_lo"UL
19320 result='~(size_t)0'
19323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
19324 $as_echo "$result" >&6; }
19325 if test "$result" != yes; then
19327 cat >>confdefs.h <<_ACEOF
19328 #define SIZE_MAX $result
19336 for ac_header in stdint.h
19338 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
19339 if test "x$ac_cv_header_stdint_h" = xyes; then :
19340 cat >>confdefs.h <<_ACEOF
19341 #define HAVE_STDINT_H 1
19355 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
19356 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
19360 $as_echo "#define ptrdiff_t long" >>confdefs.h
19365 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
19366 stdlib.h string.h unistd.h sys/param.h
19368 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19369 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19370 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19371 cat >>confdefs.h <<_ACEOF
19372 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19379 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
19380 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
19381 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
19384 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19385 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19386 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19387 cat >>confdefs.h <<_ACEOF
19388 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snprintf is declared" >&5
19397 $as_echo_n "checking whether _snprintf is declared... " >&6; }
19398 if ${ac_cv_have_decl__snprintf+:} false; then :
19399 $as_echo_n "(cached) " >&6
19401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19402 /* end confdefs.h. */
19409 char *p = (char *) _snprintf;
19416 if ac_fn_c_try_compile "$LINENO"; then :
19417 ac_cv_have_decl__snprintf=yes
19419 ac_cv_have_decl__snprintf=no
19421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snprintf" >&5
19424 $as_echo "$ac_cv_have_decl__snprintf" >&6; }
19425 if test $ac_cv_have_decl__snprintf = yes; then
19431 cat >>confdefs.h <<_ACEOF
19432 #define HAVE_DECL__SNPRINTF $gt_value
19437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snwprintf is declared" >&5
19438 $as_echo_n "checking whether _snwprintf is declared... " >&6; }
19439 if ${ac_cv_have_decl__snwprintf+:} false; then :
19440 $as_echo_n "(cached) " >&6
19442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19443 /* end confdefs.h. */
19450 char *p = (char *) _snwprintf;
19457 if ac_fn_c_try_compile "$LINENO"; then :
19458 ac_cv_have_decl__snwprintf=yes
19460 ac_cv_have_decl__snwprintf=no
19462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snwprintf" >&5
19465 $as_echo "$ac_cv_have_decl__snwprintf" >&6; }
19466 if test $ac_cv_have_decl__snwprintf = yes; then
19472 cat >>confdefs.h <<_ACEOF
19473 #define HAVE_DECL__SNWPRINTF $gt_value
19479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether feof_unlocked is declared" >&5
19480 $as_echo_n "checking whether feof_unlocked is declared... " >&6; }
19481 if ${ac_cv_have_decl_feof_unlocked+:} false; then :
19482 $as_echo_n "(cached) " >&6
19484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19485 /* end confdefs.h. */
19491 #ifndef feof_unlocked
19492 char *p = (char *) feof_unlocked;
19499 if ac_fn_c_try_compile "$LINENO"; then :
19500 ac_cv_have_decl_feof_unlocked=yes
19502 ac_cv_have_decl_feof_unlocked=no
19504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_feof_unlocked" >&5
19507 $as_echo "$ac_cv_have_decl_feof_unlocked" >&6; }
19508 if test $ac_cv_have_decl_feof_unlocked = yes; then
19514 cat >>confdefs.h <<_ACEOF
19515 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
19520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fgets_unlocked is declared" >&5
19521 $as_echo_n "checking whether fgets_unlocked is declared... " >&6; }
19522 if ${ac_cv_have_decl_fgets_unlocked+:} false; then :
19523 $as_echo_n "(cached) " >&6
19525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19526 /* end confdefs.h. */
19532 #ifndef fgets_unlocked
19533 char *p = (char *) fgets_unlocked;
19540 if ac_fn_c_try_compile "$LINENO"; then :
19541 ac_cv_have_decl_fgets_unlocked=yes
19543 ac_cv_have_decl_fgets_unlocked=no
19545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_fgets_unlocked" >&5
19548 $as_echo "$ac_cv_have_decl_fgets_unlocked" >&6; }
19549 if test $ac_cv_have_decl_fgets_unlocked = yes; then
19555 cat >>confdefs.h <<_ACEOF
19556 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
19561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getc_unlocked is declared" >&5
19562 $as_echo_n "checking whether getc_unlocked is declared... " >&6; }
19563 if ${ac_cv_have_decl_getc_unlocked+:} false; then :
19564 $as_echo_n "(cached) " >&6
19566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19567 /* end confdefs.h. */
19573 #ifndef getc_unlocked
19574 char *p = (char *) getc_unlocked;
19581 if ac_fn_c_try_compile "$LINENO"; then :
19582 ac_cv_have_decl_getc_unlocked=yes
19584 ac_cv_have_decl_getc_unlocked=no
19586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_getc_unlocked" >&5
19589 $as_echo "$ac_cv_have_decl_getc_unlocked" >&6; }
19590 if test $ac_cv_have_decl_getc_unlocked = yes; then
19596 cat >>confdefs.h <<_ACEOF
19597 #define HAVE_DECL_GETC_UNLOCKED $gt_value
19602 case $gt_cv_func_printf_posix in
19603 *yes) HAVE_POSIX_PRINTF=1 ;;
19604 *) HAVE_POSIX_PRINTF=0 ;;
19607 if test "$ac_cv_func_asprintf" = yes; then
19613 if test "$ac_cv_func_snprintf" = yes; then
19619 if test "$ac_cv_func_wprintf" = yes; then
19631 am_save_CPPFLAGS="$CPPFLAGS"
19633 for element in $INCICONV; do
19635 for x in $CPPFLAGS; do
19637 acl_save_prefix="$prefix"
19638 prefix="$acl_final_prefix"
19639 acl_save_exec_prefix="$exec_prefix"
19640 exec_prefix="$acl_final_exec_prefix"
19642 exec_prefix="$acl_save_exec_prefix"
19643 prefix="$acl_save_prefix"
19645 if test "X$x" = "X$element"; then
19650 if test -z "$haveit"; then
19651 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
19656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
19657 $as_echo_n "checking for iconv... " >&6; }
19658 if ${am_cv_func_iconv+:} false; then :
19659 $as_echo_n "(cached) " >&6
19662 am_cv_func_iconv="no, consider installing GNU libiconv"
19664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19665 /* end confdefs.h. */
19666 #include <stdlib.h>
19671 iconv_t cd = iconv_open("","");
19672 iconv(cd,NULL,NULL,NULL,NULL);
19678 if ac_fn_c_try_link "$LINENO"; then :
19679 am_cv_func_iconv=yes
19681 rm -f core conftest.err conftest.$ac_objext \
19682 conftest$ac_exeext conftest.$ac_ext
19683 if test "$am_cv_func_iconv" != yes; then
19684 am_save_LIBS="$LIBS"
19685 LIBS="$LIBS $LIBICONV"
19686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19687 /* end confdefs.h. */
19688 #include <stdlib.h>
19693 iconv_t cd = iconv_open("","");
19694 iconv(cd,NULL,NULL,NULL,NULL);
19700 if ac_fn_c_try_link "$LINENO"; then :
19701 am_cv_lib_iconv=yes
19702 am_cv_func_iconv=yes
19704 rm -f core conftest.err conftest.$ac_objext \
19705 conftest$ac_exeext conftest.$ac_ext
19706 LIBS="$am_save_LIBS"
19710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
19711 $as_echo "$am_cv_func_iconv" >&6; }
19712 if test "$am_cv_func_iconv" = yes; then
19714 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
19717 if test "$am_cv_lib_iconv" = yes; then
19718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
19719 $as_echo_n "checking how to link with libiconv... " >&6; }
19720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
19721 $as_echo "$LIBICONV" >&6; }
19723 CPPFLAGS="$am_save_CPPFLAGS"
19730 if test "$am_cv_func_iconv" = yes; then
19731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
19732 $as_echo_n "checking for iconv declaration... " >&6; }
19733 if ${am_cv_proto_iconv+:} false; then :
19734 $as_echo_n "(cached) " >&6
19737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19738 /* end confdefs.h. */
19740 #include <stdlib.h>
19746 #if defined(__STDC__) || defined(__cplusplus)
19747 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
19760 if ac_fn_c_try_compile "$LINENO"; then :
19761 am_cv_proto_iconv_arg1=""
19763 am_cv_proto_iconv_arg1="const"
19765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19766 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);"
19769 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
19770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
19771 }$am_cv_proto_iconv" >&5
19773 }$am_cv_proto_iconv" >&6; }
19775 cat >>confdefs.h <<_ACEOF
19776 #define ICONV_CONST $am_cv_proto_iconv_arg1
19782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
19783 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
19784 if ${am_cv_langinfo_codeset+:} false; then :
19785 $as_echo_n "(cached) " >&6
19787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19788 /* end confdefs.h. */
19789 #include <langinfo.h>
19793 char* cs = nl_langinfo(CODESET);
19798 if ac_fn_c_try_link "$LINENO"; then :
19799 am_cv_langinfo_codeset=yes
19801 am_cv_langinfo_codeset=no
19803 rm -f core conftest.err conftest.$ac_objext \
19804 conftest$ac_exeext conftest.$ac_ext
19807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
19808 $as_echo "$am_cv_langinfo_codeset" >&6; }
19809 if test $am_cv_langinfo_codeset = yes; then
19811 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
19815 if test $ac_cv_header_locale_h = yes; then
19817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
19818 $as_echo_n "checking for LC_MESSAGES... " >&6; }
19819 if ${gt_cv_val_LC_MESSAGES+:} false; then :
19820 $as_echo_n "(cached) " >&6
19822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19823 /* end confdefs.h. */
19824 #include <locale.h>
19833 if ac_fn_c_try_link "$LINENO"; then :
19834 gt_cv_val_LC_MESSAGES=yes
19836 gt_cv_val_LC_MESSAGES=no
19838 rm -f core conftest.err conftest.$ac_objext \
19839 conftest$ac_exeext conftest.$ac_ext
19841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_val_LC_MESSAGES" >&5
19842 $as_echo "$gt_cv_val_LC_MESSAGES" >&6; }
19843 if test $gt_cv_val_LC_MESSAGES = yes; then
19845 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
19851 if test -n "$INTL_MACOSX_LIBS"; then
19852 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
19855 for ac_prog in bison
19857 # Extract the first word of "$ac_prog", so it can be a program name with args.
19858 set dummy $ac_prog; ac_word=$2
19859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19860 $as_echo_n "checking for $ac_word... " >&6; }
19861 if ${ac_cv_prog_INTLBISON+:} false; then :
19862 $as_echo_n "(cached) " >&6
19864 if test -n "$INTLBISON"; then
19865 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
19867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19868 for as_dir in $PATH
19871 test -z "$as_dir" && as_dir=.
19872 for ac_exec_ext in '' $ac_executable_extensions; do
19873 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19874 ac_cv_prog_INTLBISON="$ac_prog"
19875 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19884 INTLBISON=$ac_cv_prog_INTLBISON
19885 if test -n "$INTLBISON"; then
19886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
19887 $as_echo "$INTLBISON" >&6; }
19889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19890 $as_echo "no" >&6; }
19894 test -n "$INTLBISON" && break
19897 if test -z "$INTLBISON"; then
19900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
19901 $as_echo_n "checking version of bison... " >&6; }
19902 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
19903 case $ac_prog_version in
19904 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
19905 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
19906 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
19907 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
19909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
19910 $as_echo "$ac_prog_version" >&6; }
19912 if test $ac_verc_fail = yes; then
19931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
19932 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
19933 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
19934 $as_echo_n "(cached) " >&6
19936 gt_save_CPPFLAGS="$CPPFLAGS"
19937 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
19938 gt_save_LIBS="$LIBS"
19939 LIBS="$LIBS -framework CoreFoundation"
19940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19941 /* end confdefs.h. */
19942 #include <CFPreferences.h>
19946 CFPreferencesCopyAppValue(NULL, NULL)
19951 if ac_fn_c_try_link "$LINENO"; then :
19952 gt_cv_func_CFPreferencesCopyAppValue=yes
19954 gt_cv_func_CFPreferencesCopyAppValue=no
19956 rm -f core conftest.err conftest.$ac_objext \
19957 conftest$ac_exeext conftest.$ac_ext
19958 CPPFLAGS="$gt_save_CPPFLAGS"
19959 LIBS="$gt_save_LIBS"
19961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
19962 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
19963 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
19965 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
19968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
19969 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
19970 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
19971 $as_echo_n "(cached) " >&6
19973 gt_save_CPPFLAGS="$CPPFLAGS"
19974 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
19975 gt_save_LIBS="$LIBS"
19976 LIBS="$LIBS -framework CoreFoundation"
19977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19978 /* end confdefs.h. */
19979 #include <CFLocale.h>
19983 CFLocaleCopyCurrent();
19988 if ac_fn_c_try_link "$LINENO"; then :
19989 gt_cv_func_CFLocaleCopyCurrent=yes
19991 gt_cv_func_CFLocaleCopyCurrent=no
19993 rm -f core conftest.err conftest.$ac_objext \
19994 conftest$ac_exeext conftest.$ac_ext
19995 CPPFLAGS="$gt_save_CPPFLAGS"
19996 LIBS="$gt_save_LIBS"
19998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
19999 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
20000 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
20002 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
20006 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
20007 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
20013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
20014 $as_echo_n "checking whether NLS is requested... " >&6; }
20015 # Check whether --enable-nls was given.
20016 if test "${enable_nls+set}" = set; then :
20017 enableval=$enable_nls; USE_NLS=$enableval
20022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
20023 $as_echo "$USE_NLS" >&6; }
20028 BUILD_INCLUDED_LIBINTL=no
20029 USE_INCLUDED_LIBINTL=no
20035 if test "$USE_NLS" = "yes"; then
20036 gt_use_preinstalled_gnugettext=no
20038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
20039 $as_echo_n "checking whether included gettext is requested... " >&6; }
20041 # Check whether --with-included-gettext was given.
20042 if test "${with_included_gettext+set}" = set; then :
20043 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
20045 nls_cv_force_use_gnu_gettext=no
20048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
20049 $as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
20051 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
20052 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
20059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
20060 $as_echo_n "checking for GNU gettext in libc... " >&6; }
20061 if ${gt_cv_func_gnugettext1_libc+:} false; then :
20062 $as_echo_n "(cached) " >&6
20064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20065 /* end confdefs.h. */
20066 #include <libintl.h>
20067 extern int _nl_msg_cat_cntr;
20068 extern int *_nl_domain_bindings;
20072 bindtextdomain ("", "");
20073 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
20078 if ac_fn_c_try_link "$LINENO"; then :
20079 gt_cv_func_gnugettext1_libc=yes
20081 gt_cv_func_gnugettext1_libc=no
20083 rm -f core conftest.err conftest.$ac_objext \
20084 conftest$ac_exeext conftest.$ac_ext
20086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5
20087 $as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
20089 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
20095 acl_save_prefix="$prefix"
20096 prefix="$acl_final_prefix"
20097 acl_save_exec_prefix="$exec_prefix"
20098 exec_prefix="$acl_final_exec_prefix"
20100 eval additional_includedir=\"$includedir\"
20101 eval additional_libdir=\"$libdir\"
20103 exec_prefix="$acl_save_exec_prefix"
20104 prefix="$acl_save_prefix"
20107 # Check whether --with-libintl-prefix was given.
20108 if test "${with_libintl_prefix+set}" = set; then :
20109 withval=$with_libintl_prefix;
20110 if test "X$withval" = "Xno"; then
20113 if test "X$withval" = "X"; then
20115 acl_save_prefix="$prefix"
20116 prefix="$acl_final_prefix"
20117 acl_save_exec_prefix="$exec_prefix"
20118 exec_prefix="$acl_final_exec_prefix"
20120 eval additional_includedir=\"$includedir\"
20121 eval additional_libdir=\"$libdir\"
20123 exec_prefix="$acl_save_exec_prefix"
20124 prefix="$acl_save_prefix"
20127 additional_includedir="$withval/include"
20128 additional_libdir="$withval/lib"
20139 names_already_handled=
20140 names_next_round='intl '
20141 while test -n "$names_next_round"; do
20142 names_this_round="$names_next_round"
20144 for name in $names_this_round; do
20146 for n in $names_already_handled; do
20147 if test "$n" = "$name"; then
20148 already_handled=yes
20152 if test -z "$already_handled"; then
20153 names_already_handled="$names_already_handled $name"
20154 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
20155 eval value=\"\$HAVE_LIB$uppername\"
20156 if test -n "$value"; then
20157 if test "$value" = yes; then
20158 eval value=\"\$LIB$uppername\"
20159 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
20160 eval value=\"\$LTLIB$uppername\"
20161 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
20170 if test $use_additional = yes; then
20171 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
20172 found_dir="$additional_libdir"
20173 found_so="$additional_libdir/lib$name.$shlibext"
20174 if test -f "$additional_libdir/lib$name.la"; then
20175 found_la="$additional_libdir/lib$name.la"
20178 if test -f "$additional_libdir/lib$name.$libext"; then
20179 found_dir="$additional_libdir"
20180 found_a="$additional_libdir/lib$name.$libext"
20181 if test -f "$additional_libdir/lib$name.la"; then
20182 found_la="$additional_libdir/lib$name.la"
20187 if test "X$found_dir" = "X"; then
20188 for x in $LDFLAGS $LTLIBINTL; do
20190 acl_save_prefix="$prefix"
20191 prefix="$acl_final_prefix"
20192 acl_save_exec_prefix="$exec_prefix"
20193 exec_prefix="$acl_final_exec_prefix"
20195 exec_prefix="$acl_save_exec_prefix"
20196 prefix="$acl_save_prefix"
20200 dir=`echo "X$x" | sed -e 's/^X-L//'`
20201 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
20203 found_so="$dir/lib$name.$shlibext"
20204 if test -f "$dir/lib$name.la"; then
20205 found_la="$dir/lib$name.la"
20208 if test -f "$dir/lib$name.$libext"; then
20210 found_a="$dir/lib$name.$libext"
20211 if test -f "$dir/lib$name.la"; then
20212 found_la="$dir/lib$name.la"
20218 if test "X$found_dir" != "X"; then
20223 if test "X$found_dir" != "X"; then
20224 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
20225 if test "X$found_so" != "X"; then
20226 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
20227 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
20230 for x in $ltrpathdirs; do
20231 if test "X$x" = "X$found_dir"; then
20236 if test -z "$haveit"; then
20237 ltrpathdirs="$ltrpathdirs $found_dir"
20239 if test "$hardcode_direct" = yes; then
20240 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
20242 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
20243 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
20245 for x in $rpathdirs; do
20246 if test "X$x" = "X$found_dir"; then
20251 if test -z "$haveit"; then
20252 rpathdirs="$rpathdirs $found_dir"
20256 for x in $LDFLAGS $LIBINTL; do
20258 acl_save_prefix="$prefix"
20259 prefix="$acl_final_prefix"
20260 acl_save_exec_prefix="$exec_prefix"
20261 exec_prefix="$acl_final_exec_prefix"
20263 exec_prefix="$acl_save_exec_prefix"
20264 prefix="$acl_save_prefix"
20266 if test "X$x" = "X-L$found_dir"; then
20271 if test -z "$haveit"; then
20272 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
20274 if test "$hardcode_minus_L" != no; then
20275 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
20277 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
20283 if test "X$found_a" != "X"; then
20284 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
20286 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
20289 additional_includedir=
20290 case "$found_dir" in
20292 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
20293 additional_includedir="$basedir/include"
20296 if test "X$additional_includedir" != "X"; then
20297 if test "X$additional_includedir" != "X/usr/include"; then
20299 if test "X$additional_includedir" = "X/usr/local/include"; then
20300 if test -n "$GCC"; then
20302 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
20306 if test -z "$haveit"; then
20307 for x in $CPPFLAGS $INCINTL; do
20309 acl_save_prefix="$prefix"
20310 prefix="$acl_final_prefix"
20311 acl_save_exec_prefix="$exec_prefix"
20312 exec_prefix="$acl_final_exec_prefix"
20314 exec_prefix="$acl_save_exec_prefix"
20315 prefix="$acl_save_prefix"
20317 if test "X$x" = "X-I$additional_includedir"; then
20322 if test -z "$haveit"; then
20323 if test -d "$additional_includedir"; then
20324 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
20330 if test -n "$found_la"; then
20331 save_libdir="$libdir"
20332 case "$found_la" in
20333 */* | *\\*) . "$found_la" ;;
20334 *) . "./$found_la" ;;
20336 libdir="$save_libdir"
20337 for dep in $dependency_libs; do
20340 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
20341 if test "X$additional_libdir" != "X/usr/lib"; then
20343 if test "X$additional_libdir" = "X/usr/local/lib"; then
20344 if test -n "$GCC"; then
20346 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
20350 if test -z "$haveit"; then
20352 for x in $LDFLAGS $LIBINTL; do
20354 acl_save_prefix="$prefix"
20355 prefix="$acl_final_prefix"
20356 acl_save_exec_prefix="$exec_prefix"
20357 exec_prefix="$acl_final_exec_prefix"
20359 exec_prefix="$acl_save_exec_prefix"
20360 prefix="$acl_save_prefix"
20362 if test "X$x" = "X-L$additional_libdir"; then
20367 if test -z "$haveit"; then
20368 if test -d "$additional_libdir"; then
20369 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
20373 for x in $LDFLAGS $LTLIBINTL; do
20375 acl_save_prefix="$prefix"
20376 prefix="$acl_final_prefix"
20377 acl_save_exec_prefix="$exec_prefix"
20378 exec_prefix="$acl_final_exec_prefix"
20380 exec_prefix="$acl_save_exec_prefix"
20381 prefix="$acl_save_prefix"
20383 if test "X$x" = "X-L$additional_libdir"; then
20388 if test -z "$haveit"; then
20389 if test -d "$additional_libdir"; then
20390 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
20397 dir=`echo "X$dep" | sed -e 's/^X-R//'`
20398 if test "$enable_rpath" != no; then
20400 for x in $rpathdirs; do
20401 if test "X$x" = "X$dir"; then
20406 if test -z "$haveit"; then
20407 rpathdirs="$rpathdirs $dir"
20410 for x in $ltrpathdirs; do
20411 if test "X$x" = "X$dir"; then
20416 if test -z "$haveit"; then
20417 ltrpathdirs="$ltrpathdirs $dir"
20422 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
20425 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
20428 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
20429 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
20435 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
20436 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
20442 if test "X$rpathdirs" != "X"; then
20443 if test -n "$hardcode_libdir_separator"; then
20445 for found_dir in $rpathdirs; do
20446 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
20448 acl_save_libdir="$libdir"
20450 eval flag=\"$hardcode_libdir_flag_spec\"
20451 libdir="$acl_save_libdir"
20452 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
20454 for found_dir in $rpathdirs; do
20455 acl_save_libdir="$libdir"
20456 libdir="$found_dir"
20457 eval flag=\"$hardcode_libdir_flag_spec\"
20458 libdir="$acl_save_libdir"
20459 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
20463 if test "X$ltrpathdirs" != "X"; then
20464 for found_dir in $ltrpathdirs; do
20465 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
20469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
20470 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
20471 if ${gt_cv_func_gnugettext1_libintl+:} false; then :
20472 $as_echo_n "(cached) " >&6
20474 gt_save_CPPFLAGS="$CPPFLAGS"
20475 CPPFLAGS="$CPPFLAGS $INCINTL"
20476 gt_save_LIBS="$LIBS"
20477 LIBS="$LIBS $LIBINTL"
20478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20479 /* end confdefs.h. */
20480 #include <libintl.h>
20481 extern int _nl_msg_cat_cntr;
20486 const char *_nl_expand_alias (const char *);
20490 bindtextdomain ("", "");
20491 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
20496 if ac_fn_c_try_link "$LINENO"; then :
20497 gt_cv_func_gnugettext1_libintl=yes
20499 gt_cv_func_gnugettext1_libintl=no
20501 rm -f core conftest.err conftest.$ac_objext \
20502 conftest$ac_exeext conftest.$ac_ext
20503 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
20504 LIBS="$LIBS $LIBICONV"
20505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20506 /* end confdefs.h. */
20507 #include <libintl.h>
20508 extern int _nl_msg_cat_cntr;
20513 const char *_nl_expand_alias (const char *);
20517 bindtextdomain ("", "");
20518 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
20523 if ac_fn_c_try_link "$LINENO"; then :
20524 LIBINTL="$LIBINTL $LIBICONV"
20525 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
20526 gt_cv_func_gnugettext1_libintl=yes
20529 rm -f core conftest.err conftest.$ac_objext \
20530 conftest$ac_exeext conftest.$ac_ext
20532 CPPFLAGS="$gt_save_CPPFLAGS"
20533 LIBS="$gt_save_LIBS"
20535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5
20536 $as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
20539 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
20540 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
20541 && test "$PACKAGE" != gettext-runtime \
20542 && test "$PACKAGE" != gettext-tools; }; then
20543 gt_use_preinstalled_gnugettext=yes
20551 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
20552 nls_cv_use_gnu_gettext=yes
20556 if test "$nls_cv_use_gnu_gettext" = "yes"; then
20557 BUILD_INCLUDED_LIBINTL=yes
20558 USE_INCLUDED_LIBINTL=yes
20559 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
20560 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
20561 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
20565 if test "$gt_use_preinstalled_gnugettext" = "yes" \
20566 || test "$nls_cv_use_gnu_gettext" = "yes"; then
20571 if test -n "$INTL_MACOSX_LIBS"; then
20572 if test "$gt_use_preinstalled_gnugettext" = "yes" \
20573 || test "$nls_cv_use_gnu_gettext" = "yes"; then
20574 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
20575 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
20579 if test "$gt_use_preinstalled_gnugettext" = "yes" \
20580 || test "$nls_cv_use_gnu_gettext" = "yes"; then
20582 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
20589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
20590 $as_echo_n "checking whether to use NLS... " >&6; }
20591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
20592 $as_echo "$USE_NLS" >&6; }
20593 if test "$USE_NLS" = "yes"; then
20594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
20595 $as_echo_n "checking where the gettext function comes from... " >&6; }
20596 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
20597 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
20598 gt_source="external libintl"
20603 gt_source="included intl directory"
20605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
20606 $as_echo "$gt_source" >&6; }
20609 if test "$USE_NLS" = "yes"; then
20611 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
20612 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
20613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
20614 $as_echo_n "checking how to link with libintl... " >&6; }
20615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
20616 $as_echo "$LIBINTL" >&6; }
20618 for element in $INCINTL; do
20620 for x in $CPPFLAGS; do
20622 acl_save_prefix="$prefix"
20623 prefix="$acl_final_prefix"
20624 acl_save_exec_prefix="$exec_prefix"
20625 exec_prefix="$acl_final_exec_prefix"
20627 exec_prefix="$acl_save_exec_prefix"
20628 prefix="$acl_save_prefix"
20630 if test "X$x" = "X$element"; then
20635 if test -z "$haveit"; then
20636 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
20643 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
20646 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
20654 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
20655 BUILD_INCLUDED_LIBINTL=yes
20662 nls_cv_header_intl=
20663 nls_cv_header_libgt=
20675 if test "$USE_INCLUDED_LIBINTL" = yes; then
20676 INTLOBJS="\$(GETTOBJS)"
20680 INTL_LIBTOOL_SUFFIX_PREFIX=
20684 INTLLIBS="$LIBINTL"
20693 support_smartalloc=yes
20694 support_readline=yes
20698 support_wx_console=no
20699 support_tray_monitor=no
20704 support_static_tools=no
20705 support_static_fd=no
20706 support_static_sd=no
20707 support_static_dir=no
20708 support_static_cons=no
20710 build_client_only=no
20717 # Check whether --enable-gnome was given.
20718 if test "${enable_gnome+set}" = set; then :
20719 enableval=$enable_gnome;
20720 if test x$enableval = xyes; then
20729 if test x$support_gnome = xyes; then
20730 as_fn_error $? "bgnome-console no longer supported" "$LINENO" 5
20731 as_fn_error $? "--enable-gnome option no longer supported" "$LINENO" 5
20733 # AC_SUBST(GNOME_DIR)
20735 # Check whether --enable-bat was given.
20736 if test "${enable_bat+set}" = set; then :
20737 enableval=$enable_bat;
20738 if test x$enableval = xyes; then
20740 $as_echo "#define HAVE_BAT 1" >>confdefs.h
20750 if test x$support_bat = xyes; then
20751 abc=`$PKGCONFIG --atleast-version=4.2 QtGui`
20753 if test $pkg = 0; then
20754 BAT_DIR=src/qt-console
20756 as_fn_error $? "Unable to find Qt4 installation needed by bat" "$LINENO" 5
20774 # Check whether --enable-bwx-console was given.
20775 if test "${enable_bwx_console+set}" = set; then :
20776 enableval=$enable_bwx_console;
20777 if test x$enableval = xyes; then
20778 support_wx_console=yes
20786 if test x$support_wx_console = xyes; then
20787 abc=`$WXCONFIG $WXFLAGS --cppflags`
20789 if test $pkg = 0; then
20790 wx_version="wxWidgets `$WXCONFIG $WXFLAGS --release`"
20791 WXCONS_CPPFLAGS=`$WXCONFIG $WXFLAGS --cppflags`
20792 WXCONS_LDFLAGS=`$WXCONFIG $WXFLAGS --libs`
20796 WX_DIR="src/wx-console"
20799 echo "wx-config program not found. bwx-console disabled."
20801 support_wx_console=no
20806 # Check whether --enable-tray-monitor was given.
20807 if test "${enable_tray_monitor+set}" = set; then :
20808 enableval=$enable_tray_monitor;
20809 if test x$enableval = xyes; then
20810 support_tray_monitor=yes
20818 if test x$support_tray_monitor = xyes; then
20819 abc=`$PKGCONFIG --exists gtk+-2.0`
20821 if test $pkg = 0; then
20822 TRAY_MONITOR_CPPFLAGS=`$PKGCONFIG --cflags gtk+-2.0`
20823 TRAY_MONITOR_LDFLAGS=`$PKGCONFIG --libs gtk+-2.0`
20826 TRAY_MONITOR_DIR=src/tray-monitor
20827 abc=`$PKGCONFIG --atleast-version=2.4 gtk+-2.0`
20829 if test $pkg = 0; then
20831 $as_echo "#define HAVE_GTK_2_4 1" >>confdefs.h
20838 # Check whether --enable-smartalloc was given.
20839 if test "${enable_smartalloc+set}" = set; then :
20840 enableval=$enable_smartalloc;
20841 if test x$enableval = xno; then
20842 support_smartalloc=no
20849 if test x$support_smartalloc = xyes; then
20851 $as_echo "#define SMARTALLOC 1" >>confdefs.h
20855 # Check whether --enable-lockmgr was given.
20856 if test "${enable_lockmgr+set}" = set; then :
20857 enableval=$enable_lockmgr;
20858 if test x$enableval = xyes; then
20859 support_lockmgr=yes
20866 if test x$support_lockmgr = xyes; then
20868 $as_echo "#define _USE_LOCKMGR 1" >>confdefs.h
20873 # Check whether --enable-static-tools was given.
20874 if test "${enable_static_tools+set}" = set; then :
20875 enableval=$enable_static_tools;
20876 if test x$enableval = xyes; then
20877 if test x$use_libtool = xyes; then
20878 as_fn_error $? "Libtool is enabled, not compatible with static tools,
20879 please rerun configure with --disable-libtool" "$LINENO" 5
20881 support_static_tools=yes
20889 if test x$support_static_tools = xyes; then
20890 TTOOL_LDFLAGS="-static"
20894 # Check whether --enable-static-fd was given.
20895 if test "${enable_static_fd+set}" = set; then :
20896 enableval=$enable_static_fd;
20897 if test x$enableval = xyes; then
20898 if test x$use_libtool = xyes; then
20899 as_fn_error $? "Libtool is enabled, not compatible with static tools,
20900 please rerun configure with --disable-libtool" "$LINENO" 5
20902 support_static_fd=yes
20910 if test x$support_static_fd = xyes; then
20911 STATIC_FD="static-bacula-fd"
20915 # Check whether --enable-static-sd was given.
20916 if test "${enable_static_sd+set}" = set; then :
20917 enableval=$enable_static_sd;
20918 if test x$enableval = xyes; then
20919 if test x$use_libtool = xyes; then
20920 as_fn_error $? "Libtool is enabled, not compatible with static tools,
20921 please rerun configure with --disable-libtool" "$LINENO" 5
20923 support_static_sd=yes
20931 if test x$support_static_sd = xyes; then
20932 STATIC_SD="static-bacula-sd"
20936 # Check whether --enable-static-dir was given.
20937 if test "${enable_static_dir+set}" = set; then :
20938 enableval=$enable_static_dir;
20939 if test x$enableval = xyes; then
20940 if test x$use_libtool = xyes; then
20941 as_fn_error $? "Libtool is enabled, not compatible with static tools,
20942 please rerun configure with --disable-libtool" "$LINENO" 5
20944 support_static_dir=yes
20952 if test x$support_static_dir = xyes; then
20953 STATIC_DIR="static-bacula-dir"
20957 # Check whether --enable-static-cons was given.
20958 if test "${enable_static_cons+set}" = set; then :
20959 enableval=$enable_static_cons;
20960 if test x$enableval = xyes; then
20961 if test x$use_libtool = xyes; then
20962 as_fn_error $? "Libtool is enabled, not compatible with static tools,
20963 please rerun configure with --disable-libtool" "$LINENO" 5
20965 support_static_cons=yes
20975 if test x$support_static_cons = xyes; then
20976 STATIC_CONS="static-bconsole"
20977 STATIC_GNOME_CONS="static-bgnome-console"
20978 STATIC_WX_CONS="static-bwx-console"
20984 # Check whether --enable-client-only was given.
20985 if test "${enable_client_only+set}" = set; then :
20986 enableval=$enable_client_only;
20987 if test x$enableval = xyes; then
20988 build_client_only=yes
20996 if test x$build_client_only = xno; then
21003 # Check whether --enable-build-dird was given.
21004 if test "${enable_build_dird+set}" = set; then :
21005 enableval=$enable_build_dird;
21006 if test x$enableval = xno; then
21013 if test x$build_dird = xyes; then
21014 DIRD_DIR="src/dird"
21015 DIR_TOOLS="DIRTOOLS"
21018 DIR_TOOLS="NODIRTOOLS"
21023 # Check whether --enable-build-stored was given.
21024 if test "${enable_build_stored+set}" = set; then :
21025 enableval=$enable_build_stored;
21026 if test x$enableval = xno; then
21033 if test x$build_stored = xyes; then
21034 STORED_DIR="src/stored"
21040 # Check whether --enable-conio was given.
21041 if test "${enable_conio+set}" = set; then :
21042 enableval=$enable_conio;
21043 if test x$enableval = xno; then
21053 # Check whether --enable-ipv6 was given.
21054 if test "${enable_ipv6+set}" = set; then :
21055 enableval=$enable_ipv6;
21056 if test x$enableval = xno; then
21064 if test x$support_ipv6 = xyes; then
21065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21066 /* end confdefs.h. */
21067 #include <sys/types.h>
21068 #include <sys/socket.h>
21069 #include <netinet/in.h>
21073 struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] = 0;
21078 if ac_fn_c_try_link "$LINENO"; then :
21083 rm -f core conftest.err conftest.$ac_objext \
21084 conftest$ac_exeext conftest.$ac_ext
21087 if test x$support_ipv6 = xyes; then
21089 $as_echo "#define HAVE_IPV6 1" >>confdefs.h
21094 ac_fn_c_check_header_mongrel "$LINENO" "curses.h" "ac_cv_header_curses_h" "$ac_includes_default"
21095 if test "x$ac_cv_header_curses_h" = xyes; then :
21097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltinfo" >&5
21098 $as_echo_n "checking for tgetent in -ltinfo... " >&6; }
21099 if ${ac_cv_lib_tinfo_tgetent+:} false; then :
21100 $as_echo_n "(cached) " >&6
21102 ac_check_lib_save_LIBS=$LIBS
21103 LIBS="-ltinfo $LIBS"
21104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21105 /* end confdefs.h. */
21107 /* Override any GCC internal prototype to avoid an error.
21108 Use char because int might match the return type of a GCC
21109 builtin and then its argument prototype would still apply. */
21122 if ac_fn_c_try_link "$LINENO"; then :
21123 ac_cv_lib_tinfo_tgetent=yes
21125 ac_cv_lib_tinfo_tgetent=no
21127 rm -f core conftest.err conftest.$ac_objext \
21128 conftest$ac_exeext conftest.$ac_ext
21129 LIBS=$ac_check_lib_save_LIBS
21131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tinfo_tgetent" >&5
21132 $as_echo "$ac_cv_lib_tinfo_tgetent" >&6; }
21133 if test "x$ac_cv_lib_tinfo_tgetent" = xyes; then :
21137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lncurses" >&5
21138 $as_echo_n "checking for tgetent in -lncurses... " >&6; }
21139 if ${ac_cv_lib_ncurses_tgetent+:} false; then :
21140 $as_echo_n "(cached) " >&6
21142 ac_check_lib_save_LIBS=$LIBS
21143 LIBS="-lncurses $LIBS"
21144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21145 /* end confdefs.h. */
21147 /* Override any GCC internal prototype to avoid an error.
21148 Use char because int might match the return type of a GCC
21149 builtin and then its argument prototype would still apply. */
21162 if ac_fn_c_try_link "$LINENO"; then :
21163 ac_cv_lib_ncurses_tgetent=yes
21165 ac_cv_lib_ncurses_tgetent=no
21167 rm -f core conftest.err conftest.$ac_objext \
21168 conftest$ac_exeext conftest.$ac_ext
21169 LIBS=$ac_check_lib_save_LIBS
21171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_tgetent" >&5
21172 $as_echo "$ac_cv_lib_ncurses_tgetent" >&6; }
21173 if test "x$ac_cv_lib_ncurses_tgetent" = xyes; then :
21174 TERM_LIB="-lncurses"
21177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltermcap" >&5
21178 $as_echo_n "checking for tgetent in -ltermcap... " >&6; }
21179 if ${ac_cv_lib_termcap_tgetent+:} false; then :
21180 $as_echo_n "(cached) " >&6
21182 ac_check_lib_save_LIBS=$LIBS
21183 LIBS="-ltermcap $LIBS"
21184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21185 /* end confdefs.h. */
21187 /* Override any GCC internal prototype to avoid an error.
21188 Use char because int might match the return type of a GCC
21189 builtin and then its argument prototype would still apply. */
21202 if ac_fn_c_try_link "$LINENO"; then :
21203 ac_cv_lib_termcap_tgetent=yes
21205 ac_cv_lib_termcap_tgetent=no
21207 rm -f core conftest.err conftest.$ac_objext \
21208 conftest$ac_exeext conftest.$ac_ext
21209 LIBS=$ac_check_lib_save_LIBS
21211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_termcap_tgetent" >&5
21212 $as_echo "$ac_cv_lib_termcap_tgetent" >&6; }
21213 if test "x$ac_cv_lib_termcap_tgetent" = xyes; then :
21214 TERM_LIB="-ltermcap"
21225 for ac_header in curses.h
21227 ac_fn_c_check_header_mongrel "$LINENO" "curses.h" "ac_cv_header_curses_h" "$ac_includes_default"
21228 if test "x$ac_cv_header_curses_h" = xyes; then :
21229 cat >>confdefs.h <<_ACEOF
21230 #define HAVE_CURSES_H 1
21237 ac_fn_c_check_header_mongrel "$LINENO" "term.h" "ac_cv_header_term_h" "$ac_includes_default"
21238 if test "x$ac_cv_header_term_h" = xyes; then :
21239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lcurses" >&5
21240 $as_echo_n "checking for tgetent in -lcurses... " >&6; }
21241 if ${ac_cv_lib_curses_tgetent+:} false; then :
21242 $as_echo_n "(cached) " >&6
21244 ac_check_lib_save_LIBS=$LIBS
21245 LIBS="-lcurses $LIBS"
21246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21247 /* end confdefs.h. */
21249 /* Override any GCC internal prototype to avoid an error.
21250 Use char because int might match the return type of a GCC
21251 builtin and then its argument prototype would still apply. */
21264 if ac_fn_c_try_link "$LINENO"; then :
21265 ac_cv_lib_curses_tgetent=yes
21267 ac_cv_lib_curses_tgetent=no
21269 rm -f core conftest.err conftest.$ac_objext \
21270 conftest$ac_exeext conftest.$ac_ext
21271 LIBS=$ac_check_lib_save_LIBS
21273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_tgetent" >&5
21274 $as_echo "$ac_cv_lib_curses_tgetent" >&6; }
21275 if test "x$ac_cv_lib_curses_tgetent" = xyes; then :
21276 TERM_LIB="-lcurses"
21290 if test x$support_conio = xyes; then
21291 if test x$TERM_LIB != x; then
21292 CONS_LIBS=$TERM_LIB
21296 support_readline=no
21298 $as_echo "#define HAVE_CONIO 1" >>confdefs.h
21301 echo " "; echo "Required libraries not found. CONIO turned off ..."; echo " "],
21306 # Check whether --enable-readline was given.
21307 if test "${enable_readline+set}" = set; then :
21308 enableval=$enable_readline;
21309 if test x$enableval = xno; then
21310 support_readline=no
21316 if test x$TERM_LIB = x ; then
21317 support_readline=no
21322 if test x$support_readline = xyes; then
21324 # Check whether --with-readline was given.
21325 if test "${with_readline+set}" = set; then :
21326 withval=$with_readline;
21327 case "$with_readline" in
21332 if test -f ${with_readline}/readline.h; then
21333 CONS_INC="-I${with_readline}"
21334 CONS_LDFLAGS="-L$with_readline"
21335 elif test -f ${with_readline}/include/readline/readline.h; then
21336 CONS_INC="-I${with_readline}/include/readline"
21337 CONS_LDFLAGS="-L${with_readline}/lib"
21338 with_readline="${with_readline}/include/readline"
21340 with_readline="/usr/include/readline"
21343 as_ac_Header=`$as_echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
21344 ac_fn_c_check_header_mongrel "$LINENO" "${with_readline}/readline.h" "$as_ac_Header" "$ac_includes_default"
21345 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21348 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
21350 CONS_LIBS="-lreadline -lhistory $TERM_LIB"
21356 echo "readline.h not found. readline turned off ..."
21368 ac_fn_c_check_header_mongrel "$LINENO" "/usr/include/readline/readline.h" "ac_cv_header__usr_include_readline_readline_h" "$ac_includes_default"
21369 if test "x$ac_cv_header__usr_include_readline_readline_h" = xyes; then :
21372 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
21375 CONS_INC="-I/usr/include/readline"
21376 CONS_LIBS="-lreadline $TERM_LIB"
21380 as_ac_Header=`$as_echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
21381 ac_fn_c_check_header_mongrel "$LINENO" "${TOP_DIR}/depkgs/readline/readline.h" "$as_ac_Header" "$ac_includes_default"
21382 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21385 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
21388 CONS_INC="-I${TOP_DIR}/depkgs/readline"
21389 CONS_LIBS="-lreadline -lhistory $TERM_LIB"
21390 CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
21391 PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
21396 echo "readline.h not found. readline turned off ..."
21423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
21424 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
21425 if ${ac_cv_header_stat_broken+:} false; then :
21426 $as_echo_n "(cached) " >&6
21428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21429 /* end confdefs.h. */
21430 #include <sys/types.h>
21431 #include <sys/stat.h>
21433 #if defined S_ISBLK && defined S_IFDIR
21434 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
21437 #if defined S_ISBLK && defined S_IFCHR
21438 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
21441 #if defined S_ISLNK && defined S_IFREG
21442 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
21445 #if defined S_ISSOCK && defined S_IFREG
21446 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
21450 if ac_fn_c_try_compile "$LINENO"; then :
21451 ac_cv_header_stat_broken=no
21453 ac_cv_header_stat_broken=yes
21455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
21458 $as_echo "$ac_cv_header_stat_broken" >&6; }
21459 if test $ac_cv_header_stat_broken = yes; then
21461 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
21465 ac_header_dirent=no
21466 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
21467 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
21468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
21469 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
21470 if eval \${$as_ac_Header+:} false; then :
21471 $as_echo_n "(cached) " >&6
21473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21474 /* end confdefs.h. */
21475 #include <sys/types.h>
21487 if ac_fn_c_try_compile "$LINENO"; then :
21488 eval "$as_ac_Header=yes"
21490 eval "$as_ac_Header=no"
21492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21494 eval ac_res=\$$as_ac_Header
21495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21496 $as_echo "$ac_res" >&6; }
21497 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21498 cat >>confdefs.h <<_ACEOF
21499 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
21502 ac_header_dirent=$ac_hdr; break
21506 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
21507 if test $ac_header_dirent = dirent.h; then
21508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
21509 $as_echo_n "checking for library containing opendir... " >&6; }
21510 if ${ac_cv_search_opendir+:} false; then :
21511 $as_echo_n "(cached) " >&6
21513 ac_func_search_save_LIBS=$LIBS
21514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21515 /* end confdefs.h. */
21517 /* Override any GCC internal prototype to avoid an error.
21518 Use char because int might match the return type of a GCC
21519 builtin and then its argument prototype would still apply. */
21532 for ac_lib in '' dir; do
21533 if test -z "$ac_lib"; then
21534 ac_res="none required"
21537 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21539 if ac_fn_c_try_link "$LINENO"; then :
21540 ac_cv_search_opendir=$ac_res
21542 rm -f core conftest.err conftest.$ac_objext \
21544 if ${ac_cv_search_opendir+:} false; then :
21548 if ${ac_cv_search_opendir+:} false; then :
21551 ac_cv_search_opendir=no
21553 rm conftest.$ac_ext
21554 LIBS=$ac_func_search_save_LIBS
21556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
21557 $as_echo "$ac_cv_search_opendir" >&6; }
21558 ac_res=$ac_cv_search_opendir
21559 if test "$ac_res" != no; then :
21560 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
21566 $as_echo_n "checking for library containing opendir... " >&6; }
21567 if ${ac_cv_search_opendir+:} false; then :
21568 $as_echo_n "(cached) " >&6
21570 ac_func_search_save_LIBS=$LIBS
21571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21572 /* end confdefs.h. */
21574 /* Override any GCC internal prototype to avoid an error.
21575 Use char because int might match the return type of a GCC
21576 builtin and then its argument prototype would still apply. */
21589 for ac_lib in '' x; do
21590 if test -z "$ac_lib"; then
21591 ac_res="none required"
21594 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21596 if ac_fn_c_try_link "$LINENO"; then :
21597 ac_cv_search_opendir=$ac_res
21599 rm -f core conftest.err conftest.$ac_objext \
21601 if ${ac_cv_search_opendir+:} false; then :
21605 if ${ac_cv_search_opendir+:} false; then :
21608 ac_cv_search_opendir=no
21610 rm conftest.$ac_ext
21611 LIBS=$ac_func_search_save_LIBS
21613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
21614 $as_echo "$ac_cv_search_opendir" >&6; }
21615 ac_res=$ac_cv_search_opendir
21616 if test "$ac_res" != no; then :
21617 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21623 for ac_func in strcasecmp select setenv putenv tcgetattr lstat lchown
21625 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21626 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21627 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
21628 cat >>confdefs.h <<_ACEOF
21629 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21635 for ac_func in nanosleep nl_langinfo
21637 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21638 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21639 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
21640 cat >>confdefs.h <<_ACEOF
21641 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21647 for ac_header in varargs.h
21649 ac_fn_c_check_header_mongrel "$LINENO" "varargs.h" "ac_cv_header_varargs_h" "$ac_includes_default"
21650 if test "x$ac_cv_header_varargs_h" = xyes; then :
21651 cat >>confdefs.h <<_ACEOF
21652 #define HAVE_VARARGS_H 1
21661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python support" >&5
21662 $as_echo_n "checking for Python support... " >&6; }
21664 # Check whether --with-python was given.
21665 if test "${with_python+set}" = set; then :
21666 withval=$with_python;
21669 if test "$withval" != "no"; then
21670 if test "$withval" = "yes"; then
21671 if test -e /usr/bin/python-config ; then
21672 PYTHON_INCDIR=`/usr/bin/python-config --includes`
21673 PYTHON_LIBS=`/usr/bin/python-config --libs`
21675 for python_root in /usr /usr/local /usr/sfw; do
21676 for ver in python2.2 python2.3 python2.4 python2.5 python2.6 python3; do
21677 if test -f $python_root/include/${ver}/Python.h; then
21678 PYTHON_INCDIR=-I$python_root/include/${ver}
21679 if test -d $python_root/lib64/${ver}/config; then
21680 PYTHON_LIBS="-L$python_root/lib64/${ver}/config -l${ver}"
21682 PYTHON_LIBS="-L$python_root/lib/${ver}/config -l${ver}"
21689 if test x$PYTHON_INCDIR = x; then
21690 if test -f $prefix/include/Python.h; then
21691 PYTHON_INCDIR=-I$prefix/include
21692 if test -d $prefix/lib64/config; then
21693 PYTHON_LIBS="-L$prefix/lib64/config -lpython"
21695 PYTHON_LIBS="-L$prefix/lib/config -lpython"
21698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21699 $as_echo "no" >&6; }
21700 as_fn_error $? "Unable to find Python.h in standard locations" "$LINENO" 5
21705 if test -e $withval/bin/python-config ; then
21706 PYTHON_INCDIR=`$withval/bin/python-config --includes`
21707 PYTHON_LIBS=`$withval/bin/python-config --libs`
21708 elif test -f $withval/Python.h; then
21709 PYTHON_INCDIR=-I$withval
21710 PYTHON_LIBS="-L$withval/config -lpython"
21711 elif test -f $withval/include/Python.h; then
21712 PYTHON_INCDIR=-I$withval/include
21713 if test -d $withval/lib64/config; then
21714 PYTHON_LIBS="-L$withval/lib64/config -lpython"
21716 PYTHON_LIBS="-L$withval/lib/config -lpython"
21718 elif test -f $withval/include/python/Python.h; then
21719 PYTHON_INCDIR=-I$withval/include/python
21720 if test -d $withval/lib64/python/config; then
21721 PYTHON_LIBS="-L$withval/lib64/python/config -lpython"
21723 PYTHON_LIBS="-L$withval/lib/python/config -lpython"
21726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21727 $as_echo "no" >&6; }
21728 as_fn_error $? "Invalid Python directory $withval - unable to find Python.h under $withval" "$LINENO" 5
21732 $as_echo "#define HAVE_PYTHON 1" >>confdefs.h
21734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21735 $as_echo "yes" >&6; }
21737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for more Python libs" >&5
21738 $as_echo "$as_me: checking for more Python libs" >&6;}
21739 saved_LIBS="$LIBS"; LIBS=
21740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing shm_open" >&5
21741 $as_echo_n "checking for library containing shm_open... " >&6; }
21742 if ${ac_cv_search_shm_open+:} false; then :
21743 $as_echo_n "(cached) " >&6
21745 ac_func_search_save_LIBS=$LIBS
21746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21747 /* end confdefs.h. */
21749 /* Override any GCC internal prototype to avoid an error.
21750 Use char because int might match the return type of a GCC
21751 builtin and then its argument prototype would still apply. */
21759 return shm_open ();
21764 for ac_lib in '' rt; do
21765 if test -z "$ac_lib"; then
21766 ac_res="none required"
21769 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21771 if ac_fn_c_try_link "$LINENO"; then :
21772 ac_cv_search_shm_open=$ac_res
21774 rm -f core conftest.err conftest.$ac_objext \
21776 if ${ac_cv_search_shm_open+:} false; then :
21780 if ${ac_cv_search_shm_open+:} false; then :
21783 ac_cv_search_shm_open=no
21785 rm conftest.$ac_ext
21786 LIBS=$ac_func_search_save_LIBS
21788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_shm_open" >&5
21789 $as_echo "$ac_cv_search_shm_open" >&6; }
21790 ac_res=$ac_cv_search_shm_open
21791 if test "$ac_res" != no; then :
21792 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openpty in -lutil" >&5
21797 $as_echo_n "checking for openpty in -lutil... " >&6; }
21798 if ${ac_cv_lib_util_openpty+:} false; then :
21799 $as_echo_n "(cached) " >&6
21801 ac_check_lib_save_LIBS=$LIBS
21802 LIBS="-lutil $LIBS"
21803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21804 /* end confdefs.h. */
21806 /* Override any GCC internal prototype to avoid an error.
21807 Use char because int might match the return type of a GCC
21808 builtin and then its argument prototype would still apply. */
21821 if ac_fn_c_try_link "$LINENO"; then :
21822 ac_cv_lib_util_openpty=yes
21824 ac_cv_lib_util_openpty=no
21826 rm -f core conftest.err conftest.$ac_objext \
21827 conftest$ac_exeext conftest.$ac_ext
21828 LIBS=$ac_check_lib_save_LIBS
21830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_openpty" >&5
21831 $as_echo "$ac_cv_lib_util_openpty" >&6; }
21832 if test "x$ac_cv_lib_util_openpty" = xyes; then :
21833 cat >>confdefs.h <<_ACEOF
21834 #define HAVE_LIBUTIL 1
21837 LIBS="-lutil $LIBS"
21841 PYTHON_LIBS="$PYTHON_LIBS $LIBS"
21844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21845 $as_echo "no" >&6; }
21850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21851 $as_echo "no" >&6; }
21859 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
21860 if test "x$ac_cv_func_socket" = xyes; then :
21861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using libc's socket" >&5
21862 $as_echo "using libc's socket" >&6; }
21864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lxnet" >&5
21865 $as_echo_n "checking for socket in -lxnet... " >&6; }
21866 if ${ac_cv_lib_xnet_socket+:} false; then :
21867 $as_echo_n "(cached) " >&6
21869 ac_check_lib_save_LIBS=$LIBS
21870 LIBS="-lxnet $LIBS"
21871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21872 /* end confdefs.h. */
21874 /* Override any GCC internal prototype to avoid an error.
21875 Use char because int might match the return type of a GCC
21876 builtin and then its argument prototype would still apply. */
21889 if ac_fn_c_try_link "$LINENO"; then :
21890 ac_cv_lib_xnet_socket=yes
21892 ac_cv_lib_xnet_socket=no
21894 rm -f core conftest.err conftest.$ac_objext \
21895 conftest$ac_exeext conftest.$ac_ext
21896 LIBS=$ac_check_lib_save_LIBS
21898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xnet_socket" >&5
21899 $as_echo "$ac_cv_lib_xnet_socket" >&6; }
21900 if test "x$ac_cv_lib_xnet_socket" = xyes; then :
21901 cat >>confdefs.h <<_ACEOF
21902 #define HAVE_LIBXNET 1
21905 LIBS="-lxnet $LIBS"
21909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
21910 $as_echo_n "checking for socket in -lsocket... " >&6; }
21911 if ${ac_cv_lib_socket_socket+:} false; then :
21912 $as_echo_n "(cached) " >&6
21914 ac_check_lib_save_LIBS=$LIBS
21915 LIBS="-lsocket $LIBS"
21916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21917 /* end confdefs.h. */
21919 /* Override any GCC internal prototype to avoid an error.
21920 Use char because int might match the return type of a GCC
21921 builtin and then its argument prototype would still apply. */
21934 if ac_fn_c_try_link "$LINENO"; then :
21935 ac_cv_lib_socket_socket=yes
21937 ac_cv_lib_socket_socket=no
21939 rm -f core conftest.err conftest.$ac_objext \
21940 conftest$ac_exeext conftest.$ac_ext
21941 LIBS=$ac_check_lib_save_LIBS
21943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
21944 $as_echo "$ac_cv_lib_socket_socket" >&6; }
21945 if test "x$ac_cv_lib_socket_socket" = xyes; then :
21946 cat >>confdefs.h <<_ACEOF
21947 #define HAVE_LIBSOCKET 1
21950 LIBS="-lsocket $LIBS"
21954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -linet" >&5
21955 $as_echo_n "checking for socket in -linet... " >&6; }
21956 if ${ac_cv_lib_inet_socket+:} false; then :
21957 $as_echo_n "(cached) " >&6
21959 ac_check_lib_save_LIBS=$LIBS
21960 LIBS="-linet $LIBS"
21961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21962 /* end confdefs.h. */
21964 /* Override any GCC internal prototype to avoid an error.
21965 Use char because int might match the return type of a GCC
21966 builtin and then its argument prototype would still apply. */
21979 if ac_fn_c_try_link "$LINENO"; then :
21980 ac_cv_lib_inet_socket=yes
21982 ac_cv_lib_inet_socket=no
21984 rm -f core conftest.err conftest.$ac_objext \
21985 conftest$ac_exeext conftest.$ac_ext
21986 LIBS=$ac_check_lib_save_LIBS
21988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_inet_socket" >&5
21989 $as_echo "$ac_cv_lib_inet_socket" >&6; }
21990 if test "x$ac_cv_lib_inet_socket" = xyes; then :
21991 cat >>confdefs.h <<_ACEOF
21992 #define HAVE_LIBINET 1
21995 LIBS="-linet $LIBS"
22005 # Check whether --with-tcp-wrappers was given.
22006 if test "${with_tcp_wrappers+set}" = set; then :
22007 withval=$with_tcp_wrappers;
22008 if test "x$withval" != "xno" ; then
22010 LIBS="$saved_LIBS -lwrap"
22011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nanosleep" >&5
22012 $as_echo_n "checking for library containing nanosleep... " >&6; }
22013 if ${ac_cv_search_nanosleep+:} false; then :
22014 $as_echo_n "(cached) " >&6
22016 ac_func_search_save_LIBS=$LIBS
22017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22018 /* end confdefs.h. */
22020 /* Override any GCC internal prototype to avoid an error.
22021 Use char because int might match the return type of a GCC
22022 builtin and then its argument prototype would still apply. */
22030 return nanosleep ();
22035 for ac_lib in '' rt; do
22036 if test -z "$ac_lib"; then
22037 ac_res="none required"
22040 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22042 if ac_fn_c_try_link "$LINENO"; then :
22043 ac_cv_search_nanosleep=$ac_res
22045 rm -f core conftest.err conftest.$ac_objext \
22047 if ${ac_cv_search_nanosleep+:} false; then :
22051 if ${ac_cv_search_nanosleep+:} false; then :
22054 ac_cv_search_nanosleep=no
22056 rm conftest.$ac_ext
22057 LIBS=$ac_func_search_save_LIBS
22059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nanosleep" >&5
22060 $as_echo "$ac_cv_search_nanosleep" >&6; }
22061 ac_res=$ac_cv_search_nanosleep
22062 if test "$ac_res" != no; then :
22063 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libwrap" >&5
22068 $as_echo_n "checking for libwrap... " >&6; }
22069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22070 /* end confdefs.h. */
22072 #include <sys/types.h>
22074 int deny_severity = 0;
22075 int allow_severity = 0;
22076 struct request_info *req;
22088 if ac_fn_c_try_link "$LINENO"; then :
22090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22091 $as_echo "yes" >&6; }
22093 $as_echo "#define HAVE_LIBWRAP 1" >>confdefs.h
22101 LIBS="$saved_LIBS -lwrap -lnsl"
22102 WRAPLIBS="$saved_LIBS -lwrap -lnsl"
22103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22104 /* end confdefs.h. */
22106 #include <sys/types.h>
22108 int deny_severity = 0;
22109 int allow_severity = 0;
22110 struct request_info *req;
22122 if ac_fn_c_try_link "$LINENO"; then :
22124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22125 $as_echo "yes" >&6; }
22127 $as_echo "#define HAVE_LIBWRAP 1" >>confdefs.h
22135 as_fn_error $? "*** libwrap missing" "$LINENO" 5
22139 rm -f core conftest.err conftest.$ac_objext \
22140 conftest$ac_exeext conftest.$ac_ext
22144 rm -f core conftest.err conftest.$ac_objext \
22145 conftest$ac_exeext conftest.$ac_ext
22152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL" >&5
22153 $as_echo_n "checking for OpenSSL... " >&6; }
22155 # Check whether --with-openssl was given.
22156 if test "${with_openssl+set}" = set; then :
22157 withval=$with_openssl;
22158 with_openssl_directory=${withval}
22164 if test "x$with_openssl_directory" != "xno"; then
22165 OPENSSL_LIBS="-lssl -lcrypto"
22168 if test "x$with_openssl_directory" != "xyes" && test x"${with_openssl_directory}" != "x"; then
22170 # Make sure the $with_openssl_directory also makes sense
22172 if test -d "$with_openssl_directory/lib" -a -d "$with_openssl_directory/include"; then
22173 OPENSSL_LIBS="-L$with_openssl_directory/lib $OPENSSL_LIBS"
22174 OPENSSL_INC="-I$with_openssl_directory/include $OPENSSL_INC"
22178 saved_LIBS="${LIBS}"
22179 saved_CFLAGS="${CFLAGS}"
22180 LIBS="${saved_LIBS} ${OPENSSL_LIBS}"
22181 CFLAGS="${saved_CFLAGS} ${OPENSSL_INC}"
22183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22184 /* end confdefs.h. */
22186 #include <openssl/ssl.h>
22192 CRYPTO_set_id_callback(NULL);
22198 if ac_fn_c_try_link "$LINENO"; then :
22201 support_crypto="yes"
22206 support_crypto="no"
22210 rm -f core conftest.err conftest.$ac_objext \
22211 conftest$ac_exeext conftest.$ac_ext
22213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22214 /* end confdefs.h. */
22216 #include <openssl/evp.h>
22228 if ac_fn_c_try_link "$LINENO"; then :
22230 ac_cv_openssl_sha2="yes"
22234 ac_cv_openssl_sha2="no"
22238 rm -f core conftest.err conftest.$ac_objext \
22239 conftest$ac_exeext conftest.$ac_ext
22241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22242 /* end confdefs.h. */
22244 #include <openssl/evp.h>
22256 if ac_fn_c_try_link "$LINENO"; then :
22258 ac_cv_openssl_export="no"
22262 ac_cv_openssl_export="yes"
22266 rm -f core conftest.err conftest.$ac_objext \
22267 conftest$ac_exeext conftest.$ac_ext
22269 if test "$support_tls" = "yes"; then
22271 $as_echo "#define HAVE_OPENSSL 1" >>confdefs.h
22274 $as_echo "#define HAVE_TLS 1" >>confdefs.h
22277 $as_echo "#define HAVE_CRYPTO 1" >>confdefs.h
22281 if test "$ac_cv_openssl_sha2" = "yes"; then
22283 $as_echo "#define HAVE_SHA2 1" >>confdefs.h
22287 if test "$ac_cv_openssl_export" = "yes"; then
22289 $as_echo "#define HAVE_OPENSSL_EXPORT_LIBRARY 1" >>confdefs.h
22293 if test "$support_crypto" = "yes"; then
22294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVP_PKEY_encrypt_old in -lcrypto" >&5
22295 $as_echo_n "checking for EVP_PKEY_encrypt_old in -lcrypto... " >&6; }
22296 if ${ac_cv_lib_crypto_EVP_PKEY_encrypt_old+:} false; then :
22297 $as_echo_n "(cached) " >&6
22299 ac_check_lib_save_LIBS=$LIBS
22300 LIBS="-lcrypto $LIBS"
22301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22302 /* end confdefs.h. */
22304 /* Override any GCC internal prototype to avoid an error.
22305 Use char because int might match the return type of a GCC
22306 builtin and then its argument prototype would still apply. */
22310 char EVP_PKEY_encrypt_old ();
22314 return EVP_PKEY_encrypt_old ();
22319 if ac_fn_c_try_link "$LINENO"; then :
22320 ac_cv_lib_crypto_EVP_PKEY_encrypt_old=yes
22322 ac_cv_lib_crypto_EVP_PKEY_encrypt_old=no
22324 rm -f core conftest.err conftest.$ac_objext \
22325 conftest$ac_exeext conftest.$ac_ext
22326 LIBS=$ac_check_lib_save_LIBS
22328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_EVP_PKEY_encrypt_old" >&5
22329 $as_echo "$ac_cv_lib_crypto_EVP_PKEY_encrypt_old" >&6; }
22330 if test "x$ac_cv_lib_crypto_EVP_PKEY_encrypt_old" = xyes; then :
22332 $as_echo "#define HAVE_OPENSSLv1 1" >>confdefs.h
22338 LIBS="${saved_LIBS}"
22339 CFLAGS="${saved_CFLAGS}"
22342 support_crypto="no"
22346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $support_tls" >&5
22347 $as_echo "$support_tls" >&6; }
22349 if test "$support_tls" = "no"; then
22353 if test "$support_crypto" = "no"; then
22361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
22362 $as_echo_n "checking for library containing dlopen... " >&6; }
22363 if ${ac_cv_search_dlopen+:} false; then :
22364 $as_echo_n "(cached) " >&6
22366 ac_func_search_save_LIBS=$LIBS
22367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22368 /* end confdefs.h. */
22370 /* Override any GCC internal prototype to avoid an error.
22371 Use char because int might match the return type of a GCC
22372 builtin and then its argument prototype would still apply. */
22385 for ac_lib in '' dl; do
22386 if test -z "$ac_lib"; then
22387 ac_res="none required"
22390 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22392 if ac_fn_c_try_link "$LINENO"; then :
22393 ac_cv_search_dlopen=$ac_res
22395 rm -f core conftest.err conftest.$ac_objext \
22397 if ${ac_cv_search_dlopen+:} false; then :
22401 if ${ac_cv_search_dlopen+:} false; then :
22404 ac_cv_search_dlopen=no
22406 rm conftest.$ac_ext
22407 LIBS=$ac_func_search_save_LIBS
22409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
22410 $as_echo "$ac_cv_search_dlopen" >&6; }
22411 ac_res=$ac_cv_search_dlopen
22412 if test "$ac_res" != no; then :
22413 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22418 working_dir=`eval echo ${prefix}/var/bacula/working`
22420 # Check whether --with-working-dir was given.
22421 if test "${with_working_dir+set}" = set; then :
22422 withval=$with_working_dir;
22423 if test "x$withval" != "xno" ; then
22424 working_dir=$withval
22435 # Check whether --with-archivedir was given.
22436 if test "${with_archivedir+set}" = set; then :
22437 withval=$with_archivedir;
22438 if test "x$withval" != "xno" ; then
22439 archivedir=$withval
22448 basename=`hostname`
22450 # Check whether --with-basename was given.
22451 if test "${with_basename+set}" = set; then :
22452 withval=$with_basename;
22453 if test "x$withval" != "xno" ; then
22463 hostname=`uname -n | cut -d '.' -f 1`
22464 if test x${hostname} = x ; then
22465 hostname="localhost"
22468 # Check whether --with-hostname was given.
22469 if test "${with_hostname+set}" = set; then :
22470 withval=$with_hostname;
22471 if test "x$withval" != "xno" ; then
22482 scriptdir=`eval echo ${sysconfdir}`
22484 # Check whether --with-scriptdir was given.
22485 if test "${with_scriptdir+set}" = set; then :
22486 withval=$with_scriptdir;
22487 if test "x$withval" != "xno" ; then
22500 # Check whether --with-bsrdir was given.
22501 if test "${with_bsrdir+set}" = set; then :
22502 withval=$with_bsrdir;
22503 if test "x$withval" != "xno" ; then
22515 # Check whether --with-logdir was given.
22516 if test "${with_logdir+set}" = set; then :
22517 withval=$with_logdir;
22518 if test "x$withval" != "xno" ; then
22529 # ------------------------------------------
22530 # Where to place plugindir (plugin files)
22531 # ------------------------------------------
22532 plugindir=`eval echo ${libdir}`
22534 # Check whether --with-plugindir was given.
22535 if test "${with_plugindir+set}" = set; then :
22536 withval=$with_plugindir;
22537 if test "x$withval" != "xno" ; then
22547 dump_email=root@localhost
22549 # Check whether --with-dump-email was given.
22550 if test "${with_dump_email+set}" = set; then :
22551 withval=$with_dump_email;
22552 if test "x$withval" != "xno" ; then
22553 dump_email=$withval
22562 job_email=root@localhost
22564 # Check whether --with-job-email was given.
22565 if test "${with_job_email+set}" = set; then :
22566 withval=$with_job_email;
22567 if test "x$withval" != "xno" ; then
22577 smtp_host=localhost
22579 # Check whether --with-smtp_host was given.
22580 if test "${with_smtp_host+set}" = set; then :
22581 withval=$with_smtp_host;
22582 if test "x$withval" != "xno" ; then
22594 # Check whether --with-pid-dir was given.
22595 if test "${with_pid_dir+set}" = set; then :
22596 withval=$with_pid_dir;
22597 if test "x$withval" != "xno" ; then
22605 cat >>confdefs.h <<_ACEOF
22606 #define _PATH_BACULA_PIDDIR "$piddir"
22611 subsysdir=/var/run/subsys
22612 if test -d /var/run/subsys; then
22613 subsysdir=/var/run/subsys
22614 elif test -d /var/lock/subsys; then
22615 subsysdir=/var/lock/subsys
22617 subsysdir=/var/run/subsys
22620 # Check whether --with-subsys-dir was given.
22621 if test "${with_subsys_dir+set}" = set; then :
22622 withval=$with_subsys_dir;
22623 if test "x$withval" != "xno" ; then
22635 # Check whether --with-baseport was given.
22636 if test "${with_baseport+set}" = set; then :
22637 withval=$with_baseport;
22638 if test "x$withval" != "xno" ; then
22647 dir_port=`expr $baseport`
22648 fd_port=`expr $baseport + 1`
22649 sd_port=`expr $fd_port + 1`
22657 # Check whether --with-dir-password was given.
22658 if test "${with_dir_password+set}" = set; then :
22659 withval=$with_dir_password;
22660 if test "x$withval" != "xno" ; then
22661 dir_password=$withval
22668 if test "x$dir_password" = "x" ; then
22669 if test "x$OPENSSL" = "xnone" ; then
22670 key=`autoconf/randpass 33`
22672 key=`openssl rand -base64 33`
22679 # Check whether --with-fd-password was given.
22680 if test "${with_fd_password+set}" = set; then :
22681 withval=$with_fd_password;
22682 if test "x$withval" != "xno" ; then
22683 fd_password=$withval
22690 if test "x$fd_password" = "x" ; then
22691 if test "x$OPENSSL" = "xnone" ; then
22692 key=`autoconf/randpass 37`
22694 key=`openssl rand -base64 33`
22701 # Check whether --with-sd-password was given.
22702 if test "${with_sd_password+set}" = set; then :
22703 withval=$with_sd_password;
22704 if test "x$withval" != "xno" ; then
22705 sd_password=$withval
22712 if test "x$sd_password" = "x" ; then
22713 if test "x$OPENSSL" = "xnone" ; then
22714 key=`autoconf/randpass 41`
22716 key=`openssl rand -base64 33`
22723 # Check whether --with-mon-dir-password was given.
22724 if test "${with_mon_dir_password+set}" = set; then :
22725 withval=$with_mon_dir_password;
22726 if test "x$withval" != "xno" ; then
22727 mon_dir_password=$withval
22734 if test "x$mon_dir_password" = "x" ; then
22735 if test "x$OPENSSL" = "xnone" ; then
22736 key=`autoconf/randpass 33`
22738 key=`openssl rand -base64 33`
22740 mon_dir_password=$key
22745 # Check whether --with-mon-fd-password was given.
22746 if test "${with_mon_fd_password+set}" = set; then :
22747 withval=$with_mon_fd_password;
22748 if test "x$withval" != "xno" ; then
22749 mon_fd_password=$withval
22756 if test "x$mon_fd_password" = "x" ; then
22757 if test "x$OPENSSL" = "xnone" ; then
22758 key=`autoconf/randpass 37`
22760 key=`openssl rand -base64 33`
22762 mon_fd_password=$key
22767 # Check whether --with-mon-sd-password was given.
22768 if test "${with_mon_sd_password+set}" = set; then :
22769 withval=$with_mon_sd_password;
22770 if test "x$withval" != "xno" ; then
22771 mon_sd_password=$withval
22778 if test "x$mon_sd_password" = "x" ; then
22779 if test "x$OPENSSL" = "xnone" ; then
22780 key=`autoconf/randpass 41`
22782 key=`openssl rand -base64 33`
22784 mon_sd_password=$key
22796 # Check whether --with-db_name was given.
22797 if test "${with_db_name+set}" = set; then :
22798 withval=$with_db_name;
22799 if test "x$withval" != "x" ; then
22810 # Check whether --with-db_user was given.
22811 if test "${with_db_user+set}" = set; then :
22812 withval=$with_db_user;
22813 if test "x$withval" != "x" ; then
22824 # Check whether --with-db_password was given.
22825 if test "${with_db_password+set}" = set; then :
22826 withval=$with_db_password;
22827 if test "x$withval" != "x" ; then
22828 db_password=$withval
22838 # Check whether --with-db_port was given.
22839 if test "${with_db_port+set}" = set; then :
22840 withval=$with_db_port;
22841 if test "x$withval" != "x" ; then
22851 # Handle users and groups for each daemon
22855 # Check whether --with-dir_user was given.
22856 if test "${with_dir_user+set}" = set; then :
22857 withval=$with_dir_user;
22858 if test "x$withval" != "x" ; then
22868 # Check whether --with-dir_group was given.
22869 if test "${with_dir_group+set}" = set; then :
22870 withval=$with_dir_group;
22871 if test "x$withval" != "x" ; then
22881 # Check whether --with-sd_user was given.
22882 if test "${with_sd_user+set}" = set; then :
22883 withval=$with_sd_user;
22884 if test "x$withval" != "x" ; then
22894 # Check whether --with-sd_group was given.
22895 if test "${with_sd_group+set}" = set; then :
22896 withval=$with_sd_group;
22897 if test "x$withval" != "x" ; then
22907 # Check whether --with-fd_user was given.
22908 if test "${with_fd_user+set}" = set; then :
22909 withval=$with_fd_user;
22910 if test "x$withval" != "x" ; then
22920 # Check whether --with-fd_group was given.
22921 if test "${with_fd_group+set}" = set; then :
22922 withval=$with_fd_group;
22923 if test "x$withval" != "x" ; then
22940 # Check whether --with-sbin-perm was given.
22941 if test "${with_sbin_perm+set}" = set; then :
22942 withval=$with_sbin_perm;
22943 if test "x$withval" != "x" ; then
22954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PostgreSQL support" >&5
22955 $as_echo_n "checking for PostgreSQL support... " >&6; }
22957 # Check whether --with-postgresql was given.
22958 if test "${with_postgresql+set}" = set; then :
22959 withval=$with_postgresql;
22960 if test "$withval" != "no"; then
22961 if test "$withval" = "yes"; then
22962 PG_CONFIG=`which pg_config`
22963 if test -n "$PG_CONFIG"; then
22964 POSTGRESQL_INCDIR=`"$PG_CONFIG" --includedir`
22965 POSTGRESQL_LIBDIR=`"$PG_CONFIG" --libdir`
22966 POSTGRESQL_BINDIR=`"$PG_CONFIG" --bindir`
22967 elif test -f /usr/local/include/libpq-fe.h; then
22968 POSTGRESQL_INCDIR=/usr/local/include
22969 if test -d /usr/local/lib64; then
22970 POSTGRESQL_LIBDIR=/usr/local/lib64
22972 POSTGRESQL_LIBDIR=/usr/local/lib
22974 POSTGRESQL_BINDIR=/usr/local/bin
22975 elif test -f /usr/include/libpq-fe.h; then
22976 POSTGRESQL_INCDIR=/usr/include
22977 if test -d /usr/lib64; then
22978 POSTGRESQL_LIBDIR=/usr/lib64
22980 POSTGRESQL_LIBDIR=/usr/lib
22982 POSTGRESQL_BINDIR=/usr/bin
22983 elif test -f /usr/include/pgsql/libpq-fe.h; then
22984 POSTGRESQL_INCDIR=/usr/include/pgsql
22985 if test -d /usr/lib64/pgsql; then
22986 POSTGRESQL_LIBDIR=/usr/lib64/pgsql
22988 POSTGRESQL_LIBDIR=/usr/lib/pgsql
22990 POSTGRESQL_BINDIR=/usr/bin
22991 elif test -f /usr/include/postgresql/libpq-fe.h; then
22992 POSTGRESQL_INCDIR=/usr/include/postgresql
22993 if test -d /usr/lib64/postgresql; then
22994 POSTGRESQL_LIBDIR=/usr/lib64/postgresql
22996 POSTGRESQL_LIBDIR=/usr/lib/postgresql
22998 POSTGRESQL_BINDIR=/usr/bin
23000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23001 $as_echo "no" >&6; }
23002 as_fn_error $? "Unable to find libpq-fe.h in standard locations" "$LINENO" 5
23004 elif test -f $withval/include/libpq-fe.h; then
23005 POSTGRESQL_INCDIR=$withval/include
23006 POSTGRESQL_LIBDIR=$withval/lib
23007 POSTGRESQL_BINDIR=$withval/bin
23008 elif test -f $withval/include/postgresql/libpq-fe.h; then
23009 POSTGRESQL_INCDIR=$withval/include/postgresql
23010 if test -d $withval/lib64; then
23011 POSTGRESQL_LIBDIR=$withval/lib64
23013 POSTGRESQL_LIBDIR=$withval/lib
23015 POSTGRESQL_BINDIR=$withval/bin
23017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23018 $as_echo "no" >&6; }
23019 as_fn_error $? "Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" "$LINENO" 5
23022 $as_echo "#define HAVE_POSTGRESQL 1" >>confdefs.h
23024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23025 $as_echo "yes" >&6; }
23027 POSTGRESQL_INCLUDE=-I$POSTGRESQL_INCDIR
23028 POSTGRESQL_LIBS="-R $POSTGRESQL_LIBDIR -L$POSTGRESQL_LIBDIR -lpq"
23029 ac_fn_c_check_func "$LINENO" "crypt" "ac_cv_func_crypt"
23030 if test "x$ac_cv_func_crypt" = xyes; then :
23033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
23034 $as_echo_n "checking for crypt in -lcrypt... " >&6; }
23035 if ${ac_cv_lib_crypt_crypt+:} false; then :
23036 $as_echo_n "(cached) " >&6
23038 ac_check_lib_save_LIBS=$LIBS
23039 LIBS="-lcrypt $LIBS"
23040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23041 /* end confdefs.h. */
23043 /* Override any GCC internal prototype to avoid an error.
23044 Use char because int might match the return type of a GCC
23045 builtin and then its argument prototype would still apply. */
23058 if ac_fn_c_try_link "$LINENO"; then :
23059 ac_cv_lib_crypt_crypt=yes
23061 ac_cv_lib_crypt_crypt=no
23063 rm -f core conftest.err conftest.$ac_objext \
23064 conftest$ac_exeext conftest.$ac_ext
23065 LIBS=$ac_check_lib_save_LIBS
23067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
23068 $as_echo "$ac_cv_lib_crypt_crypt" >&6; }
23069 if test "x$ac_cv_lib_crypt_crypt" = xyes; then :
23070 POSTGRESQL_LIBS="$POSTGRESQL_LIBS -lcrypt"
23075 POSTGRESQL_LIB=$POSTGRESQL_LIBDIR/libpq.a
23076 DB_LIBS="${DB_LIBS} ${POSTGRESQL_LIBS}"
23078 if test -z "${db_backends}"; then
23079 db_backends="PostgreSQL"
23081 db_backends="${db_backends} PostgreSQL"
23083 if test -z "${DB_BACKENDS}"; then
23084 DB_BACKENDS="postgresql"
23086 DB_BACKENDS="${DB_BACKENDS} postgresql"
23089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23090 $as_echo "no" >&6; }
23095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23096 $as_echo "no" >&6; }
23107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MySQL support" >&5
23108 $as_echo_n "checking for MySQL support... " >&6; }
23110 # Check whether --with-mysql was given.
23111 if test "${with_mysql+set}" = set; then :
23112 withval=$with_mysql;
23113 if test "$withval" != "no"; then
23114 if test "$withval" = "yes"; then
23115 if test -f /usr/local/mysql/include/mysql/mysql.h; then
23116 MYSQL_INCDIR=/usr/local/mysql/include/mysql
23117 if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
23118 -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
23119 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
23121 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
23123 MYSQL_BINDIR=/usr/local/mysql/bin
23124 elif test -f /usr/include/mysql/mysql.h; then
23125 MYSQL_INCDIR=/usr/include/mysql
23126 if test -f /usr/lib64/mysql/libmysqlclient_r.a \
23127 -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
23128 MYSQL_LIBDIR=/usr/lib64/mysql
23129 elif test -f /usr/lib64/libmysqlclient_r.a \
23130 -o -f /usr/lib64/libmysqlclient_r.so; then
23131 MYSQL_LIBDIR=/usr/lib64
23132 elif test -f /usr/lib/mysql/libmysqlclient_r.a \
23133 -o -f /usr/lib/mysql/libmysqlclient_r.so; then
23134 MYSQL_LIBDIR=/usr/lib/mysql
23136 MYSQL_LIBDIR=/usr/lib
23138 MYSQL_BINDIR=/usr/bin
23139 elif test -f /usr/include/mysql.h; then
23140 MYSQL_INCDIR=/usr/include
23141 if test -f /usr/lib64/libmysqlclient_r.a \
23142 -o -f /usr/lib64/libmysqlclient_r.so; then
23143 MYSQL_LIBDIR=/usr/lib64
23145 MYSQL_LIBDIR=/usr/lib
23147 MYSQL_BINDIR=/usr/bin
23148 elif test -f /usr/local/include/mysql/mysql.h; then
23149 MYSQL_INCDIR=/usr/local/include/mysql
23150 if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
23151 -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
23152 MYSQL_LIBDIR=/usr/local/lib64/mysql
23154 MYSQL_LIBDIR=/usr/local/lib/mysql
23156 MYSQL_BINDIR=/usr/local/bin
23157 elif test -f /usr/local/include/mysql.h; then
23158 MYSQL_INCDIR=/usr/local/include
23159 if test -f /usr/local/lib64/libmysqlclient_r.a \
23160 -o -f /usr/local/lib64/libmysqlclient_r.so; then
23161 MYSQL_LIBDIR=/usr/local/lib64
23163 MYSQL_LIBDIR=/usr/local/lib
23165 MYSQL_BINDIR=/usr/local/bin
23167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23168 $as_echo "no" >&6; }
23169 as_fn_error $? "Unable to find mysql.h in standard locations" "$LINENO" 5
23172 if test -f $withval/include/mysql/mysql.h; then
23173 MYSQL_INCDIR=$withval/include/mysql
23174 if test -f $withval/lib64/mysql/libmysqlclient_r.a \
23175 -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
23176 MYSQL_LIBDIR=$withval/lib64/mysql
23177 elif test -f $withval/lib64/libmysqlclient_r.a \
23178 -o -f $withval/lib64/libmysqlclient_r.so; then
23179 MYSQL_LIBDIR=$withval/lib64
23180 elif test -f $withval/lib/libmysqlclient_r.a \
23181 -o -f $withval/lib/libmysqlclient_r.so; then
23182 MYSQL_LIBDIR=$withval/lib
23184 MYSQL_LIBDIR=$withval/lib/mysql
23186 MYSQL_BINDIR=$withval/bin
23187 elif test -f $withval/include/mysql.h; then
23188 MYSQL_INCDIR=$withval/include
23189 if test -f $withval/lib64/libmysqlclient_r.a \
23190 -o -f $withval/lib64/libmysqlclient_r.so; then
23191 MYSQL_LIBDIR=$withval/lib64
23193 MYSQL_LIBDIR=$withval/lib
23195 MYSQL_BINDIR=$withval/bin
23197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23198 $as_echo "no" >&6; }
23199 as_fn_error $? "Invalid MySQL directory $withval - unable to find mysql.h under $withval" "$LINENO" 5
23202 MYSQL_INCLUDE=-I$MYSQL_INCDIR
23203 if test -f $MYSQL_LIBDIR/libmysqlclient_r.a \
23204 -o -f $MYSQL_LIBDIR/libmysqlclient_r.so; then
23205 MYSQL_LIBS="-R $MYSQL_LIBDIR -L$MYSQL_LIBDIR -lmysqlclient_r -lz"
23207 $as_echo "#define HAVE_THREAD_SAFE_MYSQL 1" >>confdefs.h
23209 DB_LIBS="${DB_LIBS} ${MYSQL_LIBS}"
23211 MYSQL_LIB=$MYSQL_LIBDIR/libmysqlclient_r.a
23214 $as_echo "#define HAVE_MYSQL 1" >>confdefs.h
23216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23217 $as_echo "yes" >&6; }
23219 if test -z "${db_backends}" ; then
23220 db_backends="MySQL"
23222 db_backends="${db_backends} MySQL"
23224 if test -z "${DB_BACKENDS}" ; then
23225 DB_BACKENDS="mysql"
23227 DB_BACKENDS="${DB_BACKENDS} mysql"
23230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23231 $as_echo "no" >&6; }
23239 # Check whether --with-embedded-mysql was given.
23240 if test "${with_embedded_mysql+set}" = set; then :
23241 withval=$with_embedded_mysql;
23242 if test "$withval" != "no"; then
23243 if test "$withval" = "yes"; then
23244 if test -f /usr/local/mysql/include/mysql/mysql.h; then
23245 MYSQL_INCDIR=/usr/local/mysql/include/mysql
23246 if test -d /usr/local/mysql/lib64/mysql; then
23247 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
23249 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
23251 MYSQL_BINDIR=/usr/local/mysql/bin
23252 elif test -f /usr/include/mysql/mysql.h; then
23253 MYSQL_INCDIR=/usr/include/mysql
23254 if test -d /usr/lib64/mysql; then
23255 MYSQL_LIBDIR=/usr/lib64/mysql
23257 MYSQL_LIBDIR=/usr/lib/mysql
23259 MYSQL_BINDIR=/usr/bin
23260 elif test -f /usr/include/mysql.h; then
23261 MYSQL_INCDIR=/usr/include
23262 if test -d /usr/lib64; then
23263 MYSQL_LIBDIR=/usr/lib64
23265 MYSQL_LIBDIR=/usr/lib
23267 MYSQL_BINDIR=/usr/bin
23268 elif test -f /usr/local/include/mysql/mysql.h; then
23269 MYSQL_INCDIR=/usr/local/include/mysql
23270 if test -d /usr/local/lib64/mysql; then
23271 MYSQL_LIBDIR=/usr/local/lib64/mysql
23273 MYSQL_LIBDIR=/usr/local/lib/mysql
23275 MYSQL_BINDIR=/usr/local/bin
23276 elif test -f /usr/local/include/mysql.h; then
23277 MYSQL_INCDIR=/usr/local/include
23278 if test -d /usr/local/lib64; then
23279 MYSQL_LIBDIR=/usr/local/lib64
23281 MYSQL_LIBDIR=/usr/local/lib
23283 MYSQL_BINDIR=/usr/local/bin
23285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23286 $as_echo "no" >&6; }
23287 as_fn_error $? "Unable to find mysql.h in standard locations" "$LINENO" 5
23290 if test -f $withval/include/mysql/mysql.h; then
23291 MYSQL_INCDIR=$withval/include/mysql
23292 if test -d $withval/lib64/mysql; then
23293 MYSQL_LIBDIR=$withval/lib64/mysql
23295 MYSQL_LIBDIR=$withval/lib/mysql
23297 MYSQL_BINDIR=$withval/bin
23298 elif test -f $withval/include/mysql.h; then
23299 MYSQL_INCDIR=$withval/include
23300 if test -d $withval/lib64; then
23301 MYSQL_LIBDIR=$withval/lib64
23303 MYSQL_LIBDIR=$withval/lib
23305 MYSQL_BINDIR=$withval/bin
23307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23308 $as_echo "no" >&6; }
23309 as_fn_error $? "Invalid MySQL directory $withval - unable to find mysql.h under $withval" "$LINENO" 5
23312 MYSQL_INCLUDE=-I$MYSQL_INCDIR
23313 MYSQL_LIBS="-R $MYSQL_LIBDIR -L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
23314 MYSQL_LIB=$MYSQL_LIBDIR/libmysqld.a
23315 DB_LIBS="${DB_LIBS} ${MYSQL_LIBS}"
23318 $as_echo "#define HAVE_MYSQL 1" >>confdefs.h
23321 $as_echo "#define HAVE_EMBEDDED_MYSQL 1" >>confdefs.h
23323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23324 $as_echo "yes" >&6; }
23326 if test -z "${db_backends}"; then
23327 db_backends="MySQL"
23329 db_backends="${db_backends} MySQL"
23331 if test -z "${DB_BACKENDS}"; then
23332 DB_BACKENDS="mysql"
23334 DB_BACKENDS="${DB_BACKENDS} mysql"
23337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23338 $as_echo "no" >&6; }
23352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLite3 support" >&5
23353 $as_echo_n "checking for SQLite3 support... " >&6; }
23355 # Check whether --with-sqlite3 was given.
23356 if test "${with_sqlite3+set}" = set; then :
23357 withval=$with_sqlite3;
23358 if test "$withval" != "no"; then
23359 if test "$withval" = "yes"; then
23360 if test -f /usr/local/include/sqlite3.h; then
23361 SQLITE_INCDIR=/usr/local/include
23362 if test -d /usr/local/lib64; then
23363 SQLITE_LIBDIR=/usr/local/lib64
23365 SQLITE_LIBDIR=/usr/local/lib
23367 SQLITE_BINDIR=/usr/local/bin
23368 elif test -f /usr/include/sqlite3.h; then
23369 SQLITE_INCDIR=/usr/include
23370 if test -d /usr/lib64; then
23371 SQLITE_LIBDIR=/usr/lib64
23373 SQLITE_LIBDIR=/usr/lib
23375 SQLITE_BINDIR=/usr/bin
23376 elif test -f $prefix/include/sqlite3.h; then
23377 SQLITE_INCDIR=$prefix/include
23378 if test -d $prefix/lib64; then
23379 SQLITE_LIBDIR=$prefix/lib64
23381 SQLITE_LIBDIR=$prefix/lib
23383 SQLITE_BINDIR=$prefix/bin
23385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23386 $as_echo "no" >&6; }
23387 as_fn_error $? "Unable to find sqlite3.h in standard locations" "$LINENO" 5
23390 if test -f $withval/sqlite3.h; then
23391 SQLITE_INCDIR=$withval
23392 SQLITE_LIBDIR=$withval
23393 SQLITE_BINDIR=$withval
23394 elif test -f $withval/include/sqlite3.h; then
23395 SQLITE_INCDIR=$withval/include
23396 if test -d $withval/lib64; then
23397 SQLITE_LIBDIR=$withval/lib64
23399 SQLITE_LIBDIR=$withval/lib
23401 SQLITE_BINDIR=$withval/bin
23403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23404 $as_echo "no" >&6; }
23405 as_fn_error $? "Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" "$LINENO" 5
23408 SQLITE_INCLUDE=-I$SQLITE_INCDIR
23409 SQLITE_LIBS="-R $SQLITE_LIBDIR -L$SQLITE_LIBDIR -lsqlite3"
23410 SQLITE_LIB=$SQLITE_LIBDIR/libsqlite3.a
23411 DB_LIBS="${DB_LIBS} ${SQLITE_LIBS}"
23414 $as_echo "#define HAVE_SQLITE3 1" >>confdefs.h
23416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23417 $as_echo "yes" >&6; }
23419 if test -z "${db_backends}"; then
23420 db_backends="SQLite3"
23422 db_backends="${db_backends} SQLite3"
23424 if test -z "${DB_BACKENDS}"; then
23425 DB_BACKENDS="sqlite3"
23427 DB_BACKENDS="${DB_BACKENDS} sqlite3"
23430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23431 $as_echo "no" >&6; }
23436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23437 $as_echo "no" >&6; }
23448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ingres support" >&5
23449 $as_echo_n "checking for Ingres support... " >&6; }
23451 # Check whether --with-ingres was given.
23452 if test "${with_ingres+set}" = set; then :
23453 withval=$with_ingres;
23454 if test "$withval" != "no"; then
23455 if test "$withval" = "yes"; then
23456 if test -f ${II_SYSTEM}/files/eqdefc.h; then
23457 INGRES_INCDIR=${II_SYSTEM}/files
23458 INGRES_LIBDIR=${II_SYSTEM}/lib
23459 INGRES_BINDIR=${II_SYSTEM}/bin
23460 elif test -f ${II_SYSTEM}/ingres/files/eqdefc.h; then
23461 INGRES_INCDIR=${II_SYSTEM}/ingres/files
23462 INGRES_LIBDIR=${II_SYSTEM}/ingres/lib
23463 INGRES_BINDIR=${II_SYSTEM}/ingres/bin
23465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23466 $as_echo "no" >&6; }
23467 as_fn_error $? "Unable to find eqdefc.h in standard locations" "$LINENO" 5
23470 if test -f $withval/files/eqdefc.h; then
23471 INGRES_INCDIR=$withval/files
23472 INGRES_LIBDIR=$withval/lib
23473 INGRES_BINDIR=$withval/bin
23475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23476 $as_echo "no" >&6; }
23477 as_fn_error $? "Invalid Ingres directory $withval - unable to find Ingres headers under $withval" "$LINENO" 5
23480 INGRES_INCLUDE=-I$INGRES_INCDIR
23481 INGRES_LIBS="-R $INGRES_LIBDIR -L$INGRES_LIBDIR -lq.1 -lcompat.1 -lframe.1"
23482 DB_LIBS="${DB_LIBS} ${INGRES_LIBS}"
23484 $as_echo "#define HAVE_INGRES 1" >>confdefs.h
23486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23487 $as_echo "yes" >&6; }
23489 if test -z "${db_backends}"; then
23490 db_backends="Ingres"
23492 db_backends="${db_backends} Ingres"
23494 if test -z "${DB_BACKENDS}"; then
23495 DB_BACKENDS="ingres"
23497 DB_BACKENDS="${DB_BACKENDS} ingres"
23500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23501 $as_echo "no" >&6; }
23506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23507 $as_echo "no" >&6; }
23518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DBI support" >&5
23519 $as_echo_n "checking for DBI support... " >&6; }
23521 # Check whether --with-dbi was given.
23522 if test "${with_dbi+set}" = set; then :
23524 if test "$withval" != "no"; then
23525 if test "$withval" = "yes"; then
23526 if test -f /usr/local/include/dbi/dbi.h; then
23527 DBI_INCDIR=/usr/local/dbi/include
23528 if test -d /usr/local/lib64; then
23529 DBI_LIBDIR=/usr/local/lib64
23531 DBI_LIBDIR=/usr/local/lib
23533 DBI_BINDIR=/usr/local/bin
23534 elif test -f /usr/include/dbi/dbi.h; then
23535 DBI_INCDIR=/usr/include
23536 if test -d /usr/lib64; then
23537 DBI_LIBDIR=/usr/lib64
23539 DBI_LIBDIR=/usr/lib
23541 DBI_BINDIR=/usr/bin
23542 elif test -f $prefix/include/dbi/dbi.h; then
23543 DBI_INCDIR=$prefix/include
23544 if test -d $prefix/lib64; then
23545 DBI_LIBDIR=$prefix/lib64
23547 DBI_LIBDIR=$prefix/lib
23549 DBI_BINDIR=$prefix/bin
23551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23552 $as_echo "no" >&6; }
23553 as_fn_error $? "Unable to find dbi.h in standard locations" "$LINENO" 5
23555 if test -d /usr/local/lib/dbd; then
23556 DRIVERDIR=/usr/local/lib/dbd
23557 if test -d /usr/local/lib64/dbd; then
23558 DRIVERDIR=/usr/local/lib64/dbd
23560 DRIVERDIR=/usr/local/lib/dbd
23562 elif test -d /usr/lib/dbd; then
23563 DRIVERDIR=/usr/lib/dbd
23564 if test -d /usr/lib64/dbd; then
23565 DRIVERDIR=/usr/lib64/dbd
23567 DRIVERDIR=/usr/lib/dbd
23569 elif test -d $prefix/lib/dbd; then
23570 if test -d $prefix/lib64/dbd; then
23571 DRIVERDIR=$prefix/lib64/dbd
23573 DRIVERDIR=$prefix/lib/dbd
23575 elif test -d /usr/local/lib64/dbd; then
23576 DRIVERDIR=/usr/local/lib64/dbd
23577 elif test -d /usr/lib64/dbd; then
23578 DRIVERDIR=/usr/lib64/dbd
23579 elif test -d $prefix/lib64/dbd; then
23580 DRIVERDIR=$prefix/lib64/dbd
23582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23583 $as_echo "no" >&6; }
23584 as_fn_error $? "Unable to find DBD drivers in standard locations" "$LINENO" 5
23587 if test -f $withval/dbi.h; then
23588 DBI_INCDIR=$withval
23589 DBI_LIBDIR=$withval
23590 DBI_BINDIR=$withval
23591 elif test -f $withval/include/dbi/dbi.h; then
23592 DBI_INCDIR=$withval/include
23593 if test -d $withval/lib64; then
23594 DBI_LIBDIR=$withval/lib64
23596 DBI_LIBDIR=$withval/lib
23598 DBI_BINDIR=$withval/bin
23600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23601 $as_echo "no" >&6; }
23602 as_fn_error $? "Invalid DBI directory $withval - unable to find dbi.h under $withval" "$LINENO" 5
23604 if test -d $withval/dbd; then
23605 DRIVERDIR=$withval/dbd
23606 elif test -d $withval/lib/; then
23607 if test -d $withval/lib64/dbd; then
23608 DRIVERDIR=$withval/lib64/dbd
23610 DRIVERDIR=$withval/lib/dbd
23612 elif test -d $withval/lib64/dbd; then
23613 DRIVERDIR=$withval/lib64/dbd
23615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23616 $as_echo "no" >&6; }
23617 as_fn_error $? "Invalid DBD driver directory $withval - unable to find DBD drivers under $withval" "$LINENO" 5
23620 DBI_INCLUDE=-I$DBI_INCDIR
23621 DBI_LIBS="-R $DBI_LIBDIR -L$DBI_LIBDIR -ldbi"
23622 DBI_LIB=$DBI_LIBDIR/libdbi.a
23623 DBI_DBD_DRIVERDIR="-D DBI_DRIVER_DIR=\\\"$DRIVERDIR\\\""
23624 DB_LIBS="${DB_LIBS} ${DBI_LIBS}"
23627 $as_echo "#define HAVE_DBI 1" >>confdefs.h
23629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23630 $as_echo "yes" >&6; }
23632 if test -z "${db_backends}"; then
23635 db_backends="${db_backends} DBI"
23637 if test -z "${DB_BACKENDS}" ; then
23640 DB_BACKENDS="${DB_BACKENDS} dbi"
23645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23646 $as_echo "no" >&6; }
23651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23652 $as_echo "no" >&6; }
23667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DBI drivers support" >&5
23668 $as_echo_n "checking for DBI drivers support... " >&6; }
23670 # Check whether --with-dbi-driver was given.
23671 if test "${with_dbi_driver+set}" = set; then :
23672 withval=$with_dbi_driver;
23673 if test "$withval" != "no"; then
23677 if test -f /usr/local/mysql/bin/mysql; then
23678 SQL_BINDIR=/usr/local/mysql/bin
23679 if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
23680 -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
23681 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
23683 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
23685 elif test -f /usr/bin/mysql; then
23686 SQL_BINDIR=/usr/bin
23687 if test -f /usr/lib64/mysql/libmysqlclient_r.a \
23688 -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
23689 MYSQL_LIBDIR=/usr/lib64/mysql
23690 elif test -f /usr/lib/mysql/libmysqlclient_r.a \
23691 -o -f /usr/lib/mysql/libmysqlclient_r.so; then
23692 MYSQL_LIBDIR=/usr/lib/mysql
23694 MYSQL_LIBDIR=/usr/lib
23696 elif test -f /usr/local/bin/mysql; then
23697 SQL_BINDIR=/usr/local/bin
23698 if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
23699 -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
23700 MYSQL_LIBDIR=/usr/local/lib64/mysql
23701 elif test -f /usr/local/lib/mysql/libmysqlclient_r.a \
23702 -o -f /usr/local/lib/mysql/libmysqlclient_r.so; then
23703 MYSQL_LIBDIR=/usr/local/lib/mysql
23705 MYSQL_LIBDIR=/usr/local/lib
23707 elif test -f $withval/bin/mysql; then
23708 SQL_BINDIR=$withval/bin
23709 if test -f $withval/lib64/mysql/libmysqlclient_r.a \
23710 -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
23711 MYSQL_LIBDIR=$withval/lib64/mysql
23712 elif test -f $withval/lib64/libmysqlclient_r.a \
23713 -o -f $withval/lib64/libmysqlclient_r.so; then
23714 MYSQL_LIBDIR=$withval/lib64
23715 elif test -f $withval/lib/libmysqlclient_r.a \
23716 -o -f $withval/lib/libmysqlclient_r.so; then
23717 MYSQL_LIBDIR=$withval/lib/
23719 MYSQL_LIBDIR=$withval/lib/mysql
23722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23723 $as_echo "no" >&6; }
23724 as_fn_error $? "Unable to find mysql in standard locations" "$LINENO" 5
23726 if test -f $SQL_LIBDIR/libmysqlclient_r.so; then
23727 DB_PROG_LIB=$SQL_LIBDIR/libmysqlclient_r.so
23729 DB_PROG_LIB=$SQL_LIBDIR/libmysqlclient_r.a
23733 db_prog="postgresql"
23734 PG_CONFIG=`which pg_config`
23735 if test -n "$PG_CONFIG"; then
23736 POSTGRESQL_BINDIR=`"$PG_CONFIG" --bindir`
23737 POSTGRESQL_LIBDIR=`"$PG_CONFIG" --libdir`
23738 elif test -f /usr/local/bin/psql; then
23739 POSTGRESQL_BINDIR=/usr/local/bin
23740 if test -d /usr/local/lib64; then
23741 POSTGRESQL_LIBDIR=/usr/local/lib64
23743 POSTGRESQL_LIBDIR=/usr/local/lib
23745 elif test -f /usr/bin/psql; then
23746 POSTGRESQL_BINDIR=/usr/local/bin
23747 if test -d /usr/lib64/postgresql; then
23748 POSTGRESQL_LIBDIR=/usr/lib64/postgresql
23749 elif test -d /usr/lib/postgresql; then
23750 POSTGRESQL_LIBDIR=/usr/lib/postgresql
23751 elif test -d /usr/lib64; then
23752 POSTGRESQL_LIBDIR=/usr/lib64
23754 POSTGRESQL_LIBDIR=/usr/lib
23756 elif test -f $withval/bin/psql; then
23757 POSTGRESQL_BINDIR=$withval/bin
23758 if test -d $withval/lib64; then
23759 POSTGRESQL_LIBDIR=$withval/lib64
23761 POSTGRESQL_LIBDIR=$withval/lib
23764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23765 $as_echo "no" >&6; }
23766 as_fn_error $? "Unable to find psql in standard locations" "$LINENO" 5
23768 if test -f $POSTGRESQL_LIBDIR/libpq.so; then
23769 DB_PROG_LIB=$POSTGRESQL_LIBDIR/libpq.so
23771 DB_PROG_LIB=$POSTGRESQL_LIBDIR/libpq.a
23776 if test -f /usr/local/bin/sqlite3; then
23777 SQLITE_BINDIR=/usr/local/bin
23778 if test -d /usr/local/lib64; then
23779 SQLITE_LIBDIR=/usr/local/lib64
23781 SQLITE_LIBDIR=/usr/local/lib
23783 elif test -f /usr/bin/sqlite3; then
23784 SQLITE_BINDIR=/usr/bin
23785 if test -d /usr/lib64; then
23786 SQLITE_LIBDIR=/usr/lib64
23788 SQLITE_LIBDIR=/usr/lib
23790 elif test -f $withval/bin/sqlite3; then
23791 SQLITE_BINDIR=$withval/bin
23792 if test -d $withval/lib64; then
23793 SQLITE_LIBDIR=$withval/lib64
23795 SQLITE_LIBDIR=$withval/lib
23798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23799 $as_echo "no" >&6; }
23800 as_fn_error $? "Unable to find sqlite in standard locations" "$LINENO" 5
23802 if test -f $SQLITE_LIBDIR/libsqlite3.so; then
23803 DB_PROG_LIB=$SQLITE_LIBDIR/libsqlite3.so
23805 DB_PROG_LIB=$SQLITE_LIBDIR/libsqlite3.a
23809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23810 $as_echo "no" >&6; }
23811 as_fn_error $? "Unable to set DBI driver. $withval is not supported" "$LINENO" 5
23815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23816 $as_echo "yes" >&6; }
23819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23820 $as_echo "no" >&6; }
23825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23826 $as_echo "no" >&6; }
23839 if test "x${db_backends}" = "x" ; then
23842 echo "You have not specified either --enable-client-only or one of the"
23843 echo "supported databases: MySQL, PostgreSQL, Ingres, SQLite3 or DBI."
23844 echo "This is not permitted. Please reconfigure."
23846 echo "Aborting the configuration ..."
23852 case `echo $DB_BACKENDS | wc -w | sed -e 's/^ *//'` in
23854 DEFAULT_DB_TYPE="${DB_BACKENDS}"
23855 if test x$use_libtool = xno; then
23856 SHARED_CATALOG_TARGETS=""
23858 SHARED_CATALOG_TARGETS="libbaccats-${DEFAULT_DB_TYPE}.la"
23862 DEFAULT_DB_TYPE=`echo ${DB_BACKENDS} | cut -d' ' -f1`
23864 if test x$use_libtool = xno; then
23867 echo "You have specified two or more of the"
23868 echo "supported databases: MySQL, PostgreSQL, Ingres, SQLite3 or DBI."
23869 echo "This is not permitted when not using libtool Please reconfigure."
23871 echo "Aborting the configuration ..."
23877 SHARED_CATALOG_TARGETS=""
23878 for db_type in ${DB_BACKENDS}
23880 if test -z "${SHARED_CATALOG_TARGETS}"; then
23881 SHARED_CATALOG_TARGETS="libbaccats-${db_type}.la"
23883 SHARED_CATALOG_TARGETS="${SHARED_CATALOG_TARGETS} libbaccats-${db_type}.la"
23889 if test x$use_libtool = xyes; then
23898 support_batch_insert=yes
23899 # Check whether --enable-batch-insert was given.
23900 if test "${enable_batch_insert+set}" = set; then :
23901 enableval=$enable_batch_insert;
23902 if test x$enableval = xno; then
23903 support_batch_insert=no
23910 if test x$support_batch_insert = xyes; then
23912 $as_echo "#define USE_BATCH_FILE_INSERT 1" >>confdefs.h
23916 if test ! -z "$MYSQL_LIB"; then
23917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql_thread_safe in -lmysql_r" >&5
23918 $as_echo_n "checking for mysql_thread_safe in -lmysql_r... " >&6; }
23919 if ${ac_cv_lib_mysql_r_mysql_thread_safe+:} false; then :
23920 $as_echo_n "(cached) " >&6
23922 ac_check_lib_save_LIBS=$LIBS
23923 LIBS="-lmysql_r $LIBS"
23924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23925 /* end confdefs.h. */
23927 /* Override any GCC internal prototype to avoid an error.
23928 Use char because int might match the return type of a GCC
23929 builtin and then its argument prototype would still apply. */
23933 char mysql_thread_safe ();
23937 return mysql_thread_safe ();
23942 if ac_fn_c_try_link "$LINENO"; then :
23943 ac_cv_lib_mysql_r_mysql_thread_safe=yes
23945 ac_cv_lib_mysql_r_mysql_thread_safe=no
23947 rm -f core conftest.err conftest.$ac_objext \
23948 conftest$ac_exeext conftest.$ac_ext
23949 LIBS=$ac_check_lib_save_LIBS
23951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mysql_r_mysql_thread_safe" >&5
23952 $as_echo "$ac_cv_lib_mysql_r_mysql_thread_safe" >&6; }
23953 if test "x$ac_cv_lib_mysql_r_mysql_thread_safe" = xyes; then :
23955 $as_echo "#define HAVE_MYSQL_THREAD_SAFE 1" >>confdefs.h
23961 if test ! -z "SQLITE_LIB"; then
23962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_threadsafe in -lsqlite3" >&5
23963 $as_echo_n "checking for sqlite3_threadsafe in -lsqlite3... " >&6; }
23964 if ${ac_cv_lib_sqlite3_sqlite3_threadsafe+:} false; then :
23965 $as_echo_n "(cached) " >&6
23967 ac_check_lib_save_LIBS=$LIBS
23968 LIBS="-lsqlite3 $LIBS"
23969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23970 /* end confdefs.h. */
23972 /* Override any GCC internal prototype to avoid an error.
23973 Use char because int might match the return type of a GCC
23974 builtin and then its argument prototype would still apply. */
23978 char sqlite3_threadsafe ();
23982 return sqlite3_threadsafe ();
23987 if ac_fn_c_try_link "$LINENO"; then :
23988 ac_cv_lib_sqlite3_sqlite3_threadsafe=yes
23990 ac_cv_lib_sqlite3_sqlite3_threadsafe=no
23992 rm -f core conftest.err conftest.$ac_objext \
23993 conftest$ac_exeext conftest.$ac_ext
23994 LIBS=$ac_check_lib_save_LIBS
23996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_threadsafe" >&5
23997 $as_echo "$ac_cv_lib_sqlite3_sqlite3_threadsafe" >&6; }
23998 if test "x$ac_cv_lib_sqlite3_sqlite3_threadsafe" = xyes; then :
24000 $as_echo "#define HAVE_SQLITE3_THREADSAFE 1" >>confdefs.h
24006 if test ! -z "$POSTGRESQL_LIB"; then
24007 saved_LIBS="${LIBS}"
24008 LIBS="${saved_LIBS} ${POSTGRESQL_LIB}"
24010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQisthreadsafe in -lpq" >&5
24011 $as_echo_n "checking for PQisthreadsafe in -lpq... " >&6; }
24012 if ${ac_cv_lib_pq_PQisthreadsafe+:} false; then :
24013 $as_echo_n "(cached) " >&6
24015 ac_check_lib_save_LIBS=$LIBS
24017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24018 /* end confdefs.h. */
24020 /* Override any GCC internal prototype to avoid an error.
24021 Use char because int might match the return type of a GCC
24022 builtin and then its argument prototype would still apply. */
24026 char PQisthreadsafe ();
24030 return PQisthreadsafe ();
24035 if ac_fn_c_try_link "$LINENO"; then :
24036 ac_cv_lib_pq_PQisthreadsafe=yes
24038 ac_cv_lib_pq_PQisthreadsafe=no
24040 rm -f core conftest.err conftest.$ac_objext \
24041 conftest$ac_exeext conftest.$ac_ext
24042 LIBS=$ac_check_lib_save_LIBS
24044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQisthreadsafe" >&5
24045 $as_echo "$ac_cv_lib_pq_PQisthreadsafe" >&6; }
24046 if test "x$ac_cv_lib_pq_PQisthreadsafe" = xyes; then :
24048 $as_echo "#define HAVE_PQISTHREADSAFE 1" >>confdefs.h
24052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQputCopyData in -lpq" >&5
24053 $as_echo_n "checking for PQputCopyData in -lpq... " >&6; }
24054 if ${ac_cv_lib_pq_PQputCopyData+:} false; then :
24055 $as_echo_n "(cached) " >&6
24057 ac_check_lib_save_LIBS=$LIBS
24059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24060 /* end confdefs.h. */
24062 /* Override any GCC internal prototype to avoid an error.
24063 Use char because int might match the return type of a GCC
24064 builtin and then its argument prototype would still apply. */
24068 char PQputCopyData ();
24072 return PQputCopyData ();
24077 if ac_fn_c_try_link "$LINENO"; then :
24078 ac_cv_lib_pq_PQputCopyData=yes
24080 ac_cv_lib_pq_PQputCopyData=no
24082 rm -f core conftest.err conftest.$ac_objext \
24083 conftest$ac_exeext conftest.$ac_ext
24084 LIBS=$ac_check_lib_save_LIBS
24086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQputCopyData" >&5
24087 $as_echo "$ac_cv_lib_pq_PQputCopyData" >&6; }
24088 if test "x$ac_cv_lib_pq_PQputCopyData" = xyes; then :
24090 $as_echo "#define HAVE_PQ_COPY 1" >>confdefs.h
24094 if test "x$ac_cv_lib_pq_PQputCopyData" = "xyes"; then
24095 if test $support_batch_insert = yes ; then
24097 $as_echo "#define HAVE_POSTGRESQL_BATCH_FILE_INSERT 1" >>confdefs.h
24102 if test x$ac_cv_lib_pq_PQisthreadsafe != xyes -a x$support_batch_insert = xyes
24104 echo "WARNING: Your PostgreSQL client library is too old to detect "
24105 echo "if it was compiled with --enable-thread-safety, consider to "
24106 echo "upgrade it in order to avoid problems with Batch insert mode"
24110 LIBS="${saved_LIBS}"
24113 if test ! -z "$DBI_LIBS"; then
24114 DB_BACKENDS="${DB_BACKENDS} ${DB_PROG}"
24116 if test $DB_PROG = postgresql; then
24117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQisthreadsafe in -lpq" >&5
24118 $as_echo_n "checking for PQisthreadsafe in -lpq... " >&6; }
24119 if ${ac_cv_lib_pq_PQisthreadsafe+:} false; then :
24120 $as_echo_n "(cached) " >&6
24122 ac_check_lib_save_LIBS=$LIBS
24124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24125 /* end confdefs.h. */
24127 /* Override any GCC internal prototype to avoid an error.
24128 Use char because int might match the return type of a GCC
24129 builtin and then its argument prototype would still apply. */
24133 char PQisthreadsafe ();
24137 return PQisthreadsafe ();
24142 if ac_fn_c_try_link "$LINENO"; then :
24143 ac_cv_lib_pq_PQisthreadsafe=yes
24145 ac_cv_lib_pq_PQisthreadsafe=no
24147 rm -f core conftest.err conftest.$ac_objext \
24148 conftest$ac_exeext conftest.$ac_ext
24149 LIBS=$ac_check_lib_save_LIBS
24151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQisthreadsafe" >&5
24152 $as_echo "$ac_cv_lib_pq_PQisthreadsafe" >&6; }
24153 if test "x$ac_cv_lib_pq_PQisthreadsafe" = xyes; then :
24154 $as_echo "#define HAVE_PQISTHREADSAFE 1" >>confdefs.h
24158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQputCopyData in -lpq" >&5
24159 $as_echo_n "checking for PQputCopyData in -lpq... " >&6; }
24160 if ${ac_cv_lib_pq_PQputCopyData+:} false; then :
24161 $as_echo_n "(cached) " >&6
24163 ac_check_lib_save_LIBS=$LIBS
24165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24166 /* end confdefs.h. */
24168 /* Override any GCC internal prototype to avoid an error.
24169 Use char because int might match the return type of a GCC
24170 builtin and then its argument prototype would still apply. */
24174 char PQputCopyData ();
24178 return PQputCopyData ();
24183 if ac_fn_c_try_link "$LINENO"; then :
24184 ac_cv_lib_pq_PQputCopyData=yes
24186 ac_cv_lib_pq_PQputCopyData=no
24188 rm -f core conftest.err conftest.$ac_objext \
24189 conftest$ac_exeext conftest.$ac_ext
24190 LIBS=$ac_check_lib_save_LIBS
24192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQputCopyData" >&5
24193 $as_echo "$ac_cv_lib_pq_PQputCopyData" >&6; }
24194 if test "x$ac_cv_lib_pq_PQputCopyData" = xyes; then :
24195 $as_echo "#define HAVE_PQ_COPY 1" >>confdefs.h
24199 test "x$ac_cv_lib_pq_PQputCopyData" = "xyes"
24201 if test $pkg = 0; then
24202 if test $support_batch_insert = yes ; then
24204 $as_echo "#define HAVE_DBI_BATCH_FILE_INSERT 1" >>confdefs.h
24215 $as_echo "#define PROTOTYPES 1" >>confdefs.h
24218 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
24219 if test -z "$CCOPTS"; then
24220 CCOPTS='-g -O2 -Wall'
24227 largefile_support="no"
24229 # Check whether --enable-largefile was given.
24230 if test "${enable_largefile+set}" = set; then :
24231 enableval=$enable_largefile;
24234 if test "$enable_largefile" != no; then
24235 if test -n "$ac_tool_prefix"; then
24236 # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
24237 set dummy ${ac_tool_prefix}getconf; ac_word=$2
24238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24239 $as_echo_n "checking for $ac_word... " >&6; }
24240 if ${ac_cv_prog_GETCONF+:} false; then :
24241 $as_echo_n "(cached) " >&6
24243 if test -n "$GETCONF"; then
24244 ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
24246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24247 for as_dir in $PATH
24250 test -z "$as_dir" && as_dir=.
24251 for ac_exec_ext in '' $ac_executable_extensions; do
24252 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24253 ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
24254 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24263 GETCONF=$ac_cv_prog_GETCONF
24264 if test -n "$GETCONF"; then
24265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GETCONF" >&5
24266 $as_echo "$GETCONF" >&6; }
24268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24269 $as_echo "no" >&6; }
24274 if test -z "$ac_cv_prog_GETCONF"; then
24275 ac_ct_GETCONF=$GETCONF
24276 # Extract the first word of "getconf", so it can be a program name with args.
24277 set dummy getconf; ac_word=$2
24278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24279 $as_echo_n "checking for $ac_word... " >&6; }
24280 if ${ac_cv_prog_ac_ct_GETCONF+:} false; then :
24281 $as_echo_n "(cached) " >&6
24283 if test -n "$ac_ct_GETCONF"; then
24284 ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
24286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24287 for as_dir in $PATH
24290 test -z "$as_dir" && as_dir=.
24291 for ac_exec_ext in '' $ac_executable_extensions; do
24292 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24293 ac_cv_prog_ac_ct_GETCONF="getconf"
24294 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24303 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
24304 if test -n "$ac_ct_GETCONF"; then
24305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GETCONF" >&5
24306 $as_echo "$ac_ct_GETCONF" >&6; }
24308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24309 $as_echo "no" >&6; }
24312 if test "x$ac_ct_GETCONF" = x; then
24315 case $cross_compiling:$ac_tool_warned in
24317 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
24318 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
24319 ac_tool_warned=yes ;;
24321 GETCONF=$ac_ct_GETCONF
24324 GETCONF="$ac_cv_prog_GETCONF"
24327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLAGS value to request large file support" >&5
24328 $as_echo_n "checking for CFLAGS value to request large file support... " >&6; }
24329 if ${ac_cv_sys_largefile_CFLAGS+:} false; then :
24330 $as_echo_n "(cached) " >&6
24332 ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
24333 ac_cv_sys_largefile_CFLAGS=no
24335 # IRIX 6.2 and later require cc -n32.
24336 irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
24337 if test "$GCC" != yes; then
24338 ac_cv_sys_largefile_CFLAGS=-n32
24341 CC="$CC $ac_cv_sys_largefile_CFLAGS"
24342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24343 /* end confdefs.h. */
24353 if ac_fn_c_try_link "$LINENO"; then :
24356 ac_cv_sys_largefile_CFLAGS=no
24358 rm -f core conftest.err conftest.$ac_objext \
24359 conftest$ac_exeext conftest.$ac_ext
24364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CFLAGS" >&5
24365 $as_echo "$ac_cv_sys_largefile_CFLAGS" >&6; }
24366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDFLAGS value to request large file support" >&5
24367 $as_echo_n "checking for LDFLAGS value to request large file support... " >&6; }
24368 if ${ac_cv_sys_largefile_LDFLAGS+:} false; then :
24369 $as_echo_n "(cached) " >&6
24371 ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
24372 ac_cv_sys_largefile_LDFLAGS=no
24376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_LDFLAGS" >&5
24377 $as_echo "$ac_cv_sys_largefile_LDFLAGS" >&6; }
24378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBS value to request large file support" >&5
24379 $as_echo_n "checking for LIBS value to request large file support... " >&6; }
24380 if ${ac_cv_sys_largefile_LIBS+:} false; then :
24381 $as_echo_n "(cached) " >&6
24383 ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
24384 ac_cv_sys_largefile_LIBS=no
24388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_LIBS" >&5
24389 $as_echo "$ac_cv_sys_largefile_LIBS" >&6; }
24391 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
24394 -D_FILE_OFFSET_BITS=*) ;;
24395 -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
24396 -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
24401 case "$CPPFLAGS" in
24402 '') CPPFLAGS="$ac_flag" ;;
24403 *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
24411 '') CFLAGS="$ac_flag" ;;
24412 *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
24417 case "$ac_cv_sys_largefile_LDFLAGS" in
24421 '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
24422 *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
24425 case "$ac_cv_sys_largefile_LIBS" in
24429 '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
24430 *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
24433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS" >&5
24434 $as_echo_n "checking for _FILE_OFFSET_BITS... " >&6; }
24435 if ${ac_cv_sys_file_offset_bits+:} false; then :
24436 $as_echo_n "(cached) " >&6
24438 ac_cv_sys_file_offset_bits=no
24439 ac_cv_sys_file_offset_bits=64
24440 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
24442 -D_FILE_OFFSET_BITS)
24443 ac_cv_sys_file_offset_bits=1 ;;
24444 -D_FILE_OFFSET_BITS=*)
24445 ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
24450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
24451 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
24452 if test "$ac_cv_sys_file_offset_bits" != no; then
24454 cat >>confdefs.h <<_ACEOF
24455 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
24459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE" >&5
24460 $as_echo_n "checking for _LARGEFILE_SOURCE... " >&6; }
24461 if ${ac_cv_sys_largefile_source+:} false; then :
24462 $as_echo_n "(cached) " >&6
24464 ac_cv_sys_largefile_source=no
24465 ac_cv_sys_largefile_source=1
24466 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
24468 -D_LARGEFILE_SOURCE)
24469 ac_cv_sys_largefile_source=1 ;;
24470 -D_LARGEFILE_SOURCE=*)
24471 ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
24476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
24477 $as_echo "$ac_cv_sys_largefile_source" >&6; }
24478 if test "$ac_cv_sys_largefile_source" != no; then
24480 cat >>confdefs.h <<_ACEOF
24481 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
24485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES" >&5
24486 $as_echo_n "checking for _LARGE_FILES... " >&6; }
24487 if ${ac_cv_sys_large_files+:} false; then :
24488 $as_echo_n "(cached) " >&6
24490 ac_cv_sys_large_files=no
24491 ac_cv_sys_large_files=1
24492 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
24495 ac_cv_sys_large_files=1 ;;
24497 ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
24502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
24503 $as_echo "$ac_cv_sys_large_files" >&6; }
24504 if test "$ac_cv_sys_large_files" != no; then
24506 cat >>confdefs.h <<_ACEOF
24507 #define _LARGE_FILES $ac_cv_sys_large_files
24514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
24515 $as_echo_n "checking for X... " >&6; }
24518 # Check whether --with-x was given.
24519 if test "${with_x+set}" = set; then :
24523 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
24524 if test "x$with_x" = xno; then
24525 # The user explicitly disabled X.
24528 case $x_includes,$x_libraries in #(
24529 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
24530 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
24531 $as_echo_n "(cached) " >&6
24533 # One or both of the vars are not set, and there is no cached value.
24534 ac_x_includes=no ac_x_libraries=no
24535 rm -f -r conftest.dir
24536 if mkdir conftest.dir; then
24538 cat >Imakefile <<'_ACEOF'
24540 @echo incroot='${INCROOT}'
24542 @echo usrlibdir='${USRLIBDIR}'
24544 @echo libdir='${LIBDIR}'
24546 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
24547 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
24548 for ac_var in incroot usrlibdir libdir; do
24549 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
24551 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
24552 for ac_extension in a so sl dylib la dll; do
24553 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
24554 test -f "$ac_im_libdir/libX11.$ac_extension"; then
24555 ac_im_usrlibdir=$ac_im_libdir; break
24558 # Screen out bogus values from the imake configuration. They are
24559 # bogus both because they are the default anyway, and because
24560 # using them would break gcc on systems where it needs fixed includes.
24561 case $ac_im_incroot in
24562 /usr/include) ac_x_includes= ;;
24563 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
24565 case $ac_im_usrlibdir in
24566 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
24567 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
24571 rm -f -r conftest.dir
24574 # Standard set of common directories for X headers.
24575 # Check X11 before X11Rn because it is often a symlink to the current release.
24589 /usr/local/X11/include
24590 /usr/local/X11R7/include
24591 /usr/local/X11R6/include
24592 /usr/local/X11R5/include
24593 /usr/local/X11R4/include
24595 /usr/local/include/X11
24596 /usr/local/include/X11R7
24597 /usr/local/include/X11R6
24598 /usr/local/include/X11R5
24599 /usr/local/include/X11R4
24603 /usr/XFree86/include/X11
24607 /usr/unsupported/include
24608 /usr/athena/include
24609 /usr/local/x11r5/include
24610 /usr/lpp/Xamples/include
24612 /usr/openwin/include
24613 /usr/openwin/share/include'
24615 if test "$ac_x_includes" = no; then
24616 # Guess where to find include files, by looking for Xlib.h.
24617 # First, try using that file with no special directory specified.
24618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24619 /* end confdefs.h. */
24620 #include <X11/Xlib.h>
24622 if ac_fn_c_try_cpp "$LINENO"; then :
24623 # We can compile using X headers with no special include directory.
24626 for ac_dir in $ac_x_header_dirs; do
24627 if test -r "$ac_dir/X11/Xlib.h"; then
24628 ac_x_includes=$ac_dir
24633 rm -f conftest.err conftest.i conftest.$ac_ext
24634 fi # $ac_x_includes = no
24636 if test "$ac_x_libraries" = no; then
24637 # Check for the libraries.
24638 # See if we find them without any special options.
24639 # Don't add to $LIBS permanently.
24642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24643 /* end confdefs.h. */
24644 #include <X11/Xlib.h>
24653 if ac_fn_c_try_link "$LINENO"; then :
24655 # We can link X programs with no special library path.
24659 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
24661 # Don't even attempt the hair of trying to link an X program!
24662 for ac_extension in a so sl dylib la dll; do
24663 if test -r "$ac_dir/libX11.$ac_extension"; then
24664 ac_x_libraries=$ac_dir
24670 rm -f core conftest.err conftest.$ac_objext \
24671 conftest$ac_exeext conftest.$ac_ext
24672 fi # $ac_x_libraries = no
24674 case $ac_x_includes,$ac_x_libraries in #(
24675 no,* | *,no | *\'*)
24676 # Didn't find X, or a directory has "'" in its name.
24677 ac_cv_have_x="have_x=no";; #(
24679 # Record where we found X for the cache.
24680 ac_cv_have_x="have_x=yes\
24681 ac_x_includes='$ac_x_includes'\
24682 ac_x_libraries='$ac_x_libraries'"
24688 eval "$ac_cv_have_x"
24691 if test "$have_x" != yes; then
24692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
24693 $as_echo "$have_x" >&6; }
24696 # If each of the values was on the command line, it overrides each guess.
24697 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
24698 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
24699 # Update the cache value to reflect the command line values.
24700 ac_cv_have_x="have_x=yes\
24701 ac_x_includes='$x_includes'\
24702 ac_x_libraries='$x_libraries'"
24703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
24704 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
24707 if test "$no_x" = yes; then
24708 # Not all programs may use this symbol, but it does not hurt to define it.
24710 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
24712 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
24714 if test -n "$x_includes"; then
24715 X_CFLAGS="$X_CFLAGS -I$x_includes"
24718 # It would also be nice to do this for all -L options, not just this one.
24719 if test -n "$x_libraries"; then
24720 X_LIBS="$X_LIBS -L$x_libraries"
24721 # For Solaris; some versions of Sun CC require a space after -R and
24722 # others require no space. Words are not sufficient . . . .
24723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
24724 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
24725 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
24726 ac_xsave_c_werror_flag=$ac_c_werror_flag
24727 ac_c_werror_flag=yes
24728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24729 /* end confdefs.h. */
24739 if ac_fn_c_try_link "$LINENO"; then :
24740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24741 $as_echo "no" >&6; }
24742 X_LIBS="$X_LIBS -R$x_libraries"
24744 LIBS="$ac_xsave_LIBS -R $x_libraries"
24745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24746 /* end confdefs.h. */
24756 if ac_fn_c_try_link "$LINENO"; then :
24757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24758 $as_echo "yes" >&6; }
24759 X_LIBS="$X_LIBS -R $x_libraries"
24761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
24762 $as_echo "neither works" >&6; }
24764 rm -f core conftest.err conftest.$ac_objext \
24765 conftest$ac_exeext conftest.$ac_ext
24767 rm -f core conftest.err conftest.$ac_objext \
24768 conftest$ac_exeext conftest.$ac_ext
24769 ac_c_werror_flag=$ac_xsave_c_werror_flag
24770 LIBS=$ac_xsave_LIBS
24773 # Check for system-dependent libraries X programs must link with.
24774 # Do this before checking for the system-independent R6 libraries
24775 # (-lICE), since we may need -lsocket or whatever for X linking.
24777 if test "$ISC" = yes; then
24778 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
24780 # Martyn Johnson says this is needed for Ultrix, if the X
24781 # libraries were built with DECnet support. And Karl Berry says
24782 # the Alpha needs dnet_stub (dnet does not exist).
24783 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
24784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24785 /* end confdefs.h. */
24787 /* Override any GCC internal prototype to avoid an error.
24788 Use char because int might match the return type of a GCC
24789 builtin and then its argument prototype would still apply. */
24793 char XOpenDisplay ();
24797 return XOpenDisplay ();
24802 if ac_fn_c_try_link "$LINENO"; then :
24805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
24806 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
24807 if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
24808 $as_echo_n "(cached) " >&6
24810 ac_check_lib_save_LIBS=$LIBS
24811 LIBS="-ldnet $LIBS"
24812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24813 /* end confdefs.h. */
24815 /* Override any GCC internal prototype to avoid an error.
24816 Use char because int might match the return type of a GCC
24817 builtin and then its argument prototype would still apply. */
24825 return dnet_ntoa ();
24830 if ac_fn_c_try_link "$LINENO"; then :
24831 ac_cv_lib_dnet_dnet_ntoa=yes
24833 ac_cv_lib_dnet_dnet_ntoa=no
24835 rm -f core conftest.err conftest.$ac_objext \
24836 conftest$ac_exeext conftest.$ac_ext
24837 LIBS=$ac_check_lib_save_LIBS
24839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
24840 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
24841 if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
24842 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
24845 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
24846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
24847 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
24848 if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
24849 $as_echo_n "(cached) " >&6
24851 ac_check_lib_save_LIBS=$LIBS
24852 LIBS="-ldnet_stub $LIBS"
24853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24854 /* end confdefs.h. */
24856 /* Override any GCC internal prototype to avoid an error.
24857 Use char because int might match the return type of a GCC
24858 builtin and then its argument prototype would still apply. */
24866 return dnet_ntoa ();
24871 if ac_fn_c_try_link "$LINENO"; then :
24872 ac_cv_lib_dnet_stub_dnet_ntoa=yes
24874 ac_cv_lib_dnet_stub_dnet_ntoa=no
24876 rm -f core conftest.err conftest.$ac_objext \
24877 conftest$ac_exeext conftest.$ac_ext
24878 LIBS=$ac_check_lib_save_LIBS
24880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
24881 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
24882 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
24883 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
24888 rm -f core conftest.err conftest.$ac_objext \
24889 conftest$ac_exeext conftest.$ac_ext
24890 LIBS="$ac_xsave_LIBS"
24892 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
24893 # to get the SysV transport functions.
24894 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
24896 # The nsl library prevents programs from opening the X display
24897 # on Irix 5.2, according to T.E. Dickey.
24898 # The functions gethostbyname, getservbyname, and inet_addr are
24899 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
24900 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
24901 if test "x$ac_cv_func_gethostbyname" = xyes; then :
24905 if test $ac_cv_func_gethostbyname = no; then
24906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
24907 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
24908 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
24909 $as_echo_n "(cached) " >&6
24911 ac_check_lib_save_LIBS=$LIBS
24913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24914 /* end confdefs.h. */
24916 /* Override any GCC internal prototype to avoid an error.
24917 Use char because int might match the return type of a GCC
24918 builtin and then its argument prototype would still apply. */
24922 char gethostbyname ();
24926 return gethostbyname ();
24931 if ac_fn_c_try_link "$LINENO"; then :
24932 ac_cv_lib_nsl_gethostbyname=yes
24934 ac_cv_lib_nsl_gethostbyname=no
24936 rm -f core conftest.err conftest.$ac_objext \
24937 conftest$ac_exeext conftest.$ac_ext
24938 LIBS=$ac_check_lib_save_LIBS
24940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
24941 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
24942 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
24943 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
24946 if test $ac_cv_lib_nsl_gethostbyname = no; then
24947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
24948 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
24949 if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
24950 $as_echo_n "(cached) " >&6
24952 ac_check_lib_save_LIBS=$LIBS
24954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24955 /* end confdefs.h. */
24957 /* Override any GCC internal prototype to avoid an error.
24958 Use char because int might match the return type of a GCC
24959 builtin and then its argument prototype would still apply. */
24963 char gethostbyname ();
24967 return gethostbyname ();
24972 if ac_fn_c_try_link "$LINENO"; then :
24973 ac_cv_lib_bsd_gethostbyname=yes
24975 ac_cv_lib_bsd_gethostbyname=no
24977 rm -f core conftest.err conftest.$ac_objext \
24978 conftest$ac_exeext conftest.$ac_ext
24979 LIBS=$ac_check_lib_save_LIBS
24981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
24982 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
24983 if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
24984 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
24990 # lieder@skyler.mavd.honeywell.com says without -lsocket,
24991 # socket/setsockopt and other routines are undefined under SCO ODT
24992 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
24993 # on later versions), says Simon Leinen: it contains gethostby*
24994 # variants that don't use the name server (or something). -lsocket
24995 # must be given before -lnsl if both are needed. We assume that
24996 # if connect needs -lnsl, so does gethostbyname.
24997 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
24998 if test "x$ac_cv_func_connect" = xyes; then :
25002 if test $ac_cv_func_connect = no; then
25003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
25004 $as_echo_n "checking for connect in -lsocket... " >&6; }
25005 if ${ac_cv_lib_socket_connect+:} false; then :
25006 $as_echo_n "(cached) " >&6
25008 ac_check_lib_save_LIBS=$LIBS
25009 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
25010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25011 /* end confdefs.h. */
25013 /* Override any GCC internal prototype to avoid an error.
25014 Use char because int might match the return type of a GCC
25015 builtin and then its argument prototype would still apply. */
25028 if ac_fn_c_try_link "$LINENO"; then :
25029 ac_cv_lib_socket_connect=yes
25031 ac_cv_lib_socket_connect=no
25033 rm -f core conftest.err conftest.$ac_objext \
25034 conftest$ac_exeext conftest.$ac_ext
25035 LIBS=$ac_check_lib_save_LIBS
25037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
25038 $as_echo "$ac_cv_lib_socket_connect" >&6; }
25039 if test "x$ac_cv_lib_socket_connect" = xyes; then :
25040 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
25045 # Guillermo Gomez says -lposix is necessary on A/UX.
25046 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
25047 if test "x$ac_cv_func_remove" = xyes; then :
25051 if test $ac_cv_func_remove = no; then
25052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
25053 $as_echo_n "checking for remove in -lposix... " >&6; }
25054 if ${ac_cv_lib_posix_remove+:} false; then :
25055 $as_echo_n "(cached) " >&6
25057 ac_check_lib_save_LIBS=$LIBS
25058 LIBS="-lposix $LIBS"
25059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25060 /* end confdefs.h. */
25062 /* Override any GCC internal prototype to avoid an error.
25063 Use char because int might match the return type of a GCC
25064 builtin and then its argument prototype would still apply. */
25077 if ac_fn_c_try_link "$LINENO"; then :
25078 ac_cv_lib_posix_remove=yes
25080 ac_cv_lib_posix_remove=no
25082 rm -f core conftest.err conftest.$ac_objext \
25083 conftest$ac_exeext conftest.$ac_ext
25084 LIBS=$ac_check_lib_save_LIBS
25086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
25087 $as_echo "$ac_cv_lib_posix_remove" >&6; }
25088 if test "x$ac_cv_lib_posix_remove" = xyes; then :
25089 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
25094 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
25095 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
25096 if test "x$ac_cv_func_shmat" = xyes; then :
25100 if test $ac_cv_func_shmat = no; then
25101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
25102 $as_echo_n "checking for shmat in -lipc... " >&6; }
25103 if ${ac_cv_lib_ipc_shmat+:} false; then :
25104 $as_echo_n "(cached) " >&6
25106 ac_check_lib_save_LIBS=$LIBS
25108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25109 /* end confdefs.h. */
25111 /* Override any GCC internal prototype to avoid an error.
25112 Use char because int might match the return type of a GCC
25113 builtin and then its argument prototype would still apply. */
25126 if ac_fn_c_try_link "$LINENO"; then :
25127 ac_cv_lib_ipc_shmat=yes
25129 ac_cv_lib_ipc_shmat=no
25131 rm -f core conftest.err conftest.$ac_objext \
25132 conftest$ac_exeext conftest.$ac_ext
25133 LIBS=$ac_check_lib_save_LIBS
25135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
25136 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
25137 if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
25138 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
25144 # Check for libraries that X11R6 Xt/Xaw programs need.
25145 ac_save_LDFLAGS=$LDFLAGS
25146 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
25147 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
25148 # check for ICE first), but we must link in the order -lSM -lICE or
25149 # we get undefined symbols. So assume we have SM if we have ICE.
25150 # These have to be linked with before -lX11, unlike the other
25151 # libraries we check for below, so use a different variable.
25152 # John Interrante, Karl Berry
25153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
25154 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
25155 if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
25156 $as_echo_n "(cached) " >&6
25158 ac_check_lib_save_LIBS=$LIBS
25159 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
25160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25161 /* end confdefs.h. */
25163 /* Override any GCC internal prototype to avoid an error.
25164 Use char because int might match the return type of a GCC
25165 builtin and then its argument prototype would still apply. */
25169 char IceConnectionNumber ();
25173 return IceConnectionNumber ();
25178 if ac_fn_c_try_link "$LINENO"; then :
25179 ac_cv_lib_ICE_IceConnectionNumber=yes
25181 ac_cv_lib_ICE_IceConnectionNumber=no
25183 rm -f core conftest.err conftest.$ac_objext \
25184 conftest$ac_exeext conftest.$ac_ext
25185 LIBS=$ac_check_lib_save_LIBS
25187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
25188 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
25189 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
25190 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
25193 LDFLAGS=$ac_save_LDFLAGS
25230 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25231 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
25232 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
25233 cat >>confdefs.h <<_ACEOF
25234 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
25242 $as_echo_n "checking for ANSI C header files... " >&6; }
25243 if ${ac_cv_header_stdc+:} false; then :
25244 $as_echo_n "(cached) " >&6
25246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25247 /* end confdefs.h. */
25248 #include <stdlib.h>
25249 #include <stdarg.h>
25250 #include <string.h>
25261 if ac_fn_c_try_compile "$LINENO"; then :
25262 ac_cv_header_stdc=yes
25264 ac_cv_header_stdc=no
25266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25268 if test $ac_cv_header_stdc = yes; then
25269 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
25270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25271 /* end confdefs.h. */
25272 #include <string.h>
25275 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25276 $EGREP "memchr" >/dev/null 2>&1; then :
25279 ac_cv_header_stdc=no
25285 if test $ac_cv_header_stdc = yes; then
25286 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
25287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25288 /* end confdefs.h. */
25289 #include <stdlib.h>
25292 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25293 $EGREP "free" >/dev/null 2>&1; then :
25296 ac_cv_header_stdc=no
25302 if test $ac_cv_header_stdc = yes; then
25303 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
25304 if test "$cross_compiling" = yes; then :
25307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25308 /* end confdefs.h. */
25310 #include <stdlib.h>
25311 #if ((' ' & 0x0FF) == 0x020)
25312 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
25313 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
25315 # define ISLOWER(c) \
25316 (('a' <= (c) && (c) <= 'i') \
25317 || ('j' <= (c) && (c) <= 'r') \
25318 || ('s' <= (c) && (c) <= 'z'))
25319 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
25322 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
25327 for (i = 0; i < 256; i++)
25328 if (XOR (islower (i), ISLOWER (i))
25329 || toupper (i) != TOUPPER (i))
25334 if ac_fn_c_try_run "$LINENO"; then :
25337 ac_cv_header_stdc=no
25339 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25340 conftest.$ac_objext conftest.beam conftest.$ac_ext
25345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
25346 $as_echo "$ac_cv_header_stdc" >&6; }
25347 if test $ac_cv_header_stdc = yes; then
25349 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
25353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev" >&5
25354 $as_echo_n "checking whether sys/types.h defines makedev... " >&6; }
25355 if ${ac_cv_header_sys_types_h_makedev+:} false; then :
25356 $as_echo_n "(cached) " >&6
25358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25359 /* end confdefs.h. */
25360 #include <sys/types.h>
25364 return makedev(0, 0);
25369 if ac_fn_c_try_link "$LINENO"; then :
25370 ac_cv_header_sys_types_h_makedev=yes
25372 ac_cv_header_sys_types_h_makedev=no
25374 rm -f core conftest.err conftest.$ac_objext \
25375 conftest$ac_exeext conftest.$ac_ext
25378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_types_h_makedev" >&5
25379 $as_echo "$ac_cv_header_sys_types_h_makedev" >&6; }
25381 if test $ac_cv_header_sys_types_h_makedev = no; then
25382 ac_fn_c_check_header_mongrel "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"
25383 if test "x$ac_cv_header_sys_mkdev_h" = xyes; then :
25385 $as_echo "#define MAJOR_IN_MKDEV 1" >>confdefs.h
25391 if test $ac_cv_header_sys_mkdev_h = no; then
25392 ac_fn_c_check_header_mongrel "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
25393 if test "x$ac_cv_header_sys_sysmacros_h" = xyes; then :
25395 $as_echo "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h
25403 ac_header_dirent=no
25404 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
25405 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
25406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
25407 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
25408 if eval \${$as_ac_Header+:} false; then :
25409 $as_echo_n "(cached) " >&6
25411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25412 /* end confdefs.h. */
25413 #include <sys/types.h>
25425 if ac_fn_c_try_compile "$LINENO"; then :
25426 eval "$as_ac_Header=yes"
25428 eval "$as_ac_Header=no"
25430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25432 eval ac_res=\$$as_ac_Header
25433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
25434 $as_echo "$ac_res" >&6; }
25435 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
25436 cat >>confdefs.h <<_ACEOF
25437 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
25440 ac_header_dirent=$ac_hdr; break
25444 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
25445 if test $ac_header_dirent = dirent.h; then
25446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
25447 $as_echo_n "checking for library containing opendir... " >&6; }
25448 if ${ac_cv_search_opendir+:} false; then :
25449 $as_echo_n "(cached) " >&6
25451 ac_func_search_save_LIBS=$LIBS
25452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25453 /* end confdefs.h. */
25455 /* Override any GCC internal prototype to avoid an error.
25456 Use char because int might match the return type of a GCC
25457 builtin and then its argument prototype would still apply. */
25470 for ac_lib in '' dir; do
25471 if test -z "$ac_lib"; then
25472 ac_res="none required"
25475 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25477 if ac_fn_c_try_link "$LINENO"; then :
25478 ac_cv_search_opendir=$ac_res
25480 rm -f core conftest.err conftest.$ac_objext \
25482 if ${ac_cv_search_opendir+:} false; then :
25486 if ${ac_cv_search_opendir+:} false; then :
25489 ac_cv_search_opendir=no
25491 rm conftest.$ac_ext
25492 LIBS=$ac_func_search_save_LIBS
25494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
25495 $as_echo "$ac_cv_search_opendir" >&6; }
25496 ac_res=$ac_cv_search_opendir
25497 if test "$ac_res" != no; then :
25498 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
25504 $as_echo_n "checking for library containing opendir... " >&6; }
25505 if ${ac_cv_search_opendir+:} false; then :
25506 $as_echo_n "(cached) " >&6
25508 ac_func_search_save_LIBS=$LIBS
25509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25510 /* end confdefs.h. */
25512 /* Override any GCC internal prototype to avoid an error.
25513 Use char because int might match the return type of a GCC
25514 builtin and then its argument prototype would still apply. */
25527 for ac_lib in '' x; do
25528 if test -z "$ac_lib"; then
25529 ac_res="none required"
25532 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25534 if ac_fn_c_try_link "$LINENO"; then :
25535 ac_cv_search_opendir=$ac_res
25537 rm -f core conftest.err conftest.$ac_objext \
25539 if ${ac_cv_search_opendir+:} false; then :
25543 if ${ac_cv_search_opendir+:} false; then :
25546 ac_cv_search_opendir=no
25548 rm conftest.$ac_ext
25549 LIBS=$ac_func_search_save_LIBS
25551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
25552 $as_echo "$ac_cv_search_opendir" >&6; }
25553 ac_res=$ac_cv_search_opendir
25554 if test "$ac_res" != no; then :
25555 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
25562 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
25563 if ${ac_cv_header_stat_broken+:} false; then :
25564 $as_echo_n "(cached) " >&6
25566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25567 /* end confdefs.h. */
25568 #include <sys/types.h>
25569 #include <sys/stat.h>
25571 #if defined S_ISBLK && defined S_IFDIR
25572 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
25575 #if defined S_ISBLK && defined S_IFCHR
25576 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
25579 #if defined S_ISLNK && defined S_IFREG
25580 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
25583 #if defined S_ISSOCK && defined S_IFREG
25584 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
25588 if ac_fn_c_try_compile "$LINENO"; then :
25589 ac_cv_header_stat_broken=no
25591 ac_cv_header_stat_broken=yes
25593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
25596 $as_echo "$ac_cv_header_stat_broken" >&6; }
25597 if test $ac_cv_header_stat_broken = yes; then
25599 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
25603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
25604 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
25605 if ${ac_cv_header_sys_wait_h+:} false; then :
25606 $as_echo_n "(cached) " >&6
25608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25609 /* end confdefs.h. */
25610 #include <sys/types.h>
25611 #include <sys/wait.h>
25612 #ifndef WEXITSTATUS
25613 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
25616 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
25624 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
25629 if ac_fn_c_try_compile "$LINENO"; then :
25630 ac_cv_header_sys_wait_h=yes
25632 ac_cv_header_sys_wait_h=no
25634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
25637 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
25638 if test $ac_cv_header_sys_wait_h = yes; then
25640 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
25644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
25645 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
25646 if ${ac_cv_header_time+:} false; then :
25647 $as_echo_n "(cached) " >&6
25649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25650 /* end confdefs.h. */
25651 #include <sys/types.h>
25652 #include <sys/time.h>
25658 if ((struct tm *) 0)
25664 if ac_fn_c_try_compile "$LINENO"; then :
25665 ac_cv_header_time=yes
25667 ac_cv_header_time=no
25669 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
25672 $as_echo "$ac_cv_header_time" >&6; }
25673 if test $ac_cv_header_time = yes; then
25675 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
25679 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
25680 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
25682 cat >>confdefs.h <<_ACEOF
25683 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
25687 $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h
25692 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
25693 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
25695 cat >>confdefs.h <<_ACEOF
25696 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
25700 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
25703 case " $LIBOBJS " in
25704 *" fileblocks.$ac_objext "* ) ;;
25705 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
25712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
25713 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
25714 if ${ac_cv_struct_tm+:} false; then :
25715 $as_echo_n "(cached) " >&6
25717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25718 /* end confdefs.h. */
25719 #include <sys/types.h>
25726 int *p = &tm.tm_sec;
25732 if ac_fn_c_try_compile "$LINENO"; then :
25733 ac_cv_struct_tm=time.h
25735 ac_cv_struct_tm=sys/time.h
25737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
25740 $as_echo "$ac_cv_struct_tm" >&6; }
25741 if test $ac_cv_struct_tm = sys/time.h; then
25743 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
25747 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
25748 #include <$ac_cv_struct_tm>
25751 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
25753 cat >>confdefs.h <<_ACEOF
25754 #define HAVE_STRUCT_TM_TM_ZONE 1
25760 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
25762 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
25765 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
25767 if test "x$ac_cv_have_decl_tzname" = xyes; then :
25773 cat >>confdefs.h <<_ACEOF
25774 #define HAVE_DECL_TZNAME $ac_have_decl
25777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
25778 $as_echo_n "checking for tzname... " >&6; }
25779 if ${ac_cv_var_tzname+:} false; then :
25780 $as_echo_n "(cached) " >&6
25782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25783 /* end confdefs.h. */
25785 #if !HAVE_DECL_TZNAME
25786 extern char *tzname[];
25792 return tzname[0][0];
25797 if ac_fn_c_try_link "$LINENO"; then :
25798 ac_cv_var_tzname=yes
25800 ac_cv_var_tzname=no
25802 rm -f core conftest.err conftest.$ac_objext \
25803 conftest$ac_exeext conftest.$ac_ext
25805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
25806 $as_echo "$ac_cv_var_tzname" >&6; }
25807 if test $ac_cv_var_tzname = yes; then
25809 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
25815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for utime.h" >&5
25816 $as_echo_n "checking for utime.h... " >&6; }
25817 if ${ba_cv_header_utime_h+:} false; then :
25818 $as_echo_n "(cached) " >&6
25821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25822 /* end confdefs.h. */
25824 #include <sys/types.h>
25837 if ac_fn_c_try_compile "$LINENO"; then :
25839 ba_cv_header_utime_h=yes
25843 ba_cv_header_utime_h=no
25847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_header_utime_h" >&5
25852 $as_echo "$ba_cv_header_utime_h" >&6; }
25853 test $ba_cv_header_utime_h = yes &&
25854 $as_echo "#define HAVE_UTIME_H 1" >>confdefs.h
25857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5
25858 $as_echo_n "checking for socklen_t... " >&6; }
25859 if ${ba_cv_header_socklen_t+:} false; then :
25860 $as_echo_n "(cached) " >&6
25863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25864 /* end confdefs.h. */
25866 #include <sys/types.h>
25867 #include <sys/socket.h>
25879 if ac_fn_c_try_compile "$LINENO"; then :
25881 ba_cv_header_socklen_t=yes
25885 ba_cv_header_socklen_t=no
25889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_header_socklen_t" >&5
25894 $as_echo "$ba_cv_header_socklen_t" >&6; }
25895 test $ba_cv_header_socklen_t = yes &&
25896 $as_echo "#define HAVE_SOCKLEN_T 1" >>confdefs.h
25900 ac_cpp='$CXXCPP $CPPFLAGS'
25901 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25902 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25903 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ioctl_req_t" >&5
25906 $as_echo_n "checking for ioctl_req_t... " >&6; }
25907 if ${ba_cv_header_ioctl_req_t+:} false; then :
25908 $as_echo_n "(cached) " >&6
25911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25912 /* end confdefs.h. */
25914 #include <unistd.h>
25915 #include <sys/types.h>
25916 #include <sys/ioctl.h>
25922 int (*d_ioctl)(int fd, unsigned long int request, ...);
25929 if ac_fn_cxx_try_compile "$LINENO"; then :
25931 ba_cv_header_ioctl_req_t=yes
25935 ba_cv_header_ioctl_req_t=no
25939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_header_ioctl_req_t" >&5
25944 $as_echo "$ba_cv_header_ioctl_req_t" >&6; }
25945 test $ba_cv_header_ioctl_req_t = yes &&
25946 $as_echo "#define HAVE_IOCTL_ULINT_REQUEST 1" >>confdefs.h
25950 ac_cpp='$CPP $CPPFLAGS'
25951 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25952 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25953 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25957 ac_cpp='$CXXCPP $CPPFLAGS'
25958 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25959 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25960 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for typeof" >&5
25963 $as_echo_n "checking for typeof... " >&6; }
25964 if ${ba_cv_have_typeof+:} false; then :
25965 $as_echo_n "(cached) " >&6
25968 if test "$cross_compiling" = yes; then :
25970 ba_cv_have_typeof=no
25974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25975 /* end confdefs.h. */
25977 main(){char *a = 0; a = (typeof a)a;}
25980 if ac_fn_cxx_try_run "$LINENO"; then :
25982 ba_cv_have_typeof=yes
25986 ba_cv_have_typeof=no
25989 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25990 conftest.$ac_objext conftest.beam conftest.$ac_ext
25996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_have_typeof" >&5
25997 $as_echo "$ba_cv_have_typeof" >&6; }
25998 test $ba_cv_have_typeof = yes &&
25999 $as_echo "#define HAVE_TYPEOF 1" >>confdefs.h
26002 ac_cpp='$CPP $CPPFLAGS'
26003 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26004 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26005 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
26009 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
26010 if ${ac_cv_c_const+:} false; then :
26011 $as_echo_n "(cached) " >&6
26013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26014 /* end confdefs.h. */
26019 /* FIXME: Include the comments suggested by Paul. */
26020 #ifndef __cplusplus
26021 /* Ultrix mips cc rejects this. */
26022 typedef int charset[2];
26024 /* SunOS 4.1.1 cc rejects this. */
26025 char const *const *pcpcc;
26027 /* NEC SVR4.0.2 mips cc rejects this. */
26028 struct point {int x, y;};
26029 static struct point const zero = {0,0};
26030 /* AIX XL C 1.02.0.0 rejects this.
26031 It does not let you subtract one const X* pointer from another in
26032 an arm of an if-expression whose if-part is not a constant
26034 const char *g = "string";
26035 pcpcc = &g + (g ? g-g : 0);
26036 /* HPUX 7.0 cc rejects these. */
26038 ppc = (char**) pcpcc;
26039 pcpcc = (char const *const *) ppc;
26040 { /* SCO 3.2v4 cc rejects this. */
26042 char const *s = 0 ? (char *) 0 : (char const *) 0;
26047 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
26048 int x[] = {25, 17};
26049 const int *foo = &x[0];
26052 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
26053 typedef const int *iptr;
26057 { /* AIX XL C 1.02.0.0 rejects this saying
26058 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
26059 struct s { int j; const int *ap[3]; };
26060 struct s *b; b->j = 5;
26062 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
26063 const int foo = 10;
26064 if (!foo) return 0;
26066 return !cs[0] && !zero.x;
26073 if ac_fn_c_try_compile "$LINENO"; then :
26078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
26081 $as_echo "$ac_cv_c_const" >&6; }
26082 if test $ac_cv_c_const = no; then
26084 $as_echo "#define const /**/" >>confdefs.h
26089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
26090 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
26091 if ${ac_cv_c_bigendian+:} false; then :
26092 $as_echo_n "(cached) " >&6
26094 ac_cv_c_bigendian=unknown
26095 # See if we're dealing with a universal compiler.
26096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26097 /* end confdefs.h. */
26098 #ifndef __APPLE_CC__
26099 not a universal capable compiler
26104 if ac_fn_c_try_compile "$LINENO"; then :
26106 # Check for potential -arch flags. It is not universal unless
26107 # there are at least two -arch flags with different values.
26110 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
26111 if test -n "$ac_prev"; then
26113 i?86 | x86_64 | ppc | ppc64)
26114 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
26117 ac_cv_c_bigendian=universal
26123 elif test "x$ac_word" = "x-arch"; then
26128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26129 if test $ac_cv_c_bigendian = unknown; then
26130 # See if sys/param.h defines the BYTE_ORDER macro.
26131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26132 /* end confdefs.h. */
26133 #include <sys/types.h>
26134 #include <sys/param.h>
26139 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
26140 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
26142 bogus endian macros
26149 if ac_fn_c_try_compile "$LINENO"; then :
26150 # It does; now see whether it defined to BIG_ENDIAN or not.
26151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26152 /* end confdefs.h. */
26153 #include <sys/types.h>
26154 #include <sys/param.h>
26159 #if BYTE_ORDER != BIG_ENDIAN
26167 if ac_fn_c_try_compile "$LINENO"; then :
26168 ac_cv_c_bigendian=yes
26170 ac_cv_c_bigendian=no
26172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26176 if test $ac_cv_c_bigendian = unknown; then
26177 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
26178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26179 /* end confdefs.h. */
26180 #include <limits.h>
26185 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
26186 bogus endian macros
26193 if ac_fn_c_try_compile "$LINENO"; then :
26194 # It does; now see whether it defined to _BIG_ENDIAN or not.
26195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26196 /* end confdefs.h. */
26197 #include <limits.h>
26202 #ifndef _BIG_ENDIAN
26210 if ac_fn_c_try_compile "$LINENO"; then :
26211 ac_cv_c_bigendian=yes
26213 ac_cv_c_bigendian=no
26215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26219 if test $ac_cv_c_bigendian = unknown; then
26220 # Compile a test program.
26221 if test "$cross_compiling" = yes; then :
26222 # Try to guess by grepping values from an object file.
26223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26224 /* end confdefs.h. */
26225 short int ascii_mm[] =
26226 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
26227 short int ascii_ii[] =
26228 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
26229 int use_ascii (int i) {
26230 return ascii_mm[i] + ascii_ii[i];
26232 short int ebcdic_ii[] =
26233 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
26234 short int ebcdic_mm[] =
26235 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
26236 int use_ebcdic (int i) {
26237 return ebcdic_mm[i] + ebcdic_ii[i];
26244 return use_ascii (foo) == use_ebcdic (foo);
26249 if ac_fn_c_try_compile "$LINENO"; then :
26250 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
26251 ac_cv_c_bigendian=yes
26253 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
26254 if test "$ac_cv_c_bigendian" = unknown; then
26255 ac_cv_c_bigendian=no
26257 # finding both strings is unlikely to happen, but who knows?
26258 ac_cv_c_bigendian=unknown
26262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26265 /* end confdefs.h. */
26266 $ac_includes_default
26271 /* Are we little or big endian? From Harbison&Steele. */
26275 char c[sizeof (long int)];
26278 return u.c[sizeof (long int) - 1] == 1;
26284 if ac_fn_c_try_run "$LINENO"; then :
26285 ac_cv_c_bigendian=no
26287 ac_cv_c_bigendian=yes
26289 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26290 conftest.$ac_objext conftest.beam conftest.$ac_ext
26295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
26296 $as_echo "$ac_cv_c_bigendian" >&6; }
26297 case $ac_cv_c_bigendian in #(
26300 $as_echo "#define HAVE_BIG_ENDIAN 1" >>confdefs.h
26304 $as_echo "#define HAVE_LITTLE_ENDIAN 1" >>confdefs.h
26308 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
26312 as_fn_error $? "unknown endianness
26313 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
26317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to get filesystem type" >&5
26318 $as_echo_n "checking how to get filesystem type... " >&6; }
26320 # The order of these tests is important.
26321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26322 /* end confdefs.h. */
26324 #include <sys/statvfs.h>
26325 #include <sys/fstyp.h>
26328 if ac_fn_c_try_cpp "$LINENO"; then :
26329 $as_echo "#define FSTYPE_STATVFS 1" >>confdefs.h
26333 rm -f conftest.err conftest.i conftest.$ac_ext
26334 if test $fstype = no; then
26335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26336 /* end confdefs.h. */
26338 #include <sys/statfs.h>
26339 #include <sys/fstyp.h>
26342 if ac_fn_c_try_cpp "$LINENO"; then :
26343 $as_echo "#define FSTYPE_USG_STATFS 1" >>confdefs.h
26347 rm -f conftest.err conftest.i conftest.$ac_ext
26349 if test $fstype = no; then
26350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26351 /* end confdefs.h. */
26353 #include <sys/statfs.h>
26354 #include <sys/vmount.h>
26357 if ac_fn_c_try_cpp "$LINENO"; then :
26358 $as_echo "#define FSTYPE_AIX_STATFS 1" >>confdefs.h
26362 rm -f conftest.err conftest.i conftest.$ac_ext
26364 if test $fstype = no; then
26365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26366 /* end confdefs.h. */
26368 #include <mntent.h>
26371 if ac_fn_c_try_cpp "$LINENO"; then :
26372 $as_echo "#define FSTYPE_MNTENT 1" >>confdefs.h
26376 rm -f conftest.err conftest.i conftest.$ac_ext
26378 if test $fstype = no; then
26379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26380 /* end confdefs.h. */
26381 #include <sys/mount.h>
26384 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26385 $EGREP "f_type;" >/dev/null 2>&1; then :
26386 $as_echo "#define FSTYPE_STATFS 1" >>confdefs.h
26392 if test $fstype = no; then
26393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26394 /* end confdefs.h. */
26396 #include <sys/mount.h>
26397 #include <sys/fs_types.h>
26400 if ac_fn_c_try_cpp "$LINENO"; then :
26401 $as_echo "#define FSTYPE_GETMNT 1" >>confdefs.h
26405 rm -f conftest.err conftest.i conftest.$ac_ext
26407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fstype" >&5
26408 $as_echo "$fstype" >&6; }
26410 ac_fn_c_check_header_mongrel "$LINENO" "sys/statvfs.h" "ac_cv_header_sys_statvfs_h" "$ac_includes_default"
26411 if test "x$ac_cv_header_sys_statvfs_h" = xyes; then :
26413 $as_echo "#define HAVE_SYS_STATVFS_H 1" >>confdefs.h
26420 ac_cpp='$CXXCPP $CPPFLAGS'
26421 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26422 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26423 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26426 for ac_header in cxxabi.h execinfo.h
26428 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
26429 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
26430 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
26431 cat >>confdefs.h <<_ACEOF
26432 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
26435 $as_echo "#define HAVE_BACKTRACE 1" >>confdefs.h
26442 ac_cpp='$CPP $CPPFLAGS'
26443 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26444 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26445 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
26449 $as_echo_n "checking return type of signal handlers... " >&6; }
26450 if ${ac_cv_type_signal+:} false; then :
26451 $as_echo_n "(cached) " >&6
26453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26454 /* end confdefs.h. */
26455 #include <sys/types.h>
26456 #include <signal.h>
26461 return *(signal (0, 0)) (0) == 1;
26466 if ac_fn_c_try_compile "$LINENO"; then :
26467 ac_cv_type_signal=int
26469 ac_cv_type_signal=void
26471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
26474 $as_echo "$ac_cv_type_signal" >&6; }
26476 cat >>confdefs.h <<_ACEOF
26477 #define RETSIGTYPE $ac_cv_type_signal
26482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type of signal functions" >&5
26483 $as_echo_n "checking for type of signal functions... " >&6; }
26484 if ${bash_cv_signal_vintage+:} false; then :
26485 $as_echo_n "(cached) " >&6
26488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26489 /* end confdefs.h. */
26490 #include <signal.h>
26496 struct sigaction sa;
26497 sigemptyset(&ss); sigsuspend(&ss);
26498 sigaction(SIGINT, &sa, (struct sigaction *) 0);
26499 sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
26505 if ac_fn_c_try_link "$LINENO"; then :
26506 bash_cv_signal_vintage="posix"
26509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26510 /* end confdefs.h. */
26511 #include <signal.h>
26516 int mask = sigmask(SIGINT);
26517 sigsetmask(mask); sigblock(mask); sigpause(mask);
26523 if ac_fn_c_try_link "$LINENO"; then :
26524 bash_cv_signal_vintage="4.2bsd"
26527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26528 /* end confdefs.h. */
26530 #include <signal.h>
26531 RETSIGTYPE foo() { }
26536 int mask = sigmask(SIGINT);
26537 sigset(SIGINT, foo); sigrelse(SIGINT);
26538 sighold(SIGINT); sigpause(SIGINT);
26544 if ac_fn_c_try_link "$LINENO"; then :
26545 bash_cv_signal_vintage="svr3"
26547 bash_cv_signal_vintage="v7"
26550 rm -f core conftest.err conftest.$ac_objext \
26551 conftest$ac_exeext conftest.$ac_ext
26554 rm -f core conftest.err conftest.$ac_objext \
26555 conftest$ac_exeext conftest.$ac_ext
26558 rm -f core conftest.err conftest.$ac_objext \
26559 conftest$ac_exeext conftest.$ac_ext
26563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_signal_vintage" >&5
26564 $as_echo "$bash_cv_signal_vintage" >&6; }
26565 if test "$bash_cv_signal_vintage" = "posix"; then
26566 $as_echo "#define HAVE_POSIX_SIGNALS 1" >>confdefs.h
26568 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
26569 $as_echo "#define HAVE_BSD_SIGNALS 1" >>confdefs.h
26571 elif test "$bash_cv_signal_vintage" = "svr3"; then
26572 $as_echo "#define HAVE_USG_SIGHOLD 1" >>confdefs.h
26576 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
26577 if test "x$ac_cv_type_mode_t" = xyes; then :
26581 cat >>confdefs.h <<_ACEOF
26587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
26588 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
26589 if ${ac_cv_type_uid_t+:} false; then :
26590 $as_echo_n "(cached) " >&6
26592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26593 /* end confdefs.h. */
26594 #include <sys/types.h>
26597 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26598 $EGREP "uid_t" >/dev/null 2>&1; then :
26599 ac_cv_type_uid_t=yes
26601 ac_cv_type_uid_t=no
26606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
26607 $as_echo "$ac_cv_type_uid_t" >&6; }
26608 if test $ac_cv_type_uid_t = no; then
26610 $as_echo "#define uid_t int" >>confdefs.h
26613 $as_echo "#define gid_t int" >>confdefs.h
26617 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
26618 if test "x$ac_cv_type_size_t" = xyes; then :
26622 cat >>confdefs.h <<_ACEOF
26623 #define size_t unsigned int
26628 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
26629 if test "x$ac_cv_type_pid_t" = xyes; then :
26633 cat >>confdefs.h <<_ACEOF
26639 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
26640 if test "x$ac_cv_type_off_t" = xyes; then :
26644 cat >>confdefs.h <<_ACEOF
26645 #define off_t long int
26651 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
26652 if test "x$ac_cv_type_intptr_t" = xyes; then :
26654 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
26657 for ac_type in 'int' 'long int' 'long long int'; do
26658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26659 /* end confdefs.h. */
26660 $ac_includes_default
26664 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
26671 if ac_fn_c_try_compile "$LINENO"; then :
26673 cat >>confdefs.h <<_ACEOF
26674 #define intptr_t $ac_type
26679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26680 test -z "$ac_type" && break
26686 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
26687 if test "x$ac_cv_type_uintptr_t" = xyes; then :
26689 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
26692 for ac_type in 'unsigned int' 'unsigned long int' \
26693 'unsigned long long int'; do
26694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26695 /* end confdefs.h. */
26696 $ac_includes_default
26700 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
26707 if ac_fn_c_try_compile "$LINENO"; then :
26709 cat >>confdefs.h <<_ACEOF
26710 #define uintptr_t $ac_type
26715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26716 test -z "$ac_type" && break
26721 ac_fn_c_check_type "$LINENO" "ino_t" "ac_cv_type_ino_t" "$ac_includes_default"
26722 if test "x$ac_cv_type_ino_t" = xyes; then :
26726 cat >>confdefs.h <<_ACEOF
26727 #define ino_t unsigned long
26732 ac_fn_c_check_type "$LINENO" "dev_t" "ac_cv_type_dev_t" "$ac_includes_default"
26733 if test "x$ac_cv_type_dev_t" = xyes; then :
26737 cat >>confdefs.h <<_ACEOF
26738 #define dev_t unsigned long
26743 ac_fn_c_check_type "$LINENO" "daddr_t" "ac_cv_type_daddr_t" "$ac_includes_default"
26744 if test "x$ac_cv_type_daddr_t" = xyes; then :
26748 cat >>confdefs.h <<_ACEOF
26749 #define daddr_t long
26754 ac_fn_c_check_type "$LINENO" "major_t" "ac_cv_type_major_t" "$ac_includes_default"
26755 if test "x$ac_cv_type_major_t" = xyes; then :
26759 cat >>confdefs.h <<_ACEOF
26760 #define major_t int
26765 ac_fn_c_check_type "$LINENO" "minor_t" "ac_cv_type_minor_t" "$ac_includes_default"
26766 if test "x$ac_cv_type_minor_t" = xyes; then :
26770 cat >>confdefs.h <<_ACEOF
26771 #define minor_t int
26776 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
26777 if test "x$ac_cv_type_ssize_t" = xyes; then :
26781 cat >>confdefs.h <<_ACEOF
26782 #define ssize_t int
26787 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
26788 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
26790 cat >>confdefs.h <<_ACEOF
26791 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
26795 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
26798 case " $LIBOBJS " in
26799 *" fileblocks.$ac_objext "* ) ;;
26800 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
26807 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
26808 if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
26810 cat >>confdefs.h <<_ACEOF
26811 #define HAVE_STRUCT_STAT_ST_RDEV 1
26815 $as_echo "#define HAVE_ST_RDEV 1" >>confdefs.h
26820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
26821 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
26822 if ${ac_cv_struct_tm+:} false; then :
26823 $as_echo_n "(cached) " >&6
26825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26826 /* end confdefs.h. */
26827 #include <sys/types.h>
26834 int *p = &tm.tm_sec;
26840 if ac_fn_c_try_compile "$LINENO"; then :
26841 ac_cv_struct_tm=time.h
26843 ac_cv_struct_tm=sys/time.h
26845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
26848 $as_echo "$ac_cv_struct_tm" >&6; }
26849 if test $ac_cv_struct_tm = sys/time.h; then
26851 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
26855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
26856 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
26857 if ${ac_cv_c_const+:} false; then :
26858 $as_echo_n "(cached) " >&6
26860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26861 /* end confdefs.h. */
26866 /* FIXME: Include the comments suggested by Paul. */
26867 #ifndef __cplusplus
26868 /* Ultrix mips cc rejects this. */
26869 typedef int charset[2];
26871 /* SunOS 4.1.1 cc rejects this. */
26872 char const *const *pcpcc;
26874 /* NEC SVR4.0.2 mips cc rejects this. */
26875 struct point {int x, y;};
26876 static struct point const zero = {0,0};
26877 /* AIX XL C 1.02.0.0 rejects this.
26878 It does not let you subtract one const X* pointer from another in
26879 an arm of an if-expression whose if-part is not a constant
26881 const char *g = "string";
26882 pcpcc = &g + (g ? g-g : 0);
26883 /* HPUX 7.0 cc rejects these. */
26885 ppc = (char**) pcpcc;
26886 pcpcc = (char const *const *) ppc;
26887 { /* SCO 3.2v4 cc rejects this. */
26889 char const *s = 0 ? (char *) 0 : (char const *) 0;
26894 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
26895 int x[] = {25, 17};
26896 const int *foo = &x[0];
26899 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
26900 typedef const int *iptr;
26904 { /* AIX XL C 1.02.0.0 rejects this saying
26905 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
26906 struct s { int j; const int *ap[3]; };
26907 struct s *b; b->j = 5;
26909 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
26910 const int foo = 10;
26911 if (!foo) return 0;
26913 return !cs[0] && !zero.x;
26920 if ac_fn_c_try_compile "$LINENO"; then :
26925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
26928 $as_echo "$ac_cv_c_const" >&6; }
26929 if test $ac_cv_c_const = no; then
26931 $as_echo "#define const /**/" >>confdefs.h
26936 # The cast to long int works around a bug in the HP C Compiler
26937 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26938 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26939 # This bug is HP SR number 8606223364.
26940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
26941 $as_echo_n "checking size of char... " >&6; }
26942 if ${ac_cv_sizeof_char+:} false; then :
26943 $as_echo_n "(cached) " >&6
26945 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
26948 if test "$ac_cv_type_char" = yes; then
26949 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26950 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26951 as_fn_error 77 "cannot compute sizeof (char)
26952 See \`config.log' for more details" "$LINENO" 5; }
26954 ac_cv_sizeof_char=0
26959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
26960 $as_echo "$ac_cv_sizeof_char" >&6; }
26964 cat >>confdefs.h <<_ACEOF
26965 #define SIZEOF_CHAR $ac_cv_sizeof_char
26969 # The cast to long int works around a bug in the HP C Compiler
26970 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26971 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26972 # This bug is HP SR number 8606223364.
26973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short int" >&5
26974 $as_echo_n "checking size of short int... " >&6; }
26975 if ${ac_cv_sizeof_short_int+:} false; then :
26976 $as_echo_n "(cached) " >&6
26978 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short int))" "ac_cv_sizeof_short_int" "$ac_includes_default"; then :
26981 if test "$ac_cv_type_short_int" = yes; then
26982 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26983 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26984 as_fn_error 77 "cannot compute sizeof (short int)
26985 See \`config.log' for more details" "$LINENO" 5; }
26987 ac_cv_sizeof_short_int=0
26992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short_int" >&5
26993 $as_echo "$ac_cv_sizeof_short_int" >&6; }
26997 cat >>confdefs.h <<_ACEOF
26998 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
27002 # The cast to long int works around a bug in the HP C Compiler
27003 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27004 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27005 # This bug is HP SR number 8606223364.
27006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
27007 $as_echo_n "checking size of int... " >&6; }
27008 if ${ac_cv_sizeof_int+:} false; then :
27009 $as_echo_n "(cached) " >&6
27011 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
27014 if test "$ac_cv_type_int" = yes; then
27015 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27016 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27017 as_fn_error 77 "cannot compute sizeof (int)
27018 See \`config.log' for more details" "$LINENO" 5; }
27025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
27026 $as_echo "$ac_cv_sizeof_int" >&6; }
27030 cat >>confdefs.h <<_ACEOF
27031 #define SIZEOF_INT $ac_cv_sizeof_int
27035 # The cast to long int works around a bug in the HP C Compiler
27036 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27037 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27038 # This bug is HP SR number 8606223364.
27039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long int" >&5
27040 $as_echo_n "checking size of long int... " >&6; }
27041 if ${ac_cv_sizeof_long_int+:} false; then :
27042 $as_echo_n "(cached) " >&6
27044 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long int))" "ac_cv_sizeof_long_int" "$ac_includes_default"; then :
27047 if test "$ac_cv_type_long_int" = yes; then
27048 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27049 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27050 as_fn_error 77 "cannot compute sizeof (long int)
27051 See \`config.log' for more details" "$LINENO" 5; }
27053 ac_cv_sizeof_long_int=0
27058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_int" >&5
27059 $as_echo "$ac_cv_sizeof_long_int" >&6; }
27063 cat >>confdefs.h <<_ACEOF
27064 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
27068 # The cast to long int works around a bug in the HP C Compiler
27069 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27070 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27071 # This bug is HP SR number 8606223364.
27072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long int" >&5
27073 $as_echo_n "checking size of long long int... " >&6; }
27074 if ${ac_cv_sizeof_long_long_int+:} false; then :
27075 $as_echo_n "(cached) " >&6
27077 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long int))" "ac_cv_sizeof_long_long_int" "$ac_includes_default"; then :
27080 if test "$ac_cv_type_long_long_int" = yes; then
27081 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27082 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27083 as_fn_error 77 "cannot compute sizeof (long long int)
27084 See \`config.log' for more details" "$LINENO" 5; }
27086 ac_cv_sizeof_long_long_int=0
27091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long_int" >&5
27092 $as_echo "$ac_cv_sizeof_long_long_int" >&6; }
27096 cat >>confdefs.h <<_ACEOF
27097 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
27101 # The cast to long int works around a bug in the HP C Compiler
27102 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27103 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27104 # This bug is HP SR number 8606223364.
27105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int *" >&5
27106 $as_echo_n "checking size of int *... " >&6; }
27107 if ${ac_cv_sizeof_int_p+:} false; then :
27108 $as_echo_n "(cached) " >&6
27110 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int *))" "ac_cv_sizeof_int_p" "$ac_includes_default"; then :
27113 if test "$ac_cv_type_int_p" = yes; then
27114 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27115 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27116 as_fn_error 77 "cannot compute sizeof (int *)
27117 See \`config.log' for more details" "$LINENO" 5; }
27119 ac_cv_sizeof_int_p=0
27124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int_p" >&5
27125 $as_echo "$ac_cv_sizeof_int_p" >&6; }
27129 cat >>confdefs.h <<_ACEOF
27130 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
27135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int type" >&5
27136 $as_echo_n "checking for u_int type... " >&6; }
27137 if ${ac_cv_have_u_int+:} false; then :
27138 $as_echo_n "(cached) " >&6
27141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27142 /* end confdefs.h. */
27144 #include <sys/types.h>
27156 if ac_fn_c_try_compile "$LINENO"; then :
27158 ac_cv_have_u_int="yes"
27162 ac_cv_have_u_int="no"
27166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_int" >&5
27171 $as_echo "$ac_cv_have_u_int" >&6; }
27172 if test "x$ac_cv_have_u_int" = "xyes" ; then
27173 $as_echo "#define HAVE_U_INT 1" >>confdefs.h
27178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t type" >&5
27179 $as_echo_n "checking for intmax_t type... " >&6; }
27180 if ${ac_cv_have_intmax_t+:} false; then :
27181 $as_echo_n "(cached) " >&6
27184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27185 /* end confdefs.h. */
27187 #include <sys/types.h>
27199 if ac_fn_c_try_compile "$LINENO"; then :
27201 ac_cv_have_intmax_t="yes"
27205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27206 /* end confdefs.h. */
27208 #include <stdint.h>
27220 if ac_fn_c_try_compile "$LINENO"; then :
27222 ac_cv_have_intmax_t="yes"
27226 ac_cv_have_intmax_t="no"
27230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_intmax_t" >&5
27239 $as_echo "$ac_cv_have_intmax_t" >&6; }
27240 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
27241 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
27246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_intmax_t type" >&5
27247 $as_echo_n "checking for u_intmax_t type... " >&6; }
27248 if ${ac_cv_have_u_intmax_t+:} false; then :
27249 $as_echo_n "(cached) " >&6
27252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27253 /* end confdefs.h. */
27255 #include <sys/types.h>
27261 u_intmax_t a; a = 1;
27267 if ac_fn_c_try_compile "$LINENO"; then :
27269 ac_cv_have_u_intmax_t="yes"
27273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27274 /* end confdefs.h. */
27276 #include <stdint.h>
27282 u_intmax_t a; a = 1;
27288 if ac_fn_c_try_compile "$LINENO"; then :
27290 ac_cv_have_u_intmax_t="yes"
27294 ac_cv_have_u_intmax_t="no"
27298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_intmax_t" >&5
27307 $as_echo "$ac_cv_have_u_intmax_t" >&6; }
27308 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
27309 $as_echo "#define HAVE_U_INTMAX_T 1" >>confdefs.h
27314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intXX_t types" >&5
27315 $as_echo_n "checking for intXX_t types... " >&6; }
27316 if ${ac_cv_have_intxx_t+:} false; then :
27317 $as_echo_n "(cached) " >&6
27320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27321 /* end confdefs.h. */
27323 #include <sys/types.h>
27329 int8_t a; int16_t b; int32_t c; a = b = c = 1;
27335 if ac_fn_c_try_compile "$LINENO"; then :
27337 ac_cv_have_intxx_t="yes"
27341 ac_cv_have_intxx_t="no"
27345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_intxx_t" >&5
27350 $as_echo "$ac_cv_have_intxx_t" >&6; }
27351 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
27352 $as_echo "#define HAVE_INTXX_T 1" >>confdefs.h
27357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t type" >&5
27358 $as_echo_n "checking for int64_t type... " >&6; }
27359 if ${ac_cv_have_int64_t+:} false; then :
27360 $as_echo_n "(cached) " >&6
27363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27364 /* end confdefs.h. */
27366 #include <sys/types.h>
27378 if ac_fn_c_try_compile "$LINENO"; then :
27380 ac_cv_have_int64_t="yes"
27384 ac_cv_have_int64_t="no"
27388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_int64_t" >&5
27393 $as_echo "$ac_cv_have_int64_t" >&6; }
27394 if test "x$ac_cv_have_int64_t" = "xyes" ; then
27395 $as_echo "#define HAVE_INT64_T 1" >>confdefs.h
27400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_intXX_t types" >&5
27401 $as_echo_n "checking for u_intXX_t types... " >&6; }
27402 if ${ac_cv_have_u_intxx_t+:} false; then :
27403 $as_echo_n "(cached) " >&6
27406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27407 /* end confdefs.h. */
27409 #include <sys/types.h>
27415 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
27421 if ac_fn_c_try_compile "$LINENO"; then :
27423 ac_cv_have_u_intxx_t="yes"
27427 ac_cv_have_u_intxx_t="no"
27431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_intxx_t" >&5
27436 $as_echo "$ac_cv_have_u_intxx_t" >&6; }
27437 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
27438 $as_echo "#define HAVE_U_INTXX_T 1" >>confdefs.h
27443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int64_t types" >&5
27444 $as_echo_n "checking for u_int64_t types... " >&6; }
27445 if ${ac_cv_have_u_int64_t+:} false; then :
27446 $as_echo_n "(cached) " >&6
27449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27450 /* end confdefs.h. */
27452 #include <sys/types.h>
27458 u_int64_t a; a = 1;
27464 if ac_fn_c_try_compile "$LINENO"; then :
27466 ac_cv_have_u_int64_t="yes"
27470 ac_cv_have_u_int64_t="no"
27474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_int64_t" >&5
27479 $as_echo "$ac_cv_have_u_int64_t" >&6; }
27480 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
27481 $as_echo "#define HAVE_U_INT64_T 1" >>confdefs.h
27486 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
27487 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
27489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
27490 $as_echo_n "checking for intXX_t and u_intXX_t types in sys/bitypes.h... " >&6; }
27491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27492 /* end confdefs.h. */
27494 #include <sys/bitypes.h>
27500 int8_t a; int16_t b; int32_t c;
27501 u_int8_t e; u_int16_t f; u_int32_t g;
27502 a = b = c = e = f = g = 1;
27508 if ac_fn_c_try_compile "$LINENO"; then :
27510 $as_echo "#define HAVE_U_INTXX_T 1" >>confdefs.h
27512 $as_echo "#define HAVE_INTXX_T 1" >>confdefs.h
27514 $as_echo "#define HAVE_SYS_BITYPES_H 1" >>confdefs.h
27516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27517 $as_echo "yes" >&6; }
27521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27522 $as_echo "no" >&6; }
27526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27529 if test -z "$have_u_intxx_t" ; then
27530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uintXX_t types" >&5
27531 $as_echo_n "checking for uintXX_t types... " >&6; }
27532 if ${ac_cv_have_uintxx_t+:} false; then :
27533 $as_echo_n "(cached) " >&6
27536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27537 /* end confdefs.h. */
27539 #include <sys/types.h>
27545 uint8_t a; uint16_t b;
27546 uint32_t c; a = b = c = 1;
27552 if ac_fn_c_try_compile "$LINENO"; then :
27554 ac_cv_have_uintxx_t="yes"
27558 ac_cv_have_uintxx_t="no"
27562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_uintxx_t" >&5
27567 $as_echo "$ac_cv_have_uintxx_t" >&6; }
27568 if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
27569 $as_echo "#define HAVE_UINTXX_T 1" >>confdefs.h
27574 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
27575 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
27577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
27578 $as_echo_n "checking for int64_t and u_int64_t types in sys/bitypes.h... " >&6; }
27579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27580 /* end confdefs.h. */
27582 #include <sys/bitypes.h>
27588 int64_t a; u_int64_t b;
27595 if ac_fn_c_try_compile "$LINENO"; then :
27597 $as_echo "#define HAVE_U_INT64_T 1" >>confdefs.h
27599 $as_echo "#define HAVE_INT64_T 1" >>confdefs.h
27601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27602 $as_echo "yes" >&6; }
27606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27607 $as_echo "no" >&6; }
27611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27614 if (test -z "$have_uintxx_t" && \
27615 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
27617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uintXX_t types in sys/bitypes.h" >&5
27618 $as_echo_n "checking for uintXX_t types in sys/bitypes.h... " >&6; }
27619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27620 /* end confdefs.h. */
27622 #include <sys/bitypes.h>
27628 uint8_t a; uint16_t b;
27629 uint32_t c; a = b = c = 1;
27635 if ac_fn_c_try_compile "$LINENO"; then :
27637 $as_echo "#define HAVE_UINTXX_T 1" >>confdefs.h
27639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27640 $as_echo "yes" >&6; }
27644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27645 $as_echo "no" >&6; }
27649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27668 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
27669 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
27670 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
27671 cat >>confdefs.h <<_ACEOF
27672 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
27676 echo 'configure: cannot find needed function.'; exit 1
27682 for ac_func in getpagesize
27684 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
27685 if test "x$ac_cv_func_getpagesize" = xyes; then :
27686 cat >>confdefs.h <<_ACEOF
27687 #define HAVE_GETPAGESIZE 1
27690 $as_echo "#define HAVE_GETPAGESIZE 1" >>confdefs.h
27695 for ac_func in malloc_trim
27697 ac_fn_c_check_func "$LINENO" "malloc_trim" "ac_cv_func_malloc_trim"
27698 if test "x$ac_cv_func_malloc_trim" = xyes; then :
27699 cat >>confdefs.h <<_ACEOF
27700 #define HAVE_MALLOC_TRIM 1
27703 $as_echo "#define HAVE_MALLOC_TRIM 1" >>confdefs.h
27709 for ac_func in fchdir
27711 ac_fn_c_check_func "$LINENO" "fchdir" "ac_cv_func_fchdir"
27712 if test "x$ac_cv_func_fchdir" = xyes; then :
27713 cat >>confdefs.h <<_ACEOF
27714 #define HAVE_FCHDIR 1
27716 $as_echo "#define HAVE_FCHDIR 1" >>confdefs.h
27721 for ac_func in strtoll
27723 ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll"
27724 if test "x$ac_cv_func_strtoll" = xyes; then :
27725 cat >>confdefs.h <<_ACEOF
27726 #define HAVE_STRTOLL 1
27728 $as_echo "#define HAVE_STRTOLL 1" >>confdefs.h
27733 for ac_func in posix_fadvise
27735 ac_fn_c_check_func "$LINENO" "posix_fadvise" "ac_cv_func_posix_fadvise"
27736 if test "x$ac_cv_func_posix_fadvise" = xyes; then :
27737 cat >>confdefs.h <<_ACEOF
27738 #define HAVE_POSIX_FADVISE 1
27744 for ac_func in fdatasync
27746 ac_fn_c_check_func "$LINENO" "fdatasync" "ac_cv_func_fdatasync"
27747 if test "x$ac_cv_func_fdatasync" = xyes; then :
27748 cat >>confdefs.h <<_ACEOF
27749 #define HAVE_FDATASYNC 1
27756 for ac_func in chflags
27758 ac_fn_c_check_func "$LINENO" "chflags" "ac_cv_func_chflags"
27759 if test "x$ac_cv_func_chflags" = xyes; then :
27760 cat >>confdefs.h <<_ACEOF
27761 #define HAVE_CHFLAGS 1
27768 for ac_func in snprintf vsnprintf gethostid fseeko
27770 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
27771 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
27772 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
27773 cat >>confdefs.h <<_ACEOF
27774 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
27781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
27782 $as_echo_n "checking for va_copy... " >&6; }
27783 if ${ba_cv_va_copy+:} false; then :
27784 $as_echo_n "(cached) " >&6
27787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27788 /* end confdefs.h. */
27790 #include <stdarg.h>
27791 void use_va_copy(va_list args){va_list args2; va_copy(args2,args); va_end(args2);}
27792 void call_use_va_copy(int junk,...){va_list args; va_start(args,junk); use_va_copy(args); va_end(args);}
27798 call_use_va_copy(1,2,3)
27804 if ac_fn_c_try_link "$LINENO"; then :
27814 rm -f core conftest.err conftest.$ac_objext \
27815 conftest$ac_exeext conftest.$ac_ext
27819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_va_copy" >&5
27820 $as_echo "$ba_cv_va_copy" >&6; }
27821 test $ba_cv_va_copy = yes &&
27822 $as_echo "#define HAVE_VA_COPY 1" >>confdefs.h
27825 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
27827 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
27828 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
27829 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
27830 cat >>confdefs.h <<_ACEOF
27831 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
27838 # If resolver functions are not in libc check for -lnsl or -lresolv.
27839 ac_fn_c_check_func "$LINENO" "gethostbyname_r" "ac_cv_func_gethostbyname_r"
27840 if test "x$ac_cv_func_gethostbyname_r" = xyes; then :
27841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using libc's resolver" >&5
27842 $as_echo "using libc's resolver" >&6; }
27844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname_r in -lnsl" >&5
27845 $as_echo_n "checking for gethostbyname_r in -lnsl... " >&6; }
27846 if ${ac_cv_lib_nsl_gethostbyname_r+:} false; then :
27847 $as_echo_n "(cached) " >&6
27849 ac_check_lib_save_LIBS=$LIBS
27851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27852 /* end confdefs.h. */
27854 /* Override any GCC internal prototype to avoid an error.
27855 Use char because int might match the return type of a GCC
27856 builtin and then its argument prototype would still apply. */
27860 char gethostbyname_r ();
27864 return gethostbyname_r ();
27869 if ac_fn_c_try_link "$LINENO"; then :
27870 ac_cv_lib_nsl_gethostbyname_r=yes
27872 ac_cv_lib_nsl_gethostbyname_r=no
27874 rm -f core conftest.err conftest.$ac_objext \
27875 conftest$ac_exeext conftest.$ac_ext
27876 LIBS=$ac_check_lib_save_LIBS
27878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
27879 $as_echo "$ac_cv_lib_nsl_gethostbyname_r" >&6; }
27880 if test "x$ac_cv_lib_nsl_gethostbyname_r" = xyes; then :
27881 cat >>confdefs.h <<_ACEOF
27882 #define HAVE_LIBNSL 1
27889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname_r in -lresolv" >&5
27890 $as_echo_n "checking for gethostbyname_r in -lresolv... " >&6; }
27891 if ${ac_cv_lib_resolv_gethostbyname_r+:} false; then :
27892 $as_echo_n "(cached) " >&6
27894 ac_check_lib_save_LIBS=$LIBS
27895 LIBS="-lresolv $LIBS"
27896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27897 /* end confdefs.h. */
27899 /* Override any GCC internal prototype to avoid an error.
27900 Use char because int might match the return type of a GCC
27901 builtin and then its argument prototype would still apply. */
27905 char gethostbyname_r ();
27909 return gethostbyname_r ();
27914 if ac_fn_c_try_link "$LINENO"; then :
27915 ac_cv_lib_resolv_gethostbyname_r=yes
27917 ac_cv_lib_resolv_gethostbyname_r=no
27919 rm -f core conftest.err conftest.$ac_objext \
27920 conftest$ac_exeext conftest.$ac_ext
27921 LIBS=$ac_check_lib_save_LIBS
27923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
27924 $as_echo "$ac_cv_lib_resolv_gethostbyname_r" >&6; }
27925 if test "x$ac_cv_lib_resolv_gethostbyname_r" = xyes; then :
27926 cat >>confdefs.h <<_ACEOF
27927 #define HAVE_LIBRESOLV 1
27930 LIBS="-lresolv $LIBS"
27937 for ac_func in inet_pton
27939 ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton"
27940 if test "x$ac_cv_func_inet_pton" = xyes; then :
27941 cat >>confdefs.h <<_ACEOF
27942 #define HAVE_INET_PTON 1
27944 $as_echo "#define HAVE_INET_PTON 1" >>confdefs.h
27949 for ac_func in inet_ntop
27951 ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
27952 if test "x$ac_cv_func_inet_ntop" = xyes; then :
27953 cat >>confdefs.h <<_ACEOF
27954 #define HAVE_INET_NTOP 1
27956 $as_echo "#define HAVE_INET_NTOP 1" >>confdefs.h
27961 for ac_func in gethostbyname2
27963 ac_fn_c_check_func "$LINENO" "gethostbyname2" "ac_cv_func_gethostbyname2"
27964 if test "x$ac_cv_func_gethostbyname2" = xyes; then :
27965 cat >>confdefs.h <<_ACEOF
27966 #define HAVE_GETHOSTBYNAME2 1
27968 $as_echo "#define HAVE_GETHOSTBYNAME2 1" >>confdefs.h
27974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr has a sa_len field" >&5
27975 $as_echo_n "checking for struct sockaddr has a sa_len field... " >&6; }
27976 if ${ac_cv_struct_sockaddr_sa_len+:} false; then :
27977 $as_echo_n "(cached) " >&6
27980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27981 /* end confdefs.h. */
27983 #include <sys/socket.h>
27989 struct sockaddr s; s.sa_len;
27995 if ac_fn_c_try_compile "$LINENO"; then :
27997 ac_cv_struct_sockaddr_sa_len=yes
28000 ac_cv_struct_sockaddr_sa_len=no
28004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_sockaddr_sa_len" >&5
28009 $as_echo "$ac_cv_struct_sockaddr_sa_len" >&6; }
28011 if test $ac_cv_struct_sockaddr_sa_len = yes; then
28013 $as_echo "#define HAVE_SA_LEN 1" >>confdefs.h
28017 for ac_func in strftime
28019 ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
28020 if test "x$ac_cv_func_strftime" = xyes; then :
28021 cat >>confdefs.h <<_ACEOF
28022 #define HAVE_STRFTIME 1
28026 # strftime is in -lintl on SCO UNIX.
28027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
28028 $as_echo_n "checking for strftime in -lintl... " >&6; }
28029 if ${ac_cv_lib_intl_strftime+:} false; then :
28030 $as_echo_n "(cached) " >&6
28032 ac_check_lib_save_LIBS=$LIBS
28033 LIBS="-lintl $LIBS"
28034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28035 /* end confdefs.h. */
28037 /* Override any GCC internal prototype to avoid an error.
28038 Use char because int might match the return type of a GCC
28039 builtin and then its argument prototype would still apply. */
28047 return strftime ();
28052 if ac_fn_c_try_link "$LINENO"; then :
28053 ac_cv_lib_intl_strftime=yes
28055 ac_cv_lib_intl_strftime=no
28057 rm -f core conftest.err conftest.$ac_objext \
28058 conftest$ac_exeext conftest.$ac_ext
28059 LIBS=$ac_check_lib_save_LIBS
28061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
28062 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
28063 if test "x$ac_cv_lib_intl_strftime" = xyes; then :
28064 $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
28066 LIBS="-lintl $LIBS"
28072 for ac_func in vprintf
28074 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
28075 if test "x$ac_cv_func_vprintf" = xyes; then :
28076 cat >>confdefs.h <<_ACEOF
28077 #define HAVE_VPRINTF 1
28080 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
28081 if test "x$ac_cv_func__doprnt" = xyes; then :
28083 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
28091 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
28092 # for constant arguments. Useless!
28093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
28094 $as_echo_n "checking for working alloca.h... " >&6; }
28095 if ${ac_cv_working_alloca_h+:} false; then :
28096 $as_echo_n "(cached) " >&6
28098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28099 /* end confdefs.h. */
28100 #include <alloca.h>
28104 char *p = (char *) alloca (2 * sizeof (int));
28110 if ac_fn_c_try_link "$LINENO"; then :
28111 ac_cv_working_alloca_h=yes
28113 ac_cv_working_alloca_h=no
28115 rm -f core conftest.err conftest.$ac_objext \
28116 conftest$ac_exeext conftest.$ac_ext
28118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
28119 $as_echo "$ac_cv_working_alloca_h" >&6; }
28120 if test $ac_cv_working_alloca_h = yes; then
28122 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
28126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
28127 $as_echo_n "checking for alloca... " >&6; }
28128 if ${ac_cv_func_alloca_works+:} false; then :
28129 $as_echo_n "(cached) " >&6
28131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28132 /* end confdefs.h. */
28134 # define alloca __builtin_alloca
28137 # include <malloc.h>
28138 # define alloca _alloca
28140 # ifdef HAVE_ALLOCA_H
28141 # include <alloca.h>
28146 # ifndef alloca /* predefined by HP cc +Olibcalls */
28147 void *alloca (size_t);
28157 char *p = (char *) alloca (1);
28163 if ac_fn_c_try_link "$LINENO"; then :
28164 ac_cv_func_alloca_works=yes
28166 ac_cv_func_alloca_works=no
28168 rm -f core conftest.err conftest.$ac_objext \
28169 conftest$ac_exeext conftest.$ac_ext
28171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
28172 $as_echo "$ac_cv_func_alloca_works" >&6; }
28174 if test $ac_cv_func_alloca_works = yes; then
28176 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
28179 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
28180 # that cause trouble. Some versions do not even contain alloca or
28181 # contain a buggy version. If you still want to use their alloca,
28182 # use ar to extract alloca.o from them instead of compiling alloca.c.
28184 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
28186 $as_echo "#define C_ALLOCA 1" >>confdefs.h
28189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
28190 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
28191 if ${ac_cv_os_cray+:} false; then :
28192 $as_echo_n "(cached) " >&6
28194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28195 /* end confdefs.h. */
28196 #if defined CRAY && ! defined CRAY2
28203 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28204 $EGREP "webecray" >/dev/null 2>&1; then :
28212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
28213 $as_echo "$ac_cv_os_cray" >&6; }
28214 if test $ac_cv_os_cray = yes; then
28215 for ac_func in _getb67 GETB67 getb67; do
28216 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28217 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28218 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
28220 cat >>confdefs.h <<_ACEOF
28221 #define CRAY_STACKSEG_END $ac_func
28230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
28231 $as_echo_n "checking stack direction for C alloca... " >&6; }
28232 if ${ac_cv_c_stack_direction+:} false; then :
28233 $as_echo_n "(cached) " >&6
28235 if test "$cross_compiling" = yes; then :
28236 ac_cv_c_stack_direction=0
28238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28239 /* end confdefs.h. */
28240 $ac_includes_default
28242 find_stack_direction ()
28244 static char *addr = 0;
28249 return find_stack_direction ();
28252 return (&dummy > addr) ? 1 : -1;
28258 return find_stack_direction () < 0;
28261 if ac_fn_c_try_run "$LINENO"; then :
28262 ac_cv_c_stack_direction=1
28264 ac_cv_c_stack_direction=-1
28266 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28267 conftest.$ac_objext conftest.beam conftest.$ac_ext
28271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
28272 $as_echo "$ac_cv_c_stack_direction" >&6; }
28273 cat >>confdefs.h <<_ACEOF
28274 #define STACK_DIRECTION $ac_cv_c_stack_direction
28280 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
28281 # -lseq on Dynix/PTX, -lgen on Unixware.
28282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getmntent" >&5
28283 $as_echo_n "checking for library containing getmntent... " >&6; }
28284 if ${ac_cv_search_getmntent+:} false; then :
28285 $as_echo_n "(cached) " >&6
28287 ac_func_search_save_LIBS=$LIBS
28288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28289 /* end confdefs.h. */
28291 /* Override any GCC internal prototype to avoid an error.
28292 Use char because int might match the return type of a GCC
28293 builtin and then its argument prototype would still apply. */
28301 return getmntent ();
28306 for ac_lib in '' sun seq gen; do
28307 if test -z "$ac_lib"; then
28308 ac_res="none required"
28311 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28313 if ac_fn_c_try_link "$LINENO"; then :
28314 ac_cv_search_getmntent=$ac_res
28316 rm -f core conftest.err conftest.$ac_objext \
28318 if ${ac_cv_search_getmntent+:} false; then :
28322 if ${ac_cv_search_getmntent+:} false; then :
28325 ac_cv_search_getmntent=no
28327 rm conftest.$ac_ext
28328 LIBS=$ac_func_search_save_LIBS
28330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getmntent" >&5
28331 $as_echo "$ac_cv_search_getmntent" >&6; }
28332 ac_res=$ac_cv_search_getmntent
28333 if test "$ac_res" != no; then :
28334 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28335 ac_cv_func_getmntent=yes
28337 $as_echo "#define HAVE_GETMNTENT 1" >>confdefs.h
28340 ac_cv_func_getmntent=no
28344 for ac_func in getmntinfo
28346 ac_fn_c_check_func "$LINENO" "getmntinfo" "ac_cv_func_getmntinfo"
28347 if test "x$ac_cv_func_getmntinfo" = xyes; then :
28348 cat >>confdefs.h <<_ACEOF
28349 #define HAVE_GETMNTINFO 1
28351 $as_echo "#define HAVE_GETMNTINFO 1" >>confdefs.h
28356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
28357 $as_echo_n "checking whether closedir returns void... " >&6; }
28358 if ${ac_cv_func_closedir_void+:} false; then :
28359 $as_echo_n "(cached) " >&6
28361 if test "$cross_compiling" = yes; then :
28362 ac_cv_func_closedir_void=yes
28364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28365 /* end confdefs.h. */
28366 $ac_includes_default
28367 #include <$ac_header_dirent>
28368 #ifndef __cplusplus
28375 return closedir (opendir (".")) != 0;
28380 if ac_fn_c_try_run "$LINENO"; then :
28381 ac_cv_func_closedir_void=no
28383 ac_cv_func_closedir_void=yes
28385 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28386 conftest.$ac_objext conftest.beam conftest.$ac_ext
28390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
28391 $as_echo "$ac_cv_func_closedir_void" >&6; }
28392 if test $ac_cv_func_closedir_void = yes; then
28394 $as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
28398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
28399 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
28400 if ${ac_cv_func_setpgrp_void+:} false; then :
28401 $as_echo_n "(cached) " >&6
28403 if test "$cross_compiling" = yes; then :
28404 as_fn_error $? "cannot check setpgrp when cross compiling" "$LINENO" 5
28406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28407 /* end confdefs.h. */
28408 $ac_includes_default
28412 /* If this system has a BSD-style setpgrp which takes arguments,
28413 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
28414 exit successfully. */
28415 return setpgrp (1,1) != -1;
28420 if ac_fn_c_try_run "$LINENO"; then :
28421 ac_cv_func_setpgrp_void=no
28423 ac_cv_func_setpgrp_void=yes
28425 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28426 conftest.$ac_objext conftest.beam conftest.$ac_ext
28430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
28431 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
28432 if test $ac_cv_func_setpgrp_void = yes; then
28434 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
28437 # AC_FUNC_FNMATCH dnl use local version
28439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettext in -lintl" >&5
28440 $as_echo_n "checking for gettext in -lintl... " >&6; }
28441 if ${ac_cv_lib_intl_gettext+:} false; then :
28442 $as_echo_n "(cached) " >&6
28444 ac_check_lib_save_LIBS=$LIBS
28445 LIBS="-lintl $LIBS"
28446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28447 /* end confdefs.h. */
28449 /* Override any GCC internal prototype to avoid an error.
28450 Use char because int might match the return type of a GCC
28451 builtin and then its argument prototype would still apply. */
28464 if ac_fn_c_try_link "$LINENO"; then :
28465 ac_cv_lib_intl_gettext=yes
28467 ac_cv_lib_intl_gettext=no
28469 rm -f core conftest.err conftest.$ac_objext \
28470 conftest$ac_exeext conftest.$ac_ext
28471 LIBS=$ac_check_lib_save_LIBS
28473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_gettext" >&5
28474 $as_echo "$ac_cv_lib_intl_gettext" >&6; }
28475 if test "x$ac_cv_lib_intl_gettext" = xyes; then :
28476 LIBS="$LIBS -lintl"
28480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpwnam in -lsun" >&5
28481 $as_echo_n "checking for getpwnam in -lsun... " >&6; }
28482 if ${ac_cv_lib_sun_getpwnam+:} false; then :
28483 $as_echo_n "(cached) " >&6
28485 ac_check_lib_save_LIBS=$LIBS
28487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28488 /* end confdefs.h. */
28490 /* Override any GCC internal prototype to avoid an error.
28491 Use char because int might match the return type of a GCC
28492 builtin and then its argument prototype would still apply. */
28500 return getpwnam ();
28505 if ac_fn_c_try_link "$LINENO"; then :
28506 ac_cv_lib_sun_getpwnam=yes
28508 ac_cv_lib_sun_getpwnam=no
28510 rm -f core conftest.err conftest.$ac_objext \
28511 conftest$ac_exeext conftest.$ac_ext
28512 LIBS=$ac_check_lib_save_LIBS
28514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sun_getpwnam" >&5
28515 $as_echo "$ac_cv_lib_sun_getpwnam" >&6; }
28516 if test "x$ac_cv_lib_sun_getpwnam" = xyes; then :
28517 cat >>confdefs.h <<_ACEOF
28518 #define HAVE_LIBSUN 1
28526 for ac_header in zlib.h
28528 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
28529 if test "x$ac_cv_header_zlib_h" = xyes; then :
28530 cat >>confdefs.h <<_ACEOF
28531 #define HAVE_ZLIB_H 1
28538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
28539 $as_echo_n "checking for deflate in -lz... " >&6; }
28540 if ${ac_cv_lib_z_deflate+:} false; then :
28541 $as_echo_n "(cached) " >&6
28543 ac_check_lib_save_LIBS=$LIBS
28545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28546 /* end confdefs.h. */
28548 /* Override any GCC internal prototype to avoid an error.
28549 Use char because int might match the return type of a GCC
28550 builtin and then its argument prototype would still apply. */
28563 if ac_fn_c_try_link "$LINENO"; then :
28564 ac_cv_lib_z_deflate=yes
28566 ac_cv_lib_z_deflate=no
28568 rm -f core conftest.err conftest.$ac_objext \
28569 conftest$ac_exeext conftest.$ac_ext
28570 LIBS=$ac_check_lib_save_LIBS
28572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
28573 $as_echo "$ac_cv_lib_z_deflate" >&6; }
28574 if test "x$ac_cv_lib_z_deflate" = xyes; then :
28579 if test x$ZLIBS = x-lz; then
28580 $as_echo "#define HAVE_LIBZ 1" >>confdefs.h
28589 # Check whether --enable-afs was given.
28590 if test "${enable_afs+set}" = set; then :
28591 enableval=$enable_afs;
28592 if test x$enableval = xyes; then
28594 elif test x$enableval = xno; then
28603 if test x$support_afs = xyes -o x$support_afs = xauto; then
28605 # Check whether --with-afsdir was given.
28606 if test "${with_afsdir+set}" = set; then :
28607 withval=$with_afsdir; with_afsdir=$withval
28612 if test x$with_afsdir = x; then
28613 for root in /usr /usr/local; do
28614 if test -d ${root}/include/afs/ ; then
28615 with_afsdir=${root}
28621 AFS_CFLAGS="-I${with_afsdir}/include"
28623 saved_CFLAGS="${CFLAGS}"
28624 CFLAGS="${AFS_CFLAGS} ${saved_CFLAGS}"
28626 for ac_header in afs/stds.h
28628 ac_fn_c_check_header_mongrel "$LINENO" "afs/stds.h" "ac_cv_header_afs_stds_h" "$ac_includes_default"
28629 if test "x$ac_cv_header_afs_stds_h" = xyes; then :
28630 cat >>confdefs.h <<_ACEOF
28631 #define HAVE_AFS_STDS_H 1
28639 CFLAGS="${saved_CFLAGS}"
28641 for dir in ${with_afsdir}/lib ${with_afsdir}/lib/afs
28643 for arch_type in .a .so
28645 A=`test -f ${dir}/libsys${arch_type} && nm ${dir}/libsys${arch_type} | grep pioctl`
28647 if test $pkg = 0; then
28649 AFS_LIBS="-L${dir} -lsys -lrx -llwp ${dir}/util.a"
28655 if test x$support_afs = xyes -a $have_afs != yes; then
28656 as_fn_error $? "afs support explicitly enabled but no supported afs implementation found,
28657 please either load the afs libraries or rerun configure without --enable-afs" "$LINENO" 5
28659 if test $have_afs = yes; then
28661 $as_echo "#define HAVE_AFS 1" >>confdefs.h
28664 $as_echo "#define HAVE_AFS_ACL 1" >>confdefs.h
28674 # Check whether --enable-acl was given.
28675 if test "${enable_acl+set}" = set; then :
28676 enableval=$enable_acl;
28677 if test x$enableval = xyes; then
28679 elif test x$enableval = xno; then
28688 have_extended_acl=no
28689 if test x$support_acl = xyes -o x$support_acl = xauto; then
28690 ac_fn_c_check_header_mongrel "$LINENO" "sys/acl.h" "ac_cv_header_sys_acl_h" "$ac_includes_default"
28691 if test "x$ac_cv_header_sys_acl_h" = xyes; then :
28693 $as_echo "#define HAVE_SYS_ACL_H 1" >>confdefs.h
28699 ac_fn_c_check_func "$LINENO" "acl_get_file" "ac_cv_func_acl_get_file"
28700 if test "x$ac_cv_func_acl_get_file" = xyes; then :
28708 if test $have_acl = no; then
28709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get_file in -lacl" >&5
28710 $as_echo_n "checking for acl_get_file in -lacl... " >&6; }
28711 if ${ac_cv_lib_acl_acl_get_file+:} false; then :
28712 $as_echo_n "(cached) " >&6
28714 ac_check_lib_save_LIBS=$LIBS
28716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28717 /* end confdefs.h. */
28719 /* Override any GCC internal prototype to avoid an error.
28720 Use char because int might match the return type of a GCC
28721 builtin and then its argument prototype would still apply. */
28725 char acl_get_file ();
28729 return acl_get_file ();
28734 if ac_fn_c_try_link "$LINENO"; then :
28735 ac_cv_lib_acl_acl_get_file=yes
28737 ac_cv_lib_acl_acl_get_file=no
28739 rm -f core conftest.err conftest.$ac_objext \
28740 conftest$ac_exeext conftest.$ac_ext
28741 LIBS=$ac_check_lib_save_LIBS
28743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_acl_acl_get_file" >&5
28744 $as_echo "$ac_cv_lib_acl_acl_get_file" >&6; }
28745 if test "x$ac_cv_lib_acl_acl_get_file" = xyes; then :
28748 if test $have_afs = yes; then
28749 if test -d /usr/lib64/; then
28750 FDLIBS="-L/usr/lib64 -lacl $FDLIBS"
28752 FDLIBS="-L/usr/lib -lacl $FDLIBS"
28755 FDLIBS="-lacl $FDLIBS"
28763 if test $have_acl = no; then
28764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get_file in -lpacl" >&5
28765 $as_echo_n "checking for acl_get_file in -lpacl... " >&6; }
28766 if ${ac_cv_lib_pacl_acl_get_file+:} false; then :
28767 $as_echo_n "(cached) " >&6
28769 ac_check_lib_save_LIBS=$LIBS
28770 LIBS="-lpacl $LIBS"
28771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28772 /* end confdefs.h. */
28774 /* Override any GCC internal prototype to avoid an error.
28775 Use char because int might match the return type of a GCC
28776 builtin and then its argument prototype would still apply. */
28780 char acl_get_file ();
28784 return acl_get_file ();
28789 if ac_fn_c_try_link "$LINENO"; then :
28790 ac_cv_lib_pacl_acl_get_file=yes
28792 ac_cv_lib_pacl_acl_get_file=no
28794 rm -f core conftest.err conftest.$ac_objext \
28795 conftest$ac_exeext conftest.$ac_ext
28796 LIBS=$ac_check_lib_save_LIBS
28798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pacl_acl_get_file" >&5
28799 $as_echo "$ac_cv_lib_pacl_acl_get_file" >&6; }
28800 if test "x$ac_cv_lib_pacl_acl_get_file" = xyes; then :
28803 FDLIBS="-lpacl $FDLIBS"
28810 if test $have_acl = no -a \
28811 x${HAVE_SUN_OS_TRUE} = x; then
28812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acltotext in -lsec" >&5
28813 $as_echo_n "checking for acltotext in -lsec... " >&6; }
28814 if ${ac_cv_lib_sec_acltotext+:} false; then :
28815 $as_echo_n "(cached) " >&6
28817 ac_check_lib_save_LIBS=$LIBS
28819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28820 /* end confdefs.h. */
28822 /* Override any GCC internal prototype to avoid an error.
28823 Use char because int might match the return type of a GCC
28824 builtin and then its argument prototype would still apply. */
28832 return acltotext ();
28837 if ac_fn_c_try_link "$LINENO"; then :
28838 ac_cv_lib_sec_acltotext=yes
28840 ac_cv_lib_sec_acltotext=no
28842 rm -f core conftest.err conftest.$ac_objext \
28843 conftest$ac_exeext conftest.$ac_ext
28844 LIBS=$ac_check_lib_save_LIBS
28846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sec_acltotext" >&5
28847 $as_echo "$ac_cv_lib_sec_acltotext" >&6; }
28848 if test "x$ac_cv_lib_sec_acltotext" = xyes; then :
28851 FDLIBS="-lsec $FDLIBS"
28853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_totext in -lsec" >&5
28854 $as_echo_n "checking for acl_totext in -lsec... " >&6; }
28855 if ${ac_cv_lib_sec_acl_totext+:} false; then :
28856 $as_echo_n "(cached) " >&6
28858 ac_check_lib_save_LIBS=$LIBS
28860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28861 /* end confdefs.h. */
28863 /* Override any GCC internal prototype to avoid an error.
28864 Use char because int might match the return type of a GCC
28865 builtin and then its argument prototype would still apply. */
28869 char acl_totext ();
28873 return acl_totext ();
28878 if ac_fn_c_try_link "$LINENO"; then :
28879 ac_cv_lib_sec_acl_totext=yes
28881 ac_cv_lib_sec_acl_totext=no
28883 rm -f core conftest.err conftest.$ac_objext \
28884 conftest$ac_exeext conftest.$ac_ext
28885 LIBS=$ac_check_lib_save_LIBS
28887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sec_acl_totext" >&5
28888 $as_echo "$ac_cv_lib_sec_acl_totext" >&6; }
28889 if test "x$ac_cv_lib_sec_acl_totext" = xyes; then :
28891 have_extended_acl=yes
28902 if test $have_acl = no -a \
28903 x${HAVE_AIX_OS_TRUE} = x; then
28904 ac_fn_c_check_func "$LINENO" "acl_get" "ac_cv_func_acl_get"
28905 if test "x$ac_cv_func_acl_get" = xyes; then :
28909 ac_fn_c_check_func "$LINENO" "aclx_get" "ac_cv_func_aclx_get"
28910 if test "x$ac_cv_func_aclx_get" = xyes; then :
28912 have_extended_acl=yes
28923 if test x$support_acl = xyes -a $have_acl != yes; then
28924 as_fn_error $? "acl support explicitly enabled but no supported acl implementation found,
28925 please either load the acl libraries or rerun configure without --enable-acl" "$LINENO" 5
28927 if test $have_acl = yes; then
28929 $as_echo "#define HAVE_ACL 1" >>confdefs.h
28933 if test $have_extended_acl = yes; then
28935 $as_echo "#define HAVE_EXTENDED_ACL 1" >>confdefs.h
28942 # Check whether --enable-xattr was given.
28943 if test "${enable_xattr+set}" = set; then :
28944 enableval=$enable_xattr;
28945 if test x$enableval = xyes; then
28947 elif test x$enableval = xno; then
28956 if test x$support_xattr = xyes -o x$support_xattr = xauto; then
28957 if test x${HAVE_FREEBSD_OS_TRUE} = x -o \
28958 x${HAVE_NETBSD_OS_TRUE} = x -o \
28959 x${HAVE_OPENBSD_OS_TRUE} = x; then
28960 ac_fn_c_check_header_mongrel "$LINENO" "sys/extattr.h" "ac_cv_header_sys_extattr_h" "$ac_includes_default"
28961 if test "x$ac_cv_header_sys_extattr_h" = xyes; then :
28963 $as_echo "#define HAVE_SYS_EXTATTR_H 1" >>confdefs.h
28968 ac_fn_c_check_header_mongrel "$LINENO" "libutil.h" "ac_cv_header_libutil_h" "$ac_includes_default"
28969 if test "x$ac_cv_header_libutil_h" = xyes; then :
28971 $as_echo "#define HAVE_LIBUTIL_H 1" >>confdefs.h
28976 for ac_func in extattr_get_link extattr_set_link extattr_list_link
28978 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28979 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28980 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
28981 cat >>confdefs.h <<_ACEOF
28982 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28987 $as_echo "#define HAVE_EXTATTR_GET_LINK 1" >>confdefs.h
28990 $as_echo "#define HAVE_EXTATTR_SET_LINK 1" >>confdefs.h
28993 $as_echo "#define HAVE_EXTATTR_LIST_LINK 1" >>confdefs.h
29001 if test $have_xattr = no; then
29002 for ac_func in extattr_get_file extattr_set_file extattr_list_file
29004 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29005 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29006 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
29007 cat >>confdefs.h <<_ACEOF
29008 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29013 $as_echo "#define HAVE_EXTATTR_GET_FILE 1" >>confdefs.h
29016 $as_echo "#define HAVE_EXTATTR_SET_FILE 1" >>confdefs.h
29019 $as_echo "#define HAVE_EXTATTR_LIST_FILE 1" >>confdefs.h
29028 if test $have_xattr = yes; then
29029 have_extattr_string_in_libc=no
29030 for ac_func in extattr_namespace_to_string extattr_string_to_namespace
29032 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29033 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29034 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
29035 cat >>confdefs.h <<_ACEOF
29036 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29039 have_extattr_string_in_libc=yes
29041 $as_echo "#define HAVE_EXTATTR_NAMESPACE_TO_STRING 1" >>confdefs.h
29044 $as_echo "#define HAVE_EXTATTR_STRING_TO_NAMESPACE 1" >>confdefs.h
29052 if test $have_extattr_string_in_libc = no; then
29053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extattr_namespace_to_string extattr_string_to_namespace in -lutil" >&5
29054 $as_echo_n "checking for extattr_namespace_to_string extattr_string_to_namespace in -lutil... " >&6; }
29055 if ${ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace+:} false; then :
29056 $as_echo_n "(cached) " >&6
29058 ac_check_lib_save_LIBS=$LIBS
29059 LIBS="-lutil $LIBS"
29060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29061 /* end confdefs.h. */
29063 /* Override any GCC internal prototype to avoid an error.
29064 Use char because int might match the return type of a GCC
29065 builtin and then its argument prototype would still apply. */
29069 char extattr_namespace_to_string extattr_string_to_namespace ();
29073 return extattr_namespace_to_string extattr_string_to_namespace ();
29078 if ac_fn_c_try_link "$LINENO"; then :
29079 ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace=yes
29081 ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace=no
29083 rm -f core conftest.err conftest.$ac_objext \
29084 conftest$ac_exeext conftest.$ac_ext
29085 LIBS=$ac_check_lib_save_LIBS
29087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" >&5
29088 $as_echo "$ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" >&6; }
29089 if test "x$ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" = xyes; then :
29092 $as_echo "#define HAVE_EXTATTR_NAMESPACE_TO_STRING 1" >>confdefs.h
29095 $as_echo "#define HAVE_EXTATTR_STRING_TO_NAMESPACE 1" >>confdefs.h
29097 FDLIBS="-lutil $FDLIBS"
29106 if test $have_xattr = no -a \
29107 x${HAVE_AIX_OS_TRUE} = x; then
29108 ac_fn_c_check_header_mongrel "$LINENO" "sys/ea.h" "ac_cv_header_sys_ea_h" "$ac_includes_default"
29109 if test "x$ac_cv_header_sys_ea_h" = xyes; then :
29111 $as_echo "#define HAVE_SYS_EA_H 1" >>confdefs.h
29116 for ac_func in llistea lgetea lsetea
29118 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29119 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29120 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
29121 cat >>confdefs.h <<_ACEOF
29122 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29127 $as_echo "#define HAVE_LLISTEA 1" >>confdefs.h
29130 $as_echo "#define HAVE_LGETEA 1" >>confdefs.h
29133 $as_echo "#define HAVE_LSETEA 1" >>confdefs.h
29141 if test $have_xattr = no; then
29142 for ac_func in listea getea setea
29144 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29145 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29146 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
29147 cat >>confdefs.h <<_ACEOF
29148 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29153 $as_echo "#define HAVE_LISTEA 1" >>confdefs.h
29156 $as_echo "#define HAVE_GETEA 1" >>confdefs.h
29159 $as_echo "#define HAVE_SETEA 1" >>confdefs.h
29169 if test $have_xattr = no -a \
29170 x${HAVE_OSF1_OS_TRUE} = x; then
29171 ac_fn_c_check_header_mongrel "$LINENO" "sys/proplist.h" "ac_cv_header_sys_proplist_h" "$ac_includes_default"
29172 if test "x$ac_cv_header_sys_proplist_h" = xyes; then :
29174 $as_echo "#define HAVE_SYS_PROPLIST_H 1" >>confdefs.h
29179 for ac_func in getproplist get_proplist_entry sizeof_proplist_entry add_proplist_entry setproplist
29181 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29182 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29183 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
29184 cat >>confdefs.h <<_ACEOF
29185 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29190 $as_echo "#define HAVE_GETPROPLIST 1" >>confdefs.h
29193 $as_echo "#define HAVE_GET_PROPLIST_ENTRY 1" >>confdefs.h
29196 $as_echo "#define HAVE_SIZEOF_PROPLIST_ENTRY 1" >>confdefs.h
29199 $as_echo "#define HAVE_ADD_PROPLIST_ENTRY 1" >>confdefs.h
29202 $as_echo "#define HAVE_SETPROPLIST 1" >>confdefs.h
29211 if test $have_xattr = no -a \
29212 x${HAVE_SUN_OS_TRUE} = x; then
29213 ac_fn_c_check_header_mongrel "$LINENO" "sys/attr.h" "ac_cv_header_sys_attr_h" "$ac_includes_default"
29214 if test "x$ac_cv_header_sys_attr_h" = xyes; then :
29216 $as_echo "#define HAVE_SYS_ATTR_H 1" >>confdefs.h
29221 ac_fn_c_check_header_mongrel "$LINENO" "sys/nvpair.h" "ac_cv_header_sys_nvpair_h" "$ac_includes_default"
29222 if test "x$ac_cv_header_sys_nvpair_h" = xyes; then :
29224 $as_echo "#define HAVE_SYS_NVPAIR_H 1" >>confdefs.h
29229 ac_fn_c_check_header_mongrel "$LINENO" "attr.h" "ac_cv_header_attr_h" "$ac_includes_default"
29230 if test "x$ac_cv_header_attr_h" = xyes; then :
29232 $as_echo "#define HAVE_ATTR_H 1" >>confdefs.h
29238 for ac_func in openat fstatat unlinkat fchownat futimesat
29240 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29241 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29242 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
29243 cat >>confdefs.h <<_ACEOF
29244 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29249 $as_echo "#define HAVE_OPENAT 1" >>confdefs.h
29252 $as_echo "#define HAVE_FSTATAT 1" >>confdefs.h
29255 $as_echo "#define HAVE_UNLINKAT 1" >>confdefs.h
29258 $as_echo "#define HAVE_FCHOWNAT 1" >>confdefs.h
29261 $as_echo "#define HAVE_FUTIMESAT 1" >>confdefs.h
29269 if test $have_xattr = yes; then
29270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nvlist_next_nvpair in -lnvpair" >&5
29271 $as_echo_n "checking for nvlist_next_nvpair in -lnvpair... " >&6; }
29272 if ${ac_cv_lib_nvpair_nvlist_next_nvpair+:} false; then :
29273 $as_echo_n "(cached) " >&6
29275 ac_check_lib_save_LIBS=$LIBS
29276 LIBS="-lnvpair $LIBS"
29277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29278 /* end confdefs.h. */
29280 /* Override any GCC internal prototype to avoid an error.
29281 Use char because int might match the return type of a GCC
29282 builtin and then its argument prototype would still apply. */
29286 char nvlist_next_nvpair ();
29290 return nvlist_next_nvpair ();
29295 if ac_fn_c_try_link "$LINENO"; then :
29296 ac_cv_lib_nvpair_nvlist_next_nvpair=yes
29298 ac_cv_lib_nvpair_nvlist_next_nvpair=no
29300 rm -f core conftest.err conftest.$ac_objext \
29301 conftest$ac_exeext conftest.$ac_ext
29302 LIBS=$ac_check_lib_save_LIBS
29304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nvpair_nvlist_next_nvpair" >&5
29305 $as_echo "$ac_cv_lib_nvpair_nvlist_next_nvpair" >&6; }
29306 if test "x$ac_cv_lib_nvpair_nvlist_next_nvpair" = xyes; then :
29309 $as_echo "#define HAVE_NVLIST_NEXT_NVPAIR 1" >>confdefs.h
29311 FDLIBS="-lnvpair $FDLIBS"
29319 if test $have_xattr = no; then
29320 ac_fn_c_check_header_mongrel "$LINENO" "sys/xattr.h" "ac_cv_header_sys_xattr_h" "$ac_includes_default"
29321 if test "x$ac_cv_header_sys_xattr_h" = xyes; then :
29323 $as_echo "#define HAVE_SYS_XATTR_H 1" >>confdefs.h
29328 for ac_func in llistxattr lgetxattr lsetxattr
29330 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29331 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29332 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
29333 cat >>confdefs.h <<_ACEOF
29334 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29339 $as_echo "#define HAVE_LLISTXATTR 1" >>confdefs.h
29342 $as_echo "#define HAVE_LGETXATTR 1" >>confdefs.h
29345 $as_echo "#define HAVE_LSETXATTR 1" >>confdefs.h
29353 if test $have_xattr = no; then
29354 for ac_func in listxattr getxattr setxattr
29356 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29357 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29358 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
29359 cat >>confdefs.h <<_ACEOF
29360 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29365 $as_echo "#define HAVE_LISTXATTR 1" >>confdefs.h
29368 $as_echo "#define HAVE_GETXATTR 1" >>confdefs.h
29371 $as_echo "#define HAVE_SETXATTR 1" >>confdefs.h
29381 if test x$support_xattr = xyes -a $have_xattr != yes; then
29382 as_fn_error $? "xattr support explicitly enabled but no supported xattr implementation found,
29383 please either load the xattr libraries or rerun configure without --enable-xattr" "$LINENO" 5
29385 if test $have_xattr = yes; then
29387 $as_echo "#define HAVE_XATTR 1" >>confdefs.h
29394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
29395 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
29396 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
29397 $as_echo_n "(cached) " >&6
29399 ac_check_lib_save_LIBS=$LIBS
29400 LIBS="-lpthread $LIBS"
29401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29402 /* end confdefs.h. */
29404 /* Override any GCC internal prototype to avoid an error.
29405 Use char because int might match the return type of a GCC
29406 builtin and then its argument prototype would still apply. */
29410 char pthread_create ();
29414 return pthread_create ();
29419 if ac_fn_c_try_link "$LINENO"; then :
29420 ac_cv_lib_pthread_pthread_create=yes
29422 ac_cv_lib_pthread_pthread_create=no
29424 rm -f core conftest.err conftest.$ac_objext \
29425 conftest$ac_exeext conftest.$ac_ext
29426 LIBS=$ac_check_lib_save_LIBS
29428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
29429 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
29430 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
29431 PTHREAD_LIB="-lpthread"
29434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthreads" >&5
29435 $as_echo_n "checking for pthread_create in -lpthreads... " >&6; }
29436 if ${ac_cv_lib_pthreads_pthread_create+:} false; then :
29437 $as_echo_n "(cached) " >&6
29439 ac_check_lib_save_LIBS=$LIBS
29440 LIBS="-lpthreads $LIBS"
29441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29442 /* end confdefs.h. */
29444 /* Override any GCC internal prototype to avoid an error.
29445 Use char because int might match the return type of a GCC
29446 builtin and then its argument prototype would still apply. */
29450 char pthread_create ();
29454 return pthread_create ();
29459 if ac_fn_c_try_link "$LINENO"; then :
29460 ac_cv_lib_pthreads_pthread_create=yes
29462 ac_cv_lib_pthreads_pthread_create=no
29464 rm -f core conftest.err conftest.$ac_objext \
29465 conftest$ac_exeext conftest.$ac_ext
29466 LIBS=$ac_check_lib_save_LIBS
29468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_pthread_create" >&5
29469 $as_echo "$ac_cv_lib_pthreads_pthread_create" >&6; }
29470 if test "x$ac_cv_lib_pthreads_pthread_create" = xyes; then :
29471 PTHREAD_LIB="-lpthreads"
29474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lc_r" >&5
29475 $as_echo_n "checking for pthread_create in -lc_r... " >&6; }
29476 if ${ac_cv_lib_c_r_pthread_create+:} false; then :
29477 $as_echo_n "(cached) " >&6
29479 ac_check_lib_save_LIBS=$LIBS
29481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29482 /* end confdefs.h. */
29484 /* Override any GCC internal prototype to avoid an error.
29485 Use char because int might match the return type of a GCC
29486 builtin and then its argument prototype would still apply. */
29490 char pthread_create ();
29494 return pthread_create ();
29499 if ac_fn_c_try_link "$LINENO"; then :
29500 ac_cv_lib_c_r_pthread_create=yes
29502 ac_cv_lib_c_r_pthread_create=no
29504 rm -f core conftest.err conftest.$ac_objext \
29505 conftest$ac_exeext conftest.$ac_ext
29506 LIBS=$ac_check_lib_save_LIBS
29508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_create" >&5
29509 $as_echo "$ac_cv_lib_c_r_pthread_create" >&6; }
29510 if test "x$ac_cv_lib_c_r_pthread_create" = xyes; then :
29511 PTHREAD_LIB="-lc_r"
29514 ac_fn_c_check_func "$LINENO" "pthread_create" "ac_cv_func_pthread_create"
29515 if test "x$ac_cv_func_pthread_create" = xyes; then :
29532 for ac_header in sys/prctl.h sys/capability.h
29534 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29535 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
29536 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29537 cat >>confdefs.h <<_ACEOF
29538 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29545 for ac_func in prctl setreuid
29547 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29548 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29549 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
29550 cat >>confdefs.h <<_ACEOF
29551 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cap_set_proc in -lcap" >&5
29558 $as_echo_n "checking for cap_set_proc in -lcap... " >&6; }
29559 if ${ac_cv_lib_cap_cap_set_proc+:} false; then :
29560 $as_echo_n "(cached) " >&6
29562 ac_check_lib_save_LIBS=$LIBS
29564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29565 /* end confdefs.h. */
29567 /* Override any GCC internal prototype to avoid an error.
29568 Use char because int might match the return type of a GCC
29569 builtin and then its argument prototype would still apply. */
29573 char cap_set_proc ();
29577 return cap_set_proc ();
29582 if ac_fn_c_try_link "$LINENO"; then :
29583 ac_cv_lib_cap_cap_set_proc=yes
29585 ac_cv_lib_cap_cap_set_proc=no
29587 rm -f core conftest.err conftest.$ac_objext \
29588 conftest$ac_exeext conftest.$ac_ext
29589 LIBS=$ac_check_lib_save_LIBS
29591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cap_cap_set_proc" >&5
29592 $as_echo "$ac_cv_lib_cap_cap_set_proc" >&6; }
29593 if test "x$ac_cv_lib_cap_cap_set_proc" = xyes; then :
29599 if test x$CAP_LIBS = x-lcap; then
29601 $as_echo "#define HAVE_LIBCAP 1" >>confdefs.h
29607 $as_echo "#define FDLIBS 1" >>confdefs.h
29610 CFLAGS=${CFLAGS--O}
29612 if test x$have_gcc = xyes ; then
29613 CPPFLAGS="$CPPFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
29614 CFLAGS="$CFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
29616 LDFLAGS=${LDFLAGS--O}
29617 CPPFLAGS="$CPPFLAGS"
29643 PFILES="platforms/Makefile"
29648 hostname=`uname -n | cut -d '.' -f 1`
29649 if test x${hostname} = x ; then
29650 hostname="localhost"
29652 ping -c 1 $hostname 2>/dev/null 1>/dev/null
29653 if test ! $? = 0; then
29654 hostname="localhost"
29657 case "$DISTNAME" in
29660 PSCMD="ps -e -o pid,comm"
29661 PFILES="${PFILES} \
29662 platforms/aix/Makefile"
29663 TAPEDRIVE="/dev/rmt0.1"
29667 PTHREAD_LIB="-lpthread -lexc"
29668 if test "${CC}" = "gcc" ; then
29675 TAPEDRIVE="/dev/nrmt0"
29678 DISTVER=`uname -a |awk '{print $3}'`
29679 TAPEDRIVE="/dev/nrmt0"
29680 PTHREAD_LIB="-pthread"
29681 CFLAGS="${CFLAGS} -pthread"
29682 PSCMD="ps -ax -o pid,command"
29685 PFILES="${PFILES} \
29686 platforms/bsdi/Makefile \
29687 platforms/bsdi/bacula-fd \
29688 platforms/bsdi/bacula-sd \
29689 platforms/bsdi/bacula-dir"
29690 largefile_support="yes"
29693 DISTVER=`uname -a |awk '{print $3}'`
29694 TAPEDRIVE="/dev/nrst0"
29696 WCFLAGS="-mwindows"
29697 WLDFLAGS="-mwindows"
29701 TAPEDRIVE="/dev/nst0"
29702 PSCMD="ps -e -o pid,command"
29704 PFILES="${PFILES} \
29705 platforms/darwin/Makefile"
29709 TAPEDRIVE="/dev/nst0"
29710 PSCMD="ps -e -o pid,command"
29712 PFILES="${PFILES} \
29713 platforms/osx/Makefile"
29716 if `test -f /etc/apt/sources.list && grep -q ubuntu /etc/apt/sources.list`; then
29719 DISTVER=`cat /etc/debian_version`
29720 if test -f /etc/lsb-release ; then
29722 if test "x$DISTRIB_ID" != "x" ; then
29723 DISTNAME=$DISTRIB_ID
29725 if test "x$DISTRIB_RELEASE" != "x" ; then
29726 DISTVER=$DISTRIB_RELEASE
29729 if test "$DISTNAME" = "Ubuntu" ; then
29732 TAPEDRIVE="/dev/nst0"
29733 PSCMD="ps -e -o pid,command"
29734 if test "$DISTNAME" = "ubuntu" ; then
29735 PFILES="${PFILES} \
29736 platforms/ubuntu/Makefile \
29737 platforms/ubuntu/bacula-fd \
29738 platforms/ubuntu/bacula-sd \
29739 platforms/ubuntu/bacula-dir"
29741 PFILES="${PFILES} \
29742 platforms/debian/Makefile \
29743 platforms/debian/bacula-fd \
29744 platforms/debian/bacula-sd \
29745 platforms/debian/bacula-dir"
29749 DISTVER=`uname -a |awk '{print $3}'`
29750 VER=`echo $DISTVER | cut -c 1`
29751 if test x$VER = x4 ; then
29752 PTHREAD_LIB="${PTHREAD_LIBS:--pthread}"
29753 CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS:--pthread}"
29757 TAPEDRIVE="/dev/nrsa0"
29758 PSCMD="ps -ax -o pid,command"
29759 PFILES="${PFILES} \
29760 platforms/freebsd/Makefile \
29761 platforms/freebsd/bacula-fd \
29762 platforms/freebsd/bacula-sd \
29763 platforms/freebsd/bacula-dir"
29764 largefile_support="yes"
29767 PSCMD="UNIX95=1; ps -e -o pid,comm"
29768 CFLAGS="${CFLAGS} -D_XOPEN_SOURCE_EXTENDED=1"
29770 TAPEDRIVE="/dev/rmt/0hnb"
29771 PTHREAD_LIB="-lpthread"
29772 $as_echo "#define _INCLUDE_LONGLONG 1" >>confdefs.h
29777 TAPEDRIVE="/dev/rmt/0cbn"
29778 PSCMD="ps -e -o pid,comm"
29779 PFILES="${PFILES} \
29780 platforms/irix/Makefile \
29781 platforms/irix/bacula-fd \
29782 platforms/irix/bacula-sd \
29783 platforms/irix/bacula-dir"
29786 DISTVER=`uname -a |awk '{print $3}'`
29789 TAPEDRIVE="/dev/nrst0"
29790 PSCMD="ps -ax -o pid,command"
29791 PTHREAD_LIB="-pthread"
29792 CFLAGS="${CFLAGS} -pthread"
29795 DISTVER=`uname -a |awk '{print $3}'`
29798 TAPEDRIVE="/dev/nrst0"
29799 PSCMD="ps -ax -o pid,command"
29800 PTHREAD_LIB="-pthread"
29801 CFLAGS="${CFLAGS} -pthread"
29802 PFILES="${PFILES} \
29803 platforms/openbsd/Makefile \
29804 platforms/openbsd/bacula-fd \
29805 platforms/openbsd/bacula-sd \
29806 platforms/openbsd/bacula-dir"
29809 if test -f /etc/whitebox-release ; then
29810 f=/etc/whitebox-release
29812 f=/etc/redhat-release
29814 if test `cat $f | grep release |\
29815 cut -f 3 -d ' '`x = "Enterprise"x ; then
29816 DISTVER="Enterprise "`cat $f | grep release |\
29819 DISTVER=`cat /etc/redhat-release | grep release |\
29822 TAPEDRIVE="/dev/nst0"
29823 PSCMD="ps -e -o pid,command"
29824 PFILES="${PFILES} \
29825 platforms/redhat/Makefile \
29826 platforms/redhat/bacula-fd \
29827 platforms/redhat/bacula-sd \
29828 platforms/redhat/bacula-dir
29832 DISTVER=`cat /etc/mandrake-release | grep release |\
29834 TAPEDRIVE="/dev/nst0"
29835 PSCMD="ps -e -o pid,command"
29836 PFILES="${PFILES} \
29837 platforms/mandrake/Makefile \
29838 platforms/mandrake/bacula-fd \
29839 platforms/mandrake/bacula-sd \
29840 platforms/mandrake/bacula-dir \
29844 DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
29845 TAPEDRIVE="/dev/nst0"
29846 PSCMD="ps -e -o pid,command"
29847 PFILES="${PFILES} \
29848 platforms/gentoo/Makefile \
29849 platforms/gentoo/bacula-init \
29850 platforms/gentoo/bacula-fd \
29851 platforms/gentoo/bacula-sd \
29852 platforms/gentoo/bacula-dir"
29855 DISTVER=`cat /etc/slackware-version`
29856 TAPEDRIVE="/dev/nst0"
29857 PSCMD="ps -e -o pid,command"
29858 PFILES="${PFILES} \
29859 platforms/slackware/Makefile \
29860 platforms/slackware/rc.bacula-fd \
29861 platforms/slackware/rc.bacula-sd \
29862 platforms/slackware/rc.bacula-dir\
29863 platforms/slackware/functions.bacula"
29867 TAPEDRIVE="/dev/rmt/0cbn"
29868 PSCMD="ps -e -o pid,comm"
29869 PFILES="${PFILES} \
29870 platforms/solaris/Makefile \
29871 platforms/solaris/bacula-fd \
29872 platforms/solaris/bacula-sd \
29873 platforms/solaris/bacula-dir"
29876 $as_echo "#define HAVE_OLD_SOCKOPT 1" >>confdefs.h
29878 $as_echo "#define USE_THR_SETCONCURRENCY 1" >>confdefs.h
29882 $as_echo "#define USE_THR_SETCONCURRENCY 1" >>confdefs.h
29888 LIBS="$LIBS -lresolv -lrt"
29891 DISTVER=`cat /etc/SuSE-release |grep VERSION|\
29893 TAPEDRIVE="/dev/nst0"
29894 PSCMD="ps -e -o pid,command"
29895 PFILES="${PFILES} \
29896 platforms/suse/Makefile \
29897 platforms/suse/bacula-fd \
29898 platforms/suse/bacula-sd \
29899 platforms/suse/bacula-dir \
29900 platforms/suse/bacula"
29905 TAPEDRIVE="/dev/nst0"
29906 PSCMD="ps -e -o pid,command"
29907 PFILES="${PFILES} \
29908 platforms/suse/Makefile \
29909 platforms/suse/bacula-fd \
29910 platforms/suse/bacula-sd \
29911 platforms/suse/bacula-dir"
29915 TAPEDRIVE="/dev/nst0"
29918 echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
29924 LIBS="$PTHREAD_LIB $LIBS"
29926 cat >>confdefs.h <<_ACEOF
29930 cat >>confdefs.h <<_ACEOF
29941 MCOMMON=./autoconf/Make.common
29944 if test "x${subsysdir}" = "x${sbindir}" ; then
29947 echo "You have set both --sbindir and --with-subsys-dir"
29948 echo " equal to: ${subsysdir} "
29949 echo "This is not permitted. Please reconfigure."
29951 echo "Aborting configuration ..."
29957 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/bacula.desktop.gnome1 scripts/bacula.desktop.gnome2 scripts/bacula.desktop.gnome1.consolehelper scripts/bacula.desktop.gnome2.consolehelper scripts/bacula.desktop.gnome1.xsu scripts/bacula.desktop.gnome2.xsu scripts/bgnome-console.console_apps scripts/mtx-changer scripts/disk-changer scripts/dvd-handler scripts/dvd-simulator scripts/bacula-tray-monitor.desktop scripts/logwatch/Makefile scripts/logwatch/logfile.bacula.conf scripts/wxconsole.console_apps scripts/wxconsole.desktop.consolehelper scripts/wxconsole.desktop.xsu 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/tray-monitor/tray-monitor.pro src/qt-console/tray-monitor/tray-monitor.conf src/qt-console/bat.conf src/qt-console/bat.pro src/qt-console/bat.pro.mingw32 src/qt-console/install_conf_file src/wx-console/Makefile src/wx-console/bwx-console.conf src/tray-monitor/Makefile src/tray-monitor/tray-monitor.conf 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/create_ingres_database src/cats/update_ingres_tables src/cats/make_ingres_tables src/cats/grant_ingres_privileges src/cats/drop_ingres_tables src/cats/drop_ingres_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/findlib/Makefile src/tools/Makefile src/plugins/fd/Makefile src/plugins/sd/Makefile src/plugins/dir/Makefile src/win32/Makefile.inc po/Makefile.in updatedb/update_mysql_tables_9_to_10 updatedb/update_sqlite3_tables_9_to_10 updatedb/update_postgresql_tables_9_to_10 updatedb/update_mysql_tables_10_to_11 updatedb/update_sqlite3_tables_10_to_11 updatedb/update_postgresql_tables_10_to_11 updatedb/update_mysql_tables_11_to_12 updatedb/update_sqlite3_tables_11_to_12 updatedb/update_postgresql_tables_11_to_12 examples/nagios/check_bacula/Makefile $PFILES"
29959 ac_config_commands="$ac_config_commands default"
29961 cat >confcache <<\_ACEOF
29962 # This file is a shell script that caches the results of configure
29963 # tests run on this system so they can be shared between configure
29964 # scripts and configure runs, see configure's option --config-cache.
29965 # It is not useful on other systems. If it contains results you don't
29966 # want to keep, you may remove or edit it.
29968 # config.status only pays attention to the cache file if you give it
29969 # the --recheck option to rerun configure.
29971 # `ac_cv_env_foo' variables (set or unset) will be overridden when
29972 # loading this file, other *unset* `ac_cv_foo' will be assigned the
29973 # following values.
29977 # The following way of writing the cache mishandles newlines in values,
29978 # but we know of no workaround that is simple, portable, and efficient.
29979 # So, we kill variables containing newlines.
29980 # Ultrix sh set writes to stderr and can't be redirected directly,
29981 # and sets the high bit in the cache file unless we assign to the vars.
29983 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
29984 eval ac_val=\$$ac_var
29988 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
29989 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
29992 _ | IFS | as_nl) ;; #(
29993 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
29994 *) { eval $ac_var=; unset $ac_var;} ;;
30000 case $as_nl`(ac_space=' '; set) 2>&1` in #(
30001 *${as_nl}ac_space=\ *)
30002 # `set' does not quote correctly, so add quotes: double-quote
30003 # substitution turns \\\\ into \\, and sed turns \\ into \.
30006 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
30009 # `set' quotes correctly as required by POSIX, so do not add quotes.
30010 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
30019 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30021 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30023 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
30024 if test -w "$cache_file"; then
30025 if test "x$cache_file" != "x/dev/null"; then
30026 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
30027 $as_echo "$as_me: updating cache $cache_file" >&6;}
30028 if test ! -f "$cache_file" || test -h "$cache_file"; then
30029 cat confcache >"$cache_file"
30031 case $cache_file in #(
30033 mv -f confcache "$cache_file"$$ &&
30034 mv -f "$cache_file"$$ "$cache_file" ;; #(
30036 mv -f confcache "$cache_file" ;;
30041 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
30042 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
30047 test "x$prefix" = xNONE && prefix=$ac_default_prefix
30048 # Let make expand exec_prefix.
30049 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
30051 DEFS=-DHAVE_CONFIG_H
30056 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
30057 # 1. Remove the extension, and $U if already installed.
30058 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
30059 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
30060 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
30061 # will be set to the directory where LIBOBJS objects are built.
30062 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
30063 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
30065 LIBOBJS=$ac_libobjs
30067 LTLIBOBJS=$ac_ltlibobjs
30072 : "${CONFIG_STATUS=./config.status}"
30074 ac_clean_files_save=$ac_clean_files
30075 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
30076 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
30077 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
30079 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
30081 # Generated by $as_me.
30082 # Run this file to recreate the current configuration.
30083 # Compiler output produced by configure, useful for debugging
30084 # configure, is in config.log if it exists.
30087 ac_cs_recheck=false
30090 SHELL=\${CONFIG_SHELL-$SHELL}
30093 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
30094 ## -------------------- ##
30095 ## M4sh Initialization. ##
30096 ## -------------------- ##
30098 # Be more Bourne compatible
30099 DUALCASE=1; export DUALCASE # for MKS sh
30100 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
30103 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
30104 # is contrary to our usage. Disable this feature.
30105 alias -g '${1+"$@"}'='"$@"'
30106 setopt NO_GLOB_SUBST
30108 case `(set -o) 2>/dev/null` in #(
30120 # Printing a long string crashes Solaris 7 /usr/bin/printf.
30121 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
30122 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
30123 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
30124 # Prefer a ksh shell builtin over an external printf program on Solaris,
30125 # but without wasting forks for bash or zsh.
30126 if test -z "$BASH_VERSION$ZSH_VERSION" \
30127 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
30128 as_echo='print -r --'
30129 as_echo_n='print -rn --'
30130 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
30131 as_echo='printf %s\n'
30132 as_echo_n='printf %s'
30134 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
30135 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
30136 as_echo_n='/usr/ucb/echo -n'
30138 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
30139 as_echo_n_body='eval
30143 expr "X$arg" : "X\\(.*\\)$as_nl";
30144 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
30146 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
30148 export as_echo_n_body
30149 as_echo_n='sh -c $as_echo_n_body as_echo'
30151 export as_echo_body
30152 as_echo='sh -c $as_echo_body as_echo'
30155 # The user is always right.
30156 if test "${PATH_SEPARATOR+set}" != set; then
30158 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
30159 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
30166 # We need space, tab and new line, in precisely that order. Quoting is
30167 # there to prevent editors from complaining about space-tab.
30168 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
30169 # splitting by setting IFS to empty value.)
30172 # Find who we are. Look in the path if we contain no directory separator.
30175 *[\\/]* ) as_myself=$0 ;;
30176 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30177 for as_dir in $PATH
30180 test -z "$as_dir" && as_dir=.
30181 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
30187 # We did not find ourselves, most probably we were run as `sh COMMAND'
30188 # in which case we are not to be found in the path.
30189 if test "x$as_myself" = x; then
30192 if test ! -f "$as_myself"; then
30193 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
30197 # Unset variables that we do not need and which cause bugs (e.g. in
30198 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
30199 # suppresses any "Segmentation fault" message there. '((' could
30200 # trigger a bug in pdksh 5.2.14.
30201 for as_var in BASH_ENV ENV MAIL MAILPATH
30202 do eval test x\${$as_var+set} = xset \
30203 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
30216 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
30219 # as_fn_error STATUS ERROR [LINENO LOG_FD]
30220 # ----------------------------------------
30221 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
30222 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
30223 # script with STATUS, using 1 if that was 0.
30226 as_status=$1; test $as_status -eq 0 && as_status=1
30228 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
30229 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
30231 $as_echo "$as_me: error: $2" >&2
30232 as_fn_exit $as_status
30236 # as_fn_set_status STATUS
30237 # -----------------------
30238 # Set $? to STATUS, without forking.
30239 as_fn_set_status ()
30242 } # as_fn_set_status
30244 # as_fn_exit STATUS
30245 # -----------------
30246 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
30250 as_fn_set_status $1
30256 # Portably unset VAR.
30259 { eval $1=; unset $1;}
30261 as_unset=as_fn_unset
30262 # as_fn_append VAR VALUE
30263 # ----------------------
30264 # Append the text in VALUE to the end of the definition contained in VAR. Take
30265 # advantage of any shell optimizations that allow amortized linear growth over
30266 # repeated appends, instead of the typical quadratic growth present in naive
30268 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
30269 eval 'as_fn_append ()
30280 # as_fn_arith ARG...
30281 # ------------------
30282 # Perform arithmetic evaluation on the ARGs, and store the result in the
30283 # global $as_val. Take advantage of shells that can avoid forks. The arguments
30284 # must be portable across $(()) and expr.
30285 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
30286 eval 'as_fn_arith ()
30293 as_val=`expr "$@" || test $? -eq 1`
30298 if expr a : '\(a\)' >/dev/null 2>&1 &&
30299 test "X`expr 00001 : '.*\(...\)'`" = X001; then
30305 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
30306 as_basename=basename
30311 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
30317 as_me=`$as_basename -- "$0" ||
30318 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
30319 X"$0" : 'X\(//\)$' \| \
30320 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
30322 sed '/^.*\/\([^/][^/]*\)\/*$/{
30336 # Avoid depending upon Character Ranges.
30337 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
30338 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
30339 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
30340 as_cr_digits='0123456789'
30341 as_cr_alnum=$as_cr_Letters$as_cr_digits
30343 ECHO_C= ECHO_N= ECHO_T=
30344 case `echo -n x` in #(((((
30346 case `echo 'xy\c'` in
30347 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
30349 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
30356 rm -f conf$$ conf$$.exe conf$$.file
30357 if test -d conf$$.dir; then
30358 rm -f conf$$.dir/conf$$.file
30361 mkdir conf$$.dir 2>/dev/null
30363 if (echo >conf$$.file) 2>/dev/null; then
30364 if ln -s conf$$.file conf$$ 2>/dev/null; then
30366 # ... but there are two gotchas:
30367 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
30368 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
30369 # In both cases, we have to default to `cp -p'.
30370 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
30372 elif ln conf$$.file conf$$ 2>/dev/null; then
30380 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
30381 rmdir conf$$.dir 2>/dev/null
30386 # Create "$as_dir" as a directory, including parents if necessary.
30391 -*) as_dir=./$as_dir;;
30393 test -d "$as_dir" || eval $as_mkdir_p || {
30397 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
30398 *) as_qdir=$as_dir;;
30400 as_dirs="'$as_qdir' $as_dirs"
30401 as_dir=`$as_dirname -- "$as_dir" ||
30402 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30403 X"$as_dir" : 'X\(//\)[^/]' \| \
30404 X"$as_dir" : 'X\(//\)$' \| \
30405 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
30406 $as_echo X"$as_dir" |
30407 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30411 /^X\(\/\/\)[^/].*/{
30424 test -d "$as_dir" && break
30426 test -z "$as_dirs" || eval "mkdir $as_dirs"
30427 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
30431 if mkdir -p . 2>/dev/null; then
30432 as_mkdir_p='mkdir -p "$as_dir"'
30434 test -d ./-p && rmdir ./-p
30438 if test -x / >/dev/null 2>&1; then
30439 as_test_x='test -x'
30441 if ls -dL / >/dev/null 2>&1; then
30448 if test -d "$1"; then
30454 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
30455 ???[sx]*):;;*)false;;esac;fi
30459 as_executable_p=$as_test_x
30461 # Sed expression to map a string onto a valid CPP name.
30462 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
30464 # Sed expression to map a string onto a valid variable name.
30465 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
30469 ## ----------------------------------- ##
30470 ## Main body of $CONFIG_STATUS script. ##
30471 ## ----------------------------------- ##
30473 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
30475 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30476 # Save the log message, to keep $0 and so on meaningful, and to
30477 # report actual input values of CONFIG_FILES etc. instead of their
30478 # values after options handling.
30480 This file was extended by bacula $as_me 5.1.14, which was
30481 generated by GNU Autoconf 2.68. Invocation command line was
30483 CONFIG_FILES = $CONFIG_FILES
30484 CONFIG_HEADERS = $CONFIG_HEADERS
30485 CONFIG_LINKS = $CONFIG_LINKS
30486 CONFIG_COMMANDS = $CONFIG_COMMANDS
30489 on `(hostname || uname -n) 2>/dev/null | sed 1q`
30494 case $ac_config_files in *"
30495 "*) set x $ac_config_files; shift; ac_config_files=$*;;
30498 case $ac_config_headers in *"
30499 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
30503 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30504 # Files that config.status was made for.
30505 config_files="$ac_config_files"
30506 config_headers="$ac_config_headers"
30507 config_commands="$ac_config_commands"
30511 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30513 \`$as_me' instantiates files and other configuration actions
30514 from templates according to the current configuration. Unless the files
30515 and actions are specified as TAGs, all are instantiated by default.
30517 Usage: $0 [OPTION]... [TAG]...
30519 -h, --help print this help, then exit
30520 -V, --version print version number and configuration settings, then exit
30521 --config print configuration, then exit
30522 -q, --quiet, --silent
30523 do not print progress messages
30524 -d, --debug don't remove temporary files
30525 --recheck update $as_me by reconfiguring in the same conditions
30526 --file=FILE[:TEMPLATE]
30527 instantiate the configuration file FILE
30528 --header=FILE[:TEMPLATE]
30529 instantiate the configuration header FILE
30531 Configuration files:
30534 Configuration headers:
30537 Configuration commands:
30540 Report bugs to the package provider."
30543 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30544 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
30546 bacula config.status 5.1.14
30547 configured by $0, generated by GNU Autoconf 2.68,
30548 with options \\"\$ac_cs_config\\"
30550 Copyright (C) 2010 Free Software Foundation, Inc.
30551 This config.status script is free software; the Free Software Foundation
30552 gives unlimited permission to copy, distribute and modify it."
30558 test -n "\$AWK" || AWK=awk
30561 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30562 # The default lists apply if the user does not specify any file.
30568 ac_option=`expr "X$1" : 'X\([^=]*\)='`
30569 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
30573 ac_option=`expr "X$1" : 'X\([^=]*\)='`
30585 # Handling of the options.
30586 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
30588 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
30589 $as_echo "$ac_cs_version"; exit ;;
30590 --config | --confi | --conf | --con | --co | --c )
30591 $as_echo "$ac_cs_config"; exit ;;
30592 --debug | --debu | --deb | --de | --d | -d )
30594 --file | --fil | --fi | --f )
30597 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
30598 '') as_fn_error $? "missing file argument" ;;
30600 as_fn_append CONFIG_FILES " '$ac_optarg'"
30601 ac_need_defaults=false;;
30602 --header | --heade | --head | --hea )
30605 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
30607 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
30608 ac_need_defaults=false;;
30610 # Conflict between --help and --header
30611 as_fn_error $? "ambiguous option: \`$1'
30612 Try \`$0 --help' for more information.";;
30613 --help | --hel | -h )
30614 $as_echo "$ac_cs_usage"; exit ;;
30615 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
30616 | -silent | --silent | --silen | --sile | --sil | --si | --s)
30619 # This is an error.
30620 -*) as_fn_error $? "unrecognized option: \`$1'
30621 Try \`$0 --help' for more information." ;;
30623 *) as_fn_append ac_config_targets " $1"
30624 ac_need_defaults=false ;;
30630 ac_configure_extra_args=
30632 if $ac_cs_silent; then
30634 ac_configure_extra_args="$ac_configure_extra_args --silent"
30638 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30639 if \$ac_cs_recheck; then
30640 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
30642 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
30643 CONFIG_SHELL='$SHELL'
30644 export CONFIG_SHELL
30649 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30653 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
30654 ## Running $as_me. ##
30660 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30666 # The HP-UX ksh and POSIX shell print the target directory to stdout
30667 # if CDPATH is set.
30668 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
30670 sed_quote_subst='$sed_quote_subst'
30671 double_quote_subst='$double_quote_subst'
30672 delay_variable_subst='$delay_variable_subst'
30673 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
30674 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
30675 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
30676 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
30677 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
30678 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
30679 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
30680 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
30681 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
30682 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
30683 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
30684 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
30685 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
30686 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
30687 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
30688 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
30689 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
30690 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
30691 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
30692 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
30693 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
30694 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
30695 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
30696 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
30697 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
30698 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
30699 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
30700 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30701 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
30702 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
30703 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
30704 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
30705 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
30706 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
30707 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
30708 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30709 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30710 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30711 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
30712 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
30713 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
30714 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
30715 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
30716 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
30717 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
30718 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
30719 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
30720 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
30721 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
30722 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
30723 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
30724 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
30725 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
30726 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
30727 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
30728 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
30729 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
30730 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
30731 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
30732 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
30733 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
30734 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
30735 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30736 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30737 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
30738 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
30739 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
30740 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
30741 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
30742 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30743 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30744 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30745 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30746 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30747 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30748 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
30749 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
30750 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
30751 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
30752 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
30753 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
30754 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
30755 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
30756 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
30757 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
30758 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
30759 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
30760 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
30761 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
30762 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
30763 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30764 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
30765 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
30766 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30767 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
30768 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
30769 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
30770 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
30771 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
30772 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
30773 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
30774 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
30775 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
30776 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
30777 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
30778 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30779 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30780 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30781 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
30782 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
30783 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
30784 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
30785 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
30786 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
30787 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
30788 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
30789 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
30790 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
30791 compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
30792 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
30793 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
30794 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
30795 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
30796 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
30797 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30798 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30799 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30800 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30801 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30802 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30803 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30804 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30805 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30806 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30807 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30808 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30809 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30810 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30811 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30812 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30813 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30814 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30815 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30816 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30817 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30818 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30819 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30820 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30821 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30822 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30823 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30824 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30825 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30826 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30827 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30828 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30829 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30830 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30831 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30832 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30833 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30834 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30835 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30836 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30837 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30838 compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30839 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30840 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30841 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30842 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30843 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30846 LTCFLAGS='$LTCFLAGS'
30847 compiler='$compiler_DEFAULT'
30849 # Quote evaled strings.
30861 deplibs_check_method \
30870 lt_cv_sys_global_symbol_pipe \
30871 lt_cv_sys_global_symbol_to_cdecl \
30872 lt_cv_sys_global_symbol_to_c_name_address \
30873 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
30876 lt_prog_compiler_no_builtin_flag \
30877 lt_prog_compiler_wl \
30878 lt_prog_compiler_pic \
30879 lt_prog_compiler_static \
30880 lt_cv_prog_compiler_c_o \
30888 export_dynamic_flag_spec \
30889 whole_archive_flag_spec \
30890 compiler_needs_object \
30892 allow_undefined_flag \
30893 no_undefined_flag \
30894 hardcode_libdir_flag_spec \
30895 hardcode_libdir_flag_spec_ld \
30896 hardcode_libdir_separator \
30901 variables_saved_for_relink \
30903 library_names_spec \
30908 compiler_lib_search_dirs \
30913 compiler_lib_search_path \
30916 lt_prog_compiler_no_builtin_flag_CXX \
30917 lt_prog_compiler_wl_CXX \
30918 lt_prog_compiler_pic_CXX \
30919 lt_prog_compiler_static_CXX \
30920 lt_cv_prog_compiler_c_o_CXX \
30921 export_dynamic_flag_spec_CXX \
30922 whole_archive_flag_spec_CXX \
30923 compiler_needs_object_CXX \
30925 allow_undefined_flag_CXX \
30926 no_undefined_flag_CXX \
30927 hardcode_libdir_flag_spec_CXX \
30928 hardcode_libdir_flag_spec_ld_CXX \
30929 hardcode_libdir_separator_CXX \
30930 fix_srcfile_path_CXX \
30931 exclude_expsyms_CXX \
30932 include_expsyms_CXX \
30933 file_list_spec_CXX \
30934 compiler_lib_search_dirs_CXX \
30935 predep_objects_CXX \
30936 postdep_objects_CXX \
30939 compiler_lib_search_path_CXX; do
30940 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
30941 *[\\\\\\\`\\"\\\$]*)
30942 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
30945 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
30950 # Double-quote double-evaled strings.
30951 for var in reload_cmds \
30952 old_postinstall_cmds \
30953 old_postuninstall_cmds \
30955 extract_expsyms_cmds \
30956 old_archive_from_new_cmds \
30957 old_archive_from_expsyms_cmds \
30959 archive_expsym_cmds \
30961 module_expsym_cmds \
30962 export_symbols_cmds \
30965 postuninstall_cmds \
30967 sys_lib_search_path_spec \
30968 sys_lib_dlsearch_path_spec \
30969 old_archive_cmds_CXX \
30970 old_archive_from_new_cmds_CXX \
30971 old_archive_from_expsyms_cmds_CXX \
30973 archive_expsym_cmds_CXX \
30975 module_expsym_cmds_CXX \
30976 export_symbols_cmds_CXX \
30977 prelink_cmds_CXX; do
30978 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
30979 *[\\\\\\\`\\"\\\$]*)
30980 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
30983 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
30988 # Fix-up fallback echo if it was mangled by the above quoting rules.
30990 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
30994 ac_aux_dir='$ac_aux_dir'
30995 xsi_shell='$xsi_shell'
30996 lt_shell_append='$lt_shell_append'
30998 # See if we are running on zsh, and set the options which allow our
30999 # commands through without removal of \ escapes INIT.
31000 if test -n "\${ZSH_VERSION+set}" ; then
31001 setopt NO_GLOB_SUBST
31007 TIMESTAMP='$TIMESTAMP'
31015 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
31016 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
31018 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
31019 # Capture the value of LINGUAS because we need it to compute CATALOGS.
31020 LINGUAS="${LINGUAS-%UNSET%}"
31025 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31027 # Handling of arguments.
31028 for ac_config_target in $ac_config_targets
31030 case $ac_config_target in
31031 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
31032 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
31033 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
31034 "autoconf/Make.common") CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
31035 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
31036 "manpages/Makefile") CONFIG_FILES="$CONFIG_FILES manpages/Makefile" ;;
31037 "scripts/btraceback") CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
31038 "scripts/bconsole") CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
31039 "scripts/bacula") CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
31040 "scripts/bacula-ctl-dir") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-dir" ;;
31041 "scripts/bacula-ctl-fd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-fd" ;;
31042 "scripts/bacula-ctl-sd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-sd" ;;
31043 "scripts/devel_bacula") CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
31044 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
31045 "scripts/logrotate") CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
31046 "scripts/bacula.desktop.gnome1") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
31047 "scripts/bacula.desktop.gnome2") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
31048 "scripts/bacula.desktop.gnome1.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
31049 "scripts/bacula.desktop.gnome2.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
31050 "scripts/bacula.desktop.gnome1.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
31051 "scripts/bacula.desktop.gnome2.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
31052 "scripts/bgnome-console.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bgnome-console.console_apps" ;;
31053 "scripts/mtx-changer") CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
31054 "scripts/disk-changer") CONFIG_FILES="$CONFIG_FILES scripts/disk-changer" ;;
31055 "scripts/dvd-handler") CONFIG_FILES="$CONFIG_FILES scripts/dvd-handler" ;;
31056 "scripts/dvd-simulator") CONFIG_FILES="$CONFIG_FILES scripts/dvd-simulator" ;;
31057 "scripts/bacula-tray-monitor.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bacula-tray-monitor.desktop" ;;
31058 "scripts/logwatch/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/Makefile" ;;
31059 "scripts/logwatch/logfile.bacula.conf") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/logfile.bacula.conf" ;;
31060 "scripts/wxconsole.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.console_apps" ;;
31061 "scripts/wxconsole.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.consolehelper" ;;
31062 "scripts/wxconsole.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.xsu" ;;
31063 "scripts/bat.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop" ;;
31064 "scripts/bat.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.xsu" ;;
31065 "scripts/bat.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.consolehelper" ;;
31066 "scripts/bat.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bat.console_apps" ;;
31067 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
31068 "src/host.h") CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
31069 "src/console/Makefile") CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
31070 "src/console/bconsole.conf") CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
31071 "src/qt-console/tray-monitor/tray-monitor.pro") CONFIG_FILES="$CONFIG_FILES src/qt-console/tray-monitor/tray-monitor.pro" ;;
31072 "src/qt-console/tray-monitor/tray-monitor.conf") CONFIG_FILES="$CONFIG_FILES src/qt-console/tray-monitor/tray-monitor.conf" ;;
31073 "src/qt-console/bat.conf") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.conf" ;;
31074 "src/qt-console/bat.pro") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro" ;;
31075 "src/qt-console/bat.pro.mingw32") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro.mingw32" ;;
31076 "src/qt-console/install_conf_file") CONFIG_FILES="$CONFIG_FILES src/qt-console/install_conf_file" ;;
31077 "src/wx-console/Makefile") CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
31078 "src/wx-console/bwx-console.conf") CONFIG_FILES="$CONFIG_FILES src/wx-console/bwx-console.conf" ;;
31079 "src/tray-monitor/Makefile") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/Makefile" ;;
31080 "src/tray-monitor/tray-monitor.conf") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/tray-monitor.conf" ;;
31081 "src/dird/Makefile") CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
31082 "src/dird/bacula-dir.conf") CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
31083 "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
31084 "src/stored/Makefile") CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
31085 "src/stored/bacula-sd.conf") CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
31086 "src/filed/Makefile") CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
31087 "src/filed/bacula-fd.conf") CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
31088 "src/cats/Makefile") CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
31089 "src/cats/make_catalog_backup.pl") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup.pl" ;;
31090 "src/cats/make_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
31091 "src/cats/delete_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
31092 "src/cats/create_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
31093 "src/cats/update_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
31094 "src/cats/make_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
31095 "src/cats/grant_postgresql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
31096 "src/cats/drop_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
31097 "src/cats/drop_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
31098 "src/cats/create_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
31099 "src/cats/update_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
31100 "src/cats/make_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
31101 "src/cats/grant_mysql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
31102 "src/cats/drop_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
31103 "src/cats/drop_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
31104 "src/cats/create_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite3_database" ;;
31105 "src/cats/update_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite3_tables" ;;
31106 "src/cats/make_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite3_tables" ;;
31107 "src/cats/grant_sqlite3_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite3_privileges" ;;
31108 "src/cats/drop_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_tables" ;;
31109 "src/cats/drop_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_database" ;;
31110 "src/cats/create_ingres_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_ingres_database" ;;
31111 "src/cats/update_ingres_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_ingres_tables" ;;
31112 "src/cats/make_ingres_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_ingres_tables" ;;
31113 "src/cats/grant_ingres_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_ingres_privileges" ;;
31114 "src/cats/drop_ingres_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_ingres_tables" ;;
31115 "src/cats/drop_ingres_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_ingres_database" ;;
31116 "src/cats/sqlite") CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
31117 "src/cats/mysql") CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
31118 "src/cats/create_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
31119 "src/cats/update_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
31120 "src/cats/grant_bacula_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
31121 "src/cats/make_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
31122 "src/cats/drop_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
31123 "src/cats/drop_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
31124 "src/findlib/Makefile") CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
31125 "src/tools/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
31126 "src/plugins/fd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/fd/Makefile" ;;
31127 "src/plugins/sd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/sd/Makefile" ;;
31128 "src/plugins/dir/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/dir/Makefile" ;;
31129 "src/win32/Makefile.inc") CONFIG_FILES="$CONFIG_FILES src/win32/Makefile.inc" ;;
31130 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
31131 "updatedb/update_mysql_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_9_to_10" ;;
31132 "updatedb/update_sqlite3_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_9_to_10" ;;
31133 "updatedb/update_postgresql_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_9_to_10" ;;
31134 "updatedb/update_mysql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_10_to_11" ;;
31135 "updatedb/update_sqlite3_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_10_to_11" ;;
31136 "updatedb/update_postgresql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_10_to_11" ;;
31137 "updatedb/update_mysql_tables_11_to_12") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_11_to_12" ;;
31138 "updatedb/update_sqlite3_tables_11_to_12") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_11_to_12" ;;
31139 "updatedb/update_postgresql_tables_11_to_12") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_11_to_12" ;;
31140 "examples/nagios/check_bacula/Makefile") CONFIG_FILES="$CONFIG_FILES examples/nagios/check_bacula/Makefile" ;;
31141 "$PFILES") CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
31142 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
31144 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
31149 # If the user did not use the arguments to specify the items to instantiate,
31150 # then the envvar interface is used. Set only those that are not.
31151 # We use the long form for the default assignment because of an extremely
31152 # bizarre bug on SunOS 4.1.3.
31153 if $ac_need_defaults; then
31154 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
31155 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
31156 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
31159 # Have a temporary directory for convenience. Make it in the build tree
31160 # simply because there is no reason against having it here, and in addition,
31161 # creating and moving files from /tmp can sometimes cause problems.
31162 # Hook for its removal unless debugging.
31163 # Note that there is a small window in which the directory will not be cleaned:
31164 # after its creation but before its name has been assigned to `$tmp'.
31168 trap 'exit_status=$?
31169 : "${ac_tmp:=$tmp}"
31170 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
31172 trap 'as_fn_exit 1' 1 2 13 15
31174 # Create a (secure) tmp directory for tmp files.
31177 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
31181 tmp=./conf$$-$RANDOM
31182 (umask 077 && mkdir "$tmp")
31183 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
31186 # Set up the scripts for CONFIG_FILES section.
31187 # No need to generate them if there are no CONFIG_FILES.
31188 # This happens for instance with `./config.status config.h'.
31189 if test -n "$CONFIG_FILES"; then
31191 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
31192 ac_cs_awk_getline=:
31193 ac_cs_awk_pipe_init=
31194 ac_cs_awk_read_file='
31195 while ((getline aline < (F[key])) > 0)
31198 ac_cs_awk_pipe_fini=
31200 ac_cs_awk_getline=false
31201 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
31202 ac_cs_awk_read_file='
31204 print "cat " F[key] " &&"
31205 '$ac_cs_awk_pipe_init
31206 # The final `:' finishes the AND list.
31207 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
31209 ac_cr=`echo X | tr X '\015'`
31210 # On cygwin, bash can eat \r inside `` if the user requested igncr.
31211 # But we know of no other shell where ac_cr would be empty at this
31212 # point, so we can use a bashism as a fallback.
31213 if test "x$ac_cr" = x; then
31214 eval ac_cr=\$\'\\r\'
31216 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
31217 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
31220 ac_cs_awk_cr=$ac_cr
31223 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
31226 # Create commands to substitute file output variables.
31228 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
31229 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
31230 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
31233 } >conf$$files.sh &&
31234 . ./conf$$files.sh ||
31235 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
31236 rm -f conf$$files.sh
31239 echo "cat >conf$$subs.awk <<_ACEOF" &&
31240 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
31242 } >conf$$subs.sh ||
31243 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
31244 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
31246 for ac_last_try in false false false false false :; do
31247 . ./conf$$subs.sh ||
31248 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
31250 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
31251 if test $ac_delim_n = $ac_delim_num; then
31253 elif $ac_last_try; then
31254 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
31256 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
31259 rm -f conf$$subs.sh
31261 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31262 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
31266 s/^/S["/; s/!.*/"]=/
31276 s/\(.\{148\}\)..*/\1/
31278 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
31283 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
31290 s/\(.\{148\}\)..*/\1/
31292 s/["\\]/\\&/g; s/^/"/; s/$/"/
31296 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
31301 ' <conf$$subs.awk | sed '
31306 ' >>$CONFIG_STATUS || ac_write_fail=1
31307 rm -f conf$$subs.awk
31308 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31310 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
31311 for (key in S) S_is_set[key] = 1
31313 \$ac_cs_awk_pipe_init
31317 nfields = split(line, field, "@")
31319 len = length(field[1])
31320 for (i = 2; i < nfields; i++) {
31322 keylen = length(key)
31323 if (S_is_set[key]) {
31325 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
31326 len += length(value) + length(field[++i])
31331 if (nfields == 3 && !substed) {
31333 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
31334 \$ac_cs_awk_read_file
31340 \$ac_cs_awk_pipe_fini
31343 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31344 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
31345 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
31348 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
31349 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
31352 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
31353 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
31354 # trailing colons and then remove the whole line if VPATH becomes empty
31355 # (actually we leave an empty line to preserve line numbers).
31356 if test "x$srcdir" = x.; then
31357 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
31375 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31376 fi # test -n "$CONFIG_FILES"
31378 # Set up the scripts for CONFIG_HEADERS section.
31379 # No need to generate them if there are no CONFIG_HEADERS.
31380 # This happens for instance with `./config.status Makefile'.
31381 if test -n "$CONFIG_HEADERS"; then
31382 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
31386 # Transform confdefs.h into an awk script `defines.awk', embedded as
31387 # here-document in config.status, that substitutes the proper values into
31388 # config.h.in to produce config.h.
31390 # Create a delimiter string that does not exist in confdefs.h, to ease
31391 # handling of long lines.
31393 for ac_last_try in false false :; do
31394 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
31395 if test -z "$ac_tt"; then
31397 elif $ac_last_try; then
31398 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
31400 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
31404 # For the awk script, D is an array of macro values keyed by name,
31405 # likewise P contains macro parameters if any. Preserve backslash
31406 # newline sequences.
31408 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
31410 s/.\{148\}/&'"$ac_delim"'/g
31413 s/^[ ]*#[ ]*define[ ][ ]*/ /
31420 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
31422 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
31426 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
31427 D["\1"]=" \3\\\\\\n"\\/p
31429 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
31434 s/.\{148\}/&'"$ac_delim"'/g
31439 s/["\\]/\\&/g; s/^/"/; s/$/"/p
31442 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
31444 ' <confdefs.h | sed '
31445 s/'"$ac_delim"'/"\\\
31446 "/g' >>$CONFIG_STATUS || ac_write_fail=1
31448 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31449 for (key in D) D_is_set[key] = 1
31452 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
31454 split(line, arg, " ")
31455 if (arg[1] == "#") {
31459 defundef = substr(arg[1], 2)
31462 split(mac1, mac2, "(") #)
31464 prefix = substr(line, 1, index(line, defundef) - 1)
31465 if (D_is_set[macro]) {
31466 # Preserve the white space surrounding the "#".
31467 print prefix "define", macro P[macro] D[macro]
31470 # Replace #undef with comments. This is necessary, for example,
31471 # in the case of _POSIX_SOURCE, which is predefined and required
31472 # on some systems where configure will not decide to define it.
31473 if (defundef == "undef") {
31474 print "/*", prefix defundef, macro, "*/"
31482 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31483 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
31484 fi # test -n "$CONFIG_HEADERS"
31487 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
31492 :[FHLC]) ac_mode=$ac_tag; continue;;
31494 case $ac_mode$ac_tag in
31496 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
31497 :[FH]-) ac_tag=-:-;;
31498 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
31515 -) ac_f="$ac_tmp/stdin";;
31516 *) # Look for the file first in the build tree, then in the source tree
31517 # (if the path is not absolute). The absolute path cannot be DOS-style,
31518 # because $ac_f cannot contain `:'.
31522 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
31524 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
31526 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
31527 as_fn_append ac_file_inputs " '$ac_f'"
31530 # Let's still pretend it is `configure' which instantiates (i.e., don't
31531 # use $as_me), people would be surprised to read:
31532 # /* config.h. Generated by config.status. */
31533 configure_input='Generated from '`
31534 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
31536 if test x"$ac_file" != x-; then
31537 configure_input="$ac_file. $configure_input"
31538 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
31539 $as_echo "$as_me: creating $ac_file" >&6;}
31541 # Neutralize special characters interpreted by sed in replacement strings.
31542 case $configure_input in #(
31543 *\&* | *\|* | *\\* )
31544 ac_sed_conf_input=`$as_echo "$configure_input" |
31545 sed 's/[\\\\&|]/\\\\&/g'`;; #(
31546 *) ac_sed_conf_input=$configure_input;;
31550 *:-:* | *:-) cat >"$ac_tmp/stdin" \
31551 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
31556 ac_dir=`$as_dirname -- "$ac_file" ||
31557 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31558 X"$ac_file" : 'X\(//\)[^/]' \| \
31559 X"$ac_file" : 'X\(//\)$' \| \
31560 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
31561 $as_echo X"$ac_file" |
31562 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31566 /^X\(\/\/\)[^/].*/{
31579 as_dir="$ac_dir"; as_fn_mkdir_p
31583 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
31585 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
31586 # A ".." for each directory in $ac_dir_suffix.
31587 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
31588 case $ac_top_builddir_sub in
31589 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
31590 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
31593 ac_abs_top_builddir=$ac_pwd
31594 ac_abs_builddir=$ac_pwd$ac_dir_suffix
31595 # for backward compatibility:
31596 ac_top_builddir=$ac_top_build_prefix
31599 .) # We are building in place.
31601 ac_top_srcdir=$ac_top_builddir_sub
31602 ac_abs_top_srcdir=$ac_pwd ;;
31603 [\\/]* | ?:[\\/]* ) # Absolute name.
31604 ac_srcdir=$srcdir$ac_dir_suffix;
31605 ac_top_srcdir=$srcdir
31606 ac_abs_top_srcdir=$srcdir ;;
31607 *) # Relative name.
31608 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
31609 ac_top_srcdir=$ac_top_build_prefix$srcdir
31610 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
31612 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
31622 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
31623 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
31627 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31628 # If the template does not know about datarootdir, expand it.
31629 # FIXME: This hack should be removed a few years after 2.60.
31630 ac_datarootdir_hack=; ac_datarootdir_seen=
31641 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
31642 *datarootdir*) ac_datarootdir_seen=yes;;
31643 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
31644 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
31645 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
31647 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31648 ac_datarootdir_hack='
31649 s&@datadir@&$datadir&g
31650 s&@docdir@&$docdir&g
31651 s&@infodir@&$infodir&g
31652 s&@localedir@&$localedir&g
31653 s&@mandir@&$mandir&g
31654 s&\\\${datarootdir}&$datarootdir&g' ;;
31658 # Neutralize VPATH when `$srcdir' = `.'.
31659 # Shell code in configure.ac might set extrasub.
31660 # FIXME: do we really want to maintain this feature?
31661 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31662 ac_sed_extra="$ac_vpsub
31665 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31667 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31668 s|@configure_input@|$ac_sed_conf_input|;t t
31669 s&@top_builddir@&$ac_top_builddir_sub&;t t
31670 s&@top_build_prefix@&$ac_top_build_prefix&;t t
31671 s&@srcdir@&$ac_srcdir&;t t
31672 s&@abs_srcdir@&$ac_abs_srcdir&;t t
31673 s&@top_srcdir@&$ac_top_srcdir&;t t
31674 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
31675 s&@builddir@&$ac_builddir&;t t
31676 s&@abs_builddir@&$ac_abs_builddir&;t t
31677 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
31678 s&@INSTALL@&$ac_INSTALL&;t t
31679 $ac_datarootdir_hack
31681 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
31682 if $ac_cs_awk_getline; then
31683 $AWK -f "$ac_tmp/subs.awk"
31685 $AWK -f "$ac_tmp/subs.awk" | $SHELL
31687 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
31689 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
31690 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
31691 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
31692 "$ac_tmp/out"`; test -z "$ac_out"; } &&
31693 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31694 which seems to be undefined. Please make sure it is defined" >&5
31695 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31696 which seems to be undefined. Please make sure it is defined" >&2;}
31698 rm -f "$ac_tmp/stdin"
31700 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
31701 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
31703 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
31709 if test x"$ac_file" != x-; then
31711 $as_echo "/* $configure_input */" \
31712 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
31713 } >"$ac_tmp/config.h" \
31714 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
31715 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
31716 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
31717 $as_echo "$as_me: $ac_file is unchanged" >&6;}
31720 mv "$ac_tmp/config.h" "$ac_file" \
31721 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
31724 $as_echo "/* $configure_input */" \
31725 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
31726 || as_fn_error $? "could not create -" "$LINENO" 5
31730 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
31731 $as_echo "$as_me: executing $ac_file commands" >&6;}
31736 case $ac_file$ac_mode in
31739 # See if we are running on zsh, and set the options which allow our
31740 # commands through without removal of \ escapes.
31741 if test -n "${ZSH_VERSION+set}" ; then
31742 setopt NO_GLOB_SUBST
31745 cfgfile="${ofile}T"
31746 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
31749 cat <<_LT_EOF >> "$cfgfile"
31752 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
31753 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
31754 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
31755 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
31757 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
31758 # 2006, 2007, 2008 Free Software Foundation, Inc.
31759 # Written by Gordon Matzigkeit, 1996
31761 # This file is part of GNU Libtool.
31763 # GNU Libtool is free software; you can redistribute it and/or
31764 # modify it under the terms of the GNU General Public License as
31765 # published by the Free Software Foundation; either version 2 of
31766 # the License, or (at your option) any later version.
31768 # As a special exception to the GNU General Public License,
31769 # if you distribute this file as part of a program or library that
31770 # is built using GNU Libtool, you may include this file under the
31771 # same distribution terms that you use for the rest of that program.
31773 # GNU Libtool is distributed in the hope that it will be useful,
31774 # but WITHOUT ANY WARRANTY; without even the implied warranty of
31775 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
31776 # GNU General Public License for more details.
31778 # You should have received a copy of the GNU General Public License
31779 # along with GNU Libtool; see the file COPYING. If not, a copy
31780 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
31781 # obtained by writing to the Free Software Foundation, Inc.,
31782 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
31785 # The names of the tagged configurations supported by this script.
31786 available_tags="CXX "
31788 # ### BEGIN LIBTOOL CONFIG
31790 # Which release of libtool.m4 was used?
31791 macro_version=$macro_version
31792 macro_revision=$macro_revision
31794 # Whether or not to build shared libraries.
31795 build_libtool_libs=$enable_shared
31797 # Whether or not to build static libraries.
31798 build_old_libs=$enable_static
31800 # What type of objects to build.
31803 # Whether or not to optimize for fast installation.
31804 fast_install=$enable_fast_install
31807 host_alias=$host_alias
31811 # The build system.
31812 build_alias=$build_alias
31816 # A sed program that does not truncate output.
31819 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
31820 Xsed="\$SED -e 1s/^X//"
31822 # A grep program that handles long lines.
31828 # A literal string matcher.
31831 # A BSD- or MS-compatible name lister.
31834 # Whether we need soft or hard links.
31837 # What is the maximum length of a command?
31838 max_cmd_len=$max_cmd_len
31840 # Object file suffix (normally "o").
31843 # Executable file suffix (normally "").
31846 # whether the shell understands "unset".
31849 # turn spaces into newlines.
31852 # turn newlines into spaces.
31855 # How to create reloadable object files.
31856 reload_flag=$lt_reload_flag
31857 reload_cmds=$lt_reload_cmds
31859 # An object symbol dumper.
31860 OBJDUMP=$lt_OBJDUMP
31862 # Method to check whether dependent libraries are shared objects.
31863 deplibs_check_method=$lt_deplibs_check_method
31865 # Command to use when deplibs_check_method == "file_magic".
31866 file_magic_cmd=$lt_file_magic_cmd
31870 AR_FLAGS=$lt_AR_FLAGS
31872 # A symbol stripping program.
31875 # Commands used to install an old-style archive.
31877 old_postinstall_cmds=$lt_old_postinstall_cmds
31878 old_postuninstall_cmds=$lt_old_postuninstall_cmds
31883 # LTCC compiler flags.
31884 LTCFLAGS=$lt_CFLAGS
31886 # Take the output of nm and produce a listing of raw symbols and C names.
31887 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
31889 # Transform the output of nm in a proper C declaration.
31890 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
31892 # Transform the output of nm in a C name address pair.
31893 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
31895 # Transform the output of nm in a C name address pair when lib prefix is needed.
31896 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
31898 # The name of the directory that contains temporary libtool files.
31901 # Shell to use when invoking shell scripts.
31904 # An echo program that does not interpret backslashes.
31907 # Used to examine libraries when file_magic_cmd begins with "file".
31908 MAGIC_CMD=$MAGIC_CMD
31910 # Must we lock files when doing compilation?
31911 need_locks=$lt_need_locks
31913 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
31914 DSYMUTIL=$lt_DSYMUTIL
31916 # Tool to change global to local symbols on Mac OS X.
31919 # Tool to manipulate fat objects and archives on Mac OS X.
31922 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
31925 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
31926 OTOOL64=$lt_OTOOL64
31928 # Old archive suffix (normally "a").
31931 # Shared library suffix (normally ".so").
31932 shrext_cmds=$lt_shrext_cmds
31934 # The commands to extract the exported symbol list from a shared archive.
31935 extract_expsyms_cmds=$lt_extract_expsyms_cmds
31937 # Variables whose values should be saved in libtool wrapper scripts and
31938 # restored at link time.
31939 variables_saved_for_relink=$lt_variables_saved_for_relink
31941 # Do we need the "lib" prefix for modules?
31942 need_lib_prefix=$need_lib_prefix
31944 # Do we need a version for libraries?
31945 need_version=$need_version
31947 # Library versioning type.
31948 version_type=$version_type
31950 # Shared library runtime path variable.
31951 runpath_var=$runpath_var
31953 # Shared library path variable.
31954 shlibpath_var=$shlibpath_var
31956 # Is shlibpath searched before the hard-coded library search path?
31957 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
31959 # Format of library name prefix.
31960 libname_spec=$lt_libname_spec
31962 # List of archive names. First name is the real one, the rest are links.
31963 # The last name is the one that the linker finds with -lNAME
31964 library_names_spec=$lt_library_names_spec
31966 # The coded name of the library, if different from the real name.
31967 soname_spec=$lt_soname_spec
31969 # Command to use after installation of a shared archive.
31970 postinstall_cmds=$lt_postinstall_cmds
31972 # Command to use after uninstallation of a shared archive.
31973 postuninstall_cmds=$lt_postuninstall_cmds
31975 # Commands used to finish a libtool library installation in a directory.
31976 finish_cmds=$lt_finish_cmds
31978 # As "finish_cmds", except a single script fragment to be evaled but
31980 finish_eval=$lt_finish_eval
31982 # Whether we should hardcode library paths into libraries.
31983 hardcode_into_libs=$hardcode_into_libs
31985 # Compile-time system search path for libraries.
31986 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
31988 # Run-time system search path for libraries.
31989 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
31991 # Whether dlopen is supported.
31992 dlopen_support=$enable_dlopen
31994 # Whether dlopen of programs is supported.
31995 dlopen_self=$enable_dlopen_self
31997 # Whether dlopen of statically linked programs is supported.
31998 dlopen_self_static=$enable_dlopen_self_static
32000 # Commands to strip libraries.
32001 old_striplib=$lt_old_striplib
32002 striplib=$lt_striplib
32005 # The linker used to build libraries.
32008 # Commands used to build an old-style archive.
32009 old_archive_cmds=$lt_old_archive_cmds
32011 # A language specific compiler.
32014 # Is the compiler the GNU compiler?
32017 # Compiler flag to turn off builtin functions.
32018 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
32020 # How to pass a linker flag through the compiler.
32021 wl=$lt_lt_prog_compiler_wl
32023 # Additional compiler flags for building library objects.
32024 pic_flag=$lt_lt_prog_compiler_pic
32026 # Compiler flag to prevent dynamic linking.
32027 link_static_flag=$lt_lt_prog_compiler_static
32029 # Does compiler simultaneously support -c and -o options?
32030 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
32032 # Whether or not to add -lc for building shared libraries.
32033 build_libtool_need_lc=$archive_cmds_need_lc
32035 # Whether or not to disallow shared libs when runtime libs are static.
32036 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
32038 # Compiler flag to allow reflexive dlopens.
32039 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
32041 # Compiler flag to generate shared objects directly from archives.
32042 whole_archive_flag_spec=$lt_whole_archive_flag_spec
32044 # Whether the compiler copes with passing no objects directly.
32045 compiler_needs_object=$lt_compiler_needs_object
32047 # Create an old-style archive from a shared archive.
32048 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
32050 # Create a temporary old-style archive to link instead of a shared archive.
32051 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
32053 # Commands used to build a shared archive.
32054 archive_cmds=$lt_archive_cmds
32055 archive_expsym_cmds=$lt_archive_expsym_cmds
32057 # Commands used to build a loadable module if different from building
32058 # a shared archive.
32059 module_cmds=$lt_module_cmds
32060 module_expsym_cmds=$lt_module_expsym_cmds
32062 # Whether we are building with GNU ld or not.
32063 with_gnu_ld=$lt_with_gnu_ld
32065 # Flag that allows shared libraries with undefined symbols to be built.
32066 allow_undefined_flag=$lt_allow_undefined_flag
32068 # Flag that enforces no undefined symbols.
32069 no_undefined_flag=$lt_no_undefined_flag
32071 # Flag to hardcode \$libdir into a binary during linking.
32072 # This must work even if \$libdir does not exist
32073 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
32075 # If ld is used when linking, flag to hardcode \$libdir into a binary
32076 # during linking. This must work even if \$libdir does not exist.
32077 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
32079 # Whether we need a single "-rpath" flag with a separated argument.
32080 hardcode_libdir_separator=$lt_hardcode_libdir_separator
32082 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
32083 # DIR into the resulting binary.
32084 hardcode_direct=$hardcode_direct
32086 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
32087 # DIR into the resulting binary and the resulting library dependency is
32088 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
32089 # library is relocated.
32090 hardcode_direct_absolute=$hardcode_direct_absolute
32092 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
32093 # into the resulting binary.
32094 hardcode_minus_L=$hardcode_minus_L
32096 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
32097 # into the resulting binary.
32098 hardcode_shlibpath_var=$hardcode_shlibpath_var
32100 # Set to "yes" if building a shared library automatically hardcodes DIR
32101 # into the library and all subsequent libraries and executables linked
32103 hardcode_automatic=$hardcode_automatic
32105 # Set to yes if linker adds runtime paths of dependent libraries
32106 # to runtime path list.
32107 inherit_rpath=$inherit_rpath
32109 # Whether libtool must link a program against all its dependency libraries.
32110 link_all_deplibs=$link_all_deplibs
32112 # Fix the shell variable \$srcfile for the compiler.
32113 fix_srcfile_path=$lt_fix_srcfile_path
32115 # Set to "yes" if exported symbols are required.
32116 always_export_symbols=$always_export_symbols
32118 # The commands to list exported symbols.
32119 export_symbols_cmds=$lt_export_symbols_cmds
32121 # Symbols that should not be listed in the preloaded symbols.
32122 exclude_expsyms=$lt_exclude_expsyms
32124 # Symbols that must always be exported.
32125 include_expsyms=$lt_include_expsyms
32127 # Commands necessary for linking programs (against libraries) with templates.
32128 prelink_cmds=$lt_prelink_cmds
32130 # Specify filename containing input files.
32131 file_list_spec=$lt_file_list_spec
32133 # How to hardcode a shared library path into an executable.
32134 hardcode_action=$hardcode_action
32136 # The directories searched by this compiler when creating a shared library.
32137 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
32139 # Dependencies to place before and after the objects being linked to
32140 # create a shared library.
32141 predep_objects=$lt_predep_objects
32142 postdep_objects=$lt_postdep_objects
32143 predeps=$lt_predeps
32144 postdeps=$lt_postdeps
32146 # The library search path used internally by the compiler when linking
32147 # a shared library.
32148 compiler_lib_search_path=$lt_compiler_lib_search_path
32150 # ### END LIBTOOL CONFIG
32156 cat <<\_LT_EOF >> "$cfgfile"
32157 # AIX sometimes has problems with the GCC collect2 program. For some
32158 # reason, if we set the COLLECT_NAMES environment variable, the problems
32159 # vanish in a puff of smoke.
32160 if test "X${COLLECT_NAMES+set}" != Xset; then
32162 export COLLECT_NAMES
32169 ltmain="$ac_aux_dir/ltmain.sh"
32172 # We use sed instead of cat because bash on DJGPP gets confused if
32173 # if finds mixed CR/LF and LF-only lines. Since sed operates in
32174 # text mode, it properly converts lines to CR/LF. This bash problem
32175 # is reportedly fixed, but why not run on old versions too?
32176 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
32177 || (rm -f "$cfgfile"; exit 1)
32181 cat << \_LT_EOF >> "$cfgfile"
32183 # func_dirname file append nondir_replacement
32184 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
32185 # otherwise set result to NONDIR_REPLACEMENT.
32189 */*) func_dirname_result="${1%/*}${2}" ;;
32190 * ) func_dirname_result="${3}" ;;
32194 # func_basename file
32197 func_basename_result="${1##*/}"
32200 # func_dirname_and_basename file append nondir_replacement
32201 # perform func_basename and func_dirname in a single function
32203 # dirname: Compute the dirname of FILE. If nonempty,
32204 # add APPEND to the result, otherwise set result
32205 # to NONDIR_REPLACEMENT.
32206 # value returned in "$func_dirname_result"
32207 # basename: Compute filename of FILE.
32208 # value retuned in "$func_basename_result"
32209 # Implementation must be kept synchronized with func_dirname
32210 # and func_basename. For efficiency, we do not delegate to
32211 # those functions but instead duplicate the functionality here.
32212 func_dirname_and_basename ()
32215 */*) func_dirname_result="${1%/*}${2}" ;;
32216 * ) func_dirname_result="${3}" ;;
32218 func_basename_result="${1##*/}"
32221 # func_stripname prefix suffix name
32222 # strip PREFIX and SUFFIX off of NAME.
32223 # PREFIX and SUFFIX must not contain globbing or regex special
32224 # characters, hashes, percent signs, but SUFFIX may contain a leading
32225 # dot (in which case that matches only a dot).
32228 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
32229 # positional parameters, so assign one to ordinary parameter first.
32230 func_stripname_result=${3}
32231 func_stripname_result=${func_stripname_result#"${1}"}
32232 func_stripname_result=${func_stripname_result%"${2}"}
32238 func_opt_split_opt=${1%%=*}
32239 func_opt_split_arg=${1#*=}
32246 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
32247 *) func_lo2o_result=${1} ;;
32251 # func_xform libobj-or-source
32254 func_xform_result=${1%.*}.lo
32257 # func_arith arithmetic-term...
32260 func_arith_result=$(( $* ))
32264 # STRING may not start with a hyphen.
32267 func_len_result=${#1}
32272 *) # Bourne compatible functions.
32273 cat << \_LT_EOF >> "$cfgfile"
32275 # func_dirname file append nondir_replacement
32276 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
32277 # otherwise set result to NONDIR_REPLACEMENT.
32280 # Extract subdirectory from the argument.
32281 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
32282 if test "X$func_dirname_result" = "X${1}"; then
32283 func_dirname_result="${3}"
32285 func_dirname_result="$func_dirname_result${2}"
32289 # func_basename file
32292 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
32296 # func_stripname prefix suffix name
32297 # strip PREFIX and SUFFIX off of NAME.
32298 # PREFIX and SUFFIX must not contain globbing or regex special
32299 # characters, hashes, percent signs, but SUFFIX may contain a leading
32300 # dot (in which case that matches only a dot).
32301 # func_strip_suffix prefix name
32305 .*) func_stripname_result=`$ECHO "X${3}" \
32306 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
32307 *) func_stripname_result=`$ECHO "X${3}" \
32308 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
32313 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
32314 my_sed_long_arg='1s/^-[^=]*=//'
32319 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
32320 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
32326 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
32329 # func_xform libobj-or-source
32332 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
32335 # func_arith arithmetic-term...
32338 func_arith_result=`expr "$@"`
32342 # STRING may not start with a hyphen.
32345 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
32351 case $lt_shell_append in
32353 cat << \_LT_EOF >> "$cfgfile"
32355 # func_append var value
32356 # Append VALUE to the end of shell variable VAR.
32364 cat << \_LT_EOF >> "$cfgfile"
32366 # func_append var value
32367 # Append VALUE to the end of shell variable VAR.
32378 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
32379 || (rm -f "$cfgfile"; exit 1)
32381 mv -f "$cfgfile" "$ofile" ||
32382 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
32386 cat <<_LT_EOF >> "$ofile"
32388 # ### BEGIN LIBTOOL TAG CONFIG: CXX
32390 # The linker used to build libraries.
32393 # Commands used to build an old-style archive.
32394 old_archive_cmds=$lt_old_archive_cmds_CXX
32396 # A language specific compiler.
32397 CC=$lt_compiler_CXX
32399 # Is the compiler the GNU compiler?
32402 # Compiler flag to turn off builtin functions.
32403 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
32405 # How to pass a linker flag through the compiler.
32406 wl=$lt_lt_prog_compiler_wl_CXX
32408 # Additional compiler flags for building library objects.
32409 pic_flag=$lt_lt_prog_compiler_pic_CXX
32411 # Compiler flag to prevent dynamic linking.
32412 link_static_flag=$lt_lt_prog_compiler_static_CXX
32414 # Does compiler simultaneously support -c and -o options?
32415 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
32417 # Whether or not to add -lc for building shared libraries.
32418 build_libtool_need_lc=$archive_cmds_need_lc_CXX
32420 # Whether or not to disallow shared libs when runtime libs are static.
32421 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
32423 # Compiler flag to allow reflexive dlopens.
32424 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
32426 # Compiler flag to generate shared objects directly from archives.
32427 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
32429 # Whether the compiler copes with passing no objects directly.
32430 compiler_needs_object=$lt_compiler_needs_object_CXX
32432 # Create an old-style archive from a shared archive.
32433 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
32435 # Create a temporary old-style archive to link instead of a shared archive.
32436 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
32438 # Commands used to build a shared archive.
32439 archive_cmds=$lt_archive_cmds_CXX
32440 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
32442 # Commands used to build a loadable module if different from building
32443 # a shared archive.
32444 module_cmds=$lt_module_cmds_CXX
32445 module_expsym_cmds=$lt_module_expsym_cmds_CXX
32447 # Whether we are building with GNU ld or not.
32448 with_gnu_ld=$lt_with_gnu_ld_CXX
32450 # Flag that allows shared libraries with undefined symbols to be built.
32451 allow_undefined_flag=$lt_allow_undefined_flag_CXX
32453 # Flag that enforces no undefined symbols.
32454 no_undefined_flag=$lt_no_undefined_flag_CXX
32456 # Flag to hardcode \$libdir into a binary during linking.
32457 # This must work even if \$libdir does not exist
32458 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
32460 # If ld is used when linking, flag to hardcode \$libdir into a binary
32461 # during linking. This must work even if \$libdir does not exist.
32462 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
32464 # Whether we need a single "-rpath" flag with a separated argument.
32465 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
32467 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
32468 # DIR into the resulting binary.
32469 hardcode_direct=$hardcode_direct_CXX
32471 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
32472 # DIR into the resulting binary and the resulting library dependency is
32473 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
32474 # library is relocated.
32475 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
32477 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
32478 # into the resulting binary.
32479 hardcode_minus_L=$hardcode_minus_L_CXX
32481 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
32482 # into the resulting binary.
32483 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
32485 # Set to "yes" if building a shared library automatically hardcodes DIR
32486 # into the library and all subsequent libraries and executables linked
32488 hardcode_automatic=$hardcode_automatic_CXX
32490 # Set to yes if linker adds runtime paths of dependent libraries
32491 # to runtime path list.
32492 inherit_rpath=$inherit_rpath_CXX
32494 # Whether libtool must link a program against all its dependency libraries.
32495 link_all_deplibs=$link_all_deplibs_CXX
32497 # Fix the shell variable \$srcfile for the compiler.
32498 fix_srcfile_path=$lt_fix_srcfile_path_CXX
32500 # Set to "yes" if exported symbols are required.
32501 always_export_symbols=$always_export_symbols_CXX
32503 # The commands to list exported symbols.
32504 export_symbols_cmds=$lt_export_symbols_cmds_CXX
32506 # Symbols that should not be listed in the preloaded symbols.
32507 exclude_expsyms=$lt_exclude_expsyms_CXX
32509 # Symbols that must always be exported.
32510 include_expsyms=$lt_include_expsyms_CXX
32512 # Commands necessary for linking programs (against libraries) with templates.
32513 prelink_cmds=$lt_prelink_cmds_CXX
32515 # Specify filename containing input files.
32516 file_list_spec=$lt_file_list_spec_CXX
32518 # How to hardcode a shared library path into an executable.
32519 hardcode_action=$hardcode_action_CXX
32521 # The directories searched by this compiler when creating a shared library.
32522 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
32524 # Dependencies to place before and after the objects being linked to
32525 # create a shared library.
32526 predep_objects=$lt_predep_objects_CXX
32527 postdep_objects=$lt_postdep_objects_CXX
32528 predeps=$lt_predeps_CXX
32529 postdeps=$lt_postdeps_CXX
32531 # The library search path used internally by the compiler when linking
32532 # a shared library.
32533 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
32535 # ### END LIBTOOL TAG CONFIG: CXX
32540 for ac_file in $CONFIG_FILES; do
32541 # Support "outfile[:infile[:infile...]]"
32543 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
32545 # PO directories have a Makefile.in generated from Makefile.in.in.
32546 case "$ac_file" in */Makefile.in)
32547 # Adjust a relative srcdir.
32548 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
32549 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
32550 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
32551 # In autoconf-2.13 it is called $ac_given_srcdir.
32552 # In autoconf-2.50 it is called $srcdir.
32553 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
32554 case "$ac_given_srcdir" in
32555 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
32556 /*) top_srcdir="$ac_given_srcdir" ;;
32557 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
32559 # Treat a directory as a PO directory if and only if it has a
32560 # POTFILES.in file. This allows packages to have multiple PO
32561 # directories under different names or in different locations.
32562 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
32563 rm -f "$ac_dir/POTFILES"
32564 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
32565 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
32566 POMAKEFILEDEPS="POTFILES.in"
32567 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
32568 # on $ac_dir but don't depend on user-specified configuration
32570 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
32571 # The LINGUAS file contains the set of available languages.
32572 if test -n "$OBSOLETE_ALL_LINGUAS"; then
32573 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
32575 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
32576 # Hide the ALL_LINGUAS assigment from automake.
32577 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
32578 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
32580 # The set of available languages was given in configure.in.
32581 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
32584 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
32585 # Compute UPDATEPOFILES
32586 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
32587 # Compute DUMMYPOFILES
32588 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
32590 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
32591 case "$ac_given_srcdir" in
32593 *) srcdirpre='$(srcdir)/' ;;
32599 for lang in $ALL_LINGUAS; do
32600 POFILES="$POFILES $srcdirpre$lang.po"
32601 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
32602 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
32603 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
32605 # CATALOGS depends on both $ac_dir and the user's LINGUAS
32606 # environment variable.
32608 if test -n "$ALL_LINGUAS"; then
32609 for presentlang in $ALL_LINGUAS; do
32611 if test "%UNSET%" != "$LINGUAS"; then
32612 desiredlanguages="$LINGUAS"
32614 desiredlanguages="$ALL_LINGUAS"
32616 for desiredlang in $desiredlanguages; do
32617 # Use the presentlang catalog if desiredlang is
32618 # a. equal to presentlang, or
32619 # b. a variant of presentlang (because in this case,
32620 # presentlang can be used as a fallback for messages
32621 # which are not translated in the desiredlang catalog).
32622 case "$desiredlang" in
32623 "$presentlang"*) useit=yes;;
32626 if test $useit = yes; then
32627 INST_LINGUAS="$INST_LINGUAS $presentlang"
32632 if test -n "$INST_LINGUAS"; then
32633 for lang in $INST_LINGUAS; do
32634 CATALOGS="$CATALOGS $lang.gmo"
32637 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
32638 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"
32639 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
32640 if test -f "$f"; then
32642 *.orig | *.bak | *~) ;;
32643 *) cat "$f" >> "$ac_dir/Makefile" ;;
32660 ac_clean_files=$ac_clean_files_save
32662 test $ac_write_fail = 0 ||
32663 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
32666 # configure is writing to config.log, and then calls config.status.
32667 # config.status does its own redirection, appending to config.log.
32668 # Unfortunately, on DOS this fails, as config.log is still kept open
32669 # by configure, so config.status won't be able to write to it; its
32670 # output is simply discarded. So we exec the FD to /dev/null,
32671 # effectively closing config.log, so it can be properly (re)opened and
32672 # appended to by config.status. When coming back to configure, we
32673 # need to make the FD available again.
32674 if test "$no_create" != yes; then
32676 ac_config_status_args=
32677 test "$silent" = yes &&
32678 ac_config_status_args="$ac_config_status_args --quiet"
32680 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
32682 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
32683 # would make configure fail if this is the last instruction.
32684 $ac_cs_success || as_fn_exit 1
32686 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
32687 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
32688 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
32692 if test "${support_bat}" = "yes" ; then
32693 if test "x$QMAKE" = "xnone"; then
32694 as_fn_error $? "Could not find qmake $PATH. Check your Qt installation" "$LINENO" 5
32698 echo "Creating bat Makefile"
32703 ${MAKE:-make} clean
32707 if test X"$GCC" = "Xyes" ; then
32708 echo "Doing make of dependencies"
32709 ${MAKE:-make} depend
32713 chmod 755 install_conf_file build-depkgs-qt-console
32717 chmod 755 bacula btraceback mtx-changer
32718 chmod 755 dvd-handler dvd-simulator
32719 chmod 755 bconsole mtx-changer devel_bacula logrotate
32723 chmod 755 $c/update_mysql_tables_10_to_11 $c/update_sqlite3_tables_10_to_11
32724 chmod 755 $c/update_postgresql_tables_10_to_11
32725 chmod 755 $c/update_mysql_tables_11_to_12 $c/update_sqlite3_tables_11_to_12
32726 chmod 755 $c/update_postgresql_tables_11_to_12
32731 chmod 755 $c/create_bacula_database $c/update_bacula_tables $c/make_bacula_tables
32732 chmod 755 $c/grant_bacula_privileges $c/drop_bacula_tables $c/drop_bacula_database
32734 chmod 755 $c/create_mysql_database $c/update_mysql_tables $c/make_mysql_tables
32735 chmod 755 $c/grant_mysql_privileges $c/drop_mysql_tables $c/drop_mysql_database
32737 chmod 755 $c/create_sqlite3_database $c/update_sqlite3_tables $c/make_sqlite3_tables
32738 chmod 755 $c/grant_sqlite3_privileges $c/drop_sqlite3_tables $c/drop_sqlite3_database
32740 chmod 755 $c/create_postgresql_database $c/update_postgresql_tables $c/make_postgresql_tables
32741 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables $c/drop_postgresql_database
32743 chmod 755 $c/create_ingres_database $c/update_ingres_tables $c/make_ingres_tables
32744 chmod 755 $c/grant_ingres_privileges $c/drop_ingres_tables $c/drop_ingres_database
32747 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup $c/make_catalog_backup.pl
32748 chmod 755 $c/sqlite
32751 chmod 755 src/win32/build-depkgs-mingw32
32753 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
32754 largefile_support="yes"
32757 if test X"$GCC" = "Xyes" ; then
32758 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
32759 if test "x${CCVERSION}" = "x" ; then
32760 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
32762 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
32763 if test x"${CXXVERSION}" = x ; then
32764 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
32768 # clean up any old junk
32772 ${MAKE:-make} clean
32775 Configuration on `date`:
32777 Host: ${host}${post_host} -- ${DISTNAME} ${DISTVER}
32778 Bacula version: ${BACULA} ${VERSION} (${DATE})
32779 Source code location: ${srcdir}
32780 Install binaries: ${sbindir}
32781 Install libraries: ${libdir}
32782 Install config files: ${sysconfdir}
32783 Scripts directory: ${scriptdir}
32784 Archive directory: ${archivedir}
32785 Working directory: ${working_dir}
32786 PID directory: ${piddir}
32787 Subsys directory: ${subsysdir}
32788 Man directory: ${mandir}
32789 Data directory: ${datarootdir}
32790 Plugin directory: ${plugindir}
32791 C Compiler: ${CC} ${CCVERSION}
32792 C++ Compiler: ${CXX} ${CXXVERSION}
32793 Compiler flags: ${WCFLAGS} ${CFLAGS}
32794 Linker flags: ${WLDFLAGS} ${LDFLAGS}
32796 Statically Linked Tools: ${support_static_tools}
32797 Statically Linked FD: ${support_static_fd}
32798 Statically Linked SD: ${support_static_sd}
32799 Statically Linked DIR: ${support_static_dir}
32800 Statically Linked CONS: ${support_static_cons}
32801 Database backends: ${db_backends}
32802 Database port: ${db_port}
32803 Database name: ${db_name}
32804 Database user: ${db_user}
32806 Job Output Email: ${job_email}
32807 Traceback Email: ${dump_email}
32808 SMTP Host Address: ${smtp_host}
32810 Director Port: ${dir_port}
32811 File daemon Port: ${fd_port}
32812 Storage daemon Port: ${sd_port}
32814 Director User: ${dir_user}
32815 Director Group: ${dir_group}
32816 Storage Daemon User: ${sd_user}
32817 Storage DaemonGroup: ${sd_group}
32818 File Daemon User: ${fd_user}
32819 File Daemon Group: ${fd_group}
32821 Large file support: $largefile_support
32822 Bacula conio support: ${got_conio} ${CONS_LIBS}
32823 readline support: ${got_readline} ${PRTREADLINE_SRC}
32824 TCP Wrappers support: ${TCPW_MSG} ${WRAPLIBS}
32825 TLS support: ${support_tls}
32826 Encryption support: ${support_crypto}
32827 ZLIB support: ${have_zlib}
32828 enable-smartalloc: ${support_smartalloc}
32829 enable-lockmgr: ${support_lockmgr}
32830 bat support: ${support_bat}
32831 enable-gnome: ${support_gnome} ${gnome_version}
32832 enable-bwx-console: ${support_wx_console} ${wx_version}
32833 enable-tray-monitor: ${support_tray_monitor}
32834 client-only: ${build_client_only}
32835 build-dird: ${build_dird}
32836 build-stored: ${build_stored}
32837 Plugin support: ${have_plugins}
32838 AFS support: ${have_afs}
32839 ACL support: ${have_acl}
32840 XATTR support: ${have_xattr}
32841 Python support: ${support_python} ${PYTHON_LIBS}
32842 Batch insert enabled: ${support_batch_insert}
32846 # create a small shell script useful for support with
32847 # configure options and config.out info
32848 cat > scripts/bacula_config << EOF
32851 $ $0 $ac_configure_args
32853 cat config.out >> scripts/bacula_config
32854 echo __EOC__ >> scripts/bacula_config
32855 chmod 755 scripts/bacula_config