2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68.
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.
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}'
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 this package 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/PACKAGE]
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
1772 --disable-option-checking ignore unrecognized --enable/--with options
1773 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1774 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1775 --enable-libtool enable building using GNU libtool [default=yes]
1776 --enable-shared[=PKGS] build shared libraries [default=yes]
1777 --enable-static[=PKGS] build static libraries [default=no]
1778 --enable-fast-install[=PKGS]
1779 optimize for fast installation [default=yes]
1780 --disable-libtool-lock avoid locking (might break parallel builds)
1781 --enable-includes enable installing of include files [default=no]
1782 --disable-nls do not use Native Language Support
1783 --disable-rpath do not hardcode runtime library paths
1784 --enable-gnome enable build of bgnome-console GUI [default=no]
1785 --enable-bat enable build of bat Qt4 GUI [default=no]
1786 --enable-bwx-console enable build of wxWidgets console [default=no]
1787 --enable-tray-monitor enable build of Gnome tray monitor (compatible with
1789 --enable-smartalloc enable smartalloc debugging support [default=no]
1790 --enable-lockmgr enable lock manager support [default=no]
1791 --enable-static-tools enable static tape tools [default=no]
1792 --enable-static-fd enable static File daemon [default=no]
1793 --enable-static-sd enable static Storage daemon [default=no]
1794 --enable-static-dir enable static Director [default=no]
1795 --enable-static-cons enable static Console [default=no]
1796 --enable-client-only build client (File daemon) only [default=no]
1797 --enable-build-dird enable building of dird (Director) [default=yes]
1798 --enable-build-stored enable building of stored (Storage daemon)
1800 --disable-conio disable conio support [default=no]
1801 --enable-ipv6 enable ipv6 support [default=yes]
1802 --disable-readline disable readline support [default=yes]
1803 --enable-batch-insert enable the DB batch insert code [default=yes]
1804 --disable-largefile omit support for large files
1805 --disable-afs disable afs support [default=auto]
1806 --disable-acl disable acl support [default=auto]
1807 --disable-xattr disable xattr support [default=auto]
1810 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1811 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1812 --with-pic try to use only PIC/non-PIC objects [default=use
1814 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1815 --with-gnu-ld assume the C compiler uses GNU ld default=no
1816 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1817 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1818 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1819 --without-libintl-prefix don't search for libintl in includedir and libdir
1820 --with-included-gettext use the GNU gettext library included here
1821 --with-readline[=DIR] specify readline library directory
1822 --with-python[=DIR] Include Python support. DIR is the Python base
1823 install directory, default is to search through a
1824 number of common places for the Python files.
1825 --with-tcp-wrappers[=DIR]
1826 enable tcpwrappers support
1827 --with-openssl[=DIR] Include OpenSSL support. DIR is the OpenSSL base
1828 --with-working-dir=PATH specify path of Bacula working directory
1829 --with-archivedir=PATH specify path of SD archive directory
1830 --with-basename=RESNAME specify base resource name for daemons
1831 --with-hostname=RESNAME specify host name for daemons
1832 --with-scriptdir=PATH specify path of Bacula scripts directory
1833 --with-bsrdir=PATH specify path of Bacula bsrs directory
1834 --with-logdir=PATH specify path of Bacula logs directory
1835 --with-plugindir=PATH specify path of Bacula plugins directory
1836 --with-dump-email=EMAIL dump email address
1837 --with-job-email=EMAIL job output email address
1838 --with-smtp-host=HOST SMTP mail host address
1839 --with-pid-dir=PATH specify location of Bacula pid files
1840 --with-subsys-dir=PATH specify location of Bacula subsys file
1841 --with-baseport=PORT specify base port address for daemons
1842 --with-dir-password=PASSWORD
1843 specify Director's password
1844 --with-fd-password=PASSWORD
1845 specify Client's password
1846 --with-sd-password=PASSWORD
1847 specify Storage daemon's password
1848 --with-mon-dir-password=PASSWORD
1849 specify Director's password used by the monitor
1850 --with-mon-fd-password=PASSWORD
1851 specify Client's password used by the monitor
1852 --with-mon-sd-password=PASSWORD
1853 specify Storage daemon's password used by the
1855 --with-db-name=DBNAME specify database name [default=bacula]
1856 --with-db-user=UNAME specify database user [default=bacula]
1857 --with-db-password=PWD specify database password [default=*none*]
1858 --with-db-port=DBPORT specify a database port [default=null]
1859 --with-dir-user=USER specify user for Director daemon
1860 --with-dir-group=GROUP specify group for Director daemon
1861 --with-sd-user=USER specify user for Storage daemon
1862 --with-sd-group=GROUP specify group for Storage daemon
1863 --with-fd-user=USER specify user for File daemon
1864 --with-fd-group=GROUP specify group for File daemon
1865 --with-sbin-perm=MODE specify permissions for sbin binaries [default=0750]
1866 --with-postgresql[=DIR] Include PostgreSQL support. DIR is the PostgreSQL
1867 base install directory, [default=/usr/local/pgsql]
1868 --with-mysql[=DIR] Include MySQL support. DIR is the MySQL base install
1869 directory, default is to search through a number of
1870 common places for the MySQL files.
1871 --with-embedded-mysql[=DIR]
1872 Include MySQL support. DIR is the MySQL base install
1873 directory, default is to search through a number of
1874 common places for the MySQL files.
1875 --with-sqlite3[=DIR] Include SQLite3 support. DIR is the SQLite3 base
1876 install directory, default is to search through a
1877 number of common places for the SQLite3 files.
1878 --with-ingres[=DIR] Include Ingres support. DIR is the Ingres base
1879 install directory, default is to search through a
1880 number of common places for the Ingres files.
1881 --with-dbi[=DIR] Include DBI support. DIR is the DBD base install
1882 directory, default is to search through a number of
1883 common places for the DBI files.
1884 --with-dbi-driver[=DRIVER]
1885 Suport for DBI driver. DRIVER is the one DBI driver
1886 like Mysql, Postgresql, others. Default is to not
1887 configure any driver.
1888 --with-x use the X Window System
1889 --with-afsdir[=DIR] Directory holding AFS includes/libs
1891 Some influential environment variables:
1892 CC C compiler command
1893 CFLAGS C compiler flags
1894 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1895 nonstandard directory <lib dir>
1896 LIBS libraries to pass to the linker, e.g. -l<library>
1897 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1898 you have headers in a nonstandard directory <include dir>
1899 CXX C++ compiler command
1900 CXXFLAGS C++ compiler flags
1902 WXCONFIG wx-config command. On some systems, you must set it to
1903 wx-config-2.6 to use wxWidgets 2.6.
1904 WXFLAGS Parameters to pass to wx-config (e.g. --unicode=no).
1905 CXXCPP C++ preprocessor
1906 XMKMF Path to xmkmf, Makefile generator for X Window System
1908 Use these variables to override the choices made by `configure' or to help
1909 it to find libraries and programs with nonstandard names/locations.
1911 Report bugs to the package provider.
1916 if test "$ac_init_help" = "recursive"; then
1917 # If there are subdirs, report their specific --help.
1918 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1919 test -d "$ac_dir" ||
1920 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1925 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1927 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1928 # A ".." for each directory in $ac_dir_suffix.
1929 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1930 case $ac_top_builddir_sub in
1931 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1932 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1935 ac_abs_top_builddir=$ac_pwd
1936 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1937 # for backward compatibility:
1938 ac_top_builddir=$ac_top_build_prefix
1941 .) # We are building in place.
1943 ac_top_srcdir=$ac_top_builddir_sub
1944 ac_abs_top_srcdir=$ac_pwd ;;
1945 [\\/]* | ?:[\\/]* ) # Absolute name.
1946 ac_srcdir=$srcdir$ac_dir_suffix;
1947 ac_top_srcdir=$srcdir
1948 ac_abs_top_srcdir=$srcdir ;;
1950 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1951 ac_top_srcdir=$ac_top_build_prefix$srcdir
1952 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1954 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1956 cd "$ac_dir" || { ac_status=$?; continue; }
1957 # Check for guested configure.
1958 if test -f "$ac_srcdir/configure.gnu"; then
1960 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1961 elif test -f "$ac_srcdir/configure"; then
1963 $SHELL "$ac_srcdir/configure" --help=recursive
1965 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1967 cd "$ac_pwd" || { ac_status=$?; break; }
1971 test -n "$ac_init_help" && exit $ac_status
1972 if $ac_init_version; then
1975 generated by GNU Autoconf 2.68
1977 Copyright (C) 2010 Free Software Foundation, Inc.
1978 This configure script is free software; the Free Software Foundation
1979 gives unlimited permission to copy, distribute and modify it.
1984 ## ------------------------ ##
1985 ## Autoconf initialization. ##
1986 ## ------------------------ ##
1988 # ac_fn_c_try_compile LINENO
1989 # --------------------------
1990 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1991 ac_fn_c_try_compile ()
1993 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1994 rm -f conftest.$ac_objext
1995 if { { ac_try="$ac_compile"
1997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1998 *) ac_try_echo=$ac_try;;
2000 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2001 $as_echo "$ac_try_echo"; } >&5
2002 (eval "$ac_compile") 2>conftest.err
2004 if test -s conftest.err; then
2005 grep -v '^ *+' conftest.err >conftest.er1
2006 cat conftest.er1 >&5
2007 mv -f conftest.er1 conftest.err
2009 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2010 test $ac_status = 0; } && {
2011 test -z "$ac_c_werror_flag" ||
2012 test ! -s conftest.err
2013 } && test -s conftest.$ac_objext; then :
2016 $as_echo "$as_me: failed program was:" >&5
2017 sed 's/^/| /' conftest.$ac_ext >&5
2021 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2022 as_fn_set_status $ac_retval
2024 } # ac_fn_c_try_compile
2026 # ac_fn_cxx_try_compile LINENO
2027 # ----------------------------
2028 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2029 ac_fn_cxx_try_compile ()
2031 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2032 rm -f conftest.$ac_objext
2033 if { { ac_try="$ac_compile"
2035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2036 *) ac_try_echo=$ac_try;;
2038 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2039 $as_echo "$ac_try_echo"; } >&5
2040 (eval "$ac_compile") 2>conftest.err
2042 if test -s conftest.err; then
2043 grep -v '^ *+' conftest.err >conftest.er1
2044 cat conftest.er1 >&5
2045 mv -f conftest.er1 conftest.err
2047 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2048 test $ac_status = 0; } && {
2049 test -z "$ac_cxx_werror_flag" ||
2050 test ! -s conftest.err
2051 } && test -s conftest.$ac_objext; then :
2054 $as_echo "$as_me: failed program was:" >&5
2055 sed 's/^/| /' conftest.$ac_ext >&5
2059 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2060 as_fn_set_status $ac_retval
2062 } # ac_fn_cxx_try_compile
2064 # ac_fn_c_try_cpp LINENO
2065 # ----------------------
2066 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2069 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2070 if { { ac_try="$ac_cpp conftest.$ac_ext"
2072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2073 *) ac_try_echo=$ac_try;;
2075 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2076 $as_echo "$ac_try_echo"; } >&5
2077 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2079 if test -s conftest.err; then
2080 grep -v '^ *+' conftest.err >conftest.er1
2081 cat conftest.er1 >&5
2082 mv -f conftest.er1 conftest.err
2084 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2085 test $ac_status = 0; } > conftest.i && {
2086 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2087 test ! -s conftest.err
2091 $as_echo "$as_me: failed program was:" >&5
2092 sed 's/^/| /' conftest.$ac_ext >&5
2096 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2097 as_fn_set_status $ac_retval
2101 # ac_fn_c_try_link LINENO
2102 # -----------------------
2103 # Try to link conftest.$ac_ext, and return whether this succeeded.
2106 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2107 rm -f conftest.$ac_objext conftest$ac_exeext
2108 if { { ac_try="$ac_link"
2110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2111 *) ac_try_echo=$ac_try;;
2113 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2114 $as_echo "$ac_try_echo"; } >&5
2115 (eval "$ac_link") 2>conftest.err
2117 if test -s conftest.err; then
2118 grep -v '^ *+' conftest.err >conftest.er1
2119 cat conftest.er1 >&5
2120 mv -f conftest.er1 conftest.err
2122 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2123 test $ac_status = 0; } && {
2124 test -z "$ac_c_werror_flag" ||
2125 test ! -s conftest.err
2126 } && test -s conftest$ac_exeext && {
2127 test "$cross_compiling" = yes ||
2128 $as_test_x conftest$ac_exeext
2132 $as_echo "$as_me: failed program was:" >&5
2133 sed 's/^/| /' conftest.$ac_ext >&5
2137 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2138 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2139 # interfere with the next link command; also delete a directory that is
2140 # left behind by Apple's compiler. We do this before executing the actions.
2141 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2142 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2143 as_fn_set_status $ac_retval
2145 } # ac_fn_c_try_link
2147 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2148 # -------------------------------------------------------
2149 # Tests whether HEADER exists and can be compiled using the include files in
2150 # INCLUDES, setting the cache variable VAR accordingly.
2151 ac_fn_c_check_header_compile ()
2153 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2155 $as_echo_n "checking for $2... " >&6; }
2156 if eval \${$3+:} false; then :
2157 $as_echo_n "(cached) " >&6
2159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2160 /* end confdefs.h. */
2164 if ac_fn_c_try_compile "$LINENO"; then :
2169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2173 $as_echo "$ac_res" >&6; }
2174 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2176 } # ac_fn_c_check_header_compile
2178 # ac_fn_c_try_run LINENO
2179 # ----------------------
2180 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2181 # that executables *can* be run.
2184 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2185 if { { ac_try="$ac_link"
2187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2188 *) ac_try_echo=$ac_try;;
2190 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2191 $as_echo "$ac_try_echo"; } >&5
2192 (eval "$ac_link") 2>&5
2194 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2195 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2196 { { case "(($ac_try" in
2197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2198 *) ac_try_echo=$ac_try;;
2200 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2201 $as_echo "$ac_try_echo"; } >&5
2202 (eval "$ac_try") 2>&5
2204 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2205 test $ac_status = 0; }; }; then :
2208 $as_echo "$as_me: program exited with status $ac_status" >&5
2209 $as_echo "$as_me: failed program was:" >&5
2210 sed 's/^/| /' conftest.$ac_ext >&5
2212 ac_retval=$ac_status
2214 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2215 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2216 as_fn_set_status $ac_retval
2220 # ac_fn_c_check_func LINENO FUNC VAR
2221 # ----------------------------------
2222 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2223 ac_fn_c_check_func ()
2225 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2227 $as_echo_n "checking for $2... " >&6; }
2228 if eval \${$3+:} false; then :
2229 $as_echo_n "(cached) " >&6
2231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2232 /* end confdefs.h. */
2233 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2234 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2235 #define $2 innocuous_$2
2237 /* System header to define __stub macros and hopefully few prototypes,
2238 which can conflict with char $2 (); below.
2239 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2240 <limits.h> exists even on freestanding compilers. */
2243 # include <limits.h>
2245 # include <assert.h>
2250 /* Override any GCC internal prototype to avoid an error.
2251 Use char because int might match the return type of a GCC
2252 builtin and then its argument prototype would still apply. */
2257 /* The GNU C library defines this for functions which it implements
2258 to always fail with ENOSYS. Some functions are actually named
2259 something starting with __ and the normal name is an alias. */
2260 #if defined __stub_$2 || defined __stub___$2
2272 if ac_fn_c_try_link "$LINENO"; then :
2277 rm -f core conftest.err conftest.$ac_objext \
2278 conftest$ac_exeext conftest.$ac_ext
2281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2282 $as_echo "$ac_res" >&6; }
2283 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2285 } # ac_fn_c_check_func
2287 # ac_fn_cxx_try_cpp LINENO
2288 # ------------------------
2289 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2290 ac_fn_cxx_try_cpp ()
2292 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2293 if { { ac_try="$ac_cpp conftest.$ac_ext"
2295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2296 *) ac_try_echo=$ac_try;;
2298 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2299 $as_echo "$ac_try_echo"; } >&5
2300 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2302 if test -s conftest.err; then
2303 grep -v '^ *+' conftest.err >conftest.er1
2304 cat conftest.er1 >&5
2305 mv -f conftest.er1 conftest.err
2307 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2308 test $ac_status = 0; } > conftest.i && {
2309 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2310 test ! -s conftest.err
2314 $as_echo "$as_me: failed program was:" >&5
2315 sed 's/^/| /' conftest.$ac_ext >&5
2319 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2320 as_fn_set_status $ac_retval
2322 } # ac_fn_cxx_try_cpp
2324 # ac_fn_cxx_try_link LINENO
2325 # -------------------------
2326 # Try to link conftest.$ac_ext, and return whether this succeeded.
2327 ac_fn_cxx_try_link ()
2329 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2330 rm -f conftest.$ac_objext conftest$ac_exeext
2331 if { { ac_try="$ac_link"
2333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2334 *) ac_try_echo=$ac_try;;
2336 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2337 $as_echo "$ac_try_echo"; } >&5
2338 (eval "$ac_link") 2>conftest.err
2340 if test -s conftest.err; then
2341 grep -v '^ *+' conftest.err >conftest.er1
2342 cat conftest.er1 >&5
2343 mv -f conftest.er1 conftest.err
2345 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2346 test $ac_status = 0; } && {
2347 test -z "$ac_cxx_werror_flag" ||
2348 test ! -s conftest.err
2349 } && test -s conftest$ac_exeext && {
2350 test "$cross_compiling" = yes ||
2351 $as_test_x conftest$ac_exeext
2355 $as_echo "$as_me: failed program was:" >&5
2356 sed 's/^/| /' conftest.$ac_ext >&5
2360 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2361 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2362 # interfere with the next link command; also delete a directory that is
2363 # left behind by Apple's compiler. We do this before executing the actions.
2364 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2365 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2366 as_fn_set_status $ac_retval
2368 } # ac_fn_cxx_try_link
2370 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2371 # -------------------------------------------
2372 # Tests whether TYPE exists after having included INCLUDES, setting cache
2373 # variable VAR accordingly.
2374 ac_fn_c_check_type ()
2376 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2378 $as_echo_n "checking for $2... " >&6; }
2379 if eval \${$3+:} false; then :
2380 $as_echo_n "(cached) " >&6
2383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2384 /* end confdefs.h. */
2395 if ac_fn_c_try_compile "$LINENO"; then :
2396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2397 /* end confdefs.h. */
2408 if ac_fn_c_try_compile "$LINENO"; then :
2413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2419 $as_echo "$ac_res" >&6; }
2420 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2422 } # ac_fn_c_check_type
2424 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2425 # -------------------------------------------------------
2426 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2427 # the include files in INCLUDES and setting the cache variable VAR
2429 ac_fn_c_check_header_mongrel ()
2431 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2432 if eval \${$3+:} false; then :
2433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2434 $as_echo_n "checking for $2... " >&6; }
2435 if eval \${$3+:} false; then :
2436 $as_echo_n "(cached) " >&6
2439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2440 $as_echo "$ac_res" >&6; }
2442 # Is the header compilable?
2443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2444 $as_echo_n "checking $2 usability... " >&6; }
2445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2446 /* end confdefs.h. */
2450 if ac_fn_c_try_compile "$LINENO"; then :
2451 ac_header_compiler=yes
2453 ac_header_compiler=no
2455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2457 $as_echo "$ac_header_compiler" >&6; }
2459 # Is the header present?
2460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2461 $as_echo_n "checking $2 presence... " >&6; }
2462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2463 /* end confdefs.h. */
2466 if ac_fn_c_try_cpp "$LINENO"; then :
2467 ac_header_preproc=yes
2469 ac_header_preproc=no
2471 rm -f conftest.err conftest.i conftest.$ac_ext
2472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2473 $as_echo "$ac_header_preproc" >&6; }
2475 # So? What about this header?
2476 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2478 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2479 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2480 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2481 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2484 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2485 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2486 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2487 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2488 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2489 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2490 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2491 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2492 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2493 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2497 $as_echo_n "checking for $2... " >&6; }
2498 if eval \${$3+:} false; then :
2499 $as_echo_n "(cached) " >&6
2501 eval "$3=\$ac_header_compiler"
2504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2505 $as_echo "$ac_res" >&6; }
2507 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2509 } # ac_fn_c_check_header_mongrel
2511 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2512 # --------------------------------------------
2513 # Tries to find the compile-time value of EXPR in a program that includes
2514 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2516 ac_fn_c_compute_int ()
2518 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2519 if test "$cross_compiling" = yes; then
2520 # Depending upon the size, compute the lo and hi bounds.
2521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2522 /* end confdefs.h. */
2527 static int test_array [1 - 2 * !(($2) >= 0)];
2534 if ac_fn_c_try_compile "$LINENO"; then :
2537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2538 /* end confdefs.h. */
2543 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2550 if ac_fn_c_try_compile "$LINENO"; then :
2551 ac_hi=$ac_mid; break
2553 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2554 if test $ac_lo -le $ac_mid; then
2558 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2564 /* end confdefs.h. */
2569 static int test_array [1 - 2 * !(($2) < 0)];
2576 if ac_fn_c_try_compile "$LINENO"; then :
2579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2580 /* end confdefs.h. */
2585 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2592 if ac_fn_c_try_compile "$LINENO"; then :
2593 ac_lo=$ac_mid; break
2595 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2596 if test $ac_mid -le $ac_hi; then
2600 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2610 # Binary search between lo and hi bounds.
2611 while test "x$ac_lo" != "x$ac_hi"; do
2612 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2614 /* end confdefs.h. */
2619 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2626 if ac_fn_c_try_compile "$LINENO"; then :
2629 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2634 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2639 /* end confdefs.h. */
2641 static long int longval () { return $2; }
2642 static unsigned long int ulongval () { return $2; }
2649 FILE *f = fopen ("conftest.val", "w");
2654 long int i = longval ();
2657 fprintf (f, "%ld", i);
2661 unsigned long int i = ulongval ();
2664 fprintf (f, "%lu", i);
2666 /* Do not output a trailing newline, as this causes \r\n confusion
2667 on some platforms. */
2668 return ferror (f) || fclose (f) != 0;
2674 if ac_fn_c_try_run "$LINENO"; then :
2675 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2679 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2680 conftest.$ac_objext conftest.beam conftest.$ac_ext
2684 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2685 as_fn_set_status $ac_retval
2687 } # ac_fn_c_compute_int
2689 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2690 # ----------------------------------------------------
2691 # Tries to find if the field MEMBER exists in type AGGR, after including
2692 # INCLUDES, setting cache variable VAR accordingly.
2693 ac_fn_c_check_member ()
2695 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2697 $as_echo_n "checking for $2.$3... " >&6; }
2698 if eval \${$4+:} false; then :
2699 $as_echo_n "(cached) " >&6
2701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2702 /* end confdefs.h. */
2714 if ac_fn_c_try_compile "$LINENO"; then :
2717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2718 /* end confdefs.h. */
2724 if (sizeof ac_aggr.$3)
2730 if ac_fn_c_try_compile "$LINENO"; then :
2735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2741 $as_echo "$ac_res" >&6; }
2742 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2744 } # ac_fn_c_check_member
2746 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2747 # ---------------------------------------------
2748 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2750 ac_fn_c_check_decl ()
2752 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2753 as_decl_name=`echo $2|sed 's/ *(.*//'`
2754 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2756 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2757 if eval \${$3+:} false; then :
2758 $as_echo_n "(cached) " >&6
2760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2761 /* end confdefs.h. */
2766 #ifndef $as_decl_name
2768 (void) $as_decl_use;
2770 (void) $as_decl_name;
2778 if ac_fn_c_try_compile "$LINENO"; then :
2783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2787 $as_echo "$ac_res" >&6; }
2788 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2790 } # ac_fn_c_check_decl
2792 # ac_fn_cxx_try_run LINENO
2793 # ------------------------
2794 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2795 # that executables *can* be run.
2796 ac_fn_cxx_try_run ()
2798 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2799 if { { ac_try="$ac_link"
2801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2802 *) ac_try_echo=$ac_try;;
2804 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2805 $as_echo "$ac_try_echo"; } >&5
2806 (eval "$ac_link") 2>&5
2808 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2809 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2810 { { case "(($ac_try" in
2811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2812 *) ac_try_echo=$ac_try;;
2814 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2815 $as_echo "$ac_try_echo"; } >&5
2816 (eval "$ac_try") 2>&5
2818 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2819 test $ac_status = 0; }; }; then :
2822 $as_echo "$as_me: program exited with status $ac_status" >&5
2823 $as_echo "$as_me: failed program was:" >&5
2824 sed 's/^/| /' conftest.$ac_ext >&5
2826 ac_retval=$ac_status
2828 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2829 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2830 as_fn_set_status $ac_retval
2832 } # ac_fn_cxx_try_run
2833 cat >config.log <<_ACEOF
2834 This file contains any messages produced by compilers while
2835 running configure, to aid debugging if configure makes a mistake.
2837 It was created by $as_me, which was
2838 generated by GNU Autoconf 2.68. Invocation command line was
2850 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2851 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2852 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2853 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2854 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2856 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2857 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2859 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2860 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2861 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2862 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2863 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2864 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2865 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2873 test -z "$as_dir" && as_dir=.
2874 $as_echo "PATH: $as_dir"
2890 # Keep a trace of the command line.
2891 # Strip out --no-create and --no-recursion so they do not pile up.
2892 # Strip out --silent because we don't want to record it for future runs.
2893 # Also quote any args containing shell meta-characters.
2894 # Make two passes to allow for proper duplicate-argument suppression.
2898 ac_must_keep_next=false
2904 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2905 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2906 | -silent | --silent | --silen | --sile | --sil)
2909 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2912 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2914 as_fn_append ac_configure_args1 " '$ac_arg'"
2915 if test $ac_must_keep_next = true; then
2916 ac_must_keep_next=false # Got value, back to normal.
2919 *=* | --config-cache | -C | -disable-* | --disable-* \
2920 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2921 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2922 | -with-* | --with-* | -without-* | --without-* | --x)
2923 case "$ac_configure_args0 " in
2924 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2927 -* ) ac_must_keep_next=true ;;
2930 as_fn_append ac_configure_args " '$ac_arg'"
2935 { ac_configure_args0=; unset ac_configure_args0;}
2936 { ac_configure_args1=; unset ac_configure_args1;}
2938 # When interrupted or exit'd, cleanup temporary files, and complete
2939 # config.log. We remove comments because anyway the quotes in there
2940 # would cause problems or look ugly.
2941 # WARNING: Use '\'' to represent an apostrophe within the trap.
2942 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2943 trap 'exit_status=$?
2944 # Save into config.log some information that might help in debugging.
2948 $as_echo "## ---------------- ##
2949 ## Cache variables. ##
2950 ## ---------------- ##"
2952 # The following way of writing the cache mishandles newlines in values,
2954 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2955 eval ac_val=\$$ac_var
2959 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2960 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2963 _ | IFS | as_nl) ;; #(
2964 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2965 *) { eval $ac_var=; unset $ac_var;} ;;
2970 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2971 *${as_nl}ac_space=\ *)
2973 "s/'\''/'\''\\\\'\'''\''/g;
2974 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2977 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2984 $as_echo "## ----------------- ##
2985 ## Output variables. ##
2986 ## ----------------- ##"
2988 for ac_var in $ac_subst_vars
2990 eval ac_val=\$$ac_var
2992 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2994 $as_echo "$ac_var='\''$ac_val'\''"
2998 if test -n "$ac_subst_files"; then
2999 $as_echo "## ------------------- ##
3000 ## File substitutions. ##
3001 ## ------------------- ##"
3003 for ac_var in $ac_subst_files
3005 eval ac_val=\$$ac_var
3007 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3009 $as_echo "$ac_var='\''$ac_val'\''"
3014 if test -s confdefs.h; then
3015 $as_echo "## ----------- ##
3022 test "$ac_signal" != 0 &&
3023 $as_echo "$as_me: caught signal $ac_signal"
3024 $as_echo "$as_me: exit $exit_status"
3026 rm -f core *.core core.conftest.* &&
3027 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3030 for ac_signal in 1 2 13 15; do
3031 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3035 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3036 rm -f -r conftest* confdefs.h
3038 $as_echo "/* confdefs.h */" > confdefs.h
3040 # Predefined preprocessor variables.
3042 cat >>confdefs.h <<_ACEOF
3043 #define PACKAGE_NAME "$PACKAGE_NAME"
3046 cat >>confdefs.h <<_ACEOF
3047 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3050 cat >>confdefs.h <<_ACEOF
3051 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3054 cat >>confdefs.h <<_ACEOF
3055 #define PACKAGE_STRING "$PACKAGE_STRING"
3058 cat >>confdefs.h <<_ACEOF
3059 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3062 cat >>confdefs.h <<_ACEOF
3063 #define PACKAGE_URL "$PACKAGE_URL"
3067 # Let the site file select an alternate cache file if it wants to.
3068 # Prefer an explicitly selected file to automatically selected ones.
3071 if test -n "$CONFIG_SITE"; then
3072 # We do not want a PATH search for config.site.
3073 case $CONFIG_SITE in #((
3074 -*) ac_site_file1=./$CONFIG_SITE;;
3075 */*) ac_site_file1=$CONFIG_SITE;;
3076 *) ac_site_file1=./$CONFIG_SITE;;
3078 elif test "x$prefix" != xNONE; then
3079 ac_site_file1=$prefix/share/config.site
3080 ac_site_file2=$prefix/etc/config.site
3082 ac_site_file1=$ac_default_prefix/share/config.site
3083 ac_site_file2=$ac_default_prefix/etc/config.site
3085 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3087 test "x$ac_site_file" = xNONE && continue
3088 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3089 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3090 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3091 sed 's/^/| /' "$ac_site_file" >&5
3093 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3094 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3095 as_fn_error $? "failed to load site script $ac_site_file
3096 See \`config.log' for more details" "$LINENO" 5; }
3100 if test -r "$cache_file"; then
3101 # Some versions of bash will fail to source /dev/null (special files
3102 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3103 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3104 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3105 $as_echo "$as_me: loading cache $cache_file" >&6;}
3107 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3108 *) . "./$cache_file";;
3112 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3113 $as_echo "$as_me: creating cache $cache_file" >&6;}
3117 as_fn_append ac_header_list " stdlib.h"
3118 as_fn_append ac_header_list " unistd.h"
3119 as_fn_append ac_header_list " sys/param.h"
3120 # Check that the precious variables saved in the cache have kept the same
3122 ac_cache_corrupted=false
3123 for ac_var in $ac_precious_vars; do
3124 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3125 eval ac_new_set=\$ac_env_${ac_var}_set
3126 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3127 eval ac_new_val=\$ac_env_${ac_var}_value
3128 case $ac_old_set,$ac_new_set in
3130 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3131 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3132 ac_cache_corrupted=: ;;
3134 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3135 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3136 ac_cache_corrupted=: ;;
3139 if test "x$ac_old_val" != "x$ac_new_val"; then
3140 # differences in whitespace do not lead to failure.
3141 ac_old_val_w=`echo x $ac_old_val`
3142 ac_new_val_w=`echo x $ac_new_val`
3143 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3144 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3145 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3146 ac_cache_corrupted=:
3148 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3149 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3150 eval $ac_var=\$ac_old_val
3152 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3153 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3154 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3155 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3158 # Pass precious variables to config.status.
3159 if test "$ac_new_set" = set; then
3161 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3162 *) ac_arg=$ac_var=$ac_new_val ;;
3164 case " $ac_configure_args " in
3165 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3166 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3170 if $ac_cache_corrupted; then
3171 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3172 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3173 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3174 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3175 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3177 ## -------------------- ##
3178 ## Main body of script. ##
3179 ## -------------------- ##
3182 ac_cpp='$CPP $CPPFLAGS'
3183 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3184 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3185 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3195 for ac_dir in ${BUILD_DIR}/autoconf "$srcdir"/${BUILD_DIR}/autoconf; do
3196 if test -f "$ac_dir/install-sh"; then
3198 ac_install_sh="$ac_aux_dir/install-sh -c"
3200 elif test -f "$ac_dir/install.sh"; then
3202 ac_install_sh="$ac_aux_dir/install.sh -c"
3204 elif test -f "$ac_dir/shtool"; then
3206 ac_install_sh="$ac_aux_dir/shtool install -c"
3210 if test -z "$ac_aux_dir"; then
3211 as_fn_error $? "cannot find install-sh, install.sh, or shtool in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" "$LINENO" 5
3214 # These three variables are undocumented and unsupported,
3215 # and are intended to be withdrawn in a future Autoconf release.
3216 # They can cause serious problems if a builder's source tree is in a directory
3217 # whose full name contains unusual characters.
3218 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3219 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3220 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3223 ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
3226 WIN32BUILDDIR=${BUILD_DIR}/src/win32
3227 WIN32MAINDIR=${BUILD_DIR}
3228 WIN32TOPDIR=${TOP_DIR}
3235 # Extract the first word of "$ac_prog", so it can be a program name with args.
3236 set dummy $ac_prog; ac_word=$2
3237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3238 $as_echo_n "checking for $ac_word... " >&6; }
3239 if ${ac_cv_path_TRUEPRG+:} false; then :
3240 $as_echo_n "(cached) " >&6
3244 ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
3247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3251 test -z "$as_dir" && as_dir=.
3252 for ac_exec_ext in '' $ac_executable_extensions; do
3253 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3254 ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
3255 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3265 TRUEPRG=$ac_cv_path_TRUEPRG
3266 if test -n "$TRUEPRG"; then
3267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TRUEPRG" >&5
3268 $as_echo "$TRUEPRG" >&6; }
3270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3271 $as_echo "no" >&6; }
3275 test -n "$TRUEPRG" && break
3277 test -n "$TRUEPRG" || TRUEPRG=":"
3279 for ac_prog in false
3281 # Extract the first word of "$ac_prog", so it can be a program name with args.
3282 set dummy $ac_prog; ac_word=$2
3283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3284 $as_echo_n "checking for $ac_word... " >&6; }
3285 if ${ac_cv_path_FALSEPRG+:} false; then :
3286 $as_echo_n "(cached) " >&6
3290 ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
3293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3297 test -z "$as_dir" && as_dir=.
3298 for ac_exec_ext in '' $ac_executable_extensions; do
3299 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3300 ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
3301 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3311 FALSEPRG=$ac_cv_path_FALSEPRG
3312 if test -n "$FALSEPRG"; then
3313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FALSEPRG" >&5
3314 $as_echo "$FALSEPRG" >&6; }
3316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3317 $as_echo "no" >&6; }
3321 test -n "$FALSEPRG" && break
3323 test -n "$FALSEPRG" || FALSEPRG=":"
3328 if test "x$BACULA" != x; then
3329 post_host=`echo -${BACULA} | tr 'A-Z ' 'a-z-'`
3331 BACULA=${BACULA:-Bacula}
3332 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3333 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3334 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3335 BDB_VERSION=`sed -n -e 's/^.*BDB_VERSION \(.*\)$/\1/p' ${srcdir}/src/cats/cats.h`
3337 LIBBAC_LT_RELEASE=`sed -n -e 's/^#.*LIBBAC_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3338 LIBBACCFG_LT_RELEASE=`sed -n -e 's/^#.*LIBBACCFG_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3339 LIBBACPY_LT_RELEASE=`sed -n -e 's/^#.*LIBBACPY_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3341 LIBBAC_LT_RELEASE=${LIBBAC_LT_RELEASE:-$VERSION}
3342 LIBBACCFG_LT_RELEASE=${LIBBACCFG_LT_RELEASE:-$VERSION}
3343 LIBBACPY_LT_RELEASE=${LIBBACPY_LT_RELEASE:-$VERSION}
3346 LIBBACSQL_LT_RELEASE=`sed -n -e 's/^#.*LIBBACSQL_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3347 LIBBACCATS_LT_RELEASE=`sed -n -e 's/^#.*LIBBACCATS_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3349 LIBBACSQL_LT_RELEASE=${LIBBACSQL_LT_RELEASE:-$VERSION}
3350 LIBBACCATS_LT_RELEASE=${LIBBACCATS_LT_RELEASE:-$VERSION}
3353 LIBBACFIND_LT_RELEASE=`sed -n -e 's/^#.*LIBBACFIND_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3355 LIBBACFIND_LT_RELEASE=${LIBBACFIND_LT_RELEASE:-$VERSION}
3358 echo "configuring for ${BACULA} $VERSION ($DATE)"
3363 ac_cpp='$CPP $CPPFLAGS'
3364 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3365 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3366 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3367 if test -n "$ac_tool_prefix"; then
3368 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3369 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3371 $as_echo_n "checking for $ac_word... " >&6; }
3372 if ${ac_cv_prog_CC+:} false; then :
3373 $as_echo_n "(cached) " >&6
3375 if test -n "$CC"; then
3376 ac_cv_prog_CC="$CC" # Let the user override the test.
3378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3382 test -z "$as_dir" && as_dir=.
3383 for ac_exec_ext in '' $ac_executable_extensions; do
3384 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3385 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3386 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3396 if test -n "$CC"; then
3397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3398 $as_echo "$CC" >&6; }
3400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3401 $as_echo "no" >&6; }
3406 if test -z "$ac_cv_prog_CC"; then
3408 # Extract the first word of "gcc", so it can be a program name with args.
3409 set dummy gcc; ac_word=$2
3410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3411 $as_echo_n "checking for $ac_word... " >&6; }
3412 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3413 $as_echo_n "(cached) " >&6
3415 if test -n "$ac_ct_CC"; then
3416 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3422 test -z "$as_dir" && as_dir=.
3423 for ac_exec_ext in '' $ac_executable_extensions; do
3424 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3425 ac_cv_prog_ac_ct_CC="gcc"
3426 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3435 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3436 if test -n "$ac_ct_CC"; then
3437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3438 $as_echo "$ac_ct_CC" >&6; }
3440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3441 $as_echo "no" >&6; }
3444 if test "x$ac_ct_CC" = x; then
3447 case $cross_compiling:$ac_tool_warned in
3449 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3450 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3451 ac_tool_warned=yes ;;
3459 if test -z "$CC"; then
3460 if test -n "$ac_tool_prefix"; then
3461 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3462 set dummy ${ac_tool_prefix}cc; ac_word=$2
3463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3464 $as_echo_n "checking for $ac_word... " >&6; }
3465 if ${ac_cv_prog_CC+:} false; then :
3466 $as_echo_n "(cached) " >&6
3468 if test -n "$CC"; then
3469 ac_cv_prog_CC="$CC" # Let the user override the test.
3471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3475 test -z "$as_dir" && as_dir=.
3476 for ac_exec_ext in '' $ac_executable_extensions; do
3477 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3478 ac_cv_prog_CC="${ac_tool_prefix}cc"
3479 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3489 if test -n "$CC"; then
3490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3491 $as_echo "$CC" >&6; }
3493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3494 $as_echo "no" >&6; }
3500 if test -z "$CC"; then
3501 # Extract the first word of "cc", so it can be a program name with args.
3502 set dummy cc; ac_word=$2
3503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3504 $as_echo_n "checking for $ac_word... " >&6; }
3505 if ${ac_cv_prog_CC+:} false; then :
3506 $as_echo_n "(cached) " >&6
3508 if test -n "$CC"; then
3509 ac_cv_prog_CC="$CC" # Let the user override the test.
3512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3516 test -z "$as_dir" && as_dir=.
3517 for ac_exec_ext in '' $ac_executable_extensions; do
3518 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3519 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3520 ac_prog_rejected=yes
3524 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3531 if test $ac_prog_rejected = yes; then
3532 # We found a bogon in the path, so make sure we never use it.
3533 set dummy $ac_cv_prog_CC
3535 if test $# != 0; then
3536 # We chose a different compiler from the bogus one.
3537 # However, it has the same basename, so the bogon will be chosen
3538 # first if we set CC to just the basename; use the full file name.
3540 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3546 if test -n "$CC"; then
3547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3548 $as_echo "$CC" >&6; }
3550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3551 $as_echo "no" >&6; }
3556 if test -z "$CC"; then
3557 if test -n "$ac_tool_prefix"; then
3558 for ac_prog in cl.exe
3560 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3561 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3563 $as_echo_n "checking for $ac_word... " >&6; }
3564 if ${ac_cv_prog_CC+:} false; then :
3565 $as_echo_n "(cached) " >&6
3567 if test -n "$CC"; then
3568 ac_cv_prog_CC="$CC" # Let the user override the test.
3570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3574 test -z "$as_dir" && as_dir=.
3575 for ac_exec_ext in '' $ac_executable_extensions; do
3576 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3577 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3578 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3588 if test -n "$CC"; then
3589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3590 $as_echo "$CC" >&6; }
3592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3593 $as_echo "no" >&6; }
3597 test -n "$CC" && break
3600 if test -z "$CC"; then
3602 for ac_prog in cl.exe
3604 # Extract the first word of "$ac_prog", so it can be a program name with args.
3605 set dummy $ac_prog; ac_word=$2
3606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3607 $as_echo_n "checking for $ac_word... " >&6; }
3608 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3609 $as_echo_n "(cached) " >&6
3611 if test -n "$ac_ct_CC"; then
3612 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3618 test -z "$as_dir" && as_dir=.
3619 for ac_exec_ext in '' $ac_executable_extensions; do
3620 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3621 ac_cv_prog_ac_ct_CC="$ac_prog"
3622 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3631 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3632 if test -n "$ac_ct_CC"; then
3633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3634 $as_echo "$ac_ct_CC" >&6; }
3636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3637 $as_echo "no" >&6; }
3641 test -n "$ac_ct_CC" && break
3644 if test "x$ac_ct_CC" = x; then
3647 case $cross_compiling:$ac_tool_warned in
3649 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3650 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3651 ac_tool_warned=yes ;;
3660 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3661 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3662 as_fn_error $? "no acceptable C compiler found in \$PATH
3663 See \`config.log' for more details" "$LINENO" 5; }
3665 # Provide some information about the compiler.
3666 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3669 for ac_option in --version -v -V -qversion; do
3670 { { ac_try="$ac_compiler $ac_option >&5"
3672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3673 *) ac_try_echo=$ac_try;;
3675 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3676 $as_echo "$ac_try_echo"; } >&5
3677 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3679 if test -s conftest.err; then
3681 ... rest of stderr output deleted ...
3682 10q' conftest.err >conftest.er1
3683 cat conftest.er1 >&5
3685 rm -f conftest.er1 conftest.err
3686 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3687 test $ac_status = 0; }
3690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3691 /* end confdefs.h. */
3701 ac_clean_files_save=$ac_clean_files
3702 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3703 # Try to create an executable without -o first, disregard a.out.
3704 # It will help us diagnose broken compilers, and finding out an intuition
3706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3707 $as_echo_n "checking whether the C compiler works... " >&6; }
3708 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3710 # The possible output files:
3711 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3714 for ac_file in $ac_files
3717 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3718 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3723 if { { ac_try="$ac_link_default"
3725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3726 *) ac_try_echo=$ac_try;;
3728 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3729 $as_echo "$ac_try_echo"; } >&5
3730 (eval "$ac_link_default") 2>&5
3732 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3733 test $ac_status = 0; }; then :
3734 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3735 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3736 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3737 # so that the user can short-circuit this test for compilers unknown to
3739 for ac_file in $ac_files ''
3741 test -f "$ac_file" || continue
3743 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3746 # We found the default executable, but exeext='' is most
3750 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3752 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3754 # We set ac_cv_exeext here because the later test for it is not
3755 # safe: cross compilers may not add the suffix if given an `-o'
3756 # argument, so we may need to know it at that point already.
3757 # Even if this section looks crufty: it has the advantage of
3764 test "$ac_cv_exeext" = no && ac_cv_exeext=
3769 if test -z "$ac_file"; then :
3770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3771 $as_echo "no" >&6; }
3772 $as_echo "$as_me: failed program was:" >&5
3773 sed 's/^/| /' conftest.$ac_ext >&5
3775 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3776 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3777 as_fn_error 77 "C compiler cannot create executables
3778 See \`config.log' for more details" "$LINENO" 5; }
3780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3781 $as_echo "yes" >&6; }
3783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3784 $as_echo_n "checking for C compiler default output file name... " >&6; }
3785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3786 $as_echo "$ac_file" >&6; }
3787 ac_exeext=$ac_cv_exeext
3789 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3790 ac_clean_files=$ac_clean_files_save
3791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3792 $as_echo_n "checking for suffix of executables... " >&6; }
3793 if { { ac_try="$ac_link"
3795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3796 *) ac_try_echo=$ac_try;;
3798 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3799 $as_echo "$ac_try_echo"; } >&5
3800 (eval "$ac_link") 2>&5
3802 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3803 test $ac_status = 0; }; then :
3804 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3805 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3806 # work properly (i.e., refer to `conftest.exe'), while it won't with
3808 for ac_file in conftest.exe conftest conftest.*; do
3809 test -f "$ac_file" || continue
3811 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3812 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3818 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3819 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3820 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3821 See \`config.log' for more details" "$LINENO" 5; }
3823 rm -f conftest conftest$ac_cv_exeext
3824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3825 $as_echo "$ac_cv_exeext" >&6; }
3827 rm -f conftest.$ac_ext
3828 EXEEXT=$ac_cv_exeext
3830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3831 /* end confdefs.h. */
3836 FILE *f = fopen ("conftest.out", "w");
3837 return ferror (f) || fclose (f) != 0;
3843 ac_clean_files="$ac_clean_files conftest.out"
3844 # Check that the compiler produces executables we can run. If not, either
3845 # the compiler is broken, or we cross compile.
3846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3847 $as_echo_n "checking whether we are cross compiling... " >&6; }
3848 if test "$cross_compiling" != yes; then
3849 { { ac_try="$ac_link"
3851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3852 *) ac_try_echo=$ac_try;;
3854 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3855 $as_echo "$ac_try_echo"; } >&5
3856 (eval "$ac_link") 2>&5
3858 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3859 test $ac_status = 0; }
3860 if { ac_try='./conftest$ac_cv_exeext'
3861 { { case "(($ac_try" in
3862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3863 *) ac_try_echo=$ac_try;;
3865 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3866 $as_echo "$ac_try_echo"; } >&5
3867 (eval "$ac_try") 2>&5
3869 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3870 test $ac_status = 0; }; }; then
3873 if test "$cross_compiling" = maybe; then
3876 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3877 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3878 as_fn_error $? "cannot run C compiled programs.
3879 If you meant to cross compile, use \`--host'.
3880 See \`config.log' for more details" "$LINENO" 5; }
3884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3885 $as_echo "$cross_compiling" >&6; }
3887 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3888 ac_clean_files=$ac_clean_files_save
3889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3890 $as_echo_n "checking for suffix of object files... " >&6; }
3891 if ${ac_cv_objext+:} false; then :
3892 $as_echo_n "(cached) " >&6
3894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3895 /* end confdefs.h. */
3905 rm -f conftest.o conftest.obj
3906 if { { ac_try="$ac_compile"
3908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3909 *) ac_try_echo=$ac_try;;
3911 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3912 $as_echo "$ac_try_echo"; } >&5
3913 (eval "$ac_compile") 2>&5
3915 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3916 test $ac_status = 0; }; then :
3917 for ac_file in conftest.o conftest.obj conftest.*; do
3918 test -f "$ac_file" || continue;
3920 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3921 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3926 $as_echo "$as_me: failed program was:" >&5
3927 sed 's/^/| /' conftest.$ac_ext >&5
3929 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3930 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3931 as_fn_error $? "cannot compute suffix of object files: cannot compile
3932 See \`config.log' for more details" "$LINENO" 5; }
3934 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3937 $as_echo "$ac_cv_objext" >&6; }
3938 OBJEXT=$ac_cv_objext
3940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3941 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3942 if ${ac_cv_c_compiler_gnu+:} false; then :
3943 $as_echo_n "(cached) " >&6
3945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3946 /* end confdefs.h. */
3959 if ac_fn_c_try_compile "$LINENO"; then :
3964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3965 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3969 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3970 if test $ac_compiler_gnu = yes; then
3975 ac_test_CFLAGS=${CFLAGS+set}
3976 ac_save_CFLAGS=$CFLAGS
3977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3978 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3979 if ${ac_cv_prog_cc_g+:} false; then :
3980 $as_echo_n "(cached) " >&6
3982 ac_save_c_werror_flag=$ac_c_werror_flag
3983 ac_c_werror_flag=yes
3986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3987 /* end confdefs.h. */
3997 if ac_fn_c_try_compile "$LINENO"; then :
4001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4002 /* end confdefs.h. */
4012 if ac_fn_c_try_compile "$LINENO"; then :
4015 ac_c_werror_flag=$ac_save_c_werror_flag
4017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4018 /* end confdefs.h. */
4028 if ac_fn_c_try_compile "$LINENO"; then :
4031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4036 ac_c_werror_flag=$ac_save_c_werror_flag
4038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4039 $as_echo "$ac_cv_prog_cc_g" >&6; }
4040 if test "$ac_test_CFLAGS" = set; then
4041 CFLAGS=$ac_save_CFLAGS
4042 elif test $ac_cv_prog_cc_g = yes; then
4043 if test "$GCC" = yes; then
4049 if test "$GCC" = yes; then
4055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4056 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4057 if ${ac_cv_prog_cc_c89+:} false; then :
4058 $as_echo_n "(cached) " >&6
4060 ac_cv_prog_cc_c89=no
4062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4063 /* end confdefs.h. */
4066 #include <sys/types.h>
4067 #include <sys/stat.h>
4068 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4069 struct buf { int x; };
4070 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4071 static char *e (p, i)
4077 static char *f (char * (*g) (char **, int), char **p, ...)
4082 s = g (p, va_arg (v,int));
4087 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4088 function prototypes and stuff, but not '\xHH' hex character constants.
4089 These don't provoke an error unfortunately, instead are silently treated
4090 as 'x'. The following induces an error, until -std is added to get
4091 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4092 array size at least. It's necessary to write '\x00'==0 to get something
4093 that's true only with -std. */
4094 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4096 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4097 inside strings and character constants. */
4099 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4101 int test (int i, double x);
4102 struct s1 {int (*f) (int a);};
4103 struct s2 {int (*f) (double a);};
4104 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4110 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4115 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4116 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4118 CC="$ac_save_CC $ac_arg"
4119 if ac_fn_c_try_compile "$LINENO"; then :
4120 ac_cv_prog_cc_c89=$ac_arg
4122 rm -f core conftest.err conftest.$ac_objext
4123 test "x$ac_cv_prog_cc_c89" != "xno" && break
4125 rm -f conftest.$ac_ext
4130 case "x$ac_cv_prog_cc_c89" in
4132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4133 $as_echo "none needed" >&6; } ;;
4135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4136 $as_echo "unsupported" >&6; } ;;
4138 CC="$CC $ac_cv_prog_cc_c89"
4139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4140 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4142 if test "x$ac_cv_prog_cc_c89" != xno; then :
4147 ac_cpp='$CPP $CPPFLAGS'
4148 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4149 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4150 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4153 ac_cpp='$CXXCPP $CPPFLAGS'
4154 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4155 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4156 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4157 if test -z "$CXX"; then
4158 if test -n "$CCC"; then
4161 if test -n "$ac_tool_prefix"; then
4162 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4164 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4165 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4167 $as_echo_n "checking for $ac_word... " >&6; }
4168 if ${ac_cv_prog_CXX+:} false; then :
4169 $as_echo_n "(cached) " >&6
4171 if test -n "$CXX"; then
4172 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4178 test -z "$as_dir" && as_dir=.
4179 for ac_exec_ext in '' $ac_executable_extensions; do
4180 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4181 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4182 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4192 if test -n "$CXX"; then
4193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4194 $as_echo "$CXX" >&6; }
4196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4197 $as_echo "no" >&6; }
4201 test -n "$CXX" && break
4204 if test -z "$CXX"; then
4206 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4208 # Extract the first word of "$ac_prog", so it can be a program name with args.
4209 set dummy $ac_prog; ac_word=$2
4210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4211 $as_echo_n "checking for $ac_word... " >&6; }
4212 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4213 $as_echo_n "(cached) " >&6
4215 if test -n "$ac_ct_CXX"; then
4216 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4222 test -z "$as_dir" && as_dir=.
4223 for ac_exec_ext in '' $ac_executable_extensions; do
4224 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4225 ac_cv_prog_ac_ct_CXX="$ac_prog"
4226 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4235 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4236 if test -n "$ac_ct_CXX"; then
4237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4238 $as_echo "$ac_ct_CXX" >&6; }
4240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4241 $as_echo "no" >&6; }
4245 test -n "$ac_ct_CXX" && break
4248 if test "x$ac_ct_CXX" = x; then
4251 case $cross_compiling:$ac_tool_warned in
4253 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4254 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4255 ac_tool_warned=yes ;;
4263 # Provide some information about the compiler.
4264 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4267 for ac_option in --version -v -V -qversion; do
4268 { { ac_try="$ac_compiler $ac_option >&5"
4270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4271 *) ac_try_echo=$ac_try;;
4273 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4274 $as_echo "$ac_try_echo"; } >&5
4275 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4277 if test -s conftest.err; then
4279 ... rest of stderr output deleted ...
4280 10q' conftest.err >conftest.er1
4281 cat conftest.er1 >&5
4283 rm -f conftest.er1 conftest.err
4284 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4285 test $ac_status = 0; }
4288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4289 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4290 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4291 $as_echo_n "(cached) " >&6
4293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4294 /* end confdefs.h. */
4307 if ac_fn_cxx_try_compile "$LINENO"; then :
4312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4313 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4317 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4318 if test $ac_compiler_gnu = yes; then
4323 ac_test_CXXFLAGS=${CXXFLAGS+set}
4324 ac_save_CXXFLAGS=$CXXFLAGS
4325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4326 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4327 if ${ac_cv_prog_cxx_g+:} false; then :
4328 $as_echo_n "(cached) " >&6
4330 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4331 ac_cxx_werror_flag=yes
4334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4335 /* end confdefs.h. */
4345 if ac_fn_cxx_try_compile "$LINENO"; then :
4346 ac_cv_prog_cxx_g=yes
4349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4350 /* end confdefs.h. */
4360 if ac_fn_cxx_try_compile "$LINENO"; then :
4363 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4366 /* end confdefs.h. */
4376 if ac_fn_cxx_try_compile "$LINENO"; then :
4377 ac_cv_prog_cxx_g=yes
4379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4384 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4387 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4388 if test "$ac_test_CXXFLAGS" = set; then
4389 CXXFLAGS=$ac_save_CXXFLAGS
4390 elif test $ac_cv_prog_cxx_g = yes; then
4391 if test "$GXX" = yes; then
4397 if test "$GXX" = yes; then
4404 ac_cpp='$CPP $CPPFLAGS'
4405 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4406 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4407 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4409 if test "x$CC" != xcc; then
4410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4411 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4414 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4416 set dummy $CC; ac_cc=`$as_echo "$2" |
4417 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4418 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
4419 $as_echo_n "(cached) " >&6
4421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4422 /* end confdefs.h. */
4432 # Make sure it works both with $CC and with simple cc.
4433 # We do the test twice because some compilers refuse to overwrite an
4434 # existing .o file with -o, though they will create one.
4435 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4437 if { { case "(($ac_try" in
4438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4439 *) ac_try_echo=$ac_try;;
4441 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4442 $as_echo "$ac_try_echo"; } >&5
4443 (eval "$ac_try") 2>&5
4445 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4446 test $ac_status = 0; } &&
4447 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4449 *) ac_try_echo=$ac_try;;
4451 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4452 $as_echo "$ac_try_echo"; } >&5
4453 (eval "$ac_try") 2>&5
4455 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4456 test $ac_status = 0; };
4458 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4459 if test "x$CC" != xcc; then
4460 # Test first that cc exists at all.
4461 if { ac_try='cc -c conftest.$ac_ext >&5'
4462 { { case "(($ac_try" in
4463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4464 *) ac_try_echo=$ac_try;;
4466 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4467 $as_echo "$ac_try_echo"; } >&5
4468 (eval "$ac_try") 2>&5
4470 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4471 test $ac_status = 0; }; }; then
4472 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4474 if { { case "(($ac_try" in
4475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4476 *) ac_try_echo=$ac_try;;
4478 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4479 $as_echo "$ac_try_echo"; } >&5
4480 (eval "$ac_try") 2>&5
4482 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4483 test $ac_status = 0; } &&
4484 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4486 *) ac_try_echo=$ac_try;;
4488 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4489 $as_echo "$ac_try_echo"; } >&5
4490 (eval "$ac_try") 2>&5
4492 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4493 test $ac_status = 0; };
4498 # cc exists but doesn't like -o.
4499 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4504 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4506 rm -f core conftest*
4509 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4511 $as_echo "yes" >&6; }
4513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4514 $as_echo "no" >&6; }
4516 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4521 ac_cpp='$CPP $CPPFLAGS'
4522 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4523 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4524 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4526 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4527 # On Suns, sometimes $CPP names a directory.
4528 if test -n "$CPP" && test -d "$CPP"; then
4531 if test -z "$CPP"; then
4532 if ${ac_cv_prog_CPP+:} false; then :
4533 $as_echo_n "(cached) " >&6
4535 # Double quotes because CPP needs to be expanded
4536 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4539 for ac_c_preproc_warn_flag in '' yes
4541 # Use a header file that comes with gcc, so configuring glibc
4542 # with a fresh cross-compiler works.
4543 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4544 # <limits.h> exists even on freestanding compilers.
4545 # On the NeXT, cc -E runs the code through the compiler's parser,
4546 # not just through cpp. "Syntax error" is here to catch this case.
4547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4548 /* end confdefs.h. */
4550 # include <limits.h>
4552 # include <assert.h>
4556 if ac_fn_c_try_cpp "$LINENO"; then :
4559 # Broken: fails on valid input.
4562 rm -f conftest.err conftest.i conftest.$ac_ext
4564 # OK, works on sane cases. Now check whether nonexistent headers
4565 # can be detected and how.
4566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4567 /* end confdefs.h. */
4568 #include <ac_nonexistent.h>
4570 if ac_fn_c_try_cpp "$LINENO"; then :
4571 # Broken: success on invalid input.
4574 # Passes both tests.
4578 rm -f conftest.err conftest.i conftest.$ac_ext
4581 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4582 rm -f conftest.i conftest.err conftest.$ac_ext
4583 if $ac_preproc_ok; then :
4595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4596 $as_echo "$CPP" >&6; }
4598 for ac_c_preproc_warn_flag in '' yes
4600 # Use a header file that comes with gcc, so configuring glibc
4601 # with a fresh cross-compiler works.
4602 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4603 # <limits.h> exists even on freestanding compilers.
4604 # On the NeXT, cc -E runs the code through the compiler's parser,
4605 # not just through cpp. "Syntax error" is here to catch this case.
4606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4607 /* end confdefs.h. */
4609 # include <limits.h>
4611 # include <assert.h>
4615 if ac_fn_c_try_cpp "$LINENO"; then :
4618 # Broken: fails on valid input.
4621 rm -f conftest.err conftest.i conftest.$ac_ext
4623 # OK, works on sane cases. Now check whether nonexistent headers
4624 # can be detected and how.
4625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4626 /* end confdefs.h. */
4627 #include <ac_nonexistent.h>
4629 if ac_fn_c_try_cpp "$LINENO"; then :
4630 # Broken: success on invalid input.
4633 # Passes both tests.
4637 rm -f conftest.err conftest.i conftest.$ac_ext
4640 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4641 rm -f conftest.i conftest.err conftest.$ac_ext
4642 if $ac_preproc_ok; then :
4645 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4646 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4647 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4648 See \`config.log' for more details" "$LINENO" 5; }
4652 ac_cpp='$CPP $CPPFLAGS'
4653 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4654 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4655 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4659 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4660 if ${ac_cv_path_GREP+:} false; then :
4661 $as_echo_n "(cached) " >&6
4663 if test -z "$GREP"; then
4664 ac_path_GREP_found=false
4665 # Loop through the user's path and test for each of PROGNAME-LIST
4666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4667 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4670 test -z "$as_dir" && as_dir=.
4671 for ac_prog in grep ggrep; do
4672 for ac_exec_ext in '' $ac_executable_extensions; do
4673 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4674 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4675 # Check for GNU ac_path_GREP and select it if it is found.
4676 # Check for GNU $ac_path_GREP
4677 case `"$ac_path_GREP" --version 2>&1` in
4679 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4682 $as_echo_n 0123456789 >"conftest.in"
4685 cat "conftest.in" "conftest.in" >"conftest.tmp"
4686 mv "conftest.tmp" "conftest.in"
4687 cp "conftest.in" "conftest.nl"
4688 $as_echo 'GREP' >> "conftest.nl"
4689 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4690 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4691 as_fn_arith $ac_count + 1 && ac_count=$as_val
4692 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4693 # Best one so far, save it but keep looking for a better one
4694 ac_cv_path_GREP="$ac_path_GREP"
4695 ac_path_GREP_max=$ac_count
4697 # 10*(2^10) chars as input seems more than enough
4698 test $ac_count -gt 10 && break
4700 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4703 $ac_path_GREP_found && break 3
4708 if test -z "$ac_cv_path_GREP"; then
4709 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4712 ac_cv_path_GREP=$GREP
4716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4717 $as_echo "$ac_cv_path_GREP" >&6; }
4718 GREP="$ac_cv_path_GREP"
4721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4722 $as_echo_n "checking for egrep... " >&6; }
4723 if ${ac_cv_path_EGREP+:} false; then :
4724 $as_echo_n "(cached) " >&6
4726 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4727 then ac_cv_path_EGREP="$GREP -E"
4729 if test -z "$EGREP"; then
4730 ac_path_EGREP_found=false
4731 # Loop through the user's path and test for each of PROGNAME-LIST
4732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4733 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4736 test -z "$as_dir" && as_dir=.
4737 for ac_prog in egrep; do
4738 for ac_exec_ext in '' $ac_executable_extensions; do
4739 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4740 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4741 # Check for GNU ac_path_EGREP and select it if it is found.
4742 # Check for GNU $ac_path_EGREP
4743 case `"$ac_path_EGREP" --version 2>&1` in
4745 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4748 $as_echo_n 0123456789 >"conftest.in"
4751 cat "conftest.in" "conftest.in" >"conftest.tmp"
4752 mv "conftest.tmp" "conftest.in"
4753 cp "conftest.in" "conftest.nl"
4754 $as_echo 'EGREP' >> "conftest.nl"
4755 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4756 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4757 as_fn_arith $ac_count + 1 && ac_count=$as_val
4758 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4759 # Best one so far, save it but keep looking for a better one
4760 ac_cv_path_EGREP="$ac_path_EGREP"
4761 ac_path_EGREP_max=$ac_count
4763 # 10*(2^10) chars as input seems more than enough
4764 test $ac_count -gt 10 && break
4766 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4769 $ac_path_EGREP_found && break 3
4774 if test -z "$ac_cv_path_EGREP"; then
4775 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4778 ac_cv_path_EGREP=$EGREP
4783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4784 $as_echo "$ac_cv_path_EGREP" >&6; }
4785 EGREP="$ac_cv_path_EGREP"
4788 if test $ac_cv_c_compiler_gnu = yes; then
4789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
4790 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
4791 if ${ac_cv_prog_gcc_traditional+:} false; then :
4792 $as_echo_n "(cached) " >&6
4794 ac_pattern="Autoconf.*'x'"
4795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4796 /* end confdefs.h. */
4800 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4801 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4802 ac_cv_prog_gcc_traditional=yes
4804 ac_cv_prog_gcc_traditional=no
4809 if test $ac_cv_prog_gcc_traditional = no; then
4810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4811 /* end confdefs.h. */
4815 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4816 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4817 ac_cv_prog_gcc_traditional=yes
4823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
4824 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
4825 if test $ac_cv_prog_gcc_traditional = yes; then
4826 CC="$CC -traditional"
4830 BASECC=`basename $CC`
4832 if test "x$BASECC" = xgcc; then
4833 $as_echo "#define HAVE_GCC 1" >>confdefs.h
4837 # Extract the first word of "$CXX", so it can be a program name with args.
4838 set dummy $CXX; ac_word=$2
4839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4840 $as_echo_n "checking for $ac_word... " >&6; }
4841 if ${ac_cv_path_CXX+:} false; then :
4842 $as_echo_n "(cached) " >&6
4846 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
4849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4853 test -z "$as_dir" && as_dir=.
4854 for ac_exec_ext in '' $ac_executable_extensions; do
4855 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4856 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
4857 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4864 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="$CXX"
4869 if test -n "$CXX"; then
4870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4871 $as_echo "$CXX" >&6; }
4873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4874 $as_echo "no" >&6; }
4878 if test ! -e $CXX; then
4879 as_fn_error $? "Unable to find C++ compiler" "$LINENO" 5
4882 # Find a good install program. We prefer a C program (faster),
4883 # so one script is as good as another. But avoid the broken or
4884 # incompatible versions:
4885 # SysV /etc/install, /usr/sbin/install
4886 # SunOS /usr/etc/install
4887 # IRIX /sbin/install
4889 # AmigaOS /C/install, which installs bootblocks on floppy discs
4890 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4891 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4892 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4893 # OS/2's system install, which has a completely different semantic
4894 # ./install, which can be erroneously created by make from ./install.sh.
4895 # Reject install programs that cannot install multiple files.
4896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4897 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4898 if test -z "$INSTALL"; then
4899 if ${ac_cv_path_install+:} false; then :
4900 $as_echo_n "(cached) " >&6
4902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4906 test -z "$as_dir" && as_dir=.
4907 # Account for people who put trailing slashes in PATH elements.
4908 case $as_dir/ in #((
4909 ./ | .// | /[cC]/* | \
4910 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4911 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4914 # OSF1 and SCO ODT 3.0 have their own names for install.
4915 # Don't use installbsd from OSF since it installs stuff as root
4917 for ac_prog in ginstall scoinst install; do
4918 for ac_exec_ext in '' $ac_executable_extensions; do
4919 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4920 if test $ac_prog = install &&
4921 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4922 # AIX install. It has an incompatible calling convention.
4924 elif test $ac_prog = install &&
4925 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4926 # program-specific install script used by HP pwplus--don't use.
4929 rm -rf conftest.one conftest.two conftest.dir
4930 echo one > conftest.one
4931 echo two > conftest.two
4933 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4934 test -s conftest.one && test -s conftest.two &&
4935 test -s conftest.dir/conftest.one &&
4936 test -s conftest.dir/conftest.two
4938 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4951 rm -rf conftest.one conftest.two conftest.dir
4954 if test "${ac_cv_path_install+set}" = set; then
4955 INSTALL=$ac_cv_path_install
4957 # As a last resort, use the slow shell script. Don't cache a
4958 # value for INSTALL within a source directory, because that will
4959 # break other packages using the cache if that directory is
4960 # removed, or if the value is a relative name.
4961 INSTALL=$ac_install_sh
4964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4965 $as_echo "$INSTALL" >&6; }
4967 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4968 # It thinks the first close brace ends the variable substitution.
4969 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4971 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4973 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4975 # Extract the first word of "mv", so it can be a program name with args.
4976 set dummy mv; ac_word=$2
4977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4978 $as_echo_n "checking for $ac_word... " >&6; }
4979 if ${ac_cv_path_MV+:} false; then :
4980 $as_echo_n "(cached) " >&6
4984 ac_cv_path_MV="$MV" # Let the user override the test with a path.
4987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4991 test -z "$as_dir" && as_dir=.
4992 for ac_exec_ext in '' $ac_executable_extensions; do
4993 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4994 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4995 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5002 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
5007 if test -n "$MV"; then
5008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
5009 $as_echo "$MV" >&6; }
5011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5012 $as_echo "no" >&6; }
5016 # Extract the first word of "rm", so it can be a program name with args.
5017 set dummy rm; ac_word=$2
5018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5019 $as_echo_n "checking for $ac_word... " >&6; }
5020 if ${ac_cv_path_REMOVE+:} false; then :
5021 $as_echo_n "(cached) " >&6
5025 ac_cv_path_REMOVE="$REMOVE" # Let the user override the test with a path.
5028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5032 test -z "$as_dir" && as_dir=.
5033 for ac_exec_ext in '' $ac_executable_extensions; do
5034 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5035 ac_cv_path_REMOVE="$as_dir/$ac_word$ac_exec_ext"
5036 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5043 test -z "$ac_cv_path_REMOVE" && ac_cv_path_REMOVE="rm"
5047 REMOVE=$ac_cv_path_REMOVE
5048 if test -n "$REMOVE"; then
5049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $REMOVE" >&5
5050 $as_echo "$REMOVE" >&6; }
5052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5053 $as_echo "no" >&6; }
5057 # Extract the first word of "cp", so it can be a program name with args.
5058 set dummy cp; ac_word=$2
5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5060 $as_echo_n "checking for $ac_word... " >&6; }
5061 if ${ac_cv_path_CP+:} false; then :
5062 $as_echo_n "(cached) " >&6
5066 ac_cv_path_CP="$CP" # Let the user override the test with a path.
5069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5073 test -z "$as_dir" && as_dir=.
5074 for ac_exec_ext in '' $ac_executable_extensions; do
5075 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5076 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5077 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5084 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5089 if test -n "$CP"; then
5090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
5091 $as_echo "$CP" >&6; }
5093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5094 $as_echo "no" >&6; }
5098 # Extract the first word of "sed", so it can be a program name with args.
5099 set dummy sed; ac_word=$2
5100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5101 $as_echo_n "checking for $ac_word... " >&6; }
5102 if ${ac_cv_path_SED+:} false; then :
5103 $as_echo_n "(cached) " >&6
5107 ac_cv_path_SED="$SED" # Let the user override the test with a path.
5110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5114 test -z "$as_dir" && as_dir=.
5115 for ac_exec_ext in '' $ac_executable_extensions; do
5116 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5117 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
5118 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5125 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
5130 if test -n "$SED"; then
5131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
5132 $as_echo "$SED" >&6; }
5134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5135 $as_echo "no" >&6; }
5139 # Extract the first word of "echo", so it can be a program name with args.
5140 set dummy echo; ac_word=$2
5141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5142 $as_echo_n "checking for $ac_word... " >&6; }
5143 if ${ac_cv_path_ECHO+:} false; then :
5144 $as_echo_n "(cached) " >&6
5148 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
5151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5155 test -z "$as_dir" && as_dir=.
5156 for ac_exec_ext in '' $ac_executable_extensions; do
5157 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5158 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
5159 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5166 test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
5170 ECHO=$ac_cv_path_ECHO
5171 if test -n "$ECHO"; then
5172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
5173 $as_echo "$ECHO" >&6; }
5175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5176 $as_echo "no" >&6; }
5180 # Extract the first word of "cmp", so it can be a program name with args.
5181 set dummy cmp; ac_word=$2
5182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5183 $as_echo_n "checking for $ac_word... " >&6; }
5184 if ${ac_cv_path_CMP+:} false; then :
5185 $as_echo_n "(cached) " >&6
5189 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5196 test -z "$as_dir" && as_dir=.
5197 for ac_exec_ext in '' $ac_executable_extensions; do
5198 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5199 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5200 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5207 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5212 if test -n "$CMP"; then
5213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5
5214 $as_echo "$CMP" >&6; }
5216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5217 $as_echo "no" >&6; }
5221 # Extract the first word of "tbl", so it can be a program name with args.
5222 set dummy tbl; ac_word=$2
5223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5224 $as_echo_n "checking for $ac_word... " >&6; }
5225 if ${ac_cv_path_TBL+:} false; then :
5226 $as_echo_n "(cached) " >&6
5230 ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
5233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5237 test -z "$as_dir" && as_dir=.
5238 for ac_exec_ext in '' $ac_executable_extensions; do
5239 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5240 ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
5241 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5248 test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
5253 if test -n "$TBL"; then
5254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TBL" >&5
5255 $as_echo "$TBL" >&6; }
5257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5258 $as_echo "no" >&6; }
5262 # Extract the first word of "ar", so it can be a program name with args.
5263 set dummy ar; ac_word=$2
5264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5265 $as_echo_n "checking for $ac_word... " >&6; }
5266 if ${ac_cv_path_AR+:} false; then :
5267 $as_echo_n "(cached) " >&6
5271 ac_cv_path_AR="$AR" # Let the user override the test with a path.
5274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5278 test -z "$as_dir" && as_dir=.
5279 for ac_exec_ext in '' $ac_executable_extensions; do
5280 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5281 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
5282 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5289 test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
5294 if test -n "$AR"; then
5295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5296 $as_echo "$AR" >&6; }
5298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5299 $as_echo "no" >&6; }
5303 # Extract the first word of "openssl", so it can be a program name with args.
5304 set dummy openssl; ac_word=$2
5305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5306 $as_echo_n "checking for $ac_word... " >&6; }
5307 if ${ac_cv_path_OPENSSL+:} false; then :
5308 $as_echo_n "(cached) " >&6
5312 ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
5315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5319 test -z "$as_dir" && as_dir=.
5320 for ac_exec_ext in '' $ac_executable_extensions; do
5321 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5322 ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
5323 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5330 test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
5334 OPENSSL=$ac_cv_path_OPENSSL
5335 if test -n "$OPENSSL"; then
5336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENSSL" >&5
5337 $as_echo "$OPENSSL" >&6; }
5339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5340 $as_echo "no" >&6; }
5344 # Extract the first word of "mtx", so it can be a program name with args.
5345 set dummy mtx; ac_word=$2
5346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5347 $as_echo_n "checking for $ac_word... " >&6; }
5348 if ${ac_cv_path_MTX+:} false; then :
5349 $as_echo_n "(cached) " >&6
5353 ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
5356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5360 test -z "$as_dir" && as_dir=.
5361 for ac_exec_ext in '' $ac_executable_extensions; do
5362 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5363 ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
5364 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5371 test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
5376 if test -n "$MTX"; then
5377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MTX" >&5
5378 $as_echo "$MTX" >&6; }
5380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5381 $as_echo "no" >&6; }
5385 # Extract the first word of "dd", so it can be a program name with args.
5386 set dummy dd; ac_word=$2
5387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5388 $as_echo_n "checking for $ac_word... " >&6; }
5389 if ${ac_cv_path_DD+:} false; then :
5390 $as_echo_n "(cached) " >&6
5394 ac_cv_path_DD="$DD" # Let the user override the test with a path.
5397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5401 test -z "$as_dir" && as_dir=.
5402 for ac_exec_ext in '' $ac_executable_extensions; do
5403 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5404 ac_cv_path_DD="$as_dir/$ac_word$ac_exec_ext"
5405 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5412 test -z "$ac_cv_path_DD" && ac_cv_path_DD="dd"
5417 if test -n "$DD"; then
5418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DD" >&5
5419 $as_echo "$DD" >&6; }
5421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5422 $as_echo "no" >&6; }
5426 # Extract the first word of "mkisofs", so it can be a program name with args.
5427 set dummy mkisofs; ac_word=$2
5428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5429 $as_echo_n "checking for $ac_word... " >&6; }
5430 if ${ac_cv_path_MKISOFS+:} false; then :
5431 $as_echo_n "(cached) " >&6
5435 ac_cv_path_MKISOFS="$MKISOFS" # Let the user override the test with a path.
5438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5442 test -z "$as_dir" && as_dir=.
5443 for ac_exec_ext in '' $ac_executable_extensions; do
5444 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5445 ac_cv_path_MKISOFS="$as_dir/$ac_word$ac_exec_ext"
5446 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5453 test -z "$ac_cv_path_MKISOFS" && ac_cv_path_MKISOFS="mkisofs"
5457 MKISOFS=$ac_cv_path_MKISOFS
5458 if test -n "$MKISOFS"; then
5459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKISOFS" >&5
5460 $as_echo "$MKISOFS" >&6; }
5462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5463 $as_echo "no" >&6; }
5467 # Extract the first word of "python", so it can be a program name with args.
5468 set dummy python; ac_word=$2
5469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5470 $as_echo_n "checking for $ac_word... " >&6; }
5471 if ${ac_cv_path_PYTHON+:} false; then :
5472 $as_echo_n "(cached) " >&6
5476 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
5479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5483 test -z "$as_dir" && as_dir=.
5484 for ac_exec_ext in '' $ac_executable_extensions; do
5485 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5486 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
5487 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5494 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="python"
5498 PYTHON=$ac_cv_path_PYTHON
5499 if test -n "$PYTHON"; then
5500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
5501 $as_echo "$PYTHON" >&6; }
5503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5504 $as_echo "no" >&6; }
5508 # Extract the first word of "growisofs", so it can be a program name with args.
5509 set dummy growisofs; ac_word=$2
5510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5511 $as_echo_n "checking for $ac_word... " >&6; }
5512 if ${ac_cv_path_GROWISOFS+:} false; then :
5513 $as_echo_n "(cached) " >&6
5517 ac_cv_path_GROWISOFS="$GROWISOFS" # Let the user override the test with a path.
5520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5524 test -z "$as_dir" && as_dir=.
5525 for ac_exec_ext in '' $ac_executable_extensions; do
5526 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5527 ac_cv_path_GROWISOFS="$as_dir/$ac_word$ac_exec_ext"
5528 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5535 test -z "$ac_cv_path_GROWISOFS" && ac_cv_path_GROWISOFS="growisofs"
5539 GROWISOFS=$ac_cv_path_GROWISOFS
5540 if test -n "$GROWISOFS"; then
5541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GROWISOFS" >&5
5542 $as_echo "$GROWISOFS" >&6; }
5544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5545 $as_echo "no" >&6; }
5549 # Extract the first word of "dvd+rw-mediainfo", so it can be a program name with args.
5550 set dummy dvd+rw-mediainfo; ac_word=$2
5551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5552 $as_echo_n "checking for $ac_word... " >&6; }
5553 if ${ac_cv_path_DVDRWMEDIAINFO+:} false; then :
5554 $as_echo_n "(cached) " >&6
5556 case $DVDRWMEDIAINFO in
5558 ac_cv_path_DVDRWMEDIAINFO="$DVDRWMEDIAINFO" # Let the user override the test with a path.
5561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5565 test -z "$as_dir" && as_dir=.
5566 for ac_exec_ext in '' $ac_executable_extensions; do
5567 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5568 ac_cv_path_DVDRWMEDIAINFO="$as_dir/$ac_word$ac_exec_ext"
5569 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5576 test -z "$ac_cv_path_DVDRWMEDIAINFO" && ac_cv_path_DVDRWMEDIAINFO="dvd+rw-mediainfo"
5580 DVDRWMEDIAINFO=$ac_cv_path_DVDRWMEDIAINFO
5581 if test -n "$DVDRWMEDIAINFO"; then
5582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVDRWMEDIAINFO" >&5
5583 $as_echo "$DVDRWMEDIAINFO" >&6; }
5585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5586 $as_echo "no" >&6; }
5590 # Extract the first word of "dvd+rw-format", so it can be a program name with args.
5591 set dummy dvd+rw-format; ac_word=$2
5592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5593 $as_echo_n "checking for $ac_word... " >&6; }
5594 if ${ac_cv_path_DVDRWFORMAT+:} false; then :
5595 $as_echo_n "(cached) " >&6
5597 case $DVDRWFORMAT in
5599 ac_cv_path_DVDRWFORMAT="$DVDRWFORMAT" # Let the user override the test with a path.
5602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5606 test -z "$as_dir" && as_dir=.
5607 for ac_exec_ext in '' $ac_executable_extensions; do
5608 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5609 ac_cv_path_DVDRWFORMAT="$as_dir/$ac_word$ac_exec_ext"
5610 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5617 test -z "$ac_cv_path_DVDRWFORMAT" && ac_cv_path_DVDRWFORMAT="dvd+rw-format"
5621 DVDRWFORMAT=$ac_cv_path_DVDRWFORMAT
5622 if test -n "$DVDRWFORMAT"; then
5623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVDRWFORMAT" >&5
5624 $as_echo "$DVDRWFORMAT" >&6; }
5626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5627 $as_echo "no" >&6; }
5631 # Extract the first word of "pkg-config", so it can be a program name with args.
5632 set dummy pkg-config; ac_word=$2
5633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5634 $as_echo_n "checking for $ac_word... " >&6; }
5635 if ${ac_cv_path_PKGCONFIG+:} false; then :
5636 $as_echo_n "(cached) " >&6
5640 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
5643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5647 test -z "$as_dir" && as_dir=.
5648 for ac_exec_ext in '' $ac_executable_extensions; do
5649 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5650 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
5651 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5658 test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
5662 PKGCONFIG=$ac_cv_path_PKGCONFIG
5663 if test -n "$PKGCONFIG"; then
5664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
5665 $as_echo "$PKGCONFIG" >&6; }
5667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5668 $as_echo "no" >&6; }
5672 # Extract the first word of "qmake", so it can be a program name with args.
5673 set dummy qmake; ac_word=$2
5674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5675 $as_echo_n "checking for $ac_word... " >&6; }
5676 if ${ac_cv_path_QMAKE+:} false; then :
5677 $as_echo_n "(cached) " >&6
5681 ac_cv_path_QMAKE="$QMAKE" # Let the user override the test with a path.
5684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5688 test -z "$as_dir" && as_dir=.
5689 for ac_exec_ext in '' $ac_executable_extensions; do
5690 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5691 ac_cv_path_QMAKE="$as_dir/$ac_word$ac_exec_ext"
5692 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5699 test -z "$ac_cv_path_QMAKE" && ac_cv_path_QMAKE="none"
5703 QMAKE=$ac_cv_path_QMAKE
5704 if test -n "$QMAKE"; then
5705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QMAKE" >&5
5706 $as_echo "$QMAKE" >&6; }
5708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5709 $as_echo "no" >&6; }
5713 # Extract the first word of "gmake", so it can be a program name with args.
5714 set dummy gmake; ac_word=$2
5715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5716 $as_echo_n "checking for $ac_word... " >&6; }
5717 if ${ac_cv_path_GMAKE+:} false; then :
5718 $as_echo_n "(cached) " >&6
5722 ac_cv_path_GMAKE="$GMAKE" # Let the user override the test with a path.
5725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5729 test -z "$as_dir" && as_dir=.
5730 for ac_exec_ext in '' $ac_executable_extensions; do
5731 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5732 ac_cv_path_GMAKE="$as_dir/$ac_word$ac_exec_ext"
5733 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5740 test -z "$ac_cv_path_GMAKE" && ac_cv_path_GMAKE="none"
5744 GMAKE=$ac_cv_path_GMAKE
5745 if test -n "$GMAKE"; then
5746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMAKE" >&5
5747 $as_echo "$GMAKE" >&6; }
5749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5750 $as_echo "no" >&6; }
5755 if test "x$WXCONFIG" = x; then
5758 # Extract the first word of "${WXCONFIG}", so it can be a program name with args.
5759 set dummy ${WXCONFIG}; ac_word=$2
5760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5761 $as_echo_n "checking for $ac_word... " >&6; }
5762 if ${ac_cv_path_WXCONFIG+:} false; then :
5763 $as_echo_n "(cached) " >&6
5767 ac_cv_path_WXCONFIG="$WXCONFIG" # Let the user override the test with a path.
5770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5774 test -z "$as_dir" && as_dir=.
5775 for ac_exec_ext in '' $ac_executable_extensions; do
5776 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5777 ac_cv_path_WXCONFIG="$as_dir/$ac_word$ac_exec_ext"
5778 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5785 test -z "$ac_cv_path_WXCONFIG" && ac_cv_path_WXCONFIG="${WXCONFIG}"
5789 WXCONFIG=$ac_cv_path_WXCONFIG
5790 if test -n "$WXCONFIG"; then
5791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WXCONFIG" >&5
5792 $as_echo "$WXCONFIG" >&6; }
5794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5795 $as_echo "no" >&6; }
5800 # Extract the first word of "cdrecord", so it can be a program name with args.
5801 set dummy cdrecord; ac_word=$2
5802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5803 $as_echo_n "checking for $ac_word... " >&6; }
5804 if ${ac_cv_path_CDRECORD+:} false; then :
5805 $as_echo_n "(cached) " >&6
5809 ac_cv_path_CDRECORD="$CDRECORD" # Let the user override the test with a path.
5812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5816 test -z "$as_dir" && as_dir=.
5817 for ac_exec_ext in '' $ac_executable_extensions; do
5818 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5819 ac_cv_path_CDRECORD="$as_dir/$ac_word$ac_exec_ext"
5820 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5827 test -z "$ac_cv_path_CDRECORD" && ac_cv_path_CDRECORD="cdrecord"
5831 CDRECORD=$ac_cv_path_CDRECORD
5832 if test -n "$CDRECORD"; then
5833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CDRECORD" >&5
5834 $as_echo "$CDRECORD" >&6; }
5836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5837 $as_echo "no" >&6; }
5841 # Extract the first word of "pidof", so it can be a program name with args.
5842 set dummy pidof; ac_word=$2
5843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5844 $as_echo_n "checking for $ac_word... " >&6; }
5845 if ${ac_cv_path_PIDOF+:} false; then :
5846 $as_echo_n "(cached) " >&6
5850 ac_cv_path_PIDOF="$PIDOF" # Let the user override the test with a path.
5853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5857 test -z "$as_dir" && as_dir=.
5858 for ac_exec_ext in '' $ac_executable_extensions; do
5859 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5860 ac_cv_path_PIDOF="$as_dir/$ac_word$ac_exec_ext"
5861 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5868 test -z "$ac_cv_path_PIDOF" && ac_cv_path_PIDOF="pidof"
5872 PIDOF=$ac_cv_path_PIDOF
5873 if test -n "$PIDOF"; then
5874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PIDOF" >&5
5875 $as_echo "$PIDOF" >&6; }
5877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5878 $as_echo "no" >&6; }
5882 for ac_prog in gawk mawk nawk awk
5884 # Extract the first word of "$ac_prog", so it can be a program name with args.
5885 set dummy $ac_prog; ac_word=$2
5886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5887 $as_echo_n "checking for $ac_word... " >&6; }
5888 if ${ac_cv_prog_AWK+:} false; then :
5889 $as_echo_n "(cached) " >&6
5891 if test -n "$AWK"; then
5892 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5898 test -z "$as_dir" && as_dir=.
5899 for ac_exec_ext in '' $ac_executable_extensions; do
5900 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5901 ac_cv_prog_AWK="$ac_prog"
5902 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5912 if test -n "$AWK"; then
5913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5914 $as_echo "$AWK" >&6; }
5916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5917 $as_echo "no" >&6; }
5921 test -n "$AWK" && break
5924 # Some AWK programs fail, so test it and warn the user
5925 if echo xfoo | $AWK 'BEGIN { prog=ARGV1; ARGC=1 }
5926 { if ((prog == $2) || (("(" prog ")") == $2) ||
5927 (("" prog "") == $2) ||
5928 ((prog ":") == $2)) { print $1 ; exit 0 } }' xfoo>/dev/null; then :;
5930 as_fn_error $? "!!!!!!!!! WARNING !!!!!!!!!!!!!!
5931 The regex engine of $AWK is too broken to be used you
5932 might want to install GNU AWK.
5933 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" "$LINENO" 5
5936 # Extract the first word of "$THE_AWK", so it can be a program name with args.
5937 set dummy $THE_AWK; ac_word=$2
5938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5939 $as_echo_n "checking for $ac_word... " >&6; }
5940 if ${ac_cv_path_AWK+:} false; then :
5941 $as_echo_n "(cached) " >&6
5945 ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
5948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5952 test -z "$as_dir" && as_dir=.
5953 for ac_exec_ext in '' $ac_executable_extensions; do
5954 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5955 ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
5956 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5963 test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="$THE_AWK"
5968 if test -n "$AWK"; then
5969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5970 $as_echo "$AWK" >&6; }
5972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5973 $as_echo "no" >&6; }
5979 test -n "$ARFLAG" || ARFLAGS="cr"
5991 # Check whether --enable-libtool was given.
5992 if test "${enable_libtool+set}" = set; then :
5993 enableval=$enable_libtool;
5994 if test x$enableval = xno; then
6003 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6004 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6009 macro_version='2.2.6'
6010 macro_revision='1.3012'
6024 ltmain="$ac_aux_dir/ltmain.sh"
6026 # Make sure we can run config.sub.
6027 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
6028 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
6030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
6031 $as_echo_n "checking build system type... " >&6; }
6032 if ${ac_cv_build+:} false; then :
6033 $as_echo_n "(cached) " >&6
6035 ac_build_alias=$build_alias
6036 test "x$ac_build_alias" = x &&
6037 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
6038 test "x$ac_build_alias" = x &&
6039 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
6040 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
6041 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
6044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
6045 $as_echo "$ac_cv_build" >&6; }
6046 case $ac_cv_build in
6048 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
6051 ac_save_IFS=$IFS; IFS='-'
6057 # Remember, the first character of IFS is used to create $*,
6058 # except with old shells:
6061 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
6064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
6065 $as_echo_n "checking host system type... " >&6; }
6066 if ${ac_cv_host+:} false; then :
6067 $as_echo_n "(cached) " >&6
6069 if test "x$host_alias" = x; then
6070 ac_cv_host=$ac_cv_build
6072 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
6073 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
6077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
6078 $as_echo "$ac_cv_host" >&6; }
6081 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
6084 ac_save_IFS=$IFS; IFS='-'
6090 # Remember, the first character of IFS is used to create $*,
6091 # except with old shells:
6094 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
6097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6098 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6099 if ${ac_cv_path_SED+:} false; then :
6100 $as_echo_n "(cached) " >&6
6102 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6103 for ac_i in 1 2 3 4 5 6 7; do
6104 ac_script="$ac_script$as_nl$ac_script"
6106 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6107 { ac_script=; unset ac_script;}
6108 if test -z "$SED"; then
6109 ac_path_SED_found=false
6110 # Loop through the user's path and test for each of PROGNAME-LIST
6111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6115 test -z "$as_dir" && as_dir=.
6116 for ac_prog in sed gsed; do
6117 for ac_exec_ext in '' $ac_executable_extensions; do
6118 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6119 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
6120 # Check for GNU ac_path_SED and select it if it is found.
6121 # Check for GNU $ac_path_SED
6122 case `"$ac_path_SED" --version 2>&1` in
6124 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6127 $as_echo_n 0123456789 >"conftest.in"
6130 cat "conftest.in" "conftest.in" >"conftest.tmp"
6131 mv "conftest.tmp" "conftest.in"
6132 cp "conftest.in" "conftest.nl"
6133 $as_echo '' >> "conftest.nl"
6134 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6135 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6136 as_fn_arith $ac_count + 1 && ac_count=$as_val
6137 if test $ac_count -gt ${ac_path_SED_max-0}; then
6138 # Best one so far, save it but keep looking for a better one
6139 ac_cv_path_SED="$ac_path_SED"
6140 ac_path_SED_max=$ac_count
6142 # 10*(2^10) chars as input seems more than enough
6143 test $ac_count -gt 10 && break
6145 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6148 $ac_path_SED_found && break 3
6153 if test -z "$ac_cv_path_SED"; then
6154 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6162 $as_echo "$ac_cv_path_SED" >&6; }
6163 SED="$ac_cv_path_SED"
6166 test -z "$SED" && SED=sed
6167 Xsed="$SED -e 1s/^X//"
6179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6180 $as_echo_n "checking for fgrep... " >&6; }
6181 if ${ac_cv_path_FGREP+:} false; then :
6182 $as_echo_n "(cached) " >&6
6184 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6185 then ac_cv_path_FGREP="$GREP -F"
6187 if test -z "$FGREP"; then
6188 ac_path_FGREP_found=false
6189 # Loop through the user's path and test for each of PROGNAME-LIST
6190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6191 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6194 test -z "$as_dir" && as_dir=.
6195 for ac_prog in fgrep; do
6196 for ac_exec_ext in '' $ac_executable_extensions; do
6197 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6198 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
6199 # Check for GNU ac_path_FGREP and select it if it is found.
6200 # Check for GNU $ac_path_FGREP
6201 case `"$ac_path_FGREP" --version 2>&1` in
6203 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6206 $as_echo_n 0123456789 >"conftest.in"
6209 cat "conftest.in" "conftest.in" >"conftest.tmp"
6210 mv "conftest.tmp" "conftest.in"
6211 cp "conftest.in" "conftest.nl"
6212 $as_echo 'FGREP' >> "conftest.nl"
6213 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6214 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6215 as_fn_arith $ac_count + 1 && ac_count=$as_val
6216 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6217 # Best one so far, save it but keep looking for a better one
6218 ac_cv_path_FGREP="$ac_path_FGREP"
6219 ac_path_FGREP_max=$ac_count
6221 # 10*(2^10) chars as input seems more than enough
6222 test $ac_count -gt 10 && break
6224 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6227 $ac_path_FGREP_found && break 3
6232 if test -z "$ac_cv_path_FGREP"; then
6233 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6236 ac_cv_path_FGREP=$FGREP
6241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6242 $as_echo "$ac_cv_path_FGREP" >&6; }
6243 FGREP="$ac_cv_path_FGREP"
6246 test -z "$GREP" && GREP=grep
6266 # Check whether --with-gnu-ld was given.
6267 if test "${with_gnu_ld+set}" = set; then :
6268 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6274 if test "$GCC" = yes; then
6275 # Check if gcc -print-prog-name=ld gives a path.
6276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6277 $as_echo_n "checking for ld used by $CC... " >&6; }
6280 # gcc leaves a trailing carriage return which upsets mingw
6281 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6283 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6286 # Accept absolute paths.
6288 re_direlt='/[^/][^/]*/\.\./'
6289 # Canonicalize the pathname of ld
6290 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6291 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6292 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6294 test -z "$LD" && LD="$ac_prog"
6297 # If it fails, then pretend we aren't using GCC.
6301 # If it is relative, then search for the first ld in PATH.
6305 elif test "$with_gnu_ld" = yes; then
6306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6307 $as_echo_n "checking for GNU ld... " >&6; }
6309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6310 $as_echo_n "checking for non-GNU ld... " >&6; }
6312 if ${lt_cv_path_LD+:} false; then :
6313 $as_echo_n "(cached) " >&6
6315 if test -z "$LD"; then
6316 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6317 for ac_dir in $PATH; do
6319 test -z "$ac_dir" && ac_dir=.
6320 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6321 lt_cv_path_LD="$ac_dir/$ac_prog"
6322 # Check to see if the program is GNU ld. I'd rather use --version,
6323 # but apparently some variants of GNU ld only accept -v.
6324 # Break only if it was the GNU/non-GNU ld that we prefer.
6325 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6326 *GNU* | *'with BFD'*)
6327 test "$with_gnu_ld" != no && break
6330 test "$with_gnu_ld" != yes && break
6337 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6342 if test -n "$LD"; then
6343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6344 $as_echo "$LD" >&6; }
6346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6347 $as_echo "no" >&6; }
6349 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6351 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6352 if ${lt_cv_prog_gnu_ld+:} false; then :
6353 $as_echo_n "(cached) " >&6
6355 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6356 case `$LD -v 2>&1 </dev/null` in
6357 *GNU* | *'with BFD'*)
6358 lt_cv_prog_gnu_ld=yes
6361 lt_cv_prog_gnu_ld=no
6365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6366 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6367 with_gnu_ld=$lt_cv_prog_gnu_ld
6377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6378 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6379 if ${lt_cv_path_NM+:} false; then :
6380 $as_echo_n "(cached) " >&6
6382 if test -n "$NM"; then
6383 # Let the user override the test.
6386 lt_nm_to_check="${ac_tool_prefix}nm"
6387 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6388 lt_nm_to_check="$lt_nm_to_check nm"
6390 for lt_tmp_nm in $lt_nm_to_check; do
6391 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6392 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6394 test -z "$ac_dir" && ac_dir=.
6395 tmp_nm="$ac_dir/$lt_tmp_nm"
6396 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6397 # Check to see if the nm accepts a BSD-compat flag.
6398 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6399 # nm: unknown option "B" ignored
6400 # Tru64's nm complains that /dev/null is an invalid object file
6401 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6402 */dev/null* | *'Invalid file or object type'*)
6403 lt_cv_path_NM="$tmp_nm -B"
6407 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6409 lt_cv_path_NM="$tmp_nm -p"
6413 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6414 continue # so that we can try to find one that supports BSD flags
6423 : ${lt_cv_path_NM=no}
6426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6427 $as_echo "$lt_cv_path_NM" >&6; }
6428 if test "$lt_cv_path_NM" != "no"; then
6431 # Didn't find any BSD compatible name lister, look for dumpbin.
6432 if test -n "$ac_tool_prefix"; then
6433 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
6435 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6436 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6438 $as_echo_n "checking for $ac_word... " >&6; }
6439 if ${ac_cv_prog_DUMPBIN+:} false; then :
6440 $as_echo_n "(cached) " >&6
6442 if test -n "$DUMPBIN"; then
6443 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6449 test -z "$as_dir" && as_dir=.
6450 for ac_exec_ext in '' $ac_executable_extensions; do
6451 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6452 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6453 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6462 DUMPBIN=$ac_cv_prog_DUMPBIN
6463 if test -n "$DUMPBIN"; then
6464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6465 $as_echo "$DUMPBIN" >&6; }
6467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6468 $as_echo "no" >&6; }
6472 test -n "$DUMPBIN" && break
6475 if test -z "$DUMPBIN"; then
6476 ac_ct_DUMPBIN=$DUMPBIN
6477 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
6479 # Extract the first word of "$ac_prog", so it can be a program name with args.
6480 set dummy $ac_prog; ac_word=$2
6481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6482 $as_echo_n "checking for $ac_word... " >&6; }
6483 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6484 $as_echo_n "(cached) " >&6
6486 if test -n "$ac_ct_DUMPBIN"; then
6487 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6493 test -z "$as_dir" && as_dir=.
6494 for ac_exec_ext in '' $ac_executable_extensions; do
6495 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6496 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6497 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6506 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6507 if test -n "$ac_ct_DUMPBIN"; then
6508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6509 $as_echo "$ac_ct_DUMPBIN" >&6; }
6511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6512 $as_echo "no" >&6; }
6516 test -n "$ac_ct_DUMPBIN" && break
6519 if test "x$ac_ct_DUMPBIN" = x; then
6522 case $cross_compiling:$ac_tool_warned in
6524 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6525 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6526 ac_tool_warned=yes ;;
6528 DUMPBIN=$ac_ct_DUMPBIN
6533 if test "$DUMPBIN" != ":"; then
6537 test -z "$NM" && NM=nm
6544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6545 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6546 if ${lt_cv_nm_interface+:} false; then :
6547 $as_echo_n "(cached) " >&6
6549 lt_cv_nm_interface="BSD nm"
6550 echo "int some_variable = 0;" > conftest.$ac_ext
6551 (eval echo "\"\$as_me:6551: $ac_compile\"" >&5)
6552 (eval "$ac_compile" 2>conftest.err)
6553 cat conftest.err >&5
6554 (eval echo "\"\$as_me:6554: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6555 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6556 cat conftest.err >&5
6557 (eval echo "\"\$as_me:6557: output\"" >&5)
6558 cat conftest.out >&5
6559 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6560 lt_cv_nm_interface="MS dumpbin"
6564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6565 $as_echo "$lt_cv_nm_interface" >&6; }
6567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6568 $as_echo_n "checking whether ln -s works... " >&6; }
6570 if test "$LN_S" = "ln -s"; then
6571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6572 $as_echo "yes" >&6; }
6574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6575 $as_echo "no, using $LN_S" >&6; }
6578 # find the maximum length of command line arguments
6579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6580 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6581 if ${lt_cv_sys_max_cmd_len+:} false; then :
6582 $as_echo_n "(cached) " >&6
6589 # On DJGPP, this test can blow up pretty badly due to problems in libc
6590 # (any single argument exceeding 2000 bytes causes a buffer overrun
6591 # during glob expansion). Even if it were fixed, the result of this
6592 # check would be larger than it should be.
6593 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6597 # Under GNU Hurd, this test is not required because there is
6598 # no limit to the length of command line arguments.
6599 # Libtool will interpret -1 as no limit whatsoever
6600 lt_cv_sys_max_cmd_len=-1;
6603 cygwin* | mingw* | cegcc*)
6604 # On Win9x/ME, this test blows up -- it succeeds, but takes
6605 # about 5 minutes as the teststring grows exponentially.
6606 # Worse, since 9x/ME are not pre-emptively multitasking,
6607 # you end up with a "frozen" computer, even though with patience
6608 # the test eventually succeeds (with a max line length of 256k).
6609 # Instead, let's just punt: use the minimum linelength reported by
6610 # all of the supported platforms: 8192 (on NT/2K/XP).
6611 lt_cv_sys_max_cmd_len=8192;
6615 # On AmigaOS with pdksh, this test takes hours, literally.
6616 # So we just punt and use a minimum line length of 8192.
6617 lt_cv_sys_max_cmd_len=8192;
6620 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6621 # This has been around since 386BSD, at least. Likely further.
6622 if test -x /sbin/sysctl; then
6623 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6624 elif test -x /usr/sbin/sysctl; then
6625 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6627 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6629 # And add a safety zone
6630 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6631 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6635 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6636 lt_cv_sys_max_cmd_len=196608
6640 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6641 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6642 # nice to cause kernel panics so lets avoid the loop below.
6643 # First set a reasonable default.
6644 lt_cv_sys_max_cmd_len=16384
6646 if test -x /sbin/sysconfig; then
6647 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6648 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6653 lt_cv_sys_max_cmd_len=102400
6655 sysv5* | sco5v6* | sysv4.2uw2*)
6656 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6657 if test -n "$kargmax"; then
6658 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6660 lt_cv_sys_max_cmd_len=32768
6664 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6665 if test -n "$lt_cv_sys_max_cmd_len"; then
6666 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6667 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6669 # Make teststring a little bigger before we do anything with it.
6670 # a 1K string should be a reasonable start.
6671 for i in 1 2 3 4 5 6 7 8 ; do
6672 teststring=$teststring$teststring
6674 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6675 # If test is not a shell built-in, we'll probably end up computing a
6676 # maximum length that is only half of the actual maximum length, but
6678 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
6679 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
6680 test $i != 17 # 1/2 MB should be enough
6683 teststring=$teststring$teststring
6685 # Only check the string length outside the loop.
6686 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6688 # Add a significant safety factor because C++ compilers can tack on
6689 # massive amounts of additional arguments before passing them to the
6690 # linker. It appears as though 1/2 is a usable value.
6691 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6698 if test -n $lt_cv_sys_max_cmd_len ; then
6699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6700 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6703 $as_echo "none" >&6; }
6705 max_cmd_len=$lt_cv_sys_max_cmd_len
6716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6717 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6718 # Try some XSI features
6721 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6723 && eval 'test $(( 1 + 1 )) -eq 2 \
6724 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6727 $as_echo "$xsi_shell" >&6; }
6730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6731 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6733 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6735 && lt_shell_append=yes
6736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6737 $as_echo "$lt_shell_append" >&6; }
6740 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6750 # test EBCDIC or ASCII
6751 case `echo X|tr X '\101'` in
6752 A) # ASCII based system
6753 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6754 lt_SP2NL='tr \040 \012'
6755 lt_NL2SP='tr \015\012 \040\040'
6757 *) # EBCDIC based system
6758 lt_SP2NL='tr \100 \n'
6759 lt_NL2SP='tr \r\n \100\100'
6771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6772 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6773 if ${lt_cv_ld_reload_flag+:} false; then :
6774 $as_echo_n "(cached) " >&6
6776 lt_cv_ld_reload_flag='-r'
6778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6779 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6780 reload_flag=$lt_cv_ld_reload_flag
6781 case $reload_flag in
6783 *) reload_flag=" $reload_flag" ;;
6785 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6788 if test "$GCC" = yes; then
6789 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6791 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6804 if test -n "$ac_tool_prefix"; then
6805 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6806 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6808 $as_echo_n "checking for $ac_word... " >&6; }
6809 if ${ac_cv_prog_OBJDUMP+:} false; then :
6810 $as_echo_n "(cached) " >&6
6812 if test -n "$OBJDUMP"; then
6813 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6819 test -z "$as_dir" && as_dir=.
6820 for ac_exec_ext in '' $ac_executable_extensions; do
6821 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6822 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6823 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6832 OBJDUMP=$ac_cv_prog_OBJDUMP
6833 if test -n "$OBJDUMP"; then
6834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6835 $as_echo "$OBJDUMP" >&6; }
6837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6838 $as_echo "no" >&6; }
6843 if test -z "$ac_cv_prog_OBJDUMP"; then
6844 ac_ct_OBJDUMP=$OBJDUMP
6845 # Extract the first word of "objdump", so it can be a program name with args.
6846 set dummy objdump; ac_word=$2
6847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6848 $as_echo_n "checking for $ac_word... " >&6; }
6849 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6850 $as_echo_n "(cached) " >&6
6852 if test -n "$ac_ct_OBJDUMP"; then
6853 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6859 test -z "$as_dir" && as_dir=.
6860 for ac_exec_ext in '' $ac_executable_extensions; do
6861 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6862 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6863 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6872 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6873 if test -n "$ac_ct_OBJDUMP"; then
6874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6875 $as_echo "$ac_ct_OBJDUMP" >&6; }
6877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6878 $as_echo "no" >&6; }
6881 if test "x$ac_ct_OBJDUMP" = x; then
6884 case $cross_compiling:$ac_tool_warned in
6886 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6887 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6888 ac_tool_warned=yes ;;
6890 OBJDUMP=$ac_ct_OBJDUMP
6893 OBJDUMP="$ac_cv_prog_OBJDUMP"
6896 test -z "$OBJDUMP" && OBJDUMP=objdump
6906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6907 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6908 if ${lt_cv_deplibs_check_method+:} false; then :
6909 $as_echo_n "(cached) " >&6
6911 lt_cv_file_magic_cmd='$MAGIC_CMD'
6912 lt_cv_file_magic_test_file=
6913 lt_cv_deplibs_check_method='unknown'
6914 # Need to set the preceding variable on all platforms that support
6915 # interlibrary dependencies.
6916 # 'none' -- dependencies not supported.
6917 # `unknown' -- same as none, but documents that we really don't know.
6918 # 'pass_all' -- all dependencies passed with no checks.
6919 # 'test_compile' -- check by making test program.
6920 # 'file_magic [[regex]]' -- check by looking for files in library path
6921 # which responds to the $file_magic_cmd with a given extended regex.
6922 # If you have `file' or equivalent on your system and you're not sure
6923 # whether `pass_all' will *always* work, you probably want this one.
6927 lt_cv_deplibs_check_method=pass_all
6931 lt_cv_deplibs_check_method=pass_all
6935 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6936 lt_cv_file_magic_cmd='/usr/bin/file -L'
6937 lt_cv_file_magic_test_file=/shlib/libc.so
6941 # func_win32_libid is a shell function defined in ltmain.sh
6942 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6943 lt_cv_file_magic_cmd='func_win32_libid'
6947 # Base MSYS/MinGW do not provide the 'file' command needed by
6948 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6949 # unless we find 'file', for example because we are cross-compiling.
6950 if ( file / ) >/dev/null 2>&1; then
6951 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6952 lt_cv_file_magic_cmd='func_win32_libid'
6954 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6955 lt_cv_file_magic_cmd='$OBJDUMP -f'
6960 # use the weaker test based on 'objdump'. See mingw*.
6961 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6962 lt_cv_file_magic_cmd='$OBJDUMP -f'
6965 darwin* | rhapsody*)
6966 lt_cv_deplibs_check_method=pass_all
6969 freebsd* | dragonfly*)
6970 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6973 # Not sure whether the presence of OpenBSD here was a mistake.
6974 # Let's accept both of them until this is cleared up.
6975 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6976 lt_cv_file_magic_cmd=/usr/bin/file
6977 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6981 lt_cv_deplibs_check_method=pass_all
6986 lt_cv_deplibs_check_method=pass_all
6989 hpux10.20* | hpux11*)
6990 lt_cv_file_magic_cmd=/usr/bin/file
6993 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6994 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6997 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]'
6998 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7001 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
7002 lt_cv_file_magic_test_file=/usr/lib/libc.sl
7008 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7009 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7012 irix5* | irix6* | nonstopux*)
7014 *-32|*"-32 ") libmagic=32-bit;;
7015 *-n32|*"-n32 ") libmagic=N32;;
7016 *-64|*"-64 ") libmagic=64-bit;;
7017 *) libmagic=never-match;;
7019 lt_cv_deplibs_check_method=pass_all
7022 # This must be Linux ELF.
7023 linux* | k*bsd*-gnu)
7024 lt_cv_deplibs_check_method=pass_all
7028 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7029 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7031 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7036 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7037 lt_cv_file_magic_cmd=/usr/bin/file
7038 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7042 lt_cv_deplibs_check_method=pass_all
7046 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7047 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7049 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7053 osf3* | osf4* | osf5*)
7054 lt_cv_deplibs_check_method=pass_all
7058 lt_cv_deplibs_check_method=pass_all
7062 lt_cv_deplibs_check_method=pass_all
7065 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7066 lt_cv_deplibs_check_method=pass_all
7070 case $host_vendor in
7072 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]'
7073 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7076 lt_cv_deplibs_check_method=pass_all
7079 lt_cv_file_magic_cmd='/bin/file'
7080 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7083 lt_cv_file_magic_cmd='/bin/file'
7084 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7085 lt_cv_file_magic_test_file=/lib/libc.so
7088 lt_cv_deplibs_check_method=pass_all
7091 lt_cv_deplibs_check_method=pass_all
7097 lt_cv_deplibs_check_method=pass_all
7102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7103 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7104 file_magic_cmd=$lt_cv_file_magic_cmd
7105 deplibs_check_method=$lt_cv_deplibs_check_method
7106 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7119 if test -n "$ac_tool_prefix"; then
7120 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7121 set dummy ${ac_tool_prefix}ar; ac_word=$2
7122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7123 $as_echo_n "checking for $ac_word... " >&6; }
7124 if ${ac_cv_prog_AR+:} false; then :
7125 $as_echo_n "(cached) " >&6
7127 if test -n "$AR"; then
7128 ac_cv_prog_AR="$AR" # Let the user override the test.
7130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7134 test -z "$as_dir" && as_dir=.
7135 for ac_exec_ext in '' $ac_executable_extensions; do
7136 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7137 ac_cv_prog_AR="${ac_tool_prefix}ar"
7138 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7148 if test -n "$AR"; then
7149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7150 $as_echo "$AR" >&6; }
7152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7153 $as_echo "no" >&6; }
7158 if test -z "$ac_cv_prog_AR"; then
7160 # Extract the first word of "ar", so it can be a program name with args.
7161 set dummy ar; ac_word=$2
7162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7163 $as_echo_n "checking for $ac_word... " >&6; }
7164 if ${ac_cv_prog_ac_ct_AR+:} false; then :
7165 $as_echo_n "(cached) " >&6
7167 if test -n "$ac_ct_AR"; then
7168 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7174 test -z "$as_dir" && as_dir=.
7175 for ac_exec_ext in '' $ac_executable_extensions; do
7176 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7177 ac_cv_prog_ac_ct_AR="ar"
7178 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7187 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7188 if test -n "$ac_ct_AR"; then
7189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7190 $as_echo "$ac_ct_AR" >&6; }
7192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7193 $as_echo "no" >&6; }
7196 if test "x$ac_ct_AR" = x; then
7199 case $cross_compiling:$ac_tool_warned in
7201 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7202 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7203 ac_tool_warned=yes ;;
7211 test -z "$AR" && AR=ar
7212 test -z "$AR_FLAGS" && AR_FLAGS=cru
7224 if test -n "$ac_tool_prefix"; then
7225 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7226 set dummy ${ac_tool_prefix}strip; ac_word=$2
7227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7228 $as_echo_n "checking for $ac_word... " >&6; }
7229 if ${ac_cv_prog_STRIP+:} false; then :
7230 $as_echo_n "(cached) " >&6
7232 if test -n "$STRIP"; then
7233 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7239 test -z "$as_dir" && as_dir=.
7240 for ac_exec_ext in '' $ac_executable_extensions; do
7241 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7242 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7243 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7252 STRIP=$ac_cv_prog_STRIP
7253 if test -n "$STRIP"; then
7254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7255 $as_echo "$STRIP" >&6; }
7257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7258 $as_echo "no" >&6; }
7263 if test -z "$ac_cv_prog_STRIP"; then
7265 # Extract the first word of "strip", so it can be a program name with args.
7266 set dummy strip; ac_word=$2
7267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7268 $as_echo_n "checking for $ac_word... " >&6; }
7269 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7270 $as_echo_n "(cached) " >&6
7272 if test -n "$ac_ct_STRIP"; then
7273 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7279 test -z "$as_dir" && as_dir=.
7280 for ac_exec_ext in '' $ac_executable_extensions; do
7281 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7282 ac_cv_prog_ac_ct_STRIP="strip"
7283 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7292 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7293 if test -n "$ac_ct_STRIP"; then
7294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7295 $as_echo "$ac_ct_STRIP" >&6; }
7297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7298 $as_echo "no" >&6; }
7301 if test "x$ac_ct_STRIP" = x; then
7304 case $cross_compiling:$ac_tool_warned in
7306 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7307 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7308 ac_tool_warned=yes ;;
7313 STRIP="$ac_cv_prog_STRIP"
7316 test -z "$STRIP" && STRIP=:
7323 if test -n "$ac_tool_prefix"; then
7324 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7325 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7327 $as_echo_n "checking for $ac_word... " >&6; }
7328 if ${ac_cv_prog_RANLIB+:} false; then :
7329 $as_echo_n "(cached) " >&6
7331 if test -n "$RANLIB"; then
7332 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7338 test -z "$as_dir" && as_dir=.
7339 for ac_exec_ext in '' $ac_executable_extensions; do
7340 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7341 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7342 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7351 RANLIB=$ac_cv_prog_RANLIB
7352 if test -n "$RANLIB"; then
7353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7354 $as_echo "$RANLIB" >&6; }
7356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7357 $as_echo "no" >&6; }
7362 if test -z "$ac_cv_prog_RANLIB"; then
7363 ac_ct_RANLIB=$RANLIB
7364 # Extract the first word of "ranlib", so it can be a program name with args.
7365 set dummy ranlib; ac_word=$2
7366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7367 $as_echo_n "checking for $ac_word... " >&6; }
7368 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7369 $as_echo_n "(cached) " >&6
7371 if test -n "$ac_ct_RANLIB"; then
7372 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7378 test -z "$as_dir" && as_dir=.
7379 for ac_exec_ext in '' $ac_executable_extensions; do
7380 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7381 ac_cv_prog_ac_ct_RANLIB="ranlib"
7382 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7391 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7392 if test -n "$ac_ct_RANLIB"; then
7393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7394 $as_echo "$ac_ct_RANLIB" >&6; }
7396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7397 $as_echo "no" >&6; }
7400 if test "x$ac_ct_RANLIB" = x; then
7403 case $cross_compiling:$ac_tool_warned in
7405 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7406 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7407 ac_tool_warned=yes ;;
7409 RANLIB=$ac_ct_RANLIB
7412 RANLIB="$ac_cv_prog_RANLIB"
7415 test -z "$RANLIB" && RANLIB=:
7422 # Determine commands to create old-style static archives.
7423 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7424 old_postinstall_cmds='chmod 644 $oldlib'
7425 old_postuninstall_cmds=
7427 if test -n "$RANLIB"; then
7430 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7433 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7436 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7472 # If no C compiler was specified, use CC.
7475 # If no C compiler flags were specified, use CFLAGS.
7476 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7478 # Allow CC to be a program name with arguments.
7482 # Check for command to grab the raw symbol name followed by C symbol from nm.
7483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7484 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7485 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7486 $as_echo_n "(cached) " >&6
7489 # These are sane defaults that work on at least a few old systems.
7490 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7492 # Character class describing NM global symbol codes.
7493 symcode='[BCDEGRST]'
7495 # Regexp to match symbols that can be accessed directly from C.
7496 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7498 # Define system-specific variables.
7503 cygwin* | mingw* | pw32* | cegcc*)
7504 symcode='[ABCDGISTW]'
7507 if test "$host_cpu" = ia64; then
7508 symcode='[ABCDEGRST]'
7512 symcode='[BCDEGRST]'
7515 symcode='[BCDEGQRST]'
7526 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7534 # If we're using GNU nm, then use its standard symbol codes.
7535 case `$NM -V 2>&1` in
7536 *GNU* | *'with BFD'*)
7537 symcode='[ABCDGIRSTW]' ;;
7540 # Transform an extracted symbol line into a proper C declaration.
7541 # Some systems (esp. on ia64) link data and code symbols differently,
7542 # so use this general approach.
7543 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7545 # Transform an extracted symbol line into symbol name and symbol address
7546 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7547 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'"
7549 # Handle CRLF in mingw tool chain
7553 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7557 # Try without a prefix underscore, then with it.
7558 for ac_symprfx in "" "_"; do
7560 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7561 symxfrm="\\1 $ac_symprfx\\2 \\2"
7563 # Write the raw and C identifiers.
7564 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7565 # Fake it for dumpbin and say T for any non-static function
7566 # and D for any global variable.
7567 # Also find C++ and __fastcall symbols from MSVC++,
7568 # which start with @ or ?.
7569 lt_cv_sys_global_symbol_pipe="$AWK '"\
7570 " {last_section=section; section=\$ 3};"\
7571 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7572 " \$ 0!~/External *\|/{next};"\
7573 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7574 " {if(hide[section]) next};"\
7575 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7576 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7577 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7578 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7579 " ' prfx=^$ac_symprfx"
7581 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7584 # Check to see that the pipe works correctly.
7588 cat > conftest.$ac_ext <<_LT_EOF
7593 void nm_test_func(void);
7594 void nm_test_func(void){}
7598 int main(){nm_test_var='a';nm_test_func();return(0);}
7601 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7602 (eval $ac_compile) 2>&5
7604 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7605 test $ac_status = 0; }; then
7606 # Now try to grab the symbols.
7608 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
7609 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7611 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7612 test $ac_status = 0; } && test -s "$nlist"; then
7613 # Try sorting and uniquifying the output.
7614 if sort "$nlist" | uniq > "$nlist"T; then
7615 mv -f "$nlist"T "$nlist"
7620 # Make sure that we snagged all the symbols we need.
7621 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7622 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7623 cat <<_LT_EOF > conftest.$ac_ext
7629 # Now generate the symbol file.
7630 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7632 cat <<_LT_EOF >> conftest.$ac_ext
7634 /* The mapping between symbol names and symbols. */
7639 lt__PROGRAM__LTX_preloaded_symbols[] =
7641 { "@PROGRAM@", (void *) 0 },
7643 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7644 cat <<\_LT_EOF >> conftest.$ac_ext
7648 /* This works around a problem in FreeBSD linker */
7649 #ifdef FREEBSD_WORKAROUND
7650 static const void *lt_preloaded_setup() {
7651 return lt__PROGRAM__LTX_preloaded_symbols;
7659 # Now try linking the two files.
7660 mv conftest.$ac_objext conftstm.$ac_objext
7661 lt_save_LIBS="$LIBS"
7662 lt_save_CFLAGS="$CFLAGS"
7663 LIBS="conftstm.$ac_objext"
7664 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7665 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7666 (eval $ac_link) 2>&5
7668 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7669 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7672 LIBS="$lt_save_LIBS"
7673 CFLAGS="$lt_save_CFLAGS"
7675 echo "cannot find nm_test_func in $nlist" >&5
7678 echo "cannot find nm_test_var in $nlist" >&5
7681 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7684 echo "$progname: failed program was:" >&5
7685 cat conftest.$ac_ext >&5
7687 rm -rf conftest* conftst*
7689 # Do not use the global_symbol_pipe unless it works.
7690 if test "$pipe_works" = yes; then
7693 lt_cv_sys_global_symbol_pipe=
7699 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7700 lt_cv_sys_global_symbol_to_cdecl=
7702 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7704 $as_echo "failed" >&6; }
7706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7707 $as_echo "ok" >&6; }
7731 # Check whether --enable-libtool-lock was given.
7732 if test "${enable_libtool_lock+set}" = set; then :
7733 enableval=$enable_libtool_lock;
7736 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7738 # Some flags need to be propagated to the compiler or linker for good
7742 # Find out which ABI we are using.
7743 echo 'int i;' > conftest.$ac_ext
7744 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7745 (eval $ac_compile) 2>&5
7747 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7748 test $ac_status = 0; }; then
7749 case `/usr/bin/file conftest.$ac_objext` in
7761 # Find out which ABI we are using.
7762 echo '#line 7762 "configure"' > conftest.$ac_ext
7763 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7764 (eval $ac_compile) 2>&5
7766 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7767 test $ac_status = 0; }; then
7768 if test "$lt_cv_prog_gnu_ld" = yes; then
7769 case `/usr/bin/file conftest.$ac_objext` in
7771 LD="${LD-ld} -melf32bsmip"
7774 LD="${LD-ld} -melf32bmipn32"
7777 LD="${LD-ld} -melf64bmip"
7781 case `/usr/bin/file conftest.$ac_objext` in
7797 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7798 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7799 # Find out which ABI we are using.
7800 echo 'int i;' > conftest.$ac_ext
7801 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7802 (eval $ac_compile) 2>&5
7804 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7805 test $ac_status = 0; }; then
7806 case `/usr/bin/file conftest.o` in
7809 x86_64-*kfreebsd*-gnu)
7810 LD="${LD-ld} -m elf_i386_fbsd"
7813 LD="${LD-ld} -m elf_i386"
7815 ppc64-*linux*|powerpc64-*linux*)
7816 LD="${LD-ld} -m elf32ppclinux"
7819 LD="${LD-ld} -m elf_s390"
7822 LD="${LD-ld} -m elf32_sparc"
7828 x86_64-*kfreebsd*-gnu)
7829 LD="${LD-ld} -m elf_x86_64_fbsd"
7832 LD="${LD-ld} -m elf_x86_64"
7834 ppc*-*linux*|powerpc*-*linux*)
7835 LD="${LD-ld} -m elf64ppc"
7837 s390*-*linux*|s390*-*tpf*)
7838 LD="${LD-ld} -m elf64_s390"
7841 LD="${LD-ld} -m elf64_sparc"
7851 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7852 SAVE_CFLAGS="$CFLAGS"
7853 CFLAGS="$CFLAGS -belf"
7854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7855 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7856 if ${lt_cv_cc_needs_belf+:} false; then :
7857 $as_echo_n "(cached) " >&6
7860 ac_cpp='$CPP $CPPFLAGS'
7861 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7862 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7863 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7866 /* end confdefs.h. */
7876 if ac_fn_c_try_link "$LINENO"; then :
7877 lt_cv_cc_needs_belf=yes
7879 lt_cv_cc_needs_belf=no
7881 rm -f core conftest.err conftest.$ac_objext \
7882 conftest$ac_exeext conftest.$ac_ext
7884 ac_cpp='$CPP $CPPFLAGS'
7885 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7886 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7887 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7891 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7892 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7893 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7894 CFLAGS="$SAVE_CFLAGS"
7898 # Find out which ABI we are using.
7899 echo 'int i;' > conftest.$ac_ext
7900 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7901 (eval $ac_compile) 2>&5
7903 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7904 test $ac_status = 0; }; then
7905 case `/usr/bin/file conftest.o` in
7907 case $lt_cv_prog_gnu_ld in
7908 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7910 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7922 need_locks="$enable_libtool_lock"
7926 rhapsody* | darwin*)
7927 if test -n "$ac_tool_prefix"; then
7928 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7929 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7931 $as_echo_n "checking for $ac_word... " >&6; }
7932 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7933 $as_echo_n "(cached) " >&6
7935 if test -n "$DSYMUTIL"; then
7936 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7942 test -z "$as_dir" && as_dir=.
7943 for ac_exec_ext in '' $ac_executable_extensions; do
7944 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7945 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7946 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7955 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7956 if test -n "$DSYMUTIL"; then
7957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7958 $as_echo "$DSYMUTIL" >&6; }
7960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7961 $as_echo "no" >&6; }
7966 if test -z "$ac_cv_prog_DSYMUTIL"; then
7967 ac_ct_DSYMUTIL=$DSYMUTIL
7968 # Extract the first word of "dsymutil", so it can be a program name with args.
7969 set dummy dsymutil; ac_word=$2
7970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7971 $as_echo_n "checking for $ac_word... " >&6; }
7972 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7973 $as_echo_n "(cached) " >&6
7975 if test -n "$ac_ct_DSYMUTIL"; then
7976 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7982 test -z "$as_dir" && as_dir=.
7983 for ac_exec_ext in '' $ac_executable_extensions; do
7984 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7985 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7986 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7995 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7996 if test -n "$ac_ct_DSYMUTIL"; then
7997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7998 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8001 $as_echo "no" >&6; }
8004 if test "x$ac_ct_DSYMUTIL" = x; then
8007 case $cross_compiling:$ac_tool_warned in
8009 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8010 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8011 ac_tool_warned=yes ;;
8013 DSYMUTIL=$ac_ct_DSYMUTIL
8016 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8019 if test -n "$ac_tool_prefix"; then
8020 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8021 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8023 $as_echo_n "checking for $ac_word... " >&6; }
8024 if ${ac_cv_prog_NMEDIT+:} false; then :
8025 $as_echo_n "(cached) " >&6
8027 if test -n "$NMEDIT"; then
8028 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8034 test -z "$as_dir" && as_dir=.
8035 for ac_exec_ext in '' $ac_executable_extensions; do
8036 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8037 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8038 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8047 NMEDIT=$ac_cv_prog_NMEDIT
8048 if test -n "$NMEDIT"; then
8049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8050 $as_echo "$NMEDIT" >&6; }
8052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8053 $as_echo "no" >&6; }
8058 if test -z "$ac_cv_prog_NMEDIT"; then
8059 ac_ct_NMEDIT=$NMEDIT
8060 # Extract the first word of "nmedit", so it can be a program name with args.
8061 set dummy nmedit; ac_word=$2
8062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8063 $as_echo_n "checking for $ac_word... " >&6; }
8064 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8065 $as_echo_n "(cached) " >&6
8067 if test -n "$ac_ct_NMEDIT"; then
8068 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8074 test -z "$as_dir" && as_dir=.
8075 for ac_exec_ext in '' $ac_executable_extensions; do
8076 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8077 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8078 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8087 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8088 if test -n "$ac_ct_NMEDIT"; then
8089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8090 $as_echo "$ac_ct_NMEDIT" >&6; }
8092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8093 $as_echo "no" >&6; }
8096 if test "x$ac_ct_NMEDIT" = x; then
8099 case $cross_compiling:$ac_tool_warned in
8101 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8102 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8103 ac_tool_warned=yes ;;
8105 NMEDIT=$ac_ct_NMEDIT
8108 NMEDIT="$ac_cv_prog_NMEDIT"
8111 if test -n "$ac_tool_prefix"; then
8112 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8113 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8115 $as_echo_n "checking for $ac_word... " >&6; }
8116 if ${ac_cv_prog_LIPO+:} false; then :
8117 $as_echo_n "(cached) " >&6
8119 if test -n "$LIPO"; then
8120 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8126 test -z "$as_dir" && as_dir=.
8127 for ac_exec_ext in '' $ac_executable_extensions; do
8128 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8129 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8130 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8139 LIPO=$ac_cv_prog_LIPO
8140 if test -n "$LIPO"; then
8141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8142 $as_echo "$LIPO" >&6; }
8144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8145 $as_echo "no" >&6; }
8150 if test -z "$ac_cv_prog_LIPO"; then
8152 # Extract the first word of "lipo", so it can be a program name with args.
8153 set dummy lipo; ac_word=$2
8154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8155 $as_echo_n "checking for $ac_word... " >&6; }
8156 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8157 $as_echo_n "(cached) " >&6
8159 if test -n "$ac_ct_LIPO"; then
8160 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8166 test -z "$as_dir" && as_dir=.
8167 for ac_exec_ext in '' $ac_executable_extensions; do
8168 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8169 ac_cv_prog_ac_ct_LIPO="lipo"
8170 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8179 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8180 if test -n "$ac_ct_LIPO"; then
8181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8182 $as_echo "$ac_ct_LIPO" >&6; }
8184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8185 $as_echo "no" >&6; }
8188 if test "x$ac_ct_LIPO" = x; then
8191 case $cross_compiling:$ac_tool_warned in
8193 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8194 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8195 ac_tool_warned=yes ;;
8200 LIPO="$ac_cv_prog_LIPO"
8203 if test -n "$ac_tool_prefix"; then
8204 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8205 set dummy ${ac_tool_prefix}otool; ac_word=$2
8206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8207 $as_echo_n "checking for $ac_word... " >&6; }
8208 if ${ac_cv_prog_OTOOL+:} false; then :
8209 $as_echo_n "(cached) " >&6
8211 if test -n "$OTOOL"; then
8212 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8218 test -z "$as_dir" && as_dir=.
8219 for ac_exec_ext in '' $ac_executable_extensions; do
8220 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8221 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8222 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8231 OTOOL=$ac_cv_prog_OTOOL
8232 if test -n "$OTOOL"; then
8233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8234 $as_echo "$OTOOL" >&6; }
8236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8237 $as_echo "no" >&6; }
8242 if test -z "$ac_cv_prog_OTOOL"; then
8244 # Extract the first word of "otool", so it can be a program name with args.
8245 set dummy otool; ac_word=$2
8246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8247 $as_echo_n "checking for $ac_word... " >&6; }
8248 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8249 $as_echo_n "(cached) " >&6
8251 if test -n "$ac_ct_OTOOL"; then
8252 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8258 test -z "$as_dir" && as_dir=.
8259 for ac_exec_ext in '' $ac_executable_extensions; do
8260 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8261 ac_cv_prog_ac_ct_OTOOL="otool"
8262 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8271 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8272 if test -n "$ac_ct_OTOOL"; then
8273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8274 $as_echo "$ac_ct_OTOOL" >&6; }
8276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8277 $as_echo "no" >&6; }
8280 if test "x$ac_ct_OTOOL" = x; then
8283 case $cross_compiling:$ac_tool_warned in
8285 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8286 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8287 ac_tool_warned=yes ;;
8292 OTOOL="$ac_cv_prog_OTOOL"
8295 if test -n "$ac_tool_prefix"; then
8296 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8297 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8299 $as_echo_n "checking for $ac_word... " >&6; }
8300 if ${ac_cv_prog_OTOOL64+:} false; then :
8301 $as_echo_n "(cached) " >&6
8303 if test -n "$OTOOL64"; then
8304 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8310 test -z "$as_dir" && as_dir=.
8311 for ac_exec_ext in '' $ac_executable_extensions; do
8312 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8313 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8314 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8323 OTOOL64=$ac_cv_prog_OTOOL64
8324 if test -n "$OTOOL64"; then
8325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8326 $as_echo "$OTOOL64" >&6; }
8328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8329 $as_echo "no" >&6; }
8334 if test -z "$ac_cv_prog_OTOOL64"; then
8335 ac_ct_OTOOL64=$OTOOL64
8336 # Extract the first word of "otool64", so it can be a program name with args.
8337 set dummy otool64; ac_word=$2
8338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8339 $as_echo_n "checking for $ac_word... " >&6; }
8340 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8341 $as_echo_n "(cached) " >&6
8343 if test -n "$ac_ct_OTOOL64"; then
8344 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8350 test -z "$as_dir" && as_dir=.
8351 for ac_exec_ext in '' $ac_executable_extensions; do
8352 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8353 ac_cv_prog_ac_ct_OTOOL64="otool64"
8354 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8363 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8364 if test -n "$ac_ct_OTOOL64"; then
8365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8366 $as_echo "$ac_ct_OTOOL64" >&6; }
8368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8369 $as_echo "no" >&6; }
8372 if test "x$ac_ct_OTOOL64" = x; then
8375 case $cross_compiling:$ac_tool_warned in
8377 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8378 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8379 ac_tool_warned=yes ;;
8381 OTOOL64=$ac_ct_OTOOL64
8384 OTOOL64="$ac_cv_prog_OTOOL64"
8413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8414 $as_echo_n "checking for -single_module linker flag... " >&6; }
8415 if ${lt_cv_apple_cc_single_mod+:} false; then :
8416 $as_echo_n "(cached) " >&6
8418 lt_cv_apple_cc_single_mod=no
8419 if test -z "${LT_MULTI_MODULE}"; then
8420 # By default we will add the -single_module flag. You can override
8421 # by either setting the environment variable LT_MULTI_MODULE
8422 # non-empty at configure time, or by adding -multi_module to the
8424 rm -rf libconftest.dylib*
8425 echo "int foo(void){return 1;}" > conftest.c
8426 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8427 -dynamiclib -Wl,-single_module conftest.c" >&5
8428 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8429 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8431 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8432 lt_cv_apple_cc_single_mod=yes
8434 cat conftest.err >&5
8436 rm -rf libconftest.dylib*
8440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8441 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8443 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8444 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8445 $as_echo_n "(cached) " >&6
8447 lt_cv_ld_exported_symbols_list=no
8448 save_LDFLAGS=$LDFLAGS
8449 echo "_main" > conftest.sym
8450 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8452 /* end confdefs.h. */
8462 if ac_fn_c_try_link "$LINENO"; then :
8463 lt_cv_ld_exported_symbols_list=yes
8465 lt_cv_ld_exported_symbols_list=no
8467 rm -f core conftest.err conftest.$ac_objext \
8468 conftest$ac_exeext conftest.$ac_ext
8469 LDFLAGS="$save_LDFLAGS"
8472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8473 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8475 rhapsody* | darwin1.[012])
8476 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8478 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8479 darwin*) # darwin 5.x on
8480 # if running on 10.5 or later, the deployment target defaults
8481 # to the OS version, if on x86, and 10.4, the deployment
8482 # target defaults to 10.4. Don't you love it?
8483 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8484 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8485 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8487 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8489 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8493 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8494 _lt_dar_single_mod='$single_module'
8496 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8497 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8499 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8501 if test "$DSYMUTIL" != ":"; then
8502 _lt_dsymutil='~$DSYMUTIL $lib || :'
8509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8510 $as_echo_n "checking for ANSI C header files... " >&6; }
8511 if ${ac_cv_header_stdc+:} false; then :
8512 $as_echo_n "(cached) " >&6
8514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8515 /* end confdefs.h. */
8529 if ac_fn_c_try_compile "$LINENO"; then :
8530 ac_cv_header_stdc=yes
8532 ac_cv_header_stdc=no
8534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8536 if test $ac_cv_header_stdc = yes; then
8537 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8539 /* end confdefs.h. */
8543 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8544 $EGREP "memchr" >/dev/null 2>&1; then :
8547 ac_cv_header_stdc=no
8553 if test $ac_cv_header_stdc = yes; then
8554 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8556 /* end confdefs.h. */
8560 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8561 $EGREP "free" >/dev/null 2>&1; then :
8564 ac_cv_header_stdc=no
8570 if test $ac_cv_header_stdc = yes; then
8571 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8572 if test "$cross_compiling" = yes; then :
8575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8576 /* end confdefs.h. */
8579 #if ((' ' & 0x0FF) == 0x020)
8580 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8581 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8583 # define ISLOWER(c) \
8584 (('a' <= (c) && (c) <= 'i') \
8585 || ('j' <= (c) && (c) <= 'r') \
8586 || ('s' <= (c) && (c) <= 'z'))
8587 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8590 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8595 for (i = 0; i < 256; i++)
8596 if (XOR (islower (i), ISLOWER (i))
8597 || toupper (i) != TOUPPER (i))
8602 if ac_fn_c_try_run "$LINENO"; then :
8605 ac_cv_header_stdc=no
8607 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8608 conftest.$ac_objext conftest.beam conftest.$ac_ext
8613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8614 $as_echo "$ac_cv_header_stdc" >&6; }
8615 if test $ac_cv_header_stdc = yes; then
8617 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8621 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8622 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8623 inttypes.h stdint.h unistd.h
8625 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8626 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8628 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8629 cat >>confdefs.h <<_ACEOF
8630 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8638 for ac_header in dlfcn.h
8640 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8642 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8643 cat >>confdefs.h <<_ACEOF
8644 #define HAVE_DLFCN_H 1
8654 ac_cpp='$CXXCPP $CPPFLAGS'
8655 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8656 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8657 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8658 if test -z "$CXX"; then
8659 if test -n "$CCC"; then
8662 if test -n "$ac_tool_prefix"; then
8663 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
8665 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8666 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8668 $as_echo_n "checking for $ac_word... " >&6; }
8669 if ${ac_cv_prog_CXX+:} false; then :
8670 $as_echo_n "(cached) " >&6
8672 if test -n "$CXX"; then
8673 ac_cv_prog_CXX="$CXX" # Let the user override the test.
8675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8679 test -z "$as_dir" && as_dir=.
8680 for ac_exec_ext in '' $ac_executable_extensions; do
8681 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8682 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
8683 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8693 if test -n "$CXX"; then
8694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
8695 $as_echo "$CXX" >&6; }
8697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8698 $as_echo "no" >&6; }
8702 test -n "$CXX" && break
8705 if test -z "$CXX"; then
8707 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
8709 # Extract the first word of "$ac_prog", so it can be a program name with args.
8710 set dummy $ac_prog; ac_word=$2
8711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8712 $as_echo_n "checking for $ac_word... " >&6; }
8713 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
8714 $as_echo_n "(cached) " >&6
8716 if test -n "$ac_ct_CXX"; then
8717 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
8719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8723 test -z "$as_dir" && as_dir=.
8724 for ac_exec_ext in '' $ac_executable_extensions; do
8725 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8726 ac_cv_prog_ac_ct_CXX="$ac_prog"
8727 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8736 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
8737 if test -n "$ac_ct_CXX"; then
8738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
8739 $as_echo "$ac_ct_CXX" >&6; }
8741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8742 $as_echo "no" >&6; }
8746 test -n "$ac_ct_CXX" && break
8749 if test "x$ac_ct_CXX" = x; then
8752 case $cross_compiling:$ac_tool_warned in
8754 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8755 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8756 ac_tool_warned=yes ;;
8764 # Provide some information about the compiler.
8765 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
8768 for ac_option in --version -v -V -qversion; do
8769 { { ac_try="$ac_compiler $ac_option >&5"
8771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8772 *) ac_try_echo=$ac_try;;
8774 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
8775 $as_echo "$ac_try_echo"; } >&5
8776 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
8778 if test -s conftest.err; then
8780 ... rest of stderr output deleted ...
8781 10q' conftest.err >conftest.er1
8782 cat conftest.er1 >&5
8784 rm -f conftest.er1 conftest.err
8785 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8786 test $ac_status = 0; }
8789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
8790 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
8791 if ${ac_cv_cxx_compiler_gnu+:} false; then :
8792 $as_echo_n "(cached) " >&6
8794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8795 /* end confdefs.h. */
8808 if ac_fn_cxx_try_compile "$LINENO"; then :
8813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8814 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
8817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
8818 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
8819 if test $ac_compiler_gnu = yes; then
8824 ac_test_CXXFLAGS=${CXXFLAGS+set}
8825 ac_save_CXXFLAGS=$CXXFLAGS
8826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
8827 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
8828 if ${ac_cv_prog_cxx_g+:} false; then :
8829 $as_echo_n "(cached) " >&6
8831 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
8832 ac_cxx_werror_flag=yes
8835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8836 /* end confdefs.h. */
8846 if ac_fn_cxx_try_compile "$LINENO"; then :
8847 ac_cv_prog_cxx_g=yes
8850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8851 /* end confdefs.h. */
8861 if ac_fn_cxx_try_compile "$LINENO"; then :
8864 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8867 /* end confdefs.h. */
8877 if ac_fn_cxx_try_compile "$LINENO"; then :
8878 ac_cv_prog_cxx_g=yes
8880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8885 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
8888 $as_echo "$ac_cv_prog_cxx_g" >&6; }
8889 if test "$ac_test_CXXFLAGS" = set; then
8890 CXXFLAGS=$ac_save_CXXFLAGS
8891 elif test $ac_cv_prog_cxx_g = yes; then
8892 if test "$GXX" = yes; then
8898 if test "$GXX" = yes; then
8905 ac_cpp='$CPP $CPPFLAGS'
8906 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8907 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8908 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8910 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
8911 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
8912 (test "X$CXX" != "Xg++"))) ; then
8914 ac_cpp='$CXXCPP $CPPFLAGS'
8915 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8916 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8917 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
8919 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
8920 if test -z "$CXXCPP"; then
8921 if ${ac_cv_prog_CXXCPP+:} false; then :
8922 $as_echo_n "(cached) " >&6
8924 # Double quotes because CXXCPP needs to be expanded
8925 for CXXCPP in "$CXX -E" "/lib/cpp"
8928 for ac_cxx_preproc_warn_flag in '' yes
8930 # Use a header file that comes with gcc, so configuring glibc
8931 # with a fresh cross-compiler works.
8932 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8933 # <limits.h> exists even on freestanding compilers.
8934 # On the NeXT, cc -E runs the code through the compiler's parser,
8935 # not just through cpp. "Syntax error" is here to catch this case.
8936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8937 /* end confdefs.h. */
8939 # include <limits.h>
8941 # include <assert.h>
8945 if ac_fn_cxx_try_cpp "$LINENO"; then :
8948 # Broken: fails on valid input.
8951 rm -f conftest.err conftest.i conftest.$ac_ext
8953 # OK, works on sane cases. Now check whether nonexistent headers
8954 # can be detected and how.
8955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8956 /* end confdefs.h. */
8957 #include <ac_nonexistent.h>
8959 if ac_fn_cxx_try_cpp "$LINENO"; then :
8960 # Broken: success on invalid input.
8963 # Passes both tests.
8967 rm -f conftest.err conftest.i conftest.$ac_ext
8970 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8971 rm -f conftest.i conftest.err conftest.$ac_ext
8972 if $ac_preproc_ok; then :
8977 ac_cv_prog_CXXCPP=$CXXCPP
8980 CXXCPP=$ac_cv_prog_CXXCPP
8982 ac_cv_prog_CXXCPP=$CXXCPP
8984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
8985 $as_echo "$CXXCPP" >&6; }
8987 for ac_cxx_preproc_warn_flag in '' yes
8989 # Use a header file that comes with gcc, so configuring glibc
8990 # with a fresh cross-compiler works.
8991 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8992 # <limits.h> exists even on freestanding compilers.
8993 # On the NeXT, cc -E runs the code through the compiler's parser,
8994 # not just through cpp. "Syntax error" is here to catch this case.
8995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8996 /* end confdefs.h. */
8998 # include <limits.h>
9000 # include <assert.h>
9004 if ac_fn_cxx_try_cpp "$LINENO"; then :
9007 # Broken: fails on valid input.
9010 rm -f conftest.err conftest.i conftest.$ac_ext
9012 # OK, works on sane cases. Now check whether nonexistent headers
9013 # can be detected and how.
9014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9015 /* end confdefs.h. */
9016 #include <ac_nonexistent.h>
9018 if ac_fn_cxx_try_cpp "$LINENO"; then :
9019 # Broken: success on invalid input.
9022 # Passes both tests.
9026 rm -f conftest.err conftest.i conftest.$ac_ext
9029 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9030 rm -f conftest.i conftest.err conftest.$ac_ext
9031 if $ac_preproc_ok; then :
9034 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9035 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9036 _lt_caught_CXX_error=yes; }
9040 ac_cpp='$CPP $CPPFLAGS'
9041 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9042 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9043 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9046 _lt_caught_CXX_error=yes
9054 # Check whether --enable-shared was given.
9055 if test "${enable_shared+set}" = set; then :
9056 enableval=$enable_shared; p=${PACKAGE-default}
9058 yes) enable_shared=yes ;;
9059 no) enable_shared=no ;;
9062 # Look at the argument we got. We use all the common list separators.
9063 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9064 for pkg in $enableval; do
9066 if test "X$pkg" = "X$p"; then
9083 # Check whether --enable-static was given.
9084 if test "${enable_static+set}" = set; then :
9085 enableval=$enable_static; p=${PACKAGE-default}
9087 yes) enable_static=yes ;;
9088 no) enable_static=no ;;
9091 # Look at the argument we got. We use all the common list separators.
9092 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9093 for pkg in $enableval; do
9095 if test "X$pkg" = "X$p"; then
9124 # Check whether --with-pic was given.
9125 if test "${with_pic+set}" = set; then :
9126 withval=$with_pic; pic_mode="$withval"
9132 test -z "$pic_mode" && pic_mode=default
9140 # Check whether --enable-fast-install was given.
9141 if test "${enable_fast_install+set}" = set; then :
9142 enableval=$enable_fast_install; p=${PACKAGE-default}
9144 yes) enable_fast_install=yes ;;
9145 no) enable_fast_install=no ;;
9147 enable_fast_install=no
9148 # Look at the argument we got. We use all the common list separators.
9149 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9150 for pkg in $enableval; do
9152 if test "X$pkg" = "X$p"; then
9153 enable_fast_install=yes
9160 enable_fast_install=yes
9173 # This can be used to rebuild libtool when needed
9174 LIBTOOL_DEPS="$ltmain"
9176 # Always use our own libtool.
9177 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9203 test -z "$LN_S" && LN_S="ln -s"
9218 if test -n "${ZSH_VERSION+set}" ; then
9219 setopt NO_GLOB_SUBST
9222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9223 $as_echo_n "checking for objdir... " >&6; }
9224 if ${lt_cv_objdir+:} false; then :
9225 $as_echo_n "(cached) " >&6
9227 rm -f .libs 2>/dev/null
9228 mkdir .libs 2>/dev/null
9229 if test -d .libs; then
9232 # MS-DOS does not allow filenames that begin with a dot.
9235 rmdir .libs 2>/dev/null
9237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9238 $as_echo "$lt_cv_objdir" >&6; }
9239 objdir=$lt_cv_objdir
9245 cat >>confdefs.h <<_ACEOF
9246 #define LT_OBJDIR "$lt_cv_objdir/"
9267 # AIX sometimes has problems with the GCC collect2 program. For some
9268 # reason, if we set the COLLECT_NAMES environment variable, the problems
9269 # vanish in a puff of smoke.
9270 if test "X${COLLECT_NAMES+set}" != Xset; then
9272 export COLLECT_NAMES
9277 # Sed substitution that helps us do robust quoting. It backslashifies
9278 # metacharacters that are still active within double-quoted strings.
9279 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
9281 # Same as above, but do not quote variable references.
9282 double_quote_subst='s/\(["`\\]\)/\\\1/g'
9284 # Sed substitution to delay expansion of an escaped shell variable in a
9285 # double_quote_subst'ed string.
9286 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
9288 # Sed substitution to delay expansion of an escaped single quote.
9289 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
9291 # Sed substitution to avoid accidental globbing in evaled expressions
9292 no_glob_subst='s/\*/\\\*/g'
9296 can_build_shared=yes
9298 # All known linkers require a `.a' archive for static linking (except MSVC,
9299 # which needs '.lib').
9302 with_gnu_ld="$lt_cv_prog_gnu_ld"
9305 old_CFLAGS="$CFLAGS"
9307 # Set sane defaults for various variables
9308 test -z "$CC" && CC=cc
9309 test -z "$LTCC" && LTCC=$CC
9310 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9311 test -z "$LD" && LD=ld
9312 test -z "$ac_objext" && ac_objext=o
9314 for cc_temp in $compiler""; do
9316 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9317 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9322 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9325 # Only perform the check for file, if the check method requires it
9326 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9327 case $deplibs_check_method in
9329 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9331 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9332 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9333 $as_echo_n "(cached) " >&6
9337 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9340 lt_save_MAGIC_CMD="$MAGIC_CMD"
9341 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9342 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9343 for ac_dir in $ac_dummy; do
9345 test -z "$ac_dir" && ac_dir=.
9346 if test -f $ac_dir/${ac_tool_prefix}file; then
9347 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9348 if test -n "$file_magic_test_file"; then
9349 case $deplibs_check_method in
9351 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9352 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9353 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9354 $EGREP "$file_magic_regex" > /dev/null; then
9359 *** Warning: the command libtool uses to detect shared libraries,
9360 *** $file_magic_cmd, produces output that libtool cannot recognize.
9361 *** The result is that libtool may fail to recognize shared libraries
9362 *** as such. This will affect the creation of libtool libraries that
9363 *** depend on shared libraries, but programs linked with such libtool
9364 *** libraries will work regardless of this problem. Nevertheless, you
9365 *** may want to report the problem to your system manager and/or to
9366 *** bug-libtool@gnu.org
9376 MAGIC_CMD="$lt_save_MAGIC_CMD"
9381 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9382 if test -n "$MAGIC_CMD"; then
9383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9384 $as_echo "$MAGIC_CMD" >&6; }
9386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9387 $as_echo "no" >&6; }
9394 if test -z "$lt_cv_path_MAGIC_CMD"; then
9395 if test -n "$ac_tool_prefix"; then
9396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9397 $as_echo_n "checking for file... " >&6; }
9398 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9399 $as_echo_n "(cached) " >&6
9403 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9406 lt_save_MAGIC_CMD="$MAGIC_CMD"
9407 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9408 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9409 for ac_dir in $ac_dummy; do
9411 test -z "$ac_dir" && ac_dir=.
9412 if test -f $ac_dir/file; then
9413 lt_cv_path_MAGIC_CMD="$ac_dir/file"
9414 if test -n "$file_magic_test_file"; then
9415 case $deplibs_check_method in
9417 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9418 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9419 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9420 $EGREP "$file_magic_regex" > /dev/null; then
9425 *** Warning: the command libtool uses to detect shared libraries,
9426 *** $file_magic_cmd, produces output that libtool cannot recognize.
9427 *** The result is that libtool may fail to recognize shared libraries
9428 *** as such. This will affect the creation of libtool libraries that
9429 *** depend on shared libraries, but programs linked with such libtool
9430 *** libraries will work regardless of this problem. Nevertheless, you
9431 *** may want to report the problem to your system manager and/or to
9432 *** bug-libtool@gnu.org
9442 MAGIC_CMD="$lt_save_MAGIC_CMD"
9447 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9448 if test -n "$MAGIC_CMD"; then
9449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9450 $as_echo "$MAGIC_CMD" >&6; }
9452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9453 $as_echo "no" >&6; }
9466 # Use C for the default configuration in the libtool script
9470 ac_cpp='$CPP $CPPFLAGS'
9471 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9472 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9473 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9476 # Source file extension for C test sources.
9479 # Object file extension for compiled C test sources.
9483 # Code to be used in simple compile tests
9484 lt_simple_compile_test_code="int some_variable = 0;"
9486 # Code to be used in simple link tests
9487 lt_simple_link_test_code='int main(){return(0);}'
9495 # If no C compiler was specified, use CC.
9498 # If no C compiler flags were specified, use CFLAGS.
9499 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9501 # Allow CC to be a program name with arguments.
9504 # Save the default compiler, since it gets overwritten when the other
9505 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9506 compiler_DEFAULT=$CC
9508 # save warnings/boilerplate of simple test code
9509 ac_outfile=conftest.$ac_objext
9510 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9511 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9512 _lt_compiler_boilerplate=`cat conftest.err`
9515 ac_outfile=conftest.$ac_objext
9516 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9517 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9518 _lt_linker_boilerplate=`cat conftest.err`
9523 ## There is no encapsulation within the following macros, do not change
9524 ## the running order or otherwise move them around unless you know exactly
9525 ## what you are doing...
9526 if test -n "$compiler"; then
9528 lt_prog_compiler_no_builtin_flag=
9530 if test "$GCC" = yes; then
9531 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
9533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9534 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9535 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9536 $as_echo_n "(cached) " >&6
9538 lt_cv_prog_compiler_rtti_exceptions=no
9539 ac_outfile=conftest.$ac_objext
9540 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9541 lt_compiler_flag="-fno-rtti -fno-exceptions"
9542 # Insert the option either (1) after the last *FLAGS variable, or
9543 # (2) before a word containing "conftest.", or (3) at the end.
9544 # Note that $ac_compile itself does not contain backslashes and begins
9545 # with a dollar sign (not a hyphen), so the echo should work correctly.
9546 # The option is referenced via a variable to avoid confusing sed.
9547 lt_compile=`echo "$ac_compile" | $SED \
9548 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9549 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9550 -e 's:$: $lt_compiler_flag:'`
9551 (eval echo "\"\$as_me:9551: $lt_compile\"" >&5)
9552 (eval "$lt_compile" 2>conftest.err)
9554 cat conftest.err >&5
9555 echo "$as_me:9555: \$? = $ac_status" >&5
9556 if (exit $ac_status) && test -s "$ac_outfile"; then
9557 # The compiler can only warn and ignore the option if not recognized
9558 # So say no if there are warnings other than the usual output.
9559 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9560 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9561 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9562 lt_cv_prog_compiler_rtti_exceptions=yes
9568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9569 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9571 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9572 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9584 lt_prog_compiler_wl=
9585 lt_prog_compiler_pic=
9586 lt_prog_compiler_static=
9588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9589 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9591 if test "$GCC" = yes; then
9592 lt_prog_compiler_wl='-Wl,'
9593 lt_prog_compiler_static='-static'
9597 # All AIX code is PIC.
9598 if test "$host_cpu" = ia64; then
9599 # AIX 5 now supports IA64 processor
9600 lt_prog_compiler_static='-Bstatic'
9607 # see comment about AmigaOS4 .so support
9608 lt_prog_compiler_pic='-fPIC'
9611 # FIXME: we need at least 68020 code to build shared libraries, but
9612 # adding the `-m68020' flag to GCC prevents building anything better,
9614 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9619 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9620 # PIC is the default for these OSes.
9623 mingw* | cygwin* | pw32* | os2* | cegcc*)
9624 # This hack is so that the source file can tell whether it is being
9625 # built for inclusion in a dll (and should export symbols for example).
9626 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9627 # (--disable-auto-import) libraries
9628 lt_prog_compiler_pic='-DDLL_EXPORT'
9631 darwin* | rhapsody*)
9632 # PIC is the default on this platform
9633 # Common symbols not allowed in MH_DYLIB files
9634 lt_prog_compiler_pic='-fno-common'
9638 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9639 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9640 # sets the default TLS model and affects inlining.
9646 lt_prog_compiler_pic='-fPIC'
9652 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9653 # Instead, we relocate shared libraries at runtime.
9657 # Just because we use GCC doesn't mean we suddenly get shared libraries
9658 # on systems that don't support them.
9659 lt_prog_compiler_can_build_shared=no
9664 # QNX uses GNU C++, but need to define -shared option too, otherwise
9666 lt_prog_compiler_pic='-fPIC -shared'
9670 if test -d /usr/nec; then
9671 lt_prog_compiler_pic=-Kconform_pic
9676 lt_prog_compiler_pic='-fPIC'
9680 # PORTME Check for flag to pass linker flags through the system compiler.
9683 lt_prog_compiler_wl='-Wl,'
9684 if test "$host_cpu" = ia64; then
9685 # AIX 5 now supports IA64 processor
9686 lt_prog_compiler_static='-Bstatic'
9688 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9692 mingw* | cygwin* | pw32* | os2* | cegcc*)
9693 # This hack is so that the source file can tell whether it is being
9694 # built for inclusion in a dll (and should export symbols for example).
9695 lt_prog_compiler_pic='-DDLL_EXPORT'
9698 hpux9* | hpux10* | hpux11*)
9699 lt_prog_compiler_wl='-Wl,'
9700 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9707 lt_prog_compiler_pic='+Z'
9710 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9711 lt_prog_compiler_static='${wl}-a ${wl}archive'
9714 irix5* | irix6* | nonstopux*)
9715 lt_prog_compiler_wl='-Wl,'
9716 # PIC (with -KPIC) is the default.
9717 lt_prog_compiler_static='-non_shared'
9720 linux* | k*bsd*-gnu)
9721 case $cc_basename in
9722 # old Intel for x86_64 which still supported -KPIC.
9724 lt_prog_compiler_wl='-Wl,'
9725 lt_prog_compiler_pic='-KPIC'
9726 lt_prog_compiler_static='-static'
9728 # icc used to be incompatible with GCC.
9729 # ICC 10 doesn't accept -KPIC any more.
9731 lt_prog_compiler_wl='-Wl,'
9732 lt_prog_compiler_pic='-fPIC'
9733 lt_prog_compiler_static='-static'
9735 # Lahey Fortran 8.1.
9737 lt_prog_compiler_wl='-Wl,'
9738 lt_prog_compiler_pic='--shared'
9739 lt_prog_compiler_static='--static'
9741 pgcc* | pgf77* | pgf90* | pgf95*)
9742 # Portland Group compilers (*not* the Pentium gcc compiler,
9743 # which looks to be a dead project)
9744 lt_prog_compiler_wl='-Wl,'
9745 lt_prog_compiler_pic='-fpic'
9746 lt_prog_compiler_static='-Bstatic'
9749 lt_prog_compiler_wl='-Wl,'
9750 # All Alpha code is PIC.
9751 lt_prog_compiler_static='-non_shared'
9754 # IBM XL C 8.0/Fortran 10.1 on PPC
9755 lt_prog_compiler_wl='-Wl,'
9756 lt_prog_compiler_pic='-qpic'
9757 lt_prog_compiler_static='-qstaticlink'
9760 case `$CC -V 2>&1 | sed 5q` in
9763 lt_prog_compiler_pic='-KPIC'
9764 lt_prog_compiler_static='-Bstatic'
9765 lt_prog_compiler_wl='-Wl,'
9768 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9769 lt_prog_compiler_pic='-KPIC'
9770 lt_prog_compiler_static='-Bstatic'
9771 lt_prog_compiler_wl=''
9779 lt_prog_compiler_pic='-KPIC'
9780 lt_prog_compiler_static='-Bstatic'
9784 # QNX uses GNU C++, but need to define -shared option too, otherwise
9786 lt_prog_compiler_pic='-fPIC -shared'
9789 osf3* | osf4* | osf5*)
9790 lt_prog_compiler_wl='-Wl,'
9791 # All OSF/1 code is PIC.
9792 lt_prog_compiler_static='-non_shared'
9796 lt_prog_compiler_static='-non_shared'
9800 lt_prog_compiler_pic='-KPIC'
9801 lt_prog_compiler_static='-Bstatic'
9802 case $cc_basename in
9804 lt_prog_compiler_wl='-Qoption ld ';;
9806 lt_prog_compiler_wl='-Wl,';;
9811 lt_prog_compiler_wl='-Qoption ld '
9812 lt_prog_compiler_pic='-PIC'
9813 lt_prog_compiler_static='-Bstatic'
9816 sysv4 | sysv4.2uw2* | sysv4.3*)
9817 lt_prog_compiler_wl='-Wl,'
9818 lt_prog_compiler_pic='-KPIC'
9819 lt_prog_compiler_static='-Bstatic'
9823 if test -d /usr/nec ;then
9824 lt_prog_compiler_pic='-Kconform_pic'
9825 lt_prog_compiler_static='-Bstatic'
9829 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9830 lt_prog_compiler_wl='-Wl,'
9831 lt_prog_compiler_pic='-KPIC'
9832 lt_prog_compiler_static='-Bstatic'
9836 lt_prog_compiler_wl='-Wl,'
9837 lt_prog_compiler_can_build_shared=no
9841 lt_prog_compiler_pic='-pic'
9842 lt_prog_compiler_static='-Bstatic'
9846 lt_prog_compiler_can_build_shared=no
9852 # For platforms which do not support PIC, -DPIC is meaningless:
9854 lt_prog_compiler_pic=
9857 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9861 $as_echo "$lt_prog_compiler_pic" >&6; }
9869 # Check to make sure the PIC flag actually works.
9871 if test -n "$lt_prog_compiler_pic"; then
9872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9873 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9874 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9875 $as_echo_n "(cached) " >&6
9877 lt_cv_prog_compiler_pic_works=no
9878 ac_outfile=conftest.$ac_objext
9879 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9880 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9881 # Insert the option either (1) after the last *FLAGS variable, or
9882 # (2) before a word containing "conftest.", or (3) at the end.
9883 # Note that $ac_compile itself does not contain backslashes and begins
9884 # with a dollar sign (not a hyphen), so the echo should work correctly.
9885 # The option is referenced via a variable to avoid confusing sed.
9886 lt_compile=`echo "$ac_compile" | $SED \
9887 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9888 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9889 -e 's:$: $lt_compiler_flag:'`
9890 (eval echo "\"\$as_me:9890: $lt_compile\"" >&5)
9891 (eval "$lt_compile" 2>conftest.err)
9893 cat conftest.err >&5
9894 echo "$as_me:9894: \$? = $ac_status" >&5
9895 if (exit $ac_status) && test -s "$ac_outfile"; then
9896 # The compiler can only warn and ignore the option if not recognized
9897 # So say no if there are warnings other than the usual output.
9898 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9899 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9900 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9901 lt_cv_prog_compiler_pic_works=yes
9907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9908 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9910 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9911 case $lt_prog_compiler_pic in
9913 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9916 lt_prog_compiler_pic=
9917 lt_prog_compiler_can_build_shared=no
9928 # Check to make sure the static flag actually works.
9930 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9932 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9933 if ${lt_cv_prog_compiler_static_works+:} false; then :
9934 $as_echo_n "(cached) " >&6
9936 lt_cv_prog_compiler_static_works=no
9937 save_LDFLAGS="$LDFLAGS"
9938 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9939 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9940 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9941 # The linker can only warn and ignore the option if not recognized
9942 # So say no if there are warnings
9943 if test -s conftest.err; then
9944 # Append any errors to the config.log.
9945 cat conftest.err 1>&5
9946 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9947 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9948 if diff conftest.exp conftest.er2 >/dev/null; then
9949 lt_cv_prog_compiler_static_works=yes
9952 lt_cv_prog_compiler_static_works=yes
9956 LDFLAGS="$save_LDFLAGS"
9959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9960 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9962 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9965 lt_prog_compiler_static=
9974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9975 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9976 if ${lt_cv_prog_compiler_c_o+:} false; then :
9977 $as_echo_n "(cached) " >&6
9979 lt_cv_prog_compiler_c_o=no
9980 $RM -r conftest 2>/dev/null
9984 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9986 lt_compiler_flag="-o out/conftest2.$ac_objext"
9987 # Insert the option either (1) after the last *FLAGS variable, or
9988 # (2) before a word containing "conftest.", or (3) at the end.
9989 # Note that $ac_compile itself does not contain backslashes and begins
9990 # with a dollar sign (not a hyphen), so the echo should work correctly.
9991 lt_compile=`echo "$ac_compile" | $SED \
9992 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9993 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9994 -e 's:$: $lt_compiler_flag:'`
9995 (eval echo "\"\$as_me:9995: $lt_compile\"" >&5)
9996 (eval "$lt_compile" 2>out/conftest.err)
9998 cat out/conftest.err >&5
9999 echo "$as_me:9999: \$? = $ac_status" >&5
10000 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10002 # The compiler can only warn and ignore the option if not recognized
10003 # So say no if there are warnings
10004 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
10005 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10006 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10007 lt_cv_prog_compiler_c_o=yes
10012 # SGI C++ compiler will create directory out/ii_files/ for
10013 # template instantiation
10014 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10015 $RM out/* && rmdir out
10021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10022 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10030 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10031 if ${lt_cv_prog_compiler_c_o+:} false; then :
10032 $as_echo_n "(cached) " >&6
10034 lt_cv_prog_compiler_c_o=no
10035 $RM -r conftest 2>/dev/null
10039 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10041 lt_compiler_flag="-o out/conftest2.$ac_objext"
10042 # Insert the option either (1) after the last *FLAGS variable, or
10043 # (2) before a word containing "conftest.", or (3) at the end.
10044 # Note that $ac_compile itself does not contain backslashes and begins
10045 # with a dollar sign (not a hyphen), so the echo should work correctly.
10046 lt_compile=`echo "$ac_compile" | $SED \
10047 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10048 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10049 -e 's:$: $lt_compiler_flag:'`
10050 (eval echo "\"\$as_me:10050: $lt_compile\"" >&5)
10051 (eval "$lt_compile" 2>out/conftest.err)
10053 cat out/conftest.err >&5
10054 echo "$as_me:10054: \$? = $ac_status" >&5
10055 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10057 # The compiler can only warn and ignore the option if not recognized
10058 # So say no if there are warnings
10059 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
10060 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10061 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10062 lt_cv_prog_compiler_c_o=yes
10067 # SGI C++ compiler will create directory out/ii_files/ for
10068 # template instantiation
10069 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10070 $RM out/* && rmdir out
10076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10077 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10082 hard_links="nottested"
10083 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10084 # do not overwrite the value of need_locks provided by the user
10085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10086 $as_echo_n "checking if we can lock with hard links... " >&6; }
10089 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10091 ln conftest.a conftest.b 2>&5 || hard_links=no
10092 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10094 $as_echo "$hard_links" >&6; }
10095 if test "$hard_links" = no; then
10096 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10097 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10110 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10113 allow_undefined_flag=
10114 always_export_symbols=no
10116 archive_expsym_cmds=
10117 compiler_needs_object=no
10118 enable_shared_with_static_runtimes=no
10119 export_dynamic_flag_spec=
10120 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10121 hardcode_automatic=no
10123 hardcode_direct_absolute=no
10124 hardcode_libdir_flag_spec=
10125 hardcode_libdir_flag_spec_ld=
10126 hardcode_libdir_separator=
10127 hardcode_minus_L=no
10128 hardcode_shlibpath_var=unsupported
10130 link_all_deplibs=unknown
10132 module_expsym_cmds=
10133 old_archive_from_new_cmds=
10134 old_archive_from_expsyms_cmds=
10135 thread_safe_flag_spec=
10136 whole_archive_flag_spec=
10137 # include_expsyms should be a list of space-separated symbols to be *always*
10138 # included in the symbol list
10140 # exclude_expsyms can be an extended regexp of symbols to exclude
10141 # it will be wrapped by ` (' and `)$', so one must not match beginning or
10142 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10143 # as well as any symbol that contains `d'.
10144 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10145 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10146 # platforms (ab)use it in PIC code, but their linkers get confused if
10147 # the symbol is explicitly referenced. Since portable code cannot
10148 # rely on this symbol name, it's probably fine to never include it in
10149 # preloaded symbol tables.
10150 # Exclude shared library initialization/finalization symbols.
10151 extract_expsyms_cmds=
10154 cygwin* | mingw* | pw32* | cegcc*)
10155 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10156 # When not using gcc, we currently assume that we are using
10157 # Microsoft Visual C++.
10158 if test "$GCC" != yes; then
10163 # we just hope/assume this is gcc and not c89 (= MSVC++)
10172 if test "$with_gnu_ld" = yes; then
10173 # If archive_cmds runs LD, not CC, wlarc should be empty
10176 # Set some defaults for GNU ld with shared library support. These
10177 # are reset later if shared libraries are not supported. Putting them
10178 # here allows them to be overridden if necessary.
10179 runpath_var=LD_RUN_PATH
10180 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10181 export_dynamic_flag_spec='${wl}--export-dynamic'
10182 # ancient GNU ld didn't support --whole-archive et. al.
10183 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10184 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10186 whole_archive_flag_spec=
10188 supports_anon_versioning=no
10189 case `$LD -v 2>&1` in
10190 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10191 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10192 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10193 *\ 2.11.*) ;; # other 2.11 versions
10194 *) supports_anon_versioning=yes ;;
10197 # See if GNU ld supports shared libraries.
10200 # On AIX/PPC, the GNU linker is very broken
10201 if test "$host_cpu" != ia64; then
10205 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
10206 *** to be unable to reliably create shared libraries on AIX.
10207 *** Therefore, libtool is disabling shared libraries support. If you
10208 *** really care for shared libraries, you may want to modify your PATH
10209 *** so that a non-GNU linker is found, and then restart.
10218 # see comment about AmigaOS4 .so support
10219 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10220 archive_expsym_cmds=''
10223 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)'
10224 hardcode_libdir_flag_spec='-L$libdir'
10225 hardcode_minus_L=yes
10231 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10232 allow_undefined_flag=unsupported
10233 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10234 # support --undefined. This deserves some investigation. FIXME
10235 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10241 cygwin* | mingw* | pw32* | cegcc*)
10242 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10243 # as there is no search path for DLLs.
10244 hardcode_libdir_flag_spec='-L$libdir'
10245 allow_undefined_flag=unsupported
10246 always_export_symbols=no
10247 enable_shared_with_static_runtimes=yes
10248 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10250 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10251 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10252 # If the export-symbols file already is a .def file (1st line
10253 # is EXPORTS), use it as is; otherwise, prepend...
10254 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10255 cp $export_symbols $output_objdir/$soname.def;
10257 echo EXPORTS > $output_objdir/$soname.def;
10258 cat $export_symbols >> $output_objdir/$soname.def;
10260 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10268 hardcode_shlibpath_var=no
10269 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10270 export_dynamic_flag_spec='${wl}-E'
10271 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10272 # Instead, shared libraries are loaded at an image base (0x10000000 by
10273 # default) and relocated if they conflict, which is a slow very memory
10274 # consuming and fragmenting process. To avoid this, we pick a random,
10275 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10276 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10277 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10278 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'
10281 gnu* | linux* | tpf* | k*bsd*-gnu)
10283 if test "$host_os" = linux-dietlibc; then
10284 case $cc_basename in
10285 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10288 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10289 && test "$tmp_diet" = no
10292 tmp_sharedflag='-shared'
10293 case $cc_basename,$host_cpu in
10294 pgcc*) # Portland Group C compiler
10295 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'
10296 tmp_addflag=' $pic_flag'
10298 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
10299 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'
10300 tmp_addflag=' $pic_flag -Mnomain' ;;
10301 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10302 tmp_addflag=' -i_dynamic' ;;
10303 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10304 tmp_addflag=' -i_dynamic -nofor_main' ;;
10305 ifc* | ifort*) # Intel Fortran compiler
10306 tmp_addflag=' -nofor_main' ;;
10307 lf95*) # Lahey Fortran 8.1
10308 whole_archive_flag_spec=
10309 tmp_sharedflag='--shared' ;;
10310 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10311 tmp_sharedflag='-qmkshrobj'
10314 case `$CC -V 2>&1 | sed 5q` in
10315 *Sun\ C*) # Sun C 5.9
10316 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'
10317 compiler_needs_object=yes
10318 tmp_sharedflag='-G' ;;
10319 *Sun\ F*) # Sun Fortran 8.3
10320 tmp_sharedflag='-G' ;;
10322 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10324 if test "x$supports_anon_versioning" = xyes; then
10325 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10326 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10327 echo "local: *; };" >> $output_objdir/$libname.ver~
10328 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10331 case $cc_basename in
10333 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10334 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10335 hardcode_libdir_flag_spec=
10336 hardcode_libdir_flag_spec_ld='-rpath $libdir'
10337 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
10338 if test "x$supports_anon_versioning" = xyes; then
10339 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10340 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10341 echo "local: *; };" >> $output_objdir/$libname.ver~
10342 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10352 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10353 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10356 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10357 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10362 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10366 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10367 *** create shared libraries on Solaris systems. Therefore, libtool
10368 *** is disabling shared libraries support. We urge you to upgrade GNU
10369 *** binutils to release 2.9.1 or newer. Another option is to modify
10370 *** your PATH or compiler configuration so that the native linker is
10371 *** used, and then restart.
10374 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10375 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10376 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10382 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10383 case `$LD -v 2>&1` in
10384 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10388 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10389 *** reliably create shared libraries on SCO systems. Therefore, libtool
10390 *** is disabling shared libraries support. We urge you to upgrade GNU
10391 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10392 *** your PATH or compiler configuration so that the native linker is
10393 *** used, and then restart.
10398 # For security reasons, it is highly recommended that you always
10399 # use absolute paths for naming shared libraries, and exclude the
10400 # DT_RUNPATH tag from executables and libraries. But doing so
10401 # requires that you compile everything twice, which is a pain.
10402 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10403 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10404 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10405 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10414 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10416 hardcode_direct=yes
10417 hardcode_shlibpath_var=no
10421 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10422 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10423 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10430 if test "$ld_shlibs" = no; then
10432 hardcode_libdir_flag_spec=
10433 export_dynamic_flag_spec=
10434 whole_archive_flag_spec=
10437 # PORTME fill in a description of your system's linker (not GNU ld)
10440 allow_undefined_flag=unsupported
10441 always_export_symbols=yes
10442 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'
10443 # Note: this linker hardcodes the directories in LIBPATH if there
10444 # are no directories specified by -L.
10445 hardcode_minus_L=yes
10446 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10447 # Neither direct hardcoding nor static linking is supported with a
10449 hardcode_direct=unsupported
10454 if test "$host_cpu" = ia64; then
10455 # On IA64, the linker does run time linking by default, so we don't
10456 # have to do anything special.
10457 aix_use_runtimelinking=no
10458 exp_sym_flag='-Bexport'
10461 # If we're using GNU nm, then we don't want the "-C" option.
10462 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10463 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10464 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'
10466 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'
10468 aix_use_runtimelinking=no
10470 # Test if we are trying to use run time linking or normal
10471 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10472 # need to do runtime linking.
10473 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10474 for ld_flag in $LDFLAGS; do
10475 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10476 aix_use_runtimelinking=yes
10483 exp_sym_flag='-bexport'
10484 no_entry_flag='-bnoentry'
10487 # When large executables or shared objects are built, AIX ld can
10488 # have problems creating the table of contents. If linking a library
10489 # or program results in "error TOC overflow" add -mminimal-toc to
10490 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10491 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10494 hardcode_direct=yes
10495 hardcode_direct_absolute=yes
10496 hardcode_libdir_separator=':'
10497 link_all_deplibs=yes
10498 file_list_spec='${wl}-f,'
10500 if test "$GCC" = yes; then
10501 case $host_os in aix4.[012]|aix4.[012].*)
10502 # We only want to do this on AIX 4.2 and lower, the check
10503 # below for broken collect2 doesn't work under 4.3+
10504 collect2name=`${CC} -print-prog-name=collect2`
10505 if test -f "$collect2name" &&
10506 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10508 # We have reworked collect2
10511 # We have old collect2
10512 hardcode_direct=unsupported
10513 # It fails to find uninstalled libraries when the uninstalled
10514 # path is not listed in the libpath. Setting hardcode_minus_L
10515 # to unsupported forces relinking
10516 hardcode_minus_L=yes
10517 hardcode_libdir_flag_spec='-L$libdir'
10518 hardcode_libdir_separator=
10522 shared_flag='-shared'
10523 if test "$aix_use_runtimelinking" = yes; then
10524 shared_flag="$shared_flag "'${wl}-G'
10528 if test "$host_cpu" = ia64; then
10529 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10530 # chokes on -Wl,-G. The following line is correct:
10533 if test "$aix_use_runtimelinking" = yes; then
10534 shared_flag='${wl}-G'
10536 shared_flag='${wl}-bM:SRE'
10541 export_dynamic_flag_spec='${wl}-bexpall'
10542 # It seems that -bexpall does not export symbols beginning with
10543 # underscore (_), so it is better to generate a list of symbols to export.
10544 always_export_symbols=yes
10545 if test "$aix_use_runtimelinking" = yes; then
10546 # Warning - without using the other runtime loading flags (-brtl),
10547 # -berok will link without error, but may produce a broken library.
10548 allow_undefined_flag='-berok'
10549 # Determine the default libpath from the value encoded in an
10550 # empty executable.
10551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10552 /* end confdefs.h. */
10562 if ac_fn_c_try_link "$LINENO"; then :
10564 lt_aix_libpath_sed='
10565 /Import File Strings/,/^$/ {
10571 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10572 # Check for a 64-bit object if we didn't find anything.
10573 if test -z "$aix_libpath"; then
10574 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10577 rm -f core conftest.err conftest.$ac_objext \
10578 conftest$ac_exeext conftest.$ac_ext
10579 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10581 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10582 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"
10584 if test "$host_cpu" = ia64; then
10585 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10586 allow_undefined_flag="-z nodefs"
10587 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"
10589 # Determine the default libpath from the value encoded in an
10590 # empty executable.
10591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10592 /* end confdefs.h. */
10602 if ac_fn_c_try_link "$LINENO"; then :
10604 lt_aix_libpath_sed='
10605 /Import File Strings/,/^$/ {
10611 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10612 # Check for a 64-bit object if we didn't find anything.
10613 if test -z "$aix_libpath"; then
10614 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10617 rm -f core conftest.err conftest.$ac_objext \
10618 conftest$ac_exeext conftest.$ac_ext
10619 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10621 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10622 # Warning - without using the other run time loading flags,
10623 # -berok will link without error, but may produce a broken library.
10624 no_undefined_flag=' ${wl}-bernotok'
10625 allow_undefined_flag=' ${wl}-berok'
10626 # Exported symbols can be pulled into shared objects from archives
10627 whole_archive_flag_spec='$convenience'
10628 archive_cmds_need_lc=yes
10629 # This is similar to how AIX traditionally builds its shared libraries.
10630 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'
10638 # see comment about AmigaOS4 .so support
10639 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10640 archive_expsym_cmds=''
10643 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)'
10644 hardcode_libdir_flag_spec='-L$libdir'
10645 hardcode_minus_L=yes
10651 export_dynamic_flag_spec=-rdynamic
10654 cygwin* | mingw* | pw32* | cegcc*)
10655 # When not using gcc, we currently assume that we are using
10656 # Microsoft Visual C++.
10657 # hardcode_libdir_flag_spec is actually meaningless, as there is
10658 # no search path for DLLs.
10659 hardcode_libdir_flag_spec=' '
10660 allow_undefined_flag=unsupported
10661 # Tell ltmain to make .lib files, not .a files.
10663 # Tell ltmain to make .dll files, not .so files.
10665 # FIXME: Setting linknames here is a bad hack.
10666 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
10667 # The linker will automatically build a .lib file if we build a DLL.
10668 old_archive_from_new_cmds='true'
10669 # FIXME: Should let the user specify the lib program.
10670 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10671 fix_srcfile_path='`cygpath -w "$srcfile"`'
10672 enable_shared_with_static_runtimes=yes
10675 darwin* | rhapsody*)
10678 archive_cmds_need_lc=no
10680 hardcode_automatic=yes
10681 hardcode_shlibpath_var=unsupported
10682 whole_archive_flag_spec=''
10683 link_all_deplibs=yes
10684 allow_undefined_flag="$_lt_dar_allow_undefined"
10685 case $cc_basename in
10686 ifort*) _lt_dar_can_shared=yes ;;
10687 *) _lt_dar_can_shared=$GCC ;;
10689 if test "$_lt_dar_can_shared" = "yes"; then
10690 output_verbose_link_cmd=echo
10691 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10692 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10693 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}"
10694 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}"
10703 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10704 hardcode_libdir_flag_spec='-L$libdir'
10705 hardcode_shlibpath_var=no
10712 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10713 # support. Future versions do this automatically, but an explicit c++rt0.o
10714 # does not break anything, and helps significantly (at the cost of a little
10717 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10718 hardcode_libdir_flag_spec='-R$libdir'
10719 hardcode_direct=yes
10720 hardcode_shlibpath_var=no
10723 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10725 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10726 hardcode_direct=yes
10727 hardcode_minus_L=yes
10728 hardcode_shlibpath_var=no
10731 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10732 freebsd* | dragonfly*)
10733 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10734 hardcode_libdir_flag_spec='-R$libdir'
10735 hardcode_direct=yes
10736 hardcode_shlibpath_var=no
10740 if test "$GCC" = yes; then
10741 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'
10743 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'
10745 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10746 hardcode_libdir_separator=:
10747 hardcode_direct=yes
10749 # hardcode_minus_L: Not really in the search PATH,
10750 # but as the default location of the library.
10751 hardcode_minus_L=yes
10752 export_dynamic_flag_spec='${wl}-E'
10756 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10757 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10759 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10761 if test "$with_gnu_ld" = no; then
10762 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10763 hardcode_libdir_flag_spec_ld='+b $libdir'
10764 hardcode_libdir_separator=:
10765 hardcode_direct=yes
10766 hardcode_direct_absolute=yes
10767 export_dynamic_flag_spec='${wl}-E'
10768 # hardcode_minus_L: Not really in the search PATH,
10769 # but as the default location of the library.
10770 hardcode_minus_L=yes
10775 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10778 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10781 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10784 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10790 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10793 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10796 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10800 if test "$with_gnu_ld" = no; then
10801 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10802 hardcode_libdir_separator=:
10807 hardcode_shlibpath_var=no
10810 hardcode_direct=yes
10811 hardcode_direct_absolute=yes
10812 export_dynamic_flag_spec='${wl}-E'
10814 # hardcode_minus_L: Not really in the search PATH,
10815 # but as the default location of the library.
10816 hardcode_minus_L=yes
10822 irix5* | irix6* | nonstopux*)
10823 if test "$GCC" = yes; then
10824 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'
10825 # Try to use the -exported_symbol ld option, if it does not
10826 # work, assume that -exports_file does not work either and
10827 # implicitly export all symbols.
10828 save_LDFLAGS="$LDFLAGS"
10829 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10831 /* end confdefs.h. */
10834 if ac_fn_c_try_link "$LINENO"; then :
10835 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'
10838 rm -f core conftest.err conftest.$ac_objext \
10839 conftest$ac_exeext conftest.$ac_ext
10840 LDFLAGS="$save_LDFLAGS"
10842 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'
10843 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'
10845 archive_cmds_need_lc='no'
10846 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10847 hardcode_libdir_separator=:
10849 link_all_deplibs=yes
10853 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10854 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10856 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10858 hardcode_libdir_flag_spec='-R$libdir'
10859 hardcode_direct=yes
10860 hardcode_shlibpath_var=no
10864 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10865 hardcode_direct=yes
10866 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10867 hardcode_libdir_separator=:
10868 hardcode_shlibpath_var=no
10875 if test -f /usr/libexec/ld.so; then
10876 hardcode_direct=yes
10877 hardcode_shlibpath_var=no
10878 hardcode_direct_absolute=yes
10879 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10880 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10881 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10882 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10883 export_dynamic_flag_spec='${wl}-E'
10886 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10887 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10888 hardcode_libdir_flag_spec='-R$libdir'
10891 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10892 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10902 hardcode_libdir_flag_spec='-L$libdir'
10903 hardcode_minus_L=yes
10904 allow_undefined_flag=unsupported
10905 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'
10906 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10910 if test "$GCC" = yes; then
10911 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10912 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'
10914 allow_undefined_flag=' -expect_unresolved \*'
10915 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'
10917 archive_cmds_need_lc='no'
10918 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10919 hardcode_libdir_separator=:
10922 osf4* | osf5*) # as osf3* with the addition of -msym flag
10923 if test "$GCC" = yes; then
10924 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10925 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'
10926 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10928 allow_undefined_flag=' -expect_unresolved \*'
10929 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'
10930 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~
10931 $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'
10933 # Both c and cxx compiler support -rpath directly
10934 hardcode_libdir_flag_spec='-rpath $libdir'
10936 archive_cmds_need_lc='no'
10937 hardcode_libdir_separator=:
10941 no_undefined_flag=' -z defs'
10942 if test "$GCC" = yes; then
10944 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10945 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10946 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10948 case `$CC -V 2>&1` in
10951 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10952 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10953 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10957 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10958 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10959 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10963 hardcode_libdir_flag_spec='-R$libdir'
10964 hardcode_shlibpath_var=no
10966 solaris2.[0-5] | solaris2.[0-5].*) ;;
10968 # The compiler driver will combine and reorder linker options,
10969 # but understands `-z linker_flag'. GCC discards it without `$wl',
10970 # but is careful enough not to reorder.
10971 # Supported since Solaris 2.6 (maybe 2.5.1?)
10972 if test "$GCC" = yes; then
10973 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10975 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10979 link_all_deplibs=yes
10983 if test "x$host_vendor" = xsequent; then
10984 # Use $CC to link under sequent, because it throws in some extra .o
10985 # files that make .init and .fini sections work.
10986 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10988 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10990 hardcode_libdir_flag_spec='-L$libdir'
10991 hardcode_direct=yes
10992 hardcode_minus_L=yes
10993 hardcode_shlibpath_var=no
10997 case $host_vendor in
10999 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11000 hardcode_direct=yes # is this really true???
11003 ## LD is ld it makes a PLAMLIB
11004 ## CC just makes a GrossModule.
11005 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11006 reload_cmds='$CC -r -o $output$reload_objs'
11010 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11011 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11014 runpath_var='LD_RUN_PATH'
11015 hardcode_shlibpath_var=no
11019 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11020 hardcode_shlibpath_var=no
11021 export_dynamic_flag_spec='-Bexport'
11025 if test -d /usr/nec; then
11026 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11027 hardcode_shlibpath_var=no
11028 runpath_var=LD_RUN_PATH
11029 hardcode_runpath_var=yes
11034 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11035 no_undefined_flag='${wl}-z,text'
11036 archive_cmds_need_lc=no
11037 hardcode_shlibpath_var=no
11038 runpath_var='LD_RUN_PATH'
11040 if test "$GCC" = yes; then
11041 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11042 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11044 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11045 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11049 sysv5* | sco3.2v5* | sco5v6*)
11050 # Note: We can NOT use -z defs as we might desire, because we do not
11051 # link with -lc, and that would cause any symbols used from libc to
11052 # always be unresolved, which means just about no library would
11053 # ever link correctly. If we're not using GNU ld we use -z text
11054 # though, which does catch some bad symbols but isn't as heavy-handed
11056 no_undefined_flag='${wl}-z,text'
11057 allow_undefined_flag='${wl}-z,nodefs'
11058 archive_cmds_need_lc=no
11059 hardcode_shlibpath_var=no
11060 hardcode_libdir_flag_spec='${wl}-R,$libdir'
11061 hardcode_libdir_separator=':'
11062 link_all_deplibs=yes
11063 export_dynamic_flag_spec='${wl}-Bexport'
11064 runpath_var='LD_RUN_PATH'
11066 if test "$GCC" = yes; then
11067 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11068 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11070 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11071 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11076 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11077 hardcode_libdir_flag_spec='-L$libdir'
11078 hardcode_shlibpath_var=no
11086 if test x$host_vendor = xsni; then
11088 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11089 export_dynamic_flag_spec='${wl}-Blargedynsym'
11095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11096 $as_echo "$ld_shlibs" >&6; }
11097 test "$ld_shlibs" = no && can_build_shared=no
11099 with_gnu_ld=$with_gnu_ld
11116 # Do we need to explicitly link libc?
11118 case "x$archive_cmds_need_lc" in
11120 # Assume -lc should be added
11121 archive_cmds_need_lc=yes
11123 if test "$enable_shared" = yes && test "$GCC" = yes; then
11124 case $archive_cmds in
11126 # FIXME: we may have to deal with multi-command sequences.
11129 # Test whether the compiler implicitly links with -lc since on some
11130 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11131 # to ld, don't add -lc before -lgcc.
11132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11133 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11135 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11137 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11138 (eval $ac_compile) 2>&5
11140 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11141 test $ac_status = 0; } 2>conftest.err; then
11144 libobjs=conftest.$ac_objext
11146 wl=$lt_prog_compiler_wl
11147 pic_flag=$lt_prog_compiler_pic
11153 lt_save_allow_undefined_flag=$allow_undefined_flag
11154 allow_undefined_flag=
11155 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11156 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11158 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11159 test $ac_status = 0; }
11161 archive_cmds_need_lc=no
11163 archive_cmds_need_lc=yes
11165 allow_undefined_flag=$lt_save_allow_undefined_flag
11167 cat conftest.err 1>&5
11170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
11171 $as_echo "$archive_cmds_need_lc" >&6; }
11334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11335 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11337 if test "$GCC" = yes; then
11339 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11340 *) lt_awk_arg="/^libraries:/" ;;
11342 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11343 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
11344 # if the path contains ";" then we assume it to be the separator
11345 # otherwise default to the standard path separator (i.e. ":") - it is
11346 # assumed that no part of a normal pathname contains ";" but that should
11347 # okay in the real world where ";" in dirpaths is itself problematic.
11348 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
11350 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11352 # Ok, now we have the path, separated by spaces, we can step through it
11353 # and add multilib dir if necessary.
11354 lt_tmp_lt_search_path_spec=
11355 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11356 for lt_sys_path in $lt_search_path_spec; do
11357 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11358 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11360 test -d "$lt_sys_path" && \
11361 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11364 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
11365 BEGIN {RS=" "; FS="/|\n";} {
11368 for (lt_i = NF; lt_i > 0; lt_i--) {
11369 if ($lt_i != "" && $lt_i != ".") {
11370 if ($lt_i == "..") {
11373 if (lt_count == 0) {
11374 lt_foo="/" $lt_i lt_foo;
11381 if (lt_foo != "") { lt_freq[lt_foo]++; }
11382 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11384 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
11386 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11388 library_names_spec=
11389 libname_spec='lib$name'
11393 postuninstall_cmds=
11397 shlibpath_overrides_runpath=unknown
11399 dynamic_linker="$host_os ld.so"
11400 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11401 need_lib_prefix=unknown
11402 hardcode_into_libs=no
11404 # when you set need_version to no, make sure it does not cause -set_version
11405 # flags to be left without arguments
11406 need_version=unknown
11411 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11412 shlibpath_var=LIBPATH
11414 # AIX 3 has no versioning support, so we append a major version to the name.
11415 soname_spec='${libname}${release}${shared_ext}$major'
11422 hardcode_into_libs=yes
11423 if test "$host_cpu" = ia64; then
11424 # AIX 5 supports IA64
11425 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11426 shlibpath_var=LD_LIBRARY_PATH
11428 # With GCC up to 2.95.x, collect2 would create an import file
11429 # for dependence libraries. The import file would start with
11430 # the line `#! .'. This would cause the generated library to
11431 # depend on `.', always an invalid library. This was fixed in
11432 # development snapshots of GCC prior to 3.0.
11434 aix4 | aix4.[01] | aix4.[01].*)
11435 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11437 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11440 can_build_shared=no
11444 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11445 # soname into executable. Probably we can add versioning support to
11446 # collect2, so additional links can be useful in future.
11447 if test "$aix_use_runtimelinking" = yes; then
11448 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11449 # instead of lib<name>.a to let people know that these are not
11450 # typical AIX shared libraries.
11451 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11453 # We preserve .a as extension for shared libraries through AIX4.2
11454 # and later when we are not doing run time linking.
11455 library_names_spec='${libname}${release}.a $libname.a'
11456 soname_spec='${libname}${release}${shared_ext}$major'
11458 shlibpath_var=LIBPATH
11465 # Since July 2007 AmigaOS4 officially supports .so libraries.
11466 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11467 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11470 library_names_spec='$libname.ixlibrary $libname.a'
11471 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11472 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'
11478 library_names_spec='${libname}${shared_ext}'
11479 dynamic_linker="$host_os ld.so"
11480 shlibpath_var=LIBRARY_PATH
11486 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11487 soname_spec='${libname}${release}${shared_ext}$major'
11488 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11489 shlibpath_var=LD_LIBRARY_PATH
11490 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11491 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11492 # the default ld.so.conf also contains /usr/contrib/lib and
11493 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11494 # libtool to hard-code these into programs
11497 cygwin* | mingw* | pw32* | cegcc*)
11498 version_type=windows
11503 case $GCC,$host_os in
11504 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11505 library_names_spec='$libname.dll.a'
11506 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11507 postinstall_cmds='base_file=`basename \${file}`~
11508 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11509 dldir=$destdir/`dirname \$dlpath`~
11510 test -d \$dldir || mkdir -p \$dldir~
11511 $install_prog $dir/$dlname \$dldir/$dlname~
11512 chmod a+x \$dldir/$dlname~
11513 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11514 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11516 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11517 dlpath=$dir/\$dldll~
11519 shlibpath_overrides_runpath=yes
11523 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11524 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11525 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11528 # MinGW DLLs use traditional 'lib' prefix
11529 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11530 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11531 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11532 # It is most probably a Windows format PATH printed by
11533 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11534 # path with ; separators, and with drive letters. We can handle the
11535 # drive letters (cygwin fileutils understands them), so leave them,
11536 # especially as we might pass files found there to a mingw objdump,
11537 # which wouldn't understand a cygwinified path. Ahh.
11538 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11540 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11544 # pw32 DLLs use 'pw' prefix rather than 'lib'
11545 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11551 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11554 dynamic_linker='Win32 ld.exe'
11555 # FIXME: first we should search . and the directory the executable is in
11559 darwin* | rhapsody*)
11560 dynamic_linker="$host_os dyld"
11561 version_type=darwin
11564 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11565 soname_spec='${libname}${release}${major}$shared_ext'
11566 shlibpath_overrides_runpath=yes
11567 shlibpath_var=DYLD_LIBRARY_PATH
11568 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11570 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11571 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11578 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11579 soname_spec='${libname}${release}${shared_ext}$major'
11580 shlibpath_var=LD_LIBRARY_PATH
11587 freebsd* | dragonfly*)
11588 # DragonFly does not have aout. When/if they implement a new
11589 # versioning mechanism, adjust this.
11590 if test -x /usr/bin/objformat; then
11591 objformat=`/usr/bin/objformat`
11594 freebsd[123]*) objformat=aout ;;
11595 *) objformat=elf ;;
11598 version_type=freebsd-$objformat
11599 case $version_type in
11601 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11606 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11610 shlibpath_var=LD_LIBRARY_PATH
11613 shlibpath_overrides_runpath=yes
11615 freebsd3.[01]* | freebsdelf3.[01]*)
11616 shlibpath_overrides_runpath=yes
11617 hardcode_into_libs=yes
11619 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11620 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11621 shlibpath_overrides_runpath=no
11622 hardcode_into_libs=yes
11624 *) # from 4.6 on, and DragonFly
11625 shlibpath_overrides_runpath=yes
11626 hardcode_into_libs=yes
11635 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11636 soname_spec='${libname}${release}${shared_ext}$major'
11637 shlibpath_var=LD_LIBRARY_PATH
11638 hardcode_into_libs=yes
11641 hpux9* | hpux10* | hpux11*)
11642 # Give a soname corresponding to the major version so that dld.sl refuses to
11643 # link against other versions.
11650 hardcode_into_libs=yes
11651 dynamic_linker="$host_os dld.so"
11652 shlibpath_var=LD_LIBRARY_PATH
11653 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11654 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11655 soname_spec='${libname}${release}${shared_ext}$major'
11656 if test "X$HPUX_IA64_MODE" = X32; then
11657 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11659 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11661 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11665 hardcode_into_libs=yes
11666 dynamic_linker="$host_os dld.sl"
11667 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11668 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11672 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11676 dynamic_linker="$host_os dld.sl"
11677 shlibpath_var=SHLIB_PATH
11678 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11679 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11680 soname_spec='${libname}${release}${shared_ext}$major'
11683 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11684 postinstall_cmds='chmod 555 $lib'
11691 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11692 soname_spec='${libname}${release}${shared_ext}$major'
11693 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11694 shlibpath_var=LD_LIBRARY_PATH
11695 shlibpath_overrides_runpath=no
11696 hardcode_into_libs=yes
11699 irix5* | irix6* | nonstopux*)
11701 nonstopux*) version_type=nonstopux ;;
11703 if test "$lt_cv_prog_gnu_ld" = yes; then
11711 soname_spec='${libname}${release}${shared_ext}$major'
11712 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11714 irix5* | nonstopux*)
11715 libsuff= shlibsuff=
11718 case $LD in # libtool.m4 will add one of these switches to LD
11719 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11720 libsuff= shlibsuff= libmagic=32-bit;;
11721 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11722 libsuff=32 shlibsuff=N32 libmagic=N32;;
11723 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11724 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11725 *) libsuff= shlibsuff= libmagic=never-match;;
11729 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11730 shlibpath_overrides_runpath=no
11731 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11732 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11733 hardcode_into_libs=yes
11736 # No shared lib support for Linux oldld, aout, or coff.
11737 linux*oldld* | linux*aout* | linux*coff*)
11741 # This must be Linux ELF.
11742 linux* | k*bsd*-gnu)
11746 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11747 soname_spec='${libname}${release}${shared_ext}$major'
11748 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11749 shlibpath_var=LD_LIBRARY_PATH
11750 shlibpath_overrides_runpath=no
11751 # Some binutils ld are patched to set DT_RUNPATH
11752 save_LDFLAGS=$LDFLAGS
11753 save_libdir=$libdir
11754 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11755 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11757 /* end confdefs.h. */
11767 if ac_fn_c_try_link "$LINENO"; then :
11768 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11769 shlibpath_overrides_runpath=yes
11772 rm -f core conftest.err conftest.$ac_objext \
11773 conftest$ac_exeext conftest.$ac_ext
11774 LDFLAGS=$save_LDFLAGS
11775 libdir=$save_libdir
11777 # This implies no fast_install, which is unacceptable.
11778 # Some rework will be needed to allow for fast_install
11779 # before this can be enabled.
11780 hardcode_into_libs=yes
11782 # Append ld.so.conf contents to the search path
11783 if test -f /etc/ld.so.conf; then
11784 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' ' '`
11785 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11788 # We used to test for /lib/ld.so.1 and disable shared libraries on
11789 # powerpc, because MkLinux only supported shared libraries with the
11790 # GNU dynamic linker. Since this was broken with cross compilers,
11791 # most powerpc-linux boxes support dynamic linking these days and
11792 # people can always --disable-shared, the test was removed, and we
11793 # assume the GNU/Linux dynamic linker is in use.
11794 dynamic_linker='GNU/Linux ld.so'
11801 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11802 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11803 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11804 dynamic_linker='NetBSD (a.out) ld.so'
11806 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11807 soname_spec='${libname}${release}${shared_ext}$major'
11808 dynamic_linker='NetBSD ld.elf_so'
11810 shlibpath_var=LD_LIBRARY_PATH
11811 shlibpath_overrides_runpath=yes
11812 hardcode_into_libs=yes
11817 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11818 shlibpath_var=LD_LIBRARY_PATH
11819 shlibpath_overrides_runpath=yes
11826 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11827 soname_spec='${libname}${release}${shared_ext}$major'
11828 shlibpath_var=LD_LIBRARY_PATH
11829 shlibpath_overrides_runpath=no
11830 hardcode_into_libs=yes
11831 dynamic_linker='ldqnx.so'
11836 sys_lib_dlsearch_path_spec="/usr/lib"
11838 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11840 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11841 *) need_version=no ;;
11843 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11844 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11845 shlibpath_var=LD_LIBRARY_PATH
11846 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11848 openbsd2.[89] | openbsd2.[89].*)
11849 shlibpath_overrides_runpath=no
11852 shlibpath_overrides_runpath=yes
11856 shlibpath_overrides_runpath=yes
11861 libname_spec='$name'
11864 library_names_spec='$libname${shared_ext} $libname.a'
11865 dynamic_linker='OS/2 ld.exe'
11866 shlibpath_var=LIBPATH
11869 osf3* | osf4* | osf5*)
11873 soname_spec='${libname}${release}${shared_ext}$major'
11874 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11875 shlibpath_var=LD_LIBRARY_PATH
11876 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11877 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11888 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11889 soname_spec='${libname}${release}${shared_ext}$major'
11890 shlibpath_var=LD_LIBRARY_PATH
11891 shlibpath_overrides_runpath=yes
11892 hardcode_into_libs=yes
11893 # ldd complains unless libraries are executable
11894 postinstall_cmds='chmod +x $lib'
11899 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11900 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11901 shlibpath_var=LD_LIBRARY_PATH
11902 shlibpath_overrides_runpath=yes
11903 if test "$with_gnu_ld" = yes; then
11911 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11912 soname_spec='${libname}${release}${shared_ext}$major'
11913 shlibpath_var=LD_LIBRARY_PATH
11914 case $host_vendor in
11916 shlibpath_overrides_runpath=no
11918 runpath_var=LD_RUN_PATH
11926 shlibpath_overrides_runpath=no
11927 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11933 if test -d /usr/nec ;then
11935 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11936 soname_spec='$libname${shared_ext}.$major'
11937 shlibpath_var=LD_LIBRARY_PATH
11941 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11942 version_type=freebsd-elf
11945 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11946 soname_spec='${libname}${release}${shared_ext}$major'
11947 shlibpath_var=LD_LIBRARY_PATH
11948 shlibpath_overrides_runpath=yes
11949 hardcode_into_libs=yes
11950 if test "$with_gnu_ld" = yes; then
11951 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11953 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11956 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11960 sys_lib_dlsearch_path_spec='/usr/lib'
11964 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11968 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11969 shlibpath_var=LD_LIBRARY_PATH
11970 shlibpath_overrides_runpath=no
11971 hardcode_into_libs=yes
11976 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11977 soname_spec='${libname}${release}${shared_ext}$major'
11978 shlibpath_var=LD_LIBRARY_PATH
11985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11986 $as_echo "$dynamic_linker" >&6; }
11987 test "$dynamic_linker" = no && can_build_shared=no
11989 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11990 if test "$GCC" = yes; then
11991 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11994 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11995 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11997 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11998 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12088 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12090 if test -n "$hardcode_libdir_flag_spec" ||
12091 test -n "$runpath_var" ||
12092 test "X$hardcode_automatic" = "Xyes" ; then
12094 # We can hardcode non-existent directories.
12095 if test "$hardcode_direct" != no &&
12096 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12097 # have to relink, otherwise we might link with an installed library
12098 # when we should be linking with a yet-to-be-installed one
12099 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12100 test "$hardcode_minus_L" != no; then
12101 # Linking always hardcodes the temporary library directory.
12102 hardcode_action=relink
12104 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12105 hardcode_action=immediate
12108 # We cannot hardcode anything, or else we can only hardcode existing
12110 hardcode_action=unsupported
12112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12113 $as_echo "$hardcode_action" >&6; }
12115 if test "$hardcode_action" = relink ||
12116 test "$inherit_rpath" = yes; then
12117 # Fast installation is not supported
12118 enable_fast_install=no
12119 elif test "$shlibpath_overrides_runpath" = yes ||
12120 test "$enable_shared" = no; then
12121 # Fast installation is not necessary
12122 enable_fast_install=needless
12130 if test "x$enable_dlopen" != xyes; then
12131 enable_dlopen=unknown
12132 enable_dlopen_self=unknown
12133 enable_dlopen_self_static=unknown
12140 lt_cv_dlopen="load_add_on"
12142 lt_cv_dlopen_self=yes
12145 mingw* | pw32* | cegcc*)
12146 lt_cv_dlopen="LoadLibrary"
12151 lt_cv_dlopen="dlopen"
12156 # if libdl is installed we need to link against it
12157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12158 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12159 if ${ac_cv_lib_dl_dlopen+:} false; then :
12160 $as_echo_n "(cached) " >&6
12162 ac_check_lib_save_LIBS=$LIBS
12164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12165 /* end confdefs.h. */
12167 /* Override any GCC internal prototype to avoid an error.
12168 Use char because int might match the return type of a GCC
12169 builtin and then its argument prototype would still apply. */
12182 if ac_fn_c_try_link "$LINENO"; then :
12183 ac_cv_lib_dl_dlopen=yes
12185 ac_cv_lib_dl_dlopen=no
12187 rm -f core conftest.err conftest.$ac_objext \
12188 conftest$ac_exeext conftest.$ac_ext
12189 LIBS=$ac_check_lib_save_LIBS
12191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12192 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12193 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12194 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12197 lt_cv_dlopen="dyld"
12199 lt_cv_dlopen_self=yes
12206 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12207 if test "x$ac_cv_func_shl_load" = xyes; then :
12208 lt_cv_dlopen="shl_load"
12210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12211 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12212 if ${ac_cv_lib_dld_shl_load+:} false; then :
12213 $as_echo_n "(cached) " >&6
12215 ac_check_lib_save_LIBS=$LIBS
12217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12218 /* end confdefs.h. */
12220 /* Override any GCC internal prototype to avoid an error.
12221 Use char because int might match the return type of a GCC
12222 builtin and then its argument prototype would still apply. */
12230 return shl_load ();
12235 if ac_fn_c_try_link "$LINENO"; then :
12236 ac_cv_lib_dld_shl_load=yes
12238 ac_cv_lib_dld_shl_load=no
12240 rm -f core conftest.err conftest.$ac_objext \
12241 conftest$ac_exeext conftest.$ac_ext
12242 LIBS=$ac_check_lib_save_LIBS
12244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12245 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12246 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12247 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12249 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12250 if test "x$ac_cv_func_dlopen" = xyes; then :
12251 lt_cv_dlopen="dlopen"
12253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12254 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12255 if ${ac_cv_lib_dl_dlopen+:} false; then :
12256 $as_echo_n "(cached) " >&6
12258 ac_check_lib_save_LIBS=$LIBS
12260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12261 /* end confdefs.h. */
12263 /* Override any GCC internal prototype to avoid an error.
12264 Use char because int might match the return type of a GCC
12265 builtin and then its argument prototype would still apply. */
12278 if ac_fn_c_try_link "$LINENO"; then :
12279 ac_cv_lib_dl_dlopen=yes
12281 ac_cv_lib_dl_dlopen=no
12283 rm -f core conftest.err conftest.$ac_objext \
12284 conftest$ac_exeext conftest.$ac_ext
12285 LIBS=$ac_check_lib_save_LIBS
12287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12288 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12289 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12290 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12293 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12294 if ${ac_cv_lib_svld_dlopen+:} false; then :
12295 $as_echo_n "(cached) " >&6
12297 ac_check_lib_save_LIBS=$LIBS
12298 LIBS="-lsvld $LIBS"
12299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12300 /* end confdefs.h. */
12302 /* Override any GCC internal prototype to avoid an error.
12303 Use char because int might match the return type of a GCC
12304 builtin and then its argument prototype would still apply. */
12317 if ac_fn_c_try_link "$LINENO"; then :
12318 ac_cv_lib_svld_dlopen=yes
12320 ac_cv_lib_svld_dlopen=no
12322 rm -f core conftest.err conftest.$ac_objext \
12323 conftest$ac_exeext conftest.$ac_ext
12324 LIBS=$ac_check_lib_save_LIBS
12326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12327 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12328 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12329 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12332 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12333 if ${ac_cv_lib_dld_dld_link+:} false; then :
12334 $as_echo_n "(cached) " >&6
12336 ac_check_lib_save_LIBS=$LIBS
12338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12339 /* end confdefs.h. */
12341 /* Override any GCC internal prototype to avoid an error.
12342 Use char because int might match the return type of a GCC
12343 builtin and then its argument prototype would still apply. */
12351 return dld_link ();
12356 if ac_fn_c_try_link "$LINENO"; then :
12357 ac_cv_lib_dld_dld_link=yes
12359 ac_cv_lib_dld_dld_link=no
12361 rm -f core conftest.err conftest.$ac_objext \
12362 conftest$ac_exeext conftest.$ac_ext
12363 LIBS=$ac_check_lib_save_LIBS
12365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12366 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12367 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12368 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12389 if test "x$lt_cv_dlopen" != xno; then
12395 case $lt_cv_dlopen in
12397 save_CPPFLAGS="$CPPFLAGS"
12398 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12400 save_LDFLAGS="$LDFLAGS"
12401 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12404 LIBS="$lt_cv_dlopen_libs $LIBS"
12406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12407 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12408 if ${lt_cv_dlopen_self+:} false; then :
12409 $as_echo_n "(cached) " >&6
12411 if test "$cross_compiling" = yes; then :
12412 lt_cv_dlopen_self=cross
12414 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12415 lt_status=$lt_dlunknown
12416 cat > conftest.$ac_ext <<_LT_EOF
12417 #line 12417 "configure"
12418 #include "confdefs.h"
12427 # define LT_DLGLOBAL RTLD_GLOBAL
12430 # define LT_DLGLOBAL DL_GLOBAL
12432 # define LT_DLGLOBAL 0
12436 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12437 find out it does not work in some platform. */
12438 #ifndef LT_DLLAZY_OR_NOW
12440 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12443 # define LT_DLLAZY_OR_NOW DL_LAZY
12446 # define LT_DLLAZY_OR_NOW RTLD_NOW
12449 # define LT_DLLAZY_OR_NOW DL_NOW
12451 # define LT_DLLAZY_OR_NOW 0
12458 void fnord() { int i=42;}
12461 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12462 int status = $lt_dlunknown;
12466 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12467 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12468 /* dlclose (self); */
12476 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12477 (eval $ac_link) 2>&5
12479 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12480 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12481 (./conftest; exit; ) >&5 2>/dev/null
12483 case x$lt_status in
12484 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12485 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12486 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12489 # compilation failed
12490 lt_cv_dlopen_self=no
12497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12498 $as_echo "$lt_cv_dlopen_self" >&6; }
12500 if test "x$lt_cv_dlopen_self" = xyes; then
12501 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12503 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12504 if ${lt_cv_dlopen_self_static+:} false; then :
12505 $as_echo_n "(cached) " >&6
12507 if test "$cross_compiling" = yes; then :
12508 lt_cv_dlopen_self_static=cross
12510 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12511 lt_status=$lt_dlunknown
12512 cat > conftest.$ac_ext <<_LT_EOF
12513 #line 12513 "configure"
12514 #include "confdefs.h"
12523 # define LT_DLGLOBAL RTLD_GLOBAL
12526 # define LT_DLGLOBAL DL_GLOBAL
12528 # define LT_DLGLOBAL 0
12532 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12533 find out it does not work in some platform. */
12534 #ifndef LT_DLLAZY_OR_NOW
12536 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12539 # define LT_DLLAZY_OR_NOW DL_LAZY
12542 # define LT_DLLAZY_OR_NOW RTLD_NOW
12545 # define LT_DLLAZY_OR_NOW DL_NOW
12547 # define LT_DLLAZY_OR_NOW 0
12554 void fnord() { int i=42;}
12557 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12558 int status = $lt_dlunknown;
12562 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12563 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12564 /* dlclose (self); */
12572 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12573 (eval $ac_link) 2>&5
12575 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12576 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12577 (./conftest; exit; ) >&5 2>/dev/null
12579 case x$lt_status in
12580 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12581 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12582 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12585 # compilation failed
12586 lt_cv_dlopen_self_static=no
12593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12594 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12597 CPPFLAGS="$save_CPPFLAGS"
12598 LDFLAGS="$save_LDFLAGS"
12603 case $lt_cv_dlopen_self in
12604 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12605 *) enable_dlopen_self=unknown ;;
12608 case $lt_cv_dlopen_self_static in
12609 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12610 *) enable_dlopen_self_static=unknown ;;
12632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12633 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12634 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12635 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12636 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12638 $as_echo "yes" >&6; }
12640 # FIXME - insert some real tests, host_os isn't really good enough
12643 if test -n "$STRIP" ; then
12644 striplib="$STRIP -x"
12645 old_striplib="$STRIP -S"
12646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12647 $as_echo "yes" >&6; }
12649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12650 $as_echo "no" >&6; }
12654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12655 $as_echo "no" >&6; }
12671 # Report which library types will actually be built
12672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12673 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12675 $as_echo "$can_build_shared" >&6; }
12677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12678 $as_echo_n "checking whether to build shared libraries... " >&6; }
12679 test "$can_build_shared" = "no" && enable_shared=no
12681 # On AIX, shared libraries and static libraries use the same namespace, and
12682 # are all built from PIC.
12685 test "$enable_shared" = yes && enable_static=no
12686 if test -n "$RANLIB"; then
12687 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12688 postinstall_cmds='$RANLIB $lib'
12693 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12694 test "$enable_shared" = yes && enable_static=no
12698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12699 $as_echo "$enable_shared" >&6; }
12701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12702 $as_echo_n "checking whether to build static libraries... " >&6; }
12703 # Make sure either enable_shared or enable_static is yes.
12704 test "$enable_shared" = yes || enable_static=yes
12705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12706 $as_echo "$enable_static" >&6; }
12713 ac_cpp='$CPP $CPPFLAGS'
12714 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12715 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12716 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12722 ac_cpp='$CXXCPP $CPPFLAGS'
12723 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12724 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12725 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12727 archive_cmds_need_lc_CXX=no
12728 allow_undefined_flag_CXX=
12729 always_export_symbols_CXX=no
12730 archive_expsym_cmds_CXX=
12731 compiler_needs_object_CXX=no
12732 export_dynamic_flag_spec_CXX=
12733 hardcode_direct_CXX=no
12734 hardcode_direct_absolute_CXX=no
12735 hardcode_libdir_flag_spec_CXX=
12736 hardcode_libdir_flag_spec_ld_CXX=
12737 hardcode_libdir_separator_CXX=
12738 hardcode_minus_L_CXX=no
12739 hardcode_shlibpath_var_CXX=unsupported
12740 hardcode_automatic_CXX=no
12741 inherit_rpath_CXX=no
12743 module_expsym_cmds_CXX=
12744 link_all_deplibs_CXX=unknown
12745 old_archive_cmds_CXX=$old_archive_cmds
12746 no_undefined_flag_CXX=
12747 whole_archive_flag_spec_CXX=
12748 enable_shared_with_static_runtimes_CXX=no
12750 # Source file extension for C++ test sources.
12753 # Object file extension for compiled C++ test sources.
12757 # No sense in running all these tests if we already determined that
12758 # the CXX compiler isn't working. Some variables (like enable_shared)
12759 # are currently assumed to apply to all compilers on this platform,
12760 # and will be corrupted by setting them based on a non-working compiler.
12761 if test "$_lt_caught_CXX_error" != yes; then
12762 # Code to be used in simple compile tests
12763 lt_simple_compile_test_code="int some_variable = 0;"
12765 # Code to be used in simple link tests
12766 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12768 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12775 # If no C compiler was specified, use CC.
12778 # If no C compiler flags were specified, use CFLAGS.
12779 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12781 # Allow CC to be a program name with arguments.
12785 # save warnings/boilerplate of simple test code
12786 ac_outfile=conftest.$ac_objext
12787 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12788 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12789 _lt_compiler_boilerplate=`cat conftest.err`
12792 ac_outfile=conftest.$ac_objext
12793 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12794 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12795 _lt_linker_boilerplate=`cat conftest.err`
12799 # Allow CC to be a program name with arguments.
12804 lt_save_with_gnu_ld=$with_gnu_ld
12805 lt_save_path_LD=$lt_cv_path_LD
12806 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12807 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12809 $as_unset lt_cv_prog_gnu_ld
12811 if test -n "${lt_cv_path_LDCXX+set}"; then
12812 lt_cv_path_LD=$lt_cv_path_LDCXX
12814 $as_unset lt_cv_path_LD
12816 test -z "${LDCXX+set}" || LD=$LDCXX
12820 for cc_temp in $compiler""; do
12822 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12823 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12828 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12831 if test -n "$compiler"; then
12832 # We don't want -fno-exception when compiling C++ code, so set the
12833 # no_builtin_flag separately
12834 if test "$GXX" = yes; then
12835 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12837 lt_prog_compiler_no_builtin_flag_CXX=
12840 if test "$GXX" = yes; then
12841 # Set up default GNU C++ configuration
12845 # Check whether --with-gnu-ld was given.
12846 if test "${with_gnu_ld+set}" = set; then :
12847 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12853 if test "$GCC" = yes; then
12854 # Check if gcc -print-prog-name=ld gives a path.
12855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12856 $as_echo_n "checking for ld used by $CC... " >&6; }
12859 # gcc leaves a trailing carriage return which upsets mingw
12860 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12862 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12865 # Accept absolute paths.
12867 re_direlt='/[^/][^/]*/\.\./'
12868 # Canonicalize the pathname of ld
12869 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12870 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12871 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12873 test -z "$LD" && LD="$ac_prog"
12876 # If it fails, then pretend we aren't using GCC.
12880 # If it is relative, then search for the first ld in PATH.
12881 with_gnu_ld=unknown
12884 elif test "$with_gnu_ld" = yes; then
12885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12886 $as_echo_n "checking for GNU ld... " >&6; }
12888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12889 $as_echo_n "checking for non-GNU ld... " >&6; }
12891 if ${lt_cv_path_LD+:} false; then :
12892 $as_echo_n "(cached) " >&6
12894 if test -z "$LD"; then
12895 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12896 for ac_dir in $PATH; do
12898 test -z "$ac_dir" && ac_dir=.
12899 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12900 lt_cv_path_LD="$ac_dir/$ac_prog"
12901 # Check to see if the program is GNU ld. I'd rather use --version,
12902 # but apparently some variants of GNU ld only accept -v.
12903 # Break only if it was the GNU/non-GNU ld that we prefer.
12904 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12905 *GNU* | *'with BFD'*)
12906 test "$with_gnu_ld" != no && break
12909 test "$with_gnu_ld" != yes && break
12916 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12920 LD="$lt_cv_path_LD"
12921 if test -n "$LD"; then
12922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12923 $as_echo "$LD" >&6; }
12925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12926 $as_echo "no" >&6; }
12928 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12930 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12931 if ${lt_cv_prog_gnu_ld+:} false; then :
12932 $as_echo_n "(cached) " >&6
12934 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12935 case `$LD -v 2>&1 </dev/null` in
12936 *GNU* | *'with BFD'*)
12937 lt_cv_prog_gnu_ld=yes
12940 lt_cv_prog_gnu_ld=no
12944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12945 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12946 with_gnu_ld=$lt_cv_prog_gnu_ld
12954 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12955 # archiving commands below assume that GNU ld is being used.
12956 if test "$with_gnu_ld" = yes; then
12957 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12958 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'
12960 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12961 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12963 # If archive_cmds runs LD, not CC, wlarc should be empty
12964 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12965 # investigate it a little bit more. (MM)
12968 # ancient GNU ld didn't support --whole-archive et. al.
12969 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12970 $GREP 'no-whole-archive' > /dev/null; then
12971 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12973 whole_archive_flag_spec_CXX=
12979 # A generic and very simple default shared library creation
12980 # command for GNU C++ for the case where it uses the native
12981 # linker, instead of GNU ld. If possible, this setting should
12982 # overridden to take advantage of the native linker features on
12983 # the platform it is being used on.
12984 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12987 # Commands to make compiler produce verbose output that lists
12988 # what "hidden" libraries, object files and flags are used when
12989 # linking a shared library.
12990 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12998 # PORTME: fill in a description of your system's C++ link characteristics
12999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13000 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13004 # FIXME: insert proper C++ library support
13008 if test "$host_cpu" = ia64; then
13009 # On IA64, the linker does run time linking by default, so we don't
13010 # have to do anything special.
13011 aix_use_runtimelinking=no
13012 exp_sym_flag='-Bexport'
13015 aix_use_runtimelinking=no
13017 # Test if we are trying to use run time linking or normal
13018 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13019 # need to do runtime linking.
13020 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13021 for ld_flag in $LDFLAGS; do
13024 aix_use_runtimelinking=yes
13032 exp_sym_flag='-bexport'
13033 no_entry_flag='-bnoentry'
13036 # When large executables or shared objects are built, AIX ld can
13037 # have problems creating the table of contents. If linking a library
13038 # or program results in "error TOC overflow" add -mminimal-toc to
13039 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13040 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13042 archive_cmds_CXX=''
13043 hardcode_direct_CXX=yes
13044 hardcode_direct_absolute_CXX=yes
13045 hardcode_libdir_separator_CXX=':'
13046 link_all_deplibs_CXX=yes
13047 file_list_spec_CXX='${wl}-f,'
13049 if test "$GXX" = yes; then
13050 case $host_os in aix4.[012]|aix4.[012].*)
13051 # We only want to do this on AIX 4.2 and lower, the check
13052 # below for broken collect2 doesn't work under 4.3+
13053 collect2name=`${CC} -print-prog-name=collect2`
13054 if test -f "$collect2name" &&
13055 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13057 # We have reworked collect2
13060 # We have old collect2
13061 hardcode_direct_CXX=unsupported
13062 # It fails to find uninstalled libraries when the uninstalled
13063 # path is not listed in the libpath. Setting hardcode_minus_L
13064 # to unsupported forces relinking
13065 hardcode_minus_L_CXX=yes
13066 hardcode_libdir_flag_spec_CXX='-L$libdir'
13067 hardcode_libdir_separator_CXX=
13070 shared_flag='-shared'
13071 if test "$aix_use_runtimelinking" = yes; then
13072 shared_flag="$shared_flag "'${wl}-G'
13076 if test "$host_cpu" = ia64; then
13077 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13078 # chokes on -Wl,-G. The following line is correct:
13081 if test "$aix_use_runtimelinking" = yes; then
13082 shared_flag='${wl}-G'
13084 shared_flag='${wl}-bM:SRE'
13089 export_dynamic_flag_spec_CXX='${wl}-bexpall'
13090 # It seems that -bexpall does not export symbols beginning with
13091 # underscore (_), so it is better to generate a list of symbols to
13093 always_export_symbols_CXX=yes
13094 if test "$aix_use_runtimelinking" = yes; then
13095 # Warning - without using the other runtime loading flags (-brtl),
13096 # -berok will link without error, but may produce a broken library.
13097 allow_undefined_flag_CXX='-berok'
13098 # Determine the default libpath from the value encoded in an empty
13100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13101 /* end confdefs.h. */
13111 if ac_fn_cxx_try_link "$LINENO"; then :
13113 lt_aix_libpath_sed='
13114 /Import File Strings/,/^$/ {
13120 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13121 # Check for a 64-bit object if we didn't find anything.
13122 if test -z "$aix_libpath"; then
13123 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13126 rm -f core conftest.err conftest.$ac_objext \
13127 conftest$ac_exeext conftest.$ac_ext
13128 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13130 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13132 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"
13134 if test "$host_cpu" = ia64; then
13135 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13136 allow_undefined_flag_CXX="-z nodefs"
13137 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"
13139 # Determine the default libpath from the value encoded in an
13140 # empty executable.
13141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13142 /* end confdefs.h. */
13152 if ac_fn_cxx_try_link "$LINENO"; then :
13154 lt_aix_libpath_sed='
13155 /Import File Strings/,/^$/ {
13161 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13162 # Check for a 64-bit object if we didn't find anything.
13163 if test -z "$aix_libpath"; then
13164 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13167 rm -f core conftest.err conftest.$ac_objext \
13168 conftest$ac_exeext conftest.$ac_ext
13169 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13171 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13172 # Warning - without using the other run time loading flags,
13173 # -berok will link without error, but may produce a broken library.
13174 no_undefined_flag_CXX=' ${wl}-bernotok'
13175 allow_undefined_flag_CXX=' ${wl}-berok'
13176 # Exported symbols can be pulled into shared objects from archives
13177 whole_archive_flag_spec_CXX='$convenience'
13178 archive_cmds_need_lc_CXX=yes
13179 # This is similar to how AIX traditionally builds its shared
13181 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'
13187 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13188 allow_undefined_flag_CXX=unsupported
13189 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13190 # support --undefined. This deserves some investigation. FIXME
13191 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13198 case $cc_basename in
13200 # FIXME: insert proper C++ library support
13206 cygwin* | mingw* | pw32* | cegcc*)
13207 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13208 # as there is no search path for DLLs.
13209 hardcode_libdir_flag_spec_CXX='-L$libdir'
13210 allow_undefined_flag_CXX=unsupported
13211 always_export_symbols_CXX=no
13212 enable_shared_with_static_runtimes_CXX=yes
13214 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13215 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'
13216 # If the export-symbols file already is a .def file (1st line
13217 # is EXPORTS), use it as is; otherwise, prepend...
13218 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13219 cp $export_symbols $output_objdir/$soname.def;
13221 echo EXPORTS > $output_objdir/$soname.def;
13222 cat $export_symbols >> $output_objdir/$soname.def;
13224 $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'
13229 darwin* | rhapsody*)
13232 archive_cmds_need_lc_CXX=no
13233 hardcode_direct_CXX=no
13234 hardcode_automatic_CXX=yes
13235 hardcode_shlibpath_var_CXX=unsupported
13236 whole_archive_flag_spec_CXX=''
13237 link_all_deplibs_CXX=yes
13238 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13239 case $cc_basename in
13240 ifort*) _lt_dar_can_shared=yes ;;
13241 *) _lt_dar_can_shared=$GCC ;;
13243 if test "$_lt_dar_can_shared" = "yes"; then
13244 output_verbose_link_cmd=echo
13245 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}"
13246 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13247 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}"
13248 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}"
13249 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13250 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}"
13251 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}"
13261 case $cc_basename in
13263 # FIXME: insert proper C++ library support
13267 # Green Hills C++ Compiler
13268 # FIXME: insert proper C++ library support
13272 # FIXME: insert proper C++ library support
13279 # C++ shared libraries reported to be fairly broken before
13285 archive_cmds_need_lc_CXX=no
13288 freebsd* | dragonfly*)
13289 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13298 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13299 hardcode_libdir_separator_CXX=:
13300 export_dynamic_flag_spec_CXX='${wl}-E'
13301 hardcode_direct_CXX=yes
13302 hardcode_minus_L_CXX=yes # Not in the search PATH,
13303 # but as the default
13304 # location of the library.
13306 case $cc_basename in
13308 # FIXME: insert proper C++ library support
13312 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'
13313 # Commands to make compiler produce verbose output that lists
13314 # what "hidden" libraries, object files and flags are used when
13315 # linking a shared library.
13317 # There doesn't appear to be a way to prevent this compiler from
13318 # explicitly linking system object files so we need to strip them
13319 # from the output so that they don't get included in the library
13321 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'
13324 if test "$GXX" = yes; then
13325 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'
13327 # FIXME: insert proper C++ library support
13335 if test $with_gnu_ld = no; then
13336 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13337 hardcode_libdir_separator_CXX=:
13343 export_dynamic_flag_spec_CXX='${wl}-E'
13349 hardcode_direct_CXX=no
13350 hardcode_shlibpath_var_CXX=no
13353 hardcode_direct_CXX=yes
13354 hardcode_direct_absolute_CXX=yes
13355 hardcode_minus_L_CXX=yes # Not in the search PATH,
13356 # but as the default
13357 # location of the library.
13361 case $cc_basename in
13363 # FIXME: insert proper C++ library support
13369 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13372 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13375 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13378 # Commands to make compiler produce verbose output that lists
13379 # what "hidden" libraries, object files and flags are used when
13380 # linking a shared library.
13382 # There doesn't appear to be a way to prevent this compiler from
13383 # explicitly linking system object files so we need to strip them
13384 # from the output so that they don't get included in the library
13386 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'
13389 if test "$GXX" = yes; then
13390 if test $with_gnu_ld = no; then
13393 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13396 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13399 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'
13404 # FIXME: insert proper C++ library support
13412 hardcode_direct_CXX=no
13413 hardcode_shlibpath_var_CXX=no
13414 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13415 export_dynamic_flag_spec_CXX='${wl}-E'
13416 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13417 # Instead, shared libraries are loaded at an image base (0x10000000 by
13418 # default) and relocated if they conflict, which is a slow very memory
13419 # consuming and fragmenting process. To avoid this, we pick a random,
13420 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13421 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13422 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'
13423 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'
13426 case $cc_basename in
13429 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'
13431 # Archives containing C++ object files must be created using
13432 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13433 # necessary to make sure instantiated templates are included
13435 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13438 if test "$GXX" = yes; then
13439 if test "$with_gnu_ld" = no; then
13440 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'
13442 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'
13445 link_all_deplibs_CXX=yes
13448 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13449 hardcode_libdir_separator_CXX=:
13450 inherit_rpath_CXX=yes
13453 linux* | k*bsd*-gnu)
13454 case $cc_basename in
13456 # Kuck and Associates, Inc. (KAI) C++ Compiler
13458 # KCC will only create a shared library if the output file
13459 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13460 # to its proper name (with version) after linking.
13461 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'
13462 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'
13463 # Commands to make compiler produce verbose output that lists
13464 # what "hidden" libraries, object files and flags are used when
13465 # linking a shared library.
13467 # There doesn't appear to be a way to prevent this compiler from
13468 # explicitly linking system object files so we need to strip them
13469 # from the output so that they don't get included in the library
13471 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'
13473 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13474 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13476 # Archives containing C++ object files must be created using
13477 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13478 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13483 # version 8.0 and above of icpc choke on multiply defined symbols
13484 # if we add $predep_objects and $postdep_objects, however 7.1 and
13485 # earlier do not add the objects themselves.
13486 case `$CC -V 2>&1` in
13488 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13489 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'
13491 *) # Version 8.0 or newer
13494 ia64*) tmp_idyn=' -i_dynamic';;
13496 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13497 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'
13500 archive_cmds_need_lc_CXX=no
13501 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13502 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13503 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13506 # Portland Group C++ compiler
13508 *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
13509 prelink_cmds_CXX='tpldir=Template.dir~
13511 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13512 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
13513 old_archive_cmds_CXX='tpldir=Template.dir~
13515 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13516 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
13518 archive_cmds_CXX='tpldir=Template.dir~
13520 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13521 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13522 archive_expsym_cmds_CXX='tpldir=Template.dir~
13524 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13525 $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'
13527 *) # Version 6 will use weak symbols
13528 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13529 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'
13533 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13534 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13535 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'
13539 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13540 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'
13542 runpath_var=LD_RUN_PATH
13543 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13544 hardcode_libdir_separator_CXX=:
13546 # Commands to make compiler produce verbose output that lists
13547 # what "hidden" libraries, object files and flags are used when
13548 # linking a shared library.
13550 # There doesn't appear to be a way to prevent this compiler from
13551 # explicitly linking system object files so we need to strip them
13552 # from the output so that they don't get included in the library
13554 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'
13557 # IBM XL 8.0 on PPC, with GNU ld
13558 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13559 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13560 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13561 if test "x$supports_anon_versioning" = xyes; then
13562 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13563 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13564 echo "local: *; };" >> $output_objdir/$libname.ver~
13565 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13569 case `$CC -V 2>&1 | sed 5q` in
13572 no_undefined_flag_CXX=' -zdefs'
13573 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13574 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'
13575 hardcode_libdir_flag_spec_CXX='-R$libdir'
13576 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'
13577 compiler_needs_object_CXX=yes
13579 # Not sure whether something based on
13580 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13582 output_verbose_link_cmd='echo'
13584 # Archives containing C++ object files must be created using
13585 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13586 # necessary to make sure instantiated templates are included
13588 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13596 # FIXME: insert proper C++ library support
13601 # FIXME: insert proper C++ library support
13606 case $cc_basename in
13608 # FIXME: insert proper C++ library support
13612 # FIXME: insert proper C++ library support
13619 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13620 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13622 hardcode_libdir_flag_spec_CXX='-R$libdir'
13623 hardcode_direct_CXX=yes
13624 hardcode_shlibpath_var_CXX=no
13626 # Workaround some broken pre-1.5 toolchains
13627 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13635 # C++ shared libraries are fairly broken
13640 if test -f /usr/libexec/ld.so; then
13641 hardcode_direct_CXX=yes
13642 hardcode_shlibpath_var_CXX=no
13643 hardcode_direct_absolute_CXX=yes
13644 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13645 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13646 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13647 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13648 export_dynamic_flag_spec_CXX='${wl}-E'
13649 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13651 output_verbose_link_cmd=echo
13657 osf3* | osf4* | osf5*)
13658 case $cc_basename in
13660 # Kuck and Associates, Inc. (KAI) C++ Compiler
13662 # KCC will only create a shared library if the output file
13663 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13664 # to its proper name (with version) after linking.
13665 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'
13667 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13668 hardcode_libdir_separator_CXX=:
13670 # Archives containing C++ object files must be created using
13671 # the KAI C++ compiler.
13673 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13674 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13678 # Rational C++ 2.4.1
13679 # FIXME: insert proper C++ library support
13685 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13686 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'
13687 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13690 allow_undefined_flag_CXX=' -expect_unresolved \*'
13691 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'
13692 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13693 echo "-hidden">> $lib.exp~
13694 $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~
13696 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13700 hardcode_libdir_separator_CXX=:
13702 # Commands to make compiler produce verbose output that lists
13703 # what "hidden" libraries, object files and flags are used when
13704 # linking a shared library.
13706 # There doesn't appear to be a way to prevent this compiler from
13707 # explicitly linking system object files so we need to strip them
13708 # from the output so that they don't get included in the library
13710 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'
13713 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13714 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13717 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'
13720 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'
13724 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13725 hardcode_libdir_separator_CXX=:
13727 # Commands to make compiler produce verbose output that lists
13728 # what "hidden" libraries, object files and flags are used when
13729 # linking a shared library.
13730 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13733 # FIXME: insert proper C++ library support
13741 # FIXME: insert proper C++ library support
13746 case $cc_basename in
13749 # FIXME: insert proper C++ library support
13754 # FIXME: insert proper C++ library support
13758 # FIXME: insert proper C++ library support
13765 case $cc_basename in
13767 # Sun C++ 4.2, 5.x and Centerline C++
13768 archive_cmds_need_lc_CXX=yes
13769 no_undefined_flag_CXX=' -zdefs'
13770 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13771 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13772 $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'
13774 hardcode_libdir_flag_spec_CXX='-R$libdir'
13775 hardcode_shlibpath_var_CXX=no
13777 solaris2.[0-5] | solaris2.[0-5].*) ;;
13779 # The compiler driver will combine and reorder linker options,
13780 # but understands `-z linker_flag'.
13781 # Supported since Solaris 2.6 (maybe 2.5.1?)
13782 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13785 link_all_deplibs_CXX=yes
13787 output_verbose_link_cmd='echo'
13789 # Archives containing C++ object files must be created using
13790 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13791 # necessary to make sure instantiated templates are included
13793 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13796 # Green Hills C++ Compiler
13797 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13799 # The C++ compiler must be used to create the archive.
13800 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13803 # GNU C++ compiler with Solaris linker
13804 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13805 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13806 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13807 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13808 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13809 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13811 # Commands to make compiler produce verbose output that lists
13812 # what "hidden" libraries, object files and flags are used when
13813 # linking a shared library.
13814 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13816 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13818 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13819 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13820 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13822 # Commands to make compiler produce verbose output that lists
13823 # what "hidden" libraries, object files and flags are used when
13824 # linking a shared library.
13825 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13828 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13830 solaris2.[0-5] | solaris2.[0-5].*) ;;
13832 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13840 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13841 no_undefined_flag_CXX='${wl}-z,text'
13842 archive_cmds_need_lc_CXX=no
13843 hardcode_shlibpath_var_CXX=no
13844 runpath_var='LD_RUN_PATH'
13846 case $cc_basename in
13848 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13849 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13852 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13853 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13858 sysv5* | sco3.2v5* | sco5v6*)
13859 # Note: We can NOT use -z defs as we might desire, because we do not
13860 # link with -lc, and that would cause any symbols used from libc to
13861 # always be unresolved, which means just about no library would
13862 # ever link correctly. If we're not using GNU ld we use -z text
13863 # though, which does catch some bad symbols but isn't as heavy-handed
13865 no_undefined_flag_CXX='${wl}-z,text'
13866 allow_undefined_flag_CXX='${wl}-z,nodefs'
13867 archive_cmds_need_lc_CXX=no
13868 hardcode_shlibpath_var_CXX=no
13869 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13870 hardcode_libdir_separator_CXX=':'
13871 link_all_deplibs_CXX=yes
13872 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13873 runpath_var='LD_RUN_PATH'
13875 case $cc_basename in
13877 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13878 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13881 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13882 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13888 case $cc_basename in
13890 # NonStop-UX NCC 3.20
13891 # FIXME: insert proper C++ library support
13895 # FIXME: insert proper C++ library support
13902 # FIXME: insert proper C++ library support
13907 # FIXME: insert proper C++ library support
13912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13913 $as_echo "$ld_shlibs_CXX" >&6; }
13914 test "$ld_shlibs_CXX" = no && can_build_shared=no
13920 ## There is no encapsulation within the following macros, do not change
13921 ## the running order or otherwise move them around unless you know exactly
13922 ## what you are doing...
13923 # Dependencies to place before and after the object being linked:
13924 predep_objects_CXX=
13925 postdep_objects_CXX=
13928 compiler_lib_search_path_CXX=
13930 cat > conftest.$ac_ext <<_LT_EOF
13934 Foo (void) { a = 0; }
13940 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13941 (eval $ac_compile) 2>&5
13943 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13944 test $ac_status = 0; }; then
13945 # Parse the compiler output and extract the necessary
13946 # objects, libraries and library flags.
13948 # Sentinel used to keep track of whether or not we are before
13949 # the conftest object file.
13950 pre_test_object_deps_done=no
13952 for p in `eval "$output_verbose_link_cmd"`; do
13956 # Some compilers place space between "-{L,R}" and the path.
13957 # Remove the space.
13958 if test $p = "-L" ||
13959 test $p = "-R"; then
13966 if test "$pre_test_object_deps_done" = no; then
13969 # Internal compiler library paths should come after those
13970 # provided the user. The postdeps already come after the
13971 # user supplied libs so there is no need to process them.
13972 if test -z "$compiler_lib_search_path_CXX"; then
13973 compiler_lib_search_path_CXX="${prev}${p}"
13975 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13978 # The "-l" case would never come before the object being
13979 # linked, so don't bother handling this case.
13982 if test -z "$postdeps_CXX"; then
13983 postdeps_CXX="${prev}${p}"
13985 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13991 # This assumes that the test object file only shows up
13992 # once in the compiler output.
13993 if test "$p" = "conftest.$objext"; then
13994 pre_test_object_deps_done=yes
13998 if test "$pre_test_object_deps_done" = no; then
13999 if test -z "$predep_objects_CXX"; then
14000 predep_objects_CXX="$p"
14002 predep_objects_CXX="$predep_objects_CXX $p"
14005 if test -z "$postdep_objects_CXX"; then
14006 postdep_objects_CXX="$p"
14008 postdep_objects_CXX="$postdep_objects_CXX $p"
14013 *) ;; # Ignore the rest.
14021 echo "libtool.m4: error: problem compiling CXX test program"
14024 $RM -f confest.$objext
14026 # PORTME: override above test on systems where it is broken
14029 # Interix 3.5 installs completely hosed .la files for C++, so rather than
14030 # hack all around it, let's just trust "g++" to DTRT.
14031 predep_objects_CXX=
14032 postdep_objects_CXX=
14037 case `$CC -V 2>&1 | sed 5q` in
14041 # The more standards-conforming stlport4 library is
14042 # incompatible with the Cstd library. Avoid specifying
14043 # it if it's in CXXFLAGS. Ignore libCrun as
14044 # -library=stlport4 depends on it.
14045 case " $CXX $CXXFLAGS " in
14046 *" -library=stlport4 "*)
14047 solaris_use_stlport4=yes
14051 if test "$solaris_use_stlport4" != yes; then
14052 postdeps_CXX='-library=Cstd -library=Crun'
14059 case $cc_basename in
14061 # The more standards-conforming stlport4 library is
14062 # incompatible with the Cstd library. Avoid specifying
14063 # it if it's in CXXFLAGS. Ignore libCrun as
14064 # -library=stlport4 depends on it.
14065 case " $CXX $CXXFLAGS " in
14066 *" -library=stlport4 "*)
14067 solaris_use_stlport4=yes
14071 # Adding this requires a known-good setup of shared libraries for
14072 # Sun compiler versions before 5.6, else PIC objects from an old
14073 # archive will be linked into the output, leading to subtle bugs.
14074 if test "$solaris_use_stlport4" != yes; then
14075 postdeps_CXX='-library=Cstd -library=Crun'
14083 case " $postdeps_CXX " in
14084 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14086 compiler_lib_search_dirs_CXX=
14087 if test -n "${compiler_lib_search_path_CXX}"; then
14088 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14121 lt_prog_compiler_wl_CXX=
14122 lt_prog_compiler_pic_CXX=
14123 lt_prog_compiler_static_CXX=
14125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14126 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14128 # C++ specific cases for pic, static, wl, etc.
14129 if test "$GXX" = yes; then
14130 lt_prog_compiler_wl_CXX='-Wl,'
14131 lt_prog_compiler_static_CXX='-static'
14135 # All AIX code is PIC.
14136 if test "$host_cpu" = ia64; then
14137 # AIX 5 now supports IA64 processor
14138 lt_prog_compiler_static_CXX='-Bstatic'
14145 # see comment about AmigaOS4 .so support
14146 lt_prog_compiler_pic_CXX='-fPIC'
14149 # FIXME: we need at least 68020 code to build shared libraries, but
14150 # adding the `-m68020' flag to GCC prevents building anything better,
14152 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14157 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14158 # PIC is the default for these OSes.
14160 mingw* | cygwin* | os2* | pw32* | cegcc*)
14161 # This hack is so that the source file can tell whether it is being
14162 # built for inclusion in a dll (and should export symbols for example).
14163 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14164 # (--disable-auto-import) libraries
14165 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14167 darwin* | rhapsody*)
14168 # PIC is the default on this platform
14169 # Common symbols not allowed in MH_DYLIB files
14170 lt_prog_compiler_pic_CXX='-fno-common'
14173 # DJGPP does not support shared libraries at all
14174 lt_prog_compiler_pic_CXX=
14177 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14178 # Instead, we relocate shared libraries at runtime.
14181 if test -d /usr/nec; then
14182 lt_prog_compiler_pic_CXX=-Kconform_pic
14186 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14187 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14188 # sets the default TLS model and affects inlining.
14193 lt_prog_compiler_pic_CXX='-fPIC'
14198 # QNX uses GNU C++, but need to define -shared option too, otherwise
14199 # it will coredump.
14200 lt_prog_compiler_pic_CXX='-fPIC -shared'
14203 lt_prog_compiler_pic_CXX='-fPIC'
14209 # All AIX code is PIC.
14210 if test "$host_cpu" = ia64; then
14211 # AIX 5 now supports IA64 processor
14212 lt_prog_compiler_static_CXX='-Bstatic'
14214 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14218 case $cc_basename in
14220 # Green Hills C++ Compiler
14221 # _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"
14226 case $cc_basename in
14228 lt_prog_compiler_pic_CXX='-KPIC'
14231 # Green Hills C++ Compiler
14232 lt_prog_compiler_pic_CXX='-pic'
14238 freebsd* | dragonfly*)
14239 # FreeBSD uses GNU C++
14241 hpux9* | hpux10* | hpux11*)
14242 case $cc_basename in
14244 lt_prog_compiler_wl_CXX='-Wl,'
14245 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14246 if test "$host_cpu" != ia64; then
14247 lt_prog_compiler_pic_CXX='+Z'
14251 lt_prog_compiler_wl_CXX='-Wl,'
14252 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14258 lt_prog_compiler_pic_CXX='+Z'
14267 # This is c89, which is MS Visual C++ (no shared libs)
14268 # Anyone wants to do a port?
14270 irix5* | irix6* | nonstopux*)
14271 case $cc_basename in
14273 lt_prog_compiler_wl_CXX='-Wl,'
14274 lt_prog_compiler_static_CXX='-non_shared'
14275 # CC pic flag -KPIC is the default.
14281 linux* | k*bsd*-gnu)
14282 case $cc_basename in
14285 lt_prog_compiler_wl_CXX='--backend -Wl,'
14286 lt_prog_compiler_pic_CXX='-fPIC'
14289 # old Intel C++ for x86_64 which still supported -KPIC.
14290 lt_prog_compiler_wl_CXX='-Wl,'
14291 lt_prog_compiler_pic_CXX='-KPIC'
14292 lt_prog_compiler_static_CXX='-static'
14295 # Intel C++, used to be incompatible with GCC.
14296 # ICC 10 doesn't accept -KPIC any more.
14297 lt_prog_compiler_wl_CXX='-Wl,'
14298 lt_prog_compiler_pic_CXX='-fPIC'
14299 lt_prog_compiler_static_CXX='-static'
14302 # Portland Group C++ compiler
14303 lt_prog_compiler_wl_CXX='-Wl,'
14304 lt_prog_compiler_pic_CXX='-fpic'
14305 lt_prog_compiler_static_CXX='-Bstatic'
14309 # Make sure the PIC flag is empty. It appears that all Alpha
14310 # Linux and Compaq Tru64 Unix objects are PIC.
14311 lt_prog_compiler_pic_CXX=
14312 lt_prog_compiler_static_CXX='-non_shared'
14315 # IBM XL 8.0 on PPC
14316 lt_prog_compiler_wl_CXX='-Wl,'
14317 lt_prog_compiler_pic_CXX='-qpic'
14318 lt_prog_compiler_static_CXX='-qstaticlink'
14321 case `$CC -V 2>&1 | sed 5q` in
14324 lt_prog_compiler_pic_CXX='-KPIC'
14325 lt_prog_compiler_static_CXX='-Bstatic'
14326 lt_prog_compiler_wl_CXX='-Qoption ld '
14337 case $cc_basename in
14339 lt_prog_compiler_pic_CXX='-W c,exportall'
14348 # QNX uses GNU C++, but need to define -shared option too, otherwise
14349 # it will coredump.
14350 lt_prog_compiler_pic_CXX='-fPIC -shared'
14352 osf3* | osf4* | osf5*)
14353 case $cc_basename in
14355 lt_prog_compiler_wl_CXX='--backend -Wl,'
14358 # Rational C++ 2.4.1
14359 lt_prog_compiler_pic_CXX='-pic'
14362 # Digital/Compaq C++
14363 lt_prog_compiler_wl_CXX='-Wl,'
14364 # Make sure the PIC flag is empty. It appears that all Alpha
14365 # Linux and Compaq Tru64 Unix objects are PIC.
14366 lt_prog_compiler_pic_CXX=
14367 lt_prog_compiler_static_CXX='-non_shared'
14376 case $cc_basename in
14378 # Sun C++ 4.2, 5.x and Centerline C++
14379 lt_prog_compiler_pic_CXX='-KPIC'
14380 lt_prog_compiler_static_CXX='-Bstatic'
14381 lt_prog_compiler_wl_CXX='-Qoption ld '
14384 # Green Hills C++ Compiler
14385 lt_prog_compiler_pic_CXX='-PIC'
14392 case $cc_basename in
14395 lt_prog_compiler_pic_CXX='-pic'
14396 lt_prog_compiler_static_CXX='-Bstatic'
14400 lt_prog_compiler_pic_CXX='-pic'
14406 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14407 case $cc_basename in
14409 lt_prog_compiler_wl_CXX='-Wl,'
14410 lt_prog_compiler_pic_CXX='-KPIC'
14411 lt_prog_compiler_static_CXX='-Bstatic'
14416 case $cc_basename in
14418 # NonStop-UX NCC 3.20
14419 lt_prog_compiler_pic_CXX='-KPIC'
14428 lt_prog_compiler_can_build_shared_CXX=no
14434 # For platforms which do not support PIC, -DPIC is meaningless:
14436 lt_prog_compiler_pic_CXX=
14439 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
14443 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
14448 # Check to make sure the PIC flag actually works.
14450 if test -n "$lt_prog_compiler_pic_CXX"; then
14451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14452 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14453 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
14454 $as_echo_n "(cached) " >&6
14456 lt_cv_prog_compiler_pic_works_CXX=no
14457 ac_outfile=conftest.$ac_objext
14458 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14459 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14460 # Insert the option either (1) after the last *FLAGS variable, or
14461 # (2) before a word containing "conftest.", or (3) at the end.
14462 # Note that $ac_compile itself does not contain backslashes and begins
14463 # with a dollar sign (not a hyphen), so the echo should work correctly.
14464 # The option is referenced via a variable to avoid confusing sed.
14465 lt_compile=`echo "$ac_compile" | $SED \
14466 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14467 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14468 -e 's:$: $lt_compiler_flag:'`
14469 (eval echo "\"\$as_me:14469: $lt_compile\"" >&5)
14470 (eval "$lt_compile" 2>conftest.err)
14472 cat conftest.err >&5
14473 echo "$as_me:14473: \$? = $ac_status" >&5
14474 if (exit $ac_status) && test -s "$ac_outfile"; then
14475 # The compiler can only warn and ignore the option if not recognized
14476 # So say no if there are warnings other than the usual output.
14477 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14478 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14479 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14480 lt_cv_prog_compiler_pic_works_CXX=yes
14486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14487 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14489 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14490 case $lt_prog_compiler_pic_CXX in
14492 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14495 lt_prog_compiler_pic_CXX=
14496 lt_prog_compiler_can_build_shared_CXX=no
14504 # Check to make sure the static flag actually works.
14506 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14508 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14509 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
14510 $as_echo_n "(cached) " >&6
14512 lt_cv_prog_compiler_static_works_CXX=no
14513 save_LDFLAGS="$LDFLAGS"
14514 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14515 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14516 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14517 # The linker can only warn and ignore the option if not recognized
14518 # So say no if there are warnings
14519 if test -s conftest.err; then
14520 # Append any errors to the config.log.
14521 cat conftest.err 1>&5
14522 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14523 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14524 if diff conftest.exp conftest.er2 >/dev/null; then
14525 lt_cv_prog_compiler_static_works_CXX=yes
14528 lt_cv_prog_compiler_static_works_CXX=yes
14532 LDFLAGS="$save_LDFLAGS"
14535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14536 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14538 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14541 lt_prog_compiler_static_CXX=
14547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14548 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14549 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14550 $as_echo_n "(cached) " >&6
14552 lt_cv_prog_compiler_c_o_CXX=no
14553 $RM -r conftest 2>/dev/null
14557 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14559 lt_compiler_flag="-o out/conftest2.$ac_objext"
14560 # Insert the option either (1) after the last *FLAGS variable, or
14561 # (2) before a word containing "conftest.", or (3) at the end.
14562 # Note that $ac_compile itself does not contain backslashes and begins
14563 # with a dollar sign (not a hyphen), so the echo should work correctly.
14564 lt_compile=`echo "$ac_compile" | $SED \
14565 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14566 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14567 -e 's:$: $lt_compiler_flag:'`
14568 (eval echo "\"\$as_me:14568: $lt_compile\"" >&5)
14569 (eval "$lt_compile" 2>out/conftest.err)
14571 cat out/conftest.err >&5
14572 echo "$as_me:14572: \$? = $ac_status" >&5
14573 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14575 # The compiler can only warn and ignore the option if not recognized
14576 # So say no if there are warnings
14577 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14578 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14579 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14580 lt_cv_prog_compiler_c_o_CXX=yes
14585 # SGI C++ compiler will create directory out/ii_files/ for
14586 # template instantiation
14587 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14588 $RM out/* && rmdir out
14594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14595 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14600 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14601 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14602 $as_echo_n "(cached) " >&6
14604 lt_cv_prog_compiler_c_o_CXX=no
14605 $RM -r conftest 2>/dev/null
14609 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14611 lt_compiler_flag="-o out/conftest2.$ac_objext"
14612 # Insert the option either (1) after the last *FLAGS variable, or
14613 # (2) before a word containing "conftest.", or (3) at the end.
14614 # Note that $ac_compile itself does not contain backslashes and begins
14615 # with a dollar sign (not a hyphen), so the echo should work correctly.
14616 lt_compile=`echo "$ac_compile" | $SED \
14617 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14618 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14619 -e 's:$: $lt_compiler_flag:'`
14620 (eval echo "\"\$as_me:14620: $lt_compile\"" >&5)
14621 (eval "$lt_compile" 2>out/conftest.err)
14623 cat out/conftest.err >&5
14624 echo "$as_me:14624: \$? = $ac_status" >&5
14625 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14627 # The compiler can only warn and ignore the option if not recognized
14628 # So say no if there are warnings
14629 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14630 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14631 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14632 lt_cv_prog_compiler_c_o_CXX=yes
14637 # SGI C++ compiler will create directory out/ii_files/ for
14638 # template instantiation
14639 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14640 $RM out/* && rmdir out
14646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14647 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14652 hard_links="nottested"
14653 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14654 # do not overwrite the value of need_locks provided by the user
14655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14656 $as_echo_n "checking if we can lock with hard links... " >&6; }
14659 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14661 ln conftest.a conftest.b 2>&5 || hard_links=no
14662 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14664 $as_echo "$hard_links" >&6; }
14665 if test "$hard_links" = no; then
14666 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14667 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14677 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14679 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14682 # If we're using GNU nm, then we don't want the "-C" option.
14683 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14684 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14685 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'
14687 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'
14691 export_symbols_cmds_CXX="$ltdll_cmds"
14693 cygwin* | mingw* | cegcc*)
14694 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'
14697 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14700 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14703 $as_echo "$ld_shlibs_CXX" >&6; }
14704 test "$ld_shlibs_CXX" = no && can_build_shared=no
14706 with_gnu_ld_CXX=$with_gnu_ld
14714 # Do we need to explicitly link libc?
14716 case "x$archive_cmds_need_lc_CXX" in
14718 # Assume -lc should be added
14719 archive_cmds_need_lc_CXX=yes
14721 if test "$enable_shared" = yes && test "$GCC" = yes; then
14722 case $archive_cmds_CXX in
14724 # FIXME: we may have to deal with multi-command sequences.
14727 # Test whether the compiler implicitly links with -lc since on some
14728 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14729 # to ld, don't add -lc before -lgcc.
14730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14731 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14733 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14735 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14736 (eval $ac_compile) 2>&5
14738 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14739 test $ac_status = 0; } 2>conftest.err; then
14742 libobjs=conftest.$ac_objext
14744 wl=$lt_prog_compiler_wl_CXX
14745 pic_flag=$lt_prog_compiler_pic_CXX
14751 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14752 allow_undefined_flag_CXX=
14753 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14754 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14756 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14757 test $ac_status = 0; }
14759 archive_cmds_need_lc_CXX=no
14761 archive_cmds_need_lc_CXX=yes
14763 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14765 cat conftest.err 1>&5
14768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
14769 $as_echo "$archive_cmds_need_lc_CXX" >&6; }
14839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14840 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14842 library_names_spec=
14843 libname_spec='lib$name'
14847 postuninstall_cmds=
14851 shlibpath_overrides_runpath=unknown
14853 dynamic_linker="$host_os ld.so"
14854 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14855 need_lib_prefix=unknown
14856 hardcode_into_libs=no
14858 # when you set need_version to no, make sure it does not cause -set_version
14859 # flags to be left without arguments
14860 need_version=unknown
14865 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14866 shlibpath_var=LIBPATH
14868 # AIX 3 has no versioning support, so we append a major version to the name.
14869 soname_spec='${libname}${release}${shared_ext}$major'
14876 hardcode_into_libs=yes
14877 if test "$host_cpu" = ia64; then
14878 # AIX 5 supports IA64
14879 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14880 shlibpath_var=LD_LIBRARY_PATH
14882 # With GCC up to 2.95.x, collect2 would create an import file
14883 # for dependence libraries. The import file would start with
14884 # the line `#! .'. This would cause the generated library to
14885 # depend on `.', always an invalid library. This was fixed in
14886 # development snapshots of GCC prior to 3.0.
14888 aix4 | aix4.[01] | aix4.[01].*)
14889 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14891 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14894 can_build_shared=no
14898 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14899 # soname into executable. Probably we can add versioning support to
14900 # collect2, so additional links can be useful in future.
14901 if test "$aix_use_runtimelinking" = yes; then
14902 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14903 # instead of lib<name>.a to let people know that these are not
14904 # typical AIX shared libraries.
14905 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14907 # We preserve .a as extension for shared libraries through AIX4.2
14908 # and later when we are not doing run time linking.
14909 library_names_spec='${libname}${release}.a $libname.a'
14910 soname_spec='${libname}${release}${shared_ext}$major'
14912 shlibpath_var=LIBPATH
14919 # Since July 2007 AmigaOS4 officially supports .so libraries.
14920 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14921 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14924 library_names_spec='$libname.ixlibrary $libname.a'
14925 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14926 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'
14932 library_names_spec='${libname}${shared_ext}'
14933 dynamic_linker="$host_os ld.so"
14934 shlibpath_var=LIBRARY_PATH
14940 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14941 soname_spec='${libname}${release}${shared_ext}$major'
14942 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14943 shlibpath_var=LD_LIBRARY_PATH
14944 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14945 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14946 # the default ld.so.conf also contains /usr/contrib/lib and
14947 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14948 # libtool to hard-code these into programs
14951 cygwin* | mingw* | pw32* | cegcc*)
14952 version_type=windows
14957 case $GCC,$host_os in
14958 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14959 library_names_spec='$libname.dll.a'
14960 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14961 postinstall_cmds='base_file=`basename \${file}`~
14962 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14963 dldir=$destdir/`dirname \$dlpath`~
14964 test -d \$dldir || mkdir -p \$dldir~
14965 $install_prog $dir/$dlname \$dldir/$dlname~
14966 chmod a+x \$dldir/$dlname~
14967 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14968 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14970 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14971 dlpath=$dir/\$dldll~
14973 shlibpath_overrides_runpath=yes
14977 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14978 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14979 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14982 # MinGW DLLs use traditional 'lib' prefix
14983 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14984 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14985 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14986 # It is most probably a Windows format PATH printed by
14987 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14988 # path with ; separators, and with drive letters. We can handle the
14989 # drive letters (cygwin fileutils understands them), so leave them,
14990 # especially as we might pass files found there to a mingw objdump,
14991 # which wouldn't understand a cygwinified path. Ahh.
14992 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14994 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14998 # pw32 DLLs use 'pw' prefix rather than 'lib'
14999 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15005 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15008 dynamic_linker='Win32 ld.exe'
15009 # FIXME: first we should search . and the directory the executable is in
15013 darwin* | rhapsody*)
15014 dynamic_linker="$host_os dyld"
15015 version_type=darwin
15018 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15019 soname_spec='${libname}${release}${major}$shared_ext'
15020 shlibpath_overrides_runpath=yes
15021 shlibpath_var=DYLD_LIBRARY_PATH
15022 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15024 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
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 shlibpath_var=LD_LIBRARY_PATH
15040 freebsd* | dragonfly*)
15041 # DragonFly does not have aout. When/if they implement a new
15042 # versioning mechanism, adjust this.
15043 if test -x /usr/bin/objformat; then
15044 objformat=`/usr/bin/objformat`
15047 freebsd[123]*) objformat=aout ;;
15048 *) objformat=elf ;;
15051 version_type=freebsd-$objformat
15052 case $version_type in
15054 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15059 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15063 shlibpath_var=LD_LIBRARY_PATH
15066 shlibpath_overrides_runpath=yes
15068 freebsd3.[01]* | freebsdelf3.[01]*)
15069 shlibpath_overrides_runpath=yes
15070 hardcode_into_libs=yes
15072 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15073 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15074 shlibpath_overrides_runpath=no
15075 hardcode_into_libs=yes
15077 *) # from 4.6 on, and DragonFly
15078 shlibpath_overrides_runpath=yes
15079 hardcode_into_libs=yes
15088 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15089 soname_spec='${libname}${release}${shared_ext}$major'
15090 shlibpath_var=LD_LIBRARY_PATH
15091 hardcode_into_libs=yes
15094 hpux9* | hpux10* | hpux11*)
15095 # Give a soname corresponding to the major version so that dld.sl refuses to
15096 # link against other versions.
15103 hardcode_into_libs=yes
15104 dynamic_linker="$host_os dld.so"
15105 shlibpath_var=LD_LIBRARY_PATH
15106 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15107 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15108 soname_spec='${libname}${release}${shared_ext}$major'
15109 if test "X$HPUX_IA64_MODE" = X32; then
15110 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15112 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15114 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15118 hardcode_into_libs=yes
15119 dynamic_linker="$host_os dld.sl"
15120 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15121 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15125 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15129 dynamic_linker="$host_os dld.sl"
15130 shlibpath_var=SHLIB_PATH
15131 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15132 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15133 soname_spec='${libname}${release}${shared_ext}$major'
15136 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15137 postinstall_cmds='chmod 555 $lib'
15144 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15145 soname_spec='${libname}${release}${shared_ext}$major'
15146 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15147 shlibpath_var=LD_LIBRARY_PATH
15148 shlibpath_overrides_runpath=no
15149 hardcode_into_libs=yes
15152 irix5* | irix6* | nonstopux*)
15154 nonstopux*) version_type=nonstopux ;;
15156 if test "$lt_cv_prog_gnu_ld" = yes; then
15164 soname_spec='${libname}${release}${shared_ext}$major'
15165 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15167 irix5* | nonstopux*)
15168 libsuff= shlibsuff=
15171 case $LD in # libtool.m4 will add one of these switches to LD
15172 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15173 libsuff= shlibsuff= libmagic=32-bit;;
15174 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15175 libsuff=32 shlibsuff=N32 libmagic=N32;;
15176 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15177 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15178 *) libsuff= shlibsuff= libmagic=never-match;;
15182 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15183 shlibpath_overrides_runpath=no
15184 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15185 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15186 hardcode_into_libs=yes
15189 # No shared lib support for Linux oldld, aout, or coff.
15190 linux*oldld* | linux*aout* | linux*coff*)
15194 # This must be Linux ELF.
15195 linux* | k*bsd*-gnu)
15199 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15200 soname_spec='${libname}${release}${shared_ext}$major'
15201 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15202 shlibpath_var=LD_LIBRARY_PATH
15203 shlibpath_overrides_runpath=no
15204 # Some binutils ld are patched to set DT_RUNPATH
15205 save_LDFLAGS=$LDFLAGS
15206 save_libdir=$libdir
15207 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15208 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15210 /* end confdefs.h. */
15220 if ac_fn_cxx_try_link "$LINENO"; then :
15221 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15222 shlibpath_overrides_runpath=yes
15225 rm -f core conftest.err conftest.$ac_objext \
15226 conftest$ac_exeext conftest.$ac_ext
15227 LDFLAGS=$save_LDFLAGS
15228 libdir=$save_libdir
15230 # This implies no fast_install, which is unacceptable.
15231 # Some rework will be needed to allow for fast_install
15232 # before this can be enabled.
15233 hardcode_into_libs=yes
15235 # Append ld.so.conf contents to the search path
15236 if test -f /etc/ld.so.conf; then
15237 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' ' '`
15238 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15241 # We used to test for /lib/ld.so.1 and disable shared libraries on
15242 # powerpc, because MkLinux only supported shared libraries with the
15243 # GNU dynamic linker. Since this was broken with cross compilers,
15244 # most powerpc-linux boxes support dynamic linking these days and
15245 # people can always --disable-shared, the test was removed, and we
15246 # assume the GNU/Linux dynamic linker is in use.
15247 dynamic_linker='GNU/Linux ld.so'
15254 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15255 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15256 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15257 dynamic_linker='NetBSD (a.out) ld.so'
15259 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15260 soname_spec='${libname}${release}${shared_ext}$major'
15261 dynamic_linker='NetBSD ld.elf_so'
15263 shlibpath_var=LD_LIBRARY_PATH
15264 shlibpath_overrides_runpath=yes
15265 hardcode_into_libs=yes
15270 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15271 shlibpath_var=LD_LIBRARY_PATH
15272 shlibpath_overrides_runpath=yes
15279 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15280 soname_spec='${libname}${release}${shared_ext}$major'
15281 shlibpath_var=LD_LIBRARY_PATH
15282 shlibpath_overrides_runpath=no
15283 hardcode_into_libs=yes
15284 dynamic_linker='ldqnx.so'
15289 sys_lib_dlsearch_path_spec="/usr/lib"
15291 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15293 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15294 *) need_version=no ;;
15296 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15297 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15298 shlibpath_var=LD_LIBRARY_PATH
15299 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15301 openbsd2.[89] | openbsd2.[89].*)
15302 shlibpath_overrides_runpath=no
15305 shlibpath_overrides_runpath=yes
15309 shlibpath_overrides_runpath=yes
15314 libname_spec='$name'
15317 library_names_spec='$libname${shared_ext} $libname.a'
15318 dynamic_linker='OS/2 ld.exe'
15319 shlibpath_var=LIBPATH
15322 osf3* | osf4* | osf5*)
15326 soname_spec='${libname}${release}${shared_ext}$major'
15327 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15328 shlibpath_var=LD_LIBRARY_PATH
15329 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15330 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15341 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15342 soname_spec='${libname}${release}${shared_ext}$major'
15343 shlibpath_var=LD_LIBRARY_PATH
15344 shlibpath_overrides_runpath=yes
15345 hardcode_into_libs=yes
15346 # ldd complains unless libraries are executable
15347 postinstall_cmds='chmod +x $lib'
15352 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15353 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15354 shlibpath_var=LD_LIBRARY_PATH
15355 shlibpath_overrides_runpath=yes
15356 if test "$with_gnu_ld" = yes; then
15364 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15365 soname_spec='${libname}${release}${shared_ext}$major'
15366 shlibpath_var=LD_LIBRARY_PATH
15367 case $host_vendor in
15369 shlibpath_overrides_runpath=no
15371 runpath_var=LD_RUN_PATH
15379 shlibpath_overrides_runpath=no
15380 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15386 if test -d /usr/nec ;then
15388 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15389 soname_spec='$libname${shared_ext}.$major'
15390 shlibpath_var=LD_LIBRARY_PATH
15394 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15395 version_type=freebsd-elf
15398 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15399 soname_spec='${libname}${release}${shared_ext}$major'
15400 shlibpath_var=LD_LIBRARY_PATH
15401 shlibpath_overrides_runpath=yes
15402 hardcode_into_libs=yes
15403 if test "$with_gnu_ld" = yes; then
15404 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15406 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15409 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15413 sys_lib_dlsearch_path_spec='/usr/lib'
15417 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15421 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15422 shlibpath_var=LD_LIBRARY_PATH
15423 shlibpath_overrides_runpath=no
15424 hardcode_into_libs=yes
15429 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15430 soname_spec='${libname}${release}${shared_ext}$major'
15431 shlibpath_var=LD_LIBRARY_PATH
15438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15439 $as_echo "$dynamic_linker" >&6; }
15440 test "$dynamic_linker" = no && can_build_shared=no
15442 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15443 if test "$GCC" = yes; then
15444 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15447 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15448 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15450 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15451 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15490 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15491 hardcode_action_CXX=
15492 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15493 test -n "$runpath_var_CXX" ||
15494 test "X$hardcode_automatic_CXX" = "Xyes" ; then
15496 # We can hardcode non-existent directories.
15497 if test "$hardcode_direct_CXX" != no &&
15498 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15499 # have to relink, otherwise we might link with an installed library
15500 # when we should be linking with a yet-to-be-installed one
15501 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15502 test "$hardcode_minus_L_CXX" != no; then
15503 # Linking always hardcodes the temporary library directory.
15504 hardcode_action_CXX=relink
15506 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15507 hardcode_action_CXX=immediate
15510 # We cannot hardcode anything, or else we can only hardcode existing
15512 hardcode_action_CXX=unsupported
15514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15515 $as_echo "$hardcode_action_CXX" >&6; }
15517 if test "$hardcode_action_CXX" = relink ||
15518 test "$inherit_rpath_CXX" = yes; then
15519 # Fast installation is not supported
15520 enable_fast_install=no
15521 elif test "$shlibpath_overrides_runpath" = yes ||
15522 test "$enable_shared" = no; then
15523 # Fast installation is not necessary
15524 enable_fast_install=needless
15533 fi # test -n "$compiler"
15539 with_gnu_ld=$lt_save_with_gnu_ld
15540 lt_cv_path_LDCXX=$lt_cv_path_LD
15541 lt_cv_path_LD=$lt_save_path_LD
15542 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15543 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15544 fi # test "$_lt_caught_CXX_error" != yes
15547 ac_cpp='$CPP $CPPFLAGS'
15548 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15549 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15550 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15564 ac_config_commands="$ac_config_commands libtool"
15569 # Only expand once:
15574 if test x$use_libtool != xno; then
15575 DEFAULT_OBJECT_TYPE=".lo"
15576 DEFAULT_ARCHIVE_TYPE=".la"
15577 DEFAULT_SHARED_OBJECT_TYPE=".la"
15578 LIBTOOL="\$(LIBTOOL)"
15579 LIBTOOL_INSTALL_TARGET="libtool-install"
15580 LIBTOOL_UNINSTALL_TARGET="libtool-uninstall"
15581 LIBTOOL_CLEAN_TARGET="libtool-clean"
15582 QMAKE_LIBTOOL="${BUILD_DIR}/libtool"
15583 FD_PLUGIN_DIR="src/plugins/fd"
15586 DEFAULT_OBJECT_TYPE=".o"
15587 DEFAULT_ARCHIVE_TYPE=".a"
15588 DEFAULT_SHARED_OBJECT_TYPE=".so"
15589 LIBTOOL="# \$(LIBTOOL)"
15590 LIBTOOL_INSTALL_TARGET=""
15591 LIBTOOL_UNINSTALL_TARGET=""
15592 LIBTOOL_CLEAN_TARGET=""
15593 QMAKE_LIBTOOL="# ${BUILD_DIR}/libtool"
15608 # Check whether --enable-includes was given.
15609 if test "${enable_includes+set}" = set; then :
15610 enableval=$enable_includes;
15611 if test x$enableval = xyes; then
15612 install_includes=yes
15620 if test x$use_libtool != xno -a x$install_includes = xyes; then
15621 INCLUDE_INSTALL_TARGET="install-includes"
15622 INCLUDE_UNINSTALL_TARGET="uninstall-includes"
15624 INCLUDE_INSTALL_TARGET=""
15625 INCLUDE_UNINSTALL_TARGET=""
15633 *cygwin* ) CYGWIN=yes;;
15637 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
15643 HAVE_SUN_OS_FALSE='#'
15645 HAVE_SUN_OS_TRUE='#'
15648 $as_echo "#define HAVE_SUN_OS 1" >>confdefs.h
15655 HAVE_SUN_OS_FALSE='#'
15657 HAVE_SUN_OS_TRUE='#'
15662 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
15668 HAVE_OSF1_OS_FALSE='#'
15670 HAVE_OSF1_OS_TRUE='#'
15671 HAVE_OSF1_OS_FALSE=
15673 $as_echo "#define HAVE_OSF1_OS 1" >>confdefs.h
15680 HAVE_OSF1_OS_FALSE='#'
15682 HAVE_OSF1_OS_TRUE='#'
15683 HAVE_OSF1_OS_FALSE=
15687 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
15693 HAVE_AIX_OS_FALSE='#'
15695 HAVE_AIX_OS_TRUE='#'
15698 $as_echo "#define HAVE_AIX_OS 1" >>confdefs.h
15705 HAVE_AIX_OS_FALSE='#'
15707 HAVE_AIX_OS_TRUE='#'
15712 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
15718 HAVE_HPUX_OS_FALSE='#'
15720 HAVE_HPUX_OS_TRUE='#'
15721 HAVE_HPUX_OS_FALSE=
15723 $as_echo "#define HAVE_HPUX_OS 1" >>confdefs.h
15730 HAVE_HPUX_OS_FALSE='#'
15732 HAVE_HPUX_OS_TRUE='#'
15733 HAVE_HPUX_OS_FALSE=
15737 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
15742 HAVE_LINUX_OS_TRUE=
15743 HAVE_LINUX_OS_FALSE='#'
15745 HAVE_LINUX_OS_TRUE='#'
15746 HAVE_LINUX_OS_FALSE=
15748 $as_echo "#define HAVE_LINUX_OS 1" >>confdefs.h
15754 HAVE_LINUX_OS_TRUE=
15755 HAVE_LINUX_OS_FALSE='#'
15757 HAVE_LINUX_OS_TRUE='#'
15758 HAVE_LINUX_OS_FALSE=
15762 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
15767 HAVE_FREEBSD_OS_TRUE=
15768 HAVE_FREEBSD_OS_FALSE='#'
15770 HAVE_FREEBSD_OS_TRUE='#'
15771 HAVE_FREEBSD_OS_FALSE=
15773 $as_echo "#define HAVE_FREEBSD_OS 1" >>confdefs.h
15779 HAVE_FREEBSD_OS_TRUE=
15780 HAVE_FREEBSD_OS_FALSE='#'
15782 HAVE_FREEBSD_OS_TRUE='#'
15783 HAVE_FREEBSD_OS_FALSE=
15787 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
15792 HAVE_NETBSD_OS_TRUE=
15793 HAVE_NETBSD_OS_FALSE='#'
15795 HAVE_NETBSD_OS_TRUE='#'
15796 HAVE_NETBSD_OS_FALSE=
15798 $as_echo "#define HAVE_NETBSD_OS 1" >>confdefs.h
15804 HAVE_NETBSD_OS_TRUE=
15805 HAVE_NETBSD_OS_FALSE='#'
15807 HAVE_NETBSD_OS_TRUE='#'
15808 HAVE_NETBSD_OS_FALSE=
15812 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
15817 HAVE_OPENBSD_OS_TRUE=
15818 HAVE_OPENBSD_OS_FALSE='#'
15820 HAVE_OPENBSD_OS_TRUE='#'
15821 HAVE_OPENBSD_OS_FALSE=
15823 $as_echo "#define HAVE_OPENBSD_OS 1" >>confdefs.h
15829 HAVE_OPENBSD_OS_TRUE=
15830 HAVE_OPENBSD_OS_FALSE='#'
15832 HAVE_OPENBSD_OS_TRUE='#'
15833 HAVE_OPENBSD_OS_FALSE=
15837 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
15843 HAVE_BSDI_OS_FALSE='#'
15845 HAVE_BSDI_OS_TRUE='#'
15846 HAVE_BSDI_OS_FALSE=
15848 $as_echo "#define HAVE_BSDI_OS 1" >>confdefs.h
15855 HAVE_BSDI_OS_FALSE='#'
15857 HAVE_BSDI_OS_TRUE='#'
15858 HAVE_BSDI_OS_FALSE=
15862 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
15868 HAVE_SGI_OS_FALSE='#'
15870 HAVE_SGI_OS_TRUE='#'
15873 $as_echo "#define HAVE_SGI_OS 1" >>confdefs.h
15880 HAVE_SGI_OS_FALSE='#'
15882 HAVE_SGI_OS_TRUE='#'
15887 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX -o x`uname -s` = xIRIX64
15893 HAVE_IRIX_OS_FALSE='#'
15895 HAVE_IRIX_OS_TRUE='#'
15896 HAVE_IRIX_OS_FALSE=
15898 $as_echo "#define HAVE_IRIX_OS 1" >>confdefs.h
15905 HAVE_IRIX_OS_FALSE='#'
15907 HAVE_IRIX_OS_TRUE='#'
15908 HAVE_IRIX_OS_FALSE=
15912 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
15917 HAVE_DARWIN_OS_TRUE=
15918 HAVE_DARWIN_OS_FALSE='#'
15920 HAVE_DARWIN_OS_TRUE='#'
15921 HAVE_DARWIN_OS_FALSE=
15923 $as_echo "#define HAVE_DARWIN_OS 1" >>confdefs.h
15929 HAVE_DARWIN_OS_TRUE=
15930 HAVE_DARWIN_OS_FALSE='#'
15932 HAVE_DARWIN_OS_TRUE='#'
15933 HAVE_DARWIN_OS_FALSE=
15938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Operating System Distribution" >&5
15939 $as_echo_n "checking for Operating System Distribution... " >&6; }
15940 if test "x$DISTNAME" != "x"
15942 echo "distname set to $DISTNAME"
15943 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
15946 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
15949 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
15952 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
15955 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
15958 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
15961 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
15964 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
15967 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
15970 elif test -f /etc/SuSE-release
15973 elif test -d /etc/SuSEconfig
15976 elif test -f /etc/mandrake-release
15979 elif test -f /etc/whitebox-release
15982 elif test -f /etc/redhat-release
15985 elif test -f /etc/gentoo-release
15988 elif test -f /etc/debian_version
15991 elif test -f /etc/slackware-version
15994 elif test x$host_vendor = xapple
15997 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
16000 elif test -f /etc/engarde-version
16003 elif test -f /etc/arch-release
16006 elif test "$CYGWIN" = yes
16009 $as_echo "#define HAVE_CYGWIN 1" >>confdefs.h
16014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
16015 $as_echo "done" >&6; }
16018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
16019 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
16021 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
16022 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
16023 $as_echo_n "(cached) " >&6
16025 cat >conftest.make <<\_ACEOF
16028 @echo '@@@%%%=$(MAKE)=@@@%%%'
16030 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
16031 case `${MAKE-make} -f conftest.make 2>/dev/null` in
16032 *@@@%%%=?*=@@@%%%*)
16033 eval ac_cv_prog_make_${ac_make}_set=yes;;
16035 eval ac_cv_prog_make_${ac_make}_set=no;;
16037 rm -f conftest.make
16039 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
16040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16041 $as_echo "yes" >&6; }
16044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16045 $as_echo "no" >&6; }
16046 SET_MAKE="MAKE=${MAKE-make}"
16052 if test -n "$ac_aux_dir"; then
16053 case "$ac_aux_dir" in
16054 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
16055 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
16058 if test -z "$MKINSTALLDIRS"; then
16059 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
16064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
16065 $as_echo_n "checking whether NLS is requested... " >&6; }
16066 # Check whether --enable-nls was given.
16067 if test "${enable_nls+set}" = set; then :
16068 enableval=$enable_nls; USE_NLS=$enableval
16073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
16074 $as_echo "$USE_NLS" >&6; }
16081 # Prepare PATH_SEPARATOR.
16082 # The user is always right.
16083 if test "${PATH_SEPARATOR+set}" != set; then
16084 echo "#! /bin/sh" >conf$$.sh
16085 echo "exit 0" >>conf$$.sh
16087 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16095 # Find out how to test for executable files. Don't use a zero-byte file,
16096 # as systems may use methods other than mode bits to determine executability.
16097 cat >conf$$.file <<_ASEOF
16101 chmod +x conf$$.file
16102 if test -x conf$$.file >/dev/null 2>&1; then
16103 ac_executable_p="test -x"
16105 ac_executable_p="test -f"
16109 # Extract the first word of "msgfmt", so it can be a program name with args.
16110 set dummy msgfmt; ac_word=$2
16111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16112 $as_echo_n "checking for $ac_word... " >&6; }
16113 if ${ac_cv_path_MSGFMT+:} false; then :
16114 $as_echo_n "(cached) " >&6
16118 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
16121 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16122 for ac_dir in $PATH; do
16124 test -z "$ac_dir" && ac_dir=.
16125 for ac_exec_ext in '' $ac_executable_extensions; do
16126 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16127 echo "$as_me: trying $ac_dir/$ac_word..." >&5
16128 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
16129 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16130 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
16137 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
16141 MSGFMT="$ac_cv_path_MSGFMT"
16142 if test "$MSGFMT" != ":"; then
16143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
16144 $as_echo "$MSGFMT" >&6; }
16146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16147 $as_echo "no" >&6; }
16150 # Extract the first word of "gmsgfmt", so it can be a program name with args.
16151 set dummy gmsgfmt; ac_word=$2
16152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16153 $as_echo_n "checking for $ac_word... " >&6; }
16154 if ${ac_cv_path_GMSGFMT+:} false; then :
16155 $as_echo_n "(cached) " >&6
16159 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
16162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16163 for as_dir in $PATH
16166 test -z "$as_dir" && as_dir=.
16167 for ac_exec_ext in '' $ac_executable_extensions; do
16168 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16169 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
16170 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16177 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
16181 GMSGFMT=$ac_cv_path_GMSGFMT
16182 if test -n "$GMSGFMT"; then
16183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
16184 $as_echo "$GMSGFMT" >&6; }
16186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16187 $as_echo "no" >&6; }
16193 # Prepare PATH_SEPARATOR.
16194 # The user is always right.
16195 if test "${PATH_SEPARATOR+set}" != set; then
16196 echo "#! /bin/sh" >conf$$.sh
16197 echo "exit 0" >>conf$$.sh
16199 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16207 # Find out how to test for executable files. Don't use a zero-byte file,
16208 # as systems may use methods other than mode bits to determine executability.
16209 cat >conf$$.file <<_ASEOF
16213 chmod +x conf$$.file
16214 if test -x conf$$.file >/dev/null 2>&1; then
16215 ac_executable_p="test -x"
16217 ac_executable_p="test -f"
16221 # Extract the first word of "xgettext", so it can be a program name with args.
16222 set dummy xgettext; ac_word=$2
16223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16224 $as_echo_n "checking for $ac_word... " >&6; }
16225 if ${ac_cv_path_XGETTEXT+:} false; then :
16226 $as_echo_n "(cached) " >&6
16228 case "$XGETTEXT" in
16230 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
16233 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16234 for ac_dir in $PATH; do
16236 test -z "$ac_dir" && ac_dir=.
16237 for ac_exec_ext in '' $ac_executable_extensions; do
16238 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16239 echo "$as_me: trying $ac_dir/$ac_word..." >&5
16240 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
16241 (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
16242 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
16249 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
16253 XGETTEXT="$ac_cv_path_XGETTEXT"
16254 if test "$XGETTEXT" != ":"; then
16255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
16256 $as_echo "$XGETTEXT" >&6; }
16258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16259 $as_echo "no" >&6; }
16265 # Prepare PATH_SEPARATOR.
16266 # The user is always right.
16267 if test "${PATH_SEPARATOR+set}" != set; then
16268 echo "#! /bin/sh" >conf$$.sh
16269 echo "exit 0" >>conf$$.sh
16271 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16279 # Find out how to test for executable files. Don't use a zero-byte file,
16280 # as systems may use methods other than mode bits to determine executability.
16281 cat >conf$$.file <<_ASEOF
16285 chmod +x conf$$.file
16286 if test -x conf$$.file >/dev/null 2>&1; then
16287 ac_executable_p="test -x"
16289 ac_executable_p="test -f"
16293 # Extract the first word of "msgmerge", so it can be a program name with args.
16294 set dummy msgmerge; ac_word=$2
16295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16296 $as_echo_n "checking for $ac_word... " >&6; }
16297 if ${ac_cv_path_MSGMERGE+:} false; then :
16298 $as_echo_n "(cached) " >&6
16300 case "$MSGMERGE" in
16302 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
16305 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16306 for ac_dir in $PATH; do
16308 test -z "$ac_dir" && ac_dir=.
16309 for ac_exec_ext in '' $ac_executable_extensions; do
16310 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16311 echo "$as_me: trying $ac_dir/$ac_word..." >&5
16312 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
16313 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
16320 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
16324 MSGMERGE="$ac_cv_path_MSGMERGE"
16325 if test "$MSGMERGE" != ":"; then
16326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
16327 $as_echo "$MSGMERGE" >&6; }
16329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16330 $as_echo "no" >&6; }
16334 if test "$GMSGFMT" != ":"; then
16335 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
16336 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16339 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
16340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
16341 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
16346 if test "$XGETTEXT" != ":"; then
16347 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
16348 (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
16351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
16352 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
16358 ac_config_commands="$ac_config_commands default-1"
16362 if test "X$prefix" = "XNONE"; then
16363 acl_final_prefix="$ac_default_prefix"
16365 acl_final_prefix="$prefix"
16367 if test "X$exec_prefix" = "XNONE"; then
16368 acl_final_exec_prefix='${prefix}'
16370 acl_final_exec_prefix="$exec_prefix"
16372 acl_save_prefix="$prefix"
16373 prefix="$acl_final_prefix"
16374 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
16375 prefix="$acl_save_prefix"
16378 # Check whether --with-gnu-ld was given.
16379 if test "${with_gnu_ld+set}" = set; then :
16380 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
16385 # Prepare PATH_SEPARATOR.
16386 # The user is always right.
16387 if test "${PATH_SEPARATOR+set}" != set; then
16388 echo "#! /bin/sh" >conf$$.sh
16389 echo "exit 0" >>conf$$.sh
16391 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16399 if test "$GCC" = yes; then
16400 # Check if gcc -print-prog-name=ld gives a path.
16401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
16402 $as_echo_n "checking for ld used by GCC... " >&6; }
16405 # gcc leaves a trailing carriage return which upsets mingw
16406 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16408 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16411 # Accept absolute paths.
16412 [\\/]* | [A-Za-z]:[\\/]*)
16413 re_direlt='/[^/][^/]*/\.\./'
16414 # Canonicalize the path of ld
16415 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
16416 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
16417 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
16419 test -z "$LD" && LD="$ac_prog"
16422 # If it fails, then pretend we aren't using GCC.
16426 # If it is relative, then search for the first ld in PATH.
16427 with_gnu_ld=unknown
16430 elif test "$with_gnu_ld" = yes; then
16431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
16432 $as_echo_n "checking for GNU ld... " >&6; }
16434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
16435 $as_echo_n "checking for non-GNU ld... " >&6; }
16437 if ${acl_cv_path_LD+:} false; then :
16438 $as_echo_n "(cached) " >&6
16440 if test -z "$LD"; then
16441 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
16442 for ac_dir in $PATH; do
16443 test -z "$ac_dir" && ac_dir=.
16444 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16445 acl_cv_path_LD="$ac_dir/$ac_prog"
16446 # Check to see if the program is GNU ld. I'd rather use --version,
16447 # but apparently some GNU ld's only accept -v.
16448 # Break only if it was the GNU/non-GNU ld that we prefer.
16449 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
16450 *GNU* | *'with BFD'*)
16451 test "$with_gnu_ld" != no && break ;;
16453 test "$with_gnu_ld" != yes && break ;;
16459 acl_cv_path_LD="$LD" # Let the user override the test with a path.
16463 LD="$acl_cv_path_LD"
16464 if test -n "$LD"; then
16465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
16466 $as_echo "$LD" >&6; }
16468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16469 $as_echo "no" >&6; }
16471 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
16472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
16473 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
16474 if ${acl_cv_prog_gnu_ld+:} false; then :
16475 $as_echo_n "(cached) " >&6
16477 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
16478 case `$LD -v 2>&1 </dev/null` in
16479 *GNU* | *'with BFD'*)
16480 acl_cv_prog_gnu_ld=yes ;;
16482 acl_cv_prog_gnu_ld=no ;;
16485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
16486 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
16487 with_gnu_ld=$acl_cv_prog_gnu_ld
16492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
16493 $as_echo_n "checking for shared library run path origin... " >&6; }
16494 if ${acl_cv_rpath+:} false; then :
16495 $as_echo_n "(cached) " >&6
16498 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
16499 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
16501 rm -f ./conftest.sh
16505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
16506 $as_echo "$acl_cv_rpath" >&6; }
16508 libext="$acl_cv_libext"
16509 shlibext="$acl_cv_shlibext"
16510 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
16511 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
16512 hardcode_direct="$acl_cv_hardcode_direct"
16513 hardcode_minus_L="$acl_cv_hardcode_minus_L"
16514 # Check whether --enable-rpath was given.
16515 if test "${enable_rpath+set}" = set; then :
16516 enableval=$enable_rpath; :
16530 acl_save_prefix="$prefix"
16531 prefix="$acl_final_prefix"
16532 acl_save_exec_prefix="$exec_prefix"
16533 exec_prefix="$acl_final_exec_prefix"
16535 eval additional_includedir=\"$includedir\"
16536 eval additional_libdir=\"$libdir\"
16538 exec_prefix="$acl_save_exec_prefix"
16539 prefix="$acl_save_prefix"
16542 # Check whether --with-libiconv-prefix was given.
16543 if test "${with_libiconv_prefix+set}" = set; then :
16544 withval=$with_libiconv_prefix;
16545 if test "X$withval" = "Xno"; then
16548 if test "X$withval" = "X"; then
16550 acl_save_prefix="$prefix"
16551 prefix="$acl_final_prefix"
16552 acl_save_exec_prefix="$exec_prefix"
16553 exec_prefix="$acl_final_exec_prefix"
16555 eval additional_includedir=\"$includedir\"
16556 eval additional_libdir=\"$libdir\"
16558 exec_prefix="$acl_save_exec_prefix"
16559 prefix="$acl_save_prefix"
16562 additional_includedir="$withval/include"
16563 additional_libdir="$withval/lib"
16574 names_already_handled=
16575 names_next_round='iconv '
16576 while test -n "$names_next_round"; do
16577 names_this_round="$names_next_round"
16579 for name in $names_this_round; do
16581 for n in $names_already_handled; do
16582 if test "$n" = "$name"; then
16583 already_handled=yes
16587 if test -z "$already_handled"; then
16588 names_already_handled="$names_already_handled $name"
16589 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
16590 eval value=\"\$HAVE_LIB$uppername\"
16591 if test -n "$value"; then
16592 if test "$value" = yes; then
16593 eval value=\"\$LIB$uppername\"
16594 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
16595 eval value=\"\$LTLIB$uppername\"
16596 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
16605 if test $use_additional = yes; then
16606 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
16607 found_dir="$additional_libdir"
16608 found_so="$additional_libdir/lib$name.$shlibext"
16609 if test -f "$additional_libdir/lib$name.la"; then
16610 found_la="$additional_libdir/lib$name.la"
16613 if test -f "$additional_libdir/lib$name.$libext"; then
16614 found_dir="$additional_libdir"
16615 found_a="$additional_libdir/lib$name.$libext"
16616 if test -f "$additional_libdir/lib$name.la"; then
16617 found_la="$additional_libdir/lib$name.la"
16622 if test "X$found_dir" = "X"; then
16623 for x in $LDFLAGS $LTLIBICONV; do
16625 acl_save_prefix="$prefix"
16626 prefix="$acl_final_prefix"
16627 acl_save_exec_prefix="$exec_prefix"
16628 exec_prefix="$acl_final_exec_prefix"
16630 exec_prefix="$acl_save_exec_prefix"
16631 prefix="$acl_save_prefix"
16635 dir=`echo "X$x" | sed -e 's/^X-L//'`
16636 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
16638 found_so="$dir/lib$name.$shlibext"
16639 if test -f "$dir/lib$name.la"; then
16640 found_la="$dir/lib$name.la"
16643 if test -f "$dir/lib$name.$libext"; then
16645 found_a="$dir/lib$name.$libext"
16646 if test -f "$dir/lib$name.la"; then
16647 found_la="$dir/lib$name.la"
16653 if test "X$found_dir" != "X"; then
16658 if test "X$found_dir" != "X"; then
16659 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
16660 if test "X$found_so" != "X"; then
16661 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
16662 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
16665 for x in $ltrpathdirs; do
16666 if test "X$x" = "X$found_dir"; then
16671 if test -z "$haveit"; then
16672 ltrpathdirs="$ltrpathdirs $found_dir"
16674 if test "$hardcode_direct" = yes; then
16675 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
16677 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
16678 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
16680 for x in $rpathdirs; do
16681 if test "X$x" = "X$found_dir"; then
16686 if test -z "$haveit"; then
16687 rpathdirs="$rpathdirs $found_dir"
16691 for x in $LDFLAGS $LIBICONV; do
16693 acl_save_prefix="$prefix"
16694 prefix="$acl_final_prefix"
16695 acl_save_exec_prefix="$exec_prefix"
16696 exec_prefix="$acl_final_exec_prefix"
16698 exec_prefix="$acl_save_exec_prefix"
16699 prefix="$acl_save_prefix"
16701 if test "X$x" = "X-L$found_dir"; then
16706 if test -z "$haveit"; then
16707 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
16709 if test "$hardcode_minus_L" != no; then
16710 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
16712 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
16718 if test "X$found_a" != "X"; then
16719 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
16721 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
16724 additional_includedir=
16725 case "$found_dir" in
16727 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
16728 additional_includedir="$basedir/include"
16731 if test "X$additional_includedir" != "X"; then
16732 if test "X$additional_includedir" != "X/usr/include"; then
16734 if test "X$additional_includedir" = "X/usr/local/include"; then
16735 if test -n "$GCC"; then
16737 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
16741 if test -z "$haveit"; then
16742 for x in $CPPFLAGS $INCICONV; do
16744 acl_save_prefix="$prefix"
16745 prefix="$acl_final_prefix"
16746 acl_save_exec_prefix="$exec_prefix"
16747 exec_prefix="$acl_final_exec_prefix"
16749 exec_prefix="$acl_save_exec_prefix"
16750 prefix="$acl_save_prefix"
16752 if test "X$x" = "X-I$additional_includedir"; then
16757 if test -z "$haveit"; then
16758 if test -d "$additional_includedir"; then
16759 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
16765 if test -n "$found_la"; then
16766 save_libdir="$libdir"
16767 case "$found_la" in
16768 */* | *\\*) . "$found_la" ;;
16769 *) . "./$found_la" ;;
16771 libdir="$save_libdir"
16772 for dep in $dependency_libs; do
16775 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
16776 if test "X$additional_libdir" != "X/usr/lib"; then
16778 if test "X$additional_libdir" = "X/usr/local/lib"; then
16779 if test -n "$GCC"; then
16781 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
16785 if test -z "$haveit"; then
16787 for x in $LDFLAGS $LIBICONV; do
16789 acl_save_prefix="$prefix"
16790 prefix="$acl_final_prefix"
16791 acl_save_exec_prefix="$exec_prefix"
16792 exec_prefix="$acl_final_exec_prefix"
16794 exec_prefix="$acl_save_exec_prefix"
16795 prefix="$acl_save_prefix"
16797 if test "X$x" = "X-L$additional_libdir"; then
16802 if test -z "$haveit"; then
16803 if test -d "$additional_libdir"; then
16804 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
16808 for x in $LDFLAGS $LTLIBICONV; do
16810 acl_save_prefix="$prefix"
16811 prefix="$acl_final_prefix"
16812 acl_save_exec_prefix="$exec_prefix"
16813 exec_prefix="$acl_final_exec_prefix"
16815 exec_prefix="$acl_save_exec_prefix"
16816 prefix="$acl_save_prefix"
16818 if test "X$x" = "X-L$additional_libdir"; then
16823 if test -z "$haveit"; then
16824 if test -d "$additional_libdir"; then
16825 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
16832 dir=`echo "X$dep" | sed -e 's/^X-R//'`
16833 if test "$enable_rpath" != no; then
16835 for x in $rpathdirs; do
16836 if test "X$x" = "X$dir"; then
16841 if test -z "$haveit"; then
16842 rpathdirs="$rpathdirs $dir"
16845 for x in $ltrpathdirs; do
16846 if test "X$x" = "X$dir"; then
16851 if test -z "$haveit"; then
16852 ltrpathdirs="$ltrpathdirs $dir"
16857 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
16860 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
16863 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
16864 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
16870 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
16871 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
16877 if test "X$rpathdirs" != "X"; then
16878 if test -n "$hardcode_libdir_separator"; then
16880 for found_dir in $rpathdirs; do
16881 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
16883 acl_save_libdir="$libdir"
16885 eval flag=\"$hardcode_libdir_flag_spec\"
16886 libdir="$acl_save_libdir"
16887 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
16889 for found_dir in $rpathdirs; do
16890 acl_save_libdir="$libdir"
16891 libdir="$found_dir"
16892 eval flag=\"$hardcode_libdir_flag_spec\"
16893 libdir="$acl_save_libdir"
16894 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
16898 if test "X$ltrpathdirs" != "X"; then
16899 for found_dir in $ltrpathdirs; do
16900 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
16921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
16922 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
16923 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
16924 $as_echo_n "(cached) " >&6
16926 gt_save_CPPFLAGS="$CPPFLAGS"
16927 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
16928 gt_save_LIBS="$LIBS"
16929 LIBS="$LIBS -framework CoreFoundation"
16930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16931 /* end confdefs.h. */
16932 #include <CFPreferences.h>
16936 CFPreferencesCopyAppValue(NULL, NULL)
16941 if ac_fn_c_try_link "$LINENO"; then :
16942 gt_cv_func_CFPreferencesCopyAppValue=yes
16944 gt_cv_func_CFPreferencesCopyAppValue=no
16946 rm -f core conftest.err conftest.$ac_objext \
16947 conftest$ac_exeext conftest.$ac_ext
16948 CPPFLAGS="$gt_save_CPPFLAGS"
16949 LIBS="$gt_save_LIBS"
16951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
16952 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
16953 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
16955 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
16958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
16959 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
16960 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
16961 $as_echo_n "(cached) " >&6
16963 gt_save_CPPFLAGS="$CPPFLAGS"
16964 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
16965 gt_save_LIBS="$LIBS"
16966 LIBS="$LIBS -framework CoreFoundation"
16967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16968 /* end confdefs.h. */
16969 #include <CFLocale.h>
16973 CFLocaleCopyCurrent();
16978 if ac_fn_c_try_link "$LINENO"; then :
16979 gt_cv_func_CFLocaleCopyCurrent=yes
16981 gt_cv_func_CFLocaleCopyCurrent=no
16983 rm -f core conftest.err conftest.$ac_objext \
16984 conftest$ac_exeext conftest.$ac_ext
16985 CPPFLAGS="$gt_save_CPPFLAGS"
16986 LIBS="$gt_save_LIBS"
16988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
16989 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
16990 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
16992 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
16996 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
16997 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
17003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
17004 $as_echo_n "checking whether NLS is requested... " >&6; }
17005 # Check whether --enable-nls was given.
17006 if test "${enable_nls+set}" = set; then :
17007 enableval=$enable_nls; USE_NLS=$enableval
17012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
17013 $as_echo "$USE_NLS" >&6; }
17022 if test "$USE_NLS" = "yes"; then
17023 gt_use_preinstalled_gnugettext=no
17030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
17031 $as_echo_n "checking for GNU gettext in libc... " >&6; }
17032 if ${gt_cv_func_gnugettext1_libc+:} false; then :
17033 $as_echo_n "(cached) " >&6
17035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17036 /* end confdefs.h. */
17037 #include <libintl.h>
17038 extern int _nl_msg_cat_cntr;
17039 extern int *_nl_domain_bindings;
17043 bindtextdomain ("", "");
17044 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
17049 if ac_fn_c_try_link "$LINENO"; then :
17050 gt_cv_func_gnugettext1_libc=yes
17052 gt_cv_func_gnugettext1_libc=no
17054 rm -f core conftest.err conftest.$ac_objext \
17055 conftest$ac_exeext conftest.$ac_ext
17057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5
17058 $as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
17060 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
17066 am_save_CPPFLAGS="$CPPFLAGS"
17068 for element in $INCICONV; do
17070 for x in $CPPFLAGS; do
17072 acl_save_prefix="$prefix"
17073 prefix="$acl_final_prefix"
17074 acl_save_exec_prefix="$exec_prefix"
17075 exec_prefix="$acl_final_exec_prefix"
17077 exec_prefix="$acl_save_exec_prefix"
17078 prefix="$acl_save_prefix"
17080 if test "X$x" = "X$element"; then
17085 if test -z "$haveit"; then
17086 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
17091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
17092 $as_echo_n "checking for iconv... " >&6; }
17093 if ${am_cv_func_iconv+:} false; then :
17094 $as_echo_n "(cached) " >&6
17097 am_cv_func_iconv="no, consider installing GNU libiconv"
17099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17100 /* end confdefs.h. */
17101 #include <stdlib.h>
17106 iconv_t cd = iconv_open("","");
17107 iconv(cd,NULL,NULL,NULL,NULL);
17113 if ac_fn_c_try_link "$LINENO"; then :
17114 am_cv_func_iconv=yes
17116 rm -f core conftest.err conftest.$ac_objext \
17117 conftest$ac_exeext conftest.$ac_ext
17118 if test "$am_cv_func_iconv" != yes; then
17119 am_save_LIBS="$LIBS"
17120 LIBS="$LIBS $LIBICONV"
17121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17122 /* end confdefs.h. */
17123 #include <stdlib.h>
17128 iconv_t cd = iconv_open("","");
17129 iconv(cd,NULL,NULL,NULL,NULL);
17135 if ac_fn_c_try_link "$LINENO"; then :
17136 am_cv_lib_iconv=yes
17137 am_cv_func_iconv=yes
17139 rm -f core conftest.err conftest.$ac_objext \
17140 conftest$ac_exeext conftest.$ac_ext
17141 LIBS="$am_save_LIBS"
17145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
17146 $as_echo "$am_cv_func_iconv" >&6; }
17147 if test "$am_cv_func_iconv" = yes; then
17149 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
17152 if test "$am_cv_lib_iconv" = yes; then
17153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
17154 $as_echo_n "checking how to link with libiconv... " >&6; }
17155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
17156 $as_echo "$LIBICONV" >&6; }
17158 CPPFLAGS="$am_save_CPPFLAGS"
17170 acl_save_prefix="$prefix"
17171 prefix="$acl_final_prefix"
17172 acl_save_exec_prefix="$exec_prefix"
17173 exec_prefix="$acl_final_exec_prefix"
17175 eval additional_includedir=\"$includedir\"
17176 eval additional_libdir=\"$libdir\"
17178 exec_prefix="$acl_save_exec_prefix"
17179 prefix="$acl_save_prefix"
17182 # Check whether --with-libintl-prefix was given.
17183 if test "${with_libintl_prefix+set}" = set; then :
17184 withval=$with_libintl_prefix;
17185 if test "X$withval" = "Xno"; then
17188 if test "X$withval" = "X"; then
17190 acl_save_prefix="$prefix"
17191 prefix="$acl_final_prefix"
17192 acl_save_exec_prefix="$exec_prefix"
17193 exec_prefix="$acl_final_exec_prefix"
17195 eval additional_includedir=\"$includedir\"
17196 eval additional_libdir=\"$libdir\"
17198 exec_prefix="$acl_save_exec_prefix"
17199 prefix="$acl_save_prefix"
17202 additional_includedir="$withval/include"
17203 additional_libdir="$withval/lib"
17214 names_already_handled=
17215 names_next_round='intl '
17216 while test -n "$names_next_round"; do
17217 names_this_round="$names_next_round"
17219 for name in $names_this_round; do
17221 for n in $names_already_handled; do
17222 if test "$n" = "$name"; then
17223 already_handled=yes
17227 if test -z "$already_handled"; then
17228 names_already_handled="$names_already_handled $name"
17229 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
17230 eval value=\"\$HAVE_LIB$uppername\"
17231 if test -n "$value"; then
17232 if test "$value" = yes; then
17233 eval value=\"\$LIB$uppername\"
17234 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
17235 eval value=\"\$LTLIB$uppername\"
17236 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
17245 if test $use_additional = yes; then
17246 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
17247 found_dir="$additional_libdir"
17248 found_so="$additional_libdir/lib$name.$shlibext"
17249 if test -f "$additional_libdir/lib$name.la"; then
17250 found_la="$additional_libdir/lib$name.la"
17253 if test -f "$additional_libdir/lib$name.$libext"; then
17254 found_dir="$additional_libdir"
17255 found_a="$additional_libdir/lib$name.$libext"
17256 if test -f "$additional_libdir/lib$name.la"; then
17257 found_la="$additional_libdir/lib$name.la"
17262 if test "X$found_dir" = "X"; then
17263 for x in $LDFLAGS $LTLIBINTL; do
17265 acl_save_prefix="$prefix"
17266 prefix="$acl_final_prefix"
17267 acl_save_exec_prefix="$exec_prefix"
17268 exec_prefix="$acl_final_exec_prefix"
17270 exec_prefix="$acl_save_exec_prefix"
17271 prefix="$acl_save_prefix"
17275 dir=`echo "X$x" | sed -e 's/^X-L//'`
17276 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
17278 found_so="$dir/lib$name.$shlibext"
17279 if test -f "$dir/lib$name.la"; then
17280 found_la="$dir/lib$name.la"
17283 if test -f "$dir/lib$name.$libext"; then
17285 found_a="$dir/lib$name.$libext"
17286 if test -f "$dir/lib$name.la"; then
17287 found_la="$dir/lib$name.la"
17293 if test "X$found_dir" != "X"; then
17298 if test "X$found_dir" != "X"; then
17299 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
17300 if test "X$found_so" != "X"; then
17301 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
17302 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17305 for x in $ltrpathdirs; do
17306 if test "X$x" = "X$found_dir"; then
17311 if test -z "$haveit"; then
17312 ltrpathdirs="$ltrpathdirs $found_dir"
17314 if test "$hardcode_direct" = yes; then
17315 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17317 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
17318 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17320 for x in $rpathdirs; do
17321 if test "X$x" = "X$found_dir"; then
17326 if test -z "$haveit"; then
17327 rpathdirs="$rpathdirs $found_dir"
17331 for x in $LDFLAGS $LIBINTL; do
17333 acl_save_prefix="$prefix"
17334 prefix="$acl_final_prefix"
17335 acl_save_exec_prefix="$exec_prefix"
17336 exec_prefix="$acl_final_exec_prefix"
17338 exec_prefix="$acl_save_exec_prefix"
17339 prefix="$acl_save_prefix"
17341 if test "X$x" = "X-L$found_dir"; then
17346 if test -z "$haveit"; then
17347 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
17349 if test "$hardcode_minus_L" != no; then
17350 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17352 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
17358 if test "X$found_a" != "X"; then
17359 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
17361 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
17364 additional_includedir=
17365 case "$found_dir" in
17367 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
17368 additional_includedir="$basedir/include"
17371 if test "X$additional_includedir" != "X"; then
17372 if test "X$additional_includedir" != "X/usr/include"; then
17374 if test "X$additional_includedir" = "X/usr/local/include"; then
17375 if test -n "$GCC"; then
17377 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17381 if test -z "$haveit"; then
17382 for x in $CPPFLAGS $INCINTL; do
17384 acl_save_prefix="$prefix"
17385 prefix="$acl_final_prefix"
17386 acl_save_exec_prefix="$exec_prefix"
17387 exec_prefix="$acl_final_exec_prefix"
17389 exec_prefix="$acl_save_exec_prefix"
17390 prefix="$acl_save_prefix"
17392 if test "X$x" = "X-I$additional_includedir"; then
17397 if test -z "$haveit"; then
17398 if test -d "$additional_includedir"; then
17399 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
17405 if test -n "$found_la"; then
17406 save_libdir="$libdir"
17407 case "$found_la" in
17408 */* | *\\*) . "$found_la" ;;
17409 *) . "./$found_la" ;;
17411 libdir="$save_libdir"
17412 for dep in $dependency_libs; do
17415 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17416 if test "X$additional_libdir" != "X/usr/lib"; then
17418 if test "X$additional_libdir" = "X/usr/local/lib"; then
17419 if test -n "$GCC"; then
17421 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17425 if test -z "$haveit"; then
17427 for x in $LDFLAGS $LIBINTL; do
17429 acl_save_prefix="$prefix"
17430 prefix="$acl_final_prefix"
17431 acl_save_exec_prefix="$exec_prefix"
17432 exec_prefix="$acl_final_exec_prefix"
17434 exec_prefix="$acl_save_exec_prefix"
17435 prefix="$acl_save_prefix"
17437 if test "X$x" = "X-L$additional_libdir"; then
17442 if test -z "$haveit"; then
17443 if test -d "$additional_libdir"; then
17444 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
17448 for x in $LDFLAGS $LTLIBINTL; do
17450 acl_save_prefix="$prefix"
17451 prefix="$acl_final_prefix"
17452 acl_save_exec_prefix="$exec_prefix"
17453 exec_prefix="$acl_final_exec_prefix"
17455 exec_prefix="$acl_save_exec_prefix"
17456 prefix="$acl_save_prefix"
17458 if test "X$x" = "X-L$additional_libdir"; then
17463 if test -z "$haveit"; then
17464 if test -d "$additional_libdir"; then
17465 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
17472 dir=`echo "X$dep" | sed -e 's/^X-R//'`
17473 if test "$enable_rpath" != no; then
17475 for x in $rpathdirs; do
17476 if test "X$x" = "X$dir"; then
17481 if test -z "$haveit"; then
17482 rpathdirs="$rpathdirs $dir"
17485 for x in $ltrpathdirs; do
17486 if test "X$x" = "X$dir"; then
17491 if test -z "$haveit"; then
17492 ltrpathdirs="$ltrpathdirs $dir"
17497 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
17500 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
17503 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
17504 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
17510 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
17511 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
17517 if test "X$rpathdirs" != "X"; then
17518 if test -n "$hardcode_libdir_separator"; then
17520 for found_dir in $rpathdirs; do
17521 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
17523 acl_save_libdir="$libdir"
17525 eval flag=\"$hardcode_libdir_flag_spec\"
17526 libdir="$acl_save_libdir"
17527 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
17529 for found_dir in $rpathdirs; do
17530 acl_save_libdir="$libdir"
17531 libdir="$found_dir"
17532 eval flag=\"$hardcode_libdir_flag_spec\"
17533 libdir="$acl_save_libdir"
17534 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
17538 if test "X$ltrpathdirs" != "X"; then
17539 for found_dir in $ltrpathdirs; do
17540 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
17544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
17545 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
17546 if ${gt_cv_func_gnugettext1_libintl+:} false; then :
17547 $as_echo_n "(cached) " >&6
17549 gt_save_CPPFLAGS="$CPPFLAGS"
17550 CPPFLAGS="$CPPFLAGS $INCINTL"
17551 gt_save_LIBS="$LIBS"
17552 LIBS="$LIBS $LIBINTL"
17553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17554 /* end confdefs.h. */
17555 #include <libintl.h>
17556 extern int _nl_msg_cat_cntr;
17561 const char *_nl_expand_alias (const char *);
17565 bindtextdomain ("", "");
17566 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
17571 if ac_fn_c_try_link "$LINENO"; then :
17572 gt_cv_func_gnugettext1_libintl=yes
17574 gt_cv_func_gnugettext1_libintl=no
17576 rm -f core conftest.err conftest.$ac_objext \
17577 conftest$ac_exeext conftest.$ac_ext
17578 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
17579 LIBS="$LIBS $LIBICONV"
17580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17581 /* end confdefs.h. */
17582 #include <libintl.h>
17583 extern int _nl_msg_cat_cntr;
17588 const char *_nl_expand_alias (const char *);
17592 bindtextdomain ("", "");
17593 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
17598 if ac_fn_c_try_link "$LINENO"; then :
17599 LIBINTL="$LIBINTL $LIBICONV"
17600 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
17601 gt_cv_func_gnugettext1_libintl=yes
17604 rm -f core conftest.err conftest.$ac_objext \
17605 conftest$ac_exeext conftest.$ac_ext
17607 CPPFLAGS="$gt_save_CPPFLAGS"
17608 LIBS="$gt_save_LIBS"
17610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5
17611 $as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
17614 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
17615 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
17616 && test "$PACKAGE" != gettext-runtime \
17617 && test "$PACKAGE" != gettext-tools; }; then
17618 gt_use_preinstalled_gnugettext=yes
17627 if test -n "$INTL_MACOSX_LIBS"; then
17628 if test "$gt_use_preinstalled_gnugettext" = "yes" \
17629 || test "$nls_cv_use_gnu_gettext" = "yes"; then
17630 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
17631 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
17635 if test "$gt_use_preinstalled_gnugettext" = "yes" \
17636 || test "$nls_cv_use_gnu_gettext" = "yes"; then
17638 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
17645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
17646 $as_echo_n "checking whether to use NLS... " >&6; }
17647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
17648 $as_echo "$USE_NLS" >&6; }
17649 if test "$USE_NLS" = "yes"; then
17650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
17651 $as_echo_n "checking where the gettext function comes from... " >&6; }
17652 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
17653 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
17654 gt_source="external libintl"
17659 gt_source="included intl directory"
17661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
17662 $as_echo "$gt_source" >&6; }
17665 if test "$USE_NLS" = "yes"; then
17667 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
17668 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
17669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
17670 $as_echo_n "checking how to link with libintl... " >&6; }
17671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
17672 $as_echo "$LIBINTL" >&6; }
17674 for element in $INCINTL; do
17676 for x in $CPPFLAGS; do
17678 acl_save_prefix="$prefix"
17679 prefix="$acl_final_prefix"
17680 acl_save_exec_prefix="$exec_prefix"
17681 exec_prefix="$acl_final_exec_prefix"
17683 exec_prefix="$acl_save_exec_prefix"
17684 prefix="$acl_save_prefix"
17686 if test "X$x" = "X$element"; then
17691 if test -z "$haveit"; then
17692 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
17699 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
17702 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
17711 INTLLIBS="$LIBINTL"
17719 os_name=`uname -s 2>/dev/null`
17720 if test x${prefix} = xNONE ; then
17721 if test `eval echo ${sysconfdir}` = NONE/etc ; then
17722 sysconfdir=/etc/bacula
17725 if test `eval echo ${libdir}` = NONE/lib ; then
17728 os_processor=`uname -p 2>/dev/null`
17729 case ${os_processor} in
17744 if test `eval echo ${includedir}` = NONE/include ; then
17745 includedir=/usr/include
17748 if test `eval echo ${datarootdir}` = NONE/share ; then
17749 datarootdir=/usr/share
17754 if test x${exec_prefix} = xNONE ; then
17755 exec_prefix=${prefix}
17758 sysconfdir=`eval echo ${sysconfdir}`
17759 datarootdir=`eval echo ${datarootdir}`
17760 docdir=`eval echo ${docdir}`
17761 htmldir=`eval echo ${htmldir}`
17762 libdir=`eval echo ${libdir}`
17763 includedir=`eval echo ${includedir}`
17764 localedir=`eval echo ${datarootdir}/locale`
17765 cat >>confdefs.h <<_ACEOF
17766 #define SYSCONFDIR "$sysconfdir"
17769 cat >>confdefs.h <<_ACEOF
17770 #define LOCALEDIR "$localedir"
17774 if test x$sbindir = x'${exec_prefix}/sbin' ; then
17775 sbindir=${exec_prefix}/sbin
17777 sbindir=`eval echo ${sbindir}`
17779 if test x$mandir = x'${prefix}/man' ; then
17780 mandir=/usr/share/man
17783 if test x$htmldir = x${docdir} ; then
17784 htmldir=`eval echo ${docdir}bacula/html`
17787 if test x$docdir = x'/usr/share/doc/' ; then
17788 docdir=`eval echo ${docdir}bacula`
17792 for ac_prog in msgfmt
17794 # Extract the first word of "$ac_prog", so it can be a program name with args.
17795 set dummy $ac_prog; ac_word=$2
17796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17797 $as_echo_n "checking for $ac_word... " >&6; }
17798 if ${ac_cv_path_MSGFMT+:} false; then :
17799 $as_echo_n "(cached) " >&6
17803 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
17806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17807 for as_dir in $PATH
17810 test -z "$as_dir" && as_dir=.
17811 for ac_exec_ext in '' $ac_executable_extensions; do
17812 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17813 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
17814 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17824 MSGFMT=$ac_cv_path_MSGFMT
17825 if test -n "$MSGFMT"; then
17826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
17827 $as_echo "$MSGFMT" >&6; }
17829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17830 $as_echo "no" >&6; }
17834 test -n "$MSGFMT" && break
17836 test -n "$MSGFMT" || MSGFMT="no"
17838 if test "$MSGFMT" = "no"
17840 echo 'msgfmt program not found, disabling NLS !'
17842 USE_INCLUDED_LIBINTL=no
17845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2 or newer" >&5
17846 $as_echo_n "checking whether we are using the GNU C Library 2 or newer... " >&6; }
17847 if ${ac_cv_gnu_library_2+:} false; then :
17848 $as_echo_n "(cached) " >&6
17850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17851 /* end confdefs.h. */
17853 #include <features.h>
17854 #ifdef __GNU_LIBRARY__
17855 #if (__GLIBC__ >= 2)
17861 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17862 $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
17863 ac_cv_gnu_library_2=yes
17865 ac_cv_gnu_library_2=no
17872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2" >&5
17873 $as_echo "$ac_cv_gnu_library_2" >&6; }
17875 GLIBC2="$ac_cv_gnu_library_2"
17878 if test -n "$ac_tool_prefix"; then
17879 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
17880 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
17881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17882 $as_echo_n "checking for $ac_word... " >&6; }
17883 if ${ac_cv_prog_RANLIB+:} false; then :
17884 $as_echo_n "(cached) " >&6
17886 if test -n "$RANLIB"; then
17887 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
17889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17890 for as_dir in $PATH
17893 test -z "$as_dir" && as_dir=.
17894 for ac_exec_ext in '' $ac_executable_extensions; do
17895 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17896 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
17897 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17906 RANLIB=$ac_cv_prog_RANLIB
17907 if test -n "$RANLIB"; then
17908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
17909 $as_echo "$RANLIB" >&6; }
17911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17912 $as_echo "no" >&6; }
17917 if test -z "$ac_cv_prog_RANLIB"; then
17918 ac_ct_RANLIB=$RANLIB
17919 # Extract the first word of "ranlib", so it can be a program name with args.
17920 set dummy ranlib; ac_word=$2
17921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17922 $as_echo_n "checking for $ac_word... " >&6; }
17923 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
17924 $as_echo_n "(cached) " >&6
17926 if test -n "$ac_ct_RANLIB"; then
17927 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
17929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17930 for as_dir in $PATH
17933 test -z "$as_dir" && as_dir=.
17934 for ac_exec_ext in '' $ac_executable_extensions; do
17935 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17936 ac_cv_prog_ac_ct_RANLIB="ranlib"
17937 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17946 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
17947 if test -n "$ac_ct_RANLIB"; then
17948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
17949 $as_echo "$ac_ct_RANLIB" >&6; }
17951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17952 $as_echo "no" >&6; }
17955 if test "x$ac_ct_RANLIB" = x; then
17958 case $cross_compiling:$ac_tool_warned in
17960 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17961 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17962 ac_tool_warned=yes ;;
17964 RANLIB=$ac_ct_RANLIB
17967 RANLIB="$ac_cv_prog_RANLIB"
17971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strerror in -lcposix" >&5
17972 $as_echo_n "checking for strerror in -lcposix... " >&6; }
17973 if ${ac_cv_lib_cposix_strerror+:} false; then :
17974 $as_echo_n "(cached) " >&6
17976 ac_check_lib_save_LIBS=$LIBS
17977 LIBS="-lcposix $LIBS"
17978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17979 /* end confdefs.h. */
17981 /* Override any GCC internal prototype to avoid an error.
17982 Use char because int might match the return type of a GCC
17983 builtin and then its argument prototype would still apply. */
17991 return strerror ();
17996 if ac_fn_c_try_link "$LINENO"; then :
17997 ac_cv_lib_cposix_strerror=yes
17999 ac_cv_lib_cposix_strerror=no
18001 rm -f core conftest.err conftest.$ac_objext \
18002 conftest$ac_exeext conftest.$ac_ext
18003 LIBS=$ac_check_lib_save_LIBS
18005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cposix_strerror" >&5
18006 $as_echo "$ac_cv_lib_cposix_strerror" >&6; }
18007 if test "x$ac_cv_lib_cposix_strerror" = xyes; then :
18008 LIBS="$LIBS -lcposix"
18013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
18014 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
18015 if ${ac_cv_c_const+:} false; then :
18016 $as_echo_n "(cached) " >&6
18018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18019 /* end confdefs.h. */
18024 /* FIXME: Include the comments suggested by Paul. */
18025 #ifndef __cplusplus
18026 /* Ultrix mips cc rejects this. */
18027 typedef int charset[2];
18029 /* SunOS 4.1.1 cc rejects this. */
18030 char const *const *pcpcc;
18032 /* NEC SVR4.0.2 mips cc rejects this. */
18033 struct point {int x, y;};
18034 static struct point const zero = {0,0};
18035 /* AIX XL C 1.02.0.0 rejects this.
18036 It does not let you subtract one const X* pointer from another in
18037 an arm of an if-expression whose if-part is not a constant
18039 const char *g = "string";
18040 pcpcc = &g + (g ? g-g : 0);
18041 /* HPUX 7.0 cc rejects these. */
18043 ppc = (char**) pcpcc;
18044 pcpcc = (char const *const *) ppc;
18045 { /* SCO 3.2v4 cc rejects this. */
18047 char const *s = 0 ? (char *) 0 : (char const *) 0;
18052 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
18053 int x[] = {25, 17};
18054 const int *foo = &x[0];
18057 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
18058 typedef const int *iptr;
18062 { /* AIX XL C 1.02.0.0 rejects this saying
18063 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
18064 struct s { int j; const int *ap[3]; };
18065 struct s *b; b->j = 5;
18067 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
18068 const int foo = 10;
18069 if (!foo) return 0;
18071 return !cs[0] && !zero.x;
18078 if ac_fn_c_try_compile "$LINENO"; then :
18083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
18086 $as_echo "$ac_cv_c_const" >&6; }
18087 if test $ac_cv_c_const = no; then
18089 $as_echo "#define const /**/" >>confdefs.h
18094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed" >&5
18095 $as_echo_n "checking for signed... " >&6; }
18096 if ${bh_cv_c_signed+:} false; then :
18097 $as_echo_n "(cached) " >&6
18099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18100 /* end confdefs.h. */
18110 if ac_fn_c_try_compile "$LINENO"; then :
18115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bh_cv_c_signed" >&5
18118 $as_echo "$bh_cv_c_signed" >&6; }
18119 if test $bh_cv_c_signed = no; then
18121 $as_echo "#define signed /**/" >>confdefs.h
18125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
18126 $as_echo_n "checking for inline... " >&6; }
18127 if ${ac_cv_c_inline+:} false; then :
18128 $as_echo_n "(cached) " >&6
18131 for ac_kw in inline __inline__ __inline; do
18132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18133 /* end confdefs.h. */
18134 #ifndef __cplusplus
18136 static $ac_kw foo_t static_foo () {return 0; }
18137 $ac_kw foo_t foo () {return 0; }
18141 if ac_fn_c_try_compile "$LINENO"; then :
18142 ac_cv_c_inline=$ac_kw
18144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18145 test "$ac_cv_c_inline" != no && break
18149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
18150 $as_echo "$ac_cv_c_inline" >&6; }
18152 case $ac_cv_c_inline in
18155 case $ac_cv_c_inline in
18157 *) ac_val=$ac_cv_c_inline;;
18159 cat >>confdefs.h <<_ACEOF
18160 #ifndef __cplusplus
18161 #define inline $ac_val
18167 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
18168 if test "x$ac_cv_type_off_t" = xyes; then :
18172 cat >>confdefs.h <<_ACEOF
18173 #define off_t long int
18178 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
18179 if test "x$ac_cv_type_size_t" = xyes; then :
18183 cat >>confdefs.h <<_ACEOF
18184 #define size_t unsigned int
18190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long" >&5
18191 $as_echo_n "checking for long long... " >&6; }
18192 if ${ac_cv_type_long_long+:} false; then :
18193 $as_echo_n "(cached) " >&6
18195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18196 /* end confdefs.h. */
18197 long long ll = 1LL; int i = 63;
18201 long long llmax = (long long) -1;
18202 return ll << i | ll >> i | llmax / ll | llmax % ll;
18207 if ac_fn_c_try_link "$LINENO"; then :
18208 ac_cv_type_long_long=yes
18210 ac_cv_type_long_long=no
18212 rm -f core conftest.err conftest.$ac_objext \
18213 conftest$ac_exeext conftest.$ac_ext
18215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long" >&5
18216 $as_echo "$ac_cv_type_long_long" >&6; }
18217 if test $ac_cv_type_long_long = yes; then
18219 $as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h
18224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
18225 $as_echo_n "checking for long double... " >&6; }
18226 if ${gt_cv_c_long_double+:} false; then :
18227 $as_echo_n "(cached) " >&6
18229 if test "$GCC" = yes; then
18230 gt_cv_c_long_double=yes
18232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18233 /* end confdefs.h. */
18235 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
18236 long double foo = 0.0;
18237 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
18238 int array [2*(sizeof(long double) >= sizeof(double)) - 1];
18248 if ac_fn_c_try_compile "$LINENO"; then :
18249 gt_cv_c_long_double=yes
18251 gt_cv_c_long_double=no
18253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_long_double" >&5
18257 $as_echo "$gt_cv_c_long_double" >&6; }
18258 if test $gt_cv_c_long_double = yes; then
18260 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
18265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
18266 $as_echo_n "checking for wchar_t... " >&6; }
18267 if ${gt_cv_c_wchar_t+:} false; then :
18268 $as_echo_n "(cached) " >&6
18270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18271 /* end confdefs.h. */
18272 #include <stddef.h>
18273 wchar_t foo = (wchar_t)'\0';
18282 if ac_fn_c_try_compile "$LINENO"; then :
18283 gt_cv_c_wchar_t=yes
18287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
18290 $as_echo "$gt_cv_c_wchar_t" >&6; }
18291 if test $gt_cv_c_wchar_t = yes; then
18293 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
18298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
18299 $as_echo_n "checking for wint_t... " >&6; }
18300 if ${gt_cv_c_wint_t+:} false; then :
18301 $as_echo_n "(cached) " >&6
18303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18304 /* end confdefs.h. */
18306 wint_t foo = (wchar_t)'\0';
18315 if ac_fn_c_try_compile "$LINENO"; then :
18320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
18323 $as_echo "$gt_cv_c_wint_t" >&6; }
18324 if test $gt_cv_c_wint_t = yes; then
18326 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
18331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
18332 $as_echo_n "checking for inttypes.h... " >&6; }
18333 if ${gl_cv_header_inttypes_h+:} false; then :
18334 $as_echo_n "(cached) " >&6
18336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18337 /* end confdefs.h. */
18338 #include <sys/types.h>
18339 #include <inttypes.h>
18343 uintmax_t i = (uintmax_t) -1;
18348 if ac_fn_c_try_compile "$LINENO"; then :
18349 gl_cv_header_inttypes_h=yes
18351 gl_cv_header_inttypes_h=no
18353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5
18356 $as_echo "$gl_cv_header_inttypes_h" >&6; }
18357 if test $gl_cv_header_inttypes_h = yes; then
18359 cat >>confdefs.h <<_ACEOF
18360 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
18366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
18367 $as_echo_n "checking for stdint.h... " >&6; }
18368 if ${gl_cv_header_stdint_h+:} false; then :
18369 $as_echo_n "(cached) " >&6
18371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18372 /* end confdefs.h. */
18373 #include <sys/types.h>
18374 #include <stdint.h>
18378 uintmax_t i = (uintmax_t) -1;
18383 if ac_fn_c_try_compile "$LINENO"; then :
18384 gl_cv_header_stdint_h=yes
18386 gl_cv_header_stdint_h=no
18388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5
18391 $as_echo "$gl_cv_header_stdint_h" >&6; }
18392 if test $gl_cv_header_stdint_h = yes; then
18394 cat >>confdefs.h <<_ACEOF
18395 #define HAVE_STDINT_H_WITH_UINTMAX 1
18403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
18404 $as_echo_n "checking for intmax_t... " >&6; }
18405 if ${gt_cv_c_intmax_t+:} false; then :
18406 $as_echo_n "(cached) " >&6
18408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18409 /* end confdefs.h. */
18411 #include <stddef.h>
18412 #include <stdlib.h>
18413 #if HAVE_STDINT_H_WITH_UINTMAX
18414 #include <stdint.h>
18416 #if HAVE_INTTYPES_H_WITH_UINTMAX
18417 #include <inttypes.h>
18428 if ac_fn_c_try_compile "$LINENO"; then :
18429 gt_cv_c_intmax_t=yes
18431 gt_cv_c_intmax_t=no
18433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
18436 $as_echo "$gt_cv_c_intmax_t" >&6; }
18437 if test $gt_cv_c_intmax_t = yes; then
18439 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
18445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5
18446 $as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
18447 if ${gt_cv_func_printf_posix+:} false; then :
18448 $as_echo_n "(cached) " >&6
18451 if test "$cross_compiling" = yes; then :
18453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18454 /* end confdefs.h. */
18456 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
18461 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18462 $EGREP "notposix" >/dev/null 2>&1; then :
18463 gt_cv_func_printf_posix="guessing no"
18465 gt_cv_func_printf_posix="guessing yes"
18471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18472 /* end confdefs.h. */
18475 #include <string.h>
18476 /* The string "%2$d %1$d", with dollar characters protected from the shell's
18477 dollar expansion (possibly an autoconf bug). */
18478 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
18479 static char buf[100];
18482 sprintf (buf, format, 33, 55);
18483 return (strcmp (buf, "55 33") != 0);
18486 if ac_fn_c_try_run "$LINENO"; then :
18487 gt_cv_func_printf_posix=yes
18489 gt_cv_func_printf_posix=no
18491 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18492 conftest.$ac_objext conftest.beam conftest.$ac_ext
18497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5
18498 $as_echo "$gt_cv_func_printf_posix" >&6; }
18499 case $gt_cv_func_printf_posix in
18502 $as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h
18507 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
18508 # for constant arguments. Useless!
18509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
18510 $as_echo_n "checking for working alloca.h... " >&6; }
18511 if ${ac_cv_working_alloca_h+:} false; then :
18512 $as_echo_n "(cached) " >&6
18514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18515 /* end confdefs.h. */
18516 #include <alloca.h>
18520 char *p = (char *) alloca (2 * sizeof (int));
18526 if ac_fn_c_try_link "$LINENO"; then :
18527 ac_cv_working_alloca_h=yes
18529 ac_cv_working_alloca_h=no
18531 rm -f core conftest.err conftest.$ac_objext \
18532 conftest$ac_exeext conftest.$ac_ext
18534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
18535 $as_echo "$ac_cv_working_alloca_h" >&6; }
18536 if test $ac_cv_working_alloca_h = yes; then
18538 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
18542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
18543 $as_echo_n "checking for alloca... " >&6; }
18544 if ${ac_cv_func_alloca_works+:} false; then :
18545 $as_echo_n "(cached) " >&6
18547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18548 /* end confdefs.h. */
18550 # define alloca __builtin_alloca
18553 # include <malloc.h>
18554 # define alloca _alloca
18556 # ifdef HAVE_ALLOCA_H
18557 # include <alloca.h>
18562 # ifndef alloca /* predefined by HP cc +Olibcalls */
18563 void *alloca (size_t);
18573 char *p = (char *) alloca (1);
18579 if ac_fn_c_try_link "$LINENO"; then :
18580 ac_cv_func_alloca_works=yes
18582 ac_cv_func_alloca_works=no
18584 rm -f core conftest.err conftest.$ac_objext \
18585 conftest$ac_exeext conftest.$ac_ext
18587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
18588 $as_echo "$ac_cv_func_alloca_works" >&6; }
18590 if test $ac_cv_func_alloca_works = yes; then
18592 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
18595 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
18596 # that cause trouble. Some versions do not even contain alloca or
18597 # contain a buggy version. If you still want to use their alloca,
18598 # use ar to extract alloca.o from them instead of compiling alloca.c.
18600 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
18602 $as_echo "#define C_ALLOCA 1" >>confdefs.h
18605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
18606 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
18607 if ${ac_cv_os_cray+:} false; then :
18608 $as_echo_n "(cached) " >&6
18610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18611 /* end confdefs.h. */
18612 #if defined CRAY && ! defined CRAY2
18619 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18620 $EGREP "webecray" >/dev/null 2>&1; then :
18628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
18629 $as_echo "$ac_cv_os_cray" >&6; }
18630 if test $ac_cv_os_cray = yes; then
18631 for ac_func in _getb67 GETB67 getb67; do
18632 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18633 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18634 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
18636 cat >>confdefs.h <<_ACEOF
18637 #define CRAY_STACKSEG_END $ac_func
18646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
18647 $as_echo_n "checking stack direction for C alloca... " >&6; }
18648 if ${ac_cv_c_stack_direction+:} false; then :
18649 $as_echo_n "(cached) " >&6
18651 if test "$cross_compiling" = yes; then :
18652 ac_cv_c_stack_direction=0
18654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18655 /* end confdefs.h. */
18656 $ac_includes_default
18658 find_stack_direction ()
18660 static char *addr = 0;
18665 return find_stack_direction ();
18668 return (&dummy > addr) ? 1 : -1;
18674 return find_stack_direction () < 0;
18677 if ac_fn_c_try_run "$LINENO"; then :
18678 ac_cv_c_stack_direction=1
18680 ac_cv_c_stack_direction=-1
18682 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18683 conftest.$ac_objext conftest.beam conftest.$ac_ext
18687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
18688 $as_echo "$ac_cv_c_stack_direction" >&6; }
18689 cat >>confdefs.h <<_ACEOF
18690 #define STACK_DIRECTION $ac_cv_c_stack_direction
18699 for ac_header in $ac_header_list
18701 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18702 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
18704 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18705 cat >>confdefs.h <<_ACEOF
18706 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18720 for ac_func in getpagesize
18722 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
18723 if test "x$ac_cv_func_getpagesize" = xyes; then :
18724 cat >>confdefs.h <<_ACEOF
18725 #define HAVE_GETPAGESIZE 1
18731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
18732 $as_echo_n "checking for working mmap... " >&6; }
18733 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
18734 $as_echo_n "(cached) " >&6
18736 if test "$cross_compiling" = yes; then :
18737 ac_cv_func_mmap_fixed_mapped=no
18739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18740 /* end confdefs.h. */
18741 $ac_includes_default
18742 /* malloc might have been renamed as rpl_malloc. */
18745 /* Thanks to Mike Haertel and Jim Avera for this test.
18746 Here is a matrix of mmap possibilities:
18747 mmap private not fixed
18748 mmap private fixed at somewhere currently unmapped
18749 mmap private fixed at somewhere already mapped
18750 mmap shared not fixed
18751 mmap shared fixed at somewhere currently unmapped
18752 mmap shared fixed at somewhere already mapped
18753 For private mappings, we should verify that changes cannot be read()
18754 back from the file, nor mmap's back from the file at a different
18755 address. (There have been systems where private was not correctly
18756 implemented like the infamous i386 svr4.0, and systems where the
18757 VM page cache was not coherent with the file system buffer cache
18758 like early versions of FreeBSD and possibly contemporary NetBSD.)
18759 For shared mappings, we should conversely verify that changes get
18760 propagated back to all the places they're supposed to be.
18762 Grep wants private fixed already mapped.
18763 The main things grep needs to know about mmap are:
18764 * does it exist and is it safe to write into the mmap'd area
18765 * how to use it (BSD variants) */
18768 #include <sys/mman.h>
18770 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
18774 /* This mess was copied from the GNU getpagesize.h. */
18775 #ifndef HAVE_GETPAGESIZE
18776 # ifdef _SC_PAGESIZE
18777 # define getpagesize() sysconf(_SC_PAGESIZE)
18778 # else /* no _SC_PAGESIZE */
18779 # ifdef HAVE_SYS_PARAM_H
18780 # include <sys/param.h>
18781 # ifdef EXEC_PAGESIZE
18782 # define getpagesize() EXEC_PAGESIZE
18783 # else /* no EXEC_PAGESIZE */
18785 # define getpagesize() NBPG * CLSIZE
18788 # endif /* no CLSIZE */
18789 # else /* no NBPG */
18791 # define getpagesize() NBPC
18792 # else /* no NBPC */
18794 # define getpagesize() PAGESIZE
18795 # endif /* PAGESIZE */
18796 # endif /* no NBPC */
18797 # endif /* no NBPG */
18798 # endif /* no EXEC_PAGESIZE */
18799 # else /* no HAVE_SYS_PARAM_H */
18800 # define getpagesize() 8192 /* punt totally */
18801 # endif /* no HAVE_SYS_PARAM_H */
18802 # endif /* no _SC_PAGESIZE */
18804 #endif /* no HAVE_GETPAGESIZE */
18809 char *data, *data2, *data3;
18810 const char *cdata2;
18814 pagesize = getpagesize ();
18816 /* First, make a file with some known garbage in it. */
18817 data = (char *) malloc (pagesize);
18820 for (i = 0; i < pagesize; ++i)
18821 *(data + i) = rand ();
18823 fd = creat ("conftest.mmap", 0600);
18826 if (write (fd, data, pagesize) != pagesize)
18830 /* Next, check that the tail of a page is zero-filled. File must have
18831 non-zero length, otherwise we risk SIGBUS for entire page. */
18832 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
18836 if (write (fd2, cdata2, 1) != 1)
18838 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
18839 if (data2 == MAP_FAILED)
18841 for (i = 0; i < pagesize; ++i)
18845 if (munmap (data2, pagesize))
18848 /* Next, try to mmap the file at a fixed address which already has
18849 something else allocated at it. If we can, also make sure that
18850 we see the same garbage. */
18851 fd = open ("conftest.mmap", O_RDWR);
18854 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
18855 MAP_PRIVATE | MAP_FIXED, fd, 0L))
18857 for (i = 0; i < pagesize; ++i)
18858 if (*(data + i) != *(data2 + i))
18861 /* Finally, make sure that changes to the mapped area do not
18862 percolate back to the file as seen by read(). (This is a bug on
18863 some variants of i386 svr4.0.) */
18864 for (i = 0; i < pagesize; ++i)
18865 *(data2 + i) = *(data2 + i) + 1;
18866 data3 = (char *) malloc (pagesize);
18869 if (read (fd, data3, pagesize) != pagesize)
18871 for (i = 0; i < pagesize; ++i)
18872 if (*(data + i) != *(data3 + i))
18878 if ac_fn_c_try_run "$LINENO"; then :
18879 ac_cv_func_mmap_fixed_mapped=yes
18881 ac_cv_func_mmap_fixed_mapped=no
18883 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18884 conftest.$ac_objext conftest.beam conftest.$ac_ext
18888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
18889 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
18890 if test $ac_cv_func_mmap_fixed_mapped = yes; then
18892 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
18895 rm -f conftest.mmap conftest.txt
18898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5
18899 $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
18900 if ${ac_cv_gnu_library_2_1+:} false; then :
18901 $as_echo_n "(cached) " >&6
18903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18904 /* end confdefs.h. */
18906 #include <features.h>
18907 #ifdef __GNU_LIBRARY__
18908 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
18914 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18915 $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
18916 ac_cv_gnu_library_2_1=yes
18918 ac_cv_gnu_library_2_1=no
18925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
18926 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
18928 GLIBC21="$ac_cv_gnu_library_2_1"
18933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
18934 $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
18935 if ${gt_cv_int_divbyzero_sigfpe+:} false; then :
18936 $as_echo_n "(cached) " >&6
18939 if test "$cross_compiling" = yes; then :
18941 # Guess based on the CPU.
18942 case "$host_cpu" in
18943 alpha* | i3456786 | m68k | s390*)
18944 gt_cv_int_divbyzero_sigfpe="guessing yes";;
18946 gt_cv_int_divbyzero_sigfpe="guessing no";;
18950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18951 /* end confdefs.h. */
18953 #include <stdlib.h>
18954 #include <signal.h>
18958 sigfpe_handler (int sig)
18960 sigfpe_handler (sig) int sig;
18963 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
18964 exit (sig != SIGFPE);
18974 signal (SIGFPE, sigfpe_handler);
18975 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
18976 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
18977 signal (SIGTRAP, sigfpe_handler);
18979 /* Linux/SPARC yields signal SIGILL. */
18980 #if defined (__sparc__) && defined (__linux__)
18981 signal (SIGILL, sigfpe_handler);
18990 if ac_fn_c_try_run "$LINENO"; then :
18991 gt_cv_int_divbyzero_sigfpe=yes
18993 gt_cv_int_divbyzero_sigfpe=no
18995 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18996 conftest.$ac_objext conftest.beam conftest.$ac_ext
19001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
19002 $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
19003 case "$gt_cv_int_divbyzero_sigfpe" in
19008 cat >>confdefs.h <<_ACEOF
19009 #define INTDIV0_RAISES_SIGFPE $value
19014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long" >&5
19015 $as_echo_n "checking for unsigned long long... " >&6; }
19016 if ${ac_cv_type_unsigned_long_long+:} false; then :
19017 $as_echo_n "(cached) " >&6
19019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19020 /* end confdefs.h. */
19021 unsigned long long ull = 1ULL; int i = 63;
19025 unsigned long long ullmax = (unsigned long long) -1;
19026 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
19031 if ac_fn_c_try_link "$LINENO"; then :
19032 ac_cv_type_unsigned_long_long=yes
19034 ac_cv_type_unsigned_long_long=no
19036 rm -f core conftest.err conftest.$ac_objext \
19037 conftest$ac_exeext conftest.$ac_ext
19039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long" >&5
19040 $as_echo "$ac_cv_type_unsigned_long_long" >&6; }
19041 if test $ac_cv_type_unsigned_long_long = yes; then
19043 $as_echo "#define HAVE_UNSIGNED_LONG_LONG 1" >>confdefs.h
19050 if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
19052 test $ac_cv_type_unsigned_long_long = yes \
19053 && ac_type='unsigned long long' \
19054 || ac_type='unsigned long'
19056 cat >>confdefs.h <<_ACEOF
19057 #define uintmax_t $ac_type
19062 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
19067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
19068 $as_echo_n "checking for inttypes.h... " >&6; }
19069 if ${gt_cv_header_inttypes_h+:} false; then :
19070 $as_echo_n "(cached) " >&6
19073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19074 /* end confdefs.h. */
19075 #include <sys/types.h>
19076 #include <inttypes.h>
19085 if ac_fn_c_try_compile "$LINENO"; then :
19086 gt_cv_header_inttypes_h=yes
19088 gt_cv_header_inttypes_h=no
19090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_header_inttypes_h" >&5
19094 $as_echo "$gt_cv_header_inttypes_h" >&6; }
19095 if test $gt_cv_header_inttypes_h = yes; then
19097 cat >>confdefs.h <<_ACEOF
19098 #define HAVE_INTTYPES_H 1
19105 if test $gt_cv_header_inttypes_h = yes; then
19106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
19107 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
19108 if ${gt_cv_inttypes_pri_broken+:} false; then :
19109 $as_echo_n "(cached) " >&6
19112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19113 /* end confdefs.h. */
19114 #include <inttypes.h>
19127 if ac_fn_c_try_compile "$LINENO"; then :
19128 gt_cv_inttypes_pri_broken=no
19130 gt_cv_inttypes_pri_broken=yes
19132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
19136 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
19138 if test "$gt_cv_inttypes_pri_broken" = yes; then
19140 cat >>confdefs.h <<_ACEOF
19141 #define PRI_MACROS_BROKEN 1
19147 for ac_header in stdint.h
19149 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
19150 if test "x$ac_cv_header_stdint_h" = xyes; then :
19151 cat >>confdefs.h <<_ACEOF
19152 #define HAVE_STDINT_H 1
19159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
19160 $as_echo_n "checking for SIZE_MAX... " >&6; }
19162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19163 /* end confdefs.h. */
19165 #include <limits.h>
19167 #include <stdint.h>
19174 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19175 $EGREP "Found it" >/dev/null 2>&1; then :
19180 if test -z "$result"; then
19181 if ac_fn_c_compute_int "$LINENO" "~(size_t)0 / 10" "res_hi" "#include <stddef.h>"; then :
19188 if ac_fn_c_compute_int "$LINENO" "~(size_t)0 % 10" "res_lo" "#include <stddef.h>"; then :
19195 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint" "#include <stddef.h>"; then :
19202 if test "$fits_in_uint" = 1; then
19203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19204 /* end confdefs.h. */
19205 #include <stddef.h>
19207 extern unsigned long foo;
19217 if ac_fn_c_try_compile "$LINENO"; then :
19220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19222 if test -z "$result"; then
19223 if test "$fits_in_uint" = 1; then
19224 result="$res_hi$res_lo"U
19226 result="$res_hi$res_lo"UL
19229 result='~(size_t)0'
19232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
19233 $as_echo "$result" >&6; }
19234 if test "$result" != yes; then
19236 cat >>confdefs.h <<_ACEOF
19237 #define SIZE_MAX $result
19245 for ac_header in stdint.h
19247 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
19248 if test "x$ac_cv_header_stdint_h" = xyes; then :
19249 cat >>confdefs.h <<_ACEOF
19250 #define HAVE_STDINT_H 1
19264 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
19265 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
19269 $as_echo "#define ptrdiff_t long" >>confdefs.h
19274 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
19275 stdlib.h string.h unistd.h sys/param.h
19277 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19278 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19279 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19280 cat >>confdefs.h <<_ACEOF
19281 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19288 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
19289 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
19290 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
19293 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19294 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19295 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19296 cat >>confdefs.h <<_ACEOF
19297 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snprintf is declared" >&5
19306 $as_echo_n "checking whether _snprintf is declared... " >&6; }
19307 if ${ac_cv_have_decl__snprintf+:} false; then :
19308 $as_echo_n "(cached) " >&6
19310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19311 /* end confdefs.h. */
19318 char *p = (char *) _snprintf;
19325 if ac_fn_c_try_compile "$LINENO"; then :
19326 ac_cv_have_decl__snprintf=yes
19328 ac_cv_have_decl__snprintf=no
19330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snprintf" >&5
19333 $as_echo "$ac_cv_have_decl__snprintf" >&6; }
19334 if test $ac_cv_have_decl__snprintf = yes; then
19340 cat >>confdefs.h <<_ACEOF
19341 #define HAVE_DECL__SNPRINTF $gt_value
19346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snwprintf is declared" >&5
19347 $as_echo_n "checking whether _snwprintf is declared... " >&6; }
19348 if ${ac_cv_have_decl__snwprintf+:} false; then :
19349 $as_echo_n "(cached) " >&6
19351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19352 /* end confdefs.h. */
19359 char *p = (char *) _snwprintf;
19366 if ac_fn_c_try_compile "$LINENO"; then :
19367 ac_cv_have_decl__snwprintf=yes
19369 ac_cv_have_decl__snwprintf=no
19371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snwprintf" >&5
19374 $as_echo "$ac_cv_have_decl__snwprintf" >&6; }
19375 if test $ac_cv_have_decl__snwprintf = yes; then
19381 cat >>confdefs.h <<_ACEOF
19382 #define HAVE_DECL__SNWPRINTF $gt_value
19388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether feof_unlocked is declared" >&5
19389 $as_echo_n "checking whether feof_unlocked is declared... " >&6; }
19390 if ${ac_cv_have_decl_feof_unlocked+:} false; then :
19391 $as_echo_n "(cached) " >&6
19393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19394 /* end confdefs.h. */
19400 #ifndef feof_unlocked
19401 char *p = (char *) feof_unlocked;
19408 if ac_fn_c_try_compile "$LINENO"; then :
19409 ac_cv_have_decl_feof_unlocked=yes
19411 ac_cv_have_decl_feof_unlocked=no
19413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_feof_unlocked" >&5
19416 $as_echo "$ac_cv_have_decl_feof_unlocked" >&6; }
19417 if test $ac_cv_have_decl_feof_unlocked = yes; then
19423 cat >>confdefs.h <<_ACEOF
19424 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
19429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fgets_unlocked is declared" >&5
19430 $as_echo_n "checking whether fgets_unlocked is declared... " >&6; }
19431 if ${ac_cv_have_decl_fgets_unlocked+:} false; then :
19432 $as_echo_n "(cached) " >&6
19434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19435 /* end confdefs.h. */
19441 #ifndef fgets_unlocked
19442 char *p = (char *) fgets_unlocked;
19449 if ac_fn_c_try_compile "$LINENO"; then :
19450 ac_cv_have_decl_fgets_unlocked=yes
19452 ac_cv_have_decl_fgets_unlocked=no
19454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_fgets_unlocked" >&5
19457 $as_echo "$ac_cv_have_decl_fgets_unlocked" >&6; }
19458 if test $ac_cv_have_decl_fgets_unlocked = yes; then
19464 cat >>confdefs.h <<_ACEOF
19465 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
19470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getc_unlocked is declared" >&5
19471 $as_echo_n "checking whether getc_unlocked is declared... " >&6; }
19472 if ${ac_cv_have_decl_getc_unlocked+:} false; then :
19473 $as_echo_n "(cached) " >&6
19475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19476 /* end confdefs.h. */
19482 #ifndef getc_unlocked
19483 char *p = (char *) getc_unlocked;
19490 if ac_fn_c_try_compile "$LINENO"; then :
19491 ac_cv_have_decl_getc_unlocked=yes
19493 ac_cv_have_decl_getc_unlocked=no
19495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_getc_unlocked" >&5
19498 $as_echo "$ac_cv_have_decl_getc_unlocked" >&6; }
19499 if test $ac_cv_have_decl_getc_unlocked = yes; then
19505 cat >>confdefs.h <<_ACEOF
19506 #define HAVE_DECL_GETC_UNLOCKED $gt_value
19511 case $gt_cv_func_printf_posix in
19512 *yes) HAVE_POSIX_PRINTF=1 ;;
19513 *) HAVE_POSIX_PRINTF=0 ;;
19516 if test "$ac_cv_func_asprintf" = yes; then
19522 if test "$ac_cv_func_snprintf" = yes; then
19528 if test "$ac_cv_func_wprintf" = yes; then
19540 am_save_CPPFLAGS="$CPPFLAGS"
19542 for element in $INCICONV; do
19544 for x in $CPPFLAGS; do
19546 acl_save_prefix="$prefix"
19547 prefix="$acl_final_prefix"
19548 acl_save_exec_prefix="$exec_prefix"
19549 exec_prefix="$acl_final_exec_prefix"
19551 exec_prefix="$acl_save_exec_prefix"
19552 prefix="$acl_save_prefix"
19554 if test "X$x" = "X$element"; then
19559 if test -z "$haveit"; then
19560 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
19565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
19566 $as_echo_n "checking for iconv... " >&6; }
19567 if ${am_cv_func_iconv+:} false; then :
19568 $as_echo_n "(cached) " >&6
19571 am_cv_func_iconv="no, consider installing GNU libiconv"
19573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19574 /* end confdefs.h. */
19575 #include <stdlib.h>
19580 iconv_t cd = iconv_open("","");
19581 iconv(cd,NULL,NULL,NULL,NULL);
19587 if ac_fn_c_try_link "$LINENO"; then :
19588 am_cv_func_iconv=yes
19590 rm -f core conftest.err conftest.$ac_objext \
19591 conftest$ac_exeext conftest.$ac_ext
19592 if test "$am_cv_func_iconv" != yes; then
19593 am_save_LIBS="$LIBS"
19594 LIBS="$LIBS $LIBICONV"
19595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19596 /* end confdefs.h. */
19597 #include <stdlib.h>
19602 iconv_t cd = iconv_open("","");
19603 iconv(cd,NULL,NULL,NULL,NULL);
19609 if ac_fn_c_try_link "$LINENO"; then :
19610 am_cv_lib_iconv=yes
19611 am_cv_func_iconv=yes
19613 rm -f core conftest.err conftest.$ac_objext \
19614 conftest$ac_exeext conftest.$ac_ext
19615 LIBS="$am_save_LIBS"
19619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
19620 $as_echo "$am_cv_func_iconv" >&6; }
19621 if test "$am_cv_func_iconv" = yes; then
19623 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
19626 if test "$am_cv_lib_iconv" = yes; then
19627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
19628 $as_echo_n "checking how to link with libiconv... " >&6; }
19629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
19630 $as_echo "$LIBICONV" >&6; }
19632 CPPFLAGS="$am_save_CPPFLAGS"
19639 if test "$am_cv_func_iconv" = yes; then
19640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
19641 $as_echo_n "checking for iconv declaration... " >&6; }
19642 if ${am_cv_proto_iconv+:} false; then :
19643 $as_echo_n "(cached) " >&6
19646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19647 /* end confdefs.h. */
19649 #include <stdlib.h>
19655 #if defined(__STDC__) || defined(__cplusplus)
19656 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
19669 if ac_fn_c_try_compile "$LINENO"; then :
19670 am_cv_proto_iconv_arg1=""
19672 am_cv_proto_iconv_arg1="const"
19674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19675 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);"
19678 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
19679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
19680 }$am_cv_proto_iconv" >&5
19682 }$am_cv_proto_iconv" >&6; }
19684 cat >>confdefs.h <<_ACEOF
19685 #define ICONV_CONST $am_cv_proto_iconv_arg1
19691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
19692 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
19693 if ${am_cv_langinfo_codeset+:} false; then :
19694 $as_echo_n "(cached) " >&6
19696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19697 /* end confdefs.h. */
19698 #include <langinfo.h>
19702 char* cs = nl_langinfo(CODESET);
19707 if ac_fn_c_try_link "$LINENO"; then :
19708 am_cv_langinfo_codeset=yes
19710 am_cv_langinfo_codeset=no
19712 rm -f core conftest.err conftest.$ac_objext \
19713 conftest$ac_exeext conftest.$ac_ext
19716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
19717 $as_echo "$am_cv_langinfo_codeset" >&6; }
19718 if test $am_cv_langinfo_codeset = yes; then
19720 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
19724 if test $ac_cv_header_locale_h = yes; then
19726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
19727 $as_echo_n "checking for LC_MESSAGES... " >&6; }
19728 if ${gt_cv_val_LC_MESSAGES+:} false; then :
19729 $as_echo_n "(cached) " >&6
19731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19732 /* end confdefs.h. */
19733 #include <locale.h>
19742 if ac_fn_c_try_link "$LINENO"; then :
19743 gt_cv_val_LC_MESSAGES=yes
19745 gt_cv_val_LC_MESSAGES=no
19747 rm -f core conftest.err conftest.$ac_objext \
19748 conftest$ac_exeext conftest.$ac_ext
19750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_val_LC_MESSAGES" >&5
19751 $as_echo "$gt_cv_val_LC_MESSAGES" >&6; }
19752 if test $gt_cv_val_LC_MESSAGES = yes; then
19754 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
19760 if test -n "$INTL_MACOSX_LIBS"; then
19761 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
19764 for ac_prog in bison
19766 # Extract the first word of "$ac_prog", so it can be a program name with args.
19767 set dummy $ac_prog; ac_word=$2
19768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19769 $as_echo_n "checking for $ac_word... " >&6; }
19770 if ${ac_cv_prog_INTLBISON+:} false; then :
19771 $as_echo_n "(cached) " >&6
19773 if test -n "$INTLBISON"; then
19774 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
19776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19777 for as_dir in $PATH
19780 test -z "$as_dir" && as_dir=.
19781 for ac_exec_ext in '' $ac_executable_extensions; do
19782 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19783 ac_cv_prog_INTLBISON="$ac_prog"
19784 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19793 INTLBISON=$ac_cv_prog_INTLBISON
19794 if test -n "$INTLBISON"; then
19795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
19796 $as_echo "$INTLBISON" >&6; }
19798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19799 $as_echo "no" >&6; }
19803 test -n "$INTLBISON" && break
19806 if test -z "$INTLBISON"; then
19809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
19810 $as_echo_n "checking version of bison... " >&6; }
19811 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
19812 case $ac_prog_version in
19813 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
19814 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
19815 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
19816 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
19818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
19819 $as_echo "$ac_prog_version" >&6; }
19821 if test $ac_verc_fail = yes; then
19840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
19841 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
19842 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
19843 $as_echo_n "(cached) " >&6
19845 gt_save_CPPFLAGS="$CPPFLAGS"
19846 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
19847 gt_save_LIBS="$LIBS"
19848 LIBS="$LIBS -framework CoreFoundation"
19849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19850 /* end confdefs.h. */
19851 #include <CFPreferences.h>
19855 CFPreferencesCopyAppValue(NULL, NULL)
19860 if ac_fn_c_try_link "$LINENO"; then :
19861 gt_cv_func_CFPreferencesCopyAppValue=yes
19863 gt_cv_func_CFPreferencesCopyAppValue=no
19865 rm -f core conftest.err conftest.$ac_objext \
19866 conftest$ac_exeext conftest.$ac_ext
19867 CPPFLAGS="$gt_save_CPPFLAGS"
19868 LIBS="$gt_save_LIBS"
19870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
19871 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
19872 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
19874 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
19877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
19878 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
19879 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
19880 $as_echo_n "(cached) " >&6
19882 gt_save_CPPFLAGS="$CPPFLAGS"
19883 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
19884 gt_save_LIBS="$LIBS"
19885 LIBS="$LIBS -framework CoreFoundation"
19886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19887 /* end confdefs.h. */
19888 #include <CFLocale.h>
19892 CFLocaleCopyCurrent();
19897 if ac_fn_c_try_link "$LINENO"; then :
19898 gt_cv_func_CFLocaleCopyCurrent=yes
19900 gt_cv_func_CFLocaleCopyCurrent=no
19902 rm -f core conftest.err conftest.$ac_objext \
19903 conftest$ac_exeext conftest.$ac_ext
19904 CPPFLAGS="$gt_save_CPPFLAGS"
19905 LIBS="$gt_save_LIBS"
19907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
19908 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
19909 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
19911 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
19915 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
19916 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
19922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
19923 $as_echo_n "checking whether NLS is requested... " >&6; }
19924 # Check whether --enable-nls was given.
19925 if test "${enable_nls+set}" = set; then :
19926 enableval=$enable_nls; USE_NLS=$enableval
19931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
19932 $as_echo "$USE_NLS" >&6; }
19937 BUILD_INCLUDED_LIBINTL=no
19938 USE_INCLUDED_LIBINTL=no
19944 if test "$USE_NLS" = "yes"; then
19945 gt_use_preinstalled_gnugettext=no
19947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
19948 $as_echo_n "checking whether included gettext is requested... " >&6; }
19950 # Check whether --with-included-gettext was given.
19951 if test "${with_included_gettext+set}" = set; then :
19952 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
19954 nls_cv_force_use_gnu_gettext=no
19957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
19958 $as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
19960 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
19961 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
19968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
19969 $as_echo_n "checking for GNU gettext in libc... " >&6; }
19970 if ${gt_cv_func_gnugettext1_libc+:} false; then :
19971 $as_echo_n "(cached) " >&6
19973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19974 /* end confdefs.h. */
19975 #include <libintl.h>
19976 extern int _nl_msg_cat_cntr;
19977 extern int *_nl_domain_bindings;
19981 bindtextdomain ("", "");
19982 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
19987 if ac_fn_c_try_link "$LINENO"; then :
19988 gt_cv_func_gnugettext1_libc=yes
19990 gt_cv_func_gnugettext1_libc=no
19992 rm -f core conftest.err conftest.$ac_objext \
19993 conftest$ac_exeext conftest.$ac_ext
19995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5
19996 $as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
19998 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
20004 acl_save_prefix="$prefix"
20005 prefix="$acl_final_prefix"
20006 acl_save_exec_prefix="$exec_prefix"
20007 exec_prefix="$acl_final_exec_prefix"
20009 eval additional_includedir=\"$includedir\"
20010 eval additional_libdir=\"$libdir\"
20012 exec_prefix="$acl_save_exec_prefix"
20013 prefix="$acl_save_prefix"
20016 # Check whether --with-libintl-prefix was given.
20017 if test "${with_libintl_prefix+set}" = set; then :
20018 withval=$with_libintl_prefix;
20019 if test "X$withval" = "Xno"; then
20022 if test "X$withval" = "X"; then
20024 acl_save_prefix="$prefix"
20025 prefix="$acl_final_prefix"
20026 acl_save_exec_prefix="$exec_prefix"
20027 exec_prefix="$acl_final_exec_prefix"
20029 eval additional_includedir=\"$includedir\"
20030 eval additional_libdir=\"$libdir\"
20032 exec_prefix="$acl_save_exec_prefix"
20033 prefix="$acl_save_prefix"
20036 additional_includedir="$withval/include"
20037 additional_libdir="$withval/lib"
20048 names_already_handled=
20049 names_next_round='intl '
20050 while test -n "$names_next_round"; do
20051 names_this_round="$names_next_round"
20053 for name in $names_this_round; do
20055 for n in $names_already_handled; do
20056 if test "$n" = "$name"; then
20057 already_handled=yes
20061 if test -z "$already_handled"; then
20062 names_already_handled="$names_already_handled $name"
20063 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
20064 eval value=\"\$HAVE_LIB$uppername\"
20065 if test -n "$value"; then
20066 if test "$value" = yes; then
20067 eval value=\"\$LIB$uppername\"
20068 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
20069 eval value=\"\$LTLIB$uppername\"
20070 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
20079 if test $use_additional = yes; then
20080 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
20081 found_dir="$additional_libdir"
20082 found_so="$additional_libdir/lib$name.$shlibext"
20083 if test -f "$additional_libdir/lib$name.la"; then
20084 found_la="$additional_libdir/lib$name.la"
20087 if test -f "$additional_libdir/lib$name.$libext"; then
20088 found_dir="$additional_libdir"
20089 found_a="$additional_libdir/lib$name.$libext"
20090 if test -f "$additional_libdir/lib$name.la"; then
20091 found_la="$additional_libdir/lib$name.la"
20096 if test "X$found_dir" = "X"; then
20097 for x in $LDFLAGS $LTLIBINTL; do
20099 acl_save_prefix="$prefix"
20100 prefix="$acl_final_prefix"
20101 acl_save_exec_prefix="$exec_prefix"
20102 exec_prefix="$acl_final_exec_prefix"
20104 exec_prefix="$acl_save_exec_prefix"
20105 prefix="$acl_save_prefix"
20109 dir=`echo "X$x" | sed -e 's/^X-L//'`
20110 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
20112 found_so="$dir/lib$name.$shlibext"
20113 if test -f "$dir/lib$name.la"; then
20114 found_la="$dir/lib$name.la"
20117 if test -f "$dir/lib$name.$libext"; then
20119 found_a="$dir/lib$name.$libext"
20120 if test -f "$dir/lib$name.la"; then
20121 found_la="$dir/lib$name.la"
20127 if test "X$found_dir" != "X"; then
20132 if test "X$found_dir" != "X"; then
20133 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
20134 if test "X$found_so" != "X"; then
20135 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
20136 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
20139 for x in $ltrpathdirs; do
20140 if test "X$x" = "X$found_dir"; then
20145 if test -z "$haveit"; then
20146 ltrpathdirs="$ltrpathdirs $found_dir"
20148 if test "$hardcode_direct" = yes; then
20149 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
20151 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
20152 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
20154 for x in $rpathdirs; do
20155 if test "X$x" = "X$found_dir"; then
20160 if test -z "$haveit"; then
20161 rpathdirs="$rpathdirs $found_dir"
20165 for x in $LDFLAGS $LIBINTL; do
20167 acl_save_prefix="$prefix"
20168 prefix="$acl_final_prefix"
20169 acl_save_exec_prefix="$exec_prefix"
20170 exec_prefix="$acl_final_exec_prefix"
20172 exec_prefix="$acl_save_exec_prefix"
20173 prefix="$acl_save_prefix"
20175 if test "X$x" = "X-L$found_dir"; then
20180 if test -z "$haveit"; then
20181 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
20183 if test "$hardcode_minus_L" != no; then
20184 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
20186 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
20192 if test "X$found_a" != "X"; then
20193 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
20195 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
20198 additional_includedir=
20199 case "$found_dir" in
20201 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
20202 additional_includedir="$basedir/include"
20205 if test "X$additional_includedir" != "X"; then
20206 if test "X$additional_includedir" != "X/usr/include"; then
20208 if test "X$additional_includedir" = "X/usr/local/include"; then
20209 if test -n "$GCC"; then
20211 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
20215 if test -z "$haveit"; then
20216 for x in $CPPFLAGS $INCINTL; do
20218 acl_save_prefix="$prefix"
20219 prefix="$acl_final_prefix"
20220 acl_save_exec_prefix="$exec_prefix"
20221 exec_prefix="$acl_final_exec_prefix"
20223 exec_prefix="$acl_save_exec_prefix"
20224 prefix="$acl_save_prefix"
20226 if test "X$x" = "X-I$additional_includedir"; then
20231 if test -z "$haveit"; then
20232 if test -d "$additional_includedir"; then
20233 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
20239 if test -n "$found_la"; then
20240 save_libdir="$libdir"
20241 case "$found_la" in
20242 */* | *\\*) . "$found_la" ;;
20243 *) . "./$found_la" ;;
20245 libdir="$save_libdir"
20246 for dep in $dependency_libs; do
20249 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
20250 if test "X$additional_libdir" != "X/usr/lib"; then
20252 if test "X$additional_libdir" = "X/usr/local/lib"; then
20253 if test -n "$GCC"; then
20255 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
20259 if test -z "$haveit"; then
20261 for x in $LDFLAGS $LIBINTL; do
20263 acl_save_prefix="$prefix"
20264 prefix="$acl_final_prefix"
20265 acl_save_exec_prefix="$exec_prefix"
20266 exec_prefix="$acl_final_exec_prefix"
20268 exec_prefix="$acl_save_exec_prefix"
20269 prefix="$acl_save_prefix"
20271 if test "X$x" = "X-L$additional_libdir"; then
20276 if test -z "$haveit"; then
20277 if test -d "$additional_libdir"; then
20278 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
20282 for x in $LDFLAGS $LTLIBINTL; do
20284 acl_save_prefix="$prefix"
20285 prefix="$acl_final_prefix"
20286 acl_save_exec_prefix="$exec_prefix"
20287 exec_prefix="$acl_final_exec_prefix"
20289 exec_prefix="$acl_save_exec_prefix"
20290 prefix="$acl_save_prefix"
20292 if test "X$x" = "X-L$additional_libdir"; then
20297 if test -z "$haveit"; then
20298 if test -d "$additional_libdir"; then
20299 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
20306 dir=`echo "X$dep" | sed -e 's/^X-R//'`
20307 if test "$enable_rpath" != no; then
20309 for x in $rpathdirs; do
20310 if test "X$x" = "X$dir"; then
20315 if test -z "$haveit"; then
20316 rpathdirs="$rpathdirs $dir"
20319 for x in $ltrpathdirs; do
20320 if test "X$x" = "X$dir"; then
20325 if test -z "$haveit"; then
20326 ltrpathdirs="$ltrpathdirs $dir"
20331 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
20334 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
20337 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
20338 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
20344 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
20345 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
20351 if test "X$rpathdirs" != "X"; then
20352 if test -n "$hardcode_libdir_separator"; then
20354 for found_dir in $rpathdirs; do
20355 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
20357 acl_save_libdir="$libdir"
20359 eval flag=\"$hardcode_libdir_flag_spec\"
20360 libdir="$acl_save_libdir"
20361 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
20363 for found_dir in $rpathdirs; do
20364 acl_save_libdir="$libdir"
20365 libdir="$found_dir"
20366 eval flag=\"$hardcode_libdir_flag_spec\"
20367 libdir="$acl_save_libdir"
20368 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
20372 if test "X$ltrpathdirs" != "X"; then
20373 for found_dir in $ltrpathdirs; do
20374 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
20378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
20379 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
20380 if ${gt_cv_func_gnugettext1_libintl+:} false; then :
20381 $as_echo_n "(cached) " >&6
20383 gt_save_CPPFLAGS="$CPPFLAGS"
20384 CPPFLAGS="$CPPFLAGS $INCINTL"
20385 gt_save_LIBS="$LIBS"
20386 LIBS="$LIBS $LIBINTL"
20387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20388 /* end confdefs.h. */
20389 #include <libintl.h>
20390 extern int _nl_msg_cat_cntr;
20395 const char *_nl_expand_alias (const char *);
20399 bindtextdomain ("", "");
20400 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
20405 if ac_fn_c_try_link "$LINENO"; then :
20406 gt_cv_func_gnugettext1_libintl=yes
20408 gt_cv_func_gnugettext1_libintl=no
20410 rm -f core conftest.err conftest.$ac_objext \
20411 conftest$ac_exeext conftest.$ac_ext
20412 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
20413 LIBS="$LIBS $LIBICONV"
20414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20415 /* end confdefs.h. */
20416 #include <libintl.h>
20417 extern int _nl_msg_cat_cntr;
20422 const char *_nl_expand_alias (const char *);
20426 bindtextdomain ("", "");
20427 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
20432 if ac_fn_c_try_link "$LINENO"; then :
20433 LIBINTL="$LIBINTL $LIBICONV"
20434 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
20435 gt_cv_func_gnugettext1_libintl=yes
20438 rm -f core conftest.err conftest.$ac_objext \
20439 conftest$ac_exeext conftest.$ac_ext
20441 CPPFLAGS="$gt_save_CPPFLAGS"
20442 LIBS="$gt_save_LIBS"
20444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5
20445 $as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
20448 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
20449 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
20450 && test "$PACKAGE" != gettext-runtime \
20451 && test "$PACKAGE" != gettext-tools; }; then
20452 gt_use_preinstalled_gnugettext=yes
20460 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
20461 nls_cv_use_gnu_gettext=yes
20465 if test "$nls_cv_use_gnu_gettext" = "yes"; then
20466 BUILD_INCLUDED_LIBINTL=yes
20467 USE_INCLUDED_LIBINTL=yes
20468 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
20469 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
20470 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
20474 if test "$gt_use_preinstalled_gnugettext" = "yes" \
20475 || test "$nls_cv_use_gnu_gettext" = "yes"; then
20480 if test -n "$INTL_MACOSX_LIBS"; then
20481 if test "$gt_use_preinstalled_gnugettext" = "yes" \
20482 || test "$nls_cv_use_gnu_gettext" = "yes"; then
20483 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
20484 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
20488 if test "$gt_use_preinstalled_gnugettext" = "yes" \
20489 || test "$nls_cv_use_gnu_gettext" = "yes"; then
20491 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
20498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
20499 $as_echo_n "checking whether to use NLS... " >&6; }
20500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
20501 $as_echo "$USE_NLS" >&6; }
20502 if test "$USE_NLS" = "yes"; then
20503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
20504 $as_echo_n "checking where the gettext function comes from... " >&6; }
20505 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
20506 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
20507 gt_source="external libintl"
20512 gt_source="included intl directory"
20514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
20515 $as_echo "$gt_source" >&6; }
20518 if test "$USE_NLS" = "yes"; then
20520 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
20521 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
20522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
20523 $as_echo_n "checking how to link with libintl... " >&6; }
20524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
20525 $as_echo "$LIBINTL" >&6; }
20527 for element in $INCINTL; do
20529 for x in $CPPFLAGS; do
20531 acl_save_prefix="$prefix"
20532 prefix="$acl_final_prefix"
20533 acl_save_exec_prefix="$exec_prefix"
20534 exec_prefix="$acl_final_exec_prefix"
20536 exec_prefix="$acl_save_exec_prefix"
20537 prefix="$acl_save_prefix"
20539 if test "X$x" = "X$element"; then
20544 if test -z "$haveit"; then
20545 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
20552 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
20555 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
20563 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
20564 BUILD_INCLUDED_LIBINTL=yes
20571 nls_cv_header_intl=
20572 nls_cv_header_libgt=
20584 if test "$USE_INCLUDED_LIBINTL" = yes; then
20585 INTLOBJS="\$(GETTOBJS)"
20589 INTL_LIBTOOL_SUFFIX_PREFIX=
20593 INTLLIBS="$LIBINTL"
20602 support_smartalloc=yes
20603 support_readline=yes
20607 support_wx_console=no
20608 support_tray_monitor=no
20613 support_static_tools=no
20614 support_static_fd=no
20615 support_static_sd=no
20616 support_static_dir=no
20617 support_static_cons=no
20619 build_client_only=no
20626 # Check whether --enable-gnome was given.
20627 if test "${enable_gnome+set}" = set; then :
20628 enableval=$enable_gnome;
20629 if test x$enableval = xyes; then
20638 if test x$support_gnome = xyes; then
20639 as_fn_error $? "bgnome-console no longer supported" "$LINENO" 5
20640 as_fn_error $? "--enable-gnome option no longer supported" "$LINENO" 5
20642 # AC_SUBST(GNOME_DIR)
20644 # Check whether --enable-bat was given.
20645 if test "${enable_bat+set}" = set; then :
20646 enableval=$enable_bat;
20647 if test x$enableval = xyes; then
20649 $as_echo "#define HAVE_BAT 1" >>confdefs.h
20659 if test x$support_bat = xyes; then
20660 abc=`$PKGCONFIG --atleast-version=4.2 QtGui`
20662 if test $pkg = 0; then
20663 BAT_DIR=src/qt-console
20665 as_fn_error $? "Unable to find Qt4 installation needed by bat" "$LINENO" 5
20683 # Check whether --enable-bwx-console was given.
20684 if test "${enable_bwx_console+set}" = set; then :
20685 enableval=$enable_bwx_console;
20686 if test x$enableval = xyes; then
20687 support_wx_console=yes
20695 if test x$support_wx_console = xyes; then
20696 abc=`$WXCONFIG $WXFLAGS --cppflags`
20698 if test $pkg = 0; then
20699 wx_version="wxWidgets `$WXCONFIG $WXFLAGS --release`"
20700 WXCONS_CPPFLAGS=`$WXCONFIG $WXFLAGS --cppflags`
20701 WXCONS_LDFLAGS=`$WXCONFIG $WXFLAGS --libs`
20705 WX_DIR="src/wx-console"
20708 echo "wx-config program not found. bwx-console disabled."
20710 support_wx_console=no
20715 # Check whether --enable-tray-monitor was given.
20716 if test "${enable_tray_monitor+set}" = set; then :
20717 enableval=$enable_tray_monitor;
20718 if test x$enableval = xyes; then
20719 support_tray_monitor=yes
20727 if test x$support_tray_monitor = xyes; then
20728 abc=`$PKGCONFIG --exists gtk+-2.0`
20730 if test $pkg = 0; then
20731 TRAY_MONITOR_CPPFLAGS=`$PKGCONFIG --cflags gtk+-2.0`
20732 TRAY_MONITOR_LDFLAGS=`$PKGCONFIG --libs gtk+-2.0`
20735 TRAY_MONITOR_DIR=src/tray-monitor
20736 abc=`$PKGCONFIG --atleast-version=2.4 gtk+-2.0`
20738 if test $pkg = 0; then
20740 $as_echo "#define HAVE_GTK_2_4 1" >>confdefs.h
20747 # Check whether --enable-smartalloc was given.
20748 if test "${enable_smartalloc+set}" = set; then :
20749 enableval=$enable_smartalloc;
20750 if test x$enableval = xno; then
20751 support_smartalloc=no
20758 if test x$support_smartalloc = xyes; then
20760 $as_echo "#define SMARTALLOC 1" >>confdefs.h
20764 # Check whether --enable-lockmgr was given.
20765 if test "${enable_lockmgr+set}" = set; then :
20766 enableval=$enable_lockmgr;
20767 if test x$enableval = xyes; then
20768 support_lockmgr=yes
20775 if test x$support_lockmgr = xyes; then
20777 $as_echo "#define _USE_LOCKMGR 1" >>confdefs.h
20782 # Check whether --enable-static-tools was given.
20783 if test "${enable_static_tools+set}" = set; then :
20784 enableval=$enable_static_tools;
20785 if test x$enableval = xyes; then
20786 if test x$use_libtool = xyes; then
20787 as_fn_error $? "Libtool is enabled, not compatible with static tools,
20788 please rerun configure with --disable-libtool" "$LINENO" 5
20790 support_static_tools=yes
20798 if test x$support_static_tools = xyes; then
20799 TTOOL_LDFLAGS="-static"
20803 # Check whether --enable-static-fd was given.
20804 if test "${enable_static_fd+set}" = set; then :
20805 enableval=$enable_static_fd;
20806 if test x$enableval = xyes; then
20807 if test x$use_libtool = xyes; then
20808 as_fn_error $? "Libtool is enabled, not compatible with static tools,
20809 please rerun configure with --disable-libtool" "$LINENO" 5
20811 support_static_fd=yes
20819 if test x$support_static_fd = xyes; then
20820 STATIC_FD="static-bacula-fd"
20824 # Check whether --enable-static-sd was given.
20825 if test "${enable_static_sd+set}" = set; then :
20826 enableval=$enable_static_sd;
20827 if test x$enableval = xyes; then
20828 if test x$use_libtool = xyes; then
20829 as_fn_error $? "Libtool is enabled, not compatible with static tools,
20830 please rerun configure with --disable-libtool" "$LINENO" 5
20832 support_static_sd=yes
20840 if test x$support_static_sd = xyes; then
20841 STATIC_SD="static-bacula-sd"
20845 # Check whether --enable-static-dir was given.
20846 if test "${enable_static_dir+set}" = set; then :
20847 enableval=$enable_static_dir;
20848 if test x$enableval = xyes; then
20849 if test x$use_libtool = xyes; then
20850 as_fn_error $? "Libtool is enabled, not compatible with static tools,
20851 please rerun configure with --disable-libtool" "$LINENO" 5
20853 support_static_dir=yes
20861 if test x$support_static_dir = xyes; then
20862 STATIC_DIR="static-bacula-dir"
20866 # Check whether --enable-static-cons was given.
20867 if test "${enable_static_cons+set}" = set; then :
20868 enableval=$enable_static_cons;
20869 if test x$enableval = xyes; then
20870 if test x$use_libtool = xyes; then
20871 as_fn_error $? "Libtool is enabled, not compatible with static tools,
20872 please rerun configure with --disable-libtool" "$LINENO" 5
20874 support_static_cons=yes
20884 if test x$support_static_cons = xyes; then
20885 STATIC_CONS="static-bconsole"
20886 STATIC_GNOME_CONS="static-bgnome-console"
20887 STATIC_WX_CONS="static-bwx-console"
20893 # Check whether --enable-client-only was given.
20894 if test "${enable_client_only+set}" = set; then :
20895 enableval=$enable_client_only;
20896 if test x$enableval = xyes; then
20897 build_client_only=yes
20905 if test x$build_client_only = xno; then
20912 # Check whether --enable-build-dird was given.
20913 if test "${enable_build_dird+set}" = set; then :
20914 enableval=$enable_build_dird;
20915 if test x$enableval = xno; then
20922 if test x$build_dird = xyes; then
20923 DIRD_DIR="src/dird"
20924 DIR_TOOLS="DIRTOOLS"
20927 DIR_TOOLS="NODIRTOOLS"
20932 # Check whether --enable-build-stored was given.
20933 if test "${enable_build_stored+set}" = set; then :
20934 enableval=$enable_build_stored;
20935 if test x$enableval = xno; then
20942 if test x$build_stored = xyes; then
20943 STORED_DIR="src/stored"
20949 # Check whether --enable-conio was given.
20950 if test "${enable_conio+set}" = set; then :
20951 enableval=$enable_conio;
20952 if test x$enableval = xno; then
20962 # Check whether --enable-ipv6 was given.
20963 if test "${enable_ipv6+set}" = set; then :
20964 enableval=$enable_ipv6;
20965 if test x$enableval = xno; then
20973 if test x$support_ipv6 = xyes; then
20974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20975 /* end confdefs.h. */
20976 #include <sys/types.h>
20977 #include <sys/socket.h>
20978 #include <netinet/in.h>
20982 struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] = 0;
20987 if ac_fn_c_try_link "$LINENO"; then :
20992 rm -f core conftest.err conftest.$ac_objext \
20993 conftest$ac_exeext conftest.$ac_ext
20996 if test x$support_ipv6 = xyes; then
20998 $as_echo "#define HAVE_IPV6 1" >>confdefs.h
21003 ac_fn_c_check_header_mongrel "$LINENO" "curses.h" "ac_cv_header_curses_h" "$ac_includes_default"
21004 if test "x$ac_cv_header_curses_h" = xyes; then :
21005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lncurses" >&5
21006 $as_echo_n "checking for tgetent in -lncurses... " >&6; }
21007 if ${ac_cv_lib_ncurses_tgetent+:} false; then :
21008 $as_echo_n "(cached) " >&6
21010 ac_check_lib_save_LIBS=$LIBS
21011 LIBS="-lncurses $LIBS"
21012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21013 /* end confdefs.h. */
21015 /* Override any GCC internal prototype to avoid an error.
21016 Use char because int might match the return type of a GCC
21017 builtin and then its argument prototype would still apply. */
21030 if ac_fn_c_try_link "$LINENO"; then :
21031 ac_cv_lib_ncurses_tgetent=yes
21033 ac_cv_lib_ncurses_tgetent=no
21035 rm -f core conftest.err conftest.$ac_objext \
21036 conftest$ac_exeext conftest.$ac_ext
21037 LIBS=$ac_check_lib_save_LIBS
21039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_tgetent" >&5
21040 $as_echo "$ac_cv_lib_ncurses_tgetent" >&6; }
21041 if test "x$ac_cv_lib_ncurses_tgetent" = xyes; then :
21042 TERM_LIB="-lncurses"
21044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltermcap" >&5
21045 $as_echo_n "checking for tgetent in -ltermcap... " >&6; }
21046 if ${ac_cv_lib_termcap_tgetent+:} false; then :
21047 $as_echo_n "(cached) " >&6
21049 ac_check_lib_save_LIBS=$LIBS
21050 LIBS="-ltermcap $LIBS"
21051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21052 /* end confdefs.h. */
21054 /* Override any GCC internal prototype to avoid an error.
21055 Use char because int might match the return type of a GCC
21056 builtin and then its argument prototype would still apply. */
21069 if ac_fn_c_try_link "$LINENO"; then :
21070 ac_cv_lib_termcap_tgetent=yes
21072 ac_cv_lib_termcap_tgetent=no
21074 rm -f core conftest.err conftest.$ac_objext \
21075 conftest$ac_exeext conftest.$ac_ext
21076 LIBS=$ac_check_lib_save_LIBS
21078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_termcap_tgetent" >&5
21079 $as_echo "$ac_cv_lib_termcap_tgetent" >&6; }
21080 if test "x$ac_cv_lib_termcap_tgetent" = xyes; then :
21081 TERM_LIB="-ltermcap"
21089 for ac_header in curses.h
21091 ac_fn_c_check_header_mongrel "$LINENO" "curses.h" "ac_cv_header_curses_h" "$ac_includes_default"
21092 if test "x$ac_cv_header_curses_h" = xyes; then :
21093 cat >>confdefs.h <<_ACEOF
21094 #define HAVE_CURSES_H 1
21101 ac_fn_c_check_header_mongrel "$LINENO" "term.h" "ac_cv_header_term_h" "$ac_includes_default"
21102 if test "x$ac_cv_header_term_h" = xyes; then :
21103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lcurses" >&5
21104 $as_echo_n "checking for tgetent in -lcurses... " >&6; }
21105 if ${ac_cv_lib_curses_tgetent+:} false; then :
21106 $as_echo_n "(cached) " >&6
21108 ac_check_lib_save_LIBS=$LIBS
21109 LIBS="-lcurses $LIBS"
21110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21111 /* end confdefs.h. */
21113 /* Override any GCC internal prototype to avoid an error.
21114 Use char because int might match the return type of a GCC
21115 builtin and then its argument prototype would still apply. */
21128 if ac_fn_c_try_link "$LINENO"; then :
21129 ac_cv_lib_curses_tgetent=yes
21131 ac_cv_lib_curses_tgetent=no
21133 rm -f core conftest.err conftest.$ac_objext \
21134 conftest$ac_exeext conftest.$ac_ext
21135 LIBS=$ac_check_lib_save_LIBS
21137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_tgetent" >&5
21138 $as_echo "$ac_cv_lib_curses_tgetent" >&6; }
21139 if test "x$ac_cv_lib_curses_tgetent" = xyes; then :
21140 TERM_LIB="-lcurses"
21154 if test x$support_conio = xyes; then
21155 if test x$TERM_LIB != x; then
21156 CONS_LIBS=$TERM_LIB
21160 support_readline=no
21162 $as_echo "#define HAVE_CONIO 1" >>confdefs.h
21165 echo " "; echo "Required libraries not found. CONIO turned off ..."; echo " "],
21170 # Check whether --enable-readline was given.
21171 if test "${enable_readline+set}" = set; then :
21172 enableval=$enable_readline;
21173 if test x$enableval = xno; then
21174 support_readline=no
21180 if test x$TERM_LIB = x ; then
21181 support_readline=no
21186 if test x$support_readline = xyes; then
21188 # Check whether --with-readline was given.
21189 if test "${with_readline+set}" = set; then :
21190 withval=$with_readline;
21191 case "$with_readline" in
21196 if test -f ${with_readline}/readline.h; then
21197 CONS_INC="-I${with_readline}"
21198 CONS_LDFLAGS="-L$with_readline"
21199 elif test -f ${with_readline}/include/readline/readline.h; then
21200 CONS_INC="-I${with_readline}/include/readline"
21201 CONS_LDFLAGS="-L${with_readline}/lib"
21202 with_readline="${with_readline}/include/readline"
21204 with_readline="/usr/include/readline"
21207 as_ac_Header=`$as_echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
21208 ac_fn_c_check_header_mongrel "$LINENO" "${with_readline}/readline.h" "$as_ac_Header" "$ac_includes_default"
21209 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21212 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
21214 CONS_LIBS="-lreadline -lhistory $TERM_LIB"
21220 echo "readline.h not found. readline turned off ..."
21232 ac_fn_c_check_header_mongrel "$LINENO" "/usr/include/readline/readline.h" "ac_cv_header__usr_include_readline_readline_h" "$ac_includes_default"
21233 if test "x$ac_cv_header__usr_include_readline_readline_h" = xyes; then :
21236 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
21239 CONS_INC="-I/usr/include/readline"
21240 CONS_LIBS="-lreadline $TERM_LIB"
21244 as_ac_Header=`$as_echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
21245 ac_fn_c_check_header_mongrel "$LINENO" "${TOP_DIR}/depkgs/readline/readline.h" "$as_ac_Header" "$ac_includes_default"
21246 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21249 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
21252 CONS_INC="-I${TOP_DIR}/depkgs/readline"
21253 CONS_LIBS="-lreadline -lhistory $TERM_LIB"
21254 CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
21255 PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
21260 echo "readline.h not found. readline turned off ..."
21287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
21288 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
21289 if ${ac_cv_header_stat_broken+:} false; then :
21290 $as_echo_n "(cached) " >&6
21292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21293 /* end confdefs.h. */
21294 #include <sys/types.h>
21295 #include <sys/stat.h>
21297 #if defined S_ISBLK && defined S_IFDIR
21298 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
21301 #if defined S_ISBLK && defined S_IFCHR
21302 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
21305 #if defined S_ISLNK && defined S_IFREG
21306 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
21309 #if defined S_ISSOCK && defined S_IFREG
21310 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
21314 if ac_fn_c_try_compile "$LINENO"; then :
21315 ac_cv_header_stat_broken=no
21317 ac_cv_header_stat_broken=yes
21319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
21322 $as_echo "$ac_cv_header_stat_broken" >&6; }
21323 if test $ac_cv_header_stat_broken = yes; then
21325 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
21329 ac_header_dirent=no
21330 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
21331 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
21332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
21333 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
21334 if eval \${$as_ac_Header+:} false; then :
21335 $as_echo_n "(cached) " >&6
21337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21338 /* end confdefs.h. */
21339 #include <sys/types.h>
21351 if ac_fn_c_try_compile "$LINENO"; then :
21352 eval "$as_ac_Header=yes"
21354 eval "$as_ac_Header=no"
21356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21358 eval ac_res=\$$as_ac_Header
21359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21360 $as_echo "$ac_res" >&6; }
21361 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21362 cat >>confdefs.h <<_ACEOF
21363 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
21366 ac_header_dirent=$ac_hdr; break
21370 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
21371 if test $ac_header_dirent = dirent.h; then
21372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
21373 $as_echo_n "checking for library containing opendir... " >&6; }
21374 if ${ac_cv_search_opendir+:} false; then :
21375 $as_echo_n "(cached) " >&6
21377 ac_func_search_save_LIBS=$LIBS
21378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21379 /* end confdefs.h. */
21381 /* Override any GCC internal prototype to avoid an error.
21382 Use char because int might match the return type of a GCC
21383 builtin and then its argument prototype would still apply. */
21396 for ac_lib in '' dir; do
21397 if test -z "$ac_lib"; then
21398 ac_res="none required"
21401 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21403 if ac_fn_c_try_link "$LINENO"; then :
21404 ac_cv_search_opendir=$ac_res
21406 rm -f core conftest.err conftest.$ac_objext \
21408 if ${ac_cv_search_opendir+:} false; then :
21412 if ${ac_cv_search_opendir+:} false; then :
21415 ac_cv_search_opendir=no
21417 rm conftest.$ac_ext
21418 LIBS=$ac_func_search_save_LIBS
21420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
21421 $as_echo "$ac_cv_search_opendir" >&6; }
21422 ac_res=$ac_cv_search_opendir
21423 if test "$ac_res" != no; then :
21424 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
21430 $as_echo_n "checking for library containing opendir... " >&6; }
21431 if ${ac_cv_search_opendir+:} false; then :
21432 $as_echo_n "(cached) " >&6
21434 ac_func_search_save_LIBS=$LIBS
21435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21436 /* end confdefs.h. */
21438 /* Override any GCC internal prototype to avoid an error.
21439 Use char because int might match the return type of a GCC
21440 builtin and then its argument prototype would still apply. */
21453 for ac_lib in '' x; do
21454 if test -z "$ac_lib"; then
21455 ac_res="none required"
21458 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21460 if ac_fn_c_try_link "$LINENO"; then :
21461 ac_cv_search_opendir=$ac_res
21463 rm -f core conftest.err conftest.$ac_objext \
21465 if ${ac_cv_search_opendir+:} false; then :
21469 if ${ac_cv_search_opendir+:} false; then :
21472 ac_cv_search_opendir=no
21474 rm conftest.$ac_ext
21475 LIBS=$ac_func_search_save_LIBS
21477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
21478 $as_echo "$ac_cv_search_opendir" >&6; }
21479 ac_res=$ac_cv_search_opendir
21480 if test "$ac_res" != no; then :
21481 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21487 for ac_func in strcasecmp select setenv putenv tcgetattr lstat lchown
21489 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21490 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21491 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
21492 cat >>confdefs.h <<_ACEOF
21493 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21499 for ac_func in nanosleep nl_langinfo
21501 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21502 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21503 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
21504 cat >>confdefs.h <<_ACEOF
21505 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21511 for ac_header in varargs.h
21513 ac_fn_c_check_header_mongrel "$LINENO" "varargs.h" "ac_cv_header_varargs_h" "$ac_includes_default"
21514 if test "x$ac_cv_header_varargs_h" = xyes; then :
21515 cat >>confdefs.h <<_ACEOF
21516 #define HAVE_VARARGS_H 1
21525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python support" >&5
21526 $as_echo_n "checking for Python support... " >&6; }
21528 # Check whether --with-python was given.
21529 if test "${with_python+set}" = set; then :
21530 withval=$with_python;
21533 if test "$withval" != "no"; then
21534 if test "$withval" = "yes"; then
21535 if test -e /usr/bin/python-config ; then
21536 PYTHON_INCDIR=`/usr/bin/python-config --includes`
21537 PYTHON_LIBS=`/usr/bin/python-config --libs`
21539 for python_root in /usr /usr/local /usr/sfw; do
21540 for ver in python2.2 python2.3 python2.4 python2.5 python2.6 python3; do
21541 if test -f $python_root/include/${ver}/Python.h; then
21542 PYTHON_INCDIR=-I$python_root/include/${ver}
21543 if test -d $python_root/lib64/${ver}/config; then
21544 PYTHON_LIBS="-L$python_root/lib64/${ver}/config -l${ver}"
21546 PYTHON_LIBS="-L$python_root/lib/${ver}/config -l${ver}"
21553 if test x$PYTHON_INCDIR = x; then
21554 if test -f $prefix/include/Python.h; then
21555 PYTHON_INCDIR=-I$prefix/include
21556 if test -d $prefix/lib64/config; then
21557 PYTHON_LIBS="-L$prefix/lib64/config -lpython"
21559 PYTHON_LIBS="-L$prefix/lib/config -lpython"
21562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21563 $as_echo "no" >&6; }
21564 as_fn_error $? "Unable to find Python.h in standard locations" "$LINENO" 5
21569 if test -e $withval/bin/python-config ; then
21570 PYTHON_INCDIR=`$withval/bin/python-config --includes`
21571 PYTHON_LIBS=`$withval/bin/python-config --libs`
21572 elif test -f $withval/Python.h; then
21573 PYTHON_INCDIR=-I$withval
21574 PYTHON_LIBS="-L$withval/config -lpython"
21575 elif test -f $withval/include/Python.h; then
21576 PYTHON_INCDIR=-I$withval/include
21577 if test -d $withval/lib64/config; then
21578 PYTHON_LIBS="-L$withval/lib64/config -lpython"
21580 PYTHON_LIBS="-L$withval/lib/config -lpython"
21582 elif test -f $withval/include/python/Python.h; then
21583 PYTHON_INCDIR=-I$withval/include/python
21584 if test -d $withval/lib64/python/config; then
21585 PYTHON_LIBS="-L$withval/lib64/python/config -lpython"
21587 PYTHON_LIBS="-L$withval/lib/python/config -lpython"
21590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21591 $as_echo "no" >&6; }
21592 as_fn_error $? "Invalid Python directory $withval - unable to find Python.h under $withval" "$LINENO" 5
21596 $as_echo "#define HAVE_PYTHON 1" >>confdefs.h
21598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21599 $as_echo "yes" >&6; }
21601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for more Python libs" >&5
21602 $as_echo "$as_me: checking for more Python libs" >&6;}
21603 saved_LIBS="$LIBS"; LIBS=
21604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing shm_open" >&5
21605 $as_echo_n "checking for library containing shm_open... " >&6; }
21606 if ${ac_cv_search_shm_open+:} false; then :
21607 $as_echo_n "(cached) " >&6
21609 ac_func_search_save_LIBS=$LIBS
21610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21611 /* end confdefs.h. */
21613 /* Override any GCC internal prototype to avoid an error.
21614 Use char because int might match the return type of a GCC
21615 builtin and then its argument prototype would still apply. */
21623 return shm_open ();
21628 for ac_lib in '' rt; do
21629 if test -z "$ac_lib"; then
21630 ac_res="none required"
21633 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21635 if ac_fn_c_try_link "$LINENO"; then :
21636 ac_cv_search_shm_open=$ac_res
21638 rm -f core conftest.err conftest.$ac_objext \
21640 if ${ac_cv_search_shm_open+:} false; then :
21644 if ${ac_cv_search_shm_open+:} false; then :
21647 ac_cv_search_shm_open=no
21649 rm conftest.$ac_ext
21650 LIBS=$ac_func_search_save_LIBS
21652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_shm_open" >&5
21653 $as_echo "$ac_cv_search_shm_open" >&6; }
21654 ac_res=$ac_cv_search_shm_open
21655 if test "$ac_res" != no; then :
21656 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openpty in -lutil" >&5
21661 $as_echo_n "checking for openpty in -lutil... " >&6; }
21662 if ${ac_cv_lib_util_openpty+:} false; then :
21663 $as_echo_n "(cached) " >&6
21665 ac_check_lib_save_LIBS=$LIBS
21666 LIBS="-lutil $LIBS"
21667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21668 /* end confdefs.h. */
21670 /* Override any GCC internal prototype to avoid an error.
21671 Use char because int might match the return type of a GCC
21672 builtin and then its argument prototype would still apply. */
21685 if ac_fn_c_try_link "$LINENO"; then :
21686 ac_cv_lib_util_openpty=yes
21688 ac_cv_lib_util_openpty=no
21690 rm -f core conftest.err conftest.$ac_objext \
21691 conftest$ac_exeext conftest.$ac_ext
21692 LIBS=$ac_check_lib_save_LIBS
21694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_openpty" >&5
21695 $as_echo "$ac_cv_lib_util_openpty" >&6; }
21696 if test "x$ac_cv_lib_util_openpty" = xyes; then :
21697 cat >>confdefs.h <<_ACEOF
21698 #define HAVE_LIBUTIL 1
21701 LIBS="-lutil $LIBS"
21705 PYTHON_LIBS="$PYTHON_LIBS $LIBS"
21708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21709 $as_echo "no" >&6; }
21714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21715 $as_echo "no" >&6; }
21723 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
21724 if test "x$ac_cv_func_socket" = xyes; then :
21725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using libc's socket" >&5
21726 $as_echo "using libc's socket" >&6; }
21728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lxnet" >&5
21729 $as_echo_n "checking for socket in -lxnet... " >&6; }
21730 if ${ac_cv_lib_xnet_socket+:} false; then :
21731 $as_echo_n "(cached) " >&6
21733 ac_check_lib_save_LIBS=$LIBS
21734 LIBS="-lxnet $LIBS"
21735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21736 /* end confdefs.h. */
21738 /* Override any GCC internal prototype to avoid an error.
21739 Use char because int might match the return type of a GCC
21740 builtin and then its argument prototype would still apply. */
21753 if ac_fn_c_try_link "$LINENO"; then :
21754 ac_cv_lib_xnet_socket=yes
21756 ac_cv_lib_xnet_socket=no
21758 rm -f core conftest.err conftest.$ac_objext \
21759 conftest$ac_exeext conftest.$ac_ext
21760 LIBS=$ac_check_lib_save_LIBS
21762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xnet_socket" >&5
21763 $as_echo "$ac_cv_lib_xnet_socket" >&6; }
21764 if test "x$ac_cv_lib_xnet_socket" = xyes; then :
21765 cat >>confdefs.h <<_ACEOF
21766 #define HAVE_LIBXNET 1
21769 LIBS="-lxnet $LIBS"
21773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
21774 $as_echo_n "checking for socket in -lsocket... " >&6; }
21775 if ${ac_cv_lib_socket_socket+:} false; then :
21776 $as_echo_n "(cached) " >&6
21778 ac_check_lib_save_LIBS=$LIBS
21779 LIBS="-lsocket $LIBS"
21780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21781 /* end confdefs.h. */
21783 /* Override any GCC internal prototype to avoid an error.
21784 Use char because int might match the return type of a GCC
21785 builtin and then its argument prototype would still apply. */
21798 if ac_fn_c_try_link "$LINENO"; then :
21799 ac_cv_lib_socket_socket=yes
21801 ac_cv_lib_socket_socket=no
21803 rm -f core conftest.err conftest.$ac_objext \
21804 conftest$ac_exeext conftest.$ac_ext
21805 LIBS=$ac_check_lib_save_LIBS
21807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
21808 $as_echo "$ac_cv_lib_socket_socket" >&6; }
21809 if test "x$ac_cv_lib_socket_socket" = xyes; then :
21810 cat >>confdefs.h <<_ACEOF
21811 #define HAVE_LIBSOCKET 1
21814 LIBS="-lsocket $LIBS"
21818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -linet" >&5
21819 $as_echo_n "checking for socket in -linet... " >&6; }
21820 if ${ac_cv_lib_inet_socket+:} false; then :
21821 $as_echo_n "(cached) " >&6
21823 ac_check_lib_save_LIBS=$LIBS
21824 LIBS="-linet $LIBS"
21825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21826 /* end confdefs.h. */
21828 /* Override any GCC internal prototype to avoid an error.
21829 Use char because int might match the return type of a GCC
21830 builtin and then its argument prototype would still apply. */
21843 if ac_fn_c_try_link "$LINENO"; then :
21844 ac_cv_lib_inet_socket=yes
21846 ac_cv_lib_inet_socket=no
21848 rm -f core conftest.err conftest.$ac_objext \
21849 conftest$ac_exeext conftest.$ac_ext
21850 LIBS=$ac_check_lib_save_LIBS
21852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_inet_socket" >&5
21853 $as_echo "$ac_cv_lib_inet_socket" >&6; }
21854 if test "x$ac_cv_lib_inet_socket" = xyes; then :
21855 cat >>confdefs.h <<_ACEOF
21856 #define HAVE_LIBINET 1
21859 LIBS="-linet $LIBS"
21869 # Check whether --with-tcp-wrappers was given.
21870 if test "${with_tcp_wrappers+set}" = set; then :
21871 withval=$with_tcp_wrappers;
21872 if test "x$withval" != "xno" ; then
21874 LIBS="$saved_LIBS -lwrap"
21875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nanosleep" >&5
21876 $as_echo_n "checking for library containing nanosleep... " >&6; }
21877 if ${ac_cv_search_nanosleep+:} false; then :
21878 $as_echo_n "(cached) " >&6
21880 ac_func_search_save_LIBS=$LIBS
21881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21882 /* end confdefs.h. */
21884 /* Override any GCC internal prototype to avoid an error.
21885 Use char because int might match the return type of a GCC
21886 builtin and then its argument prototype would still apply. */
21894 return nanosleep ();
21899 for ac_lib in '' rt; do
21900 if test -z "$ac_lib"; then
21901 ac_res="none required"
21904 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21906 if ac_fn_c_try_link "$LINENO"; then :
21907 ac_cv_search_nanosleep=$ac_res
21909 rm -f core conftest.err conftest.$ac_objext \
21911 if ${ac_cv_search_nanosleep+:} false; then :
21915 if ${ac_cv_search_nanosleep+:} false; then :
21918 ac_cv_search_nanosleep=no
21920 rm conftest.$ac_ext
21921 LIBS=$ac_func_search_save_LIBS
21923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nanosleep" >&5
21924 $as_echo "$ac_cv_search_nanosleep" >&6; }
21925 ac_res=$ac_cv_search_nanosleep
21926 if test "$ac_res" != no; then :
21927 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libwrap" >&5
21932 $as_echo_n "checking for libwrap... " >&6; }
21933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21934 /* end confdefs.h. */
21936 #include <sys/types.h>
21938 int deny_severity = 0;
21939 int allow_severity = 0;
21940 struct request_info *req;
21952 if ac_fn_c_try_link "$LINENO"; then :
21954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21955 $as_echo "yes" >&6; }
21957 $as_echo "#define HAVE_LIBWRAP 1" >>confdefs.h
21965 LIBS="$saved_LIBS -lwrap -lnsl"
21966 WRAPLIBS="$saved_LIBS -lwrap -lnsl"
21967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21968 /* end confdefs.h. */
21970 #include <sys/types.h>
21972 int deny_severity = 0;
21973 int allow_severity = 0;
21974 struct request_info *req;
21986 if ac_fn_c_try_link "$LINENO"; then :
21988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21989 $as_echo "yes" >&6; }
21991 $as_echo "#define HAVE_LIBWRAP 1" >>confdefs.h
21999 as_fn_error $? "*** libwrap missing" "$LINENO" 5
22003 rm -f core conftest.err conftest.$ac_objext \
22004 conftest$ac_exeext conftest.$ac_ext
22008 rm -f core conftest.err conftest.$ac_objext \
22009 conftest$ac_exeext conftest.$ac_ext
22016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL" >&5
22017 $as_echo_n "checking for OpenSSL... " >&6; }
22019 # Check whether --with-openssl was given.
22020 if test "${with_openssl+set}" = set; then :
22021 withval=$with_openssl;
22022 with_openssl_directory=${withval}
22028 if test "x$with_openssl_directory" != "xno"; then
22029 OPENSSL_LIBS="-lssl -lcrypto"
22032 if test "x$with_openssl_directory" != "xyes" && test x"${with_openssl_directory}" != "x"; then
22034 # Make sure the $with_openssl_directory also makes sense
22036 if test -d "$with_openssl_directory/lib" -a -d "$with_openssl_directory/include"; then
22037 OPENSSL_LIBS="-L$with_openssl_directory/lib $OPENSSL_LIBS"
22038 OPENSSL_INC="-I$with_openssl_directory/include $OPENSSL_INC"
22042 saved_LIBS="${LIBS}"
22043 saved_CFLAGS="${CFLAGS}"
22044 LIBS="${saved_LIBS} ${OPENSSL_LIBS}"
22045 CFLAGS="${saved_CFLAGS} ${OPENSSL_INC}"
22047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22048 /* end confdefs.h. */
22050 #include <openssl/ssl.h>
22056 CRYPTO_set_id_callback(NULL);
22062 if ac_fn_c_try_link "$LINENO"; then :
22065 support_crypto="yes"
22070 support_crypto="no"
22074 rm -f core conftest.err conftest.$ac_objext \
22075 conftest$ac_exeext conftest.$ac_ext
22077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22078 /* end confdefs.h. */
22080 #include <openssl/evp.h>
22092 if ac_fn_c_try_link "$LINENO"; then :
22094 ac_cv_openssl_sha2="yes"
22098 ac_cv_openssl_sha2="no"
22102 rm -f core conftest.err conftest.$ac_objext \
22103 conftest$ac_exeext conftest.$ac_ext
22105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22106 /* end confdefs.h. */
22108 #include <openssl/evp.h>
22120 if ac_fn_c_try_link "$LINENO"; then :
22122 ac_cv_openssl_export="no"
22126 ac_cv_openssl_export="yes"
22130 rm -f core conftest.err conftest.$ac_objext \
22131 conftest$ac_exeext conftest.$ac_ext
22133 if test "$support_tls" = "yes"; then
22135 $as_echo "#define HAVE_OPENSSL 1" >>confdefs.h
22138 $as_echo "#define HAVE_TLS 1" >>confdefs.h
22141 $as_echo "#define HAVE_CRYPTO 1" >>confdefs.h
22145 if test "$ac_cv_openssl_sha2" = "yes"; then
22147 $as_echo "#define HAVE_SHA2 1" >>confdefs.h
22151 if test "$ac_cv_openssl_export" = "yes"; then
22153 $as_echo "#define HAVE_OPENSSL_EXPORT_LIBRARY 1" >>confdefs.h
22157 if test "$support_crypto" = "yes"; then
22158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVP_PKEY_encrypt_old in -lssl" >&5
22159 $as_echo_n "checking for EVP_PKEY_encrypt_old in -lssl... " >&6; }
22160 if ${ac_cv_lib_ssl_EVP_PKEY_encrypt_old+:} false; then :
22161 $as_echo_n "(cached) " >&6
22163 ac_check_lib_save_LIBS=$LIBS
22165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22166 /* end confdefs.h. */
22168 /* Override any GCC internal prototype to avoid an error.
22169 Use char because int might match the return type of a GCC
22170 builtin and then its argument prototype would still apply. */
22174 char EVP_PKEY_encrypt_old ();
22178 return EVP_PKEY_encrypt_old ();
22183 if ac_fn_c_try_link "$LINENO"; then :
22184 ac_cv_lib_ssl_EVP_PKEY_encrypt_old=yes
22186 ac_cv_lib_ssl_EVP_PKEY_encrypt_old=no
22188 rm -f core conftest.err conftest.$ac_objext \
22189 conftest$ac_exeext conftest.$ac_ext
22190 LIBS=$ac_check_lib_save_LIBS
22192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_EVP_PKEY_encrypt_old" >&5
22193 $as_echo "$ac_cv_lib_ssl_EVP_PKEY_encrypt_old" >&6; }
22194 if test "x$ac_cv_lib_ssl_EVP_PKEY_encrypt_old" = xyes; then :
22196 $as_echo "#define HAVE_OPENSSLv1 1" >>confdefs.h
22202 LIBS="${saved_LIBS}"
22203 CFLAGS="${saved_CFLAGS}"
22206 support_crypto="no"
22210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $support_tls" >&5
22211 $as_echo "$support_tls" >&6; }
22213 if test "$support_tls" = "no"; then
22217 if test "$support_crypto" = "no"; then
22225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
22226 $as_echo_n "checking for library containing dlopen... " >&6; }
22227 if ${ac_cv_search_dlopen+:} false; then :
22228 $as_echo_n "(cached) " >&6
22230 ac_func_search_save_LIBS=$LIBS
22231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22232 /* end confdefs.h. */
22234 /* Override any GCC internal prototype to avoid an error.
22235 Use char because int might match the return type of a GCC
22236 builtin and then its argument prototype would still apply. */
22249 for ac_lib in '' dl; do
22250 if test -z "$ac_lib"; then
22251 ac_res="none required"
22254 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22256 if ac_fn_c_try_link "$LINENO"; then :
22257 ac_cv_search_dlopen=$ac_res
22259 rm -f core conftest.err conftest.$ac_objext \
22261 if ${ac_cv_search_dlopen+:} false; then :
22265 if ${ac_cv_search_dlopen+:} false; then :
22268 ac_cv_search_dlopen=no
22270 rm conftest.$ac_ext
22271 LIBS=$ac_func_search_save_LIBS
22273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
22274 $as_echo "$ac_cv_search_dlopen" >&6; }
22275 ac_res=$ac_cv_search_dlopen
22276 if test "$ac_res" != no; then :
22277 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22282 working_dir=`eval echo ${prefix}/var/bacula/working`
22284 # Check whether --with-working-dir was given.
22285 if test "${with_working_dir+set}" = set; then :
22286 withval=$with_working_dir;
22287 if test "x$withval" != "xno" ; then
22288 working_dir=$withval
22299 # Check whether --with-archivedir was given.
22300 if test "${with_archivedir+set}" = set; then :
22301 withval=$with_archivedir;
22302 if test "x$withval" != "xno" ; then
22303 archivedir=$withval
22312 basename=`hostname`
22314 # Check whether --with-basename was given.
22315 if test "${with_basename+set}" = set; then :
22316 withval=$with_basename;
22317 if test "x$withval" != "xno" ; then
22327 hostname=`uname -n | cut -d '.' -f 1`
22328 if test x${hostname} = x ; then
22329 hostname="localhost"
22332 # Check whether --with-hostname was given.
22333 if test "${with_hostname+set}" = set; then :
22334 withval=$with_hostname;
22335 if test "x$withval" != "xno" ; then
22346 scriptdir=`eval echo ${sysconfdir}`
22348 # Check whether --with-scriptdir was given.
22349 if test "${with_scriptdir+set}" = set; then :
22350 withval=$with_scriptdir;
22351 if test "x$withval" != "xno" ; then
22364 # Check whether --with-bsrdir was given.
22365 if test "${with_bsrdir+set}" = set; then :
22366 withval=$with_bsrdir;
22367 if test "x$withval" != "xno" ; then
22379 # Check whether --with-logdir was given.
22380 if test "${with_logdir+set}" = set; then :
22381 withval=$with_logdir;
22382 if test "x$withval" != "xno" ; then
22393 # ------------------------------------------
22394 # Where to place plugindir (plugin files)
22395 # ------------------------------------------
22396 plugindir=`eval echo ${libdir}`
22398 # Check whether --with-plugindir was given.
22399 if test "${with_plugindir+set}" = set; then :
22400 withval=$with_plugindir;
22401 if test "x$withval" != "xno" ; then
22411 dump_email=root@localhost
22413 # Check whether --with-dump-email was given.
22414 if test "${with_dump_email+set}" = set; then :
22415 withval=$with_dump_email;
22416 if test "x$withval" != "xno" ; then
22417 dump_email=$withval
22426 job_email=root@localhost
22428 # Check whether --with-job-email was given.
22429 if test "${with_job_email+set}" = set; then :
22430 withval=$with_job_email;
22431 if test "x$withval" != "xno" ; then
22441 smtp_host=localhost
22443 # Check whether --with-smtp_host was given.
22444 if test "${with_smtp_host+set}" = set; then :
22445 withval=$with_smtp_host;
22446 if test "x$withval" != "xno" ; then
22458 # Check whether --with-pid-dir was given.
22459 if test "${with_pid_dir+set}" = set; then :
22460 withval=$with_pid_dir;
22461 if test "x$withval" != "xno" ; then
22469 cat >>confdefs.h <<_ACEOF
22470 #define _PATH_BACULA_PIDDIR "$piddir"
22475 subsysdir=/var/run/subsys
22476 if test -d /var/run/subsys; then
22477 subsysdir=/var/run/subsys
22478 elif test -d /var/lock/subsys; then
22479 subsysdir=/var/lock/subsys
22481 subsysdir=/var/run/subsys
22484 # Check whether --with-subsys-dir was given.
22485 if test "${with_subsys_dir+set}" = set; then :
22486 withval=$with_subsys_dir;
22487 if test "x$withval" != "xno" ; then
22499 # Check whether --with-baseport was given.
22500 if test "${with_baseport+set}" = set; then :
22501 withval=$with_baseport;
22502 if test "x$withval" != "xno" ; then
22511 dir_port=`expr $baseport`
22512 fd_port=`expr $baseport + 1`
22513 sd_port=`expr $fd_port + 1`
22521 # Check whether --with-dir-password was given.
22522 if test "${with_dir_password+set}" = set; then :
22523 withval=$with_dir_password;
22524 if test "x$withval" != "xno" ; then
22525 dir_password=$withval
22532 if test "x$dir_password" = "x" ; then
22533 if test "x$OPENSSL" = "xnone" ; then
22534 key=`autoconf/randpass 33`
22536 key=`openssl rand -base64 33`
22543 # Check whether --with-fd-password was given.
22544 if test "${with_fd_password+set}" = set; then :
22545 withval=$with_fd_password;
22546 if test "x$withval" != "xno" ; then
22547 fd_password=$withval
22554 if test "x$fd_password" = "x" ; then
22555 if test "x$OPENSSL" = "xnone" ; then
22556 key=`autoconf/randpass 37`
22558 key=`openssl rand -base64 33`
22565 # Check whether --with-sd-password was given.
22566 if test "${with_sd_password+set}" = set; then :
22567 withval=$with_sd_password;
22568 if test "x$withval" != "xno" ; then
22569 sd_password=$withval
22576 if test "x$sd_password" = "x" ; then
22577 if test "x$OPENSSL" = "xnone" ; then
22578 key=`autoconf/randpass 41`
22580 key=`openssl rand -base64 33`
22587 # Check whether --with-mon-dir-password was given.
22588 if test "${with_mon_dir_password+set}" = set; then :
22589 withval=$with_mon_dir_password;
22590 if test "x$withval" != "xno" ; then
22591 mon_dir_password=$withval
22598 if test "x$mon_dir_password" = "x" ; then
22599 if test "x$OPENSSL" = "xnone" ; then
22600 key=`autoconf/randpass 33`
22602 key=`openssl rand -base64 33`
22604 mon_dir_password=$key
22609 # Check whether --with-mon-fd-password was given.
22610 if test "${with_mon_fd_password+set}" = set; then :
22611 withval=$with_mon_fd_password;
22612 if test "x$withval" != "xno" ; then
22613 mon_fd_password=$withval
22620 if test "x$mon_fd_password" = "x" ; then
22621 if test "x$OPENSSL" = "xnone" ; then
22622 key=`autoconf/randpass 37`
22624 key=`openssl rand -base64 33`
22626 mon_fd_password=$key
22631 # Check whether --with-mon-sd-password was given.
22632 if test "${with_mon_sd_password+set}" = set; then :
22633 withval=$with_mon_sd_password;
22634 if test "x$withval" != "xno" ; then
22635 mon_sd_password=$withval
22642 if test "x$mon_sd_password" = "x" ; then
22643 if test "x$OPENSSL" = "xnone" ; then
22644 key=`autoconf/randpass 41`
22646 key=`openssl rand -base64 33`
22648 mon_sd_password=$key
22660 # Check whether --with-db_name was given.
22661 if test "${with_db_name+set}" = set; then :
22662 withval=$with_db_name;
22663 if test "x$withval" != "x" ; then
22674 # Check whether --with-db_user was given.
22675 if test "${with_db_user+set}" = set; then :
22676 withval=$with_db_user;
22677 if test "x$withval" != "x" ; then
22688 # Check whether --with-db_password was given.
22689 if test "${with_db_password+set}" = set; then :
22690 withval=$with_db_password;
22691 if test "x$withval" != "x" ; then
22692 db_password=$withval
22702 # Check whether --with-db_port was given.
22703 if test "${with_db_port+set}" = set; then :
22704 withval=$with_db_port;
22705 if test "x$withval" != "x" ; then
22715 # Handle users and groups for each daemon
22719 # Check whether --with-dir_user was given.
22720 if test "${with_dir_user+set}" = set; then :
22721 withval=$with_dir_user;
22722 if test "x$withval" != "x" ; then
22732 # Check whether --with-dir_group was given.
22733 if test "${with_dir_group+set}" = set; then :
22734 withval=$with_dir_group;
22735 if test "x$withval" != "x" ; then
22745 # Check whether --with-sd_user was given.
22746 if test "${with_sd_user+set}" = set; then :
22747 withval=$with_sd_user;
22748 if test "x$withval" != "x" ; then
22758 # Check whether --with-sd_group was given.
22759 if test "${with_sd_group+set}" = set; then :
22760 withval=$with_sd_group;
22761 if test "x$withval" != "x" ; then
22771 # Check whether --with-fd_user was given.
22772 if test "${with_fd_user+set}" = set; then :
22773 withval=$with_fd_user;
22774 if test "x$withval" != "x" ; then
22784 # Check whether --with-fd_group was given.
22785 if test "${with_fd_group+set}" = set; then :
22786 withval=$with_fd_group;
22787 if test "x$withval" != "x" ; then
22804 # Check whether --with-sbin-perm was given.
22805 if test "${with_sbin_perm+set}" = set; then :
22806 withval=$with_sbin_perm;
22807 if test "x$withval" != "x" ; then
22818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PostgreSQL support" >&5
22819 $as_echo_n "checking for PostgreSQL support... " >&6; }
22821 # Check whether --with-postgresql was given.
22822 if test "${with_postgresql+set}" = set; then :
22823 withval=$with_postgresql;
22824 if test "$withval" != "no"; then
22825 if test "$withval" = "yes"; then
22826 PG_CONFIG=`which pg_config`
22827 if test -n "$PG_CONFIG"; then
22828 POSTGRESQL_INCDIR=`"$PG_CONFIG" --includedir`
22829 POSTGRESQL_LIBDIR=`"$PG_CONFIG" --libdir`
22830 POSTGRESQL_BINDIR=`"$PG_CONFIG" --bindir`
22831 elif test -f /usr/local/include/libpq-fe.h; then
22832 POSTGRESQL_INCDIR=/usr/local/include
22833 if test -d /usr/local/lib64; then
22834 POSTGRESQL_LIBDIR=/usr/local/lib64
22836 POSTGRESQL_LIBDIR=/usr/local/lib
22838 POSTGRESQL_BINDIR=/usr/local/bin
22839 elif test -f /usr/include/libpq-fe.h; then
22840 POSTGRESQL_INCDIR=/usr/include
22841 if test -d /usr/lib64; then
22842 POSTGRESQL_LIBDIR=/usr/lib64
22844 POSTGRESQL_LIBDIR=/usr/lib
22846 POSTGRESQL_BINDIR=/usr/bin
22847 elif test -f /usr/include/pgsql/libpq-fe.h; then
22848 POSTGRESQL_INCDIR=/usr/include/pgsql
22849 if test -d /usr/lib64/pgsql; then
22850 POSTGRESQL_LIBDIR=/usr/lib64/pgsql
22852 POSTGRESQL_LIBDIR=/usr/lib/pgsql
22854 POSTGRESQL_BINDIR=/usr/bin
22855 elif test -f /usr/include/postgresql/libpq-fe.h; then
22856 POSTGRESQL_INCDIR=/usr/include/postgresql
22857 if test -d /usr/lib64/postgresql; then
22858 POSTGRESQL_LIBDIR=/usr/lib64/postgresql
22860 POSTGRESQL_LIBDIR=/usr/lib/postgresql
22862 POSTGRESQL_BINDIR=/usr/bin
22864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22865 $as_echo "no" >&6; }
22866 as_fn_error $? "Unable to find libpq-fe.h in standard locations" "$LINENO" 5
22868 elif test -f $withval/include/libpq-fe.h; then
22869 POSTGRESQL_INCDIR=$withval/include
22870 POSTGRESQL_LIBDIR=$withval/lib
22871 POSTGRESQL_BINDIR=$withval/bin
22872 elif test -f $withval/include/postgresql/libpq-fe.h; then
22873 POSTGRESQL_INCDIR=$withval/include/postgresql
22874 if test -d $withval/lib64; then
22875 POSTGRESQL_LIBDIR=$withval/lib64
22877 POSTGRESQL_LIBDIR=$withval/lib
22879 POSTGRESQL_BINDIR=$withval/bin
22881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22882 $as_echo "no" >&6; }
22883 as_fn_error $? "Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" "$LINENO" 5
22886 $as_echo "#define HAVE_POSTGRESQL 1" >>confdefs.h
22888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22889 $as_echo "yes" >&6; }
22891 POSTGRESQL_INCLUDE=-I$POSTGRESQL_INCDIR
22892 POSTGRESQL_LIBS="-R $POSTGRESQL_LIBDIR -L$POSTGRESQL_LIBDIR -lpq"
22893 ac_fn_c_check_func "$LINENO" "crypt" "ac_cv_func_crypt"
22894 if test "x$ac_cv_func_crypt" = xyes; then :
22897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
22898 $as_echo_n "checking for crypt in -lcrypt... " >&6; }
22899 if ${ac_cv_lib_crypt_crypt+:} false; then :
22900 $as_echo_n "(cached) " >&6
22902 ac_check_lib_save_LIBS=$LIBS
22903 LIBS="-lcrypt $LIBS"
22904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22905 /* end confdefs.h. */
22907 /* Override any GCC internal prototype to avoid an error.
22908 Use char because int might match the return type of a GCC
22909 builtin and then its argument prototype would still apply. */
22922 if ac_fn_c_try_link "$LINENO"; then :
22923 ac_cv_lib_crypt_crypt=yes
22925 ac_cv_lib_crypt_crypt=no
22927 rm -f core conftest.err conftest.$ac_objext \
22928 conftest$ac_exeext conftest.$ac_ext
22929 LIBS=$ac_check_lib_save_LIBS
22931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
22932 $as_echo "$ac_cv_lib_crypt_crypt" >&6; }
22933 if test "x$ac_cv_lib_crypt_crypt" = xyes; then :
22934 POSTGRESQL_LIBS="$POSTGRESQL_LIBS -lcrypt"
22939 POSTGRESQL_LIB=$POSTGRESQL_LIBDIR/libpq.a
22940 DB_LIBS="${DB_LIBS} ${POSTGRESQL_LIBS}"
22942 if test -z "${db_backends}"; then
22943 db_backends="PostgreSQL"
22945 db_backends="${db_backends} PostgreSQL"
22947 if test -z "${DB_BACKENDS}"; then
22948 DB_BACKENDS="postgresql"
22950 DB_BACKENDS="${DB_BACKENDS} postgresql"
22953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22954 $as_echo "no" >&6; }
22959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22960 $as_echo "no" >&6; }
22971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MySQL support" >&5
22972 $as_echo_n "checking for MySQL support... " >&6; }
22974 # Check whether --with-mysql was given.
22975 if test "${with_mysql+set}" = set; then :
22976 withval=$with_mysql;
22977 if test "$withval" != "no"; then
22978 if test "$withval" = "yes"; then
22979 if test -f /usr/local/mysql/include/mysql/mysql.h; then
22980 MYSQL_INCDIR=/usr/local/mysql/include/mysql
22981 if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
22982 -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
22983 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
22985 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
22987 MYSQL_BINDIR=/usr/local/mysql/bin
22988 elif test -f /usr/include/mysql/mysql.h; then
22989 MYSQL_INCDIR=/usr/include/mysql
22990 if test -f /usr/lib64/mysql/libmysqlclient_r.a \
22991 -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
22992 MYSQL_LIBDIR=/usr/lib64/mysql
22993 elif test -f /usr/lib64/libmysqlclient_r.a \
22994 -o -f /usr/lib64/libmysqlclient_r.so; then
22995 MYSQL_LIBDIR=/usr/lib64
22996 elif test -f /usr/lib/mysql/libmysqlclient_r.a \
22997 -o -f /usr/lib/mysql/libmysqlclient_r.so; then
22998 MYSQL_LIBDIR=/usr/lib/mysql
23000 MYSQL_LIBDIR=/usr/lib
23002 MYSQL_BINDIR=/usr/bin
23003 elif test -f /usr/include/mysql.h; then
23004 MYSQL_INCDIR=/usr/include
23005 if test -f /usr/lib64/libmysqlclient_r.a \
23006 -o -f /usr/lib64/libmysqlclient_r.so; then
23007 MYSQL_LIBDIR=/usr/lib64
23009 MYSQL_LIBDIR=/usr/lib
23011 MYSQL_BINDIR=/usr/bin
23012 elif test -f /usr/local/include/mysql/mysql.h; then
23013 MYSQL_INCDIR=/usr/local/include/mysql
23014 if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
23015 -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
23016 MYSQL_LIBDIR=/usr/local/lib64/mysql
23018 MYSQL_LIBDIR=/usr/local/lib/mysql
23020 MYSQL_BINDIR=/usr/local/bin
23021 elif test -f /usr/local/include/mysql.h; then
23022 MYSQL_INCDIR=/usr/local/include
23023 if test -f /usr/local/lib64/libmysqlclient_r.a \
23024 -o -f /usr/local/lib64/libmysqlclient_r.so; then
23025 MYSQL_LIBDIR=/usr/local/lib64
23027 MYSQL_LIBDIR=/usr/local/lib
23029 MYSQL_BINDIR=/usr/local/bin
23031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23032 $as_echo "no" >&6; }
23033 as_fn_error $? "Unable to find mysql.h in standard locations" "$LINENO" 5
23036 if test -f $withval/include/mysql/mysql.h; then
23037 MYSQL_INCDIR=$withval/include/mysql
23038 if test -f $withval/lib64/mysql/libmysqlclient_r.a \
23039 -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
23040 MYSQL_LIBDIR=$withval/lib64/mysql
23041 elif test -f $withval/lib64/libmysqlclient_r.a \
23042 -o -f $withval/lib64/libmysqlclient_r.so; then
23043 MYSQL_LIBDIR=$withval/lib64
23044 elif test -f $withval/lib/libmysqlclient_r.a \
23045 -o -f $withval/lib/libmysqlclient_r.so; then
23046 MYSQL_LIBDIR=$withval/lib
23048 MYSQL_LIBDIR=$withval/lib/mysql
23050 MYSQL_BINDIR=$withval/bin
23051 elif test -f $withval/include/mysql.h; then
23052 MYSQL_INCDIR=$withval/include
23053 if test -f $withval/lib64/libmysqlclient_r.a \
23054 -o -f $withval/lib64/libmysqlclient_r.so; then
23055 MYSQL_LIBDIR=$withval/lib64
23057 MYSQL_LIBDIR=$withval/lib
23059 MYSQL_BINDIR=$withval/bin
23061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23062 $as_echo "no" >&6; }
23063 as_fn_error $? "Invalid MySQL directory $withval - unable to find mysql.h under $withval" "$LINENO" 5
23066 MYSQL_INCLUDE=-I$MYSQL_INCDIR
23067 if test -f $MYSQL_LIBDIR/libmysqlclient_r.a \
23068 -o -f $MYSQL_LIBDIR/libmysqlclient_r.so; then
23069 MYSQL_LIBS="-R $MYSQL_LIBDIR -L$MYSQL_LIBDIR -lmysqlclient_r -lz"
23071 $as_echo "#define HAVE_THREAD_SAFE_MYSQL 1" >>confdefs.h
23073 DB_LIBS="${DB_LIBS} ${MYSQL_LIBS}"
23075 MYSQL_LIB=$MYSQL_LIBDIR/libmysqlclient_r.a
23078 $as_echo "#define HAVE_MYSQL 1" >>confdefs.h
23080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23081 $as_echo "yes" >&6; }
23083 if test -z "${db_backends}" ; then
23084 db_backends="MySQL"
23086 db_backends="${db_backends} MySQL"
23088 if test -z "${DB_BACKENDS}" ; then
23089 DB_BACKENDS="mysql"
23091 DB_BACKENDS="${DB_BACKENDS} mysql"
23094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23095 $as_echo "no" >&6; }
23103 # Check whether --with-embedded-mysql was given.
23104 if test "${with_embedded_mysql+set}" = set; then :
23105 withval=$with_embedded_mysql;
23106 if test "$withval" != "no"; then
23107 if test "$withval" = "yes"; then
23108 if test -f /usr/local/mysql/include/mysql/mysql.h; then
23109 MYSQL_INCDIR=/usr/local/mysql/include/mysql
23110 if test -d /usr/local/mysql/lib64/mysql; then
23111 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
23113 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
23115 MYSQL_BINDIR=/usr/local/mysql/bin
23116 elif test -f /usr/include/mysql/mysql.h; then
23117 MYSQL_INCDIR=/usr/include/mysql
23118 if test -d /usr/lib64/mysql; then
23119 MYSQL_LIBDIR=/usr/lib64/mysql
23121 MYSQL_LIBDIR=/usr/lib/mysql
23123 MYSQL_BINDIR=/usr/bin
23124 elif test -f /usr/include/mysql.h; then
23125 MYSQL_INCDIR=/usr/include
23126 if test -d /usr/lib64; then
23127 MYSQL_LIBDIR=/usr/lib64
23129 MYSQL_LIBDIR=/usr/lib
23131 MYSQL_BINDIR=/usr/bin
23132 elif test -f /usr/local/include/mysql/mysql.h; then
23133 MYSQL_INCDIR=/usr/local/include/mysql
23134 if test -d /usr/local/lib64/mysql; then
23135 MYSQL_LIBDIR=/usr/local/lib64/mysql
23137 MYSQL_LIBDIR=/usr/local/lib/mysql
23139 MYSQL_BINDIR=/usr/local/bin
23140 elif test -f /usr/local/include/mysql.h; then
23141 MYSQL_INCDIR=/usr/local/include
23142 if test -d /usr/local/lib64; then
23143 MYSQL_LIBDIR=/usr/local/lib64
23145 MYSQL_LIBDIR=/usr/local/lib
23147 MYSQL_BINDIR=/usr/local/bin
23149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23150 $as_echo "no" >&6; }
23151 as_fn_error $? "Unable to find mysql.h in standard locations" "$LINENO" 5
23154 if test -f $withval/include/mysql/mysql.h; then
23155 MYSQL_INCDIR=$withval/include/mysql
23156 if test -d $withval/lib64/mysql; then
23157 MYSQL_LIBDIR=$withval/lib64/mysql
23159 MYSQL_LIBDIR=$withval/lib/mysql
23161 MYSQL_BINDIR=$withval/bin
23162 elif test -f $withval/include/mysql.h; then
23163 MYSQL_INCDIR=$withval/include
23164 if test -d $withval/lib64; then
23165 MYSQL_LIBDIR=$withval/lib64
23167 MYSQL_LIBDIR=$withval/lib
23169 MYSQL_BINDIR=$withval/bin
23171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23172 $as_echo "no" >&6; }
23173 as_fn_error $? "Invalid MySQL directory $withval - unable to find mysql.h under $withval" "$LINENO" 5
23176 MYSQL_INCLUDE=-I$MYSQL_INCDIR
23177 MYSQL_LIBS="-R $MYSQL_LIBDIR -L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
23178 MYSQL_LIB=$MYSQL_LIBDIR/libmysqld.a
23179 DB_LIBS="${DB_LIBS} ${MYSQL_LIBS}"
23182 $as_echo "#define HAVE_MYSQL 1" >>confdefs.h
23185 $as_echo "#define HAVE_EMBEDDED_MYSQL 1" >>confdefs.h
23187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23188 $as_echo "yes" >&6; }
23190 if test -z "${db_backends}"; then
23191 db_backends="MySQL"
23193 db_backends="${db_backends} MySQL"
23195 if test -z "${DB_BACKENDS}"; then
23196 DB_BACKENDS="mysql"
23198 DB_BACKENDS="${DB_BACKENDS} mysql"
23201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23202 $as_echo "no" >&6; }
23216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLite3 support" >&5
23217 $as_echo_n "checking for SQLite3 support... " >&6; }
23219 # Check whether --with-sqlite3 was given.
23220 if test "${with_sqlite3+set}" = set; then :
23221 withval=$with_sqlite3;
23222 if test "$withval" != "no"; then
23223 if test "$withval" = "yes"; then
23224 if test -f /usr/local/include/sqlite3.h; then
23225 SQLITE_INCDIR=/usr/local/include
23226 if test -d /usr/local/lib64; then
23227 SQLITE_LIBDIR=/usr/local/lib64
23229 SQLITE_LIBDIR=/usr/local/lib
23231 SQLITE_BINDIR=/usr/local/bin
23232 elif test -f /usr/include/sqlite3.h; then
23233 SQLITE_INCDIR=/usr/include
23234 if test -d /usr/lib64; then
23235 SQLITE_LIBDIR=/usr/lib64
23237 SQLITE_LIBDIR=/usr/lib
23239 SQLITE_BINDIR=/usr/bin
23240 elif test -f $prefix/include/sqlite3.h; then
23241 SQLITE_INCDIR=$prefix/include
23242 if test -d $prefix/lib64; then
23243 SQLITE_LIBDIR=$prefix/lib64
23245 SQLITE_LIBDIR=$prefix/lib
23247 SQLITE_BINDIR=$prefix/bin
23249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23250 $as_echo "no" >&6; }
23251 as_fn_error $? "Unable to find sqlite3.h in standard locations" "$LINENO" 5
23254 if test -f $withval/sqlite3.h; then
23255 SQLITE_INCDIR=$withval
23256 SQLITE_LIBDIR=$withval
23257 SQLITE_BINDIR=$withval
23258 elif test -f $withval/include/sqlite3.h; then
23259 SQLITE_INCDIR=$withval/include
23260 if test -d $withval/lib64; then
23261 SQLITE_LIBDIR=$withval/lib64
23263 SQLITE_LIBDIR=$withval/lib
23265 SQLITE_BINDIR=$withval/bin
23267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23268 $as_echo "no" >&6; }
23269 as_fn_error $? "Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" "$LINENO" 5
23272 SQLITE_INCLUDE=-I$SQLITE_INCDIR
23273 SQLITE_LIBS="-R $SQLITE_LIBDIR -L$SQLITE_LIBDIR -lsqlite3"
23274 SQLITE_LIB=$SQLITE_LIBDIR/libsqlite3.a
23275 DB_LIBS="${DB_LIBS} ${SQLITE_LIBS}"
23278 $as_echo "#define HAVE_SQLITE3 1" >>confdefs.h
23280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23281 $as_echo "yes" >&6; }
23283 if test -z "${db_backends}"; then
23284 db_backends="SQLite3"
23286 db_backends="${db_backends} SQLite3"
23288 if test -z "${DB_BACKENDS}"; then
23289 DB_BACKENDS="sqlite3"
23291 DB_BACKENDS="${DB_BACKENDS} sqlite3"
23294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23295 $as_echo "no" >&6; }
23300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23301 $as_echo "no" >&6; }
23312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ingres support" >&5
23313 $as_echo_n "checking for Ingres support... " >&6; }
23315 # Check whether --with-ingres was given.
23316 if test "${with_ingres+set}" = set; then :
23317 withval=$with_ingres;
23318 if test "$withval" != "no"; then
23319 if test "$withval" = "yes"; then
23320 if test -f ${II_SYSTEM}/files/eqdefc.h; then
23321 INGRES_INCDIR=${II_SYSTEM}/files
23322 INGRES_LIBDIR=${II_SYSTEM}/lib
23323 INGRES_BINDIR=${II_SYSTEM}/bin
23324 elif test -f ${II_SYSTEM}/ingres/files/eqdefc.h; then
23325 INGRES_INCDIR=${II_SYSTEM}/ingres/files
23326 INGRES_LIBDIR=${II_SYSTEM}/ingres/lib
23327 INGRES_BINDIR=${II_SYSTEM}/ingres/bin
23329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23330 $as_echo "no" >&6; }
23331 as_fn_error $? "Unable to find eqdefc.h in standard locations" "$LINENO" 5
23334 if test -f $withval/files/eqdefc.h; then
23335 INGRES_INCDIR=$withval/files
23336 INGRES_LIBDIR=$withval/lib
23337 INGRES_BINDIR=$withval/bin
23339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23340 $as_echo "no" >&6; }
23341 as_fn_error $? "Invalid Ingres directory $withval - unable to find Ingres headers under $withval" "$LINENO" 5
23344 INGRES_INCLUDE=-I$INGRES_INCDIR
23345 INGRES_LIBS="-R $INGRES_LIBDIR -L$INGRES_LIBDIR -lq.1 -lcompat.1 -lframe.1"
23346 DB_LIBS="${DB_LIBS} ${INGRES_LIBS}"
23348 $as_echo "#define HAVE_INGRES 1" >>confdefs.h
23350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23351 $as_echo "yes" >&6; }
23353 if test -z "${db_backends}"; then
23354 db_backends="Ingres"
23356 db_backends="${db_backends} Ingres"
23358 if test -z "${DB_BACKENDS}"; then
23359 DB_BACKENDS="ingres"
23361 DB_BACKENDS="${DB_BACKENDS} ingres"
23364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23365 $as_echo "no" >&6; }
23370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23371 $as_echo "no" >&6; }
23382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DBI support" >&5
23383 $as_echo_n "checking for DBI support... " >&6; }
23385 # Check whether --with-dbi was given.
23386 if test "${with_dbi+set}" = set; then :
23388 if test "$withval" != "no"; then
23389 if test "$withval" = "yes"; then
23390 if test -f /usr/local/include/dbi/dbi.h; then
23391 DBI_INCDIR=/usr/local/dbi/include
23392 if test -d /usr/local/lib64; then
23393 DBI_LIBDIR=/usr/local/lib64
23395 DBI_LIBDIR=/usr/local/lib
23397 DBI_BINDIR=/usr/local/bin
23398 elif test -f /usr/include/dbi/dbi.h; then
23399 DBI_INCDIR=/usr/include
23400 if test -d /usr/lib64; then
23401 DBI_LIBDIR=/usr/lib64
23403 DBI_LIBDIR=/usr/lib
23405 DBI_BINDIR=/usr/bin
23406 elif test -f $prefix/include/dbi/dbi.h; then
23407 DBI_INCDIR=$prefix/include
23408 if test -d $prefix/lib64; then
23409 DBI_LIBDIR=$prefix/lib64
23411 DBI_LIBDIR=$prefix/lib
23413 DBI_BINDIR=$prefix/bin
23415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23416 $as_echo "no" >&6; }
23417 as_fn_error $? "Unable to find dbi.h in standard locations" "$LINENO" 5
23419 if test -d /usr/local/lib/dbd; then
23420 DRIVERDIR=/usr/local/lib/dbd
23421 if test -d /usr/local/lib64/dbd; then
23422 DRIVERDIR=/usr/local/lib64/dbd
23424 DRIVERDIR=/usr/local/lib/dbd
23426 elif test -d /usr/lib/dbd; then
23427 DRIVERDIR=/usr/lib/dbd
23428 if test -d /usr/lib64/dbd; then
23429 DRIVERDIR=/usr/lib64/dbd
23431 DRIVERDIR=/usr/lib/dbd
23433 elif test -d $prefix/lib/dbd; then
23434 if test -d $prefix/lib64/dbd; then
23435 DRIVERDIR=$prefix/lib64/dbd
23437 DRIVERDIR=$prefix/lib/dbd
23439 elif test -d /usr/local/lib64/dbd; then
23440 DRIVERDIR=/usr/local/lib64/dbd
23441 elif test -d /usr/lib64/dbd; then
23442 DRIVERDIR=/usr/lib64/dbd
23443 elif test -d $prefix/lib64/dbd; then
23444 DRIVERDIR=$prefix/lib64/dbd
23446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23447 $as_echo "no" >&6; }
23448 as_fn_error $? "Unable to find DBD drivers in standard locations" "$LINENO" 5
23451 if test -f $withval/dbi.h; then
23452 DBI_INCDIR=$withval
23453 DBI_LIBDIR=$withval
23454 DBI_BINDIR=$withval
23455 elif test -f $withval/include/dbi/dbi.h; then
23456 DBI_INCDIR=$withval/include
23457 if test -d $withval/lib64; then
23458 DBI_LIBDIR=$withval/lib64
23460 DBI_LIBDIR=$withval/lib
23462 DBI_BINDIR=$withval/bin
23464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23465 $as_echo "no" >&6; }
23466 as_fn_error $? "Invalid DBI directory $withval - unable to find dbi.h under $withval" "$LINENO" 5
23468 if test -d $withval/dbd; then
23469 DRIVERDIR=$withval/dbd
23470 elif test -d $withval/lib/; then
23471 if test -d $withval/lib64/dbd; then
23472 DRIVERDIR=$withval/lib64/dbd
23474 DRIVERDIR=$withval/lib/dbd
23476 elif test -d $withval/lib64/dbd; then
23477 DRIVERDIR=$withval/lib64/dbd
23479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23480 $as_echo "no" >&6; }
23481 as_fn_error $? "Invalid DBD driver directory $withval - unable to find DBD drivers under $withval" "$LINENO" 5
23484 DBI_INCLUDE=-I$DBI_INCDIR
23485 DBI_LIBS="-R $DBI_LIBDIR -L$DBI_LIBDIR -ldbi"
23486 DBI_LIB=$DBI_LIBDIR/libdbi.a
23487 DBI_DBD_DRIVERDIR="-D DBI_DRIVER_DIR=\\\"$DRIVERDIR\\\""
23488 DB_LIBS="${DB_LIBS} ${DBI_LIBS}"
23491 $as_echo "#define HAVE_DBI 1" >>confdefs.h
23493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23494 $as_echo "yes" >&6; }
23496 if test -z "${db_backends}"; then
23499 db_backends="${db_backends} DBI"
23501 if test -z "${DB_BACKENDS}" ; then
23504 DB_BACKENDS="${DB_BACKENDS} dbi"
23509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23510 $as_echo "no" >&6; }
23515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23516 $as_echo "no" >&6; }
23531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DBI drivers support" >&5
23532 $as_echo_n "checking for DBI drivers support... " >&6; }
23534 # Check whether --with-dbi-driver was given.
23535 if test "${with_dbi_driver+set}" = set; then :
23536 withval=$with_dbi_driver;
23537 if test "$withval" != "no"; then
23541 if test -f /usr/local/mysql/bin/mysql; then
23542 SQL_BINDIR=/usr/local/mysql/bin
23543 if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
23544 -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
23545 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
23547 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
23549 elif test -f /usr/bin/mysql; then
23550 SQL_BINDIR=/usr/bin
23551 if test -f /usr/lib64/mysql/libmysqlclient_r.a \
23552 -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
23553 MYSQL_LIBDIR=/usr/lib64/mysql
23554 elif test -f /usr/lib/mysql/libmysqlclient_r.a \
23555 -o -f /usr/lib/mysql/libmysqlclient_r.so; then
23556 MYSQL_LIBDIR=/usr/lib/mysql
23558 MYSQL_LIBDIR=/usr/lib
23560 elif test -f /usr/local/bin/mysql; then
23561 SQL_BINDIR=/usr/local/bin
23562 if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
23563 -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
23564 MYSQL_LIBDIR=/usr/local/lib64/mysql
23565 elif test -f /usr/local/lib/mysql/libmysqlclient_r.a \
23566 -o -f /usr/local/lib/mysql/libmysqlclient_r.so; then
23567 MYSQL_LIBDIR=/usr/local/lib/mysql
23569 MYSQL_LIBDIR=/usr/local/lib
23571 elif test -f $withval/bin/mysql; then
23572 SQL_BINDIR=$withval/bin
23573 if test -f $withval/lib64/mysql/libmysqlclient_r.a \
23574 -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
23575 MYSQL_LIBDIR=$withval/lib64/mysql
23576 elif test -f $withval/lib64/libmysqlclient_r.a \
23577 -o -f $withval/lib64/libmysqlclient_r.so; then
23578 MYSQL_LIBDIR=$withval/lib64
23579 elif test -f $withval/lib/libmysqlclient_r.a \
23580 -o -f $withval/lib/libmysqlclient_r.so; then
23581 MYSQL_LIBDIR=$withval/lib/
23583 MYSQL_LIBDIR=$withval/lib/mysql
23586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23587 $as_echo "no" >&6; }
23588 as_fn_error $? "Unable to find mysql in standard locations" "$LINENO" 5
23590 if test -f $SQL_LIBDIR/libmysqlclient_r.so; then
23591 DB_PROG_LIB=$SQL_LIBDIR/libmysqlclient_r.so
23593 DB_PROG_LIB=$SQL_LIBDIR/libmysqlclient_r.a
23597 db_prog="postgresql"
23598 PG_CONFIG=`which pg_config`
23599 if test -n "$PG_CONFIG"; then
23600 POSTGRESQL_BINDIR=`"$PG_CONFIG" --bindir`
23601 POSTGRESQL_LIBDIR=`"$PG_CONFIG" --libdir`
23602 elif test -f /usr/local/bin/psql; then
23603 POSTGRESQL_BINDIR=/usr/local/bin
23604 if test -d /usr/local/lib64; then
23605 POSTGRESQL_LIBDIR=/usr/local/lib64
23607 POSTGRESQL_LIBDIR=/usr/local/lib
23609 elif test -f /usr/bin/psql; then
23610 POSTGRESQL_BINDIR=/usr/local/bin
23611 if test -d /usr/lib64/postgresql; then
23612 POSTGRESQL_LIBDIR=/usr/lib64/postgresql
23613 elif test -d /usr/lib/postgresql; then
23614 POSTGRESQL_LIBDIR=/usr/lib/postgresql
23615 elif test -d /usr/lib64; then
23616 POSTGRESQL_LIBDIR=/usr/lib64
23618 POSTGRESQL_LIBDIR=/usr/lib
23620 elif test -f $withval/bin/psql; then
23621 POSTGRESQL_BINDIR=$withval/bin
23622 if test -d $withval/lib64; then
23623 POSTGRESQL_LIBDIR=$withval/lib64
23625 POSTGRESQL_LIBDIR=$withval/lib
23628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23629 $as_echo "no" >&6; }
23630 as_fn_error $? "Unable to find psql in standard locations" "$LINENO" 5
23632 if test -f $POSTGRESQL_LIBDIR/libpq.so; then
23633 DB_PROG_LIB=$POSTGRESQL_LIBDIR/libpq.so
23635 DB_PROG_LIB=$POSTGRESQL_LIBDIR/libpq.a
23640 if test -f /usr/local/bin/sqlite3; then
23641 SQLITE_BINDIR=/usr/local/bin
23642 if test -d /usr/local/lib64; then
23643 SQLITE_LIBDIR=/usr/local/lib64
23645 SQLITE_LIBDIR=/usr/local/lib
23647 elif test -f /usr/bin/sqlite3; then
23648 SQLITE_BINDIR=/usr/bin
23649 if test -d /usr/lib64; then
23650 SQLITE_LIBDIR=/usr/lib64
23652 SQLITE_LIBDIR=/usr/lib
23654 elif test -f $withval/bin/sqlite3; then
23655 SQLITE_BINDIR=$withval/bin
23656 if test -d $withval/lib64; then
23657 SQLITE_LIBDIR=$withval/lib64
23659 SQLITE_LIBDIR=$withval/lib
23662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23663 $as_echo "no" >&6; }
23664 as_fn_error $? "Unable to find sqlite in standard locations" "$LINENO" 5
23666 if test -f $SQLITE_LIBDIR/libsqlite3.so; then
23667 DB_PROG_LIB=$SQLITE_LIBDIR/libsqlite3.so
23669 DB_PROG_LIB=$SQLITE_LIBDIR/libsqlite3.a
23673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23674 $as_echo "no" >&6; }
23675 as_fn_error $? "Unable to set DBI driver. $withval is not supported" "$LINENO" 5
23679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23680 $as_echo "yes" >&6; }
23683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23684 $as_echo "no" >&6; }
23689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23690 $as_echo "no" >&6; }
23703 if test "x${db_backends}" = "x" ; then
23706 echo "You have not specified either --enable-client-only or one of the"
23707 echo "supported databases: MySQL, PostgreSQL, Ingres, SQLite3 or DBI."
23708 echo "This is not permitted. Please reconfigure."
23710 echo "Aborting the configuration ..."
23716 case `echo $DB_BACKENDS | wc -w | sed -e 's/^ *//'` in
23718 DEFAULT_DB_TYPE="${DB_BACKENDS}"
23719 if test x$use_libtool = xno; then
23720 SHARED_CATALOG_TARGETS=""
23722 SHARED_CATALOG_TARGETS="libbaccats-${DEFAULT_DB_TYPE}.la"
23726 DEFAULT_DB_TYPE=`echo ${DB_BACKENDS} | cut -d' ' -f1`
23728 if test x$use_libtool = xno; then
23731 echo "You have specified two or more of the"
23732 echo "supported databases: MySQL, PostgreSQL, Ingres, SQLite3 or DBI."
23733 echo "This is not permitted when not using libtool Please reconfigure."
23735 echo "Aborting the configuration ..."
23741 SHARED_CATALOG_TARGETS=""
23742 for db_type in ${DB_BACKENDS}
23744 if test -z "${SHARED_CATALOG_TARGETS}"; then
23745 SHARED_CATALOG_TARGETS="libbaccats-${db_type}.la"
23747 SHARED_CATALOG_TARGETS="${SHARED_CATALOG_TARGETS} libbaccats-${db_type}.la"
23753 if test x$use_libtool = xyes; then
23762 support_batch_insert=yes
23763 # Check whether --enable-batch-insert was given.
23764 if test "${enable_batch_insert+set}" = set; then :
23765 enableval=$enable_batch_insert;
23766 if test x$enableval = xno; then
23767 support_batch_insert=no
23774 if test x$support_batch_insert = xyes; then
23776 $as_echo "#define USE_BATCH_FILE_INSERT 1" >>confdefs.h
23780 if test ! -z "$MYSQL_LIB"; then
23781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql_thread_safe in -lmysql_r" >&5
23782 $as_echo_n "checking for mysql_thread_safe in -lmysql_r... " >&6; }
23783 if ${ac_cv_lib_mysql_r_mysql_thread_safe+:} false; then :
23784 $as_echo_n "(cached) " >&6
23786 ac_check_lib_save_LIBS=$LIBS
23787 LIBS="-lmysql_r $LIBS"
23788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23789 /* end confdefs.h. */
23791 /* Override any GCC internal prototype to avoid an error.
23792 Use char because int might match the return type of a GCC
23793 builtin and then its argument prototype would still apply. */
23797 char mysql_thread_safe ();
23801 return mysql_thread_safe ();
23806 if ac_fn_c_try_link "$LINENO"; then :
23807 ac_cv_lib_mysql_r_mysql_thread_safe=yes
23809 ac_cv_lib_mysql_r_mysql_thread_safe=no
23811 rm -f core conftest.err conftest.$ac_objext \
23812 conftest$ac_exeext conftest.$ac_ext
23813 LIBS=$ac_check_lib_save_LIBS
23815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mysql_r_mysql_thread_safe" >&5
23816 $as_echo "$ac_cv_lib_mysql_r_mysql_thread_safe" >&6; }
23817 if test "x$ac_cv_lib_mysql_r_mysql_thread_safe" = xyes; then :
23819 $as_echo "#define HAVE_MYSQL_THREAD_SAFE 1" >>confdefs.h
23825 if test ! -z "SQLITE_LIB"; then
23826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_threadsafe in -lsqlite3" >&5
23827 $as_echo_n "checking for sqlite3_threadsafe in -lsqlite3... " >&6; }
23828 if ${ac_cv_lib_sqlite3_sqlite3_threadsafe+:} false; then :
23829 $as_echo_n "(cached) " >&6
23831 ac_check_lib_save_LIBS=$LIBS
23832 LIBS="-lsqlite3 $LIBS"
23833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23834 /* end confdefs.h. */
23836 /* Override any GCC internal prototype to avoid an error.
23837 Use char because int might match the return type of a GCC
23838 builtin and then its argument prototype would still apply. */
23842 char sqlite3_threadsafe ();
23846 return sqlite3_threadsafe ();
23851 if ac_fn_c_try_link "$LINENO"; then :
23852 ac_cv_lib_sqlite3_sqlite3_threadsafe=yes
23854 ac_cv_lib_sqlite3_sqlite3_threadsafe=no
23856 rm -f core conftest.err conftest.$ac_objext \
23857 conftest$ac_exeext conftest.$ac_ext
23858 LIBS=$ac_check_lib_save_LIBS
23860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_threadsafe" >&5
23861 $as_echo "$ac_cv_lib_sqlite3_sqlite3_threadsafe" >&6; }
23862 if test "x$ac_cv_lib_sqlite3_sqlite3_threadsafe" = xyes; then :
23864 $as_echo "#define HAVE_SQLITE3_THREADSAFE 1" >>confdefs.h
23870 if test ! -z "$POSTGRESQL_LIB"; then
23871 saved_LIBS="${LIBS}"
23872 LIBS="${saved_LIBS} ${POSTGRESQL_LIB}"
23874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQisthreadsafe in -lpq" >&5
23875 $as_echo_n "checking for PQisthreadsafe in -lpq... " >&6; }
23876 if ${ac_cv_lib_pq_PQisthreadsafe+:} false; then :
23877 $as_echo_n "(cached) " >&6
23879 ac_check_lib_save_LIBS=$LIBS
23881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23882 /* end confdefs.h. */
23884 /* Override any GCC internal prototype to avoid an error.
23885 Use char because int might match the return type of a GCC
23886 builtin and then its argument prototype would still apply. */
23890 char PQisthreadsafe ();
23894 return PQisthreadsafe ();
23899 if ac_fn_c_try_link "$LINENO"; then :
23900 ac_cv_lib_pq_PQisthreadsafe=yes
23902 ac_cv_lib_pq_PQisthreadsafe=no
23904 rm -f core conftest.err conftest.$ac_objext \
23905 conftest$ac_exeext conftest.$ac_ext
23906 LIBS=$ac_check_lib_save_LIBS
23908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQisthreadsafe" >&5
23909 $as_echo "$ac_cv_lib_pq_PQisthreadsafe" >&6; }
23910 if test "x$ac_cv_lib_pq_PQisthreadsafe" = xyes; then :
23912 $as_echo "#define HAVE_PQISTHREADSAFE 1" >>confdefs.h
23916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQputCopyData in -lpq" >&5
23917 $as_echo_n "checking for PQputCopyData in -lpq... " >&6; }
23918 if ${ac_cv_lib_pq_PQputCopyData+:} false; then :
23919 $as_echo_n "(cached) " >&6
23921 ac_check_lib_save_LIBS=$LIBS
23923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23924 /* end confdefs.h. */
23926 /* Override any GCC internal prototype to avoid an error.
23927 Use char because int might match the return type of a GCC
23928 builtin and then its argument prototype would still apply. */
23932 char PQputCopyData ();
23936 return PQputCopyData ();
23941 if ac_fn_c_try_link "$LINENO"; then :
23942 ac_cv_lib_pq_PQputCopyData=yes
23944 ac_cv_lib_pq_PQputCopyData=no
23946 rm -f core conftest.err conftest.$ac_objext \
23947 conftest$ac_exeext conftest.$ac_ext
23948 LIBS=$ac_check_lib_save_LIBS
23950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQputCopyData" >&5
23951 $as_echo "$ac_cv_lib_pq_PQputCopyData" >&6; }
23952 if test "x$ac_cv_lib_pq_PQputCopyData" = xyes; then :
23954 $as_echo "#define HAVE_PQ_COPY 1" >>confdefs.h
23958 if test "x$ac_cv_lib_pq_PQputCopyData" = "xyes"; then
23959 if test $support_batch_insert = yes ; then
23961 $as_echo "#define HAVE_POSTGRESQL_BATCH_FILE_INSERT 1" >>confdefs.h
23966 if test x$ac_cv_lib_pq_PQisthreadsafe != xyes -a x$support_batch_insert = xyes
23968 echo "WARNING: Your PostgreSQL client library is too old to detect "
23969 echo "if it was compiled with --enable-thread-safety, consider to "
23970 echo "upgrade it in order to avoid problems with Batch insert mode"
23974 LIBS="${saved_LIBS}"
23977 if test ! -z "$DBI_LIBS"; then
23978 DB_BACKENDS="${DB_BACKENDS} ${DB_PROG}"
23980 if test $DB_PROG = postgresql; then
23981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQisthreadsafe in -lpq" >&5
23982 $as_echo_n "checking for PQisthreadsafe in -lpq... " >&6; }
23983 if ${ac_cv_lib_pq_PQisthreadsafe+:} false; then :
23984 $as_echo_n "(cached) " >&6
23986 ac_check_lib_save_LIBS=$LIBS
23988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23989 /* end confdefs.h. */
23991 /* Override any GCC internal prototype to avoid an error.
23992 Use char because int might match the return type of a GCC
23993 builtin and then its argument prototype would still apply. */
23997 char PQisthreadsafe ();
24001 return PQisthreadsafe ();
24006 if ac_fn_c_try_link "$LINENO"; then :
24007 ac_cv_lib_pq_PQisthreadsafe=yes
24009 ac_cv_lib_pq_PQisthreadsafe=no
24011 rm -f core conftest.err conftest.$ac_objext \
24012 conftest$ac_exeext conftest.$ac_ext
24013 LIBS=$ac_check_lib_save_LIBS
24015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQisthreadsafe" >&5
24016 $as_echo "$ac_cv_lib_pq_PQisthreadsafe" >&6; }
24017 if test "x$ac_cv_lib_pq_PQisthreadsafe" = xyes; then :
24018 $as_echo "#define HAVE_PQISTHREADSAFE 1" >>confdefs.h
24022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQputCopyData in -lpq" >&5
24023 $as_echo_n "checking for PQputCopyData in -lpq... " >&6; }
24024 if ${ac_cv_lib_pq_PQputCopyData+:} false; then :
24025 $as_echo_n "(cached) " >&6
24027 ac_check_lib_save_LIBS=$LIBS
24029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24030 /* end confdefs.h. */
24032 /* Override any GCC internal prototype to avoid an error.
24033 Use char because int might match the return type of a GCC
24034 builtin and then its argument prototype would still apply. */
24038 char PQputCopyData ();
24042 return PQputCopyData ();
24047 if ac_fn_c_try_link "$LINENO"; then :
24048 ac_cv_lib_pq_PQputCopyData=yes
24050 ac_cv_lib_pq_PQputCopyData=no
24052 rm -f core conftest.err conftest.$ac_objext \
24053 conftest$ac_exeext conftest.$ac_ext
24054 LIBS=$ac_check_lib_save_LIBS
24056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQputCopyData" >&5
24057 $as_echo "$ac_cv_lib_pq_PQputCopyData" >&6; }
24058 if test "x$ac_cv_lib_pq_PQputCopyData" = xyes; then :
24059 $as_echo "#define HAVE_PQ_COPY 1" >>confdefs.h
24063 test "x$ac_cv_lib_pq_PQputCopyData" = "xyes"
24065 if test $pkg = 0; then
24066 if test $support_batch_insert = yes ; then
24068 $as_echo "#define HAVE_DBI_BATCH_FILE_INSERT 1" >>confdefs.h
24079 $as_echo "#define PROTOTYPES 1" >>confdefs.h
24082 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
24083 if test -z "$CCOPTS"; then
24084 CCOPTS='-g -O2 -Wall'
24091 largefile_support="no"
24093 # Check whether --enable-largefile was given.
24094 if test "${enable_largefile+set}" = set; then :
24095 enableval=$enable_largefile;
24098 if test "$enable_largefile" != no; then
24099 if test -n "$ac_tool_prefix"; then
24100 # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
24101 set dummy ${ac_tool_prefix}getconf; ac_word=$2
24102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24103 $as_echo_n "checking for $ac_word... " >&6; }
24104 if ${ac_cv_prog_GETCONF+:} false; then :
24105 $as_echo_n "(cached) " >&6
24107 if test -n "$GETCONF"; then
24108 ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
24110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24111 for as_dir in $PATH
24114 test -z "$as_dir" && as_dir=.
24115 for ac_exec_ext in '' $ac_executable_extensions; do
24116 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24117 ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
24118 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24127 GETCONF=$ac_cv_prog_GETCONF
24128 if test -n "$GETCONF"; then
24129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GETCONF" >&5
24130 $as_echo "$GETCONF" >&6; }
24132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24133 $as_echo "no" >&6; }
24138 if test -z "$ac_cv_prog_GETCONF"; then
24139 ac_ct_GETCONF=$GETCONF
24140 # Extract the first word of "getconf", so it can be a program name with args.
24141 set dummy getconf; ac_word=$2
24142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24143 $as_echo_n "checking for $ac_word... " >&6; }
24144 if ${ac_cv_prog_ac_ct_GETCONF+:} false; then :
24145 $as_echo_n "(cached) " >&6
24147 if test -n "$ac_ct_GETCONF"; then
24148 ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
24150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24151 for as_dir in $PATH
24154 test -z "$as_dir" && as_dir=.
24155 for ac_exec_ext in '' $ac_executable_extensions; do
24156 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24157 ac_cv_prog_ac_ct_GETCONF="getconf"
24158 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24167 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
24168 if test -n "$ac_ct_GETCONF"; then
24169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GETCONF" >&5
24170 $as_echo "$ac_ct_GETCONF" >&6; }
24172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24173 $as_echo "no" >&6; }
24176 if test "x$ac_ct_GETCONF" = x; then
24179 case $cross_compiling:$ac_tool_warned in
24181 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
24182 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
24183 ac_tool_warned=yes ;;
24185 GETCONF=$ac_ct_GETCONF
24188 GETCONF="$ac_cv_prog_GETCONF"
24191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLAGS value to request large file support" >&5
24192 $as_echo_n "checking for CFLAGS value to request large file support... " >&6; }
24193 if ${ac_cv_sys_largefile_CFLAGS+:} false; then :
24194 $as_echo_n "(cached) " >&6
24196 ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
24197 ac_cv_sys_largefile_CFLAGS=no
24199 # IRIX 6.2 and later require cc -n32.
24200 irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
24201 if test "$GCC" != yes; then
24202 ac_cv_sys_largefile_CFLAGS=-n32
24205 CC="$CC $ac_cv_sys_largefile_CFLAGS"
24206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24207 /* end confdefs.h. */
24217 if ac_fn_c_try_link "$LINENO"; then :
24220 ac_cv_sys_largefile_CFLAGS=no
24222 rm -f core conftest.err conftest.$ac_objext \
24223 conftest$ac_exeext conftest.$ac_ext
24228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CFLAGS" >&5
24229 $as_echo "$ac_cv_sys_largefile_CFLAGS" >&6; }
24230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDFLAGS value to request large file support" >&5
24231 $as_echo_n "checking for LDFLAGS value to request large file support... " >&6; }
24232 if ${ac_cv_sys_largefile_LDFLAGS+:} false; then :
24233 $as_echo_n "(cached) " >&6
24235 ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
24236 ac_cv_sys_largefile_LDFLAGS=no
24240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_LDFLAGS" >&5
24241 $as_echo "$ac_cv_sys_largefile_LDFLAGS" >&6; }
24242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBS value to request large file support" >&5
24243 $as_echo_n "checking for LIBS value to request large file support... " >&6; }
24244 if ${ac_cv_sys_largefile_LIBS+:} false; then :
24245 $as_echo_n "(cached) " >&6
24247 ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
24248 ac_cv_sys_largefile_LIBS=no
24252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_LIBS" >&5
24253 $as_echo "$ac_cv_sys_largefile_LIBS" >&6; }
24255 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
24258 -D_FILE_OFFSET_BITS=*) ;;
24259 -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
24260 -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
24265 case "$CPPFLAGS" in
24266 '') CPPFLAGS="$ac_flag" ;;
24267 *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
24275 '') CFLAGS="$ac_flag" ;;
24276 *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
24281 case "$ac_cv_sys_largefile_LDFLAGS" in
24285 '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
24286 *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
24289 case "$ac_cv_sys_largefile_LIBS" in
24293 '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
24294 *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
24297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS" >&5
24298 $as_echo_n "checking for _FILE_OFFSET_BITS... " >&6; }
24299 if ${ac_cv_sys_file_offset_bits+:} false; then :
24300 $as_echo_n "(cached) " >&6
24302 ac_cv_sys_file_offset_bits=no
24303 ac_cv_sys_file_offset_bits=64
24304 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
24306 -D_FILE_OFFSET_BITS)
24307 ac_cv_sys_file_offset_bits=1 ;;
24308 -D_FILE_OFFSET_BITS=*)
24309 ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
24314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
24315 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
24316 if test "$ac_cv_sys_file_offset_bits" != no; then
24318 cat >>confdefs.h <<_ACEOF
24319 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
24323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE" >&5
24324 $as_echo_n "checking for _LARGEFILE_SOURCE... " >&6; }
24325 if ${ac_cv_sys_largefile_source+:} false; then :
24326 $as_echo_n "(cached) " >&6
24328 ac_cv_sys_largefile_source=no
24329 ac_cv_sys_largefile_source=1
24330 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
24332 -D_LARGEFILE_SOURCE)
24333 ac_cv_sys_largefile_source=1 ;;
24334 -D_LARGEFILE_SOURCE=*)
24335 ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
24340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
24341 $as_echo "$ac_cv_sys_largefile_source" >&6; }
24342 if test "$ac_cv_sys_largefile_source" != no; then
24344 cat >>confdefs.h <<_ACEOF
24345 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
24349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES" >&5
24350 $as_echo_n "checking for _LARGE_FILES... " >&6; }
24351 if ${ac_cv_sys_large_files+:} false; then :
24352 $as_echo_n "(cached) " >&6
24354 ac_cv_sys_large_files=no
24355 ac_cv_sys_large_files=1
24356 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
24359 ac_cv_sys_large_files=1 ;;
24361 ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
24366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
24367 $as_echo "$ac_cv_sys_large_files" >&6; }
24368 if test "$ac_cv_sys_large_files" != no; then
24370 cat >>confdefs.h <<_ACEOF
24371 #define _LARGE_FILES $ac_cv_sys_large_files
24378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
24379 $as_echo_n "checking for X... " >&6; }
24382 # Check whether --with-x was given.
24383 if test "${with_x+set}" = set; then :
24387 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
24388 if test "x$with_x" = xno; then
24389 # The user explicitly disabled X.
24392 case $x_includes,$x_libraries in #(
24393 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
24394 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
24395 $as_echo_n "(cached) " >&6
24397 # One or both of the vars are not set, and there is no cached value.
24398 ac_x_includes=no ac_x_libraries=no
24399 rm -f -r conftest.dir
24400 if mkdir conftest.dir; then
24402 cat >Imakefile <<'_ACEOF'
24404 @echo incroot='${INCROOT}'
24406 @echo usrlibdir='${USRLIBDIR}'
24408 @echo libdir='${LIBDIR}'
24410 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
24411 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
24412 for ac_var in incroot usrlibdir libdir; do
24413 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
24415 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
24416 for ac_extension in a so sl dylib la dll; do
24417 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
24418 test -f "$ac_im_libdir/libX11.$ac_extension"; then
24419 ac_im_usrlibdir=$ac_im_libdir; break
24422 # Screen out bogus values from the imake configuration. They are
24423 # bogus both because they are the default anyway, and because
24424 # using them would break gcc on systems where it needs fixed includes.
24425 case $ac_im_incroot in
24426 /usr/include) ac_x_includes= ;;
24427 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
24429 case $ac_im_usrlibdir in
24430 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
24431 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
24435 rm -f -r conftest.dir
24438 # Standard set of common directories for X headers.
24439 # Check X11 before X11Rn because it is often a symlink to the current release.
24453 /usr/local/X11/include
24454 /usr/local/X11R7/include
24455 /usr/local/X11R6/include
24456 /usr/local/X11R5/include
24457 /usr/local/X11R4/include
24459 /usr/local/include/X11
24460 /usr/local/include/X11R7
24461 /usr/local/include/X11R6
24462 /usr/local/include/X11R5
24463 /usr/local/include/X11R4
24467 /usr/XFree86/include/X11
24471 /usr/unsupported/include
24472 /usr/athena/include
24473 /usr/local/x11r5/include
24474 /usr/lpp/Xamples/include
24476 /usr/openwin/include
24477 /usr/openwin/share/include'
24479 if test "$ac_x_includes" = no; then
24480 # Guess where to find include files, by looking for Xlib.h.
24481 # First, try using that file with no special directory specified.
24482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24483 /* end confdefs.h. */
24484 #include <X11/Xlib.h>
24486 if ac_fn_c_try_cpp "$LINENO"; then :
24487 # We can compile using X headers with no special include directory.
24490 for ac_dir in $ac_x_header_dirs; do
24491 if test -r "$ac_dir/X11/Xlib.h"; then
24492 ac_x_includes=$ac_dir
24497 rm -f conftest.err conftest.i conftest.$ac_ext
24498 fi # $ac_x_includes = no
24500 if test "$ac_x_libraries" = no; then
24501 # Check for the libraries.
24502 # See if we find them without any special options.
24503 # Don't add to $LIBS permanently.
24506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24507 /* end confdefs.h. */
24508 #include <X11/Xlib.h>
24517 if ac_fn_c_try_link "$LINENO"; then :
24519 # We can link X programs with no special library path.
24523 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
24525 # Don't even attempt the hair of trying to link an X program!
24526 for ac_extension in a so sl dylib la dll; do
24527 if test -r "$ac_dir/libX11.$ac_extension"; then
24528 ac_x_libraries=$ac_dir
24534 rm -f core conftest.err conftest.$ac_objext \
24535 conftest$ac_exeext conftest.$ac_ext
24536 fi # $ac_x_libraries = no
24538 case $ac_x_includes,$ac_x_libraries in #(
24539 no,* | *,no | *\'*)
24540 # Didn't find X, or a directory has "'" in its name.
24541 ac_cv_have_x="have_x=no";; #(
24543 # Record where we found X for the cache.
24544 ac_cv_have_x="have_x=yes\
24545 ac_x_includes='$ac_x_includes'\
24546 ac_x_libraries='$ac_x_libraries'"
24552 eval "$ac_cv_have_x"
24555 if test "$have_x" != yes; then
24556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
24557 $as_echo "$have_x" >&6; }
24560 # If each of the values was on the command line, it overrides each guess.
24561 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
24562 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
24563 # Update the cache value to reflect the command line values.
24564 ac_cv_have_x="have_x=yes\
24565 ac_x_includes='$x_includes'\
24566 ac_x_libraries='$x_libraries'"
24567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
24568 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
24571 if test "$no_x" = yes; then
24572 # Not all programs may use this symbol, but it does not hurt to define it.
24574 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
24576 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
24578 if test -n "$x_includes"; then
24579 X_CFLAGS="$X_CFLAGS -I$x_includes"
24582 # It would also be nice to do this for all -L options, not just this one.
24583 if test -n "$x_libraries"; then
24584 X_LIBS="$X_LIBS -L$x_libraries"
24585 # For Solaris; some versions of Sun CC require a space after -R and
24586 # others require no space. Words are not sufficient . . . .
24587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
24588 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
24589 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
24590 ac_xsave_c_werror_flag=$ac_c_werror_flag
24591 ac_c_werror_flag=yes
24592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24593 /* end confdefs.h. */
24603 if ac_fn_c_try_link "$LINENO"; then :
24604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24605 $as_echo "no" >&6; }
24606 X_LIBS="$X_LIBS -R$x_libraries"
24608 LIBS="$ac_xsave_LIBS -R $x_libraries"
24609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24610 /* end confdefs.h. */
24620 if ac_fn_c_try_link "$LINENO"; then :
24621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24622 $as_echo "yes" >&6; }
24623 X_LIBS="$X_LIBS -R $x_libraries"
24625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
24626 $as_echo "neither works" >&6; }
24628 rm -f core conftest.err conftest.$ac_objext \
24629 conftest$ac_exeext conftest.$ac_ext
24631 rm -f core conftest.err conftest.$ac_objext \
24632 conftest$ac_exeext conftest.$ac_ext
24633 ac_c_werror_flag=$ac_xsave_c_werror_flag
24634 LIBS=$ac_xsave_LIBS
24637 # Check for system-dependent libraries X programs must link with.
24638 # Do this before checking for the system-independent R6 libraries
24639 # (-lICE), since we may need -lsocket or whatever for X linking.
24641 if test "$ISC" = yes; then
24642 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
24644 # Martyn Johnson says this is needed for Ultrix, if the X
24645 # libraries were built with DECnet support. And Karl Berry says
24646 # the Alpha needs dnet_stub (dnet does not exist).
24647 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
24648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24649 /* end confdefs.h. */
24651 /* Override any GCC internal prototype to avoid an error.
24652 Use char because int might match the return type of a GCC
24653 builtin and then its argument prototype would still apply. */
24657 char XOpenDisplay ();
24661 return XOpenDisplay ();
24666 if ac_fn_c_try_link "$LINENO"; then :
24669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
24670 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
24671 if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
24672 $as_echo_n "(cached) " >&6
24674 ac_check_lib_save_LIBS=$LIBS
24675 LIBS="-ldnet $LIBS"
24676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24677 /* end confdefs.h. */
24679 /* Override any GCC internal prototype to avoid an error.
24680 Use char because int might match the return type of a GCC
24681 builtin and then its argument prototype would still apply. */
24689 return dnet_ntoa ();
24694 if ac_fn_c_try_link "$LINENO"; then :
24695 ac_cv_lib_dnet_dnet_ntoa=yes
24697 ac_cv_lib_dnet_dnet_ntoa=no
24699 rm -f core conftest.err conftest.$ac_objext \
24700 conftest$ac_exeext conftest.$ac_ext
24701 LIBS=$ac_check_lib_save_LIBS
24703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
24704 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
24705 if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
24706 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
24709 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
24710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
24711 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
24712 if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
24713 $as_echo_n "(cached) " >&6
24715 ac_check_lib_save_LIBS=$LIBS
24716 LIBS="-ldnet_stub $LIBS"
24717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24718 /* end confdefs.h. */
24720 /* Override any GCC internal prototype to avoid an error.
24721 Use char because int might match the return type of a GCC
24722 builtin and then its argument prototype would still apply. */
24730 return dnet_ntoa ();
24735 if ac_fn_c_try_link "$LINENO"; then :
24736 ac_cv_lib_dnet_stub_dnet_ntoa=yes
24738 ac_cv_lib_dnet_stub_dnet_ntoa=no
24740 rm -f core conftest.err conftest.$ac_objext \
24741 conftest$ac_exeext conftest.$ac_ext
24742 LIBS=$ac_check_lib_save_LIBS
24744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
24745 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
24746 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
24747 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
24752 rm -f core conftest.err conftest.$ac_objext \
24753 conftest$ac_exeext conftest.$ac_ext
24754 LIBS="$ac_xsave_LIBS"
24756 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
24757 # to get the SysV transport functions.
24758 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
24760 # The nsl library prevents programs from opening the X display
24761 # on Irix 5.2, according to T.E. Dickey.
24762 # The functions gethostbyname, getservbyname, and inet_addr are
24763 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
24764 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
24765 if test "x$ac_cv_func_gethostbyname" = xyes; then :
24769 if test $ac_cv_func_gethostbyname = no; then
24770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
24771 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
24772 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
24773 $as_echo_n "(cached) " >&6
24775 ac_check_lib_save_LIBS=$LIBS
24777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24778 /* end confdefs.h. */
24780 /* Override any GCC internal prototype to avoid an error.
24781 Use char because int might match the return type of a GCC
24782 builtin and then its argument prototype would still apply. */
24786 char gethostbyname ();
24790 return gethostbyname ();
24795 if ac_fn_c_try_link "$LINENO"; then :
24796 ac_cv_lib_nsl_gethostbyname=yes
24798 ac_cv_lib_nsl_gethostbyname=no
24800 rm -f core conftest.err conftest.$ac_objext \
24801 conftest$ac_exeext conftest.$ac_ext
24802 LIBS=$ac_check_lib_save_LIBS
24804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
24805 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
24806 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
24807 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
24810 if test $ac_cv_lib_nsl_gethostbyname = no; then
24811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
24812 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
24813 if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
24814 $as_echo_n "(cached) " >&6
24816 ac_check_lib_save_LIBS=$LIBS
24818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24819 /* end confdefs.h. */
24821 /* Override any GCC internal prototype to avoid an error.
24822 Use char because int might match the return type of a GCC
24823 builtin and then its argument prototype would still apply. */
24827 char gethostbyname ();
24831 return gethostbyname ();
24836 if ac_fn_c_try_link "$LINENO"; then :
24837 ac_cv_lib_bsd_gethostbyname=yes
24839 ac_cv_lib_bsd_gethostbyname=no
24841 rm -f core conftest.err conftest.$ac_objext \
24842 conftest$ac_exeext conftest.$ac_ext
24843 LIBS=$ac_check_lib_save_LIBS
24845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
24846 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
24847 if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
24848 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
24854 # lieder@skyler.mavd.honeywell.com says without -lsocket,
24855 # socket/setsockopt and other routines are undefined under SCO ODT
24856 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
24857 # on later versions), says Simon Leinen: it contains gethostby*
24858 # variants that don't use the name server (or something). -lsocket
24859 # must be given before -lnsl if both are needed. We assume that
24860 # if connect needs -lnsl, so does gethostbyname.
24861 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
24862 if test "x$ac_cv_func_connect" = xyes; then :
24866 if test $ac_cv_func_connect = no; then
24867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
24868 $as_echo_n "checking for connect in -lsocket... " >&6; }
24869 if ${ac_cv_lib_socket_connect+:} false; then :
24870 $as_echo_n "(cached) " >&6
24872 ac_check_lib_save_LIBS=$LIBS
24873 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
24874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24875 /* end confdefs.h. */
24877 /* Override any GCC internal prototype to avoid an error.
24878 Use char because int might match the return type of a GCC
24879 builtin and then its argument prototype would still apply. */
24892 if ac_fn_c_try_link "$LINENO"; then :
24893 ac_cv_lib_socket_connect=yes
24895 ac_cv_lib_socket_connect=no
24897 rm -f core conftest.err conftest.$ac_objext \
24898 conftest$ac_exeext conftest.$ac_ext
24899 LIBS=$ac_check_lib_save_LIBS
24901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
24902 $as_echo "$ac_cv_lib_socket_connect" >&6; }
24903 if test "x$ac_cv_lib_socket_connect" = xyes; then :
24904 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
24909 # Guillermo Gomez says -lposix is necessary on A/UX.
24910 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
24911 if test "x$ac_cv_func_remove" = xyes; then :
24915 if test $ac_cv_func_remove = no; then
24916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
24917 $as_echo_n "checking for remove in -lposix... " >&6; }
24918 if ${ac_cv_lib_posix_remove+:} false; then :
24919 $as_echo_n "(cached) " >&6
24921 ac_check_lib_save_LIBS=$LIBS
24922 LIBS="-lposix $LIBS"
24923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24924 /* end confdefs.h. */
24926 /* Override any GCC internal prototype to avoid an error.
24927 Use char because int might match the return type of a GCC
24928 builtin and then its argument prototype would still apply. */
24941 if ac_fn_c_try_link "$LINENO"; then :
24942 ac_cv_lib_posix_remove=yes
24944 ac_cv_lib_posix_remove=no
24946 rm -f core conftest.err conftest.$ac_objext \
24947 conftest$ac_exeext conftest.$ac_ext
24948 LIBS=$ac_check_lib_save_LIBS
24950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
24951 $as_echo "$ac_cv_lib_posix_remove" >&6; }
24952 if test "x$ac_cv_lib_posix_remove" = xyes; then :
24953 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
24958 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
24959 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
24960 if test "x$ac_cv_func_shmat" = xyes; then :
24964 if test $ac_cv_func_shmat = no; then
24965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
24966 $as_echo_n "checking for shmat in -lipc... " >&6; }
24967 if ${ac_cv_lib_ipc_shmat+:} false; then :
24968 $as_echo_n "(cached) " >&6
24970 ac_check_lib_save_LIBS=$LIBS
24972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24973 /* end confdefs.h. */
24975 /* Override any GCC internal prototype to avoid an error.
24976 Use char because int might match the return type of a GCC
24977 builtin and then its argument prototype would still apply. */
24990 if ac_fn_c_try_link "$LINENO"; then :
24991 ac_cv_lib_ipc_shmat=yes
24993 ac_cv_lib_ipc_shmat=no
24995 rm -f core conftest.err conftest.$ac_objext \
24996 conftest$ac_exeext conftest.$ac_ext
24997 LIBS=$ac_check_lib_save_LIBS
24999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
25000 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
25001 if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
25002 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
25008 # Check for libraries that X11R6 Xt/Xaw programs need.
25009 ac_save_LDFLAGS=$LDFLAGS
25010 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
25011 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
25012 # check for ICE first), but we must link in the order -lSM -lICE or
25013 # we get undefined symbols. So assume we have SM if we have ICE.
25014 # These have to be linked with before -lX11, unlike the other
25015 # libraries we check for below, so use a different variable.
25016 # John Interrante, Karl Berry
25017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
25018 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
25019 if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
25020 $as_echo_n "(cached) " >&6
25022 ac_check_lib_save_LIBS=$LIBS
25023 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
25024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25025 /* end confdefs.h. */
25027 /* Override any GCC internal prototype to avoid an error.
25028 Use char because int might match the return type of a GCC
25029 builtin and then its argument prototype would still apply. */
25033 char IceConnectionNumber ();
25037 return IceConnectionNumber ();
25042 if ac_fn_c_try_link "$LINENO"; then :
25043 ac_cv_lib_ICE_IceConnectionNumber=yes
25045 ac_cv_lib_ICE_IceConnectionNumber=no
25047 rm -f core conftest.err conftest.$ac_objext \
25048 conftest$ac_exeext conftest.$ac_ext
25049 LIBS=$ac_check_lib_save_LIBS
25051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
25052 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
25053 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
25054 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
25057 LDFLAGS=$ac_save_LDFLAGS
25094 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25095 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
25096 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
25097 cat >>confdefs.h <<_ACEOF
25098 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
25106 $as_echo_n "checking for ANSI C header files... " >&6; }
25107 if ${ac_cv_header_stdc+:} false; then :
25108 $as_echo_n "(cached) " >&6
25110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25111 /* end confdefs.h. */
25112 #include <stdlib.h>
25113 #include <stdarg.h>
25114 #include <string.h>
25125 if ac_fn_c_try_compile "$LINENO"; then :
25126 ac_cv_header_stdc=yes
25128 ac_cv_header_stdc=no
25130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25132 if test $ac_cv_header_stdc = yes; then
25133 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
25134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25135 /* end confdefs.h. */
25136 #include <string.h>
25139 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25140 $EGREP "memchr" >/dev/null 2>&1; then :
25143 ac_cv_header_stdc=no
25149 if test $ac_cv_header_stdc = yes; then
25150 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
25151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25152 /* end confdefs.h. */
25153 #include <stdlib.h>
25156 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25157 $EGREP "free" >/dev/null 2>&1; then :
25160 ac_cv_header_stdc=no
25166 if test $ac_cv_header_stdc = yes; then
25167 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
25168 if test "$cross_compiling" = yes; then :
25171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25172 /* end confdefs.h. */
25174 #include <stdlib.h>
25175 #if ((' ' & 0x0FF) == 0x020)
25176 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
25177 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
25179 # define ISLOWER(c) \
25180 (('a' <= (c) && (c) <= 'i') \
25181 || ('j' <= (c) && (c) <= 'r') \
25182 || ('s' <= (c) && (c) <= 'z'))
25183 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
25186 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
25191 for (i = 0; i < 256; i++)
25192 if (XOR (islower (i), ISLOWER (i))
25193 || toupper (i) != TOUPPER (i))
25198 if ac_fn_c_try_run "$LINENO"; then :
25201 ac_cv_header_stdc=no
25203 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25204 conftest.$ac_objext conftest.beam conftest.$ac_ext
25209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
25210 $as_echo "$ac_cv_header_stdc" >&6; }
25211 if test $ac_cv_header_stdc = yes; then
25213 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
25217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev" >&5
25218 $as_echo_n "checking whether sys/types.h defines makedev... " >&6; }
25219 if ${ac_cv_header_sys_types_h_makedev+:} false; then :
25220 $as_echo_n "(cached) " >&6
25222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25223 /* end confdefs.h. */
25224 #include <sys/types.h>
25228 return makedev(0, 0);
25233 if ac_fn_c_try_link "$LINENO"; then :
25234 ac_cv_header_sys_types_h_makedev=yes
25236 ac_cv_header_sys_types_h_makedev=no
25238 rm -f core conftest.err conftest.$ac_objext \
25239 conftest$ac_exeext conftest.$ac_ext
25242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_types_h_makedev" >&5
25243 $as_echo "$ac_cv_header_sys_types_h_makedev" >&6; }
25245 if test $ac_cv_header_sys_types_h_makedev = no; then
25246 ac_fn_c_check_header_mongrel "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"
25247 if test "x$ac_cv_header_sys_mkdev_h" = xyes; then :
25249 $as_echo "#define MAJOR_IN_MKDEV 1" >>confdefs.h
25255 if test $ac_cv_header_sys_mkdev_h = no; then
25256 ac_fn_c_check_header_mongrel "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
25257 if test "x$ac_cv_header_sys_sysmacros_h" = xyes; then :
25259 $as_echo "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h
25267 ac_header_dirent=no
25268 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
25269 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
25270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
25271 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
25272 if eval \${$as_ac_Header+:} false; then :
25273 $as_echo_n "(cached) " >&6
25275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25276 /* end confdefs.h. */
25277 #include <sys/types.h>
25289 if ac_fn_c_try_compile "$LINENO"; then :
25290 eval "$as_ac_Header=yes"
25292 eval "$as_ac_Header=no"
25294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25296 eval ac_res=\$$as_ac_Header
25297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
25298 $as_echo "$ac_res" >&6; }
25299 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
25300 cat >>confdefs.h <<_ACEOF
25301 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
25304 ac_header_dirent=$ac_hdr; break
25308 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
25309 if test $ac_header_dirent = dirent.h; then
25310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
25311 $as_echo_n "checking for library containing opendir... " >&6; }
25312 if ${ac_cv_search_opendir+:} false; then :
25313 $as_echo_n "(cached) " >&6
25315 ac_func_search_save_LIBS=$LIBS
25316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25317 /* end confdefs.h. */
25319 /* Override any GCC internal prototype to avoid an error.
25320 Use char because int might match the return type of a GCC
25321 builtin and then its argument prototype would still apply. */
25334 for ac_lib in '' dir; do
25335 if test -z "$ac_lib"; then
25336 ac_res="none required"
25339 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25341 if ac_fn_c_try_link "$LINENO"; then :
25342 ac_cv_search_opendir=$ac_res
25344 rm -f core conftest.err conftest.$ac_objext \
25346 if ${ac_cv_search_opendir+:} false; then :
25350 if ${ac_cv_search_opendir+:} false; then :
25353 ac_cv_search_opendir=no
25355 rm conftest.$ac_ext
25356 LIBS=$ac_func_search_save_LIBS
25358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
25359 $as_echo "$ac_cv_search_opendir" >&6; }
25360 ac_res=$ac_cv_search_opendir
25361 if test "$ac_res" != no; then :
25362 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
25368 $as_echo_n "checking for library containing opendir... " >&6; }
25369 if ${ac_cv_search_opendir+:} false; then :
25370 $as_echo_n "(cached) " >&6
25372 ac_func_search_save_LIBS=$LIBS
25373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25374 /* end confdefs.h. */
25376 /* Override any GCC internal prototype to avoid an error.
25377 Use char because int might match the return type of a GCC
25378 builtin and then its argument prototype would still apply. */
25391 for ac_lib in '' x; do
25392 if test -z "$ac_lib"; then
25393 ac_res="none required"
25396 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25398 if ac_fn_c_try_link "$LINENO"; then :
25399 ac_cv_search_opendir=$ac_res
25401 rm -f core conftest.err conftest.$ac_objext \
25403 if ${ac_cv_search_opendir+:} false; then :
25407 if ${ac_cv_search_opendir+:} false; then :
25410 ac_cv_search_opendir=no
25412 rm conftest.$ac_ext
25413 LIBS=$ac_func_search_save_LIBS
25415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
25416 $as_echo "$ac_cv_search_opendir" >&6; }
25417 ac_res=$ac_cv_search_opendir
25418 if test "$ac_res" != no; then :
25419 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
25426 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
25427 if ${ac_cv_header_stat_broken+:} false; then :
25428 $as_echo_n "(cached) " >&6
25430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25431 /* end confdefs.h. */
25432 #include <sys/types.h>
25433 #include <sys/stat.h>
25435 #if defined S_ISBLK && defined S_IFDIR
25436 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
25439 #if defined S_ISBLK && defined S_IFCHR
25440 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
25443 #if defined S_ISLNK && defined S_IFREG
25444 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
25447 #if defined S_ISSOCK && defined S_IFREG
25448 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
25452 if ac_fn_c_try_compile "$LINENO"; then :
25453 ac_cv_header_stat_broken=no
25455 ac_cv_header_stat_broken=yes
25457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
25460 $as_echo "$ac_cv_header_stat_broken" >&6; }
25461 if test $ac_cv_header_stat_broken = yes; then
25463 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
25467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
25468 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
25469 if ${ac_cv_header_sys_wait_h+:} false; then :
25470 $as_echo_n "(cached) " >&6
25472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25473 /* end confdefs.h. */
25474 #include <sys/types.h>
25475 #include <sys/wait.h>
25476 #ifndef WEXITSTATUS
25477 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
25480 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
25488 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
25493 if ac_fn_c_try_compile "$LINENO"; then :
25494 ac_cv_header_sys_wait_h=yes
25496 ac_cv_header_sys_wait_h=no
25498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
25501 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
25502 if test $ac_cv_header_sys_wait_h = yes; then
25504 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
25508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
25509 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
25510 if ${ac_cv_header_time+:} false; then :
25511 $as_echo_n "(cached) " >&6
25513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25514 /* end confdefs.h. */
25515 #include <sys/types.h>
25516 #include <sys/time.h>
25522 if ((struct tm *) 0)
25528 if ac_fn_c_try_compile "$LINENO"; then :
25529 ac_cv_header_time=yes
25531 ac_cv_header_time=no
25533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
25536 $as_echo "$ac_cv_header_time" >&6; }
25537 if test $ac_cv_header_time = yes; then
25539 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
25543 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
25544 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
25546 cat >>confdefs.h <<_ACEOF
25547 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
25551 $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h
25556 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
25557 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
25559 cat >>confdefs.h <<_ACEOF
25560 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
25564 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
25567 case " $LIBOBJS " in
25568 *" fileblocks.$ac_objext "* ) ;;
25569 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
25576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
25577 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
25578 if ${ac_cv_struct_tm+:} false; then :
25579 $as_echo_n "(cached) " >&6
25581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25582 /* end confdefs.h. */
25583 #include <sys/types.h>
25590 int *p = &tm.tm_sec;
25596 if ac_fn_c_try_compile "$LINENO"; then :
25597 ac_cv_struct_tm=time.h
25599 ac_cv_struct_tm=sys/time.h
25601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
25604 $as_echo "$ac_cv_struct_tm" >&6; }
25605 if test $ac_cv_struct_tm = sys/time.h; then
25607 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
25611 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
25612 #include <$ac_cv_struct_tm>
25615 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
25617 cat >>confdefs.h <<_ACEOF
25618 #define HAVE_STRUCT_TM_TM_ZONE 1
25624 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
25626 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
25629 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
25631 if test "x$ac_cv_have_decl_tzname" = xyes; then :
25637 cat >>confdefs.h <<_ACEOF
25638 #define HAVE_DECL_TZNAME $ac_have_decl
25641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
25642 $as_echo_n "checking for tzname... " >&6; }
25643 if ${ac_cv_var_tzname+:} false; then :
25644 $as_echo_n "(cached) " >&6
25646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25647 /* end confdefs.h. */
25649 #if !HAVE_DECL_TZNAME
25650 extern char *tzname[];
25656 return tzname[0][0];
25661 if ac_fn_c_try_link "$LINENO"; then :
25662 ac_cv_var_tzname=yes
25664 ac_cv_var_tzname=no
25666 rm -f core conftest.err conftest.$ac_objext \
25667 conftest$ac_exeext conftest.$ac_ext
25669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
25670 $as_echo "$ac_cv_var_tzname" >&6; }
25671 if test $ac_cv_var_tzname = yes; then
25673 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
25679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for utime.h" >&5
25680 $as_echo_n "checking for utime.h... " >&6; }
25681 if ${ba_cv_header_utime_h+:} false; then :
25682 $as_echo_n "(cached) " >&6
25685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25686 /* end confdefs.h. */
25688 #include <sys/types.h>
25701 if ac_fn_c_try_compile "$LINENO"; then :
25703 ba_cv_header_utime_h=yes
25707 ba_cv_header_utime_h=no
25711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_header_utime_h" >&5
25716 $as_echo "$ba_cv_header_utime_h" >&6; }
25717 test $ba_cv_header_utime_h = yes &&
25718 $as_echo "#define HAVE_UTIME_H 1" >>confdefs.h
25721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5
25722 $as_echo_n "checking for socklen_t... " >&6; }
25723 if ${ba_cv_header_socklen_t+:} false; then :
25724 $as_echo_n "(cached) " >&6
25727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25728 /* end confdefs.h. */
25730 #include <sys/types.h>
25731 #include <sys/socket.h>
25743 if ac_fn_c_try_compile "$LINENO"; then :
25745 ba_cv_header_socklen_t=yes
25749 ba_cv_header_socklen_t=no
25753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_header_socklen_t" >&5
25758 $as_echo "$ba_cv_header_socklen_t" >&6; }
25759 test $ba_cv_header_socklen_t = yes &&
25760 $as_echo "#define HAVE_SOCKLEN_T 1" >>confdefs.h
25764 ac_cpp='$CXXCPP $CPPFLAGS'
25765 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25766 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25767 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ioctl_req_t" >&5
25770 $as_echo_n "checking for ioctl_req_t... " >&6; }
25771 if ${ba_cv_header_ioctl_req_t+:} false; then :
25772 $as_echo_n "(cached) " >&6
25775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25776 /* end confdefs.h. */
25778 #include <unistd.h>
25779 #include <sys/types.h>
25780 #include <sys/ioctl.h>
25786 int (*d_ioctl)(int fd, unsigned long int request, ...);
25793 if ac_fn_cxx_try_compile "$LINENO"; then :
25795 ba_cv_header_ioctl_req_t=yes
25799 ba_cv_header_ioctl_req_t=no
25803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_header_ioctl_req_t" >&5
25808 $as_echo "$ba_cv_header_ioctl_req_t" >&6; }
25809 test $ba_cv_header_ioctl_req_t = yes &&
25810 $as_echo "#define HAVE_IOCTL_ULINT_REQUEST 1" >>confdefs.h
25814 ac_cpp='$CPP $CPPFLAGS'
25815 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25816 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25817 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25821 ac_cpp='$CXXCPP $CPPFLAGS'
25822 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25823 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25824 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for typeof" >&5
25827 $as_echo_n "checking for typeof... " >&6; }
25828 if ${ba_cv_have_typeof+:} false; then :
25829 $as_echo_n "(cached) " >&6
25832 if test "$cross_compiling" = yes; then :
25834 ba_cv_have_typeof=no
25838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25839 /* end confdefs.h. */
25841 main(){char *a = 0; a = (typeof a)a;}
25844 if ac_fn_cxx_try_run "$LINENO"; then :
25846 ba_cv_have_typeof=yes
25850 ba_cv_have_typeof=no
25853 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25854 conftest.$ac_objext conftest.beam conftest.$ac_ext
25860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_have_typeof" >&5
25861 $as_echo "$ba_cv_have_typeof" >&6; }
25862 test $ba_cv_have_typeof = yes &&
25863 $as_echo "#define HAVE_TYPEOF 1" >>confdefs.h
25866 ac_cpp='$CPP $CPPFLAGS'
25867 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25868 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25869 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
25873 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
25874 if ${ac_cv_c_const+:} false; then :
25875 $as_echo_n "(cached) " >&6
25877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25878 /* end confdefs.h. */
25883 /* FIXME: Include the comments suggested by Paul. */
25884 #ifndef __cplusplus
25885 /* Ultrix mips cc rejects this. */
25886 typedef int charset[2];
25888 /* SunOS 4.1.1 cc rejects this. */
25889 char const *const *pcpcc;
25891 /* NEC SVR4.0.2 mips cc rejects this. */
25892 struct point {int x, y;};
25893 static struct point const zero = {0,0};
25894 /* AIX XL C 1.02.0.0 rejects this.
25895 It does not let you subtract one const X* pointer from another in
25896 an arm of an if-expression whose if-part is not a constant
25898 const char *g = "string";
25899 pcpcc = &g + (g ? g-g : 0);
25900 /* HPUX 7.0 cc rejects these. */
25902 ppc = (char**) pcpcc;
25903 pcpcc = (char const *const *) ppc;
25904 { /* SCO 3.2v4 cc rejects this. */
25906 char const *s = 0 ? (char *) 0 : (char const *) 0;
25911 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
25912 int x[] = {25, 17};
25913 const int *foo = &x[0];
25916 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
25917 typedef const int *iptr;
25921 { /* AIX XL C 1.02.0.0 rejects this saying
25922 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
25923 struct s { int j; const int *ap[3]; };
25924 struct s *b; b->j = 5;
25926 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
25927 const int foo = 10;
25928 if (!foo) return 0;
25930 return !cs[0] && !zero.x;
25937 if ac_fn_c_try_compile "$LINENO"; then :
25942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
25945 $as_echo "$ac_cv_c_const" >&6; }
25946 if test $ac_cv_c_const = no; then
25948 $as_echo "#define const /**/" >>confdefs.h
25953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
25954 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
25955 if ${ac_cv_c_bigendian+:} false; then :
25956 $as_echo_n "(cached) " >&6
25958 ac_cv_c_bigendian=unknown
25959 # See if we're dealing with a universal compiler.
25960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25961 /* end confdefs.h. */
25962 #ifndef __APPLE_CC__
25963 not a universal capable compiler
25968 if ac_fn_c_try_compile "$LINENO"; then :
25970 # Check for potential -arch flags. It is not universal unless
25971 # there are at least two -arch flags with different values.
25974 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
25975 if test -n "$ac_prev"; then
25977 i?86 | x86_64 | ppc | ppc64)
25978 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
25981 ac_cv_c_bigendian=universal
25987 elif test "x$ac_word" = "x-arch"; then
25992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25993 if test $ac_cv_c_bigendian = unknown; then
25994 # See if sys/param.h defines the BYTE_ORDER macro.
25995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25996 /* end confdefs.h. */
25997 #include <sys/types.h>
25998 #include <sys/param.h>
26003 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
26004 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
26006 bogus endian macros
26013 if ac_fn_c_try_compile "$LINENO"; then :
26014 # It does; now see whether it defined to BIG_ENDIAN or not.
26015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26016 /* end confdefs.h. */
26017 #include <sys/types.h>
26018 #include <sys/param.h>
26023 #if BYTE_ORDER != BIG_ENDIAN
26031 if ac_fn_c_try_compile "$LINENO"; then :
26032 ac_cv_c_bigendian=yes
26034 ac_cv_c_bigendian=no
26036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26040 if test $ac_cv_c_bigendian = unknown; then
26041 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
26042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26043 /* end confdefs.h. */
26044 #include <limits.h>
26049 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
26050 bogus endian macros
26057 if ac_fn_c_try_compile "$LINENO"; then :
26058 # It does; now see whether it defined to _BIG_ENDIAN or not.
26059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26060 /* end confdefs.h. */
26061 #include <limits.h>
26066 #ifndef _BIG_ENDIAN
26074 if ac_fn_c_try_compile "$LINENO"; then :
26075 ac_cv_c_bigendian=yes
26077 ac_cv_c_bigendian=no
26079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26083 if test $ac_cv_c_bigendian = unknown; then
26084 # Compile a test program.
26085 if test "$cross_compiling" = yes; then :
26086 # Try to guess by grepping values from an object file.
26087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26088 /* end confdefs.h. */
26089 short int ascii_mm[] =
26090 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
26091 short int ascii_ii[] =
26092 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
26093 int use_ascii (int i) {
26094 return ascii_mm[i] + ascii_ii[i];
26096 short int ebcdic_ii[] =
26097 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
26098 short int ebcdic_mm[] =
26099 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
26100 int use_ebcdic (int i) {
26101 return ebcdic_mm[i] + ebcdic_ii[i];
26108 return use_ascii (foo) == use_ebcdic (foo);
26113 if ac_fn_c_try_compile "$LINENO"; then :
26114 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
26115 ac_cv_c_bigendian=yes
26117 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
26118 if test "$ac_cv_c_bigendian" = unknown; then
26119 ac_cv_c_bigendian=no
26121 # finding both strings is unlikely to happen, but who knows?
26122 ac_cv_c_bigendian=unknown
26126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26129 /* end confdefs.h. */
26130 $ac_includes_default
26135 /* Are we little or big endian? From Harbison&Steele. */
26139 char c[sizeof (long int)];
26142 return u.c[sizeof (long int) - 1] == 1;
26148 if ac_fn_c_try_run "$LINENO"; then :
26149 ac_cv_c_bigendian=no
26151 ac_cv_c_bigendian=yes
26153 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26154 conftest.$ac_objext conftest.beam conftest.$ac_ext
26159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
26160 $as_echo "$ac_cv_c_bigendian" >&6; }
26161 case $ac_cv_c_bigendian in #(
26164 $as_echo "#define HAVE_BIG_ENDIAN 1" >>confdefs.h
26168 $as_echo "#define HAVE_LITTLE_ENDIAN 1" >>confdefs.h
26172 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
26176 as_fn_error $? "unknown endianness
26177 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
26181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to get filesystem type" >&5
26182 $as_echo_n "checking how to get filesystem type... " >&6; }
26184 # The order of these tests is important.
26185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26186 /* end confdefs.h. */
26188 #include <sys/statvfs.h>
26189 #include <sys/fstyp.h>
26192 if ac_fn_c_try_cpp "$LINENO"; then :
26193 $as_echo "#define FSTYPE_STATVFS 1" >>confdefs.h
26197 rm -f conftest.err conftest.i conftest.$ac_ext
26198 if test $fstype = no; then
26199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26200 /* end confdefs.h. */
26202 #include <sys/statfs.h>
26203 #include <sys/fstyp.h>
26206 if ac_fn_c_try_cpp "$LINENO"; then :
26207 $as_echo "#define FSTYPE_USG_STATFS 1" >>confdefs.h
26211 rm -f conftest.err conftest.i conftest.$ac_ext
26213 if test $fstype = no; then
26214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26215 /* end confdefs.h. */
26217 #include <sys/statfs.h>
26218 #include <sys/vmount.h>
26221 if ac_fn_c_try_cpp "$LINENO"; then :
26222 $as_echo "#define FSTYPE_AIX_STATFS 1" >>confdefs.h
26226 rm -f conftest.err conftest.i conftest.$ac_ext
26228 if test $fstype = no; then
26229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26230 /* end confdefs.h. */
26232 #include <mntent.h>
26235 if ac_fn_c_try_cpp "$LINENO"; then :
26236 $as_echo "#define FSTYPE_MNTENT 1" >>confdefs.h
26240 rm -f conftest.err conftest.i conftest.$ac_ext
26242 if test $fstype = no; then
26243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26244 /* end confdefs.h. */
26245 #include <sys/mount.h>
26248 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26249 $EGREP "f_type;" >/dev/null 2>&1; then :
26250 $as_echo "#define FSTYPE_STATFS 1" >>confdefs.h
26256 if test $fstype = no; then
26257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26258 /* end confdefs.h. */
26260 #include <sys/mount.h>
26261 #include <sys/fs_types.h>
26264 if ac_fn_c_try_cpp "$LINENO"; then :
26265 $as_echo "#define FSTYPE_GETMNT 1" >>confdefs.h
26269 rm -f conftest.err conftest.i conftest.$ac_ext
26271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fstype" >&5
26272 $as_echo "$fstype" >&6; }
26274 ac_fn_c_check_header_mongrel "$LINENO" "sys/statvfs.h" "ac_cv_header_sys_statvfs_h" "$ac_includes_default"
26275 if test "x$ac_cv_header_sys_statvfs_h" = xyes; then :
26277 $as_echo "#define HAVE_SYS_STATVFS_H 1" >>confdefs.h
26283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
26284 $as_echo_n "checking return type of signal handlers... " >&6; }
26285 if ${ac_cv_type_signal+:} false; then :
26286 $as_echo_n "(cached) " >&6
26288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26289 /* end confdefs.h. */
26290 #include <sys/types.h>
26291 #include <signal.h>
26296 return *(signal (0, 0)) (0) == 1;
26301 if ac_fn_c_try_compile "$LINENO"; then :
26302 ac_cv_type_signal=int
26304 ac_cv_type_signal=void
26306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
26309 $as_echo "$ac_cv_type_signal" >&6; }
26311 cat >>confdefs.h <<_ACEOF
26312 #define RETSIGTYPE $ac_cv_type_signal
26317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type of signal functions" >&5
26318 $as_echo_n "checking for type of signal functions... " >&6; }
26319 if ${bash_cv_signal_vintage+:} false; then :
26320 $as_echo_n "(cached) " >&6
26323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26324 /* end confdefs.h. */
26325 #include <signal.h>
26331 struct sigaction sa;
26332 sigemptyset(&ss); sigsuspend(&ss);
26333 sigaction(SIGINT, &sa, (struct sigaction *) 0);
26334 sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
26340 if ac_fn_c_try_link "$LINENO"; then :
26341 bash_cv_signal_vintage="posix"
26344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26345 /* end confdefs.h. */
26346 #include <signal.h>
26351 int mask = sigmask(SIGINT);
26352 sigsetmask(mask); sigblock(mask); sigpause(mask);
26358 if ac_fn_c_try_link "$LINENO"; then :
26359 bash_cv_signal_vintage="4.2bsd"
26362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26363 /* end confdefs.h. */
26365 #include <signal.h>
26366 RETSIGTYPE foo() { }
26371 int mask = sigmask(SIGINT);
26372 sigset(SIGINT, foo); sigrelse(SIGINT);
26373 sighold(SIGINT); sigpause(SIGINT);
26379 if ac_fn_c_try_link "$LINENO"; then :
26380 bash_cv_signal_vintage="svr3"
26382 bash_cv_signal_vintage="v7"
26385 rm -f core conftest.err conftest.$ac_objext \
26386 conftest$ac_exeext conftest.$ac_ext
26389 rm -f core conftest.err conftest.$ac_objext \
26390 conftest$ac_exeext conftest.$ac_ext
26393 rm -f core conftest.err conftest.$ac_objext \
26394 conftest$ac_exeext conftest.$ac_ext
26398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_signal_vintage" >&5
26399 $as_echo "$bash_cv_signal_vintage" >&6; }
26400 if test "$bash_cv_signal_vintage" = "posix"; then
26401 $as_echo "#define HAVE_POSIX_SIGNALS 1" >>confdefs.h
26403 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
26404 $as_echo "#define HAVE_BSD_SIGNALS 1" >>confdefs.h
26406 elif test "$bash_cv_signal_vintage" = "svr3"; then
26407 $as_echo "#define HAVE_USG_SIGHOLD 1" >>confdefs.h
26411 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
26412 if test "x$ac_cv_type_mode_t" = xyes; then :
26416 cat >>confdefs.h <<_ACEOF
26422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
26423 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
26424 if ${ac_cv_type_uid_t+:} false; then :
26425 $as_echo_n "(cached) " >&6
26427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26428 /* end confdefs.h. */
26429 #include <sys/types.h>
26432 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26433 $EGREP "uid_t" >/dev/null 2>&1; then :
26434 ac_cv_type_uid_t=yes
26436 ac_cv_type_uid_t=no
26441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
26442 $as_echo "$ac_cv_type_uid_t" >&6; }
26443 if test $ac_cv_type_uid_t = no; then
26445 $as_echo "#define uid_t int" >>confdefs.h
26448 $as_echo "#define gid_t int" >>confdefs.h
26452 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
26453 if test "x$ac_cv_type_size_t" = xyes; then :
26457 cat >>confdefs.h <<_ACEOF
26458 #define size_t unsigned int
26463 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
26464 if test "x$ac_cv_type_pid_t" = xyes; then :
26468 cat >>confdefs.h <<_ACEOF
26474 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
26475 if test "x$ac_cv_type_off_t" = xyes; then :
26479 cat >>confdefs.h <<_ACEOF
26480 #define off_t long int
26486 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
26487 if test "x$ac_cv_type_intptr_t" = xyes; then :
26489 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
26492 for ac_type in 'int' 'long int' 'long long int'; do
26493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26494 /* end confdefs.h. */
26495 $ac_includes_default
26499 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
26506 if ac_fn_c_try_compile "$LINENO"; then :
26508 cat >>confdefs.h <<_ACEOF
26509 #define intptr_t $ac_type
26514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26515 test -z "$ac_type" && break
26521 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
26522 if test "x$ac_cv_type_uintptr_t" = xyes; then :
26524 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
26527 for ac_type in 'unsigned int' 'unsigned long int' \
26528 'unsigned long long int'; do
26529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26530 /* end confdefs.h. */
26531 $ac_includes_default
26535 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
26542 if ac_fn_c_try_compile "$LINENO"; then :
26544 cat >>confdefs.h <<_ACEOF
26545 #define uintptr_t $ac_type
26550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26551 test -z "$ac_type" && break
26556 ac_fn_c_check_type "$LINENO" "ino_t" "ac_cv_type_ino_t" "$ac_includes_default"
26557 if test "x$ac_cv_type_ino_t" = xyes; then :
26561 cat >>confdefs.h <<_ACEOF
26562 #define ino_t unsigned long
26567 ac_fn_c_check_type "$LINENO" "dev_t" "ac_cv_type_dev_t" "$ac_includes_default"
26568 if test "x$ac_cv_type_dev_t" = xyes; then :
26572 cat >>confdefs.h <<_ACEOF
26573 #define dev_t unsigned long
26578 ac_fn_c_check_type "$LINENO" "daddr_t" "ac_cv_type_daddr_t" "$ac_includes_default"
26579 if test "x$ac_cv_type_daddr_t" = xyes; then :
26583 cat >>confdefs.h <<_ACEOF
26584 #define daddr_t long
26589 ac_fn_c_check_type "$LINENO" "major_t" "ac_cv_type_major_t" "$ac_includes_default"
26590 if test "x$ac_cv_type_major_t" = xyes; then :
26594 cat >>confdefs.h <<_ACEOF
26595 #define major_t int
26600 ac_fn_c_check_type "$LINENO" "minor_t" "ac_cv_type_minor_t" "$ac_includes_default"
26601 if test "x$ac_cv_type_minor_t" = xyes; then :
26605 cat >>confdefs.h <<_ACEOF
26606 #define minor_t int
26611 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
26612 if test "x$ac_cv_type_ssize_t" = xyes; then :
26616 cat >>confdefs.h <<_ACEOF
26617 #define ssize_t int
26622 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
26623 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
26625 cat >>confdefs.h <<_ACEOF
26626 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
26630 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
26633 case " $LIBOBJS " in
26634 *" fileblocks.$ac_objext "* ) ;;
26635 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
26642 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
26643 if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
26645 cat >>confdefs.h <<_ACEOF
26646 #define HAVE_STRUCT_STAT_ST_RDEV 1
26650 $as_echo "#define HAVE_ST_RDEV 1" >>confdefs.h
26655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
26656 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
26657 if ${ac_cv_struct_tm+:} false; then :
26658 $as_echo_n "(cached) " >&6
26660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26661 /* end confdefs.h. */
26662 #include <sys/types.h>
26669 int *p = &tm.tm_sec;
26675 if ac_fn_c_try_compile "$LINENO"; then :
26676 ac_cv_struct_tm=time.h
26678 ac_cv_struct_tm=sys/time.h
26680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
26683 $as_echo "$ac_cv_struct_tm" >&6; }
26684 if test $ac_cv_struct_tm = sys/time.h; then
26686 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
26690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
26691 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
26692 if ${ac_cv_c_const+:} false; then :
26693 $as_echo_n "(cached) " >&6
26695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26696 /* end confdefs.h. */
26701 /* FIXME: Include the comments suggested by Paul. */
26702 #ifndef __cplusplus
26703 /* Ultrix mips cc rejects this. */
26704 typedef int charset[2];
26706 /* SunOS 4.1.1 cc rejects this. */
26707 char const *const *pcpcc;
26709 /* NEC SVR4.0.2 mips cc rejects this. */
26710 struct point {int x, y;};
26711 static struct point const zero = {0,0};
26712 /* AIX XL C 1.02.0.0 rejects this.
26713 It does not let you subtract one const X* pointer from another in
26714 an arm of an if-expression whose if-part is not a constant
26716 const char *g = "string";
26717 pcpcc = &g + (g ? g-g : 0);
26718 /* HPUX 7.0 cc rejects these. */
26720 ppc = (char**) pcpcc;
26721 pcpcc = (char const *const *) ppc;
26722 { /* SCO 3.2v4 cc rejects this. */
26724 char const *s = 0 ? (char *) 0 : (char const *) 0;
26729 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
26730 int x[] = {25, 17};
26731 const int *foo = &x[0];
26734 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
26735 typedef const int *iptr;
26739 { /* AIX XL C 1.02.0.0 rejects this saying
26740 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
26741 struct s { int j; const int *ap[3]; };
26742 struct s *b; b->j = 5;
26744 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
26745 const int foo = 10;
26746 if (!foo) return 0;
26748 return !cs[0] && !zero.x;
26755 if ac_fn_c_try_compile "$LINENO"; then :
26760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
26763 $as_echo "$ac_cv_c_const" >&6; }
26764 if test $ac_cv_c_const = no; then
26766 $as_echo "#define const /**/" >>confdefs.h
26771 # The cast to long int works around a bug in the HP C Compiler
26772 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26773 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26774 # This bug is HP SR number 8606223364.
26775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
26776 $as_echo_n "checking size of char... " >&6; }
26777 if ${ac_cv_sizeof_char+:} false; then :
26778 $as_echo_n "(cached) " >&6
26780 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
26783 if test "$ac_cv_type_char" = yes; then
26784 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26785 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26786 as_fn_error 77 "cannot compute sizeof (char)
26787 See \`config.log' for more details" "$LINENO" 5; }
26789 ac_cv_sizeof_char=0
26794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
26795 $as_echo "$ac_cv_sizeof_char" >&6; }
26799 cat >>confdefs.h <<_ACEOF
26800 #define SIZEOF_CHAR $ac_cv_sizeof_char
26804 # The cast to long int works around a bug in the HP C Compiler
26805 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26806 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26807 # This bug is HP SR number 8606223364.
26808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short int" >&5
26809 $as_echo_n "checking size of short int... " >&6; }
26810 if ${ac_cv_sizeof_short_int+:} false; then :
26811 $as_echo_n "(cached) " >&6
26813 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short int))" "ac_cv_sizeof_short_int" "$ac_includes_default"; then :
26816 if test "$ac_cv_type_short_int" = yes; then
26817 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26818 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26819 as_fn_error 77 "cannot compute sizeof (short int)
26820 See \`config.log' for more details" "$LINENO" 5; }
26822 ac_cv_sizeof_short_int=0
26827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short_int" >&5
26828 $as_echo "$ac_cv_sizeof_short_int" >&6; }
26832 cat >>confdefs.h <<_ACEOF
26833 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
26837 # The cast to long int works around a bug in the HP C Compiler
26838 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26839 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26840 # This bug is HP SR number 8606223364.
26841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
26842 $as_echo_n "checking size of int... " >&6; }
26843 if ${ac_cv_sizeof_int+:} false; then :
26844 $as_echo_n "(cached) " >&6
26846 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
26849 if test "$ac_cv_type_int" = yes; then
26850 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26851 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26852 as_fn_error 77 "cannot compute sizeof (int)
26853 See \`config.log' for more details" "$LINENO" 5; }
26860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
26861 $as_echo "$ac_cv_sizeof_int" >&6; }
26865 cat >>confdefs.h <<_ACEOF
26866 #define SIZEOF_INT $ac_cv_sizeof_int
26870 # The cast to long int works around a bug in the HP C Compiler
26871 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26872 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26873 # This bug is HP SR number 8606223364.
26874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long int" >&5
26875 $as_echo_n "checking size of long int... " >&6; }
26876 if ${ac_cv_sizeof_long_int+:} false; then :
26877 $as_echo_n "(cached) " >&6
26879 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long int))" "ac_cv_sizeof_long_int" "$ac_includes_default"; then :
26882 if test "$ac_cv_type_long_int" = yes; then
26883 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26884 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26885 as_fn_error 77 "cannot compute sizeof (long int)
26886 See \`config.log' for more details" "$LINENO" 5; }
26888 ac_cv_sizeof_long_int=0
26893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_int" >&5
26894 $as_echo "$ac_cv_sizeof_long_int" >&6; }
26898 cat >>confdefs.h <<_ACEOF
26899 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
26903 # The cast to long int works around a bug in the HP C Compiler
26904 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26905 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26906 # This bug is HP SR number 8606223364.
26907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long int" >&5
26908 $as_echo_n "checking size of long long int... " >&6; }
26909 if ${ac_cv_sizeof_long_long_int+:} false; then :
26910 $as_echo_n "(cached) " >&6
26912 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long int))" "ac_cv_sizeof_long_long_int" "$ac_includes_default"; then :
26915 if test "$ac_cv_type_long_long_int" = yes; then
26916 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26917 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26918 as_fn_error 77 "cannot compute sizeof (long long int)
26919 See \`config.log' for more details" "$LINENO" 5; }
26921 ac_cv_sizeof_long_long_int=0
26926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long_int" >&5
26927 $as_echo "$ac_cv_sizeof_long_long_int" >&6; }
26931 cat >>confdefs.h <<_ACEOF
26932 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
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 int *" >&5
26941 $as_echo_n "checking size of int *... " >&6; }
26942 if ${ac_cv_sizeof_int_p+:} false; then :
26943 $as_echo_n "(cached) " >&6
26945 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int *))" "ac_cv_sizeof_int_p" "$ac_includes_default"; then :
26948 if test "$ac_cv_type_int_p" = 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 (int *)
26952 See \`config.log' for more details" "$LINENO" 5; }
26954 ac_cv_sizeof_int_p=0
26959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int_p" >&5
26960 $as_echo "$ac_cv_sizeof_int_p" >&6; }
26964 cat >>confdefs.h <<_ACEOF
26965 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
26970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int type" >&5
26971 $as_echo_n "checking for u_int type... " >&6; }
26972 if ${ac_cv_have_u_int+:} false; then :
26973 $as_echo_n "(cached) " >&6
26976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26977 /* end confdefs.h. */
26979 #include <sys/types.h>
26991 if ac_fn_c_try_compile "$LINENO"; then :
26993 ac_cv_have_u_int="yes"
26997 ac_cv_have_u_int="no"
27001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_int" >&5
27006 $as_echo "$ac_cv_have_u_int" >&6; }
27007 if test "x$ac_cv_have_u_int" = "xyes" ; then
27008 $as_echo "#define HAVE_U_INT 1" >>confdefs.h
27013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t type" >&5
27014 $as_echo_n "checking for intmax_t type... " >&6; }
27015 if ${ac_cv_have_intmax_t+:} false; then :
27016 $as_echo_n "(cached) " >&6
27019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27020 /* end confdefs.h. */
27022 #include <sys/types.h>
27034 if ac_fn_c_try_compile "$LINENO"; then :
27036 ac_cv_have_intmax_t="yes"
27040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27041 /* end confdefs.h. */
27043 #include <stdint.h>
27055 if ac_fn_c_try_compile "$LINENO"; then :
27057 ac_cv_have_intmax_t="yes"
27061 ac_cv_have_intmax_t="no"
27065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_intmax_t" >&5
27074 $as_echo "$ac_cv_have_intmax_t" >&6; }
27075 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
27076 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
27081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_intmax_t type" >&5
27082 $as_echo_n "checking for u_intmax_t type... " >&6; }
27083 if ${ac_cv_have_u_intmax_t+:} false; then :
27084 $as_echo_n "(cached) " >&6
27087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27088 /* end confdefs.h. */
27090 #include <sys/types.h>
27096 u_intmax_t a; a = 1;
27102 if ac_fn_c_try_compile "$LINENO"; then :
27104 ac_cv_have_u_intmax_t="yes"
27108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27109 /* end confdefs.h. */
27111 #include <stdint.h>
27117 u_intmax_t a; a = 1;
27123 if ac_fn_c_try_compile "$LINENO"; then :
27125 ac_cv_have_u_intmax_t="yes"
27129 ac_cv_have_u_intmax_t="no"
27133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_intmax_t" >&5
27142 $as_echo "$ac_cv_have_u_intmax_t" >&6; }
27143 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
27144 $as_echo "#define HAVE_U_INTMAX_T 1" >>confdefs.h
27149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intXX_t types" >&5
27150 $as_echo_n "checking for intXX_t types... " >&6; }
27151 if ${ac_cv_have_intxx_t+:} false; then :
27152 $as_echo_n "(cached) " >&6
27155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27156 /* end confdefs.h. */
27158 #include <sys/types.h>
27164 int8_t a; int16_t b; int32_t c; a = b = c = 1;
27170 if ac_fn_c_try_compile "$LINENO"; then :
27172 ac_cv_have_intxx_t="yes"
27176 ac_cv_have_intxx_t="no"
27180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_intxx_t" >&5
27185 $as_echo "$ac_cv_have_intxx_t" >&6; }
27186 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
27187 $as_echo "#define HAVE_INTXX_T 1" >>confdefs.h
27192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t type" >&5
27193 $as_echo_n "checking for int64_t type... " >&6; }
27194 if ${ac_cv_have_int64_t+:} false; then :
27195 $as_echo_n "(cached) " >&6
27198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27199 /* end confdefs.h. */
27201 #include <sys/types.h>
27213 if ac_fn_c_try_compile "$LINENO"; then :
27215 ac_cv_have_int64_t="yes"
27219 ac_cv_have_int64_t="no"
27223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_int64_t" >&5
27228 $as_echo "$ac_cv_have_int64_t" >&6; }
27229 if test "x$ac_cv_have_int64_t" = "xyes" ; then
27230 $as_echo "#define HAVE_INT64_T 1" >>confdefs.h
27235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_intXX_t types" >&5
27236 $as_echo_n "checking for u_intXX_t types... " >&6; }
27237 if ${ac_cv_have_u_intxx_t+:} false; then :
27238 $as_echo_n "(cached) " >&6
27241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27242 /* end confdefs.h. */
27244 #include <sys/types.h>
27250 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
27256 if ac_fn_c_try_compile "$LINENO"; then :
27258 ac_cv_have_u_intxx_t="yes"
27262 ac_cv_have_u_intxx_t="no"
27266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_intxx_t" >&5
27271 $as_echo "$ac_cv_have_u_intxx_t" >&6; }
27272 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
27273 $as_echo "#define HAVE_U_INTXX_T 1" >>confdefs.h
27278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int64_t types" >&5
27279 $as_echo_n "checking for u_int64_t types... " >&6; }
27280 if ${ac_cv_have_u_int64_t+:} false; then :
27281 $as_echo_n "(cached) " >&6
27284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27285 /* end confdefs.h. */
27287 #include <sys/types.h>
27293 u_int64_t a; a = 1;
27299 if ac_fn_c_try_compile "$LINENO"; then :
27301 ac_cv_have_u_int64_t="yes"
27305 ac_cv_have_u_int64_t="no"
27309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_int64_t" >&5
27314 $as_echo "$ac_cv_have_u_int64_t" >&6; }
27315 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
27316 $as_echo "#define HAVE_U_INT64_T 1" >>confdefs.h
27321 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
27322 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
27324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
27325 $as_echo_n "checking for intXX_t and u_intXX_t types in sys/bitypes.h... " >&6; }
27326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27327 /* end confdefs.h. */
27329 #include <sys/bitypes.h>
27335 int8_t a; int16_t b; int32_t c;
27336 u_int8_t e; u_int16_t f; u_int32_t g;
27337 a = b = c = e = f = g = 1;
27343 if ac_fn_c_try_compile "$LINENO"; then :
27345 $as_echo "#define HAVE_U_INTXX_T 1" >>confdefs.h
27347 $as_echo "#define HAVE_INTXX_T 1" >>confdefs.h
27349 $as_echo "#define HAVE_SYS_BITYPES_H 1" >>confdefs.h
27351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27352 $as_echo "yes" >&6; }
27356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27357 $as_echo "no" >&6; }
27361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27364 if test -z "$have_u_intxx_t" ; then
27365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uintXX_t types" >&5
27366 $as_echo_n "checking for uintXX_t types... " >&6; }
27367 if ${ac_cv_have_uintxx_t+:} false; then :
27368 $as_echo_n "(cached) " >&6
27371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27372 /* end confdefs.h. */
27374 #include <sys/types.h>
27380 uint8_t a; uint16_t b;
27381 uint32_t c; a = b = c = 1;
27387 if ac_fn_c_try_compile "$LINENO"; then :
27389 ac_cv_have_uintxx_t="yes"
27393 ac_cv_have_uintxx_t="no"
27397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_uintxx_t" >&5
27402 $as_echo "$ac_cv_have_uintxx_t" >&6; }
27403 if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
27404 $as_echo "#define HAVE_UINTXX_T 1" >>confdefs.h
27409 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
27410 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
27412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
27413 $as_echo_n "checking for int64_t and u_int64_t types in sys/bitypes.h... " >&6; }
27414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27415 /* end confdefs.h. */
27417 #include <sys/bitypes.h>
27423 int64_t a; u_int64_t b;
27430 if ac_fn_c_try_compile "$LINENO"; then :
27432 $as_echo "#define HAVE_U_INT64_T 1" >>confdefs.h
27434 $as_echo "#define HAVE_INT64_T 1" >>confdefs.h
27436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27437 $as_echo "yes" >&6; }
27441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27442 $as_echo "no" >&6; }
27446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27449 if (test -z "$have_uintxx_t" && \
27450 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
27452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uintXX_t types in sys/bitypes.h" >&5
27453 $as_echo_n "checking for uintXX_t types in sys/bitypes.h... " >&6; }
27454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27455 /* end confdefs.h. */
27457 #include <sys/bitypes.h>
27463 uint8_t a; uint16_t b;
27464 uint32_t c; a = b = c = 1;
27470 if ac_fn_c_try_compile "$LINENO"; then :
27472 $as_echo "#define HAVE_UINTXX_T 1" >>confdefs.h
27474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27475 $as_echo "yes" >&6; }
27479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27480 $as_echo "no" >&6; }
27484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27503 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
27504 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
27505 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
27506 cat >>confdefs.h <<_ACEOF
27507 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
27511 echo 'configure: cannot find needed function.'; exit 1
27517 for ac_func in fchdir
27519 ac_fn_c_check_func "$LINENO" "fchdir" "ac_cv_func_fchdir"
27520 if test "x$ac_cv_func_fchdir" = xyes; then :
27521 cat >>confdefs.h <<_ACEOF
27522 #define HAVE_FCHDIR 1
27524 $as_echo "#define HAVE_FCHDIR 1" >>confdefs.h
27529 for ac_func in strtoll
27531 ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll"
27532 if test "x$ac_cv_func_strtoll" = xyes; then :
27533 cat >>confdefs.h <<_ACEOF
27534 #define HAVE_STRTOLL 1
27536 $as_echo "#define HAVE_STRTOLL 1" >>confdefs.h
27541 for ac_func in posix_fadvise
27543 ac_fn_c_check_func "$LINENO" "posix_fadvise" "ac_cv_func_posix_fadvise"
27544 if test "x$ac_cv_func_posix_fadvise" = xyes; then :
27545 cat >>confdefs.h <<_ACEOF
27546 #define HAVE_POSIX_FADVISE 1
27552 for ac_func in fdatasync
27554 ac_fn_c_check_func "$LINENO" "fdatasync" "ac_cv_func_fdatasync"
27555 if test "x$ac_cv_func_fdatasync" = xyes; then :
27556 cat >>confdefs.h <<_ACEOF
27557 #define HAVE_FDATASYNC 1
27564 for ac_func in chflags
27566 ac_fn_c_check_func "$LINENO" "chflags" "ac_cv_func_chflags"
27567 if test "x$ac_cv_func_chflags" = xyes; then :
27568 cat >>confdefs.h <<_ACEOF
27569 #define HAVE_CHFLAGS 1
27576 for ac_func in snprintf vsnprintf gethostid fseeko
27578 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
27579 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
27580 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
27581 cat >>confdefs.h <<_ACEOF
27582 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
27589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
27590 $as_echo_n "checking for va_copy... " >&6; }
27591 if ${ba_cv_va_copy+:} false; then :
27592 $as_echo_n "(cached) " >&6
27595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27596 /* end confdefs.h. */
27598 #include <stdarg.h>
27599 void use_va_copy(va_list args){va_list args2; va_copy(args2,args); va_end(args2);}
27600 void call_use_va_copy(int junk,...){va_list args; va_start(args,junk); use_va_copy(args); va_end(args);}
27606 call_use_va_copy(1,2,3)
27612 if ac_fn_c_try_link "$LINENO"; then :
27622 rm -f core conftest.err conftest.$ac_objext \
27623 conftest$ac_exeext conftest.$ac_ext
27627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_va_copy" >&5
27628 $as_echo "$ba_cv_va_copy" >&6; }
27629 test $ba_cv_va_copy = yes &&
27630 $as_echo "#define HAVE_VA_COPY 1" >>confdefs.h
27633 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
27635 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
27636 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
27637 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
27638 cat >>confdefs.h <<_ACEOF
27639 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
27646 # If resolver functions are not in libc check for -lnsl or -lresolv.
27647 ac_fn_c_check_func "$LINENO" "gethostbyname_r" "ac_cv_func_gethostbyname_r"
27648 if test "x$ac_cv_func_gethostbyname_r" = xyes; then :
27649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using libc's resolver" >&5
27650 $as_echo "using libc's resolver" >&6; }
27652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname_r in -lnsl" >&5
27653 $as_echo_n "checking for gethostbyname_r in -lnsl... " >&6; }
27654 if ${ac_cv_lib_nsl_gethostbyname_r+:} false; then :
27655 $as_echo_n "(cached) " >&6
27657 ac_check_lib_save_LIBS=$LIBS
27659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27660 /* end confdefs.h. */
27662 /* Override any GCC internal prototype to avoid an error.
27663 Use char because int might match the return type of a GCC
27664 builtin and then its argument prototype would still apply. */
27668 char gethostbyname_r ();
27672 return gethostbyname_r ();
27677 if ac_fn_c_try_link "$LINENO"; then :
27678 ac_cv_lib_nsl_gethostbyname_r=yes
27680 ac_cv_lib_nsl_gethostbyname_r=no
27682 rm -f core conftest.err conftest.$ac_objext \
27683 conftest$ac_exeext conftest.$ac_ext
27684 LIBS=$ac_check_lib_save_LIBS
27686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
27687 $as_echo "$ac_cv_lib_nsl_gethostbyname_r" >&6; }
27688 if test "x$ac_cv_lib_nsl_gethostbyname_r" = xyes; then :
27689 cat >>confdefs.h <<_ACEOF
27690 #define HAVE_LIBNSL 1
27697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname_r in -lresolv" >&5
27698 $as_echo_n "checking for gethostbyname_r in -lresolv... " >&6; }
27699 if ${ac_cv_lib_resolv_gethostbyname_r+:} false; then :
27700 $as_echo_n "(cached) " >&6
27702 ac_check_lib_save_LIBS=$LIBS
27703 LIBS="-lresolv $LIBS"
27704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27705 /* end confdefs.h. */
27707 /* Override any GCC internal prototype to avoid an error.
27708 Use char because int might match the return type of a GCC
27709 builtin and then its argument prototype would still apply. */
27713 char gethostbyname_r ();
27717 return gethostbyname_r ();
27722 if ac_fn_c_try_link "$LINENO"; then :
27723 ac_cv_lib_resolv_gethostbyname_r=yes
27725 ac_cv_lib_resolv_gethostbyname_r=no
27727 rm -f core conftest.err conftest.$ac_objext \
27728 conftest$ac_exeext conftest.$ac_ext
27729 LIBS=$ac_check_lib_save_LIBS
27731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
27732 $as_echo "$ac_cv_lib_resolv_gethostbyname_r" >&6; }
27733 if test "x$ac_cv_lib_resolv_gethostbyname_r" = xyes; then :
27734 cat >>confdefs.h <<_ACEOF
27735 #define HAVE_LIBRESOLV 1
27738 LIBS="-lresolv $LIBS"
27745 for ac_func in inet_pton
27747 ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton"
27748 if test "x$ac_cv_func_inet_pton" = xyes; then :
27749 cat >>confdefs.h <<_ACEOF
27750 #define HAVE_INET_PTON 1
27752 $as_echo "#define HAVE_INET_PTON 1" >>confdefs.h
27757 for ac_func in inet_ntop
27759 ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
27760 if test "x$ac_cv_func_inet_ntop" = xyes; then :
27761 cat >>confdefs.h <<_ACEOF
27762 #define HAVE_INET_NTOP 1
27764 $as_echo "#define HAVE_INET_NTOP 1" >>confdefs.h
27769 for ac_func in gethostbyname2
27771 ac_fn_c_check_func "$LINENO" "gethostbyname2" "ac_cv_func_gethostbyname2"
27772 if test "x$ac_cv_func_gethostbyname2" = xyes; then :
27773 cat >>confdefs.h <<_ACEOF
27774 #define HAVE_GETHOSTBYNAME2 1
27776 $as_echo "#define HAVE_GETHOSTBYNAME2 1" >>confdefs.h
27782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr has a sa_len field" >&5
27783 $as_echo_n "checking for struct sockaddr has a sa_len field... " >&6; }
27784 if ${ac_cv_struct_sockaddr_sa_len+:} false; then :
27785 $as_echo_n "(cached) " >&6
27788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27789 /* end confdefs.h. */
27791 #include <sys/socket.h>
27797 struct sockaddr s; s.sa_len;
27803 if ac_fn_c_try_compile "$LINENO"; then :
27805 ac_cv_struct_sockaddr_sa_len=yes
27808 ac_cv_struct_sockaddr_sa_len=no
27812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_sockaddr_sa_len" >&5
27817 $as_echo "$ac_cv_struct_sockaddr_sa_len" >&6; }
27819 if test $ac_cv_struct_sockaddr_sa_len = yes; then
27821 $as_echo "#define HAVE_SA_LEN 1" >>confdefs.h
27825 for ac_func in strftime
27827 ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
27828 if test "x$ac_cv_func_strftime" = xyes; then :
27829 cat >>confdefs.h <<_ACEOF
27830 #define HAVE_STRFTIME 1
27834 # strftime is in -lintl on SCO UNIX.
27835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
27836 $as_echo_n "checking for strftime in -lintl... " >&6; }
27837 if ${ac_cv_lib_intl_strftime+:} false; then :
27838 $as_echo_n "(cached) " >&6
27840 ac_check_lib_save_LIBS=$LIBS
27841 LIBS="-lintl $LIBS"
27842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27843 /* end confdefs.h. */
27845 /* Override any GCC internal prototype to avoid an error.
27846 Use char because int might match the return type of a GCC
27847 builtin and then its argument prototype would still apply. */
27855 return strftime ();
27860 if ac_fn_c_try_link "$LINENO"; then :
27861 ac_cv_lib_intl_strftime=yes
27863 ac_cv_lib_intl_strftime=no
27865 rm -f core conftest.err conftest.$ac_objext \
27866 conftest$ac_exeext conftest.$ac_ext
27867 LIBS=$ac_check_lib_save_LIBS
27869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
27870 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
27871 if test "x$ac_cv_lib_intl_strftime" = xyes; then :
27872 $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
27874 LIBS="-lintl $LIBS"
27880 for ac_func in vprintf
27882 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
27883 if test "x$ac_cv_func_vprintf" = xyes; then :
27884 cat >>confdefs.h <<_ACEOF
27885 #define HAVE_VPRINTF 1
27888 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
27889 if test "x$ac_cv_func__doprnt" = xyes; then :
27891 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
27899 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
27900 # for constant arguments. Useless!
27901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
27902 $as_echo_n "checking for working alloca.h... " >&6; }
27903 if ${ac_cv_working_alloca_h+:} false; then :
27904 $as_echo_n "(cached) " >&6
27906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27907 /* end confdefs.h. */
27908 #include <alloca.h>
27912 char *p = (char *) alloca (2 * sizeof (int));
27918 if ac_fn_c_try_link "$LINENO"; then :
27919 ac_cv_working_alloca_h=yes
27921 ac_cv_working_alloca_h=no
27923 rm -f core conftest.err conftest.$ac_objext \
27924 conftest$ac_exeext conftest.$ac_ext
27926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
27927 $as_echo "$ac_cv_working_alloca_h" >&6; }
27928 if test $ac_cv_working_alloca_h = yes; then
27930 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
27934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
27935 $as_echo_n "checking for alloca... " >&6; }
27936 if ${ac_cv_func_alloca_works+:} false; then :
27937 $as_echo_n "(cached) " >&6
27939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27940 /* end confdefs.h. */
27942 # define alloca __builtin_alloca
27945 # include <malloc.h>
27946 # define alloca _alloca
27948 # ifdef HAVE_ALLOCA_H
27949 # include <alloca.h>
27954 # ifndef alloca /* predefined by HP cc +Olibcalls */
27955 void *alloca (size_t);
27965 char *p = (char *) alloca (1);
27971 if ac_fn_c_try_link "$LINENO"; then :
27972 ac_cv_func_alloca_works=yes
27974 ac_cv_func_alloca_works=no
27976 rm -f core conftest.err conftest.$ac_objext \
27977 conftest$ac_exeext conftest.$ac_ext
27979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
27980 $as_echo "$ac_cv_func_alloca_works" >&6; }
27982 if test $ac_cv_func_alloca_works = yes; then
27984 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
27987 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
27988 # that cause trouble. Some versions do not even contain alloca or
27989 # contain a buggy version. If you still want to use their alloca,
27990 # use ar to extract alloca.o from them instead of compiling alloca.c.
27992 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
27994 $as_echo "#define C_ALLOCA 1" >>confdefs.h
27997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
27998 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
27999 if ${ac_cv_os_cray+:} false; then :
28000 $as_echo_n "(cached) " >&6
28002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28003 /* end confdefs.h. */
28004 #if defined CRAY && ! defined CRAY2
28011 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28012 $EGREP "webecray" >/dev/null 2>&1; then :
28020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
28021 $as_echo "$ac_cv_os_cray" >&6; }
28022 if test $ac_cv_os_cray = yes; then
28023 for ac_func in _getb67 GETB67 getb67; do
28024 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28025 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28026 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
28028 cat >>confdefs.h <<_ACEOF
28029 #define CRAY_STACKSEG_END $ac_func
28038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
28039 $as_echo_n "checking stack direction for C alloca... " >&6; }
28040 if ${ac_cv_c_stack_direction+:} false; then :
28041 $as_echo_n "(cached) " >&6
28043 if test "$cross_compiling" = yes; then :
28044 ac_cv_c_stack_direction=0
28046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28047 /* end confdefs.h. */
28048 $ac_includes_default
28050 find_stack_direction ()
28052 static char *addr = 0;
28057 return find_stack_direction ();
28060 return (&dummy > addr) ? 1 : -1;
28066 return find_stack_direction () < 0;
28069 if ac_fn_c_try_run "$LINENO"; then :
28070 ac_cv_c_stack_direction=1
28072 ac_cv_c_stack_direction=-1
28074 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28075 conftest.$ac_objext conftest.beam conftest.$ac_ext
28079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
28080 $as_echo "$ac_cv_c_stack_direction" >&6; }
28081 cat >>confdefs.h <<_ACEOF
28082 #define STACK_DIRECTION $ac_cv_c_stack_direction
28088 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
28089 # -lseq on Dynix/PTX, -lgen on Unixware.
28090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getmntent" >&5
28091 $as_echo_n "checking for library containing getmntent... " >&6; }
28092 if ${ac_cv_search_getmntent+:} false; then :
28093 $as_echo_n "(cached) " >&6
28095 ac_func_search_save_LIBS=$LIBS
28096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28097 /* end confdefs.h. */
28099 /* Override any GCC internal prototype to avoid an error.
28100 Use char because int might match the return type of a GCC
28101 builtin and then its argument prototype would still apply. */
28109 return getmntent ();
28114 for ac_lib in '' sun seq gen; do
28115 if test -z "$ac_lib"; then
28116 ac_res="none required"
28119 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28121 if ac_fn_c_try_link "$LINENO"; then :
28122 ac_cv_search_getmntent=$ac_res
28124 rm -f core conftest.err conftest.$ac_objext \
28126 if ${ac_cv_search_getmntent+:} false; then :
28130 if ${ac_cv_search_getmntent+:} false; then :
28133 ac_cv_search_getmntent=no
28135 rm conftest.$ac_ext
28136 LIBS=$ac_func_search_save_LIBS
28138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getmntent" >&5
28139 $as_echo "$ac_cv_search_getmntent" >&6; }
28140 ac_res=$ac_cv_search_getmntent
28141 if test "$ac_res" != no; then :
28142 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28143 ac_cv_func_getmntent=yes
28145 $as_echo "#define HAVE_GETMNTENT 1" >>confdefs.h
28148 ac_cv_func_getmntent=no
28152 for ac_func in getmntinfo
28154 ac_fn_c_check_func "$LINENO" "getmntinfo" "ac_cv_func_getmntinfo"
28155 if test "x$ac_cv_func_getmntinfo" = xyes; then :
28156 cat >>confdefs.h <<_ACEOF
28157 #define HAVE_GETMNTINFO 1
28159 $as_echo "#define HAVE_GETMNTINFO 1" >>confdefs.h
28164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
28165 $as_echo_n "checking whether closedir returns void... " >&6; }
28166 if ${ac_cv_func_closedir_void+:} false; then :
28167 $as_echo_n "(cached) " >&6
28169 if test "$cross_compiling" = yes; then :
28170 ac_cv_func_closedir_void=yes
28172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28173 /* end confdefs.h. */
28174 $ac_includes_default
28175 #include <$ac_header_dirent>
28176 #ifndef __cplusplus
28183 return closedir (opendir (".")) != 0;
28188 if ac_fn_c_try_run "$LINENO"; then :
28189 ac_cv_func_closedir_void=no
28191 ac_cv_func_closedir_void=yes
28193 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28194 conftest.$ac_objext conftest.beam conftest.$ac_ext
28198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
28199 $as_echo "$ac_cv_func_closedir_void" >&6; }
28200 if test $ac_cv_func_closedir_void = yes; then
28202 $as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
28206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
28207 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
28208 if ${ac_cv_func_setpgrp_void+:} false; then :
28209 $as_echo_n "(cached) " >&6
28211 if test "$cross_compiling" = yes; then :
28212 as_fn_error $? "cannot check setpgrp when cross compiling" "$LINENO" 5
28214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28215 /* end confdefs.h. */
28216 $ac_includes_default
28220 /* If this system has a BSD-style setpgrp which takes arguments,
28221 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
28222 exit successfully. */
28223 return setpgrp (1,1) != -1;
28228 if ac_fn_c_try_run "$LINENO"; then :
28229 ac_cv_func_setpgrp_void=no
28231 ac_cv_func_setpgrp_void=yes
28233 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28234 conftest.$ac_objext conftest.beam conftest.$ac_ext
28238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
28239 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
28240 if test $ac_cv_func_setpgrp_void = yes; then
28242 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
28245 # AC_FUNC_FNMATCH dnl use local version
28247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettext in -lintl" >&5
28248 $as_echo_n "checking for gettext in -lintl... " >&6; }
28249 if ${ac_cv_lib_intl_gettext+:} false; then :
28250 $as_echo_n "(cached) " >&6
28252 ac_check_lib_save_LIBS=$LIBS
28253 LIBS="-lintl $LIBS"
28254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28255 /* end confdefs.h. */
28257 /* Override any GCC internal prototype to avoid an error.
28258 Use char because int might match the return type of a GCC
28259 builtin and then its argument prototype would still apply. */
28272 if ac_fn_c_try_link "$LINENO"; then :
28273 ac_cv_lib_intl_gettext=yes
28275 ac_cv_lib_intl_gettext=no
28277 rm -f core conftest.err conftest.$ac_objext \
28278 conftest$ac_exeext conftest.$ac_ext
28279 LIBS=$ac_check_lib_save_LIBS
28281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_gettext" >&5
28282 $as_echo "$ac_cv_lib_intl_gettext" >&6; }
28283 if test "x$ac_cv_lib_intl_gettext" = xyes; then :
28284 LIBS="$LIBS -lintl"
28288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpwnam in -lsun" >&5
28289 $as_echo_n "checking for getpwnam in -lsun... " >&6; }
28290 if ${ac_cv_lib_sun_getpwnam+:} false; then :
28291 $as_echo_n "(cached) " >&6
28293 ac_check_lib_save_LIBS=$LIBS
28295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28296 /* end confdefs.h. */
28298 /* Override any GCC internal prototype to avoid an error.
28299 Use char because int might match the return type of a GCC
28300 builtin and then its argument prototype would still apply. */
28308 return getpwnam ();
28313 if ac_fn_c_try_link "$LINENO"; then :
28314 ac_cv_lib_sun_getpwnam=yes
28316 ac_cv_lib_sun_getpwnam=no
28318 rm -f core conftest.err conftest.$ac_objext \
28319 conftest$ac_exeext conftest.$ac_ext
28320 LIBS=$ac_check_lib_save_LIBS
28322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sun_getpwnam" >&5
28323 $as_echo "$ac_cv_lib_sun_getpwnam" >&6; }
28324 if test "x$ac_cv_lib_sun_getpwnam" = xyes; then :
28325 cat >>confdefs.h <<_ACEOF
28326 #define HAVE_LIBSUN 1
28334 for ac_header in zlib.h
28336 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
28337 if test "x$ac_cv_header_zlib_h" = xyes; then :
28338 cat >>confdefs.h <<_ACEOF
28339 #define HAVE_ZLIB_H 1
28346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
28347 $as_echo_n "checking for deflate in -lz... " >&6; }
28348 if ${ac_cv_lib_z_deflate+:} false; then :
28349 $as_echo_n "(cached) " >&6
28351 ac_check_lib_save_LIBS=$LIBS
28353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28354 /* end confdefs.h. */
28356 /* Override any GCC internal prototype to avoid an error.
28357 Use char because int might match the return type of a GCC
28358 builtin and then its argument prototype would still apply. */
28371 if ac_fn_c_try_link "$LINENO"; then :
28372 ac_cv_lib_z_deflate=yes
28374 ac_cv_lib_z_deflate=no
28376 rm -f core conftest.err conftest.$ac_objext \
28377 conftest$ac_exeext conftest.$ac_ext
28378 LIBS=$ac_check_lib_save_LIBS
28380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
28381 $as_echo "$ac_cv_lib_z_deflate" >&6; }
28382 if test "x$ac_cv_lib_z_deflate" = xyes; then :
28387 if test x$ZLIBS = x-lz; then
28388 $as_echo "#define HAVE_LIBZ 1" >>confdefs.h
28397 # Check whether --enable-afs was given.
28398 if test "${enable_afs+set}" = set; then :
28399 enableval=$enable_afs;
28400 if test x$enableval = xyes; then
28402 elif test x$enableval = xno; then
28411 if test x$support_afs = xyes -o x$support_afs = xauto; then
28413 # Check whether --with-afsdir was given.
28414 if test "${with_afsdir+set}" = set; then :
28415 withval=$with_afsdir; with_afsdir=$withval
28420 if test x$with_afsdir = x; then
28421 for root in /usr /usr/local; do
28422 if test -d ${root}/include/afs/ ; then
28423 with_afsdir=${root}
28429 AFS_CFLAGS="-I${with_afsdir}/include"
28431 saved_CFLAGS="${CFLAGS}"
28432 CFLAGS="${AFS_CFLAGS} ${saved_CFLAGS}"
28434 for ac_header in afs/stds.h
28436 ac_fn_c_check_header_mongrel "$LINENO" "afs/stds.h" "ac_cv_header_afs_stds_h" "$ac_includes_default"
28437 if test "x$ac_cv_header_afs_stds_h" = xyes; then :
28438 cat >>confdefs.h <<_ACEOF
28439 #define HAVE_AFS_STDS_H 1
28447 CFLAGS="${saved_CFLAGS}"
28449 for dir in ${with_afsdir}/lib ${with_afsdir}/lib/afs
28451 for arch_type in .a .so
28453 A=`test -f ${dir}/libsys${arch_type} && nm ${dir}/libsys${arch_type} | grep pioctl`
28455 if test $pkg = 0; then
28457 AFS_LIBS="-L${dir} -lsys -lrx -llwp ${dir}/util.a"
28463 if test x$support_afs = xyes -a $have_afs != yes; then
28464 as_fn_error $? "afs support explicitly enabled but no supported afs implementation found,
28465 please either load the afs libraries or rerun configure without --enable-afs" "$LINENO" 5
28467 if test $have_afs = yes; then
28469 $as_echo "#define HAVE_AFS 1" >>confdefs.h
28472 $as_echo "#define HAVE_AFS_ACL 1" >>confdefs.h
28482 # Check whether --enable-acl was given.
28483 if test "${enable_acl+set}" = set; then :
28484 enableval=$enable_acl;
28485 if test x$enableval = xyes; then
28487 elif test x$enableval = xno; then
28496 have_extended_acl=no
28497 if test x$support_acl = xyes -o x$support_acl = xauto; then
28498 ac_fn_c_check_header_mongrel "$LINENO" "sys/acl.h" "ac_cv_header_sys_acl_h" "$ac_includes_default"
28499 if test "x$ac_cv_header_sys_acl_h" = xyes; then :
28501 $as_echo "#define HAVE_SYS_ACL_H 1" >>confdefs.h
28507 ac_fn_c_check_func "$LINENO" "acl_get_file" "ac_cv_func_acl_get_file"
28508 if test "x$ac_cv_func_acl_get_file" = xyes; then :
28516 if test $have_acl = no; then
28517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get_file in -lacl" >&5
28518 $as_echo_n "checking for acl_get_file in -lacl... " >&6; }
28519 if ${ac_cv_lib_acl_acl_get_file+:} false; then :
28520 $as_echo_n "(cached) " >&6
28522 ac_check_lib_save_LIBS=$LIBS
28524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28525 /* end confdefs.h. */
28527 /* Override any GCC internal prototype to avoid an error.
28528 Use char because int might match the return type of a GCC
28529 builtin and then its argument prototype would still apply. */
28533 char acl_get_file ();
28537 return acl_get_file ();
28542 if ac_fn_c_try_link "$LINENO"; then :
28543 ac_cv_lib_acl_acl_get_file=yes
28545 ac_cv_lib_acl_acl_get_file=no
28547 rm -f core conftest.err conftest.$ac_objext \
28548 conftest$ac_exeext conftest.$ac_ext
28549 LIBS=$ac_check_lib_save_LIBS
28551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_acl_acl_get_file" >&5
28552 $as_echo "$ac_cv_lib_acl_acl_get_file" >&6; }
28553 if test "x$ac_cv_lib_acl_acl_get_file" = xyes; then :
28556 if test $have_afs = yes; then
28557 if test -d /usr/lib64/; then
28558 FDLIBS="-L/usr/lib64 -lacl $FDLIBS"
28560 FDLIBS="-L/usr/lib -lacl $FDLIBS"
28563 FDLIBS="-lacl $FDLIBS"
28571 if test $have_acl = no; then
28572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get_file in -lpacl" >&5
28573 $as_echo_n "checking for acl_get_file in -lpacl... " >&6; }
28574 if ${ac_cv_lib_pacl_acl_get_file+:} false; then :
28575 $as_echo_n "(cached) " >&6
28577 ac_check_lib_save_LIBS=$LIBS
28578 LIBS="-lpacl $LIBS"
28579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28580 /* end confdefs.h. */
28582 /* Override any GCC internal prototype to avoid an error.
28583 Use char because int might match the return type of a GCC
28584 builtin and then its argument prototype would still apply. */
28588 char acl_get_file ();
28592 return acl_get_file ();
28597 if ac_fn_c_try_link "$LINENO"; then :
28598 ac_cv_lib_pacl_acl_get_file=yes
28600 ac_cv_lib_pacl_acl_get_file=no
28602 rm -f core conftest.err conftest.$ac_objext \
28603 conftest$ac_exeext conftest.$ac_ext
28604 LIBS=$ac_check_lib_save_LIBS
28606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pacl_acl_get_file" >&5
28607 $as_echo "$ac_cv_lib_pacl_acl_get_file" >&6; }
28608 if test "x$ac_cv_lib_pacl_acl_get_file" = xyes; then :
28611 FDLIBS="-lpacl $FDLIBS"
28618 if test $have_acl = no -a \
28619 x${HAVE_SUN_OS_TRUE} = x; then
28620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acltotext in -lsec" >&5
28621 $as_echo_n "checking for acltotext in -lsec... " >&6; }
28622 if ${ac_cv_lib_sec_acltotext+:} false; then :
28623 $as_echo_n "(cached) " >&6
28625 ac_check_lib_save_LIBS=$LIBS
28627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28628 /* end confdefs.h. */
28630 /* Override any GCC internal prototype to avoid an error.
28631 Use char because int might match the return type of a GCC
28632 builtin and then its argument prototype would still apply. */
28640 return acltotext ();
28645 if ac_fn_c_try_link "$LINENO"; then :
28646 ac_cv_lib_sec_acltotext=yes
28648 ac_cv_lib_sec_acltotext=no
28650 rm -f core conftest.err conftest.$ac_objext \
28651 conftest$ac_exeext conftest.$ac_ext
28652 LIBS=$ac_check_lib_save_LIBS
28654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sec_acltotext" >&5
28655 $as_echo "$ac_cv_lib_sec_acltotext" >&6; }
28656 if test "x$ac_cv_lib_sec_acltotext" = xyes; then :
28659 FDLIBS="-lsec $FDLIBS"
28661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_totext in -lsec" >&5
28662 $as_echo_n "checking for acl_totext in -lsec... " >&6; }
28663 if ${ac_cv_lib_sec_acl_totext+:} false; then :
28664 $as_echo_n "(cached) " >&6
28666 ac_check_lib_save_LIBS=$LIBS
28668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28669 /* end confdefs.h. */
28671 /* Override any GCC internal prototype to avoid an error.
28672 Use char because int might match the return type of a GCC
28673 builtin and then its argument prototype would still apply. */
28677 char acl_totext ();
28681 return acl_totext ();
28686 if ac_fn_c_try_link "$LINENO"; then :
28687 ac_cv_lib_sec_acl_totext=yes
28689 ac_cv_lib_sec_acl_totext=no
28691 rm -f core conftest.err conftest.$ac_objext \
28692 conftest$ac_exeext conftest.$ac_ext
28693 LIBS=$ac_check_lib_save_LIBS
28695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sec_acl_totext" >&5
28696 $as_echo "$ac_cv_lib_sec_acl_totext" >&6; }
28697 if test "x$ac_cv_lib_sec_acl_totext" = xyes; then :
28699 have_extended_acl=yes
28710 if test $have_acl = no -a \
28711 x${HAVE_AIX_OS_TRUE} = x; then
28712 ac_fn_c_check_func "$LINENO" "acl_get" "ac_cv_func_acl_get"
28713 if test "x$ac_cv_func_acl_get" = xyes; then :
28717 ac_fn_c_check_func "$LINENO" "aclx_get" "ac_cv_func_aclx_get"
28718 if test "x$ac_cv_func_aclx_get" = xyes; then :
28720 have_extended_acl=yes
28731 if test x$support_acl = xyes -a $have_acl != yes; then
28732 as_fn_error $? "acl support explicitly enabled but no supported acl implementation found,
28733 please either load the acl libraries or rerun configure without --enable-acl" "$LINENO" 5
28735 if test $have_acl = yes; then
28737 $as_echo "#define HAVE_ACL 1" >>confdefs.h
28741 if test $have_extended_acl = yes; then
28743 $as_echo "#define HAVE_EXTENDED_ACL 1" >>confdefs.h
28750 # Check whether --enable-xattr was given.
28751 if test "${enable_xattr+set}" = set; then :
28752 enableval=$enable_xattr;
28753 if test x$enableval = xyes; then
28755 elif test x$enableval = xno; then
28764 if test x$support_xattr = xyes -o x$support_xattr = xauto; then
28765 if test x${HAVE_FREEBSD_OS_TRUE} = x -o \
28766 x${HAVE_NETBSD_OS_TRUE} = x -o \
28767 x${HAVE_OPENBSD_OS_TRUE} = x; then
28768 ac_fn_c_check_header_mongrel "$LINENO" "sys/extattr.h" "ac_cv_header_sys_extattr_h" "$ac_includes_default"
28769 if test "x$ac_cv_header_sys_extattr_h" = xyes; then :
28771 $as_echo "#define HAVE_SYS_EXTATTR_H 1" >>confdefs.h
28776 ac_fn_c_check_header_mongrel "$LINENO" "libutil.h" "ac_cv_header_libutil_h" "$ac_includes_default"
28777 if test "x$ac_cv_header_libutil_h" = xyes; then :
28779 $as_echo "#define HAVE_LIBUTIL_H 1" >>confdefs.h
28784 for ac_func in extattr_get_link extattr_set_link extattr_list_link
28786 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28787 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28788 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
28789 cat >>confdefs.h <<_ACEOF
28790 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28795 $as_echo "#define HAVE_EXTATTR_GET_LINK 1" >>confdefs.h
28798 $as_echo "#define HAVE_EXTATTR_SET_LINK 1" >>confdefs.h
28801 $as_echo "#define HAVE_EXTATTR_LIST_LINK 1" >>confdefs.h
28809 if test $have_xattr = no; then
28810 for ac_func in extattr_get_file extattr_set_file extattr_list_file
28812 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28813 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28814 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
28815 cat >>confdefs.h <<_ACEOF
28816 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28821 $as_echo "#define HAVE_EXTATTR_GET_FILE 1" >>confdefs.h
28824 $as_echo "#define HAVE_EXTATTR_SET_FILE 1" >>confdefs.h
28827 $as_echo "#define HAVE_EXTATTR_LIST_FILE 1" >>confdefs.h
28836 if test $have_xattr = yes; then
28837 have_extattr_string_in_libc=no
28838 for ac_func in extattr_namespace_to_string extattr_string_to_namespace
28840 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28841 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28842 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
28843 cat >>confdefs.h <<_ACEOF
28844 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28847 have_extattr_string_in_libc=yes
28849 $as_echo "#define HAVE_EXTATTR_NAMESPACE_TO_STRING 1" >>confdefs.h
28852 $as_echo "#define HAVE_EXTATTR_STRING_TO_NAMESPACE 1" >>confdefs.h
28860 if test $have_extattr_string_in_libc = no; then
28861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extattr_namespace_to_string extattr_string_to_namespace in -lutil" >&5
28862 $as_echo_n "checking for extattr_namespace_to_string extattr_string_to_namespace in -lutil... " >&6; }
28863 if ${ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace+:} false; then :
28864 $as_echo_n "(cached) " >&6
28866 ac_check_lib_save_LIBS=$LIBS
28867 LIBS="-lutil $LIBS"
28868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28869 /* end confdefs.h. */
28871 /* Override any GCC internal prototype to avoid an error.
28872 Use char because int might match the return type of a GCC
28873 builtin and then its argument prototype would still apply. */
28877 char extattr_namespace_to_string extattr_string_to_namespace ();
28881 return extattr_namespace_to_string extattr_string_to_namespace ();
28886 if ac_fn_c_try_link "$LINENO"; then :
28887 ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace=yes
28889 ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace=no
28891 rm -f core conftest.err conftest.$ac_objext \
28892 conftest$ac_exeext conftest.$ac_ext
28893 LIBS=$ac_check_lib_save_LIBS
28895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" >&5
28896 $as_echo "$ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" >&6; }
28897 if test "x$ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" = xyes; then :
28900 $as_echo "#define HAVE_EXTATTR_NAMESPACE_TO_STRING 1" >>confdefs.h
28903 $as_echo "#define HAVE_EXTATTR_STRING_TO_NAMESPACE 1" >>confdefs.h
28905 FDLIBS="-lutil $FDLIBS"
28914 if test $have_xattr = no -a \
28915 x${HAVE_AIX_OS_TRUE} = x; then
28916 ac_fn_c_check_header_mongrel "$LINENO" "sys/ea.h" "ac_cv_header_sys_ea_h" "$ac_includes_default"
28917 if test "x$ac_cv_header_sys_ea_h" = xyes; then :
28919 $as_echo "#define HAVE_SYS_EA_H 1" >>confdefs.h
28924 for ac_func in llistea lgetea lsetea
28926 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28927 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28928 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
28929 cat >>confdefs.h <<_ACEOF
28930 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28935 $as_echo "#define HAVE_LLISTEA 1" >>confdefs.h
28938 $as_echo "#define HAVE_LGETEA 1" >>confdefs.h
28941 $as_echo "#define HAVE_LSETEA 1" >>confdefs.h
28949 if test $have_xattr = no; then
28950 for ac_func in listea getea setea
28952 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28953 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28954 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
28955 cat >>confdefs.h <<_ACEOF
28956 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28961 $as_echo "#define HAVE_LISTEA 1" >>confdefs.h
28964 $as_echo "#define HAVE_GETEA 1" >>confdefs.h
28967 $as_echo "#define HAVE_SETEA 1" >>confdefs.h
28977 if test $have_xattr = no -a \
28978 x${HAVE_OSF1_OS_TRUE} = x; then
28979 ac_fn_c_check_header_mongrel "$LINENO" "sys/proplist.h" "ac_cv_header_sys_proplist_h" "$ac_includes_default"
28980 if test "x$ac_cv_header_sys_proplist_h" = xyes; then :
28982 $as_echo "#define HAVE_SYS_PROPLIST_H 1" >>confdefs.h
28987 for ac_func in getproplist get_proplist_entry sizeof_proplist_entry add_proplist_entry setproplist
28989 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28990 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28991 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
28992 cat >>confdefs.h <<_ACEOF
28993 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28998 $as_echo "#define HAVE_GETPROPLIST 1" >>confdefs.h
29001 $as_echo "#define HAVE_GET_PROPLIST_ENTRY 1" >>confdefs.h
29004 $as_echo "#define HAVE_SIZEOF_PROPLIST_ENTRY 1" >>confdefs.h
29007 $as_echo "#define HAVE_ADD_PROPLIST_ENTRY 1" >>confdefs.h
29010 $as_echo "#define HAVE_SETPROPLIST 1" >>confdefs.h
29019 if test $have_xattr = no -a \
29020 x${HAVE_SUN_OS_TRUE} = x; then
29021 ac_fn_c_check_header_mongrel "$LINENO" "sys/attr.h" "ac_cv_header_sys_attr_h" "$ac_includes_default"
29022 if test "x$ac_cv_header_sys_attr_h" = xyes; then :
29024 $as_echo "#define HAVE_SYS_ATTR_H 1" >>confdefs.h
29029 ac_fn_c_check_header_mongrel "$LINENO" "sys/nvpair.h" "ac_cv_header_sys_nvpair_h" "$ac_includes_default"
29030 if test "x$ac_cv_header_sys_nvpair_h" = xyes; then :
29032 $as_echo "#define HAVE_SYS_NVPAIR_H 1" >>confdefs.h
29037 ac_fn_c_check_header_mongrel "$LINENO" "attr.h" "ac_cv_header_attr_h" "$ac_includes_default"
29038 if test "x$ac_cv_header_attr_h" = xyes; then :
29040 $as_echo "#define HAVE_ATTR_H 1" >>confdefs.h
29046 for ac_func in openat fstatat unlinkat fchownat futimesat
29048 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29049 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29050 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
29051 cat >>confdefs.h <<_ACEOF
29052 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29057 $as_echo "#define HAVE_OPENAT 1" >>confdefs.h
29060 $as_echo "#define HAVE_FSTATAT 1" >>confdefs.h
29063 $as_echo "#define HAVE_UNLINKAT 1" >>confdefs.h
29066 $as_echo "#define HAVE_FCHOWNAT 1" >>confdefs.h
29069 $as_echo "#define HAVE_FUTIMESAT 1" >>confdefs.h
29077 if test $have_xattr = yes; then
29078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nvlist_next_nvpair in -lnvpair" >&5
29079 $as_echo_n "checking for nvlist_next_nvpair in -lnvpair... " >&6; }
29080 if ${ac_cv_lib_nvpair_nvlist_next_nvpair+:} false; then :
29081 $as_echo_n "(cached) " >&6
29083 ac_check_lib_save_LIBS=$LIBS
29084 LIBS="-lnvpair $LIBS"
29085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29086 /* end confdefs.h. */
29088 /* Override any GCC internal prototype to avoid an error.
29089 Use char because int might match the return type of a GCC
29090 builtin and then its argument prototype would still apply. */
29094 char nvlist_next_nvpair ();
29098 return nvlist_next_nvpair ();
29103 if ac_fn_c_try_link "$LINENO"; then :
29104 ac_cv_lib_nvpair_nvlist_next_nvpair=yes
29106 ac_cv_lib_nvpair_nvlist_next_nvpair=no
29108 rm -f core conftest.err conftest.$ac_objext \
29109 conftest$ac_exeext conftest.$ac_ext
29110 LIBS=$ac_check_lib_save_LIBS
29112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nvpair_nvlist_next_nvpair" >&5
29113 $as_echo "$ac_cv_lib_nvpair_nvlist_next_nvpair" >&6; }
29114 if test "x$ac_cv_lib_nvpair_nvlist_next_nvpair" = xyes; then :
29117 $as_echo "#define HAVE_NVLIST_NEXT_NVPAIR 1" >>confdefs.h
29119 FDLIBS="-lnvpair $FDLIBS"
29127 if test $have_xattr = no; then
29128 ac_fn_c_check_header_mongrel "$LINENO" "sys/xattr.h" "ac_cv_header_sys_xattr_h" "$ac_includes_default"
29129 if test "x$ac_cv_header_sys_xattr_h" = xyes; then :
29131 $as_echo "#define HAVE_SYS_XATTR_H 1" >>confdefs.h
29136 for ac_func in llistxattr lgetxattr lsetxattr
29138 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29139 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29140 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
29141 cat >>confdefs.h <<_ACEOF
29142 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29147 $as_echo "#define HAVE_LLISTXATTR 1" >>confdefs.h
29150 $as_echo "#define HAVE_LGETXATTR 1" >>confdefs.h
29153 $as_echo "#define HAVE_LSETXATTR 1" >>confdefs.h
29161 if test $have_xattr = no; then
29162 for ac_func in listxattr getxattr setxattr
29164 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29165 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29166 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
29167 cat >>confdefs.h <<_ACEOF
29168 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29173 $as_echo "#define HAVE_LISTXATTR 1" >>confdefs.h
29176 $as_echo "#define HAVE_GETXATTR 1" >>confdefs.h
29179 $as_echo "#define HAVE_SETXATTR 1" >>confdefs.h
29189 if test x$support_xattr = xyes -a $have_xattr != yes; then
29190 as_fn_error $? "xattr support explicitly enabled but no supported xattr implementation found,
29191 please either load the xattr libraries or rerun configure without --enable-xattr" "$LINENO" 5
29193 if test $have_xattr = yes; then
29195 $as_echo "#define HAVE_XATTR 1" >>confdefs.h
29202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
29203 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
29204 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
29205 $as_echo_n "(cached) " >&6
29207 ac_check_lib_save_LIBS=$LIBS
29208 LIBS="-lpthread $LIBS"
29209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29210 /* end confdefs.h. */
29212 /* Override any GCC internal prototype to avoid an error.
29213 Use char because int might match the return type of a GCC
29214 builtin and then its argument prototype would still apply. */
29218 char pthread_create ();
29222 return pthread_create ();
29227 if ac_fn_c_try_link "$LINENO"; then :
29228 ac_cv_lib_pthread_pthread_create=yes
29230 ac_cv_lib_pthread_pthread_create=no
29232 rm -f core conftest.err conftest.$ac_objext \
29233 conftest$ac_exeext conftest.$ac_ext
29234 LIBS=$ac_check_lib_save_LIBS
29236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
29237 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
29238 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
29239 PTHREAD_LIB="-lpthread"
29242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthreads" >&5
29243 $as_echo_n "checking for pthread_create in -lpthreads... " >&6; }
29244 if ${ac_cv_lib_pthreads_pthread_create+:} false; then :
29245 $as_echo_n "(cached) " >&6
29247 ac_check_lib_save_LIBS=$LIBS
29248 LIBS="-lpthreads $LIBS"
29249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29250 /* end confdefs.h. */
29252 /* Override any GCC internal prototype to avoid an error.
29253 Use char because int might match the return type of a GCC
29254 builtin and then its argument prototype would still apply. */
29258 char pthread_create ();
29262 return pthread_create ();
29267 if ac_fn_c_try_link "$LINENO"; then :
29268 ac_cv_lib_pthreads_pthread_create=yes
29270 ac_cv_lib_pthreads_pthread_create=no
29272 rm -f core conftest.err conftest.$ac_objext \
29273 conftest$ac_exeext conftest.$ac_ext
29274 LIBS=$ac_check_lib_save_LIBS
29276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_pthread_create" >&5
29277 $as_echo "$ac_cv_lib_pthreads_pthread_create" >&6; }
29278 if test "x$ac_cv_lib_pthreads_pthread_create" = xyes; then :
29279 PTHREAD_LIB="-lpthreads"
29282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lc_r" >&5
29283 $as_echo_n "checking for pthread_create in -lc_r... " >&6; }
29284 if ${ac_cv_lib_c_r_pthread_create+:} false; then :
29285 $as_echo_n "(cached) " >&6
29287 ac_check_lib_save_LIBS=$LIBS
29289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29290 /* end confdefs.h. */
29292 /* Override any GCC internal prototype to avoid an error.
29293 Use char because int might match the return type of a GCC
29294 builtin and then its argument prototype would still apply. */
29298 char pthread_create ();
29302 return pthread_create ();
29307 if ac_fn_c_try_link "$LINENO"; then :
29308 ac_cv_lib_c_r_pthread_create=yes
29310 ac_cv_lib_c_r_pthread_create=no
29312 rm -f core conftest.err conftest.$ac_objext \
29313 conftest$ac_exeext conftest.$ac_ext
29314 LIBS=$ac_check_lib_save_LIBS
29316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_create" >&5
29317 $as_echo "$ac_cv_lib_c_r_pthread_create" >&6; }
29318 if test "x$ac_cv_lib_c_r_pthread_create" = xyes; then :
29319 PTHREAD_LIB="-lc_r"
29322 ac_fn_c_check_func "$LINENO" "pthread_create" "ac_cv_func_pthread_create"
29323 if test "x$ac_cv_func_pthread_create" = xyes; then :
29340 for ac_header in sys/prctl.h sys/capability.h
29342 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29343 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
29344 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29345 cat >>confdefs.h <<_ACEOF
29346 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29353 for ac_func in prctl setreuid
29355 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29356 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29357 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
29358 cat >>confdefs.h <<_ACEOF
29359 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cap_set_proc in -lcap" >&5
29366 $as_echo_n "checking for cap_set_proc in -lcap... " >&6; }
29367 if ${ac_cv_lib_cap_cap_set_proc+:} false; then :
29368 $as_echo_n "(cached) " >&6
29370 ac_check_lib_save_LIBS=$LIBS
29372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29373 /* end confdefs.h. */
29375 /* Override any GCC internal prototype to avoid an error.
29376 Use char because int might match the return type of a GCC
29377 builtin and then its argument prototype would still apply. */
29381 char cap_set_proc ();
29385 return cap_set_proc ();
29390 if ac_fn_c_try_link "$LINENO"; then :
29391 ac_cv_lib_cap_cap_set_proc=yes
29393 ac_cv_lib_cap_cap_set_proc=no
29395 rm -f core conftest.err conftest.$ac_objext \
29396 conftest$ac_exeext conftest.$ac_ext
29397 LIBS=$ac_check_lib_save_LIBS
29399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cap_cap_set_proc" >&5
29400 $as_echo "$ac_cv_lib_cap_cap_set_proc" >&6; }
29401 if test "x$ac_cv_lib_cap_cap_set_proc" = xyes; then :
29407 if test x$CAP_LIBS = x-lcap; then
29409 $as_echo "#define HAVE_LIBCAP 1" >>confdefs.h
29415 $as_echo "#define FDLIBS 1" >>confdefs.h
29418 CFLAGS=${CFLAGS--O}
29420 if test x$have_gcc = xyes ; then
29421 CPPFLAGS="$CPPFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
29422 CFLAGS="$CFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
29424 LDFLAGS=${LDFLAGS--O}
29425 CPPFLAGS="$CPPFLAGS"
29451 PFILES="platforms/Makefile"
29456 hostname=`uname -n | cut -d '.' -f 1`
29457 if test x${hostname} = x ; then
29458 hostname="localhost"
29460 ping -c 1 $hostname 2>/dev/null 1>/dev/null
29461 if test ! $? = 0; then
29462 hostname="localhost"
29465 case "$DISTNAME" in
29468 PSCMD="ps -e -o pid,comm"
29469 PFILES="${PFILES} \
29470 platforms/aix/Makefile"
29471 TAPEDRIVE="/dev/rmt0.1"
29475 PTHREAD_LIB="-lpthread -lexc"
29476 if test "${CC}" = "gcc" ; then
29483 TAPEDRIVE="/dev/nrmt0"
29486 DISTVER=`uname -a |awk '{print $3}'`
29487 TAPEDRIVE="/dev/nrmt0"
29488 PTHREAD_LIB="-pthread"
29489 CFLAGS="${CFLAGS} -pthread"
29490 PSCMD="ps -ax -o pid,command"
29493 PFILES="${PFILES} \
29494 platforms/bsdi/Makefile \
29495 platforms/bsdi/bacula-fd \
29496 platforms/bsdi/bacula-sd \
29497 platforms/bsdi/bacula-dir"
29498 largefile_support="yes"
29501 DISTVER=`uname -a |awk '{print $3}'`
29502 TAPEDRIVE="/dev/nrst0"
29504 WCFLAGS="-mwindows"
29505 WLDFLAGS="-mwindows"
29509 TAPEDRIVE="/dev/nst0"
29510 PSCMD="ps -e -o pid,command"
29512 PFILES="${PFILES} \
29513 platforms/darwin/Makefile"
29517 TAPEDRIVE="/dev/nst0"
29518 PSCMD="ps -e -o pid,command"
29520 PFILES="${PFILES} \
29521 platforms/osx/Makefile"
29524 if `test -f /etc/apt/sources.list && grep -q ubuntu /etc/apt/sources.list`; then
29527 DISTVER=`cat /etc/debian_version`
29528 if test -f /etc/lsb-release ; then
29530 if test "x$DISTRIB_ID" != "x" ; then
29531 DISTNAME=$DISTRIB_ID
29533 if test "x$DISTRIB_RELEASE" != "x" ; then
29534 DISTVER=$DISTRIB_RELEASE
29537 if test "$DISTNAME" = "Ubuntu" ; then
29540 TAPEDRIVE="/dev/nst0"
29541 PSCMD="ps -e -o pid,command"
29542 if test "$DISTNAME" = "ubuntu" ; then
29543 PFILES="${PFILES} \
29544 platforms/ubuntu/Makefile \
29545 platforms/ubuntu/bacula-fd \
29546 platforms/ubuntu/bacula-sd \
29547 platforms/ubuntu/bacula-dir"
29549 PFILES="${PFILES} \
29550 platforms/debian/Makefile \
29551 platforms/debian/bacula-fd \
29552 platforms/debian/bacula-sd \
29553 platforms/debian/bacula-dir"
29557 DISTVER=`uname -a |awk '{print $3}'`
29558 VER=`echo $DISTVER | cut -c 1`
29559 if test x$VER = x4 ; then
29560 PTHREAD_LIB="${PTHREAD_LIBS:--pthread}"
29561 CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS:--pthread}"
29565 TAPEDRIVE="/dev/nrsa0"
29566 PSCMD="ps -ax -o pid,command"
29567 PFILES="${PFILES} \
29568 platforms/freebsd/Makefile \
29569 platforms/freebsd/bacula-fd \
29570 platforms/freebsd/bacula-sd \
29571 platforms/freebsd/bacula-dir"
29572 largefile_support="yes"
29575 PSCMD="UNIX95=1; ps -e -o pid,comm"
29576 CFLAGS="${CFLAGS} -D_XOPEN_SOURCE_EXTENDED=1"
29578 TAPEDRIVE="/dev/rmt/0hnb"
29579 PTHREAD_LIB="-lpthread"
29580 $as_echo "#define _INCLUDE_LONGLONG 1" >>confdefs.h
29585 TAPEDRIVE="/dev/rmt/0cbn"
29586 PSCMD="ps -e -o pid,comm"
29587 PFILES="${PFILES} \
29588 platforms/irix/Makefile \
29589 platforms/irix/bacula-fd \
29590 platforms/irix/bacula-sd \
29591 platforms/irix/bacula-dir"
29594 DISTVER=`uname -a |awk '{print $3}'`
29597 TAPEDRIVE="/dev/nrst0"
29598 PSCMD="ps -ax -o pid,command"
29599 PTHREAD_LIB="-pthread"
29600 CFLAGS="${CFLAGS} -pthread"
29603 DISTVER=`uname -a |awk '{print $3}'`
29606 TAPEDRIVE="/dev/nrst0"
29607 PSCMD="ps -ax -o pid,command"
29608 PTHREAD_LIB="-pthread"
29609 CFLAGS="${CFLAGS} -pthread"
29610 PFILES="${PFILES} \
29611 platforms/openbsd/Makefile \
29612 platforms/openbsd/bacula-fd \
29613 platforms/openbsd/bacula-sd \
29614 platforms/openbsd/bacula-dir"
29617 if test -f /etc/whitebox-release ; then
29618 f=/etc/whitebox-release
29620 f=/etc/redhat-release
29622 if test `cat $f | grep release |\
29623 cut -f 3 -d ' '`x = "Enterprise"x ; then
29624 DISTVER="Enterprise "`cat $f | grep release |\
29627 DISTVER=`cat /etc/redhat-release | grep release |\
29630 TAPEDRIVE="/dev/nst0"
29631 PSCMD="ps -e -o pid,command"
29632 PFILES="${PFILES} \
29633 platforms/redhat/Makefile \
29634 platforms/redhat/bacula-fd \
29635 platforms/redhat/bacula-sd \
29636 platforms/redhat/bacula-dir
29640 DISTVER=`cat /etc/mandrake-release | grep release |\
29642 TAPEDRIVE="/dev/nst0"
29643 PSCMD="ps -e -o pid,command"
29644 PFILES="${PFILES} \
29645 platforms/mandrake/Makefile \
29646 platforms/mandrake/bacula-fd \
29647 platforms/mandrake/bacula-sd \
29648 platforms/mandrake/bacula-dir \
29652 DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
29653 TAPEDRIVE="/dev/nst0"
29654 PSCMD="ps -e -o pid,command"
29655 PFILES="${PFILES} \
29656 platforms/gentoo/Makefile \
29657 platforms/gentoo/bacula-init \
29658 platforms/gentoo/bacula-fd \
29659 platforms/gentoo/bacula-sd \
29660 platforms/gentoo/bacula-dir"
29663 DISTVER=`cat /etc/slackware-version`
29664 TAPEDRIVE="/dev/nst0"
29665 PSCMD="ps -e -o pid,command"
29666 PFILES="${PFILES} \
29667 platforms/slackware/Makefile \
29668 platforms/slackware/rc.bacula-fd \
29669 platforms/slackware/rc.bacula-sd \
29670 platforms/slackware/rc.bacula-dir\
29671 platforms/slackware/functions.bacula"
29675 TAPEDRIVE="/dev/rmt/0cbn"
29676 PSCMD="ps -e -o pid,comm"
29677 PFILES="${PFILES} \
29678 platforms/solaris/Makefile \
29679 platforms/solaris/bacula-fd \
29680 platforms/solaris/bacula-sd \
29681 platforms/solaris/bacula-dir"
29682 if test x$DISTVER = x5.6 ; then
29683 $as_echo "#define HAVE_OLD_SOCKOPT 1" >>confdefs.h
29686 LIBS="$LIBS -lresolv -lrt"
29689 DISTVER=`cat /etc/SuSE-release |grep VERSION|\
29691 TAPEDRIVE="/dev/nst0"
29692 PSCMD="ps -e -o pid,command"
29693 PFILES="${PFILES} \
29694 platforms/suse/Makefile \
29695 platforms/suse/bacula-fd \
29696 platforms/suse/bacula-sd \
29697 platforms/suse/bacula-dir \
29698 platforms/suse/bacula"
29703 TAPEDRIVE="/dev/nst0"
29704 PSCMD="ps -e -o pid,command"
29705 PFILES="${PFILES} \
29706 platforms/suse/Makefile \
29707 platforms/suse/bacula-fd \
29708 platforms/suse/bacula-sd \
29709 platforms/suse/bacula-dir"
29713 TAPEDRIVE="/dev/nst0"
29716 echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
29722 LIBS="$PTHREAD_LIB $LIBS"
29724 cat >>confdefs.h <<_ACEOF
29728 cat >>confdefs.h <<_ACEOF
29739 MCOMMON=./autoconf/Make.common
29742 if test "x${subsysdir}" = "x${sbindir}" ; then
29745 echo "You have set both --sbindir and --with-subsys-dir"
29746 echo " equal to: ${subsysdir} "
29747 echo "This is not permitted. Please reconfigure."
29749 echo "Aborting configuration ..."
29755 ac_config_files="$ac_config_files autoconf/Make.common Makefile manpages/Makefile scripts/startmysql scripts/stopmysql scripts/btraceback scripts/startit scripts/stopit scripts/bconsole scripts/gconsole 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"
29757 ac_config_commands="$ac_config_commands default"
29759 cat >confcache <<\_ACEOF
29760 # This file is a shell script that caches the results of configure
29761 # tests run on this system so they can be shared between configure
29762 # scripts and configure runs, see configure's option --config-cache.
29763 # It is not useful on other systems. If it contains results you don't
29764 # want to keep, you may remove or edit it.
29766 # config.status only pays attention to the cache file if you give it
29767 # the --recheck option to rerun configure.
29769 # `ac_cv_env_foo' variables (set or unset) will be overridden when
29770 # loading this file, other *unset* `ac_cv_foo' will be assigned the
29771 # following values.
29775 # The following way of writing the cache mishandles newlines in values,
29776 # but we know of no workaround that is simple, portable, and efficient.
29777 # So, we kill variables containing newlines.
29778 # Ultrix sh set writes to stderr and can't be redirected directly,
29779 # and sets the high bit in the cache file unless we assign to the vars.
29781 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
29782 eval ac_val=\$$ac_var
29786 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
29787 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
29790 _ | IFS | as_nl) ;; #(
29791 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
29792 *) { eval $ac_var=; unset $ac_var;} ;;
29798 case $as_nl`(ac_space=' '; set) 2>&1` in #(
29799 *${as_nl}ac_space=\ *)
29800 # `set' does not quote correctly, so add quotes: double-quote
29801 # substitution turns \\\\ into \\, and sed turns \\ into \.
29804 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
29807 # `set' quotes correctly as required by POSIX, so do not add quotes.
29808 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
29817 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
29819 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
29821 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
29822 if test -w "$cache_file"; then
29823 if test "x$cache_file" != "x/dev/null"; then
29824 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
29825 $as_echo "$as_me: updating cache $cache_file" >&6;}
29826 if test ! -f "$cache_file" || test -h "$cache_file"; then
29827 cat confcache >"$cache_file"
29829 case $cache_file in #(
29831 mv -f confcache "$cache_file"$$ &&
29832 mv -f "$cache_file"$$ "$cache_file" ;; #(
29834 mv -f confcache "$cache_file" ;;
29839 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
29840 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
29845 test "x$prefix" = xNONE && prefix=$ac_default_prefix
29846 # Let make expand exec_prefix.
29847 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
29849 DEFS=-DHAVE_CONFIG_H
29854 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
29855 # 1. Remove the extension, and $U if already installed.
29856 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
29857 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
29858 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
29859 # will be set to the directory where LIBOBJS objects are built.
29860 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
29861 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
29863 LIBOBJS=$ac_libobjs
29865 LTLIBOBJS=$ac_ltlibobjs
29870 : "${CONFIG_STATUS=./config.status}"
29872 ac_clean_files_save=$ac_clean_files
29873 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
29874 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
29875 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
29877 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
29879 # Generated by $as_me.
29880 # Run this file to recreate the current configuration.
29881 # Compiler output produced by configure, useful for debugging
29882 # configure, is in config.log if it exists.
29885 ac_cs_recheck=false
29888 SHELL=\${CONFIG_SHELL-$SHELL}
29891 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
29892 ## -------------------- ##
29893 ## M4sh Initialization. ##
29894 ## -------------------- ##
29896 # Be more Bourne compatible
29897 DUALCASE=1; export DUALCASE # for MKS sh
29898 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
29901 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
29902 # is contrary to our usage. Disable this feature.
29903 alias -g '${1+"$@"}'='"$@"'
29904 setopt NO_GLOB_SUBST
29906 case `(set -o) 2>/dev/null` in #(
29918 # Printing a long string crashes Solaris 7 /usr/bin/printf.
29919 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
29920 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
29921 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
29922 # Prefer a ksh shell builtin over an external printf program on Solaris,
29923 # but without wasting forks for bash or zsh.
29924 if test -z "$BASH_VERSION$ZSH_VERSION" \
29925 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
29926 as_echo='print -r --'
29927 as_echo_n='print -rn --'
29928 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
29929 as_echo='printf %s\n'
29930 as_echo_n='printf %s'
29932 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
29933 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
29934 as_echo_n='/usr/ucb/echo -n'
29936 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
29937 as_echo_n_body='eval
29941 expr "X$arg" : "X\\(.*\\)$as_nl";
29942 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
29944 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
29946 export as_echo_n_body
29947 as_echo_n='sh -c $as_echo_n_body as_echo'
29949 export as_echo_body
29950 as_echo='sh -c $as_echo_body as_echo'
29953 # The user is always right.
29954 if test "${PATH_SEPARATOR+set}" != set; then
29956 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
29957 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
29964 # We need space, tab and new line, in precisely that order. Quoting is
29965 # there to prevent editors from complaining about space-tab.
29966 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
29967 # splitting by setting IFS to empty value.)
29970 # Find who we are. Look in the path if we contain no directory separator.
29973 *[\\/]* ) as_myself=$0 ;;
29974 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29975 for as_dir in $PATH
29978 test -z "$as_dir" && as_dir=.
29979 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
29985 # We did not find ourselves, most probably we were run as `sh COMMAND'
29986 # in which case we are not to be found in the path.
29987 if test "x$as_myself" = x; then
29990 if test ! -f "$as_myself"; then
29991 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
29995 # Unset variables that we do not need and which cause bugs (e.g. in
29996 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
29997 # suppresses any "Segmentation fault" message there. '((' could
29998 # trigger a bug in pdksh 5.2.14.
29999 for as_var in BASH_ENV ENV MAIL MAILPATH
30000 do eval test x\${$as_var+set} = xset \
30001 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
30014 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
30017 # as_fn_error STATUS ERROR [LINENO LOG_FD]
30018 # ----------------------------------------
30019 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
30020 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
30021 # script with STATUS, using 1 if that was 0.
30024 as_status=$1; test $as_status -eq 0 && as_status=1
30026 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
30027 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
30029 $as_echo "$as_me: error: $2" >&2
30030 as_fn_exit $as_status
30034 # as_fn_set_status STATUS
30035 # -----------------------
30036 # Set $? to STATUS, without forking.
30037 as_fn_set_status ()
30040 } # as_fn_set_status
30042 # as_fn_exit STATUS
30043 # -----------------
30044 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
30048 as_fn_set_status $1
30054 # Portably unset VAR.
30057 { eval $1=; unset $1;}
30059 as_unset=as_fn_unset
30060 # as_fn_append VAR VALUE
30061 # ----------------------
30062 # Append the text in VALUE to the end of the definition contained in VAR. Take
30063 # advantage of any shell optimizations that allow amortized linear growth over
30064 # repeated appends, instead of the typical quadratic growth present in naive
30066 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
30067 eval 'as_fn_append ()
30078 # as_fn_arith ARG...
30079 # ------------------
30080 # Perform arithmetic evaluation on the ARGs, and store the result in the
30081 # global $as_val. Take advantage of shells that can avoid forks. The arguments
30082 # must be portable across $(()) and expr.
30083 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
30084 eval 'as_fn_arith ()
30091 as_val=`expr "$@" || test $? -eq 1`
30096 if expr a : '\(a\)' >/dev/null 2>&1 &&
30097 test "X`expr 00001 : '.*\(...\)'`" = X001; then
30103 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
30104 as_basename=basename
30109 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
30115 as_me=`$as_basename -- "$0" ||
30116 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
30117 X"$0" : 'X\(//\)$' \| \
30118 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
30120 sed '/^.*\/\([^/][^/]*\)\/*$/{
30134 # Avoid depending upon Character Ranges.
30135 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
30136 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
30137 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
30138 as_cr_digits='0123456789'
30139 as_cr_alnum=$as_cr_Letters$as_cr_digits
30141 ECHO_C= ECHO_N= ECHO_T=
30142 case `echo -n x` in #(((((
30144 case `echo 'xy\c'` in
30145 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
30147 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
30154 rm -f conf$$ conf$$.exe conf$$.file
30155 if test -d conf$$.dir; then
30156 rm -f conf$$.dir/conf$$.file
30159 mkdir conf$$.dir 2>/dev/null
30161 if (echo >conf$$.file) 2>/dev/null; then
30162 if ln -s conf$$.file conf$$ 2>/dev/null; then
30164 # ... but there are two gotchas:
30165 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
30166 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
30167 # In both cases, we have to default to `cp -p'.
30168 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
30170 elif ln conf$$.file conf$$ 2>/dev/null; then
30178 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
30179 rmdir conf$$.dir 2>/dev/null
30184 # Create "$as_dir" as a directory, including parents if necessary.
30189 -*) as_dir=./$as_dir;;
30191 test -d "$as_dir" || eval $as_mkdir_p || {
30195 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
30196 *) as_qdir=$as_dir;;
30198 as_dirs="'$as_qdir' $as_dirs"
30199 as_dir=`$as_dirname -- "$as_dir" ||
30200 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30201 X"$as_dir" : 'X\(//\)[^/]' \| \
30202 X"$as_dir" : 'X\(//\)$' \| \
30203 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
30204 $as_echo X"$as_dir" |
30205 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30209 /^X\(\/\/\)[^/].*/{
30222 test -d "$as_dir" && break
30224 test -z "$as_dirs" || eval "mkdir $as_dirs"
30225 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
30229 if mkdir -p . 2>/dev/null; then
30230 as_mkdir_p='mkdir -p "$as_dir"'
30232 test -d ./-p && rmdir ./-p
30236 if test -x / >/dev/null 2>&1; then
30237 as_test_x='test -x'
30239 if ls -dL / >/dev/null 2>&1; then
30246 if test -d "$1"; then
30252 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
30253 ???[sx]*):;;*)false;;esac;fi
30257 as_executable_p=$as_test_x
30259 # Sed expression to map a string onto a valid CPP name.
30260 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
30262 # Sed expression to map a string onto a valid variable name.
30263 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
30267 ## ----------------------------------- ##
30268 ## Main body of $CONFIG_STATUS script. ##
30269 ## ----------------------------------- ##
30271 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
30273 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30274 # Save the log message, to keep $0 and so on meaningful, and to
30275 # report actual input values of CONFIG_FILES etc. instead of their
30276 # values after options handling.
30278 This file was extended by $as_me, which was
30279 generated by GNU Autoconf 2.68. Invocation command line was
30281 CONFIG_FILES = $CONFIG_FILES
30282 CONFIG_HEADERS = $CONFIG_HEADERS
30283 CONFIG_LINKS = $CONFIG_LINKS
30284 CONFIG_COMMANDS = $CONFIG_COMMANDS
30287 on `(hostname || uname -n) 2>/dev/null | sed 1q`
30292 case $ac_config_files in *"
30293 "*) set x $ac_config_files; shift; ac_config_files=$*;;
30296 case $ac_config_headers in *"
30297 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
30301 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30302 # Files that config.status was made for.
30303 config_files="$ac_config_files"
30304 config_headers="$ac_config_headers"
30305 config_commands="$ac_config_commands"
30309 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30311 \`$as_me' instantiates files and other configuration actions
30312 from templates according to the current configuration. Unless the files
30313 and actions are specified as TAGs, all are instantiated by default.
30315 Usage: $0 [OPTION]... [TAG]...
30317 -h, --help print this help, then exit
30318 -V, --version print version number and configuration settings, then exit
30319 --config print configuration, then exit
30320 -q, --quiet, --silent
30321 do not print progress messages
30322 -d, --debug don't remove temporary files
30323 --recheck update $as_me by reconfiguring in the same conditions
30324 --file=FILE[:TEMPLATE]
30325 instantiate the configuration file FILE
30326 --header=FILE[:TEMPLATE]
30327 instantiate the configuration header FILE
30329 Configuration files:
30332 Configuration headers:
30335 Configuration commands:
30338 Report bugs to the package provider."
30341 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30342 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
30345 configured by $0, generated by GNU Autoconf 2.68,
30346 with options \\"\$ac_cs_config\\"
30348 Copyright (C) 2010 Free Software Foundation, Inc.
30349 This config.status script is free software; the Free Software Foundation
30350 gives unlimited permission to copy, distribute and modify it."
30356 test -n "\$AWK" || AWK=awk
30359 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30360 # The default lists apply if the user does not specify any file.
30366 ac_option=`expr "X$1" : 'X\([^=]*\)='`
30367 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
30371 ac_option=`expr "X$1" : 'X\([^=]*\)='`
30383 # Handling of the options.
30384 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
30386 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
30387 $as_echo "$ac_cs_version"; exit ;;
30388 --config | --confi | --conf | --con | --co | --c )
30389 $as_echo "$ac_cs_config"; exit ;;
30390 --debug | --debu | --deb | --de | --d | -d )
30392 --file | --fil | --fi | --f )
30395 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
30396 '') as_fn_error $? "missing file argument" ;;
30398 as_fn_append CONFIG_FILES " '$ac_optarg'"
30399 ac_need_defaults=false;;
30400 --header | --heade | --head | --hea )
30403 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
30405 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
30406 ac_need_defaults=false;;
30408 # Conflict between --help and --header
30409 as_fn_error $? "ambiguous option: \`$1'
30410 Try \`$0 --help' for more information.";;
30411 --help | --hel | -h )
30412 $as_echo "$ac_cs_usage"; exit ;;
30413 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
30414 | -silent | --silent | --silen | --sile | --sil | --si | --s)
30417 # This is an error.
30418 -*) as_fn_error $? "unrecognized option: \`$1'
30419 Try \`$0 --help' for more information." ;;
30421 *) as_fn_append ac_config_targets " $1"
30422 ac_need_defaults=false ;;
30428 ac_configure_extra_args=
30430 if $ac_cs_silent; then
30432 ac_configure_extra_args="$ac_configure_extra_args --silent"
30436 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30437 if \$ac_cs_recheck; then
30438 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
30440 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
30441 CONFIG_SHELL='$SHELL'
30442 export CONFIG_SHELL
30447 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30451 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
30452 ## Running $as_me. ##
30458 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30464 # The HP-UX ksh and POSIX shell print the target directory to stdout
30465 # if CDPATH is set.
30466 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
30468 sed_quote_subst='$sed_quote_subst'
30469 double_quote_subst='$double_quote_subst'
30470 delay_variable_subst='$delay_variable_subst'
30471 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
30472 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
30473 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
30474 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
30475 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
30476 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
30477 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
30478 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
30479 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
30480 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
30481 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
30482 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
30483 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
30484 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
30485 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
30486 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
30487 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
30488 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
30489 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
30490 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
30491 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
30492 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
30493 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
30494 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
30495 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
30496 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
30497 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
30498 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30499 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
30500 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
30501 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
30502 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
30503 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
30504 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
30505 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
30506 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30507 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30508 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30509 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
30510 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
30511 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
30512 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
30513 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
30514 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
30515 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"`'
30516 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"`'
30517 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
30518 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
30519 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
30520 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
30521 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
30522 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
30523 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
30524 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
30525 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
30526 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
30527 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
30528 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
30529 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
30530 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
30531 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
30532 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
30533 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30534 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30535 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
30536 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
30537 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
30538 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
30539 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
30540 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30541 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30542 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30543 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30544 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30545 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30546 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
30547 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
30548 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
30549 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
30550 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
30551 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
30552 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
30553 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
30554 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
30555 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
30556 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
30557 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
30558 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
30559 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
30560 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
30561 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30562 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
30563 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
30564 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30565 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
30566 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
30567 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
30568 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
30569 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
30570 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
30571 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
30572 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
30573 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
30574 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
30575 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
30576 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30577 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30578 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30579 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
30580 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
30581 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
30582 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
30583 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
30584 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
30585 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
30586 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
30587 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
30588 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
30589 compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
30590 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
30591 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
30592 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
30593 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
30594 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
30595 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30596 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30597 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30598 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30599 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30600 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30601 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30602 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30603 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30604 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30605 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30606 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30607 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30608 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30609 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30610 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30611 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30612 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30613 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30614 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30615 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30616 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30617 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30618 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30619 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30620 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30621 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30622 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30623 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30624 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30625 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30626 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30627 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30628 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30629 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30630 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30631 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30632 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30633 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30634 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30635 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30636 compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30637 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30638 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30639 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30640 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30641 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30644 LTCFLAGS='$LTCFLAGS'
30645 compiler='$compiler_DEFAULT'
30647 # Quote evaled strings.
30659 deplibs_check_method \
30668 lt_cv_sys_global_symbol_pipe \
30669 lt_cv_sys_global_symbol_to_cdecl \
30670 lt_cv_sys_global_symbol_to_c_name_address \
30671 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
30674 lt_prog_compiler_no_builtin_flag \
30675 lt_prog_compiler_wl \
30676 lt_prog_compiler_pic \
30677 lt_prog_compiler_static \
30678 lt_cv_prog_compiler_c_o \
30686 export_dynamic_flag_spec \
30687 whole_archive_flag_spec \
30688 compiler_needs_object \
30690 allow_undefined_flag \
30691 no_undefined_flag \
30692 hardcode_libdir_flag_spec \
30693 hardcode_libdir_flag_spec_ld \
30694 hardcode_libdir_separator \
30699 variables_saved_for_relink \
30701 library_names_spec \
30706 compiler_lib_search_dirs \
30711 compiler_lib_search_path \
30714 lt_prog_compiler_no_builtin_flag_CXX \
30715 lt_prog_compiler_wl_CXX \
30716 lt_prog_compiler_pic_CXX \
30717 lt_prog_compiler_static_CXX \
30718 lt_cv_prog_compiler_c_o_CXX \
30719 export_dynamic_flag_spec_CXX \
30720 whole_archive_flag_spec_CXX \
30721 compiler_needs_object_CXX \
30723 allow_undefined_flag_CXX \
30724 no_undefined_flag_CXX \
30725 hardcode_libdir_flag_spec_CXX \
30726 hardcode_libdir_flag_spec_ld_CXX \
30727 hardcode_libdir_separator_CXX \
30728 fix_srcfile_path_CXX \
30729 exclude_expsyms_CXX \
30730 include_expsyms_CXX \
30731 file_list_spec_CXX \
30732 compiler_lib_search_dirs_CXX \
30733 predep_objects_CXX \
30734 postdep_objects_CXX \
30737 compiler_lib_search_path_CXX; do
30738 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
30739 *[\\\\\\\`\\"\\\$]*)
30740 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
30743 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
30748 # Double-quote double-evaled strings.
30749 for var in reload_cmds \
30750 old_postinstall_cmds \
30751 old_postuninstall_cmds \
30753 extract_expsyms_cmds \
30754 old_archive_from_new_cmds \
30755 old_archive_from_expsyms_cmds \
30757 archive_expsym_cmds \
30759 module_expsym_cmds \
30760 export_symbols_cmds \
30763 postuninstall_cmds \
30765 sys_lib_search_path_spec \
30766 sys_lib_dlsearch_path_spec \
30767 old_archive_cmds_CXX \
30768 old_archive_from_new_cmds_CXX \
30769 old_archive_from_expsyms_cmds_CXX \
30771 archive_expsym_cmds_CXX \
30773 module_expsym_cmds_CXX \
30774 export_symbols_cmds_CXX \
30775 prelink_cmds_CXX; do
30776 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
30777 *[\\\\\\\`\\"\\\$]*)
30778 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
30781 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
30786 # Fix-up fallback echo if it was mangled by the above quoting rules.
30788 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
30792 ac_aux_dir='$ac_aux_dir'
30793 xsi_shell='$xsi_shell'
30794 lt_shell_append='$lt_shell_append'
30796 # See if we are running on zsh, and set the options which allow our
30797 # commands through without removal of \ escapes INIT.
30798 if test -n "\${ZSH_VERSION+set}" ; then
30799 setopt NO_GLOB_SUBST
30805 TIMESTAMP='$TIMESTAMP'
30813 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
30814 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
30816 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
30817 # Capture the value of LINGUAS because we need it to compute CATALOGS.
30818 LINGUAS="${LINGUAS-%UNSET%}"
30823 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30825 # Handling of arguments.
30826 for ac_config_target in $ac_config_targets
30828 case $ac_config_target in
30829 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
30830 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
30831 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
30832 "autoconf/Make.common") CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
30833 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
30834 "manpages/Makefile") CONFIG_FILES="$CONFIG_FILES manpages/Makefile" ;;
30835 "scripts/startmysql") CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
30836 "scripts/stopmysql") CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
30837 "scripts/btraceback") CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
30838 "scripts/startit") CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
30839 "scripts/stopit") CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
30840 "scripts/bconsole") CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
30841 "scripts/gconsole") CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
30842 "scripts/bacula") CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
30843 "scripts/bacula-ctl-dir") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-dir" ;;
30844 "scripts/bacula-ctl-fd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-fd" ;;
30845 "scripts/bacula-ctl-sd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-sd" ;;
30846 "scripts/devel_bacula") CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
30847 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
30848 "scripts/logrotate") CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
30849 "scripts/bacula.desktop.gnome1") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
30850 "scripts/bacula.desktop.gnome2") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
30851 "scripts/bacula.desktop.gnome1.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
30852 "scripts/bacula.desktop.gnome2.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
30853 "scripts/bacula.desktop.gnome1.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
30854 "scripts/bacula.desktop.gnome2.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
30855 "scripts/bgnome-console.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bgnome-console.console_apps" ;;
30856 "scripts/mtx-changer") CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
30857 "scripts/disk-changer") CONFIG_FILES="$CONFIG_FILES scripts/disk-changer" ;;
30858 "scripts/dvd-handler") CONFIG_FILES="$CONFIG_FILES scripts/dvd-handler" ;;
30859 "scripts/dvd-simulator") CONFIG_FILES="$CONFIG_FILES scripts/dvd-simulator" ;;
30860 "scripts/bacula-tray-monitor.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bacula-tray-monitor.desktop" ;;
30861 "scripts/logwatch/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/Makefile" ;;
30862 "scripts/logwatch/logfile.bacula.conf") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/logfile.bacula.conf" ;;
30863 "scripts/wxconsole.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.console_apps" ;;
30864 "scripts/wxconsole.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.consolehelper" ;;
30865 "scripts/wxconsole.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.xsu" ;;
30866 "scripts/bat.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop" ;;
30867 "scripts/bat.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.xsu" ;;
30868 "scripts/bat.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.consolehelper" ;;
30869 "scripts/bat.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bat.console_apps" ;;
30870 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
30871 "src/host.h") CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
30872 "src/console/Makefile") CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
30873 "src/console/bconsole.conf") CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
30874 "src/qt-console/tray-monitor/tray-monitor.pro") CONFIG_FILES="$CONFIG_FILES src/qt-console/tray-monitor/tray-monitor.pro" ;;
30875 "src/qt-console/tray-monitor/tray-monitor.conf") CONFIG_FILES="$CONFIG_FILES src/qt-console/tray-monitor/tray-monitor.conf" ;;
30876 "src/qt-console/bat.conf") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.conf" ;;
30877 "src/qt-console/bat.pro") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro" ;;
30878 "src/qt-console/bat.pro.mingw32") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro.mingw32" ;;
30879 "src/qt-console/install_conf_file") CONFIG_FILES="$CONFIG_FILES src/qt-console/install_conf_file" ;;
30880 "src/wx-console/Makefile") CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
30881 "src/wx-console/bwx-console.conf") CONFIG_FILES="$CONFIG_FILES src/wx-console/bwx-console.conf" ;;
30882 "src/tray-monitor/Makefile") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/Makefile" ;;
30883 "src/tray-monitor/tray-monitor.conf") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/tray-monitor.conf" ;;
30884 "src/dird/Makefile") CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
30885 "src/dird/bacula-dir.conf") CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
30886 "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
30887 "src/stored/Makefile") CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
30888 "src/stored/bacula-sd.conf") CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
30889 "src/filed/Makefile") CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
30890 "src/filed/bacula-fd.conf") CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
30891 "src/cats/Makefile") CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
30892 "src/cats/make_catalog_backup.pl") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup.pl" ;;
30893 "src/cats/make_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
30894 "src/cats/delete_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
30895 "src/cats/create_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
30896 "src/cats/update_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
30897 "src/cats/make_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
30898 "src/cats/grant_postgresql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
30899 "src/cats/drop_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
30900 "src/cats/drop_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
30901 "src/cats/create_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
30902 "src/cats/update_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
30903 "src/cats/make_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
30904 "src/cats/grant_mysql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
30905 "src/cats/drop_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
30906 "src/cats/drop_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
30907 "src/cats/create_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite3_database" ;;
30908 "src/cats/update_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite3_tables" ;;
30909 "src/cats/make_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite3_tables" ;;
30910 "src/cats/grant_sqlite3_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite3_privileges" ;;
30911 "src/cats/drop_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_tables" ;;
30912 "src/cats/drop_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_database" ;;
30913 "src/cats/create_ingres_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_ingres_database" ;;
30914 "src/cats/update_ingres_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_ingres_tables" ;;
30915 "src/cats/make_ingres_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_ingres_tables" ;;
30916 "src/cats/grant_ingres_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_ingres_privileges" ;;
30917 "src/cats/drop_ingres_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_ingres_tables" ;;
30918 "src/cats/drop_ingres_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_ingres_database" ;;
30919 "src/cats/sqlite") CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
30920 "src/cats/mysql") CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
30921 "src/cats/create_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
30922 "src/cats/update_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
30923 "src/cats/grant_bacula_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
30924 "src/cats/make_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
30925 "src/cats/drop_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
30926 "src/cats/drop_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
30927 "src/findlib/Makefile") CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
30928 "src/tools/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
30929 "src/plugins/fd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/fd/Makefile" ;;
30930 "src/plugins/sd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/sd/Makefile" ;;
30931 "src/plugins/dir/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/dir/Makefile" ;;
30932 "src/win32/Makefile.inc") CONFIG_FILES="$CONFIG_FILES src/win32/Makefile.inc" ;;
30933 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
30934 "updatedb/update_mysql_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_9_to_10" ;;
30935 "updatedb/update_sqlite3_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_9_to_10" ;;
30936 "updatedb/update_postgresql_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_9_to_10" ;;
30937 "updatedb/update_mysql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_10_to_11" ;;
30938 "updatedb/update_sqlite3_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_10_to_11" ;;
30939 "updatedb/update_postgresql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_10_to_11" ;;
30940 "updatedb/update_mysql_tables_11_to_12") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_11_to_12" ;;
30941 "updatedb/update_sqlite3_tables_11_to_12") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_11_to_12" ;;
30942 "updatedb/update_postgresql_tables_11_to_12") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_11_to_12" ;;
30943 "examples/nagios/check_bacula/Makefile") CONFIG_FILES="$CONFIG_FILES examples/nagios/check_bacula/Makefile" ;;
30944 "$PFILES") CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
30945 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
30947 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
30952 # If the user did not use the arguments to specify the items to instantiate,
30953 # then the envvar interface is used. Set only those that are not.
30954 # We use the long form for the default assignment because of an extremely
30955 # bizarre bug on SunOS 4.1.3.
30956 if $ac_need_defaults; then
30957 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
30958 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
30959 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
30962 # Have a temporary directory for convenience. Make it in the build tree
30963 # simply because there is no reason against having it here, and in addition,
30964 # creating and moving files from /tmp can sometimes cause problems.
30965 # Hook for its removal unless debugging.
30966 # Note that there is a small window in which the directory will not be cleaned:
30967 # after its creation but before its name has been assigned to `$tmp'.
30971 trap 'exit_status=$?
30972 : "${ac_tmp:=$tmp}"
30973 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
30975 trap 'as_fn_exit 1' 1 2 13 15
30977 # Create a (secure) tmp directory for tmp files.
30980 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
30984 tmp=./conf$$-$RANDOM
30985 (umask 077 && mkdir "$tmp")
30986 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
30989 # Set up the scripts for CONFIG_FILES section.
30990 # No need to generate them if there are no CONFIG_FILES.
30991 # This happens for instance with `./config.status config.h'.
30992 if test -n "$CONFIG_FILES"; then
30994 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
30995 ac_cs_awk_getline=:
30996 ac_cs_awk_pipe_init=
30997 ac_cs_awk_read_file='
30998 while ((getline aline < (F[key])) > 0)
31001 ac_cs_awk_pipe_fini=
31003 ac_cs_awk_getline=false
31004 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
31005 ac_cs_awk_read_file='
31007 print "cat " F[key] " &&"
31008 '$ac_cs_awk_pipe_init
31009 # The final `:' finishes the AND list.
31010 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
31012 ac_cr=`echo X | tr X '\015'`
31013 # On cygwin, bash can eat \r inside `` if the user requested igncr.
31014 # But we know of no other shell where ac_cr would be empty at this
31015 # point, so we can use a bashism as a fallback.
31016 if test "x$ac_cr" = x; then
31017 eval ac_cr=\$\'\\r\'
31019 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
31020 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
31023 ac_cs_awk_cr=$ac_cr
31026 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
31029 # Create commands to substitute file output variables.
31031 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
31032 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
31033 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
31036 } >conf$$files.sh &&
31037 . ./conf$$files.sh ||
31038 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
31039 rm -f conf$$files.sh
31042 echo "cat >conf$$subs.awk <<_ACEOF" &&
31043 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
31045 } >conf$$subs.sh ||
31046 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
31047 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
31049 for ac_last_try in false false false false false :; do
31050 . ./conf$$subs.sh ||
31051 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
31053 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
31054 if test $ac_delim_n = $ac_delim_num; then
31056 elif $ac_last_try; then
31057 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
31059 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
31062 rm -f conf$$subs.sh
31064 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31065 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
31069 s/^/S["/; s/!.*/"]=/
31079 s/\(.\{148\}\)..*/\1/
31081 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
31086 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
31093 s/\(.\{148\}\)..*/\1/
31095 s/["\\]/\\&/g; s/^/"/; s/$/"/
31099 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
31104 ' <conf$$subs.awk | sed '
31109 ' >>$CONFIG_STATUS || ac_write_fail=1
31110 rm -f conf$$subs.awk
31111 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31113 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
31114 for (key in S) S_is_set[key] = 1
31116 \$ac_cs_awk_pipe_init
31120 nfields = split(line, field, "@")
31122 len = length(field[1])
31123 for (i = 2; i < nfields; i++) {
31125 keylen = length(key)
31126 if (S_is_set[key]) {
31128 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
31129 len += length(value) + length(field[++i])
31134 if (nfields == 3 && !substed) {
31136 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
31137 \$ac_cs_awk_read_file
31143 \$ac_cs_awk_pipe_fini
31146 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31147 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
31148 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
31151 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
31152 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
31155 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
31156 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
31157 # trailing colons and then remove the whole line if VPATH becomes empty
31158 # (actually we leave an empty line to preserve line numbers).
31159 if test "x$srcdir" = x.; then
31160 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
31178 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31179 fi # test -n "$CONFIG_FILES"
31181 # Set up the scripts for CONFIG_HEADERS section.
31182 # No need to generate them if there are no CONFIG_HEADERS.
31183 # This happens for instance with `./config.status Makefile'.
31184 if test -n "$CONFIG_HEADERS"; then
31185 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
31189 # Transform confdefs.h into an awk script `defines.awk', embedded as
31190 # here-document in config.status, that substitutes the proper values into
31191 # config.h.in to produce config.h.
31193 # Create a delimiter string that does not exist in confdefs.h, to ease
31194 # handling of long lines.
31196 for ac_last_try in false false :; do
31197 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
31198 if test -z "$ac_tt"; then
31200 elif $ac_last_try; then
31201 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
31203 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
31207 # For the awk script, D is an array of macro values keyed by name,
31208 # likewise P contains macro parameters if any. Preserve backslash
31209 # newline sequences.
31211 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
31213 s/.\{148\}/&'"$ac_delim"'/g
31216 s/^[ ]*#[ ]*define[ ][ ]*/ /
31223 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
31225 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
31229 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
31230 D["\1"]=" \3\\\\\\n"\\/p
31232 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
31237 s/.\{148\}/&'"$ac_delim"'/g
31242 s/["\\]/\\&/g; s/^/"/; s/$/"/p
31245 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
31247 ' <confdefs.h | sed '
31248 s/'"$ac_delim"'/"\\\
31249 "/g' >>$CONFIG_STATUS || ac_write_fail=1
31251 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31252 for (key in D) D_is_set[key] = 1
31255 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
31257 split(line, arg, " ")
31258 if (arg[1] == "#") {
31262 defundef = substr(arg[1], 2)
31265 split(mac1, mac2, "(") #)
31267 prefix = substr(line, 1, index(line, defundef) - 1)
31268 if (D_is_set[macro]) {
31269 # Preserve the white space surrounding the "#".
31270 print prefix "define", macro P[macro] D[macro]
31273 # Replace #undef with comments. This is necessary, for example,
31274 # in the case of _POSIX_SOURCE, which is predefined and required
31275 # on some systems where configure will not decide to define it.
31276 if (defundef == "undef") {
31277 print "/*", prefix defundef, macro, "*/"
31285 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31286 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
31287 fi # test -n "$CONFIG_HEADERS"
31290 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
31295 :[FHLC]) ac_mode=$ac_tag; continue;;
31297 case $ac_mode$ac_tag in
31299 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
31300 :[FH]-) ac_tag=-:-;;
31301 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
31318 -) ac_f="$ac_tmp/stdin";;
31319 *) # Look for the file first in the build tree, then in the source tree
31320 # (if the path is not absolute). The absolute path cannot be DOS-style,
31321 # because $ac_f cannot contain `:'.
31325 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
31327 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
31329 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
31330 as_fn_append ac_file_inputs " '$ac_f'"
31333 # Let's still pretend it is `configure' which instantiates (i.e., don't
31334 # use $as_me), people would be surprised to read:
31335 # /* config.h. Generated by config.status. */
31336 configure_input='Generated from '`
31337 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
31339 if test x"$ac_file" != x-; then
31340 configure_input="$ac_file. $configure_input"
31341 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
31342 $as_echo "$as_me: creating $ac_file" >&6;}
31344 # Neutralize special characters interpreted by sed in replacement strings.
31345 case $configure_input in #(
31346 *\&* | *\|* | *\\* )
31347 ac_sed_conf_input=`$as_echo "$configure_input" |
31348 sed 's/[\\\\&|]/\\\\&/g'`;; #(
31349 *) ac_sed_conf_input=$configure_input;;
31353 *:-:* | *:-) cat >"$ac_tmp/stdin" \
31354 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
31359 ac_dir=`$as_dirname -- "$ac_file" ||
31360 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31361 X"$ac_file" : 'X\(//\)[^/]' \| \
31362 X"$ac_file" : 'X\(//\)$' \| \
31363 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
31364 $as_echo X"$ac_file" |
31365 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31369 /^X\(\/\/\)[^/].*/{
31382 as_dir="$ac_dir"; as_fn_mkdir_p
31386 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
31388 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
31389 # A ".." for each directory in $ac_dir_suffix.
31390 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
31391 case $ac_top_builddir_sub in
31392 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
31393 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
31396 ac_abs_top_builddir=$ac_pwd
31397 ac_abs_builddir=$ac_pwd$ac_dir_suffix
31398 # for backward compatibility:
31399 ac_top_builddir=$ac_top_build_prefix
31402 .) # We are building in place.
31404 ac_top_srcdir=$ac_top_builddir_sub
31405 ac_abs_top_srcdir=$ac_pwd ;;
31406 [\\/]* | ?:[\\/]* ) # Absolute name.
31407 ac_srcdir=$srcdir$ac_dir_suffix;
31408 ac_top_srcdir=$srcdir
31409 ac_abs_top_srcdir=$srcdir ;;
31410 *) # Relative name.
31411 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
31412 ac_top_srcdir=$ac_top_build_prefix$srcdir
31413 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
31415 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
31425 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
31426 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
31430 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31431 # If the template does not know about datarootdir, expand it.
31432 # FIXME: This hack should be removed a few years after 2.60.
31433 ac_datarootdir_hack=; ac_datarootdir_seen=
31444 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
31445 *datarootdir*) ac_datarootdir_seen=yes;;
31446 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
31447 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
31448 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
31450 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31451 ac_datarootdir_hack='
31452 s&@datadir@&$datadir&g
31453 s&@docdir@&$docdir&g
31454 s&@infodir@&$infodir&g
31455 s&@localedir@&$localedir&g
31456 s&@mandir@&$mandir&g
31457 s&\\\${datarootdir}&$datarootdir&g' ;;
31461 # Neutralize VPATH when `$srcdir' = `.'.
31462 # Shell code in configure.ac might set extrasub.
31463 # FIXME: do we really want to maintain this feature?
31464 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31465 ac_sed_extra="$ac_vpsub
31468 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31470 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31471 s|@configure_input@|$ac_sed_conf_input|;t t
31472 s&@top_builddir@&$ac_top_builddir_sub&;t t
31473 s&@top_build_prefix@&$ac_top_build_prefix&;t t
31474 s&@srcdir@&$ac_srcdir&;t t
31475 s&@abs_srcdir@&$ac_abs_srcdir&;t t
31476 s&@top_srcdir@&$ac_top_srcdir&;t t
31477 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
31478 s&@builddir@&$ac_builddir&;t t
31479 s&@abs_builddir@&$ac_abs_builddir&;t t
31480 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
31481 s&@INSTALL@&$ac_INSTALL&;t t
31482 $ac_datarootdir_hack
31484 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
31485 if $ac_cs_awk_getline; then
31486 $AWK -f "$ac_tmp/subs.awk"
31488 $AWK -f "$ac_tmp/subs.awk" | $SHELL
31490 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
31492 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
31493 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
31494 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
31495 "$ac_tmp/out"`; test -z "$ac_out"; } &&
31496 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31497 which seems to be undefined. Please make sure it is defined" >&5
31498 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31499 which seems to be undefined. Please make sure it is defined" >&2;}
31501 rm -f "$ac_tmp/stdin"
31503 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
31504 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
31506 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
31512 if test x"$ac_file" != x-; then
31514 $as_echo "/* $configure_input */" \
31515 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
31516 } >"$ac_tmp/config.h" \
31517 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
31518 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
31519 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
31520 $as_echo "$as_me: $ac_file is unchanged" >&6;}
31523 mv "$ac_tmp/config.h" "$ac_file" \
31524 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
31527 $as_echo "/* $configure_input */" \
31528 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
31529 || as_fn_error $? "could not create -" "$LINENO" 5
31533 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
31534 $as_echo "$as_me: executing $ac_file commands" >&6;}
31539 case $ac_file$ac_mode in
31542 # See if we are running on zsh, and set the options which allow our
31543 # commands through without removal of \ escapes.
31544 if test -n "${ZSH_VERSION+set}" ; then
31545 setopt NO_GLOB_SUBST
31548 cfgfile="${ofile}T"
31549 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
31552 cat <<_LT_EOF >> "$cfgfile"
31555 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
31556 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
31557 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
31558 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
31560 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
31561 # 2006, 2007, 2008 Free Software Foundation, Inc.
31562 # Written by Gordon Matzigkeit, 1996
31564 # This file is part of GNU Libtool.
31566 # GNU Libtool is free software; you can redistribute it and/or
31567 # modify it under the terms of the GNU General Public License as
31568 # published by the Free Software Foundation; either version 2 of
31569 # the License, or (at your option) any later version.
31571 # As a special exception to the GNU General Public License,
31572 # if you distribute this file as part of a program or library that
31573 # is built using GNU Libtool, you may include this file under the
31574 # same distribution terms that you use for the rest of that program.
31576 # GNU Libtool is distributed in the hope that it will be useful,
31577 # but WITHOUT ANY WARRANTY; without even the implied warranty of
31578 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
31579 # GNU General Public License for more details.
31581 # You should have received a copy of the GNU General Public License
31582 # along with GNU Libtool; see the file COPYING. If not, a copy
31583 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
31584 # obtained by writing to the Free Software Foundation, Inc.,
31585 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
31588 # The names of the tagged configurations supported by this script.
31589 available_tags="CXX "
31591 # ### BEGIN LIBTOOL CONFIG
31593 # Which release of libtool.m4 was used?
31594 macro_version=$macro_version
31595 macro_revision=$macro_revision
31597 # Whether or not to build shared libraries.
31598 build_libtool_libs=$enable_shared
31600 # Whether or not to build static libraries.
31601 build_old_libs=$enable_static
31603 # What type of objects to build.
31606 # Whether or not to optimize for fast installation.
31607 fast_install=$enable_fast_install
31610 host_alias=$host_alias
31614 # The build system.
31615 build_alias=$build_alias
31619 # A sed program that does not truncate output.
31622 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
31623 Xsed="\$SED -e 1s/^X//"
31625 # A grep program that handles long lines.
31631 # A literal string matcher.
31634 # A BSD- or MS-compatible name lister.
31637 # Whether we need soft or hard links.
31640 # What is the maximum length of a command?
31641 max_cmd_len=$max_cmd_len
31643 # Object file suffix (normally "o").
31646 # Executable file suffix (normally "").
31649 # whether the shell understands "unset".
31652 # turn spaces into newlines.
31655 # turn newlines into spaces.
31658 # How to create reloadable object files.
31659 reload_flag=$lt_reload_flag
31660 reload_cmds=$lt_reload_cmds
31662 # An object symbol dumper.
31663 OBJDUMP=$lt_OBJDUMP
31665 # Method to check whether dependent libraries are shared objects.
31666 deplibs_check_method=$lt_deplibs_check_method
31668 # Command to use when deplibs_check_method == "file_magic".
31669 file_magic_cmd=$lt_file_magic_cmd
31673 AR_FLAGS=$lt_AR_FLAGS
31675 # A symbol stripping program.
31678 # Commands used to install an old-style archive.
31680 old_postinstall_cmds=$lt_old_postinstall_cmds
31681 old_postuninstall_cmds=$lt_old_postuninstall_cmds
31686 # LTCC compiler flags.
31687 LTCFLAGS=$lt_CFLAGS
31689 # Take the output of nm and produce a listing of raw symbols and C names.
31690 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
31692 # Transform the output of nm in a proper C declaration.
31693 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
31695 # Transform the output of nm in a C name address pair.
31696 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
31698 # Transform the output of nm in a C name address pair when lib prefix is needed.
31699 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
31701 # The name of the directory that contains temporary libtool files.
31704 # Shell to use when invoking shell scripts.
31707 # An echo program that does not interpret backslashes.
31710 # Used to examine libraries when file_magic_cmd begins with "file".
31711 MAGIC_CMD=$MAGIC_CMD
31713 # Must we lock files when doing compilation?
31714 need_locks=$lt_need_locks
31716 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
31717 DSYMUTIL=$lt_DSYMUTIL
31719 # Tool to change global to local symbols on Mac OS X.
31722 # Tool to manipulate fat objects and archives on Mac OS X.
31725 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
31728 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
31729 OTOOL64=$lt_OTOOL64
31731 # Old archive suffix (normally "a").
31734 # Shared library suffix (normally ".so").
31735 shrext_cmds=$lt_shrext_cmds
31737 # The commands to extract the exported symbol list from a shared archive.
31738 extract_expsyms_cmds=$lt_extract_expsyms_cmds
31740 # Variables whose values should be saved in libtool wrapper scripts and
31741 # restored at link time.
31742 variables_saved_for_relink=$lt_variables_saved_for_relink
31744 # Do we need the "lib" prefix for modules?
31745 need_lib_prefix=$need_lib_prefix
31747 # Do we need a version for libraries?
31748 need_version=$need_version
31750 # Library versioning type.
31751 version_type=$version_type
31753 # Shared library runtime path variable.
31754 runpath_var=$runpath_var
31756 # Shared library path variable.
31757 shlibpath_var=$shlibpath_var
31759 # Is shlibpath searched before the hard-coded library search path?
31760 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
31762 # Format of library name prefix.
31763 libname_spec=$lt_libname_spec
31765 # List of archive names. First name is the real one, the rest are links.
31766 # The last name is the one that the linker finds with -lNAME
31767 library_names_spec=$lt_library_names_spec
31769 # The coded name of the library, if different from the real name.
31770 soname_spec=$lt_soname_spec
31772 # Command to use after installation of a shared archive.
31773 postinstall_cmds=$lt_postinstall_cmds
31775 # Command to use after uninstallation of a shared archive.
31776 postuninstall_cmds=$lt_postuninstall_cmds
31778 # Commands used to finish a libtool library installation in a directory.
31779 finish_cmds=$lt_finish_cmds
31781 # As "finish_cmds", except a single script fragment to be evaled but
31783 finish_eval=$lt_finish_eval
31785 # Whether we should hardcode library paths into libraries.
31786 hardcode_into_libs=$hardcode_into_libs
31788 # Compile-time system search path for libraries.
31789 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
31791 # Run-time system search path for libraries.
31792 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
31794 # Whether dlopen is supported.
31795 dlopen_support=$enable_dlopen
31797 # Whether dlopen of programs is supported.
31798 dlopen_self=$enable_dlopen_self
31800 # Whether dlopen of statically linked programs is supported.
31801 dlopen_self_static=$enable_dlopen_self_static
31803 # Commands to strip libraries.
31804 old_striplib=$lt_old_striplib
31805 striplib=$lt_striplib
31808 # The linker used to build libraries.
31811 # Commands used to build an old-style archive.
31812 old_archive_cmds=$lt_old_archive_cmds
31814 # A language specific compiler.
31817 # Is the compiler the GNU compiler?
31820 # Compiler flag to turn off builtin functions.
31821 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
31823 # How to pass a linker flag through the compiler.
31824 wl=$lt_lt_prog_compiler_wl
31826 # Additional compiler flags for building library objects.
31827 pic_flag=$lt_lt_prog_compiler_pic
31829 # Compiler flag to prevent dynamic linking.
31830 link_static_flag=$lt_lt_prog_compiler_static
31832 # Does compiler simultaneously support -c and -o options?
31833 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
31835 # Whether or not to add -lc for building shared libraries.
31836 build_libtool_need_lc=$archive_cmds_need_lc
31838 # Whether or not to disallow shared libs when runtime libs are static.
31839 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
31841 # Compiler flag to allow reflexive dlopens.
31842 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
31844 # Compiler flag to generate shared objects directly from archives.
31845 whole_archive_flag_spec=$lt_whole_archive_flag_spec
31847 # Whether the compiler copes with passing no objects directly.
31848 compiler_needs_object=$lt_compiler_needs_object
31850 # Create an old-style archive from a shared archive.
31851 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
31853 # Create a temporary old-style archive to link instead of a shared archive.
31854 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
31856 # Commands used to build a shared archive.
31857 archive_cmds=$lt_archive_cmds
31858 archive_expsym_cmds=$lt_archive_expsym_cmds
31860 # Commands used to build a loadable module if different from building
31861 # a shared archive.
31862 module_cmds=$lt_module_cmds
31863 module_expsym_cmds=$lt_module_expsym_cmds
31865 # Whether we are building with GNU ld or not.
31866 with_gnu_ld=$lt_with_gnu_ld
31868 # Flag that allows shared libraries with undefined symbols to be built.
31869 allow_undefined_flag=$lt_allow_undefined_flag
31871 # Flag that enforces no undefined symbols.
31872 no_undefined_flag=$lt_no_undefined_flag
31874 # Flag to hardcode \$libdir into a binary during linking.
31875 # This must work even if \$libdir does not exist
31876 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
31878 # If ld is used when linking, flag to hardcode \$libdir into a binary
31879 # during linking. This must work even if \$libdir does not exist.
31880 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
31882 # Whether we need a single "-rpath" flag with a separated argument.
31883 hardcode_libdir_separator=$lt_hardcode_libdir_separator
31885 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
31886 # DIR into the resulting binary.
31887 hardcode_direct=$hardcode_direct
31889 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
31890 # DIR into the resulting binary and the resulting library dependency is
31891 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
31892 # library is relocated.
31893 hardcode_direct_absolute=$hardcode_direct_absolute
31895 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
31896 # into the resulting binary.
31897 hardcode_minus_L=$hardcode_minus_L
31899 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
31900 # into the resulting binary.
31901 hardcode_shlibpath_var=$hardcode_shlibpath_var
31903 # Set to "yes" if building a shared library automatically hardcodes DIR
31904 # into the library and all subsequent libraries and executables linked
31906 hardcode_automatic=$hardcode_automatic
31908 # Set to yes if linker adds runtime paths of dependent libraries
31909 # to runtime path list.
31910 inherit_rpath=$inherit_rpath
31912 # Whether libtool must link a program against all its dependency libraries.
31913 link_all_deplibs=$link_all_deplibs
31915 # Fix the shell variable \$srcfile for the compiler.
31916 fix_srcfile_path=$lt_fix_srcfile_path
31918 # Set to "yes" if exported symbols are required.
31919 always_export_symbols=$always_export_symbols
31921 # The commands to list exported symbols.
31922 export_symbols_cmds=$lt_export_symbols_cmds
31924 # Symbols that should not be listed in the preloaded symbols.
31925 exclude_expsyms=$lt_exclude_expsyms
31927 # Symbols that must always be exported.
31928 include_expsyms=$lt_include_expsyms
31930 # Commands necessary for linking programs (against libraries) with templates.
31931 prelink_cmds=$lt_prelink_cmds
31933 # Specify filename containing input files.
31934 file_list_spec=$lt_file_list_spec
31936 # How to hardcode a shared library path into an executable.
31937 hardcode_action=$hardcode_action
31939 # The directories searched by this compiler when creating a shared library.
31940 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
31942 # Dependencies to place before and after the objects being linked to
31943 # create a shared library.
31944 predep_objects=$lt_predep_objects
31945 postdep_objects=$lt_postdep_objects
31946 predeps=$lt_predeps
31947 postdeps=$lt_postdeps
31949 # The library search path used internally by the compiler when linking
31950 # a shared library.
31951 compiler_lib_search_path=$lt_compiler_lib_search_path
31953 # ### END LIBTOOL CONFIG
31959 cat <<\_LT_EOF >> "$cfgfile"
31960 # AIX sometimes has problems with the GCC collect2 program. For some
31961 # reason, if we set the COLLECT_NAMES environment variable, the problems
31962 # vanish in a puff of smoke.
31963 if test "X${COLLECT_NAMES+set}" != Xset; then
31965 export COLLECT_NAMES
31972 ltmain="$ac_aux_dir/ltmain.sh"
31975 # We use sed instead of cat because bash on DJGPP gets confused if
31976 # if finds mixed CR/LF and LF-only lines. Since sed operates in
31977 # text mode, it properly converts lines to CR/LF. This bash problem
31978 # is reportedly fixed, but why not run on old versions too?
31979 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
31980 || (rm -f "$cfgfile"; exit 1)
31984 cat << \_LT_EOF >> "$cfgfile"
31986 # func_dirname file append nondir_replacement
31987 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
31988 # otherwise set result to NONDIR_REPLACEMENT.
31992 */*) func_dirname_result="${1%/*}${2}" ;;
31993 * ) func_dirname_result="${3}" ;;
31997 # func_basename file
32000 func_basename_result="${1##*/}"
32003 # func_dirname_and_basename file append nondir_replacement
32004 # perform func_basename and func_dirname in a single function
32006 # dirname: Compute the dirname of FILE. If nonempty,
32007 # add APPEND to the result, otherwise set result
32008 # to NONDIR_REPLACEMENT.
32009 # value returned in "$func_dirname_result"
32010 # basename: Compute filename of FILE.
32011 # value retuned in "$func_basename_result"
32012 # Implementation must be kept synchronized with func_dirname
32013 # and func_basename. For efficiency, we do not delegate to
32014 # those functions but instead duplicate the functionality here.
32015 func_dirname_and_basename ()
32018 */*) func_dirname_result="${1%/*}${2}" ;;
32019 * ) func_dirname_result="${3}" ;;
32021 func_basename_result="${1##*/}"
32024 # func_stripname prefix suffix name
32025 # strip PREFIX and SUFFIX off of NAME.
32026 # PREFIX and SUFFIX must not contain globbing or regex special
32027 # characters, hashes, percent signs, but SUFFIX may contain a leading
32028 # dot (in which case that matches only a dot).
32031 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
32032 # positional parameters, so assign one to ordinary parameter first.
32033 func_stripname_result=${3}
32034 func_stripname_result=${func_stripname_result#"${1}"}
32035 func_stripname_result=${func_stripname_result%"${2}"}
32041 func_opt_split_opt=${1%%=*}
32042 func_opt_split_arg=${1#*=}
32049 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
32050 *) func_lo2o_result=${1} ;;
32054 # func_xform libobj-or-source
32057 func_xform_result=${1%.*}.lo
32060 # func_arith arithmetic-term...
32063 func_arith_result=$(( $* ))
32067 # STRING may not start with a hyphen.
32070 func_len_result=${#1}
32075 *) # Bourne compatible functions.
32076 cat << \_LT_EOF >> "$cfgfile"
32078 # func_dirname file append nondir_replacement
32079 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
32080 # otherwise set result to NONDIR_REPLACEMENT.
32083 # Extract subdirectory from the argument.
32084 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
32085 if test "X$func_dirname_result" = "X${1}"; then
32086 func_dirname_result="${3}"
32088 func_dirname_result="$func_dirname_result${2}"
32092 # func_basename file
32095 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
32099 # func_stripname prefix suffix name
32100 # strip PREFIX and SUFFIX off of NAME.
32101 # PREFIX and SUFFIX must not contain globbing or regex special
32102 # characters, hashes, percent signs, but SUFFIX may contain a leading
32103 # dot (in which case that matches only a dot).
32104 # func_strip_suffix prefix name
32108 .*) func_stripname_result=`$ECHO "X${3}" \
32109 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
32110 *) func_stripname_result=`$ECHO "X${3}" \
32111 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
32116 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
32117 my_sed_long_arg='1s/^-[^=]*=//'
32122 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
32123 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
32129 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
32132 # func_xform libobj-or-source
32135 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
32138 # func_arith arithmetic-term...
32141 func_arith_result=`expr "$@"`
32145 # STRING may not start with a hyphen.
32148 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
32154 case $lt_shell_append in
32156 cat << \_LT_EOF >> "$cfgfile"
32158 # func_append var value
32159 # Append VALUE to the end of shell variable VAR.
32167 cat << \_LT_EOF >> "$cfgfile"
32169 # func_append var value
32170 # Append VALUE to the end of shell variable VAR.
32181 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
32182 || (rm -f "$cfgfile"; exit 1)
32184 mv -f "$cfgfile" "$ofile" ||
32185 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
32189 cat <<_LT_EOF >> "$ofile"
32191 # ### BEGIN LIBTOOL TAG CONFIG: CXX
32193 # The linker used to build libraries.
32196 # Commands used to build an old-style archive.
32197 old_archive_cmds=$lt_old_archive_cmds_CXX
32199 # A language specific compiler.
32200 CC=$lt_compiler_CXX
32202 # Is the compiler the GNU compiler?
32205 # Compiler flag to turn off builtin functions.
32206 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
32208 # How to pass a linker flag through the compiler.
32209 wl=$lt_lt_prog_compiler_wl_CXX
32211 # Additional compiler flags for building library objects.
32212 pic_flag=$lt_lt_prog_compiler_pic_CXX
32214 # Compiler flag to prevent dynamic linking.
32215 link_static_flag=$lt_lt_prog_compiler_static_CXX
32217 # Does compiler simultaneously support -c and -o options?
32218 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
32220 # Whether or not to add -lc for building shared libraries.
32221 build_libtool_need_lc=$archive_cmds_need_lc_CXX
32223 # Whether or not to disallow shared libs when runtime libs are static.
32224 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
32226 # Compiler flag to allow reflexive dlopens.
32227 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
32229 # Compiler flag to generate shared objects directly from archives.
32230 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
32232 # Whether the compiler copes with passing no objects directly.
32233 compiler_needs_object=$lt_compiler_needs_object_CXX
32235 # Create an old-style archive from a shared archive.
32236 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
32238 # Create a temporary old-style archive to link instead of a shared archive.
32239 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
32241 # Commands used to build a shared archive.
32242 archive_cmds=$lt_archive_cmds_CXX
32243 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
32245 # Commands used to build a loadable module if different from building
32246 # a shared archive.
32247 module_cmds=$lt_module_cmds_CXX
32248 module_expsym_cmds=$lt_module_expsym_cmds_CXX
32250 # Whether we are building with GNU ld or not.
32251 with_gnu_ld=$lt_with_gnu_ld_CXX
32253 # Flag that allows shared libraries with undefined symbols to be built.
32254 allow_undefined_flag=$lt_allow_undefined_flag_CXX
32256 # Flag that enforces no undefined symbols.
32257 no_undefined_flag=$lt_no_undefined_flag_CXX
32259 # Flag to hardcode \$libdir into a binary during linking.
32260 # This must work even if \$libdir does not exist
32261 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
32263 # If ld is used when linking, flag to hardcode \$libdir into a binary
32264 # during linking. This must work even if \$libdir does not exist.
32265 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
32267 # Whether we need a single "-rpath" flag with a separated argument.
32268 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
32270 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
32271 # DIR into the resulting binary.
32272 hardcode_direct=$hardcode_direct_CXX
32274 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
32275 # DIR into the resulting binary and the resulting library dependency is
32276 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
32277 # library is relocated.
32278 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
32280 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
32281 # into the resulting binary.
32282 hardcode_minus_L=$hardcode_minus_L_CXX
32284 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
32285 # into the resulting binary.
32286 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
32288 # Set to "yes" if building a shared library automatically hardcodes DIR
32289 # into the library and all subsequent libraries and executables linked
32291 hardcode_automatic=$hardcode_automatic_CXX
32293 # Set to yes if linker adds runtime paths of dependent libraries
32294 # to runtime path list.
32295 inherit_rpath=$inherit_rpath_CXX
32297 # Whether libtool must link a program against all its dependency libraries.
32298 link_all_deplibs=$link_all_deplibs_CXX
32300 # Fix the shell variable \$srcfile for the compiler.
32301 fix_srcfile_path=$lt_fix_srcfile_path_CXX
32303 # Set to "yes" if exported symbols are required.
32304 always_export_symbols=$always_export_symbols_CXX
32306 # The commands to list exported symbols.
32307 export_symbols_cmds=$lt_export_symbols_cmds_CXX
32309 # Symbols that should not be listed in the preloaded symbols.
32310 exclude_expsyms=$lt_exclude_expsyms_CXX
32312 # Symbols that must always be exported.
32313 include_expsyms=$lt_include_expsyms_CXX
32315 # Commands necessary for linking programs (against libraries) with templates.
32316 prelink_cmds=$lt_prelink_cmds_CXX
32318 # Specify filename containing input files.
32319 file_list_spec=$lt_file_list_spec_CXX
32321 # How to hardcode a shared library path into an executable.
32322 hardcode_action=$hardcode_action_CXX
32324 # The directories searched by this compiler when creating a shared library.
32325 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
32327 # Dependencies to place before and after the objects being linked to
32328 # create a shared library.
32329 predep_objects=$lt_predep_objects_CXX
32330 postdep_objects=$lt_postdep_objects_CXX
32331 predeps=$lt_predeps_CXX
32332 postdeps=$lt_postdeps_CXX
32334 # The library search path used internally by the compiler when linking
32335 # a shared library.
32336 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
32338 # ### END LIBTOOL TAG CONFIG: CXX
32343 for ac_file in $CONFIG_FILES; do
32344 # Support "outfile[:infile[:infile...]]"
32346 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
32348 # PO directories have a Makefile.in generated from Makefile.in.in.
32349 case "$ac_file" in */Makefile.in)
32350 # Adjust a relative srcdir.
32351 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
32352 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
32353 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
32354 # In autoconf-2.13 it is called $ac_given_srcdir.
32355 # In autoconf-2.50 it is called $srcdir.
32356 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
32357 case "$ac_given_srcdir" in
32358 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
32359 /*) top_srcdir="$ac_given_srcdir" ;;
32360 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
32362 # Treat a directory as a PO directory if and only if it has a
32363 # POTFILES.in file. This allows packages to have multiple PO
32364 # directories under different names or in different locations.
32365 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
32366 rm -f "$ac_dir/POTFILES"
32367 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
32368 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
32369 POMAKEFILEDEPS="POTFILES.in"
32370 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
32371 # on $ac_dir but don't depend on user-specified configuration
32373 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
32374 # The LINGUAS file contains the set of available languages.
32375 if test -n "$OBSOLETE_ALL_LINGUAS"; then
32376 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
32378 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
32379 # Hide the ALL_LINGUAS assigment from automake.
32380 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
32381 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
32383 # The set of available languages was given in configure.in.
32384 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
32387 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
32388 # Compute UPDATEPOFILES
32389 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
32390 # Compute DUMMYPOFILES
32391 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
32393 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
32394 case "$ac_given_srcdir" in
32396 *) srcdirpre='$(srcdir)/' ;;
32402 for lang in $ALL_LINGUAS; do
32403 POFILES="$POFILES $srcdirpre$lang.po"
32404 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
32405 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
32406 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
32408 # CATALOGS depends on both $ac_dir and the user's LINGUAS
32409 # environment variable.
32411 if test -n "$ALL_LINGUAS"; then
32412 for presentlang in $ALL_LINGUAS; do
32414 if test "%UNSET%" != "$LINGUAS"; then
32415 desiredlanguages="$LINGUAS"
32417 desiredlanguages="$ALL_LINGUAS"
32419 for desiredlang in $desiredlanguages; do
32420 # Use the presentlang catalog if desiredlang is
32421 # a. equal to presentlang, or
32422 # b. a variant of presentlang (because in this case,
32423 # presentlang can be used as a fallback for messages
32424 # which are not translated in the desiredlang catalog).
32425 case "$desiredlang" in
32426 "$presentlang"*) useit=yes;;
32429 if test $useit = yes; then
32430 INST_LINGUAS="$INST_LINGUAS $presentlang"
32435 if test -n "$INST_LINGUAS"; then
32436 for lang in $INST_LINGUAS; do
32437 CATALOGS="$CATALOGS $lang.gmo"
32440 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
32441 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"
32442 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
32443 if test -f "$f"; then
32445 *.orig | *.bak | *~) ;;
32446 *) cat "$f" >> "$ac_dir/Makefile" ;;
32463 ac_clean_files=$ac_clean_files_save
32465 test $ac_write_fail = 0 ||
32466 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
32469 # configure is writing to config.log, and then calls config.status.
32470 # config.status does its own redirection, appending to config.log.
32471 # Unfortunately, on DOS this fails, as config.log is still kept open
32472 # by configure, so config.status won't be able to write to it; its
32473 # output is simply discarded. So we exec the FD to /dev/null,
32474 # effectively closing config.log, so it can be properly (re)opened and
32475 # appended to by config.status. When coming back to configure, we
32476 # need to make the FD available again.
32477 if test "$no_create" != yes; then
32479 ac_config_status_args=
32480 test "$silent" = yes &&
32481 ac_config_status_args="$ac_config_status_args --quiet"
32483 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
32485 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
32486 # would make configure fail if this is the last instruction.
32487 $ac_cs_success || as_fn_exit 1
32489 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
32490 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
32491 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
32495 if test "${support_bat}" = "yes" ; then
32496 if test "x$QMAKE" = "xnone"; then
32497 as_fn_error $? "Could not find qmake $PATH. Check your Qt installation" "$LINENO" 5
32502 echo "Creating bat Makefile"
32507 ${MAKE:-make} clean
32511 if test X"$GCC" = "Xyes" ; then
32512 echo "Doing make of dependencies"
32513 ${MAKE:-make} depend
32517 chmod 755 install_conf_file build-depkgs-qt-console
32521 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
32522 chmod 755 dvd-handler dvd-simulator
32523 chmod 755 bconsole gconsole mtx-changer devel_bacula logrotate
32527 chmod 755 $c/update_mysql_tables_10_to_11 $c/update_sqlite3_tables_10_to_11
32528 chmod 755 $c/update_postgresql_tables_10_to_11
32529 chmod 755 $c/update_mysql_tables_11_to_12 $c/update_sqlite3_tables_11_to_12
32530 chmod 755 $c/update_postgresql_tables_11_to_12
32535 chmod 755 $c/create_bacula_database $c/update_bacula_tables $c/make_bacula_tables
32536 chmod 755 $c/grant_bacula_privileges $c/drop_bacula_tables $c/drop_bacula_database
32538 chmod 755 $c/create_mysql_database $c/update_mysql_tables $c/make_mysql_tables
32539 chmod 755 $c/grant_mysql_privileges $c/drop_mysql_tables $c/drop_mysql_database
32541 chmod 755 $c/create_sqlite3_database $c/update_sqlite3_tables $c/make_sqlite3_tables
32542 chmod 755 $c/grant_sqlite3_privileges $c/drop_sqlite3_tables $c/drop_sqlite3_database
32544 chmod 755 $c/create_postgresql_database $c/update_postgresql_tables $c/make_postgresql_tables
32545 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables $c/drop_postgresql_database
32547 chmod 755 $c/create_ingres_database $c/update_ingres_tables $c/make_ingres_tables
32548 chmod 755 $c/grant_ingres_privileges $c/drop_ingres_tables $c/drop_ingres_database
32551 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup $c/make_catalog_backup.pl
32552 chmod 755 $c/sqlite
32555 chmod 755 src/win32/build-depkgs-mingw32
32557 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
32558 largefile_support="yes"
32561 if test X"$GCC" = "Xyes" ; then
32562 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
32563 if test "x${CCVERSION}" = "x" ; then
32564 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
32566 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
32567 if test x"${CXXVERSION}" = x ; then
32568 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
32572 # clean up any old junk
32576 ${MAKE:-make} clean
32579 Configuration on `date`:
32581 Host: ${host}${post_host} -- ${DISTNAME} ${DISTVER}
32582 Bacula version: ${BACULA} ${VERSION} (${DATE})
32583 Source code location: ${srcdir}
32584 Install binaries: ${sbindir}
32585 Install libraries: ${libdir}
32586 Install config files: ${sysconfdir}
32587 Scripts directory: ${scriptdir}
32588 Archive directory: ${archivedir}
32589 Working directory: ${working_dir}
32590 PID directory: ${piddir}
32591 Subsys directory: ${subsysdir}
32592 Man directory: ${mandir}
32593 Data directory: ${datarootdir}
32594 Plugin directory: ${plugindir}
32595 C Compiler: ${CC} ${CCVERSION}
32596 C++ Compiler: ${CXX} ${CXXVERSION}
32597 Compiler flags: ${WCFLAGS} ${CFLAGS}
32598 Linker flags: ${WLDFLAGS} ${LDFLAGS}
32600 Statically Linked Tools: ${support_static_tools}
32601 Statically Linked FD: ${support_static_fd}
32602 Statically Linked SD: ${support_static_sd}
32603 Statically Linked DIR: ${support_static_dir}
32604 Statically Linked CONS: ${support_static_cons}
32605 Database backends: ${db_backends}
32606 Database port: ${db_port}
32607 Database name: ${db_name}
32608 Database user: ${db_user}
32610 Job Output Email: ${job_email}
32611 Traceback Email: ${dump_email}
32612 SMTP Host Address: ${smtp_host}
32614 Director Port: ${dir_port}
32615 File daemon Port: ${fd_port}
32616 Storage daemon Port: ${sd_port}
32618 Director User: ${dir_user}
32619 Director Group: ${dir_group}
32620 Storage Daemon User: ${sd_user}
32621 Storage DaemonGroup: ${sd_group}
32622 File Daemon User: ${fd_user}
32623 File Daemon Group: ${fd_group}
32625 Large file support: $largefile_support
32626 Bacula conio support: ${got_conio} ${CONS_LIBS}
32627 readline support: ${got_readline} ${PRTREADLINE_SRC}
32628 TCP Wrappers support: ${TCPW_MSG} ${WRAPLIBS}
32629 TLS support: ${support_tls}
32630 Encryption support: ${support_crypto}
32631 ZLIB support: ${have_zlib}
32632 enable-smartalloc: ${support_smartalloc}
32633 enable-lockmgr: ${support_lockmgr}
32634 bat support: ${support_bat}
32635 enable-gnome: ${support_gnome} ${gnome_version}
32636 enable-bwx-console: ${support_wx_console} ${wx_version}
32637 enable-tray-monitor: ${support_tray_monitor}
32638 client-only: ${build_client_only}
32639 build-dird: ${build_dird}
32640 build-stored: ${build_stored}
32641 Plugin support: ${have_plugins}
32642 AFS support: ${have_afs}
32643 ACL support: ${have_acl}
32644 XATTR support: ${have_xattr}
32645 Python support: ${support_python} ${PYTHON_LIBS}
32646 Batch insert enabled: ${support_batch_insert}
32650 # create a small shell script useful for support with
32651 # configure options and config.out info
32652 cat > scripts/bacula_config << EOF
32655 $ $0 $ac_configure_args
32657 cat config.out >> scripts/bacula_config
32658 echo __EOC__ >> scripts/bacula_config
32659 chmod 755 scripts/bacula_config