2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.65.
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
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.
93 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98 test -z "$as_dir" && as_dir=.
99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105 # We did not find ourselves, most probably we were run as `sh COMMAND'
106 # in which case we are not to be found in the path.
107 if test "x$as_myself" = x; then
110 if test ! -f "$as_myself"; then
111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115 # Unset variables that we do not need and which cause bugs (e.g. in
116 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117 # suppresses any "Segmentation fault" message there. '((' could
118 # trigger a bug in pdksh 5.2.14.
119 for as_var in BASH_ENV ENV MAIL MAILPATH
120 do eval test x\${$as_var+set} = xset \
121 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
134 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136 if test "x$CONFIG_SHELL" = x; then
137 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141 # is contrary to our usage. Disable this feature.
142 alias -g '\${1+\"\$@\"}'='\"\$@\"'
145 case \`(set -o) 2>/dev/null\` in #(
153 as_required="as_fn_return () { (exit \$1); }
154 as_fn_success () { as_fn_return 0; }
155 as_fn_failure () { as_fn_return 1; }
156 as_fn_ret_success () { return 0; }
157 as_fn_ret_failure () { return 1; }
160 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167 exitcode=1; echo positional parameters were not saved.
169 test x\$exitcode = x0 || exit 1"
170 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174 test \$(( 1 + 1 )) = 2 || exit 1"
175 if (eval "$as_required") 2>/dev/null; then :
180 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
185 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
188 test -z "$as_dir" && as_dir=.
192 for as_base in sh bash ksh sh5; do
193 # Try only shells that exist, to save several forks.
194 as_shell=$as_dir/$as_base
195 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
196 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 CONFIG_SHELL=$as_shell as_have_required=yes
198 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
206 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
208 CONFIG_SHELL=$SHELL as_have_required=yes
213 if test "x$CONFIG_SHELL" != x; then :
214 # We cannot yet assume a decent shell, so we have to provide a
215 # neutralization value for shells without unset; and this also
216 # works around shells that cannot unset nonexistent variables.
219 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
221 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
224 if test x$as_have_required = xno; then :
225 $as_echo "$0: This script requires a shell more modern than all"
226 $as_echo "$0: the shells that I found on your system."
227 if test x${ZSH_VERSION+set} = xset ; then
228 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
231 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
232 $0: including any error possibly output before this
233 $0: message. Then install a modern shell, or manually run
234 $0: the script under such a shell if you do have one."
240 SHELL=${CONFIG_SHELL-/bin/sh}
242 # Unset more variables known to interfere with behavior of common tools.
243 CLICOLOR_FORCE= GREP_OPTIONS=
244 unset CLICOLOR_FORCE GREP_OPTIONS
246 ## --------------------- ##
247 ## M4sh Shell Functions. ##
248 ## --------------------- ##
251 # Portably unset VAR.
254 { eval $1=; unset $1;}
258 # as_fn_set_status STATUS
259 # -----------------------
260 # Set $? to STATUS, without forking.
268 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
278 # Create "$as_dir" as a directory, including parents if necessary.
283 -*) as_dir=./$as_dir;;
285 test -d "$as_dir" || eval $as_mkdir_p || {
289 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
292 as_dirs="'$as_qdir' $as_dirs"
293 as_dir=`$as_dirname -- "$as_dir" ||
294 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
295 X"$as_dir" : 'X\(//\)[^/]' \| \
296 X"$as_dir" : 'X\(//\)$' \| \
297 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
298 $as_echo X"$as_dir" |
299 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
316 test -d "$as_dir" && break
318 test -z "$as_dirs" || eval "mkdir $as_dirs"
319 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
323 # as_fn_append VAR VALUE
324 # ----------------------
325 # Append the text in VALUE to the end of the definition contained in VAR. Take
326 # advantage of any shell optimizations that allow amortized linear growth over
327 # repeated appends, instead of the typical quadratic growth present in naive
329 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
330 eval 'as_fn_append ()
343 # Perform arithmetic evaluation on the ARGs, and store the result in the
344 # global $as_val. Take advantage of shells that can avoid forks. The arguments
345 # must be portable across $(()) and expr.
346 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
354 as_val=`expr "$@" || test $? -eq 1`
359 # as_fn_error ERROR [LINENO LOG_FD]
360 # ---------------------------------
361 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
362 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
363 # script with status $?, using 1 if that was 0.
366 as_status=$?; test $as_status -eq 0 && as_status=1
368 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
369 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
371 $as_echo "$as_me: error: $1" >&2
372 as_fn_exit $as_status
375 if expr a : '\(a\)' >/dev/null 2>&1 &&
376 test "X`expr 00001 : '.*\(...\)'`" = X001; then
382 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
388 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
394 as_me=`$as_basename -- "$0" ||
395 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
396 X"$0" : 'X\(//\)$' \| \
397 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
399 sed '/^.*\/\([^/][^/]*\)\/*$/{
413 # Avoid depending upon Character Ranges.
414 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
415 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
416 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
417 as_cr_digits='0123456789'
418 as_cr_alnum=$as_cr_Letters$as_cr_digits
421 as_lineno_1=$LINENO as_lineno_1a=$LINENO
422 as_lineno_2=$LINENO as_lineno_2a=$LINENO
423 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
424 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
425 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
437 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
441 chmod +x "$as_me.lineno" ||
442 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
444 # Don't try to exec as it changes $[0], causing all sort of problems
445 # (the dirname of $[0] is not the place where we might find the
446 # original and so on. Autoconf is especially sensitive to this).
448 # Exit status is that of the last command.
452 ECHO_C= ECHO_N= ECHO_T=
453 case `echo -n x` in #(((((
455 case `echo 'xy\c'` in
456 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
458 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
465 rm -f conf$$ conf$$.exe conf$$.file
466 if test -d conf$$.dir; then
467 rm -f conf$$.dir/conf$$.file
470 mkdir conf$$.dir 2>/dev/null
472 if (echo >conf$$.file) 2>/dev/null; then
473 if ln -s conf$$.file conf$$ 2>/dev/null; then
475 # ... but there are two gotchas:
476 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
477 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
478 # In both cases, we have to default to `cp -p'.
479 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
481 elif ln conf$$.file conf$$ 2>/dev/null; then
489 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
490 rmdir conf$$.dir 2>/dev/null
492 if mkdir -p . 2>/dev/null; then
493 as_mkdir_p='mkdir -p "$as_dir"'
495 test -d ./-p && rmdir ./-p
499 if test -x / >/dev/null 2>&1; then
502 if ls -dL / >/dev/null 2>&1; then
509 if test -d "$1"; then
515 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
516 ???[sx]*):;;*)false;;esac;fi
520 as_executable_p=$as_test_x
522 # Sed expression to map a string onto a valid CPP name.
523 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
525 # Sed expression to map a string onto a valid variable name.
526 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
530 # Check that we are running under the correct shell.
531 SHELL=${CONFIG_SHELL-/bin/sh}
535 # Remove one level of quotation (which was required for Make).
536 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
541 if test "X$1" = X--no-reexec; then
542 # Discard the --no-reexec flag, and continue.
544 elif test "X$1" = X--fallback-echo; then
545 # Avoid inline document here, it may be left over
547 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
548 # Yippee, $ECHO works!
551 # Restart under the correct shell.
552 exec $SHELL "$0" --no-reexec ${1+"$@"}
555 if test "X$1" = X--fallback-echo; then
556 # used as fallback echo
564 # The HP-UX ksh and POSIX shell print the target directory to stdout
566 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
568 if test -z "$lt_ECHO"; then
569 if test "X${echo_test_string+set}" != Xset; then
570 # find a string as large as possible, as long as the shell can cope with it
571 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
572 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
573 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
574 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
581 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
582 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
583 test "X$echo_testing_string" = "X$echo_test_string"; then
586 # The Solaris, AIX, and Digital Unix default echo programs unquote
587 # backslashes. This makes it impossible to quote backslashes using
588 # echo "$something" | sed 's/\\/\\\\/g'
590 # So, first we look for a working echo in the user's PATH.
592 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
593 for dir in $PATH /usr/ucb; do
595 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
596 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
597 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
598 test "X$echo_testing_string" = "X$echo_test_string"; then
605 if test "X$ECHO" = Xecho; then
606 # We didn't find a better echo, so look for alternatives.
607 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
608 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
609 test "X$echo_testing_string" = "X$echo_test_string"; then
610 # This shell has a builtin print -r that does the trick.
612 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
613 test "X$CONFIG_SHELL" != X/bin/ksh; then
614 # If we have ksh, try running configure again with it.
615 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
616 export ORIGINAL_CONFIG_SHELL
617 CONFIG_SHELL=/bin/ksh
619 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
623 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
624 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
625 test "X$echo_testing_string" = "X$echo_test_string"; then
628 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
629 test "X$echo_testing_string" = 'X\t' &&
630 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
631 test "X$echo_testing_string" = "X$echo_test_string"; then
632 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
634 SHELL="$CONFIG_SHELL"
636 ECHO="$CONFIG_SHELL $0 --fallback-echo"
637 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
638 test "X$echo_testing_string" = 'X\t' &&
639 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
640 test "X$echo_testing_string" = "X$echo_test_string"; then
641 ECHO="$CONFIG_SHELL $0 --fallback-echo"
643 # maybe with a smaller string...
646 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
647 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
654 if test "$prev" != 'sed 50q "$0"'; then
655 echo_test_string=`eval $prev`
656 export echo_test_string
657 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
659 # Oops. We lost completely, so just stick with echo.
668 # Copy echo and quote the copy suitably for passing to libtool from
669 # the Makefile, instead of quoting the original, which is used later.
671 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
672 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
678 test -n "$DJDIR" || exec 7<&0 </dev/null
682 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
683 # so uname gets run too.
684 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
689 ac_default_prefix=/usr/local
691 ac_config_libobj_dir=.
698 # Identity of this package.
706 ac_unique_file="src/version.h"
707 # Factoring default headers for most tests.
708 ac_includes_default="\
710 #ifdef HAVE_SYS_TYPES_H
711 # include <sys/types.h>
713 #ifdef HAVE_SYS_STAT_H
714 # include <sys/stat.h>
720 # ifdef HAVE_STDLIB_H
725 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
730 #ifdef HAVE_STRINGS_H
731 # include <strings.h>
733 #ifdef HAVE_INTTYPES_H
734 # include <inttypes.h>
744 ac_subst_vars='LTLIBOBJS
837 TRAY_MONITOR_CPPFLAGS
846 INTL_LIBTOOL_SUFFIX_PREFIX
853 BUILD_INCLUDED_LIBINTL
884 HAVE_OPENBSD_OS_FALSE
888 HAVE_FREEBSD_OS_FALSE
900 INCLUDE_UNINSTALL_TARGET
901 INCLUDE_INSTALL_TARGET
905 LIBTOOL_UNINSTALL_TARGET
906 LIBTOOL_INSTALL_TARGET
907 DEFAULT_SHARED_OBJECT_TYPE
981 LIBBACFIND_LT_RELEASE
1025 program_transform_name
1036 ac_subst_files='MCOMMON'
1038 enable_option_checking
1049 with_libiconv_prefix
1051 with_included_gettext
1090 with_mon_dir_password
1091 with_mon_fd_password
1092 with_mon_sd_password
1119 ac_precious_vars='build_alias
1137 # Initialize some variables set by options.
1139 ac_init_version=false
1140 ac_unrecognized_opts=
1141 ac_unrecognized_sep=
1142 # The variables have the same names as the options, with
1143 # dashes changed to underlines.
1144 cache_file=/dev/null
1151 program_transform_name=s,x,x,
1159 # Installation directory options.
1160 # These are left unexpanded so users can "make install exec_prefix=/foo"
1161 # and all the variables that are supposed to be based on exec_prefix
1162 # by default will actually change.
1163 # Use braces instead of parens because sh, perl, etc. also accept them.
1164 # (The list follows the same order as the GNU Coding Standards.)
1165 bindir='${exec_prefix}/bin'
1166 sbindir='${exec_prefix}/sbin'
1167 libexecdir='${exec_prefix}/libexec'
1168 datarootdir='${prefix}/share'
1169 datadir='${datarootdir}'
1170 sysconfdir='${prefix}/etc'
1171 sharedstatedir='${prefix}/com'
1172 localstatedir='${prefix}/var'
1173 includedir='${prefix}/include'
1174 oldincludedir='/usr/include'
1175 docdir='${datarootdir}/doc/${PACKAGE}'
1176 infodir='${datarootdir}/info'
1181 libdir='${exec_prefix}/lib'
1182 localedir='${datarootdir}/locale'
1183 mandir='${datarootdir}/man'
1189 # If the previous option needs an argument, assign it.
1190 if test -n "$ac_prev"; then
1191 eval $ac_prev=\$ac_option
1197 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1201 # Accept the important Cygnus configure options, so we can diagnose typos.
1203 case $ac_dashdash$ac_option in
1207 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1209 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1210 bindir=$ac_optarg ;;
1212 -build | --build | --buil | --bui | --bu)
1213 ac_prev=build_alias ;;
1214 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1215 build_alias=$ac_optarg ;;
1217 -cache-file | --cache-file | --cache-fil | --cache-fi \
1218 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1219 ac_prev=cache_file ;;
1220 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1221 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1222 cache_file=$ac_optarg ;;
1224 --config-cache | -C)
1225 cache_file=config.cache ;;
1227 -datadir | --datadir | --datadi | --datad)
1229 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1230 datadir=$ac_optarg ;;
1232 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1233 | --dataroo | --dataro | --datar)
1234 ac_prev=datarootdir ;;
1235 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1236 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1237 datarootdir=$ac_optarg ;;
1239 -disable-* | --disable-*)
1240 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1241 # Reject names that are not valid shell variable names.
1242 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1243 as_fn_error "invalid feature name: $ac_useropt"
1244 ac_useropt_orig=$ac_useropt
1245 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1246 case $ac_user_opts in
1248 "enable_$ac_useropt"
1250 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1251 ac_unrecognized_sep=', ';;
1253 eval enable_$ac_useropt=no ;;
1255 -docdir | --docdir | --docdi | --doc | --do)
1257 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1258 docdir=$ac_optarg ;;
1260 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1262 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1263 dvidir=$ac_optarg ;;
1265 -enable-* | --enable-*)
1266 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1267 # Reject names that are not valid shell variable names.
1268 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1269 as_fn_error "invalid feature name: $ac_useropt"
1270 ac_useropt_orig=$ac_useropt
1271 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1272 case $ac_user_opts in
1274 "enable_$ac_useropt"
1276 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1277 ac_unrecognized_sep=', ';;
1279 eval enable_$ac_useropt=\$ac_optarg ;;
1281 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1282 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1283 | --exec | --exe | --ex)
1284 ac_prev=exec_prefix ;;
1285 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1286 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1287 | --exec=* | --exe=* | --ex=*)
1288 exec_prefix=$ac_optarg ;;
1290 -gas | --gas | --ga | --g)
1291 # Obsolete; use --with-gas.
1294 -help | --help | --hel | --he | -h)
1295 ac_init_help=long ;;
1296 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1297 ac_init_help=recursive ;;
1298 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1299 ac_init_help=short ;;
1301 -host | --host | --hos | --ho)
1302 ac_prev=host_alias ;;
1303 -host=* | --host=* | --hos=* | --ho=*)
1304 host_alias=$ac_optarg ;;
1306 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1308 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1310 htmldir=$ac_optarg ;;
1312 -includedir | --includedir | --includedi | --included | --include \
1313 | --includ | --inclu | --incl | --inc)
1314 ac_prev=includedir ;;
1315 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1316 | --includ=* | --inclu=* | --incl=* | --inc=*)
1317 includedir=$ac_optarg ;;
1319 -infodir | --infodir | --infodi | --infod | --info | --inf)
1321 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1322 infodir=$ac_optarg ;;
1324 -libdir | --libdir | --libdi | --libd)
1326 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1327 libdir=$ac_optarg ;;
1329 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1330 | --libexe | --libex | --libe)
1331 ac_prev=libexecdir ;;
1332 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1333 | --libexe=* | --libex=* | --libe=*)
1334 libexecdir=$ac_optarg ;;
1336 -localedir | --localedir | --localedi | --localed | --locale)
1337 ac_prev=localedir ;;
1338 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1339 localedir=$ac_optarg ;;
1341 -localstatedir | --localstatedir | --localstatedi | --localstated \
1342 | --localstate | --localstat | --localsta | --localst | --locals)
1343 ac_prev=localstatedir ;;
1344 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1345 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1346 localstatedir=$ac_optarg ;;
1348 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1350 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1351 mandir=$ac_optarg ;;
1353 -nfp | --nfp | --nf)
1354 # Obsolete; use --without-fp.
1357 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1358 | --no-cr | --no-c | -n)
1361 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1362 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1365 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1366 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1367 | --oldin | --oldi | --old | --ol | --o)
1368 ac_prev=oldincludedir ;;
1369 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1370 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1371 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1372 oldincludedir=$ac_optarg ;;
1374 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1376 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1377 prefix=$ac_optarg ;;
1379 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1380 | --program-pre | --program-pr | --program-p)
1381 ac_prev=program_prefix ;;
1382 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1383 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1384 program_prefix=$ac_optarg ;;
1386 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1387 | --program-suf | --program-su | --program-s)
1388 ac_prev=program_suffix ;;
1389 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1390 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1391 program_suffix=$ac_optarg ;;
1393 -program-transform-name | --program-transform-name \
1394 | --program-transform-nam | --program-transform-na \
1395 | --program-transform-n | --program-transform- \
1396 | --program-transform | --program-transfor \
1397 | --program-transfo | --program-transf \
1398 | --program-trans | --program-tran \
1399 | --progr-tra | --program-tr | --program-t)
1400 ac_prev=program_transform_name ;;
1401 -program-transform-name=* | --program-transform-name=* \
1402 | --program-transform-nam=* | --program-transform-na=* \
1403 | --program-transform-n=* | --program-transform-=* \
1404 | --program-transform=* | --program-transfor=* \
1405 | --program-transfo=* | --program-transf=* \
1406 | --program-trans=* | --program-tran=* \
1407 | --progr-tra=* | --program-tr=* | --program-t=*)
1408 program_transform_name=$ac_optarg ;;
1410 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1412 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1413 pdfdir=$ac_optarg ;;
1415 -psdir | --psdir | --psdi | --psd | --ps)
1417 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1420 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1421 | -silent | --silent | --silen | --sile | --sil)
1424 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1426 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1428 sbindir=$ac_optarg ;;
1430 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1431 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1432 | --sharedst | --shareds | --shared | --share | --shar \
1434 ac_prev=sharedstatedir ;;
1435 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1436 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1437 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1439 sharedstatedir=$ac_optarg ;;
1441 -site | --site | --sit)
1443 -site=* | --site=* | --sit=*)
1446 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1448 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1449 srcdir=$ac_optarg ;;
1451 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1452 | --syscon | --sysco | --sysc | --sys | --sy)
1453 ac_prev=sysconfdir ;;
1454 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1455 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1456 sysconfdir=$ac_optarg ;;
1458 -target | --target | --targe | --targ | --tar | --ta | --t)
1459 ac_prev=target_alias ;;
1460 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1461 target_alias=$ac_optarg ;;
1463 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1466 -version | --version | --versio | --versi | --vers | -V)
1467 ac_init_version=: ;;
1470 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1471 # Reject names that are not valid shell variable names.
1472 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1473 as_fn_error "invalid package name: $ac_useropt"
1474 ac_useropt_orig=$ac_useropt
1475 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1476 case $ac_user_opts in
1480 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1481 ac_unrecognized_sep=', ';;
1483 eval with_$ac_useropt=\$ac_optarg ;;
1485 -without-* | --without-*)
1486 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1487 # Reject names that are not valid shell variable names.
1488 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1489 as_fn_error "invalid package name: $ac_useropt"
1490 ac_useropt_orig=$ac_useropt
1491 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1492 case $ac_user_opts in
1496 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1497 ac_unrecognized_sep=', ';;
1499 eval with_$ac_useropt=no ;;
1502 # Obsolete; use --with-x.
1505 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1506 | --x-incl | --x-inc | --x-in | --x-i)
1507 ac_prev=x_includes ;;
1508 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1509 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1510 x_includes=$ac_optarg ;;
1512 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1513 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1514 ac_prev=x_libraries ;;
1515 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1516 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1517 x_libraries=$ac_optarg ;;
1519 -*) as_fn_error "unrecognized option: \`$ac_option'
1520 Try \`$0 --help' for more information."
1524 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1525 # Reject names that are not valid shell variable names.
1526 case $ac_envvar in #(
1527 '' | [0-9]* | *[!_$as_cr_alnum]* )
1528 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1530 eval $ac_envvar=\$ac_optarg
1531 export $ac_envvar ;;
1534 # FIXME: should be removed in autoconf 3.0.
1535 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1536 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1537 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1538 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1544 if test -n "$ac_prev"; then
1545 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1546 as_fn_error "missing argument to $ac_option"
1549 if test -n "$ac_unrecognized_opts"; then
1550 case $enable_option_checking in
1552 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1553 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1557 # Check all directory arguments for consistency.
1558 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1559 datadir sysconfdir sharedstatedir localstatedir includedir \
1560 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1561 libdir localedir mandir
1563 eval ac_val=\$$ac_var
1564 # Remove trailing slashes.
1567 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1568 eval $ac_var=\$ac_val;;
1570 # Be sure to have absolute directory names.
1572 [\\/$]* | ?:[\\/]* ) continue;;
1573 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1575 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1578 # There might be people who depend on the old broken behavior: `$host'
1579 # used to hold the argument of --host etc.
1580 # FIXME: To remove some day.
1583 target=$target_alias
1585 # FIXME: To remove some day.
1586 if test "x$host_alias" != x; then
1587 if test "x$build_alias" = x; then
1588 cross_compiling=maybe
1589 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1590 If a cross compiler is detected then cross compile mode will be used." >&2
1591 elif test "x$build_alias" != "x$host_alias"; then
1597 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1599 test "$silent" = yes && exec 6>/dev/null
1602 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1603 ac_ls_di=`ls -di .` &&
1604 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1605 as_fn_error "working directory cannot be determined"
1606 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1607 as_fn_error "pwd does not report name of working directory"
1610 # Find the source files, if location was not specified.
1611 if test -z "$srcdir"; then
1612 ac_srcdir_defaulted=yes
1613 # Try the directory containing this script, then the parent directory.
1614 ac_confdir=`$as_dirname -- "$as_myself" ||
1615 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1616 X"$as_myself" : 'X\(//\)[^/]' \| \
1617 X"$as_myself" : 'X\(//\)$' \| \
1618 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1619 $as_echo X"$as_myself" |
1620 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1638 if test ! -r "$srcdir/$ac_unique_file"; then
1642 ac_srcdir_defaulted=no
1644 if test ! -r "$srcdir/$ac_unique_file"; then
1645 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1646 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1648 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1650 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1652 # When building in place, set srcdir=.
1653 if test "$ac_abs_confdir" = "$ac_pwd"; then
1656 # Remove unnecessary trailing slashes from srcdir.
1657 # Double slashes in file names in object file debugging info
1658 # mess up M-x gdb in Emacs.
1660 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1662 for ac_var in $ac_precious_vars; do
1663 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1664 eval ac_env_${ac_var}_value=\$${ac_var}
1665 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1666 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1670 # Report the --help message.
1672 if test "$ac_init_help" = "long"; then
1673 # Omit some internal or obsolete options to make the list less imposing.
1674 # This message is too long to be a string in the A/UX 3.1 sh.
1676 \`configure' configures this package to adapt to many kinds of systems.
1678 Usage: $0 [OPTION]... [VAR=VALUE]...
1680 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1681 VAR=VALUE. See below for descriptions of some of the useful variables.
1683 Defaults for the options are specified in brackets.
1686 -h, --help display this help and exit
1687 --help=short display options specific to this package
1688 --help=recursive display the short help of all the included packages
1689 -V, --version display version information and exit
1690 -q, --quiet, --silent do not print \`checking...' messages
1691 --cache-file=FILE cache test results in FILE [disabled]
1692 -C, --config-cache alias for \`--cache-file=config.cache'
1693 -n, --no-create do not create output files
1694 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1696 Installation directories:
1697 --prefix=PREFIX install architecture-independent files in PREFIX
1698 [$ac_default_prefix]
1699 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1702 By default, \`make install' will install all the files in
1703 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1704 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1705 for instance \`--prefix=\$HOME'.
1707 For better control, use the options below.
1709 Fine tuning of the installation directories:
1710 --bindir=DIR user executables [EPREFIX/bin]
1711 --sbindir=DIR system admin executables [EPREFIX/sbin]
1712 --libexecdir=DIR program executables [EPREFIX/libexec]
1713 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1714 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1715 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1716 --libdir=DIR object code libraries [EPREFIX/lib]
1717 --includedir=DIR C header files [PREFIX/include]
1718 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1719 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1720 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1721 --infodir=DIR info documentation [DATAROOTDIR/info]
1722 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1723 --mandir=DIR man documentation [DATAROOTDIR/man]
1724 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1725 --htmldir=DIR html documentation [DOCDIR]
1726 --dvidir=DIR dvi documentation [DOCDIR]
1727 --pdfdir=DIR pdf documentation [DOCDIR]
1728 --psdir=DIR ps documentation [DOCDIR]
1734 --x-includes=DIR X include files are in DIR
1735 --x-libraries=DIR X library files are in DIR
1738 --build=BUILD configure for building on BUILD [guessed]
1739 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1743 if test -n "$ac_init_help"; then
1748 --disable-option-checking ignore unrecognized --enable/--with options
1749 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1750 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1751 --enable-libtool enable building using GNU libtool [default=yes]
1752 --enable-shared[=PKGS] build shared libraries [default=yes]
1753 --enable-static[=PKGS] build static libraries [default=no]
1754 --enable-fast-install[=PKGS]
1755 optimize for fast installation [default=yes]
1756 --disable-libtool-lock avoid locking (might break parallel builds)
1757 --enable-includes enable installing of include files [default=no]
1758 --disable-nls do not use Native Language Support
1759 --disable-rpath do not hardcode runtime library paths
1760 --enable-gnome enable build of bgnome-console GUI [default=no]
1761 --enable-bat enable build of bat Qt4 GUI [default=no]
1762 --enable-bwx-console enable build of wxWidgets console [default=no]
1763 --enable-tray-monitor enable build of Gnome tray monitor (compatible with
1765 --enable-smartalloc enable smartalloc debugging support [default=no]
1766 --enable-lockmgr enable lock manager support [default=no]
1767 --enable-static-tools enable static tape tools [default=no]
1768 --enable-static-fd enable static File daemon [default=no]
1769 --enable-static-sd enable static Storage daemon [default=no]
1770 --enable-static-dir enable static Director [default=no]
1771 --enable-static-cons enable static Console [default=no]
1772 --enable-client-only build client (File daemon) only [default=no]
1773 --enable-build-dird enable building of dird (Director) [default=yes]
1774 --enable-build-stored enable building of stored (Storage daemon)
1776 --disable-conio disable conio support [default=no]
1777 --enable-ipv6 enable ipv6 support [default=yes]
1778 --disable-readline disable readline support [default=yes]
1779 --enable-batch-insert enable the DB batch insert code [default=no]
1780 --disable-largefile omit support for large files
1781 --disable-afs disable afs support [default=auto]
1782 --disable-acl disable acl support [default=auto]
1783 --disable-xattr disable xattr support [default=auto]
1786 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1787 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1788 --with-pic try to use only PIC/non-PIC objects [default=use
1790 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1791 --with-gnu-ld assume the C compiler uses GNU ld default=no
1792 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1793 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1794 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1795 --without-libintl-prefix don't search for libintl in includedir and libdir
1796 --with-included-gettext use the GNU gettext library included here
1797 --with-readline[=DIR] specify readline library directory
1798 --with-python[=DIR] Include Python support. DIR is the Python base
1799 install directory, default is to search through a
1800 number of common places for the Python files.
1801 --with-tcp-wrappers[=DIR]
1802 enable tcpwrappers support
1803 --with-openssl[=DIR] Include OpenSSL support. DIR is the OpenSSL base
1804 --with-working-dir=PATH specify path of Bacula working directory
1805 --with-archivedir=PATH specify path of SD archive directory
1806 --with-basename=RESNAME specify base resource name for daemons
1807 --with-hostname=RESNAME specify host name for daemons
1808 --with-scriptdir=PATH specify path of Bacula scripts directory
1809 --with-bsrdir=PATH specify path of Bacula bsrs directory
1810 --with-logdir=PATH specify path of Bacula logs directory
1811 --with-plugindir=PATH specify path of Bacula plugins directory
1812 --with-dump-email=EMAIL dump email address
1813 --with-job-email=EMAIL job output email address
1814 --with-smtp-host=HOST SMTP mail host address
1815 --with-pid-dir=PATH specify location of Bacula pid files
1816 --with-subsys-dir=PATH specify location of Bacula subsys file
1817 --with-baseport=PORT specify base port address for daemons
1818 --with-dir-password=PASSWORD
1819 specify Director's password
1820 --with-fd-password=PASSWORD
1821 specify Client's password
1822 --with-sd-password=PASSWORD
1823 specify Storage daemon's password
1824 --with-mon-dir-password=PASSWORD
1825 specify Director's password used by the monitor
1826 --with-mon-fd-password=PASSWORD
1827 specify Client's password used by the monitor
1828 --with-mon-sd-password=PASSWORD
1829 specify Storage daemon's password used by the
1831 --with-db-name=DBNAME specify database name [default=bacula]
1832 --with-db-user=UNAME specify database user [default=bacula]
1833 --with-db-password=PWD specify database password [default=*none*]
1834 --with-db-port=DBPORT specify a database port [default=null]
1835 --with-dir-user=USER specify user for Director daemon
1836 --with-dir-group=GROUP specify group for Director daemon
1837 --with-sd-user=USER specify user for Storage daemon
1838 --with-sd-group=GROUP specify group for Storage daemon
1839 --with-fd-user=USER specify user for File daemon
1840 --with-fd-group=GROUP specify group for File daemon
1841 --with-sbin-perm=MODE specify permissions for sbin binaries [default=0750]
1842 --with-postgresql[=DIR] Include PostgreSQL support. DIR is the PostgreSQL
1843 base install directory, [default=/usr/local/pgsql]
1844 --with-mysql[=DIR] Include MySQL support. DIR is the MySQL base install
1845 directory, default is to search through a number of
1846 common places for the MySQL files.
1847 --with-embedded-mysql[=DIR]
1848 Include MySQL support. DIR is the MySQL base install
1849 directory, default is to search through a number of
1850 common places for the MySQL files.
1851 --with-ingres[=DIR] Include Ingres support. DIR is the Ingres base
1852 install directory, default is to search through a
1853 number of common places for the Ingres files.
1854 --with-sqlite3[=DIR] Include SQLite3 support. DIR is the SQLite3 base
1855 install directory, default is to search through a
1856 number of common places for the SQLite3 files.
1857 --with-dbi[=DIR] Include DBI support. DIR is the DBD base install
1858 directory, default is to search through a number of
1859 common places for the DBI files.
1860 --with-dbi-driver[=DRIVER]
1861 Suport for DBI driver. DRIVER is the one DBI driver
1862 like Mysql, Postgresql, others. Default is to not
1863 configure any driver.
1864 --with-x use the X Window System
1865 --with-afsdir[=DIR] Directory holding AFS includes/libs
1867 Some influential environment variables:
1868 CC C compiler command
1869 CFLAGS C compiler flags
1870 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1871 nonstandard directory <lib dir>
1872 LIBS libraries to pass to the linker, e.g. -l<library>
1873 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1874 you have headers in a nonstandard directory <include dir>
1875 CXX C++ compiler command
1876 CXXFLAGS C++ compiler flags
1878 WXCONFIG wx-config command. On some systems, you must set it to
1879 wx-config-2.6 to use wxWidgets 2.6.
1880 WXFLAGS Parameters to pass to wx-config (e.g. --unicode=no).
1881 CXXCPP C++ preprocessor
1882 XMKMF Path to xmkmf, Makefile generator for X Window System
1884 Use these variables to override the choices made by `configure' or to help
1885 it to find libraries and programs with nonstandard names/locations.
1887 Report bugs to the package provider.
1892 if test "$ac_init_help" = "recursive"; then
1893 # If there are subdirs, report their specific --help.
1894 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1895 test -d "$ac_dir" ||
1896 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1901 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1903 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1904 # A ".." for each directory in $ac_dir_suffix.
1905 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1906 case $ac_top_builddir_sub in
1907 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1908 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1911 ac_abs_top_builddir=$ac_pwd
1912 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1913 # for backward compatibility:
1914 ac_top_builddir=$ac_top_build_prefix
1917 .) # We are building in place.
1919 ac_top_srcdir=$ac_top_builddir_sub
1920 ac_abs_top_srcdir=$ac_pwd ;;
1921 [\\/]* | ?:[\\/]* ) # Absolute name.
1922 ac_srcdir=$srcdir$ac_dir_suffix;
1923 ac_top_srcdir=$srcdir
1924 ac_abs_top_srcdir=$srcdir ;;
1926 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1927 ac_top_srcdir=$ac_top_build_prefix$srcdir
1928 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1930 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1932 cd "$ac_dir" || { ac_status=$?; continue; }
1933 # Check for guested configure.
1934 if test -f "$ac_srcdir/configure.gnu"; then
1936 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1937 elif test -f "$ac_srcdir/configure"; then
1939 $SHELL "$ac_srcdir/configure" --help=recursive
1941 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1943 cd "$ac_pwd" || { ac_status=$?; break; }
1947 test -n "$ac_init_help" && exit $ac_status
1948 if $ac_init_version; then
1951 generated by GNU Autoconf 2.65
1953 Copyright (C) 2009 Free Software Foundation, Inc.
1954 This configure script is free software; the Free Software Foundation
1955 gives unlimited permission to copy, distribute and modify it.
1960 ## ------------------------ ##
1961 ## Autoconf initialization. ##
1962 ## ------------------------ ##
1964 # ac_fn_c_try_compile LINENO
1965 # --------------------------
1966 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1967 ac_fn_c_try_compile ()
1969 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1970 rm -f conftest.$ac_objext
1971 if { { ac_try="$ac_compile"
1973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1974 *) ac_try_echo=$ac_try;;
1976 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1977 $as_echo "$ac_try_echo"; } >&5
1978 (eval "$ac_compile") 2>conftest.err
1980 if test -s conftest.err; then
1981 grep -v '^ *+' conftest.err >conftest.er1
1982 cat conftest.er1 >&5
1983 mv -f conftest.er1 conftest.err
1985 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1986 test $ac_status = 0; } && {
1987 test -z "$ac_c_werror_flag" ||
1988 test ! -s conftest.err
1989 } && test -s conftest.$ac_objext; then :
1992 $as_echo "$as_me: failed program was:" >&5
1993 sed 's/^/| /' conftest.$ac_ext >&5
1997 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1998 as_fn_set_status $ac_retval
2000 } # ac_fn_c_try_compile
2002 # ac_fn_cxx_try_compile LINENO
2003 # ----------------------------
2004 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2005 ac_fn_cxx_try_compile ()
2007 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2008 rm -f conftest.$ac_objext
2009 if { { ac_try="$ac_compile"
2011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2012 *) ac_try_echo=$ac_try;;
2014 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2015 $as_echo "$ac_try_echo"; } >&5
2016 (eval "$ac_compile") 2>conftest.err
2018 if test -s conftest.err; then
2019 grep -v '^ *+' conftest.err >conftest.er1
2020 cat conftest.er1 >&5
2021 mv -f conftest.er1 conftest.err
2023 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2024 test $ac_status = 0; } && {
2025 test -z "$ac_cxx_werror_flag" ||
2026 test ! -s conftest.err
2027 } && test -s conftest.$ac_objext; then :
2030 $as_echo "$as_me: failed program was:" >&5
2031 sed 's/^/| /' conftest.$ac_ext >&5
2035 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2036 as_fn_set_status $ac_retval
2038 } # ac_fn_cxx_try_compile
2040 # ac_fn_c_try_cpp LINENO
2041 # ----------------------
2042 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2045 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2046 if { { ac_try="$ac_cpp conftest.$ac_ext"
2048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2049 *) ac_try_echo=$ac_try;;
2051 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2052 $as_echo "$ac_try_echo"; } >&5
2053 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2055 if test -s conftest.err; then
2056 grep -v '^ *+' conftest.err >conftest.er1
2057 cat conftest.er1 >&5
2058 mv -f conftest.er1 conftest.err
2060 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2061 test $ac_status = 0; } >/dev/null && {
2062 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2063 test ! -s conftest.err
2067 $as_echo "$as_me: failed program was:" >&5
2068 sed 's/^/| /' conftest.$ac_ext >&5
2072 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2073 as_fn_set_status $ac_retval
2077 # ac_fn_c_try_link LINENO
2078 # -----------------------
2079 # Try to link conftest.$ac_ext, and return whether this succeeded.
2082 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2083 rm -f conftest.$ac_objext conftest$ac_exeext
2084 if { { ac_try="$ac_link"
2086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2087 *) ac_try_echo=$ac_try;;
2089 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2090 $as_echo "$ac_try_echo"; } >&5
2091 (eval "$ac_link") 2>conftest.err
2093 if test -s conftest.err; then
2094 grep -v '^ *+' conftest.err >conftest.er1
2095 cat conftest.er1 >&5
2096 mv -f conftest.er1 conftest.err
2098 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2099 test $ac_status = 0; } && {
2100 test -z "$ac_c_werror_flag" ||
2101 test ! -s conftest.err
2102 } && test -s conftest$ac_exeext && {
2103 test "$cross_compiling" = yes ||
2104 $as_test_x conftest$ac_exeext
2108 $as_echo "$as_me: failed program was:" >&5
2109 sed 's/^/| /' conftest.$ac_ext >&5
2113 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2114 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2115 # interfere with the next link command; also delete a directory that is
2116 # left behind by Apple's compiler. We do this before executing the actions.
2117 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2118 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2119 as_fn_set_status $ac_retval
2121 } # ac_fn_c_try_link
2123 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2124 # -------------------------------------------------------
2125 # Tests whether HEADER exists and can be compiled using the include files in
2126 # INCLUDES, setting the cache variable VAR accordingly.
2127 ac_fn_c_check_header_compile ()
2129 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2131 $as_echo_n "checking for $2... " >&6; }
2132 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2133 $as_echo_n "(cached) " >&6
2135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2136 /* end confdefs.h. */
2140 if ac_fn_c_try_compile "$LINENO"; then :
2145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2149 $as_echo "$ac_res" >&6; }
2150 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2152 } # ac_fn_c_check_header_compile
2154 # ac_fn_c_try_run LINENO
2155 # ----------------------
2156 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2157 # that executables *can* be run.
2160 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2161 if { { ac_try="$ac_link"
2163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2164 *) ac_try_echo=$ac_try;;
2166 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2167 $as_echo "$ac_try_echo"; } >&5
2168 (eval "$ac_link") 2>&5
2170 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2171 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2172 { { case "(($ac_try" in
2173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2174 *) ac_try_echo=$ac_try;;
2176 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2177 $as_echo "$ac_try_echo"; } >&5
2178 (eval "$ac_try") 2>&5
2180 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2181 test $ac_status = 0; }; }; then :
2184 $as_echo "$as_me: program exited with status $ac_status" >&5
2185 $as_echo "$as_me: failed program was:" >&5
2186 sed 's/^/| /' conftest.$ac_ext >&5
2188 ac_retval=$ac_status
2190 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2191 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2192 as_fn_set_status $ac_retval
2196 # ac_fn_c_check_func LINENO FUNC VAR
2197 # ----------------------------------
2198 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2199 ac_fn_c_check_func ()
2201 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2203 $as_echo_n "checking for $2... " >&6; }
2204 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2205 $as_echo_n "(cached) " >&6
2207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2208 /* end confdefs.h. */
2209 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2210 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2211 #define $2 innocuous_$2
2213 /* System header to define __stub macros and hopefully few prototypes,
2214 which can conflict with char $2 (); below.
2215 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2216 <limits.h> exists even on freestanding compilers. */
2219 # include <limits.h>
2221 # include <assert.h>
2226 /* Override any GCC internal prototype to avoid an error.
2227 Use char because int might match the return type of a GCC
2228 builtin and then its argument prototype would still apply. */
2233 /* The GNU C library defines this for functions which it implements
2234 to always fail with ENOSYS. Some functions are actually named
2235 something starting with __ and the normal name is an alias. */
2236 #if defined __stub_$2 || defined __stub___$2
2248 if ac_fn_c_try_link "$LINENO"; then :
2253 rm -f core conftest.err conftest.$ac_objext \
2254 conftest$ac_exeext conftest.$ac_ext
2257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2258 $as_echo "$ac_res" >&6; }
2259 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2261 } # ac_fn_c_check_func
2263 # ac_fn_cxx_try_cpp LINENO
2264 # ------------------------
2265 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2266 ac_fn_cxx_try_cpp ()
2268 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2269 if { { ac_try="$ac_cpp conftest.$ac_ext"
2271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2272 *) ac_try_echo=$ac_try;;
2274 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2275 $as_echo "$ac_try_echo"; } >&5
2276 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2278 if test -s conftest.err; then
2279 grep -v '^ *+' conftest.err >conftest.er1
2280 cat conftest.er1 >&5
2281 mv -f conftest.er1 conftest.err
2283 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2284 test $ac_status = 0; } >/dev/null && {
2285 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2286 test ! -s conftest.err
2290 $as_echo "$as_me: failed program was:" >&5
2291 sed 's/^/| /' conftest.$ac_ext >&5
2295 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2296 as_fn_set_status $ac_retval
2298 } # ac_fn_cxx_try_cpp
2300 # ac_fn_cxx_try_link LINENO
2301 # -------------------------
2302 # Try to link conftest.$ac_ext, and return whether this succeeded.
2303 ac_fn_cxx_try_link ()
2305 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2306 rm -f conftest.$ac_objext conftest$ac_exeext
2307 if { { ac_try="$ac_link"
2309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2310 *) ac_try_echo=$ac_try;;
2312 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2313 $as_echo "$ac_try_echo"; } >&5
2314 (eval "$ac_link") 2>conftest.err
2316 if test -s conftest.err; then
2317 grep -v '^ *+' conftest.err >conftest.er1
2318 cat conftest.er1 >&5
2319 mv -f conftest.er1 conftest.err
2321 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2322 test $ac_status = 0; } && {
2323 test -z "$ac_cxx_werror_flag" ||
2324 test ! -s conftest.err
2325 } && test -s conftest$ac_exeext && {
2326 test "$cross_compiling" = yes ||
2327 $as_test_x conftest$ac_exeext
2331 $as_echo "$as_me: failed program was:" >&5
2332 sed 's/^/| /' conftest.$ac_ext >&5
2336 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2337 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2338 # interfere with the next link command; also delete a directory that is
2339 # left behind by Apple's compiler. We do this before executing the actions.
2340 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2341 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2342 as_fn_set_status $ac_retval
2344 } # ac_fn_cxx_try_link
2346 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2347 # -------------------------------------------
2348 # Tests whether TYPE exists after having included INCLUDES, setting cache
2349 # variable VAR accordingly.
2350 ac_fn_c_check_type ()
2352 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2354 $as_echo_n "checking for $2... " >&6; }
2355 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2356 $as_echo_n "(cached) " >&6
2359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2360 /* end confdefs.h. */
2371 if ac_fn_c_try_compile "$LINENO"; then :
2372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2373 /* end confdefs.h. */
2384 if ac_fn_c_try_compile "$LINENO"; then :
2389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2395 $as_echo "$ac_res" >&6; }
2396 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2398 } # ac_fn_c_check_type
2400 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2401 # -------------------------------------------------------
2402 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2403 # the include files in INCLUDES and setting the cache variable VAR
2405 ac_fn_c_check_header_mongrel ()
2407 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2408 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2410 $as_echo_n "checking for $2... " >&6; }
2411 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2412 $as_echo_n "(cached) " >&6
2415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2416 $as_echo "$ac_res" >&6; }
2418 # Is the header compilable?
2419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2420 $as_echo_n "checking $2 usability... " >&6; }
2421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2422 /* end confdefs.h. */
2426 if ac_fn_c_try_compile "$LINENO"; then :
2427 ac_header_compiler=yes
2429 ac_header_compiler=no
2431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2433 $as_echo "$ac_header_compiler" >&6; }
2435 # Is the header present?
2436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2437 $as_echo_n "checking $2 presence... " >&6; }
2438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2439 /* end confdefs.h. */
2442 if ac_fn_c_try_cpp "$LINENO"; then :
2443 ac_header_preproc=yes
2445 ac_header_preproc=no
2447 rm -f conftest.err conftest.$ac_ext
2448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2449 $as_echo "$ac_header_preproc" >&6; }
2451 # So? What about this header?
2452 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2454 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2455 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2456 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2457 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2460 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2461 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2462 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2463 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2464 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2465 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2466 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2467 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2468 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2469 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2473 $as_echo_n "checking for $2... " >&6; }
2474 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2475 $as_echo_n "(cached) " >&6
2477 eval "$3=\$ac_header_compiler"
2480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2481 $as_echo "$ac_res" >&6; }
2483 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2485 } # ac_fn_c_check_header_mongrel
2487 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2488 # --------------------------------------------
2489 # Tries to find the compile-time value of EXPR in a program that includes
2490 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2492 ac_fn_c_compute_int ()
2494 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2495 if test "$cross_compiling" = yes; then
2496 # Depending upon the size, compute the lo and hi bounds.
2497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2498 /* end confdefs.h. */
2503 static int test_array [1 - 2 * !(($2) >= 0)];
2510 if ac_fn_c_try_compile "$LINENO"; then :
2513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2514 /* end confdefs.h. */
2519 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2526 if ac_fn_c_try_compile "$LINENO"; then :
2527 ac_hi=$ac_mid; break
2529 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2530 if test $ac_lo -le $ac_mid; then
2534 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2540 /* end confdefs.h. */
2545 static int test_array [1 - 2 * !(($2) < 0)];
2552 if ac_fn_c_try_compile "$LINENO"; then :
2555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2556 /* end confdefs.h. */
2561 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2568 if ac_fn_c_try_compile "$LINENO"; then :
2569 ac_lo=$ac_mid; break
2571 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2572 if test $ac_mid -le $ac_hi; then
2576 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2586 # Binary search between lo and hi bounds.
2587 while test "x$ac_lo" != "x$ac_hi"; do
2588 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2590 /* end confdefs.h. */
2595 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2602 if ac_fn_c_try_compile "$LINENO"; then :
2605 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2610 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2615 /* end confdefs.h. */
2617 static long int longval () { return $2; }
2618 static unsigned long int ulongval () { return $2; }
2625 FILE *f = fopen ("conftest.val", "w");
2630 long int i = longval ();
2633 fprintf (f, "%ld", i);
2637 unsigned long int i = ulongval ();
2640 fprintf (f, "%lu", i);
2642 /* Do not output a trailing newline, as this causes \r\n confusion
2643 on some platforms. */
2644 return ferror (f) || fclose (f) != 0;
2650 if ac_fn_c_try_run "$LINENO"; then :
2651 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2655 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2656 conftest.$ac_objext conftest.beam conftest.$ac_ext
2660 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2661 as_fn_set_status $ac_retval
2663 } # ac_fn_c_compute_int
2665 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2666 # ----------------------------------------------------
2667 # Tries to find if the field MEMBER exists in type AGGR, after including
2668 # INCLUDES, setting cache variable VAR accordingly.
2669 ac_fn_c_check_member ()
2671 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2673 $as_echo_n "checking for $2.$3... " >&6; }
2674 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2675 $as_echo_n "(cached) " >&6
2677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2678 /* end confdefs.h. */
2690 if ac_fn_c_try_compile "$LINENO"; then :
2693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2694 /* end confdefs.h. */
2700 if (sizeof ac_aggr.$3)
2706 if ac_fn_c_try_compile "$LINENO"; then :
2711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2717 $as_echo "$ac_res" >&6; }
2718 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2720 } # ac_fn_c_check_member
2722 # ac_fn_c_check_decl LINENO SYMBOL VAR
2723 # ------------------------------------
2724 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2725 ac_fn_c_check_decl ()
2727 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2729 $as_echo_n "checking whether $2 is declared... " >&6; }
2730 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2731 $as_echo_n "(cached) " >&6
2733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2734 /* end confdefs.h. */
2747 if ac_fn_c_try_compile "$LINENO"; then :
2752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2756 $as_echo "$ac_res" >&6; }
2757 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2759 } # ac_fn_c_check_decl
2761 # ac_fn_cxx_try_run LINENO
2762 # ------------------------
2763 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2764 # that executables *can* be run.
2765 ac_fn_cxx_try_run ()
2767 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2768 if { { ac_try="$ac_link"
2770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2771 *) ac_try_echo=$ac_try;;
2773 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2774 $as_echo "$ac_try_echo"; } >&5
2775 (eval "$ac_link") 2>&5
2777 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2778 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2779 { { case "(($ac_try" in
2780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2781 *) ac_try_echo=$ac_try;;
2783 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2784 $as_echo "$ac_try_echo"; } >&5
2785 (eval "$ac_try") 2>&5
2787 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2788 test $ac_status = 0; }; }; then :
2791 $as_echo "$as_me: program exited with status $ac_status" >&5
2792 $as_echo "$as_me: failed program was:" >&5
2793 sed 's/^/| /' conftest.$ac_ext >&5
2795 ac_retval=$ac_status
2797 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2798 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2799 as_fn_set_status $ac_retval
2801 } # ac_fn_cxx_try_run
2802 cat >config.log <<_ACEOF
2803 This file contains any messages produced by compilers while
2804 running configure, to aid debugging if configure makes a mistake.
2806 It was created by $as_me, which was
2807 generated by GNU Autoconf 2.65. Invocation command line was
2819 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2820 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2821 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2822 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2823 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2825 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2826 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2828 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2829 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2830 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2831 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2832 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2833 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2834 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2842 test -z "$as_dir" && as_dir=.
2843 $as_echo "PATH: $as_dir"
2859 # Keep a trace of the command line.
2860 # Strip out --no-create and --no-recursion so they do not pile up.
2861 # Strip out --silent because we don't want to record it for future runs.
2862 # Also quote any args containing shell meta-characters.
2863 # Make two passes to allow for proper duplicate-argument suppression.
2867 ac_must_keep_next=false
2873 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2874 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2875 | -silent | --silent | --silen | --sile | --sil)
2878 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2881 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2883 as_fn_append ac_configure_args1 " '$ac_arg'"
2884 if test $ac_must_keep_next = true; then
2885 ac_must_keep_next=false # Got value, back to normal.
2888 *=* | --config-cache | -C | -disable-* | --disable-* \
2889 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2890 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2891 | -with-* | --with-* | -without-* | --without-* | --x)
2892 case "$ac_configure_args0 " in
2893 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2896 -* ) ac_must_keep_next=true ;;
2899 as_fn_append ac_configure_args " '$ac_arg'"
2904 { ac_configure_args0=; unset ac_configure_args0;}
2905 { ac_configure_args1=; unset ac_configure_args1;}
2907 # When interrupted or exit'd, cleanup temporary files, and complete
2908 # config.log. We remove comments because anyway the quotes in there
2909 # would cause problems or look ugly.
2910 # WARNING: Use '\'' to represent an apostrophe within the trap.
2911 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2912 trap 'exit_status=$?
2913 # Save into config.log some information that might help in debugging.
2918 ## ---------------- ##
2919 ## Cache variables. ##
2920 ## ---------------- ##
2923 # The following way of writing the cache mishandles newlines in values,
2925 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2926 eval ac_val=\$$ac_var
2930 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2931 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2934 _ | IFS | as_nl) ;; #(
2935 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2936 *) { eval $ac_var=; unset $ac_var;} ;;
2941 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2942 *${as_nl}ac_space=\ *)
2944 "s/'\''/'\''\\\\'\'''\''/g;
2945 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2948 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2956 ## ----------------- ##
2957 ## Output variables. ##
2958 ## ----------------- ##
2961 for ac_var in $ac_subst_vars
2963 eval ac_val=\$$ac_var
2965 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2967 $as_echo "$ac_var='\''$ac_val'\''"
2971 if test -n "$ac_subst_files"; then
2973 ## ------------------- ##
2974 ## File substitutions. ##
2975 ## ------------------- ##
2978 for ac_var in $ac_subst_files
2980 eval ac_val=\$$ac_var
2982 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2984 $as_echo "$ac_var='\''$ac_val'\''"
2989 if test -s confdefs.h; then
2999 test "$ac_signal" != 0 &&
3000 $as_echo "$as_me: caught signal $ac_signal"
3001 $as_echo "$as_me: exit $exit_status"
3003 rm -f core *.core core.conftest.* &&
3004 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3007 for ac_signal in 1 2 13 15; do
3008 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3012 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3013 rm -f -r conftest* confdefs.h
3015 $as_echo "/* confdefs.h */" > confdefs.h
3017 # Predefined preprocessor variables.
3019 cat >>confdefs.h <<_ACEOF
3020 #define PACKAGE_NAME "$PACKAGE_NAME"
3023 cat >>confdefs.h <<_ACEOF
3024 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3027 cat >>confdefs.h <<_ACEOF
3028 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3031 cat >>confdefs.h <<_ACEOF
3032 #define PACKAGE_STRING "$PACKAGE_STRING"
3035 cat >>confdefs.h <<_ACEOF
3036 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3039 cat >>confdefs.h <<_ACEOF
3040 #define PACKAGE_URL "$PACKAGE_URL"
3044 # Let the site file select an alternate cache file if it wants to.
3045 # Prefer an explicitly selected file to automatically selected ones.
3048 if test -n "$CONFIG_SITE"; then
3049 ac_site_file1=$CONFIG_SITE
3050 elif test "x$prefix" != xNONE; then
3051 ac_site_file1=$prefix/share/config.site
3052 ac_site_file2=$prefix/etc/config.site
3054 ac_site_file1=$ac_default_prefix/share/config.site
3055 ac_site_file2=$ac_default_prefix/etc/config.site
3057 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3059 test "x$ac_site_file" = xNONE && continue
3060 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3061 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3062 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3063 sed 's/^/| /' "$ac_site_file" >&5
3068 if test -r "$cache_file"; then
3069 # Some versions of bash will fail to source /dev/null (special files
3070 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3071 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3072 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3073 $as_echo "$as_me: loading cache $cache_file" >&6;}
3075 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3076 *) . "./$cache_file";;
3080 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3081 $as_echo "$as_me: creating cache $cache_file" >&6;}
3085 as_fn_append ac_header_list " stdlib.h"
3086 as_fn_append ac_header_list " unistd.h"
3087 as_fn_append ac_header_list " sys/param.h"
3088 # Check that the precious variables saved in the cache have kept the same
3090 ac_cache_corrupted=false
3091 for ac_var in $ac_precious_vars; do
3092 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3093 eval ac_new_set=\$ac_env_${ac_var}_set
3094 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3095 eval ac_new_val=\$ac_env_${ac_var}_value
3096 case $ac_old_set,$ac_new_set in
3098 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3099 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3100 ac_cache_corrupted=: ;;
3102 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3103 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3104 ac_cache_corrupted=: ;;
3107 if test "x$ac_old_val" != "x$ac_new_val"; then
3108 # differences in whitespace do not lead to failure.
3109 ac_old_val_w=`echo x $ac_old_val`
3110 ac_new_val_w=`echo x $ac_new_val`
3111 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3112 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3113 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3114 ac_cache_corrupted=:
3116 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3117 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3118 eval $ac_var=\$ac_old_val
3120 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3121 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3122 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3123 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3126 # Pass precious variables to config.status.
3127 if test "$ac_new_set" = set; then
3129 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3130 *) ac_arg=$ac_var=$ac_new_val ;;
3132 case " $ac_configure_args " in
3133 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3134 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3138 if $ac_cache_corrupted; then
3139 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3140 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3141 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3142 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3143 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3145 ## -------------------- ##
3146 ## Main body of script. ##
3147 ## -------------------- ##
3150 ac_cpp='$CPP $CPPFLAGS'
3151 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3152 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3153 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3163 for ac_dir in ${BUILD_DIR}/autoconf "$srcdir"/${BUILD_DIR}/autoconf; do
3164 for ac_t in install-sh install.sh shtool; do
3165 if test -f "$ac_dir/$ac_t"; then
3167 ac_install_sh="$ac_aux_dir/$ac_t -c"
3172 if test -z "$ac_aux_dir"; then
3173 as_fn_error "cannot find install-sh, install.sh, or shtool in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" "$LINENO" 5
3176 # These three variables are undocumented and unsupported,
3177 # and are intended to be withdrawn in a future Autoconf release.
3178 # They can cause serious problems if a builder's source tree is in a directory
3179 # whose full name contains unusual characters.
3180 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3181 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3182 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3185 ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
3188 WIN32BUILDDIR=${BUILD_DIR}/src/win32
3189 WIN32MAINDIR=${BUILD_DIR}
3190 WIN32TOPDIR=${TOP_DIR}
3197 # Extract the first word of "$ac_prog", so it can be a program name with args.
3198 set dummy $ac_prog; ac_word=$2
3199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3200 $as_echo_n "checking for $ac_word... " >&6; }
3201 if test "${ac_cv_path_TRUEPRG+set}" = set; then :
3202 $as_echo_n "(cached) " >&6
3206 ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
3209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3213 test -z "$as_dir" && as_dir=.
3214 for ac_exec_ext in '' $ac_executable_extensions; do
3215 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3216 ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
3217 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3227 TRUEPRG=$ac_cv_path_TRUEPRG
3228 if test -n "$TRUEPRG"; then
3229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TRUEPRG" >&5
3230 $as_echo "$TRUEPRG" >&6; }
3232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3233 $as_echo "no" >&6; }
3237 test -n "$TRUEPRG" && break
3239 test -n "$TRUEPRG" || TRUEPRG=":"
3241 for ac_prog in false
3243 # Extract the first word of "$ac_prog", so it can be a program name with args.
3244 set dummy $ac_prog; ac_word=$2
3245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3246 $as_echo_n "checking for $ac_word... " >&6; }
3247 if test "${ac_cv_path_FALSEPRG+set}" = set; then :
3248 $as_echo_n "(cached) " >&6
3252 ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
3255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3259 test -z "$as_dir" && as_dir=.
3260 for ac_exec_ext in '' $ac_executable_extensions; do
3261 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3262 ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
3263 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3273 FALSEPRG=$ac_cv_path_FALSEPRG
3274 if test -n "$FALSEPRG"; then
3275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FALSEPRG" >&5
3276 $as_echo "$FALSEPRG" >&6; }
3278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3279 $as_echo "no" >&6; }
3283 test -n "$FALSEPRG" && break
3285 test -n "$FALSEPRG" || FALSEPRG=":"
3290 if test "x$BACULA" != x; then
3291 post_host=`echo -${BACULA} | tr 'A-Z ' 'a-z-'`
3293 BACULA=${BACULA:-Bacula}
3294 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3295 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3296 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3298 LIBBAC_LT_RELEASE=`sed -n -e 's/^#.*LIBBAC_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3299 LIBBACCFG_LT_RELEASE=`sed -n -e 's/^#.*LIBBACCFG_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3300 LIBBACPY_LT_RELEASE=`sed -n -e 's/^#.*LIBBACPY_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3302 LIBBAC_LT_RELEASE=${LIBBAC_LT_RELEASE:-$VERSION}
3303 LIBBACCFG_LT_RELEASE=${LIBBACCFG_LT_RELEASE:-$VERSION}
3304 LIBBACPY_LT_RELEASE=${LIBBACPY_LT_RELEASE:-$VERSION}
3307 LIBBACSQL_LT_RELEASE=`sed -n -e 's/^#.*LIBBACSQL_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3309 LIBBACSQL_LT_RELEASE=${LIBBACSQL_LT_RELEASE:-$VERSION}
3312 LIBBACFIND_LT_RELEASE=`sed -n -e 's/^#.*LIBBACFIND_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3314 LIBBACFIND_LT_RELEASE=${LIBBACFIND_LT_RELEASE:-$VERSION}
3317 echo "configuring for ${BACULA} $VERSION ($DATE)"
3322 ac_cpp='$CPP $CPPFLAGS'
3323 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3324 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3325 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3326 if test -n "$ac_tool_prefix"; then
3327 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3328 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3330 $as_echo_n "checking for $ac_word... " >&6; }
3331 if test "${ac_cv_prog_CC+set}" = set; then :
3332 $as_echo_n "(cached) " >&6
3334 if test -n "$CC"; then
3335 ac_cv_prog_CC="$CC" # Let the user override the test.
3337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3341 test -z "$as_dir" && as_dir=.
3342 for ac_exec_ext in '' $ac_executable_extensions; do
3343 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3344 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3345 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3355 if test -n "$CC"; then
3356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3357 $as_echo "$CC" >&6; }
3359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3360 $as_echo "no" >&6; }
3365 if test -z "$ac_cv_prog_CC"; then
3367 # Extract the first word of "gcc", so it can be a program name with args.
3368 set dummy gcc; ac_word=$2
3369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3370 $as_echo_n "checking for $ac_word... " >&6; }
3371 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3372 $as_echo_n "(cached) " >&6
3374 if test -n "$ac_ct_CC"; then
3375 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3381 test -z "$as_dir" && as_dir=.
3382 for ac_exec_ext in '' $ac_executable_extensions; do
3383 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3384 ac_cv_prog_ac_ct_CC="gcc"
3385 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3394 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3395 if test -n "$ac_ct_CC"; then
3396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3397 $as_echo "$ac_ct_CC" >&6; }
3399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3400 $as_echo "no" >&6; }
3403 if test "x$ac_ct_CC" = x; then
3406 case $cross_compiling:$ac_tool_warned in
3408 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3409 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3410 ac_tool_warned=yes ;;
3418 if test -z "$CC"; then
3419 if test -n "$ac_tool_prefix"; then
3420 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3421 set dummy ${ac_tool_prefix}cc; ac_word=$2
3422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3423 $as_echo_n "checking for $ac_word... " >&6; }
3424 if test "${ac_cv_prog_CC+set}" = set; then :
3425 $as_echo_n "(cached) " >&6
3427 if test -n "$CC"; then
3428 ac_cv_prog_CC="$CC" # Let the user override the test.
3430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3434 test -z "$as_dir" && as_dir=.
3435 for ac_exec_ext in '' $ac_executable_extensions; do
3436 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3437 ac_cv_prog_CC="${ac_tool_prefix}cc"
3438 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3448 if test -n "$CC"; then
3449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3450 $as_echo "$CC" >&6; }
3452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3453 $as_echo "no" >&6; }
3459 if test -z "$CC"; then
3460 # Extract the first word of "cc", so it can be a program name with args.
3461 set dummy cc; ac_word=$2
3462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3463 $as_echo_n "checking for $ac_word... " >&6; }
3464 if test "${ac_cv_prog_CC+set}" = set; then :
3465 $as_echo_n "(cached) " >&6
3467 if test -n "$CC"; then
3468 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 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3479 ac_prog_rejected=yes
3483 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3490 if test $ac_prog_rejected = yes; then
3491 # We found a bogon in the path, so make sure we never use it.
3492 set dummy $ac_cv_prog_CC
3494 if test $# != 0; then
3495 # We chose a different compiler from the bogus one.
3496 # However, it has the same basename, so the bogon will be chosen
3497 # first if we set CC to just the basename; use the full file name.
3499 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3505 if test -n "$CC"; then
3506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3507 $as_echo "$CC" >&6; }
3509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3510 $as_echo "no" >&6; }
3515 if test -z "$CC"; then
3516 if test -n "$ac_tool_prefix"; then
3517 for ac_prog in cl.exe
3519 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3520 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3522 $as_echo_n "checking for $ac_word... " >&6; }
3523 if test "${ac_cv_prog_CC+set}" = set; then :
3524 $as_echo_n "(cached) " >&6
3526 if test -n "$CC"; then
3527 ac_cv_prog_CC="$CC" # Let the user override the test.
3529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3533 test -z "$as_dir" && as_dir=.
3534 for ac_exec_ext in '' $ac_executable_extensions; do
3535 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3536 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3537 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3547 if test -n "$CC"; then
3548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3549 $as_echo "$CC" >&6; }
3551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3552 $as_echo "no" >&6; }
3556 test -n "$CC" && break
3559 if test -z "$CC"; then
3561 for ac_prog in cl.exe
3563 # Extract the first word of "$ac_prog", so it can be a program name with args.
3564 set dummy $ac_prog; ac_word=$2
3565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3566 $as_echo_n "checking for $ac_word... " >&6; }
3567 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3568 $as_echo_n "(cached) " >&6
3570 if test -n "$ac_ct_CC"; then
3571 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3577 test -z "$as_dir" && as_dir=.
3578 for ac_exec_ext in '' $ac_executable_extensions; do
3579 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3580 ac_cv_prog_ac_ct_CC="$ac_prog"
3581 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3590 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3591 if test -n "$ac_ct_CC"; then
3592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3593 $as_echo "$ac_ct_CC" >&6; }
3595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3596 $as_echo "no" >&6; }
3600 test -n "$ac_ct_CC" && break
3603 if test "x$ac_ct_CC" = x; then
3606 case $cross_compiling:$ac_tool_warned in
3608 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3609 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3610 ac_tool_warned=yes ;;
3619 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3620 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3621 as_fn_error "no acceptable C compiler found in \$PATH
3622 See \`config.log' for more details." "$LINENO" 5; }
3624 # Provide some information about the compiler.
3625 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3628 for ac_option in --version -v -V -qversion; do
3629 { { ac_try="$ac_compiler $ac_option >&5"
3631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3632 *) ac_try_echo=$ac_try;;
3634 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3635 $as_echo "$ac_try_echo"; } >&5
3636 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3638 if test -s conftest.err; then
3640 ... rest of stderr output deleted ...
3641 10q' conftest.err >conftest.er1
3642 cat conftest.er1 >&5
3644 rm -f conftest.er1 conftest.err
3645 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3646 test $ac_status = 0; }
3649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3650 /* end confdefs.h. */
3660 ac_clean_files_save=$ac_clean_files
3661 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3662 # Try to create an executable without -o first, disregard a.out.
3663 # It will help us diagnose broken compilers, and finding out an intuition
3665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3666 $as_echo_n "checking whether the C compiler works... " >&6; }
3667 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3669 # The possible output files:
3670 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3673 for ac_file in $ac_files
3676 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3677 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3682 if { { ac_try="$ac_link_default"
3684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3685 *) ac_try_echo=$ac_try;;
3687 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3688 $as_echo "$ac_try_echo"; } >&5
3689 (eval "$ac_link_default") 2>&5
3691 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3692 test $ac_status = 0; }; then :
3693 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3694 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3695 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3696 # so that the user can short-circuit this test for compilers unknown to
3698 for ac_file in $ac_files ''
3700 test -f "$ac_file" || continue
3702 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3705 # We found the default executable, but exeext='' is most
3709 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3711 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3713 # We set ac_cv_exeext here because the later test for it is not
3714 # safe: cross compilers may not add the suffix if given an `-o'
3715 # argument, so we may need to know it at that point already.
3716 # Even if this section looks crufty: it has the advantage of
3723 test "$ac_cv_exeext" = no && ac_cv_exeext=
3728 if test -z "$ac_file"; then :
3729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3730 $as_echo "no" >&6; }
3731 $as_echo "$as_me: failed program was:" >&5
3732 sed 's/^/| /' conftest.$ac_ext >&5
3734 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3735 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3736 { as_fn_set_status 77
3737 as_fn_error "C compiler cannot create executables
3738 See \`config.log' for more details." "$LINENO" 5; }; }
3740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3741 $as_echo "yes" >&6; }
3743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3744 $as_echo_n "checking for C compiler default output file name... " >&6; }
3745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3746 $as_echo "$ac_file" >&6; }
3747 ac_exeext=$ac_cv_exeext
3749 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3750 ac_clean_files=$ac_clean_files_save
3751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3752 $as_echo_n "checking for suffix of executables... " >&6; }
3753 if { { ac_try="$ac_link"
3755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3756 *) ac_try_echo=$ac_try;;
3758 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3759 $as_echo "$ac_try_echo"; } >&5
3760 (eval "$ac_link") 2>&5
3762 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3763 test $ac_status = 0; }; then :
3764 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3765 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3766 # work properly (i.e., refer to `conftest.exe'), while it won't with
3768 for ac_file in conftest.exe conftest conftest.*; do
3769 test -f "$ac_file" || continue
3771 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3772 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3778 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3779 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3780 as_fn_error "cannot compute suffix of executables: cannot compile and link
3781 See \`config.log' for more details." "$LINENO" 5; }
3783 rm -f conftest conftest$ac_cv_exeext
3784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3785 $as_echo "$ac_cv_exeext" >&6; }
3787 rm -f conftest.$ac_ext
3788 EXEEXT=$ac_cv_exeext
3790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3791 /* end confdefs.h. */
3796 FILE *f = fopen ("conftest.out", "w");
3797 return ferror (f) || fclose (f) != 0;
3803 ac_clean_files="$ac_clean_files conftest.out"
3804 # Check that the compiler produces executables we can run. If not, either
3805 # the compiler is broken, or we cross compile.
3806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3807 $as_echo_n "checking whether we are cross compiling... " >&6; }
3808 if test "$cross_compiling" != yes; then
3809 { { ac_try="$ac_link"
3811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3812 *) ac_try_echo=$ac_try;;
3814 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3815 $as_echo "$ac_try_echo"; } >&5
3816 (eval "$ac_link") 2>&5
3818 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3819 test $ac_status = 0; }
3820 if { ac_try='./conftest$ac_cv_exeext'
3821 { { case "(($ac_try" in
3822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3823 *) ac_try_echo=$ac_try;;
3825 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3826 $as_echo "$ac_try_echo"; } >&5
3827 (eval "$ac_try") 2>&5
3829 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3830 test $ac_status = 0; }; }; then
3833 if test "$cross_compiling" = maybe; then
3836 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3837 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3838 as_fn_error "cannot run C compiled programs.
3839 If you meant to cross compile, use \`--host'.
3840 See \`config.log' for more details." "$LINENO" 5; }
3844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3845 $as_echo "$cross_compiling" >&6; }
3847 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3848 ac_clean_files=$ac_clean_files_save
3849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3850 $as_echo_n "checking for suffix of object files... " >&6; }
3851 if test "${ac_cv_objext+set}" = set; then :
3852 $as_echo_n "(cached) " >&6
3854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3855 /* end confdefs.h. */
3865 rm -f conftest.o conftest.obj
3866 if { { ac_try="$ac_compile"
3868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3869 *) ac_try_echo=$ac_try;;
3871 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3872 $as_echo "$ac_try_echo"; } >&5
3873 (eval "$ac_compile") 2>&5
3875 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3876 test $ac_status = 0; }; then :
3877 for ac_file in conftest.o conftest.obj conftest.*; do
3878 test -f "$ac_file" || continue;
3880 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3881 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3886 $as_echo "$as_me: failed program was:" >&5
3887 sed 's/^/| /' conftest.$ac_ext >&5
3889 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3890 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3891 as_fn_error "cannot compute suffix of object files: cannot compile
3892 See \`config.log' for more details." "$LINENO" 5; }
3894 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3897 $as_echo "$ac_cv_objext" >&6; }
3898 OBJEXT=$ac_cv_objext
3900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3901 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3902 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3903 $as_echo_n "(cached) " >&6
3905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3906 /* end confdefs.h. */
3919 if ac_fn_c_try_compile "$LINENO"; then :
3924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3925 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3929 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3930 if test $ac_compiler_gnu = yes; then
3935 ac_test_CFLAGS=${CFLAGS+set}
3936 ac_save_CFLAGS=$CFLAGS
3937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3938 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3939 if test "${ac_cv_prog_cc_g+set}" = set; then :
3940 $as_echo_n "(cached) " >&6
3942 ac_save_c_werror_flag=$ac_c_werror_flag
3943 ac_c_werror_flag=yes
3946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3947 /* end confdefs.h. */
3957 if ac_fn_c_try_compile "$LINENO"; then :
3961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3962 /* end confdefs.h. */
3972 if ac_fn_c_try_compile "$LINENO"; then :
3975 ac_c_werror_flag=$ac_save_c_werror_flag
3977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3978 /* end confdefs.h. */
3988 if ac_fn_c_try_compile "$LINENO"; then :
3991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3996 ac_c_werror_flag=$ac_save_c_werror_flag
3998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3999 $as_echo "$ac_cv_prog_cc_g" >&6; }
4000 if test "$ac_test_CFLAGS" = set; then
4001 CFLAGS=$ac_save_CFLAGS
4002 elif test $ac_cv_prog_cc_g = yes; then
4003 if test "$GCC" = yes; then
4009 if test "$GCC" = yes; then
4015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4016 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4017 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4018 $as_echo_n "(cached) " >&6
4020 ac_cv_prog_cc_c89=no
4022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4023 /* end confdefs.h. */
4026 #include <sys/types.h>
4027 #include <sys/stat.h>
4028 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4029 struct buf { int x; };
4030 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4031 static char *e (p, i)
4037 static char *f (char * (*g) (char **, int), char **p, ...)
4042 s = g (p, va_arg (v,int));
4047 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4048 function prototypes and stuff, but not '\xHH' hex character constants.
4049 These don't provoke an error unfortunately, instead are silently treated
4050 as 'x'. The following induces an error, until -std is added to get
4051 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4052 array size at least. It's necessary to write '\x00'==0 to get something
4053 that's true only with -std. */
4054 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4056 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4057 inside strings and character constants. */
4059 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4061 int test (int i, double x);
4062 struct s1 {int (*f) (int a);};
4063 struct s2 {int (*f) (double a);};
4064 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4070 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4075 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4076 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4078 CC="$ac_save_CC $ac_arg"
4079 if ac_fn_c_try_compile "$LINENO"; then :
4080 ac_cv_prog_cc_c89=$ac_arg
4082 rm -f core conftest.err conftest.$ac_objext
4083 test "x$ac_cv_prog_cc_c89" != "xno" && break
4085 rm -f conftest.$ac_ext
4090 case "x$ac_cv_prog_cc_c89" in
4092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4093 $as_echo "none needed" >&6; } ;;
4095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4096 $as_echo "unsupported" >&6; } ;;
4098 CC="$CC $ac_cv_prog_cc_c89"
4099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4100 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4102 if test "x$ac_cv_prog_cc_c89" != xno; then :
4107 ac_cpp='$CPP $CPPFLAGS'
4108 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4109 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4110 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4113 ac_cpp='$CXXCPP $CPPFLAGS'
4114 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4115 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4116 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4117 if test -z "$CXX"; then
4118 if test -n "$CCC"; then
4121 if test -n "$ac_tool_prefix"; then
4122 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4124 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4125 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4127 $as_echo_n "checking for $ac_word... " >&6; }
4128 if test "${ac_cv_prog_CXX+set}" = set; then :
4129 $as_echo_n "(cached) " >&6
4131 if test -n "$CXX"; then
4132 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4138 test -z "$as_dir" && as_dir=.
4139 for ac_exec_ext in '' $ac_executable_extensions; do
4140 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4141 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4142 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4152 if test -n "$CXX"; then
4153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4154 $as_echo "$CXX" >&6; }
4156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4157 $as_echo "no" >&6; }
4161 test -n "$CXX" && break
4164 if test -z "$CXX"; then
4166 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4168 # Extract the first word of "$ac_prog", so it can be a program name with args.
4169 set dummy $ac_prog; ac_word=$2
4170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4171 $as_echo_n "checking for $ac_word... " >&6; }
4172 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4173 $as_echo_n "(cached) " >&6
4175 if test -n "$ac_ct_CXX"; then
4176 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4182 test -z "$as_dir" && as_dir=.
4183 for ac_exec_ext in '' $ac_executable_extensions; do
4184 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4185 ac_cv_prog_ac_ct_CXX="$ac_prog"
4186 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4195 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4196 if test -n "$ac_ct_CXX"; then
4197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4198 $as_echo "$ac_ct_CXX" >&6; }
4200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4201 $as_echo "no" >&6; }
4205 test -n "$ac_ct_CXX" && break
4208 if test "x$ac_ct_CXX" = x; then
4211 case $cross_compiling:$ac_tool_warned in
4213 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4214 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4215 ac_tool_warned=yes ;;
4223 # Provide some information about the compiler.
4224 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4227 for ac_option in --version -v -V -qversion; do
4228 { { ac_try="$ac_compiler $ac_option >&5"
4230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4231 *) ac_try_echo=$ac_try;;
4233 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4234 $as_echo "$ac_try_echo"; } >&5
4235 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4237 if test -s conftest.err; then
4239 ... rest of stderr output deleted ...
4240 10q' conftest.err >conftest.er1
4241 cat conftest.er1 >&5
4243 rm -f conftest.er1 conftest.err
4244 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4245 test $ac_status = 0; }
4248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4249 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4250 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4251 $as_echo_n "(cached) " >&6
4253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4254 /* end confdefs.h. */
4267 if ac_fn_cxx_try_compile "$LINENO"; then :
4272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4273 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4277 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4278 if test $ac_compiler_gnu = yes; then
4283 ac_test_CXXFLAGS=${CXXFLAGS+set}
4284 ac_save_CXXFLAGS=$CXXFLAGS
4285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4286 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4287 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4288 $as_echo_n "(cached) " >&6
4290 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4291 ac_cxx_werror_flag=yes
4294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4295 /* end confdefs.h. */
4305 if ac_fn_cxx_try_compile "$LINENO"; then :
4306 ac_cv_prog_cxx_g=yes
4309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4310 /* end confdefs.h. */
4320 if ac_fn_cxx_try_compile "$LINENO"; then :
4323 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4326 /* end confdefs.h. */
4336 if ac_fn_cxx_try_compile "$LINENO"; then :
4337 ac_cv_prog_cxx_g=yes
4339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4344 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4347 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4348 if test "$ac_test_CXXFLAGS" = set; then
4349 CXXFLAGS=$ac_save_CXXFLAGS
4350 elif test $ac_cv_prog_cxx_g = yes; then
4351 if test "$GXX" = yes; then
4357 if test "$GXX" = yes; then
4364 ac_cpp='$CPP $CPPFLAGS'
4365 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4366 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4367 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4369 if test "x$CC" != xcc; then
4370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4371 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4374 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4376 set dummy $CC; ac_cc=`$as_echo "$2" |
4377 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4378 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
4379 $as_echo_n "(cached) " >&6
4381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4382 /* end confdefs.h. */
4392 # Make sure it works both with $CC and with simple cc.
4393 # We do the test twice because some compilers refuse to overwrite an
4394 # existing .o file with -o, though they will create one.
4395 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4397 if { { case "(($ac_try" in
4398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4399 *) ac_try_echo=$ac_try;;
4401 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4402 $as_echo "$ac_try_echo"; } >&5
4403 (eval "$ac_try") 2>&5
4405 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4406 test $ac_status = 0; } &&
4407 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4409 *) ac_try_echo=$ac_try;;
4411 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4412 $as_echo "$ac_try_echo"; } >&5
4413 (eval "$ac_try") 2>&5
4415 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4416 test $ac_status = 0; };
4418 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4419 if test "x$CC" != xcc; then
4420 # Test first that cc exists at all.
4421 if { ac_try='cc -c conftest.$ac_ext >&5'
4422 { { case "(($ac_try" in
4423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4424 *) ac_try_echo=$ac_try;;
4426 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4427 $as_echo "$ac_try_echo"; } >&5
4428 (eval "$ac_try") 2>&5
4430 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4431 test $ac_status = 0; }; }; then
4432 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4434 if { { case "(($ac_try" in
4435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4436 *) ac_try_echo=$ac_try;;
4438 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4439 $as_echo "$ac_try_echo"; } >&5
4440 (eval "$ac_try") 2>&5
4442 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4443 test $ac_status = 0; } &&
4444 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4446 *) ac_try_echo=$ac_try;;
4448 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4449 $as_echo "$ac_try_echo"; } >&5
4450 (eval "$ac_try") 2>&5
4452 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4453 test $ac_status = 0; };
4458 # cc exists but doesn't like -o.
4459 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4464 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4466 rm -f core conftest*
4469 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4471 $as_echo "yes" >&6; }
4473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4474 $as_echo "no" >&6; }
4476 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4481 ac_cpp='$CPP $CPPFLAGS'
4482 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4483 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4484 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4486 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4487 # On Suns, sometimes $CPP names a directory.
4488 if test -n "$CPP" && test -d "$CPP"; then
4491 if test -z "$CPP"; then
4492 if test "${ac_cv_prog_CPP+set}" = set; then :
4493 $as_echo_n "(cached) " >&6
4495 # Double quotes because CPP needs to be expanded
4496 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4499 for ac_c_preproc_warn_flag in '' yes
4501 # Use a header file that comes with gcc, so configuring glibc
4502 # with a fresh cross-compiler works.
4503 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4504 # <limits.h> exists even on freestanding compilers.
4505 # On the NeXT, cc -E runs the code through the compiler's parser,
4506 # not just through cpp. "Syntax error" is here to catch this case.
4507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4508 /* end confdefs.h. */
4510 # include <limits.h>
4512 # include <assert.h>
4516 if ac_fn_c_try_cpp "$LINENO"; then :
4519 # Broken: fails on valid input.
4522 rm -f conftest.err conftest.$ac_ext
4524 # OK, works on sane cases. Now check whether nonexistent headers
4525 # can be detected and how.
4526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4527 /* end confdefs.h. */
4528 #include <ac_nonexistent.h>
4530 if ac_fn_c_try_cpp "$LINENO"; then :
4531 # Broken: success on invalid input.
4534 # Passes both tests.
4538 rm -f conftest.err conftest.$ac_ext
4541 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4542 rm -f conftest.err conftest.$ac_ext
4543 if $ac_preproc_ok; then :
4555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4556 $as_echo "$CPP" >&6; }
4558 for ac_c_preproc_warn_flag in '' yes
4560 # Use a header file that comes with gcc, so configuring glibc
4561 # with a fresh cross-compiler works.
4562 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4563 # <limits.h> exists even on freestanding compilers.
4564 # On the NeXT, cc -E runs the code through the compiler's parser,
4565 # not just through cpp. "Syntax error" is here to catch this case.
4566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4567 /* end confdefs.h. */
4569 # include <limits.h>
4571 # include <assert.h>
4575 if ac_fn_c_try_cpp "$LINENO"; then :
4578 # Broken: fails on valid input.
4581 rm -f conftest.err conftest.$ac_ext
4583 # OK, works on sane cases. Now check whether nonexistent headers
4584 # can be detected and how.
4585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4586 /* end confdefs.h. */
4587 #include <ac_nonexistent.h>
4589 if ac_fn_c_try_cpp "$LINENO"; then :
4590 # Broken: success on invalid input.
4593 # Passes both tests.
4597 rm -f conftest.err conftest.$ac_ext
4600 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4601 rm -f conftest.err conftest.$ac_ext
4602 if $ac_preproc_ok; then :
4605 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4606 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4607 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4608 See \`config.log' for more details." "$LINENO" 5; }
4612 ac_cpp='$CPP $CPPFLAGS'
4613 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4614 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4615 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4619 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4620 if test "${ac_cv_path_GREP+set}" = set; then :
4621 $as_echo_n "(cached) " >&6
4623 if test -z "$GREP"; then
4624 ac_path_GREP_found=false
4625 # Loop through the user's path and test for each of PROGNAME-LIST
4626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4627 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4630 test -z "$as_dir" && as_dir=.
4631 for ac_prog in grep ggrep; do
4632 for ac_exec_ext in '' $ac_executable_extensions; do
4633 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4634 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4635 # Check for GNU ac_path_GREP and select it if it is found.
4636 # Check for GNU $ac_path_GREP
4637 case `"$ac_path_GREP" --version 2>&1` in
4639 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4642 $as_echo_n 0123456789 >"conftest.in"
4645 cat "conftest.in" "conftest.in" >"conftest.tmp"
4646 mv "conftest.tmp" "conftest.in"
4647 cp "conftest.in" "conftest.nl"
4648 $as_echo 'GREP' >> "conftest.nl"
4649 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4650 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4651 as_fn_arith $ac_count + 1 && ac_count=$as_val
4652 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4653 # Best one so far, save it but keep looking for a better one
4654 ac_cv_path_GREP="$ac_path_GREP"
4655 ac_path_GREP_max=$ac_count
4657 # 10*(2^10) chars as input seems more than enough
4658 test $ac_count -gt 10 && break
4660 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4663 $ac_path_GREP_found && break 3
4668 if test -z "$ac_cv_path_GREP"; then
4669 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4672 ac_cv_path_GREP=$GREP
4676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4677 $as_echo "$ac_cv_path_GREP" >&6; }
4678 GREP="$ac_cv_path_GREP"
4681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4682 $as_echo_n "checking for egrep... " >&6; }
4683 if test "${ac_cv_path_EGREP+set}" = set; then :
4684 $as_echo_n "(cached) " >&6
4686 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4687 then ac_cv_path_EGREP="$GREP -E"
4689 if test -z "$EGREP"; then
4690 ac_path_EGREP_found=false
4691 # Loop through the user's path and test for each of PROGNAME-LIST
4692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4693 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4696 test -z "$as_dir" && as_dir=.
4697 for ac_prog in egrep; do
4698 for ac_exec_ext in '' $ac_executable_extensions; do
4699 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4700 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4701 # Check for GNU ac_path_EGREP and select it if it is found.
4702 # Check for GNU $ac_path_EGREP
4703 case `"$ac_path_EGREP" --version 2>&1` in
4705 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4708 $as_echo_n 0123456789 >"conftest.in"
4711 cat "conftest.in" "conftest.in" >"conftest.tmp"
4712 mv "conftest.tmp" "conftest.in"
4713 cp "conftest.in" "conftest.nl"
4714 $as_echo 'EGREP' >> "conftest.nl"
4715 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4716 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4717 as_fn_arith $ac_count + 1 && ac_count=$as_val
4718 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4719 # Best one so far, save it but keep looking for a better one
4720 ac_cv_path_EGREP="$ac_path_EGREP"
4721 ac_path_EGREP_max=$ac_count
4723 # 10*(2^10) chars as input seems more than enough
4724 test $ac_count -gt 10 && break
4726 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4729 $ac_path_EGREP_found && break 3
4734 if test -z "$ac_cv_path_EGREP"; then
4735 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4738 ac_cv_path_EGREP=$EGREP
4743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4744 $as_echo "$ac_cv_path_EGREP" >&6; }
4745 EGREP="$ac_cv_path_EGREP"
4748 if test $ac_cv_c_compiler_gnu = yes; then
4749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
4750 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
4751 if test "${ac_cv_prog_gcc_traditional+set}" = set; then :
4752 $as_echo_n "(cached) " >&6
4754 ac_pattern="Autoconf.*'x'"
4755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4756 /* end confdefs.h. */
4760 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4761 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4762 ac_cv_prog_gcc_traditional=yes
4764 ac_cv_prog_gcc_traditional=no
4769 if test $ac_cv_prog_gcc_traditional = no; then
4770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4771 /* end confdefs.h. */
4775 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4776 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4777 ac_cv_prog_gcc_traditional=yes
4783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
4784 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
4785 if test $ac_cv_prog_gcc_traditional = yes; then
4786 CC="$CC -traditional"
4790 BASECC=`basename $CC`
4792 if test "x$BASECC" = xgcc; then
4793 $as_echo "#define HAVE_GCC 1" >>confdefs.h
4797 # Extract the first word of "$CXX", so it can be a program name with args.
4798 set dummy $CXX; ac_word=$2
4799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4800 $as_echo_n "checking for $ac_word... " >&6; }
4801 if test "${ac_cv_path_CXX+set}" = set; then :
4802 $as_echo_n "(cached) " >&6
4806 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
4809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4813 test -z "$as_dir" && as_dir=.
4814 for ac_exec_ext in '' $ac_executable_extensions; do
4815 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4816 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
4817 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4824 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="$CXX"
4829 if test -n "$CXX"; then
4830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4831 $as_echo "$CXX" >&6; }
4833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4834 $as_echo "no" >&6; }
4838 if test ! -e $CXX; then
4839 as_fn_error "Unable to find C++ compiler" "$LINENO" 5
4842 # Find a good install program. We prefer a C program (faster),
4843 # so one script is as good as another. But avoid the broken or
4844 # incompatible versions:
4845 # SysV /etc/install, /usr/sbin/install
4846 # SunOS /usr/etc/install
4847 # IRIX /sbin/install
4849 # AmigaOS /C/install, which installs bootblocks on floppy discs
4850 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4851 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4852 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4853 # OS/2's system install, which has a completely different semantic
4854 # ./install, which can be erroneously created by make from ./install.sh.
4855 # Reject install programs that cannot install multiple files.
4856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4857 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4858 if test -z "$INSTALL"; then
4859 if test "${ac_cv_path_install+set}" = set; then :
4860 $as_echo_n "(cached) " >&6
4862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4866 test -z "$as_dir" && as_dir=.
4867 # Account for people who put trailing slashes in PATH elements.
4868 case $as_dir/ in #((
4869 ./ | .// | /[cC]/* | \
4870 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4871 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4874 # OSF1 and SCO ODT 3.0 have their own names for install.
4875 # Don't use installbsd from OSF since it installs stuff as root
4877 for ac_prog in ginstall scoinst install; do
4878 for ac_exec_ext in '' $ac_executable_extensions; do
4879 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4880 if test $ac_prog = install &&
4881 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4882 # AIX install. It has an incompatible calling convention.
4884 elif test $ac_prog = install &&
4885 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4886 # program-specific install script used by HP pwplus--don't use.
4889 rm -rf conftest.one conftest.two conftest.dir
4890 echo one > conftest.one
4891 echo two > conftest.two
4893 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4894 test -s conftest.one && test -s conftest.two &&
4895 test -s conftest.dir/conftest.one &&
4896 test -s conftest.dir/conftest.two
4898 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4911 rm -rf conftest.one conftest.two conftest.dir
4914 if test "${ac_cv_path_install+set}" = set; then
4915 INSTALL=$ac_cv_path_install
4917 # As a last resort, use the slow shell script. Don't cache a
4918 # value for INSTALL within a source directory, because that will
4919 # break other packages using the cache if that directory is
4920 # removed, or if the value is a relative name.
4921 INSTALL=$ac_install_sh
4924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4925 $as_echo "$INSTALL" >&6; }
4927 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4928 # It thinks the first close brace ends the variable substitution.
4929 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4931 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4933 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4935 # Extract the first word of "mv", so it can be a program name with args.
4936 set dummy mv; ac_word=$2
4937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4938 $as_echo_n "checking for $ac_word... " >&6; }
4939 if test "${ac_cv_path_MV+set}" = set; then :
4940 $as_echo_n "(cached) " >&6
4944 ac_cv_path_MV="$MV" # Let the user override the test with a path.
4947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4951 test -z "$as_dir" && as_dir=.
4952 for ac_exec_ext in '' $ac_executable_extensions; do
4953 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4954 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4955 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4962 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4967 if test -n "$MV"; then
4968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
4969 $as_echo "$MV" >&6; }
4971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4972 $as_echo "no" >&6; }
4976 # Extract the first word of "rm", so it can be a program name with args.
4977 set dummy rm; ac_word=$2
4978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4979 $as_echo_n "checking for $ac_word... " >&6; }
4980 if test "${ac_cv_path_REMOVE+set}" = set; then :
4981 $as_echo_n "(cached) " >&6
4985 ac_cv_path_REMOVE="$REMOVE" # Let the user override the test with a path.
4988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4992 test -z "$as_dir" && as_dir=.
4993 for ac_exec_ext in '' $ac_executable_extensions; do
4994 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4995 ac_cv_path_REMOVE="$as_dir/$ac_word$ac_exec_ext"
4996 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5003 test -z "$ac_cv_path_REMOVE" && ac_cv_path_REMOVE="rm"
5007 REMOVE=$ac_cv_path_REMOVE
5008 if test -n "$REMOVE"; then
5009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $REMOVE" >&5
5010 $as_echo "$REMOVE" >&6; }
5012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5013 $as_echo "no" >&6; }
5017 # Extract the first word of "cp", so it can be a program name with args.
5018 set dummy cp; ac_word=$2
5019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5020 $as_echo_n "checking for $ac_word... " >&6; }
5021 if test "${ac_cv_path_CP+set}" = set; then :
5022 $as_echo_n "(cached) " >&6
5026 ac_cv_path_CP="$CP" # Let the user override the test with a path.
5029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5033 test -z "$as_dir" && as_dir=.
5034 for ac_exec_ext in '' $ac_executable_extensions; do
5035 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5036 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5037 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5044 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5049 if test -n "$CP"; then
5050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
5051 $as_echo "$CP" >&6; }
5053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5054 $as_echo "no" >&6; }
5058 # Extract the first word of "sed", so it can be a program name with args.
5059 set dummy sed; ac_word=$2
5060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5061 $as_echo_n "checking for $ac_word... " >&6; }
5062 if test "${ac_cv_path_SED+set}" = set; then :
5063 $as_echo_n "(cached) " >&6
5067 ac_cv_path_SED="$SED" # Let the user override the test with a path.
5070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5074 test -z "$as_dir" && as_dir=.
5075 for ac_exec_ext in '' $ac_executable_extensions; do
5076 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5077 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
5078 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5085 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
5090 if test -n "$SED"; then
5091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
5092 $as_echo "$SED" >&6; }
5094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5095 $as_echo "no" >&6; }
5099 # Extract the first word of "echo", so it can be a program name with args.
5100 set dummy echo; ac_word=$2
5101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5102 $as_echo_n "checking for $ac_word... " >&6; }
5103 if test "${ac_cv_path_ECHO+set}" = set; then :
5104 $as_echo_n "(cached) " >&6
5108 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
5111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5115 test -z "$as_dir" && as_dir=.
5116 for ac_exec_ext in '' $ac_executable_extensions; do
5117 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5118 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
5119 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5126 test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
5130 ECHO=$ac_cv_path_ECHO
5131 if test -n "$ECHO"; then
5132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
5133 $as_echo "$ECHO" >&6; }
5135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5136 $as_echo "no" >&6; }
5140 # Extract the first word of "cmp", so it can be a program name with args.
5141 set dummy cmp; ac_word=$2
5142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5143 $as_echo_n "checking for $ac_word... " >&6; }
5144 if test "${ac_cv_path_CMP+set}" = set; then :
5145 $as_echo_n "(cached) " >&6
5149 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5156 test -z "$as_dir" && as_dir=.
5157 for ac_exec_ext in '' $ac_executable_extensions; do
5158 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5159 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5160 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5167 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5172 if test -n "$CMP"; then
5173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5
5174 $as_echo "$CMP" >&6; }
5176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5177 $as_echo "no" >&6; }
5181 # Extract the first word of "tbl", so it can be a program name with args.
5182 set dummy tbl; ac_word=$2
5183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5184 $as_echo_n "checking for $ac_word... " >&6; }
5185 if test "${ac_cv_path_TBL+set}" = set; then :
5186 $as_echo_n "(cached) " >&6
5190 ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
5193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5197 test -z "$as_dir" && as_dir=.
5198 for ac_exec_ext in '' $ac_executable_extensions; do
5199 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5200 ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
5201 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5208 test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
5213 if test -n "$TBL"; then
5214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TBL" >&5
5215 $as_echo "$TBL" >&6; }
5217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5218 $as_echo "no" >&6; }
5222 # Extract the first word of "ar", so it can be a program name with args.
5223 set dummy ar; ac_word=$2
5224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5225 $as_echo_n "checking for $ac_word... " >&6; }
5226 if test "${ac_cv_path_AR+set}" = set; then :
5227 $as_echo_n "(cached) " >&6
5231 ac_cv_path_AR="$AR" # Let the user override the test with a path.
5234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5238 test -z "$as_dir" && as_dir=.
5239 for ac_exec_ext in '' $ac_executable_extensions; do
5240 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5241 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
5242 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5249 test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
5254 if test -n "$AR"; then
5255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5256 $as_echo "$AR" >&6; }
5258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5259 $as_echo "no" >&6; }
5263 # Extract the first word of "openssl", so it can be a program name with args.
5264 set dummy openssl; ac_word=$2
5265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5266 $as_echo_n "checking for $ac_word... " >&6; }
5267 if test "${ac_cv_path_OPENSSL+set}" = set; then :
5268 $as_echo_n "(cached) " >&6
5272 ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
5275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5279 test -z "$as_dir" && as_dir=.
5280 for ac_exec_ext in '' $ac_executable_extensions; do
5281 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5282 ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
5283 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5290 test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
5294 OPENSSL=$ac_cv_path_OPENSSL
5295 if test -n "$OPENSSL"; then
5296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENSSL" >&5
5297 $as_echo "$OPENSSL" >&6; }
5299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5300 $as_echo "no" >&6; }
5304 # Extract the first word of "mtx", so it can be a program name with args.
5305 set dummy mtx; ac_word=$2
5306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5307 $as_echo_n "checking for $ac_word... " >&6; }
5308 if test "${ac_cv_path_MTX+set}" = set; then :
5309 $as_echo_n "(cached) " >&6
5313 ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
5316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5320 test -z "$as_dir" && as_dir=.
5321 for ac_exec_ext in '' $ac_executable_extensions; do
5322 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5323 ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
5324 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5331 test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
5336 if test -n "$MTX"; then
5337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MTX" >&5
5338 $as_echo "$MTX" >&6; }
5340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5341 $as_echo "no" >&6; }
5345 # Extract the first word of "dd", so it can be a program name with args.
5346 set dummy dd; ac_word=$2
5347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5348 $as_echo_n "checking for $ac_word... " >&6; }
5349 if test "${ac_cv_path_DD+set}" = set; then :
5350 $as_echo_n "(cached) " >&6
5354 ac_cv_path_DD="$DD" # Let the user override the test with a path.
5357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5361 test -z "$as_dir" && as_dir=.
5362 for ac_exec_ext in '' $ac_executable_extensions; do
5363 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5364 ac_cv_path_DD="$as_dir/$ac_word$ac_exec_ext"
5365 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5372 test -z "$ac_cv_path_DD" && ac_cv_path_DD="dd"
5377 if test -n "$DD"; then
5378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DD" >&5
5379 $as_echo "$DD" >&6; }
5381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5382 $as_echo "no" >&6; }
5386 # Extract the first word of "mkisofs", so it can be a program name with args.
5387 set dummy mkisofs; ac_word=$2
5388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5389 $as_echo_n "checking for $ac_word... " >&6; }
5390 if test "${ac_cv_path_MKISOFS+set}" = set; then :
5391 $as_echo_n "(cached) " >&6
5395 ac_cv_path_MKISOFS="$MKISOFS" # Let the user override the test with a path.
5398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5402 test -z "$as_dir" && as_dir=.
5403 for ac_exec_ext in '' $ac_executable_extensions; do
5404 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5405 ac_cv_path_MKISOFS="$as_dir/$ac_word$ac_exec_ext"
5406 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5413 test -z "$ac_cv_path_MKISOFS" && ac_cv_path_MKISOFS="mkisofs"
5417 MKISOFS=$ac_cv_path_MKISOFS
5418 if test -n "$MKISOFS"; then
5419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKISOFS" >&5
5420 $as_echo "$MKISOFS" >&6; }
5422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5423 $as_echo "no" >&6; }
5427 # Extract the first word of "python", so it can be a program name with args.
5428 set dummy python; ac_word=$2
5429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5430 $as_echo_n "checking for $ac_word... " >&6; }
5431 if test "${ac_cv_path_PYTHON+set}" = set; then :
5432 $as_echo_n "(cached) " >&6
5436 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
5439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5443 test -z "$as_dir" && as_dir=.
5444 for ac_exec_ext in '' $ac_executable_extensions; do
5445 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5446 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
5447 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5454 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="python"
5458 PYTHON=$ac_cv_path_PYTHON
5459 if test -n "$PYTHON"; then
5460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
5461 $as_echo "$PYTHON" >&6; }
5463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5464 $as_echo "no" >&6; }
5468 # Extract the first word of "growisofs", so it can be a program name with args.
5469 set dummy growisofs; ac_word=$2
5470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5471 $as_echo_n "checking for $ac_word... " >&6; }
5472 if test "${ac_cv_path_GROWISOFS+set}" = set; then :
5473 $as_echo_n "(cached) " >&6
5477 ac_cv_path_GROWISOFS="$GROWISOFS" # Let the user override the test with a path.
5480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5484 test -z "$as_dir" && as_dir=.
5485 for ac_exec_ext in '' $ac_executable_extensions; do
5486 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5487 ac_cv_path_GROWISOFS="$as_dir/$ac_word$ac_exec_ext"
5488 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5495 test -z "$ac_cv_path_GROWISOFS" && ac_cv_path_GROWISOFS="growisofs"
5499 GROWISOFS=$ac_cv_path_GROWISOFS
5500 if test -n "$GROWISOFS"; then
5501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GROWISOFS" >&5
5502 $as_echo "$GROWISOFS" >&6; }
5504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5505 $as_echo "no" >&6; }
5509 # Extract the first word of "dvd+rw-mediainfo", so it can be a program name with args.
5510 set dummy dvd+rw-mediainfo; ac_word=$2
5511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5512 $as_echo_n "checking for $ac_word... " >&6; }
5513 if test "${ac_cv_path_DVDRWMEDIAINFO+set}" = set; then :
5514 $as_echo_n "(cached) " >&6
5516 case $DVDRWMEDIAINFO in
5518 ac_cv_path_DVDRWMEDIAINFO="$DVDRWMEDIAINFO" # Let the user override the test with a path.
5521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5525 test -z "$as_dir" && as_dir=.
5526 for ac_exec_ext in '' $ac_executable_extensions; do
5527 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5528 ac_cv_path_DVDRWMEDIAINFO="$as_dir/$ac_word$ac_exec_ext"
5529 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5536 test -z "$ac_cv_path_DVDRWMEDIAINFO" && ac_cv_path_DVDRWMEDIAINFO="dvd+rw-mediainfo"
5540 DVDRWMEDIAINFO=$ac_cv_path_DVDRWMEDIAINFO
5541 if test -n "$DVDRWMEDIAINFO"; then
5542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVDRWMEDIAINFO" >&5
5543 $as_echo "$DVDRWMEDIAINFO" >&6; }
5545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5546 $as_echo "no" >&6; }
5550 # Extract the first word of "dvd+rw-format", so it can be a program name with args.
5551 set dummy dvd+rw-format; ac_word=$2
5552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5553 $as_echo_n "checking for $ac_word... " >&6; }
5554 if test "${ac_cv_path_DVDRWFORMAT+set}" = set; then :
5555 $as_echo_n "(cached) " >&6
5557 case $DVDRWFORMAT in
5559 ac_cv_path_DVDRWFORMAT="$DVDRWFORMAT" # Let the user override the test with a path.
5562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5566 test -z "$as_dir" && as_dir=.
5567 for ac_exec_ext in '' $ac_executable_extensions; do
5568 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5569 ac_cv_path_DVDRWFORMAT="$as_dir/$ac_word$ac_exec_ext"
5570 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5577 test -z "$ac_cv_path_DVDRWFORMAT" && ac_cv_path_DVDRWFORMAT="dvd+rw-format"
5581 DVDRWFORMAT=$ac_cv_path_DVDRWFORMAT
5582 if test -n "$DVDRWFORMAT"; then
5583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVDRWFORMAT" >&5
5584 $as_echo "$DVDRWFORMAT" >&6; }
5586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5587 $as_echo "no" >&6; }
5591 # Extract the first word of "pkg-config", so it can be a program name with args.
5592 set dummy pkg-config; ac_word=$2
5593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5594 $as_echo_n "checking for $ac_word... " >&6; }
5595 if test "${ac_cv_path_PKGCONFIG+set}" = set; then :
5596 $as_echo_n "(cached) " >&6
5600 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
5603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5607 test -z "$as_dir" && as_dir=.
5608 for ac_exec_ext in '' $ac_executable_extensions; do
5609 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5610 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
5611 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5618 test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
5622 PKGCONFIG=$ac_cv_path_PKGCONFIG
5623 if test -n "$PKGCONFIG"; then
5624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
5625 $as_echo "$PKGCONFIG" >&6; }
5627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5628 $as_echo "no" >&6; }
5632 # Extract the first word of "qmake", so it can be a program name with args.
5633 set dummy qmake; ac_word=$2
5634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5635 $as_echo_n "checking for $ac_word... " >&6; }
5636 if test "${ac_cv_path_QMAKE+set}" = set; then :
5637 $as_echo_n "(cached) " >&6
5641 ac_cv_path_QMAKE="$QMAKE" # Let the user override the test with a path.
5644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5648 test -z "$as_dir" && as_dir=.
5649 for ac_exec_ext in '' $ac_executable_extensions; do
5650 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5651 ac_cv_path_QMAKE="$as_dir/$ac_word$ac_exec_ext"
5652 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5659 test -z "$ac_cv_path_QMAKE" && ac_cv_path_QMAKE="none"
5663 QMAKE=$ac_cv_path_QMAKE
5664 if test -n "$QMAKE"; then
5665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QMAKE" >&5
5666 $as_echo "$QMAKE" >&6; }
5668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5669 $as_echo "no" >&6; }
5673 # Extract the first word of "gmake", so it can be a program name with args.
5674 set dummy gmake; ac_word=$2
5675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5676 $as_echo_n "checking for $ac_word... " >&6; }
5677 if test "${ac_cv_path_GMAKE+set}" = set; then :
5678 $as_echo_n "(cached) " >&6
5682 ac_cv_path_GMAKE="$GMAKE" # Let the user override the test with a path.
5685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5689 test -z "$as_dir" && as_dir=.
5690 for ac_exec_ext in '' $ac_executable_extensions; do
5691 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5692 ac_cv_path_GMAKE="$as_dir/$ac_word$ac_exec_ext"
5693 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5700 test -z "$ac_cv_path_GMAKE" && ac_cv_path_GMAKE="none"
5704 GMAKE=$ac_cv_path_GMAKE
5705 if test -n "$GMAKE"; then
5706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMAKE" >&5
5707 $as_echo "$GMAKE" >&6; }
5709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5710 $as_echo "no" >&6; }
5715 if test "x$WXCONFIG" = x; then
5718 # Extract the first word of "${WXCONFIG}", so it can be a program name with args.
5719 set dummy ${WXCONFIG}; ac_word=$2
5720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5721 $as_echo_n "checking for $ac_word... " >&6; }
5722 if test "${ac_cv_path_WXCONFIG+set}" = set; then :
5723 $as_echo_n "(cached) " >&6
5727 ac_cv_path_WXCONFIG="$WXCONFIG" # Let the user override the test with a path.
5730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5734 test -z "$as_dir" && as_dir=.
5735 for ac_exec_ext in '' $ac_executable_extensions; do
5736 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5737 ac_cv_path_WXCONFIG="$as_dir/$ac_word$ac_exec_ext"
5738 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5745 test -z "$ac_cv_path_WXCONFIG" && ac_cv_path_WXCONFIG="${WXCONFIG}"
5749 WXCONFIG=$ac_cv_path_WXCONFIG
5750 if test -n "$WXCONFIG"; then
5751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WXCONFIG" >&5
5752 $as_echo "$WXCONFIG" >&6; }
5754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5755 $as_echo "no" >&6; }
5760 # Extract the first word of "cdrecord", so it can be a program name with args.
5761 set dummy cdrecord; ac_word=$2
5762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5763 $as_echo_n "checking for $ac_word... " >&6; }
5764 if test "${ac_cv_path_CDRECORD+set}" = set; then :
5765 $as_echo_n "(cached) " >&6
5769 ac_cv_path_CDRECORD="$CDRECORD" # Let the user override the test with a path.
5772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5776 test -z "$as_dir" && as_dir=.
5777 for ac_exec_ext in '' $ac_executable_extensions; do
5778 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5779 ac_cv_path_CDRECORD="$as_dir/$ac_word$ac_exec_ext"
5780 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5787 test -z "$ac_cv_path_CDRECORD" && ac_cv_path_CDRECORD="cdrecord"
5791 CDRECORD=$ac_cv_path_CDRECORD
5792 if test -n "$CDRECORD"; then
5793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CDRECORD" >&5
5794 $as_echo "$CDRECORD" >&6; }
5796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5797 $as_echo "no" >&6; }
5801 # Extract the first word of "pidof", so it can be a program name with args.
5802 set dummy pidof; ac_word=$2
5803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5804 $as_echo_n "checking for $ac_word... " >&6; }
5805 if test "${ac_cv_path_PIDOF+set}" = set; then :
5806 $as_echo_n "(cached) " >&6
5810 ac_cv_path_PIDOF="$PIDOF" # Let the user override the test with a path.
5813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5817 test -z "$as_dir" && as_dir=.
5818 for ac_exec_ext in '' $ac_executable_extensions; do
5819 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5820 ac_cv_path_PIDOF="$as_dir/$ac_word$ac_exec_ext"
5821 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5828 test -z "$ac_cv_path_PIDOF" && ac_cv_path_PIDOF="pidof"
5832 PIDOF=$ac_cv_path_PIDOF
5833 if test -n "$PIDOF"; then
5834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PIDOF" >&5
5835 $as_echo "$PIDOF" >&6; }
5837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5838 $as_echo "no" >&6; }
5842 for ac_prog in gawk mawk nawk awk
5844 # Extract the first word of "$ac_prog", so it can be a program name with args.
5845 set dummy $ac_prog; ac_word=$2
5846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5847 $as_echo_n "checking for $ac_word... " >&6; }
5848 if test "${ac_cv_prog_AWK+set}" = set; then :
5849 $as_echo_n "(cached) " >&6
5851 if test -n "$AWK"; then
5852 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5858 test -z "$as_dir" && as_dir=.
5859 for ac_exec_ext in '' $ac_executable_extensions; do
5860 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5861 ac_cv_prog_AWK="$ac_prog"
5862 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5872 if test -n "$AWK"; then
5873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5874 $as_echo "$AWK" >&6; }
5876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5877 $as_echo "no" >&6; }
5881 test -n "$AWK" && break
5884 # Some AWK programs fail, so test it and warn the user
5885 if echo xfoo | $AWK 'BEGIN { prog=ARGV1; ARGC=1 }
5886 { if ((prog == $2) || (("(" prog ")") == $2) ||
5887 (("" prog "") == $2) ||
5888 ((prog ":") == $2)) { print $1 ; exit 0 } }' xfoo>/dev/null; then :;
5890 as_fn_error "!!!!!!!!! WARNING !!!!!!!!!!!!!!
5891 The regex engine of $AWK is too broken to be used you
5892 might want to install GNU AWK.
5893 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" "$LINENO" 5
5896 # Extract the first word of "$THE_AWK", so it can be a program name with args.
5897 set dummy $THE_AWK; ac_word=$2
5898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5899 $as_echo_n "checking for $ac_word... " >&6; }
5900 if test "${ac_cv_path_AWK+set}" = set; then :
5901 $as_echo_n "(cached) " >&6
5905 ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
5908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5912 test -z "$as_dir" && as_dir=.
5913 for ac_exec_ext in '' $ac_executable_extensions; do
5914 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5915 ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
5916 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5923 test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="$THE_AWK"
5928 if test -n "$AWK"; then
5929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5930 $as_echo "$AWK" >&6; }
5932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5933 $as_echo "no" >&6; }
5939 test -n "$ARFLAG" || ARFLAGS="cr"
5951 # Check whether --enable-libtool was given.
5952 if test "${enable_libtool+set}" = set; then :
5953 enableval=$enable_libtool;
5954 if test x$enableval = xno; then
5963 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5964 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5969 macro_version='2.2.6'
5970 macro_revision='1.3012'
5984 ltmain="$ac_aux_dir/ltmain.sh"
5986 # Make sure we can run config.sub.
5987 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5988 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5991 $as_echo_n "checking build system type... " >&6; }
5992 if test "${ac_cv_build+set}" = set; then :
5993 $as_echo_n "(cached) " >&6
5995 ac_build_alias=$build_alias
5996 test "x$ac_build_alias" = x &&
5997 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5998 test "x$ac_build_alias" = x &&
5999 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
6000 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
6001 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
6004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
6005 $as_echo "$ac_cv_build" >&6; }
6006 case $ac_cv_build in
6008 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
6011 ac_save_IFS=$IFS; IFS='-'
6017 # Remember, the first character of IFS is used to create $*,
6018 # except with old shells:
6021 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
6024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
6025 $as_echo_n "checking host system type... " >&6; }
6026 if test "${ac_cv_host+set}" = set; then :
6027 $as_echo_n "(cached) " >&6
6029 if test "x$host_alias" = x; then
6030 ac_cv_host=$ac_cv_build
6032 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
6033 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
6037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
6038 $as_echo "$ac_cv_host" >&6; }
6041 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
6044 ac_save_IFS=$IFS; IFS='-'
6050 # Remember, the first character of IFS is used to create $*,
6051 # except with old shells:
6054 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
6057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6058 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6059 if test "${ac_cv_path_SED+set}" = set; then :
6060 $as_echo_n "(cached) " >&6
6062 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6063 for ac_i in 1 2 3 4 5 6 7; do
6064 ac_script="$ac_script$as_nl$ac_script"
6066 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6067 { ac_script=; unset ac_script;}
6068 if test -z "$SED"; then
6069 ac_path_SED_found=false
6070 # Loop through the user's path and test for each of PROGNAME-LIST
6071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6075 test -z "$as_dir" && as_dir=.
6076 for ac_prog in sed gsed; do
6077 for ac_exec_ext in '' $ac_executable_extensions; do
6078 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6079 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
6080 # Check for GNU ac_path_SED and select it if it is found.
6081 # Check for GNU $ac_path_SED
6082 case `"$ac_path_SED" --version 2>&1` in
6084 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6087 $as_echo_n 0123456789 >"conftest.in"
6090 cat "conftest.in" "conftest.in" >"conftest.tmp"
6091 mv "conftest.tmp" "conftest.in"
6092 cp "conftest.in" "conftest.nl"
6093 $as_echo '' >> "conftest.nl"
6094 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6095 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6096 as_fn_arith $ac_count + 1 && ac_count=$as_val
6097 if test $ac_count -gt ${ac_path_SED_max-0}; then
6098 # Best one so far, save it but keep looking for a better one
6099 ac_cv_path_SED="$ac_path_SED"
6100 ac_path_SED_max=$ac_count
6102 # 10*(2^10) chars as input seems more than enough
6103 test $ac_count -gt 10 && break
6105 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6108 $ac_path_SED_found && break 3
6113 if test -z "$ac_cv_path_SED"; then
6114 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
6121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6122 $as_echo "$ac_cv_path_SED" >&6; }
6123 SED="$ac_cv_path_SED"
6126 test -z "$SED" && SED=sed
6127 Xsed="$SED -e 1s/^X//"
6139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6140 $as_echo_n "checking for fgrep... " >&6; }
6141 if test "${ac_cv_path_FGREP+set}" = set; then :
6142 $as_echo_n "(cached) " >&6
6144 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6145 then ac_cv_path_FGREP="$GREP -F"
6147 if test -z "$FGREP"; then
6148 ac_path_FGREP_found=false
6149 # Loop through the user's path and test for each of PROGNAME-LIST
6150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6151 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6154 test -z "$as_dir" && as_dir=.
6155 for ac_prog in fgrep; do
6156 for ac_exec_ext in '' $ac_executable_extensions; do
6157 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6158 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
6159 # Check for GNU ac_path_FGREP and select it if it is found.
6160 # Check for GNU $ac_path_FGREP
6161 case `"$ac_path_FGREP" --version 2>&1` in
6163 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6166 $as_echo_n 0123456789 >"conftest.in"
6169 cat "conftest.in" "conftest.in" >"conftest.tmp"
6170 mv "conftest.tmp" "conftest.in"
6171 cp "conftest.in" "conftest.nl"
6172 $as_echo 'FGREP' >> "conftest.nl"
6173 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6174 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6175 as_fn_arith $ac_count + 1 && ac_count=$as_val
6176 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6177 # Best one so far, save it but keep looking for a better one
6178 ac_cv_path_FGREP="$ac_path_FGREP"
6179 ac_path_FGREP_max=$ac_count
6181 # 10*(2^10) chars as input seems more than enough
6182 test $ac_count -gt 10 && break
6184 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6187 $ac_path_FGREP_found && break 3
6192 if test -z "$ac_cv_path_FGREP"; then
6193 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6196 ac_cv_path_FGREP=$FGREP
6201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6202 $as_echo "$ac_cv_path_FGREP" >&6; }
6203 FGREP="$ac_cv_path_FGREP"
6206 test -z "$GREP" && GREP=grep
6226 # Check whether --with-gnu-ld was given.
6227 if test "${with_gnu_ld+set}" = set; then :
6228 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6234 if test "$GCC" = yes; then
6235 # Check if gcc -print-prog-name=ld gives a path.
6236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6237 $as_echo_n "checking for ld used by $CC... " >&6; }
6240 # gcc leaves a trailing carriage return which upsets mingw
6241 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6243 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6246 # Accept absolute paths.
6248 re_direlt='/[^/][^/]*/\.\./'
6249 # Canonicalize the pathname of ld
6250 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6251 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6252 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6254 test -z "$LD" && LD="$ac_prog"
6257 # If it fails, then pretend we aren't using GCC.
6261 # If it is relative, then search for the first ld in PATH.
6265 elif test "$with_gnu_ld" = yes; then
6266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6267 $as_echo_n "checking for GNU ld... " >&6; }
6269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6270 $as_echo_n "checking for non-GNU ld... " >&6; }
6272 if test "${lt_cv_path_LD+set}" = set; then :
6273 $as_echo_n "(cached) " >&6
6275 if test -z "$LD"; then
6276 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6277 for ac_dir in $PATH; do
6279 test -z "$ac_dir" && ac_dir=.
6280 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6281 lt_cv_path_LD="$ac_dir/$ac_prog"
6282 # Check to see if the program is GNU ld. I'd rather use --version,
6283 # but apparently some variants of GNU ld only accept -v.
6284 # Break only if it was the GNU/non-GNU ld that we prefer.
6285 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6286 *GNU* | *'with BFD'*)
6287 test "$with_gnu_ld" != no && break
6290 test "$with_gnu_ld" != yes && break
6297 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6302 if test -n "$LD"; then
6303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6304 $as_echo "$LD" >&6; }
6306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6307 $as_echo "no" >&6; }
6309 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
6310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6311 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6312 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
6313 $as_echo_n "(cached) " >&6
6315 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6316 case `$LD -v 2>&1 </dev/null` in
6317 *GNU* | *'with BFD'*)
6318 lt_cv_prog_gnu_ld=yes
6321 lt_cv_prog_gnu_ld=no
6325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6326 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6327 with_gnu_ld=$lt_cv_prog_gnu_ld
6337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6338 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6339 if test "${lt_cv_path_NM+set}" = set; then :
6340 $as_echo_n "(cached) " >&6
6342 if test -n "$NM"; then
6343 # Let the user override the test.
6346 lt_nm_to_check="${ac_tool_prefix}nm"
6347 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6348 lt_nm_to_check="$lt_nm_to_check nm"
6350 for lt_tmp_nm in $lt_nm_to_check; do
6351 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6352 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6354 test -z "$ac_dir" && ac_dir=.
6355 tmp_nm="$ac_dir/$lt_tmp_nm"
6356 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6357 # Check to see if the nm accepts a BSD-compat flag.
6358 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6359 # nm: unknown option "B" ignored
6360 # Tru64's nm complains that /dev/null is an invalid object file
6361 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6362 */dev/null* | *'Invalid file or object type'*)
6363 lt_cv_path_NM="$tmp_nm -B"
6367 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6369 lt_cv_path_NM="$tmp_nm -p"
6373 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6374 continue # so that we can try to find one that supports BSD flags
6383 : ${lt_cv_path_NM=no}
6386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6387 $as_echo "$lt_cv_path_NM" >&6; }
6388 if test "$lt_cv_path_NM" != "no"; then
6391 # Didn't find any BSD compatible name lister, look for dumpbin.
6392 if test -n "$ac_tool_prefix"; then
6393 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
6395 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6396 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6398 $as_echo_n "checking for $ac_word... " >&6; }
6399 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
6400 $as_echo_n "(cached) " >&6
6402 if test -n "$DUMPBIN"; then
6403 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6409 test -z "$as_dir" && as_dir=.
6410 for ac_exec_ext in '' $ac_executable_extensions; do
6411 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6412 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6413 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6422 DUMPBIN=$ac_cv_prog_DUMPBIN
6423 if test -n "$DUMPBIN"; then
6424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6425 $as_echo "$DUMPBIN" >&6; }
6427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6428 $as_echo "no" >&6; }
6432 test -n "$DUMPBIN" && break
6435 if test -z "$DUMPBIN"; then
6436 ac_ct_DUMPBIN=$DUMPBIN
6437 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
6439 # Extract the first word of "$ac_prog", so it can be a program name with args.
6440 set dummy $ac_prog; ac_word=$2
6441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6442 $as_echo_n "checking for $ac_word... " >&6; }
6443 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
6444 $as_echo_n "(cached) " >&6
6446 if test -n "$ac_ct_DUMPBIN"; then
6447 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6453 test -z "$as_dir" && as_dir=.
6454 for ac_exec_ext in '' $ac_executable_extensions; do
6455 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6456 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6457 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6466 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6467 if test -n "$ac_ct_DUMPBIN"; then
6468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6469 $as_echo "$ac_ct_DUMPBIN" >&6; }
6471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6472 $as_echo "no" >&6; }
6476 test -n "$ac_ct_DUMPBIN" && break
6479 if test "x$ac_ct_DUMPBIN" = x; then
6482 case $cross_compiling:$ac_tool_warned in
6484 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6485 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6486 ac_tool_warned=yes ;;
6488 DUMPBIN=$ac_ct_DUMPBIN
6493 if test "$DUMPBIN" != ":"; then
6497 test -z "$NM" && NM=nm
6504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6505 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6506 if test "${lt_cv_nm_interface+set}" = set; then :
6507 $as_echo_n "(cached) " >&6
6509 lt_cv_nm_interface="BSD nm"
6510 echo "int some_variable = 0;" > conftest.$ac_ext
6511 (eval echo "\"\$as_me:6511: $ac_compile\"" >&5)
6512 (eval "$ac_compile" 2>conftest.err)
6513 cat conftest.err >&5
6514 (eval echo "\"\$as_me:6514: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6515 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6516 cat conftest.err >&5
6517 (eval echo "\"\$as_me:6517: output\"" >&5)
6518 cat conftest.out >&5
6519 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6520 lt_cv_nm_interface="MS dumpbin"
6524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6525 $as_echo "$lt_cv_nm_interface" >&6; }
6527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6528 $as_echo_n "checking whether ln -s works... " >&6; }
6530 if test "$LN_S" = "ln -s"; then
6531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6532 $as_echo "yes" >&6; }
6534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6535 $as_echo "no, using $LN_S" >&6; }
6538 # find the maximum length of command line arguments
6539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6540 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6541 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
6542 $as_echo_n "(cached) " >&6
6549 # On DJGPP, this test can blow up pretty badly due to problems in libc
6550 # (any single argument exceeding 2000 bytes causes a buffer overrun
6551 # during glob expansion). Even if it were fixed, the result of this
6552 # check would be larger than it should be.
6553 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6557 # Under GNU Hurd, this test is not required because there is
6558 # no limit to the length of command line arguments.
6559 # Libtool will interpret -1 as no limit whatsoever
6560 lt_cv_sys_max_cmd_len=-1;
6563 cygwin* | mingw* | cegcc*)
6564 # On Win9x/ME, this test blows up -- it succeeds, but takes
6565 # about 5 minutes as the teststring grows exponentially.
6566 # Worse, since 9x/ME are not pre-emptively multitasking,
6567 # you end up with a "frozen" computer, even though with patience
6568 # the test eventually succeeds (with a max line length of 256k).
6569 # Instead, let's just punt: use the minimum linelength reported by
6570 # all of the supported platforms: 8192 (on NT/2K/XP).
6571 lt_cv_sys_max_cmd_len=8192;
6575 # On AmigaOS with pdksh, this test takes hours, literally.
6576 # So we just punt and use a minimum line length of 8192.
6577 lt_cv_sys_max_cmd_len=8192;
6580 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6581 # This has been around since 386BSD, at least. Likely further.
6582 if test -x /sbin/sysctl; then
6583 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6584 elif test -x /usr/sbin/sysctl; then
6585 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6587 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6589 # And add a safety zone
6590 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6591 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6595 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6596 lt_cv_sys_max_cmd_len=196608
6600 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6601 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6602 # nice to cause kernel panics so lets avoid the loop below.
6603 # First set a reasonable default.
6604 lt_cv_sys_max_cmd_len=16384
6606 if test -x /sbin/sysconfig; then
6607 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6608 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6613 lt_cv_sys_max_cmd_len=102400
6615 sysv5* | sco5v6* | sysv4.2uw2*)
6616 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6617 if test -n "$kargmax"; then
6618 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6620 lt_cv_sys_max_cmd_len=32768
6624 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6625 if test -n "$lt_cv_sys_max_cmd_len"; then
6626 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6627 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6629 # Make teststring a little bigger before we do anything with it.
6630 # a 1K string should be a reasonable start.
6631 for i in 1 2 3 4 5 6 7 8 ; do
6632 teststring=$teststring$teststring
6634 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6635 # If test is not a shell built-in, we'll probably end up computing a
6636 # maximum length that is only half of the actual maximum length, but
6638 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
6639 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
6640 test $i != 17 # 1/2 MB should be enough
6643 teststring=$teststring$teststring
6645 # Only check the string length outside the loop.
6646 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6648 # Add a significant safety factor because C++ compilers can tack on
6649 # massive amounts of additional arguments before passing them to the
6650 # linker. It appears as though 1/2 is a usable value.
6651 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6658 if test -n $lt_cv_sys_max_cmd_len ; then
6659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6660 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6663 $as_echo "none" >&6; }
6665 max_cmd_len=$lt_cv_sys_max_cmd_len
6676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6677 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6678 # Try some XSI features
6681 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6683 && eval 'test $(( 1 + 1 )) -eq 2 \
6684 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6687 $as_echo "$xsi_shell" >&6; }
6690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6691 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6693 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6695 && lt_shell_append=yes
6696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6697 $as_echo "$lt_shell_append" >&6; }
6700 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6710 # test EBCDIC or ASCII
6711 case `echo X|tr X '\101'` in
6712 A) # ASCII based system
6713 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6714 lt_SP2NL='tr \040 \012'
6715 lt_NL2SP='tr \015\012 \040\040'
6717 *) # EBCDIC based system
6718 lt_SP2NL='tr \100 \n'
6719 lt_NL2SP='tr \r\n \100\100'
6731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6732 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6733 if test "${lt_cv_ld_reload_flag+set}" = set; then :
6734 $as_echo_n "(cached) " >&6
6736 lt_cv_ld_reload_flag='-r'
6738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6739 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6740 reload_flag=$lt_cv_ld_reload_flag
6741 case $reload_flag in
6743 *) reload_flag=" $reload_flag" ;;
6745 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6748 if test "$GCC" = yes; then
6749 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6751 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6764 if test -n "$ac_tool_prefix"; then
6765 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6766 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6768 $as_echo_n "checking for $ac_word... " >&6; }
6769 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
6770 $as_echo_n "(cached) " >&6
6772 if test -n "$OBJDUMP"; then
6773 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6779 test -z "$as_dir" && as_dir=.
6780 for ac_exec_ext in '' $ac_executable_extensions; do
6781 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6782 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6783 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6792 OBJDUMP=$ac_cv_prog_OBJDUMP
6793 if test -n "$OBJDUMP"; then
6794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6795 $as_echo "$OBJDUMP" >&6; }
6797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6798 $as_echo "no" >&6; }
6803 if test -z "$ac_cv_prog_OBJDUMP"; then
6804 ac_ct_OBJDUMP=$OBJDUMP
6805 # Extract the first word of "objdump", so it can be a program name with args.
6806 set dummy 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 test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
6810 $as_echo_n "(cached) " >&6
6812 if test -n "$ac_ct_OBJDUMP"; then
6813 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_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_ac_ct_OBJDUMP="objdump"
6823 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6832 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6833 if test -n "$ac_ct_OBJDUMP"; then
6834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6835 $as_echo "$ac_ct_OBJDUMP" >&6; }
6837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6838 $as_echo "no" >&6; }
6841 if test "x$ac_ct_OBJDUMP" = x; then
6844 case $cross_compiling:$ac_tool_warned in
6846 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6847 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6848 ac_tool_warned=yes ;;
6850 OBJDUMP=$ac_ct_OBJDUMP
6853 OBJDUMP="$ac_cv_prog_OBJDUMP"
6856 test -z "$OBJDUMP" && OBJDUMP=objdump
6866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6867 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6868 if test "${lt_cv_deplibs_check_method+set}" = set; then :
6869 $as_echo_n "(cached) " >&6
6871 lt_cv_file_magic_cmd='$MAGIC_CMD'
6872 lt_cv_file_magic_test_file=
6873 lt_cv_deplibs_check_method='unknown'
6874 # Need to set the preceding variable on all platforms that support
6875 # interlibrary dependencies.
6876 # 'none' -- dependencies not supported.
6877 # `unknown' -- same as none, but documents that we really don't know.
6878 # 'pass_all' -- all dependencies passed with no checks.
6879 # 'test_compile' -- check by making test program.
6880 # 'file_magic [[regex]]' -- check by looking for files in library path
6881 # which responds to the $file_magic_cmd with a given extended regex.
6882 # If you have `file' or equivalent on your system and you're not sure
6883 # whether `pass_all' will *always* work, you probably want this one.
6887 lt_cv_deplibs_check_method=pass_all
6891 lt_cv_deplibs_check_method=pass_all
6895 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6896 lt_cv_file_magic_cmd='/usr/bin/file -L'
6897 lt_cv_file_magic_test_file=/shlib/libc.so
6901 # func_win32_libid is a shell function defined in ltmain.sh
6902 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6903 lt_cv_file_magic_cmd='func_win32_libid'
6907 # Base MSYS/MinGW do not provide the 'file' command needed by
6908 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6909 # unless we find 'file', for example because we are cross-compiling.
6910 if ( file / ) >/dev/null 2>&1; then
6911 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6912 lt_cv_file_magic_cmd='func_win32_libid'
6914 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6915 lt_cv_file_magic_cmd='$OBJDUMP -f'
6920 # use the weaker test based on 'objdump'. See mingw*.
6921 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6922 lt_cv_file_magic_cmd='$OBJDUMP -f'
6925 darwin* | rhapsody*)
6926 lt_cv_deplibs_check_method=pass_all
6929 freebsd* | dragonfly*)
6930 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6933 # Not sure whether the presence of OpenBSD here was a mistake.
6934 # Let's accept both of them until this is cleared up.
6935 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6936 lt_cv_file_magic_cmd=/usr/bin/file
6937 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6941 lt_cv_deplibs_check_method=pass_all
6946 lt_cv_deplibs_check_method=pass_all
6949 hpux10.20* | hpux11*)
6950 lt_cv_file_magic_cmd=/usr/bin/file
6953 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6954 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6957 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]'
6958 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6961 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6962 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6968 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6969 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6972 irix5* | irix6* | nonstopux*)
6974 *-32|*"-32 ") libmagic=32-bit;;
6975 *-n32|*"-n32 ") libmagic=N32;;
6976 *-64|*"-64 ") libmagic=64-bit;;
6977 *) libmagic=never-match;;
6979 lt_cv_deplibs_check_method=pass_all
6982 # This must be Linux ELF.
6983 linux* | k*bsd*-gnu)
6984 lt_cv_deplibs_check_method=pass_all
6988 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6989 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6991 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6996 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6997 lt_cv_file_magic_cmd=/usr/bin/file
6998 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7002 lt_cv_deplibs_check_method=pass_all
7006 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7007 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7009 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7013 osf3* | osf4* | osf5*)
7014 lt_cv_deplibs_check_method=pass_all
7018 lt_cv_deplibs_check_method=pass_all
7022 lt_cv_deplibs_check_method=pass_all
7025 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7026 lt_cv_deplibs_check_method=pass_all
7030 case $host_vendor in
7032 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]'
7033 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7036 lt_cv_deplibs_check_method=pass_all
7039 lt_cv_file_magic_cmd='/bin/file'
7040 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7043 lt_cv_file_magic_cmd='/bin/file'
7044 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7045 lt_cv_file_magic_test_file=/lib/libc.so
7048 lt_cv_deplibs_check_method=pass_all
7051 lt_cv_deplibs_check_method=pass_all
7057 lt_cv_deplibs_check_method=pass_all
7062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7063 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7064 file_magic_cmd=$lt_cv_file_magic_cmd
7065 deplibs_check_method=$lt_cv_deplibs_check_method
7066 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7079 if test -n "$ac_tool_prefix"; then
7080 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7081 set dummy ${ac_tool_prefix}ar; ac_word=$2
7082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7083 $as_echo_n "checking for $ac_word... " >&6; }
7084 if test "${ac_cv_prog_AR+set}" = set; then :
7085 $as_echo_n "(cached) " >&6
7087 if test -n "$AR"; then
7088 ac_cv_prog_AR="$AR" # Let the user override the test.
7090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7094 test -z "$as_dir" && as_dir=.
7095 for ac_exec_ext in '' $ac_executable_extensions; do
7096 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7097 ac_cv_prog_AR="${ac_tool_prefix}ar"
7098 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7108 if test -n "$AR"; then
7109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7110 $as_echo "$AR" >&6; }
7112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7113 $as_echo "no" >&6; }
7118 if test -z "$ac_cv_prog_AR"; then
7120 # Extract the first word of "ar", so it can be a program name with args.
7121 set dummy 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 test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
7125 $as_echo_n "(cached) " >&6
7127 if test -n "$ac_ct_AR"; then
7128 ac_cv_prog_ac_ct_AR="$ac_ct_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_ac_ct_AR="ar"
7138 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7147 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7148 if test -n "$ac_ct_AR"; then
7149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7150 $as_echo "$ac_ct_AR" >&6; }
7152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7153 $as_echo "no" >&6; }
7156 if test "x$ac_ct_AR" = x; then
7159 case $cross_compiling:$ac_tool_warned in
7161 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7162 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7163 ac_tool_warned=yes ;;
7171 test -z "$AR" && AR=ar
7172 test -z "$AR_FLAGS" && AR_FLAGS=cru
7184 if test -n "$ac_tool_prefix"; then
7185 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7186 set dummy ${ac_tool_prefix}strip; ac_word=$2
7187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7188 $as_echo_n "checking for $ac_word... " >&6; }
7189 if test "${ac_cv_prog_STRIP+set}" = set; then :
7190 $as_echo_n "(cached) " >&6
7192 if test -n "$STRIP"; then
7193 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7199 test -z "$as_dir" && as_dir=.
7200 for ac_exec_ext in '' $ac_executable_extensions; do
7201 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7202 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7203 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7212 STRIP=$ac_cv_prog_STRIP
7213 if test -n "$STRIP"; then
7214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7215 $as_echo "$STRIP" >&6; }
7217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7218 $as_echo "no" >&6; }
7223 if test -z "$ac_cv_prog_STRIP"; then
7225 # Extract the first word of "strip", so it can be a program name with args.
7226 set dummy 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 test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
7230 $as_echo_n "(cached) " >&6
7232 if test -n "$ac_ct_STRIP"; then
7233 ac_cv_prog_ac_ct_STRIP="$ac_ct_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_ac_ct_STRIP="strip"
7243 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7252 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7253 if test -n "$ac_ct_STRIP"; then
7254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7255 $as_echo "$ac_ct_STRIP" >&6; }
7257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7258 $as_echo "no" >&6; }
7261 if test "x$ac_ct_STRIP" = x; then
7264 case $cross_compiling:$ac_tool_warned in
7266 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7267 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7268 ac_tool_warned=yes ;;
7273 STRIP="$ac_cv_prog_STRIP"
7276 test -z "$STRIP" && STRIP=:
7283 if test -n "$ac_tool_prefix"; then
7284 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7285 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7287 $as_echo_n "checking for $ac_word... " >&6; }
7288 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7289 $as_echo_n "(cached) " >&6
7291 if test -n "$RANLIB"; then
7292 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7298 test -z "$as_dir" && as_dir=.
7299 for ac_exec_ext in '' $ac_executable_extensions; do
7300 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7301 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7302 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7311 RANLIB=$ac_cv_prog_RANLIB
7312 if test -n "$RANLIB"; then
7313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7314 $as_echo "$RANLIB" >&6; }
7316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7317 $as_echo "no" >&6; }
7322 if test -z "$ac_cv_prog_RANLIB"; then
7323 ac_ct_RANLIB=$RANLIB
7324 # Extract the first word of "ranlib", so it can be a program name with args.
7325 set dummy 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 test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7329 $as_echo_n "(cached) " >&6
7331 if test -n "$ac_ct_RANLIB"; then
7332 ac_cv_prog_ac_ct_RANLIB="$ac_ct_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_ac_ct_RANLIB="ranlib"
7342 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7351 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7352 if test -n "$ac_ct_RANLIB"; then
7353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7354 $as_echo "$ac_ct_RANLIB" >&6; }
7356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7357 $as_echo "no" >&6; }
7360 if test "x$ac_ct_RANLIB" = x; then
7363 case $cross_compiling:$ac_tool_warned in
7365 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7366 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7367 ac_tool_warned=yes ;;
7369 RANLIB=$ac_ct_RANLIB
7372 RANLIB="$ac_cv_prog_RANLIB"
7375 test -z "$RANLIB" && RANLIB=:
7382 # Determine commands to create old-style static archives.
7383 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7384 old_postinstall_cmds='chmod 644 $oldlib'
7385 old_postuninstall_cmds=
7387 if test -n "$RANLIB"; then
7390 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7393 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7396 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7432 # If no C compiler was specified, use CC.
7435 # If no C compiler flags were specified, use CFLAGS.
7436 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7438 # Allow CC to be a program name with arguments.
7442 # Check for command to grab the raw symbol name followed by C symbol from nm.
7443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7444 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7445 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
7446 $as_echo_n "(cached) " >&6
7449 # These are sane defaults that work on at least a few old systems.
7450 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7452 # Character class describing NM global symbol codes.
7453 symcode='[BCDEGRST]'
7455 # Regexp to match symbols that can be accessed directly from C.
7456 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7458 # Define system-specific variables.
7463 cygwin* | mingw* | pw32* | cegcc*)
7464 symcode='[ABCDGISTW]'
7467 if test "$host_cpu" = ia64; then
7468 symcode='[ABCDEGRST]'
7472 symcode='[BCDEGRST]'
7475 symcode='[BCDEGQRST]'
7486 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7494 # If we're using GNU nm, then use its standard symbol codes.
7495 case `$NM -V 2>&1` in
7496 *GNU* | *'with BFD'*)
7497 symcode='[ABCDGIRSTW]' ;;
7500 # Transform an extracted symbol line into a proper C declaration.
7501 # Some systems (esp. on ia64) link data and code symbols differently,
7502 # so use this general approach.
7503 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7505 # Transform an extracted symbol line into symbol name and symbol address
7506 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7507 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'"
7509 # Handle CRLF in mingw tool chain
7513 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7517 # Try without a prefix underscore, then with it.
7518 for ac_symprfx in "" "_"; do
7520 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7521 symxfrm="\\1 $ac_symprfx\\2 \\2"
7523 # Write the raw and C identifiers.
7524 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7525 # Fake it for dumpbin and say T for any non-static function
7526 # and D for any global variable.
7527 # Also find C++ and __fastcall symbols from MSVC++,
7528 # which start with @ or ?.
7529 lt_cv_sys_global_symbol_pipe="$AWK '"\
7530 " {last_section=section; section=\$ 3};"\
7531 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7532 " \$ 0!~/External *\|/{next};"\
7533 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7534 " {if(hide[section]) next};"\
7535 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7536 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7537 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7538 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7539 " ' prfx=^$ac_symprfx"
7541 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7544 # Check to see that the pipe works correctly.
7548 cat > conftest.$ac_ext <<_LT_EOF
7553 void nm_test_func(void);
7554 void nm_test_func(void){}
7558 int main(){nm_test_var='a';nm_test_func();return(0);}
7561 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7562 (eval $ac_compile) 2>&5
7564 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7565 test $ac_status = 0; }; then
7566 # Now try to grab the symbols.
7568 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
7569 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7571 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7572 test $ac_status = 0; } && test -s "$nlist"; then
7573 # Try sorting and uniquifying the output.
7574 if sort "$nlist" | uniq > "$nlist"T; then
7575 mv -f "$nlist"T "$nlist"
7580 # Make sure that we snagged all the symbols we need.
7581 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7582 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7583 cat <<_LT_EOF > conftest.$ac_ext
7589 # Now generate the symbol file.
7590 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7592 cat <<_LT_EOF >> conftest.$ac_ext
7594 /* The mapping between symbol names and symbols. */
7599 lt__PROGRAM__LTX_preloaded_symbols[] =
7601 { "@PROGRAM@", (void *) 0 },
7603 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7604 cat <<\_LT_EOF >> conftest.$ac_ext
7608 /* This works around a problem in FreeBSD linker */
7609 #ifdef FREEBSD_WORKAROUND
7610 static const void *lt_preloaded_setup() {
7611 return lt__PROGRAM__LTX_preloaded_symbols;
7619 # Now try linking the two files.
7620 mv conftest.$ac_objext conftstm.$ac_objext
7621 lt_save_LIBS="$LIBS"
7622 lt_save_CFLAGS="$CFLAGS"
7623 LIBS="conftstm.$ac_objext"
7624 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7625 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7626 (eval $ac_link) 2>&5
7628 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7629 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7632 LIBS="$lt_save_LIBS"
7633 CFLAGS="$lt_save_CFLAGS"
7635 echo "cannot find nm_test_func in $nlist" >&5
7638 echo "cannot find nm_test_var in $nlist" >&5
7641 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7644 echo "$progname: failed program was:" >&5
7645 cat conftest.$ac_ext >&5
7647 rm -rf conftest* conftst*
7649 # Do not use the global_symbol_pipe unless it works.
7650 if test "$pipe_works" = yes; then
7653 lt_cv_sys_global_symbol_pipe=
7659 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7660 lt_cv_sys_global_symbol_to_cdecl=
7662 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7664 $as_echo "failed" >&6; }
7666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7667 $as_echo "ok" >&6; }
7691 # Check whether --enable-libtool-lock was given.
7692 if test "${enable_libtool_lock+set}" = set; then :
7693 enableval=$enable_libtool_lock;
7696 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7698 # Some flags need to be propagated to the compiler or linker for good
7702 # Find out which ABI we are using.
7703 echo 'int i;' > conftest.$ac_ext
7704 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7705 (eval $ac_compile) 2>&5
7707 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7708 test $ac_status = 0; }; then
7709 case `/usr/bin/file conftest.$ac_objext` in
7721 # Find out which ABI we are using.
7722 echo '#line 7722 "configure"' > conftest.$ac_ext
7723 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7724 (eval $ac_compile) 2>&5
7726 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7727 test $ac_status = 0; }; then
7728 if test "$lt_cv_prog_gnu_ld" = yes; then
7729 case `/usr/bin/file conftest.$ac_objext` in
7731 LD="${LD-ld} -melf32bsmip"
7734 LD="${LD-ld} -melf32bmipn32"
7737 LD="${LD-ld} -melf64bmip"
7741 case `/usr/bin/file conftest.$ac_objext` in
7757 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7758 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7759 # Find out which ABI we are using.
7760 echo 'int i;' > conftest.$ac_ext
7761 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7762 (eval $ac_compile) 2>&5
7764 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7765 test $ac_status = 0; }; then
7766 case `/usr/bin/file conftest.o` in
7769 x86_64-*kfreebsd*-gnu)
7770 LD="${LD-ld} -m elf_i386_fbsd"
7773 LD="${LD-ld} -m elf_i386"
7775 ppc64-*linux*|powerpc64-*linux*)
7776 LD="${LD-ld} -m elf32ppclinux"
7779 LD="${LD-ld} -m elf_s390"
7782 LD="${LD-ld} -m elf32_sparc"
7788 x86_64-*kfreebsd*-gnu)
7789 LD="${LD-ld} -m elf_x86_64_fbsd"
7792 LD="${LD-ld} -m elf_x86_64"
7794 ppc*-*linux*|powerpc*-*linux*)
7795 LD="${LD-ld} -m elf64ppc"
7797 s390*-*linux*|s390*-*tpf*)
7798 LD="${LD-ld} -m elf64_s390"
7801 LD="${LD-ld} -m elf64_sparc"
7811 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7812 SAVE_CFLAGS="$CFLAGS"
7813 CFLAGS="$CFLAGS -belf"
7814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7815 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7816 if test "${lt_cv_cc_needs_belf+set}" = set; then :
7817 $as_echo_n "(cached) " >&6
7820 ac_cpp='$CPP $CPPFLAGS'
7821 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7822 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7823 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7826 /* end confdefs.h. */
7836 if ac_fn_c_try_link "$LINENO"; then :
7837 lt_cv_cc_needs_belf=yes
7839 lt_cv_cc_needs_belf=no
7841 rm -f core conftest.err conftest.$ac_objext \
7842 conftest$ac_exeext conftest.$ac_ext
7844 ac_cpp='$CPP $CPPFLAGS'
7845 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7846 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7847 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7851 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7852 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7853 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7854 CFLAGS="$SAVE_CFLAGS"
7858 # Find out which ABI we are using.
7859 echo 'int i;' > conftest.$ac_ext
7860 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7861 (eval $ac_compile) 2>&5
7863 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7864 test $ac_status = 0; }; then
7865 case `/usr/bin/file conftest.o` in
7867 case $lt_cv_prog_gnu_ld in
7868 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7870 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7882 need_locks="$enable_libtool_lock"
7886 rhapsody* | darwin*)
7887 if test -n "$ac_tool_prefix"; then
7888 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7889 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7891 $as_echo_n "checking for $ac_word... " >&6; }
7892 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
7893 $as_echo_n "(cached) " >&6
7895 if test -n "$DSYMUTIL"; then
7896 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7902 test -z "$as_dir" && as_dir=.
7903 for ac_exec_ext in '' $ac_executable_extensions; do
7904 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7905 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7906 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7915 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7916 if test -n "$DSYMUTIL"; then
7917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7918 $as_echo "$DSYMUTIL" >&6; }
7920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7921 $as_echo "no" >&6; }
7926 if test -z "$ac_cv_prog_DSYMUTIL"; then
7927 ac_ct_DSYMUTIL=$DSYMUTIL
7928 # Extract the first word of "dsymutil", so it can be a program name with args.
7929 set dummy 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 test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
7933 $as_echo_n "(cached) " >&6
7935 if test -n "$ac_ct_DSYMUTIL"; then
7936 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_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_ac_ct_DSYMUTIL="dsymutil"
7946 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7955 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7956 if test -n "$ac_ct_DSYMUTIL"; then
7957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7958 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7961 $as_echo "no" >&6; }
7964 if test "x$ac_ct_DSYMUTIL" = x; then
7967 case $cross_compiling:$ac_tool_warned in
7969 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7970 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7971 ac_tool_warned=yes ;;
7973 DSYMUTIL=$ac_ct_DSYMUTIL
7976 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7979 if test -n "$ac_tool_prefix"; then
7980 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7981 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7983 $as_echo_n "checking for $ac_word... " >&6; }
7984 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
7985 $as_echo_n "(cached) " >&6
7987 if test -n "$NMEDIT"; then
7988 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7994 test -z "$as_dir" && as_dir=.
7995 for ac_exec_ext in '' $ac_executable_extensions; do
7996 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7997 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7998 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8007 NMEDIT=$ac_cv_prog_NMEDIT
8008 if test -n "$NMEDIT"; then
8009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8010 $as_echo "$NMEDIT" >&6; }
8012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8013 $as_echo "no" >&6; }
8018 if test -z "$ac_cv_prog_NMEDIT"; then
8019 ac_ct_NMEDIT=$NMEDIT
8020 # Extract the first word of "nmedit", so it can be a program name with args.
8021 set dummy 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 test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
8025 $as_echo_n "(cached) " >&6
8027 if test -n "$ac_ct_NMEDIT"; then
8028 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_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_ac_ct_NMEDIT="nmedit"
8038 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8047 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8048 if test -n "$ac_ct_NMEDIT"; then
8049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8050 $as_echo "$ac_ct_NMEDIT" >&6; }
8052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8053 $as_echo "no" >&6; }
8056 if test "x$ac_ct_NMEDIT" = x; then
8059 case $cross_compiling:$ac_tool_warned in
8061 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8062 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8063 ac_tool_warned=yes ;;
8065 NMEDIT=$ac_ct_NMEDIT
8068 NMEDIT="$ac_cv_prog_NMEDIT"
8071 if test -n "$ac_tool_prefix"; then
8072 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8073 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8075 $as_echo_n "checking for $ac_word... " >&6; }
8076 if test "${ac_cv_prog_LIPO+set}" = set; then :
8077 $as_echo_n "(cached) " >&6
8079 if test -n "$LIPO"; then
8080 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8086 test -z "$as_dir" && as_dir=.
8087 for ac_exec_ext in '' $ac_executable_extensions; do
8088 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8089 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8090 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8099 LIPO=$ac_cv_prog_LIPO
8100 if test -n "$LIPO"; then
8101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8102 $as_echo "$LIPO" >&6; }
8104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8105 $as_echo "no" >&6; }
8110 if test -z "$ac_cv_prog_LIPO"; then
8112 # Extract the first word of "lipo", so it can be a program name with args.
8113 set dummy 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 test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
8117 $as_echo_n "(cached) " >&6
8119 if test -n "$ac_ct_LIPO"; then
8120 ac_cv_prog_ac_ct_LIPO="$ac_ct_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_ac_ct_LIPO="lipo"
8130 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8139 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8140 if test -n "$ac_ct_LIPO"; then
8141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8142 $as_echo "$ac_ct_LIPO" >&6; }
8144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8145 $as_echo "no" >&6; }
8148 if test "x$ac_ct_LIPO" = x; then
8151 case $cross_compiling:$ac_tool_warned in
8153 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8154 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8155 ac_tool_warned=yes ;;
8160 LIPO="$ac_cv_prog_LIPO"
8163 if test -n "$ac_tool_prefix"; then
8164 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8165 set dummy ${ac_tool_prefix}otool; ac_word=$2
8166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8167 $as_echo_n "checking for $ac_word... " >&6; }
8168 if test "${ac_cv_prog_OTOOL+set}" = set; then :
8169 $as_echo_n "(cached) " >&6
8171 if test -n "$OTOOL"; then
8172 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8178 test -z "$as_dir" && as_dir=.
8179 for ac_exec_ext in '' $ac_executable_extensions; do
8180 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8181 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8182 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8191 OTOOL=$ac_cv_prog_OTOOL
8192 if test -n "$OTOOL"; then
8193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8194 $as_echo "$OTOOL" >&6; }
8196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8197 $as_echo "no" >&6; }
8202 if test -z "$ac_cv_prog_OTOOL"; then
8204 # Extract the first word of "otool", so it can be a program name with args.
8205 set dummy 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 test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
8209 $as_echo_n "(cached) " >&6
8211 if test -n "$ac_ct_OTOOL"; then
8212 ac_cv_prog_ac_ct_OTOOL="$ac_ct_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_ac_ct_OTOOL="otool"
8222 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8231 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8232 if test -n "$ac_ct_OTOOL"; then
8233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8234 $as_echo "$ac_ct_OTOOL" >&6; }
8236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8237 $as_echo "no" >&6; }
8240 if test "x$ac_ct_OTOOL" = x; then
8243 case $cross_compiling:$ac_tool_warned in
8245 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8246 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8247 ac_tool_warned=yes ;;
8252 OTOOL="$ac_cv_prog_OTOOL"
8255 if test -n "$ac_tool_prefix"; then
8256 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8257 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8259 $as_echo_n "checking for $ac_word... " >&6; }
8260 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
8261 $as_echo_n "(cached) " >&6
8263 if test -n "$OTOOL64"; then
8264 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8270 test -z "$as_dir" && as_dir=.
8271 for ac_exec_ext in '' $ac_executable_extensions; do
8272 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8273 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8274 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8283 OTOOL64=$ac_cv_prog_OTOOL64
8284 if test -n "$OTOOL64"; then
8285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8286 $as_echo "$OTOOL64" >&6; }
8288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8289 $as_echo "no" >&6; }
8294 if test -z "$ac_cv_prog_OTOOL64"; then
8295 ac_ct_OTOOL64=$OTOOL64
8296 # Extract the first word of "otool64", so it can be a program name with args.
8297 set dummy 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 test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
8301 $as_echo_n "(cached) " >&6
8303 if test -n "$ac_ct_OTOOL64"; then
8304 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_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_ac_ct_OTOOL64="otool64"
8314 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8323 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8324 if test -n "$ac_ct_OTOOL64"; then
8325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8326 $as_echo "$ac_ct_OTOOL64" >&6; }
8328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8329 $as_echo "no" >&6; }
8332 if test "x$ac_ct_OTOOL64" = x; then
8335 case $cross_compiling:$ac_tool_warned in
8337 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8338 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8339 ac_tool_warned=yes ;;
8341 OTOOL64=$ac_ct_OTOOL64
8344 OTOOL64="$ac_cv_prog_OTOOL64"
8373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8374 $as_echo_n "checking for -single_module linker flag... " >&6; }
8375 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
8376 $as_echo_n "(cached) " >&6
8378 lt_cv_apple_cc_single_mod=no
8379 if test -z "${LT_MULTI_MODULE}"; then
8380 # By default we will add the -single_module flag. You can override
8381 # by either setting the environment variable LT_MULTI_MODULE
8382 # non-empty at configure time, or by adding -multi_module to the
8384 rm -rf libconftest.dylib*
8385 echo "int foo(void){return 1;}" > conftest.c
8386 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8387 -dynamiclib -Wl,-single_module conftest.c" >&5
8388 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8389 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8391 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8392 lt_cv_apple_cc_single_mod=yes
8394 cat conftest.err >&5
8396 rm -rf libconftest.dylib*
8400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8401 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8403 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8404 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
8405 $as_echo_n "(cached) " >&6
8407 lt_cv_ld_exported_symbols_list=no
8408 save_LDFLAGS=$LDFLAGS
8409 echo "_main" > conftest.sym
8410 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8412 /* end confdefs.h. */
8422 if ac_fn_c_try_link "$LINENO"; then :
8423 lt_cv_ld_exported_symbols_list=yes
8425 lt_cv_ld_exported_symbols_list=no
8427 rm -f core conftest.err conftest.$ac_objext \
8428 conftest$ac_exeext conftest.$ac_ext
8429 LDFLAGS="$save_LDFLAGS"
8432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8433 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8435 rhapsody* | darwin1.[012])
8436 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8438 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8439 darwin*) # darwin 5.x on
8440 # if running on 10.5 or later, the deployment target defaults
8441 # to the OS version, if on x86, and 10.4, the deployment
8442 # target defaults to 10.4. Don't you love it?
8443 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8444 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8445 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8447 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8449 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8453 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8454 _lt_dar_single_mod='$single_module'
8456 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8457 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8459 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8461 if test "$DSYMUTIL" != ":"; then
8462 _lt_dsymutil='~$DSYMUTIL $lib || :'
8469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8470 $as_echo_n "checking for ANSI C header files... " >&6; }
8471 if test "${ac_cv_header_stdc+set}" = set; then :
8472 $as_echo_n "(cached) " >&6
8474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8475 /* end confdefs.h. */
8489 if ac_fn_c_try_compile "$LINENO"; then :
8490 ac_cv_header_stdc=yes
8492 ac_cv_header_stdc=no
8494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8496 if test $ac_cv_header_stdc = yes; then
8497 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8499 /* end confdefs.h. */
8503 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8504 $EGREP "memchr" >/dev/null 2>&1; then :
8507 ac_cv_header_stdc=no
8513 if test $ac_cv_header_stdc = yes; then
8514 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8516 /* end confdefs.h. */
8520 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8521 $EGREP "free" >/dev/null 2>&1; then :
8524 ac_cv_header_stdc=no
8530 if test $ac_cv_header_stdc = yes; then
8531 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8532 if test "$cross_compiling" = yes; then :
8535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8536 /* end confdefs.h. */
8539 #if ((' ' & 0x0FF) == 0x020)
8540 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8541 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8543 # define ISLOWER(c) \
8544 (('a' <= (c) && (c) <= 'i') \
8545 || ('j' <= (c) && (c) <= 'r') \
8546 || ('s' <= (c) && (c) <= 'z'))
8547 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8550 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8555 for (i = 0; i < 256; i++)
8556 if (XOR (islower (i), ISLOWER (i))
8557 || toupper (i) != TOUPPER (i))
8562 if ac_fn_c_try_run "$LINENO"; then :
8565 ac_cv_header_stdc=no
8567 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8568 conftest.$ac_objext conftest.beam conftest.$ac_ext
8573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8574 $as_echo "$ac_cv_header_stdc" >&6; }
8575 if test $ac_cv_header_stdc = yes; then
8577 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8581 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8582 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8583 inttypes.h stdint.h unistd.h
8585 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8586 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8588 eval as_val=\$$as_ac_Header
8589 if test "x$as_val" = x""yes; then :
8590 cat >>confdefs.h <<_ACEOF
8591 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8599 for ac_header in dlfcn.h
8601 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8603 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
8604 cat >>confdefs.h <<_ACEOF
8605 #define HAVE_DLFCN_H 1
8615 ac_cpp='$CXXCPP $CPPFLAGS'
8616 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8617 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8618 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8619 if test -z "$CXX"; then
8620 if test -n "$CCC"; then
8623 if test -n "$ac_tool_prefix"; then
8624 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
8626 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8627 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8629 $as_echo_n "checking for $ac_word... " >&6; }
8630 if test "${ac_cv_prog_CXX+set}" = set; then :
8631 $as_echo_n "(cached) " >&6
8633 if test -n "$CXX"; then
8634 ac_cv_prog_CXX="$CXX" # Let the user override the test.
8636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8640 test -z "$as_dir" && as_dir=.
8641 for ac_exec_ext in '' $ac_executable_extensions; do
8642 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8643 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
8644 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8654 if test -n "$CXX"; then
8655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
8656 $as_echo "$CXX" >&6; }
8658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8659 $as_echo "no" >&6; }
8663 test -n "$CXX" && break
8666 if test -z "$CXX"; then
8668 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
8670 # Extract the first word of "$ac_prog", so it can be a program name with args.
8671 set dummy $ac_prog; ac_word=$2
8672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8673 $as_echo_n "checking for $ac_word... " >&6; }
8674 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
8675 $as_echo_n "(cached) " >&6
8677 if test -n "$ac_ct_CXX"; then
8678 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
8680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8684 test -z "$as_dir" && as_dir=.
8685 for ac_exec_ext in '' $ac_executable_extensions; do
8686 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8687 ac_cv_prog_ac_ct_CXX="$ac_prog"
8688 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8697 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
8698 if test -n "$ac_ct_CXX"; then
8699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
8700 $as_echo "$ac_ct_CXX" >&6; }
8702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8703 $as_echo "no" >&6; }
8707 test -n "$ac_ct_CXX" && break
8710 if test "x$ac_ct_CXX" = x; then
8713 case $cross_compiling:$ac_tool_warned in
8715 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8716 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8717 ac_tool_warned=yes ;;
8725 # Provide some information about the compiler.
8726 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
8729 for ac_option in --version -v -V -qversion; do
8730 { { ac_try="$ac_compiler $ac_option >&5"
8732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8733 *) ac_try_echo=$ac_try;;
8735 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
8736 $as_echo "$ac_try_echo"; } >&5
8737 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
8739 if test -s conftest.err; then
8741 ... rest of stderr output deleted ...
8742 10q' conftest.err >conftest.er1
8743 cat conftest.er1 >&5
8745 rm -f conftest.er1 conftest.err
8746 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8747 test $ac_status = 0; }
8750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
8751 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
8752 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
8753 $as_echo_n "(cached) " >&6
8755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8756 /* end confdefs.h. */
8769 if ac_fn_cxx_try_compile "$LINENO"; then :
8774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8775 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
8778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
8779 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
8780 if test $ac_compiler_gnu = yes; then
8785 ac_test_CXXFLAGS=${CXXFLAGS+set}
8786 ac_save_CXXFLAGS=$CXXFLAGS
8787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
8788 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
8789 if test "${ac_cv_prog_cxx_g+set}" = set; then :
8790 $as_echo_n "(cached) " >&6
8792 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
8793 ac_cxx_werror_flag=yes
8796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8797 /* end confdefs.h. */
8807 if ac_fn_cxx_try_compile "$LINENO"; then :
8808 ac_cv_prog_cxx_g=yes
8811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8812 /* end confdefs.h. */
8822 if ac_fn_cxx_try_compile "$LINENO"; then :
8825 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8828 /* end confdefs.h. */
8838 if ac_fn_cxx_try_compile "$LINENO"; then :
8839 ac_cv_prog_cxx_g=yes
8841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8846 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
8849 $as_echo "$ac_cv_prog_cxx_g" >&6; }
8850 if test "$ac_test_CXXFLAGS" = set; then
8851 CXXFLAGS=$ac_save_CXXFLAGS
8852 elif test $ac_cv_prog_cxx_g = yes; then
8853 if test "$GXX" = yes; then
8859 if test "$GXX" = yes; then
8866 ac_cpp='$CPP $CPPFLAGS'
8867 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8868 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8869 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8871 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
8872 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
8873 (test "X$CXX" != "Xg++"))) ; then
8875 ac_cpp='$CXXCPP $CPPFLAGS'
8876 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8877 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8878 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
8880 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
8881 if test -z "$CXXCPP"; then
8882 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
8883 $as_echo_n "(cached) " >&6
8885 # Double quotes because CXXCPP needs to be expanded
8886 for CXXCPP in "$CXX -E" "/lib/cpp"
8889 for ac_cxx_preproc_warn_flag in '' yes
8891 # Use a header file that comes with gcc, so configuring glibc
8892 # with a fresh cross-compiler works.
8893 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8894 # <limits.h> exists even on freestanding compilers.
8895 # On the NeXT, cc -E runs the code through the compiler's parser,
8896 # not just through cpp. "Syntax error" is here to catch this case.
8897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8898 /* end confdefs.h. */
8900 # include <limits.h>
8902 # include <assert.h>
8906 if ac_fn_cxx_try_cpp "$LINENO"; then :
8909 # Broken: fails on valid input.
8912 rm -f conftest.err conftest.$ac_ext
8914 # OK, works on sane cases. Now check whether nonexistent headers
8915 # can be detected and how.
8916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8917 /* end confdefs.h. */
8918 #include <ac_nonexistent.h>
8920 if ac_fn_cxx_try_cpp "$LINENO"; then :
8921 # Broken: success on invalid input.
8924 # Passes both tests.
8928 rm -f conftest.err conftest.$ac_ext
8931 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8932 rm -f conftest.err conftest.$ac_ext
8933 if $ac_preproc_ok; then :
8938 ac_cv_prog_CXXCPP=$CXXCPP
8941 CXXCPP=$ac_cv_prog_CXXCPP
8943 ac_cv_prog_CXXCPP=$CXXCPP
8945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
8946 $as_echo "$CXXCPP" >&6; }
8948 for ac_cxx_preproc_warn_flag in '' yes
8950 # Use a header file that comes with gcc, so configuring glibc
8951 # with a fresh cross-compiler works.
8952 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8953 # <limits.h> exists even on freestanding compilers.
8954 # On the NeXT, cc -E runs the code through the compiler's parser,
8955 # not just through cpp. "Syntax error" is here to catch this case.
8956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8957 /* end confdefs.h. */
8959 # include <limits.h>
8961 # include <assert.h>
8965 if ac_fn_cxx_try_cpp "$LINENO"; then :
8968 # Broken: fails on valid input.
8971 rm -f conftest.err conftest.$ac_ext
8973 # OK, works on sane cases. Now check whether nonexistent headers
8974 # can be detected and how.
8975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8976 /* end confdefs.h. */
8977 #include <ac_nonexistent.h>
8979 if ac_fn_cxx_try_cpp "$LINENO"; then :
8980 # Broken: success on invalid input.
8983 # Passes both tests.
8987 rm -f conftest.err conftest.$ac_ext
8990 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8991 rm -f conftest.err conftest.$ac_ext
8992 if $ac_preproc_ok; then :
8995 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8996 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8997 _lt_caught_CXX_error=yes; }
9001 ac_cpp='$CPP $CPPFLAGS'
9002 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9003 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9004 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9007 _lt_caught_CXX_error=yes
9015 # Check whether --enable-shared was given.
9016 if test "${enable_shared+set}" = set; then :
9017 enableval=$enable_shared; p=${PACKAGE-default}
9019 yes) enable_shared=yes ;;
9020 no) enable_shared=no ;;
9023 # Look at the argument we got. We use all the common list separators.
9024 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9025 for pkg in $enableval; do
9027 if test "X$pkg" = "X$p"; then
9044 # Check whether --enable-static was given.
9045 if test "${enable_static+set}" = set; then :
9046 enableval=$enable_static; p=${PACKAGE-default}
9048 yes) enable_static=yes ;;
9049 no) enable_static=no ;;
9052 # Look at the argument we got. We use all the common list separators.
9053 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9054 for pkg in $enableval; do
9056 if test "X$pkg" = "X$p"; then
9085 # Check whether --with-pic was given.
9086 if test "${with_pic+set}" = set; then :
9087 withval=$with_pic; pic_mode="$withval"
9093 test -z "$pic_mode" && pic_mode=default
9101 # Check whether --enable-fast-install was given.
9102 if test "${enable_fast_install+set}" = set; then :
9103 enableval=$enable_fast_install; p=${PACKAGE-default}
9105 yes) enable_fast_install=yes ;;
9106 no) enable_fast_install=no ;;
9108 enable_fast_install=no
9109 # Look at the argument we got. We use all the common list separators.
9110 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9111 for pkg in $enableval; do
9113 if test "X$pkg" = "X$p"; then
9114 enable_fast_install=yes
9121 enable_fast_install=yes
9134 # This can be used to rebuild libtool when needed
9135 LIBTOOL_DEPS="$ltmain"
9137 # Always use our own libtool.
9138 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9164 test -z "$LN_S" && LN_S="ln -s"
9179 if test -n "${ZSH_VERSION+set}" ; then
9180 setopt NO_GLOB_SUBST
9183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9184 $as_echo_n "checking for objdir... " >&6; }
9185 if test "${lt_cv_objdir+set}" = set; then :
9186 $as_echo_n "(cached) " >&6
9188 rm -f .libs 2>/dev/null
9189 mkdir .libs 2>/dev/null
9190 if test -d .libs; then
9193 # MS-DOS does not allow filenames that begin with a dot.
9196 rmdir .libs 2>/dev/null
9198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9199 $as_echo "$lt_cv_objdir" >&6; }
9200 objdir=$lt_cv_objdir
9206 cat >>confdefs.h <<_ACEOF
9207 #define LT_OBJDIR "$lt_cv_objdir/"
9228 # AIX sometimes has problems with the GCC collect2 program. For some
9229 # reason, if we set the COLLECT_NAMES environment variable, the problems
9230 # vanish in a puff of smoke.
9231 if test "X${COLLECT_NAMES+set}" != Xset; then
9233 export COLLECT_NAMES
9238 # Sed substitution that helps us do robust quoting. It backslashifies
9239 # metacharacters that are still active within double-quoted strings.
9240 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
9242 # Same as above, but do not quote variable references.
9243 double_quote_subst='s/\(["`\\]\)/\\\1/g'
9245 # Sed substitution to delay expansion of an escaped shell variable in a
9246 # double_quote_subst'ed string.
9247 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
9249 # Sed substitution to delay expansion of an escaped single quote.
9250 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
9252 # Sed substitution to avoid accidental globbing in evaled expressions
9253 no_glob_subst='s/\*/\\\*/g'
9257 can_build_shared=yes
9259 # All known linkers require a `.a' archive for static linking (except MSVC,
9260 # which needs '.lib').
9263 with_gnu_ld="$lt_cv_prog_gnu_ld"
9266 old_CFLAGS="$CFLAGS"
9268 # Set sane defaults for various variables
9269 test -z "$CC" && CC=cc
9270 test -z "$LTCC" && LTCC=$CC
9271 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9272 test -z "$LD" && LD=ld
9273 test -z "$ac_objext" && ac_objext=o
9275 for cc_temp in $compiler""; do
9277 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9278 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9283 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9286 # Only perform the check for file, if the check method requires it
9287 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9288 case $deplibs_check_method in
9290 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9292 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9293 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
9294 $as_echo_n "(cached) " >&6
9298 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9301 lt_save_MAGIC_CMD="$MAGIC_CMD"
9302 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9303 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9304 for ac_dir in $ac_dummy; do
9306 test -z "$ac_dir" && ac_dir=.
9307 if test -f $ac_dir/${ac_tool_prefix}file; then
9308 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9309 if test -n "$file_magic_test_file"; then
9310 case $deplibs_check_method in
9312 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9313 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9314 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9315 $EGREP "$file_magic_regex" > /dev/null; then
9320 *** Warning: the command libtool uses to detect shared libraries,
9321 *** $file_magic_cmd, produces output that libtool cannot recognize.
9322 *** The result is that libtool may fail to recognize shared libraries
9323 *** as such. This will affect the creation of libtool libraries that
9324 *** depend on shared libraries, but programs linked with such libtool
9325 *** libraries will work regardless of this problem. Nevertheless, you
9326 *** may want to report the problem to your system manager and/or to
9327 *** bug-libtool@gnu.org
9337 MAGIC_CMD="$lt_save_MAGIC_CMD"
9342 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9343 if test -n "$MAGIC_CMD"; then
9344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9345 $as_echo "$MAGIC_CMD" >&6; }
9347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9348 $as_echo "no" >&6; }
9355 if test -z "$lt_cv_path_MAGIC_CMD"; then
9356 if test -n "$ac_tool_prefix"; then
9357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9358 $as_echo_n "checking for file... " >&6; }
9359 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
9360 $as_echo_n "(cached) " >&6
9364 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9367 lt_save_MAGIC_CMD="$MAGIC_CMD"
9368 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9369 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9370 for ac_dir in $ac_dummy; do
9372 test -z "$ac_dir" && ac_dir=.
9373 if test -f $ac_dir/file; then
9374 lt_cv_path_MAGIC_CMD="$ac_dir/file"
9375 if test -n "$file_magic_test_file"; then
9376 case $deplibs_check_method in
9378 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9379 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9380 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9381 $EGREP "$file_magic_regex" > /dev/null; then
9386 *** Warning: the command libtool uses to detect shared libraries,
9387 *** $file_magic_cmd, produces output that libtool cannot recognize.
9388 *** The result is that libtool may fail to recognize shared libraries
9389 *** as such. This will affect the creation of libtool libraries that
9390 *** depend on shared libraries, but programs linked with such libtool
9391 *** libraries will work regardless of this problem. Nevertheless, you
9392 *** may want to report the problem to your system manager and/or to
9393 *** bug-libtool@gnu.org
9403 MAGIC_CMD="$lt_save_MAGIC_CMD"
9408 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9409 if test -n "$MAGIC_CMD"; then
9410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9411 $as_echo "$MAGIC_CMD" >&6; }
9413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9414 $as_echo "no" >&6; }
9427 # Use C for the default configuration in the libtool script
9431 ac_cpp='$CPP $CPPFLAGS'
9432 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9433 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9434 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9437 # Source file extension for C test sources.
9440 # Object file extension for compiled C test sources.
9444 # Code to be used in simple compile tests
9445 lt_simple_compile_test_code="int some_variable = 0;"
9447 # Code to be used in simple link tests
9448 lt_simple_link_test_code='int main(){return(0);}'
9456 # If no C compiler was specified, use CC.
9459 # If no C compiler flags were specified, use CFLAGS.
9460 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9462 # Allow CC to be a program name with arguments.
9465 # Save the default compiler, since it gets overwritten when the other
9466 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9467 compiler_DEFAULT=$CC
9469 # save warnings/boilerplate of simple test code
9470 ac_outfile=conftest.$ac_objext
9471 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9472 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9473 _lt_compiler_boilerplate=`cat conftest.err`
9476 ac_outfile=conftest.$ac_objext
9477 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9478 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9479 _lt_linker_boilerplate=`cat conftest.err`
9484 ## There is no encapsulation within the following macros, do not change
9485 ## the running order or otherwise move them around unless you know exactly
9486 ## what you are doing...
9487 if test -n "$compiler"; then
9489 lt_prog_compiler_no_builtin_flag=
9491 if test "$GCC" = yes; then
9492 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
9494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9495 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9496 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
9497 $as_echo_n "(cached) " >&6
9499 lt_cv_prog_compiler_rtti_exceptions=no
9500 ac_outfile=conftest.$ac_objext
9501 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9502 lt_compiler_flag="-fno-rtti -fno-exceptions"
9503 # Insert the option either (1) after the last *FLAGS variable, or
9504 # (2) before a word containing "conftest.", or (3) at the end.
9505 # Note that $ac_compile itself does not contain backslashes and begins
9506 # with a dollar sign (not a hyphen), so the echo should work correctly.
9507 # The option is referenced via a variable to avoid confusing sed.
9508 lt_compile=`echo "$ac_compile" | $SED \
9509 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9510 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9511 -e 's:$: $lt_compiler_flag:'`
9512 (eval echo "\"\$as_me:9512: $lt_compile\"" >&5)
9513 (eval "$lt_compile" 2>conftest.err)
9515 cat conftest.err >&5
9516 echo "$as_me:9516: \$? = $ac_status" >&5
9517 if (exit $ac_status) && test -s "$ac_outfile"; then
9518 # The compiler can only warn and ignore the option if not recognized
9519 # So say no if there are warnings other than the usual output.
9520 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9521 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9522 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9523 lt_cv_prog_compiler_rtti_exceptions=yes
9529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9530 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9532 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9533 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9545 lt_prog_compiler_wl=
9546 lt_prog_compiler_pic=
9547 lt_prog_compiler_static=
9549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9550 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9552 if test "$GCC" = yes; then
9553 lt_prog_compiler_wl='-Wl,'
9554 lt_prog_compiler_static='-static'
9558 # All AIX code is PIC.
9559 if test "$host_cpu" = ia64; then
9560 # AIX 5 now supports IA64 processor
9561 lt_prog_compiler_static='-Bstatic'
9568 # see comment about AmigaOS4 .so support
9569 lt_prog_compiler_pic='-fPIC'
9572 # FIXME: we need at least 68020 code to build shared libraries, but
9573 # adding the `-m68020' flag to GCC prevents building anything better,
9575 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9580 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9581 # PIC is the default for these OSes.
9584 mingw* | cygwin* | pw32* | os2* | cegcc*)
9585 # This hack is so that the source file can tell whether it is being
9586 # built for inclusion in a dll (and should export symbols for example).
9587 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9588 # (--disable-auto-import) libraries
9589 lt_prog_compiler_pic='-DDLL_EXPORT'
9592 darwin* | rhapsody*)
9593 # PIC is the default on this platform
9594 # Common symbols not allowed in MH_DYLIB files
9595 lt_prog_compiler_pic='-fno-common'
9599 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9600 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9601 # sets the default TLS model and affects inlining.
9607 lt_prog_compiler_pic='-fPIC'
9613 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9614 # Instead, we relocate shared libraries at runtime.
9618 # Just because we use GCC doesn't mean we suddenly get shared libraries
9619 # on systems that don't support them.
9620 lt_prog_compiler_can_build_shared=no
9625 # QNX uses GNU C++, but need to define -shared option too, otherwise
9627 lt_prog_compiler_pic='-fPIC -shared'
9631 if test -d /usr/nec; then
9632 lt_prog_compiler_pic=-Kconform_pic
9637 lt_prog_compiler_pic='-fPIC'
9641 # PORTME Check for flag to pass linker flags through the system compiler.
9644 lt_prog_compiler_wl='-Wl,'
9645 if test "$host_cpu" = ia64; then
9646 # AIX 5 now supports IA64 processor
9647 lt_prog_compiler_static='-Bstatic'
9649 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9653 mingw* | cygwin* | pw32* | os2* | cegcc*)
9654 # This hack is so that the source file can tell whether it is being
9655 # built for inclusion in a dll (and should export symbols for example).
9656 lt_prog_compiler_pic='-DDLL_EXPORT'
9659 hpux9* | hpux10* | hpux11*)
9660 lt_prog_compiler_wl='-Wl,'
9661 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9668 lt_prog_compiler_pic='+Z'
9671 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9672 lt_prog_compiler_static='${wl}-a ${wl}archive'
9675 irix5* | irix6* | nonstopux*)
9676 lt_prog_compiler_wl='-Wl,'
9677 # PIC (with -KPIC) is the default.
9678 lt_prog_compiler_static='-non_shared'
9681 linux* | k*bsd*-gnu)
9682 case $cc_basename in
9683 # old Intel for x86_64 which still supported -KPIC.
9685 lt_prog_compiler_wl='-Wl,'
9686 lt_prog_compiler_pic='-KPIC'
9687 lt_prog_compiler_static='-static'
9689 # icc used to be incompatible with GCC.
9690 # ICC 10 doesn't accept -KPIC any more.
9692 lt_prog_compiler_wl='-Wl,'
9693 lt_prog_compiler_pic='-fPIC'
9694 lt_prog_compiler_static='-static'
9696 # Lahey Fortran 8.1.
9698 lt_prog_compiler_wl='-Wl,'
9699 lt_prog_compiler_pic='--shared'
9700 lt_prog_compiler_static='--static'
9702 pgcc* | pgf77* | pgf90* | pgf95*)
9703 # Portland Group compilers (*not* the Pentium gcc compiler,
9704 # which looks to be a dead project)
9705 lt_prog_compiler_wl='-Wl,'
9706 lt_prog_compiler_pic='-fpic'
9707 lt_prog_compiler_static='-Bstatic'
9710 lt_prog_compiler_wl='-Wl,'
9711 # All Alpha code is PIC.
9712 lt_prog_compiler_static='-non_shared'
9715 # IBM XL C 8.0/Fortran 10.1 on PPC
9716 lt_prog_compiler_wl='-Wl,'
9717 lt_prog_compiler_pic='-qpic'
9718 lt_prog_compiler_static='-qstaticlink'
9721 case `$CC -V 2>&1 | sed 5q` in
9724 lt_prog_compiler_pic='-KPIC'
9725 lt_prog_compiler_static='-Bstatic'
9726 lt_prog_compiler_wl='-Wl,'
9729 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9730 lt_prog_compiler_pic='-KPIC'
9731 lt_prog_compiler_static='-Bstatic'
9732 lt_prog_compiler_wl=''
9740 lt_prog_compiler_pic='-KPIC'
9741 lt_prog_compiler_static='-Bstatic'
9745 # QNX uses GNU C++, but need to define -shared option too, otherwise
9747 lt_prog_compiler_pic='-fPIC -shared'
9750 osf3* | osf4* | osf5*)
9751 lt_prog_compiler_wl='-Wl,'
9752 # All OSF/1 code is PIC.
9753 lt_prog_compiler_static='-non_shared'
9757 lt_prog_compiler_static='-non_shared'
9761 lt_prog_compiler_pic='-KPIC'
9762 lt_prog_compiler_static='-Bstatic'
9763 case $cc_basename in
9765 lt_prog_compiler_wl='-Qoption ld ';;
9767 lt_prog_compiler_wl='-Wl,';;
9772 lt_prog_compiler_wl='-Qoption ld '
9773 lt_prog_compiler_pic='-PIC'
9774 lt_prog_compiler_static='-Bstatic'
9777 sysv4 | sysv4.2uw2* | sysv4.3*)
9778 lt_prog_compiler_wl='-Wl,'
9779 lt_prog_compiler_pic='-KPIC'
9780 lt_prog_compiler_static='-Bstatic'
9784 if test -d /usr/nec ;then
9785 lt_prog_compiler_pic='-Kconform_pic'
9786 lt_prog_compiler_static='-Bstatic'
9790 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9791 lt_prog_compiler_wl='-Wl,'
9792 lt_prog_compiler_pic='-KPIC'
9793 lt_prog_compiler_static='-Bstatic'
9797 lt_prog_compiler_wl='-Wl,'
9798 lt_prog_compiler_can_build_shared=no
9802 lt_prog_compiler_pic='-pic'
9803 lt_prog_compiler_static='-Bstatic'
9807 lt_prog_compiler_can_build_shared=no
9813 # For platforms which do not support PIC, -DPIC is meaningless:
9815 lt_prog_compiler_pic=
9818 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9822 $as_echo "$lt_prog_compiler_pic" >&6; }
9830 # Check to make sure the PIC flag actually works.
9832 if test -n "$lt_prog_compiler_pic"; then
9833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9834 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9835 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
9836 $as_echo_n "(cached) " >&6
9838 lt_cv_prog_compiler_pic_works=no
9839 ac_outfile=conftest.$ac_objext
9840 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9841 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9842 # Insert the option either (1) after the last *FLAGS variable, or
9843 # (2) before a word containing "conftest.", or (3) at the end.
9844 # Note that $ac_compile itself does not contain backslashes and begins
9845 # with a dollar sign (not a hyphen), so the echo should work correctly.
9846 # The option is referenced via a variable to avoid confusing sed.
9847 lt_compile=`echo "$ac_compile" | $SED \
9848 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9849 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9850 -e 's:$: $lt_compiler_flag:'`
9851 (eval echo "\"\$as_me:9851: $lt_compile\"" >&5)
9852 (eval "$lt_compile" 2>conftest.err)
9854 cat conftest.err >&5
9855 echo "$as_me:9855: \$? = $ac_status" >&5
9856 if (exit $ac_status) && test -s "$ac_outfile"; then
9857 # The compiler can only warn and ignore the option if not recognized
9858 # So say no if there are warnings other than the usual output.
9859 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9860 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9861 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9862 lt_cv_prog_compiler_pic_works=yes
9868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9869 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9871 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9872 case $lt_prog_compiler_pic in
9874 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9877 lt_prog_compiler_pic=
9878 lt_prog_compiler_can_build_shared=no
9889 # Check to make sure the static flag actually works.
9891 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9893 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9894 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
9895 $as_echo_n "(cached) " >&6
9897 lt_cv_prog_compiler_static_works=no
9898 save_LDFLAGS="$LDFLAGS"
9899 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9900 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9901 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9902 # The linker can only warn and ignore the option if not recognized
9903 # So say no if there are warnings
9904 if test -s conftest.err; then
9905 # Append any errors to the config.log.
9906 cat conftest.err 1>&5
9907 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9908 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9909 if diff conftest.exp conftest.er2 >/dev/null; then
9910 lt_cv_prog_compiler_static_works=yes
9913 lt_cv_prog_compiler_static_works=yes
9917 LDFLAGS="$save_LDFLAGS"
9920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9921 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9923 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9926 lt_prog_compiler_static=
9935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9936 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9937 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9938 $as_echo_n "(cached) " >&6
9940 lt_cv_prog_compiler_c_o=no
9941 $RM -r conftest 2>/dev/null
9945 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9947 lt_compiler_flag="-o out/conftest2.$ac_objext"
9948 # Insert the option either (1) after the last *FLAGS variable, or
9949 # (2) before a word containing "conftest.", or (3) at the end.
9950 # Note that $ac_compile itself does not contain backslashes and begins
9951 # with a dollar sign (not a hyphen), so the echo should work correctly.
9952 lt_compile=`echo "$ac_compile" | $SED \
9953 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9954 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9955 -e 's:$: $lt_compiler_flag:'`
9956 (eval echo "\"\$as_me:9956: $lt_compile\"" >&5)
9957 (eval "$lt_compile" 2>out/conftest.err)
9959 cat out/conftest.err >&5
9960 echo "$as_me:9960: \$? = $ac_status" >&5
9961 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9963 # The compiler can only warn and ignore the option if not recognized
9964 # So say no if there are warnings
9965 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9966 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9967 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9968 lt_cv_prog_compiler_c_o=yes
9973 # SGI C++ compiler will create directory out/ii_files/ for
9974 # template instantiation
9975 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9976 $RM out/* && rmdir out
9982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9983 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9991 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9992 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9993 $as_echo_n "(cached) " >&6
9995 lt_cv_prog_compiler_c_o=no
9996 $RM -r conftest 2>/dev/null
10000 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10002 lt_compiler_flag="-o out/conftest2.$ac_objext"
10003 # Insert the option either (1) after the last *FLAGS variable, or
10004 # (2) before a word containing "conftest.", or (3) at the end.
10005 # Note that $ac_compile itself does not contain backslashes and begins
10006 # with a dollar sign (not a hyphen), so the echo should work correctly.
10007 lt_compile=`echo "$ac_compile" | $SED \
10008 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10009 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10010 -e 's:$: $lt_compiler_flag:'`
10011 (eval echo "\"\$as_me:10011: $lt_compile\"" >&5)
10012 (eval "$lt_compile" 2>out/conftest.err)
10014 cat out/conftest.err >&5
10015 echo "$as_me:10015: \$? = $ac_status" >&5
10016 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10018 # The compiler can only warn and ignore the option if not recognized
10019 # So say no if there are warnings
10020 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
10021 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10022 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10023 lt_cv_prog_compiler_c_o=yes
10028 # SGI C++ compiler will create directory out/ii_files/ for
10029 # template instantiation
10030 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10031 $RM out/* && rmdir out
10037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10038 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10043 hard_links="nottested"
10044 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10045 # do not overwrite the value of need_locks provided by the user
10046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10047 $as_echo_n "checking if we can lock with hard links... " >&6; }
10050 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10052 ln conftest.a conftest.b 2>&5 || hard_links=no
10053 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10055 $as_echo "$hard_links" >&6; }
10056 if test "$hard_links" = no; then
10057 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10058 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10071 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10074 allow_undefined_flag=
10075 always_export_symbols=no
10077 archive_expsym_cmds=
10078 compiler_needs_object=no
10079 enable_shared_with_static_runtimes=no
10080 export_dynamic_flag_spec=
10081 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10082 hardcode_automatic=no
10084 hardcode_direct_absolute=no
10085 hardcode_libdir_flag_spec=
10086 hardcode_libdir_flag_spec_ld=
10087 hardcode_libdir_separator=
10088 hardcode_minus_L=no
10089 hardcode_shlibpath_var=unsupported
10091 link_all_deplibs=unknown
10093 module_expsym_cmds=
10094 old_archive_from_new_cmds=
10095 old_archive_from_expsyms_cmds=
10096 thread_safe_flag_spec=
10097 whole_archive_flag_spec=
10098 # include_expsyms should be a list of space-separated symbols to be *always*
10099 # included in the symbol list
10101 # exclude_expsyms can be an extended regexp of symbols to exclude
10102 # it will be wrapped by ` (' and `)$', so one must not match beginning or
10103 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10104 # as well as any symbol that contains `d'.
10105 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10106 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10107 # platforms (ab)use it in PIC code, but their linkers get confused if
10108 # the symbol is explicitly referenced. Since portable code cannot
10109 # rely on this symbol name, it's probably fine to never include it in
10110 # preloaded symbol tables.
10111 # Exclude shared library initialization/finalization symbols.
10112 extract_expsyms_cmds=
10115 cygwin* | mingw* | pw32* | cegcc*)
10116 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10117 # When not using gcc, we currently assume that we are using
10118 # Microsoft Visual C++.
10119 if test "$GCC" != yes; then
10124 # we just hope/assume this is gcc and not c89 (= MSVC++)
10133 if test "$with_gnu_ld" = yes; then
10134 # If archive_cmds runs LD, not CC, wlarc should be empty
10137 # Set some defaults for GNU ld with shared library support. These
10138 # are reset later if shared libraries are not supported. Putting them
10139 # here allows them to be overridden if necessary.
10140 runpath_var=LD_RUN_PATH
10141 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10142 export_dynamic_flag_spec='${wl}--export-dynamic'
10143 # ancient GNU ld didn't support --whole-archive et. al.
10144 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10145 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10147 whole_archive_flag_spec=
10149 supports_anon_versioning=no
10150 case `$LD -v 2>&1` in
10151 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10152 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10153 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10154 *\ 2.11.*) ;; # other 2.11 versions
10155 *) supports_anon_versioning=yes ;;
10158 # See if GNU ld supports shared libraries.
10161 # On AIX/PPC, the GNU linker is very broken
10162 if test "$host_cpu" != ia64; then
10166 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
10167 *** to be unable to reliably create shared libraries on AIX.
10168 *** Therefore, libtool is disabling shared libraries support. If you
10169 *** really care for shared libraries, you may want to modify your PATH
10170 *** so that a non-GNU linker is found, and then restart.
10179 # see comment about AmigaOS4 .so support
10180 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10181 archive_expsym_cmds=''
10184 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)'
10185 hardcode_libdir_flag_spec='-L$libdir'
10186 hardcode_minus_L=yes
10192 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10193 allow_undefined_flag=unsupported
10194 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10195 # support --undefined. This deserves some investigation. FIXME
10196 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10202 cygwin* | mingw* | pw32* | cegcc*)
10203 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10204 # as there is no search path for DLLs.
10205 hardcode_libdir_flag_spec='-L$libdir'
10206 allow_undefined_flag=unsupported
10207 always_export_symbols=no
10208 enable_shared_with_static_runtimes=yes
10209 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10211 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10212 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10213 # If the export-symbols file already is a .def file (1st line
10214 # is EXPORTS), use it as is; otherwise, prepend...
10215 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10216 cp $export_symbols $output_objdir/$soname.def;
10218 echo EXPORTS > $output_objdir/$soname.def;
10219 cat $export_symbols >> $output_objdir/$soname.def;
10221 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10229 hardcode_shlibpath_var=no
10230 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10231 export_dynamic_flag_spec='${wl}-E'
10232 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10233 # Instead, shared libraries are loaded at an image base (0x10000000 by
10234 # default) and relocated if they conflict, which is a slow very memory
10235 # consuming and fragmenting process. To avoid this, we pick a random,
10236 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10237 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10238 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10239 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'
10242 gnu* | linux* | tpf* | k*bsd*-gnu)
10244 if test "$host_os" = linux-dietlibc; then
10245 case $cc_basename in
10246 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10249 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10250 && test "$tmp_diet" = no
10253 tmp_sharedflag='-shared'
10254 case $cc_basename,$host_cpu in
10255 pgcc*) # Portland Group C compiler
10256 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'
10257 tmp_addflag=' $pic_flag'
10259 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
10260 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'
10261 tmp_addflag=' $pic_flag -Mnomain' ;;
10262 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10263 tmp_addflag=' -i_dynamic' ;;
10264 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10265 tmp_addflag=' -i_dynamic -nofor_main' ;;
10266 ifc* | ifort*) # Intel Fortran compiler
10267 tmp_addflag=' -nofor_main' ;;
10268 lf95*) # Lahey Fortran 8.1
10269 whole_archive_flag_spec=
10270 tmp_sharedflag='--shared' ;;
10271 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10272 tmp_sharedflag='-qmkshrobj'
10275 case `$CC -V 2>&1 | sed 5q` in
10276 *Sun\ C*) # Sun C 5.9
10277 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'
10278 compiler_needs_object=yes
10279 tmp_sharedflag='-G' ;;
10280 *Sun\ F*) # Sun Fortran 8.3
10281 tmp_sharedflag='-G' ;;
10283 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10285 if test "x$supports_anon_versioning" = xyes; then
10286 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10287 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10288 echo "local: *; };" >> $output_objdir/$libname.ver~
10289 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10292 case $cc_basename in
10294 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10295 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10296 hardcode_libdir_flag_spec=
10297 hardcode_libdir_flag_spec_ld='-rpath $libdir'
10298 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
10299 if test "x$supports_anon_versioning" = xyes; then
10300 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10301 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10302 echo "local: *; };" >> $output_objdir/$libname.ver~
10303 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10313 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10314 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10317 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10318 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10323 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10327 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10328 *** create shared libraries on Solaris systems. Therefore, libtool
10329 *** is disabling shared libraries support. We urge you to upgrade GNU
10330 *** binutils to release 2.9.1 or newer. Another option is to modify
10331 *** your PATH or compiler configuration so that the native linker is
10332 *** used, and then restart.
10335 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10336 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10337 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10343 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10344 case `$LD -v 2>&1` in
10345 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10349 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10350 *** reliably create shared libraries on SCO systems. Therefore, libtool
10351 *** is disabling shared libraries support. We urge you to upgrade GNU
10352 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10353 *** your PATH or compiler configuration so that the native linker is
10354 *** used, and then restart.
10359 # For security reasons, it is highly recommended that you always
10360 # use absolute paths for naming shared libraries, and exclude the
10361 # DT_RUNPATH tag from executables and libraries. But doing so
10362 # requires that you compile everything twice, which is a pain.
10363 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10364 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10365 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10366 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10375 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10377 hardcode_direct=yes
10378 hardcode_shlibpath_var=no
10382 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10383 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10384 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10391 if test "$ld_shlibs" = no; then
10393 hardcode_libdir_flag_spec=
10394 export_dynamic_flag_spec=
10395 whole_archive_flag_spec=
10398 # PORTME fill in a description of your system's linker (not GNU ld)
10401 allow_undefined_flag=unsupported
10402 always_export_symbols=yes
10403 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'
10404 # Note: this linker hardcodes the directories in LIBPATH if there
10405 # are no directories specified by -L.
10406 hardcode_minus_L=yes
10407 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10408 # Neither direct hardcoding nor static linking is supported with a
10410 hardcode_direct=unsupported
10415 if test "$host_cpu" = ia64; then
10416 # On IA64, the linker does run time linking by default, so we don't
10417 # have to do anything special.
10418 aix_use_runtimelinking=no
10419 exp_sym_flag='-Bexport'
10422 # If we're using GNU nm, then we don't want the "-C" option.
10423 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10424 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10425 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'
10427 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'
10429 aix_use_runtimelinking=no
10431 # Test if we are trying to use run time linking or normal
10432 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10433 # need to do runtime linking.
10434 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10435 for ld_flag in $LDFLAGS; do
10436 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10437 aix_use_runtimelinking=yes
10444 exp_sym_flag='-bexport'
10445 no_entry_flag='-bnoentry'
10448 # When large executables or shared objects are built, AIX ld can
10449 # have problems creating the table of contents. If linking a library
10450 # or program results in "error TOC overflow" add -mminimal-toc to
10451 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10452 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10455 hardcode_direct=yes
10456 hardcode_direct_absolute=yes
10457 hardcode_libdir_separator=':'
10458 link_all_deplibs=yes
10459 file_list_spec='${wl}-f,'
10461 if test "$GCC" = yes; then
10462 case $host_os in aix4.[012]|aix4.[012].*)
10463 # We only want to do this on AIX 4.2 and lower, the check
10464 # below for broken collect2 doesn't work under 4.3+
10465 collect2name=`${CC} -print-prog-name=collect2`
10466 if test -f "$collect2name" &&
10467 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10469 # We have reworked collect2
10472 # We have old collect2
10473 hardcode_direct=unsupported
10474 # It fails to find uninstalled libraries when the uninstalled
10475 # path is not listed in the libpath. Setting hardcode_minus_L
10476 # to unsupported forces relinking
10477 hardcode_minus_L=yes
10478 hardcode_libdir_flag_spec='-L$libdir'
10479 hardcode_libdir_separator=
10483 shared_flag='-shared'
10484 if test "$aix_use_runtimelinking" = yes; then
10485 shared_flag="$shared_flag "'${wl}-G'
10489 if test "$host_cpu" = ia64; then
10490 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10491 # chokes on -Wl,-G. The following line is correct:
10494 if test "$aix_use_runtimelinking" = yes; then
10495 shared_flag='${wl}-G'
10497 shared_flag='${wl}-bM:SRE'
10502 export_dynamic_flag_spec='${wl}-bexpall'
10503 # It seems that -bexpall does not export symbols beginning with
10504 # underscore (_), so it is better to generate a list of symbols to export.
10505 always_export_symbols=yes
10506 if test "$aix_use_runtimelinking" = yes; then
10507 # Warning - without using the other runtime loading flags (-brtl),
10508 # -berok will link without error, but may produce a broken library.
10509 allow_undefined_flag='-berok'
10510 # Determine the default libpath from the value encoded in an
10511 # empty executable.
10512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10513 /* end confdefs.h. */
10523 if ac_fn_c_try_link "$LINENO"; then :
10525 lt_aix_libpath_sed='
10526 /Import File Strings/,/^$/ {
10532 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10533 # Check for a 64-bit object if we didn't find anything.
10534 if test -z "$aix_libpath"; then
10535 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10538 rm -f core conftest.err conftest.$ac_objext \
10539 conftest$ac_exeext conftest.$ac_ext
10540 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10542 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10543 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"
10545 if test "$host_cpu" = ia64; then
10546 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10547 allow_undefined_flag="-z nodefs"
10548 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"
10550 # Determine the default libpath from the value encoded in an
10551 # empty executable.
10552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10553 /* end confdefs.h. */
10563 if ac_fn_c_try_link "$LINENO"; then :
10565 lt_aix_libpath_sed='
10566 /Import File Strings/,/^$/ {
10572 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10573 # Check for a 64-bit object if we didn't find anything.
10574 if test -z "$aix_libpath"; then
10575 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10578 rm -f core conftest.err conftest.$ac_objext \
10579 conftest$ac_exeext conftest.$ac_ext
10580 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10582 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10583 # Warning - without using the other run time loading flags,
10584 # -berok will link without error, but may produce a broken library.
10585 no_undefined_flag=' ${wl}-bernotok'
10586 allow_undefined_flag=' ${wl}-berok'
10587 # Exported symbols can be pulled into shared objects from archives
10588 whole_archive_flag_spec='$convenience'
10589 archive_cmds_need_lc=yes
10590 # This is similar to how AIX traditionally builds its shared libraries.
10591 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'
10599 # see comment about AmigaOS4 .so support
10600 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10601 archive_expsym_cmds=''
10604 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)'
10605 hardcode_libdir_flag_spec='-L$libdir'
10606 hardcode_minus_L=yes
10612 export_dynamic_flag_spec=-rdynamic
10615 cygwin* | mingw* | pw32* | cegcc*)
10616 # When not using gcc, we currently assume that we are using
10617 # Microsoft Visual C++.
10618 # hardcode_libdir_flag_spec is actually meaningless, as there is
10619 # no search path for DLLs.
10620 hardcode_libdir_flag_spec=' '
10621 allow_undefined_flag=unsupported
10622 # Tell ltmain to make .lib files, not .a files.
10624 # Tell ltmain to make .dll files, not .so files.
10626 # FIXME: Setting linknames here is a bad hack.
10627 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
10628 # The linker will automatically build a .lib file if we build a DLL.
10629 old_archive_from_new_cmds='true'
10630 # FIXME: Should let the user specify the lib program.
10631 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10632 fix_srcfile_path='`cygpath -w "$srcfile"`'
10633 enable_shared_with_static_runtimes=yes
10636 darwin* | rhapsody*)
10639 archive_cmds_need_lc=no
10641 hardcode_automatic=yes
10642 hardcode_shlibpath_var=unsupported
10643 whole_archive_flag_spec=''
10644 link_all_deplibs=yes
10645 allow_undefined_flag="$_lt_dar_allow_undefined"
10646 case $cc_basename in
10647 ifort*) _lt_dar_can_shared=yes ;;
10648 *) _lt_dar_can_shared=$GCC ;;
10650 if test "$_lt_dar_can_shared" = "yes"; then
10651 output_verbose_link_cmd=echo
10652 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10653 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10654 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}"
10655 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}"
10664 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10665 hardcode_libdir_flag_spec='-L$libdir'
10666 hardcode_shlibpath_var=no
10673 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10674 # support. Future versions do this automatically, but an explicit c++rt0.o
10675 # does not break anything, and helps significantly (at the cost of a little
10678 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10679 hardcode_libdir_flag_spec='-R$libdir'
10680 hardcode_direct=yes
10681 hardcode_shlibpath_var=no
10684 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10686 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10687 hardcode_direct=yes
10688 hardcode_minus_L=yes
10689 hardcode_shlibpath_var=no
10692 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10693 freebsd* | dragonfly*)
10694 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10695 hardcode_libdir_flag_spec='-R$libdir'
10696 hardcode_direct=yes
10697 hardcode_shlibpath_var=no
10701 if test "$GCC" = yes; then
10702 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'
10704 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'
10706 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10707 hardcode_libdir_separator=:
10708 hardcode_direct=yes
10710 # hardcode_minus_L: Not really in the search PATH,
10711 # but as the default location of the library.
10712 hardcode_minus_L=yes
10713 export_dynamic_flag_spec='${wl}-E'
10717 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10718 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10720 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10722 if test "$with_gnu_ld" = no; then
10723 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10724 hardcode_libdir_flag_spec_ld='+b $libdir'
10725 hardcode_libdir_separator=:
10726 hardcode_direct=yes
10727 hardcode_direct_absolute=yes
10728 export_dynamic_flag_spec='${wl}-E'
10729 # hardcode_minus_L: Not really in the search PATH,
10730 # but as the default location of the library.
10731 hardcode_minus_L=yes
10736 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10739 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10742 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10745 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10751 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10754 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10757 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10761 if test "$with_gnu_ld" = no; then
10762 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10763 hardcode_libdir_separator=:
10768 hardcode_shlibpath_var=no
10771 hardcode_direct=yes
10772 hardcode_direct_absolute=yes
10773 export_dynamic_flag_spec='${wl}-E'
10775 # hardcode_minus_L: Not really in the search PATH,
10776 # but as the default location of the library.
10777 hardcode_minus_L=yes
10783 irix5* | irix6* | nonstopux*)
10784 if test "$GCC" = yes; then
10785 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'
10786 # Try to use the -exported_symbol ld option, if it does not
10787 # work, assume that -exports_file does not work either and
10788 # implicitly export all symbols.
10789 save_LDFLAGS="$LDFLAGS"
10790 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10792 /* end confdefs.h. */
10795 if ac_fn_c_try_link "$LINENO"; then :
10796 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'
10799 rm -f core conftest.err conftest.$ac_objext \
10800 conftest$ac_exeext conftest.$ac_ext
10801 LDFLAGS="$save_LDFLAGS"
10803 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'
10804 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'
10806 archive_cmds_need_lc='no'
10807 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10808 hardcode_libdir_separator=:
10810 link_all_deplibs=yes
10814 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10815 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10817 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10819 hardcode_libdir_flag_spec='-R$libdir'
10820 hardcode_direct=yes
10821 hardcode_shlibpath_var=no
10825 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10826 hardcode_direct=yes
10827 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10828 hardcode_libdir_separator=:
10829 hardcode_shlibpath_var=no
10836 if test -f /usr/libexec/ld.so; then
10837 hardcode_direct=yes
10838 hardcode_shlibpath_var=no
10839 hardcode_direct_absolute=yes
10840 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10841 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10842 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10843 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10844 export_dynamic_flag_spec='${wl}-E'
10847 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10848 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10849 hardcode_libdir_flag_spec='-R$libdir'
10852 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10853 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10863 hardcode_libdir_flag_spec='-L$libdir'
10864 hardcode_minus_L=yes
10865 allow_undefined_flag=unsupported
10866 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'
10867 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10871 if test "$GCC" = yes; then
10872 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10873 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'
10875 allow_undefined_flag=' -expect_unresolved \*'
10876 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'
10878 archive_cmds_need_lc='no'
10879 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10880 hardcode_libdir_separator=:
10883 osf4* | osf5*) # as osf3* with the addition of -msym flag
10884 if test "$GCC" = yes; then
10885 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10886 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'
10887 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10889 allow_undefined_flag=' -expect_unresolved \*'
10890 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'
10891 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~
10892 $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'
10894 # Both c and cxx compiler support -rpath directly
10895 hardcode_libdir_flag_spec='-rpath $libdir'
10897 archive_cmds_need_lc='no'
10898 hardcode_libdir_separator=:
10902 no_undefined_flag=' -z defs'
10903 if test "$GCC" = yes; then
10905 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10906 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10907 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10909 case `$CC -V 2>&1` in
10912 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10913 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10914 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10918 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10919 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10920 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10924 hardcode_libdir_flag_spec='-R$libdir'
10925 hardcode_shlibpath_var=no
10927 solaris2.[0-5] | solaris2.[0-5].*) ;;
10929 # The compiler driver will combine and reorder linker options,
10930 # but understands `-z linker_flag'. GCC discards it without `$wl',
10931 # but is careful enough not to reorder.
10932 # Supported since Solaris 2.6 (maybe 2.5.1?)
10933 if test "$GCC" = yes; then
10934 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10936 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10940 link_all_deplibs=yes
10944 if test "x$host_vendor" = xsequent; then
10945 # Use $CC to link under sequent, because it throws in some extra .o
10946 # files that make .init and .fini sections work.
10947 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10949 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10951 hardcode_libdir_flag_spec='-L$libdir'
10952 hardcode_direct=yes
10953 hardcode_minus_L=yes
10954 hardcode_shlibpath_var=no
10958 case $host_vendor in
10960 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10961 hardcode_direct=yes # is this really true???
10964 ## LD is ld it makes a PLAMLIB
10965 ## CC just makes a GrossModule.
10966 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10967 reload_cmds='$CC -r -o $output$reload_objs'
10971 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10972 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10975 runpath_var='LD_RUN_PATH'
10976 hardcode_shlibpath_var=no
10980 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10981 hardcode_shlibpath_var=no
10982 export_dynamic_flag_spec='-Bexport'
10986 if test -d /usr/nec; then
10987 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10988 hardcode_shlibpath_var=no
10989 runpath_var=LD_RUN_PATH
10990 hardcode_runpath_var=yes
10995 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10996 no_undefined_flag='${wl}-z,text'
10997 archive_cmds_need_lc=no
10998 hardcode_shlibpath_var=no
10999 runpath_var='LD_RUN_PATH'
11001 if test "$GCC" = yes; then
11002 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11003 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11005 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11006 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11010 sysv5* | sco3.2v5* | sco5v6*)
11011 # Note: We can NOT use -z defs as we might desire, because we do not
11012 # link with -lc, and that would cause any symbols used from libc to
11013 # always be unresolved, which means just about no library would
11014 # ever link correctly. If we're not using GNU ld we use -z text
11015 # though, which does catch some bad symbols but isn't as heavy-handed
11017 no_undefined_flag='${wl}-z,text'
11018 allow_undefined_flag='${wl}-z,nodefs'
11019 archive_cmds_need_lc=no
11020 hardcode_shlibpath_var=no
11021 hardcode_libdir_flag_spec='${wl}-R,$libdir'
11022 hardcode_libdir_separator=':'
11023 link_all_deplibs=yes
11024 export_dynamic_flag_spec='${wl}-Bexport'
11025 runpath_var='LD_RUN_PATH'
11027 if test "$GCC" = yes; then
11028 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11029 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11031 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11032 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11037 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11038 hardcode_libdir_flag_spec='-L$libdir'
11039 hardcode_shlibpath_var=no
11047 if test x$host_vendor = xsni; then
11049 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11050 export_dynamic_flag_spec='${wl}-Blargedynsym'
11056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11057 $as_echo "$ld_shlibs" >&6; }
11058 test "$ld_shlibs" = no && can_build_shared=no
11060 with_gnu_ld=$with_gnu_ld
11077 # Do we need to explicitly link libc?
11079 case "x$archive_cmds_need_lc" in
11081 # Assume -lc should be added
11082 archive_cmds_need_lc=yes
11084 if test "$enable_shared" = yes && test "$GCC" = yes; then
11085 case $archive_cmds in
11087 # FIXME: we may have to deal with multi-command sequences.
11090 # Test whether the compiler implicitly links with -lc since on some
11091 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11092 # to ld, don't add -lc before -lgcc.
11093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11094 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11096 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11098 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11099 (eval $ac_compile) 2>&5
11101 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11102 test $ac_status = 0; } 2>conftest.err; then
11105 libobjs=conftest.$ac_objext
11107 wl=$lt_prog_compiler_wl
11108 pic_flag=$lt_prog_compiler_pic
11114 lt_save_allow_undefined_flag=$allow_undefined_flag
11115 allow_undefined_flag=
11116 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11117 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11119 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11120 test $ac_status = 0; }
11122 archive_cmds_need_lc=no
11124 archive_cmds_need_lc=yes
11126 allow_undefined_flag=$lt_save_allow_undefined_flag
11128 cat conftest.err 1>&5
11131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
11132 $as_echo "$archive_cmds_need_lc" >&6; }
11295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11296 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11298 if test "$GCC" = yes; then
11300 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11301 *) lt_awk_arg="/^libraries:/" ;;
11303 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11304 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
11305 # if the path contains ";" then we assume it to be the separator
11306 # otherwise default to the standard path separator (i.e. ":") - it is
11307 # assumed that no part of a normal pathname contains ";" but that should
11308 # okay in the real world where ";" in dirpaths is itself problematic.
11309 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
11311 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11313 # Ok, now we have the path, separated by spaces, we can step through it
11314 # and add multilib dir if necessary.
11315 lt_tmp_lt_search_path_spec=
11316 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11317 for lt_sys_path in $lt_search_path_spec; do
11318 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11319 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11321 test -d "$lt_sys_path" && \
11322 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11325 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
11326 BEGIN {RS=" "; FS="/|\n";} {
11329 for (lt_i = NF; lt_i > 0; lt_i--) {
11330 if ($lt_i != "" && $lt_i != ".") {
11331 if ($lt_i == "..") {
11334 if (lt_count == 0) {
11335 lt_foo="/" $lt_i lt_foo;
11342 if (lt_foo != "") { lt_freq[lt_foo]++; }
11343 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11345 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
11347 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11349 library_names_spec=
11350 libname_spec='lib$name'
11354 postuninstall_cmds=
11358 shlibpath_overrides_runpath=unknown
11360 dynamic_linker="$host_os ld.so"
11361 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11362 need_lib_prefix=unknown
11363 hardcode_into_libs=no
11365 # when you set need_version to no, make sure it does not cause -set_version
11366 # flags to be left without arguments
11367 need_version=unknown
11372 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11373 shlibpath_var=LIBPATH
11375 # AIX 3 has no versioning support, so we append a major version to the name.
11376 soname_spec='${libname}${release}${shared_ext}$major'
11383 hardcode_into_libs=yes
11384 if test "$host_cpu" = ia64; then
11385 # AIX 5 supports IA64
11386 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11387 shlibpath_var=LD_LIBRARY_PATH
11389 # With GCC up to 2.95.x, collect2 would create an import file
11390 # for dependence libraries. The import file would start with
11391 # the line `#! .'. This would cause the generated library to
11392 # depend on `.', always an invalid library. This was fixed in
11393 # development snapshots of GCC prior to 3.0.
11395 aix4 | aix4.[01] | aix4.[01].*)
11396 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11398 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11401 can_build_shared=no
11405 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11406 # soname into executable. Probably we can add versioning support to
11407 # collect2, so additional links can be useful in future.
11408 if test "$aix_use_runtimelinking" = yes; then
11409 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11410 # instead of lib<name>.a to let people know that these are not
11411 # typical AIX shared libraries.
11412 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11414 # We preserve .a as extension for shared libraries through AIX4.2
11415 # and later when we are not doing run time linking.
11416 library_names_spec='${libname}${release}.a $libname.a'
11417 soname_spec='${libname}${release}${shared_ext}$major'
11419 shlibpath_var=LIBPATH
11426 # Since July 2007 AmigaOS4 officially supports .so libraries.
11427 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11428 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11431 library_names_spec='$libname.ixlibrary $libname.a'
11432 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11433 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'
11439 library_names_spec='${libname}${shared_ext}'
11440 dynamic_linker="$host_os ld.so"
11441 shlibpath_var=LIBRARY_PATH
11447 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11448 soname_spec='${libname}${release}${shared_ext}$major'
11449 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11450 shlibpath_var=LD_LIBRARY_PATH
11451 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11452 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11453 # the default ld.so.conf also contains /usr/contrib/lib and
11454 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11455 # libtool to hard-code these into programs
11458 cygwin* | mingw* | pw32* | cegcc*)
11459 version_type=windows
11464 case $GCC,$host_os in
11465 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11466 library_names_spec='$libname.dll.a'
11467 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11468 postinstall_cmds='base_file=`basename \${file}`~
11469 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11470 dldir=$destdir/`dirname \$dlpath`~
11471 test -d \$dldir || mkdir -p \$dldir~
11472 $install_prog $dir/$dlname \$dldir/$dlname~
11473 chmod a+x \$dldir/$dlname~
11474 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11475 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11477 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11478 dlpath=$dir/\$dldll~
11480 shlibpath_overrides_runpath=yes
11484 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11485 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11486 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11489 # MinGW DLLs use traditional 'lib' prefix
11490 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11491 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11492 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11493 # It is most probably a Windows format PATH printed by
11494 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11495 # path with ; separators, and with drive letters. We can handle the
11496 # drive letters (cygwin fileutils understands them), so leave them,
11497 # especially as we might pass files found there to a mingw objdump,
11498 # which wouldn't understand a cygwinified path. Ahh.
11499 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11501 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11505 # pw32 DLLs use 'pw' prefix rather than 'lib'
11506 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11512 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11515 dynamic_linker='Win32 ld.exe'
11516 # FIXME: first we should search . and the directory the executable is in
11520 darwin* | rhapsody*)
11521 dynamic_linker="$host_os dyld"
11522 version_type=darwin
11525 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11526 soname_spec='${libname}${release}${major}$shared_ext'
11527 shlibpath_overrides_runpath=yes
11528 shlibpath_var=DYLD_LIBRARY_PATH
11529 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11531 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11532 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11539 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11540 soname_spec='${libname}${release}${shared_ext}$major'
11541 shlibpath_var=LD_LIBRARY_PATH
11548 freebsd* | dragonfly*)
11549 # DragonFly does not have aout. When/if they implement a new
11550 # versioning mechanism, adjust this.
11551 if test -x /usr/bin/objformat; then
11552 objformat=`/usr/bin/objformat`
11555 freebsd[123]*) objformat=aout ;;
11556 *) objformat=elf ;;
11559 version_type=freebsd-$objformat
11560 case $version_type in
11562 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11567 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11571 shlibpath_var=LD_LIBRARY_PATH
11574 shlibpath_overrides_runpath=yes
11576 freebsd3.[01]* | freebsdelf3.[01]*)
11577 shlibpath_overrides_runpath=yes
11578 hardcode_into_libs=yes
11580 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11581 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11582 shlibpath_overrides_runpath=no
11583 hardcode_into_libs=yes
11585 *) # from 4.6 on, and DragonFly
11586 shlibpath_overrides_runpath=yes
11587 hardcode_into_libs=yes
11596 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11597 soname_spec='${libname}${release}${shared_ext}$major'
11598 shlibpath_var=LD_LIBRARY_PATH
11599 hardcode_into_libs=yes
11602 hpux9* | hpux10* | hpux11*)
11603 # Give a soname corresponding to the major version so that dld.sl refuses to
11604 # link against other versions.
11611 hardcode_into_libs=yes
11612 dynamic_linker="$host_os dld.so"
11613 shlibpath_var=LD_LIBRARY_PATH
11614 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11615 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11616 soname_spec='${libname}${release}${shared_ext}$major'
11617 if test "X$HPUX_IA64_MODE" = X32; then
11618 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11620 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11622 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11626 hardcode_into_libs=yes
11627 dynamic_linker="$host_os dld.sl"
11628 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11629 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11630 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11631 soname_spec='${libname}${release}${shared_ext}$major'
11632 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11633 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11637 dynamic_linker="$host_os dld.sl"
11638 shlibpath_var=SHLIB_PATH
11639 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11640 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11641 soname_spec='${libname}${release}${shared_ext}$major'
11644 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11645 postinstall_cmds='chmod 555 $lib'
11652 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11653 soname_spec='${libname}${release}${shared_ext}$major'
11654 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11655 shlibpath_var=LD_LIBRARY_PATH
11656 shlibpath_overrides_runpath=no
11657 hardcode_into_libs=yes
11660 irix5* | irix6* | nonstopux*)
11662 nonstopux*) version_type=nonstopux ;;
11664 if test "$lt_cv_prog_gnu_ld" = yes; then
11672 soname_spec='${libname}${release}${shared_ext}$major'
11673 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11675 irix5* | nonstopux*)
11676 libsuff= shlibsuff=
11679 case $LD in # libtool.m4 will add one of these switches to LD
11680 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11681 libsuff= shlibsuff= libmagic=32-bit;;
11682 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11683 libsuff=32 shlibsuff=N32 libmagic=N32;;
11684 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11685 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11686 *) libsuff= shlibsuff= libmagic=never-match;;
11690 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11691 shlibpath_overrides_runpath=no
11692 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11693 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11694 hardcode_into_libs=yes
11697 # No shared lib support for Linux oldld, aout, or coff.
11698 linux*oldld* | linux*aout* | linux*coff*)
11702 # This must be Linux ELF.
11703 linux* | k*bsd*-gnu)
11707 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11708 soname_spec='${libname}${release}${shared_ext}$major'
11709 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11710 shlibpath_var=LD_LIBRARY_PATH
11711 shlibpath_overrides_runpath=no
11712 # Some binutils ld are patched to set DT_RUNPATH
11713 save_LDFLAGS=$LDFLAGS
11714 save_libdir=$libdir
11715 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11716 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11718 /* end confdefs.h. */
11728 if ac_fn_c_try_link "$LINENO"; then :
11729 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11730 shlibpath_overrides_runpath=yes
11733 rm -f core conftest.err conftest.$ac_objext \
11734 conftest$ac_exeext conftest.$ac_ext
11735 LDFLAGS=$save_LDFLAGS
11736 libdir=$save_libdir
11738 # This implies no fast_install, which is unacceptable.
11739 # Some rework will be needed to allow for fast_install
11740 # before this can be enabled.
11741 hardcode_into_libs=yes
11743 # Append ld.so.conf contents to the search path
11744 if test -f /etc/ld.so.conf; then
11745 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' ' '`
11746 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11749 # We used to test for /lib/ld.so.1 and disable shared libraries on
11750 # powerpc, because MkLinux only supported shared libraries with the
11751 # GNU dynamic linker. Since this was broken with cross compilers,
11752 # most powerpc-linux boxes support dynamic linking these days and
11753 # people can always --disable-shared, the test was removed, and we
11754 # assume the GNU/Linux dynamic linker is in use.
11755 dynamic_linker='GNU/Linux ld.so'
11762 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11763 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11764 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11765 dynamic_linker='NetBSD (a.out) ld.so'
11767 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11768 soname_spec='${libname}${release}${shared_ext}$major'
11769 dynamic_linker='NetBSD ld.elf_so'
11771 shlibpath_var=LD_LIBRARY_PATH
11772 shlibpath_overrides_runpath=yes
11773 hardcode_into_libs=yes
11778 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11779 shlibpath_var=LD_LIBRARY_PATH
11780 shlibpath_overrides_runpath=yes
11787 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11788 soname_spec='${libname}${release}${shared_ext}$major'
11789 shlibpath_var=LD_LIBRARY_PATH
11790 shlibpath_overrides_runpath=no
11791 hardcode_into_libs=yes
11792 dynamic_linker='ldqnx.so'
11797 sys_lib_dlsearch_path_spec="/usr/lib"
11799 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11801 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11802 *) need_version=no ;;
11804 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11805 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11806 shlibpath_var=LD_LIBRARY_PATH
11807 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11809 openbsd2.[89] | openbsd2.[89].*)
11810 shlibpath_overrides_runpath=no
11813 shlibpath_overrides_runpath=yes
11817 shlibpath_overrides_runpath=yes
11822 libname_spec='$name'
11825 library_names_spec='$libname${shared_ext} $libname.a'
11826 dynamic_linker='OS/2 ld.exe'
11827 shlibpath_var=LIBPATH
11830 osf3* | osf4* | osf5*)
11834 soname_spec='${libname}${release}${shared_ext}$major'
11835 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11836 shlibpath_var=LD_LIBRARY_PATH
11837 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11838 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11849 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11850 soname_spec='${libname}${release}${shared_ext}$major'
11851 shlibpath_var=LD_LIBRARY_PATH
11852 shlibpath_overrides_runpath=yes
11853 hardcode_into_libs=yes
11854 # ldd complains unless libraries are executable
11855 postinstall_cmds='chmod +x $lib'
11860 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11861 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11862 shlibpath_var=LD_LIBRARY_PATH
11863 shlibpath_overrides_runpath=yes
11864 if test "$with_gnu_ld" = yes; then
11872 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11873 soname_spec='${libname}${release}${shared_ext}$major'
11874 shlibpath_var=LD_LIBRARY_PATH
11875 case $host_vendor in
11877 shlibpath_overrides_runpath=no
11879 runpath_var=LD_RUN_PATH
11887 shlibpath_overrides_runpath=no
11888 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11894 if test -d /usr/nec ;then
11896 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11897 soname_spec='$libname${shared_ext}.$major'
11898 shlibpath_var=LD_LIBRARY_PATH
11902 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11903 version_type=freebsd-elf
11906 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11907 soname_spec='${libname}${release}${shared_ext}$major'
11908 shlibpath_var=LD_LIBRARY_PATH
11909 shlibpath_overrides_runpath=yes
11910 hardcode_into_libs=yes
11911 if test "$with_gnu_ld" = yes; then
11912 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11914 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11917 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11921 sys_lib_dlsearch_path_spec='/usr/lib'
11925 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11929 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11930 shlibpath_var=LD_LIBRARY_PATH
11931 shlibpath_overrides_runpath=no
11932 hardcode_into_libs=yes
11937 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11938 soname_spec='${libname}${release}${shared_ext}$major'
11939 shlibpath_var=LD_LIBRARY_PATH
11946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11947 $as_echo "$dynamic_linker" >&6; }
11948 test "$dynamic_linker" = no && can_build_shared=no
11950 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11951 if test "$GCC" = yes; then
11952 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11955 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11956 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11958 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11959 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12049 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12051 if test -n "$hardcode_libdir_flag_spec" ||
12052 test -n "$runpath_var" ||
12053 test "X$hardcode_automatic" = "Xyes" ; then
12055 # We can hardcode non-existent directories.
12056 if test "$hardcode_direct" != no &&
12057 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12058 # have to relink, otherwise we might link with an installed library
12059 # when we should be linking with a yet-to-be-installed one
12060 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12061 test "$hardcode_minus_L" != no; then
12062 # Linking always hardcodes the temporary library directory.
12063 hardcode_action=relink
12065 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12066 hardcode_action=immediate
12069 # We cannot hardcode anything, or else we can only hardcode existing
12071 hardcode_action=unsupported
12073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12074 $as_echo "$hardcode_action" >&6; }
12076 if test "$hardcode_action" = relink ||
12077 test "$inherit_rpath" = yes; then
12078 # Fast installation is not supported
12079 enable_fast_install=no
12080 elif test "$shlibpath_overrides_runpath" = yes ||
12081 test "$enable_shared" = no; then
12082 # Fast installation is not necessary
12083 enable_fast_install=needless
12091 if test "x$enable_dlopen" != xyes; then
12092 enable_dlopen=unknown
12093 enable_dlopen_self=unknown
12094 enable_dlopen_self_static=unknown
12101 lt_cv_dlopen="load_add_on"
12103 lt_cv_dlopen_self=yes
12106 mingw* | pw32* | cegcc*)
12107 lt_cv_dlopen="LoadLibrary"
12112 lt_cv_dlopen="dlopen"
12117 # if libdl is installed we need to link against it
12118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12119 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12120 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
12121 $as_echo_n "(cached) " >&6
12123 ac_check_lib_save_LIBS=$LIBS
12125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12126 /* end confdefs.h. */
12128 /* Override any GCC internal prototype to avoid an error.
12129 Use char because int might match the return type of a GCC
12130 builtin and then its argument prototype would still apply. */
12143 if ac_fn_c_try_link "$LINENO"; then :
12144 ac_cv_lib_dl_dlopen=yes
12146 ac_cv_lib_dl_dlopen=no
12148 rm -f core conftest.err conftest.$ac_objext \
12149 conftest$ac_exeext conftest.$ac_ext
12150 LIBS=$ac_check_lib_save_LIBS
12152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12153 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12154 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
12155 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12158 lt_cv_dlopen="dyld"
12160 lt_cv_dlopen_self=yes
12167 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12168 if test "x$ac_cv_func_shl_load" = x""yes; then :
12169 lt_cv_dlopen="shl_load"
12171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12172 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12173 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
12174 $as_echo_n "(cached) " >&6
12176 ac_check_lib_save_LIBS=$LIBS
12178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12179 /* end confdefs.h. */
12181 /* Override any GCC internal prototype to avoid an error.
12182 Use char because int might match the return type of a GCC
12183 builtin and then its argument prototype would still apply. */
12191 return shl_load ();
12196 if ac_fn_c_try_link "$LINENO"; then :
12197 ac_cv_lib_dld_shl_load=yes
12199 ac_cv_lib_dld_shl_load=no
12201 rm -f core conftest.err conftest.$ac_objext \
12202 conftest$ac_exeext conftest.$ac_ext
12203 LIBS=$ac_check_lib_save_LIBS
12205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12206 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12207 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
12208 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12210 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12211 if test "x$ac_cv_func_dlopen" = x""yes; then :
12212 lt_cv_dlopen="dlopen"
12214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12215 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12216 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
12217 $as_echo_n "(cached) " >&6
12219 ac_check_lib_save_LIBS=$LIBS
12221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12222 /* end confdefs.h. */
12224 /* Override any GCC internal prototype to avoid an error.
12225 Use char because int might match the return type of a GCC
12226 builtin and then its argument prototype would still apply. */
12239 if ac_fn_c_try_link "$LINENO"; then :
12240 ac_cv_lib_dl_dlopen=yes
12242 ac_cv_lib_dl_dlopen=no
12244 rm -f core conftest.err conftest.$ac_objext \
12245 conftest$ac_exeext conftest.$ac_ext
12246 LIBS=$ac_check_lib_save_LIBS
12248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12249 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12250 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
12251 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12254 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12255 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
12256 $as_echo_n "(cached) " >&6
12258 ac_check_lib_save_LIBS=$LIBS
12259 LIBS="-lsvld $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_svld_dlopen=yes
12281 ac_cv_lib_svld_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_svld_dlopen" >&5
12288 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12289 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
12290 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12293 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12294 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
12295 $as_echo_n "(cached) " >&6
12297 ac_check_lib_save_LIBS=$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. */
12312 return dld_link ();
12317 if ac_fn_c_try_link "$LINENO"; then :
12318 ac_cv_lib_dld_dld_link=yes
12320 ac_cv_lib_dld_dld_link=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_dld_dld_link" >&5
12327 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12328 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
12329 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12350 if test "x$lt_cv_dlopen" != xno; then
12356 case $lt_cv_dlopen in
12358 save_CPPFLAGS="$CPPFLAGS"
12359 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12361 save_LDFLAGS="$LDFLAGS"
12362 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12365 LIBS="$lt_cv_dlopen_libs $LIBS"
12367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12368 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12369 if test "${lt_cv_dlopen_self+set}" = set; then :
12370 $as_echo_n "(cached) " >&6
12372 if test "$cross_compiling" = yes; then :
12373 lt_cv_dlopen_self=cross
12375 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12376 lt_status=$lt_dlunknown
12377 cat > conftest.$ac_ext <<_LT_EOF
12378 #line 12378 "configure"
12379 #include "confdefs.h"
12388 # define LT_DLGLOBAL RTLD_GLOBAL
12391 # define LT_DLGLOBAL DL_GLOBAL
12393 # define LT_DLGLOBAL 0
12397 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12398 find out it does not work in some platform. */
12399 #ifndef LT_DLLAZY_OR_NOW
12401 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12404 # define LT_DLLAZY_OR_NOW DL_LAZY
12407 # define LT_DLLAZY_OR_NOW RTLD_NOW
12410 # define LT_DLLAZY_OR_NOW DL_NOW
12412 # define LT_DLLAZY_OR_NOW 0
12419 void fnord() { int i=42;}
12422 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12423 int status = $lt_dlunknown;
12427 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12428 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12429 /* dlclose (self); */
12437 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12438 (eval $ac_link) 2>&5
12440 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12441 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12442 (./conftest; exit; ) >&5 2>/dev/null
12444 case x$lt_status in
12445 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12446 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12447 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12450 # compilation failed
12451 lt_cv_dlopen_self=no
12458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12459 $as_echo "$lt_cv_dlopen_self" >&6; }
12461 if test "x$lt_cv_dlopen_self" = xyes; then
12462 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12464 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12465 if test "${lt_cv_dlopen_self_static+set}" = set; then :
12466 $as_echo_n "(cached) " >&6
12468 if test "$cross_compiling" = yes; then :
12469 lt_cv_dlopen_self_static=cross
12471 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12472 lt_status=$lt_dlunknown
12473 cat > conftest.$ac_ext <<_LT_EOF
12474 #line 12474 "configure"
12475 #include "confdefs.h"
12484 # define LT_DLGLOBAL RTLD_GLOBAL
12487 # define LT_DLGLOBAL DL_GLOBAL
12489 # define LT_DLGLOBAL 0
12493 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12494 find out it does not work in some platform. */
12495 #ifndef LT_DLLAZY_OR_NOW
12497 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12500 # define LT_DLLAZY_OR_NOW DL_LAZY
12503 # define LT_DLLAZY_OR_NOW RTLD_NOW
12506 # define LT_DLLAZY_OR_NOW DL_NOW
12508 # define LT_DLLAZY_OR_NOW 0
12515 void fnord() { int i=42;}
12518 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12519 int status = $lt_dlunknown;
12523 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12524 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12525 /* dlclose (self); */
12533 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12534 (eval $ac_link) 2>&5
12536 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12537 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12538 (./conftest; exit; ) >&5 2>/dev/null
12540 case x$lt_status in
12541 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12542 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12543 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12546 # compilation failed
12547 lt_cv_dlopen_self_static=no
12554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12555 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12558 CPPFLAGS="$save_CPPFLAGS"
12559 LDFLAGS="$save_LDFLAGS"
12564 case $lt_cv_dlopen_self in
12565 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12566 *) enable_dlopen_self=unknown ;;
12569 case $lt_cv_dlopen_self_static in
12570 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12571 *) enable_dlopen_self_static=unknown ;;
12593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12594 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12595 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12596 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12597 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12599 $as_echo "yes" >&6; }
12601 # FIXME - insert some real tests, host_os isn't really good enough
12604 if test -n "$STRIP" ; then
12605 striplib="$STRIP -x"
12606 old_striplib="$STRIP -S"
12607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12608 $as_echo "yes" >&6; }
12610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12611 $as_echo "no" >&6; }
12615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12616 $as_echo "no" >&6; }
12632 # Report which library types will actually be built
12633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12634 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12636 $as_echo "$can_build_shared" >&6; }
12638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12639 $as_echo_n "checking whether to build shared libraries... " >&6; }
12640 test "$can_build_shared" = "no" && enable_shared=no
12642 # On AIX, shared libraries and static libraries use the same namespace, and
12643 # are all built from PIC.
12646 test "$enable_shared" = yes && enable_static=no
12647 if test -n "$RANLIB"; then
12648 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12649 postinstall_cmds='$RANLIB $lib'
12654 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12655 test "$enable_shared" = yes && enable_static=no
12659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12660 $as_echo "$enable_shared" >&6; }
12662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12663 $as_echo_n "checking whether to build static libraries... " >&6; }
12664 # Make sure either enable_shared or enable_static is yes.
12665 test "$enable_shared" = yes || enable_static=yes
12666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12667 $as_echo "$enable_static" >&6; }
12674 ac_cpp='$CPP $CPPFLAGS'
12675 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12676 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12677 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12683 ac_cpp='$CXXCPP $CPPFLAGS'
12684 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12685 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12686 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12688 archive_cmds_need_lc_CXX=no
12689 allow_undefined_flag_CXX=
12690 always_export_symbols_CXX=no
12691 archive_expsym_cmds_CXX=
12692 compiler_needs_object_CXX=no
12693 export_dynamic_flag_spec_CXX=
12694 hardcode_direct_CXX=no
12695 hardcode_direct_absolute_CXX=no
12696 hardcode_libdir_flag_spec_CXX=
12697 hardcode_libdir_flag_spec_ld_CXX=
12698 hardcode_libdir_separator_CXX=
12699 hardcode_minus_L_CXX=no
12700 hardcode_shlibpath_var_CXX=unsupported
12701 hardcode_automatic_CXX=no
12702 inherit_rpath_CXX=no
12704 module_expsym_cmds_CXX=
12705 link_all_deplibs_CXX=unknown
12706 old_archive_cmds_CXX=$old_archive_cmds
12707 no_undefined_flag_CXX=
12708 whole_archive_flag_spec_CXX=
12709 enable_shared_with_static_runtimes_CXX=no
12711 # Source file extension for C++ test sources.
12714 # Object file extension for compiled C++ test sources.
12718 # No sense in running all these tests if we already determined that
12719 # the CXX compiler isn't working. Some variables (like enable_shared)
12720 # are currently assumed to apply to all compilers on this platform,
12721 # and will be corrupted by setting them based on a non-working compiler.
12722 if test "$_lt_caught_CXX_error" != yes; then
12723 # Code to be used in simple compile tests
12724 lt_simple_compile_test_code="int some_variable = 0;"
12726 # Code to be used in simple link tests
12727 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12729 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12736 # If no C compiler was specified, use CC.
12739 # If no C compiler flags were specified, use CFLAGS.
12740 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12742 # Allow CC to be a program name with arguments.
12746 # save warnings/boilerplate of simple test code
12747 ac_outfile=conftest.$ac_objext
12748 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12749 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12750 _lt_compiler_boilerplate=`cat conftest.err`
12753 ac_outfile=conftest.$ac_objext
12754 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12755 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12756 _lt_linker_boilerplate=`cat conftest.err`
12760 # Allow CC to be a program name with arguments.
12765 lt_save_with_gnu_ld=$with_gnu_ld
12766 lt_save_path_LD=$lt_cv_path_LD
12767 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12768 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12770 $as_unset lt_cv_prog_gnu_ld
12772 if test -n "${lt_cv_path_LDCXX+set}"; then
12773 lt_cv_path_LD=$lt_cv_path_LDCXX
12775 $as_unset lt_cv_path_LD
12777 test -z "${LDCXX+set}" || LD=$LDCXX
12781 for cc_temp in $compiler""; do
12783 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12784 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12789 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12792 if test -n "$compiler"; then
12793 # We don't want -fno-exception when compiling C++ code, so set the
12794 # no_builtin_flag separately
12795 if test "$GXX" = yes; then
12796 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12798 lt_prog_compiler_no_builtin_flag_CXX=
12801 if test "$GXX" = yes; then
12802 # Set up default GNU C++ configuration
12806 # Check whether --with-gnu-ld was given.
12807 if test "${with_gnu_ld+set}" = set; then :
12808 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12814 if test "$GCC" = yes; then
12815 # Check if gcc -print-prog-name=ld gives a path.
12816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12817 $as_echo_n "checking for ld used by $CC... " >&6; }
12820 # gcc leaves a trailing carriage return which upsets mingw
12821 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12823 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12826 # Accept absolute paths.
12828 re_direlt='/[^/][^/]*/\.\./'
12829 # Canonicalize the pathname of ld
12830 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12831 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12832 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12834 test -z "$LD" && LD="$ac_prog"
12837 # If it fails, then pretend we aren't using GCC.
12841 # If it is relative, then search for the first ld in PATH.
12842 with_gnu_ld=unknown
12845 elif test "$with_gnu_ld" = yes; then
12846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12847 $as_echo_n "checking for GNU ld... " >&6; }
12849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12850 $as_echo_n "checking for non-GNU ld... " >&6; }
12852 if test "${lt_cv_path_LD+set}" = set; then :
12853 $as_echo_n "(cached) " >&6
12855 if test -z "$LD"; then
12856 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12857 for ac_dir in $PATH; do
12859 test -z "$ac_dir" && ac_dir=.
12860 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12861 lt_cv_path_LD="$ac_dir/$ac_prog"
12862 # Check to see if the program is GNU ld. I'd rather use --version,
12863 # but apparently some variants of GNU ld only accept -v.
12864 # Break only if it was the GNU/non-GNU ld that we prefer.
12865 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12866 *GNU* | *'with BFD'*)
12867 test "$with_gnu_ld" != no && break
12870 test "$with_gnu_ld" != yes && break
12877 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12881 LD="$lt_cv_path_LD"
12882 if test -n "$LD"; then
12883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12884 $as_echo "$LD" >&6; }
12886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12887 $as_echo "no" >&6; }
12889 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
12890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12891 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12892 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12893 $as_echo_n "(cached) " >&6
12895 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12896 case `$LD -v 2>&1 </dev/null` in
12897 *GNU* | *'with BFD'*)
12898 lt_cv_prog_gnu_ld=yes
12901 lt_cv_prog_gnu_ld=no
12905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12906 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12907 with_gnu_ld=$lt_cv_prog_gnu_ld
12915 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12916 # archiving commands below assume that GNU ld is being used.
12917 if test "$with_gnu_ld" = yes; then
12918 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12919 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'
12921 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12922 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12924 # If archive_cmds runs LD, not CC, wlarc should be empty
12925 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12926 # investigate it a little bit more. (MM)
12929 # ancient GNU ld didn't support --whole-archive et. al.
12930 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12931 $GREP 'no-whole-archive' > /dev/null; then
12932 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12934 whole_archive_flag_spec_CXX=
12940 # A generic and very simple default shared library creation
12941 # command for GNU C++ for the case where it uses the native
12942 # linker, instead of GNU ld. If possible, this setting should
12943 # overridden to take advantage of the native linker features on
12944 # the platform it is being used on.
12945 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12948 # Commands to make compiler produce verbose output that lists
12949 # what "hidden" libraries, object files and flags are used when
12950 # linking a shared library.
12951 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12959 # PORTME: fill in a description of your system's C++ link characteristics
12960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12961 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12965 # FIXME: insert proper C++ library support
12969 if test "$host_cpu" = ia64; then
12970 # On IA64, the linker does run time linking by default, so we don't
12971 # have to do anything special.
12972 aix_use_runtimelinking=no
12973 exp_sym_flag='-Bexport'
12976 aix_use_runtimelinking=no
12978 # Test if we are trying to use run time linking or normal
12979 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12980 # need to do runtime linking.
12981 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12982 for ld_flag in $LDFLAGS; do
12985 aix_use_runtimelinking=yes
12993 exp_sym_flag='-bexport'
12994 no_entry_flag='-bnoentry'
12997 # When large executables or shared objects are built, AIX ld can
12998 # have problems creating the table of contents. If linking a library
12999 # or program results in "error TOC overflow" add -mminimal-toc to
13000 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13001 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13003 archive_cmds_CXX=''
13004 hardcode_direct_CXX=yes
13005 hardcode_direct_absolute_CXX=yes
13006 hardcode_libdir_separator_CXX=':'
13007 link_all_deplibs_CXX=yes
13008 file_list_spec_CXX='${wl}-f,'
13010 if test "$GXX" = yes; then
13011 case $host_os in aix4.[012]|aix4.[012].*)
13012 # We only want to do this on AIX 4.2 and lower, the check
13013 # below for broken collect2 doesn't work under 4.3+
13014 collect2name=`${CC} -print-prog-name=collect2`
13015 if test -f "$collect2name" &&
13016 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13018 # We have reworked collect2
13021 # We have old collect2
13022 hardcode_direct_CXX=unsupported
13023 # It fails to find uninstalled libraries when the uninstalled
13024 # path is not listed in the libpath. Setting hardcode_minus_L
13025 # to unsupported forces relinking
13026 hardcode_minus_L_CXX=yes
13027 hardcode_libdir_flag_spec_CXX='-L$libdir'
13028 hardcode_libdir_separator_CXX=
13031 shared_flag='-shared'
13032 if test "$aix_use_runtimelinking" = yes; then
13033 shared_flag="$shared_flag "'${wl}-G'
13037 if test "$host_cpu" = ia64; then
13038 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13039 # chokes on -Wl,-G. The following line is correct:
13042 if test "$aix_use_runtimelinking" = yes; then
13043 shared_flag='${wl}-G'
13045 shared_flag='${wl}-bM:SRE'
13050 export_dynamic_flag_spec_CXX='${wl}-bexpall'
13051 # It seems that -bexpall does not export symbols beginning with
13052 # underscore (_), so it is better to generate a list of symbols to
13054 always_export_symbols_CXX=yes
13055 if test "$aix_use_runtimelinking" = yes; then
13056 # Warning - without using the other runtime loading flags (-brtl),
13057 # -berok will link without error, but may produce a broken library.
13058 allow_undefined_flag_CXX='-berok'
13059 # Determine the default libpath from the value encoded in an empty
13061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13062 /* end confdefs.h. */
13072 if ac_fn_cxx_try_link "$LINENO"; then :
13074 lt_aix_libpath_sed='
13075 /Import File Strings/,/^$/ {
13081 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13082 # Check for a 64-bit object if we didn't find anything.
13083 if test -z "$aix_libpath"; then
13084 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13087 rm -f core conftest.err conftest.$ac_objext \
13088 conftest$ac_exeext conftest.$ac_ext
13089 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13091 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13093 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"
13095 if test "$host_cpu" = ia64; then
13096 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13097 allow_undefined_flag_CXX="-z nodefs"
13098 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"
13100 # Determine the default libpath from the value encoded in an
13101 # empty executable.
13102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13103 /* end confdefs.h. */
13113 if ac_fn_cxx_try_link "$LINENO"; then :
13115 lt_aix_libpath_sed='
13116 /Import File Strings/,/^$/ {
13122 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13123 # Check for a 64-bit object if we didn't find anything.
13124 if test -z "$aix_libpath"; then
13125 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13128 rm -f core conftest.err conftest.$ac_objext \
13129 conftest$ac_exeext conftest.$ac_ext
13130 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13132 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13133 # Warning - without using the other run time loading flags,
13134 # -berok will link without error, but may produce a broken library.
13135 no_undefined_flag_CXX=' ${wl}-bernotok'
13136 allow_undefined_flag_CXX=' ${wl}-berok'
13137 # Exported symbols can be pulled into shared objects from archives
13138 whole_archive_flag_spec_CXX='$convenience'
13139 archive_cmds_need_lc_CXX=yes
13140 # This is similar to how AIX traditionally builds its shared
13142 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'
13148 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13149 allow_undefined_flag_CXX=unsupported
13150 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13151 # support --undefined. This deserves some investigation. FIXME
13152 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13159 case $cc_basename in
13161 # FIXME: insert proper C++ library support
13167 cygwin* | mingw* | pw32* | cegcc*)
13168 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13169 # as there is no search path for DLLs.
13170 hardcode_libdir_flag_spec_CXX='-L$libdir'
13171 allow_undefined_flag_CXX=unsupported
13172 always_export_symbols_CXX=no
13173 enable_shared_with_static_runtimes_CXX=yes
13175 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13176 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'
13177 # If the export-symbols file already is a .def file (1st line
13178 # is EXPORTS), use it as is; otherwise, prepend...
13179 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13180 cp $export_symbols $output_objdir/$soname.def;
13182 echo EXPORTS > $output_objdir/$soname.def;
13183 cat $export_symbols >> $output_objdir/$soname.def;
13185 $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'
13190 darwin* | rhapsody*)
13193 archive_cmds_need_lc_CXX=no
13194 hardcode_direct_CXX=no
13195 hardcode_automatic_CXX=yes
13196 hardcode_shlibpath_var_CXX=unsupported
13197 whole_archive_flag_spec_CXX=''
13198 link_all_deplibs_CXX=yes
13199 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13200 case $cc_basename in
13201 ifort*) _lt_dar_can_shared=yes ;;
13202 *) _lt_dar_can_shared=$GCC ;;
13204 if test "$_lt_dar_can_shared" = "yes"; then
13205 output_verbose_link_cmd=echo
13206 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}"
13207 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13208 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}"
13209 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}"
13210 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13211 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}"
13212 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}"
13222 case $cc_basename in
13224 # FIXME: insert proper C++ library support
13228 # Green Hills C++ Compiler
13229 # FIXME: insert proper C++ library support
13233 # FIXME: insert proper C++ library support
13240 # C++ shared libraries reported to be fairly broken before
13246 archive_cmds_need_lc_CXX=no
13249 freebsd* | dragonfly*)
13250 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13259 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13260 hardcode_libdir_separator_CXX=:
13261 export_dynamic_flag_spec_CXX='${wl}-E'
13262 hardcode_direct_CXX=yes
13263 hardcode_minus_L_CXX=yes # Not in the search PATH,
13264 # but as the default
13265 # location of the library.
13267 case $cc_basename in
13269 # FIXME: insert proper C++ library support
13273 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'
13274 # Commands to make compiler produce verbose output that lists
13275 # what "hidden" libraries, object files and flags are used when
13276 # linking a shared library.
13278 # There doesn't appear to be a way to prevent this compiler from
13279 # explicitly linking system object files so we need to strip them
13280 # from the output so that they don't get included in the library
13282 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'
13285 if test "$GXX" = yes; then
13286 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'
13288 # FIXME: insert proper C++ library support
13296 if test $with_gnu_ld = no; then
13297 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13298 hardcode_libdir_separator_CXX=:
13304 export_dynamic_flag_spec_CXX='${wl}-E'
13310 hardcode_direct_CXX=no
13311 hardcode_shlibpath_var_CXX=no
13314 hardcode_direct_CXX=yes
13315 hardcode_direct_absolute_CXX=yes
13316 hardcode_minus_L_CXX=yes # Not in the search PATH,
13317 # but as the default
13318 # location of the library.
13322 case $cc_basename in
13324 # FIXME: insert proper C++ library support
13330 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13333 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13336 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13339 # Commands to make compiler produce verbose output that lists
13340 # what "hidden" libraries, object files and flags are used when
13341 # linking a shared library.
13343 # There doesn't appear to be a way to prevent this compiler from
13344 # explicitly linking system object files so we need to strip them
13345 # from the output so that they don't get included in the library
13347 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'
13350 if test "$GXX" = yes; then
13351 if test $with_gnu_ld = no; then
13354 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13357 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13360 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'
13365 # FIXME: insert proper C++ library support
13373 hardcode_direct_CXX=no
13374 hardcode_shlibpath_var_CXX=no
13375 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13376 export_dynamic_flag_spec_CXX='${wl}-E'
13377 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13378 # Instead, shared libraries are loaded at an image base (0x10000000 by
13379 # default) and relocated if they conflict, which is a slow very memory
13380 # consuming and fragmenting process. To avoid this, we pick a random,
13381 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13382 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13383 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'
13384 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'
13387 case $cc_basename in
13390 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'
13392 # Archives containing C++ object files must be created using
13393 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13394 # necessary to make sure instantiated templates are included
13396 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13399 if test "$GXX" = yes; then
13400 if test "$with_gnu_ld" = no; then
13401 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'
13403 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'
13406 link_all_deplibs_CXX=yes
13409 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13410 hardcode_libdir_separator_CXX=:
13411 inherit_rpath_CXX=yes
13414 linux* | k*bsd*-gnu)
13415 case $cc_basename in
13417 # Kuck and Associates, Inc. (KAI) C++ Compiler
13419 # KCC will only create a shared library if the output file
13420 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13421 # to its proper name (with version) after linking.
13422 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'
13423 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'
13424 # Commands to make compiler produce verbose output that lists
13425 # what "hidden" libraries, object files and flags are used when
13426 # linking a shared library.
13428 # There doesn't appear to be a way to prevent this compiler from
13429 # explicitly linking system object files so we need to strip them
13430 # from the output so that they don't get included in the library
13432 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'
13434 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13435 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13437 # Archives containing C++ object files must be created using
13438 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13439 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13444 # version 8.0 and above of icpc choke on multiply defined symbols
13445 # if we add $predep_objects and $postdep_objects, however 7.1 and
13446 # earlier do not add the objects themselves.
13447 case `$CC -V 2>&1` in
13449 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13450 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'
13452 *) # Version 8.0 or newer
13455 ia64*) tmp_idyn=' -i_dynamic';;
13457 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13458 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'
13461 archive_cmds_need_lc_CXX=no
13462 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13463 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13464 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13467 # Portland Group C++ compiler
13469 *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
13470 prelink_cmds_CXX='tpldir=Template.dir~
13472 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13473 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
13474 old_archive_cmds_CXX='tpldir=Template.dir~
13476 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13477 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
13479 archive_cmds_CXX='tpldir=Template.dir~
13481 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13482 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13483 archive_expsym_cmds_CXX='tpldir=Template.dir~
13485 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13486 $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'
13488 *) # Version 6 will use weak symbols
13489 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13490 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'
13494 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13495 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13496 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'
13500 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13501 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'
13503 runpath_var=LD_RUN_PATH
13504 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13505 hardcode_libdir_separator_CXX=:
13507 # Commands to make compiler produce verbose output that lists
13508 # what "hidden" libraries, object files and flags are used when
13509 # linking a shared library.
13511 # There doesn't appear to be a way to prevent this compiler from
13512 # explicitly linking system object files so we need to strip them
13513 # from the output so that they don't get included in the library
13515 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'
13518 # IBM XL 8.0 on PPC, with GNU ld
13519 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13520 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13521 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13522 if test "x$supports_anon_versioning" = xyes; then
13523 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13524 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13525 echo "local: *; };" >> $output_objdir/$libname.ver~
13526 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13530 case `$CC -V 2>&1 | sed 5q` in
13533 no_undefined_flag_CXX=' -zdefs'
13534 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13535 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'
13536 hardcode_libdir_flag_spec_CXX='-R$libdir'
13537 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'
13538 compiler_needs_object_CXX=yes
13540 # Not sure whether something based on
13541 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13543 output_verbose_link_cmd='echo'
13545 # Archives containing C++ object files must be created using
13546 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13547 # necessary to make sure instantiated templates are included
13549 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13557 # FIXME: insert proper C++ library support
13562 # FIXME: insert proper C++ library support
13567 case $cc_basename in
13569 # FIXME: insert proper C++ library support
13573 # FIXME: insert proper C++ library support
13580 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13581 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13583 hardcode_libdir_flag_spec_CXX='-R$libdir'
13584 hardcode_direct_CXX=yes
13585 hardcode_shlibpath_var_CXX=no
13587 # Workaround some broken pre-1.5 toolchains
13588 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13596 # C++ shared libraries are fairly broken
13601 if test -f /usr/libexec/ld.so; then
13602 hardcode_direct_CXX=yes
13603 hardcode_shlibpath_var_CXX=no
13604 hardcode_direct_absolute_CXX=yes
13605 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13606 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13607 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13608 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13609 export_dynamic_flag_spec_CXX='${wl}-E'
13610 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13612 output_verbose_link_cmd=echo
13618 osf3* | osf4* | osf5*)
13619 case $cc_basename in
13621 # Kuck and Associates, Inc. (KAI) C++ Compiler
13623 # KCC will only create a shared library if the output file
13624 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13625 # to its proper name (with version) after linking.
13626 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'
13628 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13629 hardcode_libdir_separator_CXX=:
13631 # Archives containing C++ object files must be created using
13632 # the KAI C++ compiler.
13634 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13635 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13639 # Rational C++ 2.4.1
13640 # FIXME: insert proper C++ library support
13646 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13647 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'
13648 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13651 allow_undefined_flag_CXX=' -expect_unresolved \*'
13652 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'
13653 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13654 echo "-hidden">> $lib.exp~
13655 $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~
13657 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13661 hardcode_libdir_separator_CXX=:
13663 # Commands to make compiler produce verbose output that lists
13664 # what "hidden" libraries, object files and flags are used when
13665 # linking a shared library.
13667 # There doesn't appear to be a way to prevent this compiler from
13668 # explicitly linking system object files so we need to strip them
13669 # from the output so that they don't get included in the library
13671 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'
13674 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13675 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13678 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'
13681 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'
13685 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13686 hardcode_libdir_separator_CXX=:
13688 # Commands to make compiler produce verbose output that lists
13689 # what "hidden" libraries, object files and flags are used when
13690 # linking a shared library.
13691 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13694 # FIXME: insert proper C++ library support
13702 # FIXME: insert proper C++ library support
13707 case $cc_basename in
13710 # FIXME: insert proper C++ library support
13715 # FIXME: insert proper C++ library support
13719 # FIXME: insert proper C++ library support
13726 case $cc_basename in
13728 # Sun C++ 4.2, 5.x and Centerline C++
13729 archive_cmds_need_lc_CXX=yes
13730 no_undefined_flag_CXX=' -zdefs'
13731 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13732 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13733 $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'
13735 hardcode_libdir_flag_spec_CXX='-R$libdir'
13736 hardcode_shlibpath_var_CXX=no
13738 solaris2.[0-5] | solaris2.[0-5].*) ;;
13740 # The compiler driver will combine and reorder linker options,
13741 # but understands `-z linker_flag'.
13742 # Supported since Solaris 2.6 (maybe 2.5.1?)
13743 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13746 link_all_deplibs_CXX=yes
13748 output_verbose_link_cmd='echo'
13750 # Archives containing C++ object files must be created using
13751 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13752 # necessary to make sure instantiated templates are included
13754 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13757 # Green Hills C++ Compiler
13758 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13760 # The C++ compiler must be used to create the archive.
13761 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13764 # GNU C++ compiler with Solaris linker
13765 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13766 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13767 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13768 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13769 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13770 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13772 # Commands to make compiler produce verbose output that lists
13773 # what "hidden" libraries, object files and flags are used when
13774 # linking a shared library.
13775 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13777 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13779 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13780 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13781 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13783 # Commands to make compiler produce verbose output that lists
13784 # what "hidden" libraries, object files and flags are used when
13785 # linking a shared library.
13786 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13789 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13791 solaris2.[0-5] | solaris2.[0-5].*) ;;
13793 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13801 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13802 no_undefined_flag_CXX='${wl}-z,text'
13803 archive_cmds_need_lc_CXX=no
13804 hardcode_shlibpath_var_CXX=no
13805 runpath_var='LD_RUN_PATH'
13807 case $cc_basename in
13809 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13810 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13813 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13814 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13819 sysv5* | sco3.2v5* | sco5v6*)
13820 # Note: We can NOT use -z defs as we might desire, because we do not
13821 # link with -lc, and that would cause any symbols used from libc to
13822 # always be unresolved, which means just about no library would
13823 # ever link correctly. If we're not using GNU ld we use -z text
13824 # though, which does catch some bad symbols but isn't as heavy-handed
13826 no_undefined_flag_CXX='${wl}-z,text'
13827 allow_undefined_flag_CXX='${wl}-z,nodefs'
13828 archive_cmds_need_lc_CXX=no
13829 hardcode_shlibpath_var_CXX=no
13830 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13831 hardcode_libdir_separator_CXX=':'
13832 link_all_deplibs_CXX=yes
13833 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13834 runpath_var='LD_RUN_PATH'
13836 case $cc_basename in
13838 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13839 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13842 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13843 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13849 case $cc_basename in
13851 # NonStop-UX NCC 3.20
13852 # FIXME: insert proper C++ library support
13856 # FIXME: insert proper C++ library support
13863 # FIXME: insert proper C++ library support
13868 # FIXME: insert proper C++ library support
13873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13874 $as_echo "$ld_shlibs_CXX" >&6; }
13875 test "$ld_shlibs_CXX" = no && can_build_shared=no
13881 ## There is no encapsulation within the following macros, do not change
13882 ## the running order or otherwise move them around unless you know exactly
13883 ## what you are doing...
13884 # Dependencies to place before and after the object being linked:
13885 predep_objects_CXX=
13886 postdep_objects_CXX=
13889 compiler_lib_search_path_CXX=
13891 cat > conftest.$ac_ext <<_LT_EOF
13895 Foo (void) { a = 0; }
13901 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13902 (eval $ac_compile) 2>&5
13904 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13905 test $ac_status = 0; }; then
13906 # Parse the compiler output and extract the necessary
13907 # objects, libraries and library flags.
13909 # Sentinel used to keep track of whether or not we are before
13910 # the conftest object file.
13911 pre_test_object_deps_done=no
13913 for p in `eval "$output_verbose_link_cmd"`; do
13917 # Some compilers place space between "-{L,R}" and the path.
13918 # Remove the space.
13919 if test $p = "-L" ||
13920 test $p = "-R"; then
13927 if test "$pre_test_object_deps_done" = no; then
13930 # Internal compiler library paths should come after those
13931 # provided the user. The postdeps already come after the
13932 # user supplied libs so there is no need to process them.
13933 if test -z "$compiler_lib_search_path_CXX"; then
13934 compiler_lib_search_path_CXX="${prev}${p}"
13936 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13939 # The "-l" case would never come before the object being
13940 # linked, so don't bother handling this case.
13943 if test -z "$postdeps_CXX"; then
13944 postdeps_CXX="${prev}${p}"
13946 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13952 # This assumes that the test object file only shows up
13953 # once in the compiler output.
13954 if test "$p" = "conftest.$objext"; then
13955 pre_test_object_deps_done=yes
13959 if test "$pre_test_object_deps_done" = no; then
13960 if test -z "$predep_objects_CXX"; then
13961 predep_objects_CXX="$p"
13963 predep_objects_CXX="$predep_objects_CXX $p"
13966 if test -z "$postdep_objects_CXX"; then
13967 postdep_objects_CXX="$p"
13969 postdep_objects_CXX="$postdep_objects_CXX $p"
13974 *) ;; # Ignore the rest.
13982 echo "libtool.m4: error: problem compiling CXX test program"
13985 $RM -f confest.$objext
13987 # PORTME: override above test on systems where it is broken
13990 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13991 # hack all around it, let's just trust "g++" to DTRT.
13992 predep_objects_CXX=
13993 postdep_objects_CXX=
13998 case `$CC -V 2>&1 | sed 5q` in
14002 # The more standards-conforming stlport4 library is
14003 # incompatible with the Cstd library. Avoid specifying
14004 # it if it's in CXXFLAGS. Ignore libCrun as
14005 # -library=stlport4 depends on it.
14006 case " $CXX $CXXFLAGS " in
14007 *" -library=stlport4 "*)
14008 solaris_use_stlport4=yes
14012 if test "$solaris_use_stlport4" != yes; then
14013 postdeps_CXX='-library=Cstd -library=Crun'
14020 case $cc_basename in
14022 # The more standards-conforming stlport4 library is
14023 # incompatible with the Cstd library. Avoid specifying
14024 # it if it's in CXXFLAGS. Ignore libCrun as
14025 # -library=stlport4 depends on it.
14026 case " $CXX $CXXFLAGS " in
14027 *" -library=stlport4 "*)
14028 solaris_use_stlport4=yes
14032 # Adding this requires a known-good setup of shared libraries for
14033 # Sun compiler versions before 5.6, else PIC objects from an old
14034 # archive will be linked into the output, leading to subtle bugs.
14035 if test "$solaris_use_stlport4" != yes; then
14036 postdeps_CXX='-library=Cstd -library=Crun'
14044 case " $postdeps_CXX " in
14045 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14047 compiler_lib_search_dirs_CXX=
14048 if test -n "${compiler_lib_search_path_CXX}"; then
14049 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14082 lt_prog_compiler_wl_CXX=
14083 lt_prog_compiler_pic_CXX=
14084 lt_prog_compiler_static_CXX=
14086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14087 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14089 # C++ specific cases for pic, static, wl, etc.
14090 if test "$GXX" = yes; then
14091 lt_prog_compiler_wl_CXX='-Wl,'
14092 lt_prog_compiler_static_CXX='-static'
14096 # All AIX code is PIC.
14097 if test "$host_cpu" = ia64; then
14098 # AIX 5 now supports IA64 processor
14099 lt_prog_compiler_static_CXX='-Bstatic'
14106 # see comment about AmigaOS4 .so support
14107 lt_prog_compiler_pic_CXX='-fPIC'
14110 # FIXME: we need at least 68020 code to build shared libraries, but
14111 # adding the `-m68020' flag to GCC prevents building anything better,
14113 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14118 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14119 # PIC is the default for these OSes.
14121 mingw* | cygwin* | os2* | pw32* | cegcc*)
14122 # This hack is so that the source file can tell whether it is being
14123 # built for inclusion in a dll (and should export symbols for example).
14124 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14125 # (--disable-auto-import) libraries
14126 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14128 darwin* | rhapsody*)
14129 # PIC is the default on this platform
14130 # Common symbols not allowed in MH_DYLIB files
14131 lt_prog_compiler_pic_CXX='-fno-common'
14134 # DJGPP does not support shared libraries at all
14135 lt_prog_compiler_pic_CXX=
14138 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14139 # Instead, we relocate shared libraries at runtime.
14142 if test -d /usr/nec; then
14143 lt_prog_compiler_pic_CXX=-Kconform_pic
14147 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14148 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14149 # sets the default TLS model and affects inlining.
14154 lt_prog_compiler_pic_CXX='-fPIC'
14159 # QNX uses GNU C++, but need to define -shared option too, otherwise
14160 # it will coredump.
14161 lt_prog_compiler_pic_CXX='-fPIC -shared'
14164 lt_prog_compiler_pic_CXX='-fPIC'
14170 # All AIX code is PIC.
14171 if test "$host_cpu" = ia64; then
14172 # AIX 5 now supports IA64 processor
14173 lt_prog_compiler_static_CXX='-Bstatic'
14175 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14179 case $cc_basename in
14181 # Green Hills C++ Compiler
14182 # _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"
14187 case $cc_basename in
14189 lt_prog_compiler_pic_CXX='-KPIC'
14192 # Green Hills C++ Compiler
14193 lt_prog_compiler_pic_CXX='-pic'
14199 freebsd* | dragonfly*)
14200 # FreeBSD uses GNU C++
14202 hpux9* | hpux10* | hpux11*)
14203 case $cc_basename in
14205 lt_prog_compiler_wl_CXX='-Wl,'
14206 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14207 if test "$host_cpu" != ia64; then
14208 lt_prog_compiler_pic_CXX='+Z'
14212 lt_prog_compiler_wl_CXX='-Wl,'
14213 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14219 lt_prog_compiler_pic_CXX='+Z'
14228 # This is c89, which is MS Visual C++ (no shared libs)
14229 # Anyone wants to do a port?
14231 irix5* | irix6* | nonstopux*)
14232 case $cc_basename in
14234 lt_prog_compiler_wl_CXX='-Wl,'
14235 lt_prog_compiler_static_CXX='-non_shared'
14236 # CC pic flag -KPIC is the default.
14242 linux* | k*bsd*-gnu)
14243 case $cc_basename in
14246 lt_prog_compiler_wl_CXX='--backend -Wl,'
14247 lt_prog_compiler_pic_CXX='-fPIC'
14250 # old Intel C++ for x86_64 which still supported -KPIC.
14251 lt_prog_compiler_wl_CXX='-Wl,'
14252 lt_prog_compiler_pic_CXX='-KPIC'
14253 lt_prog_compiler_static_CXX='-static'
14256 # Intel C++, used to be incompatible with GCC.
14257 # ICC 10 doesn't accept -KPIC any more.
14258 lt_prog_compiler_wl_CXX='-Wl,'
14259 lt_prog_compiler_pic_CXX='-fPIC'
14260 lt_prog_compiler_static_CXX='-static'
14263 # Portland Group C++ compiler
14264 lt_prog_compiler_wl_CXX='-Wl,'
14265 lt_prog_compiler_pic_CXX='-fpic'
14266 lt_prog_compiler_static_CXX='-Bstatic'
14270 # Make sure the PIC flag is empty. It appears that all Alpha
14271 # Linux and Compaq Tru64 Unix objects are PIC.
14272 lt_prog_compiler_pic_CXX=
14273 lt_prog_compiler_static_CXX='-non_shared'
14276 # IBM XL 8.0 on PPC
14277 lt_prog_compiler_wl_CXX='-Wl,'
14278 lt_prog_compiler_pic_CXX='-qpic'
14279 lt_prog_compiler_static_CXX='-qstaticlink'
14282 case `$CC -V 2>&1 | sed 5q` in
14285 lt_prog_compiler_pic_CXX='-KPIC'
14286 lt_prog_compiler_static_CXX='-Bstatic'
14287 lt_prog_compiler_wl_CXX='-Qoption ld '
14298 case $cc_basename in
14300 lt_prog_compiler_pic_CXX='-W c,exportall'
14309 # QNX uses GNU C++, but need to define -shared option too, otherwise
14310 # it will coredump.
14311 lt_prog_compiler_pic_CXX='-fPIC -shared'
14313 osf3* | osf4* | osf5*)
14314 case $cc_basename in
14316 lt_prog_compiler_wl_CXX='--backend -Wl,'
14319 # Rational C++ 2.4.1
14320 lt_prog_compiler_pic_CXX='-pic'
14323 # Digital/Compaq C++
14324 lt_prog_compiler_wl_CXX='-Wl,'
14325 # Make sure the PIC flag is empty. It appears that all Alpha
14326 # Linux and Compaq Tru64 Unix objects are PIC.
14327 lt_prog_compiler_pic_CXX=
14328 lt_prog_compiler_static_CXX='-non_shared'
14337 case $cc_basename in
14339 # Sun C++ 4.2, 5.x and Centerline C++
14340 lt_prog_compiler_pic_CXX='-KPIC'
14341 lt_prog_compiler_static_CXX='-Bstatic'
14342 lt_prog_compiler_wl_CXX='-Qoption ld '
14345 # Green Hills C++ Compiler
14346 lt_prog_compiler_pic_CXX='-PIC'
14353 case $cc_basename in
14356 lt_prog_compiler_pic_CXX='-pic'
14357 lt_prog_compiler_static_CXX='-Bstatic'
14361 lt_prog_compiler_pic_CXX='-pic'
14367 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14368 case $cc_basename in
14370 lt_prog_compiler_wl_CXX='-Wl,'
14371 lt_prog_compiler_pic_CXX='-KPIC'
14372 lt_prog_compiler_static_CXX='-Bstatic'
14377 case $cc_basename in
14379 # NonStop-UX NCC 3.20
14380 lt_prog_compiler_pic_CXX='-KPIC'
14389 lt_prog_compiler_can_build_shared_CXX=no
14395 # For platforms which do not support PIC, -DPIC is meaningless:
14397 lt_prog_compiler_pic_CXX=
14400 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
14404 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
14409 # Check to make sure the PIC flag actually works.
14411 if test -n "$lt_prog_compiler_pic_CXX"; then
14412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14413 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14414 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
14415 $as_echo_n "(cached) " >&6
14417 lt_cv_prog_compiler_pic_works_CXX=no
14418 ac_outfile=conftest.$ac_objext
14419 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14420 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14421 # Insert the option either (1) after the last *FLAGS variable, or
14422 # (2) before a word containing "conftest.", or (3) at the end.
14423 # Note that $ac_compile itself does not contain backslashes and begins
14424 # with a dollar sign (not a hyphen), so the echo should work correctly.
14425 # The option is referenced via a variable to avoid confusing sed.
14426 lt_compile=`echo "$ac_compile" | $SED \
14427 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14428 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14429 -e 's:$: $lt_compiler_flag:'`
14430 (eval echo "\"\$as_me:14430: $lt_compile\"" >&5)
14431 (eval "$lt_compile" 2>conftest.err)
14433 cat conftest.err >&5
14434 echo "$as_me:14434: \$? = $ac_status" >&5
14435 if (exit $ac_status) && test -s "$ac_outfile"; then
14436 # The compiler can only warn and ignore the option if not recognized
14437 # So say no if there are warnings other than the usual output.
14438 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14439 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14440 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14441 lt_cv_prog_compiler_pic_works_CXX=yes
14447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14448 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14450 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14451 case $lt_prog_compiler_pic_CXX in
14453 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14456 lt_prog_compiler_pic_CXX=
14457 lt_prog_compiler_can_build_shared_CXX=no
14465 # Check to make sure the static flag actually works.
14467 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14469 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14470 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
14471 $as_echo_n "(cached) " >&6
14473 lt_cv_prog_compiler_static_works_CXX=no
14474 save_LDFLAGS="$LDFLAGS"
14475 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14476 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14477 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14478 # The linker can only warn and ignore the option if not recognized
14479 # So say no if there are warnings
14480 if test -s conftest.err; then
14481 # Append any errors to the config.log.
14482 cat conftest.err 1>&5
14483 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14484 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14485 if diff conftest.exp conftest.er2 >/dev/null; then
14486 lt_cv_prog_compiler_static_works_CXX=yes
14489 lt_cv_prog_compiler_static_works_CXX=yes
14493 LDFLAGS="$save_LDFLAGS"
14496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14497 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14499 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14502 lt_prog_compiler_static_CXX=
14508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14509 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14510 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
14511 $as_echo_n "(cached) " >&6
14513 lt_cv_prog_compiler_c_o_CXX=no
14514 $RM -r conftest 2>/dev/null
14518 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14520 lt_compiler_flag="-o out/conftest2.$ac_objext"
14521 # Insert the option either (1) after the last *FLAGS variable, or
14522 # (2) before a word containing "conftest.", or (3) at the end.
14523 # Note that $ac_compile itself does not contain backslashes and begins
14524 # with a dollar sign (not a hyphen), so the echo should work correctly.
14525 lt_compile=`echo "$ac_compile" | $SED \
14526 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14527 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14528 -e 's:$: $lt_compiler_flag:'`
14529 (eval echo "\"\$as_me:14529: $lt_compile\"" >&5)
14530 (eval "$lt_compile" 2>out/conftest.err)
14532 cat out/conftest.err >&5
14533 echo "$as_me:14533: \$? = $ac_status" >&5
14534 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14536 # The compiler can only warn and ignore the option if not recognized
14537 # So say no if there are warnings
14538 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14539 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14540 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14541 lt_cv_prog_compiler_c_o_CXX=yes
14546 # SGI C++ compiler will create directory out/ii_files/ for
14547 # template instantiation
14548 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14549 $RM out/* && rmdir out
14555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14556 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14561 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14562 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
14563 $as_echo_n "(cached) " >&6
14565 lt_cv_prog_compiler_c_o_CXX=no
14566 $RM -r conftest 2>/dev/null
14570 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14572 lt_compiler_flag="-o out/conftest2.$ac_objext"
14573 # Insert the option either (1) after the last *FLAGS variable, or
14574 # (2) before a word containing "conftest.", or (3) at the end.
14575 # Note that $ac_compile itself does not contain backslashes and begins
14576 # with a dollar sign (not a hyphen), so the echo should work correctly.
14577 lt_compile=`echo "$ac_compile" | $SED \
14578 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14579 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14580 -e 's:$: $lt_compiler_flag:'`
14581 (eval echo "\"\$as_me:14581: $lt_compile\"" >&5)
14582 (eval "$lt_compile" 2>out/conftest.err)
14584 cat out/conftest.err >&5
14585 echo "$as_me:14585: \$? = $ac_status" >&5
14586 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14588 # The compiler can only warn and ignore the option if not recognized
14589 # So say no if there are warnings
14590 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14591 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14592 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14593 lt_cv_prog_compiler_c_o_CXX=yes
14598 # SGI C++ compiler will create directory out/ii_files/ for
14599 # template instantiation
14600 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14601 $RM out/* && rmdir out
14607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14608 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14613 hard_links="nottested"
14614 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14615 # do not overwrite the value of need_locks provided by the user
14616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14617 $as_echo_n "checking if we can lock with hard links... " >&6; }
14620 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14622 ln conftest.a conftest.b 2>&5 || hard_links=no
14623 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14625 $as_echo "$hard_links" >&6; }
14626 if test "$hard_links" = no; then
14627 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14628 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14638 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14640 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14643 # If we're using GNU nm, then we don't want the "-C" option.
14644 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14645 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14646 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'
14648 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'
14652 export_symbols_cmds_CXX="$ltdll_cmds"
14654 cygwin* | mingw* | cegcc*)
14655 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'
14658 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14661 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14664 $as_echo "$ld_shlibs_CXX" >&6; }
14665 test "$ld_shlibs_CXX" = no && can_build_shared=no
14667 with_gnu_ld_CXX=$with_gnu_ld
14675 # Do we need to explicitly link libc?
14677 case "x$archive_cmds_need_lc_CXX" in
14679 # Assume -lc should be added
14680 archive_cmds_need_lc_CXX=yes
14682 if test "$enable_shared" = yes && test "$GCC" = yes; then
14683 case $archive_cmds_CXX in
14685 # FIXME: we may have to deal with multi-command sequences.
14688 # Test whether the compiler implicitly links with -lc since on some
14689 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14690 # to ld, don't add -lc before -lgcc.
14691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14692 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14694 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14696 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14697 (eval $ac_compile) 2>&5
14699 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14700 test $ac_status = 0; } 2>conftest.err; then
14703 libobjs=conftest.$ac_objext
14705 wl=$lt_prog_compiler_wl_CXX
14706 pic_flag=$lt_prog_compiler_pic_CXX
14712 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14713 allow_undefined_flag_CXX=
14714 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14715 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14717 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14718 test $ac_status = 0; }
14720 archive_cmds_need_lc_CXX=no
14722 archive_cmds_need_lc_CXX=yes
14724 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14726 cat conftest.err 1>&5
14729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
14730 $as_echo "$archive_cmds_need_lc_CXX" >&6; }
14800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14801 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14803 library_names_spec=
14804 libname_spec='lib$name'
14808 postuninstall_cmds=
14812 shlibpath_overrides_runpath=unknown
14814 dynamic_linker="$host_os ld.so"
14815 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14816 need_lib_prefix=unknown
14817 hardcode_into_libs=no
14819 # when you set need_version to no, make sure it does not cause -set_version
14820 # flags to be left without arguments
14821 need_version=unknown
14826 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14827 shlibpath_var=LIBPATH
14829 # AIX 3 has no versioning support, so we append a major version to the name.
14830 soname_spec='${libname}${release}${shared_ext}$major'
14837 hardcode_into_libs=yes
14838 if test "$host_cpu" = ia64; then
14839 # AIX 5 supports IA64
14840 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14841 shlibpath_var=LD_LIBRARY_PATH
14843 # With GCC up to 2.95.x, collect2 would create an import file
14844 # for dependence libraries. The import file would start with
14845 # the line `#! .'. This would cause the generated library to
14846 # depend on `.', always an invalid library. This was fixed in
14847 # development snapshots of GCC prior to 3.0.
14849 aix4 | aix4.[01] | aix4.[01].*)
14850 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14852 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14855 can_build_shared=no
14859 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14860 # soname into executable. Probably we can add versioning support to
14861 # collect2, so additional links can be useful in future.
14862 if test "$aix_use_runtimelinking" = yes; then
14863 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14864 # instead of lib<name>.a to let people know that these are not
14865 # typical AIX shared libraries.
14866 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14868 # We preserve .a as extension for shared libraries through AIX4.2
14869 # and later when we are not doing run time linking.
14870 library_names_spec='${libname}${release}.a $libname.a'
14871 soname_spec='${libname}${release}${shared_ext}$major'
14873 shlibpath_var=LIBPATH
14880 # Since July 2007 AmigaOS4 officially supports .so libraries.
14881 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14882 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14885 library_names_spec='$libname.ixlibrary $libname.a'
14886 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14887 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'
14893 library_names_spec='${libname}${shared_ext}'
14894 dynamic_linker="$host_os ld.so"
14895 shlibpath_var=LIBRARY_PATH
14901 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14902 soname_spec='${libname}${release}${shared_ext}$major'
14903 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14904 shlibpath_var=LD_LIBRARY_PATH
14905 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14906 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14907 # the default ld.so.conf also contains /usr/contrib/lib and
14908 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14909 # libtool to hard-code these into programs
14912 cygwin* | mingw* | pw32* | cegcc*)
14913 version_type=windows
14918 case $GCC,$host_os in
14919 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14920 library_names_spec='$libname.dll.a'
14921 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14922 postinstall_cmds='base_file=`basename \${file}`~
14923 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14924 dldir=$destdir/`dirname \$dlpath`~
14925 test -d \$dldir || mkdir -p \$dldir~
14926 $install_prog $dir/$dlname \$dldir/$dlname~
14927 chmod a+x \$dldir/$dlname~
14928 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14929 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14931 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14932 dlpath=$dir/\$dldll~
14934 shlibpath_overrides_runpath=yes
14938 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14939 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14940 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14943 # MinGW DLLs use traditional 'lib' prefix
14944 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14945 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14946 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14947 # It is most probably a Windows format PATH printed by
14948 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14949 # path with ; separators, and with drive letters. We can handle the
14950 # drive letters (cygwin fileutils understands them), so leave them,
14951 # especially as we might pass files found there to a mingw objdump,
14952 # which wouldn't understand a cygwinified path. Ahh.
14953 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14955 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14959 # pw32 DLLs use 'pw' prefix rather than 'lib'
14960 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14966 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14969 dynamic_linker='Win32 ld.exe'
14970 # FIXME: first we should search . and the directory the executable is in
14974 darwin* | rhapsody*)
14975 dynamic_linker="$host_os dyld"
14976 version_type=darwin
14979 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14980 soname_spec='${libname}${release}${major}$shared_ext'
14981 shlibpath_overrides_runpath=yes
14982 shlibpath_var=DYLD_LIBRARY_PATH
14983 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14985 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14992 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14993 soname_spec='${libname}${release}${shared_ext}$major'
14994 shlibpath_var=LD_LIBRARY_PATH
15001 freebsd* | dragonfly*)
15002 # DragonFly does not have aout. When/if they implement a new
15003 # versioning mechanism, adjust this.
15004 if test -x /usr/bin/objformat; then
15005 objformat=`/usr/bin/objformat`
15008 freebsd[123]*) objformat=aout ;;
15009 *) objformat=elf ;;
15012 version_type=freebsd-$objformat
15013 case $version_type in
15015 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15020 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15024 shlibpath_var=LD_LIBRARY_PATH
15027 shlibpath_overrides_runpath=yes
15029 freebsd3.[01]* | freebsdelf3.[01]*)
15030 shlibpath_overrides_runpath=yes
15031 hardcode_into_libs=yes
15033 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15034 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15035 shlibpath_overrides_runpath=no
15036 hardcode_into_libs=yes
15038 *) # from 4.6 on, and DragonFly
15039 shlibpath_overrides_runpath=yes
15040 hardcode_into_libs=yes
15049 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15050 soname_spec='${libname}${release}${shared_ext}$major'
15051 shlibpath_var=LD_LIBRARY_PATH
15052 hardcode_into_libs=yes
15055 hpux9* | hpux10* | hpux11*)
15056 # Give a soname corresponding to the major version so that dld.sl refuses to
15057 # link against other versions.
15064 hardcode_into_libs=yes
15065 dynamic_linker="$host_os dld.so"
15066 shlibpath_var=LD_LIBRARY_PATH
15067 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15068 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15069 soname_spec='${libname}${release}${shared_ext}$major'
15070 if test "X$HPUX_IA64_MODE" = X32; then
15071 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15073 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15075 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15079 hardcode_into_libs=yes
15080 dynamic_linker="$host_os dld.sl"
15081 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15082 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15083 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15084 soname_spec='${libname}${release}${shared_ext}$major'
15085 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15086 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15090 dynamic_linker="$host_os dld.sl"
15091 shlibpath_var=SHLIB_PATH
15092 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15093 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15094 soname_spec='${libname}${release}${shared_ext}$major'
15097 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15098 postinstall_cmds='chmod 555 $lib'
15105 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15106 soname_spec='${libname}${release}${shared_ext}$major'
15107 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15108 shlibpath_var=LD_LIBRARY_PATH
15109 shlibpath_overrides_runpath=no
15110 hardcode_into_libs=yes
15113 irix5* | irix6* | nonstopux*)
15115 nonstopux*) version_type=nonstopux ;;
15117 if test "$lt_cv_prog_gnu_ld" = yes; then
15125 soname_spec='${libname}${release}${shared_ext}$major'
15126 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15128 irix5* | nonstopux*)
15129 libsuff= shlibsuff=
15132 case $LD in # libtool.m4 will add one of these switches to LD
15133 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15134 libsuff= shlibsuff= libmagic=32-bit;;
15135 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15136 libsuff=32 shlibsuff=N32 libmagic=N32;;
15137 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15138 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15139 *) libsuff= shlibsuff= libmagic=never-match;;
15143 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15144 shlibpath_overrides_runpath=no
15145 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15146 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15147 hardcode_into_libs=yes
15150 # No shared lib support for Linux oldld, aout, or coff.
15151 linux*oldld* | linux*aout* | linux*coff*)
15155 # This must be Linux ELF.
15156 linux* | k*bsd*-gnu)
15160 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15161 soname_spec='${libname}${release}${shared_ext}$major'
15162 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15163 shlibpath_var=LD_LIBRARY_PATH
15164 shlibpath_overrides_runpath=no
15165 # Some binutils ld are patched to set DT_RUNPATH
15166 save_LDFLAGS=$LDFLAGS
15167 save_libdir=$libdir
15168 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15169 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15171 /* end confdefs.h. */
15181 if ac_fn_cxx_try_link "$LINENO"; then :
15182 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15183 shlibpath_overrides_runpath=yes
15186 rm -f core conftest.err conftest.$ac_objext \
15187 conftest$ac_exeext conftest.$ac_ext
15188 LDFLAGS=$save_LDFLAGS
15189 libdir=$save_libdir
15191 # This implies no fast_install, which is unacceptable.
15192 # Some rework will be needed to allow for fast_install
15193 # before this can be enabled.
15194 hardcode_into_libs=yes
15196 # Append ld.so.conf contents to the search path
15197 if test -f /etc/ld.so.conf; then
15198 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' ' '`
15199 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15202 # We used to test for /lib/ld.so.1 and disable shared libraries on
15203 # powerpc, because MkLinux only supported shared libraries with the
15204 # GNU dynamic linker. Since this was broken with cross compilers,
15205 # most powerpc-linux boxes support dynamic linking these days and
15206 # people can always --disable-shared, the test was removed, and we
15207 # assume the GNU/Linux dynamic linker is in use.
15208 dynamic_linker='GNU/Linux ld.so'
15215 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15216 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15217 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15218 dynamic_linker='NetBSD (a.out) ld.so'
15220 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15221 soname_spec='${libname}${release}${shared_ext}$major'
15222 dynamic_linker='NetBSD ld.elf_so'
15224 shlibpath_var=LD_LIBRARY_PATH
15225 shlibpath_overrides_runpath=yes
15226 hardcode_into_libs=yes
15231 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15232 shlibpath_var=LD_LIBRARY_PATH
15233 shlibpath_overrides_runpath=yes
15240 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15241 soname_spec='${libname}${release}${shared_ext}$major'
15242 shlibpath_var=LD_LIBRARY_PATH
15243 shlibpath_overrides_runpath=no
15244 hardcode_into_libs=yes
15245 dynamic_linker='ldqnx.so'
15250 sys_lib_dlsearch_path_spec="/usr/lib"
15252 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15254 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15255 *) need_version=no ;;
15257 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15258 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15259 shlibpath_var=LD_LIBRARY_PATH
15260 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15262 openbsd2.[89] | openbsd2.[89].*)
15263 shlibpath_overrides_runpath=no
15266 shlibpath_overrides_runpath=yes
15270 shlibpath_overrides_runpath=yes
15275 libname_spec='$name'
15278 library_names_spec='$libname${shared_ext} $libname.a'
15279 dynamic_linker='OS/2 ld.exe'
15280 shlibpath_var=LIBPATH
15283 osf3* | osf4* | osf5*)
15287 soname_spec='${libname}${release}${shared_ext}$major'
15288 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15289 shlibpath_var=LD_LIBRARY_PATH
15290 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15291 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15302 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15303 soname_spec='${libname}${release}${shared_ext}$major'
15304 shlibpath_var=LD_LIBRARY_PATH
15305 shlibpath_overrides_runpath=yes
15306 hardcode_into_libs=yes
15307 # ldd complains unless libraries are executable
15308 postinstall_cmds='chmod +x $lib'
15313 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15314 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15315 shlibpath_var=LD_LIBRARY_PATH
15316 shlibpath_overrides_runpath=yes
15317 if test "$with_gnu_ld" = yes; then
15325 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15326 soname_spec='${libname}${release}${shared_ext}$major'
15327 shlibpath_var=LD_LIBRARY_PATH
15328 case $host_vendor in
15330 shlibpath_overrides_runpath=no
15332 runpath_var=LD_RUN_PATH
15340 shlibpath_overrides_runpath=no
15341 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15347 if test -d /usr/nec ;then
15349 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15350 soname_spec='$libname${shared_ext}.$major'
15351 shlibpath_var=LD_LIBRARY_PATH
15355 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15356 version_type=freebsd-elf
15359 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15360 soname_spec='${libname}${release}${shared_ext}$major'
15361 shlibpath_var=LD_LIBRARY_PATH
15362 shlibpath_overrides_runpath=yes
15363 hardcode_into_libs=yes
15364 if test "$with_gnu_ld" = yes; then
15365 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15367 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15370 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15374 sys_lib_dlsearch_path_spec='/usr/lib'
15378 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15382 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15383 shlibpath_var=LD_LIBRARY_PATH
15384 shlibpath_overrides_runpath=no
15385 hardcode_into_libs=yes
15390 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15391 soname_spec='${libname}${release}${shared_ext}$major'
15392 shlibpath_var=LD_LIBRARY_PATH
15399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15400 $as_echo "$dynamic_linker" >&6; }
15401 test "$dynamic_linker" = no && can_build_shared=no
15403 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15404 if test "$GCC" = yes; then
15405 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15408 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15409 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15411 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15412 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15451 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15452 hardcode_action_CXX=
15453 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15454 test -n "$runpath_var_CXX" ||
15455 test "X$hardcode_automatic_CXX" = "Xyes" ; then
15457 # We can hardcode non-existent directories.
15458 if test "$hardcode_direct_CXX" != no &&
15459 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15460 # have to relink, otherwise we might link with an installed library
15461 # when we should be linking with a yet-to-be-installed one
15462 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15463 test "$hardcode_minus_L_CXX" != no; then
15464 # Linking always hardcodes the temporary library directory.
15465 hardcode_action_CXX=relink
15467 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15468 hardcode_action_CXX=immediate
15471 # We cannot hardcode anything, or else we can only hardcode existing
15473 hardcode_action_CXX=unsupported
15475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15476 $as_echo "$hardcode_action_CXX" >&6; }
15478 if test "$hardcode_action_CXX" = relink ||
15479 test "$inherit_rpath_CXX" = yes; then
15480 # Fast installation is not supported
15481 enable_fast_install=no
15482 elif test "$shlibpath_overrides_runpath" = yes ||
15483 test "$enable_shared" = no; then
15484 # Fast installation is not necessary
15485 enable_fast_install=needless
15494 fi # test -n "$compiler"
15500 with_gnu_ld=$lt_save_with_gnu_ld
15501 lt_cv_path_LDCXX=$lt_cv_path_LD
15502 lt_cv_path_LD=$lt_save_path_LD
15503 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15504 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15505 fi # test "$_lt_caught_CXX_error" != yes
15508 ac_cpp='$CPP $CPPFLAGS'
15509 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15510 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15511 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15525 ac_config_commands="$ac_config_commands libtool"
15530 # Only expand once:
15535 if test x$use_libtool != xno; then
15536 DEFAULT_OBJECT_TYPE=".lo"
15537 DEFAULT_ARCHIVE_TYPE=".la"
15538 DEFAULT_SHARED_OBJECT_TYPE=".la"
15539 LIBTOOL="\$(LIBTOOL)"
15540 LIBTOOL_INSTALL_TARGET="libtool-install"
15541 LIBTOOL_UNINSTALL_TARGET="libtool-uninstall"
15542 LIBTOOL_CLEAN_TARGET="libtool-clean"
15543 QMAKE_LIBTOOL="${BUILD_DIR}/libtool"
15544 FD_PLUGIN_DIR="src/plugins/fd"
15547 DEFAULT_OBJECT_TYPE=".o"
15548 DEFAULT_ARCHIVE_TYPE=".a"
15549 DEFAULT_SHARED_OBJECT_TYPE=".so"
15550 LIBTOOL="# \$(LIBTOOL)"
15551 LIBTOOL_INSTALL_TARGET=""
15552 LIBTOOL_UNINSTALL_TARGET=""
15553 LIBTOOL_CLEAN_TARGET=""
15554 QMAKE_LIBTOOL="# ${BUILD_DIR}/libtool"
15569 # Check whether --enable-includes was given.
15570 if test "${enable_includes+set}" = set; then :
15571 enableval=$enable_includes;
15572 if test x$enableval = xyes; then
15573 install_includes=yes
15581 if test x$use_libtool != xno -a x$install_includes = xyes; then
15582 INCLUDE_INSTALL_TARGET="install-includes"
15583 INCLUDE_UNINSTALL_TARGET="uninstall-includes"
15585 INCLUDE_INSTALL_TARGET=""
15586 INCLUDE_UNINSTALL_TARGET=""
15594 *cygwin* ) CYGWIN=yes;;
15598 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
15604 HAVE_SUN_OS_FALSE='#'
15606 HAVE_SUN_OS_TRUE='#'
15609 $as_echo "#define HAVE_SUN_OS 1" >>confdefs.h
15616 HAVE_SUN_OS_FALSE='#'
15618 HAVE_SUN_OS_TRUE='#'
15623 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
15629 HAVE_OSF1_OS_FALSE='#'
15631 HAVE_OSF1_OS_TRUE='#'
15632 HAVE_OSF1_OS_FALSE=
15634 $as_echo "#define HAVE_OSF1_OS 1" >>confdefs.h
15641 HAVE_OSF1_OS_FALSE='#'
15643 HAVE_OSF1_OS_TRUE='#'
15644 HAVE_OSF1_OS_FALSE=
15648 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
15654 HAVE_AIX_OS_FALSE='#'
15656 HAVE_AIX_OS_TRUE='#'
15659 $as_echo "#define HAVE_AIX_OS 1" >>confdefs.h
15666 HAVE_AIX_OS_FALSE='#'
15668 HAVE_AIX_OS_TRUE='#'
15673 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
15679 HAVE_HPUX_OS_FALSE='#'
15681 HAVE_HPUX_OS_TRUE='#'
15682 HAVE_HPUX_OS_FALSE=
15684 $as_echo "#define HAVE_HPUX_OS 1" >>confdefs.h
15691 HAVE_HPUX_OS_FALSE='#'
15693 HAVE_HPUX_OS_TRUE='#'
15694 HAVE_HPUX_OS_FALSE=
15698 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
15703 HAVE_LINUX_OS_TRUE=
15704 HAVE_LINUX_OS_FALSE='#'
15706 HAVE_LINUX_OS_TRUE='#'
15707 HAVE_LINUX_OS_FALSE=
15709 $as_echo "#define HAVE_LINUX_OS 1" >>confdefs.h
15715 HAVE_LINUX_OS_TRUE=
15716 HAVE_LINUX_OS_FALSE='#'
15718 HAVE_LINUX_OS_TRUE='#'
15719 HAVE_LINUX_OS_FALSE=
15723 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
15728 HAVE_FREEBSD_OS_TRUE=
15729 HAVE_FREEBSD_OS_FALSE='#'
15731 HAVE_FREEBSD_OS_TRUE='#'
15732 HAVE_FREEBSD_OS_FALSE=
15734 $as_echo "#define HAVE_FREEBSD_OS 1" >>confdefs.h
15740 HAVE_FREEBSD_OS_TRUE=
15741 HAVE_FREEBSD_OS_FALSE='#'
15743 HAVE_FREEBSD_OS_TRUE='#'
15744 HAVE_FREEBSD_OS_FALSE=
15748 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
15753 HAVE_NETBSD_OS_TRUE=
15754 HAVE_NETBSD_OS_FALSE='#'
15756 HAVE_NETBSD_OS_TRUE='#'
15757 HAVE_NETBSD_OS_FALSE=
15759 $as_echo "#define HAVE_NETBSD_OS 1" >>confdefs.h
15765 HAVE_NETBSD_OS_TRUE=
15766 HAVE_NETBSD_OS_FALSE='#'
15768 HAVE_NETBSD_OS_TRUE='#'
15769 HAVE_NETBSD_OS_FALSE=
15773 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
15778 HAVE_OPENBSD_OS_TRUE=
15779 HAVE_OPENBSD_OS_FALSE='#'
15781 HAVE_OPENBSD_OS_TRUE='#'
15782 HAVE_OPENBSD_OS_FALSE=
15784 $as_echo "#define HAVE_OPENBSD_OS 1" >>confdefs.h
15790 HAVE_OPENBSD_OS_TRUE=
15791 HAVE_OPENBSD_OS_FALSE='#'
15793 HAVE_OPENBSD_OS_TRUE='#'
15794 HAVE_OPENBSD_OS_FALSE=
15798 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
15804 HAVE_BSDI_OS_FALSE='#'
15806 HAVE_BSDI_OS_TRUE='#'
15807 HAVE_BSDI_OS_FALSE=
15809 $as_echo "#define HAVE_BSDI_OS 1" >>confdefs.h
15816 HAVE_BSDI_OS_FALSE='#'
15818 HAVE_BSDI_OS_TRUE='#'
15819 HAVE_BSDI_OS_FALSE=
15823 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
15829 HAVE_SGI_OS_FALSE='#'
15831 HAVE_SGI_OS_TRUE='#'
15834 $as_echo "#define HAVE_SGI_OS 1" >>confdefs.h
15841 HAVE_SGI_OS_FALSE='#'
15843 HAVE_SGI_OS_TRUE='#'
15848 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX -o x`uname -s` = xIRIX64
15854 HAVE_IRIX_OS_FALSE='#'
15856 HAVE_IRIX_OS_TRUE='#'
15857 HAVE_IRIX_OS_FALSE=
15859 $as_echo "#define HAVE_IRIX_OS 1" >>confdefs.h
15866 HAVE_IRIX_OS_FALSE='#'
15868 HAVE_IRIX_OS_TRUE='#'
15869 HAVE_IRIX_OS_FALSE=
15873 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
15878 HAVE_DARWIN_OS_TRUE=
15879 HAVE_DARWIN_OS_FALSE='#'
15881 HAVE_DARWIN_OS_TRUE='#'
15882 HAVE_DARWIN_OS_FALSE=
15884 $as_echo "#define HAVE_DARWIN_OS 1" >>confdefs.h
15890 HAVE_DARWIN_OS_TRUE=
15891 HAVE_DARWIN_OS_FALSE='#'
15893 HAVE_DARWIN_OS_TRUE='#'
15894 HAVE_DARWIN_OS_FALSE=
15899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Operating System Distribution" >&5
15900 $as_echo_n "checking for Operating System Distribution... " >&6; }
15901 if test "x$DISTNAME" != "x"
15903 echo "distname set to $DISTNAME"
15904 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
15907 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
15910 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
15913 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
15916 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
15919 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
15922 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
15925 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
15928 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
15931 elif test -f /etc/SuSE-release
15934 elif test -d /etc/SuSEconfig
15937 elif test -f /etc/mandrake-release
15940 elif test -f /etc/whitebox-release
15943 elif test -f /etc/redhat-release
15946 elif test -f /etc/gentoo-release
15949 elif test -f /etc/debian_version
15952 elif test -f /etc/slackware-version
15955 elif test x$host_vendor = xapple
15958 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
15961 elif test -f /etc/engarde-version
15964 elif test "$CYGWIN" = yes
15967 $as_echo "#define HAVE_CYGWIN 1" >>confdefs.h
15972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
15973 $as_echo "done" >&6; }
15976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
15977 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
15979 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
15980 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
15981 $as_echo_n "(cached) " >&6
15983 cat >conftest.make <<\_ACEOF
15986 @echo '@@@%%%=$(MAKE)=@@@%%%'
15988 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
15989 case `${MAKE-make} -f conftest.make 2>/dev/null` in
15990 *@@@%%%=?*=@@@%%%*)
15991 eval ac_cv_prog_make_${ac_make}_set=yes;;
15993 eval ac_cv_prog_make_${ac_make}_set=no;;
15995 rm -f conftest.make
15997 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
15998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15999 $as_echo "yes" >&6; }
16002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16003 $as_echo "no" >&6; }
16004 SET_MAKE="MAKE=${MAKE-make}"
16010 if test -n "$ac_aux_dir"; then
16011 case "$ac_aux_dir" in
16012 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
16013 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
16016 if test -z "$MKINSTALLDIRS"; then
16017 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
16022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
16023 $as_echo_n "checking whether NLS is requested... " >&6; }
16024 # Check whether --enable-nls was given.
16025 if test "${enable_nls+set}" = set; then :
16026 enableval=$enable_nls; USE_NLS=$enableval
16031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
16032 $as_echo "$USE_NLS" >&6; }
16039 # Prepare PATH_SEPARATOR.
16040 # The user is always right.
16041 if test "${PATH_SEPARATOR+set}" != set; then
16042 echo "#! /bin/sh" >conf$$.sh
16043 echo "exit 0" >>conf$$.sh
16045 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16053 # Find out how to test for executable files. Don't use a zero-byte file,
16054 # as systems may use methods other than mode bits to determine executability.
16055 cat >conf$$.file <<_ASEOF
16059 chmod +x conf$$.file
16060 if test -x conf$$.file >/dev/null 2>&1; then
16061 ac_executable_p="test -x"
16063 ac_executable_p="test -f"
16067 # Extract the first word of "msgfmt", so it can be a program name with args.
16068 set dummy msgfmt; ac_word=$2
16069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16070 $as_echo_n "checking for $ac_word... " >&6; }
16071 if test "${ac_cv_path_MSGFMT+set}" = set; then :
16072 $as_echo_n "(cached) " >&6
16076 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
16079 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16080 for ac_dir in $PATH; do
16082 test -z "$ac_dir" && ac_dir=.
16083 for ac_exec_ext in '' $ac_executable_extensions; do
16084 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16085 echo "$as_me: trying $ac_dir/$ac_word..." >&5
16086 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
16087 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16088 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
16095 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
16099 MSGFMT="$ac_cv_path_MSGFMT"
16100 if test "$MSGFMT" != ":"; then
16101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
16102 $as_echo "$MSGFMT" >&6; }
16104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16105 $as_echo "no" >&6; }
16108 # Extract the first word of "gmsgfmt", so it can be a program name with args.
16109 set dummy gmsgfmt; ac_word=$2
16110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16111 $as_echo_n "checking for $ac_word... " >&6; }
16112 if test "${ac_cv_path_GMSGFMT+set}" = set; then :
16113 $as_echo_n "(cached) " >&6
16117 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
16120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16121 for as_dir in $PATH
16124 test -z "$as_dir" && as_dir=.
16125 for ac_exec_ext in '' $ac_executable_extensions; do
16126 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16127 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
16128 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16135 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
16139 GMSGFMT=$ac_cv_path_GMSGFMT
16140 if test -n "$GMSGFMT"; then
16141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
16142 $as_echo "$GMSGFMT" >&6; }
16144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16145 $as_echo "no" >&6; }
16151 # Prepare PATH_SEPARATOR.
16152 # The user is always right.
16153 if test "${PATH_SEPARATOR+set}" != set; then
16154 echo "#! /bin/sh" >conf$$.sh
16155 echo "exit 0" >>conf$$.sh
16157 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16165 # Find out how to test for executable files. Don't use a zero-byte file,
16166 # as systems may use methods other than mode bits to determine executability.
16167 cat >conf$$.file <<_ASEOF
16171 chmod +x conf$$.file
16172 if test -x conf$$.file >/dev/null 2>&1; then
16173 ac_executable_p="test -x"
16175 ac_executable_p="test -f"
16179 # Extract the first word of "xgettext", so it can be a program name with args.
16180 set dummy xgettext; ac_word=$2
16181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16182 $as_echo_n "checking for $ac_word... " >&6; }
16183 if test "${ac_cv_path_XGETTEXT+set}" = set; then :
16184 $as_echo_n "(cached) " >&6
16186 case "$XGETTEXT" in
16188 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
16191 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16192 for ac_dir in $PATH; do
16194 test -z "$ac_dir" && ac_dir=.
16195 for ac_exec_ext in '' $ac_executable_extensions; do
16196 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16197 echo "$as_me: trying $ac_dir/$ac_word..." >&5
16198 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
16199 (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
16200 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
16207 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
16211 XGETTEXT="$ac_cv_path_XGETTEXT"
16212 if test "$XGETTEXT" != ":"; then
16213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
16214 $as_echo "$XGETTEXT" >&6; }
16216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16217 $as_echo "no" >&6; }
16223 # Prepare PATH_SEPARATOR.
16224 # The user is always right.
16225 if test "${PATH_SEPARATOR+set}" != set; then
16226 echo "#! /bin/sh" >conf$$.sh
16227 echo "exit 0" >>conf$$.sh
16229 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16237 # Find out how to test for executable files. Don't use a zero-byte file,
16238 # as systems may use methods other than mode bits to determine executability.
16239 cat >conf$$.file <<_ASEOF
16243 chmod +x conf$$.file
16244 if test -x conf$$.file >/dev/null 2>&1; then
16245 ac_executable_p="test -x"
16247 ac_executable_p="test -f"
16251 # Extract the first word of "msgmerge", so it can be a program name with args.
16252 set dummy msgmerge; ac_word=$2
16253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16254 $as_echo_n "checking for $ac_word... " >&6; }
16255 if test "${ac_cv_path_MSGMERGE+set}" = set; then :
16256 $as_echo_n "(cached) " >&6
16258 case "$MSGMERGE" in
16260 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
16263 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16264 for ac_dir in $PATH; do
16266 test -z "$ac_dir" && ac_dir=.
16267 for ac_exec_ext in '' $ac_executable_extensions; do
16268 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16269 echo "$as_me: trying $ac_dir/$ac_word..." >&5
16270 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
16271 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
16278 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
16282 MSGMERGE="$ac_cv_path_MSGMERGE"
16283 if test "$MSGMERGE" != ":"; then
16284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
16285 $as_echo "$MSGMERGE" >&6; }
16287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16288 $as_echo "no" >&6; }
16292 if test "$GMSGFMT" != ":"; then
16293 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
16294 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16297 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
16298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
16299 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
16304 if test "$XGETTEXT" != ":"; then
16305 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
16306 (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
16309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
16310 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
16316 ac_config_commands="$ac_config_commands default-1"
16320 if test "X$prefix" = "XNONE"; then
16321 acl_final_prefix="$ac_default_prefix"
16323 acl_final_prefix="$prefix"
16325 if test "X$exec_prefix" = "XNONE"; then
16326 acl_final_exec_prefix='${prefix}'
16328 acl_final_exec_prefix="$exec_prefix"
16330 acl_save_prefix="$prefix"
16331 prefix="$acl_final_prefix"
16332 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
16333 prefix="$acl_save_prefix"
16336 # Check whether --with-gnu-ld was given.
16337 if test "${with_gnu_ld+set}" = set; then :
16338 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
16343 # Prepare PATH_SEPARATOR.
16344 # The user is always right.
16345 if test "${PATH_SEPARATOR+set}" != set; then
16346 echo "#! /bin/sh" >conf$$.sh
16347 echo "exit 0" >>conf$$.sh
16349 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16357 if test "$GCC" = yes; then
16358 # Check if gcc -print-prog-name=ld gives a path.
16359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
16360 $as_echo_n "checking for ld used by GCC... " >&6; }
16363 # gcc leaves a trailing carriage return which upsets mingw
16364 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16366 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16369 # Accept absolute paths.
16370 [\\/]* | [A-Za-z]:[\\/]*)
16371 re_direlt='/[^/][^/]*/\.\./'
16372 # Canonicalize the path of ld
16373 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
16374 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
16375 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
16377 test -z "$LD" && LD="$ac_prog"
16380 # If it fails, then pretend we aren't using GCC.
16384 # If it is relative, then search for the first ld in PATH.
16385 with_gnu_ld=unknown
16388 elif test "$with_gnu_ld" = yes; then
16389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
16390 $as_echo_n "checking for GNU ld... " >&6; }
16392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
16393 $as_echo_n "checking for non-GNU ld... " >&6; }
16395 if test "${acl_cv_path_LD+set}" = set; then :
16396 $as_echo_n "(cached) " >&6
16398 if test -z "$LD"; then
16399 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
16400 for ac_dir in $PATH; do
16401 test -z "$ac_dir" && ac_dir=.
16402 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16403 acl_cv_path_LD="$ac_dir/$ac_prog"
16404 # Check to see if the program is GNU ld. I'd rather use --version,
16405 # but apparently some GNU ld's only accept -v.
16406 # Break only if it was the GNU/non-GNU ld that we prefer.
16407 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
16408 *GNU* | *'with BFD'*)
16409 test "$with_gnu_ld" != no && break ;;
16411 test "$with_gnu_ld" != yes && break ;;
16417 acl_cv_path_LD="$LD" # Let the user override the test with a path.
16421 LD="$acl_cv_path_LD"
16422 if test -n "$LD"; then
16423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
16424 $as_echo "$LD" >&6; }
16426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16427 $as_echo "no" >&6; }
16429 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
16430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
16431 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
16432 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
16433 $as_echo_n "(cached) " >&6
16435 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
16436 case `$LD -v 2>&1 </dev/null` in
16437 *GNU* | *'with BFD'*)
16438 acl_cv_prog_gnu_ld=yes ;;
16440 acl_cv_prog_gnu_ld=no ;;
16443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
16444 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
16445 with_gnu_ld=$acl_cv_prog_gnu_ld
16450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
16451 $as_echo_n "checking for shared library run path origin... " >&6; }
16452 if test "${acl_cv_rpath+set}" = set; then :
16453 $as_echo_n "(cached) " >&6
16456 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
16457 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
16459 rm -f ./conftest.sh
16463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
16464 $as_echo "$acl_cv_rpath" >&6; }
16466 libext="$acl_cv_libext"
16467 shlibext="$acl_cv_shlibext"
16468 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
16469 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
16470 hardcode_direct="$acl_cv_hardcode_direct"
16471 hardcode_minus_L="$acl_cv_hardcode_minus_L"
16472 # Check whether --enable-rpath was given.
16473 if test "${enable_rpath+set}" = set; then :
16474 enableval=$enable_rpath; :
16488 acl_save_prefix="$prefix"
16489 prefix="$acl_final_prefix"
16490 acl_save_exec_prefix="$exec_prefix"
16491 exec_prefix="$acl_final_exec_prefix"
16493 eval additional_includedir=\"$includedir\"
16494 eval additional_libdir=\"$libdir\"
16496 exec_prefix="$acl_save_exec_prefix"
16497 prefix="$acl_save_prefix"
16500 # Check whether --with-libiconv-prefix was given.
16501 if test "${with_libiconv_prefix+set}" = set; then :
16502 withval=$with_libiconv_prefix;
16503 if test "X$withval" = "Xno"; then
16506 if test "X$withval" = "X"; then
16508 acl_save_prefix="$prefix"
16509 prefix="$acl_final_prefix"
16510 acl_save_exec_prefix="$exec_prefix"
16511 exec_prefix="$acl_final_exec_prefix"
16513 eval additional_includedir=\"$includedir\"
16514 eval additional_libdir=\"$libdir\"
16516 exec_prefix="$acl_save_exec_prefix"
16517 prefix="$acl_save_prefix"
16520 additional_includedir="$withval/include"
16521 additional_libdir="$withval/lib"
16532 names_already_handled=
16533 names_next_round='iconv '
16534 while test -n "$names_next_round"; do
16535 names_this_round="$names_next_round"
16537 for name in $names_this_round; do
16539 for n in $names_already_handled; do
16540 if test "$n" = "$name"; then
16541 already_handled=yes
16545 if test -z "$already_handled"; then
16546 names_already_handled="$names_already_handled $name"
16547 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
16548 eval value=\"\$HAVE_LIB$uppername\"
16549 if test -n "$value"; then
16550 if test "$value" = yes; then
16551 eval value=\"\$LIB$uppername\"
16552 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
16553 eval value=\"\$LTLIB$uppername\"
16554 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
16563 if test $use_additional = yes; then
16564 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
16565 found_dir="$additional_libdir"
16566 found_so="$additional_libdir/lib$name.$shlibext"
16567 if test -f "$additional_libdir/lib$name.la"; then
16568 found_la="$additional_libdir/lib$name.la"
16571 if test -f "$additional_libdir/lib$name.$libext"; then
16572 found_dir="$additional_libdir"
16573 found_a="$additional_libdir/lib$name.$libext"
16574 if test -f "$additional_libdir/lib$name.la"; then
16575 found_la="$additional_libdir/lib$name.la"
16580 if test "X$found_dir" = "X"; then
16581 for x in $LDFLAGS $LTLIBICONV; do
16583 acl_save_prefix="$prefix"
16584 prefix="$acl_final_prefix"
16585 acl_save_exec_prefix="$exec_prefix"
16586 exec_prefix="$acl_final_exec_prefix"
16588 exec_prefix="$acl_save_exec_prefix"
16589 prefix="$acl_save_prefix"
16593 dir=`echo "X$x" | sed -e 's/^X-L//'`
16594 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
16596 found_so="$dir/lib$name.$shlibext"
16597 if test -f "$dir/lib$name.la"; then
16598 found_la="$dir/lib$name.la"
16601 if test -f "$dir/lib$name.$libext"; then
16603 found_a="$dir/lib$name.$libext"
16604 if test -f "$dir/lib$name.la"; then
16605 found_la="$dir/lib$name.la"
16611 if test "X$found_dir" != "X"; then
16616 if test "X$found_dir" != "X"; then
16617 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
16618 if test "X$found_so" != "X"; then
16619 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
16620 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
16623 for x in $ltrpathdirs; do
16624 if test "X$x" = "X$found_dir"; then
16629 if test -z "$haveit"; then
16630 ltrpathdirs="$ltrpathdirs $found_dir"
16632 if test "$hardcode_direct" = yes; then
16633 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
16635 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
16636 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
16638 for x in $rpathdirs; do
16639 if test "X$x" = "X$found_dir"; then
16644 if test -z "$haveit"; then
16645 rpathdirs="$rpathdirs $found_dir"
16649 for x in $LDFLAGS $LIBICONV; do
16651 acl_save_prefix="$prefix"
16652 prefix="$acl_final_prefix"
16653 acl_save_exec_prefix="$exec_prefix"
16654 exec_prefix="$acl_final_exec_prefix"
16656 exec_prefix="$acl_save_exec_prefix"
16657 prefix="$acl_save_prefix"
16659 if test "X$x" = "X-L$found_dir"; then
16664 if test -z "$haveit"; then
16665 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
16667 if test "$hardcode_minus_L" != no; then
16668 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
16670 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
16676 if test "X$found_a" != "X"; then
16677 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
16679 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
16682 additional_includedir=
16683 case "$found_dir" in
16685 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
16686 additional_includedir="$basedir/include"
16689 if test "X$additional_includedir" != "X"; then
16690 if test "X$additional_includedir" != "X/usr/include"; then
16692 if test "X$additional_includedir" = "X/usr/local/include"; then
16693 if test -n "$GCC"; then
16695 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
16699 if test -z "$haveit"; then
16700 for x in $CPPFLAGS $INCICONV; do
16702 acl_save_prefix="$prefix"
16703 prefix="$acl_final_prefix"
16704 acl_save_exec_prefix="$exec_prefix"
16705 exec_prefix="$acl_final_exec_prefix"
16707 exec_prefix="$acl_save_exec_prefix"
16708 prefix="$acl_save_prefix"
16710 if test "X$x" = "X-I$additional_includedir"; then
16715 if test -z "$haveit"; then
16716 if test -d "$additional_includedir"; then
16717 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
16723 if test -n "$found_la"; then
16724 save_libdir="$libdir"
16725 case "$found_la" in
16726 */* | *\\*) . "$found_la" ;;
16727 *) . "./$found_la" ;;
16729 libdir="$save_libdir"
16730 for dep in $dependency_libs; do
16733 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
16734 if test "X$additional_libdir" != "X/usr/lib"; then
16736 if test "X$additional_libdir" = "X/usr/local/lib"; then
16737 if test -n "$GCC"; then
16739 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
16743 if test -z "$haveit"; then
16745 for x in $LDFLAGS $LIBICONV; do
16747 acl_save_prefix="$prefix"
16748 prefix="$acl_final_prefix"
16749 acl_save_exec_prefix="$exec_prefix"
16750 exec_prefix="$acl_final_exec_prefix"
16752 exec_prefix="$acl_save_exec_prefix"
16753 prefix="$acl_save_prefix"
16755 if test "X$x" = "X-L$additional_libdir"; then
16760 if test -z "$haveit"; then
16761 if test -d "$additional_libdir"; then
16762 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
16766 for x in $LDFLAGS $LTLIBICONV; do
16768 acl_save_prefix="$prefix"
16769 prefix="$acl_final_prefix"
16770 acl_save_exec_prefix="$exec_prefix"
16771 exec_prefix="$acl_final_exec_prefix"
16773 exec_prefix="$acl_save_exec_prefix"
16774 prefix="$acl_save_prefix"
16776 if test "X$x" = "X-L$additional_libdir"; then
16781 if test -z "$haveit"; then
16782 if test -d "$additional_libdir"; then
16783 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
16790 dir=`echo "X$dep" | sed -e 's/^X-R//'`
16791 if test "$enable_rpath" != no; then
16793 for x in $rpathdirs; do
16794 if test "X$x" = "X$dir"; then
16799 if test -z "$haveit"; then
16800 rpathdirs="$rpathdirs $dir"
16803 for x in $ltrpathdirs; do
16804 if test "X$x" = "X$dir"; then
16809 if test -z "$haveit"; then
16810 ltrpathdirs="$ltrpathdirs $dir"
16815 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
16818 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
16821 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
16822 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
16828 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
16829 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
16835 if test "X$rpathdirs" != "X"; then
16836 if test -n "$hardcode_libdir_separator"; then
16838 for found_dir in $rpathdirs; do
16839 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
16841 acl_save_libdir="$libdir"
16843 eval flag=\"$hardcode_libdir_flag_spec\"
16844 libdir="$acl_save_libdir"
16845 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
16847 for found_dir in $rpathdirs; do
16848 acl_save_libdir="$libdir"
16849 libdir="$found_dir"
16850 eval flag=\"$hardcode_libdir_flag_spec\"
16851 libdir="$acl_save_libdir"
16852 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
16856 if test "X$ltrpathdirs" != "X"; then
16857 for found_dir in $ltrpathdirs; do
16858 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
16879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
16880 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
16881 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then :
16882 $as_echo_n "(cached) " >&6
16884 gt_save_CPPFLAGS="$CPPFLAGS"
16885 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
16886 gt_save_LIBS="$LIBS"
16887 LIBS="$LIBS -framework CoreFoundation"
16888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16889 /* end confdefs.h. */
16890 #include <CFPreferences.h>
16894 CFPreferencesCopyAppValue(NULL, NULL)
16899 if ac_fn_c_try_link "$LINENO"; then :
16900 gt_cv_func_CFPreferencesCopyAppValue=yes
16902 gt_cv_func_CFPreferencesCopyAppValue=no
16904 rm -f core conftest.err conftest.$ac_objext \
16905 conftest$ac_exeext conftest.$ac_ext
16906 CPPFLAGS="$gt_save_CPPFLAGS"
16907 LIBS="$gt_save_LIBS"
16909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
16910 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
16911 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
16913 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
16916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
16917 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
16918 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then :
16919 $as_echo_n "(cached) " >&6
16921 gt_save_CPPFLAGS="$CPPFLAGS"
16922 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
16923 gt_save_LIBS="$LIBS"
16924 LIBS="$LIBS -framework CoreFoundation"
16925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16926 /* end confdefs.h. */
16927 #include <CFLocale.h>
16931 CFLocaleCopyCurrent();
16936 if ac_fn_c_try_link "$LINENO"; then :
16937 gt_cv_func_CFLocaleCopyCurrent=yes
16939 gt_cv_func_CFLocaleCopyCurrent=no
16941 rm -f core conftest.err conftest.$ac_objext \
16942 conftest$ac_exeext conftest.$ac_ext
16943 CPPFLAGS="$gt_save_CPPFLAGS"
16944 LIBS="$gt_save_LIBS"
16946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
16947 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
16948 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
16950 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
16954 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
16955 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
16961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
16962 $as_echo_n "checking whether NLS is requested... " >&6; }
16963 # Check whether --enable-nls was given.
16964 if test "${enable_nls+set}" = set; then :
16965 enableval=$enable_nls; USE_NLS=$enableval
16970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
16971 $as_echo "$USE_NLS" >&6; }
16980 if test "$USE_NLS" = "yes"; then
16981 gt_use_preinstalled_gnugettext=no
16988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
16989 $as_echo_n "checking for GNU gettext in libc... " >&6; }
16990 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then :
16991 $as_echo_n "(cached) " >&6
16993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16994 /* end confdefs.h. */
16995 #include <libintl.h>
16996 extern int _nl_msg_cat_cntr;
16997 extern int *_nl_domain_bindings;
17001 bindtextdomain ("", "");
17002 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
17007 if ac_fn_c_try_link "$LINENO"; then :
17008 gt_cv_func_gnugettext1_libc=yes
17010 gt_cv_func_gnugettext1_libc=no
17012 rm -f core conftest.err conftest.$ac_objext \
17013 conftest$ac_exeext conftest.$ac_ext
17015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5
17016 $as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
17018 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
17024 am_save_CPPFLAGS="$CPPFLAGS"
17026 for element in $INCICONV; do
17028 for x in $CPPFLAGS; do
17030 acl_save_prefix="$prefix"
17031 prefix="$acl_final_prefix"
17032 acl_save_exec_prefix="$exec_prefix"
17033 exec_prefix="$acl_final_exec_prefix"
17035 exec_prefix="$acl_save_exec_prefix"
17036 prefix="$acl_save_prefix"
17038 if test "X$x" = "X$element"; then
17043 if test -z "$haveit"; then
17044 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
17049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
17050 $as_echo_n "checking for iconv... " >&6; }
17051 if test "${am_cv_func_iconv+set}" = set; then :
17052 $as_echo_n "(cached) " >&6
17055 am_cv_func_iconv="no, consider installing GNU libiconv"
17057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17058 /* end confdefs.h. */
17059 #include <stdlib.h>
17064 iconv_t cd = iconv_open("","");
17065 iconv(cd,NULL,NULL,NULL,NULL);
17071 if ac_fn_c_try_link "$LINENO"; then :
17072 am_cv_func_iconv=yes
17074 rm -f core conftest.err conftest.$ac_objext \
17075 conftest$ac_exeext conftest.$ac_ext
17076 if test "$am_cv_func_iconv" != yes; then
17077 am_save_LIBS="$LIBS"
17078 LIBS="$LIBS $LIBICONV"
17079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17080 /* end confdefs.h. */
17081 #include <stdlib.h>
17086 iconv_t cd = iconv_open("","");
17087 iconv(cd,NULL,NULL,NULL,NULL);
17093 if ac_fn_c_try_link "$LINENO"; then :
17094 am_cv_lib_iconv=yes
17095 am_cv_func_iconv=yes
17097 rm -f core conftest.err conftest.$ac_objext \
17098 conftest$ac_exeext conftest.$ac_ext
17099 LIBS="$am_save_LIBS"
17103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
17104 $as_echo "$am_cv_func_iconv" >&6; }
17105 if test "$am_cv_func_iconv" = yes; then
17107 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
17110 if test "$am_cv_lib_iconv" = yes; then
17111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
17112 $as_echo_n "checking how to link with libiconv... " >&6; }
17113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
17114 $as_echo "$LIBICONV" >&6; }
17116 CPPFLAGS="$am_save_CPPFLAGS"
17128 acl_save_prefix="$prefix"
17129 prefix="$acl_final_prefix"
17130 acl_save_exec_prefix="$exec_prefix"
17131 exec_prefix="$acl_final_exec_prefix"
17133 eval additional_includedir=\"$includedir\"
17134 eval additional_libdir=\"$libdir\"
17136 exec_prefix="$acl_save_exec_prefix"
17137 prefix="$acl_save_prefix"
17140 # Check whether --with-libintl-prefix was given.
17141 if test "${with_libintl_prefix+set}" = set; then :
17142 withval=$with_libintl_prefix;
17143 if test "X$withval" = "Xno"; then
17146 if test "X$withval" = "X"; then
17148 acl_save_prefix="$prefix"
17149 prefix="$acl_final_prefix"
17150 acl_save_exec_prefix="$exec_prefix"
17151 exec_prefix="$acl_final_exec_prefix"
17153 eval additional_includedir=\"$includedir\"
17154 eval additional_libdir=\"$libdir\"
17156 exec_prefix="$acl_save_exec_prefix"
17157 prefix="$acl_save_prefix"
17160 additional_includedir="$withval/include"
17161 additional_libdir="$withval/lib"
17172 names_already_handled=
17173 names_next_round='intl '
17174 while test -n "$names_next_round"; do
17175 names_this_round="$names_next_round"
17177 for name in $names_this_round; do
17179 for n in $names_already_handled; do
17180 if test "$n" = "$name"; then
17181 already_handled=yes
17185 if test -z "$already_handled"; then
17186 names_already_handled="$names_already_handled $name"
17187 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
17188 eval value=\"\$HAVE_LIB$uppername\"
17189 if test -n "$value"; then
17190 if test "$value" = yes; then
17191 eval value=\"\$LIB$uppername\"
17192 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
17193 eval value=\"\$LTLIB$uppername\"
17194 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
17203 if test $use_additional = yes; then
17204 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
17205 found_dir="$additional_libdir"
17206 found_so="$additional_libdir/lib$name.$shlibext"
17207 if test -f "$additional_libdir/lib$name.la"; then
17208 found_la="$additional_libdir/lib$name.la"
17211 if test -f "$additional_libdir/lib$name.$libext"; then
17212 found_dir="$additional_libdir"
17213 found_a="$additional_libdir/lib$name.$libext"
17214 if test -f "$additional_libdir/lib$name.la"; then
17215 found_la="$additional_libdir/lib$name.la"
17220 if test "X$found_dir" = "X"; then
17221 for x in $LDFLAGS $LTLIBINTL; do
17223 acl_save_prefix="$prefix"
17224 prefix="$acl_final_prefix"
17225 acl_save_exec_prefix="$exec_prefix"
17226 exec_prefix="$acl_final_exec_prefix"
17228 exec_prefix="$acl_save_exec_prefix"
17229 prefix="$acl_save_prefix"
17233 dir=`echo "X$x" | sed -e 's/^X-L//'`
17234 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
17236 found_so="$dir/lib$name.$shlibext"
17237 if test -f "$dir/lib$name.la"; then
17238 found_la="$dir/lib$name.la"
17241 if test -f "$dir/lib$name.$libext"; then
17243 found_a="$dir/lib$name.$libext"
17244 if test -f "$dir/lib$name.la"; then
17245 found_la="$dir/lib$name.la"
17251 if test "X$found_dir" != "X"; then
17256 if test "X$found_dir" != "X"; then
17257 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
17258 if test "X$found_so" != "X"; then
17259 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
17260 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17263 for x in $ltrpathdirs; do
17264 if test "X$x" = "X$found_dir"; then
17269 if test -z "$haveit"; then
17270 ltrpathdirs="$ltrpathdirs $found_dir"
17272 if test "$hardcode_direct" = yes; then
17273 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17275 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
17276 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17278 for x in $rpathdirs; do
17279 if test "X$x" = "X$found_dir"; then
17284 if test -z "$haveit"; then
17285 rpathdirs="$rpathdirs $found_dir"
17289 for x in $LDFLAGS $LIBINTL; do
17291 acl_save_prefix="$prefix"
17292 prefix="$acl_final_prefix"
17293 acl_save_exec_prefix="$exec_prefix"
17294 exec_prefix="$acl_final_exec_prefix"
17296 exec_prefix="$acl_save_exec_prefix"
17297 prefix="$acl_save_prefix"
17299 if test "X$x" = "X-L$found_dir"; then
17304 if test -z "$haveit"; then
17305 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
17307 if test "$hardcode_minus_L" != no; then
17308 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17310 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
17316 if test "X$found_a" != "X"; then
17317 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
17319 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
17322 additional_includedir=
17323 case "$found_dir" in
17325 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
17326 additional_includedir="$basedir/include"
17329 if test "X$additional_includedir" != "X"; then
17330 if test "X$additional_includedir" != "X/usr/include"; then
17332 if test "X$additional_includedir" = "X/usr/local/include"; then
17333 if test -n "$GCC"; then
17335 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17339 if test -z "$haveit"; then
17340 for x in $CPPFLAGS $INCINTL; do
17342 acl_save_prefix="$prefix"
17343 prefix="$acl_final_prefix"
17344 acl_save_exec_prefix="$exec_prefix"
17345 exec_prefix="$acl_final_exec_prefix"
17347 exec_prefix="$acl_save_exec_prefix"
17348 prefix="$acl_save_prefix"
17350 if test "X$x" = "X-I$additional_includedir"; then
17355 if test -z "$haveit"; then
17356 if test -d "$additional_includedir"; then
17357 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
17363 if test -n "$found_la"; then
17364 save_libdir="$libdir"
17365 case "$found_la" in
17366 */* | *\\*) . "$found_la" ;;
17367 *) . "./$found_la" ;;
17369 libdir="$save_libdir"
17370 for dep in $dependency_libs; do
17373 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17374 if test "X$additional_libdir" != "X/usr/lib"; then
17376 if test "X$additional_libdir" = "X/usr/local/lib"; then
17377 if test -n "$GCC"; then
17379 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17383 if test -z "$haveit"; then
17385 for x in $LDFLAGS $LIBINTL; do
17387 acl_save_prefix="$prefix"
17388 prefix="$acl_final_prefix"
17389 acl_save_exec_prefix="$exec_prefix"
17390 exec_prefix="$acl_final_exec_prefix"
17392 exec_prefix="$acl_save_exec_prefix"
17393 prefix="$acl_save_prefix"
17395 if test "X$x" = "X-L$additional_libdir"; then
17400 if test -z "$haveit"; then
17401 if test -d "$additional_libdir"; then
17402 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
17406 for x in $LDFLAGS $LTLIBINTL; do
17408 acl_save_prefix="$prefix"
17409 prefix="$acl_final_prefix"
17410 acl_save_exec_prefix="$exec_prefix"
17411 exec_prefix="$acl_final_exec_prefix"
17413 exec_prefix="$acl_save_exec_prefix"
17414 prefix="$acl_save_prefix"
17416 if test "X$x" = "X-L$additional_libdir"; then
17421 if test -z "$haveit"; then
17422 if test -d "$additional_libdir"; then
17423 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
17430 dir=`echo "X$dep" | sed -e 's/^X-R//'`
17431 if test "$enable_rpath" != no; then
17433 for x in $rpathdirs; do
17434 if test "X$x" = "X$dir"; then
17439 if test -z "$haveit"; then
17440 rpathdirs="$rpathdirs $dir"
17443 for x in $ltrpathdirs; do
17444 if test "X$x" = "X$dir"; then
17449 if test -z "$haveit"; then
17450 ltrpathdirs="$ltrpathdirs $dir"
17455 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
17458 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
17461 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
17462 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
17468 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
17469 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
17475 if test "X$rpathdirs" != "X"; then
17476 if test -n "$hardcode_libdir_separator"; then
17478 for found_dir in $rpathdirs; do
17479 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
17481 acl_save_libdir="$libdir"
17483 eval flag=\"$hardcode_libdir_flag_spec\"
17484 libdir="$acl_save_libdir"
17485 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
17487 for found_dir in $rpathdirs; do
17488 acl_save_libdir="$libdir"
17489 libdir="$found_dir"
17490 eval flag=\"$hardcode_libdir_flag_spec\"
17491 libdir="$acl_save_libdir"
17492 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
17496 if test "X$ltrpathdirs" != "X"; then
17497 for found_dir in $ltrpathdirs; do
17498 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
17502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
17503 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
17504 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then :
17505 $as_echo_n "(cached) " >&6
17507 gt_save_CPPFLAGS="$CPPFLAGS"
17508 CPPFLAGS="$CPPFLAGS $INCINTL"
17509 gt_save_LIBS="$LIBS"
17510 LIBS="$LIBS $LIBINTL"
17511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17512 /* end confdefs.h. */
17513 #include <libintl.h>
17514 extern int _nl_msg_cat_cntr;
17519 const char *_nl_expand_alias (const char *);
17523 bindtextdomain ("", "");
17524 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
17529 if ac_fn_c_try_link "$LINENO"; then :
17530 gt_cv_func_gnugettext1_libintl=yes
17532 gt_cv_func_gnugettext1_libintl=no
17534 rm -f core conftest.err conftest.$ac_objext \
17535 conftest$ac_exeext conftest.$ac_ext
17536 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
17537 LIBS="$LIBS $LIBICONV"
17538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17539 /* end confdefs.h. */
17540 #include <libintl.h>
17541 extern int _nl_msg_cat_cntr;
17546 const char *_nl_expand_alias (const char *);
17550 bindtextdomain ("", "");
17551 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
17556 if ac_fn_c_try_link "$LINENO"; then :
17557 LIBINTL="$LIBINTL $LIBICONV"
17558 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
17559 gt_cv_func_gnugettext1_libintl=yes
17562 rm -f core conftest.err conftest.$ac_objext \
17563 conftest$ac_exeext conftest.$ac_ext
17565 CPPFLAGS="$gt_save_CPPFLAGS"
17566 LIBS="$gt_save_LIBS"
17568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5
17569 $as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
17572 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
17573 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
17574 && test "$PACKAGE" != gettext-runtime \
17575 && test "$PACKAGE" != gettext-tools; }; then
17576 gt_use_preinstalled_gnugettext=yes
17585 if test -n "$INTL_MACOSX_LIBS"; then
17586 if test "$gt_use_preinstalled_gnugettext" = "yes" \
17587 || test "$nls_cv_use_gnu_gettext" = "yes"; then
17588 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
17589 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
17593 if test "$gt_use_preinstalled_gnugettext" = "yes" \
17594 || test "$nls_cv_use_gnu_gettext" = "yes"; then
17596 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
17603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
17604 $as_echo_n "checking whether to use NLS... " >&6; }
17605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
17606 $as_echo "$USE_NLS" >&6; }
17607 if test "$USE_NLS" = "yes"; then
17608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
17609 $as_echo_n "checking where the gettext function comes from... " >&6; }
17610 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
17611 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
17612 gt_source="external libintl"
17617 gt_source="included intl directory"
17619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
17620 $as_echo "$gt_source" >&6; }
17623 if test "$USE_NLS" = "yes"; then
17625 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
17626 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
17627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
17628 $as_echo_n "checking how to link with libintl... " >&6; }
17629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
17630 $as_echo "$LIBINTL" >&6; }
17632 for element in $INCINTL; do
17634 for x in $CPPFLAGS; do
17636 acl_save_prefix="$prefix"
17637 prefix="$acl_final_prefix"
17638 acl_save_exec_prefix="$exec_prefix"
17639 exec_prefix="$acl_final_exec_prefix"
17641 exec_prefix="$acl_save_exec_prefix"
17642 prefix="$acl_save_prefix"
17644 if test "X$x" = "X$element"; then
17649 if test -z "$haveit"; then
17650 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
17657 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
17660 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
17669 INTLLIBS="$LIBINTL"
17677 os_name=`uname -s 2>/dev/null`
17678 if test x${prefix} = xNONE ; then
17679 if test `eval echo ${sysconfdir}` = NONE/etc ; then
17680 sysconfdir=/etc/bacula
17683 if test `eval echo ${libdir}` = NONE/lib ; then
17686 os_processor=`uname -p 2>/dev/null`
17687 case ${os_processor} in
17702 if test `eval echo ${includedir}` = NONE/include ; then
17703 includedir=/usr/include
17706 if test `eval echo ${datarootdir}` = NONE/share ; then
17707 datarootdir=/usr/share
17712 if test x${exec_prefix} = xNONE ; then
17713 exec_prefix=${prefix}
17716 sysconfdir=`eval echo ${sysconfdir}`
17717 datarootdir=`eval echo ${datarootdir}`
17718 docdir=`eval echo ${docdir}`
17719 htmldir=`eval echo ${htmldir}`
17720 libdir=`eval echo ${libdir}`
17721 includedir=`eval echo ${includedir}`
17722 localedir=`eval echo ${datarootdir}/locale`
17723 cat >>confdefs.h <<_ACEOF
17724 #define SYSCONFDIR "$sysconfdir"
17727 cat >>confdefs.h <<_ACEOF
17728 #define LOCALEDIR "$localedir"
17732 if test x$sbindir = x'${exec_prefix}/sbin' ; then
17733 sbindir=${exec_prefix}/sbin
17735 sbindir=`eval echo ${sbindir}`
17737 if test x$mandir = x'${prefix}/man' ; then
17738 mandir=/usr/share/man
17741 if test x$htmldir = x${docdir} ; then
17742 htmldir=`eval echo ${docdir}bacula/html`
17745 if test x$docdir = x'/usr/share/doc/' ; then
17746 docdir=`eval echo ${docdir}bacula`
17750 for ac_prog in msgfmt
17752 # Extract the first word of "$ac_prog", so it can be a program name with args.
17753 set dummy $ac_prog; ac_word=$2
17754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17755 $as_echo_n "checking for $ac_word... " >&6; }
17756 if test "${ac_cv_path_MSGFMT+set}" = set; then :
17757 $as_echo_n "(cached) " >&6
17761 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
17764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17765 for as_dir in $PATH
17768 test -z "$as_dir" && as_dir=.
17769 for ac_exec_ext in '' $ac_executable_extensions; do
17770 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17771 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
17772 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17782 MSGFMT=$ac_cv_path_MSGFMT
17783 if test -n "$MSGFMT"; then
17784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
17785 $as_echo "$MSGFMT" >&6; }
17787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17788 $as_echo "no" >&6; }
17792 test -n "$MSGFMT" && break
17794 test -n "$MSGFMT" || MSGFMT="no"
17796 if test "$MSGFMT" = "no"
17798 echo 'msgfmt program not found, disabling NLS !'
17800 USE_INCLUDED_LIBINTL=no
17803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2 or newer" >&5
17804 $as_echo_n "checking whether we are using the GNU C Library 2 or newer... " >&6; }
17805 if test "${ac_cv_gnu_library_2+set}" = set; then :
17806 $as_echo_n "(cached) " >&6
17808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17809 /* end confdefs.h. */
17811 #include <features.h>
17812 #ifdef __GNU_LIBRARY__
17813 #if (__GLIBC__ >= 2)
17819 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17820 $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
17821 ac_cv_gnu_library_2=yes
17823 ac_cv_gnu_library_2=no
17830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2" >&5
17831 $as_echo "$ac_cv_gnu_library_2" >&6; }
17833 GLIBC2="$ac_cv_gnu_library_2"
17836 if test -n "$ac_tool_prefix"; then
17837 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
17838 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
17839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17840 $as_echo_n "checking for $ac_word... " >&6; }
17841 if test "${ac_cv_prog_RANLIB+set}" = set; then :
17842 $as_echo_n "(cached) " >&6
17844 if test -n "$RANLIB"; then
17845 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
17847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17848 for as_dir in $PATH
17851 test -z "$as_dir" && as_dir=.
17852 for ac_exec_ext in '' $ac_executable_extensions; do
17853 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17854 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
17855 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17864 RANLIB=$ac_cv_prog_RANLIB
17865 if test -n "$RANLIB"; then
17866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
17867 $as_echo "$RANLIB" >&6; }
17869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17870 $as_echo "no" >&6; }
17875 if test -z "$ac_cv_prog_RANLIB"; then
17876 ac_ct_RANLIB=$RANLIB
17877 # Extract the first word of "ranlib", so it can be a program name with args.
17878 set dummy ranlib; ac_word=$2
17879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17880 $as_echo_n "checking for $ac_word... " >&6; }
17881 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
17882 $as_echo_n "(cached) " >&6
17884 if test -n "$ac_ct_RANLIB"; then
17885 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
17887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17888 for as_dir in $PATH
17891 test -z "$as_dir" && as_dir=.
17892 for ac_exec_ext in '' $ac_executable_extensions; do
17893 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17894 ac_cv_prog_ac_ct_RANLIB="ranlib"
17895 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17904 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
17905 if test -n "$ac_ct_RANLIB"; then
17906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
17907 $as_echo "$ac_ct_RANLIB" >&6; }
17909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17910 $as_echo "no" >&6; }
17913 if test "x$ac_ct_RANLIB" = x; then
17916 case $cross_compiling:$ac_tool_warned in
17918 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17919 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17920 ac_tool_warned=yes ;;
17922 RANLIB=$ac_ct_RANLIB
17925 RANLIB="$ac_cv_prog_RANLIB"
17929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strerror in -lcposix" >&5
17930 $as_echo_n "checking for strerror in -lcposix... " >&6; }
17931 if test "${ac_cv_lib_cposix_strerror+set}" = set; then :
17932 $as_echo_n "(cached) " >&6
17934 ac_check_lib_save_LIBS=$LIBS
17935 LIBS="-lcposix $LIBS"
17936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17937 /* end confdefs.h. */
17939 /* Override any GCC internal prototype to avoid an error.
17940 Use char because int might match the return type of a GCC
17941 builtin and then its argument prototype would still apply. */
17949 return strerror ();
17954 if ac_fn_c_try_link "$LINENO"; then :
17955 ac_cv_lib_cposix_strerror=yes
17957 ac_cv_lib_cposix_strerror=no
17959 rm -f core conftest.err conftest.$ac_objext \
17960 conftest$ac_exeext conftest.$ac_ext
17961 LIBS=$ac_check_lib_save_LIBS
17963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cposix_strerror" >&5
17964 $as_echo "$ac_cv_lib_cposix_strerror" >&6; }
17965 if test "x$ac_cv_lib_cposix_strerror" = x""yes; then :
17966 LIBS="$LIBS -lcposix"
17971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
17972 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
17973 if test "${ac_cv_c_const+set}" = set; then :
17974 $as_echo_n "(cached) " >&6
17976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17977 /* end confdefs.h. */
17982 /* FIXME: Include the comments suggested by Paul. */
17983 #ifndef __cplusplus
17984 /* Ultrix mips cc rejects this. */
17985 typedef int charset[2];
17987 /* SunOS 4.1.1 cc rejects this. */
17988 char const *const *pcpcc;
17990 /* NEC SVR4.0.2 mips cc rejects this. */
17991 struct point {int x, y;};
17992 static struct point const zero = {0,0};
17993 /* AIX XL C 1.02.0.0 rejects this.
17994 It does not let you subtract one const X* pointer from another in
17995 an arm of an if-expression whose if-part is not a constant
17997 const char *g = "string";
17998 pcpcc = &g + (g ? g-g : 0);
17999 /* HPUX 7.0 cc rejects these. */
18001 ppc = (char**) pcpcc;
18002 pcpcc = (char const *const *) ppc;
18003 { /* SCO 3.2v4 cc rejects this. */
18005 char const *s = 0 ? (char *) 0 : (char const *) 0;
18010 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
18011 int x[] = {25, 17};
18012 const int *foo = &x[0];
18015 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
18016 typedef const int *iptr;
18020 { /* AIX XL C 1.02.0.0 rejects this saying
18021 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
18022 struct s { int j; const int *ap[3]; };
18023 struct s *b; b->j = 5;
18025 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
18026 const int foo = 10;
18027 if (!foo) return 0;
18029 return !cs[0] && !zero.x;
18036 if ac_fn_c_try_compile "$LINENO"; then :
18041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
18044 $as_echo "$ac_cv_c_const" >&6; }
18045 if test $ac_cv_c_const = no; then
18047 $as_echo "#define const /**/" >>confdefs.h
18052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed" >&5
18053 $as_echo_n "checking for signed... " >&6; }
18054 if test "${bh_cv_c_signed+set}" = set; then :
18055 $as_echo_n "(cached) " >&6
18057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18058 /* end confdefs.h. */
18068 if ac_fn_c_try_compile "$LINENO"; then :
18073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bh_cv_c_signed" >&5
18076 $as_echo "$bh_cv_c_signed" >&6; }
18077 if test $bh_cv_c_signed = no; then
18079 $as_echo "#define signed /**/" >>confdefs.h
18083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
18084 $as_echo_n "checking for inline... " >&6; }
18085 if test "${ac_cv_c_inline+set}" = set; then :
18086 $as_echo_n "(cached) " >&6
18089 for ac_kw in inline __inline__ __inline; do
18090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18091 /* end confdefs.h. */
18092 #ifndef __cplusplus
18094 static $ac_kw foo_t static_foo () {return 0; }
18095 $ac_kw foo_t foo () {return 0; }
18099 if ac_fn_c_try_compile "$LINENO"; then :
18100 ac_cv_c_inline=$ac_kw
18102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18103 test "$ac_cv_c_inline" != no && break
18107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
18108 $as_echo "$ac_cv_c_inline" >&6; }
18110 case $ac_cv_c_inline in
18113 case $ac_cv_c_inline in
18115 *) ac_val=$ac_cv_c_inline;;
18117 cat >>confdefs.h <<_ACEOF
18118 #ifndef __cplusplus
18119 #define inline $ac_val
18125 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
18126 if test "x$ac_cv_type_off_t" = x""yes; then :
18130 cat >>confdefs.h <<_ACEOF
18131 #define off_t long int
18136 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
18137 if test "x$ac_cv_type_size_t" = x""yes; then :
18141 cat >>confdefs.h <<_ACEOF
18142 #define size_t unsigned int
18148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long" >&5
18149 $as_echo_n "checking for long long... " >&6; }
18150 if test "${ac_cv_type_long_long+set}" = set; then :
18151 $as_echo_n "(cached) " >&6
18153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18154 /* end confdefs.h. */
18155 long long ll = 1LL; int i = 63;
18159 long long llmax = (long long) -1;
18160 return ll << i | ll >> i | llmax / ll | llmax % ll;
18165 if ac_fn_c_try_link "$LINENO"; then :
18166 ac_cv_type_long_long=yes
18168 ac_cv_type_long_long=no
18170 rm -f core conftest.err conftest.$ac_objext \
18171 conftest$ac_exeext conftest.$ac_ext
18173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long" >&5
18174 $as_echo "$ac_cv_type_long_long" >&6; }
18175 if test $ac_cv_type_long_long = yes; then
18177 $as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h
18182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
18183 $as_echo_n "checking for long double... " >&6; }
18184 if test "${gt_cv_c_long_double+set}" = set; then :
18185 $as_echo_n "(cached) " >&6
18187 if test "$GCC" = yes; then
18188 gt_cv_c_long_double=yes
18190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18191 /* end confdefs.h. */
18193 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
18194 long double foo = 0.0;
18195 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
18196 int array [2*(sizeof(long double) >= sizeof(double)) - 1];
18206 if ac_fn_c_try_compile "$LINENO"; then :
18207 gt_cv_c_long_double=yes
18209 gt_cv_c_long_double=no
18211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_long_double" >&5
18215 $as_echo "$gt_cv_c_long_double" >&6; }
18216 if test $gt_cv_c_long_double = yes; then
18218 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
18223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
18224 $as_echo_n "checking for wchar_t... " >&6; }
18225 if test "${gt_cv_c_wchar_t+set}" = set; then :
18226 $as_echo_n "(cached) " >&6
18228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18229 /* end confdefs.h. */
18230 #include <stddef.h>
18231 wchar_t foo = (wchar_t)'\0';
18240 if ac_fn_c_try_compile "$LINENO"; then :
18241 gt_cv_c_wchar_t=yes
18245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
18248 $as_echo "$gt_cv_c_wchar_t" >&6; }
18249 if test $gt_cv_c_wchar_t = yes; then
18251 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
18256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
18257 $as_echo_n "checking for wint_t... " >&6; }
18258 if test "${gt_cv_c_wint_t+set}" = set; then :
18259 $as_echo_n "(cached) " >&6
18261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18262 /* end confdefs.h. */
18264 wint_t foo = (wchar_t)'\0';
18273 if ac_fn_c_try_compile "$LINENO"; then :
18278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
18281 $as_echo "$gt_cv_c_wint_t" >&6; }
18282 if test $gt_cv_c_wint_t = yes; then
18284 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
18289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
18290 $as_echo_n "checking for inttypes.h... " >&6; }
18291 if test "${gl_cv_header_inttypes_h+set}" = set; then :
18292 $as_echo_n "(cached) " >&6
18294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18295 /* end confdefs.h. */
18296 #include <sys/types.h>
18297 #include <inttypes.h>
18301 uintmax_t i = (uintmax_t) -1;
18306 if ac_fn_c_try_compile "$LINENO"; then :
18307 gl_cv_header_inttypes_h=yes
18309 gl_cv_header_inttypes_h=no
18311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5
18314 $as_echo "$gl_cv_header_inttypes_h" >&6; }
18315 if test $gl_cv_header_inttypes_h = yes; then
18317 cat >>confdefs.h <<_ACEOF
18318 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
18324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
18325 $as_echo_n "checking for stdint.h... " >&6; }
18326 if test "${gl_cv_header_stdint_h+set}" = set; then :
18327 $as_echo_n "(cached) " >&6
18329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18330 /* end confdefs.h. */
18331 #include <sys/types.h>
18332 #include <stdint.h>
18336 uintmax_t i = (uintmax_t) -1;
18341 if ac_fn_c_try_compile "$LINENO"; then :
18342 gl_cv_header_stdint_h=yes
18344 gl_cv_header_stdint_h=no
18346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5
18349 $as_echo "$gl_cv_header_stdint_h" >&6; }
18350 if test $gl_cv_header_stdint_h = yes; then
18352 cat >>confdefs.h <<_ACEOF
18353 #define HAVE_STDINT_H_WITH_UINTMAX 1
18361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
18362 $as_echo_n "checking for intmax_t... " >&6; }
18363 if test "${gt_cv_c_intmax_t+set}" = set; then :
18364 $as_echo_n "(cached) " >&6
18366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18367 /* end confdefs.h. */
18369 #include <stddef.h>
18370 #include <stdlib.h>
18371 #if HAVE_STDINT_H_WITH_UINTMAX
18372 #include <stdint.h>
18374 #if HAVE_INTTYPES_H_WITH_UINTMAX
18375 #include <inttypes.h>
18386 if ac_fn_c_try_compile "$LINENO"; then :
18387 gt_cv_c_intmax_t=yes
18389 gt_cv_c_intmax_t=no
18391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
18394 $as_echo "$gt_cv_c_intmax_t" >&6; }
18395 if test $gt_cv_c_intmax_t = yes; then
18397 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
18403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5
18404 $as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
18405 if test "${gt_cv_func_printf_posix+set}" = set; then :
18406 $as_echo_n "(cached) " >&6
18409 if test "$cross_compiling" = yes; then :
18411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18412 /* end confdefs.h. */
18414 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
18419 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18420 $EGREP "notposix" >/dev/null 2>&1; then :
18421 gt_cv_func_printf_posix="guessing no"
18423 gt_cv_func_printf_posix="guessing yes"
18429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18430 /* end confdefs.h. */
18433 #include <string.h>
18434 /* The string "%2$d %1$d", with dollar characters protected from the shell's
18435 dollar expansion (possibly an autoconf bug). */
18436 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
18437 static char buf[100];
18440 sprintf (buf, format, 33, 55);
18441 return (strcmp (buf, "55 33") != 0);
18444 if ac_fn_c_try_run "$LINENO"; then :
18445 gt_cv_func_printf_posix=yes
18447 gt_cv_func_printf_posix=no
18449 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18450 conftest.$ac_objext conftest.beam conftest.$ac_ext
18455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5
18456 $as_echo "$gt_cv_func_printf_posix" >&6; }
18457 case $gt_cv_func_printf_posix in
18460 $as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h
18465 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
18466 # for constant arguments. Useless!
18467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
18468 $as_echo_n "checking for working alloca.h... " >&6; }
18469 if test "${ac_cv_working_alloca_h+set}" = set; then :
18470 $as_echo_n "(cached) " >&6
18472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18473 /* end confdefs.h. */
18474 #include <alloca.h>
18478 char *p = (char *) alloca (2 * sizeof (int));
18484 if ac_fn_c_try_link "$LINENO"; then :
18485 ac_cv_working_alloca_h=yes
18487 ac_cv_working_alloca_h=no
18489 rm -f core conftest.err conftest.$ac_objext \
18490 conftest$ac_exeext conftest.$ac_ext
18492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
18493 $as_echo "$ac_cv_working_alloca_h" >&6; }
18494 if test $ac_cv_working_alloca_h = yes; then
18496 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
18500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
18501 $as_echo_n "checking for alloca... " >&6; }
18502 if test "${ac_cv_func_alloca_works+set}" = set; then :
18503 $as_echo_n "(cached) " >&6
18505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18506 /* end confdefs.h. */
18508 # define alloca __builtin_alloca
18511 # include <malloc.h>
18512 # define alloca _alloca
18514 # ifdef HAVE_ALLOCA_H
18515 # include <alloca.h>
18520 # ifndef alloca /* predefined by HP cc +Olibcalls */
18531 char *p = (char *) alloca (1);
18537 if ac_fn_c_try_link "$LINENO"; then :
18538 ac_cv_func_alloca_works=yes
18540 ac_cv_func_alloca_works=no
18542 rm -f core conftest.err conftest.$ac_objext \
18543 conftest$ac_exeext conftest.$ac_ext
18545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
18546 $as_echo "$ac_cv_func_alloca_works" >&6; }
18548 if test $ac_cv_func_alloca_works = yes; then
18550 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
18553 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
18554 # that cause trouble. Some versions do not even contain alloca or
18555 # contain a buggy version. If you still want to use their alloca,
18556 # use ar to extract alloca.o from them instead of compiling alloca.c.
18558 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
18560 $as_echo "#define C_ALLOCA 1" >>confdefs.h
18563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
18564 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
18565 if test "${ac_cv_os_cray+set}" = set; then :
18566 $as_echo_n "(cached) " >&6
18568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18569 /* end confdefs.h. */
18570 #if defined CRAY && ! defined CRAY2
18577 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18578 $EGREP "webecray" >/dev/null 2>&1; then :
18586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
18587 $as_echo "$ac_cv_os_cray" >&6; }
18588 if test $ac_cv_os_cray = yes; then
18589 for ac_func in _getb67 GETB67 getb67; do
18590 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18591 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18592 eval as_val=\$$as_ac_var
18593 if test "x$as_val" = x""yes; then :
18595 cat >>confdefs.h <<_ACEOF
18596 #define CRAY_STACKSEG_END $ac_func
18605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
18606 $as_echo_n "checking stack direction for C alloca... " >&6; }
18607 if test "${ac_cv_c_stack_direction+set}" = set; then :
18608 $as_echo_n "(cached) " >&6
18610 if test "$cross_compiling" = yes; then :
18611 ac_cv_c_stack_direction=0
18613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18614 /* end confdefs.h. */
18615 $ac_includes_default
18617 find_stack_direction ()
18619 static char *addr = 0;
18624 return find_stack_direction ();
18627 return (&dummy > addr) ? 1 : -1;
18633 return find_stack_direction () < 0;
18636 if ac_fn_c_try_run "$LINENO"; then :
18637 ac_cv_c_stack_direction=1
18639 ac_cv_c_stack_direction=-1
18641 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18642 conftest.$ac_objext conftest.beam conftest.$ac_ext
18646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
18647 $as_echo "$ac_cv_c_stack_direction" >&6; }
18648 cat >>confdefs.h <<_ACEOF
18649 #define STACK_DIRECTION $ac_cv_c_stack_direction
18658 for ac_header in $ac_header_list
18660 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18661 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
18663 eval as_val=\$$as_ac_Header
18664 if test "x$as_val" = x""yes; then :
18665 cat >>confdefs.h <<_ACEOF
18666 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18680 for ac_func in getpagesize
18682 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
18683 if test "x$ac_cv_func_getpagesize" = x""yes; then :
18684 cat >>confdefs.h <<_ACEOF
18685 #define HAVE_GETPAGESIZE 1
18691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
18692 $as_echo_n "checking for working mmap... " >&6; }
18693 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
18694 $as_echo_n "(cached) " >&6
18696 if test "$cross_compiling" = yes; then :
18697 ac_cv_func_mmap_fixed_mapped=no
18699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18700 /* end confdefs.h. */
18701 $ac_includes_default
18702 /* malloc might have been renamed as rpl_malloc. */
18705 /* Thanks to Mike Haertel and Jim Avera for this test.
18706 Here is a matrix of mmap possibilities:
18707 mmap private not fixed
18708 mmap private fixed at somewhere currently unmapped
18709 mmap private fixed at somewhere already mapped
18710 mmap shared not fixed
18711 mmap shared fixed at somewhere currently unmapped
18712 mmap shared fixed at somewhere already mapped
18713 For private mappings, we should verify that changes cannot be read()
18714 back from the file, nor mmap's back from the file at a different
18715 address. (There have been systems where private was not correctly
18716 implemented like the infamous i386 svr4.0, and systems where the
18717 VM page cache was not coherent with the file system buffer cache
18718 like early versions of FreeBSD and possibly contemporary NetBSD.)
18719 For shared mappings, we should conversely verify that changes get
18720 propagated back to all the places they're supposed to be.
18722 Grep wants private fixed already mapped.
18723 The main things grep needs to know about mmap are:
18724 * does it exist and is it safe to write into the mmap'd area
18725 * how to use it (BSD variants) */
18728 #include <sys/mman.h>
18730 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
18734 /* This mess was copied from the GNU getpagesize.h. */
18735 #ifndef HAVE_GETPAGESIZE
18736 # ifdef _SC_PAGESIZE
18737 # define getpagesize() sysconf(_SC_PAGESIZE)
18738 # else /* no _SC_PAGESIZE */
18739 # ifdef HAVE_SYS_PARAM_H
18740 # include <sys/param.h>
18741 # ifdef EXEC_PAGESIZE
18742 # define getpagesize() EXEC_PAGESIZE
18743 # else /* no EXEC_PAGESIZE */
18745 # define getpagesize() NBPG * CLSIZE
18748 # endif /* no CLSIZE */
18749 # else /* no NBPG */
18751 # define getpagesize() NBPC
18752 # else /* no NBPC */
18754 # define getpagesize() PAGESIZE
18755 # endif /* PAGESIZE */
18756 # endif /* no NBPC */
18757 # endif /* no NBPG */
18758 # endif /* no EXEC_PAGESIZE */
18759 # else /* no HAVE_SYS_PARAM_H */
18760 # define getpagesize() 8192 /* punt totally */
18761 # endif /* no HAVE_SYS_PARAM_H */
18762 # endif /* no _SC_PAGESIZE */
18764 #endif /* no HAVE_GETPAGESIZE */
18769 char *data, *data2, *data3;
18773 pagesize = getpagesize ();
18775 /* First, make a file with some known garbage in it. */
18776 data = (char *) malloc (pagesize);
18779 for (i = 0; i < pagesize; ++i)
18780 *(data + i) = rand ();
18782 fd = creat ("conftest.mmap", 0600);
18785 if (write (fd, data, pagesize) != pagesize)
18789 /* Next, check that the tail of a page is zero-filled. File must have
18790 non-zero length, otherwise we risk SIGBUS for entire page. */
18791 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
18795 if (write (fd2, data2, 1) != 1)
18797 data2 = mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
18798 if (data2 == MAP_FAILED)
18800 for (i = 0; i < pagesize; ++i)
18804 if (munmap (data2, pagesize))
18807 /* Next, try to mmap the file at a fixed address which already has
18808 something else allocated at it. If we can, also make sure that
18809 we see the same garbage. */
18810 fd = open ("conftest.mmap", O_RDWR);
18813 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
18814 MAP_PRIVATE | MAP_FIXED, fd, 0L))
18816 for (i = 0; i < pagesize; ++i)
18817 if (*(data + i) != *(data2 + i))
18820 /* Finally, make sure that changes to the mapped area do not
18821 percolate back to the file as seen by read(). (This is a bug on
18822 some variants of i386 svr4.0.) */
18823 for (i = 0; i < pagesize; ++i)
18824 *(data2 + i) = *(data2 + i) + 1;
18825 data3 = (char *) malloc (pagesize);
18828 if (read (fd, data3, pagesize) != pagesize)
18830 for (i = 0; i < pagesize; ++i)
18831 if (*(data + i) != *(data3 + i))
18837 if ac_fn_c_try_run "$LINENO"; then :
18838 ac_cv_func_mmap_fixed_mapped=yes
18840 ac_cv_func_mmap_fixed_mapped=no
18842 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18843 conftest.$ac_objext conftest.beam conftest.$ac_ext
18847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
18848 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
18849 if test $ac_cv_func_mmap_fixed_mapped = yes; then
18851 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
18854 rm -f conftest.mmap conftest.txt
18857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5
18858 $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
18859 if test "${ac_cv_gnu_library_2_1+set}" = set; then :
18860 $as_echo_n "(cached) " >&6
18862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18863 /* end confdefs.h. */
18865 #include <features.h>
18866 #ifdef __GNU_LIBRARY__
18867 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
18873 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18874 $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
18875 ac_cv_gnu_library_2_1=yes
18877 ac_cv_gnu_library_2_1=no
18884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
18885 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
18887 GLIBC21="$ac_cv_gnu_library_2_1"
18892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
18893 $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
18894 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then :
18895 $as_echo_n "(cached) " >&6
18898 if test "$cross_compiling" = yes; then :
18900 # Guess based on the CPU.
18901 case "$host_cpu" in
18902 alpha* | i3456786 | m68k | s390*)
18903 gt_cv_int_divbyzero_sigfpe="guessing yes";;
18905 gt_cv_int_divbyzero_sigfpe="guessing no";;
18909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18910 /* end confdefs.h. */
18912 #include <stdlib.h>
18913 #include <signal.h>
18917 sigfpe_handler (int sig)
18919 sigfpe_handler (sig) int sig;
18922 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
18923 exit (sig != SIGFPE);
18933 signal (SIGFPE, sigfpe_handler);
18934 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
18935 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
18936 signal (SIGTRAP, sigfpe_handler);
18938 /* Linux/SPARC yields signal SIGILL. */
18939 #if defined (__sparc__) && defined (__linux__)
18940 signal (SIGILL, sigfpe_handler);
18949 if ac_fn_c_try_run "$LINENO"; then :
18950 gt_cv_int_divbyzero_sigfpe=yes
18952 gt_cv_int_divbyzero_sigfpe=no
18954 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18955 conftest.$ac_objext conftest.beam conftest.$ac_ext
18960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
18961 $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
18962 case "$gt_cv_int_divbyzero_sigfpe" in
18967 cat >>confdefs.h <<_ACEOF
18968 #define INTDIV0_RAISES_SIGFPE $value
18973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long" >&5
18974 $as_echo_n "checking for unsigned long long... " >&6; }
18975 if test "${ac_cv_type_unsigned_long_long+set}" = set; then :
18976 $as_echo_n "(cached) " >&6
18978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18979 /* end confdefs.h. */
18980 unsigned long long ull = 1ULL; int i = 63;
18984 unsigned long long ullmax = (unsigned long long) -1;
18985 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
18990 if ac_fn_c_try_link "$LINENO"; then :
18991 ac_cv_type_unsigned_long_long=yes
18993 ac_cv_type_unsigned_long_long=no
18995 rm -f core conftest.err conftest.$ac_objext \
18996 conftest$ac_exeext conftest.$ac_ext
18998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long" >&5
18999 $as_echo "$ac_cv_type_unsigned_long_long" >&6; }
19000 if test $ac_cv_type_unsigned_long_long = yes; then
19002 $as_echo "#define HAVE_UNSIGNED_LONG_LONG 1" >>confdefs.h
19009 if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
19011 test $ac_cv_type_unsigned_long_long = yes \
19012 && ac_type='unsigned long long' \
19013 || ac_type='unsigned long'
19015 cat >>confdefs.h <<_ACEOF
19016 #define uintmax_t $ac_type
19021 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
19026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
19027 $as_echo_n "checking for inttypes.h... " >&6; }
19028 if test "${gt_cv_header_inttypes_h+set}" = set; then :
19029 $as_echo_n "(cached) " >&6
19032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19033 /* end confdefs.h. */
19034 #include <sys/types.h>
19035 #include <inttypes.h>
19044 if ac_fn_c_try_compile "$LINENO"; then :
19045 gt_cv_header_inttypes_h=yes
19047 gt_cv_header_inttypes_h=no
19049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_header_inttypes_h" >&5
19053 $as_echo "$gt_cv_header_inttypes_h" >&6; }
19054 if test $gt_cv_header_inttypes_h = yes; then
19056 cat >>confdefs.h <<_ACEOF
19057 #define HAVE_INTTYPES_H 1
19064 if test $gt_cv_header_inttypes_h = yes; then
19065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
19066 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
19067 if test "${gt_cv_inttypes_pri_broken+set}" = set; then :
19068 $as_echo_n "(cached) " >&6
19071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19072 /* end confdefs.h. */
19073 #include <inttypes.h>
19086 if ac_fn_c_try_compile "$LINENO"; then :
19087 gt_cv_inttypes_pri_broken=no
19089 gt_cv_inttypes_pri_broken=yes
19091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
19095 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
19097 if test "$gt_cv_inttypes_pri_broken" = yes; then
19099 cat >>confdefs.h <<_ACEOF
19100 #define PRI_MACROS_BROKEN 1
19106 for ac_header in stdint.h
19108 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
19109 if test "x$ac_cv_header_stdint_h" = x""yes; then :
19110 cat >>confdefs.h <<_ACEOF
19111 #define HAVE_STDINT_H 1
19118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
19119 $as_echo_n "checking for SIZE_MAX... " >&6; }
19121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19122 /* end confdefs.h. */
19124 #include <limits.h>
19126 #include <stdint.h>
19133 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19134 $EGREP "Found it" >/dev/null 2>&1; then :
19139 if test -z "$result"; then
19140 if ac_fn_c_compute_int "$LINENO" "~(size_t)0 / 10" "res_hi" "#include <stddef.h>"; then :
19147 if ac_fn_c_compute_int "$LINENO" "~(size_t)0 % 10" "res_lo" "#include <stddef.h>"; then :
19154 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint" "#include <stddef.h>"; then :
19161 if test "$fits_in_uint" = 1; then
19162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19163 /* end confdefs.h. */
19164 #include <stddef.h>
19166 extern unsigned long foo;
19176 if ac_fn_c_try_compile "$LINENO"; then :
19179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19181 if test -z "$result"; then
19182 if test "$fits_in_uint" = 1; then
19183 result="$res_hi$res_lo"U
19185 result="$res_hi$res_lo"UL
19188 result='~(size_t)0'
19191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
19192 $as_echo "$result" >&6; }
19193 if test "$result" != yes; then
19195 cat >>confdefs.h <<_ACEOF
19196 #define SIZE_MAX $result
19204 for ac_header in stdint.h
19206 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
19207 if test "x$ac_cv_header_stdint_h" = x""yes; then :
19208 cat >>confdefs.h <<_ACEOF
19209 #define HAVE_STDINT_H 1
19223 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
19224 if test "x$ac_cv_type_ptrdiff_t" = x""yes; then :
19228 $as_echo "#define ptrdiff_t long" >>confdefs.h
19233 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
19234 stdlib.h string.h unistd.h sys/param.h
19236 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19237 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19238 eval as_val=\$$as_ac_Header
19239 if test "x$as_val" = x""yes; then :
19240 cat >>confdefs.h <<_ACEOF
19241 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19248 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
19249 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
19250 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
19253 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19254 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19255 eval as_val=\$$as_ac_var
19256 if test "x$as_val" = x""yes; then :
19257 cat >>confdefs.h <<_ACEOF
19258 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snprintf is declared" >&5
19267 $as_echo_n "checking whether _snprintf is declared... " >&6; }
19268 if test "${ac_cv_have_decl__snprintf+set}" = set; then :
19269 $as_echo_n "(cached) " >&6
19271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19272 /* end confdefs.h. */
19279 char *p = (char *) _snprintf;
19286 if ac_fn_c_try_compile "$LINENO"; then :
19287 ac_cv_have_decl__snprintf=yes
19289 ac_cv_have_decl__snprintf=no
19291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snprintf" >&5
19294 $as_echo "$ac_cv_have_decl__snprintf" >&6; }
19295 if test $ac_cv_have_decl__snprintf = yes; then
19301 cat >>confdefs.h <<_ACEOF
19302 #define HAVE_DECL__SNPRINTF $gt_value
19307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snwprintf is declared" >&5
19308 $as_echo_n "checking whether _snwprintf is declared... " >&6; }
19309 if test "${ac_cv_have_decl__snwprintf+set}" = set; then :
19310 $as_echo_n "(cached) " >&6
19312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19313 /* end confdefs.h. */
19320 char *p = (char *) _snwprintf;
19327 if ac_fn_c_try_compile "$LINENO"; then :
19328 ac_cv_have_decl__snwprintf=yes
19330 ac_cv_have_decl__snwprintf=no
19332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snwprintf" >&5
19335 $as_echo "$ac_cv_have_decl__snwprintf" >&6; }
19336 if test $ac_cv_have_decl__snwprintf = yes; then
19342 cat >>confdefs.h <<_ACEOF
19343 #define HAVE_DECL__SNWPRINTF $gt_value
19349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether feof_unlocked is declared" >&5
19350 $as_echo_n "checking whether feof_unlocked is declared... " >&6; }
19351 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then :
19352 $as_echo_n "(cached) " >&6
19354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19355 /* end confdefs.h. */
19361 #ifndef feof_unlocked
19362 char *p = (char *) feof_unlocked;
19369 if ac_fn_c_try_compile "$LINENO"; then :
19370 ac_cv_have_decl_feof_unlocked=yes
19372 ac_cv_have_decl_feof_unlocked=no
19374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_feof_unlocked" >&5
19377 $as_echo "$ac_cv_have_decl_feof_unlocked" >&6; }
19378 if test $ac_cv_have_decl_feof_unlocked = yes; then
19384 cat >>confdefs.h <<_ACEOF
19385 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
19390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fgets_unlocked is declared" >&5
19391 $as_echo_n "checking whether fgets_unlocked is declared... " >&6; }
19392 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then :
19393 $as_echo_n "(cached) " >&6
19395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19396 /* end confdefs.h. */
19402 #ifndef fgets_unlocked
19403 char *p = (char *) fgets_unlocked;
19410 if ac_fn_c_try_compile "$LINENO"; then :
19411 ac_cv_have_decl_fgets_unlocked=yes
19413 ac_cv_have_decl_fgets_unlocked=no
19415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_fgets_unlocked" >&5
19418 $as_echo "$ac_cv_have_decl_fgets_unlocked" >&6; }
19419 if test $ac_cv_have_decl_fgets_unlocked = yes; then
19425 cat >>confdefs.h <<_ACEOF
19426 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
19431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getc_unlocked is declared" >&5
19432 $as_echo_n "checking whether getc_unlocked is declared... " >&6; }
19433 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then :
19434 $as_echo_n "(cached) " >&6
19436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19437 /* end confdefs.h. */
19443 #ifndef getc_unlocked
19444 char *p = (char *) getc_unlocked;
19451 if ac_fn_c_try_compile "$LINENO"; then :
19452 ac_cv_have_decl_getc_unlocked=yes
19454 ac_cv_have_decl_getc_unlocked=no
19456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_getc_unlocked" >&5
19459 $as_echo "$ac_cv_have_decl_getc_unlocked" >&6; }
19460 if test $ac_cv_have_decl_getc_unlocked = yes; then
19466 cat >>confdefs.h <<_ACEOF
19467 #define HAVE_DECL_GETC_UNLOCKED $gt_value
19472 case $gt_cv_func_printf_posix in
19473 *yes) HAVE_POSIX_PRINTF=1 ;;
19474 *) HAVE_POSIX_PRINTF=0 ;;
19477 if test "$ac_cv_func_asprintf" = yes; then
19483 if test "$ac_cv_func_snprintf" = yes; then
19489 if test "$ac_cv_func_wprintf" = yes; then
19501 am_save_CPPFLAGS="$CPPFLAGS"
19503 for element in $INCICONV; do
19505 for x in $CPPFLAGS; do
19507 acl_save_prefix="$prefix"
19508 prefix="$acl_final_prefix"
19509 acl_save_exec_prefix="$exec_prefix"
19510 exec_prefix="$acl_final_exec_prefix"
19512 exec_prefix="$acl_save_exec_prefix"
19513 prefix="$acl_save_prefix"
19515 if test "X$x" = "X$element"; then
19520 if test -z "$haveit"; then
19521 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
19526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
19527 $as_echo_n "checking for iconv... " >&6; }
19528 if test "${am_cv_func_iconv+set}" = set; then :
19529 $as_echo_n "(cached) " >&6
19532 am_cv_func_iconv="no, consider installing GNU libiconv"
19534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19535 /* end confdefs.h. */
19536 #include <stdlib.h>
19541 iconv_t cd = iconv_open("","");
19542 iconv(cd,NULL,NULL,NULL,NULL);
19548 if ac_fn_c_try_link "$LINENO"; then :
19549 am_cv_func_iconv=yes
19551 rm -f core conftest.err conftest.$ac_objext \
19552 conftest$ac_exeext conftest.$ac_ext
19553 if test "$am_cv_func_iconv" != yes; then
19554 am_save_LIBS="$LIBS"
19555 LIBS="$LIBS $LIBICONV"
19556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19557 /* end confdefs.h. */
19558 #include <stdlib.h>
19563 iconv_t cd = iconv_open("","");
19564 iconv(cd,NULL,NULL,NULL,NULL);
19570 if ac_fn_c_try_link "$LINENO"; then :
19571 am_cv_lib_iconv=yes
19572 am_cv_func_iconv=yes
19574 rm -f core conftest.err conftest.$ac_objext \
19575 conftest$ac_exeext conftest.$ac_ext
19576 LIBS="$am_save_LIBS"
19580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
19581 $as_echo "$am_cv_func_iconv" >&6; }
19582 if test "$am_cv_func_iconv" = yes; then
19584 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
19587 if test "$am_cv_lib_iconv" = yes; then
19588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
19589 $as_echo_n "checking how to link with libiconv... " >&6; }
19590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
19591 $as_echo "$LIBICONV" >&6; }
19593 CPPFLAGS="$am_save_CPPFLAGS"
19600 if test "$am_cv_func_iconv" = yes; then
19601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
19602 $as_echo_n "checking for iconv declaration... " >&6; }
19603 if test "${am_cv_proto_iconv+set}" = set; then :
19604 $as_echo_n "(cached) " >&6
19607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19608 /* end confdefs.h. */
19610 #include <stdlib.h>
19616 #if defined(__STDC__) || defined(__cplusplus)
19617 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
19630 if ac_fn_c_try_compile "$LINENO"; then :
19631 am_cv_proto_iconv_arg1=""
19633 am_cv_proto_iconv_arg1="const"
19635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19636 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);"
19639 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
19640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
19641 }$am_cv_proto_iconv" >&5
19643 }$am_cv_proto_iconv" >&6; }
19645 cat >>confdefs.h <<_ACEOF
19646 #define ICONV_CONST $am_cv_proto_iconv_arg1
19652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
19653 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
19654 if test "${am_cv_langinfo_codeset+set}" = set; then :
19655 $as_echo_n "(cached) " >&6
19657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19658 /* end confdefs.h. */
19659 #include <langinfo.h>
19663 char* cs = nl_langinfo(CODESET);
19668 if ac_fn_c_try_link "$LINENO"; then :
19669 am_cv_langinfo_codeset=yes
19671 am_cv_langinfo_codeset=no
19673 rm -f core conftest.err conftest.$ac_objext \
19674 conftest$ac_exeext conftest.$ac_ext
19677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
19678 $as_echo "$am_cv_langinfo_codeset" >&6; }
19679 if test $am_cv_langinfo_codeset = yes; then
19681 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
19685 if test $ac_cv_header_locale_h = yes; then
19687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
19688 $as_echo_n "checking for LC_MESSAGES... " >&6; }
19689 if test "${gt_cv_val_LC_MESSAGES+set}" = set; then :
19690 $as_echo_n "(cached) " >&6
19692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19693 /* end confdefs.h. */
19694 #include <locale.h>
19703 if ac_fn_c_try_link "$LINENO"; then :
19704 gt_cv_val_LC_MESSAGES=yes
19706 gt_cv_val_LC_MESSAGES=no
19708 rm -f core conftest.err conftest.$ac_objext \
19709 conftest$ac_exeext conftest.$ac_ext
19711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_val_LC_MESSAGES" >&5
19712 $as_echo "$gt_cv_val_LC_MESSAGES" >&6; }
19713 if test $gt_cv_val_LC_MESSAGES = yes; then
19715 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
19721 if test -n "$INTL_MACOSX_LIBS"; then
19722 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
19725 for ac_prog in bison
19727 # Extract the first word of "$ac_prog", so it can be a program name with args.
19728 set dummy $ac_prog; ac_word=$2
19729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19730 $as_echo_n "checking for $ac_word... " >&6; }
19731 if test "${ac_cv_prog_INTLBISON+set}" = set; then :
19732 $as_echo_n "(cached) " >&6
19734 if test -n "$INTLBISON"; then
19735 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
19737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19738 for as_dir in $PATH
19741 test -z "$as_dir" && as_dir=.
19742 for ac_exec_ext in '' $ac_executable_extensions; do
19743 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19744 ac_cv_prog_INTLBISON="$ac_prog"
19745 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19754 INTLBISON=$ac_cv_prog_INTLBISON
19755 if test -n "$INTLBISON"; then
19756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
19757 $as_echo "$INTLBISON" >&6; }
19759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19760 $as_echo "no" >&6; }
19764 test -n "$INTLBISON" && break
19767 if test -z "$INTLBISON"; then
19770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
19771 $as_echo_n "checking version of bison... " >&6; }
19772 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
19773 case $ac_prog_version in
19774 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
19775 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
19776 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
19777 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
19779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
19780 $as_echo "$ac_prog_version" >&6; }
19782 if test $ac_verc_fail = yes; then
19801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
19802 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
19803 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then :
19804 $as_echo_n "(cached) " >&6
19806 gt_save_CPPFLAGS="$CPPFLAGS"
19807 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
19808 gt_save_LIBS="$LIBS"
19809 LIBS="$LIBS -framework CoreFoundation"
19810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19811 /* end confdefs.h. */
19812 #include <CFPreferences.h>
19816 CFPreferencesCopyAppValue(NULL, NULL)
19821 if ac_fn_c_try_link "$LINENO"; then :
19822 gt_cv_func_CFPreferencesCopyAppValue=yes
19824 gt_cv_func_CFPreferencesCopyAppValue=no
19826 rm -f core conftest.err conftest.$ac_objext \
19827 conftest$ac_exeext conftest.$ac_ext
19828 CPPFLAGS="$gt_save_CPPFLAGS"
19829 LIBS="$gt_save_LIBS"
19831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
19832 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
19833 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
19835 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
19838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
19839 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
19840 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then :
19841 $as_echo_n "(cached) " >&6
19843 gt_save_CPPFLAGS="$CPPFLAGS"
19844 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
19845 gt_save_LIBS="$LIBS"
19846 LIBS="$LIBS -framework CoreFoundation"
19847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19848 /* end confdefs.h. */
19849 #include <CFLocale.h>
19853 CFLocaleCopyCurrent();
19858 if ac_fn_c_try_link "$LINENO"; then :
19859 gt_cv_func_CFLocaleCopyCurrent=yes
19861 gt_cv_func_CFLocaleCopyCurrent=no
19863 rm -f core conftest.err conftest.$ac_objext \
19864 conftest$ac_exeext conftest.$ac_ext
19865 CPPFLAGS="$gt_save_CPPFLAGS"
19866 LIBS="$gt_save_LIBS"
19868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
19869 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
19870 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
19872 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
19876 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
19877 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
19883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
19884 $as_echo_n "checking whether NLS is requested... " >&6; }
19885 # Check whether --enable-nls was given.
19886 if test "${enable_nls+set}" = set; then :
19887 enableval=$enable_nls; USE_NLS=$enableval
19892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
19893 $as_echo "$USE_NLS" >&6; }
19898 BUILD_INCLUDED_LIBINTL=no
19899 USE_INCLUDED_LIBINTL=no
19905 if test "$USE_NLS" = "yes"; then
19906 gt_use_preinstalled_gnugettext=no
19908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
19909 $as_echo_n "checking whether included gettext is requested... " >&6; }
19911 # Check whether --with-included-gettext was given.
19912 if test "${with_included_gettext+set}" = set; then :
19913 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
19915 nls_cv_force_use_gnu_gettext=no
19918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
19919 $as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
19921 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
19922 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
19929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
19930 $as_echo_n "checking for GNU gettext in libc... " >&6; }
19931 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then :
19932 $as_echo_n "(cached) " >&6
19934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19935 /* end confdefs.h. */
19936 #include <libintl.h>
19937 extern int _nl_msg_cat_cntr;
19938 extern int *_nl_domain_bindings;
19942 bindtextdomain ("", "");
19943 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
19948 if ac_fn_c_try_link "$LINENO"; then :
19949 gt_cv_func_gnugettext1_libc=yes
19951 gt_cv_func_gnugettext1_libc=no
19953 rm -f core conftest.err conftest.$ac_objext \
19954 conftest$ac_exeext conftest.$ac_ext
19956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5
19957 $as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
19959 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
19965 acl_save_prefix="$prefix"
19966 prefix="$acl_final_prefix"
19967 acl_save_exec_prefix="$exec_prefix"
19968 exec_prefix="$acl_final_exec_prefix"
19970 eval additional_includedir=\"$includedir\"
19971 eval additional_libdir=\"$libdir\"
19973 exec_prefix="$acl_save_exec_prefix"
19974 prefix="$acl_save_prefix"
19977 # Check whether --with-libintl-prefix was given.
19978 if test "${with_libintl_prefix+set}" = set; then :
19979 withval=$with_libintl_prefix;
19980 if test "X$withval" = "Xno"; then
19983 if test "X$withval" = "X"; then
19985 acl_save_prefix="$prefix"
19986 prefix="$acl_final_prefix"
19987 acl_save_exec_prefix="$exec_prefix"
19988 exec_prefix="$acl_final_exec_prefix"
19990 eval additional_includedir=\"$includedir\"
19991 eval additional_libdir=\"$libdir\"
19993 exec_prefix="$acl_save_exec_prefix"
19994 prefix="$acl_save_prefix"
19997 additional_includedir="$withval/include"
19998 additional_libdir="$withval/lib"
20009 names_already_handled=
20010 names_next_round='intl '
20011 while test -n "$names_next_round"; do
20012 names_this_round="$names_next_round"
20014 for name in $names_this_round; do
20016 for n in $names_already_handled; do
20017 if test "$n" = "$name"; then
20018 already_handled=yes
20022 if test -z "$already_handled"; then
20023 names_already_handled="$names_already_handled $name"
20024 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
20025 eval value=\"\$HAVE_LIB$uppername\"
20026 if test -n "$value"; then
20027 if test "$value" = yes; then
20028 eval value=\"\$LIB$uppername\"
20029 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
20030 eval value=\"\$LTLIB$uppername\"
20031 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
20040 if test $use_additional = yes; then
20041 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
20042 found_dir="$additional_libdir"
20043 found_so="$additional_libdir/lib$name.$shlibext"
20044 if test -f "$additional_libdir/lib$name.la"; then
20045 found_la="$additional_libdir/lib$name.la"
20048 if test -f "$additional_libdir/lib$name.$libext"; then
20049 found_dir="$additional_libdir"
20050 found_a="$additional_libdir/lib$name.$libext"
20051 if test -f "$additional_libdir/lib$name.la"; then
20052 found_la="$additional_libdir/lib$name.la"
20057 if test "X$found_dir" = "X"; then
20058 for x in $LDFLAGS $LTLIBINTL; do
20060 acl_save_prefix="$prefix"
20061 prefix="$acl_final_prefix"
20062 acl_save_exec_prefix="$exec_prefix"
20063 exec_prefix="$acl_final_exec_prefix"
20065 exec_prefix="$acl_save_exec_prefix"
20066 prefix="$acl_save_prefix"
20070 dir=`echo "X$x" | sed -e 's/^X-L//'`
20071 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
20073 found_so="$dir/lib$name.$shlibext"
20074 if test -f "$dir/lib$name.la"; then
20075 found_la="$dir/lib$name.la"
20078 if test -f "$dir/lib$name.$libext"; then
20080 found_a="$dir/lib$name.$libext"
20081 if test -f "$dir/lib$name.la"; then
20082 found_la="$dir/lib$name.la"
20088 if test "X$found_dir" != "X"; then
20093 if test "X$found_dir" != "X"; then
20094 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
20095 if test "X$found_so" != "X"; then
20096 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
20097 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
20100 for x in $ltrpathdirs; do
20101 if test "X$x" = "X$found_dir"; then
20106 if test -z "$haveit"; then
20107 ltrpathdirs="$ltrpathdirs $found_dir"
20109 if test "$hardcode_direct" = yes; then
20110 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
20112 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
20113 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
20115 for x in $rpathdirs; do
20116 if test "X$x" = "X$found_dir"; then
20121 if test -z "$haveit"; then
20122 rpathdirs="$rpathdirs $found_dir"
20126 for x in $LDFLAGS $LIBINTL; do
20128 acl_save_prefix="$prefix"
20129 prefix="$acl_final_prefix"
20130 acl_save_exec_prefix="$exec_prefix"
20131 exec_prefix="$acl_final_exec_prefix"
20133 exec_prefix="$acl_save_exec_prefix"
20134 prefix="$acl_save_prefix"
20136 if test "X$x" = "X-L$found_dir"; then
20141 if test -z "$haveit"; then
20142 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
20144 if test "$hardcode_minus_L" != no; then
20145 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
20147 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
20153 if test "X$found_a" != "X"; then
20154 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
20156 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
20159 additional_includedir=
20160 case "$found_dir" in
20162 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
20163 additional_includedir="$basedir/include"
20166 if test "X$additional_includedir" != "X"; then
20167 if test "X$additional_includedir" != "X/usr/include"; then
20169 if test "X$additional_includedir" = "X/usr/local/include"; then
20170 if test -n "$GCC"; then
20172 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
20176 if test -z "$haveit"; then
20177 for x in $CPPFLAGS $INCINTL; do
20179 acl_save_prefix="$prefix"
20180 prefix="$acl_final_prefix"
20181 acl_save_exec_prefix="$exec_prefix"
20182 exec_prefix="$acl_final_exec_prefix"
20184 exec_prefix="$acl_save_exec_prefix"
20185 prefix="$acl_save_prefix"
20187 if test "X$x" = "X-I$additional_includedir"; then
20192 if test -z "$haveit"; then
20193 if test -d "$additional_includedir"; then
20194 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
20200 if test -n "$found_la"; then
20201 save_libdir="$libdir"
20202 case "$found_la" in
20203 */* | *\\*) . "$found_la" ;;
20204 *) . "./$found_la" ;;
20206 libdir="$save_libdir"
20207 for dep in $dependency_libs; do
20210 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
20211 if test "X$additional_libdir" != "X/usr/lib"; then
20213 if test "X$additional_libdir" = "X/usr/local/lib"; then
20214 if test -n "$GCC"; then
20216 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
20220 if test -z "$haveit"; then
20222 for x in $LDFLAGS $LIBINTL; do
20224 acl_save_prefix="$prefix"
20225 prefix="$acl_final_prefix"
20226 acl_save_exec_prefix="$exec_prefix"
20227 exec_prefix="$acl_final_exec_prefix"
20229 exec_prefix="$acl_save_exec_prefix"
20230 prefix="$acl_save_prefix"
20232 if test "X$x" = "X-L$additional_libdir"; then
20237 if test -z "$haveit"; then
20238 if test -d "$additional_libdir"; then
20239 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
20243 for x in $LDFLAGS $LTLIBINTL; do
20245 acl_save_prefix="$prefix"
20246 prefix="$acl_final_prefix"
20247 acl_save_exec_prefix="$exec_prefix"
20248 exec_prefix="$acl_final_exec_prefix"
20250 exec_prefix="$acl_save_exec_prefix"
20251 prefix="$acl_save_prefix"
20253 if test "X$x" = "X-L$additional_libdir"; then
20258 if test -z "$haveit"; then
20259 if test -d "$additional_libdir"; then
20260 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
20267 dir=`echo "X$dep" | sed -e 's/^X-R//'`
20268 if test "$enable_rpath" != no; then
20270 for x in $rpathdirs; do
20271 if test "X$x" = "X$dir"; then
20276 if test -z "$haveit"; then
20277 rpathdirs="$rpathdirs $dir"
20280 for x in $ltrpathdirs; do
20281 if test "X$x" = "X$dir"; then
20286 if test -z "$haveit"; then
20287 ltrpathdirs="$ltrpathdirs $dir"
20292 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
20295 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
20298 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
20299 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
20305 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
20306 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
20312 if test "X$rpathdirs" != "X"; then
20313 if test -n "$hardcode_libdir_separator"; then
20315 for found_dir in $rpathdirs; do
20316 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
20318 acl_save_libdir="$libdir"
20320 eval flag=\"$hardcode_libdir_flag_spec\"
20321 libdir="$acl_save_libdir"
20322 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
20324 for found_dir in $rpathdirs; do
20325 acl_save_libdir="$libdir"
20326 libdir="$found_dir"
20327 eval flag=\"$hardcode_libdir_flag_spec\"
20328 libdir="$acl_save_libdir"
20329 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
20333 if test "X$ltrpathdirs" != "X"; then
20334 for found_dir in $ltrpathdirs; do
20335 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
20339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
20340 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
20341 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then :
20342 $as_echo_n "(cached) " >&6
20344 gt_save_CPPFLAGS="$CPPFLAGS"
20345 CPPFLAGS="$CPPFLAGS $INCINTL"
20346 gt_save_LIBS="$LIBS"
20347 LIBS="$LIBS $LIBINTL"
20348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20349 /* end confdefs.h. */
20350 #include <libintl.h>
20351 extern int _nl_msg_cat_cntr;
20356 const char *_nl_expand_alias (const char *);
20360 bindtextdomain ("", "");
20361 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
20366 if ac_fn_c_try_link "$LINENO"; then :
20367 gt_cv_func_gnugettext1_libintl=yes
20369 gt_cv_func_gnugettext1_libintl=no
20371 rm -f core conftest.err conftest.$ac_objext \
20372 conftest$ac_exeext conftest.$ac_ext
20373 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
20374 LIBS="$LIBS $LIBICONV"
20375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20376 /* end confdefs.h. */
20377 #include <libintl.h>
20378 extern int _nl_msg_cat_cntr;
20383 const char *_nl_expand_alias (const char *);
20387 bindtextdomain ("", "");
20388 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
20393 if ac_fn_c_try_link "$LINENO"; then :
20394 LIBINTL="$LIBINTL $LIBICONV"
20395 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
20396 gt_cv_func_gnugettext1_libintl=yes
20399 rm -f core conftest.err conftest.$ac_objext \
20400 conftest$ac_exeext conftest.$ac_ext
20402 CPPFLAGS="$gt_save_CPPFLAGS"
20403 LIBS="$gt_save_LIBS"
20405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5
20406 $as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
20409 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
20410 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
20411 && test "$PACKAGE" != gettext-runtime \
20412 && test "$PACKAGE" != gettext-tools; }; then
20413 gt_use_preinstalled_gnugettext=yes
20421 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
20422 nls_cv_use_gnu_gettext=yes
20426 if test "$nls_cv_use_gnu_gettext" = "yes"; then
20427 BUILD_INCLUDED_LIBINTL=yes
20428 USE_INCLUDED_LIBINTL=yes
20429 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
20430 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
20431 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
20435 if test "$gt_use_preinstalled_gnugettext" = "yes" \
20436 || test "$nls_cv_use_gnu_gettext" = "yes"; then
20441 if test -n "$INTL_MACOSX_LIBS"; then
20442 if test "$gt_use_preinstalled_gnugettext" = "yes" \
20443 || test "$nls_cv_use_gnu_gettext" = "yes"; then
20444 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
20445 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
20449 if test "$gt_use_preinstalled_gnugettext" = "yes" \
20450 || test "$nls_cv_use_gnu_gettext" = "yes"; then
20452 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
20459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
20460 $as_echo_n "checking whether to use NLS... " >&6; }
20461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
20462 $as_echo "$USE_NLS" >&6; }
20463 if test "$USE_NLS" = "yes"; then
20464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
20465 $as_echo_n "checking where the gettext function comes from... " >&6; }
20466 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
20467 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
20468 gt_source="external libintl"
20473 gt_source="included intl directory"
20475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
20476 $as_echo "$gt_source" >&6; }
20479 if test "$USE_NLS" = "yes"; then
20481 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
20482 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
20483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
20484 $as_echo_n "checking how to link with libintl... " >&6; }
20485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
20486 $as_echo "$LIBINTL" >&6; }
20488 for element in $INCINTL; do
20490 for x in $CPPFLAGS; do
20492 acl_save_prefix="$prefix"
20493 prefix="$acl_final_prefix"
20494 acl_save_exec_prefix="$exec_prefix"
20495 exec_prefix="$acl_final_exec_prefix"
20497 exec_prefix="$acl_save_exec_prefix"
20498 prefix="$acl_save_prefix"
20500 if test "X$x" = "X$element"; then
20505 if test -z "$haveit"; then
20506 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
20513 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
20516 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
20524 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
20525 BUILD_INCLUDED_LIBINTL=yes
20532 nls_cv_header_intl=
20533 nls_cv_header_libgt=
20545 if test "$USE_INCLUDED_LIBINTL" = yes; then
20546 INTLOBJS="\$(GETTOBJS)"
20550 INTL_LIBTOOL_SUFFIX_PREFIX=
20554 INTLLIBS="$LIBINTL"
20566 support_postgresql=no
20569 support_smartalloc=yes
20570 support_readline=yes
20574 support_wx_console=no
20575 support_tray_monitor=no
20580 support_static_tools=no
20581 support_static_fd=no
20582 support_static_sd=no
20583 support_static_dir=no
20584 support_static_cons=no
20586 build_client_only=no
20595 # Check whether --enable-gnome was given.
20596 if test "${enable_gnome+set}" = set; then :
20597 enableval=$enable_gnome;
20598 if test x$enableval = xyes; then
20607 if test x$support_gnome = xyes; then
20608 as_fn_error "bgnome-console no longer supported" "$LINENO" 5
20609 as_fn_error "--enable-gnome option no longer supported" "$LINENO" 5
20611 # AC_SUBST(GNOME_DIR)
20613 # Check whether --enable-bat was given.
20614 if test "${enable_bat+set}" = set; then :
20615 enableval=$enable_bat;
20616 if test x$enableval = xyes; then
20618 $as_echo "#define HAVE_BAT 1" >>confdefs.h
20628 if test x$support_bat = xyes; then
20629 abc=`$PKGCONFIG --atleast-version=4.2 QtGui`
20631 if test $pkg = 0; then
20632 BAT_DIR=src/qt-console
20634 as_fn_error "Unable to find Qt4 installation needed by bat" "$LINENO" 5
20652 # Check whether --enable-bwx-console was given.
20653 if test "${enable_bwx_console+set}" = set; then :
20654 enableval=$enable_bwx_console;
20655 if test x$enableval = xyes; then
20656 support_wx_console=yes
20664 if test x$support_wx_console = xyes; then
20665 abc=`$WXCONFIG $WXFLAGS --cppflags`
20667 if test $pkg = 0; then
20668 wx_version="wxWidgets `$WXCONFIG $WXFLAGS --release`"
20669 WXCONS_CPPFLAGS=`$WXCONFIG $WXFLAGS --cppflags`
20670 WXCONS_LDFLAGS=`$WXCONFIG $WXFLAGS --libs`
20674 WX_DIR="src/wx-console"
20677 echo "wx-config program not found. bwx-console disabled."
20679 support_wx_console=no
20684 # Check whether --enable-tray-monitor was given.
20685 if test "${enable_tray_monitor+set}" = set; then :
20686 enableval=$enable_tray_monitor;
20687 if test x$enableval = xyes; then
20688 support_tray_monitor=yes
20696 if test x$support_tray_monitor = xyes; then
20697 abc=`$PKGCONFIG --exists gtk+-2.0`
20699 if test $pkg = 0; then
20700 TRAY_MONITOR_CPPFLAGS=`$PKGCONFIG --cflags gtk+-2.0`
20701 TRAY_MONITOR_LDFLAGS=`$PKGCONFIG --libs gtk+-2.0`
20704 TRAY_MONITOR_DIR=src/tray-monitor
20705 abc=`$PKGCONFIG --atleast-version=2.4 gtk+-2.0`
20707 if test $pkg = 0; then
20709 $as_echo "#define HAVE_GTK_2_4 1" >>confdefs.h
20716 # Check whether --enable-smartalloc was given.
20717 if test "${enable_smartalloc+set}" = set; then :
20718 enableval=$enable_smartalloc;
20719 if test x$enableval = xno; then
20720 support_smartalloc=no
20727 if test x$support_smartalloc = xyes; then
20729 $as_echo "#define SMARTALLOC 1" >>confdefs.h
20733 # Check whether --enable-lockmgr was given.
20734 if test "${enable_lockmgr+set}" = set; then :
20735 enableval=$enable_lockmgr;
20736 if test x$enableval = xyes; then
20737 support_lockmgr=yes
20744 if test x$support_lockmgr = xyes; then
20746 $as_echo "#define _USE_LOCKMGR 1" >>confdefs.h
20751 # Check whether --enable-static-tools was given.
20752 if test "${enable_static_tools+set}" = set; then :
20753 enableval=$enable_static_tools;
20754 if test x$enableval = xyes; then
20755 if test x$use_libtool = xyes; then
20756 as_fn_error "Libtool is enabled, not compatible with static tools,
20757 please rerun configure with --disable-libtool" "$LINENO" 5
20759 support_static_tools=yes
20767 if test x$support_static_tools = xyes; then
20768 TTOOL_LDFLAGS="-static"
20772 # Check whether --enable-static-fd was given.
20773 if test "${enable_static_fd+set}" = set; then :
20774 enableval=$enable_static_fd;
20775 if test x$enableval = xyes; then
20776 if test x$use_libtool = xyes; then
20777 as_fn_error "Libtool is enabled, not compatible with static tools,
20778 please rerun configure with --disable-libtool" "$LINENO" 5
20780 support_static_fd=yes
20788 if test x$support_static_fd = xyes; then
20789 STATIC_FD="static-bacula-fd"
20793 # Check whether --enable-static-sd was given.
20794 if test "${enable_static_sd+set}" = set; then :
20795 enableval=$enable_static_sd;
20796 if test x$enableval = xyes; then
20797 if test x$use_libtool = xyes; then
20798 as_fn_error "Libtool is enabled, not compatible with static tools,
20799 please rerun configure with --disable-libtool" "$LINENO" 5
20801 support_static_sd=yes
20809 if test x$support_static_sd = xyes; then
20810 STATIC_SD="static-bacula-sd"
20814 # Check whether --enable-static-dir was given.
20815 if test "${enable_static_dir+set}" = set; then :
20816 enableval=$enable_static_dir;
20817 if test x$enableval = xyes; then
20818 if test x$use_libtool = xyes; then
20819 as_fn_error "Libtool is enabled, not compatible with static tools,
20820 please rerun configure with --disable-libtool" "$LINENO" 5
20822 support_static_dir=yes
20830 if test x$support_static_dir = xyes; then
20831 STATIC_DIR="static-bacula-dir"
20835 # Check whether --enable-static-cons was given.
20836 if test "${enable_static_cons+set}" = set; then :
20837 enableval=$enable_static_cons;
20838 if test x$enableval = xyes; then
20839 if test x$use_libtool = xyes; then
20840 as_fn_error "Libtool is enabled, not compatible with static tools,
20841 please rerun configure with --disable-libtool" "$LINENO" 5
20843 support_static_cons=yes
20853 if test x$support_static_cons = xyes; then
20854 STATIC_CONS="static-bconsole"
20855 STATIC_GNOME_CONS="static-bgnome-console"
20856 STATIC_WX_CONS="static-bwx-console"
20862 # Check whether --enable-client-only was given.
20863 if test "${enable_client_only+set}" = set; then :
20864 enableval=$enable_client_only;
20865 if test x$enableval = xyes; then
20866 build_client_only=yes
20874 if test x$build_client_only = xno; then
20881 # Check whether --enable-build-dird was given.
20882 if test "${enable_build_dird+set}" = set; then :
20883 enableval=$enable_build_dird;
20884 if test x$enableval = xno; then
20891 if test x$build_dird = xyes; then
20892 DIRD_DIR="src/dird"
20893 DIR_TOOLS="DIRTOOLS"
20896 DIR_TOOLS="NODIRTOOLS"
20901 # Check whether --enable-build-stored was given.
20902 if test "${enable_build_stored+set}" = set; then :
20903 enableval=$enable_build_stored;
20904 if test x$enableval = xno; then
20911 if test x$build_stored = xyes; then
20912 STORED_DIR="src/stored"
20918 # Check whether --enable-conio was given.
20919 if test "${enable_conio+set}" = set; then :
20920 enableval=$enable_conio;
20921 if test x$enableval = xno; then
20931 # Check whether --enable-ipv6 was given.
20932 if test "${enable_ipv6+set}" = set; then :
20933 enableval=$enable_ipv6;
20934 if test x$enableval = xno; then
20942 if test x$support_ipv6 = xyes; then
20943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20944 /* end confdefs.h. */
20945 #include <sys/types.h>
20946 #include <sys/socket.h>
20947 #include <netinet/in.h>
20951 struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] = 0;
20956 if ac_fn_c_try_link "$LINENO"; then :
20961 rm -f core conftest.err conftest.$ac_objext \
20962 conftest$ac_exeext conftest.$ac_ext
20965 if test x$support_ipv6 = xyes; then
20967 $as_echo "#define HAVE_IPV6 1" >>confdefs.h
20972 ac_fn_c_check_header_mongrel "$LINENO" "curses.h" "ac_cv_header_curses_h" "$ac_includes_default"
20973 if test "x$ac_cv_header_curses_h" = x""yes; then :
20974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lncurses" >&5
20975 $as_echo_n "checking for tgetent in -lncurses... " >&6; }
20976 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then :
20977 $as_echo_n "(cached) " >&6
20979 ac_check_lib_save_LIBS=$LIBS
20980 LIBS="-lncurses $LIBS"
20981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20982 /* end confdefs.h. */
20984 /* Override any GCC internal prototype to avoid an error.
20985 Use char because int might match the return type of a GCC
20986 builtin and then its argument prototype would still apply. */
20999 if ac_fn_c_try_link "$LINENO"; then :
21000 ac_cv_lib_ncurses_tgetent=yes
21002 ac_cv_lib_ncurses_tgetent=no
21004 rm -f core conftest.err conftest.$ac_objext \
21005 conftest$ac_exeext conftest.$ac_ext
21006 LIBS=$ac_check_lib_save_LIBS
21008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_tgetent" >&5
21009 $as_echo "$ac_cv_lib_ncurses_tgetent" >&6; }
21010 if test "x$ac_cv_lib_ncurses_tgetent" = x""yes; then :
21011 TERM_LIB="-lncurses"
21013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltermcap" >&5
21014 $as_echo_n "checking for tgetent in -ltermcap... " >&6; }
21015 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then :
21016 $as_echo_n "(cached) " >&6
21018 ac_check_lib_save_LIBS=$LIBS
21019 LIBS="-ltermcap $LIBS"
21020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21021 /* end confdefs.h. */
21023 /* Override any GCC internal prototype to avoid an error.
21024 Use char because int might match the return type of a GCC
21025 builtin and then its argument prototype would still apply. */
21038 if ac_fn_c_try_link "$LINENO"; then :
21039 ac_cv_lib_termcap_tgetent=yes
21041 ac_cv_lib_termcap_tgetent=no
21043 rm -f core conftest.err conftest.$ac_objext \
21044 conftest$ac_exeext conftest.$ac_ext
21045 LIBS=$ac_check_lib_save_LIBS
21047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_termcap_tgetent" >&5
21048 $as_echo "$ac_cv_lib_termcap_tgetent" >&6; }
21049 if test "x$ac_cv_lib_termcap_tgetent" = x""yes; then :
21050 TERM_LIB="-ltermcap"
21058 for ac_header in curses.h
21060 ac_fn_c_check_header_mongrel "$LINENO" "curses.h" "ac_cv_header_curses_h" "$ac_includes_default"
21061 if test "x$ac_cv_header_curses_h" = x""yes; then :
21062 cat >>confdefs.h <<_ACEOF
21063 #define HAVE_CURSES_H 1
21070 ac_fn_c_check_header_mongrel "$LINENO" "term.h" "ac_cv_header_term_h" "$ac_includes_default"
21071 if test "x$ac_cv_header_term_h" = x""yes; then :
21072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lcurses" >&5
21073 $as_echo_n "checking for tgetent in -lcurses... " >&6; }
21074 if test "${ac_cv_lib_curses_tgetent+set}" = set; then :
21075 $as_echo_n "(cached) " >&6
21077 ac_check_lib_save_LIBS=$LIBS
21078 LIBS="-lcurses $LIBS"
21079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21080 /* end confdefs.h. */
21082 /* Override any GCC internal prototype to avoid an error.
21083 Use char because int might match the return type of a GCC
21084 builtin and then its argument prototype would still apply. */
21097 if ac_fn_c_try_link "$LINENO"; then :
21098 ac_cv_lib_curses_tgetent=yes
21100 ac_cv_lib_curses_tgetent=no
21102 rm -f core conftest.err conftest.$ac_objext \
21103 conftest$ac_exeext conftest.$ac_ext
21104 LIBS=$ac_check_lib_save_LIBS
21106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_tgetent" >&5
21107 $as_echo "$ac_cv_lib_curses_tgetent" >&6; }
21108 if test "x$ac_cv_lib_curses_tgetent" = x""yes; then :
21109 TERM_LIB="-lcurses"
21123 if test x$support_conio = xyes; then
21124 if test x$TERM_LIB != x; then
21125 CONS_LIBS=$TERM_LIB
21129 support_readline=no
21131 $as_echo "#define HAVE_CONIO 1" >>confdefs.h
21134 echo " "; echo "Required libraries not found. CONIO turned off ..."; echo " "],
21139 # Check whether --enable-readline was given.
21140 if test "${enable_readline+set}" = set; then :
21141 enableval=$enable_readline;
21142 if test x$enableval = xno; then
21143 support_readline=no
21149 if test x$TERM_LIB = x ; then
21150 support_readline=no
21155 if test x$support_readline = xyes; then
21157 # Check whether --with-readline was given.
21158 if test "${with_readline+set}" = set; then :
21159 withval=$with_readline;
21160 case "$with_readline" in
21165 if test -f ${with_readline}/readline.h; then
21166 CONS_INC="-I${with_readline}"
21167 CONS_LDFLAGS="-L$with_readline"
21168 elif test -f ${with_readline}/include/readline/readline.h; then
21169 CONS_INC="-I${with_readline}/include/readline"
21170 CONS_LDFLAGS="-L${with_readline}/lib"
21171 with_readline="${with_readline}/include/readline"
21173 with_readline="/usr/include/readline"
21176 as_ac_Header=`$as_echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
21177 ac_fn_c_check_header_mongrel "$LINENO" "${with_readline}/readline.h" "$as_ac_Header" "$ac_includes_default"
21178 eval as_val=\$$as_ac_Header
21179 if test "x$as_val" = x""yes; then :
21182 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
21184 CONS_LIBS="-lreadline -lhistory $TERM_LIB"
21190 echo "readline.h not found. readline turned off ..."
21202 ac_fn_c_check_header_mongrel "$LINENO" "/usr/include/readline/readline.h" "ac_cv_header__usr_include_readline_readline_h" "$ac_includes_default"
21203 if test "x$ac_cv_header__usr_include_readline_readline_h" = x""yes; then :
21206 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
21209 CONS_INC="-I/usr/include/readline"
21210 CONS_LIBS="-lreadline $TERM_LIB"
21214 as_ac_Header=`$as_echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
21215 ac_fn_c_check_header_mongrel "$LINENO" "${TOP_DIR}/depkgs/readline/readline.h" "$as_ac_Header" "$ac_includes_default"
21216 eval as_val=\$$as_ac_Header
21217 if test "x$as_val" = x""yes; then :
21220 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
21223 CONS_INC="-I${TOP_DIR}/depkgs/readline"
21224 CONS_LIBS="-lreadline -lhistory $TERM_LIB"
21225 CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
21226 PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
21231 echo "readline.h not found. readline turned off ..."
21258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
21259 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
21260 if test "${ac_cv_header_stat_broken+set}" = set; then :
21261 $as_echo_n "(cached) " >&6
21263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21264 /* end confdefs.h. */
21265 #include <sys/types.h>
21266 #include <sys/stat.h>
21268 #if defined S_ISBLK && defined S_IFDIR
21269 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
21272 #if defined S_ISBLK && defined S_IFCHR
21273 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
21276 #if defined S_ISLNK && defined S_IFREG
21277 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
21280 #if defined S_ISSOCK && defined S_IFREG
21281 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
21285 if ac_fn_c_try_compile "$LINENO"; then :
21286 ac_cv_header_stat_broken=no
21288 ac_cv_header_stat_broken=yes
21290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
21293 $as_echo "$ac_cv_header_stat_broken" >&6; }
21294 if test $ac_cv_header_stat_broken = yes; then
21296 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
21300 ac_header_dirent=no
21301 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
21302 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
21303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
21304 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
21305 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
21306 $as_echo_n "(cached) " >&6
21308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21309 /* end confdefs.h. */
21310 #include <sys/types.h>
21322 if ac_fn_c_try_compile "$LINENO"; then :
21323 eval "$as_ac_Header=yes"
21325 eval "$as_ac_Header=no"
21327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21329 eval ac_res=\$$as_ac_Header
21330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21331 $as_echo "$ac_res" >&6; }
21332 eval as_val=\$$as_ac_Header
21333 if test "x$as_val" = x""yes; then :
21334 cat >>confdefs.h <<_ACEOF
21335 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
21338 ac_header_dirent=$ac_hdr; break
21342 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
21343 if test $ac_header_dirent = dirent.h; then
21344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
21345 $as_echo_n "checking for library containing opendir... " >&6; }
21346 if test "${ac_cv_search_opendir+set}" = set; then :
21347 $as_echo_n "(cached) " >&6
21349 ac_func_search_save_LIBS=$LIBS
21350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21351 /* end confdefs.h. */
21353 /* Override any GCC internal prototype to avoid an error.
21354 Use char because int might match the return type of a GCC
21355 builtin and then its argument prototype would still apply. */
21368 for ac_lib in '' dir; do
21369 if test -z "$ac_lib"; then
21370 ac_res="none required"
21373 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21375 if ac_fn_c_try_link "$LINENO"; then :
21376 ac_cv_search_opendir=$ac_res
21378 rm -f core conftest.err conftest.$ac_objext \
21380 if test "${ac_cv_search_opendir+set}" = set; then :
21384 if test "${ac_cv_search_opendir+set}" = set; then :
21387 ac_cv_search_opendir=no
21389 rm conftest.$ac_ext
21390 LIBS=$ac_func_search_save_LIBS
21392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
21393 $as_echo "$ac_cv_search_opendir" >&6; }
21394 ac_res=$ac_cv_search_opendir
21395 if test "$ac_res" != no; then :
21396 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
21402 $as_echo_n "checking for library containing opendir... " >&6; }
21403 if test "${ac_cv_search_opendir+set}" = set; then :
21404 $as_echo_n "(cached) " >&6
21406 ac_func_search_save_LIBS=$LIBS
21407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21408 /* end confdefs.h. */
21410 /* Override any GCC internal prototype to avoid an error.
21411 Use char because int might match the return type of a GCC
21412 builtin and then its argument prototype would still apply. */
21425 for ac_lib in '' x; do
21426 if test -z "$ac_lib"; then
21427 ac_res="none required"
21430 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21432 if ac_fn_c_try_link "$LINENO"; then :
21433 ac_cv_search_opendir=$ac_res
21435 rm -f core conftest.err conftest.$ac_objext \
21437 if test "${ac_cv_search_opendir+set}" = set; then :
21441 if test "${ac_cv_search_opendir+set}" = set; then :
21444 ac_cv_search_opendir=no
21446 rm conftest.$ac_ext
21447 LIBS=$ac_func_search_save_LIBS
21449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
21450 $as_echo "$ac_cv_search_opendir" >&6; }
21451 ac_res=$ac_cv_search_opendir
21452 if test "$ac_res" != no; then :
21453 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21459 for ac_func in strcasecmp select setenv putenv tcgetattr lstat lchown
21461 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21462 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21463 eval as_val=\$$as_ac_var
21464 if test "x$as_val" = x""yes; then :
21465 cat >>confdefs.h <<_ACEOF
21466 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21472 for ac_func in nanosleep nl_langinfo
21474 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21475 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21476 eval as_val=\$$as_ac_var
21477 if test "x$as_val" = x""yes; then :
21478 cat >>confdefs.h <<_ACEOF
21479 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21485 for ac_header in varargs.h
21487 ac_fn_c_check_header_mongrel "$LINENO" "varargs.h" "ac_cv_header_varargs_h" "$ac_includes_default"
21488 if test "x$ac_cv_header_varargs_h" = x""yes; then :
21489 cat >>confdefs.h <<_ACEOF
21490 #define HAVE_VARARGS_H 1
21499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python support" >&5
21500 $as_echo_n "checking for Python support... " >&6; }
21502 # Check whether --with-python was given.
21503 if test "${with_python+set}" = set; then :
21504 withval=$with_python;
21507 if test "$withval" != "no"; then
21508 if test "$withval" = "yes"; then
21509 if test -e /usr/bin/python-config ; then
21510 PYTHON_INCDIR=`/usr/bin/python-config --includes`
21511 PYTHON_LIBS=`/usr/bin/python-config --libs`
21513 for python_root in /usr /usr/local /usr/sfw; do
21514 for ver in python2.2 python2.3 python2.4 python2.5 python2.6 python3; do
21515 if test -f $python_root/include/${ver}/Python.h; then
21516 PYTHON_INCDIR=-I$python_root/include/${ver}
21517 if test -d $python_root/lib64/${ver}/config; then
21518 PYTHON_LIBS="-L$python_root/lib64/${ver}/config -l${ver}"
21520 PYTHON_LIBS="-L$python_root/lib/${ver}/config -l${ver}"
21527 if test x$PYTHON_INCDIR = x; then
21528 if test -f $prefix/include/Python.h; then
21529 PYTHON_INCDIR=-I$prefix/include
21530 if test -d $prefix/lib64/config; then
21531 PYTHON_LIBS="-L$prefix/lib64/config -lpython"
21533 PYTHON_LIBS="-L$prefix/lib/config -lpython"
21536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21537 $as_echo "no" >&6; }
21538 as_fn_error "Unable to find Python.h in standard locations" "$LINENO" 5
21543 if test -e $withval/bin/python-config ; then
21544 PYTHON_INCDIR=`$withval/bin/python-config --includes`
21545 PYTHON_LIBS=`$withval/bin/python-config --libs`
21546 elif test -f $withval/Python.h; then
21547 PYTHON_INCDIR=-I$withval
21548 PYTHON_LIBS="-L$withval/config -lpython"
21549 elif test -f $withval/include/Python.h; then
21550 PYTHON_INCDIR=-I$withval/include
21551 if test -d $withval/lib64/config; then
21552 PYTHON_LIBS="-L$withval/lib64/config -lpython"
21554 PYTHON_LIBS="-L$withval/lib/config -lpython"
21556 elif test -f $withval/include/python/Python.h; then
21557 PYTHON_INCDIR=-I$withval/include/python
21558 if test -d $withval/lib64/python/config; then
21559 PYTHON_LIBS="-L$withval/lib64/python/config -lpython"
21561 PYTHON_LIBS="-L$withval/lib/python/config -lpython"
21564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21565 $as_echo "no" >&6; }
21566 as_fn_error "Invalid Python directory $withval - unable to find Python.h under $withval" "$LINENO" 5
21570 $as_echo "#define HAVE_PYTHON 1" >>confdefs.h
21572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21573 $as_echo "yes" >&6; }
21575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for more Python libs" >&5
21576 $as_echo "$as_me: checking for more Python libs" >&6;}
21577 saved_LIBS="$LIBS"; LIBS=
21578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing shm_open" >&5
21579 $as_echo_n "checking for library containing shm_open... " >&6; }
21580 if test "${ac_cv_search_shm_open+set}" = set; then :
21581 $as_echo_n "(cached) " >&6
21583 ac_func_search_save_LIBS=$LIBS
21584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21585 /* end confdefs.h. */
21587 /* Override any GCC internal prototype to avoid an error.
21588 Use char because int might match the return type of a GCC
21589 builtin and then its argument prototype would still apply. */
21597 return shm_open ();
21602 for ac_lib in '' rt; do
21603 if test -z "$ac_lib"; then
21604 ac_res="none required"
21607 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21609 if ac_fn_c_try_link "$LINENO"; then :
21610 ac_cv_search_shm_open=$ac_res
21612 rm -f core conftest.err conftest.$ac_objext \
21614 if test "${ac_cv_search_shm_open+set}" = set; then :
21618 if test "${ac_cv_search_shm_open+set}" = set; then :
21621 ac_cv_search_shm_open=no
21623 rm conftest.$ac_ext
21624 LIBS=$ac_func_search_save_LIBS
21626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_shm_open" >&5
21627 $as_echo "$ac_cv_search_shm_open" >&6; }
21628 ac_res=$ac_cv_search_shm_open
21629 if test "$ac_res" != no; then :
21630 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openpty in -lutil" >&5
21635 $as_echo_n "checking for openpty in -lutil... " >&6; }
21636 if test "${ac_cv_lib_util_openpty+set}" = set; then :
21637 $as_echo_n "(cached) " >&6
21639 ac_check_lib_save_LIBS=$LIBS
21640 LIBS="-lutil $LIBS"
21641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21642 /* end confdefs.h. */
21644 /* Override any GCC internal prototype to avoid an error.
21645 Use char because int might match the return type of a GCC
21646 builtin and then its argument prototype would still apply. */
21659 if ac_fn_c_try_link "$LINENO"; then :
21660 ac_cv_lib_util_openpty=yes
21662 ac_cv_lib_util_openpty=no
21664 rm -f core conftest.err conftest.$ac_objext \
21665 conftest$ac_exeext conftest.$ac_ext
21666 LIBS=$ac_check_lib_save_LIBS
21668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_openpty" >&5
21669 $as_echo "$ac_cv_lib_util_openpty" >&6; }
21670 if test "x$ac_cv_lib_util_openpty" = x""yes; then :
21671 cat >>confdefs.h <<_ACEOF
21672 #define HAVE_LIBUTIL 1
21675 LIBS="-lutil $LIBS"
21679 PYTHON_LIBS="$PYTHON_LIBS $LIBS"
21682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21683 $as_echo "no" >&6; }
21688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21689 $as_echo "no" >&6; }
21697 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
21698 if test "x$ac_cv_func_socket" = x""yes; then :
21699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using libc's socket" >&5
21700 $as_echo "using libc's socket" >&6; }
21702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lxnet" >&5
21703 $as_echo_n "checking for socket in -lxnet... " >&6; }
21704 if test "${ac_cv_lib_xnet_socket+set}" = set; then :
21705 $as_echo_n "(cached) " >&6
21707 ac_check_lib_save_LIBS=$LIBS
21708 LIBS="-lxnet $LIBS"
21709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21710 /* end confdefs.h. */
21712 /* Override any GCC internal prototype to avoid an error.
21713 Use char because int might match the return type of a GCC
21714 builtin and then its argument prototype would still apply. */
21727 if ac_fn_c_try_link "$LINENO"; then :
21728 ac_cv_lib_xnet_socket=yes
21730 ac_cv_lib_xnet_socket=no
21732 rm -f core conftest.err conftest.$ac_objext \
21733 conftest$ac_exeext conftest.$ac_ext
21734 LIBS=$ac_check_lib_save_LIBS
21736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xnet_socket" >&5
21737 $as_echo "$ac_cv_lib_xnet_socket" >&6; }
21738 if test "x$ac_cv_lib_xnet_socket" = x""yes; then :
21739 cat >>confdefs.h <<_ACEOF
21740 #define HAVE_LIBXNET 1
21743 LIBS="-lxnet $LIBS"
21747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
21748 $as_echo_n "checking for socket in -lsocket... " >&6; }
21749 if test "${ac_cv_lib_socket_socket+set}" = set; then :
21750 $as_echo_n "(cached) " >&6
21752 ac_check_lib_save_LIBS=$LIBS
21753 LIBS="-lsocket $LIBS"
21754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21755 /* end confdefs.h. */
21757 /* Override any GCC internal prototype to avoid an error.
21758 Use char because int might match the return type of a GCC
21759 builtin and then its argument prototype would still apply. */
21772 if ac_fn_c_try_link "$LINENO"; then :
21773 ac_cv_lib_socket_socket=yes
21775 ac_cv_lib_socket_socket=no
21777 rm -f core conftest.err conftest.$ac_objext \
21778 conftest$ac_exeext conftest.$ac_ext
21779 LIBS=$ac_check_lib_save_LIBS
21781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
21782 $as_echo "$ac_cv_lib_socket_socket" >&6; }
21783 if test "x$ac_cv_lib_socket_socket" = x""yes; then :
21784 cat >>confdefs.h <<_ACEOF
21785 #define HAVE_LIBSOCKET 1
21788 LIBS="-lsocket $LIBS"
21792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -linet" >&5
21793 $as_echo_n "checking for socket in -linet... " >&6; }
21794 if test "${ac_cv_lib_inet_socket+set}" = set; then :
21795 $as_echo_n "(cached) " >&6
21797 ac_check_lib_save_LIBS=$LIBS
21798 LIBS="-linet $LIBS"
21799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21800 /* end confdefs.h. */
21802 /* Override any GCC internal prototype to avoid an error.
21803 Use char because int might match the return type of a GCC
21804 builtin and then its argument prototype would still apply. */
21817 if ac_fn_c_try_link "$LINENO"; then :
21818 ac_cv_lib_inet_socket=yes
21820 ac_cv_lib_inet_socket=no
21822 rm -f core conftest.err conftest.$ac_objext \
21823 conftest$ac_exeext conftest.$ac_ext
21824 LIBS=$ac_check_lib_save_LIBS
21826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_inet_socket" >&5
21827 $as_echo "$ac_cv_lib_inet_socket" >&6; }
21828 if test "x$ac_cv_lib_inet_socket" = x""yes; then :
21829 cat >>confdefs.h <<_ACEOF
21830 #define HAVE_LIBINET 1
21833 LIBS="-linet $LIBS"
21843 # Check whether --with-tcp-wrappers was given.
21844 if test "${with_tcp_wrappers+set}" = set; then :
21845 withval=$with_tcp_wrappers;
21846 if test "x$withval" != "xno" ; then
21848 LIBS="$saved_LIBS -lwrap"
21849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nanosleep" >&5
21850 $as_echo_n "checking for library containing nanosleep... " >&6; }
21851 if test "${ac_cv_search_nanosleep+set}" = set; then :
21852 $as_echo_n "(cached) " >&6
21854 ac_func_search_save_LIBS=$LIBS
21855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21856 /* end confdefs.h. */
21858 /* Override any GCC internal prototype to avoid an error.
21859 Use char because int might match the return type of a GCC
21860 builtin and then its argument prototype would still apply. */
21868 return nanosleep ();
21873 for ac_lib in '' rt; do
21874 if test -z "$ac_lib"; then
21875 ac_res="none required"
21878 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21880 if ac_fn_c_try_link "$LINENO"; then :
21881 ac_cv_search_nanosleep=$ac_res
21883 rm -f core conftest.err conftest.$ac_objext \
21885 if test "${ac_cv_search_nanosleep+set}" = set; then :
21889 if test "${ac_cv_search_nanosleep+set}" = set; then :
21892 ac_cv_search_nanosleep=no
21894 rm conftest.$ac_ext
21895 LIBS=$ac_func_search_save_LIBS
21897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nanosleep" >&5
21898 $as_echo "$ac_cv_search_nanosleep" >&6; }
21899 ac_res=$ac_cv_search_nanosleep
21900 if test "$ac_res" != no; then :
21901 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libwrap" >&5
21906 $as_echo_n "checking for libwrap... " >&6; }
21907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21908 /* end confdefs.h. */
21910 #include <sys/types.h>
21912 int deny_severity = 0;
21913 int allow_severity = 0;
21914 struct request_info *req;
21926 if ac_fn_c_try_link "$LINENO"; then :
21928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21929 $as_echo "yes" >&6; }
21931 $as_echo "#define HAVE_LIBWRAP 1" >>confdefs.h
21939 LIBS="$saved_LIBS -lwrap -lnsl"
21940 WRAPLIBS="$saved_LIBS -lwrap -lnsl"
21941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21942 /* end confdefs.h. */
21944 #include <sys/types.h>
21946 int deny_severity = 0;
21947 int allow_severity = 0;
21948 struct request_info *req;
21960 if ac_fn_c_try_link "$LINENO"; then :
21962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21963 $as_echo "yes" >&6; }
21965 $as_echo "#define HAVE_LIBWRAP 1" >>confdefs.h
21973 as_fn_error "*** libwrap missing" "$LINENO" 5
21977 rm -f core conftest.err conftest.$ac_objext \
21978 conftest$ac_exeext conftest.$ac_ext
21982 rm -f core conftest.err conftest.$ac_objext \
21983 conftest$ac_exeext conftest.$ac_ext
21990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL" >&5
21991 $as_echo_n "checking for OpenSSL... " >&6; }
21993 # Check whether --with-openssl was given.
21994 if test "${with_openssl+set}" = set; then :
21995 withval=$with_openssl;
21996 with_openssl_directory=${withval}
22002 if test "x$with_openssl_directory" != "xno"; then
22003 OPENSSL_LIBS="-lssl -lcrypto"
22006 if test "x$with_openssl_directory" != "xyes" && test x"${with_openssl_directory}" != "x"; then
22008 # Make sure the $with_openssl_directory also makes sense
22010 if test -d "$with_openssl_directory/lib" -a -d "$with_openssl_directory/include"; then
22011 OPENSSL_LIBS="-L$with_openssl_directory/lib $OPENSSL_LIBS"
22012 OPENSSL_INC="-I$with_openssl_directory/include $OPENSSL_INC"
22016 saved_LIBS="${LIBS}"
22017 saved_CFLAGS="${CFLAGS}"
22018 LIBS="${saved_LIBS} ${OPENSSL_LIBS}"
22019 CFLAGS="${saved_CFLAGS} ${OPENSSL_INC}"
22021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22022 /* end confdefs.h. */
22024 #include <openssl/ssl.h>
22030 CRYPTO_set_id_callback(NULL);
22036 if ac_fn_c_try_link "$LINENO"; then :
22039 support_crypto="yes"
22044 support_crypto="no"
22048 rm -f core conftest.err conftest.$ac_objext \
22049 conftest$ac_exeext conftest.$ac_ext
22051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22052 /* end confdefs.h. */
22054 #include <openssl/evp.h>
22066 if ac_fn_c_try_link "$LINENO"; then :
22068 ac_cv_openssl_sha2="yes"
22072 ac_cv_openssl_sha2="no"
22076 rm -f core conftest.err conftest.$ac_objext \
22077 conftest$ac_exeext conftest.$ac_ext
22079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22080 /* end confdefs.h. */
22082 #include <openssl/evp.h>
22094 if ac_fn_c_try_link "$LINENO"; then :
22096 ac_cv_openssl_export="no"
22100 ac_cv_openssl_export="yes"
22104 rm -f core conftest.err conftest.$ac_objext \
22105 conftest$ac_exeext conftest.$ac_ext
22107 LIBS="${saved_LIBS}"
22108 CFLAGS="${saved_CFLAGS}"
22110 if test "$support_tls" = "yes"; then
22112 $as_echo "#define HAVE_OPENSSL 1" >>confdefs.h
22115 $as_echo "#define HAVE_TLS 1" >>confdefs.h
22118 $as_echo "#define HAVE_CRYPTO 1" >>confdefs.h
22122 if test "$ac_cv_openssl_sha2" = "yes"; then
22124 $as_echo "#define HAVE_SHA2 1" >>confdefs.h
22128 if test "$ac_cv_openssl_export" = "yes"; then
22130 $as_echo "#define HAVE_OPENSSL_EXPORT_LIBRARY 1" >>confdefs.h
22135 support_crypto="no"
22139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $support_tls" >&5
22140 $as_echo "$support_tls" >&6; }
22142 if test "$support_tls" = "no"; then
22146 if test "$support_crypto" = "no"; then
22150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVP_PKEY_encrypt_old in -lssl" >&5
22151 $as_echo_n "checking for EVP_PKEY_encrypt_old in -lssl... " >&6; }
22152 if test "${ac_cv_lib_ssl_EVP_PKEY_encrypt_old+set}" = set; then :
22153 $as_echo_n "(cached) " >&6
22155 ac_check_lib_save_LIBS=$LIBS
22157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22158 /* end confdefs.h. */
22160 /* Override any GCC internal prototype to avoid an error.
22161 Use char because int might match the return type of a GCC
22162 builtin and then its argument prototype would still apply. */
22166 char EVP_PKEY_encrypt_old ();
22170 return EVP_PKEY_encrypt_old ();
22175 if ac_fn_c_try_link "$LINENO"; then :
22176 ac_cv_lib_ssl_EVP_PKEY_encrypt_old=yes
22178 ac_cv_lib_ssl_EVP_PKEY_encrypt_old=no
22180 rm -f core conftest.err conftest.$ac_objext \
22181 conftest$ac_exeext conftest.$ac_ext
22182 LIBS=$ac_check_lib_save_LIBS
22184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_EVP_PKEY_encrypt_old" >&5
22185 $as_echo "$ac_cv_lib_ssl_EVP_PKEY_encrypt_old" >&6; }
22186 if test "x$ac_cv_lib_ssl_EVP_PKEY_encrypt_old" = x""yes; then :
22188 $as_echo "#define HAVE_OPENSSLv1 1" >>confdefs.h
22197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
22198 $as_echo_n "checking for library containing dlopen... " >&6; }
22199 if test "${ac_cv_search_dlopen+set}" = set; then :
22200 $as_echo_n "(cached) " >&6
22202 ac_func_search_save_LIBS=$LIBS
22203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22204 /* end confdefs.h. */
22206 /* Override any GCC internal prototype to avoid an error.
22207 Use char because int might match the return type of a GCC
22208 builtin and then its argument prototype would still apply. */
22221 for ac_lib in '' dl; do
22222 if test -z "$ac_lib"; then
22223 ac_res="none required"
22226 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22228 if ac_fn_c_try_link "$LINENO"; then :
22229 ac_cv_search_dlopen=$ac_res
22231 rm -f core conftest.err conftest.$ac_objext \
22233 if test "${ac_cv_search_dlopen+set}" = set; then :
22237 if test "${ac_cv_search_dlopen+set}" = set; then :
22240 ac_cv_search_dlopen=no
22242 rm conftest.$ac_ext
22243 LIBS=$ac_func_search_save_LIBS
22245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
22246 $as_echo "$ac_cv_search_dlopen" >&6; }
22247 ac_res=$ac_cv_search_dlopen
22248 if test "$ac_res" != no; then :
22249 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22254 working_dir=`eval echo ${prefix}/var/bacula/working`
22256 # Check whether --with-working-dir was given.
22257 if test "${with_working_dir+set}" = set; then :
22258 withval=$with_working_dir;
22259 if test "x$withval" != "xno" ; then
22260 working_dir=$withval
22271 # Check whether --with-archivedir was given.
22272 if test "${with_archivedir+set}" = set; then :
22273 withval=$with_archivedir;
22274 if test "x$withval" != "xno" ; then
22275 archivedir=$withval
22284 basename=`hostname`
22286 # Check whether --with-basename was given.
22287 if test "${with_basename+set}" = set; then :
22288 withval=$with_basename;
22289 if test "x$withval" != "xno" ; then
22299 hostname=`uname -n | cut -d '.' -f 1`
22300 if test x${hostname} = x ; then
22301 hostname="localhost"
22304 # Check whether --with-hostname was given.
22305 if test "${with_hostname+set}" = set; then :
22306 withval=$with_hostname;
22307 if test "x$withval" != "xno" ; then
22318 scriptdir=`eval echo ${sysconfdir}`
22320 # Check whether --with-scriptdir was given.
22321 if test "${with_scriptdir+set}" = set; then :
22322 withval=$with_scriptdir;
22323 if test "x$withval" != "xno" ; then
22336 # Check whether --with-bsrdir was given.
22337 if test "${with_bsrdir+set}" = set; then :
22338 withval=$with_bsrdir;
22339 if test "x$withval" != "xno" ; then
22351 # Check whether --with-logdir was given.
22352 if test "${with_logdir+set}" = set; then :
22353 withval=$with_logdir;
22354 if test "x$withval" != "xno" ; then
22365 # ------------------------------------------
22366 # Where to place plugindir (plugin files)
22367 # ------------------------------------------
22368 plugindir=`eval echo ${libdir}`
22370 # Check whether --with-plugindir was given.
22371 if test "${with_plugindir+set}" = set; then :
22372 withval=$with_plugindir;
22373 if test "x$withval" != "xno" ; then
22383 dump_email=root@localhost
22385 # Check whether --with-dump-email was given.
22386 if test "${with_dump_email+set}" = set; then :
22387 withval=$with_dump_email;
22388 if test "x$withval" != "xno" ; then
22389 dump_email=$withval
22398 job_email=root@localhost
22400 # Check whether --with-job-email was given.
22401 if test "${with_job_email+set}" = set; then :
22402 withval=$with_job_email;
22403 if test "x$withval" != "xno" ; then
22413 smtp_host=localhost
22415 # Check whether --with-smtp_host was given.
22416 if test "${with_smtp_host+set}" = set; then :
22417 withval=$with_smtp_host;
22418 if test "x$withval" != "xno" ; then
22430 # Check whether --with-pid-dir was given.
22431 if test "${with_pid_dir+set}" = set; then :
22432 withval=$with_pid_dir;
22433 if test "x$withval" != "xno" ; then
22441 cat >>confdefs.h <<_ACEOF
22442 #define _PATH_BACULA_PIDDIR "$piddir"
22447 subsysdir=/var/run/subsys
22448 if test -d /var/run/subsys; then
22449 subsysdir=/var/run/subsys
22450 elif test -d /var/lock/subsys; then
22451 subsysdir=/var/lock/subsys
22453 subsysdir=/var/run/subsys
22456 # Check whether --with-subsys-dir was given.
22457 if test "${with_subsys_dir+set}" = set; then :
22458 withval=$with_subsys_dir;
22459 if test "x$withval" != "xno" ; then
22471 # Check whether --with-baseport was given.
22472 if test "${with_baseport+set}" = set; then :
22473 withval=$with_baseport;
22474 if test "x$withval" != "xno" ; then
22483 dir_port=`expr $baseport`
22484 fd_port=`expr $baseport + 1`
22485 sd_port=`expr $fd_port + 1`
22493 # Check whether --with-dir-password was given.
22494 if test "${with_dir_password+set}" = set; then :
22495 withval=$with_dir_password;
22496 if test "x$withval" != "xno" ; then
22497 dir_password=$withval
22504 if test "x$dir_password" = "x" ; then
22505 if test "x$OPENSSL" = "xnone" ; then
22506 key=`autoconf/randpass 33`
22508 key=`openssl rand -base64 33`
22515 # Check whether --with-fd-password was given.
22516 if test "${with_fd_password+set}" = set; then :
22517 withval=$with_fd_password;
22518 if test "x$withval" != "xno" ; then
22519 fd_password=$withval
22526 if test "x$fd_password" = "x" ; then
22527 if test "x$OPENSSL" = "xnone" ; then
22528 key=`autoconf/randpass 37`
22530 key=`openssl rand -base64 33`
22537 # Check whether --with-sd-password was given.
22538 if test "${with_sd_password+set}" = set; then :
22539 withval=$with_sd_password;
22540 if test "x$withval" != "xno" ; then
22541 sd_password=$withval
22548 if test "x$sd_password" = "x" ; then
22549 if test "x$OPENSSL" = "xnone" ; then
22550 key=`autoconf/randpass 41`
22552 key=`openssl rand -base64 33`
22559 # Check whether --with-mon-dir-password was given.
22560 if test "${with_mon_dir_password+set}" = set; then :
22561 withval=$with_mon_dir_password;
22562 if test "x$withval" != "xno" ; then
22563 mon_dir_password=$withval
22570 if test "x$mon_dir_password" = "x" ; then
22571 if test "x$OPENSSL" = "xnone" ; then
22572 key=`autoconf/randpass 33`
22574 key=`openssl rand -base64 33`
22576 mon_dir_password=$key
22581 # Check whether --with-mon-fd-password was given.
22582 if test "${with_mon_fd_password+set}" = set; then :
22583 withval=$with_mon_fd_password;
22584 if test "x$withval" != "xno" ; then
22585 mon_fd_password=$withval
22592 if test "x$mon_fd_password" = "x" ; then
22593 if test "x$OPENSSL" = "xnone" ; then
22594 key=`autoconf/randpass 37`
22596 key=`openssl rand -base64 33`
22598 mon_fd_password=$key
22603 # Check whether --with-mon-sd-password was given.
22604 if test "${with_mon_sd_password+set}" = set; then :
22605 withval=$with_mon_sd_password;
22606 if test "x$withval" != "xno" ; then
22607 mon_sd_password=$withval
22614 if test "x$mon_sd_password" = "x" ; then
22615 if test "x$OPENSSL" = "xnone" ; then
22616 key=`autoconf/randpass 41`
22618 key=`openssl rand -base64 33`
22620 mon_sd_password=$key
22632 # Check whether --with-db_name was given.
22633 if test "${with_db_name+set}" = set; then :
22634 withval=$with_db_name;
22635 if test "x$withval" != "x" ; then
22646 # Check whether --with-db_user was given.
22647 if test "${with_db_user+set}" = set; then :
22648 withval=$with_db_user;
22649 if test "x$withval" != "x" ; then
22660 # Check whether --with-db_password was given.
22661 if test "${with_db_password+set}" = set; then :
22662 withval=$with_db_password;
22663 if test "x$withval" != "x" ; then
22664 db_password=$withval
22674 # Check whether --with-db_port was given.
22675 if test "${with_db_port+set}" = set; then :
22676 withval=$with_db_port;
22677 if test "x$withval" != "x" ; then
22687 # Handle users and groups for each daemon
22691 # Check whether --with-dir_user was given.
22692 if test "${with_dir_user+set}" = set; then :
22693 withval=$with_dir_user;
22694 if test "x$withval" != "x" ; then
22704 # Check whether --with-dir_group was given.
22705 if test "${with_dir_group+set}" = set; then :
22706 withval=$with_dir_group;
22707 if test "x$withval" != "x" ; then
22717 # Check whether --with-sd_user was given.
22718 if test "${with_sd_user+set}" = set; then :
22719 withval=$with_sd_user;
22720 if test "x$withval" != "x" ; then
22730 # Check whether --with-sd_group was given.
22731 if test "${with_sd_group+set}" = set; then :
22732 withval=$with_sd_group;
22733 if test "x$withval" != "x" ; then
22743 # Check whether --with-fd_user was given.
22744 if test "${with_fd_user+set}" = set; then :
22745 withval=$with_fd_user;
22746 if test "x$withval" != "x" ; then
22756 # Check whether --with-fd_group was given.
22757 if test "${with_fd_group+set}" = set; then :
22758 withval=$with_fd_group;
22759 if test "x$withval" != "x" ; then
22776 # Check whether --with-sbin-perm was given.
22777 if test "${with_sbin_perm+set}" = set; then :
22778 withval=$with_sbin_perm;
22779 if test "x$withval" != "x" ; then
22792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PostgreSQL support" >&5
22793 $as_echo_n "checking for PostgreSQL support... " >&6; }
22795 # Check whether --with-postgresql was given.
22796 if test "${with_postgresql+set}" = set; then :
22797 withval=$with_postgresql;
22798 if test "$withval" != "no"; then
22799 if test "$db_found" = "yes"; then
22800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: error" >&5
22801 $as_echo "error" >&6; }
22802 as_fn_error "\"You can configure for only one database.\"" "$LINENO" 5;
22804 if test "$withval" = "yes"; then
22805 PG_CONFIG=`which pg_config`
22806 if test -n "$PG_CONFIG";then
22807 POSTGRESQL_INCDIR=`"$PG_CONFIG" --includedir`
22808 POSTGRESQL_LIBDIR=`"$PG_CONFIG" --libdir`
22809 POSTGRESQL_BINDIR=`"$PG_CONFIG" --bindir`
22810 elif test -f /usr/local/include/libpq-fe.h; then
22811 POSTGRESQL_INCDIR=/usr/local/include
22812 if test -d /usr/local/lib64; then
22813 POSTGRESQL_LIBDIR=/usr/local/lib64
22815 POSTGRESQL_LIBDIR=/usr/local/lib
22817 POSTGRESQL_BINDIR=/usr/local/bin
22818 elif test -f /usr/include/libpq-fe.h; then
22819 POSTGRESQL_INCDIR=/usr/include
22820 if test -d /usr/lib64; then
22821 POSTGRESQL_LIBDIR=/usr/lib64
22823 POSTGRESQL_LIBDIR=/usr/lib
22825 POSTGRESQL_BINDIR=/usr/bin
22826 elif test -f /usr/include/pgsql/libpq-fe.h; then
22827 POSTGRESQL_INCDIR=/usr/include/pgsql
22828 if test -d /usr/lib64/pgsql; then
22829 POSTGRESQL_LIBDIR=/usr/lib64/pgsql
22831 POSTGRESQL_LIBDIR=/usr/lib/pgsql
22833 POSTGRESQL_BINDIR=/usr/bin
22834 elif test -f /usr/include/postgresql/libpq-fe.h; then
22835 POSTGRESQL_INCDIR=/usr/include/postgresql
22836 if test -d /usr/lib64/postgresql; then
22837 POSTGRESQL_LIBDIR=/usr/lib64/postgresql
22839 POSTGRESQL_LIBDIR=/usr/lib/postgresql
22841 POSTGRESQL_BINDIR=/usr/bin
22843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22844 $as_echo "no" >&6; }
22845 as_fn_error "Unable to find libpq-fe.h in standard locations" "$LINENO" 5
22847 elif test -f $withval/include/libpq-fe.h; then
22848 POSTGRESQL_INCDIR=$withval/include
22849 POSTGRESQL_LIBDIR=$withval/lib
22850 POSTGRESQL_BINDIR=$withval/bin
22851 elif test -f $withval/include/postgresql/libpq-fe.h; then
22852 POSTGRESQL_INCDIR=$withval/include/postgresql
22853 if test -d $withval/lib64; then
22854 POSTGRESQL_LIBDIR=$withval/lib64
22856 POSTGRESQL_LIBDIR=$withval/lib
22858 POSTGRESQL_BINDIR=$withval/bin
22860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22861 $as_echo "no" >&6; }
22862 as_fn_error "Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" "$LINENO" 5
22864 $as_echo "#define HAVE_POSTGRESQL 1" >>confdefs.h
22866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22867 $as_echo "yes" >&6; }
22868 POSTGRESQL_LFLAGS="-L$POSTGRESQL_LIBDIR -lpq"
22869 ac_fn_c_check_func "$LINENO" "crypt" "ac_cv_func_crypt"
22870 if test "x$ac_cv_func_crypt" = x""yes; then :
22873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
22874 $as_echo_n "checking for crypt in -lcrypt... " >&6; }
22875 if test "${ac_cv_lib_crypt_crypt+set}" = set; then :
22876 $as_echo_n "(cached) " >&6
22878 ac_check_lib_save_LIBS=$LIBS
22879 LIBS="-lcrypt $LIBS"
22880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22881 /* end confdefs.h. */
22883 /* Override any GCC internal prototype to avoid an error.
22884 Use char because int might match the return type of a GCC
22885 builtin and then its argument prototype would still apply. */
22898 if ac_fn_c_try_link "$LINENO"; then :
22899 ac_cv_lib_crypt_crypt=yes
22901 ac_cv_lib_crypt_crypt=no
22903 rm -f core conftest.err conftest.$ac_objext \
22904 conftest$ac_exeext conftest.$ac_ext
22905 LIBS=$ac_check_lib_save_LIBS
22907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
22908 $as_echo "$ac_cv_lib_crypt_crypt" >&6; }
22909 if test "x$ac_cv_lib_crypt_crypt" = x""yes; then :
22910 POSTGRESQL_LFLAGS="$POSTGRESQL_LFLAGS -lcrypt"
22915 SQL_INCLUDE=-I$POSTGRESQL_INCDIR
22916 SQL_LFLAGS=$POSTGRESQL_LFLAGS
22917 SQL_BINDIR=$POSTGRESQL_BINDIR
22918 SQL_LIB=$POSTGRESQL_LIBDIR/libpq.a
22921 support_postgresql=yes
22925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22926 $as_echo "no" >&6; }
22931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22932 $as_echo "no" >&6; }
22944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MySQL support" >&5
22945 $as_echo_n "checking for MySQL support... " >&6; }
22947 # Check whether --with-mysql was given.
22948 if test "${with_mysql+set}" = set; then :
22949 withval=$with_mysql;
22950 if test "$withval" != "no"; then
22951 if test "$withval" = "yes"; then
22952 if test -f /usr/local/mysql/include/mysql/mysql.h; then
22953 MYSQL_INCDIR=/usr/local/mysql/include/mysql
22954 if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
22955 -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
22956 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
22958 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
22960 MYSQL_BINDIR=/usr/local/mysql/bin
22961 elif test -f /usr/include/mysql/mysql.h; then
22962 MYSQL_INCDIR=/usr/include/mysql
22963 if test -f /usr/lib64/mysql/libmysqlclient_r.a \
22964 -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
22965 MYSQL_LIBDIR=/usr/lib64/mysql
22966 elif test -f /usr/lib64/libmysqlclient_r.a \
22967 -o -f /usr/lib64/libmysqlclient_r.so; then
22968 MYSQL_LIBDIR=/usr/lib64
22969 elif test -f /usr/lib/mysql/libmysqlclient_r.a \
22970 -o -f /usr/lib/mysql/libmysqlclient_r.so; then
22971 MYSQL_LIBDIR=/usr/lib/mysql
22973 MYSQL_LIBDIR=/usr/lib
22975 MYSQL_BINDIR=/usr/bin
22976 elif test -f /usr/include/mysql.h; then
22977 MYSQL_INCDIR=/usr/include
22978 if test -f /usr/lib64/libmysqlclient_r.a \
22979 -o -f /usr/lib64/libmysqlclient_r.so; then
22980 MYSQL_LIBDIR=/usr/lib64
22982 MYSQL_LIBDIR=/usr/lib
22984 MYSQL_BINDIR=/usr/bin
22985 elif test -f /usr/local/include/mysql/mysql.h; then
22986 MYSQL_INCDIR=/usr/local/include/mysql
22987 if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
22988 -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
22989 MYSQL_LIBDIR=/usr/local/lib64/mysql
22991 MYSQL_LIBDIR=/usr/local/lib/mysql
22993 MYSQL_BINDIR=/usr/local/bin
22994 elif test -f /usr/local/include/mysql.h; then
22995 MYSQL_INCDIR=/usr/local/include
22996 if test -f /usr/local/lib64/libmysqlclient_r.a \
22997 -o -f /usr/local/lib64/libmysqlclient_r.so; then
22998 MYSQL_LIBDIR=/usr/local/lib64
23000 MYSQL_LIBDIR=/usr/local/lib
23002 MYSQL_BINDIR=/usr/local/bin
23004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23005 $as_echo "no" >&6; }
23006 as_fn_error "Unable to find mysql.h in standard locations" "$LINENO" 5
23009 if test -f $withval/include/mysql/mysql.h; then
23010 MYSQL_INCDIR=$withval/include/mysql
23011 if test -f $withval/lib64/mysql/libmysqlclient_r.a \
23012 -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
23013 MYSQL_LIBDIR=$withval/lib64/mysql
23014 elif test -f $withval/lib64/libmysqlclient_r.a \
23015 -o -f $withval/lib64/libmysqlclient_r.so; then
23016 MYSQL_LIBDIR=$withval/lib64
23017 elif test -f $withval/lib/libmysqlclient_r.a \
23018 -o -f $withval/lib/libmysqlclient_r.so; then
23019 MYSQL_LIBDIR=$withval/lib
23021 MYSQL_LIBDIR=$withval/lib/mysql
23023 MYSQL_BINDIR=$withval/bin
23024 elif test -f $withval/include/mysql.h; then
23025 MYSQL_INCDIR=$withval/include
23026 if test -f $withval/lib64/libmysqlclient_r.a \
23027 -o -f $withval/lib64/libmysqlclient_r.so; then
23028 MYSQL_LIBDIR=$withval/lib64
23030 MYSQL_LIBDIR=$withval/lib
23032 MYSQL_BINDIR=$withval/bin
23034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23035 $as_echo "no" >&6; }
23036 as_fn_error "Invalid MySQL directory $withval - unable to find mysql.h under $withval" "$LINENO" 5
23039 SQL_INCLUDE=-I$MYSQL_INCDIR
23040 if test -f $MYSQL_LIBDIR/libmysqlclient_r.a \
23041 -o -f $MYSQL_LIBDIR/libmysqlclient_r.so; then
23042 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
23043 $as_echo "#define HAVE_THREAD_SAFE_MYSQL 1" >>confdefs.h
23046 SQL_BINDIR=$MYSQL_BINDIR
23047 SQL_LIB=$MYSQL_LIBDIR/libmysqlclient_r.a
23050 $as_echo "#define HAVE_MYSQL 1" >>confdefs.h
23052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23053 $as_echo "yes" >&6; }
23060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23061 $as_echo "no" >&6; }
23069 # Check whether --with-embedded-mysql was given.
23070 if test "${with_embedded_mysql+set}" = set; then :
23071 withval=$with_embedded_mysql;
23072 if test "$withval" != "no"; then
23073 if test "$withval" = "yes"; then
23074 if test -f /usr/local/mysql/include/mysql/mysql.h; then
23075 MYSQL_INCDIR=/usr/local/mysql/include/mysql
23076 if test -d /usr/local/mysql/lib64/mysql; then
23077 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
23079 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
23081 MYSQL_BINDIR=/usr/local/mysql/bin
23082 elif test -f /usr/include/mysql/mysql.h; then
23083 MYSQL_INCDIR=/usr/include/mysql
23084 if test -d /usr/lib64/mysql; then
23085 MYSQL_LIBDIR=/usr/lib64/mysql
23087 MYSQL_LIBDIR=/usr/lib/mysql
23089 MYSQL_BINDIR=/usr/bin
23090 elif test -f /usr/include/mysql.h; then
23091 MYSQL_INCDIR=/usr/include
23092 if test -d /usr/lib64; then
23093 MYSQL_LIBDIR=/usr/lib64
23095 MYSQL_LIBDIR=/usr/lib
23097 MYSQL_BINDIR=/usr/bin
23098 elif test -f /usr/local/include/mysql/mysql.h; then
23099 MYSQL_INCDIR=/usr/local/include/mysql
23100 if test -d /usr/local/lib64/mysql; then
23101 MYSQL_LIBDIR=/usr/local/lib64/mysql
23103 MYSQL_LIBDIR=/usr/local/lib/mysql
23105 MYSQL_BINDIR=/usr/local/bin
23106 elif test -f /usr/local/include/mysql.h; then
23107 MYSQL_INCDIR=/usr/local/include
23108 if test -d /usr/local/lib64; then
23109 MYSQL_LIBDIR=/usr/local/lib64
23111 MYSQL_LIBDIR=/usr/local/lib
23113 MYSQL_BINDIR=/usr/local/bin
23115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23116 $as_echo "no" >&6; }
23117 as_fn_error "Unable to find mysql.h in standard locations" "$LINENO" 5
23120 if test -f $withval/include/mysql/mysql.h; then
23121 MYSQL_INCDIR=$withval/include/mysql
23122 if test -d $withval/lib64/mysql; then
23123 MYSQL_LIBDIR=$withval/lib64/mysql
23125 MYSQL_LIBDIR=$withval/lib/mysql
23127 MYSQL_BINDIR=$withval/bin
23128 elif test -f $withval/include/mysql.h; then
23129 MYSQL_INCDIR=$withval/include
23130 if test -d $withval/lib64; then
23131 MYSQL_LIBDIR=$withval/lib64
23133 MYSQL_LIBDIR=$withval/lib
23135 MYSQL_BINDIR=$withval/bin
23137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23138 $as_echo "no" >&6; }
23139 as_fn_error "Invalid MySQL directory $withval - unable to find mysql.h under $withval" "$LINENO" 5
23142 SQL_INCLUDE=-I$MYSQL_INCDIR
23143 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
23144 SQL_BINDIR=$MYSQL_BINDIR
23145 SQL_LIB=$MYSQL_LIBDIR/libmysqld.a
23147 $as_echo "#define HAVE_MYSQL 1" >>confdefs.h
23149 $as_echo "#define HAVE_EMBEDDED_MYSQL 1" >>confdefs.h
23151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23152 $as_echo "yes" >&6; }
23159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23160 $as_echo "no" >&6; }
23176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ingres support" >&5
23177 $as_echo_n "checking for Ingres support... " >&6; }
23179 # Check whether --with-ingres was given.
23180 if test "${with_ingres+set}" = set; then :
23181 withval=$with_ingres;
23182 if test "$withval" != "no"; then
23183 if test "$withval" = "yes"; then
23184 if test -f ${II_SYSTEM}/files/eqdefc.h; then
23185 INGRES_INCDIR=${II_SYSTEM}/files
23186 INGRES_LIBDIR=${II_SYSTEM}/lib
23187 INGRES_BINDIR=${II_SYSTEM}/bin
23188 elif test -f ${II_SYSTEM}/ingres/files/eqdefc.h; then
23189 INGRES_INCDIR=${II_SYSTEM}/ingres/files
23190 INGRES_LIBDIR=${II_SYSTEM}/ingres/lib
23191 INGRES_BINDIR=${II_SYSTEM}/ingres/bin
23193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23194 $as_echo "no" >&6; }
23195 as_fn_error "Unable to find eqdefc.h in standard locations" "$LINENO" 5
23198 if test -f $withval/files/eqdefc.h; then
23199 INGRES_INCDIR=$withval/files
23200 INGRES_LIBDIR=$withval/lib
23201 INGRES_BINDIR=$withval/bin
23203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23204 $as_echo "no" >&6; }
23205 as_fn_error "Invalid Ingres directory $withval - unable to find Ingres headers under $withval" "$LINENO" 5
23208 SQL_INCLUDE=-I$INGRES_INCDIR
23209 SQL_LFLAGS="-L$INGRES_LIBDIR -lq.1 -lcompat.1 -lframe.1"
23210 SQL_BINDIR=$INGRES_BINDIR
23211 SQL_LIB=$INGRES_LIBDIR/libingres.a
23213 $as_echo "#define HAVE_INGRES 1" >>confdefs.h
23215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23216 $as_echo "yes" >&6; }
23223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23224 $as_echo "no" >&6; }
23229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23230 $as_echo "no" >&6; }
23242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLite3 support" >&5
23243 $as_echo_n "checking for SQLite3 support... " >&6; }
23245 # Check whether --with-sqlite3 was given.
23246 if test "${with_sqlite3+set}" = set; then :
23247 withval=$with_sqlite3;
23248 if test "$withval" != "no"; then
23249 if test "$withval" = "yes"; then
23250 if test -f /usr/local/include/sqlite3.h; then
23251 SQLITE_INCDIR=/usr/local/include
23252 if test -d /usr/local/lib64; then
23253 SQLITE_LIBDIR=/usr/local/lib64
23255 SQLITE_LIBDIR=/usr/local/lib
23257 SQLITE_BINDIR=/usr/local/bin
23258 elif test -f /usr/include/sqlite3.h; then
23259 SQLITE_INCDIR=/usr/include
23260 if test -d /usr/lib64; then
23261 SQLITE_LIBDIR=/usr/lib64
23263 SQLITE_LIBDIR=/usr/lib
23265 SQLITE_BINDIR=/usr/bin
23266 elif test -f $prefix/include/sqlite3.h; then
23267 SQLITE_INCDIR=$prefix/include
23268 if test -d $prefix/lib64; then
23269 SQLITE_LIBDIR=$prefix/lib64
23271 SQLITE_LIBDIR=$prefix/lib
23273 SQLITE_BINDIR=$prefix/bin
23275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23276 $as_echo "no" >&6; }
23277 as_fn_error "Unable to find sqlite3.h in standard locations" "$LINENO" 5
23280 if test -f $withval/sqlite3.h; then
23281 SQLITE_INCDIR=$withval
23282 SQLITE_LIBDIR=$withval
23283 SQLITE_BINDIR=$withval
23284 elif test -f $withval/include/sqlite3.h; then
23285 SQLITE_INCDIR=$withval/include
23286 if test -d $withval/lib64; then
23287 SQLITE_LIBDIR=$withval/lib64
23289 SQLITE_LIBDIR=$withval/lib
23291 SQLITE_BINDIR=$withval/bin
23293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23294 $as_echo "no" >&6; }
23295 as_fn_error "Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" "$LINENO" 5
23298 SQL_INCLUDE=-I$SQLITE_INCDIR
23299 SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite3"
23300 SQL_BINDIR=$SQLITE_BINDIR
23301 SQL_LIB=$SQLITE_LIBDIR/libsqlite3.a
23303 $as_echo "#define HAVE_SQLITE3 1" >>confdefs.h
23305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23306 $as_echo "yes" >&6; }
23308 support_sqlite3=yes
23313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23314 $as_echo "no" >&6; }
23319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23320 $as_echo "no" >&6; }
23330 # BA_CHECK_SQLITE_DB
23334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DBI support" >&5
23335 $as_echo_n "checking for DBI support... " >&6; }
23337 # Check whether --with-dbi was given.
23338 if test "${with_dbi+set}" = set; then :
23340 if test "$withval" != "no"; then
23341 if test "$withval" = "yes"; then
23342 if test -f /usr/local/include/dbi/dbi.h; then
23343 DBI_INCDIR=/usr/local/dbi/include
23344 if test -d /usr/local/lib64; then
23345 DBI_LIBDIR=/usr/local/lib64
23347 DBI_LIBDIR=/usr/local/lib
23349 DBI_BINDIR=/usr/local/bin
23350 elif test -f /usr/include/dbi/dbi.h; then
23351 DBI_INCDIR=/usr/include
23352 if test -d /usr/lib64; then
23353 DBI_LIBDIR=/usr/lib64
23355 DBI_LIBDIR=/usr/lib
23357 DBI_BINDIR=/usr/bin
23358 elif test -f $prefix/include/dbi/dbi.h; then
23359 DBI_INCDIR=$prefix/include
23360 if test -d $prefix/lib64; then
23361 DBI_LIBDIR=$prefix/lib64
23363 DBI_LIBDIR=$prefix/lib
23365 DBI_BINDIR=$prefix/bin
23367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23368 $as_echo "no" >&6; }
23369 as_fn_error "Unable to find dbi.h in standard locations" "$LINENO" 5
23371 if test -d /usr/local/lib/dbd; then
23372 DRIVERDIR=/usr/local/lib/dbd
23373 if test -d /usr/local/lib64/dbd; then
23374 DRIVERDIR=/usr/local/lib64/dbd
23376 DRIVERDIR=/usr/local/lib/dbd
23378 elif test -d /usr/lib/dbd; then
23379 DRIVERDIR=/usr/lib/dbd
23380 if test -d /usr/lib64/dbd; then
23381 DRIVERDIR=/usr/lib64/dbd
23383 DRIVERDIR=/usr/lib/dbd
23385 elif test -d $prefix/lib/dbd; then
23386 if test -d $prefix/lib64/dbd; then
23387 DRIVERDIR=$prefix/lib64/dbd
23389 DRIVERDIR=$prefix/lib/dbd
23391 elif test -d /usr/local/lib64/dbd; then
23392 DRIVERDIR=/usr/local/lib64/dbd
23393 elif test -d /usr/lib64/dbd; then
23394 DRIVERDIR=/usr/lib64/dbd
23395 elif test -d $prefix/lib64/dbd; then
23396 DRIVERDIR=$prefix/lib64/dbd
23398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23399 $as_echo "no" >&6; }
23400 as_fn_error "Unable to find DBD drivers in standard locations" "$LINENO" 5
23403 if test -f $withval/dbi.h; then
23404 DBI_INCDIR=$withval
23405 DBI_LIBDIR=$withval
23406 DBI_BINDIR=$withval
23407 elif test -f $withval/include/dbi/dbi.h; then
23408 DBI_INCDIR=$withval/include
23409 if test -d $withval/lib64; then
23410 DBI_LIBDIR=$withval/lib64
23412 DBI_LIBDIR=$withval/lib
23414 DBI_BINDIR=$withval/bin
23416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23417 $as_echo "no" >&6; }
23418 as_fn_error "Invalid DBI directory $withval - unable to find dbi.h under $withval" "$LINENO" 5
23420 if test -d $withval/dbd; then
23421 DRIVERDIR=$withval/dbd
23422 elif test -d $withval/lib/; then
23423 if test -d $withval/lib64/dbd; then
23424 DRIVERDIR=$withval/lib64/dbd
23426 DRIVERDIR=$withval/lib/dbd
23428 elif test -d $withval/lib64/dbd; then
23429 DRIVERDIR=$withval/lib64/dbd
23431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23432 $as_echo "no" >&6; }
23433 as_fn_error "Invalid DBD driver directory $withval - unable to find DBD drivers under $withval" "$LINENO" 5
23436 SQL_INCLUDE=-I$DBI_INCDIR
23437 SQL_LFLAGS="-L$DBI_LIBDIR -ldbi"
23438 SQL_BINDIR=$DBI_BINDIR
23439 SQL_LIB=$DBI_LIBDIR/libdbi.a
23440 DBI_DBD_DRIVERDIR="-D DBI_DRIVER_DIR=\\\"$DRIVERDIR\\\""
23443 $as_echo "#define HAVE_DBI 1" >>confdefs.h
23445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23446 $as_echo "yes" >&6; }
23454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23455 $as_echo "no" >&6; }
23460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23461 $as_echo "no" >&6; }
23476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DBI drivers support" >&5
23477 $as_echo_n "checking for DBI drivers support... " >&6; }
23479 # Check whether --with-dbi-driver was given.
23480 if test "${with_dbi_driver+set}" = set; then :
23481 withval=$with_dbi_driver;
23482 if test "$withval" != "no"; then
23486 if test -f /usr/local/mysql/bin/mysql; then
23487 SQL_BINDIR=/usr/local/mysql/bin
23488 if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
23489 -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
23490 SQL_LIBDIR=/usr/local/mysql/lib64/mysql
23492 SQL_LIBDIR=/usr/local/mysql/lib/mysql
23494 elif test -f /usr/bin/mysql; then
23495 SQL_BINDIR=/usr/bin
23496 if test -f /usr/lib64/mysql/libmysqlclient_r.a \
23497 -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
23498 SQL_LIBDIR=/usr/lib64/mysql
23499 elif test -f /usr/lib/mysql/libmysqlclient_r.a \
23500 -o -f /usr/lib/mysql/libmysqlclient_r.so; then
23501 SQL_LIBDIR=/usr/lib/mysql
23503 SQL_LIBDIR=/usr/lib
23505 elif test -f /usr/local/bin/mysql; then
23506 SQL_BINDIR=/usr/local/bin
23507 if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
23508 -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
23509 SQL_LIBDIR=/usr/local/lib64/mysql
23510 elif test -f /usr/local/lib/mysql/libmysqlclient_r.a \
23511 -o -f /usr/local/lib/mysql/libmysqlclient_r.so; then
23512 SQL_LIBDIR=/usr/local/lib/mysql
23514 SQL_LIBDIR=/usr/local/lib
23516 elif test -f $withval/bin/mysql; then
23517 SQL_BINDIR=$withval/bin
23518 if test -f $withval/lib64/mysql/libmysqlclient_r.a \
23519 -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
23520 SQL_LIBDIR=$withval/lib64/mysql
23521 elif test -f $withval/lib64/libmysqlclient_r.a \
23522 -o -f $withval/lib64/libmysqlclient_r.so; then
23523 SQL_LIBDIR=$withval/lib64
23524 elif test -f $withval/lib/libmysqlclient_r.a \
23525 -o -f $withval/lib/libmysqlclient_r.so; then
23526 SQL_LIBDIR=$withval/lib/
23528 SQL_LIBDIR=$withval/lib/mysql
23531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23532 $as_echo "no" >&6; }
23533 as_fn_error "Unable to find mysql in standard locations" "$LINENO" 5
23535 if test -f $SQL_LIBDIR/libmysqlclient_r.so; then
23536 DB_PROG_LIB=$SQL_LIBDIR/libmysqlclient_r.so
23538 DB_PROG_LIB=$SQL_LIBDIR/libmysqlclient_r.a
23542 db_prog="postgresql"
23543 PG_CONFIG=`which pg_config`
23544 if test -n "$PG_CONFIG"; then
23545 SQL_BINDIR=`"$PG_CONFIG" --bindir`
23546 SQL_LIBDIR=`"$PG_CONFIG" --libdir`
23547 elif test -f /usr/local/bin/psql; then
23548 SQL_BINDIR=/usr/local/bin
23549 if test -d /usr/local/lib64; then
23550 SQL_LIBDIR=/usr/local/lib64
23552 SQL_LIBDIR=/usr/local/lib
23554 elif test -f /usr/bin/psql; then
23555 SQL_BINDIR=/usr/local/bin
23556 if test -d /usr/lib64/postgresql; then
23557 SQL_LIBDIR=/usr/lib64/postgresql
23558 elif test -d /usr/lib/postgresql; then
23559 SQL_LIBDIR=/usr/lib/postgresql
23560 elif test -d /usr/lib64; then
23561 SQL_LIBDIR=/usr/lib64
23563 SQL_LIBDIR=/usr/lib
23565 elif test -f $withval/bin/psql; then
23566 SQL_BINDIR=$withval/bin
23567 if test -d $withval/lib64; then
23568 SQL_LIBDIR=$withval/lib64
23570 SQL_LIBDIR=$withval/lib
23573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23574 $as_echo "no" >&6; }
23575 as_fn_error "Unable to find psql in standard locations" "$LINENO" 5
23577 if test -f $SQL_LIBDIR/libpq.so; then
23578 DB_PROG_LIB=$SQL_LIBDIR/libpq.so
23580 DB_PROG_LIB=$SQL_LIBDIR/libpq.a
23585 if test -f /usr/local/bin/sqlite; then
23586 SQL_BINDIR=/usr/local/bin
23587 if test -d /usr/local/lib64; then
23588 SQL_LIBDIR=/usr/local/lib64
23590 SQL_LIBDIR=/usr/local/lib
23592 elif test -f /usr/bin/sqlite; then
23593 SQL_BINDIR=/usr/bin
23594 if test -d /usr/lib64; then
23595 SQL_LIBDIR=/usr/lib64
23597 SQL_LIBDIR=/usr/lib
23599 elif test -f $withval/bin/sqlite; then
23600 SQL_BINDIR=$withval/bin
23601 if test -d $withval/lib64; then
23602 SQL_LIBDIR=$withval/lib64
23604 SQL_LIBDIR=$withval/lib
23607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23608 $as_echo "no" >&6; }
23609 as_fn_error "Unable to find sqlite in standard locations" "$LINENO" 5
23611 if test -f $SQL_LIBDIR/libsqlite.so; then
23612 DB_PROG_LIB=$SQL_LIBDIR/libsqlite.so
23614 DB_PROG_LIB=$SQL_LIBDIR/libsqlite.a
23619 if test -f /usr/local/bin/sqlite3; then
23620 SQL_BINDIR=/usr/local/bin
23621 if test -d /usr/local/lib64; then
23622 SQL_LIBDIR=/usr/local/lib64
23624 SQL_LIBDIR=/usr/local/lib
23626 elif test -f /usr/bin/sqlite3; then
23627 SQL_BINDIR=/usr/bin
23628 if test -d /usr/lib64; then
23629 SQL_LIBDIR=/usr/lib64
23631 SQL_LIBDIR=/usr/lib
23633 elif test -f $withval/bin/sqlite3; then
23634 SQL_BINDIR=$withval/bin
23635 if test -d $withval/lib64; then
23636 SQL_LIBDIR=$withval/lib64
23638 SQL_LIBDIR=$withval/lib
23641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23642 $as_echo "no" >&6; }
23643 as_fn_error "Unable to find sqlite in standard locations" "$LINENO" 5
23645 if test -f $SQL_LIBDIR/libsqlite3.so; then
23646 DB_PROG_LIB=$SQL_LIBDIR/libsqlite3.so
23648 DB_PROG_LIB=$SQL_LIBDIR/libsqlite3.a
23652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23653 $as_echo "no" >&6; }
23654 as_fn_error "Unable to set DBI driver. $withval is not supported" "$LINENO" 5
23658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23659 $as_echo "yes" >&6; }
23662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23663 $as_echo "no" >&6; }
23668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23669 $as_echo "no" >&6; }
23682 support_batch_insert=no
23683 A=`test -f $SQL_LIB && nm $SQL_LIB | grep pthread_mutex_lock`
23685 if test $pkg = 0; then
23686 support_batch_insert=yes
23687 # Check whether --enable-batch-insert was given.
23688 if test "${enable_batch_insert+set}" = set; then :
23689 enableval=$enable_batch_insert;
23690 if test x$enableval = xno; then
23691 support_batch_insert=no
23693 support_batch_insert=yes
23701 if test x$DB_TYPE = xpostgresql; then
23702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQisthreadsafe in -lpq" >&5
23703 $as_echo_n "checking for PQisthreadsafe in -lpq... " >&6; }
23704 if test "${ac_cv_lib_pq_PQisthreadsafe+set}" = set; then :
23705 $as_echo_n "(cached) " >&6
23707 ac_check_lib_save_LIBS=$LIBS
23709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23710 /* end confdefs.h. */
23712 /* Override any GCC internal prototype to avoid an error.
23713 Use char because int might match the return type of a GCC
23714 builtin and then its argument prototype would still apply. */
23718 char PQisthreadsafe ();
23722 return PQisthreadsafe ();
23727 if ac_fn_c_try_link "$LINENO"; then :
23728 ac_cv_lib_pq_PQisthreadsafe=yes
23730 ac_cv_lib_pq_PQisthreadsafe=no
23732 rm -f core conftest.err conftest.$ac_objext \
23733 conftest$ac_exeext conftest.$ac_ext
23734 LIBS=$ac_check_lib_save_LIBS
23736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQisthreadsafe" >&5
23737 $as_echo "$ac_cv_lib_pq_PQisthreadsafe" >&6; }
23738 if test "x$ac_cv_lib_pq_PQisthreadsafe" = x""yes; then :
23740 $as_echo "#define HAVE_PQISTHREADSAFE 1" >>confdefs.h
23744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQputCopyData in -lpq" >&5
23745 $as_echo_n "checking for PQputCopyData in -lpq... " >&6; }
23746 if test "${ac_cv_lib_pq_PQputCopyData+set}" = set; then :
23747 $as_echo_n "(cached) " >&6
23749 ac_check_lib_save_LIBS=$LIBS
23751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23752 /* end confdefs.h. */
23754 /* Override any GCC internal prototype to avoid an error.
23755 Use char because int might match the return type of a GCC
23756 builtin and then its argument prototype would still apply. */
23760 char PQputCopyData ();
23764 return PQputCopyData ();
23769 if ac_fn_c_try_link "$LINENO"; then :
23770 ac_cv_lib_pq_PQputCopyData=yes
23772 ac_cv_lib_pq_PQputCopyData=no
23774 rm -f core conftest.err conftest.$ac_objext \
23775 conftest$ac_exeext conftest.$ac_ext
23776 LIBS=$ac_check_lib_save_LIBS
23778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQputCopyData" >&5
23779 $as_echo "$ac_cv_lib_pq_PQputCopyData" >&6; }
23780 if test "x$ac_cv_lib_pq_PQputCopyData" = x""yes; then :
23782 $as_echo "#define HAVE_PQ_COPY 1" >>confdefs.h
23786 if test "x$ac_cv_lib_pq_PQputCopyData" != "xyes"
23788 support_batch_insert=no
23792 if test x$DB_TYPE = xdbi; then
23796 if test $DB_PROG = postgresql; then
23797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQisthreadsafe in -lpq" >&5
23798 $as_echo_n "checking for PQisthreadsafe in -lpq... " >&6; }
23799 if test "${ac_cv_lib_pq_PQisthreadsafe+set}" = set; then :
23800 $as_echo_n "(cached) " >&6
23802 ac_check_lib_save_LIBS=$LIBS
23804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23805 /* end confdefs.h. */
23807 /* Override any GCC internal prototype to avoid an error.
23808 Use char because int might match the return type of a GCC
23809 builtin and then its argument prototype would still apply. */
23813 char PQisthreadsafe ();
23817 return PQisthreadsafe ();
23822 if ac_fn_c_try_link "$LINENO"; then :
23823 ac_cv_lib_pq_PQisthreadsafe=yes
23825 ac_cv_lib_pq_PQisthreadsafe=no
23827 rm -f core conftest.err conftest.$ac_objext \
23828 conftest$ac_exeext conftest.$ac_ext
23829 LIBS=$ac_check_lib_save_LIBS
23831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQisthreadsafe" >&5
23832 $as_echo "$ac_cv_lib_pq_PQisthreadsafe" >&6; }
23833 if test "x$ac_cv_lib_pq_PQisthreadsafe" = x""yes; then :
23834 $as_echo "#define HAVE_PQISTHREADSAFE 1" >>confdefs.h
23838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQputCopyData in -lpq" >&5
23839 $as_echo_n "checking for PQputCopyData in -lpq... " >&6; }
23840 if test "${ac_cv_lib_pq_PQputCopyData+set}" = set; then :
23841 $as_echo_n "(cached) " >&6
23843 ac_check_lib_save_LIBS=$LIBS
23845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23846 /* end confdefs.h. */
23848 /* Override any GCC internal prototype to avoid an error.
23849 Use char because int might match the return type of a GCC
23850 builtin and then its argument prototype would still apply. */
23854 char PQputCopyData ();
23858 return PQputCopyData ();
23863 if ac_fn_c_try_link "$LINENO"; then :
23864 ac_cv_lib_pq_PQputCopyData=yes
23866 ac_cv_lib_pq_PQputCopyData=no
23868 rm -f core conftest.err conftest.$ac_objext \
23869 conftest$ac_exeext conftest.$ac_ext
23870 LIBS=$ac_check_lib_save_LIBS
23872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQputCopyData" >&5
23873 $as_echo "$ac_cv_lib_pq_PQputCopyData" >&6; }
23874 if test "x$ac_cv_lib_pq_PQputCopyData" = x""yes; then :
23875 $as_echo "#define HAVE_PQ_COPY 1" >>confdefs.h
23879 test "x$ac_cv_lib_pq_PQputCopyData" != "xyes"
23883 if test $DB_PROG = mysql; then
23884 A=`test -f $SQL_LIB && nm $DB_PROG_LIB | grep pthread_mutex_lock`
23888 if test $DB_PROG = sqlite3; then
23889 A=`test -f $SQL_LIB && nm $DB_PROG_LIB | grep pthread_mutex_lock`
23891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_threadsafe in -lsqlite3" >&5
23892 $as_echo_n "checking for sqlite3_threadsafe in -lsqlite3... " >&6; }
23893 if test "${ac_cv_lib_sqlite3_sqlite3_threadsafe+set}" = set; then :
23894 $as_echo_n "(cached) " >&6
23896 ac_check_lib_save_LIBS=$LIBS
23897 LIBS="-lsqlite3 $LIBS"
23898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23899 /* end confdefs.h. */
23901 /* Override any GCC internal prototype to avoid an error.
23902 Use char because int might match the return type of a GCC
23903 builtin and then its argument prototype would still apply. */
23907 char sqlite3_threadsafe ();
23911 return sqlite3_threadsafe ();
23916 if ac_fn_c_try_link "$LINENO"; then :
23917 ac_cv_lib_sqlite3_sqlite3_threadsafe=yes
23919 ac_cv_lib_sqlite3_sqlite3_threadsafe=no
23921 rm -f core conftest.err conftest.$ac_objext \
23922 conftest$ac_exeext conftest.$ac_ext
23923 LIBS=$ac_check_lib_save_LIBS
23925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_threadsafe" >&5
23926 $as_echo "$ac_cv_lib_sqlite3_sqlite3_threadsafe" >&6; }
23927 if test "x$ac_cv_lib_sqlite3_sqlite3_threadsafe" = x""yes; then :
23929 $as_echo "#define HAVE_SQLITE3_THREADSAFE 1" >>confdefs.h
23935 if test $pkg = 0; then
23936 # Check whether --enable-batch-insert was given.
23937 if test "${enable_batch_insert+set}" = set; then :
23938 enableval=$enable_batch_insert;
23939 if test x$enableval = xno; then
23940 support_batch_insert=no
23942 support_batch_insert=yes
23955 if test x$DB_TYPE = xingres; then
23956 support_batch_insert=yes
23959 if test $support_batch_insert = yes ; then
23961 $as_echo "#define HAVE_BATCH_FILE_INSERT 1" >>confdefs.h
23965 $as_echo "#define PROTOTYPES 1" >>confdefs.h
23968 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
23969 if test -z "$CCOPTS"; then
23970 CCOPTS='-g -O2 -Wall'
23977 largefile_support="no"
23979 # Check whether --enable-largefile was given.
23980 if test "${enable_largefile+set}" = set; then :
23981 enableval=$enable_largefile;
23984 if test "$enable_largefile" != no; then
23985 if test -n "$ac_tool_prefix"; then
23986 # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
23987 set dummy ${ac_tool_prefix}getconf; ac_word=$2
23988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23989 $as_echo_n "checking for $ac_word... " >&6; }
23990 if test "${ac_cv_prog_GETCONF+set}" = set; then :
23991 $as_echo_n "(cached) " >&6
23993 if test -n "$GETCONF"; then
23994 ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
23996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23997 for as_dir in $PATH
24000 test -z "$as_dir" && as_dir=.
24001 for ac_exec_ext in '' $ac_executable_extensions; do
24002 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24003 ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
24004 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24013 GETCONF=$ac_cv_prog_GETCONF
24014 if test -n "$GETCONF"; then
24015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GETCONF" >&5
24016 $as_echo "$GETCONF" >&6; }
24018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24019 $as_echo "no" >&6; }
24024 if test -z "$ac_cv_prog_GETCONF"; then
24025 ac_ct_GETCONF=$GETCONF
24026 # Extract the first word of "getconf", so it can be a program name with args.
24027 set dummy getconf; ac_word=$2
24028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24029 $as_echo_n "checking for $ac_word... " >&6; }
24030 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then :
24031 $as_echo_n "(cached) " >&6
24033 if test -n "$ac_ct_GETCONF"; then
24034 ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
24036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24037 for as_dir in $PATH
24040 test -z "$as_dir" && as_dir=.
24041 for ac_exec_ext in '' $ac_executable_extensions; do
24042 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24043 ac_cv_prog_ac_ct_GETCONF="getconf"
24044 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24053 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
24054 if test -n "$ac_ct_GETCONF"; then
24055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GETCONF" >&5
24056 $as_echo "$ac_ct_GETCONF" >&6; }
24058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24059 $as_echo "no" >&6; }
24062 if test "x$ac_ct_GETCONF" = x; then
24065 case $cross_compiling:$ac_tool_warned in
24067 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
24068 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
24069 ac_tool_warned=yes ;;
24071 GETCONF=$ac_ct_GETCONF
24074 GETCONF="$ac_cv_prog_GETCONF"
24077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLAGS value to request large file support" >&5
24078 $as_echo_n "checking for CFLAGS value to request large file support... " >&6; }
24079 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then :
24080 $as_echo_n "(cached) " >&6
24082 ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
24083 ac_cv_sys_largefile_CFLAGS=no
24085 # IRIX 6.2 and later require cc -n32.
24086 irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
24087 if test "$GCC" != yes; then
24088 ac_cv_sys_largefile_CFLAGS=-n32
24091 CC="$CC $ac_cv_sys_largefile_CFLAGS"
24092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24093 /* end confdefs.h. */
24103 if ac_fn_c_try_link "$LINENO"; then :
24106 ac_cv_sys_largefile_CFLAGS=no
24108 rm -f core conftest.err conftest.$ac_objext \
24109 conftest$ac_exeext conftest.$ac_ext
24114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CFLAGS" >&5
24115 $as_echo "$ac_cv_sys_largefile_CFLAGS" >&6; }
24116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDFLAGS value to request large file support" >&5
24117 $as_echo_n "checking for LDFLAGS value to request large file support... " >&6; }
24118 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then :
24119 $as_echo_n "(cached) " >&6
24121 ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
24122 ac_cv_sys_largefile_LDFLAGS=no
24126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_LDFLAGS" >&5
24127 $as_echo "$ac_cv_sys_largefile_LDFLAGS" >&6; }
24128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBS value to request large file support" >&5
24129 $as_echo_n "checking for LIBS value to request large file support... " >&6; }
24130 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then :
24131 $as_echo_n "(cached) " >&6
24133 ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
24134 ac_cv_sys_largefile_LIBS=no
24138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_LIBS" >&5
24139 $as_echo "$ac_cv_sys_largefile_LIBS" >&6; }
24141 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
24144 -D_FILE_OFFSET_BITS=*) ;;
24145 -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
24146 -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
24151 case "$CPPFLAGS" in
24152 '') CPPFLAGS="$ac_flag" ;;
24153 *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
24161 '') CFLAGS="$ac_flag" ;;
24162 *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
24167 case "$ac_cv_sys_largefile_LDFLAGS" in
24171 '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
24172 *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
24175 case "$ac_cv_sys_largefile_LIBS" in
24179 '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
24180 *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
24183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS" >&5
24184 $as_echo_n "checking for _FILE_OFFSET_BITS... " >&6; }
24185 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
24186 $as_echo_n "(cached) " >&6
24188 ac_cv_sys_file_offset_bits=no
24189 ac_cv_sys_file_offset_bits=64
24190 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
24192 -D_FILE_OFFSET_BITS)
24193 ac_cv_sys_file_offset_bits=1 ;;
24194 -D_FILE_OFFSET_BITS=*)
24195 ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
24200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
24201 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
24202 if test "$ac_cv_sys_file_offset_bits" != no; then
24204 cat >>confdefs.h <<_ACEOF
24205 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
24209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE" >&5
24210 $as_echo_n "checking for _LARGEFILE_SOURCE... " >&6; }
24211 if test "${ac_cv_sys_largefile_source+set}" = set; then :
24212 $as_echo_n "(cached) " >&6
24214 ac_cv_sys_largefile_source=no
24215 ac_cv_sys_largefile_source=1
24216 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
24218 -D_LARGEFILE_SOURCE)
24219 ac_cv_sys_largefile_source=1 ;;
24220 -D_LARGEFILE_SOURCE=*)
24221 ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
24226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
24227 $as_echo "$ac_cv_sys_largefile_source" >&6; }
24228 if test "$ac_cv_sys_largefile_source" != no; then
24230 cat >>confdefs.h <<_ACEOF
24231 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
24235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES" >&5
24236 $as_echo_n "checking for _LARGE_FILES... " >&6; }
24237 if test "${ac_cv_sys_large_files+set}" = set; then :
24238 $as_echo_n "(cached) " >&6
24240 ac_cv_sys_large_files=no
24241 ac_cv_sys_large_files=1
24242 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
24245 ac_cv_sys_large_files=1 ;;
24247 ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
24252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
24253 $as_echo "$ac_cv_sys_large_files" >&6; }
24254 if test "$ac_cv_sys_large_files" != no; then
24256 cat >>confdefs.h <<_ACEOF
24257 #define _LARGE_FILES $ac_cv_sys_large_files
24264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
24265 $as_echo_n "checking for X... " >&6; }
24268 # Check whether --with-x was given.
24269 if test "${with_x+set}" = set; then :
24273 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
24274 if test "x$with_x" = xno; then
24275 # The user explicitly disabled X.
24278 case $x_includes,$x_libraries in #(
24279 *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
24280 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
24281 $as_echo_n "(cached) " >&6
24283 # One or both of the vars are not set, and there is no cached value.
24284 ac_x_includes=no ac_x_libraries=no
24285 rm -f -r conftest.dir
24286 if mkdir conftest.dir; then
24288 cat >Imakefile <<'_ACEOF'
24290 @echo incroot='${INCROOT}'
24292 @echo usrlibdir='${USRLIBDIR}'
24294 @echo libdir='${LIBDIR}'
24296 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
24297 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
24298 for ac_var in incroot usrlibdir libdir; do
24299 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
24301 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
24302 for ac_extension in a so sl dylib la dll; do
24303 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
24304 test -f "$ac_im_libdir/libX11.$ac_extension"; then
24305 ac_im_usrlibdir=$ac_im_libdir; break
24308 # Screen out bogus values from the imake configuration. They are
24309 # bogus both because they are the default anyway, and because
24310 # using them would break gcc on systems where it needs fixed includes.
24311 case $ac_im_incroot in
24312 /usr/include) ac_x_includes= ;;
24313 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
24315 case $ac_im_usrlibdir in
24316 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
24317 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
24321 rm -f -r conftest.dir
24324 # Standard set of common directories for X headers.
24325 # Check X11 before X11Rn because it is often a symlink to the current release.
24339 /usr/local/X11/include
24340 /usr/local/X11R7/include
24341 /usr/local/X11R6/include
24342 /usr/local/X11R5/include
24343 /usr/local/X11R4/include
24345 /usr/local/include/X11
24346 /usr/local/include/X11R7
24347 /usr/local/include/X11R6
24348 /usr/local/include/X11R5
24349 /usr/local/include/X11R4
24353 /usr/XFree86/include/X11
24357 /usr/unsupported/include
24358 /usr/athena/include
24359 /usr/local/x11r5/include
24360 /usr/lpp/Xamples/include
24362 /usr/openwin/include
24363 /usr/openwin/share/include'
24365 if test "$ac_x_includes" = no; then
24366 # Guess where to find include files, by looking for Xlib.h.
24367 # First, try using that file with no special directory specified.
24368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24369 /* end confdefs.h. */
24370 #include <X11/Xlib.h>
24372 if ac_fn_c_try_cpp "$LINENO"; then :
24373 # We can compile using X headers with no special include directory.
24376 for ac_dir in $ac_x_header_dirs; do
24377 if test -r "$ac_dir/X11/Xlib.h"; then
24378 ac_x_includes=$ac_dir
24383 rm -f conftest.err conftest.$ac_ext
24384 fi # $ac_x_includes = no
24386 if test "$ac_x_libraries" = no; then
24387 # Check for the libraries.
24388 # See if we find them without any special options.
24389 # Don't add to $LIBS permanently.
24392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24393 /* end confdefs.h. */
24394 #include <X11/Xlib.h>
24403 if ac_fn_c_try_link "$LINENO"; then :
24405 # We can link X programs with no special library path.
24409 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
24411 # Don't even attempt the hair of trying to link an X program!
24412 for ac_extension in a so sl dylib la dll; do
24413 if test -r "$ac_dir/libX11.$ac_extension"; then
24414 ac_x_libraries=$ac_dir
24420 rm -f core conftest.err conftest.$ac_objext \
24421 conftest$ac_exeext conftest.$ac_ext
24422 fi # $ac_x_libraries = no
24424 case $ac_x_includes,$ac_x_libraries in #(
24425 no,* | *,no | *\'*)
24426 # Didn't find X, or a directory has "'" in its name.
24427 ac_cv_have_x="have_x=no";; #(
24429 # Record where we found X for the cache.
24430 ac_cv_have_x="have_x=yes\
24431 ac_x_includes='$ac_x_includes'\
24432 ac_x_libraries='$ac_x_libraries'"
24438 eval "$ac_cv_have_x"
24441 if test "$have_x" != yes; then
24442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
24443 $as_echo "$have_x" >&6; }
24446 # If each of the values was on the command line, it overrides each guess.
24447 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
24448 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
24449 # Update the cache value to reflect the command line values.
24450 ac_cv_have_x="have_x=yes\
24451 ac_x_includes='$x_includes'\
24452 ac_x_libraries='$x_libraries'"
24453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
24454 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
24457 if test "$no_x" = yes; then
24458 # Not all programs may use this symbol, but it does not hurt to define it.
24460 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
24462 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
24464 if test -n "$x_includes"; then
24465 X_CFLAGS="$X_CFLAGS -I$x_includes"
24468 # It would also be nice to do this for all -L options, not just this one.
24469 if test -n "$x_libraries"; then
24470 X_LIBS="$X_LIBS -L$x_libraries"
24471 # For Solaris; some versions of Sun CC require a space after -R and
24472 # others require no space. Words are not sufficient . . . .
24473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
24474 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
24475 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
24476 ac_xsave_c_werror_flag=$ac_c_werror_flag
24477 ac_c_werror_flag=yes
24478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24479 /* end confdefs.h. */
24489 if ac_fn_c_try_link "$LINENO"; then :
24490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24491 $as_echo "no" >&6; }
24492 X_LIBS="$X_LIBS -R$x_libraries"
24494 LIBS="$ac_xsave_LIBS -R $x_libraries"
24495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24496 /* end confdefs.h. */
24506 if ac_fn_c_try_link "$LINENO"; then :
24507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24508 $as_echo "yes" >&6; }
24509 X_LIBS="$X_LIBS -R $x_libraries"
24511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
24512 $as_echo "neither works" >&6; }
24514 rm -f core conftest.err conftest.$ac_objext \
24515 conftest$ac_exeext conftest.$ac_ext
24517 rm -f core conftest.err conftest.$ac_objext \
24518 conftest$ac_exeext conftest.$ac_ext
24519 ac_c_werror_flag=$ac_xsave_c_werror_flag
24520 LIBS=$ac_xsave_LIBS
24523 # Check for system-dependent libraries X programs must link with.
24524 # Do this before checking for the system-independent R6 libraries
24525 # (-lICE), since we may need -lsocket or whatever for X linking.
24527 if test "$ISC" = yes; then
24528 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
24530 # Martyn Johnson says this is needed for Ultrix, if the X
24531 # libraries were built with DECnet support. And Karl Berry says
24532 # the Alpha needs dnet_stub (dnet does not exist).
24533 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
24534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24535 /* end confdefs.h. */
24537 /* Override any GCC internal prototype to avoid an error.
24538 Use char because int might match the return type of a GCC
24539 builtin and then its argument prototype would still apply. */
24543 char XOpenDisplay ();
24547 return XOpenDisplay ();
24552 if ac_fn_c_try_link "$LINENO"; then :
24555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
24556 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
24557 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
24558 $as_echo_n "(cached) " >&6
24560 ac_check_lib_save_LIBS=$LIBS
24561 LIBS="-ldnet $LIBS"
24562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24563 /* end confdefs.h. */
24565 /* Override any GCC internal prototype to avoid an error.
24566 Use char because int might match the return type of a GCC
24567 builtin and then its argument prototype would still apply. */
24575 return dnet_ntoa ();
24580 if ac_fn_c_try_link "$LINENO"; then :
24581 ac_cv_lib_dnet_dnet_ntoa=yes
24583 ac_cv_lib_dnet_dnet_ntoa=no
24585 rm -f core conftest.err conftest.$ac_objext \
24586 conftest$ac_exeext conftest.$ac_ext
24587 LIBS=$ac_check_lib_save_LIBS
24589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
24590 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
24591 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
24592 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
24595 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
24596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
24597 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
24598 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then :
24599 $as_echo_n "(cached) " >&6
24601 ac_check_lib_save_LIBS=$LIBS
24602 LIBS="-ldnet_stub $LIBS"
24603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24604 /* end confdefs.h. */
24606 /* Override any GCC internal prototype to avoid an error.
24607 Use char because int might match the return type of a GCC
24608 builtin and then its argument prototype would still apply. */
24616 return dnet_ntoa ();
24621 if ac_fn_c_try_link "$LINENO"; then :
24622 ac_cv_lib_dnet_stub_dnet_ntoa=yes
24624 ac_cv_lib_dnet_stub_dnet_ntoa=no
24626 rm -f core conftest.err conftest.$ac_objext \
24627 conftest$ac_exeext conftest.$ac_ext
24628 LIBS=$ac_check_lib_save_LIBS
24630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
24631 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
24632 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then :
24633 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
24638 rm -f core conftest.err conftest.$ac_objext \
24639 conftest$ac_exeext conftest.$ac_ext
24640 LIBS="$ac_xsave_LIBS"
24642 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
24643 # to get the SysV transport functions.
24644 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
24646 # The nsl library prevents programs from opening the X display
24647 # on Irix 5.2, according to T.E. Dickey.
24648 # The functions gethostbyname, getservbyname, and inet_addr are
24649 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
24650 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
24651 if test "x$ac_cv_func_gethostbyname" = x""yes; then :
24655 if test $ac_cv_func_gethostbyname = no; then
24656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
24657 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
24658 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
24659 $as_echo_n "(cached) " >&6
24661 ac_check_lib_save_LIBS=$LIBS
24663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24664 /* end confdefs.h. */
24666 /* Override any GCC internal prototype to avoid an error.
24667 Use char because int might match the return type of a GCC
24668 builtin and then its argument prototype would still apply. */
24672 char gethostbyname ();
24676 return gethostbyname ();
24681 if ac_fn_c_try_link "$LINENO"; then :
24682 ac_cv_lib_nsl_gethostbyname=yes
24684 ac_cv_lib_nsl_gethostbyname=no
24686 rm -f core conftest.err conftest.$ac_objext \
24687 conftest$ac_exeext conftest.$ac_ext
24688 LIBS=$ac_check_lib_save_LIBS
24690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
24691 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
24692 if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
24693 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
24696 if test $ac_cv_lib_nsl_gethostbyname = no; then
24697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
24698 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
24699 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then :
24700 $as_echo_n "(cached) " >&6
24702 ac_check_lib_save_LIBS=$LIBS
24704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24705 /* end confdefs.h. */
24707 /* Override any GCC internal prototype to avoid an error.
24708 Use char because int might match the return type of a GCC
24709 builtin and then its argument prototype would still apply. */
24713 char gethostbyname ();
24717 return gethostbyname ();
24722 if ac_fn_c_try_link "$LINENO"; then :
24723 ac_cv_lib_bsd_gethostbyname=yes
24725 ac_cv_lib_bsd_gethostbyname=no
24727 rm -f core conftest.err conftest.$ac_objext \
24728 conftest$ac_exeext conftest.$ac_ext
24729 LIBS=$ac_check_lib_save_LIBS
24731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
24732 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
24733 if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then :
24734 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
24740 # lieder@skyler.mavd.honeywell.com says without -lsocket,
24741 # socket/setsockopt and other routines are undefined under SCO ODT
24742 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
24743 # on later versions), says Simon Leinen: it contains gethostby*
24744 # variants that don't use the name server (or something). -lsocket
24745 # must be given before -lnsl if both are needed. We assume that
24746 # if connect needs -lnsl, so does gethostbyname.
24747 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
24748 if test "x$ac_cv_func_connect" = x""yes; then :
24752 if test $ac_cv_func_connect = no; then
24753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
24754 $as_echo_n "checking for connect in -lsocket... " >&6; }
24755 if test "${ac_cv_lib_socket_connect+set}" = set; then :
24756 $as_echo_n "(cached) " >&6
24758 ac_check_lib_save_LIBS=$LIBS
24759 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
24760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24761 /* end confdefs.h. */
24763 /* Override any GCC internal prototype to avoid an error.
24764 Use char because int might match the return type of a GCC
24765 builtin and then its argument prototype would still apply. */
24778 if ac_fn_c_try_link "$LINENO"; then :
24779 ac_cv_lib_socket_connect=yes
24781 ac_cv_lib_socket_connect=no
24783 rm -f core conftest.err conftest.$ac_objext \
24784 conftest$ac_exeext conftest.$ac_ext
24785 LIBS=$ac_check_lib_save_LIBS
24787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
24788 $as_echo "$ac_cv_lib_socket_connect" >&6; }
24789 if test "x$ac_cv_lib_socket_connect" = x""yes; then :
24790 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
24795 # Guillermo Gomez says -lposix is necessary on A/UX.
24796 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
24797 if test "x$ac_cv_func_remove" = x""yes; then :
24801 if test $ac_cv_func_remove = no; then
24802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
24803 $as_echo_n "checking for remove in -lposix... " >&6; }
24804 if test "${ac_cv_lib_posix_remove+set}" = set; then :
24805 $as_echo_n "(cached) " >&6
24807 ac_check_lib_save_LIBS=$LIBS
24808 LIBS="-lposix $LIBS"
24809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24810 /* end confdefs.h. */
24812 /* Override any GCC internal prototype to avoid an error.
24813 Use char because int might match the return type of a GCC
24814 builtin and then its argument prototype would still apply. */
24827 if ac_fn_c_try_link "$LINENO"; then :
24828 ac_cv_lib_posix_remove=yes
24830 ac_cv_lib_posix_remove=no
24832 rm -f core conftest.err conftest.$ac_objext \
24833 conftest$ac_exeext conftest.$ac_ext
24834 LIBS=$ac_check_lib_save_LIBS
24836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
24837 $as_echo "$ac_cv_lib_posix_remove" >&6; }
24838 if test "x$ac_cv_lib_posix_remove" = x""yes; then :
24839 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
24844 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
24845 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
24846 if test "x$ac_cv_func_shmat" = x""yes; then :
24850 if test $ac_cv_func_shmat = no; then
24851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
24852 $as_echo_n "checking for shmat in -lipc... " >&6; }
24853 if test "${ac_cv_lib_ipc_shmat+set}" = set; then :
24854 $as_echo_n "(cached) " >&6
24856 ac_check_lib_save_LIBS=$LIBS
24858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24859 /* end confdefs.h. */
24861 /* Override any GCC internal prototype to avoid an error.
24862 Use char because int might match the return type of a GCC
24863 builtin and then its argument prototype would still apply. */
24876 if ac_fn_c_try_link "$LINENO"; then :
24877 ac_cv_lib_ipc_shmat=yes
24879 ac_cv_lib_ipc_shmat=no
24881 rm -f core conftest.err conftest.$ac_objext \
24882 conftest$ac_exeext conftest.$ac_ext
24883 LIBS=$ac_check_lib_save_LIBS
24885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
24886 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
24887 if test "x$ac_cv_lib_ipc_shmat" = x""yes; then :
24888 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
24894 # Check for libraries that X11R6 Xt/Xaw programs need.
24895 ac_save_LDFLAGS=$LDFLAGS
24896 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
24897 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
24898 # check for ICE first), but we must link in the order -lSM -lICE or
24899 # we get undefined symbols. So assume we have SM if we have ICE.
24900 # These have to be linked with before -lX11, unlike the other
24901 # libraries we check for below, so use a different variable.
24902 # John Interrante, Karl Berry
24903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
24904 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
24905 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then :
24906 $as_echo_n "(cached) " >&6
24908 ac_check_lib_save_LIBS=$LIBS
24909 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
24910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24911 /* end confdefs.h. */
24913 /* Override any GCC internal prototype to avoid an error.
24914 Use char because int might match the return type of a GCC
24915 builtin and then its argument prototype would still apply. */
24919 char IceConnectionNumber ();
24923 return IceConnectionNumber ();
24928 if ac_fn_c_try_link "$LINENO"; then :
24929 ac_cv_lib_ICE_IceConnectionNumber=yes
24931 ac_cv_lib_ICE_IceConnectionNumber=no
24933 rm -f core conftest.err conftest.$ac_objext \
24934 conftest$ac_exeext conftest.$ac_ext
24935 LIBS=$ac_check_lib_save_LIBS
24937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
24938 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
24939 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then :
24940 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
24943 LDFLAGS=$ac_save_LDFLAGS
24980 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24981 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
24982 eval as_val=\$$as_ac_Header
24983 if test "x$as_val" = x""yes; then :
24984 cat >>confdefs.h <<_ACEOF
24985 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
24993 $as_echo_n "checking for ANSI C header files... " >&6; }
24994 if test "${ac_cv_header_stdc+set}" = set; then :
24995 $as_echo_n "(cached) " >&6
24997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24998 /* end confdefs.h. */
24999 #include <stdlib.h>
25000 #include <stdarg.h>
25001 #include <string.h>
25012 if ac_fn_c_try_compile "$LINENO"; then :
25013 ac_cv_header_stdc=yes
25015 ac_cv_header_stdc=no
25017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25019 if test $ac_cv_header_stdc = yes; then
25020 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
25021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25022 /* end confdefs.h. */
25023 #include <string.h>
25026 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25027 $EGREP "memchr" >/dev/null 2>&1; then :
25030 ac_cv_header_stdc=no
25036 if test $ac_cv_header_stdc = yes; then
25037 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
25038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25039 /* end confdefs.h. */
25040 #include <stdlib.h>
25043 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25044 $EGREP "free" >/dev/null 2>&1; then :
25047 ac_cv_header_stdc=no
25053 if test $ac_cv_header_stdc = yes; then
25054 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
25055 if test "$cross_compiling" = yes; then :
25058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25059 /* end confdefs.h. */
25061 #include <stdlib.h>
25062 #if ((' ' & 0x0FF) == 0x020)
25063 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
25064 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
25066 # define ISLOWER(c) \
25067 (('a' <= (c) && (c) <= 'i') \
25068 || ('j' <= (c) && (c) <= 'r') \
25069 || ('s' <= (c) && (c) <= 'z'))
25070 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
25073 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
25078 for (i = 0; i < 256; i++)
25079 if (XOR (islower (i), ISLOWER (i))
25080 || toupper (i) != TOUPPER (i))
25085 if ac_fn_c_try_run "$LINENO"; then :
25088 ac_cv_header_stdc=no
25090 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25091 conftest.$ac_objext conftest.beam conftest.$ac_ext
25096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
25097 $as_echo "$ac_cv_header_stdc" >&6; }
25098 if test $ac_cv_header_stdc = yes; then
25100 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
25104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev" >&5
25105 $as_echo_n "checking whether sys/types.h defines makedev... " >&6; }
25106 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then :
25107 $as_echo_n "(cached) " >&6
25109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25110 /* end confdefs.h. */
25111 #include <sys/types.h>
25115 return makedev(0, 0);
25120 if ac_fn_c_try_link "$LINENO"; then :
25121 ac_cv_header_sys_types_h_makedev=yes
25123 ac_cv_header_sys_types_h_makedev=no
25125 rm -f core conftest.err conftest.$ac_objext \
25126 conftest$ac_exeext conftest.$ac_ext
25129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_types_h_makedev" >&5
25130 $as_echo "$ac_cv_header_sys_types_h_makedev" >&6; }
25132 if test $ac_cv_header_sys_types_h_makedev = no; then
25133 ac_fn_c_check_header_mongrel "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"
25134 if test "x$ac_cv_header_sys_mkdev_h" = x""yes; then :
25136 $as_echo "#define MAJOR_IN_MKDEV 1" >>confdefs.h
25142 if test $ac_cv_header_sys_mkdev_h = no; then
25143 ac_fn_c_check_header_mongrel "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
25144 if test "x$ac_cv_header_sys_sysmacros_h" = x""yes; then :
25146 $as_echo "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h
25154 ac_header_dirent=no
25155 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
25156 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
25157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
25158 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
25159 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
25160 $as_echo_n "(cached) " >&6
25162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25163 /* end confdefs.h. */
25164 #include <sys/types.h>
25176 if ac_fn_c_try_compile "$LINENO"; then :
25177 eval "$as_ac_Header=yes"
25179 eval "$as_ac_Header=no"
25181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25183 eval ac_res=\$$as_ac_Header
25184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
25185 $as_echo "$ac_res" >&6; }
25186 eval as_val=\$$as_ac_Header
25187 if test "x$as_val" = x""yes; then :
25188 cat >>confdefs.h <<_ACEOF
25189 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
25192 ac_header_dirent=$ac_hdr; break
25196 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
25197 if test $ac_header_dirent = dirent.h; then
25198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
25199 $as_echo_n "checking for library containing opendir... " >&6; }
25200 if test "${ac_cv_search_opendir+set}" = set; then :
25201 $as_echo_n "(cached) " >&6
25203 ac_func_search_save_LIBS=$LIBS
25204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25205 /* end confdefs.h. */
25207 /* Override any GCC internal prototype to avoid an error.
25208 Use char because int might match the return type of a GCC
25209 builtin and then its argument prototype would still apply. */
25222 for ac_lib in '' dir; do
25223 if test -z "$ac_lib"; then
25224 ac_res="none required"
25227 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25229 if ac_fn_c_try_link "$LINENO"; then :
25230 ac_cv_search_opendir=$ac_res
25232 rm -f core conftest.err conftest.$ac_objext \
25234 if test "${ac_cv_search_opendir+set}" = set; then :
25238 if test "${ac_cv_search_opendir+set}" = set; then :
25241 ac_cv_search_opendir=no
25243 rm conftest.$ac_ext
25244 LIBS=$ac_func_search_save_LIBS
25246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
25247 $as_echo "$ac_cv_search_opendir" >&6; }
25248 ac_res=$ac_cv_search_opendir
25249 if test "$ac_res" != no; then :
25250 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
25256 $as_echo_n "checking for library containing opendir... " >&6; }
25257 if test "${ac_cv_search_opendir+set}" = set; then :
25258 $as_echo_n "(cached) " >&6
25260 ac_func_search_save_LIBS=$LIBS
25261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25262 /* end confdefs.h. */
25264 /* Override any GCC internal prototype to avoid an error.
25265 Use char because int might match the return type of a GCC
25266 builtin and then its argument prototype would still apply. */
25279 for ac_lib in '' x; do
25280 if test -z "$ac_lib"; then
25281 ac_res="none required"
25284 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25286 if ac_fn_c_try_link "$LINENO"; then :
25287 ac_cv_search_opendir=$ac_res
25289 rm -f core conftest.err conftest.$ac_objext \
25291 if test "${ac_cv_search_opendir+set}" = set; then :
25295 if test "${ac_cv_search_opendir+set}" = set; then :
25298 ac_cv_search_opendir=no
25300 rm conftest.$ac_ext
25301 LIBS=$ac_func_search_save_LIBS
25303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
25304 $as_echo "$ac_cv_search_opendir" >&6; }
25305 ac_res=$ac_cv_search_opendir
25306 if test "$ac_res" != no; then :
25307 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
25314 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
25315 if test "${ac_cv_header_stat_broken+set}" = set; then :
25316 $as_echo_n "(cached) " >&6
25318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25319 /* end confdefs.h. */
25320 #include <sys/types.h>
25321 #include <sys/stat.h>
25323 #if defined S_ISBLK && defined S_IFDIR
25324 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
25327 #if defined S_ISBLK && defined S_IFCHR
25328 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
25331 #if defined S_ISLNK && defined S_IFREG
25332 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
25335 #if defined S_ISSOCK && defined S_IFREG
25336 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
25340 if ac_fn_c_try_compile "$LINENO"; then :
25341 ac_cv_header_stat_broken=no
25343 ac_cv_header_stat_broken=yes
25345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
25348 $as_echo "$ac_cv_header_stat_broken" >&6; }
25349 if test $ac_cv_header_stat_broken = yes; then
25351 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
25355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
25356 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
25357 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
25358 $as_echo_n "(cached) " >&6
25360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25361 /* end confdefs.h. */
25362 #include <sys/types.h>
25363 #include <sys/wait.h>
25364 #ifndef WEXITSTATUS
25365 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
25368 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
25376 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
25381 if ac_fn_c_try_compile "$LINENO"; then :
25382 ac_cv_header_sys_wait_h=yes
25384 ac_cv_header_sys_wait_h=no
25386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
25389 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
25390 if test $ac_cv_header_sys_wait_h = yes; then
25392 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
25396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
25397 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
25398 if test "${ac_cv_header_time+set}" = set; then :
25399 $as_echo_n "(cached) " >&6
25401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25402 /* end confdefs.h. */
25403 #include <sys/types.h>
25404 #include <sys/time.h>
25410 if ((struct tm *) 0)
25416 if ac_fn_c_try_compile "$LINENO"; then :
25417 ac_cv_header_time=yes
25419 ac_cv_header_time=no
25421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
25424 $as_echo "$ac_cv_header_time" >&6; }
25425 if test $ac_cv_header_time = yes; then
25427 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
25431 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
25432 if test "x$ac_cv_member_struct_stat_st_blksize" = x""yes; then :
25434 cat >>confdefs.h <<_ACEOF
25435 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
25439 $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h
25444 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
25445 if test "x$ac_cv_member_struct_stat_st_blocks" = x""yes; then :
25447 cat >>confdefs.h <<_ACEOF
25448 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
25452 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
25455 case " $LIBOBJS " in
25456 *" fileblocks.$ac_objext "* ) ;;
25457 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
25464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
25465 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
25466 if test "${ac_cv_struct_tm+set}" = set; then :
25467 $as_echo_n "(cached) " >&6
25469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25470 /* end confdefs.h. */
25471 #include <sys/types.h>
25478 int *p = &tm.tm_sec;
25484 if ac_fn_c_try_compile "$LINENO"; then :
25485 ac_cv_struct_tm=time.h
25487 ac_cv_struct_tm=sys/time.h
25489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
25492 $as_echo "$ac_cv_struct_tm" >&6; }
25493 if test $ac_cv_struct_tm = sys/time.h; then
25495 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
25499 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
25500 #include <$ac_cv_struct_tm>
25503 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then :
25505 cat >>confdefs.h <<_ACEOF
25506 #define HAVE_STRUCT_TM_TM_ZONE 1
25512 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
25514 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
25517 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
25519 if test "x$ac_cv_have_decl_tzname" = x""yes; then :
25525 cat >>confdefs.h <<_ACEOF
25526 #define HAVE_DECL_TZNAME $ac_have_decl
25529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
25530 $as_echo_n "checking for tzname... " >&6; }
25531 if test "${ac_cv_var_tzname+set}" = set; then :
25532 $as_echo_n "(cached) " >&6
25534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25535 /* end confdefs.h. */
25537 #if !HAVE_DECL_TZNAME
25538 extern char *tzname[];
25544 return tzname[0][0];
25549 if ac_fn_c_try_link "$LINENO"; then :
25550 ac_cv_var_tzname=yes
25552 ac_cv_var_tzname=no
25554 rm -f core conftest.err conftest.$ac_objext \
25555 conftest$ac_exeext conftest.$ac_ext
25557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
25558 $as_echo "$ac_cv_var_tzname" >&6; }
25559 if test $ac_cv_var_tzname = yes; then
25561 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
25567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for utime.h" >&5
25568 $as_echo_n "checking for utime.h... " >&6; }
25569 if test "${ba_cv_header_utime_h+set}" = set; then :
25570 $as_echo_n "(cached) " >&6
25573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25574 /* end confdefs.h. */
25576 #include <sys/types.h>
25589 if ac_fn_c_try_compile "$LINENO"; then :
25591 ba_cv_header_utime_h=yes
25595 ba_cv_header_utime_h=no
25599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_header_utime_h" >&5
25604 $as_echo "$ba_cv_header_utime_h" >&6; }
25605 test $ba_cv_header_utime_h = yes &&
25606 $as_echo "#define HAVE_UTIME_H 1" >>confdefs.h
25609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5
25610 $as_echo_n "checking for socklen_t... " >&6; }
25611 if test "${ba_cv_header_socklen_t+set}" = set; then :
25612 $as_echo_n "(cached) " >&6
25615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25616 /* end confdefs.h. */
25618 #include <sys/types.h>
25619 #include <sys/socket.h>
25631 if ac_fn_c_try_compile "$LINENO"; then :
25633 ba_cv_header_socklen_t=yes
25637 ba_cv_header_socklen_t=no
25641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_header_socklen_t" >&5
25646 $as_echo "$ba_cv_header_socklen_t" >&6; }
25647 test $ba_cv_header_socklen_t = yes &&
25648 $as_echo "#define HAVE_SOCKLEN_T 1" >>confdefs.h
25652 ac_cpp='$CXXCPP $CPPFLAGS'
25653 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25654 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25655 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ioctl_req_t" >&5
25658 $as_echo_n "checking for ioctl_req_t... " >&6; }
25659 if test "${ba_cv_header_ioctl_req_t+set}" = set; then :
25660 $as_echo_n "(cached) " >&6
25663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25664 /* end confdefs.h. */
25666 #include <unistd.h>
25667 #include <sys/types.h>
25668 #include <sys/ioctl.h>
25674 int (*d_ioctl)(int fd, unsigned long int request, ...);
25681 if ac_fn_cxx_try_compile "$LINENO"; then :
25683 ba_cv_header_ioctl_req_t=yes
25687 ba_cv_header_ioctl_req_t=no
25691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_header_ioctl_req_t" >&5
25696 $as_echo "$ba_cv_header_ioctl_req_t" >&6; }
25697 test $ba_cv_header_ioctl_req_t = yes &&
25698 $as_echo "#define HAVE_IOCTL_ULINT_REQUEST 1" >>confdefs.h
25702 ac_cpp='$CPP $CPPFLAGS'
25703 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25704 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25705 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25709 ac_cpp='$CXXCPP $CPPFLAGS'
25710 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25711 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25712 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for typeof" >&5
25715 $as_echo_n "checking for typeof... " >&6; }
25716 if test "${ba_cv_have_typeof+set}" = set; then :
25717 $as_echo_n "(cached) " >&6
25720 if test "$cross_compiling" = yes; then :
25722 ba_cv_have_typeof=no
25726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25727 /* end confdefs.h. */
25729 main(){char *a = 0; a = (typeof a)a;}
25732 if ac_fn_cxx_try_run "$LINENO"; then :
25734 ba_cv_have_typeof=yes
25738 ba_cv_have_typeof=no
25741 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25742 conftest.$ac_objext conftest.beam conftest.$ac_ext
25748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_have_typeof" >&5
25749 $as_echo "$ba_cv_have_typeof" >&6; }
25750 test $ba_cv_have_typeof = yes &&
25751 $as_echo "#define HAVE_TYPEOF 1" >>confdefs.h
25754 ac_cpp='$CPP $CPPFLAGS'
25755 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25756 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25757 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
25761 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
25762 if test "${ac_cv_c_const+set}" = set; then :
25763 $as_echo_n "(cached) " >&6
25765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25766 /* end confdefs.h. */
25771 /* FIXME: Include the comments suggested by Paul. */
25772 #ifndef __cplusplus
25773 /* Ultrix mips cc rejects this. */
25774 typedef int charset[2];
25776 /* SunOS 4.1.1 cc rejects this. */
25777 char const *const *pcpcc;
25779 /* NEC SVR4.0.2 mips cc rejects this. */
25780 struct point {int x, y;};
25781 static struct point const zero = {0,0};
25782 /* AIX XL C 1.02.0.0 rejects this.
25783 It does not let you subtract one const X* pointer from another in
25784 an arm of an if-expression whose if-part is not a constant
25786 const char *g = "string";
25787 pcpcc = &g + (g ? g-g : 0);
25788 /* HPUX 7.0 cc rejects these. */
25790 ppc = (char**) pcpcc;
25791 pcpcc = (char const *const *) ppc;
25792 { /* SCO 3.2v4 cc rejects this. */
25794 char const *s = 0 ? (char *) 0 : (char const *) 0;
25799 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
25800 int x[] = {25, 17};
25801 const int *foo = &x[0];
25804 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
25805 typedef const int *iptr;
25809 { /* AIX XL C 1.02.0.0 rejects this saying
25810 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
25811 struct s { int j; const int *ap[3]; };
25812 struct s *b; b->j = 5;
25814 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
25815 const int foo = 10;
25816 if (!foo) return 0;
25818 return !cs[0] && !zero.x;
25825 if ac_fn_c_try_compile "$LINENO"; then :
25830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
25833 $as_echo "$ac_cv_c_const" >&6; }
25834 if test $ac_cv_c_const = no; then
25836 $as_echo "#define const /**/" >>confdefs.h
25841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to get filesystem type" >&5
25842 $as_echo_n "checking how to get filesystem type... " >&6; }
25844 # The order of these tests is important.
25845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25846 /* end confdefs.h. */
25848 #include <sys/statvfs.h>
25849 #include <sys/fstyp.h>
25852 if ac_fn_c_try_cpp "$LINENO"; then :
25853 $as_echo "#define FSTYPE_STATVFS 1" >>confdefs.h
25857 rm -f conftest.err conftest.$ac_ext
25858 if test $fstype = no; then
25859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25860 /* end confdefs.h. */
25862 #include <sys/statfs.h>
25863 #include <sys/fstyp.h>
25866 if ac_fn_c_try_cpp "$LINENO"; then :
25867 $as_echo "#define FSTYPE_USG_STATFS 1" >>confdefs.h
25871 rm -f conftest.err conftest.$ac_ext
25873 if test $fstype = no; then
25874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25875 /* end confdefs.h. */
25877 #include <sys/statfs.h>
25878 #include <sys/vmount.h>
25881 if ac_fn_c_try_cpp "$LINENO"; then :
25882 $as_echo "#define FSTYPE_AIX_STATFS 1" >>confdefs.h
25886 rm -f conftest.err conftest.$ac_ext
25888 if test $fstype = no; then
25889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25890 /* end confdefs.h. */
25892 #include <mntent.h>
25895 if ac_fn_c_try_cpp "$LINENO"; then :
25896 $as_echo "#define FSTYPE_MNTENT 1" >>confdefs.h
25900 rm -f conftest.err conftest.$ac_ext
25902 if test $fstype = no; then
25903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25904 /* end confdefs.h. */
25905 #include <sys/mount.h>
25908 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25909 $EGREP "f_type;" >/dev/null 2>&1; then :
25910 $as_echo "#define FSTYPE_STATFS 1" >>confdefs.h
25916 if test $fstype = no; then
25917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25918 /* end confdefs.h. */
25920 #include <sys/mount.h>
25921 #include <sys/fs_types.h>
25924 if ac_fn_c_try_cpp "$LINENO"; then :
25925 $as_echo "#define FSTYPE_GETMNT 1" >>confdefs.h
25929 rm -f conftest.err conftest.$ac_ext
25931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fstype" >&5
25932 $as_echo "$fstype" >&6; }
25934 ac_fn_c_check_header_mongrel "$LINENO" "sys/statvfs.h" "ac_cv_header_sys_statvfs_h" "$ac_includes_default"
25935 if test "x$ac_cv_header_sys_statvfs_h" = x""yes; then :
25937 $as_echo "#define HAVE_SYS_STATVFS_H 1" >>confdefs.h
25943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
25944 $as_echo_n "checking return type of signal handlers... " >&6; }
25945 if test "${ac_cv_type_signal+set}" = set; then :
25946 $as_echo_n "(cached) " >&6
25948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25949 /* end confdefs.h. */
25950 #include <sys/types.h>
25951 #include <signal.h>
25956 return *(signal (0, 0)) (0) == 1;
25961 if ac_fn_c_try_compile "$LINENO"; then :
25962 ac_cv_type_signal=int
25964 ac_cv_type_signal=void
25966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
25969 $as_echo "$ac_cv_type_signal" >&6; }
25971 cat >>confdefs.h <<_ACEOF
25972 #define RETSIGTYPE $ac_cv_type_signal
25977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type of signal functions" >&5
25978 $as_echo_n "checking for type of signal functions... " >&6; }
25979 if test "${bash_cv_signal_vintage+set}" = set; then :
25980 $as_echo_n "(cached) " >&6
25983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25984 /* end confdefs.h. */
25985 #include <signal.h>
25991 struct sigaction sa;
25992 sigemptyset(&ss); sigsuspend(&ss);
25993 sigaction(SIGINT, &sa, (struct sigaction *) 0);
25994 sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
26000 if ac_fn_c_try_link "$LINENO"; then :
26001 bash_cv_signal_vintage="posix"
26004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26005 /* end confdefs.h. */
26006 #include <signal.h>
26011 int mask = sigmask(SIGINT);
26012 sigsetmask(mask); sigblock(mask); sigpause(mask);
26018 if ac_fn_c_try_link "$LINENO"; then :
26019 bash_cv_signal_vintage="4.2bsd"
26022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26023 /* end confdefs.h. */
26025 #include <signal.h>
26026 RETSIGTYPE foo() { }
26031 int mask = sigmask(SIGINT);
26032 sigset(SIGINT, foo); sigrelse(SIGINT);
26033 sighold(SIGINT); sigpause(SIGINT);
26039 if ac_fn_c_try_link "$LINENO"; then :
26040 bash_cv_signal_vintage="svr3"
26042 bash_cv_signal_vintage="v7"
26045 rm -f core conftest.err conftest.$ac_objext \
26046 conftest$ac_exeext conftest.$ac_ext
26049 rm -f core conftest.err conftest.$ac_objext \
26050 conftest$ac_exeext conftest.$ac_ext
26053 rm -f core conftest.err conftest.$ac_objext \
26054 conftest$ac_exeext conftest.$ac_ext
26058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_signal_vintage" >&5
26059 $as_echo "$bash_cv_signal_vintage" >&6; }
26060 if test "$bash_cv_signal_vintage" = "posix"; then
26061 $as_echo "#define HAVE_POSIX_SIGNALS 1" >>confdefs.h
26063 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
26064 $as_echo "#define HAVE_BSD_SIGNALS 1" >>confdefs.h
26066 elif test "$bash_cv_signal_vintage" = "svr3"; then
26067 $as_echo "#define HAVE_USG_SIGHOLD 1" >>confdefs.h
26071 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
26072 if test "x$ac_cv_type_mode_t" = x""yes; then :
26076 cat >>confdefs.h <<_ACEOF
26082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
26083 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
26084 if test "${ac_cv_type_uid_t+set}" = set; then :
26085 $as_echo_n "(cached) " >&6
26087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26088 /* end confdefs.h. */
26089 #include <sys/types.h>
26092 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26093 $EGREP "uid_t" >/dev/null 2>&1; then :
26094 ac_cv_type_uid_t=yes
26096 ac_cv_type_uid_t=no
26101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
26102 $as_echo "$ac_cv_type_uid_t" >&6; }
26103 if test $ac_cv_type_uid_t = no; then
26105 $as_echo "#define uid_t int" >>confdefs.h
26108 $as_echo "#define gid_t int" >>confdefs.h
26112 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
26113 if test "x$ac_cv_type_size_t" = x""yes; then :
26117 cat >>confdefs.h <<_ACEOF
26118 #define size_t unsigned int
26123 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
26124 if test "x$ac_cv_type_pid_t" = x""yes; then :
26128 cat >>confdefs.h <<_ACEOF
26134 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
26135 if test "x$ac_cv_type_off_t" = x""yes; then :
26139 cat >>confdefs.h <<_ACEOF
26140 #define off_t long int
26146 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
26147 if test "x$ac_cv_type_intptr_t" = x""yes; then :
26149 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
26152 for ac_type in 'int' 'long int' 'long long int'; do
26153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26154 /* end confdefs.h. */
26155 $ac_includes_default
26159 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
26166 if ac_fn_c_try_compile "$LINENO"; then :
26168 cat >>confdefs.h <<_ACEOF
26169 #define intptr_t $ac_type
26174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26175 test -z "$ac_type" && break
26181 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
26182 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
26184 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
26187 for ac_type in 'unsigned int' 'unsigned long int' \
26188 'unsigned long long int'; do
26189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26190 /* end confdefs.h. */
26191 $ac_includes_default
26195 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
26202 if ac_fn_c_try_compile "$LINENO"; then :
26204 cat >>confdefs.h <<_ACEOF
26205 #define uintptr_t $ac_type
26210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26211 test -z "$ac_type" && break
26216 ac_fn_c_check_type "$LINENO" "ino_t" "ac_cv_type_ino_t" "$ac_includes_default"
26217 if test "x$ac_cv_type_ino_t" = x""yes; then :
26221 cat >>confdefs.h <<_ACEOF
26222 #define ino_t unsigned long
26227 ac_fn_c_check_type "$LINENO" "dev_t" "ac_cv_type_dev_t" "$ac_includes_default"
26228 if test "x$ac_cv_type_dev_t" = x""yes; then :
26232 cat >>confdefs.h <<_ACEOF
26233 #define dev_t unsigned long
26238 ac_fn_c_check_type "$LINENO" "daddr_t" "ac_cv_type_daddr_t" "$ac_includes_default"
26239 if test "x$ac_cv_type_daddr_t" = x""yes; then :
26243 cat >>confdefs.h <<_ACEOF
26244 #define daddr_t long
26249 ac_fn_c_check_type "$LINENO" "major_t" "ac_cv_type_major_t" "$ac_includes_default"
26250 if test "x$ac_cv_type_major_t" = x""yes; then :
26254 cat >>confdefs.h <<_ACEOF
26255 #define major_t int
26260 ac_fn_c_check_type "$LINENO" "minor_t" "ac_cv_type_minor_t" "$ac_includes_default"
26261 if test "x$ac_cv_type_minor_t" = x""yes; then :
26265 cat >>confdefs.h <<_ACEOF
26266 #define minor_t int
26271 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
26272 if test "x$ac_cv_type_ssize_t" = x""yes; then :
26276 cat >>confdefs.h <<_ACEOF
26277 #define ssize_t int
26282 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
26283 if test "x$ac_cv_member_struct_stat_st_blocks" = x""yes; then :
26285 cat >>confdefs.h <<_ACEOF
26286 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
26290 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
26293 case " $LIBOBJS " in
26294 *" fileblocks.$ac_objext "* ) ;;
26295 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
26302 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
26303 if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then :
26305 cat >>confdefs.h <<_ACEOF
26306 #define HAVE_STRUCT_STAT_ST_RDEV 1
26310 $as_echo "#define HAVE_ST_RDEV 1" >>confdefs.h
26315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
26316 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
26317 if test "${ac_cv_struct_tm+set}" = set; then :
26318 $as_echo_n "(cached) " >&6
26320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26321 /* end confdefs.h. */
26322 #include <sys/types.h>
26329 int *p = &tm.tm_sec;
26335 if ac_fn_c_try_compile "$LINENO"; then :
26336 ac_cv_struct_tm=time.h
26338 ac_cv_struct_tm=sys/time.h
26340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
26343 $as_echo "$ac_cv_struct_tm" >&6; }
26344 if test $ac_cv_struct_tm = sys/time.h; then
26346 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
26350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
26351 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
26352 if test "${ac_cv_c_const+set}" = set; then :
26353 $as_echo_n "(cached) " >&6
26355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26356 /* end confdefs.h. */
26361 /* FIXME: Include the comments suggested by Paul. */
26362 #ifndef __cplusplus
26363 /* Ultrix mips cc rejects this. */
26364 typedef int charset[2];
26366 /* SunOS 4.1.1 cc rejects this. */
26367 char const *const *pcpcc;
26369 /* NEC SVR4.0.2 mips cc rejects this. */
26370 struct point {int x, y;};
26371 static struct point const zero = {0,0};
26372 /* AIX XL C 1.02.0.0 rejects this.
26373 It does not let you subtract one const X* pointer from another in
26374 an arm of an if-expression whose if-part is not a constant
26376 const char *g = "string";
26377 pcpcc = &g + (g ? g-g : 0);
26378 /* HPUX 7.0 cc rejects these. */
26380 ppc = (char**) pcpcc;
26381 pcpcc = (char const *const *) ppc;
26382 { /* SCO 3.2v4 cc rejects this. */
26384 char const *s = 0 ? (char *) 0 : (char const *) 0;
26389 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
26390 int x[] = {25, 17};
26391 const int *foo = &x[0];
26394 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
26395 typedef const int *iptr;
26399 { /* AIX XL C 1.02.0.0 rejects this saying
26400 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
26401 struct s { int j; const int *ap[3]; };
26402 struct s *b; b->j = 5;
26404 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
26405 const int foo = 10;
26406 if (!foo) return 0;
26408 return !cs[0] && !zero.x;
26415 if ac_fn_c_try_compile "$LINENO"; then :
26420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
26423 $as_echo "$ac_cv_c_const" >&6; }
26424 if test $ac_cv_c_const = no; then
26426 $as_echo "#define const /**/" >>confdefs.h
26431 # The cast to long int works around a bug in the HP C Compiler
26432 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26433 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26434 # This bug is HP SR number 8606223364.
26435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
26436 $as_echo_n "checking size of char... " >&6; }
26437 if test "${ac_cv_sizeof_char+set}" = set; then :
26438 $as_echo_n "(cached) " >&6
26440 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
26443 if test "$ac_cv_type_char" = yes; then
26444 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26445 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26446 { as_fn_set_status 77
26447 as_fn_error "cannot compute sizeof (char)
26448 See \`config.log' for more details." "$LINENO" 5; }; }
26450 ac_cv_sizeof_char=0
26455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
26456 $as_echo "$ac_cv_sizeof_char" >&6; }
26460 cat >>confdefs.h <<_ACEOF
26461 #define SIZEOF_CHAR $ac_cv_sizeof_char
26465 # The cast to long int works around a bug in the HP C Compiler
26466 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26467 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26468 # This bug is HP SR number 8606223364.
26469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short int" >&5
26470 $as_echo_n "checking size of short int... " >&6; }
26471 if test "${ac_cv_sizeof_short_int+set}" = set; then :
26472 $as_echo_n "(cached) " >&6
26474 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short int))" "ac_cv_sizeof_short_int" "$ac_includes_default"; then :
26477 if test "$ac_cv_type_short_int" = yes; then
26478 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26479 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26480 { as_fn_set_status 77
26481 as_fn_error "cannot compute sizeof (short int)
26482 See \`config.log' for more details." "$LINENO" 5; }; }
26484 ac_cv_sizeof_short_int=0
26489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short_int" >&5
26490 $as_echo "$ac_cv_sizeof_short_int" >&6; }
26494 cat >>confdefs.h <<_ACEOF
26495 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
26499 # The cast to long int works around a bug in the HP C Compiler
26500 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26501 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26502 # This bug is HP SR number 8606223364.
26503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
26504 $as_echo_n "checking size of int... " >&6; }
26505 if test "${ac_cv_sizeof_int+set}" = set; then :
26506 $as_echo_n "(cached) " >&6
26508 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
26511 if test "$ac_cv_type_int" = yes; then
26512 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26513 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26514 { as_fn_set_status 77
26515 as_fn_error "cannot compute sizeof (int)
26516 See \`config.log' for more details." "$LINENO" 5; }; }
26523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
26524 $as_echo "$ac_cv_sizeof_int" >&6; }
26528 cat >>confdefs.h <<_ACEOF
26529 #define SIZEOF_INT $ac_cv_sizeof_int
26533 # The cast to long int works around a bug in the HP C Compiler
26534 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26535 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26536 # This bug is HP SR number 8606223364.
26537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long int" >&5
26538 $as_echo_n "checking size of long int... " >&6; }
26539 if test "${ac_cv_sizeof_long_int+set}" = set; then :
26540 $as_echo_n "(cached) " >&6
26542 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long int))" "ac_cv_sizeof_long_int" "$ac_includes_default"; then :
26545 if test "$ac_cv_type_long_int" = yes; then
26546 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26547 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26548 { as_fn_set_status 77
26549 as_fn_error "cannot compute sizeof (long int)
26550 See \`config.log' for more details." "$LINENO" 5; }; }
26552 ac_cv_sizeof_long_int=0
26557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_int" >&5
26558 $as_echo "$ac_cv_sizeof_long_int" >&6; }
26562 cat >>confdefs.h <<_ACEOF
26563 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
26567 # The cast to long int works around a bug in the HP C Compiler
26568 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26569 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26570 # This bug is HP SR number 8606223364.
26571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long int" >&5
26572 $as_echo_n "checking size of long long int... " >&6; }
26573 if test "${ac_cv_sizeof_long_long_int+set}" = set; then :
26574 $as_echo_n "(cached) " >&6
26576 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long int))" "ac_cv_sizeof_long_long_int" "$ac_includes_default"; then :
26579 if test "$ac_cv_type_long_long_int" = yes; then
26580 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26581 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26582 { as_fn_set_status 77
26583 as_fn_error "cannot compute sizeof (long long int)
26584 See \`config.log' for more details." "$LINENO" 5; }; }
26586 ac_cv_sizeof_long_long_int=0
26591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long_int" >&5
26592 $as_echo "$ac_cv_sizeof_long_long_int" >&6; }
26596 cat >>confdefs.h <<_ACEOF
26597 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
26601 # The cast to long int works around a bug in the HP C Compiler
26602 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26603 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26604 # This bug is HP SR number 8606223364.
26605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int *" >&5
26606 $as_echo_n "checking size of int *... " >&6; }
26607 if test "${ac_cv_sizeof_int_p+set}" = set; then :
26608 $as_echo_n "(cached) " >&6
26610 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int *))" "ac_cv_sizeof_int_p" "$ac_includes_default"; then :
26613 if test "$ac_cv_type_int_p" = yes; then
26614 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26615 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26616 { as_fn_set_status 77
26617 as_fn_error "cannot compute sizeof (int *)
26618 See \`config.log' for more details." "$LINENO" 5; }; }
26620 ac_cv_sizeof_int_p=0
26625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int_p" >&5
26626 $as_echo "$ac_cv_sizeof_int_p" >&6; }
26630 cat >>confdefs.h <<_ACEOF
26631 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
26636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int type" >&5
26637 $as_echo_n "checking for u_int type... " >&6; }
26638 if test "${ac_cv_have_u_int+set}" = set; then :
26639 $as_echo_n "(cached) " >&6
26642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26643 /* end confdefs.h. */
26645 #include <sys/types.h>
26657 if ac_fn_c_try_compile "$LINENO"; then :
26659 ac_cv_have_u_int="yes"
26663 ac_cv_have_u_int="no"
26667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_int" >&5
26672 $as_echo "$ac_cv_have_u_int" >&6; }
26673 if test "x$ac_cv_have_u_int" = "xyes" ; then
26674 $as_echo "#define HAVE_U_INT 1" >>confdefs.h
26679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t type" >&5
26680 $as_echo_n "checking for intmax_t type... " >&6; }
26681 if test "${ac_cv_have_intmax_t+set}" = set; then :
26682 $as_echo_n "(cached) " >&6
26685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26686 /* end confdefs.h. */
26688 #include <sys/types.h>
26700 if ac_fn_c_try_compile "$LINENO"; then :
26702 ac_cv_have_intmax_t="yes"
26706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26707 /* end confdefs.h. */
26709 #include <stdint.h>
26721 if ac_fn_c_try_compile "$LINENO"; then :
26723 ac_cv_have_intmax_t="yes"
26727 ac_cv_have_intmax_t="no"
26731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_intmax_t" >&5
26740 $as_echo "$ac_cv_have_intmax_t" >&6; }
26741 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
26742 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
26747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_intmax_t type" >&5
26748 $as_echo_n "checking for u_intmax_t type... " >&6; }
26749 if test "${ac_cv_have_u_intmax_t+set}" = set; then :
26750 $as_echo_n "(cached) " >&6
26753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26754 /* end confdefs.h. */
26756 #include <sys/types.h>
26762 u_intmax_t a; a = 1;
26768 if ac_fn_c_try_compile "$LINENO"; then :
26770 ac_cv_have_u_intmax_t="yes"
26774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26775 /* end confdefs.h. */
26777 #include <stdint.h>
26783 u_intmax_t a; a = 1;
26789 if ac_fn_c_try_compile "$LINENO"; then :
26791 ac_cv_have_u_intmax_t="yes"
26795 ac_cv_have_u_intmax_t="no"
26799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_intmax_t" >&5
26808 $as_echo "$ac_cv_have_u_intmax_t" >&6; }
26809 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
26810 $as_echo "#define HAVE_U_INTMAX_T 1" >>confdefs.h
26815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intXX_t types" >&5
26816 $as_echo_n "checking for intXX_t types... " >&6; }
26817 if test "${ac_cv_have_intxx_t+set}" = set; then :
26818 $as_echo_n "(cached) " >&6
26821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26822 /* end confdefs.h. */
26824 #include <sys/types.h>
26830 int8_t a; int16_t b; int32_t c; a = b = c = 1;
26836 if ac_fn_c_try_compile "$LINENO"; then :
26838 ac_cv_have_intxx_t="yes"
26842 ac_cv_have_intxx_t="no"
26846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_intxx_t" >&5
26851 $as_echo "$ac_cv_have_intxx_t" >&6; }
26852 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
26853 $as_echo "#define HAVE_INTXX_T 1" >>confdefs.h
26858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t type" >&5
26859 $as_echo_n "checking for int64_t type... " >&6; }
26860 if test "${ac_cv_have_int64_t+set}" = set; then :
26861 $as_echo_n "(cached) " >&6
26864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26865 /* end confdefs.h. */
26867 #include <sys/types.h>
26879 if ac_fn_c_try_compile "$LINENO"; then :
26881 ac_cv_have_int64_t="yes"
26885 ac_cv_have_int64_t="no"
26889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_int64_t" >&5
26894 $as_echo "$ac_cv_have_int64_t" >&6; }
26895 if test "x$ac_cv_have_int64_t" = "xyes" ; then
26896 $as_echo "#define HAVE_INT64_T 1" >>confdefs.h
26901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_intXX_t types" >&5
26902 $as_echo_n "checking for u_intXX_t types... " >&6; }
26903 if test "${ac_cv_have_u_intxx_t+set}" = set; then :
26904 $as_echo_n "(cached) " >&6
26907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26908 /* end confdefs.h. */
26910 #include <sys/types.h>
26916 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
26922 if ac_fn_c_try_compile "$LINENO"; then :
26924 ac_cv_have_u_intxx_t="yes"
26928 ac_cv_have_u_intxx_t="no"
26932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_intxx_t" >&5
26937 $as_echo "$ac_cv_have_u_intxx_t" >&6; }
26938 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
26939 $as_echo "#define HAVE_U_INTXX_T 1" >>confdefs.h
26944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int64_t types" >&5
26945 $as_echo_n "checking for u_int64_t types... " >&6; }
26946 if test "${ac_cv_have_u_int64_t+set}" = set; then :
26947 $as_echo_n "(cached) " >&6
26950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26951 /* end confdefs.h. */
26953 #include <sys/types.h>
26959 u_int64_t a; a = 1;
26965 if ac_fn_c_try_compile "$LINENO"; then :
26967 ac_cv_have_u_int64_t="yes"
26971 ac_cv_have_u_int64_t="no"
26975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_int64_t" >&5
26980 $as_echo "$ac_cv_have_u_int64_t" >&6; }
26981 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
26982 $as_echo "#define HAVE_U_INT64_T 1" >>confdefs.h
26987 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
26988 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
26990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
26991 $as_echo_n "checking for intXX_t and u_intXX_t types in sys/bitypes.h... " >&6; }
26992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26993 /* end confdefs.h. */
26995 #include <sys/bitypes.h>
27001 int8_t a; int16_t b; int32_t c;
27002 u_int8_t e; u_int16_t f; u_int32_t g;
27003 a = b = c = e = f = g = 1;
27009 if ac_fn_c_try_compile "$LINENO"; then :
27011 $as_echo "#define HAVE_U_INTXX_T 1" >>confdefs.h
27013 $as_echo "#define HAVE_INTXX_T 1" >>confdefs.h
27015 $as_echo "#define HAVE_SYS_BITYPES_H 1" >>confdefs.h
27017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27018 $as_echo "yes" >&6; }
27022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27023 $as_echo "no" >&6; }
27027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27030 if test -z "$have_u_intxx_t" ; then
27031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uintXX_t types" >&5
27032 $as_echo_n "checking for uintXX_t types... " >&6; }
27033 if test "${ac_cv_have_uintxx_t+set}" = set; then :
27034 $as_echo_n "(cached) " >&6
27037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27038 /* end confdefs.h. */
27040 #include <sys/types.h>
27046 uint8_t a; uint16_t b;
27047 uint32_t c; a = b = c = 1;
27053 if ac_fn_c_try_compile "$LINENO"; then :
27055 ac_cv_have_uintxx_t="yes"
27059 ac_cv_have_uintxx_t="no"
27063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_uintxx_t" >&5
27068 $as_echo "$ac_cv_have_uintxx_t" >&6; }
27069 if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
27070 $as_echo "#define HAVE_UINTXX_T 1" >>confdefs.h
27075 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
27076 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
27078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
27079 $as_echo_n "checking for int64_t and u_int64_t types in sys/bitypes.h... " >&6; }
27080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27081 /* end confdefs.h. */
27083 #include <sys/bitypes.h>
27089 int64_t a; u_int64_t b;
27096 if ac_fn_c_try_compile "$LINENO"; then :
27098 $as_echo "#define HAVE_U_INT64_T 1" >>confdefs.h
27100 $as_echo "#define HAVE_INT64_T 1" >>confdefs.h
27102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27103 $as_echo "yes" >&6; }
27107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27108 $as_echo "no" >&6; }
27112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27115 if (test -z "$have_uintxx_t" && \
27116 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
27118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uintXX_t types in sys/bitypes.h" >&5
27119 $as_echo_n "checking for uintXX_t types in sys/bitypes.h... " >&6; }
27120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27121 /* end confdefs.h. */
27123 #include <sys/bitypes.h>
27129 uint8_t a; uint16_t b;
27130 uint32_t c; a = b = c = 1;
27136 if ac_fn_c_try_compile "$LINENO"; then :
27138 $as_echo "#define HAVE_UINTXX_T 1" >>confdefs.h
27140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27141 $as_echo "yes" >&6; }
27145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27146 $as_echo "no" >&6; }
27150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27169 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
27170 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
27171 eval as_val=\$$as_ac_var
27172 if test "x$as_val" = x""yes; then :
27173 cat >>confdefs.h <<_ACEOF
27174 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
27178 echo 'configure: cannot find needed function.'; exit 1
27184 for ac_func in fchdir
27186 ac_fn_c_check_func "$LINENO" "fchdir" "ac_cv_func_fchdir"
27187 if test "x$ac_cv_func_fchdir" = x""yes; then :
27188 cat >>confdefs.h <<_ACEOF
27189 #define HAVE_FCHDIR 1
27191 $as_echo "#define HAVE_FCHDIR 1" >>confdefs.h
27196 for ac_func in strtoll
27198 ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll"
27199 if test "x$ac_cv_func_strtoll" = x""yes; then :
27200 cat >>confdefs.h <<_ACEOF
27201 #define HAVE_STRTOLL 1
27203 $as_echo "#define HAVE_STRTOLL 1" >>confdefs.h
27208 for ac_func in posix_fadvise
27210 ac_fn_c_check_func "$LINENO" "posix_fadvise" "ac_cv_func_posix_fadvise"
27211 if test "x$ac_cv_func_posix_fadvise" = x""yes; then :
27212 cat >>confdefs.h <<_ACEOF
27213 #define HAVE_POSIX_FADVISE 1
27219 for ac_func in fdatasync
27221 ac_fn_c_check_func "$LINENO" "fdatasync" "ac_cv_func_fdatasync"
27222 if test "x$ac_cv_func_fdatasync" = x""yes; then :
27223 cat >>confdefs.h <<_ACEOF
27224 #define HAVE_FDATASYNC 1
27231 for ac_func in chflags
27233 ac_fn_c_check_func "$LINENO" "chflags" "ac_cv_func_chflags"
27234 if test "x$ac_cv_func_chflags" = x""yes; then :
27235 cat >>confdefs.h <<_ACEOF
27236 #define HAVE_CHFLAGS 1
27243 for ac_func in snprintf vsnprintf gethostid fseeko
27245 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
27246 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
27247 eval as_val=\$$as_ac_var
27248 if test "x$as_val" = x""yes; then :
27249 cat >>confdefs.h <<_ACEOF
27250 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
27257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
27258 $as_echo_n "checking for va_copy... " >&6; }
27259 if test "${ba_cv_va_copy+set}" = set; then :
27260 $as_echo_n "(cached) " >&6
27263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27264 /* end confdefs.h. */
27266 #include <stdarg.h>
27267 void use_va_copy(va_list args){va_list args2; va_copy(args2,args); va_end(args2);}
27268 void call_use_va_copy(int junk,...){va_list args; va_start(args,junk); use_va_copy(args); va_end(args);}
27274 call_use_va_copy(1,2,3)
27280 if ac_fn_c_try_link "$LINENO"; then :
27290 rm -f core conftest.err conftest.$ac_objext \
27291 conftest$ac_exeext conftest.$ac_ext
27295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_va_copy" >&5
27296 $as_echo "$ba_cv_va_copy" >&6; }
27297 test $ba_cv_va_copy = yes &&
27298 $as_echo "#define HAVE_VA_COPY 1" >>confdefs.h
27301 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
27303 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
27304 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
27305 eval as_val=\$$as_ac_var
27306 if test "x$as_val" = x""yes; then :
27307 cat >>confdefs.h <<_ACEOF
27308 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
27315 # If resolver functions are not in libc check for -lnsl or -lresolv.
27316 ac_fn_c_check_func "$LINENO" "gethostbyname_r" "ac_cv_func_gethostbyname_r"
27317 if test "x$ac_cv_func_gethostbyname_r" = x""yes; then :
27318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using libc's resolver" >&5
27319 $as_echo "using libc's resolver" >&6; }
27321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname_r in -lnsl" >&5
27322 $as_echo_n "checking for gethostbyname_r in -lnsl... " >&6; }
27323 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then :
27324 $as_echo_n "(cached) " >&6
27326 ac_check_lib_save_LIBS=$LIBS
27328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27329 /* end confdefs.h. */
27331 /* Override any GCC internal prototype to avoid an error.
27332 Use char because int might match the return type of a GCC
27333 builtin and then its argument prototype would still apply. */
27337 char gethostbyname_r ();
27341 return gethostbyname_r ();
27346 if ac_fn_c_try_link "$LINENO"; then :
27347 ac_cv_lib_nsl_gethostbyname_r=yes
27349 ac_cv_lib_nsl_gethostbyname_r=no
27351 rm -f core conftest.err conftest.$ac_objext \
27352 conftest$ac_exeext conftest.$ac_ext
27353 LIBS=$ac_check_lib_save_LIBS
27355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
27356 $as_echo "$ac_cv_lib_nsl_gethostbyname_r" >&6; }
27357 if test "x$ac_cv_lib_nsl_gethostbyname_r" = x""yes; then :
27358 cat >>confdefs.h <<_ACEOF
27359 #define HAVE_LIBNSL 1
27366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname_r in -lresolv" >&5
27367 $as_echo_n "checking for gethostbyname_r in -lresolv... " >&6; }
27368 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then :
27369 $as_echo_n "(cached) " >&6
27371 ac_check_lib_save_LIBS=$LIBS
27372 LIBS="-lresolv $LIBS"
27373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27374 /* end confdefs.h. */
27376 /* Override any GCC internal prototype to avoid an error.
27377 Use char because int might match the return type of a GCC
27378 builtin and then its argument prototype would still apply. */
27382 char gethostbyname_r ();
27386 return gethostbyname_r ();
27391 if ac_fn_c_try_link "$LINENO"; then :
27392 ac_cv_lib_resolv_gethostbyname_r=yes
27394 ac_cv_lib_resolv_gethostbyname_r=no
27396 rm -f core conftest.err conftest.$ac_objext \
27397 conftest$ac_exeext conftest.$ac_ext
27398 LIBS=$ac_check_lib_save_LIBS
27400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
27401 $as_echo "$ac_cv_lib_resolv_gethostbyname_r" >&6; }
27402 if test "x$ac_cv_lib_resolv_gethostbyname_r" = x""yes; then :
27403 cat >>confdefs.h <<_ACEOF
27404 #define HAVE_LIBRESOLV 1
27407 LIBS="-lresolv $LIBS"
27414 for ac_func in inet_pton
27416 ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton"
27417 if test "x$ac_cv_func_inet_pton" = x""yes; then :
27418 cat >>confdefs.h <<_ACEOF
27419 #define HAVE_INET_PTON 1
27421 $as_echo "#define HAVE_INET_PTON 1" >>confdefs.h
27426 for ac_func in inet_ntop
27428 ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
27429 if test "x$ac_cv_func_inet_ntop" = x""yes; then :
27430 cat >>confdefs.h <<_ACEOF
27431 #define HAVE_INET_NTOP 1
27433 $as_echo "#define HAVE_INET_NTOP 1" >>confdefs.h
27438 for ac_func in gethostbyname2
27440 ac_fn_c_check_func "$LINENO" "gethostbyname2" "ac_cv_func_gethostbyname2"
27441 if test "x$ac_cv_func_gethostbyname2" = x""yes; then :
27442 cat >>confdefs.h <<_ACEOF
27443 #define HAVE_GETHOSTBYNAME2 1
27445 $as_echo "#define HAVE_GETHOSTBYNAME2 1" >>confdefs.h
27451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr has a sa_len field" >&5
27452 $as_echo_n "checking for struct sockaddr has a sa_len field... " >&6; }
27453 if test "${ac_cv_struct_sockaddr_sa_len+set}" = set; then :
27454 $as_echo_n "(cached) " >&6
27457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27458 /* end confdefs.h. */
27460 #include <sys/socket.h>
27466 struct sockaddr s; s.sa_len;
27472 if ac_fn_c_try_compile "$LINENO"; then :
27474 ac_cv_struct_sockaddr_sa_len=yes
27477 ac_cv_struct_sockaddr_sa_len=no
27481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_sockaddr_sa_len" >&5
27486 $as_echo "$ac_cv_struct_sockaddr_sa_len" >&6; }
27488 if test $ac_cv_struct_sockaddr_sa_len = yes; then
27490 $as_echo "#define HAVE_SA_LEN 1" >>confdefs.h
27494 for ac_func in strftime
27496 ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
27497 if test "x$ac_cv_func_strftime" = x""yes; then :
27498 cat >>confdefs.h <<_ACEOF
27499 #define HAVE_STRFTIME 1
27503 # strftime is in -lintl on SCO UNIX.
27504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
27505 $as_echo_n "checking for strftime in -lintl... " >&6; }
27506 if test "${ac_cv_lib_intl_strftime+set}" = set; then :
27507 $as_echo_n "(cached) " >&6
27509 ac_check_lib_save_LIBS=$LIBS
27510 LIBS="-lintl $LIBS"
27511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27512 /* end confdefs.h. */
27514 /* Override any GCC internal prototype to avoid an error.
27515 Use char because int might match the return type of a GCC
27516 builtin and then its argument prototype would still apply. */
27524 return strftime ();
27529 if ac_fn_c_try_link "$LINENO"; then :
27530 ac_cv_lib_intl_strftime=yes
27532 ac_cv_lib_intl_strftime=no
27534 rm -f core conftest.err conftest.$ac_objext \
27535 conftest$ac_exeext conftest.$ac_ext
27536 LIBS=$ac_check_lib_save_LIBS
27538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
27539 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
27540 if test "x$ac_cv_lib_intl_strftime" = x""yes; then :
27541 $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
27543 LIBS="-lintl $LIBS"
27549 for ac_func in vprintf
27551 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
27552 if test "x$ac_cv_func_vprintf" = x""yes; then :
27553 cat >>confdefs.h <<_ACEOF
27554 #define HAVE_VPRINTF 1
27557 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
27558 if test "x$ac_cv_func__doprnt" = x""yes; then :
27560 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
27568 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
27569 # for constant arguments. Useless!
27570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
27571 $as_echo_n "checking for working alloca.h... " >&6; }
27572 if test "${ac_cv_working_alloca_h+set}" = set; then :
27573 $as_echo_n "(cached) " >&6
27575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27576 /* end confdefs.h. */
27577 #include <alloca.h>
27581 char *p = (char *) alloca (2 * sizeof (int));
27587 if ac_fn_c_try_link "$LINENO"; then :
27588 ac_cv_working_alloca_h=yes
27590 ac_cv_working_alloca_h=no
27592 rm -f core conftest.err conftest.$ac_objext \
27593 conftest$ac_exeext conftest.$ac_ext
27595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
27596 $as_echo "$ac_cv_working_alloca_h" >&6; }
27597 if test $ac_cv_working_alloca_h = yes; then
27599 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
27603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
27604 $as_echo_n "checking for alloca... " >&6; }
27605 if test "${ac_cv_func_alloca_works+set}" = set; then :
27606 $as_echo_n "(cached) " >&6
27608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27609 /* end confdefs.h. */
27611 # define alloca __builtin_alloca
27614 # include <malloc.h>
27615 # define alloca _alloca
27617 # ifdef HAVE_ALLOCA_H
27618 # include <alloca.h>
27623 # ifndef alloca /* predefined by HP cc +Olibcalls */
27634 char *p = (char *) alloca (1);
27640 if ac_fn_c_try_link "$LINENO"; then :
27641 ac_cv_func_alloca_works=yes
27643 ac_cv_func_alloca_works=no
27645 rm -f core conftest.err conftest.$ac_objext \
27646 conftest$ac_exeext conftest.$ac_ext
27648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
27649 $as_echo "$ac_cv_func_alloca_works" >&6; }
27651 if test $ac_cv_func_alloca_works = yes; then
27653 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
27656 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
27657 # that cause trouble. Some versions do not even contain alloca or
27658 # contain a buggy version. If you still want to use their alloca,
27659 # use ar to extract alloca.o from them instead of compiling alloca.c.
27661 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
27663 $as_echo "#define C_ALLOCA 1" >>confdefs.h
27666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
27667 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
27668 if test "${ac_cv_os_cray+set}" = set; then :
27669 $as_echo_n "(cached) " >&6
27671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27672 /* end confdefs.h. */
27673 #if defined CRAY && ! defined CRAY2
27680 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27681 $EGREP "webecray" >/dev/null 2>&1; then :
27689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
27690 $as_echo "$ac_cv_os_cray" >&6; }
27691 if test $ac_cv_os_cray = yes; then
27692 for ac_func in _getb67 GETB67 getb67; do
27693 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
27694 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
27695 eval as_val=\$$as_ac_var
27696 if test "x$as_val" = x""yes; then :
27698 cat >>confdefs.h <<_ACEOF
27699 #define CRAY_STACKSEG_END $ac_func
27708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
27709 $as_echo_n "checking stack direction for C alloca... " >&6; }
27710 if test "${ac_cv_c_stack_direction+set}" = set; then :
27711 $as_echo_n "(cached) " >&6
27713 if test "$cross_compiling" = yes; then :
27714 ac_cv_c_stack_direction=0
27716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27717 /* end confdefs.h. */
27718 $ac_includes_default
27720 find_stack_direction ()
27722 static char *addr = 0;
27727 return find_stack_direction ();
27730 return (&dummy > addr) ? 1 : -1;
27736 return find_stack_direction () < 0;
27739 if ac_fn_c_try_run "$LINENO"; then :
27740 ac_cv_c_stack_direction=1
27742 ac_cv_c_stack_direction=-1
27744 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27745 conftest.$ac_objext conftest.beam conftest.$ac_ext
27749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
27750 $as_echo "$ac_cv_c_stack_direction" >&6; }
27751 cat >>confdefs.h <<_ACEOF
27752 #define STACK_DIRECTION $ac_cv_c_stack_direction
27758 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
27759 # -lseq on Dynix/PTX, -lgen on Unixware.
27760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getmntent" >&5
27761 $as_echo_n "checking for library containing getmntent... " >&6; }
27762 if test "${ac_cv_search_getmntent+set}" = set; then :
27763 $as_echo_n "(cached) " >&6
27765 ac_func_search_save_LIBS=$LIBS
27766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27767 /* end confdefs.h. */
27769 /* Override any GCC internal prototype to avoid an error.
27770 Use char because int might match the return type of a GCC
27771 builtin and then its argument prototype would still apply. */
27779 return getmntent ();
27784 for ac_lib in '' sun seq gen; do
27785 if test -z "$ac_lib"; then
27786 ac_res="none required"
27789 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27791 if ac_fn_c_try_link "$LINENO"; then :
27792 ac_cv_search_getmntent=$ac_res
27794 rm -f core conftest.err conftest.$ac_objext \
27796 if test "${ac_cv_search_getmntent+set}" = set; then :
27800 if test "${ac_cv_search_getmntent+set}" = set; then :
27803 ac_cv_search_getmntent=no
27805 rm conftest.$ac_ext
27806 LIBS=$ac_func_search_save_LIBS
27808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getmntent" >&5
27809 $as_echo "$ac_cv_search_getmntent" >&6; }
27810 ac_res=$ac_cv_search_getmntent
27811 if test "$ac_res" != no; then :
27812 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27813 ac_cv_func_getmntent=yes
27815 $as_echo "#define HAVE_GETMNTENT 1" >>confdefs.h
27818 ac_cv_func_getmntent=no
27822 for ac_func in getmntinfo
27824 ac_fn_c_check_func "$LINENO" "getmntinfo" "ac_cv_func_getmntinfo"
27825 if test "x$ac_cv_func_getmntinfo" = x""yes; then :
27826 cat >>confdefs.h <<_ACEOF
27827 #define HAVE_GETMNTINFO 1
27829 $as_echo "#define HAVE_GETMNTINFO 1" >>confdefs.h
27834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
27835 $as_echo_n "checking whether closedir returns void... " >&6; }
27836 if test "${ac_cv_func_closedir_void+set}" = set; then :
27837 $as_echo_n "(cached) " >&6
27839 if test "$cross_compiling" = yes; then :
27840 ac_cv_func_closedir_void=yes
27842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27843 /* end confdefs.h. */
27844 $ac_includes_default
27845 #include <$ac_header_dirent>
27846 #ifndef __cplusplus
27853 return closedir (opendir (".")) != 0;
27858 if ac_fn_c_try_run "$LINENO"; then :
27859 ac_cv_func_closedir_void=no
27861 ac_cv_func_closedir_void=yes
27863 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27864 conftest.$ac_objext conftest.beam conftest.$ac_ext
27868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
27869 $as_echo "$ac_cv_func_closedir_void" >&6; }
27870 if test $ac_cv_func_closedir_void = yes; then
27872 $as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
27876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
27877 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
27878 if test "${ac_cv_func_setpgrp_void+set}" = set; then :
27879 $as_echo_n "(cached) " >&6
27881 if test "$cross_compiling" = yes; then :
27882 as_fn_error "cannot check setpgrp when cross compiling" "$LINENO" 5
27884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27885 /* end confdefs.h. */
27886 $ac_includes_default
27890 /* If this system has a BSD-style setpgrp which takes arguments,
27891 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
27892 exit successfully. */
27893 return setpgrp (1,1) != -1;
27898 if ac_fn_c_try_run "$LINENO"; then :
27899 ac_cv_func_setpgrp_void=no
27901 ac_cv_func_setpgrp_void=yes
27903 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27904 conftest.$ac_objext conftest.beam conftest.$ac_ext
27908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
27909 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
27910 if test $ac_cv_func_setpgrp_void = yes; then
27912 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
27915 # AC_FUNC_FNMATCH dnl use local version
27917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettext in -lintl" >&5
27918 $as_echo_n "checking for gettext in -lintl... " >&6; }
27919 if test "${ac_cv_lib_intl_gettext+set}" = set; then :
27920 $as_echo_n "(cached) " >&6
27922 ac_check_lib_save_LIBS=$LIBS
27923 LIBS="-lintl $LIBS"
27924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27925 /* end confdefs.h. */
27927 /* Override any GCC internal prototype to avoid an error.
27928 Use char because int might match the return type of a GCC
27929 builtin and then its argument prototype would still apply. */
27942 if ac_fn_c_try_link "$LINENO"; then :
27943 ac_cv_lib_intl_gettext=yes
27945 ac_cv_lib_intl_gettext=no
27947 rm -f core conftest.err conftest.$ac_objext \
27948 conftest$ac_exeext conftest.$ac_ext
27949 LIBS=$ac_check_lib_save_LIBS
27951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_gettext" >&5
27952 $as_echo "$ac_cv_lib_intl_gettext" >&6; }
27953 if test "x$ac_cv_lib_intl_gettext" = x""yes; then :
27954 LIBS="$LIBS -lintl"
27958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpwnam in -lsun" >&5
27959 $as_echo_n "checking for getpwnam in -lsun... " >&6; }
27960 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then :
27961 $as_echo_n "(cached) " >&6
27963 ac_check_lib_save_LIBS=$LIBS
27965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27966 /* end confdefs.h. */
27968 /* Override any GCC internal prototype to avoid an error.
27969 Use char because int might match the return type of a GCC
27970 builtin and then its argument prototype would still apply. */
27978 return getpwnam ();
27983 if ac_fn_c_try_link "$LINENO"; then :
27984 ac_cv_lib_sun_getpwnam=yes
27986 ac_cv_lib_sun_getpwnam=no
27988 rm -f core conftest.err conftest.$ac_objext \
27989 conftest$ac_exeext conftest.$ac_ext
27990 LIBS=$ac_check_lib_save_LIBS
27992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sun_getpwnam" >&5
27993 $as_echo "$ac_cv_lib_sun_getpwnam" >&6; }
27994 if test "x$ac_cv_lib_sun_getpwnam" = x""yes; then :
27995 cat >>confdefs.h <<_ACEOF
27996 #define HAVE_LIBSUN 1
28004 for ac_header in zlib.h
28006 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
28007 if test "x$ac_cv_header_zlib_h" = x""yes; then :
28008 cat >>confdefs.h <<_ACEOF
28009 #define HAVE_ZLIB_H 1
28016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
28017 $as_echo_n "checking for deflate in -lz... " >&6; }
28018 if test "${ac_cv_lib_z_deflate+set}" = set; then :
28019 $as_echo_n "(cached) " >&6
28021 ac_check_lib_save_LIBS=$LIBS
28023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28024 /* end confdefs.h. */
28026 /* Override any GCC internal prototype to avoid an error.
28027 Use char because int might match the return type of a GCC
28028 builtin and then its argument prototype would still apply. */
28041 if ac_fn_c_try_link "$LINENO"; then :
28042 ac_cv_lib_z_deflate=yes
28044 ac_cv_lib_z_deflate=no
28046 rm -f core conftest.err conftest.$ac_objext \
28047 conftest$ac_exeext conftest.$ac_ext
28048 LIBS=$ac_check_lib_save_LIBS
28050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
28051 $as_echo "$ac_cv_lib_z_deflate" >&6; }
28052 if test "x$ac_cv_lib_z_deflate" = x""yes; then :
28057 if test x$ZLIBS = x-lz; then
28058 $as_echo "#define HAVE_LIBZ 1" >>confdefs.h
28067 # Check whether --enable-afs was given.
28068 if test "${enable_afs+set}" = set; then :
28069 enableval=$enable_afs;
28070 if test x$enableval = xyes; then
28072 elif test x$enableval = xno; then
28081 if test x$support_afs = xyes -o x$support_afs = xauto; then
28083 # Check whether --with-afsdir was given.
28084 if test "${with_afsdir+set}" = set; then :
28085 withval=$with_afsdir; with_afsdir=$withval
28090 if test x$with_afsdir = x; then
28091 for root in /usr /usr/local; do
28092 if test -d ${root}/include/afs/ ; then
28093 with_afsdir=${root}
28099 AFS_CFLAGS="-I${with_afsdir}/include"
28101 saved_CFLAGS="${CFLAGS}"
28102 CFLAGS="${AFS_CFLAGS} ${saved_CFLAGS}"
28104 for ac_header in afs/stds.h
28106 ac_fn_c_check_header_mongrel "$LINENO" "afs/stds.h" "ac_cv_header_afs_stds_h" "$ac_includes_default"
28107 if test "x$ac_cv_header_afs_stds_h" = x""yes; then :
28108 cat >>confdefs.h <<_ACEOF
28109 #define HAVE_AFS_STDS_H 1
28117 CFLAGS="${saved_CFLAGS}"
28119 for dir in ${with_afsdir}/lib ${with_afsdir}/lib/afs
28121 for arch_type in .a .so
28123 A=`test -f ${dir}/libsys${arch_type} && nm ${dir}/libsys${arch_type} | grep pioctl`
28125 if test $pkg = 0; then
28127 AFS_LIBS="-L${dir} -lsys -lrx -llwp ${dir}/util.a"
28133 if test x$support_afs = xyes -a $have_afs != yes; then
28134 as_fn_error "afs support explicitly enabled but no supported afs implementation found,
28135 please either load the afs libraries or rerun configure without --enable-afs" "$LINENO" 5
28137 if test $have_afs = yes; then
28139 $as_echo "#define HAVE_AFS 1" >>confdefs.h
28142 $as_echo "#define HAVE_AFS_ACL 1" >>confdefs.h
28150 $as_echo "#define AFS_CFLAGS 1" >>confdefs.h
28152 $as_echo "#define AFS_LIBS 1" >>confdefs.h
28156 # Check whether --enable-acl was given.
28157 if test "${enable_acl+set}" = set; then :
28158 enableval=$enable_acl;
28159 if test x$enableval = xyes; then
28161 elif test x$enableval = xno; then
28170 have_extended_acl=no
28171 if test x$support_acl = xyes -o x$support_acl = xauto; then
28172 ac_fn_c_check_header_mongrel "$LINENO" "sys/acl.h" "ac_cv_header_sys_acl_h" "$ac_includes_default"
28173 if test "x$ac_cv_header_sys_acl_h" = x""yes; then :
28175 $as_echo "#define HAVE_SYS_ACL_H 1" >>confdefs.h
28180 ac_fn_c_check_func "$LINENO" "acl_get_file" "ac_cv_func_acl_get_file"
28181 if test "x$ac_cv_func_acl_get_file" = x""yes; then :
28187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get_file in -lacl" >&5
28188 $as_echo_n "checking for acl_get_file in -lacl... " >&6; }
28189 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then :
28190 $as_echo_n "(cached) " >&6
28192 ac_check_lib_save_LIBS=$LIBS
28194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28195 /* end confdefs.h. */
28197 /* Override any GCC internal prototype to avoid an error.
28198 Use char because int might match the return type of a GCC
28199 builtin and then its argument prototype would still apply. */
28203 char acl_get_file ();
28207 return acl_get_file ();
28212 if ac_fn_c_try_link "$LINENO"; then :
28213 ac_cv_lib_acl_acl_get_file=yes
28215 ac_cv_lib_acl_acl_get_file=no
28217 rm -f core conftest.err conftest.$ac_objext \
28218 conftest$ac_exeext conftest.$ac_ext
28219 LIBS=$ac_check_lib_save_LIBS
28221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_acl_acl_get_file" >&5
28222 $as_echo "$ac_cv_lib_acl_acl_get_file" >&6; }
28223 if test "x$ac_cv_lib_acl_acl_get_file" = x""yes; then :
28226 if test $have_afs = yes; then
28227 if test -d /usr/lib64/; then
28228 FDLIBS="-L/usr/lib64 -lacl $FDLIBS"
28230 FDLIBS="-L/usr/lib -lacl $FDLIBS"
28233 FDLIBS="-lacl $FDLIBS"
28238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get_file in -lpacl" >&5
28239 $as_echo_n "checking for acl_get_file in -lpacl... " >&6; }
28240 if test "${ac_cv_lib_pacl_acl_get_file+set}" = set; then :
28241 $as_echo_n "(cached) " >&6
28243 ac_check_lib_save_LIBS=$LIBS
28244 LIBS="-lpacl $LIBS"
28245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28246 /* end confdefs.h. */
28248 /* Override any GCC internal prototype to avoid an error.
28249 Use char because int might match the return type of a GCC
28250 builtin and then its argument prototype would still apply. */
28254 char acl_get_file ();
28258 return acl_get_file ();
28263 if ac_fn_c_try_link "$LINENO"; then :
28264 ac_cv_lib_pacl_acl_get_file=yes
28266 ac_cv_lib_pacl_acl_get_file=no
28268 rm -f core conftest.err conftest.$ac_objext \
28269 conftest$ac_exeext conftest.$ac_ext
28270 LIBS=$ac_check_lib_save_LIBS
28272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pacl_acl_get_file" >&5
28273 $as_echo "$ac_cv_lib_pacl_acl_get_file" >&6; }
28274 if test "x$ac_cv_lib_pacl_acl_get_file" = x""yes; then :
28277 FDLIBS="-lpacl $FDLIBS"
28281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acltotext in -lsec" >&5
28282 $as_echo_n "checking for acltotext in -lsec... " >&6; }
28283 if test "${ac_cv_lib_sec_acltotext+set}" = set; then :
28284 $as_echo_n "(cached) " >&6
28286 ac_check_lib_save_LIBS=$LIBS
28288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28289 /* end confdefs.h. */
28291 /* Override any GCC internal prototype to avoid an error.
28292 Use char because int might match the return type of a GCC
28293 builtin and then its argument prototype would still apply. */
28301 return acltotext ();
28306 if ac_fn_c_try_link "$LINENO"; then :
28307 ac_cv_lib_sec_acltotext=yes
28309 ac_cv_lib_sec_acltotext=no
28311 rm -f core conftest.err conftest.$ac_objext \
28312 conftest$ac_exeext conftest.$ac_ext
28313 LIBS=$ac_check_lib_save_LIBS
28315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sec_acltotext" >&5
28316 $as_echo "$ac_cv_lib_sec_acltotext" >&6; }
28317 if test "x$ac_cv_lib_sec_acltotext" = x""yes; then :
28320 FDLIBS="-lsec $FDLIBS"
28322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_totext in -lsec" >&5
28323 $as_echo_n "checking for acl_totext in -lsec... " >&6; }
28324 if test "${ac_cv_lib_sec_acl_totext+set}" = set; then :
28325 $as_echo_n "(cached) " >&6
28327 ac_check_lib_save_LIBS=$LIBS
28329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28330 /* end confdefs.h. */
28332 /* Override any GCC internal prototype to avoid an error.
28333 Use char because int might match the return type of a GCC
28334 builtin and then its argument prototype would still apply. */
28338 char acl_totext ();
28342 return acl_totext ();
28347 if ac_fn_c_try_link "$LINENO"; then :
28348 ac_cv_lib_sec_acl_totext=yes
28350 ac_cv_lib_sec_acl_totext=no
28352 rm -f core conftest.err conftest.$ac_objext \
28353 conftest$ac_exeext conftest.$ac_ext
28354 LIBS=$ac_check_lib_save_LIBS
28356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sec_acl_totext" >&5
28357 $as_echo "$ac_cv_lib_sec_acl_totext" >&6; }
28358 if test "x$ac_cv_lib_sec_acl_totext" = x""yes; then :
28360 have_extended_acl=yes
28382 if test x$support_acl = xyes -a $have_acl != yes; then
28383 as_fn_error "acl support explicitly enabled but no supported acl implementation found,
28384 please either load the acl libraries or rerun configure without --enable-acl" "$LINENO" 5
28386 if test $have_acl = yes; then
28388 $as_echo "#define HAVE_ACL 1" >>confdefs.h
28392 if test $have_extended_acl = yes; then
28394 $as_echo "#define HAVE_EXTENDED_ACL 1" >>confdefs.h
28401 # Check whether --enable-xattr was given.
28402 if test "${enable_xattr+set}" = set; then :
28403 enableval=$enable_xattr;
28404 if test x$enableval = xyes; then
28406 elif test x$enableval = xno; then
28415 if test x$support_xattr = xyes -o x$support_xattr = xauto; then
28416 ac_fn_c_check_header_mongrel "$LINENO" "sys/extattr.h" "ac_cv_header_sys_extattr_h" "$ac_includes_default"
28417 if test "x$ac_cv_header_sys_extattr_h" = x""yes; then :
28419 $as_echo "#define HAVE_SYS_EXTATTR_H 1" >>confdefs.h
28424 ac_fn_c_check_header_mongrel "$LINENO" "libutil.h" "ac_cv_header_libutil_h" "$ac_includes_default"
28425 if test "x$ac_cv_header_libutil_h" = x""yes; then :
28427 $as_echo "#define HAVE_LIBUTIL_H 1" >>confdefs.h
28432 for ac_func in extattr_get_link extattr_set_link extattr_list_link
28434 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28435 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28436 eval as_val=\$$as_ac_var
28437 if test "x$as_val" = x""yes; then :
28438 cat >>confdefs.h <<_ACEOF
28439 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28444 $as_echo "#define HAVE_EXTATTR_GET_LINK 1" >>confdefs.h
28447 $as_echo "#define HAVE_EXTATTR_SET_LINK 1" >>confdefs.h
28450 $as_echo "#define HAVE_EXTATTR_LIST_LINK 1" >>confdefs.h
28458 if test $have_xattr = no; then
28459 for ac_func in extattr_get_file extattr_set_file extattr_list_file
28461 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28462 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28463 eval as_val=\$$as_ac_var
28464 if test "x$as_val" = x""yes; then :
28465 cat >>confdefs.h <<_ACEOF
28466 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28471 $as_echo "#define HAVE_EXTATTR_GET_FILE 1" >>confdefs.h
28474 $as_echo "#define HAVE_EXTATTR_SET_FILE 1" >>confdefs.h
28477 $as_echo "#define HAVE_EXTATTR_LIST_FILE 1" >>confdefs.h
28486 if test $have_xattr = yes; then
28487 have_extattr_string_in_libc=no
28488 for ac_func in extattr_namespace_to_string extattr_string_to_namespace
28490 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28491 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28492 eval as_val=\$$as_ac_var
28493 if test "x$as_val" = x""yes; then :
28494 cat >>confdefs.h <<_ACEOF
28495 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28498 have_extattr_string_in_libc=yes
28500 $as_echo "#define HAVE_EXTATTR_NAMESPACE_TO_STRING 1" >>confdefs.h
28503 $as_echo "#define HAVE_EXTATTR_STRING_TO_NAMESPACE 1" >>confdefs.h
28511 if test $have_extattr_string_in_libc = no; then
28512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extattr_namespace_to_string extattr_string_to_namespace in -lutil" >&5
28513 $as_echo_n "checking for extattr_namespace_to_string extattr_string_to_namespace in -lutil... " >&6; }
28514 if test "${ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace+set}" = set; then :
28515 $as_echo_n "(cached) " >&6
28517 ac_check_lib_save_LIBS=$LIBS
28518 LIBS="-lutil $LIBS"
28519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28520 /* end confdefs.h. */
28522 /* Override any GCC internal prototype to avoid an error.
28523 Use char because int might match the return type of a GCC
28524 builtin and then its argument prototype would still apply. */
28528 char extattr_namespace_to_string extattr_string_to_namespace ();
28532 return extattr_namespace_to_string extattr_string_to_namespace ();
28537 if ac_fn_c_try_link "$LINENO"; then :
28538 ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace=yes
28540 ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace=no
28542 rm -f core conftest.err conftest.$ac_objext \
28543 conftest$ac_exeext conftest.$ac_ext
28544 LIBS=$ac_check_lib_save_LIBS
28546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" >&5
28547 $as_echo "$ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" >&6; }
28548 if test "x$ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" = x""yes; then :
28551 $as_echo "#define HAVE_EXTATTR_NAMESPACE_TO_STRING 1" >>confdefs.h
28554 $as_echo "#define HAVE_EXTATTR_STRING_TO_NAMESPACE 1" >>confdefs.h
28556 FDLIBS="-lutil $FDLIBS"
28564 if test $have_xattr = no; then
28565 ac_fn_c_check_header_mongrel "$LINENO" "sys/xattr.h" "ac_cv_header_sys_xattr_h" "$ac_includes_default"
28566 if test "x$ac_cv_header_sys_xattr_h" = x""yes; then :
28568 $as_echo "#define HAVE_SYS_XATTR_H 1" >>confdefs.h
28573 for ac_func in llistxattr lgetxattr lsetxattr
28575 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28576 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28577 eval as_val=\$$as_ac_var
28578 if test "x$as_val" = x""yes; then :
28579 cat >>confdefs.h <<_ACEOF
28580 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28585 $as_echo "#define HAVE_LLISTXATTR 1" >>confdefs.h
28588 $as_echo "#define HAVE_LGETXATTR 1" >>confdefs.h
28591 $as_echo "#define HAVE_LSETXATTR 1" >>confdefs.h
28599 if test $have_xattr = no; then
28600 for ac_func in listxattr getxattr setxattr
28602 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28603 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28604 eval as_val=\$$as_ac_var
28605 if test "x$as_val" = x""yes; then :
28606 cat >>confdefs.h <<_ACEOF
28607 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28612 $as_echo "#define HAVE_LISTXATTR 1" >>confdefs.h
28615 $as_echo "#define HAVE_GETXATTR 1" >>confdefs.h
28618 $as_echo "#define HAVE_SETXATTR 1" >>confdefs.h
28628 if test $have_xattr = no; then
28629 ac_fn_c_check_header_mongrel "$LINENO" "sys/attr.h" "ac_cv_header_sys_attr_h" "$ac_includes_default"
28630 if test "x$ac_cv_header_sys_attr_h" = x""yes; then :
28632 $as_echo "#define HAVE_SYS_ATTR_H 1" >>confdefs.h
28637 ac_fn_c_check_header_mongrel "$LINENO" "sys/nvpair.h" "ac_cv_header_sys_nvpair_h" "$ac_includes_default"
28638 if test "x$ac_cv_header_sys_nvpair_h" = x""yes; then :
28640 $as_echo "#define HAVE_SYS_NVPAIR_H 1" >>confdefs.h
28645 ac_fn_c_check_header_mongrel "$LINENO" "attr.h" "ac_cv_header_attr_h" "$ac_includes_default"
28646 if test "x$ac_cv_header_attr_h" = x""yes; then :
28648 $as_echo "#define HAVE_ATTR_H 1" >>confdefs.h
28654 for ac_func in openat fstatat unlinkat fchownat futimesat
28656 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28657 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28658 eval as_val=\$$as_ac_var
28659 if test "x$as_val" = x""yes; then :
28660 cat >>confdefs.h <<_ACEOF
28661 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28666 $as_echo "#define HAVE_OPENAT 1" >>confdefs.h
28669 $as_echo "#define HAVE_FSTATAT 1" >>confdefs.h
28672 $as_echo "#define HAVE_UNLINKAT 1" >>confdefs.h
28675 $as_echo "#define HAVE_FCHOWNAT 1" >>confdefs.h
28678 $as_echo "#define HAVE_FUTIMESAT 1" >>confdefs.h
28686 if test $have_xattr = yes; then
28687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nvlist_next_nvpair in -lnvpair" >&5
28688 $as_echo_n "checking for nvlist_next_nvpair in -lnvpair... " >&6; }
28689 if test "${ac_cv_lib_nvpair_nvlist_next_nvpair+set}" = set; then :
28690 $as_echo_n "(cached) " >&6
28692 ac_check_lib_save_LIBS=$LIBS
28693 LIBS="-lnvpair $LIBS"
28694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28695 /* end confdefs.h. */
28697 /* Override any GCC internal prototype to avoid an error.
28698 Use char because int might match the return type of a GCC
28699 builtin and then its argument prototype would still apply. */
28703 char nvlist_next_nvpair ();
28707 return nvlist_next_nvpair ();
28712 if ac_fn_c_try_link "$LINENO"; then :
28713 ac_cv_lib_nvpair_nvlist_next_nvpair=yes
28715 ac_cv_lib_nvpair_nvlist_next_nvpair=no
28717 rm -f core conftest.err conftest.$ac_objext \
28718 conftest$ac_exeext conftest.$ac_ext
28719 LIBS=$ac_check_lib_save_LIBS
28721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nvpair_nvlist_next_nvpair" >&5
28722 $as_echo "$ac_cv_lib_nvpair_nvlist_next_nvpair" >&6; }
28723 if test "x$ac_cv_lib_nvpair_nvlist_next_nvpair" = x""yes; then :
28726 $as_echo "#define HAVE_NVLIST_NEXT_NVPAIR 1" >>confdefs.h
28728 FDLIBS="-lnvpair $FDLIBS"
28736 if test x$support_xattr = xyes -a $have_xattr != yes; then
28737 as_fn_error "xattr support explicitly enabled but no supported xattr implementation found,
28738 please either load the xattr libraries or rerun configure without --enable-xattr" "$LINENO" 5
28740 if test $have_xattr = yes; then
28742 $as_echo "#define HAVE_XATTR 1" >>confdefs.h
28749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
28750 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
28751 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then :
28752 $as_echo_n "(cached) " >&6
28754 ac_check_lib_save_LIBS=$LIBS
28755 LIBS="-lpthread $LIBS"
28756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28757 /* end confdefs.h. */
28759 /* Override any GCC internal prototype to avoid an error.
28760 Use char because int might match the return type of a GCC
28761 builtin and then its argument prototype would still apply. */
28765 char pthread_create ();
28769 return pthread_create ();
28774 if ac_fn_c_try_link "$LINENO"; then :
28775 ac_cv_lib_pthread_pthread_create=yes
28777 ac_cv_lib_pthread_pthread_create=no
28779 rm -f core conftest.err conftest.$ac_objext \
28780 conftest$ac_exeext conftest.$ac_ext
28781 LIBS=$ac_check_lib_save_LIBS
28783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
28784 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
28785 if test "x$ac_cv_lib_pthread_pthread_create" = x""yes; then :
28786 PTHREAD_LIB="-lpthread"
28789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthreads" >&5
28790 $as_echo_n "checking for pthread_create in -lpthreads... " >&6; }
28791 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then :
28792 $as_echo_n "(cached) " >&6
28794 ac_check_lib_save_LIBS=$LIBS
28795 LIBS="-lpthreads $LIBS"
28796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28797 /* end confdefs.h. */
28799 /* Override any GCC internal prototype to avoid an error.
28800 Use char because int might match the return type of a GCC
28801 builtin and then its argument prototype would still apply. */
28805 char pthread_create ();
28809 return pthread_create ();
28814 if ac_fn_c_try_link "$LINENO"; then :
28815 ac_cv_lib_pthreads_pthread_create=yes
28817 ac_cv_lib_pthreads_pthread_create=no
28819 rm -f core conftest.err conftest.$ac_objext \
28820 conftest$ac_exeext conftest.$ac_ext
28821 LIBS=$ac_check_lib_save_LIBS
28823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_pthread_create" >&5
28824 $as_echo "$ac_cv_lib_pthreads_pthread_create" >&6; }
28825 if test "x$ac_cv_lib_pthreads_pthread_create" = x""yes; then :
28826 PTHREAD_LIB="-lpthreads"
28829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lc_r" >&5
28830 $as_echo_n "checking for pthread_create in -lc_r... " >&6; }
28831 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then :
28832 $as_echo_n "(cached) " >&6
28834 ac_check_lib_save_LIBS=$LIBS
28836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28837 /* end confdefs.h. */
28839 /* Override any GCC internal prototype to avoid an error.
28840 Use char because int might match the return type of a GCC
28841 builtin and then its argument prototype would still apply. */
28845 char pthread_create ();
28849 return pthread_create ();
28854 if ac_fn_c_try_link "$LINENO"; then :
28855 ac_cv_lib_c_r_pthread_create=yes
28857 ac_cv_lib_c_r_pthread_create=no
28859 rm -f core conftest.err conftest.$ac_objext \
28860 conftest$ac_exeext conftest.$ac_ext
28861 LIBS=$ac_check_lib_save_LIBS
28863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_create" >&5
28864 $as_echo "$ac_cv_lib_c_r_pthread_create" >&6; }
28865 if test "x$ac_cv_lib_c_r_pthread_create" = x""yes; then :
28866 PTHREAD_LIB="-lc_r"
28869 ac_fn_c_check_func "$LINENO" "pthread_create" "ac_cv_func_pthread_create"
28870 if test "x$ac_cv_func_pthread_create" = x""yes; then :
28887 for ac_header in sys/prctl.h sys/capability.h
28889 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
28890 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
28891 eval as_val=\$$as_ac_Header
28892 if test "x$as_val" = x""yes; then :
28893 cat >>confdefs.h <<_ACEOF
28894 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
28901 for ac_func in prctl setreuid
28903 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28904 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28905 eval as_val=\$$as_ac_var
28906 if test "x$as_val" = x""yes; then :
28907 cat >>confdefs.h <<_ACEOF
28908 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cap_set_proc in -lcap" >&5
28915 $as_echo_n "checking for cap_set_proc in -lcap... " >&6; }
28916 if test "${ac_cv_lib_cap_cap_set_proc+set}" = set; then :
28917 $as_echo_n "(cached) " >&6
28919 ac_check_lib_save_LIBS=$LIBS
28921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28922 /* end confdefs.h. */
28924 /* Override any GCC internal prototype to avoid an error.
28925 Use char because int might match the return type of a GCC
28926 builtin and then its argument prototype would still apply. */
28930 char cap_set_proc ();
28934 return cap_set_proc ();
28939 if ac_fn_c_try_link "$LINENO"; then :
28940 ac_cv_lib_cap_cap_set_proc=yes
28942 ac_cv_lib_cap_cap_set_proc=no
28944 rm -f core conftest.err conftest.$ac_objext \
28945 conftest$ac_exeext conftest.$ac_ext
28946 LIBS=$ac_check_lib_save_LIBS
28948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cap_cap_set_proc" >&5
28949 $as_echo "$ac_cv_lib_cap_cap_set_proc" >&6; }
28950 if test "x$ac_cv_lib_cap_cap_set_proc" = x""yes; then :
28956 if test x$CAP_LIBS = x-lcap; then
28958 $as_echo "#define HAVE_LIBCAP 1" >>confdefs.h
28964 $as_echo "#define FDLIBS 1" >>confdefs.h
28967 CFLAGS=${CFLAGS--O}
28969 if test x$have_gcc = xyes ; then
28970 CPPFLAGS="$CPPFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
28971 CFLAGS="$CFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
28973 LDFLAGS=${LDFLAGS--O}
28974 DB_LIBS="${SQL_LFLAGS}"
28975 CPPFLAGS="$CPPFLAGS"
29002 PFILES="platforms/Makefile"
29007 hostname=`uname -n | cut -d '.' -f 1`
29008 if test x${hostname} = x ; then
29009 hostname="localhost"
29011 ping -c 1 $hostname 2>/dev/null 1>/dev/null
29012 if test ! $? = 0; then
29013 hostname="localhost"
29016 case "$DISTNAME" in
29019 PSCMD="ps -e -o pid,comm"
29020 PFILES="${PFILES} \
29021 platforms/aix/Makefile"
29022 TAPEDRIVE="/dev/rmt0.1"
29026 PTHREAD_LIB="-lpthread -lexc"
29027 if test "${CC}" = "gcc" ; then
29034 TAPEDRIVE="/dev/nrmt0"
29037 DISTVER=`uname -a |awk '{print $3}'`
29038 TAPEDRIVE="/dev/nrmt0"
29039 PTHREAD_LIB="-pthread"
29040 CFLAGS="${CFLAGS} -pthread"
29041 PSCMD="ps -ax -o pid,command"
29044 PFILES="${PFILES} \
29045 platforms/bsdi/Makefile \
29046 platforms/bsdi/bacula-fd \
29047 platforms/bsdi/bacula-sd \
29048 platforms/bsdi/bacula-dir"
29049 largefile_support="yes"
29052 DISTVER=`uname -a |awk '{print $3}'`
29053 TAPEDRIVE="/dev/nrst0"
29055 WCFLAGS="-mwindows"
29056 WLDFLAGS="-mwindows"
29060 TAPEDRIVE="/dev/nst0"
29061 PSCMD="ps -e -o pid,command"
29063 PFILES="${PFILES} \
29064 platforms/darwin/Makefile"
29068 TAPEDRIVE="/dev/nst0"
29069 PSCMD="ps -e -o pid,command"
29071 PFILES="${PFILES} \
29072 platforms/osx/Makefile"
29075 if `test -f /etc/apt/sources.list && grep -q ubuntu /etc/apt/sources.list`; then
29078 DISTVER=`cat /etc/debian_version`
29079 if test -f /etc/lsb-release ; then
29081 if test "x$DISTRIB_ID" != "x" ; then
29082 DISTNAME=$DISTRIB_ID
29084 if test "x$DISTRIB_RELEASE" != "x" ; then
29085 DISTVER=$DISTRIB_RELEASE
29088 if test "$DISTNAME" = "Ubuntu" ; then
29091 TAPEDRIVE="/dev/nst0"
29092 PSCMD="ps -e -o pid,command"
29093 if test "$DISTNAME" = "ubuntu" ; then
29094 PFILES="${PFILES} \
29095 platforms/ubuntu/Makefile \
29096 platforms/ubuntu/bacula-fd \
29097 platforms/ubuntu/bacula-sd \
29098 platforms/ubuntu/bacula-dir"
29100 PFILES="${PFILES} \
29101 platforms/debian/Makefile \
29102 platforms/debian/bacula-fd \
29103 platforms/debian/bacula-sd \
29104 platforms/debian/bacula-dir"
29108 DISTVER=`uname -a |awk '{print $3}'`
29109 VER=`echo $DISTVER | cut -c 1`
29110 if test x$VER = x4 ; then
29111 PTHREAD_LIB="${PTHREAD_LIBS:--pthread}"
29112 CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS:--pthread}"
29116 TAPEDRIVE="/dev/nrsa0"
29117 PSCMD="ps -ax -o pid,command"
29118 PFILES="${PFILES} \
29119 platforms/freebsd/Makefile \
29120 platforms/freebsd/bacula-fd \
29121 platforms/freebsd/bacula-sd \
29122 platforms/freebsd/bacula-dir"
29123 largefile_support="yes"
29126 PSCMD="UNIX95=1; ps -e -o pid,comm"
29127 CFLAGS="${CFLAGS} -D_XOPEN_SOURCE_EXTENDED=1"
29129 TAPEDRIVE="/dev/rmt/0hnb"
29130 PTHREAD_LIB="-lpthread"
29131 $as_echo "#define _INCLUDE_LONGLONG 1" >>confdefs.h
29136 TAPEDRIVE="/dev/rmt/0cbn"
29137 PSCMD="ps -e -o pid,comm"
29138 PFILES="${PFILES} \
29139 platforms/irix/Makefile \
29140 platforms/irix/bacula-fd \
29141 platforms/irix/bacula-sd \
29142 platforms/irix/bacula-dir"
29145 DISTVER=`uname -a |awk '{print $3}'`
29148 TAPEDRIVE="/dev/nrst0"
29149 PSCMD="ps -ax -o pid,command"
29150 PTHREAD_LIB="-pthread"
29151 CFLAGS="${CFLAGS} -pthread"
29154 DISTVER=`uname -a |awk '{print $3}'`
29157 TAPEDRIVE="/dev/nrst0"
29158 PSCMD="ps -ax -o pid,command"
29159 PTHREAD_LIB="-pthread"
29160 CFLAGS="${CFLAGS} -pthread"
29161 PFILES="${PFILES} \
29162 platforms/openbsd/Makefile \
29163 platforms/openbsd/bacula-fd \
29164 platforms/openbsd/bacula-sd \
29165 platforms/openbsd/bacula-dir"
29168 if test -f /etc/whitebox-release ; then
29169 f=/etc/whitebox-release
29171 f=/etc/redhat-release
29173 if test `cat $f | grep release |\
29174 cut -f 3 -d ' '`x = "Enterprise"x ; then
29175 DISTVER="Enterprise "`cat $f | grep release |\
29178 DISTVER=`cat /etc/redhat-release | grep release |\
29181 TAPEDRIVE="/dev/nst0"
29182 PSCMD="ps -e -o pid,command"
29183 PFILES="${PFILES} \
29184 platforms/redhat/Makefile \
29185 platforms/redhat/bacula-fd \
29186 platforms/redhat/bacula-sd \
29187 platforms/redhat/bacula-dir
29191 DISTVER=`cat /etc/mandrake-release | grep release |\
29193 TAPEDRIVE="/dev/nst0"
29194 PSCMD="ps -e -o pid,command"
29195 PFILES="${PFILES} \
29196 platforms/mandrake/Makefile \
29197 platforms/mandrake/bacula-fd \
29198 platforms/mandrake/bacula-sd \
29199 platforms/mandrake/bacula-dir \
29203 DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
29204 TAPEDRIVE="/dev/nst0"
29205 PSCMD="ps -e -o pid,command"
29206 PFILES="${PFILES} \
29207 platforms/gentoo/Makefile \
29208 platforms/gentoo/bacula-init \
29209 platforms/gentoo/bacula-fd \
29210 platforms/gentoo/bacula-sd \
29211 platforms/gentoo/bacula-dir"
29214 DISTVER=`cat /etc/slackware-version`
29215 TAPEDRIVE="/dev/nst0"
29216 PSCMD="ps -e -o pid,command"
29217 PFILES="${PFILES} \
29218 platforms/slackware/Makefile \
29219 platforms/slackware/rc.bacula-fd \
29220 platforms/slackware/rc.bacula-sd \
29221 platforms/slackware/rc.bacula-dir\
29222 platforms/slackware/functions.bacula"
29226 TAPEDRIVE="/dev/rmt/0cbn"
29227 PSCMD="ps -e -o pid,comm"
29228 PFILES="${PFILES} \
29229 platforms/solaris/Makefile \
29230 platforms/solaris/bacula-fd \
29231 platforms/solaris/bacula-sd \
29232 platforms/solaris/bacula-dir"
29233 if test x$DISTVER = x5.6 ; then
29234 $as_echo "#define HAVE_OLD_SOCKOPT 1" >>confdefs.h
29237 LIBS="$LIBS -lresolv -lrt"
29240 DISTVER=`cat /etc/SuSE-release |grep VERSION|\
29242 TAPEDRIVE="/dev/nst0"
29243 PSCMD="ps -e -o pid,command"
29244 PFILES="${PFILES} \
29245 platforms/suse/Makefile \
29246 platforms/suse/bacula-fd \
29247 platforms/suse/bacula-sd \
29248 platforms/suse/bacula-dir \
29249 platforms/suse/bacula"
29254 TAPEDRIVE="/dev/nst0"
29255 PSCMD="ps -e -o pid,command"
29256 PFILES="${PFILES} \
29257 platforms/suse/Makefile \
29258 platforms/suse/bacula-fd \
29259 platforms/suse/bacula-sd \
29260 platforms/suse/bacula-dir"
29264 TAPEDRIVE="/dev/nst0"
29267 echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
29273 LIBS="$PTHREAD_LIB $LIBS"
29275 cat >>confdefs.h <<_ACEOF
29279 cat >>confdefs.h <<_ACEOF
29290 MCOMMON=./autoconf/Make.common
29293 if test "x${subsysdir}" = "x${sbindir}" ; then
29296 echo "You have set both --sbindir and --with-subsys-dir"
29297 echo " equal to: ${subsysdir} "
29298 echo "This is not permitted. Please reconfigure."
29300 echo "Aborting configuration ..."
29306 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/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 examples/nagios/check_bacula/Makefile $PFILES"
29308 ac_config_commands="$ac_config_commands default"
29310 cat >confcache <<\_ACEOF
29311 # This file is a shell script that caches the results of configure
29312 # tests run on this system so they can be shared between configure
29313 # scripts and configure runs, see configure's option --config-cache.
29314 # It is not useful on other systems. If it contains results you don't
29315 # want to keep, you may remove or edit it.
29317 # config.status only pays attention to the cache file if you give it
29318 # the --recheck option to rerun configure.
29320 # `ac_cv_env_foo' variables (set or unset) will be overridden when
29321 # loading this file, other *unset* `ac_cv_foo' will be assigned the
29322 # following values.
29326 # The following way of writing the cache mishandles newlines in values,
29327 # but we know of no workaround that is simple, portable, and efficient.
29328 # So, we kill variables containing newlines.
29329 # Ultrix sh set writes to stderr and can't be redirected directly,
29330 # and sets the high bit in the cache file unless we assign to the vars.
29332 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
29333 eval ac_val=\$$ac_var
29337 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
29338 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
29341 _ | IFS | as_nl) ;; #(
29342 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
29343 *) { eval $ac_var=; unset $ac_var;} ;;
29349 case $as_nl`(ac_space=' '; set) 2>&1` in #(
29350 *${as_nl}ac_space=\ *)
29351 # `set' does not quote correctly, so add quotes: double-quote
29352 # substitution turns \\\\ into \\, and sed turns \\ into \.
29355 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
29358 # `set' quotes correctly as required by POSIX, so do not add quotes.
29359 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
29368 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
29370 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
29372 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
29373 if test -w "$cache_file"; then
29374 test "x$cache_file" != "x/dev/null" &&
29375 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
29376 $as_echo "$as_me: updating cache $cache_file" >&6;}
29377 cat confcache >$cache_file
29379 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
29380 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
29385 test "x$prefix" = xNONE && prefix=$ac_default_prefix
29386 # Let make expand exec_prefix.
29387 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
29389 DEFS=-DHAVE_CONFIG_H
29393 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
29394 # 1. Remove the extension, and $U if already installed.
29395 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
29396 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
29397 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
29398 # will be set to the directory where LIBOBJS objects are built.
29399 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
29400 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
29402 LIBOBJS=$ac_libobjs
29404 LTLIBOBJS=$ac_ltlibobjs
29408 : ${CONFIG_STATUS=./config.status}
29410 ac_clean_files_save=$ac_clean_files
29411 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
29412 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
29413 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
29415 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
29417 # Generated by $as_me.
29418 # Run this file to recreate the current configuration.
29419 # Compiler output produced by configure, useful for debugging
29420 # configure, is in config.log if it exists.
29423 ac_cs_recheck=false
29426 SHELL=\${CONFIG_SHELL-$SHELL}
29429 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
29430 ## -------------------- ##
29431 ## M4sh Initialization. ##
29432 ## -------------------- ##
29434 # Be more Bourne compatible
29435 DUALCASE=1; export DUALCASE # for MKS sh
29436 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
29439 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
29440 # is contrary to our usage. Disable this feature.
29441 alias -g '${1+"$@"}'='"$@"'
29442 setopt NO_GLOB_SUBST
29444 case `(set -o) 2>/dev/null` in #(
29456 # Printing a long string crashes Solaris 7 /usr/bin/printf.
29457 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
29458 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
29459 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
29460 # Prefer a ksh shell builtin over an external printf program on Solaris,
29461 # but without wasting forks for bash or zsh.
29462 if test -z "$BASH_VERSION$ZSH_VERSION" \
29463 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
29464 as_echo='print -r --'
29465 as_echo_n='print -rn --'
29466 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
29467 as_echo='printf %s\n'
29468 as_echo_n='printf %s'
29470 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
29471 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
29472 as_echo_n='/usr/ucb/echo -n'
29474 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
29475 as_echo_n_body='eval
29479 expr "X$arg" : "X\\(.*\\)$as_nl";
29480 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
29482 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
29484 export as_echo_n_body
29485 as_echo_n='sh -c $as_echo_n_body as_echo'
29487 export as_echo_body
29488 as_echo='sh -c $as_echo_body as_echo'
29491 # The user is always right.
29492 if test "${PATH_SEPARATOR+set}" != set; then
29494 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
29495 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
29502 # We need space, tab and new line, in precisely that order. Quoting is
29503 # there to prevent editors from complaining about space-tab.
29504 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
29505 # splitting by setting IFS to empty value.)
29508 # Find who we are. Look in the path if we contain no directory separator.
29510 *[\\/]* ) as_myself=$0 ;;
29511 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29512 for as_dir in $PATH
29515 test -z "$as_dir" && as_dir=.
29516 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
29522 # We did not find ourselves, most probably we were run as `sh COMMAND'
29523 # in which case we are not to be found in the path.
29524 if test "x$as_myself" = x; then
29527 if test ! -f "$as_myself"; then
29528 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
29532 # Unset variables that we do not need and which cause bugs (e.g. in
29533 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
29534 # suppresses any "Segmentation fault" message there. '((' could
29535 # trigger a bug in pdksh 5.2.14.
29536 for as_var in BASH_ENV ENV MAIL MAILPATH
29537 do eval test x\${$as_var+set} = xset \
29538 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
29551 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
29554 # as_fn_error ERROR [LINENO LOG_FD]
29555 # ---------------------------------
29556 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
29557 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
29558 # script with status $?, using 1 if that was 0.
29561 as_status=$?; test $as_status -eq 0 && as_status=1
29563 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
29564 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
29566 $as_echo "$as_me: error: $1" >&2
29567 as_fn_exit $as_status
29571 # as_fn_set_status STATUS
29572 # -----------------------
29573 # Set $? to STATUS, without forking.
29574 as_fn_set_status ()
29577 } # as_fn_set_status
29579 # as_fn_exit STATUS
29580 # -----------------
29581 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
29585 as_fn_set_status $1
29591 # Portably unset VAR.
29594 { eval $1=; unset $1;}
29596 as_unset=as_fn_unset
29597 # as_fn_append VAR VALUE
29598 # ----------------------
29599 # Append the text in VALUE to the end of the definition contained in VAR. Take
29600 # advantage of any shell optimizations that allow amortized linear growth over
29601 # repeated appends, instead of the typical quadratic growth present in naive
29603 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
29604 eval 'as_fn_append ()
29615 # as_fn_arith ARG...
29616 # ------------------
29617 # Perform arithmetic evaluation on the ARGs, and store the result in the
29618 # global $as_val. Take advantage of shells that can avoid forks. The arguments
29619 # must be portable across $(()) and expr.
29620 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
29621 eval 'as_fn_arith ()
29628 as_val=`expr "$@" || test $? -eq 1`
29633 if expr a : '\(a\)' >/dev/null 2>&1 &&
29634 test "X`expr 00001 : '.*\(...\)'`" = X001; then
29640 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
29641 as_basename=basename
29646 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
29652 as_me=`$as_basename -- "$0" ||
29653 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
29654 X"$0" : 'X\(//\)$' \| \
29655 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
29657 sed '/^.*\/\([^/][^/]*\)\/*$/{
29671 # Avoid depending upon Character Ranges.
29672 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
29673 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
29674 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
29675 as_cr_digits='0123456789'
29676 as_cr_alnum=$as_cr_Letters$as_cr_digits
29678 ECHO_C= ECHO_N= ECHO_T=
29679 case `echo -n x` in #(((((
29681 case `echo 'xy\c'` in
29682 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
29684 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
29691 rm -f conf$$ conf$$.exe conf$$.file
29692 if test -d conf$$.dir; then
29693 rm -f conf$$.dir/conf$$.file
29696 mkdir conf$$.dir 2>/dev/null
29698 if (echo >conf$$.file) 2>/dev/null; then
29699 if ln -s conf$$.file conf$$ 2>/dev/null; then
29701 # ... but there are two gotchas:
29702 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
29703 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
29704 # In both cases, we have to default to `cp -p'.
29705 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
29707 elif ln conf$$.file conf$$ 2>/dev/null; then
29715 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
29716 rmdir conf$$.dir 2>/dev/null
29721 # Create "$as_dir" as a directory, including parents if necessary.
29726 -*) as_dir=./$as_dir;;
29728 test -d "$as_dir" || eval $as_mkdir_p || {
29732 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
29733 *) as_qdir=$as_dir;;
29735 as_dirs="'$as_qdir' $as_dirs"
29736 as_dir=`$as_dirname -- "$as_dir" ||
29737 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29738 X"$as_dir" : 'X\(//\)[^/]' \| \
29739 X"$as_dir" : 'X\(//\)$' \| \
29740 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
29741 $as_echo X"$as_dir" |
29742 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29746 /^X\(\/\/\)[^/].*/{
29759 test -d "$as_dir" && break
29761 test -z "$as_dirs" || eval "mkdir $as_dirs"
29762 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
29766 if mkdir -p . 2>/dev/null; then
29767 as_mkdir_p='mkdir -p "$as_dir"'
29769 test -d ./-p && rmdir ./-p
29773 if test -x / >/dev/null 2>&1; then
29774 as_test_x='test -x'
29776 if ls -dL / >/dev/null 2>&1; then
29783 if test -d "$1"; then
29789 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
29790 ???[sx]*):;;*)false;;esac;fi
29794 as_executable_p=$as_test_x
29796 # Sed expression to map a string onto a valid CPP name.
29797 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
29799 # Sed expression to map a string onto a valid variable name.
29800 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
29804 ## ----------------------------------- ##
29805 ## Main body of $CONFIG_STATUS script. ##
29806 ## ----------------------------------- ##
29808 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
29810 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29811 # Save the log message, to keep $0 and so on meaningful, and to
29812 # report actual input values of CONFIG_FILES etc. instead of their
29813 # values after options handling.
29815 This file was extended by $as_me, which was
29816 generated by GNU Autoconf 2.65. Invocation command line was
29818 CONFIG_FILES = $CONFIG_FILES
29819 CONFIG_HEADERS = $CONFIG_HEADERS
29820 CONFIG_LINKS = $CONFIG_LINKS
29821 CONFIG_COMMANDS = $CONFIG_COMMANDS
29824 on `(hostname || uname -n) 2>/dev/null | sed 1q`
29829 case $ac_config_files in *"
29830 "*) set x $ac_config_files; shift; ac_config_files=$*;;
29833 case $ac_config_headers in *"
29834 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
29838 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29839 # Files that config.status was made for.
29840 config_files="$ac_config_files"
29841 config_headers="$ac_config_headers"
29842 config_commands="$ac_config_commands"
29846 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29848 \`$as_me' instantiates files and other configuration actions
29849 from templates according to the current configuration. Unless the files
29850 and actions are specified as TAGs, all are instantiated by default.
29852 Usage: $0 [OPTION]... [TAG]...
29854 -h, --help print this help, then exit
29855 -V, --version print version number and configuration settings, then exit
29856 --config print configuration, then exit
29857 -q, --quiet, --silent
29858 do not print progress messages
29859 -d, --debug don't remove temporary files
29860 --recheck update $as_me by reconfiguring in the same conditions
29861 --file=FILE[:TEMPLATE]
29862 instantiate the configuration file FILE
29863 --header=FILE[:TEMPLATE]
29864 instantiate the configuration header FILE
29866 Configuration files:
29869 Configuration headers:
29872 Configuration commands:
29875 Report bugs to the package provider."
29878 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29879 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
29882 configured by $0, generated by GNU Autoconf 2.65,
29883 with options \\"\$ac_cs_config\\"
29885 Copyright (C) 2009 Free Software Foundation, Inc.
29886 This config.status script is free software; the Free Software Foundation
29887 gives unlimited permission to copy, distribute and modify it."
29893 test -n "\$AWK" || AWK=awk
29896 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29897 # The default lists apply if the user does not specify any file.
29903 ac_option=`expr "X$1" : 'X\([^=]*\)='`
29904 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
29915 # Handling of the options.
29916 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
29918 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
29919 $as_echo "$ac_cs_version"; exit ;;
29920 --config | --confi | --conf | --con | --co | --c )
29921 $as_echo "$ac_cs_config"; exit ;;
29922 --debug | --debu | --deb | --de | --d | -d )
29924 --file | --fil | --fi | --f )
29927 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
29929 as_fn_append CONFIG_FILES " '$ac_optarg'"
29930 ac_need_defaults=false;;
29931 --header | --heade | --head | --hea )
29934 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
29936 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
29937 ac_need_defaults=false;;
29939 # Conflict between --help and --header
29940 as_fn_error "ambiguous option: \`$1'
29941 Try \`$0 --help' for more information.";;
29942 --help | --hel | -h )
29943 $as_echo "$ac_cs_usage"; exit ;;
29944 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
29945 | -silent | --silent | --silen | --sile | --sil | --si | --s)
29948 # This is an error.
29949 -*) as_fn_error "unrecognized option: \`$1'
29950 Try \`$0 --help' for more information." ;;
29952 *) as_fn_append ac_config_targets " $1"
29953 ac_need_defaults=false ;;
29959 ac_configure_extra_args=
29961 if $ac_cs_silent; then
29963 ac_configure_extra_args="$ac_configure_extra_args --silent"
29967 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29968 if \$ac_cs_recheck; then
29969 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
29971 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
29972 CONFIG_SHELL='$SHELL'
29973 export CONFIG_SHELL
29978 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29982 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
29983 ## Running $as_me. ##
29989 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29995 # The HP-UX ksh and POSIX shell print the target directory to stdout
29996 # if CDPATH is set.
29997 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
29999 sed_quote_subst='$sed_quote_subst'
30000 double_quote_subst='$double_quote_subst'
30001 delay_variable_subst='$delay_variable_subst'
30002 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
30003 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
30004 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
30005 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
30006 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
30007 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
30008 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
30009 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
30010 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
30011 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
30012 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
30013 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
30014 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
30015 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
30016 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
30017 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
30018 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
30019 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
30020 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
30021 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
30022 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
30023 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
30024 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
30025 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
30026 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
30027 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
30028 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
30029 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30030 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
30031 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
30032 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
30033 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
30034 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
30035 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
30036 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
30037 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30038 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30039 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30040 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
30041 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
30042 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
30043 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
30044 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
30045 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
30046 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"`'
30047 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"`'
30048 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
30049 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
30050 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
30051 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
30052 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
30053 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
30054 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
30055 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
30056 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
30057 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
30058 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
30059 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
30060 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
30061 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
30062 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
30063 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
30064 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30065 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30066 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
30067 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
30068 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
30069 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
30070 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
30071 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30072 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30073 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30074 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30075 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30076 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30077 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
30078 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
30079 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
30080 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
30081 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
30082 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
30083 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
30084 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
30085 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
30086 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
30087 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
30088 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
30089 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
30090 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
30091 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
30092 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30093 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
30094 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
30095 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30096 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
30097 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
30098 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
30099 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
30100 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
30101 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
30102 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
30103 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
30104 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
30105 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
30106 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
30107 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30108 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30109 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30110 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
30111 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
30112 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
30113 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
30114 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
30115 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
30116 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
30117 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
30118 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
30119 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
30120 compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
30121 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
30122 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
30123 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
30124 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
30125 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
30126 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30127 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30128 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30129 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30130 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30131 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30132 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30133 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30134 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30135 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30136 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30137 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30138 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30139 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30140 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30141 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30142 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30143 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30144 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30145 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30146 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30147 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30148 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30149 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30150 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30151 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30152 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30153 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30154 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30155 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30156 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30157 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30158 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30159 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30160 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30161 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30162 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30163 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30164 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30165 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30166 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30167 compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30168 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30169 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30170 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30171 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30172 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30175 LTCFLAGS='$LTCFLAGS'
30176 compiler='$compiler_DEFAULT'
30178 # Quote evaled strings.
30190 deplibs_check_method \
30199 lt_cv_sys_global_symbol_pipe \
30200 lt_cv_sys_global_symbol_to_cdecl \
30201 lt_cv_sys_global_symbol_to_c_name_address \
30202 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
30205 lt_prog_compiler_no_builtin_flag \
30206 lt_prog_compiler_wl \
30207 lt_prog_compiler_pic \
30208 lt_prog_compiler_static \
30209 lt_cv_prog_compiler_c_o \
30217 export_dynamic_flag_spec \
30218 whole_archive_flag_spec \
30219 compiler_needs_object \
30221 allow_undefined_flag \
30222 no_undefined_flag \
30223 hardcode_libdir_flag_spec \
30224 hardcode_libdir_flag_spec_ld \
30225 hardcode_libdir_separator \
30230 variables_saved_for_relink \
30232 library_names_spec \
30237 compiler_lib_search_dirs \
30242 compiler_lib_search_path \
30245 lt_prog_compiler_no_builtin_flag_CXX \
30246 lt_prog_compiler_wl_CXX \
30247 lt_prog_compiler_pic_CXX \
30248 lt_prog_compiler_static_CXX \
30249 lt_cv_prog_compiler_c_o_CXX \
30250 export_dynamic_flag_spec_CXX \
30251 whole_archive_flag_spec_CXX \
30252 compiler_needs_object_CXX \
30254 allow_undefined_flag_CXX \
30255 no_undefined_flag_CXX \
30256 hardcode_libdir_flag_spec_CXX \
30257 hardcode_libdir_flag_spec_ld_CXX \
30258 hardcode_libdir_separator_CXX \
30259 fix_srcfile_path_CXX \
30260 exclude_expsyms_CXX \
30261 include_expsyms_CXX \
30262 file_list_spec_CXX \
30263 compiler_lib_search_dirs_CXX \
30264 predep_objects_CXX \
30265 postdep_objects_CXX \
30268 compiler_lib_search_path_CXX; do
30269 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
30270 *[\\\\\\\`\\"\\\$]*)
30271 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
30274 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
30279 # Double-quote double-evaled strings.
30280 for var in reload_cmds \
30281 old_postinstall_cmds \
30282 old_postuninstall_cmds \
30284 extract_expsyms_cmds \
30285 old_archive_from_new_cmds \
30286 old_archive_from_expsyms_cmds \
30288 archive_expsym_cmds \
30290 module_expsym_cmds \
30291 export_symbols_cmds \
30294 postuninstall_cmds \
30296 sys_lib_search_path_spec \
30297 sys_lib_dlsearch_path_spec \
30298 old_archive_cmds_CXX \
30299 old_archive_from_new_cmds_CXX \
30300 old_archive_from_expsyms_cmds_CXX \
30302 archive_expsym_cmds_CXX \
30304 module_expsym_cmds_CXX \
30305 export_symbols_cmds_CXX \
30306 prelink_cmds_CXX; do
30307 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
30308 *[\\\\\\\`\\"\\\$]*)
30309 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
30312 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
30317 # Fix-up fallback echo if it was mangled by the above quoting rules.
30319 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
30323 ac_aux_dir='$ac_aux_dir'
30324 xsi_shell='$xsi_shell'
30325 lt_shell_append='$lt_shell_append'
30327 # See if we are running on zsh, and set the options which allow our
30328 # commands through without removal of \ escapes INIT.
30329 if test -n "\${ZSH_VERSION+set}" ; then
30330 setopt NO_GLOB_SUBST
30336 TIMESTAMP='$TIMESTAMP'
30344 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
30345 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
30347 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
30348 # Capture the value of LINGUAS because we need it to compute CATALOGS.
30349 LINGUAS="${LINGUAS-%UNSET%}"
30354 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30356 # Handling of arguments.
30357 for ac_config_target in $ac_config_targets
30359 case $ac_config_target in
30360 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
30361 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
30362 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
30363 "autoconf/Make.common") CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
30364 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
30365 "manpages/Makefile") CONFIG_FILES="$CONFIG_FILES manpages/Makefile" ;;
30366 "scripts/startmysql") CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
30367 "scripts/stopmysql") CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
30368 "scripts/btraceback") CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
30369 "scripts/startit") CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
30370 "scripts/stopit") CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
30371 "scripts/bconsole") CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
30372 "scripts/gconsole") CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
30373 "scripts/bacula") CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
30374 "scripts/bacula-ctl-dir") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-dir" ;;
30375 "scripts/bacula-ctl-fd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-fd" ;;
30376 "scripts/bacula-ctl-sd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-sd" ;;
30377 "scripts/devel_bacula") CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
30378 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
30379 "scripts/logrotate") CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
30380 "scripts/bacula.desktop.gnome1") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
30381 "scripts/bacula.desktop.gnome2") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
30382 "scripts/bacula.desktop.gnome1.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
30383 "scripts/bacula.desktop.gnome2.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
30384 "scripts/bacula.desktop.gnome1.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
30385 "scripts/bacula.desktop.gnome2.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
30386 "scripts/bgnome-console.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bgnome-console.console_apps" ;;
30387 "scripts/mtx-changer") CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
30388 "scripts/disk-changer") CONFIG_FILES="$CONFIG_FILES scripts/disk-changer" ;;
30389 "scripts/dvd-handler") CONFIG_FILES="$CONFIG_FILES scripts/dvd-handler" ;;
30390 "scripts/dvd-simulator") CONFIG_FILES="$CONFIG_FILES scripts/dvd-simulator" ;;
30391 "scripts/bacula-tray-monitor.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bacula-tray-monitor.desktop" ;;
30392 "scripts/logwatch/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/Makefile" ;;
30393 "scripts/logwatch/logfile.bacula.conf") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/logfile.bacula.conf" ;;
30394 "scripts/wxconsole.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.console_apps" ;;
30395 "scripts/wxconsole.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.consolehelper" ;;
30396 "scripts/wxconsole.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.xsu" ;;
30397 "scripts/bat.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop" ;;
30398 "scripts/bat.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.xsu" ;;
30399 "scripts/bat.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.consolehelper" ;;
30400 "scripts/bat.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bat.console_apps" ;;
30401 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
30402 "src/host.h") CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
30403 "src/console/Makefile") CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
30404 "src/console/bconsole.conf") CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
30405 "src/qt-console/bat.conf") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.conf" ;;
30406 "src/qt-console/bat.pro") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro" ;;
30407 "src/qt-console/bat.pro.mingw32") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro.mingw32" ;;
30408 "src/qt-console/install_conf_file") CONFIG_FILES="$CONFIG_FILES src/qt-console/install_conf_file" ;;
30409 "src/wx-console/Makefile") CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
30410 "src/wx-console/bwx-console.conf") CONFIG_FILES="$CONFIG_FILES src/wx-console/bwx-console.conf" ;;
30411 "src/tray-monitor/Makefile") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/Makefile" ;;
30412 "src/tray-monitor/tray-monitor.conf") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/tray-monitor.conf" ;;
30413 "src/dird/Makefile") CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
30414 "src/dird/bacula-dir.conf") CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
30415 "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
30416 "src/stored/Makefile") CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
30417 "src/stored/bacula-sd.conf") CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
30418 "src/filed/Makefile") CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
30419 "src/filed/bacula-fd.conf") CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
30420 "src/cats/Makefile") CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
30421 "src/cats/make_catalog_backup.pl") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup.pl" ;;
30422 "src/cats/make_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
30423 "src/cats/delete_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
30424 "src/cats/create_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
30425 "src/cats/update_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
30426 "src/cats/make_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
30427 "src/cats/grant_postgresql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
30428 "src/cats/drop_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
30429 "src/cats/drop_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
30430 "src/cats/create_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
30431 "src/cats/update_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
30432 "src/cats/make_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
30433 "src/cats/grant_mysql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
30434 "src/cats/drop_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
30435 "src/cats/drop_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
30436 "src/cats/create_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite3_database" ;;
30437 "src/cats/update_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite3_tables" ;;
30438 "src/cats/make_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite3_tables" ;;
30439 "src/cats/grant_sqlite3_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite3_privileges" ;;
30440 "src/cats/drop_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_tables" ;;
30441 "src/cats/drop_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_database" ;;
30442 "src/cats/create_ingres_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_ingres_database" ;;
30443 "src/cats/update_ingres_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_ingres_tables" ;;
30444 "src/cats/make_ingres_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_ingres_tables" ;;
30445 "src/cats/grant_ingres_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_ingres_privileges" ;;
30446 "src/cats/drop_ingres_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_ingres_tables" ;;
30447 "src/cats/drop_ingres_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_ingres_database" ;;
30448 "src/cats/sqlite") CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
30449 "src/cats/mysql") CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
30450 "src/cats/create_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
30451 "src/cats/update_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
30452 "src/cats/grant_bacula_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
30453 "src/cats/make_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
30454 "src/cats/drop_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
30455 "src/cats/drop_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
30456 "src/findlib/Makefile") CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
30457 "src/tools/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
30458 "src/plugins/fd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/fd/Makefile" ;;
30459 "src/plugins/sd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/sd/Makefile" ;;
30460 "src/plugins/dir/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/dir/Makefile" ;;
30461 "src/win32/Makefile.inc") CONFIG_FILES="$CONFIG_FILES src/win32/Makefile.inc" ;;
30462 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
30463 "updatedb/update_mysql_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_9_to_10" ;;
30464 "updatedb/update_sqlite3_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_9_to_10" ;;
30465 "updatedb/update_postgresql_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_9_to_10" ;;
30466 "updatedb/update_mysql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_10_to_11" ;;
30467 "updatedb/update_sqlite3_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_10_to_11" ;;
30468 "updatedb/update_postgresql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_10_to_11" ;;
30469 "examples/nagios/check_bacula/Makefile") CONFIG_FILES="$CONFIG_FILES examples/nagios/check_bacula/Makefile" ;;
30470 "$PFILES") CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
30471 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
30473 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
30478 # If the user did not use the arguments to specify the items to instantiate,
30479 # then the envvar interface is used. Set only those that are not.
30480 # We use the long form for the default assignment because of an extremely
30481 # bizarre bug on SunOS 4.1.3.
30482 if $ac_need_defaults; then
30483 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
30484 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
30485 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
30488 # Have a temporary directory for convenience. Make it in the build tree
30489 # simply because there is no reason against having it here, and in addition,
30490 # creating and moving files from /tmp can sometimes cause problems.
30491 # Hook for its removal unless debugging.
30492 # Note that there is a small window in which the directory will not be cleaned:
30493 # after its creation but before its name has been assigned to `$tmp'.
30497 trap 'exit_status=$?
30498 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
30500 trap 'as_fn_exit 1' 1 2 13 15
30502 # Create a (secure) tmp directory for tmp files.
30505 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
30506 test -n "$tmp" && test -d "$tmp"
30509 tmp=./conf$$-$RANDOM
30510 (umask 077 && mkdir "$tmp")
30511 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
30513 # Set up the scripts for CONFIG_FILES section.
30514 # No need to generate them if there are no CONFIG_FILES.
30515 # This happens for instance with `./config.status config.h'.
30516 if test -n "$CONFIG_FILES"; then
30518 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
30519 ac_cs_awk_getline=:
30520 ac_cs_awk_pipe_init=
30521 ac_cs_awk_read_file='
30522 while ((getline aline < (F[key])) > 0)
30525 ac_cs_awk_pipe_fini=
30527 ac_cs_awk_getline=false
30528 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
30529 ac_cs_awk_read_file='
30531 print "cat " F[key] " &&"
30532 '$ac_cs_awk_pipe_init
30533 # The final `:' finishes the AND list.
30534 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
30536 ac_cr=`echo X | tr X '\015'`
30537 # On cygwin, bash can eat \r inside `` if the user requested igncr.
30538 # But we know of no other shell where ac_cr would be empty at this
30539 # point, so we can use a bashism as a fallback.
30540 if test "x$ac_cr" = x; then
30541 eval ac_cr=\$\'\\r\'
30543 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
30544 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
30547 ac_cs_awk_cr=$ac_cr
30550 echo 'BEGIN {' >"$tmp/subs1.awk" &&
30553 # Create commands to substitute file output variables.
30555 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
30556 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
30557 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
30560 } >conf$$files.sh &&
30561 . ./conf$$files.sh ||
30562 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
30563 rm -f conf$$files.sh
30566 echo "cat >conf$$subs.awk <<_ACEOF" &&
30567 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
30569 } >conf$$subs.sh ||
30570 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
30571 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
30573 for ac_last_try in false false false false false :; do
30574 . ./conf$$subs.sh ||
30575 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
30577 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
30578 if test $ac_delim_n = $ac_delim_num; then
30580 elif $ac_last_try; then
30581 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
30583 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30586 rm -f conf$$subs.sh
30588 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30589 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
30593 s/^/S["/; s/!.*/"]=/
30603 s/\(.\{148\}\)..*/\1/
30605 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
30610 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
30617 s/\(.\{148\}\)..*/\1/
30619 s/["\\]/\\&/g; s/^/"/; s/$/"/
30623 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
30628 ' <conf$$subs.awk | sed '
30633 ' >>$CONFIG_STATUS || ac_write_fail=1
30634 rm -f conf$$subs.awk
30635 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30637 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
30638 for (key in S) S_is_set[key] = 1
30640 \$ac_cs_awk_pipe_init
30644 nfields = split(line, field, "@")
30646 len = length(field[1])
30647 for (i = 2; i < nfields; i++) {
30649 keylen = length(key)
30650 if (S_is_set[key]) {
30652 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
30653 len += length(value) + length(field[++i])
30658 if (nfields == 3 && !substed) {
30660 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
30661 \$ac_cs_awk_read_file
30667 \$ac_cs_awk_pipe_fini
30670 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30671 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
30672 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
30675 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
30676 || as_fn_error "could not setup config files machinery" "$LINENO" 5
30679 # VPATH may cause trouble with some makes, so we remove $(srcdir),
30680 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
30681 # trailing colons and then remove the whole line if VPATH becomes empty
30682 # (actually we leave an empty line to preserve line numbers).
30683 if test "x$srcdir" = x.; then
30684 ac_vpsub='/^[ ]*VPATH[ ]*=/{
30685 s/:*\$(srcdir):*/:/
30686 s/:*\${srcdir}:*/:/
30688 s/^\([^=]*=[ ]*\):*/\1/
30694 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30695 fi # test -n "$CONFIG_FILES"
30697 # Set up the scripts for CONFIG_HEADERS section.
30698 # No need to generate them if there are no CONFIG_HEADERS.
30699 # This happens for instance with `./config.status Makefile'.
30700 if test -n "$CONFIG_HEADERS"; then
30701 cat >"$tmp/defines.awk" <<\_ACAWK ||
30705 # Transform confdefs.h into an awk script `defines.awk', embedded as
30706 # here-document in config.status, that substitutes the proper values into
30707 # config.h.in to produce config.h.
30709 # Create a delimiter string that does not exist in confdefs.h, to ease
30710 # handling of long lines.
30712 for ac_last_try in false false :; do
30713 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
30714 if test -z "$ac_t"; then
30716 elif $ac_last_try; then
30717 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
30719 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30723 # For the awk script, D is an array of macro values keyed by name,
30724 # likewise P contains macro parameters if any. Preserve backslash
30725 # newline sequences.
30727 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
30729 s/.\{148\}/&'"$ac_delim"'/g
30732 s/^[ ]*#[ ]*define[ ][ ]*/ /
30739 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
30741 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
30745 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
30746 D["\1"]=" \3\\\\\\n"\\/p
30748 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
30753 s/.\{148\}/&'"$ac_delim"'/g
30758 s/["\\]/\\&/g; s/^/"/; s/$/"/p
30761 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
30763 ' <confdefs.h | sed '
30764 s/'"$ac_delim"'/"\\\
30765 "/g' >>$CONFIG_STATUS || ac_write_fail=1
30767 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30768 for (key in D) D_is_set[key] = 1
30771 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
30773 split(line, arg, " ")
30774 if (arg[1] == "#") {
30778 defundef = substr(arg[1], 2)
30781 split(mac1, mac2, "(") #)
30783 prefix = substr(line, 1, index(line, defundef) - 1)
30784 if (D_is_set[macro]) {
30785 # Preserve the white space surrounding the "#".
30786 print prefix "define", macro P[macro] D[macro]
30789 # Replace #undef with comments. This is necessary, for example,
30790 # in the case of _POSIX_SOURCE, which is predefined and required
30791 # on some systems where configure will not decide to define it.
30792 if (defundef == "undef") {
30793 print "/*", prefix defundef, macro, "*/"
30801 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30802 as_fn_error "could not setup config headers machinery" "$LINENO" 5
30803 fi # test -n "$CONFIG_HEADERS"
30806 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
30811 :[FHLC]) ac_mode=$ac_tag; continue;;
30813 case $ac_mode$ac_tag in
30815 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
30816 :[FH]-) ac_tag=-:-;;
30817 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
30834 -) ac_f="$tmp/stdin";;
30835 *) # Look for the file first in the build tree, then in the source tree
30836 # (if the path is not absolute). The absolute path cannot be DOS-style,
30837 # because $ac_f cannot contain `:'.
30841 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
30843 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
30845 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
30846 as_fn_append ac_file_inputs " '$ac_f'"
30849 # Let's still pretend it is `configure' which instantiates (i.e., don't
30850 # use $as_me), people would be surprised to read:
30851 # /* config.h. Generated by config.status. */
30852 configure_input='Generated from '`
30853 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
30855 if test x"$ac_file" != x-; then
30856 configure_input="$ac_file. $configure_input"
30857 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
30858 $as_echo "$as_me: creating $ac_file" >&6;}
30860 # Neutralize special characters interpreted by sed in replacement strings.
30861 case $configure_input in #(
30862 *\&* | *\|* | *\\* )
30863 ac_sed_conf_input=`$as_echo "$configure_input" |
30864 sed 's/[\\\\&|]/\\\\&/g'`;; #(
30865 *) ac_sed_conf_input=$configure_input;;
30869 *:-:* | *:-) cat >"$tmp/stdin" \
30870 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
30875 ac_dir=`$as_dirname -- "$ac_file" ||
30876 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30877 X"$ac_file" : 'X\(//\)[^/]' \| \
30878 X"$ac_file" : 'X\(//\)$' \| \
30879 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
30880 $as_echo X"$ac_file" |
30881 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30885 /^X\(\/\/\)[^/].*/{
30898 as_dir="$ac_dir"; as_fn_mkdir_p
30902 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
30904 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
30905 # A ".." for each directory in $ac_dir_suffix.
30906 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
30907 case $ac_top_builddir_sub in
30908 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
30909 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
30912 ac_abs_top_builddir=$ac_pwd
30913 ac_abs_builddir=$ac_pwd$ac_dir_suffix
30914 # for backward compatibility:
30915 ac_top_builddir=$ac_top_build_prefix
30918 .) # We are building in place.
30920 ac_top_srcdir=$ac_top_builddir_sub
30921 ac_abs_top_srcdir=$ac_pwd ;;
30922 [\\/]* | ?:[\\/]* ) # Absolute name.
30923 ac_srcdir=$srcdir$ac_dir_suffix;
30924 ac_top_srcdir=$srcdir
30925 ac_abs_top_srcdir=$srcdir ;;
30926 *) # Relative name.
30927 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
30928 ac_top_srcdir=$ac_top_build_prefix$srcdir
30929 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
30931 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
30941 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
30942 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
30946 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30947 # If the template does not know about datarootdir, expand it.
30948 # FIXME: This hack should be removed a few years after 2.60.
30949 ac_datarootdir_hack=; ac_datarootdir_seen=
30960 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
30961 *datarootdir*) ac_datarootdir_seen=yes;;
30962 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
30963 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
30964 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
30966 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30967 ac_datarootdir_hack='
30968 s&@datadir@&$datadir&g
30969 s&@docdir@&$docdir&g
30970 s&@infodir@&$infodir&g
30971 s&@localedir@&$localedir&g
30972 s&@mandir@&$mandir&g
30973 s&\\\${datarootdir}&$datarootdir&g' ;;
30977 # Neutralize VPATH when `$srcdir' = `.'.
30978 # Shell code in configure.ac might set extrasub.
30979 # FIXME: do we really want to maintain this feature?
30980 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30981 ac_sed_extra="$ac_vpsub
30984 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30986 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
30987 s|@configure_input@|$ac_sed_conf_input|;t t
30988 s&@top_builddir@&$ac_top_builddir_sub&;t t
30989 s&@top_build_prefix@&$ac_top_build_prefix&;t t
30990 s&@srcdir@&$ac_srcdir&;t t
30991 s&@abs_srcdir@&$ac_abs_srcdir&;t t
30992 s&@top_srcdir@&$ac_top_srcdir&;t t
30993 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
30994 s&@builddir@&$ac_builddir&;t t
30995 s&@abs_builddir@&$ac_abs_builddir&;t t
30996 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
30997 s&@INSTALL@&$ac_INSTALL&;t t
30998 $ac_datarootdir_hack
31000 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
31001 if $ac_cs_awk_getline; then
31002 $AWK -f "$tmp/subs.awk"
31004 $AWK -f "$tmp/subs.awk" | $SHELL
31006 || as_fn_error "could not create $ac_file" "$LINENO" 5
31008 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
31009 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
31010 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
31011 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31012 which seems to be undefined. Please make sure it is defined." >&5
31013 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31014 which seems to be undefined. Please make sure it is defined." >&2;}
31018 -) cat "$tmp/out" && rm -f "$tmp/out";;
31019 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
31021 || as_fn_error "could not create $ac_file" "$LINENO" 5
31027 if test x"$ac_file" != x-; then
31029 $as_echo "/* $configure_input */" \
31030 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
31031 } >"$tmp/config.h" \
31032 || as_fn_error "could not create $ac_file" "$LINENO" 5
31033 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
31034 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
31035 $as_echo "$as_me: $ac_file is unchanged" >&6;}
31038 mv "$tmp/config.h" "$ac_file" \
31039 || as_fn_error "could not create $ac_file" "$LINENO" 5
31042 $as_echo "/* $configure_input */" \
31043 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
31044 || as_fn_error "could not create -" "$LINENO" 5
31048 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
31049 $as_echo "$as_me: executing $ac_file commands" >&6;}
31054 case $ac_file$ac_mode in
31057 # See if we are running on zsh, and set the options which allow our
31058 # commands through without removal of \ escapes.
31059 if test -n "${ZSH_VERSION+set}" ; then
31060 setopt NO_GLOB_SUBST
31063 cfgfile="${ofile}T"
31064 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
31067 cat <<_LT_EOF >> "$cfgfile"
31070 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
31071 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
31072 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
31073 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
31075 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
31076 # 2006, 2007, 2008 Free Software Foundation, Inc.
31077 # Written by Gordon Matzigkeit, 1996
31079 # This file is part of GNU Libtool.
31081 # GNU Libtool is free software; you can redistribute it and/or
31082 # modify it under the terms of the GNU General Public License as
31083 # published by the Free Software Foundation; either version 2 of
31084 # the License, or (at your option) any later version.
31086 # As a special exception to the GNU General Public License,
31087 # if you distribute this file as part of a program or library that
31088 # is built using GNU Libtool, you may include this file under the
31089 # same distribution terms that you use for the rest of that program.
31091 # GNU Libtool is distributed in the hope that it will be useful,
31092 # but WITHOUT ANY WARRANTY; without even the implied warranty of
31093 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
31094 # GNU General Public License for more details.
31096 # You should have received a copy of the GNU General Public License
31097 # along with GNU Libtool; see the file COPYING. If not, a copy
31098 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
31099 # obtained by writing to the Free Software Foundation, Inc.,
31100 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
31103 # The names of the tagged configurations supported by this script.
31104 available_tags="CXX "
31106 # ### BEGIN LIBTOOL CONFIG
31108 # Which release of libtool.m4 was used?
31109 macro_version=$macro_version
31110 macro_revision=$macro_revision
31112 # Whether or not to build shared libraries.
31113 build_libtool_libs=$enable_shared
31115 # Whether or not to build static libraries.
31116 build_old_libs=$enable_static
31118 # What type of objects to build.
31121 # Whether or not to optimize for fast installation.
31122 fast_install=$enable_fast_install
31125 host_alias=$host_alias
31129 # The build system.
31130 build_alias=$build_alias
31134 # A sed program that does not truncate output.
31137 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
31138 Xsed="\$SED -e 1s/^X//"
31140 # A grep program that handles long lines.
31146 # A literal string matcher.
31149 # A BSD- or MS-compatible name lister.
31152 # Whether we need soft or hard links.
31155 # What is the maximum length of a command?
31156 max_cmd_len=$max_cmd_len
31158 # Object file suffix (normally "o").
31161 # Executable file suffix (normally "").
31164 # whether the shell understands "unset".
31167 # turn spaces into newlines.
31170 # turn newlines into spaces.
31173 # How to create reloadable object files.
31174 reload_flag=$lt_reload_flag
31175 reload_cmds=$lt_reload_cmds
31177 # An object symbol dumper.
31178 OBJDUMP=$lt_OBJDUMP
31180 # Method to check whether dependent libraries are shared objects.
31181 deplibs_check_method=$lt_deplibs_check_method
31183 # Command to use when deplibs_check_method == "file_magic".
31184 file_magic_cmd=$lt_file_magic_cmd
31188 AR_FLAGS=$lt_AR_FLAGS
31190 # A symbol stripping program.
31193 # Commands used to install an old-style archive.
31195 old_postinstall_cmds=$lt_old_postinstall_cmds
31196 old_postuninstall_cmds=$lt_old_postuninstall_cmds
31201 # LTCC compiler flags.
31202 LTCFLAGS=$lt_CFLAGS
31204 # Take the output of nm and produce a listing of raw symbols and C names.
31205 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
31207 # Transform the output of nm in a proper C declaration.
31208 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
31210 # Transform the output of nm in a C name address pair.
31211 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
31213 # Transform the output of nm in a C name address pair when lib prefix is needed.
31214 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
31216 # The name of the directory that contains temporary libtool files.
31219 # Shell to use when invoking shell scripts.
31222 # An echo program that does not interpret backslashes.
31225 # Used to examine libraries when file_magic_cmd begins with "file".
31226 MAGIC_CMD=$MAGIC_CMD
31228 # Must we lock files when doing compilation?
31229 need_locks=$lt_need_locks
31231 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
31232 DSYMUTIL=$lt_DSYMUTIL
31234 # Tool to change global to local symbols on Mac OS X.
31237 # Tool to manipulate fat objects and archives on Mac OS X.
31240 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
31243 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
31244 OTOOL64=$lt_OTOOL64
31246 # Old archive suffix (normally "a").
31249 # Shared library suffix (normally ".so").
31250 shrext_cmds=$lt_shrext_cmds
31252 # The commands to extract the exported symbol list from a shared archive.
31253 extract_expsyms_cmds=$lt_extract_expsyms_cmds
31255 # Variables whose values should be saved in libtool wrapper scripts and
31256 # restored at link time.
31257 variables_saved_for_relink=$lt_variables_saved_for_relink
31259 # Do we need the "lib" prefix for modules?
31260 need_lib_prefix=$need_lib_prefix
31262 # Do we need a version for libraries?
31263 need_version=$need_version
31265 # Library versioning type.
31266 version_type=$version_type
31268 # Shared library runtime path variable.
31269 runpath_var=$runpath_var
31271 # Shared library path variable.
31272 shlibpath_var=$shlibpath_var
31274 # Is shlibpath searched before the hard-coded library search path?
31275 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
31277 # Format of library name prefix.
31278 libname_spec=$lt_libname_spec
31280 # List of archive names. First name is the real one, the rest are links.
31281 # The last name is the one that the linker finds with -lNAME
31282 library_names_spec=$lt_library_names_spec
31284 # The coded name of the library, if different from the real name.
31285 soname_spec=$lt_soname_spec
31287 # Command to use after installation of a shared archive.
31288 postinstall_cmds=$lt_postinstall_cmds
31290 # Command to use after uninstallation of a shared archive.
31291 postuninstall_cmds=$lt_postuninstall_cmds
31293 # Commands used to finish a libtool library installation in a directory.
31294 finish_cmds=$lt_finish_cmds
31296 # As "finish_cmds", except a single script fragment to be evaled but
31298 finish_eval=$lt_finish_eval
31300 # Whether we should hardcode library paths into libraries.
31301 hardcode_into_libs=$hardcode_into_libs
31303 # Compile-time system search path for libraries.
31304 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
31306 # Run-time system search path for libraries.
31307 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
31309 # Whether dlopen is supported.
31310 dlopen_support=$enable_dlopen
31312 # Whether dlopen of programs is supported.
31313 dlopen_self=$enable_dlopen_self
31315 # Whether dlopen of statically linked programs is supported.
31316 dlopen_self_static=$enable_dlopen_self_static
31318 # Commands to strip libraries.
31319 old_striplib=$lt_old_striplib
31320 striplib=$lt_striplib
31323 # The linker used to build libraries.
31326 # Commands used to build an old-style archive.
31327 old_archive_cmds=$lt_old_archive_cmds
31329 # A language specific compiler.
31332 # Is the compiler the GNU compiler?
31335 # Compiler flag to turn off builtin functions.
31336 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
31338 # How to pass a linker flag through the compiler.
31339 wl=$lt_lt_prog_compiler_wl
31341 # Additional compiler flags for building library objects.
31342 pic_flag=$lt_lt_prog_compiler_pic
31344 # Compiler flag to prevent dynamic linking.
31345 link_static_flag=$lt_lt_prog_compiler_static
31347 # Does compiler simultaneously support -c and -o options?
31348 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
31350 # Whether or not to add -lc for building shared libraries.
31351 build_libtool_need_lc=$archive_cmds_need_lc
31353 # Whether or not to disallow shared libs when runtime libs are static.
31354 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
31356 # Compiler flag to allow reflexive dlopens.
31357 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
31359 # Compiler flag to generate shared objects directly from archives.
31360 whole_archive_flag_spec=$lt_whole_archive_flag_spec
31362 # Whether the compiler copes with passing no objects directly.
31363 compiler_needs_object=$lt_compiler_needs_object
31365 # Create an old-style archive from a shared archive.
31366 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
31368 # Create a temporary old-style archive to link instead of a shared archive.
31369 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
31371 # Commands used to build a shared archive.
31372 archive_cmds=$lt_archive_cmds
31373 archive_expsym_cmds=$lt_archive_expsym_cmds
31375 # Commands used to build a loadable module if different from building
31376 # a shared archive.
31377 module_cmds=$lt_module_cmds
31378 module_expsym_cmds=$lt_module_expsym_cmds
31380 # Whether we are building with GNU ld or not.
31381 with_gnu_ld=$lt_with_gnu_ld
31383 # Flag that allows shared libraries with undefined symbols to be built.
31384 allow_undefined_flag=$lt_allow_undefined_flag
31386 # Flag that enforces no undefined symbols.
31387 no_undefined_flag=$lt_no_undefined_flag
31389 # Flag to hardcode \$libdir into a binary during linking.
31390 # This must work even if \$libdir does not exist
31391 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
31393 # If ld is used when linking, flag to hardcode \$libdir into a binary
31394 # during linking. This must work even if \$libdir does not exist.
31395 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
31397 # Whether we need a single "-rpath" flag with a separated argument.
31398 hardcode_libdir_separator=$lt_hardcode_libdir_separator
31400 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
31401 # DIR into the resulting binary.
31402 hardcode_direct=$hardcode_direct
31404 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
31405 # DIR into the resulting binary and the resulting library dependency is
31406 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
31407 # library is relocated.
31408 hardcode_direct_absolute=$hardcode_direct_absolute
31410 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
31411 # into the resulting binary.
31412 hardcode_minus_L=$hardcode_minus_L
31414 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
31415 # into the resulting binary.
31416 hardcode_shlibpath_var=$hardcode_shlibpath_var
31418 # Set to "yes" if building a shared library automatically hardcodes DIR
31419 # into the library and all subsequent libraries and executables linked
31421 hardcode_automatic=$hardcode_automatic
31423 # Set to yes if linker adds runtime paths of dependent libraries
31424 # to runtime path list.
31425 inherit_rpath=$inherit_rpath
31427 # Whether libtool must link a program against all its dependency libraries.
31428 link_all_deplibs=$link_all_deplibs
31430 # Fix the shell variable \$srcfile for the compiler.
31431 fix_srcfile_path=$lt_fix_srcfile_path
31433 # Set to "yes" if exported symbols are required.
31434 always_export_symbols=$always_export_symbols
31436 # The commands to list exported symbols.
31437 export_symbols_cmds=$lt_export_symbols_cmds
31439 # Symbols that should not be listed in the preloaded symbols.
31440 exclude_expsyms=$lt_exclude_expsyms
31442 # Symbols that must always be exported.
31443 include_expsyms=$lt_include_expsyms
31445 # Commands necessary for linking programs (against libraries) with templates.
31446 prelink_cmds=$lt_prelink_cmds
31448 # Specify filename containing input files.
31449 file_list_spec=$lt_file_list_spec
31451 # How to hardcode a shared library path into an executable.
31452 hardcode_action=$hardcode_action
31454 # The directories searched by this compiler when creating a shared library.
31455 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
31457 # Dependencies to place before and after the objects being linked to
31458 # create a shared library.
31459 predep_objects=$lt_predep_objects
31460 postdep_objects=$lt_postdep_objects
31461 predeps=$lt_predeps
31462 postdeps=$lt_postdeps
31464 # The library search path used internally by the compiler when linking
31465 # a shared library.
31466 compiler_lib_search_path=$lt_compiler_lib_search_path
31468 # ### END LIBTOOL CONFIG
31474 cat <<\_LT_EOF >> "$cfgfile"
31475 # AIX sometimes has problems with the GCC collect2 program. For some
31476 # reason, if we set the COLLECT_NAMES environment variable, the problems
31477 # vanish in a puff of smoke.
31478 if test "X${COLLECT_NAMES+set}" != Xset; then
31480 export COLLECT_NAMES
31487 ltmain="$ac_aux_dir/ltmain.sh"
31490 # We use sed instead of cat because bash on DJGPP gets confused if
31491 # if finds mixed CR/LF and LF-only lines. Since sed operates in
31492 # text mode, it properly converts lines to CR/LF. This bash problem
31493 # is reportedly fixed, but why not run on old versions too?
31494 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
31495 || (rm -f "$cfgfile"; exit 1)
31499 cat << \_LT_EOF >> "$cfgfile"
31501 # func_dirname file append nondir_replacement
31502 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
31503 # otherwise set result to NONDIR_REPLACEMENT.
31507 */*) func_dirname_result="${1%/*}${2}" ;;
31508 * ) func_dirname_result="${3}" ;;
31512 # func_basename file
31515 func_basename_result="${1##*/}"
31518 # func_dirname_and_basename file append nondir_replacement
31519 # perform func_basename and func_dirname in a single function
31521 # dirname: Compute the dirname of FILE. If nonempty,
31522 # add APPEND to the result, otherwise set result
31523 # to NONDIR_REPLACEMENT.
31524 # value returned in "$func_dirname_result"
31525 # basename: Compute filename of FILE.
31526 # value retuned in "$func_basename_result"
31527 # Implementation must be kept synchronized with func_dirname
31528 # and func_basename. For efficiency, we do not delegate to
31529 # those functions but instead duplicate the functionality here.
31530 func_dirname_and_basename ()
31533 */*) func_dirname_result="${1%/*}${2}" ;;
31534 * ) func_dirname_result="${3}" ;;
31536 func_basename_result="${1##*/}"
31539 # func_stripname prefix suffix name
31540 # strip PREFIX and SUFFIX off of NAME.
31541 # PREFIX and SUFFIX must not contain globbing or regex special
31542 # characters, hashes, percent signs, but SUFFIX may contain a leading
31543 # dot (in which case that matches only a dot).
31546 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
31547 # positional parameters, so assign one to ordinary parameter first.
31548 func_stripname_result=${3}
31549 func_stripname_result=${func_stripname_result#"${1}"}
31550 func_stripname_result=${func_stripname_result%"${2}"}
31556 func_opt_split_opt=${1%%=*}
31557 func_opt_split_arg=${1#*=}
31564 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
31565 *) func_lo2o_result=${1} ;;
31569 # func_xform libobj-or-source
31572 func_xform_result=${1%.*}.lo
31575 # func_arith arithmetic-term...
31578 func_arith_result=$(( $* ))
31582 # STRING may not start with a hyphen.
31585 func_len_result=${#1}
31590 *) # Bourne compatible functions.
31591 cat << \_LT_EOF >> "$cfgfile"
31593 # func_dirname file append nondir_replacement
31594 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
31595 # otherwise set result to NONDIR_REPLACEMENT.
31598 # Extract subdirectory from the argument.
31599 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
31600 if test "X$func_dirname_result" = "X${1}"; then
31601 func_dirname_result="${3}"
31603 func_dirname_result="$func_dirname_result${2}"
31607 # func_basename file
31610 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
31614 # func_stripname prefix suffix name
31615 # strip PREFIX and SUFFIX off of NAME.
31616 # PREFIX and SUFFIX must not contain globbing or regex special
31617 # characters, hashes, percent signs, but SUFFIX may contain a leading
31618 # dot (in which case that matches only a dot).
31619 # func_strip_suffix prefix name
31623 .*) func_stripname_result=`$ECHO "X${3}" \
31624 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
31625 *) func_stripname_result=`$ECHO "X${3}" \
31626 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
31631 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
31632 my_sed_long_arg='1s/^-[^=]*=//'
31637 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
31638 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
31644 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
31647 # func_xform libobj-or-source
31650 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
31653 # func_arith arithmetic-term...
31656 func_arith_result=`expr "$@"`
31660 # STRING may not start with a hyphen.
31663 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
31669 case $lt_shell_append in
31671 cat << \_LT_EOF >> "$cfgfile"
31673 # func_append var value
31674 # Append VALUE to the end of shell variable VAR.
31682 cat << \_LT_EOF >> "$cfgfile"
31684 # func_append var value
31685 # Append VALUE to the end of shell variable VAR.
31696 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
31697 || (rm -f "$cfgfile"; exit 1)
31699 mv -f "$cfgfile" "$ofile" ||
31700 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
31704 cat <<_LT_EOF >> "$ofile"
31706 # ### BEGIN LIBTOOL TAG CONFIG: CXX
31708 # The linker used to build libraries.
31711 # Commands used to build an old-style archive.
31712 old_archive_cmds=$lt_old_archive_cmds_CXX
31714 # A language specific compiler.
31715 CC=$lt_compiler_CXX
31717 # Is the compiler the GNU compiler?
31720 # Compiler flag to turn off builtin functions.
31721 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
31723 # How to pass a linker flag through the compiler.
31724 wl=$lt_lt_prog_compiler_wl_CXX
31726 # Additional compiler flags for building library objects.
31727 pic_flag=$lt_lt_prog_compiler_pic_CXX
31729 # Compiler flag to prevent dynamic linking.
31730 link_static_flag=$lt_lt_prog_compiler_static_CXX
31732 # Does compiler simultaneously support -c and -o options?
31733 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
31735 # Whether or not to add -lc for building shared libraries.
31736 build_libtool_need_lc=$archive_cmds_need_lc_CXX
31738 # Whether or not to disallow shared libs when runtime libs are static.
31739 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
31741 # Compiler flag to allow reflexive dlopens.
31742 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
31744 # Compiler flag to generate shared objects directly from archives.
31745 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
31747 # Whether the compiler copes with passing no objects directly.
31748 compiler_needs_object=$lt_compiler_needs_object_CXX
31750 # Create an old-style archive from a shared archive.
31751 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
31753 # Create a temporary old-style archive to link instead of a shared archive.
31754 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
31756 # Commands used to build a shared archive.
31757 archive_cmds=$lt_archive_cmds_CXX
31758 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
31760 # Commands used to build a loadable module if different from building
31761 # a shared archive.
31762 module_cmds=$lt_module_cmds_CXX
31763 module_expsym_cmds=$lt_module_expsym_cmds_CXX
31765 # Whether we are building with GNU ld or not.
31766 with_gnu_ld=$lt_with_gnu_ld_CXX
31768 # Flag that allows shared libraries with undefined symbols to be built.
31769 allow_undefined_flag=$lt_allow_undefined_flag_CXX
31771 # Flag that enforces no undefined symbols.
31772 no_undefined_flag=$lt_no_undefined_flag_CXX
31774 # Flag to hardcode \$libdir into a binary during linking.
31775 # This must work even if \$libdir does not exist
31776 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
31778 # If ld is used when linking, flag to hardcode \$libdir into a binary
31779 # during linking. This must work even if \$libdir does not exist.
31780 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
31782 # Whether we need a single "-rpath" flag with a separated argument.
31783 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
31785 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
31786 # DIR into the resulting binary.
31787 hardcode_direct=$hardcode_direct_CXX
31789 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
31790 # DIR into the resulting binary and the resulting library dependency is
31791 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
31792 # library is relocated.
31793 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
31795 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
31796 # into the resulting binary.
31797 hardcode_minus_L=$hardcode_minus_L_CXX
31799 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
31800 # into the resulting binary.
31801 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
31803 # Set to "yes" if building a shared library automatically hardcodes DIR
31804 # into the library and all subsequent libraries and executables linked
31806 hardcode_automatic=$hardcode_automatic_CXX
31808 # Set to yes if linker adds runtime paths of dependent libraries
31809 # to runtime path list.
31810 inherit_rpath=$inherit_rpath_CXX
31812 # Whether libtool must link a program against all its dependency libraries.
31813 link_all_deplibs=$link_all_deplibs_CXX
31815 # Fix the shell variable \$srcfile for the compiler.
31816 fix_srcfile_path=$lt_fix_srcfile_path_CXX
31818 # Set to "yes" if exported symbols are required.
31819 always_export_symbols=$always_export_symbols_CXX
31821 # The commands to list exported symbols.
31822 export_symbols_cmds=$lt_export_symbols_cmds_CXX
31824 # Symbols that should not be listed in the preloaded symbols.
31825 exclude_expsyms=$lt_exclude_expsyms_CXX
31827 # Symbols that must always be exported.
31828 include_expsyms=$lt_include_expsyms_CXX
31830 # Commands necessary for linking programs (against libraries) with templates.
31831 prelink_cmds=$lt_prelink_cmds_CXX
31833 # Specify filename containing input files.
31834 file_list_spec=$lt_file_list_spec_CXX
31836 # How to hardcode a shared library path into an executable.
31837 hardcode_action=$hardcode_action_CXX
31839 # The directories searched by this compiler when creating a shared library.
31840 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
31842 # Dependencies to place before and after the objects being linked to
31843 # create a shared library.
31844 predep_objects=$lt_predep_objects_CXX
31845 postdep_objects=$lt_postdep_objects_CXX
31846 predeps=$lt_predeps_CXX
31847 postdeps=$lt_postdeps_CXX
31849 # The library search path used internally by the compiler when linking
31850 # a shared library.
31851 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
31853 # ### END LIBTOOL TAG CONFIG: CXX
31858 for ac_file in $CONFIG_FILES; do
31859 # Support "outfile[:infile[:infile...]]"
31861 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
31863 # PO directories have a Makefile.in generated from Makefile.in.in.
31864 case "$ac_file" in */Makefile.in)
31865 # Adjust a relative srcdir.
31866 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
31867 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
31868 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
31869 # In autoconf-2.13 it is called $ac_given_srcdir.
31870 # In autoconf-2.50 it is called $srcdir.
31871 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
31872 case "$ac_given_srcdir" in
31873 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
31874 /*) top_srcdir="$ac_given_srcdir" ;;
31875 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
31877 # Treat a directory as a PO directory if and only if it has a
31878 # POTFILES.in file. This allows packages to have multiple PO
31879 # directories under different names or in different locations.
31880 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
31881 rm -f "$ac_dir/POTFILES"
31882 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
31883 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
31884 POMAKEFILEDEPS="POTFILES.in"
31885 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
31886 # on $ac_dir but don't depend on user-specified configuration
31888 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
31889 # The LINGUAS file contains the set of available languages.
31890 if test -n "$OBSOLETE_ALL_LINGUAS"; then
31891 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
31893 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
31894 # Hide the ALL_LINGUAS assigment from automake.
31895 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
31896 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
31898 # The set of available languages was given in configure.in.
31899 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
31902 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
31903 # Compute UPDATEPOFILES
31904 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
31905 # Compute DUMMYPOFILES
31906 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
31908 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
31909 case "$ac_given_srcdir" in
31911 *) srcdirpre='$(srcdir)/' ;;
31917 for lang in $ALL_LINGUAS; do
31918 POFILES="$POFILES $srcdirpre$lang.po"
31919 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
31920 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
31921 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
31923 # CATALOGS depends on both $ac_dir and the user's LINGUAS
31924 # environment variable.
31926 if test -n "$ALL_LINGUAS"; then
31927 for presentlang in $ALL_LINGUAS; do
31929 if test "%UNSET%" != "$LINGUAS"; then
31930 desiredlanguages="$LINGUAS"
31932 desiredlanguages="$ALL_LINGUAS"
31934 for desiredlang in $desiredlanguages; do
31935 # Use the presentlang catalog if desiredlang is
31936 # a. equal to presentlang, or
31937 # b. a variant of presentlang (because in this case,
31938 # presentlang can be used as a fallback for messages
31939 # which are not translated in the desiredlang catalog).
31940 case "$desiredlang" in
31941 "$presentlang"*) useit=yes;;
31944 if test $useit = yes; then
31945 INST_LINGUAS="$INST_LINGUAS $presentlang"
31950 if test -n "$INST_LINGUAS"; then
31951 for lang in $INST_LINGUAS; do
31952 CATALOGS="$CATALOGS $lang.gmo"
31955 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
31956 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"
31957 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
31958 if test -f "$f"; then
31960 *.orig | *.bak | *~) ;;
31961 *) cat "$f" >> "$ac_dir/Makefile" ;;
31978 ac_clean_files=$ac_clean_files_save
31980 test $ac_write_fail = 0 ||
31981 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
31984 # configure is writing to config.log, and then calls config.status.
31985 # config.status does its own redirection, appending to config.log.
31986 # Unfortunately, on DOS this fails, as config.log is still kept open
31987 # by configure, so config.status won't be able to write to it; its
31988 # output is simply discarded. So we exec the FD to /dev/null,
31989 # effectively closing config.log, so it can be properly (re)opened and
31990 # appended to by config.status. When coming back to configure, we
31991 # need to make the FD available again.
31992 if test "$no_create" != yes; then
31994 ac_config_status_args=
31995 test "$silent" = yes &&
31996 ac_config_status_args="$ac_config_status_args --quiet"
31998 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
32000 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
32001 # would make configure fail if this is the last instruction.
32002 $ac_cs_success || as_fn_exit $?
32004 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
32005 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
32006 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
32010 if test "${support_bat}" = "yes" ; then
32011 if test "x$QMAKE" = "xnone"; then
32012 as_fn_error "Could not find qmake $PATH. Check your Qt installation" "$LINENO" 5
32017 echo "Creating bat Makefile"
32022 ${MAKE:-make} clean
32026 if test X"$GCC" = "Xyes" ; then
32027 echo "Doing make of dependencies"
32028 ${MAKE:-make} depend
32032 chmod 755 install_conf_file build-depkgs-qt-console
32036 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
32037 chmod 755 dvd-handler dvd-simulator
32038 chmod 755 bconsole gconsole mtx-changer devel_bacula logrotate
32042 chmod 755 $c/update_mysql_tables_10_to_11 $c/update_sqlite3_tables_10_to_11
32043 chmod 755 $c/update_postgresql_tables_10_to_11
32047 chmod 755 $c/create_bacula_database $c/update_bacula_tables $c/make_bacula_tables
32048 chmod 755 $c/grant_bacula_privileges $c/drop_bacula_tables $c/drop_bacula_database
32050 chmod 755 $c/create_bdb_database $c/update_bdb_tables $c/make_bdb_tables
32051 chmod 755 $c/grant_bdb_privileges $c/drop_bdb_tables $c/drop_bdb_database
32053 chmod 755 $c/create_mysql_database $c/update_mysql_tables $c/make_mysql_tables
32054 chmod 755 $c/grant_mysql_privileges $c/drop_mysql_tables $c/drop_mysql_database
32056 chmod 755 $c/create_sqlite3_database $c/update_sqlite3_tables $c/make_sqlite3_tables
32057 chmod 755 $c/grant_sqlite3_privileges $c/drop_sqlite3_tables $c/drop_sqlite3_database
32059 chmod 755 $c/create_postgresql_database $c/update_postgresql_tables $c/make_postgresql_tables
32060 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables $c/drop_postgresql_database
32062 chmod 755 $c/create_ingres_database $c/update_ingres_tables $c/make_ingres_tables
32063 chmod 755 $c/grant_ingres_privileges $c/drop_ingres_tables $c/drop_ingres_database
32066 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup $c/make_catalog_backup.pl
32067 chmod 755 $c/sqlite
32070 chmod 755 src/win32/build-depkgs-mingw32
32072 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
32073 largefile_support="yes"
32076 if test X"$GCC" = "Xyes" ; then
32077 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
32078 if test "x${CCVERSION}" = "x" ; then
32079 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
32081 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
32082 if test x"${CXXVERSION}" = x ; then
32083 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
32087 # clean up any old junk
32091 ${MAKE:-make} clean
32093 if test "x${db_type}" = "xInternal" ; then
32096 echo "You have not specified either --enable-client-only or one of the"
32097 echo " supported databases: MySQL, PostgreSQL, Ingres, SQLite3 or DBI."
32098 echo " This is not permitted. Please reconfigure."
32100 echo "Aborting the configuration ..."
32107 Configuration on `date`:
32109 Host: ${host}${post_host} -- ${DISTNAME} ${DISTVER}
32110 Bacula version: ${BACULA} ${VERSION} (${DATE})
32111 Source code location: ${srcdir}
32112 Install binaries: ${sbindir}
32113 Install libraries: ${libdir}
32114 Install config files: ${sysconfdir}
32115 Scripts directory: ${scriptdir}
32116 Archive directory: ${archivedir}
32117 Working directory: ${working_dir}
32118 PID directory: ${piddir}
32119 Subsys directory: ${subsysdir}
32120 Man directory: ${mandir}
32121 Data directory: ${datarootdir}
32122 Plugin directory: ${plugindir}
32123 C Compiler: ${CC} ${CCVERSION}
32124 C++ Compiler: ${CXX} ${CXXVERSION}
32125 Compiler flags: ${WCFLAGS} ${CFLAGS}
32126 Linker flags: ${WLDFLAGS} ${LDFLAGS}
32128 Statically Linked Tools: ${support_static_tools}
32129 Statically Linked FD: ${support_static_fd}
32130 Statically Linked SD: ${support_static_sd}
32131 Statically Linked DIR: ${support_static_dir}
32132 Statically Linked CONS: ${support_static_cons}
32133 Database type: ${db_type}
32134 Database port: ${db_port}
32135 Database lib: ${DB_LIBS}
32136 Database name: ${db_name}
32137 Database user: ${db_user}
32139 Job Output Email: ${job_email}
32140 Traceback Email: ${dump_email}
32141 SMTP Host Address: ${smtp_host}
32143 Director Port: ${dir_port}
32144 File daemon Port: ${fd_port}
32145 Storage daemon Port: ${sd_port}
32147 Director User: ${dir_user}
32148 Director Group: ${dir_group}
32149 Storage Daemon User: ${sd_user}
32150 Storage DaemonGroup: ${sd_group}
32151 File Daemon User: ${fd_user}
32152 File Daemon Group: ${fd_group}
32154 SQL binaries Directory ${SQL_BINDIR}
32156 Large file support: $largefile_support
32157 Bacula conio support: ${got_conio} ${CONS_LIBS}
32158 readline support: ${got_readline} ${PRTREADLINE_SRC}
32159 TCP Wrappers support: ${TCPW_MSG} ${WRAPLIBS}
32160 TLS support: ${support_tls}
32161 Encryption support: ${support_crypto}
32162 ZLIB support: ${have_zlib}
32163 enable-smartalloc: ${support_smartalloc}
32164 enable-lockmgr: ${support_lockmgr}
32165 bat support: ${support_bat}
32166 enable-gnome: ${support_gnome} ${gnome_version}
32167 enable-bwx-console: ${support_wx_console} ${wx_version}
32168 enable-tray-monitor: ${support_tray_monitor}
32169 client-only: ${build_client_only}
32170 build-dird: ${build_dird}
32171 build-stored: ${build_stored}
32172 Plugin support: ${have_plugins}
32173 AFS support: ${have_afs}
32174 ACL support: ${have_acl}
32175 XATTR support: ${have_xattr}
32176 Python support: ${support_python} ${PYTHON_LIBS}
32177 Batch insert enabled: ${support_batch_insert}
32181 # create a small shell script useful for support with
32182 # configure options and config.out info
32183 cat > scripts/bacula_config << EOF
32186 $ $0 $ac_configure_args
32188 cat config.out >> scripts/bacula_config
32189 echo __EOC__ >> scripts/bacula_config
32190 chmod 755 scripts/bacula_config
32194 # Display a warning message if postgresql client lib is <= 8.1
32195 if test x$DB_TYPE = xpostgresql -a x$ac_cv_lib_pq_PQisthreadsafe != xyes \
32196 -a x$support_batch_insert = xyes
32198 echo "WARNING: Your PostgreSQL client library is too old to detect "
32199 echo " if it was compiled with --enable-thread-safety, consider to"
32200 echo " upgrade it in order to avoid problems with Batch insert mode"