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
770 SHARED_CATALOG_TARGETS
850 TRAY_MONITOR_CPPFLAGS
859 INTL_LIBTOOL_SUFFIX_PREFIX
866 BUILD_INCLUDED_LIBINTL
897 HAVE_OPENBSD_OS_FALSE
901 HAVE_FREEBSD_OS_FALSE
913 INCLUDE_UNINSTALL_TARGET
914 INCLUDE_INSTALL_TARGET
918 LIBTOOL_UNINSTALL_TARGET
919 LIBTOOL_INSTALL_TARGET
920 DEFAULT_SHARED_OBJECT_TYPE
994 LIBBACFIND_LT_RELEASE
995 LIBBACCATS_LT_RELEASE
1040 program_transform_name
1051 ac_subst_files='MCOMMON'
1053 enable_option_checking
1064 with_libiconv_prefix
1066 with_included_gettext
1105 with_mon_dir_password
1106 with_mon_fd_password
1107 with_mon_sd_password
1134 ac_precious_vars='build_alias
1152 # Initialize some variables set by options.
1154 ac_init_version=false
1155 ac_unrecognized_opts=
1156 ac_unrecognized_sep=
1157 # The variables have the same names as the options, with
1158 # dashes changed to underlines.
1159 cache_file=/dev/null
1166 program_transform_name=s,x,x,
1174 # Installation directory options.
1175 # These are left unexpanded so users can "make install exec_prefix=/foo"
1176 # and all the variables that are supposed to be based on exec_prefix
1177 # by default will actually change.
1178 # Use braces instead of parens because sh, perl, etc. also accept them.
1179 # (The list follows the same order as the GNU Coding Standards.)
1180 bindir='${exec_prefix}/bin'
1181 sbindir='${exec_prefix}/sbin'
1182 libexecdir='${exec_prefix}/libexec'
1183 datarootdir='${prefix}/share'
1184 datadir='${datarootdir}'
1185 sysconfdir='${prefix}/etc'
1186 sharedstatedir='${prefix}/com'
1187 localstatedir='${prefix}/var'
1188 includedir='${prefix}/include'
1189 oldincludedir='/usr/include'
1190 docdir='${datarootdir}/doc/${PACKAGE}'
1191 infodir='${datarootdir}/info'
1196 libdir='${exec_prefix}/lib'
1197 localedir='${datarootdir}/locale'
1198 mandir='${datarootdir}/man'
1204 # If the previous option needs an argument, assign it.
1205 if test -n "$ac_prev"; then
1206 eval $ac_prev=\$ac_option
1212 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1216 # Accept the important Cygnus configure options, so we can diagnose typos.
1218 case $ac_dashdash$ac_option in
1222 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1224 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1225 bindir=$ac_optarg ;;
1227 -build | --build | --buil | --bui | --bu)
1228 ac_prev=build_alias ;;
1229 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1230 build_alias=$ac_optarg ;;
1232 -cache-file | --cache-file | --cache-fil | --cache-fi \
1233 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1234 ac_prev=cache_file ;;
1235 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1236 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1237 cache_file=$ac_optarg ;;
1239 --config-cache | -C)
1240 cache_file=config.cache ;;
1242 -datadir | --datadir | --datadi | --datad)
1244 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1245 datadir=$ac_optarg ;;
1247 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1248 | --dataroo | --dataro | --datar)
1249 ac_prev=datarootdir ;;
1250 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1251 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1252 datarootdir=$ac_optarg ;;
1254 -disable-* | --disable-*)
1255 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1256 # Reject names that are not valid shell variable names.
1257 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1258 as_fn_error "invalid feature name: $ac_useropt"
1259 ac_useropt_orig=$ac_useropt
1260 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1261 case $ac_user_opts in
1263 "enable_$ac_useropt"
1265 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1266 ac_unrecognized_sep=', ';;
1268 eval enable_$ac_useropt=no ;;
1270 -docdir | --docdir | --docdi | --doc | --do)
1272 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1273 docdir=$ac_optarg ;;
1275 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1277 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1278 dvidir=$ac_optarg ;;
1280 -enable-* | --enable-*)
1281 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1282 # Reject names that are not valid shell variable names.
1283 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1284 as_fn_error "invalid feature name: $ac_useropt"
1285 ac_useropt_orig=$ac_useropt
1286 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1287 case $ac_user_opts in
1289 "enable_$ac_useropt"
1291 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1292 ac_unrecognized_sep=', ';;
1294 eval enable_$ac_useropt=\$ac_optarg ;;
1296 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1297 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1298 | --exec | --exe | --ex)
1299 ac_prev=exec_prefix ;;
1300 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1301 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1302 | --exec=* | --exe=* | --ex=*)
1303 exec_prefix=$ac_optarg ;;
1305 -gas | --gas | --ga | --g)
1306 # Obsolete; use --with-gas.
1309 -help | --help | --hel | --he | -h)
1310 ac_init_help=long ;;
1311 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1312 ac_init_help=recursive ;;
1313 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1314 ac_init_help=short ;;
1316 -host | --host | --hos | --ho)
1317 ac_prev=host_alias ;;
1318 -host=* | --host=* | --hos=* | --ho=*)
1319 host_alias=$ac_optarg ;;
1321 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1323 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1325 htmldir=$ac_optarg ;;
1327 -includedir | --includedir | --includedi | --included | --include \
1328 | --includ | --inclu | --incl | --inc)
1329 ac_prev=includedir ;;
1330 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1331 | --includ=* | --inclu=* | --incl=* | --inc=*)
1332 includedir=$ac_optarg ;;
1334 -infodir | --infodir | --infodi | --infod | --info | --inf)
1336 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1337 infodir=$ac_optarg ;;
1339 -libdir | --libdir | --libdi | --libd)
1341 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1342 libdir=$ac_optarg ;;
1344 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1345 | --libexe | --libex | --libe)
1346 ac_prev=libexecdir ;;
1347 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1348 | --libexe=* | --libex=* | --libe=*)
1349 libexecdir=$ac_optarg ;;
1351 -localedir | --localedir | --localedi | --localed | --locale)
1352 ac_prev=localedir ;;
1353 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1354 localedir=$ac_optarg ;;
1356 -localstatedir | --localstatedir | --localstatedi | --localstated \
1357 | --localstate | --localstat | --localsta | --localst | --locals)
1358 ac_prev=localstatedir ;;
1359 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1360 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1361 localstatedir=$ac_optarg ;;
1363 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1365 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1366 mandir=$ac_optarg ;;
1368 -nfp | --nfp | --nf)
1369 # Obsolete; use --without-fp.
1372 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1373 | --no-cr | --no-c | -n)
1376 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1377 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1380 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1381 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1382 | --oldin | --oldi | --old | --ol | --o)
1383 ac_prev=oldincludedir ;;
1384 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1385 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1386 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1387 oldincludedir=$ac_optarg ;;
1389 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1391 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1392 prefix=$ac_optarg ;;
1394 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1395 | --program-pre | --program-pr | --program-p)
1396 ac_prev=program_prefix ;;
1397 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1398 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1399 program_prefix=$ac_optarg ;;
1401 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1402 | --program-suf | --program-su | --program-s)
1403 ac_prev=program_suffix ;;
1404 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1405 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1406 program_suffix=$ac_optarg ;;
1408 -program-transform-name | --program-transform-name \
1409 | --program-transform-nam | --program-transform-na \
1410 | --program-transform-n | --program-transform- \
1411 | --program-transform | --program-transfor \
1412 | --program-transfo | --program-transf \
1413 | --program-trans | --program-tran \
1414 | --progr-tra | --program-tr | --program-t)
1415 ac_prev=program_transform_name ;;
1416 -program-transform-name=* | --program-transform-name=* \
1417 | --program-transform-nam=* | --program-transform-na=* \
1418 | --program-transform-n=* | --program-transform-=* \
1419 | --program-transform=* | --program-transfor=* \
1420 | --program-transfo=* | --program-transf=* \
1421 | --program-trans=* | --program-tran=* \
1422 | --progr-tra=* | --program-tr=* | --program-t=*)
1423 program_transform_name=$ac_optarg ;;
1425 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1427 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1428 pdfdir=$ac_optarg ;;
1430 -psdir | --psdir | --psdi | --psd | --ps)
1432 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1435 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1436 | -silent | --silent | --silen | --sile | --sil)
1439 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1441 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1443 sbindir=$ac_optarg ;;
1445 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1446 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1447 | --sharedst | --shareds | --shared | --share | --shar \
1449 ac_prev=sharedstatedir ;;
1450 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1451 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1452 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1454 sharedstatedir=$ac_optarg ;;
1456 -site | --site | --sit)
1458 -site=* | --site=* | --sit=*)
1461 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1463 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1464 srcdir=$ac_optarg ;;
1466 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1467 | --syscon | --sysco | --sysc | --sys | --sy)
1468 ac_prev=sysconfdir ;;
1469 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1470 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1471 sysconfdir=$ac_optarg ;;
1473 -target | --target | --targe | --targ | --tar | --ta | --t)
1474 ac_prev=target_alias ;;
1475 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1476 target_alias=$ac_optarg ;;
1478 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1481 -version | --version | --versio | --versi | --vers | -V)
1482 ac_init_version=: ;;
1485 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1486 # Reject names that are not valid shell variable names.
1487 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1488 as_fn_error "invalid package name: $ac_useropt"
1489 ac_useropt_orig=$ac_useropt
1490 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1491 case $ac_user_opts in
1495 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1496 ac_unrecognized_sep=', ';;
1498 eval with_$ac_useropt=\$ac_optarg ;;
1500 -without-* | --without-*)
1501 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1502 # Reject names that are not valid shell variable names.
1503 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1504 as_fn_error "invalid package name: $ac_useropt"
1505 ac_useropt_orig=$ac_useropt
1506 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1507 case $ac_user_opts in
1511 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1512 ac_unrecognized_sep=', ';;
1514 eval with_$ac_useropt=no ;;
1517 # Obsolete; use --with-x.
1520 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1521 | --x-incl | --x-inc | --x-in | --x-i)
1522 ac_prev=x_includes ;;
1523 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1524 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1525 x_includes=$ac_optarg ;;
1527 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1528 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1529 ac_prev=x_libraries ;;
1530 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1531 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1532 x_libraries=$ac_optarg ;;
1534 -*) as_fn_error "unrecognized option: \`$ac_option'
1535 Try \`$0 --help' for more information."
1539 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1540 # Reject names that are not valid shell variable names.
1541 case $ac_envvar in #(
1542 '' | [0-9]* | *[!_$as_cr_alnum]* )
1543 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1545 eval $ac_envvar=\$ac_optarg
1546 export $ac_envvar ;;
1549 # FIXME: should be removed in autoconf 3.0.
1550 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1551 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1552 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1553 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1559 if test -n "$ac_prev"; then
1560 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1561 as_fn_error "missing argument to $ac_option"
1564 if test -n "$ac_unrecognized_opts"; then
1565 case $enable_option_checking in
1567 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1568 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1572 # Check all directory arguments for consistency.
1573 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1574 datadir sysconfdir sharedstatedir localstatedir includedir \
1575 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1576 libdir localedir mandir
1578 eval ac_val=\$$ac_var
1579 # Remove trailing slashes.
1582 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1583 eval $ac_var=\$ac_val;;
1585 # Be sure to have absolute directory names.
1587 [\\/$]* | ?:[\\/]* ) continue;;
1588 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1590 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1593 # There might be people who depend on the old broken behavior: `$host'
1594 # used to hold the argument of --host etc.
1595 # FIXME: To remove some day.
1598 target=$target_alias
1600 # FIXME: To remove some day.
1601 if test "x$host_alias" != x; then
1602 if test "x$build_alias" = x; then
1603 cross_compiling=maybe
1604 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1605 If a cross compiler is detected then cross compile mode will be used." >&2
1606 elif test "x$build_alias" != "x$host_alias"; then
1612 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1614 test "$silent" = yes && exec 6>/dev/null
1617 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1618 ac_ls_di=`ls -di .` &&
1619 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1620 as_fn_error "working directory cannot be determined"
1621 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1622 as_fn_error "pwd does not report name of working directory"
1625 # Find the source files, if location was not specified.
1626 if test -z "$srcdir"; then
1627 ac_srcdir_defaulted=yes
1628 # Try the directory containing this script, then the parent directory.
1629 ac_confdir=`$as_dirname -- "$as_myself" ||
1630 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1631 X"$as_myself" : 'X\(//\)[^/]' \| \
1632 X"$as_myself" : 'X\(//\)$' \| \
1633 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1634 $as_echo X"$as_myself" |
1635 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1653 if test ! -r "$srcdir/$ac_unique_file"; then
1657 ac_srcdir_defaulted=no
1659 if test ! -r "$srcdir/$ac_unique_file"; then
1660 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1661 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1663 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1665 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1667 # When building in place, set srcdir=.
1668 if test "$ac_abs_confdir" = "$ac_pwd"; then
1671 # Remove unnecessary trailing slashes from srcdir.
1672 # Double slashes in file names in object file debugging info
1673 # mess up M-x gdb in Emacs.
1675 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1677 for ac_var in $ac_precious_vars; do
1678 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1679 eval ac_env_${ac_var}_value=\$${ac_var}
1680 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1681 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1685 # Report the --help message.
1687 if test "$ac_init_help" = "long"; then
1688 # Omit some internal or obsolete options to make the list less imposing.
1689 # This message is too long to be a string in the A/UX 3.1 sh.
1691 \`configure' configures this package to adapt to many kinds of systems.
1693 Usage: $0 [OPTION]... [VAR=VALUE]...
1695 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1696 VAR=VALUE. See below for descriptions of some of the useful variables.
1698 Defaults for the options are specified in brackets.
1701 -h, --help display this help and exit
1702 --help=short display options specific to this package
1703 --help=recursive display the short help of all the included packages
1704 -V, --version display version information and exit
1705 -q, --quiet, --silent do not print \`checking...' messages
1706 --cache-file=FILE cache test results in FILE [disabled]
1707 -C, --config-cache alias for \`--cache-file=config.cache'
1708 -n, --no-create do not create output files
1709 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1711 Installation directories:
1712 --prefix=PREFIX install architecture-independent files in PREFIX
1713 [$ac_default_prefix]
1714 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1717 By default, \`make install' will install all the files in
1718 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1719 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1720 for instance \`--prefix=\$HOME'.
1722 For better control, use the options below.
1724 Fine tuning of the installation directories:
1725 --bindir=DIR user executables [EPREFIX/bin]
1726 --sbindir=DIR system admin executables [EPREFIX/sbin]
1727 --libexecdir=DIR program executables [EPREFIX/libexec]
1728 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1729 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1730 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1731 --libdir=DIR object code libraries [EPREFIX/lib]
1732 --includedir=DIR C header files [PREFIX/include]
1733 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1734 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1735 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1736 --infodir=DIR info documentation [DATAROOTDIR/info]
1737 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1738 --mandir=DIR man documentation [DATAROOTDIR/man]
1739 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1740 --htmldir=DIR html documentation [DOCDIR]
1741 --dvidir=DIR dvi documentation [DOCDIR]
1742 --pdfdir=DIR pdf documentation [DOCDIR]
1743 --psdir=DIR ps documentation [DOCDIR]
1749 --x-includes=DIR X include files are in DIR
1750 --x-libraries=DIR X library files are in DIR
1753 --build=BUILD configure for building on BUILD [guessed]
1754 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1758 if test -n "$ac_init_help"; then
1763 --disable-option-checking ignore unrecognized --enable/--with options
1764 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1765 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1766 --enable-libtool enable building using GNU libtool [default=yes]
1767 --enable-shared[=PKGS] build shared libraries [default=yes]
1768 --enable-static[=PKGS] build static libraries [default=no]
1769 --enable-fast-install[=PKGS]
1770 optimize for fast installation [default=yes]
1771 --disable-libtool-lock avoid locking (might break parallel builds)
1772 --enable-includes enable installing of include files [default=no]
1773 --disable-nls do not use Native Language Support
1774 --disable-rpath do not hardcode runtime library paths
1775 --enable-gnome enable build of bgnome-console GUI [default=no]
1776 --enable-bat enable build of bat Qt4 GUI [default=no]
1777 --enable-bwx-console enable build of wxWidgets console [default=no]
1778 --enable-tray-monitor enable build of Gnome tray monitor (compatible with
1780 --enable-smartalloc enable smartalloc debugging support [default=no]
1781 --enable-lockmgr enable lock manager support [default=no]
1782 --enable-static-tools enable static tape tools [default=no]
1783 --enable-static-fd enable static File daemon [default=no]
1784 --enable-static-sd enable static Storage daemon [default=no]
1785 --enable-static-dir enable static Director [default=no]
1786 --enable-static-cons enable static Console [default=no]
1787 --enable-client-only build client (File daemon) only [default=no]
1788 --enable-build-dird enable building of dird (Director) [default=yes]
1789 --enable-build-stored enable building of stored (Storage daemon)
1791 --disable-conio disable conio support [default=no]
1792 --enable-ipv6 enable ipv6 support [default=yes]
1793 --disable-readline disable readline support [default=yes]
1794 --enable-batch-insert enable the DB batch insert code [default=yes]
1795 --disable-largefile omit support for large files
1796 --disable-afs disable afs support [default=auto]
1797 --disable-acl disable acl support [default=auto]
1798 --disable-xattr disable xattr support [default=auto]
1801 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1802 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1803 --with-pic try to use only PIC/non-PIC objects [default=use
1805 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1806 --with-gnu-ld assume the C compiler uses GNU ld default=no
1807 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1808 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1809 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1810 --without-libintl-prefix don't search for libintl in includedir and libdir
1811 --with-included-gettext use the GNU gettext library included here
1812 --with-readline[=DIR] specify readline library directory
1813 --with-python[=DIR] Include Python support. DIR is the Python base
1814 install directory, default is to search through a
1815 number of common places for the Python files.
1816 --with-tcp-wrappers[=DIR]
1817 enable tcpwrappers support
1818 --with-openssl[=DIR] Include OpenSSL support. DIR is the OpenSSL base
1819 --with-working-dir=PATH specify path of Bacula working directory
1820 --with-archivedir=PATH specify path of SD archive directory
1821 --with-basename=RESNAME specify base resource name for daemons
1822 --with-hostname=RESNAME specify host name for daemons
1823 --with-scriptdir=PATH specify path of Bacula scripts directory
1824 --with-bsrdir=PATH specify path of Bacula bsrs directory
1825 --with-logdir=PATH specify path of Bacula logs directory
1826 --with-plugindir=PATH specify path of Bacula plugins directory
1827 --with-dump-email=EMAIL dump email address
1828 --with-job-email=EMAIL job output email address
1829 --with-smtp-host=HOST SMTP mail host address
1830 --with-pid-dir=PATH specify location of Bacula pid files
1831 --with-subsys-dir=PATH specify location of Bacula subsys file
1832 --with-baseport=PORT specify base port address for daemons
1833 --with-dir-password=PASSWORD
1834 specify Director's password
1835 --with-fd-password=PASSWORD
1836 specify Client's password
1837 --with-sd-password=PASSWORD
1838 specify Storage daemon's password
1839 --with-mon-dir-password=PASSWORD
1840 specify Director's password used by the monitor
1841 --with-mon-fd-password=PASSWORD
1842 specify Client's password used by the monitor
1843 --with-mon-sd-password=PASSWORD
1844 specify Storage daemon's password used by the
1846 --with-db-name=DBNAME specify database name [default=bacula]
1847 --with-db-user=UNAME specify database user [default=bacula]
1848 --with-db-password=PWD specify database password [default=*none*]
1849 --with-db-port=DBPORT specify a database port [default=null]
1850 --with-dir-user=USER specify user for Director daemon
1851 --with-dir-group=GROUP specify group for Director daemon
1852 --with-sd-user=USER specify user for Storage daemon
1853 --with-sd-group=GROUP specify group for Storage daemon
1854 --with-fd-user=USER specify user for File daemon
1855 --with-fd-group=GROUP specify group for File daemon
1856 --with-sbin-perm=MODE specify permissions for sbin binaries [default=0750]
1857 --with-postgresql[=DIR] Include PostgreSQL support. DIR is the PostgreSQL
1858 base install directory, [default=/usr/local/pgsql]
1859 --with-mysql[=DIR] Include MySQL support. DIR is the MySQL base install
1860 directory, default is to search through a number of
1861 common places for the MySQL files.
1862 --with-embedded-mysql[=DIR]
1863 Include MySQL support. DIR is the MySQL base install
1864 directory, default is to search through a number of
1865 common places for the MySQL files.
1866 --with-sqlite3[=DIR] Include SQLite3 support. DIR is the SQLite3 base
1867 install directory, default is to search through a
1868 number of common places for the SQLite3 files.
1869 --with-ingres[=DIR] Include Ingres support. DIR is the Ingres base
1870 install directory, default is to search through a
1871 number of common places for the Ingres files.
1872 --with-dbi[=DIR] Include DBI support. DIR is the DBD base install
1873 directory, default is to search through a number of
1874 common places for the DBI files.
1875 --with-dbi-driver[=DRIVER]
1876 Suport for DBI driver. DRIVER is the one DBI driver
1877 like Mysql, Postgresql, others. Default is to not
1878 configure any driver.
1879 --with-x use the X Window System
1880 --with-afsdir[=DIR] Directory holding AFS includes/libs
1882 Some influential environment variables:
1883 CC C compiler command
1884 CFLAGS C compiler flags
1885 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1886 nonstandard directory <lib dir>
1887 LIBS libraries to pass to the linker, e.g. -l<library>
1888 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1889 you have headers in a nonstandard directory <include dir>
1890 CXX C++ compiler command
1891 CXXFLAGS C++ compiler flags
1893 WXCONFIG wx-config command. On some systems, you must set it to
1894 wx-config-2.6 to use wxWidgets 2.6.
1895 WXFLAGS Parameters to pass to wx-config (e.g. --unicode=no).
1896 CXXCPP C++ preprocessor
1897 XMKMF Path to xmkmf, Makefile generator for X Window System
1899 Use these variables to override the choices made by `configure' or to help
1900 it to find libraries and programs with nonstandard names/locations.
1902 Report bugs to the package provider.
1907 if test "$ac_init_help" = "recursive"; then
1908 # If there are subdirs, report their specific --help.
1909 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1910 test -d "$ac_dir" ||
1911 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1916 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1918 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1919 # A ".." for each directory in $ac_dir_suffix.
1920 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1921 case $ac_top_builddir_sub in
1922 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1923 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1926 ac_abs_top_builddir=$ac_pwd
1927 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1928 # for backward compatibility:
1929 ac_top_builddir=$ac_top_build_prefix
1932 .) # We are building in place.
1934 ac_top_srcdir=$ac_top_builddir_sub
1935 ac_abs_top_srcdir=$ac_pwd ;;
1936 [\\/]* | ?:[\\/]* ) # Absolute name.
1937 ac_srcdir=$srcdir$ac_dir_suffix;
1938 ac_top_srcdir=$srcdir
1939 ac_abs_top_srcdir=$srcdir ;;
1941 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1942 ac_top_srcdir=$ac_top_build_prefix$srcdir
1943 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1945 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1947 cd "$ac_dir" || { ac_status=$?; continue; }
1948 # Check for guested configure.
1949 if test -f "$ac_srcdir/configure.gnu"; then
1951 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1952 elif test -f "$ac_srcdir/configure"; then
1954 $SHELL "$ac_srcdir/configure" --help=recursive
1956 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1958 cd "$ac_pwd" || { ac_status=$?; break; }
1962 test -n "$ac_init_help" && exit $ac_status
1963 if $ac_init_version; then
1966 generated by GNU Autoconf 2.65
1968 Copyright (C) 2009 Free Software Foundation, Inc.
1969 This configure script is free software; the Free Software Foundation
1970 gives unlimited permission to copy, distribute and modify it.
1975 ## ------------------------ ##
1976 ## Autoconf initialization. ##
1977 ## ------------------------ ##
1979 # ac_fn_c_try_compile LINENO
1980 # --------------------------
1981 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1982 ac_fn_c_try_compile ()
1984 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1985 rm -f conftest.$ac_objext
1986 if { { ac_try="$ac_compile"
1988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1989 *) ac_try_echo=$ac_try;;
1991 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1992 $as_echo "$ac_try_echo"; } >&5
1993 (eval "$ac_compile") 2>conftest.err
1995 if test -s conftest.err; then
1996 grep -v '^ *+' conftest.err >conftest.er1
1997 cat conftest.er1 >&5
1998 mv -f conftest.er1 conftest.err
2000 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2001 test $ac_status = 0; } && {
2002 test -z "$ac_c_werror_flag" ||
2003 test ! -s conftest.err
2004 } && test -s conftest.$ac_objext; then :
2007 $as_echo "$as_me: failed program was:" >&5
2008 sed 's/^/| /' conftest.$ac_ext >&5
2012 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2013 as_fn_set_status $ac_retval
2015 } # ac_fn_c_try_compile
2017 # ac_fn_cxx_try_compile LINENO
2018 # ----------------------------
2019 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2020 ac_fn_cxx_try_compile ()
2022 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2023 rm -f conftest.$ac_objext
2024 if { { ac_try="$ac_compile"
2026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2027 *) ac_try_echo=$ac_try;;
2029 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2030 $as_echo "$ac_try_echo"; } >&5
2031 (eval "$ac_compile") 2>conftest.err
2033 if test -s conftest.err; then
2034 grep -v '^ *+' conftest.err >conftest.er1
2035 cat conftest.er1 >&5
2036 mv -f conftest.er1 conftest.err
2038 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2039 test $ac_status = 0; } && {
2040 test -z "$ac_cxx_werror_flag" ||
2041 test ! -s conftest.err
2042 } && test -s conftest.$ac_objext; then :
2045 $as_echo "$as_me: failed program was:" >&5
2046 sed 's/^/| /' conftest.$ac_ext >&5
2050 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2051 as_fn_set_status $ac_retval
2053 } # ac_fn_cxx_try_compile
2055 # ac_fn_c_try_cpp LINENO
2056 # ----------------------
2057 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2060 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2061 if { { ac_try="$ac_cpp conftest.$ac_ext"
2063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2064 *) ac_try_echo=$ac_try;;
2066 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2067 $as_echo "$ac_try_echo"; } >&5
2068 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2070 if test -s conftest.err; then
2071 grep -v '^ *+' conftest.err >conftest.er1
2072 cat conftest.er1 >&5
2073 mv -f conftest.er1 conftest.err
2075 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2076 test $ac_status = 0; } >/dev/null && {
2077 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2078 test ! -s conftest.err
2082 $as_echo "$as_me: failed program was:" >&5
2083 sed 's/^/| /' conftest.$ac_ext >&5
2087 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2088 as_fn_set_status $ac_retval
2092 # ac_fn_c_try_link LINENO
2093 # -----------------------
2094 # Try to link conftest.$ac_ext, and return whether this succeeded.
2097 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2098 rm -f conftest.$ac_objext conftest$ac_exeext
2099 if { { ac_try="$ac_link"
2101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2102 *) ac_try_echo=$ac_try;;
2104 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2105 $as_echo "$ac_try_echo"; } >&5
2106 (eval "$ac_link") 2>conftest.err
2108 if test -s conftest.err; then
2109 grep -v '^ *+' conftest.err >conftest.er1
2110 cat conftest.er1 >&5
2111 mv -f conftest.er1 conftest.err
2113 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2114 test $ac_status = 0; } && {
2115 test -z "$ac_c_werror_flag" ||
2116 test ! -s conftest.err
2117 } && test -s conftest$ac_exeext && {
2118 test "$cross_compiling" = yes ||
2119 $as_test_x conftest$ac_exeext
2123 $as_echo "$as_me: failed program was:" >&5
2124 sed 's/^/| /' conftest.$ac_ext >&5
2128 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2129 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2130 # interfere with the next link command; also delete a directory that is
2131 # left behind by Apple's compiler. We do this before executing the actions.
2132 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2133 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2134 as_fn_set_status $ac_retval
2136 } # ac_fn_c_try_link
2138 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2139 # -------------------------------------------------------
2140 # Tests whether HEADER exists and can be compiled using the include files in
2141 # INCLUDES, setting the cache variable VAR accordingly.
2142 ac_fn_c_check_header_compile ()
2144 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2146 $as_echo_n "checking for $2... " >&6; }
2147 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2148 $as_echo_n "(cached) " >&6
2150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2151 /* end confdefs.h. */
2155 if ac_fn_c_try_compile "$LINENO"; then :
2160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2164 $as_echo "$ac_res" >&6; }
2165 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2167 } # ac_fn_c_check_header_compile
2169 # ac_fn_c_try_run LINENO
2170 # ----------------------
2171 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2172 # that executables *can* be run.
2175 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2176 if { { ac_try="$ac_link"
2178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2179 *) ac_try_echo=$ac_try;;
2181 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2182 $as_echo "$ac_try_echo"; } >&5
2183 (eval "$ac_link") 2>&5
2185 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2186 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2187 { { case "(($ac_try" in
2188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2189 *) ac_try_echo=$ac_try;;
2191 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2192 $as_echo "$ac_try_echo"; } >&5
2193 (eval "$ac_try") 2>&5
2195 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2196 test $ac_status = 0; }; }; then :
2199 $as_echo "$as_me: program exited with status $ac_status" >&5
2200 $as_echo "$as_me: failed program was:" >&5
2201 sed 's/^/| /' conftest.$ac_ext >&5
2203 ac_retval=$ac_status
2205 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2206 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2207 as_fn_set_status $ac_retval
2211 # ac_fn_c_check_func LINENO FUNC VAR
2212 # ----------------------------------
2213 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2214 ac_fn_c_check_func ()
2216 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2218 $as_echo_n "checking for $2... " >&6; }
2219 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2220 $as_echo_n "(cached) " >&6
2222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2223 /* end confdefs.h. */
2224 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2225 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2226 #define $2 innocuous_$2
2228 /* System header to define __stub macros and hopefully few prototypes,
2229 which can conflict with char $2 (); below.
2230 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2231 <limits.h> exists even on freestanding compilers. */
2234 # include <limits.h>
2236 # include <assert.h>
2241 /* Override any GCC internal prototype to avoid an error.
2242 Use char because int might match the return type of a GCC
2243 builtin and then its argument prototype would still apply. */
2248 /* The GNU C library defines this for functions which it implements
2249 to always fail with ENOSYS. Some functions are actually named
2250 something starting with __ and the normal name is an alias. */
2251 #if defined __stub_$2 || defined __stub___$2
2263 if ac_fn_c_try_link "$LINENO"; then :
2268 rm -f core conftest.err conftest.$ac_objext \
2269 conftest$ac_exeext conftest.$ac_ext
2272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2273 $as_echo "$ac_res" >&6; }
2274 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2276 } # ac_fn_c_check_func
2278 # ac_fn_cxx_try_cpp LINENO
2279 # ------------------------
2280 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2281 ac_fn_cxx_try_cpp ()
2283 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2284 if { { ac_try="$ac_cpp conftest.$ac_ext"
2286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2287 *) ac_try_echo=$ac_try;;
2289 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2290 $as_echo "$ac_try_echo"; } >&5
2291 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2293 if test -s conftest.err; then
2294 grep -v '^ *+' conftest.err >conftest.er1
2295 cat conftest.er1 >&5
2296 mv -f conftest.er1 conftest.err
2298 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2299 test $ac_status = 0; } >/dev/null && {
2300 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2301 test ! -s conftest.err
2305 $as_echo "$as_me: failed program was:" >&5
2306 sed 's/^/| /' conftest.$ac_ext >&5
2310 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2311 as_fn_set_status $ac_retval
2313 } # ac_fn_cxx_try_cpp
2315 # ac_fn_cxx_try_link LINENO
2316 # -------------------------
2317 # Try to link conftest.$ac_ext, and return whether this succeeded.
2318 ac_fn_cxx_try_link ()
2320 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2321 rm -f conftest.$ac_objext conftest$ac_exeext
2322 if { { ac_try="$ac_link"
2324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2325 *) ac_try_echo=$ac_try;;
2327 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2328 $as_echo "$ac_try_echo"; } >&5
2329 (eval "$ac_link") 2>conftest.err
2331 if test -s conftest.err; then
2332 grep -v '^ *+' conftest.err >conftest.er1
2333 cat conftest.er1 >&5
2334 mv -f conftest.er1 conftest.err
2336 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2337 test $ac_status = 0; } && {
2338 test -z "$ac_cxx_werror_flag" ||
2339 test ! -s conftest.err
2340 } && test -s conftest$ac_exeext && {
2341 test "$cross_compiling" = yes ||
2342 $as_test_x conftest$ac_exeext
2346 $as_echo "$as_me: failed program was:" >&5
2347 sed 's/^/| /' conftest.$ac_ext >&5
2351 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2352 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2353 # interfere with the next link command; also delete a directory that is
2354 # left behind by Apple's compiler. We do this before executing the actions.
2355 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2356 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2357 as_fn_set_status $ac_retval
2359 } # ac_fn_cxx_try_link
2361 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2362 # -------------------------------------------
2363 # Tests whether TYPE exists after having included INCLUDES, setting cache
2364 # variable VAR accordingly.
2365 ac_fn_c_check_type ()
2367 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2369 $as_echo_n "checking for $2... " >&6; }
2370 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2371 $as_echo_n "(cached) " >&6
2374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2375 /* end confdefs.h. */
2386 if ac_fn_c_try_compile "$LINENO"; then :
2387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2388 /* end confdefs.h. */
2399 if ac_fn_c_try_compile "$LINENO"; then :
2404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2410 $as_echo "$ac_res" >&6; }
2411 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2413 } # ac_fn_c_check_type
2415 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2416 # -------------------------------------------------------
2417 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2418 # the include files in INCLUDES and setting the cache variable VAR
2420 ac_fn_c_check_header_mongrel ()
2422 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2423 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2425 $as_echo_n "checking for $2... " >&6; }
2426 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2427 $as_echo_n "(cached) " >&6
2430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2431 $as_echo "$ac_res" >&6; }
2433 # Is the header compilable?
2434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2435 $as_echo_n "checking $2 usability... " >&6; }
2436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2437 /* end confdefs.h. */
2441 if ac_fn_c_try_compile "$LINENO"; then :
2442 ac_header_compiler=yes
2444 ac_header_compiler=no
2446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2448 $as_echo "$ac_header_compiler" >&6; }
2450 # Is the header present?
2451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2452 $as_echo_n "checking $2 presence... " >&6; }
2453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2454 /* end confdefs.h. */
2457 if ac_fn_c_try_cpp "$LINENO"; then :
2458 ac_header_preproc=yes
2460 ac_header_preproc=no
2462 rm -f conftest.err conftest.$ac_ext
2463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2464 $as_echo "$ac_header_preproc" >&6; }
2466 # So? What about this header?
2467 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2469 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2470 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2471 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2472 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2475 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2476 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2477 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2478 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2479 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2480 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2481 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2482 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2483 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2484 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2488 $as_echo_n "checking for $2... " >&6; }
2489 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2490 $as_echo_n "(cached) " >&6
2492 eval "$3=\$ac_header_compiler"
2495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2496 $as_echo "$ac_res" >&6; }
2498 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2500 } # ac_fn_c_check_header_mongrel
2502 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2503 # --------------------------------------------
2504 # Tries to find the compile-time value of EXPR in a program that includes
2505 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2507 ac_fn_c_compute_int ()
2509 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2510 if test "$cross_compiling" = yes; then
2511 # Depending upon the size, compute the lo and hi bounds.
2512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2513 /* end confdefs.h. */
2518 static int test_array [1 - 2 * !(($2) >= 0)];
2525 if ac_fn_c_try_compile "$LINENO"; then :
2528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2529 /* end confdefs.h. */
2534 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2541 if ac_fn_c_try_compile "$LINENO"; then :
2542 ac_hi=$ac_mid; break
2544 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2545 if test $ac_lo -le $ac_mid; then
2549 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2555 /* end confdefs.h. */
2560 static int test_array [1 - 2 * !(($2) < 0)];
2567 if ac_fn_c_try_compile "$LINENO"; then :
2570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2571 /* end confdefs.h. */
2576 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2583 if ac_fn_c_try_compile "$LINENO"; then :
2584 ac_lo=$ac_mid; break
2586 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2587 if test $ac_mid -le $ac_hi; then
2591 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2601 # Binary search between lo and hi bounds.
2602 while test "x$ac_lo" != "x$ac_hi"; do
2603 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2605 /* end confdefs.h. */
2610 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2617 if ac_fn_c_try_compile "$LINENO"; then :
2620 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2625 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2630 /* end confdefs.h. */
2632 static long int longval () { return $2; }
2633 static unsigned long int ulongval () { return $2; }
2640 FILE *f = fopen ("conftest.val", "w");
2645 long int i = longval ();
2648 fprintf (f, "%ld", i);
2652 unsigned long int i = ulongval ();
2655 fprintf (f, "%lu", i);
2657 /* Do not output a trailing newline, as this causes \r\n confusion
2658 on some platforms. */
2659 return ferror (f) || fclose (f) != 0;
2665 if ac_fn_c_try_run "$LINENO"; then :
2666 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2670 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2671 conftest.$ac_objext conftest.beam conftest.$ac_ext
2675 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2676 as_fn_set_status $ac_retval
2678 } # ac_fn_c_compute_int
2680 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2681 # ----------------------------------------------------
2682 # Tries to find if the field MEMBER exists in type AGGR, after including
2683 # INCLUDES, setting cache variable VAR accordingly.
2684 ac_fn_c_check_member ()
2686 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2688 $as_echo_n "checking for $2.$3... " >&6; }
2689 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2690 $as_echo_n "(cached) " >&6
2692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2693 /* end confdefs.h. */
2705 if ac_fn_c_try_compile "$LINENO"; then :
2708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2709 /* end confdefs.h. */
2715 if (sizeof ac_aggr.$3)
2721 if ac_fn_c_try_compile "$LINENO"; then :
2726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2732 $as_echo "$ac_res" >&6; }
2733 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2735 } # ac_fn_c_check_member
2737 # ac_fn_c_check_decl LINENO SYMBOL VAR
2738 # ------------------------------------
2739 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2740 ac_fn_c_check_decl ()
2742 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2744 $as_echo_n "checking whether $2 is declared... " >&6; }
2745 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2746 $as_echo_n "(cached) " >&6
2748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2749 /* end confdefs.h. */
2762 if ac_fn_c_try_compile "$LINENO"; then :
2767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2771 $as_echo "$ac_res" >&6; }
2772 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2774 } # ac_fn_c_check_decl
2776 # ac_fn_cxx_try_run LINENO
2777 # ------------------------
2778 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2779 # that executables *can* be run.
2780 ac_fn_cxx_try_run ()
2782 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2783 if { { ac_try="$ac_link"
2785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2786 *) ac_try_echo=$ac_try;;
2788 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2789 $as_echo "$ac_try_echo"; } >&5
2790 (eval "$ac_link") 2>&5
2792 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2793 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2794 { { case "(($ac_try" in
2795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2796 *) ac_try_echo=$ac_try;;
2798 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2799 $as_echo "$ac_try_echo"; } >&5
2800 (eval "$ac_try") 2>&5
2802 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2803 test $ac_status = 0; }; }; then :
2806 $as_echo "$as_me: program exited with status $ac_status" >&5
2807 $as_echo "$as_me: failed program was:" >&5
2808 sed 's/^/| /' conftest.$ac_ext >&5
2810 ac_retval=$ac_status
2812 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2813 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2814 as_fn_set_status $ac_retval
2816 } # ac_fn_cxx_try_run
2817 cat >config.log <<_ACEOF
2818 This file contains any messages produced by compilers while
2819 running configure, to aid debugging if configure makes a mistake.
2821 It was created by $as_me, which was
2822 generated by GNU Autoconf 2.65. Invocation command line was
2834 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2835 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2836 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2837 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2838 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2840 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2841 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2843 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2844 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2845 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2846 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2847 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2848 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2849 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2857 test -z "$as_dir" && as_dir=.
2858 $as_echo "PATH: $as_dir"
2874 # Keep a trace of the command line.
2875 # Strip out --no-create and --no-recursion so they do not pile up.
2876 # Strip out --silent because we don't want to record it for future runs.
2877 # Also quote any args containing shell meta-characters.
2878 # Make two passes to allow for proper duplicate-argument suppression.
2882 ac_must_keep_next=false
2888 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2889 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2890 | -silent | --silent | --silen | --sile | --sil)
2893 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2896 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2898 as_fn_append ac_configure_args1 " '$ac_arg'"
2899 if test $ac_must_keep_next = true; then
2900 ac_must_keep_next=false # Got value, back to normal.
2903 *=* | --config-cache | -C | -disable-* | --disable-* \
2904 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2905 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2906 | -with-* | --with-* | -without-* | --without-* | --x)
2907 case "$ac_configure_args0 " in
2908 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2911 -* ) ac_must_keep_next=true ;;
2914 as_fn_append ac_configure_args " '$ac_arg'"
2919 { ac_configure_args0=; unset ac_configure_args0;}
2920 { ac_configure_args1=; unset ac_configure_args1;}
2922 # When interrupted or exit'd, cleanup temporary files, and complete
2923 # config.log. We remove comments because anyway the quotes in there
2924 # would cause problems or look ugly.
2925 # WARNING: Use '\'' to represent an apostrophe within the trap.
2926 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2927 trap 'exit_status=$?
2928 # Save into config.log some information that might help in debugging.
2933 ## ---------------- ##
2934 ## Cache variables. ##
2935 ## ---------------- ##
2938 # The following way of writing the cache mishandles newlines in values,
2940 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2941 eval ac_val=\$$ac_var
2945 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2946 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2949 _ | IFS | as_nl) ;; #(
2950 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2951 *) { eval $ac_var=; unset $ac_var;} ;;
2956 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2957 *${as_nl}ac_space=\ *)
2959 "s/'\''/'\''\\\\'\'''\''/g;
2960 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2963 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2971 ## ----------------- ##
2972 ## Output variables. ##
2973 ## ----------------- ##
2976 for ac_var in $ac_subst_vars
2978 eval ac_val=\$$ac_var
2980 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2982 $as_echo "$ac_var='\''$ac_val'\''"
2986 if test -n "$ac_subst_files"; then
2988 ## ------------------- ##
2989 ## File substitutions. ##
2990 ## ------------------- ##
2993 for ac_var in $ac_subst_files
2995 eval ac_val=\$$ac_var
2997 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2999 $as_echo "$ac_var='\''$ac_val'\''"
3004 if test -s confdefs.h; then
3014 test "$ac_signal" != 0 &&
3015 $as_echo "$as_me: caught signal $ac_signal"
3016 $as_echo "$as_me: exit $exit_status"
3018 rm -f core *.core core.conftest.* &&
3019 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3022 for ac_signal in 1 2 13 15; do
3023 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3027 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3028 rm -f -r conftest* confdefs.h
3030 $as_echo "/* confdefs.h */" > confdefs.h
3032 # Predefined preprocessor variables.
3034 cat >>confdefs.h <<_ACEOF
3035 #define PACKAGE_NAME "$PACKAGE_NAME"
3038 cat >>confdefs.h <<_ACEOF
3039 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3042 cat >>confdefs.h <<_ACEOF
3043 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3046 cat >>confdefs.h <<_ACEOF
3047 #define PACKAGE_STRING "$PACKAGE_STRING"
3050 cat >>confdefs.h <<_ACEOF
3051 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3054 cat >>confdefs.h <<_ACEOF
3055 #define PACKAGE_URL "$PACKAGE_URL"
3059 # Let the site file select an alternate cache file if it wants to.
3060 # Prefer an explicitly selected file to automatically selected ones.
3063 if test -n "$CONFIG_SITE"; then
3064 ac_site_file1=$CONFIG_SITE
3065 elif test "x$prefix" != xNONE; then
3066 ac_site_file1=$prefix/share/config.site
3067 ac_site_file2=$prefix/etc/config.site
3069 ac_site_file1=$ac_default_prefix/share/config.site
3070 ac_site_file2=$ac_default_prefix/etc/config.site
3072 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3074 test "x$ac_site_file" = xNONE && continue
3075 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3076 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3077 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3078 sed 's/^/| /' "$ac_site_file" >&5
3083 if test -r "$cache_file"; then
3084 # Some versions of bash will fail to source /dev/null (special files
3085 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3086 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3087 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3088 $as_echo "$as_me: loading cache $cache_file" >&6;}
3090 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3091 *) . "./$cache_file";;
3095 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3096 $as_echo "$as_me: creating cache $cache_file" >&6;}
3100 as_fn_append ac_header_list " stdlib.h"
3101 as_fn_append ac_header_list " unistd.h"
3102 as_fn_append ac_header_list " sys/param.h"
3103 # Check that the precious variables saved in the cache have kept the same
3105 ac_cache_corrupted=false
3106 for ac_var in $ac_precious_vars; do
3107 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3108 eval ac_new_set=\$ac_env_${ac_var}_set
3109 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3110 eval ac_new_val=\$ac_env_${ac_var}_value
3111 case $ac_old_set,$ac_new_set in
3113 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3114 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3115 ac_cache_corrupted=: ;;
3117 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3118 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3119 ac_cache_corrupted=: ;;
3122 if test "x$ac_old_val" != "x$ac_new_val"; then
3123 # differences in whitespace do not lead to failure.
3124 ac_old_val_w=`echo x $ac_old_val`
3125 ac_new_val_w=`echo x $ac_new_val`
3126 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3127 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3128 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3129 ac_cache_corrupted=:
3131 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3132 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3133 eval $ac_var=\$ac_old_val
3135 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3136 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3137 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3138 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3141 # Pass precious variables to config.status.
3142 if test "$ac_new_set" = set; then
3144 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3145 *) ac_arg=$ac_var=$ac_new_val ;;
3147 case " $ac_configure_args " in
3148 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3149 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3153 if $ac_cache_corrupted; then
3154 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3155 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3156 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3157 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3158 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3160 ## -------------------- ##
3161 ## Main body of script. ##
3162 ## -------------------- ##
3165 ac_cpp='$CPP $CPPFLAGS'
3166 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3167 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3168 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3178 for ac_dir in ${BUILD_DIR}/autoconf "$srcdir"/${BUILD_DIR}/autoconf; do
3179 for ac_t in install-sh install.sh shtool; do
3180 if test -f "$ac_dir/$ac_t"; then
3182 ac_install_sh="$ac_aux_dir/$ac_t -c"
3187 if test -z "$ac_aux_dir"; then
3188 as_fn_error "cannot find install-sh, install.sh, or shtool in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" "$LINENO" 5
3191 # These three variables are undocumented and unsupported,
3192 # and are intended to be withdrawn in a future Autoconf release.
3193 # They can cause serious problems if a builder's source tree is in a directory
3194 # whose full name contains unusual characters.
3195 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3196 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3197 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3200 ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
3203 WIN32BUILDDIR=${BUILD_DIR}/src/win32
3204 WIN32MAINDIR=${BUILD_DIR}
3205 WIN32TOPDIR=${TOP_DIR}
3212 # Extract the first word of "$ac_prog", so it can be a program name with args.
3213 set dummy $ac_prog; ac_word=$2
3214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3215 $as_echo_n "checking for $ac_word... " >&6; }
3216 if test "${ac_cv_path_TRUEPRG+set}" = set; then :
3217 $as_echo_n "(cached) " >&6
3221 ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
3224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3228 test -z "$as_dir" && as_dir=.
3229 for ac_exec_ext in '' $ac_executable_extensions; do
3230 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3231 ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
3232 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3242 TRUEPRG=$ac_cv_path_TRUEPRG
3243 if test -n "$TRUEPRG"; then
3244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TRUEPRG" >&5
3245 $as_echo "$TRUEPRG" >&6; }
3247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3248 $as_echo "no" >&6; }
3252 test -n "$TRUEPRG" && break
3254 test -n "$TRUEPRG" || TRUEPRG=":"
3256 for ac_prog in false
3258 # Extract the first word of "$ac_prog", so it can be a program name with args.
3259 set dummy $ac_prog; ac_word=$2
3260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3261 $as_echo_n "checking for $ac_word... " >&6; }
3262 if test "${ac_cv_path_FALSEPRG+set}" = set; then :
3263 $as_echo_n "(cached) " >&6
3267 ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
3270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3274 test -z "$as_dir" && as_dir=.
3275 for ac_exec_ext in '' $ac_executable_extensions; do
3276 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3277 ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
3278 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3288 FALSEPRG=$ac_cv_path_FALSEPRG
3289 if test -n "$FALSEPRG"; then
3290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FALSEPRG" >&5
3291 $as_echo "$FALSEPRG" >&6; }
3293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3294 $as_echo "no" >&6; }
3298 test -n "$FALSEPRG" && break
3300 test -n "$FALSEPRG" || FALSEPRG=":"
3305 if test "x$BACULA" != x; then
3306 post_host=`echo -${BACULA} | tr 'A-Z ' 'a-z-'`
3308 BACULA=${BACULA:-Bacula}
3309 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3310 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3311 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3312 BDB_VERSION=`sed -n -e 's/^.*BDB_VERSION \(.*\)$/\1/p' ${srcdir}/src/cats/cats.h`
3314 LIBBAC_LT_RELEASE=`sed -n -e 's/^#.*LIBBAC_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3315 LIBBACCFG_LT_RELEASE=`sed -n -e 's/^#.*LIBBACCFG_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3316 LIBBACPY_LT_RELEASE=`sed -n -e 's/^#.*LIBBACPY_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3318 LIBBAC_LT_RELEASE=${LIBBAC_LT_RELEASE:-$VERSION}
3319 LIBBACCFG_LT_RELEASE=${LIBBACCFG_LT_RELEASE:-$VERSION}
3320 LIBBACPY_LT_RELEASE=${LIBBACPY_LT_RELEASE:-$VERSION}
3323 LIBBACSQL_LT_RELEASE=`sed -n -e 's/^#.*LIBBACSQL_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3324 LIBBACCATS_LT_RELEASE=`sed -n -e 's/^#.*LIBBACCATS_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3326 LIBBACSQL_LT_RELEASE=${LIBBACSQL_LT_RELEASE:-$VERSION}
3327 LIBBACCATS_LT_RELEASE=${LIBBACCATS_LT_RELEASE:-$VERSION}
3330 LIBBACFIND_LT_RELEASE=`sed -n -e 's/^#.*LIBBACFIND_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3332 LIBBACFIND_LT_RELEASE=${LIBBACFIND_LT_RELEASE:-$VERSION}
3335 echo "configuring for ${BACULA} $VERSION ($DATE)"
3340 ac_cpp='$CPP $CPPFLAGS'
3341 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3342 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3343 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3344 if test -n "$ac_tool_prefix"; then
3345 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3346 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3348 $as_echo_n "checking for $ac_word... " >&6; }
3349 if test "${ac_cv_prog_CC+set}" = set; then :
3350 $as_echo_n "(cached) " >&6
3352 if test -n "$CC"; then
3353 ac_cv_prog_CC="$CC" # Let the user override the test.
3355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3359 test -z "$as_dir" && as_dir=.
3360 for ac_exec_ext in '' $ac_executable_extensions; do
3361 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3362 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3363 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3373 if test -n "$CC"; then
3374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3375 $as_echo "$CC" >&6; }
3377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3378 $as_echo "no" >&6; }
3383 if test -z "$ac_cv_prog_CC"; then
3385 # Extract the first word of "gcc", so it can be a program name with args.
3386 set dummy gcc; ac_word=$2
3387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3388 $as_echo_n "checking for $ac_word... " >&6; }
3389 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3390 $as_echo_n "(cached) " >&6
3392 if test -n "$ac_ct_CC"; then
3393 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3399 test -z "$as_dir" && as_dir=.
3400 for ac_exec_ext in '' $ac_executable_extensions; do
3401 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3402 ac_cv_prog_ac_ct_CC="gcc"
3403 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3412 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3413 if test -n "$ac_ct_CC"; then
3414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3415 $as_echo "$ac_ct_CC" >&6; }
3417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3418 $as_echo "no" >&6; }
3421 if test "x$ac_ct_CC" = x; then
3424 case $cross_compiling:$ac_tool_warned in
3426 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3427 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3428 ac_tool_warned=yes ;;
3436 if test -z "$CC"; then
3437 if test -n "$ac_tool_prefix"; then
3438 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3439 set dummy ${ac_tool_prefix}cc; ac_word=$2
3440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3441 $as_echo_n "checking for $ac_word... " >&6; }
3442 if test "${ac_cv_prog_CC+set}" = set; then :
3443 $as_echo_n "(cached) " >&6
3445 if test -n "$CC"; then
3446 ac_cv_prog_CC="$CC" # Let the user override the test.
3448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3452 test -z "$as_dir" && as_dir=.
3453 for ac_exec_ext in '' $ac_executable_extensions; do
3454 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3455 ac_cv_prog_CC="${ac_tool_prefix}cc"
3456 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3466 if test -n "$CC"; then
3467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3468 $as_echo "$CC" >&6; }
3470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3471 $as_echo "no" >&6; }
3477 if test -z "$CC"; then
3478 # Extract the first word of "cc", so it can be a program name with args.
3479 set dummy cc; ac_word=$2
3480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3481 $as_echo_n "checking for $ac_word... " >&6; }
3482 if test "${ac_cv_prog_CC+set}" = set; then :
3483 $as_echo_n "(cached) " >&6
3485 if test -n "$CC"; then
3486 ac_cv_prog_CC="$CC" # Let the user override the test.
3489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3493 test -z "$as_dir" && as_dir=.
3494 for ac_exec_ext in '' $ac_executable_extensions; do
3495 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3496 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3497 ac_prog_rejected=yes
3501 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3508 if test $ac_prog_rejected = yes; then
3509 # We found a bogon in the path, so make sure we never use it.
3510 set dummy $ac_cv_prog_CC
3512 if test $# != 0; then
3513 # We chose a different compiler from the bogus one.
3514 # However, it has the same basename, so the bogon will be chosen
3515 # first if we set CC to just the basename; use the full file name.
3517 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3523 if test -n "$CC"; then
3524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3525 $as_echo "$CC" >&6; }
3527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3528 $as_echo "no" >&6; }
3533 if test -z "$CC"; then
3534 if test -n "$ac_tool_prefix"; then
3535 for ac_prog in cl.exe
3537 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3538 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3540 $as_echo_n "checking for $ac_word... " >&6; }
3541 if test "${ac_cv_prog_CC+set}" = set; then :
3542 $as_echo_n "(cached) " >&6
3544 if test -n "$CC"; then
3545 ac_cv_prog_CC="$CC" # Let the user override the test.
3547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3551 test -z "$as_dir" && as_dir=.
3552 for ac_exec_ext in '' $ac_executable_extensions; do
3553 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3554 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3555 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3565 if test -n "$CC"; then
3566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3567 $as_echo "$CC" >&6; }
3569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3570 $as_echo "no" >&6; }
3574 test -n "$CC" && break
3577 if test -z "$CC"; then
3579 for ac_prog in cl.exe
3581 # Extract the first word of "$ac_prog", so it can be a program name with args.
3582 set dummy $ac_prog; ac_word=$2
3583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3584 $as_echo_n "checking for $ac_word... " >&6; }
3585 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3586 $as_echo_n "(cached) " >&6
3588 if test -n "$ac_ct_CC"; then
3589 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3595 test -z "$as_dir" && as_dir=.
3596 for ac_exec_ext in '' $ac_executable_extensions; do
3597 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3598 ac_cv_prog_ac_ct_CC="$ac_prog"
3599 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3608 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3609 if test -n "$ac_ct_CC"; then
3610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3611 $as_echo "$ac_ct_CC" >&6; }
3613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3614 $as_echo "no" >&6; }
3618 test -n "$ac_ct_CC" && break
3621 if test "x$ac_ct_CC" = x; then
3624 case $cross_compiling:$ac_tool_warned in
3626 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3627 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3628 ac_tool_warned=yes ;;
3637 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3638 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3639 as_fn_error "no acceptable C compiler found in \$PATH
3640 See \`config.log' for more details." "$LINENO" 5; }
3642 # Provide some information about the compiler.
3643 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3646 for ac_option in --version -v -V -qversion; do
3647 { { ac_try="$ac_compiler $ac_option >&5"
3649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3650 *) ac_try_echo=$ac_try;;
3652 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3653 $as_echo "$ac_try_echo"; } >&5
3654 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3656 if test -s conftest.err; then
3658 ... rest of stderr output deleted ...
3659 10q' conftest.err >conftest.er1
3660 cat conftest.er1 >&5
3662 rm -f conftest.er1 conftest.err
3663 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3664 test $ac_status = 0; }
3667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3668 /* end confdefs.h. */
3678 ac_clean_files_save=$ac_clean_files
3679 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3680 # Try to create an executable without -o first, disregard a.out.
3681 # It will help us diagnose broken compilers, and finding out an intuition
3683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3684 $as_echo_n "checking whether the C compiler works... " >&6; }
3685 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3687 # The possible output files:
3688 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3691 for ac_file in $ac_files
3694 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3695 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3700 if { { ac_try="$ac_link_default"
3702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3703 *) ac_try_echo=$ac_try;;
3705 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3706 $as_echo "$ac_try_echo"; } >&5
3707 (eval "$ac_link_default") 2>&5
3709 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3710 test $ac_status = 0; }; then :
3711 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3712 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3713 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3714 # so that the user can short-circuit this test for compilers unknown to
3716 for ac_file in $ac_files ''
3718 test -f "$ac_file" || continue
3720 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3723 # We found the default executable, but exeext='' is most
3727 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3729 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3731 # We set ac_cv_exeext here because the later test for it is not
3732 # safe: cross compilers may not add the suffix if given an `-o'
3733 # argument, so we may need to know it at that point already.
3734 # Even if this section looks crufty: it has the advantage of
3741 test "$ac_cv_exeext" = no && ac_cv_exeext=
3746 if test -z "$ac_file"; then :
3747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3748 $as_echo "no" >&6; }
3749 $as_echo "$as_me: failed program was:" >&5
3750 sed 's/^/| /' conftest.$ac_ext >&5
3752 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3753 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3754 { as_fn_set_status 77
3755 as_fn_error "C compiler cannot create executables
3756 See \`config.log' for more details." "$LINENO" 5; }; }
3758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3759 $as_echo "yes" >&6; }
3761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3762 $as_echo_n "checking for C compiler default output file name... " >&6; }
3763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3764 $as_echo "$ac_file" >&6; }
3765 ac_exeext=$ac_cv_exeext
3767 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3768 ac_clean_files=$ac_clean_files_save
3769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3770 $as_echo_n "checking for suffix of executables... " >&6; }
3771 if { { ac_try="$ac_link"
3773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3774 *) ac_try_echo=$ac_try;;
3776 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3777 $as_echo "$ac_try_echo"; } >&5
3778 (eval "$ac_link") 2>&5
3780 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3781 test $ac_status = 0; }; then :
3782 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3783 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3784 # work properly (i.e., refer to `conftest.exe'), while it won't with
3786 for ac_file in conftest.exe conftest conftest.*; do
3787 test -f "$ac_file" || continue
3789 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3790 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3796 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3797 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3798 as_fn_error "cannot compute suffix of executables: cannot compile and link
3799 See \`config.log' for more details." "$LINENO" 5; }
3801 rm -f conftest conftest$ac_cv_exeext
3802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3803 $as_echo "$ac_cv_exeext" >&6; }
3805 rm -f conftest.$ac_ext
3806 EXEEXT=$ac_cv_exeext
3808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3809 /* end confdefs.h. */
3814 FILE *f = fopen ("conftest.out", "w");
3815 return ferror (f) || fclose (f) != 0;
3821 ac_clean_files="$ac_clean_files conftest.out"
3822 # Check that the compiler produces executables we can run. If not, either
3823 # the compiler is broken, or we cross compile.
3824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3825 $as_echo_n "checking whether we are cross compiling... " >&6; }
3826 if test "$cross_compiling" != yes; then
3827 { { ac_try="$ac_link"
3829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3830 *) ac_try_echo=$ac_try;;
3832 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3833 $as_echo "$ac_try_echo"; } >&5
3834 (eval "$ac_link") 2>&5
3836 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3837 test $ac_status = 0; }
3838 if { ac_try='./conftest$ac_cv_exeext'
3839 { { case "(($ac_try" in
3840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3841 *) ac_try_echo=$ac_try;;
3843 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3844 $as_echo "$ac_try_echo"; } >&5
3845 (eval "$ac_try") 2>&5
3847 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3848 test $ac_status = 0; }; }; then
3851 if test "$cross_compiling" = maybe; then
3854 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3855 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3856 as_fn_error "cannot run C compiled programs.
3857 If you meant to cross compile, use \`--host'.
3858 See \`config.log' for more details." "$LINENO" 5; }
3862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3863 $as_echo "$cross_compiling" >&6; }
3865 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3866 ac_clean_files=$ac_clean_files_save
3867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3868 $as_echo_n "checking for suffix of object files... " >&6; }
3869 if test "${ac_cv_objext+set}" = set; then :
3870 $as_echo_n "(cached) " >&6
3872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3873 /* end confdefs.h. */
3883 rm -f conftest.o conftest.obj
3884 if { { ac_try="$ac_compile"
3886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3887 *) ac_try_echo=$ac_try;;
3889 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3890 $as_echo "$ac_try_echo"; } >&5
3891 (eval "$ac_compile") 2>&5
3893 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3894 test $ac_status = 0; }; then :
3895 for ac_file in conftest.o conftest.obj conftest.*; do
3896 test -f "$ac_file" || continue;
3898 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3899 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3904 $as_echo "$as_me: failed program was:" >&5
3905 sed 's/^/| /' conftest.$ac_ext >&5
3907 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3908 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3909 as_fn_error "cannot compute suffix of object files: cannot compile
3910 See \`config.log' for more details." "$LINENO" 5; }
3912 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3915 $as_echo "$ac_cv_objext" >&6; }
3916 OBJEXT=$ac_cv_objext
3918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3919 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3920 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3921 $as_echo_n "(cached) " >&6
3923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3924 /* end confdefs.h. */
3937 if ac_fn_c_try_compile "$LINENO"; then :
3942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3943 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3947 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3948 if test $ac_compiler_gnu = yes; then
3953 ac_test_CFLAGS=${CFLAGS+set}
3954 ac_save_CFLAGS=$CFLAGS
3955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3956 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3957 if test "${ac_cv_prog_cc_g+set}" = set; then :
3958 $as_echo_n "(cached) " >&6
3960 ac_save_c_werror_flag=$ac_c_werror_flag
3961 ac_c_werror_flag=yes
3964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3965 /* end confdefs.h. */
3975 if ac_fn_c_try_compile "$LINENO"; then :
3979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3980 /* end confdefs.h. */
3990 if ac_fn_c_try_compile "$LINENO"; then :
3993 ac_c_werror_flag=$ac_save_c_werror_flag
3995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3996 /* end confdefs.h. */
4006 if ac_fn_c_try_compile "$LINENO"; then :
4009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4014 ac_c_werror_flag=$ac_save_c_werror_flag
4016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4017 $as_echo "$ac_cv_prog_cc_g" >&6; }
4018 if test "$ac_test_CFLAGS" = set; then
4019 CFLAGS=$ac_save_CFLAGS
4020 elif test $ac_cv_prog_cc_g = yes; then
4021 if test "$GCC" = yes; then
4027 if test "$GCC" = yes; then
4033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4034 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4035 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4036 $as_echo_n "(cached) " >&6
4038 ac_cv_prog_cc_c89=no
4040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4041 /* end confdefs.h. */
4044 #include <sys/types.h>
4045 #include <sys/stat.h>
4046 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4047 struct buf { int x; };
4048 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4049 static char *e (p, i)
4055 static char *f (char * (*g) (char **, int), char **p, ...)
4060 s = g (p, va_arg (v,int));
4065 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4066 function prototypes and stuff, but not '\xHH' hex character constants.
4067 These don't provoke an error unfortunately, instead are silently treated
4068 as 'x'. The following induces an error, until -std is added to get
4069 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4070 array size at least. It's necessary to write '\x00'==0 to get something
4071 that's true only with -std. */
4072 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4074 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4075 inside strings and character constants. */
4077 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4079 int test (int i, double x);
4080 struct s1 {int (*f) (int a);};
4081 struct s2 {int (*f) (double a);};
4082 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4088 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4093 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4094 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4096 CC="$ac_save_CC $ac_arg"
4097 if ac_fn_c_try_compile "$LINENO"; then :
4098 ac_cv_prog_cc_c89=$ac_arg
4100 rm -f core conftest.err conftest.$ac_objext
4101 test "x$ac_cv_prog_cc_c89" != "xno" && break
4103 rm -f conftest.$ac_ext
4108 case "x$ac_cv_prog_cc_c89" in
4110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4111 $as_echo "none needed" >&6; } ;;
4113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4114 $as_echo "unsupported" >&6; } ;;
4116 CC="$CC $ac_cv_prog_cc_c89"
4117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4118 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4120 if test "x$ac_cv_prog_cc_c89" != xno; then :
4125 ac_cpp='$CPP $CPPFLAGS'
4126 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4127 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4128 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4131 ac_cpp='$CXXCPP $CPPFLAGS'
4132 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4133 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4134 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4135 if test -z "$CXX"; then
4136 if test -n "$CCC"; then
4139 if test -n "$ac_tool_prefix"; then
4140 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4142 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4143 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4145 $as_echo_n "checking for $ac_word... " >&6; }
4146 if test "${ac_cv_prog_CXX+set}" = set; then :
4147 $as_echo_n "(cached) " >&6
4149 if test -n "$CXX"; then
4150 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4156 test -z "$as_dir" && as_dir=.
4157 for ac_exec_ext in '' $ac_executable_extensions; do
4158 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4159 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4160 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4170 if test -n "$CXX"; then
4171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4172 $as_echo "$CXX" >&6; }
4174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4175 $as_echo "no" >&6; }
4179 test -n "$CXX" && break
4182 if test -z "$CXX"; then
4184 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4186 # Extract the first word of "$ac_prog", so it can be a program name with args.
4187 set dummy $ac_prog; ac_word=$2
4188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4189 $as_echo_n "checking for $ac_word... " >&6; }
4190 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4191 $as_echo_n "(cached) " >&6
4193 if test -n "$ac_ct_CXX"; then
4194 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4200 test -z "$as_dir" && as_dir=.
4201 for ac_exec_ext in '' $ac_executable_extensions; do
4202 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4203 ac_cv_prog_ac_ct_CXX="$ac_prog"
4204 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4213 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4214 if test -n "$ac_ct_CXX"; then
4215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4216 $as_echo "$ac_ct_CXX" >&6; }
4218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4219 $as_echo "no" >&6; }
4223 test -n "$ac_ct_CXX" && break
4226 if test "x$ac_ct_CXX" = x; then
4229 case $cross_compiling:$ac_tool_warned in
4231 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4232 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4233 ac_tool_warned=yes ;;
4241 # Provide some information about the compiler.
4242 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4245 for ac_option in --version -v -V -qversion; do
4246 { { ac_try="$ac_compiler $ac_option >&5"
4248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4249 *) ac_try_echo=$ac_try;;
4251 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4252 $as_echo "$ac_try_echo"; } >&5
4253 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4255 if test -s conftest.err; then
4257 ... rest of stderr output deleted ...
4258 10q' conftest.err >conftest.er1
4259 cat conftest.er1 >&5
4261 rm -f conftest.er1 conftest.err
4262 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4263 test $ac_status = 0; }
4266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4267 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4268 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4269 $as_echo_n "(cached) " >&6
4271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4272 /* end confdefs.h. */
4285 if ac_fn_cxx_try_compile "$LINENO"; then :
4290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4291 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4295 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4296 if test $ac_compiler_gnu = yes; then
4301 ac_test_CXXFLAGS=${CXXFLAGS+set}
4302 ac_save_CXXFLAGS=$CXXFLAGS
4303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4304 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4305 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4306 $as_echo_n "(cached) " >&6
4308 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4309 ac_cxx_werror_flag=yes
4312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4313 /* end confdefs.h. */
4323 if ac_fn_cxx_try_compile "$LINENO"; then :
4324 ac_cv_prog_cxx_g=yes
4327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4328 /* end confdefs.h. */
4338 if ac_fn_cxx_try_compile "$LINENO"; then :
4341 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4344 /* end confdefs.h. */
4354 if ac_fn_cxx_try_compile "$LINENO"; then :
4355 ac_cv_prog_cxx_g=yes
4357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4362 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4365 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4366 if test "$ac_test_CXXFLAGS" = set; then
4367 CXXFLAGS=$ac_save_CXXFLAGS
4368 elif test $ac_cv_prog_cxx_g = yes; then
4369 if test "$GXX" = yes; then
4375 if test "$GXX" = yes; then
4382 ac_cpp='$CPP $CPPFLAGS'
4383 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4384 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4385 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4387 if test "x$CC" != xcc; then
4388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4389 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4392 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4394 set dummy $CC; ac_cc=`$as_echo "$2" |
4395 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4396 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
4397 $as_echo_n "(cached) " >&6
4399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4400 /* end confdefs.h. */
4410 # Make sure it works both with $CC and with simple cc.
4411 # We do the test twice because some compilers refuse to overwrite an
4412 # existing .o file with -o, though they will create one.
4413 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4415 if { { case "(($ac_try" in
4416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4417 *) ac_try_echo=$ac_try;;
4419 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4420 $as_echo "$ac_try_echo"; } >&5
4421 (eval "$ac_try") 2>&5
4423 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4424 test $ac_status = 0; } &&
4425 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4427 *) ac_try_echo=$ac_try;;
4429 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4430 $as_echo "$ac_try_echo"; } >&5
4431 (eval "$ac_try") 2>&5
4433 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4434 test $ac_status = 0; };
4436 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4437 if test "x$CC" != xcc; then
4438 # Test first that cc exists at all.
4439 if { ac_try='cc -c conftest.$ac_ext >&5'
4440 { { case "(($ac_try" in
4441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4442 *) ac_try_echo=$ac_try;;
4444 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4445 $as_echo "$ac_try_echo"; } >&5
4446 (eval "$ac_try") 2>&5
4448 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4449 test $ac_status = 0; }; }; then
4450 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4452 if { { case "(($ac_try" in
4453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4454 *) ac_try_echo=$ac_try;;
4456 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4457 $as_echo "$ac_try_echo"; } >&5
4458 (eval "$ac_try") 2>&5
4460 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4461 test $ac_status = 0; } &&
4462 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4464 *) ac_try_echo=$ac_try;;
4466 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4467 $as_echo "$ac_try_echo"; } >&5
4468 (eval "$ac_try") 2>&5
4470 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4471 test $ac_status = 0; };
4476 # cc exists but doesn't like -o.
4477 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4482 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4484 rm -f core conftest*
4487 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4489 $as_echo "yes" >&6; }
4491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4492 $as_echo "no" >&6; }
4494 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4499 ac_cpp='$CPP $CPPFLAGS'
4500 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4501 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4502 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4504 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4505 # On Suns, sometimes $CPP names a directory.
4506 if test -n "$CPP" && test -d "$CPP"; then
4509 if test -z "$CPP"; then
4510 if test "${ac_cv_prog_CPP+set}" = set; then :
4511 $as_echo_n "(cached) " >&6
4513 # Double quotes because CPP needs to be expanded
4514 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4517 for ac_c_preproc_warn_flag in '' yes
4519 # Use a header file that comes with gcc, so configuring glibc
4520 # with a fresh cross-compiler works.
4521 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4522 # <limits.h> exists even on freestanding compilers.
4523 # On the NeXT, cc -E runs the code through the compiler's parser,
4524 # not just through cpp. "Syntax error" is here to catch this case.
4525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4526 /* end confdefs.h. */
4528 # include <limits.h>
4530 # include <assert.h>
4534 if ac_fn_c_try_cpp "$LINENO"; then :
4537 # Broken: fails on valid input.
4540 rm -f conftest.err conftest.$ac_ext
4542 # OK, works on sane cases. Now check whether nonexistent headers
4543 # can be detected and how.
4544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4545 /* end confdefs.h. */
4546 #include <ac_nonexistent.h>
4548 if ac_fn_c_try_cpp "$LINENO"; then :
4549 # Broken: success on invalid input.
4552 # Passes both tests.
4556 rm -f conftest.err conftest.$ac_ext
4559 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4560 rm -f conftest.err conftest.$ac_ext
4561 if $ac_preproc_ok; then :
4573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4574 $as_echo "$CPP" >&6; }
4576 for ac_c_preproc_warn_flag in '' yes
4578 # Use a header file that comes with gcc, so configuring glibc
4579 # with a fresh cross-compiler works.
4580 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4581 # <limits.h> exists even on freestanding compilers.
4582 # On the NeXT, cc -E runs the code through the compiler's parser,
4583 # not just through cpp. "Syntax error" is here to catch this case.
4584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4585 /* end confdefs.h. */
4587 # include <limits.h>
4589 # include <assert.h>
4593 if ac_fn_c_try_cpp "$LINENO"; then :
4596 # Broken: fails on valid input.
4599 rm -f conftest.err conftest.$ac_ext
4601 # OK, works on sane cases. Now check whether nonexistent headers
4602 # can be detected and how.
4603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4604 /* end confdefs.h. */
4605 #include <ac_nonexistent.h>
4607 if ac_fn_c_try_cpp "$LINENO"; then :
4608 # Broken: success on invalid input.
4611 # Passes both tests.
4615 rm -f conftest.err conftest.$ac_ext
4618 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4619 rm -f conftest.err conftest.$ac_ext
4620 if $ac_preproc_ok; then :
4623 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4624 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4625 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4626 See \`config.log' for more details." "$LINENO" 5; }
4630 ac_cpp='$CPP $CPPFLAGS'
4631 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4632 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4633 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4637 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4638 if test "${ac_cv_path_GREP+set}" = set; then :
4639 $as_echo_n "(cached) " >&6
4641 if test -z "$GREP"; then
4642 ac_path_GREP_found=false
4643 # Loop through the user's path and test for each of PROGNAME-LIST
4644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4645 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4648 test -z "$as_dir" && as_dir=.
4649 for ac_prog in grep ggrep; do
4650 for ac_exec_ext in '' $ac_executable_extensions; do
4651 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4652 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4653 # Check for GNU ac_path_GREP and select it if it is found.
4654 # Check for GNU $ac_path_GREP
4655 case `"$ac_path_GREP" --version 2>&1` in
4657 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4660 $as_echo_n 0123456789 >"conftest.in"
4663 cat "conftest.in" "conftest.in" >"conftest.tmp"
4664 mv "conftest.tmp" "conftest.in"
4665 cp "conftest.in" "conftest.nl"
4666 $as_echo 'GREP' >> "conftest.nl"
4667 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4668 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4669 as_fn_arith $ac_count + 1 && ac_count=$as_val
4670 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4671 # Best one so far, save it but keep looking for a better one
4672 ac_cv_path_GREP="$ac_path_GREP"
4673 ac_path_GREP_max=$ac_count
4675 # 10*(2^10) chars as input seems more than enough
4676 test $ac_count -gt 10 && break
4678 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4681 $ac_path_GREP_found && break 3
4686 if test -z "$ac_cv_path_GREP"; then
4687 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4690 ac_cv_path_GREP=$GREP
4694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4695 $as_echo "$ac_cv_path_GREP" >&6; }
4696 GREP="$ac_cv_path_GREP"
4699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4700 $as_echo_n "checking for egrep... " >&6; }
4701 if test "${ac_cv_path_EGREP+set}" = set; then :
4702 $as_echo_n "(cached) " >&6
4704 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4705 then ac_cv_path_EGREP="$GREP -E"
4707 if test -z "$EGREP"; then
4708 ac_path_EGREP_found=false
4709 # Loop through the user's path and test for each of PROGNAME-LIST
4710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4711 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4714 test -z "$as_dir" && as_dir=.
4715 for ac_prog in egrep; do
4716 for ac_exec_ext in '' $ac_executable_extensions; do
4717 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4718 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4719 # Check for GNU ac_path_EGREP and select it if it is found.
4720 # Check for GNU $ac_path_EGREP
4721 case `"$ac_path_EGREP" --version 2>&1` in
4723 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4726 $as_echo_n 0123456789 >"conftest.in"
4729 cat "conftest.in" "conftest.in" >"conftest.tmp"
4730 mv "conftest.tmp" "conftest.in"
4731 cp "conftest.in" "conftest.nl"
4732 $as_echo 'EGREP' >> "conftest.nl"
4733 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4734 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4735 as_fn_arith $ac_count + 1 && ac_count=$as_val
4736 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4737 # Best one so far, save it but keep looking for a better one
4738 ac_cv_path_EGREP="$ac_path_EGREP"
4739 ac_path_EGREP_max=$ac_count
4741 # 10*(2^10) chars as input seems more than enough
4742 test $ac_count -gt 10 && break
4744 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4747 $ac_path_EGREP_found && break 3
4752 if test -z "$ac_cv_path_EGREP"; then
4753 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4756 ac_cv_path_EGREP=$EGREP
4761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4762 $as_echo "$ac_cv_path_EGREP" >&6; }
4763 EGREP="$ac_cv_path_EGREP"
4766 if test $ac_cv_c_compiler_gnu = yes; then
4767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
4768 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
4769 if test "${ac_cv_prog_gcc_traditional+set}" = set; then :
4770 $as_echo_n "(cached) " >&6
4772 ac_pattern="Autoconf.*'x'"
4773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4774 /* end confdefs.h. */
4778 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4779 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4780 ac_cv_prog_gcc_traditional=yes
4782 ac_cv_prog_gcc_traditional=no
4787 if test $ac_cv_prog_gcc_traditional = no; then
4788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4789 /* end confdefs.h. */
4793 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4794 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4795 ac_cv_prog_gcc_traditional=yes
4801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
4802 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
4803 if test $ac_cv_prog_gcc_traditional = yes; then
4804 CC="$CC -traditional"
4808 BASECC=`basename $CC`
4810 if test "x$BASECC" = xgcc; then
4811 $as_echo "#define HAVE_GCC 1" >>confdefs.h
4815 # Extract the first word of "$CXX", so it can be a program name with args.
4816 set dummy $CXX; ac_word=$2
4817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4818 $as_echo_n "checking for $ac_word... " >&6; }
4819 if test "${ac_cv_path_CXX+set}" = set; then :
4820 $as_echo_n "(cached) " >&6
4824 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
4827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4831 test -z "$as_dir" && as_dir=.
4832 for ac_exec_ext in '' $ac_executable_extensions; do
4833 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4834 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
4835 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4842 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="$CXX"
4847 if test -n "$CXX"; then
4848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4849 $as_echo "$CXX" >&6; }
4851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4852 $as_echo "no" >&6; }
4856 if test ! -e $CXX; then
4857 as_fn_error "Unable to find C++ compiler" "$LINENO" 5
4860 # Find a good install program. We prefer a C program (faster),
4861 # so one script is as good as another. But avoid the broken or
4862 # incompatible versions:
4863 # SysV /etc/install, /usr/sbin/install
4864 # SunOS /usr/etc/install
4865 # IRIX /sbin/install
4867 # AmigaOS /C/install, which installs bootblocks on floppy discs
4868 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4869 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4870 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4871 # OS/2's system install, which has a completely different semantic
4872 # ./install, which can be erroneously created by make from ./install.sh.
4873 # Reject install programs that cannot install multiple files.
4874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4875 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4876 if test -z "$INSTALL"; then
4877 if test "${ac_cv_path_install+set}" = set; then :
4878 $as_echo_n "(cached) " >&6
4880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4884 test -z "$as_dir" && as_dir=.
4885 # Account for people who put trailing slashes in PATH elements.
4886 case $as_dir/ in #((
4887 ./ | .// | /[cC]/* | \
4888 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4889 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4892 # OSF1 and SCO ODT 3.0 have their own names for install.
4893 # Don't use installbsd from OSF since it installs stuff as root
4895 for ac_prog in ginstall scoinst install; do
4896 for ac_exec_ext in '' $ac_executable_extensions; do
4897 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4898 if test $ac_prog = install &&
4899 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4900 # AIX install. It has an incompatible calling convention.
4902 elif test $ac_prog = install &&
4903 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4904 # program-specific install script used by HP pwplus--don't use.
4907 rm -rf conftest.one conftest.two conftest.dir
4908 echo one > conftest.one
4909 echo two > conftest.two
4911 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4912 test -s conftest.one && test -s conftest.two &&
4913 test -s conftest.dir/conftest.one &&
4914 test -s conftest.dir/conftest.two
4916 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4929 rm -rf conftest.one conftest.two conftest.dir
4932 if test "${ac_cv_path_install+set}" = set; then
4933 INSTALL=$ac_cv_path_install
4935 # As a last resort, use the slow shell script. Don't cache a
4936 # value for INSTALL within a source directory, because that will
4937 # break other packages using the cache if that directory is
4938 # removed, or if the value is a relative name.
4939 INSTALL=$ac_install_sh
4942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4943 $as_echo "$INSTALL" >&6; }
4945 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4946 # It thinks the first close brace ends the variable substitution.
4947 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4949 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4951 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4953 # Extract the first word of "mv", so it can be a program name with args.
4954 set dummy mv; ac_word=$2
4955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4956 $as_echo_n "checking for $ac_word... " >&6; }
4957 if test "${ac_cv_path_MV+set}" = set; then :
4958 $as_echo_n "(cached) " >&6
4962 ac_cv_path_MV="$MV" # Let the user override the test with a path.
4965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4969 test -z "$as_dir" && as_dir=.
4970 for ac_exec_ext in '' $ac_executable_extensions; do
4971 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4972 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4973 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4980 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4985 if test -n "$MV"; then
4986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
4987 $as_echo "$MV" >&6; }
4989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4990 $as_echo "no" >&6; }
4994 # Extract the first word of "rm", so it can be a program name with args.
4995 set dummy rm; ac_word=$2
4996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4997 $as_echo_n "checking for $ac_word... " >&6; }
4998 if test "${ac_cv_path_REMOVE+set}" = set; then :
4999 $as_echo_n "(cached) " >&6
5003 ac_cv_path_REMOVE="$REMOVE" # Let the user override the test with a path.
5006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5010 test -z "$as_dir" && as_dir=.
5011 for ac_exec_ext in '' $ac_executable_extensions; do
5012 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5013 ac_cv_path_REMOVE="$as_dir/$ac_word$ac_exec_ext"
5014 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5021 test -z "$ac_cv_path_REMOVE" && ac_cv_path_REMOVE="rm"
5025 REMOVE=$ac_cv_path_REMOVE
5026 if test -n "$REMOVE"; then
5027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $REMOVE" >&5
5028 $as_echo "$REMOVE" >&6; }
5030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5031 $as_echo "no" >&6; }
5035 # Extract the first word of "cp", so it can be a program name with args.
5036 set dummy cp; ac_word=$2
5037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5038 $as_echo_n "checking for $ac_word... " >&6; }
5039 if test "${ac_cv_path_CP+set}" = set; then :
5040 $as_echo_n "(cached) " >&6
5044 ac_cv_path_CP="$CP" # Let the user override the test with a path.
5047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5051 test -z "$as_dir" && as_dir=.
5052 for ac_exec_ext in '' $ac_executable_extensions; do
5053 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5054 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5055 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5062 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5067 if test -n "$CP"; then
5068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
5069 $as_echo "$CP" >&6; }
5071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5072 $as_echo "no" >&6; }
5076 # Extract the first word of "sed", so it can be a program name with args.
5077 set dummy sed; ac_word=$2
5078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5079 $as_echo_n "checking for $ac_word... " >&6; }
5080 if test "${ac_cv_path_SED+set}" = set; then :
5081 $as_echo_n "(cached) " >&6
5085 ac_cv_path_SED="$SED" # Let the user override the test with a path.
5088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5092 test -z "$as_dir" && as_dir=.
5093 for ac_exec_ext in '' $ac_executable_extensions; do
5094 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5095 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
5096 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5103 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
5108 if test -n "$SED"; then
5109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
5110 $as_echo "$SED" >&6; }
5112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5113 $as_echo "no" >&6; }
5117 # Extract the first word of "echo", so it can be a program name with args.
5118 set dummy echo; ac_word=$2
5119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5120 $as_echo_n "checking for $ac_word... " >&6; }
5121 if test "${ac_cv_path_ECHO+set}" = set; then :
5122 $as_echo_n "(cached) " >&6
5126 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
5129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5133 test -z "$as_dir" && as_dir=.
5134 for ac_exec_ext in '' $ac_executable_extensions; do
5135 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5136 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
5137 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5144 test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
5148 ECHO=$ac_cv_path_ECHO
5149 if test -n "$ECHO"; then
5150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
5151 $as_echo "$ECHO" >&6; }
5153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5154 $as_echo "no" >&6; }
5158 # Extract the first word of "cmp", so it can be a program name with args.
5159 set dummy cmp; ac_word=$2
5160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5161 $as_echo_n "checking for $ac_word... " >&6; }
5162 if test "${ac_cv_path_CMP+set}" = set; then :
5163 $as_echo_n "(cached) " >&6
5167 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5174 test -z "$as_dir" && as_dir=.
5175 for ac_exec_ext in '' $ac_executable_extensions; do
5176 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5177 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5178 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5185 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5190 if test -n "$CMP"; then
5191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5
5192 $as_echo "$CMP" >&6; }
5194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5195 $as_echo "no" >&6; }
5199 # Extract the first word of "tbl", so it can be a program name with args.
5200 set dummy tbl; ac_word=$2
5201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5202 $as_echo_n "checking for $ac_word... " >&6; }
5203 if test "${ac_cv_path_TBL+set}" = set; then :
5204 $as_echo_n "(cached) " >&6
5208 ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
5211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5215 test -z "$as_dir" && as_dir=.
5216 for ac_exec_ext in '' $ac_executable_extensions; do
5217 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5218 ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
5219 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5226 test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
5231 if test -n "$TBL"; then
5232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TBL" >&5
5233 $as_echo "$TBL" >&6; }
5235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5236 $as_echo "no" >&6; }
5240 # Extract the first word of "ar", so it can be a program name with args.
5241 set dummy ar; ac_word=$2
5242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5243 $as_echo_n "checking for $ac_word... " >&6; }
5244 if test "${ac_cv_path_AR+set}" = set; then :
5245 $as_echo_n "(cached) " >&6
5249 ac_cv_path_AR="$AR" # Let the user override the test with a path.
5252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5256 test -z "$as_dir" && as_dir=.
5257 for ac_exec_ext in '' $ac_executable_extensions; do
5258 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5259 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
5260 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5267 test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
5272 if test -n "$AR"; then
5273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5274 $as_echo "$AR" >&6; }
5276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5277 $as_echo "no" >&6; }
5281 # Extract the first word of "openssl", so it can be a program name with args.
5282 set dummy openssl; ac_word=$2
5283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5284 $as_echo_n "checking for $ac_word... " >&6; }
5285 if test "${ac_cv_path_OPENSSL+set}" = set; then :
5286 $as_echo_n "(cached) " >&6
5290 ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
5293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5297 test -z "$as_dir" && as_dir=.
5298 for ac_exec_ext in '' $ac_executable_extensions; do
5299 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5300 ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
5301 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5308 test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
5312 OPENSSL=$ac_cv_path_OPENSSL
5313 if test -n "$OPENSSL"; then
5314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENSSL" >&5
5315 $as_echo "$OPENSSL" >&6; }
5317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5318 $as_echo "no" >&6; }
5322 # Extract the first word of "mtx", so it can be a program name with args.
5323 set dummy mtx; ac_word=$2
5324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5325 $as_echo_n "checking for $ac_word... " >&6; }
5326 if test "${ac_cv_path_MTX+set}" = set; then :
5327 $as_echo_n "(cached) " >&6
5331 ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
5334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5338 test -z "$as_dir" && as_dir=.
5339 for ac_exec_ext in '' $ac_executable_extensions; do
5340 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5341 ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
5342 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5349 test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
5354 if test -n "$MTX"; then
5355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MTX" >&5
5356 $as_echo "$MTX" >&6; }
5358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5359 $as_echo "no" >&6; }
5363 # Extract the first word of "dd", so it can be a program name with args.
5364 set dummy dd; ac_word=$2
5365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5366 $as_echo_n "checking for $ac_word... " >&6; }
5367 if test "${ac_cv_path_DD+set}" = set; then :
5368 $as_echo_n "(cached) " >&6
5372 ac_cv_path_DD="$DD" # Let the user override the test with a path.
5375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5379 test -z "$as_dir" && as_dir=.
5380 for ac_exec_ext in '' $ac_executable_extensions; do
5381 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5382 ac_cv_path_DD="$as_dir/$ac_word$ac_exec_ext"
5383 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5390 test -z "$ac_cv_path_DD" && ac_cv_path_DD="dd"
5395 if test -n "$DD"; then
5396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DD" >&5
5397 $as_echo "$DD" >&6; }
5399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5400 $as_echo "no" >&6; }
5404 # Extract the first word of "mkisofs", so it can be a program name with args.
5405 set dummy mkisofs; ac_word=$2
5406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5407 $as_echo_n "checking for $ac_word... " >&6; }
5408 if test "${ac_cv_path_MKISOFS+set}" = set; then :
5409 $as_echo_n "(cached) " >&6
5413 ac_cv_path_MKISOFS="$MKISOFS" # Let the user override the test with a path.
5416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5420 test -z "$as_dir" && as_dir=.
5421 for ac_exec_ext in '' $ac_executable_extensions; do
5422 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5423 ac_cv_path_MKISOFS="$as_dir/$ac_word$ac_exec_ext"
5424 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5431 test -z "$ac_cv_path_MKISOFS" && ac_cv_path_MKISOFS="mkisofs"
5435 MKISOFS=$ac_cv_path_MKISOFS
5436 if test -n "$MKISOFS"; then
5437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKISOFS" >&5
5438 $as_echo "$MKISOFS" >&6; }
5440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5441 $as_echo "no" >&6; }
5445 # Extract the first word of "python", so it can be a program name with args.
5446 set dummy python; ac_word=$2
5447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5448 $as_echo_n "checking for $ac_word... " >&6; }
5449 if test "${ac_cv_path_PYTHON+set}" = set; then :
5450 $as_echo_n "(cached) " >&6
5454 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
5457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5461 test -z "$as_dir" && as_dir=.
5462 for ac_exec_ext in '' $ac_executable_extensions; do
5463 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5464 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
5465 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5472 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="python"
5476 PYTHON=$ac_cv_path_PYTHON
5477 if test -n "$PYTHON"; then
5478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
5479 $as_echo "$PYTHON" >&6; }
5481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5482 $as_echo "no" >&6; }
5486 # Extract the first word of "growisofs", so it can be a program name with args.
5487 set dummy growisofs; ac_word=$2
5488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5489 $as_echo_n "checking for $ac_word... " >&6; }
5490 if test "${ac_cv_path_GROWISOFS+set}" = set; then :
5491 $as_echo_n "(cached) " >&6
5495 ac_cv_path_GROWISOFS="$GROWISOFS" # Let the user override the test with a path.
5498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5502 test -z "$as_dir" && as_dir=.
5503 for ac_exec_ext in '' $ac_executable_extensions; do
5504 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5505 ac_cv_path_GROWISOFS="$as_dir/$ac_word$ac_exec_ext"
5506 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5513 test -z "$ac_cv_path_GROWISOFS" && ac_cv_path_GROWISOFS="growisofs"
5517 GROWISOFS=$ac_cv_path_GROWISOFS
5518 if test -n "$GROWISOFS"; then
5519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GROWISOFS" >&5
5520 $as_echo "$GROWISOFS" >&6; }
5522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5523 $as_echo "no" >&6; }
5527 # Extract the first word of "dvd+rw-mediainfo", so it can be a program name with args.
5528 set dummy dvd+rw-mediainfo; ac_word=$2
5529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5530 $as_echo_n "checking for $ac_word... " >&6; }
5531 if test "${ac_cv_path_DVDRWMEDIAINFO+set}" = set; then :
5532 $as_echo_n "(cached) " >&6
5534 case $DVDRWMEDIAINFO in
5536 ac_cv_path_DVDRWMEDIAINFO="$DVDRWMEDIAINFO" # Let the user override the test with a path.
5539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5543 test -z "$as_dir" && as_dir=.
5544 for ac_exec_ext in '' $ac_executable_extensions; do
5545 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5546 ac_cv_path_DVDRWMEDIAINFO="$as_dir/$ac_word$ac_exec_ext"
5547 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5554 test -z "$ac_cv_path_DVDRWMEDIAINFO" && ac_cv_path_DVDRWMEDIAINFO="dvd+rw-mediainfo"
5558 DVDRWMEDIAINFO=$ac_cv_path_DVDRWMEDIAINFO
5559 if test -n "$DVDRWMEDIAINFO"; then
5560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVDRWMEDIAINFO" >&5
5561 $as_echo "$DVDRWMEDIAINFO" >&6; }
5563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5564 $as_echo "no" >&6; }
5568 # Extract the first word of "dvd+rw-format", so it can be a program name with args.
5569 set dummy dvd+rw-format; ac_word=$2
5570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5571 $as_echo_n "checking for $ac_word... " >&6; }
5572 if test "${ac_cv_path_DVDRWFORMAT+set}" = set; then :
5573 $as_echo_n "(cached) " >&6
5575 case $DVDRWFORMAT in
5577 ac_cv_path_DVDRWFORMAT="$DVDRWFORMAT" # Let the user override the test with a path.
5580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5584 test -z "$as_dir" && as_dir=.
5585 for ac_exec_ext in '' $ac_executable_extensions; do
5586 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5587 ac_cv_path_DVDRWFORMAT="$as_dir/$ac_word$ac_exec_ext"
5588 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5595 test -z "$ac_cv_path_DVDRWFORMAT" && ac_cv_path_DVDRWFORMAT="dvd+rw-format"
5599 DVDRWFORMAT=$ac_cv_path_DVDRWFORMAT
5600 if test -n "$DVDRWFORMAT"; then
5601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVDRWFORMAT" >&5
5602 $as_echo "$DVDRWFORMAT" >&6; }
5604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5605 $as_echo "no" >&6; }
5609 # Extract the first word of "pkg-config", so it can be a program name with args.
5610 set dummy pkg-config; ac_word=$2
5611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5612 $as_echo_n "checking for $ac_word... " >&6; }
5613 if test "${ac_cv_path_PKGCONFIG+set}" = set; then :
5614 $as_echo_n "(cached) " >&6
5618 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
5621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5625 test -z "$as_dir" && as_dir=.
5626 for ac_exec_ext in '' $ac_executable_extensions; do
5627 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5628 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
5629 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5636 test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
5640 PKGCONFIG=$ac_cv_path_PKGCONFIG
5641 if test -n "$PKGCONFIG"; then
5642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
5643 $as_echo "$PKGCONFIG" >&6; }
5645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5646 $as_echo "no" >&6; }
5650 # Extract the first word of "qmake", so it can be a program name with args.
5651 set dummy qmake; ac_word=$2
5652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5653 $as_echo_n "checking for $ac_word... " >&6; }
5654 if test "${ac_cv_path_QMAKE+set}" = set; then :
5655 $as_echo_n "(cached) " >&6
5659 ac_cv_path_QMAKE="$QMAKE" # Let the user override the test with a path.
5662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5666 test -z "$as_dir" && as_dir=.
5667 for ac_exec_ext in '' $ac_executable_extensions; do
5668 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5669 ac_cv_path_QMAKE="$as_dir/$ac_word$ac_exec_ext"
5670 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5677 test -z "$ac_cv_path_QMAKE" && ac_cv_path_QMAKE="none"
5681 QMAKE=$ac_cv_path_QMAKE
5682 if test -n "$QMAKE"; then
5683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QMAKE" >&5
5684 $as_echo "$QMAKE" >&6; }
5686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5687 $as_echo "no" >&6; }
5691 # Extract the first word of "gmake", so it can be a program name with args.
5692 set dummy gmake; ac_word=$2
5693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5694 $as_echo_n "checking for $ac_word... " >&6; }
5695 if test "${ac_cv_path_GMAKE+set}" = set; then :
5696 $as_echo_n "(cached) " >&6
5700 ac_cv_path_GMAKE="$GMAKE" # Let the user override the test with a path.
5703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5707 test -z "$as_dir" && as_dir=.
5708 for ac_exec_ext in '' $ac_executable_extensions; do
5709 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5710 ac_cv_path_GMAKE="$as_dir/$ac_word$ac_exec_ext"
5711 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5718 test -z "$ac_cv_path_GMAKE" && ac_cv_path_GMAKE="none"
5722 GMAKE=$ac_cv_path_GMAKE
5723 if test -n "$GMAKE"; then
5724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMAKE" >&5
5725 $as_echo "$GMAKE" >&6; }
5727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5728 $as_echo "no" >&6; }
5733 if test "x$WXCONFIG" = x; then
5736 # Extract the first word of "${WXCONFIG}", so it can be a program name with args.
5737 set dummy ${WXCONFIG}; ac_word=$2
5738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5739 $as_echo_n "checking for $ac_word... " >&6; }
5740 if test "${ac_cv_path_WXCONFIG+set}" = set; then :
5741 $as_echo_n "(cached) " >&6
5745 ac_cv_path_WXCONFIG="$WXCONFIG" # Let the user override the test with a path.
5748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5752 test -z "$as_dir" && as_dir=.
5753 for ac_exec_ext in '' $ac_executable_extensions; do
5754 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5755 ac_cv_path_WXCONFIG="$as_dir/$ac_word$ac_exec_ext"
5756 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5763 test -z "$ac_cv_path_WXCONFIG" && ac_cv_path_WXCONFIG="${WXCONFIG}"
5767 WXCONFIG=$ac_cv_path_WXCONFIG
5768 if test -n "$WXCONFIG"; then
5769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WXCONFIG" >&5
5770 $as_echo "$WXCONFIG" >&6; }
5772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5773 $as_echo "no" >&6; }
5778 # Extract the first word of "cdrecord", so it can be a program name with args.
5779 set dummy cdrecord; ac_word=$2
5780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5781 $as_echo_n "checking for $ac_word... " >&6; }
5782 if test "${ac_cv_path_CDRECORD+set}" = set; then :
5783 $as_echo_n "(cached) " >&6
5787 ac_cv_path_CDRECORD="$CDRECORD" # Let the user override the test with a path.
5790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5794 test -z "$as_dir" && as_dir=.
5795 for ac_exec_ext in '' $ac_executable_extensions; do
5796 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5797 ac_cv_path_CDRECORD="$as_dir/$ac_word$ac_exec_ext"
5798 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5805 test -z "$ac_cv_path_CDRECORD" && ac_cv_path_CDRECORD="cdrecord"
5809 CDRECORD=$ac_cv_path_CDRECORD
5810 if test -n "$CDRECORD"; then
5811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CDRECORD" >&5
5812 $as_echo "$CDRECORD" >&6; }
5814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5815 $as_echo "no" >&6; }
5819 # Extract the first word of "pidof", so it can be a program name with args.
5820 set dummy pidof; ac_word=$2
5821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5822 $as_echo_n "checking for $ac_word... " >&6; }
5823 if test "${ac_cv_path_PIDOF+set}" = set; then :
5824 $as_echo_n "(cached) " >&6
5828 ac_cv_path_PIDOF="$PIDOF" # Let the user override the test with a path.
5831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5835 test -z "$as_dir" && as_dir=.
5836 for ac_exec_ext in '' $ac_executable_extensions; do
5837 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5838 ac_cv_path_PIDOF="$as_dir/$ac_word$ac_exec_ext"
5839 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5846 test -z "$ac_cv_path_PIDOF" && ac_cv_path_PIDOF="pidof"
5850 PIDOF=$ac_cv_path_PIDOF
5851 if test -n "$PIDOF"; then
5852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PIDOF" >&5
5853 $as_echo "$PIDOF" >&6; }
5855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5856 $as_echo "no" >&6; }
5860 for ac_prog in gawk mawk nawk awk
5862 # Extract the first word of "$ac_prog", so it can be a program name with args.
5863 set dummy $ac_prog; ac_word=$2
5864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5865 $as_echo_n "checking for $ac_word... " >&6; }
5866 if test "${ac_cv_prog_AWK+set}" = set; then :
5867 $as_echo_n "(cached) " >&6
5869 if test -n "$AWK"; then
5870 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5876 test -z "$as_dir" && as_dir=.
5877 for ac_exec_ext in '' $ac_executable_extensions; do
5878 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5879 ac_cv_prog_AWK="$ac_prog"
5880 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5890 if test -n "$AWK"; then
5891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5892 $as_echo "$AWK" >&6; }
5894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5895 $as_echo "no" >&6; }
5899 test -n "$AWK" && break
5902 # Some AWK programs fail, so test it and warn the user
5903 if echo xfoo | $AWK 'BEGIN { prog=ARGV1; ARGC=1 }
5904 { if ((prog == $2) || (("(" prog ")") == $2) ||
5905 (("" prog "") == $2) ||
5906 ((prog ":") == $2)) { print $1 ; exit 0 } }' xfoo>/dev/null; then :;
5908 as_fn_error "!!!!!!!!! WARNING !!!!!!!!!!!!!!
5909 The regex engine of $AWK is too broken to be used you
5910 might want to install GNU AWK.
5911 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" "$LINENO" 5
5914 # Extract the first word of "$THE_AWK", so it can be a program name with args.
5915 set dummy $THE_AWK; ac_word=$2
5916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5917 $as_echo_n "checking for $ac_word... " >&6; }
5918 if test "${ac_cv_path_AWK+set}" = set; then :
5919 $as_echo_n "(cached) " >&6
5923 ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
5926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5930 test -z "$as_dir" && as_dir=.
5931 for ac_exec_ext in '' $ac_executable_extensions; do
5932 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5933 ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
5934 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5941 test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="$THE_AWK"
5946 if test -n "$AWK"; then
5947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5948 $as_echo "$AWK" >&6; }
5950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5951 $as_echo "no" >&6; }
5957 test -n "$ARFLAG" || ARFLAGS="cr"
5969 # Check whether --enable-libtool was given.
5970 if test "${enable_libtool+set}" = set; then :
5971 enableval=$enable_libtool;
5972 if test x$enableval = xno; then
5981 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5982 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5987 macro_version='2.2.6'
5988 macro_revision='1.3012'
6002 ltmain="$ac_aux_dir/ltmain.sh"
6004 # Make sure we can run config.sub.
6005 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
6006 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
6008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
6009 $as_echo_n "checking build system type... " >&6; }
6010 if test "${ac_cv_build+set}" = set; then :
6011 $as_echo_n "(cached) " >&6
6013 ac_build_alias=$build_alias
6014 test "x$ac_build_alias" = x &&
6015 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
6016 test "x$ac_build_alias" = x &&
6017 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
6018 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
6019 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
6022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
6023 $as_echo "$ac_cv_build" >&6; }
6024 case $ac_cv_build in
6026 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
6029 ac_save_IFS=$IFS; IFS='-'
6035 # Remember, the first character of IFS is used to create $*,
6036 # except with old shells:
6039 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
6042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
6043 $as_echo_n "checking host system type... " >&6; }
6044 if test "${ac_cv_host+set}" = set; then :
6045 $as_echo_n "(cached) " >&6
6047 if test "x$host_alias" = x; then
6048 ac_cv_host=$ac_cv_build
6050 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
6051 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
6055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
6056 $as_echo "$ac_cv_host" >&6; }
6059 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
6062 ac_save_IFS=$IFS; IFS='-'
6068 # Remember, the first character of IFS is used to create $*,
6069 # except with old shells:
6072 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
6075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6076 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6077 if test "${ac_cv_path_SED+set}" = set; then :
6078 $as_echo_n "(cached) " >&6
6080 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6081 for ac_i in 1 2 3 4 5 6 7; do
6082 ac_script="$ac_script$as_nl$ac_script"
6084 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6085 { ac_script=; unset ac_script;}
6086 if test -z "$SED"; then
6087 ac_path_SED_found=false
6088 # Loop through the user's path and test for each of PROGNAME-LIST
6089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6093 test -z "$as_dir" && as_dir=.
6094 for ac_prog in sed gsed; do
6095 for ac_exec_ext in '' $ac_executable_extensions; do
6096 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6097 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
6098 # Check for GNU ac_path_SED and select it if it is found.
6099 # Check for GNU $ac_path_SED
6100 case `"$ac_path_SED" --version 2>&1` in
6102 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6105 $as_echo_n 0123456789 >"conftest.in"
6108 cat "conftest.in" "conftest.in" >"conftest.tmp"
6109 mv "conftest.tmp" "conftest.in"
6110 cp "conftest.in" "conftest.nl"
6111 $as_echo '' >> "conftest.nl"
6112 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6113 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6114 as_fn_arith $ac_count + 1 && ac_count=$as_val
6115 if test $ac_count -gt ${ac_path_SED_max-0}; then
6116 # Best one so far, save it but keep looking for a better one
6117 ac_cv_path_SED="$ac_path_SED"
6118 ac_path_SED_max=$ac_count
6120 # 10*(2^10) chars as input seems more than enough
6121 test $ac_count -gt 10 && break
6123 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6126 $ac_path_SED_found && break 3
6131 if test -z "$ac_cv_path_SED"; then
6132 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
6139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6140 $as_echo "$ac_cv_path_SED" >&6; }
6141 SED="$ac_cv_path_SED"
6144 test -z "$SED" && SED=sed
6145 Xsed="$SED -e 1s/^X//"
6157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6158 $as_echo_n "checking for fgrep... " >&6; }
6159 if test "${ac_cv_path_FGREP+set}" = set; then :
6160 $as_echo_n "(cached) " >&6
6162 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6163 then ac_cv_path_FGREP="$GREP -F"
6165 if test -z "$FGREP"; then
6166 ac_path_FGREP_found=false
6167 # Loop through the user's path and test for each of PROGNAME-LIST
6168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6169 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6172 test -z "$as_dir" && as_dir=.
6173 for ac_prog in fgrep; do
6174 for ac_exec_ext in '' $ac_executable_extensions; do
6175 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6176 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
6177 # Check for GNU ac_path_FGREP and select it if it is found.
6178 # Check for GNU $ac_path_FGREP
6179 case `"$ac_path_FGREP" --version 2>&1` in
6181 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6184 $as_echo_n 0123456789 >"conftest.in"
6187 cat "conftest.in" "conftest.in" >"conftest.tmp"
6188 mv "conftest.tmp" "conftest.in"
6189 cp "conftest.in" "conftest.nl"
6190 $as_echo 'FGREP' >> "conftest.nl"
6191 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6192 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6193 as_fn_arith $ac_count + 1 && ac_count=$as_val
6194 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6195 # Best one so far, save it but keep looking for a better one
6196 ac_cv_path_FGREP="$ac_path_FGREP"
6197 ac_path_FGREP_max=$ac_count
6199 # 10*(2^10) chars as input seems more than enough
6200 test $ac_count -gt 10 && break
6202 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6205 $ac_path_FGREP_found && break 3
6210 if test -z "$ac_cv_path_FGREP"; then
6211 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6214 ac_cv_path_FGREP=$FGREP
6219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6220 $as_echo "$ac_cv_path_FGREP" >&6; }
6221 FGREP="$ac_cv_path_FGREP"
6224 test -z "$GREP" && GREP=grep
6244 # Check whether --with-gnu-ld was given.
6245 if test "${with_gnu_ld+set}" = set; then :
6246 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6252 if test "$GCC" = yes; then
6253 # Check if gcc -print-prog-name=ld gives a path.
6254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6255 $as_echo_n "checking for ld used by $CC... " >&6; }
6258 # gcc leaves a trailing carriage return which upsets mingw
6259 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6261 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6264 # Accept absolute paths.
6266 re_direlt='/[^/][^/]*/\.\./'
6267 # Canonicalize the pathname of ld
6268 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6269 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6270 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6272 test -z "$LD" && LD="$ac_prog"
6275 # If it fails, then pretend we aren't using GCC.
6279 # If it is relative, then search for the first ld in PATH.
6283 elif test "$with_gnu_ld" = yes; then
6284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6285 $as_echo_n "checking for GNU ld... " >&6; }
6287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6288 $as_echo_n "checking for non-GNU ld... " >&6; }
6290 if test "${lt_cv_path_LD+set}" = set; then :
6291 $as_echo_n "(cached) " >&6
6293 if test -z "$LD"; then
6294 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6295 for ac_dir in $PATH; do
6297 test -z "$ac_dir" && ac_dir=.
6298 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6299 lt_cv_path_LD="$ac_dir/$ac_prog"
6300 # Check to see if the program is GNU ld. I'd rather use --version,
6301 # but apparently some variants of GNU ld only accept -v.
6302 # Break only if it was the GNU/non-GNU ld that we prefer.
6303 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6304 *GNU* | *'with BFD'*)
6305 test "$with_gnu_ld" != no && break
6308 test "$with_gnu_ld" != yes && break
6315 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6320 if test -n "$LD"; then
6321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6322 $as_echo "$LD" >&6; }
6324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6325 $as_echo "no" >&6; }
6327 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
6328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6329 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6330 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
6331 $as_echo_n "(cached) " >&6
6333 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6334 case `$LD -v 2>&1 </dev/null` in
6335 *GNU* | *'with BFD'*)
6336 lt_cv_prog_gnu_ld=yes
6339 lt_cv_prog_gnu_ld=no
6343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6344 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6345 with_gnu_ld=$lt_cv_prog_gnu_ld
6355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6356 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6357 if test "${lt_cv_path_NM+set}" = set; then :
6358 $as_echo_n "(cached) " >&6
6360 if test -n "$NM"; then
6361 # Let the user override the test.
6364 lt_nm_to_check="${ac_tool_prefix}nm"
6365 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6366 lt_nm_to_check="$lt_nm_to_check nm"
6368 for lt_tmp_nm in $lt_nm_to_check; do
6369 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6370 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6372 test -z "$ac_dir" && ac_dir=.
6373 tmp_nm="$ac_dir/$lt_tmp_nm"
6374 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6375 # Check to see if the nm accepts a BSD-compat flag.
6376 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6377 # nm: unknown option "B" ignored
6378 # Tru64's nm complains that /dev/null is an invalid object file
6379 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6380 */dev/null* | *'Invalid file or object type'*)
6381 lt_cv_path_NM="$tmp_nm -B"
6385 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6387 lt_cv_path_NM="$tmp_nm -p"
6391 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6392 continue # so that we can try to find one that supports BSD flags
6401 : ${lt_cv_path_NM=no}
6404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6405 $as_echo "$lt_cv_path_NM" >&6; }
6406 if test "$lt_cv_path_NM" != "no"; then
6409 # Didn't find any BSD compatible name lister, look for dumpbin.
6410 if test -n "$ac_tool_prefix"; then
6411 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
6413 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6414 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6416 $as_echo_n "checking for $ac_word... " >&6; }
6417 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
6418 $as_echo_n "(cached) " >&6
6420 if test -n "$DUMPBIN"; then
6421 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6427 test -z "$as_dir" && as_dir=.
6428 for ac_exec_ext in '' $ac_executable_extensions; do
6429 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6430 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6431 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6440 DUMPBIN=$ac_cv_prog_DUMPBIN
6441 if test -n "$DUMPBIN"; then
6442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6443 $as_echo "$DUMPBIN" >&6; }
6445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6446 $as_echo "no" >&6; }
6450 test -n "$DUMPBIN" && break
6453 if test -z "$DUMPBIN"; then
6454 ac_ct_DUMPBIN=$DUMPBIN
6455 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
6457 # Extract the first word of "$ac_prog", so it can be a program name with args.
6458 set dummy $ac_prog; ac_word=$2
6459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6460 $as_echo_n "checking for $ac_word... " >&6; }
6461 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
6462 $as_echo_n "(cached) " >&6
6464 if test -n "$ac_ct_DUMPBIN"; then
6465 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6471 test -z "$as_dir" && as_dir=.
6472 for ac_exec_ext in '' $ac_executable_extensions; do
6473 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6474 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6475 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6484 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6485 if test -n "$ac_ct_DUMPBIN"; then
6486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6487 $as_echo "$ac_ct_DUMPBIN" >&6; }
6489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6490 $as_echo "no" >&6; }
6494 test -n "$ac_ct_DUMPBIN" && break
6497 if test "x$ac_ct_DUMPBIN" = x; then
6500 case $cross_compiling:$ac_tool_warned in
6502 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6503 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6504 ac_tool_warned=yes ;;
6506 DUMPBIN=$ac_ct_DUMPBIN
6511 if test "$DUMPBIN" != ":"; then
6515 test -z "$NM" && NM=nm
6522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6523 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6524 if test "${lt_cv_nm_interface+set}" = set; then :
6525 $as_echo_n "(cached) " >&6
6527 lt_cv_nm_interface="BSD nm"
6528 echo "int some_variable = 0;" > conftest.$ac_ext
6529 (eval echo "\"\$as_me:6529: $ac_compile\"" >&5)
6530 (eval "$ac_compile" 2>conftest.err)
6531 cat conftest.err >&5
6532 (eval echo "\"\$as_me:6532: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6533 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6534 cat conftest.err >&5
6535 (eval echo "\"\$as_me:6535: output\"" >&5)
6536 cat conftest.out >&5
6537 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6538 lt_cv_nm_interface="MS dumpbin"
6542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6543 $as_echo "$lt_cv_nm_interface" >&6; }
6545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6546 $as_echo_n "checking whether ln -s works... " >&6; }
6548 if test "$LN_S" = "ln -s"; then
6549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6550 $as_echo "yes" >&6; }
6552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6553 $as_echo "no, using $LN_S" >&6; }
6556 # find the maximum length of command line arguments
6557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6558 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6559 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
6560 $as_echo_n "(cached) " >&6
6567 # On DJGPP, this test can blow up pretty badly due to problems in libc
6568 # (any single argument exceeding 2000 bytes causes a buffer overrun
6569 # during glob expansion). Even if it were fixed, the result of this
6570 # check would be larger than it should be.
6571 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6575 # Under GNU Hurd, this test is not required because there is
6576 # no limit to the length of command line arguments.
6577 # Libtool will interpret -1 as no limit whatsoever
6578 lt_cv_sys_max_cmd_len=-1;
6581 cygwin* | mingw* | cegcc*)
6582 # On Win9x/ME, this test blows up -- it succeeds, but takes
6583 # about 5 minutes as the teststring grows exponentially.
6584 # Worse, since 9x/ME are not pre-emptively multitasking,
6585 # you end up with a "frozen" computer, even though with patience
6586 # the test eventually succeeds (with a max line length of 256k).
6587 # Instead, let's just punt: use the minimum linelength reported by
6588 # all of the supported platforms: 8192 (on NT/2K/XP).
6589 lt_cv_sys_max_cmd_len=8192;
6593 # On AmigaOS with pdksh, this test takes hours, literally.
6594 # So we just punt and use a minimum line length of 8192.
6595 lt_cv_sys_max_cmd_len=8192;
6598 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6599 # This has been around since 386BSD, at least. Likely further.
6600 if test -x /sbin/sysctl; then
6601 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6602 elif test -x /usr/sbin/sysctl; then
6603 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6605 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6607 # And add a safety zone
6608 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6609 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6613 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6614 lt_cv_sys_max_cmd_len=196608
6618 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6619 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6620 # nice to cause kernel panics so lets avoid the loop below.
6621 # First set a reasonable default.
6622 lt_cv_sys_max_cmd_len=16384
6624 if test -x /sbin/sysconfig; then
6625 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6626 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6631 lt_cv_sys_max_cmd_len=102400
6633 sysv5* | sco5v6* | sysv4.2uw2*)
6634 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6635 if test -n "$kargmax"; then
6636 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6638 lt_cv_sys_max_cmd_len=32768
6642 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6643 if test -n "$lt_cv_sys_max_cmd_len"; then
6644 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6645 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6647 # Make teststring a little bigger before we do anything with it.
6648 # a 1K string should be a reasonable start.
6649 for i in 1 2 3 4 5 6 7 8 ; do
6650 teststring=$teststring$teststring
6652 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6653 # If test is not a shell built-in, we'll probably end up computing a
6654 # maximum length that is only half of the actual maximum length, but
6656 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
6657 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
6658 test $i != 17 # 1/2 MB should be enough
6661 teststring=$teststring$teststring
6663 # Only check the string length outside the loop.
6664 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6666 # Add a significant safety factor because C++ compilers can tack on
6667 # massive amounts of additional arguments before passing them to the
6668 # linker. It appears as though 1/2 is a usable value.
6669 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6676 if test -n $lt_cv_sys_max_cmd_len ; then
6677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6678 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6681 $as_echo "none" >&6; }
6683 max_cmd_len=$lt_cv_sys_max_cmd_len
6694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6695 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6696 # Try some XSI features
6699 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6701 && eval 'test $(( 1 + 1 )) -eq 2 \
6702 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6705 $as_echo "$xsi_shell" >&6; }
6708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6709 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6711 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6713 && lt_shell_append=yes
6714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6715 $as_echo "$lt_shell_append" >&6; }
6718 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6728 # test EBCDIC or ASCII
6729 case `echo X|tr X '\101'` in
6730 A) # ASCII based system
6731 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6732 lt_SP2NL='tr \040 \012'
6733 lt_NL2SP='tr \015\012 \040\040'
6735 *) # EBCDIC based system
6736 lt_SP2NL='tr \100 \n'
6737 lt_NL2SP='tr \r\n \100\100'
6749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6750 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6751 if test "${lt_cv_ld_reload_flag+set}" = set; then :
6752 $as_echo_n "(cached) " >&6
6754 lt_cv_ld_reload_flag='-r'
6756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6757 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6758 reload_flag=$lt_cv_ld_reload_flag
6759 case $reload_flag in
6761 *) reload_flag=" $reload_flag" ;;
6763 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6766 if test "$GCC" = yes; then
6767 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6769 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6782 if test -n "$ac_tool_prefix"; then
6783 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6784 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6786 $as_echo_n "checking for $ac_word... " >&6; }
6787 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
6788 $as_echo_n "(cached) " >&6
6790 if test -n "$OBJDUMP"; then
6791 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6797 test -z "$as_dir" && as_dir=.
6798 for ac_exec_ext in '' $ac_executable_extensions; do
6799 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6800 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6801 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6810 OBJDUMP=$ac_cv_prog_OBJDUMP
6811 if test -n "$OBJDUMP"; then
6812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6813 $as_echo "$OBJDUMP" >&6; }
6815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6816 $as_echo "no" >&6; }
6821 if test -z "$ac_cv_prog_OBJDUMP"; then
6822 ac_ct_OBJDUMP=$OBJDUMP
6823 # Extract the first word of "objdump", so it can be a program name with args.
6824 set dummy objdump; ac_word=$2
6825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6826 $as_echo_n "checking for $ac_word... " >&6; }
6827 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
6828 $as_echo_n "(cached) " >&6
6830 if test -n "$ac_ct_OBJDUMP"; then
6831 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6837 test -z "$as_dir" && as_dir=.
6838 for ac_exec_ext in '' $ac_executable_extensions; do
6839 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6840 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6841 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6850 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6851 if test -n "$ac_ct_OBJDUMP"; then
6852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6853 $as_echo "$ac_ct_OBJDUMP" >&6; }
6855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6856 $as_echo "no" >&6; }
6859 if test "x$ac_ct_OBJDUMP" = x; then
6862 case $cross_compiling:$ac_tool_warned in
6864 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6865 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6866 ac_tool_warned=yes ;;
6868 OBJDUMP=$ac_ct_OBJDUMP
6871 OBJDUMP="$ac_cv_prog_OBJDUMP"
6874 test -z "$OBJDUMP" && OBJDUMP=objdump
6884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6885 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6886 if test "${lt_cv_deplibs_check_method+set}" = set; then :
6887 $as_echo_n "(cached) " >&6
6889 lt_cv_file_magic_cmd='$MAGIC_CMD'
6890 lt_cv_file_magic_test_file=
6891 lt_cv_deplibs_check_method='unknown'
6892 # Need to set the preceding variable on all platforms that support
6893 # interlibrary dependencies.
6894 # 'none' -- dependencies not supported.
6895 # `unknown' -- same as none, but documents that we really don't know.
6896 # 'pass_all' -- all dependencies passed with no checks.
6897 # 'test_compile' -- check by making test program.
6898 # 'file_magic [[regex]]' -- check by looking for files in library path
6899 # which responds to the $file_magic_cmd with a given extended regex.
6900 # If you have `file' or equivalent on your system and you're not sure
6901 # whether `pass_all' will *always* work, you probably want this one.
6905 lt_cv_deplibs_check_method=pass_all
6909 lt_cv_deplibs_check_method=pass_all
6913 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6914 lt_cv_file_magic_cmd='/usr/bin/file -L'
6915 lt_cv_file_magic_test_file=/shlib/libc.so
6919 # func_win32_libid is a shell function defined in ltmain.sh
6920 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6921 lt_cv_file_magic_cmd='func_win32_libid'
6925 # Base MSYS/MinGW do not provide the 'file' command needed by
6926 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6927 # unless we find 'file', for example because we are cross-compiling.
6928 if ( file / ) >/dev/null 2>&1; then
6929 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6930 lt_cv_file_magic_cmd='func_win32_libid'
6932 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6933 lt_cv_file_magic_cmd='$OBJDUMP -f'
6938 # use the weaker test based on 'objdump'. See mingw*.
6939 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6940 lt_cv_file_magic_cmd='$OBJDUMP -f'
6943 darwin* | rhapsody*)
6944 lt_cv_deplibs_check_method=pass_all
6947 freebsd* | dragonfly*)
6948 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6951 # Not sure whether the presence of OpenBSD here was a mistake.
6952 # Let's accept both of them until this is cleared up.
6953 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6954 lt_cv_file_magic_cmd=/usr/bin/file
6955 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6959 lt_cv_deplibs_check_method=pass_all
6964 lt_cv_deplibs_check_method=pass_all
6967 hpux10.20* | hpux11*)
6968 lt_cv_file_magic_cmd=/usr/bin/file
6971 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6972 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6975 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]'
6976 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6979 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6980 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6986 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6987 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6990 irix5* | irix6* | nonstopux*)
6992 *-32|*"-32 ") libmagic=32-bit;;
6993 *-n32|*"-n32 ") libmagic=N32;;
6994 *-64|*"-64 ") libmagic=64-bit;;
6995 *) libmagic=never-match;;
6997 lt_cv_deplibs_check_method=pass_all
7000 # This must be Linux ELF.
7001 linux* | k*bsd*-gnu)
7002 lt_cv_deplibs_check_method=pass_all
7006 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7007 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7009 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7014 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7015 lt_cv_file_magic_cmd=/usr/bin/file
7016 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7020 lt_cv_deplibs_check_method=pass_all
7024 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7025 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7027 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7031 osf3* | osf4* | osf5*)
7032 lt_cv_deplibs_check_method=pass_all
7036 lt_cv_deplibs_check_method=pass_all
7040 lt_cv_deplibs_check_method=pass_all
7043 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7044 lt_cv_deplibs_check_method=pass_all
7048 case $host_vendor in
7050 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]'
7051 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7054 lt_cv_deplibs_check_method=pass_all
7057 lt_cv_file_magic_cmd='/bin/file'
7058 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7061 lt_cv_file_magic_cmd='/bin/file'
7062 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7063 lt_cv_file_magic_test_file=/lib/libc.so
7066 lt_cv_deplibs_check_method=pass_all
7069 lt_cv_deplibs_check_method=pass_all
7075 lt_cv_deplibs_check_method=pass_all
7080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7081 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7082 file_magic_cmd=$lt_cv_file_magic_cmd
7083 deplibs_check_method=$lt_cv_deplibs_check_method
7084 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7097 if test -n "$ac_tool_prefix"; then
7098 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7099 set dummy ${ac_tool_prefix}ar; ac_word=$2
7100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7101 $as_echo_n "checking for $ac_word... " >&6; }
7102 if test "${ac_cv_prog_AR+set}" = set; then :
7103 $as_echo_n "(cached) " >&6
7105 if test -n "$AR"; then
7106 ac_cv_prog_AR="$AR" # Let the user override the test.
7108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7112 test -z "$as_dir" && as_dir=.
7113 for ac_exec_ext in '' $ac_executable_extensions; do
7114 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7115 ac_cv_prog_AR="${ac_tool_prefix}ar"
7116 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7126 if test -n "$AR"; then
7127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7128 $as_echo "$AR" >&6; }
7130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7131 $as_echo "no" >&6; }
7136 if test -z "$ac_cv_prog_AR"; then
7138 # Extract the first word of "ar", so it can be a program name with args.
7139 set dummy ar; ac_word=$2
7140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7141 $as_echo_n "checking for $ac_word... " >&6; }
7142 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
7143 $as_echo_n "(cached) " >&6
7145 if test -n "$ac_ct_AR"; then
7146 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7152 test -z "$as_dir" && as_dir=.
7153 for ac_exec_ext in '' $ac_executable_extensions; do
7154 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7155 ac_cv_prog_ac_ct_AR="ar"
7156 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7165 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7166 if test -n "$ac_ct_AR"; then
7167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7168 $as_echo "$ac_ct_AR" >&6; }
7170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7171 $as_echo "no" >&6; }
7174 if test "x$ac_ct_AR" = x; then
7177 case $cross_compiling:$ac_tool_warned in
7179 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7180 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7181 ac_tool_warned=yes ;;
7189 test -z "$AR" && AR=ar
7190 test -z "$AR_FLAGS" && AR_FLAGS=cru
7202 if test -n "$ac_tool_prefix"; then
7203 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7204 set dummy ${ac_tool_prefix}strip; ac_word=$2
7205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7206 $as_echo_n "checking for $ac_word... " >&6; }
7207 if test "${ac_cv_prog_STRIP+set}" = set; then :
7208 $as_echo_n "(cached) " >&6
7210 if test -n "$STRIP"; then
7211 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7217 test -z "$as_dir" && as_dir=.
7218 for ac_exec_ext in '' $ac_executable_extensions; do
7219 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7220 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7221 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7230 STRIP=$ac_cv_prog_STRIP
7231 if test -n "$STRIP"; then
7232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7233 $as_echo "$STRIP" >&6; }
7235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7236 $as_echo "no" >&6; }
7241 if test -z "$ac_cv_prog_STRIP"; then
7243 # Extract the first word of "strip", so it can be a program name with args.
7244 set dummy strip; ac_word=$2
7245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7246 $as_echo_n "checking for $ac_word... " >&6; }
7247 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
7248 $as_echo_n "(cached) " >&6
7250 if test -n "$ac_ct_STRIP"; then
7251 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7257 test -z "$as_dir" && as_dir=.
7258 for ac_exec_ext in '' $ac_executable_extensions; do
7259 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7260 ac_cv_prog_ac_ct_STRIP="strip"
7261 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7270 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7271 if test -n "$ac_ct_STRIP"; then
7272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7273 $as_echo "$ac_ct_STRIP" >&6; }
7275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7276 $as_echo "no" >&6; }
7279 if test "x$ac_ct_STRIP" = x; then
7282 case $cross_compiling:$ac_tool_warned in
7284 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7285 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7286 ac_tool_warned=yes ;;
7291 STRIP="$ac_cv_prog_STRIP"
7294 test -z "$STRIP" && STRIP=:
7301 if test -n "$ac_tool_prefix"; then
7302 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7303 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7305 $as_echo_n "checking for $ac_word... " >&6; }
7306 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7307 $as_echo_n "(cached) " >&6
7309 if test -n "$RANLIB"; then
7310 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7316 test -z "$as_dir" && as_dir=.
7317 for ac_exec_ext in '' $ac_executable_extensions; do
7318 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7319 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7320 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7329 RANLIB=$ac_cv_prog_RANLIB
7330 if test -n "$RANLIB"; then
7331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7332 $as_echo "$RANLIB" >&6; }
7334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7335 $as_echo "no" >&6; }
7340 if test -z "$ac_cv_prog_RANLIB"; then
7341 ac_ct_RANLIB=$RANLIB
7342 # Extract the first word of "ranlib", so it can be a program name with args.
7343 set dummy ranlib; ac_word=$2
7344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7345 $as_echo_n "checking for $ac_word... " >&6; }
7346 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7347 $as_echo_n "(cached) " >&6
7349 if test -n "$ac_ct_RANLIB"; then
7350 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7356 test -z "$as_dir" && as_dir=.
7357 for ac_exec_ext in '' $ac_executable_extensions; do
7358 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7359 ac_cv_prog_ac_ct_RANLIB="ranlib"
7360 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7369 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7370 if test -n "$ac_ct_RANLIB"; then
7371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7372 $as_echo "$ac_ct_RANLIB" >&6; }
7374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7375 $as_echo "no" >&6; }
7378 if test "x$ac_ct_RANLIB" = x; then
7381 case $cross_compiling:$ac_tool_warned in
7383 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7384 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7385 ac_tool_warned=yes ;;
7387 RANLIB=$ac_ct_RANLIB
7390 RANLIB="$ac_cv_prog_RANLIB"
7393 test -z "$RANLIB" && RANLIB=:
7400 # Determine commands to create old-style static archives.
7401 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7402 old_postinstall_cmds='chmod 644 $oldlib'
7403 old_postuninstall_cmds=
7405 if test -n "$RANLIB"; then
7408 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7411 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7414 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7450 # If no C compiler was specified, use CC.
7453 # If no C compiler flags were specified, use CFLAGS.
7454 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7456 # Allow CC to be a program name with arguments.
7460 # Check for command to grab the raw symbol name followed by C symbol from nm.
7461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7462 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7463 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
7464 $as_echo_n "(cached) " >&6
7467 # These are sane defaults that work on at least a few old systems.
7468 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7470 # Character class describing NM global symbol codes.
7471 symcode='[BCDEGRST]'
7473 # Regexp to match symbols that can be accessed directly from C.
7474 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7476 # Define system-specific variables.
7481 cygwin* | mingw* | pw32* | cegcc*)
7482 symcode='[ABCDGISTW]'
7485 if test "$host_cpu" = ia64; then
7486 symcode='[ABCDEGRST]'
7490 symcode='[BCDEGRST]'
7493 symcode='[BCDEGQRST]'
7504 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7512 # If we're using GNU nm, then use its standard symbol codes.
7513 case `$NM -V 2>&1` in
7514 *GNU* | *'with BFD'*)
7515 symcode='[ABCDGIRSTW]' ;;
7518 # Transform an extracted symbol line into a proper C declaration.
7519 # Some systems (esp. on ia64) link data and code symbols differently,
7520 # so use this general approach.
7521 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7523 # Transform an extracted symbol line into symbol name and symbol address
7524 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7525 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'"
7527 # Handle CRLF in mingw tool chain
7531 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7535 # Try without a prefix underscore, then with it.
7536 for ac_symprfx in "" "_"; do
7538 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7539 symxfrm="\\1 $ac_symprfx\\2 \\2"
7541 # Write the raw and C identifiers.
7542 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7543 # Fake it for dumpbin and say T for any non-static function
7544 # and D for any global variable.
7545 # Also find C++ and __fastcall symbols from MSVC++,
7546 # which start with @ or ?.
7547 lt_cv_sys_global_symbol_pipe="$AWK '"\
7548 " {last_section=section; section=\$ 3};"\
7549 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7550 " \$ 0!~/External *\|/{next};"\
7551 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7552 " {if(hide[section]) next};"\
7553 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7554 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7555 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7556 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7557 " ' prfx=^$ac_symprfx"
7559 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7562 # Check to see that the pipe works correctly.
7566 cat > conftest.$ac_ext <<_LT_EOF
7571 void nm_test_func(void);
7572 void nm_test_func(void){}
7576 int main(){nm_test_var='a';nm_test_func();return(0);}
7579 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7580 (eval $ac_compile) 2>&5
7582 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7583 test $ac_status = 0; }; then
7584 # Now try to grab the symbols.
7586 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
7587 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7589 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7590 test $ac_status = 0; } && test -s "$nlist"; then
7591 # Try sorting and uniquifying the output.
7592 if sort "$nlist" | uniq > "$nlist"T; then
7593 mv -f "$nlist"T "$nlist"
7598 # Make sure that we snagged all the symbols we need.
7599 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7600 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7601 cat <<_LT_EOF > conftest.$ac_ext
7607 # Now generate the symbol file.
7608 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7610 cat <<_LT_EOF >> conftest.$ac_ext
7612 /* The mapping between symbol names and symbols. */
7617 lt__PROGRAM__LTX_preloaded_symbols[] =
7619 { "@PROGRAM@", (void *) 0 },
7621 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7622 cat <<\_LT_EOF >> conftest.$ac_ext
7626 /* This works around a problem in FreeBSD linker */
7627 #ifdef FREEBSD_WORKAROUND
7628 static const void *lt_preloaded_setup() {
7629 return lt__PROGRAM__LTX_preloaded_symbols;
7637 # Now try linking the two files.
7638 mv conftest.$ac_objext conftstm.$ac_objext
7639 lt_save_LIBS="$LIBS"
7640 lt_save_CFLAGS="$CFLAGS"
7641 LIBS="conftstm.$ac_objext"
7642 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7643 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7644 (eval $ac_link) 2>&5
7646 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7647 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7650 LIBS="$lt_save_LIBS"
7651 CFLAGS="$lt_save_CFLAGS"
7653 echo "cannot find nm_test_func in $nlist" >&5
7656 echo "cannot find nm_test_var in $nlist" >&5
7659 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7662 echo "$progname: failed program was:" >&5
7663 cat conftest.$ac_ext >&5
7665 rm -rf conftest* conftst*
7667 # Do not use the global_symbol_pipe unless it works.
7668 if test "$pipe_works" = yes; then
7671 lt_cv_sys_global_symbol_pipe=
7677 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7678 lt_cv_sys_global_symbol_to_cdecl=
7680 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7682 $as_echo "failed" >&6; }
7684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7685 $as_echo "ok" >&6; }
7709 # Check whether --enable-libtool-lock was given.
7710 if test "${enable_libtool_lock+set}" = set; then :
7711 enableval=$enable_libtool_lock;
7714 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7716 # Some flags need to be propagated to the compiler or linker for good
7720 # Find out which ABI we are using.
7721 echo 'int i;' > conftest.$ac_ext
7722 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7723 (eval $ac_compile) 2>&5
7725 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7726 test $ac_status = 0; }; then
7727 case `/usr/bin/file conftest.$ac_objext` in
7739 # Find out which ABI we are using.
7740 echo '#line 7740 "configure"' > conftest.$ac_ext
7741 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7742 (eval $ac_compile) 2>&5
7744 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7745 test $ac_status = 0; }; then
7746 if test "$lt_cv_prog_gnu_ld" = yes; then
7747 case `/usr/bin/file conftest.$ac_objext` in
7749 LD="${LD-ld} -melf32bsmip"
7752 LD="${LD-ld} -melf32bmipn32"
7755 LD="${LD-ld} -melf64bmip"
7759 case `/usr/bin/file conftest.$ac_objext` in
7775 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7776 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7777 # Find out which ABI we are using.
7778 echo 'int i;' > conftest.$ac_ext
7779 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7780 (eval $ac_compile) 2>&5
7782 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7783 test $ac_status = 0; }; then
7784 case `/usr/bin/file conftest.o` in
7787 x86_64-*kfreebsd*-gnu)
7788 LD="${LD-ld} -m elf_i386_fbsd"
7791 LD="${LD-ld} -m elf_i386"
7793 ppc64-*linux*|powerpc64-*linux*)
7794 LD="${LD-ld} -m elf32ppclinux"
7797 LD="${LD-ld} -m elf_s390"
7800 LD="${LD-ld} -m elf32_sparc"
7806 x86_64-*kfreebsd*-gnu)
7807 LD="${LD-ld} -m elf_x86_64_fbsd"
7810 LD="${LD-ld} -m elf_x86_64"
7812 ppc*-*linux*|powerpc*-*linux*)
7813 LD="${LD-ld} -m elf64ppc"
7815 s390*-*linux*|s390*-*tpf*)
7816 LD="${LD-ld} -m elf64_s390"
7819 LD="${LD-ld} -m elf64_sparc"
7829 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7830 SAVE_CFLAGS="$CFLAGS"
7831 CFLAGS="$CFLAGS -belf"
7832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7833 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7834 if test "${lt_cv_cc_needs_belf+set}" = set; then :
7835 $as_echo_n "(cached) " >&6
7838 ac_cpp='$CPP $CPPFLAGS'
7839 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7840 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7841 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7844 /* end confdefs.h. */
7854 if ac_fn_c_try_link "$LINENO"; then :
7855 lt_cv_cc_needs_belf=yes
7857 lt_cv_cc_needs_belf=no
7859 rm -f core conftest.err conftest.$ac_objext \
7860 conftest$ac_exeext conftest.$ac_ext
7862 ac_cpp='$CPP $CPPFLAGS'
7863 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7864 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7865 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7869 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7870 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7871 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7872 CFLAGS="$SAVE_CFLAGS"
7876 # Find out which ABI we are using.
7877 echo 'int i;' > conftest.$ac_ext
7878 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7879 (eval $ac_compile) 2>&5
7881 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7882 test $ac_status = 0; }; then
7883 case `/usr/bin/file conftest.o` in
7885 case $lt_cv_prog_gnu_ld in
7886 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7888 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7900 need_locks="$enable_libtool_lock"
7904 rhapsody* | darwin*)
7905 if test -n "$ac_tool_prefix"; then
7906 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7907 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7909 $as_echo_n "checking for $ac_word... " >&6; }
7910 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
7911 $as_echo_n "(cached) " >&6
7913 if test -n "$DSYMUTIL"; then
7914 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7920 test -z "$as_dir" && as_dir=.
7921 for ac_exec_ext in '' $ac_executable_extensions; do
7922 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7923 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7924 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7933 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7934 if test -n "$DSYMUTIL"; then
7935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7936 $as_echo "$DSYMUTIL" >&6; }
7938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7939 $as_echo "no" >&6; }
7944 if test -z "$ac_cv_prog_DSYMUTIL"; then
7945 ac_ct_DSYMUTIL=$DSYMUTIL
7946 # Extract the first word of "dsymutil", so it can be a program name with args.
7947 set dummy dsymutil; ac_word=$2
7948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7949 $as_echo_n "checking for $ac_word... " >&6; }
7950 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
7951 $as_echo_n "(cached) " >&6
7953 if test -n "$ac_ct_DSYMUTIL"; then
7954 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7960 test -z "$as_dir" && as_dir=.
7961 for ac_exec_ext in '' $ac_executable_extensions; do
7962 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7963 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7964 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7973 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7974 if test -n "$ac_ct_DSYMUTIL"; then
7975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7976 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7979 $as_echo "no" >&6; }
7982 if test "x$ac_ct_DSYMUTIL" = x; then
7985 case $cross_compiling:$ac_tool_warned in
7987 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7988 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7989 ac_tool_warned=yes ;;
7991 DSYMUTIL=$ac_ct_DSYMUTIL
7994 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7997 if test -n "$ac_tool_prefix"; then
7998 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7999 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8001 $as_echo_n "checking for $ac_word... " >&6; }
8002 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
8003 $as_echo_n "(cached) " >&6
8005 if test -n "$NMEDIT"; then
8006 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8012 test -z "$as_dir" && as_dir=.
8013 for ac_exec_ext in '' $ac_executable_extensions; do
8014 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8015 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8016 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8025 NMEDIT=$ac_cv_prog_NMEDIT
8026 if test -n "$NMEDIT"; then
8027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8028 $as_echo "$NMEDIT" >&6; }
8030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8031 $as_echo "no" >&6; }
8036 if test -z "$ac_cv_prog_NMEDIT"; then
8037 ac_ct_NMEDIT=$NMEDIT
8038 # Extract the first word of "nmedit", so it can be a program name with args.
8039 set dummy nmedit; ac_word=$2
8040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8041 $as_echo_n "checking for $ac_word... " >&6; }
8042 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
8043 $as_echo_n "(cached) " >&6
8045 if test -n "$ac_ct_NMEDIT"; then
8046 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8052 test -z "$as_dir" && as_dir=.
8053 for ac_exec_ext in '' $ac_executable_extensions; do
8054 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8055 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8056 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8065 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8066 if test -n "$ac_ct_NMEDIT"; then
8067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8068 $as_echo "$ac_ct_NMEDIT" >&6; }
8070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8071 $as_echo "no" >&6; }
8074 if test "x$ac_ct_NMEDIT" = x; then
8077 case $cross_compiling:$ac_tool_warned in
8079 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8080 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8081 ac_tool_warned=yes ;;
8083 NMEDIT=$ac_ct_NMEDIT
8086 NMEDIT="$ac_cv_prog_NMEDIT"
8089 if test -n "$ac_tool_prefix"; then
8090 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8091 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8093 $as_echo_n "checking for $ac_word... " >&6; }
8094 if test "${ac_cv_prog_LIPO+set}" = set; then :
8095 $as_echo_n "(cached) " >&6
8097 if test -n "$LIPO"; then
8098 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8104 test -z "$as_dir" && as_dir=.
8105 for ac_exec_ext in '' $ac_executable_extensions; do
8106 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8107 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8108 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8117 LIPO=$ac_cv_prog_LIPO
8118 if test -n "$LIPO"; then
8119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8120 $as_echo "$LIPO" >&6; }
8122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8123 $as_echo "no" >&6; }
8128 if test -z "$ac_cv_prog_LIPO"; then
8130 # Extract the first word of "lipo", so it can be a program name with args.
8131 set dummy lipo; ac_word=$2
8132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8133 $as_echo_n "checking for $ac_word... " >&6; }
8134 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
8135 $as_echo_n "(cached) " >&6
8137 if test -n "$ac_ct_LIPO"; then
8138 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8144 test -z "$as_dir" && as_dir=.
8145 for ac_exec_ext in '' $ac_executable_extensions; do
8146 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8147 ac_cv_prog_ac_ct_LIPO="lipo"
8148 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8157 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8158 if test -n "$ac_ct_LIPO"; then
8159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8160 $as_echo "$ac_ct_LIPO" >&6; }
8162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8163 $as_echo "no" >&6; }
8166 if test "x$ac_ct_LIPO" = x; then
8169 case $cross_compiling:$ac_tool_warned in
8171 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8172 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8173 ac_tool_warned=yes ;;
8178 LIPO="$ac_cv_prog_LIPO"
8181 if test -n "$ac_tool_prefix"; then
8182 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8183 set dummy ${ac_tool_prefix}otool; ac_word=$2
8184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8185 $as_echo_n "checking for $ac_word... " >&6; }
8186 if test "${ac_cv_prog_OTOOL+set}" = set; then :
8187 $as_echo_n "(cached) " >&6
8189 if test -n "$OTOOL"; then
8190 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8196 test -z "$as_dir" && as_dir=.
8197 for ac_exec_ext in '' $ac_executable_extensions; do
8198 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8199 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8200 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8209 OTOOL=$ac_cv_prog_OTOOL
8210 if test -n "$OTOOL"; then
8211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8212 $as_echo "$OTOOL" >&6; }
8214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8215 $as_echo "no" >&6; }
8220 if test -z "$ac_cv_prog_OTOOL"; then
8222 # Extract the first word of "otool", so it can be a program name with args.
8223 set dummy otool; ac_word=$2
8224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8225 $as_echo_n "checking for $ac_word... " >&6; }
8226 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
8227 $as_echo_n "(cached) " >&6
8229 if test -n "$ac_ct_OTOOL"; then
8230 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8236 test -z "$as_dir" && as_dir=.
8237 for ac_exec_ext in '' $ac_executable_extensions; do
8238 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8239 ac_cv_prog_ac_ct_OTOOL="otool"
8240 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8249 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8250 if test -n "$ac_ct_OTOOL"; then
8251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8252 $as_echo "$ac_ct_OTOOL" >&6; }
8254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8255 $as_echo "no" >&6; }
8258 if test "x$ac_ct_OTOOL" = x; then
8261 case $cross_compiling:$ac_tool_warned in
8263 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8264 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8265 ac_tool_warned=yes ;;
8270 OTOOL="$ac_cv_prog_OTOOL"
8273 if test -n "$ac_tool_prefix"; then
8274 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8275 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8277 $as_echo_n "checking for $ac_word... " >&6; }
8278 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
8279 $as_echo_n "(cached) " >&6
8281 if test -n "$OTOOL64"; then
8282 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8288 test -z "$as_dir" && as_dir=.
8289 for ac_exec_ext in '' $ac_executable_extensions; do
8290 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8291 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8292 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8301 OTOOL64=$ac_cv_prog_OTOOL64
8302 if test -n "$OTOOL64"; then
8303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8304 $as_echo "$OTOOL64" >&6; }
8306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8307 $as_echo "no" >&6; }
8312 if test -z "$ac_cv_prog_OTOOL64"; then
8313 ac_ct_OTOOL64=$OTOOL64
8314 # Extract the first word of "otool64", so it can be a program name with args.
8315 set dummy otool64; ac_word=$2
8316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8317 $as_echo_n "checking for $ac_word... " >&6; }
8318 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
8319 $as_echo_n "(cached) " >&6
8321 if test -n "$ac_ct_OTOOL64"; then
8322 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8328 test -z "$as_dir" && as_dir=.
8329 for ac_exec_ext in '' $ac_executable_extensions; do
8330 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8331 ac_cv_prog_ac_ct_OTOOL64="otool64"
8332 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8341 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8342 if test -n "$ac_ct_OTOOL64"; then
8343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8344 $as_echo "$ac_ct_OTOOL64" >&6; }
8346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8347 $as_echo "no" >&6; }
8350 if test "x$ac_ct_OTOOL64" = x; then
8353 case $cross_compiling:$ac_tool_warned in
8355 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8356 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8357 ac_tool_warned=yes ;;
8359 OTOOL64=$ac_ct_OTOOL64
8362 OTOOL64="$ac_cv_prog_OTOOL64"
8391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8392 $as_echo_n "checking for -single_module linker flag... " >&6; }
8393 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
8394 $as_echo_n "(cached) " >&6
8396 lt_cv_apple_cc_single_mod=no
8397 if test -z "${LT_MULTI_MODULE}"; then
8398 # By default we will add the -single_module flag. You can override
8399 # by either setting the environment variable LT_MULTI_MODULE
8400 # non-empty at configure time, or by adding -multi_module to the
8402 rm -rf libconftest.dylib*
8403 echo "int foo(void){return 1;}" > conftest.c
8404 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8405 -dynamiclib -Wl,-single_module conftest.c" >&5
8406 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8407 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8409 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8410 lt_cv_apple_cc_single_mod=yes
8412 cat conftest.err >&5
8414 rm -rf libconftest.dylib*
8418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8419 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8421 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8422 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
8423 $as_echo_n "(cached) " >&6
8425 lt_cv_ld_exported_symbols_list=no
8426 save_LDFLAGS=$LDFLAGS
8427 echo "_main" > conftest.sym
8428 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8430 /* end confdefs.h. */
8440 if ac_fn_c_try_link "$LINENO"; then :
8441 lt_cv_ld_exported_symbols_list=yes
8443 lt_cv_ld_exported_symbols_list=no
8445 rm -f core conftest.err conftest.$ac_objext \
8446 conftest$ac_exeext conftest.$ac_ext
8447 LDFLAGS="$save_LDFLAGS"
8450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8451 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8453 rhapsody* | darwin1.[012])
8454 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8456 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8457 darwin*) # darwin 5.x on
8458 # if running on 10.5 or later, the deployment target defaults
8459 # to the OS version, if on x86, and 10.4, the deployment
8460 # target defaults to 10.4. Don't you love it?
8461 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8462 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8463 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8465 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8467 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8471 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8472 _lt_dar_single_mod='$single_module'
8474 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8475 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8477 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8479 if test "$DSYMUTIL" != ":"; then
8480 _lt_dsymutil='~$DSYMUTIL $lib || :'
8487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8488 $as_echo_n "checking for ANSI C header files... " >&6; }
8489 if test "${ac_cv_header_stdc+set}" = set; then :
8490 $as_echo_n "(cached) " >&6
8492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8493 /* end confdefs.h. */
8507 if ac_fn_c_try_compile "$LINENO"; then :
8508 ac_cv_header_stdc=yes
8510 ac_cv_header_stdc=no
8512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8514 if test $ac_cv_header_stdc = yes; then
8515 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8517 /* end confdefs.h. */
8521 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8522 $EGREP "memchr" >/dev/null 2>&1; then :
8525 ac_cv_header_stdc=no
8531 if test $ac_cv_header_stdc = yes; then
8532 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8534 /* end confdefs.h. */
8538 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8539 $EGREP "free" >/dev/null 2>&1; then :
8542 ac_cv_header_stdc=no
8548 if test $ac_cv_header_stdc = yes; then
8549 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8550 if test "$cross_compiling" = yes; then :
8553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8554 /* end confdefs.h. */
8557 #if ((' ' & 0x0FF) == 0x020)
8558 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8559 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8561 # define ISLOWER(c) \
8562 (('a' <= (c) && (c) <= 'i') \
8563 || ('j' <= (c) && (c) <= 'r') \
8564 || ('s' <= (c) && (c) <= 'z'))
8565 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8568 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8573 for (i = 0; i < 256; i++)
8574 if (XOR (islower (i), ISLOWER (i))
8575 || toupper (i) != TOUPPER (i))
8580 if ac_fn_c_try_run "$LINENO"; then :
8583 ac_cv_header_stdc=no
8585 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8586 conftest.$ac_objext conftest.beam conftest.$ac_ext
8591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8592 $as_echo "$ac_cv_header_stdc" >&6; }
8593 if test $ac_cv_header_stdc = yes; then
8595 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8599 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8600 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8601 inttypes.h stdint.h unistd.h
8603 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8604 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8606 eval as_val=\$$as_ac_Header
8607 if test "x$as_val" = x""yes; then :
8608 cat >>confdefs.h <<_ACEOF
8609 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8617 for ac_header in dlfcn.h
8619 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8621 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
8622 cat >>confdefs.h <<_ACEOF
8623 #define HAVE_DLFCN_H 1
8633 ac_cpp='$CXXCPP $CPPFLAGS'
8634 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8635 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8636 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8637 if test -z "$CXX"; then
8638 if test -n "$CCC"; then
8641 if test -n "$ac_tool_prefix"; then
8642 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
8644 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8645 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8647 $as_echo_n "checking for $ac_word... " >&6; }
8648 if test "${ac_cv_prog_CXX+set}" = set; then :
8649 $as_echo_n "(cached) " >&6
8651 if test -n "$CXX"; then
8652 ac_cv_prog_CXX="$CXX" # Let the user override the test.
8654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8658 test -z "$as_dir" && as_dir=.
8659 for ac_exec_ext in '' $ac_executable_extensions; do
8660 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8661 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
8662 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8672 if test -n "$CXX"; then
8673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
8674 $as_echo "$CXX" >&6; }
8676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8677 $as_echo "no" >&6; }
8681 test -n "$CXX" && break
8684 if test -z "$CXX"; then
8686 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
8688 # Extract the first word of "$ac_prog", so it can be a program name with args.
8689 set dummy $ac_prog; ac_word=$2
8690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8691 $as_echo_n "checking for $ac_word... " >&6; }
8692 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
8693 $as_echo_n "(cached) " >&6
8695 if test -n "$ac_ct_CXX"; then
8696 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
8698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8702 test -z "$as_dir" && as_dir=.
8703 for ac_exec_ext in '' $ac_executable_extensions; do
8704 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8705 ac_cv_prog_ac_ct_CXX="$ac_prog"
8706 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8715 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
8716 if test -n "$ac_ct_CXX"; then
8717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
8718 $as_echo "$ac_ct_CXX" >&6; }
8720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8721 $as_echo "no" >&6; }
8725 test -n "$ac_ct_CXX" && break
8728 if test "x$ac_ct_CXX" = x; then
8731 case $cross_compiling:$ac_tool_warned in
8733 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8734 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8735 ac_tool_warned=yes ;;
8743 # Provide some information about the compiler.
8744 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
8747 for ac_option in --version -v -V -qversion; do
8748 { { ac_try="$ac_compiler $ac_option >&5"
8750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8751 *) ac_try_echo=$ac_try;;
8753 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
8754 $as_echo "$ac_try_echo"; } >&5
8755 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
8757 if test -s conftest.err; then
8759 ... rest of stderr output deleted ...
8760 10q' conftest.err >conftest.er1
8761 cat conftest.er1 >&5
8763 rm -f conftest.er1 conftest.err
8764 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8765 test $ac_status = 0; }
8768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
8769 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
8770 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
8771 $as_echo_n "(cached) " >&6
8773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8774 /* end confdefs.h. */
8787 if ac_fn_cxx_try_compile "$LINENO"; then :
8792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8793 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
8796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
8797 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
8798 if test $ac_compiler_gnu = yes; then
8803 ac_test_CXXFLAGS=${CXXFLAGS+set}
8804 ac_save_CXXFLAGS=$CXXFLAGS
8805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
8806 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
8807 if test "${ac_cv_prog_cxx_g+set}" = set; then :
8808 $as_echo_n "(cached) " >&6
8810 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
8811 ac_cxx_werror_flag=yes
8814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8815 /* end confdefs.h. */
8825 if ac_fn_cxx_try_compile "$LINENO"; then :
8826 ac_cv_prog_cxx_g=yes
8829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8830 /* end confdefs.h. */
8840 if ac_fn_cxx_try_compile "$LINENO"; then :
8843 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8846 /* end confdefs.h. */
8856 if ac_fn_cxx_try_compile "$LINENO"; then :
8857 ac_cv_prog_cxx_g=yes
8859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8864 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
8867 $as_echo "$ac_cv_prog_cxx_g" >&6; }
8868 if test "$ac_test_CXXFLAGS" = set; then
8869 CXXFLAGS=$ac_save_CXXFLAGS
8870 elif test $ac_cv_prog_cxx_g = yes; then
8871 if test "$GXX" = yes; then
8877 if test "$GXX" = yes; then
8884 ac_cpp='$CPP $CPPFLAGS'
8885 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8886 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8887 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8889 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
8890 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
8891 (test "X$CXX" != "Xg++"))) ; then
8893 ac_cpp='$CXXCPP $CPPFLAGS'
8894 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8895 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8896 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
8898 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
8899 if test -z "$CXXCPP"; then
8900 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
8901 $as_echo_n "(cached) " >&6
8903 # Double quotes because CXXCPP needs to be expanded
8904 for CXXCPP in "$CXX -E" "/lib/cpp"
8907 for ac_cxx_preproc_warn_flag in '' yes
8909 # Use a header file that comes with gcc, so configuring glibc
8910 # with a fresh cross-compiler works.
8911 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8912 # <limits.h> exists even on freestanding compilers.
8913 # On the NeXT, cc -E runs the code through the compiler's parser,
8914 # not just through cpp. "Syntax error" is here to catch this case.
8915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8916 /* end confdefs.h. */
8918 # include <limits.h>
8920 # include <assert.h>
8924 if ac_fn_cxx_try_cpp "$LINENO"; then :
8927 # Broken: fails on valid input.
8930 rm -f conftest.err conftest.$ac_ext
8932 # OK, works on sane cases. Now check whether nonexistent headers
8933 # can be detected and how.
8934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8935 /* end confdefs.h. */
8936 #include <ac_nonexistent.h>
8938 if ac_fn_cxx_try_cpp "$LINENO"; then :
8939 # Broken: success on invalid input.
8942 # Passes both tests.
8946 rm -f conftest.err conftest.$ac_ext
8949 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8950 rm -f conftest.err conftest.$ac_ext
8951 if $ac_preproc_ok; then :
8956 ac_cv_prog_CXXCPP=$CXXCPP
8959 CXXCPP=$ac_cv_prog_CXXCPP
8961 ac_cv_prog_CXXCPP=$CXXCPP
8963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
8964 $as_echo "$CXXCPP" >&6; }
8966 for ac_cxx_preproc_warn_flag in '' yes
8968 # Use a header file that comes with gcc, so configuring glibc
8969 # with a fresh cross-compiler works.
8970 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8971 # <limits.h> exists even on freestanding compilers.
8972 # On the NeXT, cc -E runs the code through the compiler's parser,
8973 # not just through cpp. "Syntax error" is here to catch this case.
8974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8975 /* end confdefs.h. */
8977 # include <limits.h>
8979 # include <assert.h>
8983 if ac_fn_cxx_try_cpp "$LINENO"; then :
8986 # Broken: fails on valid input.
8989 rm -f conftest.err conftest.$ac_ext
8991 # OK, works on sane cases. Now check whether nonexistent headers
8992 # can be detected and how.
8993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8994 /* end confdefs.h. */
8995 #include <ac_nonexistent.h>
8997 if ac_fn_cxx_try_cpp "$LINENO"; then :
8998 # Broken: success on invalid input.
9001 # Passes both tests.
9005 rm -f conftest.err conftest.$ac_ext
9008 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9009 rm -f conftest.err conftest.$ac_ext
9010 if $ac_preproc_ok; then :
9013 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9014 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9015 _lt_caught_CXX_error=yes; }
9019 ac_cpp='$CPP $CPPFLAGS'
9020 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9021 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9022 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9025 _lt_caught_CXX_error=yes
9033 # Check whether --enable-shared was given.
9034 if test "${enable_shared+set}" = set; then :
9035 enableval=$enable_shared; p=${PACKAGE-default}
9037 yes) enable_shared=yes ;;
9038 no) enable_shared=no ;;
9041 # Look at the argument we got. We use all the common list separators.
9042 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9043 for pkg in $enableval; do
9045 if test "X$pkg" = "X$p"; then
9062 # Check whether --enable-static was given.
9063 if test "${enable_static+set}" = set; then :
9064 enableval=$enable_static; p=${PACKAGE-default}
9066 yes) enable_static=yes ;;
9067 no) enable_static=no ;;
9070 # Look at the argument we got. We use all the common list separators.
9071 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9072 for pkg in $enableval; do
9074 if test "X$pkg" = "X$p"; then
9103 # Check whether --with-pic was given.
9104 if test "${with_pic+set}" = set; then :
9105 withval=$with_pic; pic_mode="$withval"
9111 test -z "$pic_mode" && pic_mode=default
9119 # Check whether --enable-fast-install was given.
9120 if test "${enable_fast_install+set}" = set; then :
9121 enableval=$enable_fast_install; p=${PACKAGE-default}
9123 yes) enable_fast_install=yes ;;
9124 no) enable_fast_install=no ;;
9126 enable_fast_install=no
9127 # Look at the argument we got. We use all the common list separators.
9128 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9129 for pkg in $enableval; do
9131 if test "X$pkg" = "X$p"; then
9132 enable_fast_install=yes
9139 enable_fast_install=yes
9152 # This can be used to rebuild libtool when needed
9153 LIBTOOL_DEPS="$ltmain"
9155 # Always use our own libtool.
9156 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9182 test -z "$LN_S" && LN_S="ln -s"
9197 if test -n "${ZSH_VERSION+set}" ; then
9198 setopt NO_GLOB_SUBST
9201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9202 $as_echo_n "checking for objdir... " >&6; }
9203 if test "${lt_cv_objdir+set}" = set; then :
9204 $as_echo_n "(cached) " >&6
9206 rm -f .libs 2>/dev/null
9207 mkdir .libs 2>/dev/null
9208 if test -d .libs; then
9211 # MS-DOS does not allow filenames that begin with a dot.
9214 rmdir .libs 2>/dev/null
9216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9217 $as_echo "$lt_cv_objdir" >&6; }
9218 objdir=$lt_cv_objdir
9224 cat >>confdefs.h <<_ACEOF
9225 #define LT_OBJDIR "$lt_cv_objdir/"
9246 # AIX sometimes has problems with the GCC collect2 program. For some
9247 # reason, if we set the COLLECT_NAMES environment variable, the problems
9248 # vanish in a puff of smoke.
9249 if test "X${COLLECT_NAMES+set}" != Xset; then
9251 export COLLECT_NAMES
9256 # Sed substitution that helps us do robust quoting. It backslashifies
9257 # metacharacters that are still active within double-quoted strings.
9258 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
9260 # Same as above, but do not quote variable references.
9261 double_quote_subst='s/\(["`\\]\)/\\\1/g'
9263 # Sed substitution to delay expansion of an escaped shell variable in a
9264 # double_quote_subst'ed string.
9265 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
9267 # Sed substitution to delay expansion of an escaped single quote.
9268 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
9270 # Sed substitution to avoid accidental globbing in evaled expressions
9271 no_glob_subst='s/\*/\\\*/g'
9275 can_build_shared=yes
9277 # All known linkers require a `.a' archive for static linking (except MSVC,
9278 # which needs '.lib').
9281 with_gnu_ld="$lt_cv_prog_gnu_ld"
9284 old_CFLAGS="$CFLAGS"
9286 # Set sane defaults for various variables
9287 test -z "$CC" && CC=cc
9288 test -z "$LTCC" && LTCC=$CC
9289 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9290 test -z "$LD" && LD=ld
9291 test -z "$ac_objext" && ac_objext=o
9293 for cc_temp in $compiler""; do
9295 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9296 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9301 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9304 # Only perform the check for file, if the check method requires it
9305 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9306 case $deplibs_check_method in
9308 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9310 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9311 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
9312 $as_echo_n "(cached) " >&6
9316 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9319 lt_save_MAGIC_CMD="$MAGIC_CMD"
9320 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9321 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9322 for ac_dir in $ac_dummy; do
9324 test -z "$ac_dir" && ac_dir=.
9325 if test -f $ac_dir/${ac_tool_prefix}file; then
9326 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9327 if test -n "$file_magic_test_file"; then
9328 case $deplibs_check_method in
9330 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9331 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9332 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9333 $EGREP "$file_magic_regex" > /dev/null; then
9338 *** Warning: the command libtool uses to detect shared libraries,
9339 *** $file_magic_cmd, produces output that libtool cannot recognize.
9340 *** The result is that libtool may fail to recognize shared libraries
9341 *** as such. This will affect the creation of libtool libraries that
9342 *** depend on shared libraries, but programs linked with such libtool
9343 *** libraries will work regardless of this problem. Nevertheless, you
9344 *** may want to report the problem to your system manager and/or to
9345 *** bug-libtool@gnu.org
9355 MAGIC_CMD="$lt_save_MAGIC_CMD"
9360 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9361 if test -n "$MAGIC_CMD"; then
9362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9363 $as_echo "$MAGIC_CMD" >&6; }
9365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9366 $as_echo "no" >&6; }
9373 if test -z "$lt_cv_path_MAGIC_CMD"; then
9374 if test -n "$ac_tool_prefix"; then
9375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9376 $as_echo_n "checking for file... " >&6; }
9377 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
9378 $as_echo_n "(cached) " >&6
9382 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9385 lt_save_MAGIC_CMD="$MAGIC_CMD"
9386 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9387 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9388 for ac_dir in $ac_dummy; do
9390 test -z "$ac_dir" && ac_dir=.
9391 if test -f $ac_dir/file; then
9392 lt_cv_path_MAGIC_CMD="$ac_dir/file"
9393 if test -n "$file_magic_test_file"; then
9394 case $deplibs_check_method in
9396 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9397 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9398 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9399 $EGREP "$file_magic_regex" > /dev/null; then
9404 *** Warning: the command libtool uses to detect shared libraries,
9405 *** $file_magic_cmd, produces output that libtool cannot recognize.
9406 *** The result is that libtool may fail to recognize shared libraries
9407 *** as such. This will affect the creation of libtool libraries that
9408 *** depend on shared libraries, but programs linked with such libtool
9409 *** libraries will work regardless of this problem. Nevertheless, you
9410 *** may want to report the problem to your system manager and/or to
9411 *** bug-libtool@gnu.org
9421 MAGIC_CMD="$lt_save_MAGIC_CMD"
9426 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9427 if test -n "$MAGIC_CMD"; then
9428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9429 $as_echo "$MAGIC_CMD" >&6; }
9431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9432 $as_echo "no" >&6; }
9445 # Use C for the default configuration in the libtool script
9449 ac_cpp='$CPP $CPPFLAGS'
9450 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9451 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9452 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9455 # Source file extension for C test sources.
9458 # Object file extension for compiled C test sources.
9462 # Code to be used in simple compile tests
9463 lt_simple_compile_test_code="int some_variable = 0;"
9465 # Code to be used in simple link tests
9466 lt_simple_link_test_code='int main(){return(0);}'
9474 # If no C compiler was specified, use CC.
9477 # If no C compiler flags were specified, use CFLAGS.
9478 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9480 # Allow CC to be a program name with arguments.
9483 # Save the default compiler, since it gets overwritten when the other
9484 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9485 compiler_DEFAULT=$CC
9487 # save warnings/boilerplate of simple test code
9488 ac_outfile=conftest.$ac_objext
9489 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9490 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9491 _lt_compiler_boilerplate=`cat conftest.err`
9494 ac_outfile=conftest.$ac_objext
9495 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9496 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9497 _lt_linker_boilerplate=`cat conftest.err`
9502 ## There is no encapsulation within the following macros, do not change
9503 ## the running order or otherwise move them around unless you know exactly
9504 ## what you are doing...
9505 if test -n "$compiler"; then
9507 lt_prog_compiler_no_builtin_flag=
9509 if test "$GCC" = yes; then
9510 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
9512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9513 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9514 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
9515 $as_echo_n "(cached) " >&6
9517 lt_cv_prog_compiler_rtti_exceptions=no
9518 ac_outfile=conftest.$ac_objext
9519 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9520 lt_compiler_flag="-fno-rtti -fno-exceptions"
9521 # Insert the option either (1) after the last *FLAGS variable, or
9522 # (2) before a word containing "conftest.", or (3) at the end.
9523 # Note that $ac_compile itself does not contain backslashes and begins
9524 # with a dollar sign (not a hyphen), so the echo should work correctly.
9525 # The option is referenced via a variable to avoid confusing sed.
9526 lt_compile=`echo "$ac_compile" | $SED \
9527 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9528 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9529 -e 's:$: $lt_compiler_flag:'`
9530 (eval echo "\"\$as_me:9530: $lt_compile\"" >&5)
9531 (eval "$lt_compile" 2>conftest.err)
9533 cat conftest.err >&5
9534 echo "$as_me:9534: \$? = $ac_status" >&5
9535 if (exit $ac_status) && test -s "$ac_outfile"; then
9536 # The compiler can only warn and ignore the option if not recognized
9537 # So say no if there are warnings other than the usual output.
9538 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9539 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9540 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9541 lt_cv_prog_compiler_rtti_exceptions=yes
9547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9548 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9550 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9551 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9563 lt_prog_compiler_wl=
9564 lt_prog_compiler_pic=
9565 lt_prog_compiler_static=
9567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9568 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9570 if test "$GCC" = yes; then
9571 lt_prog_compiler_wl='-Wl,'
9572 lt_prog_compiler_static='-static'
9576 # All AIX code is PIC.
9577 if test "$host_cpu" = ia64; then
9578 # AIX 5 now supports IA64 processor
9579 lt_prog_compiler_static='-Bstatic'
9586 # see comment about AmigaOS4 .so support
9587 lt_prog_compiler_pic='-fPIC'
9590 # FIXME: we need at least 68020 code to build shared libraries, but
9591 # adding the `-m68020' flag to GCC prevents building anything better,
9593 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9598 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9599 # PIC is the default for these OSes.
9602 mingw* | cygwin* | pw32* | os2* | cegcc*)
9603 # This hack is so that the source file can tell whether it is being
9604 # built for inclusion in a dll (and should export symbols for example).
9605 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9606 # (--disable-auto-import) libraries
9607 lt_prog_compiler_pic='-DDLL_EXPORT'
9610 darwin* | rhapsody*)
9611 # PIC is the default on this platform
9612 # Common symbols not allowed in MH_DYLIB files
9613 lt_prog_compiler_pic='-fno-common'
9617 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9618 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9619 # sets the default TLS model and affects inlining.
9625 lt_prog_compiler_pic='-fPIC'
9631 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9632 # Instead, we relocate shared libraries at runtime.
9636 # Just because we use GCC doesn't mean we suddenly get shared libraries
9637 # on systems that don't support them.
9638 lt_prog_compiler_can_build_shared=no
9643 # QNX uses GNU C++, but need to define -shared option too, otherwise
9645 lt_prog_compiler_pic='-fPIC -shared'
9649 if test -d /usr/nec; then
9650 lt_prog_compiler_pic=-Kconform_pic
9655 lt_prog_compiler_pic='-fPIC'
9659 # PORTME Check for flag to pass linker flags through the system compiler.
9662 lt_prog_compiler_wl='-Wl,'
9663 if test "$host_cpu" = ia64; then
9664 # AIX 5 now supports IA64 processor
9665 lt_prog_compiler_static='-Bstatic'
9667 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9671 mingw* | cygwin* | pw32* | os2* | cegcc*)
9672 # This hack is so that the source file can tell whether it is being
9673 # built for inclusion in a dll (and should export symbols for example).
9674 lt_prog_compiler_pic='-DDLL_EXPORT'
9677 hpux9* | hpux10* | hpux11*)
9678 lt_prog_compiler_wl='-Wl,'
9679 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9686 lt_prog_compiler_pic='+Z'
9689 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9690 lt_prog_compiler_static='${wl}-a ${wl}archive'
9693 irix5* | irix6* | nonstopux*)
9694 lt_prog_compiler_wl='-Wl,'
9695 # PIC (with -KPIC) is the default.
9696 lt_prog_compiler_static='-non_shared'
9699 linux* | k*bsd*-gnu)
9700 case $cc_basename in
9701 # old Intel for x86_64 which still supported -KPIC.
9703 lt_prog_compiler_wl='-Wl,'
9704 lt_prog_compiler_pic='-KPIC'
9705 lt_prog_compiler_static='-static'
9707 # icc used to be incompatible with GCC.
9708 # ICC 10 doesn't accept -KPIC any more.
9710 lt_prog_compiler_wl='-Wl,'
9711 lt_prog_compiler_pic='-fPIC'
9712 lt_prog_compiler_static='-static'
9714 # Lahey Fortran 8.1.
9716 lt_prog_compiler_wl='-Wl,'
9717 lt_prog_compiler_pic='--shared'
9718 lt_prog_compiler_static='--static'
9720 pgcc* | pgf77* | pgf90* | pgf95*)
9721 # Portland Group compilers (*not* the Pentium gcc compiler,
9722 # which looks to be a dead project)
9723 lt_prog_compiler_wl='-Wl,'
9724 lt_prog_compiler_pic='-fpic'
9725 lt_prog_compiler_static='-Bstatic'
9728 lt_prog_compiler_wl='-Wl,'
9729 # All Alpha code is PIC.
9730 lt_prog_compiler_static='-non_shared'
9733 # IBM XL C 8.0/Fortran 10.1 on PPC
9734 lt_prog_compiler_wl='-Wl,'
9735 lt_prog_compiler_pic='-qpic'
9736 lt_prog_compiler_static='-qstaticlink'
9739 case `$CC -V 2>&1 | sed 5q` in
9742 lt_prog_compiler_pic='-KPIC'
9743 lt_prog_compiler_static='-Bstatic'
9744 lt_prog_compiler_wl='-Wl,'
9747 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9748 lt_prog_compiler_pic='-KPIC'
9749 lt_prog_compiler_static='-Bstatic'
9750 lt_prog_compiler_wl=''
9758 lt_prog_compiler_pic='-KPIC'
9759 lt_prog_compiler_static='-Bstatic'
9763 # QNX uses GNU C++, but need to define -shared option too, otherwise
9765 lt_prog_compiler_pic='-fPIC -shared'
9768 osf3* | osf4* | osf5*)
9769 lt_prog_compiler_wl='-Wl,'
9770 # All OSF/1 code is PIC.
9771 lt_prog_compiler_static='-non_shared'
9775 lt_prog_compiler_static='-non_shared'
9779 lt_prog_compiler_pic='-KPIC'
9780 lt_prog_compiler_static='-Bstatic'
9781 case $cc_basename in
9783 lt_prog_compiler_wl='-Qoption ld ';;
9785 lt_prog_compiler_wl='-Wl,';;
9790 lt_prog_compiler_wl='-Qoption ld '
9791 lt_prog_compiler_pic='-PIC'
9792 lt_prog_compiler_static='-Bstatic'
9795 sysv4 | sysv4.2uw2* | sysv4.3*)
9796 lt_prog_compiler_wl='-Wl,'
9797 lt_prog_compiler_pic='-KPIC'
9798 lt_prog_compiler_static='-Bstatic'
9802 if test -d /usr/nec ;then
9803 lt_prog_compiler_pic='-Kconform_pic'
9804 lt_prog_compiler_static='-Bstatic'
9808 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9809 lt_prog_compiler_wl='-Wl,'
9810 lt_prog_compiler_pic='-KPIC'
9811 lt_prog_compiler_static='-Bstatic'
9815 lt_prog_compiler_wl='-Wl,'
9816 lt_prog_compiler_can_build_shared=no
9820 lt_prog_compiler_pic='-pic'
9821 lt_prog_compiler_static='-Bstatic'
9825 lt_prog_compiler_can_build_shared=no
9831 # For platforms which do not support PIC, -DPIC is meaningless:
9833 lt_prog_compiler_pic=
9836 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9840 $as_echo "$lt_prog_compiler_pic" >&6; }
9848 # Check to make sure the PIC flag actually works.
9850 if test -n "$lt_prog_compiler_pic"; then
9851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9852 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9853 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
9854 $as_echo_n "(cached) " >&6
9856 lt_cv_prog_compiler_pic_works=no
9857 ac_outfile=conftest.$ac_objext
9858 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9859 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9860 # Insert the option either (1) after the last *FLAGS variable, or
9861 # (2) before a word containing "conftest.", or (3) at the end.
9862 # Note that $ac_compile itself does not contain backslashes and begins
9863 # with a dollar sign (not a hyphen), so the echo should work correctly.
9864 # The option is referenced via a variable to avoid confusing sed.
9865 lt_compile=`echo "$ac_compile" | $SED \
9866 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9867 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9868 -e 's:$: $lt_compiler_flag:'`
9869 (eval echo "\"\$as_me:9869: $lt_compile\"" >&5)
9870 (eval "$lt_compile" 2>conftest.err)
9872 cat conftest.err >&5
9873 echo "$as_me:9873: \$? = $ac_status" >&5
9874 if (exit $ac_status) && test -s "$ac_outfile"; then
9875 # The compiler can only warn and ignore the option if not recognized
9876 # So say no if there are warnings other than the usual output.
9877 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9878 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9879 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9880 lt_cv_prog_compiler_pic_works=yes
9886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9887 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9889 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9890 case $lt_prog_compiler_pic in
9892 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9895 lt_prog_compiler_pic=
9896 lt_prog_compiler_can_build_shared=no
9907 # Check to make sure the static flag actually works.
9909 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9911 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9912 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
9913 $as_echo_n "(cached) " >&6
9915 lt_cv_prog_compiler_static_works=no
9916 save_LDFLAGS="$LDFLAGS"
9917 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9918 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9919 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9920 # The linker can only warn and ignore the option if not recognized
9921 # So say no if there are warnings
9922 if test -s conftest.err; then
9923 # Append any errors to the config.log.
9924 cat conftest.err 1>&5
9925 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9926 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9927 if diff conftest.exp conftest.er2 >/dev/null; then
9928 lt_cv_prog_compiler_static_works=yes
9931 lt_cv_prog_compiler_static_works=yes
9935 LDFLAGS="$save_LDFLAGS"
9938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9939 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9941 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9944 lt_prog_compiler_static=
9953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9954 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9955 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9956 $as_echo_n "(cached) " >&6
9958 lt_cv_prog_compiler_c_o=no
9959 $RM -r conftest 2>/dev/null
9963 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9965 lt_compiler_flag="-o out/conftest2.$ac_objext"
9966 # Insert the option either (1) after the last *FLAGS variable, or
9967 # (2) before a word containing "conftest.", or (3) at the end.
9968 # Note that $ac_compile itself does not contain backslashes and begins
9969 # with a dollar sign (not a hyphen), so the echo should work correctly.
9970 lt_compile=`echo "$ac_compile" | $SED \
9971 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9972 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9973 -e 's:$: $lt_compiler_flag:'`
9974 (eval echo "\"\$as_me:9974: $lt_compile\"" >&5)
9975 (eval "$lt_compile" 2>out/conftest.err)
9977 cat out/conftest.err >&5
9978 echo "$as_me:9978: \$? = $ac_status" >&5
9979 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9981 # The compiler can only warn and ignore the option if not recognized
9982 # So say no if there are warnings
9983 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9984 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9985 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9986 lt_cv_prog_compiler_c_o=yes
9991 # SGI C++ compiler will create directory out/ii_files/ for
9992 # template instantiation
9993 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9994 $RM out/* && rmdir out
10000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10001 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10009 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10010 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
10011 $as_echo_n "(cached) " >&6
10013 lt_cv_prog_compiler_c_o=no
10014 $RM -r conftest 2>/dev/null
10018 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10020 lt_compiler_flag="-o out/conftest2.$ac_objext"
10021 # Insert the option either (1) after the last *FLAGS variable, or
10022 # (2) before a word containing "conftest.", or (3) at the end.
10023 # Note that $ac_compile itself does not contain backslashes and begins
10024 # with a dollar sign (not a hyphen), so the echo should work correctly.
10025 lt_compile=`echo "$ac_compile" | $SED \
10026 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10027 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10028 -e 's:$: $lt_compiler_flag:'`
10029 (eval echo "\"\$as_me:10029: $lt_compile\"" >&5)
10030 (eval "$lt_compile" 2>out/conftest.err)
10032 cat out/conftest.err >&5
10033 echo "$as_me:10033: \$? = $ac_status" >&5
10034 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10036 # The compiler can only warn and ignore the option if not recognized
10037 # So say no if there are warnings
10038 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
10039 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10040 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10041 lt_cv_prog_compiler_c_o=yes
10046 # SGI C++ compiler will create directory out/ii_files/ for
10047 # template instantiation
10048 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10049 $RM out/* && rmdir out
10055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10056 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10061 hard_links="nottested"
10062 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10063 # do not overwrite the value of need_locks provided by the user
10064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10065 $as_echo_n "checking if we can lock with hard links... " >&6; }
10068 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10070 ln conftest.a conftest.b 2>&5 || hard_links=no
10071 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10073 $as_echo "$hard_links" >&6; }
10074 if test "$hard_links" = no; then
10075 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10076 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10089 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10092 allow_undefined_flag=
10093 always_export_symbols=no
10095 archive_expsym_cmds=
10096 compiler_needs_object=no
10097 enable_shared_with_static_runtimes=no
10098 export_dynamic_flag_spec=
10099 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10100 hardcode_automatic=no
10102 hardcode_direct_absolute=no
10103 hardcode_libdir_flag_spec=
10104 hardcode_libdir_flag_spec_ld=
10105 hardcode_libdir_separator=
10106 hardcode_minus_L=no
10107 hardcode_shlibpath_var=unsupported
10109 link_all_deplibs=unknown
10111 module_expsym_cmds=
10112 old_archive_from_new_cmds=
10113 old_archive_from_expsyms_cmds=
10114 thread_safe_flag_spec=
10115 whole_archive_flag_spec=
10116 # include_expsyms should be a list of space-separated symbols to be *always*
10117 # included in the symbol list
10119 # exclude_expsyms can be an extended regexp of symbols to exclude
10120 # it will be wrapped by ` (' and `)$', so one must not match beginning or
10121 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10122 # as well as any symbol that contains `d'.
10123 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10124 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10125 # platforms (ab)use it in PIC code, but their linkers get confused if
10126 # the symbol is explicitly referenced. Since portable code cannot
10127 # rely on this symbol name, it's probably fine to never include it in
10128 # preloaded symbol tables.
10129 # Exclude shared library initialization/finalization symbols.
10130 extract_expsyms_cmds=
10133 cygwin* | mingw* | pw32* | cegcc*)
10134 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10135 # When not using gcc, we currently assume that we are using
10136 # Microsoft Visual C++.
10137 if test "$GCC" != yes; then
10142 # we just hope/assume this is gcc and not c89 (= MSVC++)
10151 if test "$with_gnu_ld" = yes; then
10152 # If archive_cmds runs LD, not CC, wlarc should be empty
10155 # Set some defaults for GNU ld with shared library support. These
10156 # are reset later if shared libraries are not supported. Putting them
10157 # here allows them to be overridden if necessary.
10158 runpath_var=LD_RUN_PATH
10159 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10160 export_dynamic_flag_spec='${wl}--export-dynamic'
10161 # ancient GNU ld didn't support --whole-archive et. al.
10162 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10163 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10165 whole_archive_flag_spec=
10167 supports_anon_versioning=no
10168 case `$LD -v 2>&1` in
10169 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10170 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10171 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10172 *\ 2.11.*) ;; # other 2.11 versions
10173 *) supports_anon_versioning=yes ;;
10176 # See if GNU ld supports shared libraries.
10179 # On AIX/PPC, the GNU linker is very broken
10180 if test "$host_cpu" != ia64; then
10184 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
10185 *** to be unable to reliably create shared libraries on AIX.
10186 *** Therefore, libtool is disabling shared libraries support. If you
10187 *** really care for shared libraries, you may want to modify your PATH
10188 *** so that a non-GNU linker is found, and then restart.
10197 # see comment about AmigaOS4 .so support
10198 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10199 archive_expsym_cmds=''
10202 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)'
10203 hardcode_libdir_flag_spec='-L$libdir'
10204 hardcode_minus_L=yes
10210 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10211 allow_undefined_flag=unsupported
10212 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10213 # support --undefined. This deserves some investigation. FIXME
10214 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10220 cygwin* | mingw* | pw32* | cegcc*)
10221 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10222 # as there is no search path for DLLs.
10223 hardcode_libdir_flag_spec='-L$libdir'
10224 allow_undefined_flag=unsupported
10225 always_export_symbols=no
10226 enable_shared_with_static_runtimes=yes
10227 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10229 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10230 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10231 # If the export-symbols file already is a .def file (1st line
10232 # is EXPORTS), use it as is; otherwise, prepend...
10233 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10234 cp $export_symbols $output_objdir/$soname.def;
10236 echo EXPORTS > $output_objdir/$soname.def;
10237 cat $export_symbols >> $output_objdir/$soname.def;
10239 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10247 hardcode_shlibpath_var=no
10248 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10249 export_dynamic_flag_spec='${wl}-E'
10250 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10251 # Instead, shared libraries are loaded at an image base (0x10000000 by
10252 # default) and relocated if they conflict, which is a slow very memory
10253 # consuming and fragmenting process. To avoid this, we pick a random,
10254 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10255 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10256 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10257 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'
10260 gnu* | linux* | tpf* | k*bsd*-gnu)
10262 if test "$host_os" = linux-dietlibc; then
10263 case $cc_basename in
10264 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10267 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10268 && test "$tmp_diet" = no
10271 tmp_sharedflag='-shared'
10272 case $cc_basename,$host_cpu in
10273 pgcc*) # Portland Group C compiler
10274 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'
10275 tmp_addflag=' $pic_flag'
10277 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
10278 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'
10279 tmp_addflag=' $pic_flag -Mnomain' ;;
10280 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10281 tmp_addflag=' -i_dynamic' ;;
10282 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10283 tmp_addflag=' -i_dynamic -nofor_main' ;;
10284 ifc* | ifort*) # Intel Fortran compiler
10285 tmp_addflag=' -nofor_main' ;;
10286 lf95*) # Lahey Fortran 8.1
10287 whole_archive_flag_spec=
10288 tmp_sharedflag='--shared' ;;
10289 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10290 tmp_sharedflag='-qmkshrobj'
10293 case `$CC -V 2>&1 | sed 5q` in
10294 *Sun\ C*) # Sun C 5.9
10295 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'
10296 compiler_needs_object=yes
10297 tmp_sharedflag='-G' ;;
10298 *Sun\ F*) # Sun Fortran 8.3
10299 tmp_sharedflag='-G' ;;
10301 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10303 if test "x$supports_anon_versioning" = xyes; then
10304 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10305 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10306 echo "local: *; };" >> $output_objdir/$libname.ver~
10307 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10310 case $cc_basename in
10312 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10313 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10314 hardcode_libdir_flag_spec=
10315 hardcode_libdir_flag_spec_ld='-rpath $libdir'
10316 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
10317 if test "x$supports_anon_versioning" = xyes; then
10318 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10319 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10320 echo "local: *; };" >> $output_objdir/$libname.ver~
10321 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10331 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10332 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10335 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10336 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10341 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10345 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10346 *** create shared libraries on Solaris systems. Therefore, libtool
10347 *** is disabling shared libraries support. We urge you to upgrade GNU
10348 *** binutils to release 2.9.1 or newer. Another option is to modify
10349 *** your PATH or compiler configuration so that the native linker is
10350 *** used, and then restart.
10353 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10354 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10355 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10361 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10362 case `$LD -v 2>&1` in
10363 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10367 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10368 *** reliably create shared libraries on SCO systems. Therefore, libtool
10369 *** is disabling shared libraries support. We urge you to upgrade GNU
10370 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10371 *** your PATH or compiler configuration so that the native linker is
10372 *** used, and then restart.
10377 # For security reasons, it is highly recommended that you always
10378 # use absolute paths for naming shared libraries, and exclude the
10379 # DT_RUNPATH tag from executables and libraries. But doing so
10380 # requires that you compile everything twice, which is a pain.
10381 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10382 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
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'
10393 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10395 hardcode_direct=yes
10396 hardcode_shlibpath_var=no
10400 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10401 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10402 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10409 if test "$ld_shlibs" = no; then
10411 hardcode_libdir_flag_spec=
10412 export_dynamic_flag_spec=
10413 whole_archive_flag_spec=
10416 # PORTME fill in a description of your system's linker (not GNU ld)
10419 allow_undefined_flag=unsupported
10420 always_export_symbols=yes
10421 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'
10422 # Note: this linker hardcodes the directories in LIBPATH if there
10423 # are no directories specified by -L.
10424 hardcode_minus_L=yes
10425 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10426 # Neither direct hardcoding nor static linking is supported with a
10428 hardcode_direct=unsupported
10433 if test "$host_cpu" = ia64; then
10434 # On IA64, the linker does run time linking by default, so we don't
10435 # have to do anything special.
10436 aix_use_runtimelinking=no
10437 exp_sym_flag='-Bexport'
10440 # If we're using GNU nm, then we don't want the "-C" option.
10441 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10442 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10443 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'
10445 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'
10447 aix_use_runtimelinking=no
10449 # Test if we are trying to use run time linking or normal
10450 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10451 # need to do runtime linking.
10452 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10453 for ld_flag in $LDFLAGS; do
10454 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10455 aix_use_runtimelinking=yes
10462 exp_sym_flag='-bexport'
10463 no_entry_flag='-bnoentry'
10466 # When large executables or shared objects are built, AIX ld can
10467 # have problems creating the table of contents. If linking a library
10468 # or program results in "error TOC overflow" add -mminimal-toc to
10469 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10470 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10473 hardcode_direct=yes
10474 hardcode_direct_absolute=yes
10475 hardcode_libdir_separator=':'
10476 link_all_deplibs=yes
10477 file_list_spec='${wl}-f,'
10479 if test "$GCC" = yes; then
10480 case $host_os in aix4.[012]|aix4.[012].*)
10481 # We only want to do this on AIX 4.2 and lower, the check
10482 # below for broken collect2 doesn't work under 4.3+
10483 collect2name=`${CC} -print-prog-name=collect2`
10484 if test -f "$collect2name" &&
10485 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10487 # We have reworked collect2
10490 # We have old collect2
10491 hardcode_direct=unsupported
10492 # It fails to find uninstalled libraries when the uninstalled
10493 # path is not listed in the libpath. Setting hardcode_minus_L
10494 # to unsupported forces relinking
10495 hardcode_minus_L=yes
10496 hardcode_libdir_flag_spec='-L$libdir'
10497 hardcode_libdir_separator=
10501 shared_flag='-shared'
10502 if test "$aix_use_runtimelinking" = yes; then
10503 shared_flag="$shared_flag "'${wl}-G'
10507 if test "$host_cpu" = ia64; then
10508 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10509 # chokes on -Wl,-G. The following line is correct:
10512 if test "$aix_use_runtimelinking" = yes; then
10513 shared_flag='${wl}-G'
10515 shared_flag='${wl}-bM:SRE'
10520 export_dynamic_flag_spec='${wl}-bexpall'
10521 # It seems that -bexpall does not export symbols beginning with
10522 # underscore (_), so it is better to generate a list of symbols to export.
10523 always_export_symbols=yes
10524 if test "$aix_use_runtimelinking" = yes; then
10525 # Warning - without using the other runtime loading flags (-brtl),
10526 # -berok will link without error, but may produce a broken library.
10527 allow_undefined_flag='-berok'
10528 # Determine the default libpath from the value encoded in an
10529 # empty executable.
10530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10531 /* end confdefs.h. */
10541 if ac_fn_c_try_link "$LINENO"; then :
10543 lt_aix_libpath_sed='
10544 /Import File Strings/,/^$/ {
10550 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10551 # Check for a 64-bit object if we didn't find anything.
10552 if test -z "$aix_libpath"; then
10553 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10556 rm -f core conftest.err conftest.$ac_objext \
10557 conftest$ac_exeext conftest.$ac_ext
10558 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10560 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10561 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"
10563 if test "$host_cpu" = ia64; then
10564 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10565 allow_undefined_flag="-z nodefs"
10566 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"
10568 # Determine the default libpath from the value encoded in an
10569 # empty executable.
10570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10571 /* end confdefs.h. */
10581 if ac_fn_c_try_link "$LINENO"; then :
10583 lt_aix_libpath_sed='
10584 /Import File Strings/,/^$/ {
10590 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10591 # Check for a 64-bit object if we didn't find anything.
10592 if test -z "$aix_libpath"; then
10593 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10596 rm -f core conftest.err conftest.$ac_objext \
10597 conftest$ac_exeext conftest.$ac_ext
10598 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10600 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10601 # Warning - without using the other run time loading flags,
10602 # -berok will link without error, but may produce a broken library.
10603 no_undefined_flag=' ${wl}-bernotok'
10604 allow_undefined_flag=' ${wl}-berok'
10605 # Exported symbols can be pulled into shared objects from archives
10606 whole_archive_flag_spec='$convenience'
10607 archive_cmds_need_lc=yes
10608 # This is similar to how AIX traditionally builds its shared libraries.
10609 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'
10617 # see comment about AmigaOS4 .so support
10618 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10619 archive_expsym_cmds=''
10622 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)'
10623 hardcode_libdir_flag_spec='-L$libdir'
10624 hardcode_minus_L=yes
10630 export_dynamic_flag_spec=-rdynamic
10633 cygwin* | mingw* | pw32* | cegcc*)
10634 # When not using gcc, we currently assume that we are using
10635 # Microsoft Visual C++.
10636 # hardcode_libdir_flag_spec is actually meaningless, as there is
10637 # no search path for DLLs.
10638 hardcode_libdir_flag_spec=' '
10639 allow_undefined_flag=unsupported
10640 # Tell ltmain to make .lib files, not .a files.
10642 # Tell ltmain to make .dll files, not .so files.
10644 # FIXME: Setting linknames here is a bad hack.
10645 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
10646 # The linker will automatically build a .lib file if we build a DLL.
10647 old_archive_from_new_cmds='true'
10648 # FIXME: Should let the user specify the lib program.
10649 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10650 fix_srcfile_path='`cygpath -w "$srcfile"`'
10651 enable_shared_with_static_runtimes=yes
10654 darwin* | rhapsody*)
10657 archive_cmds_need_lc=no
10659 hardcode_automatic=yes
10660 hardcode_shlibpath_var=unsupported
10661 whole_archive_flag_spec=''
10662 link_all_deplibs=yes
10663 allow_undefined_flag="$_lt_dar_allow_undefined"
10664 case $cc_basename in
10665 ifort*) _lt_dar_can_shared=yes ;;
10666 *) _lt_dar_can_shared=$GCC ;;
10668 if test "$_lt_dar_can_shared" = "yes"; then
10669 output_verbose_link_cmd=echo
10670 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10671 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10672 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}"
10673 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}"
10682 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10683 hardcode_libdir_flag_spec='-L$libdir'
10684 hardcode_shlibpath_var=no
10691 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10692 # support. Future versions do this automatically, but an explicit c++rt0.o
10693 # does not break anything, and helps significantly (at the cost of a little
10696 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10697 hardcode_libdir_flag_spec='-R$libdir'
10698 hardcode_direct=yes
10699 hardcode_shlibpath_var=no
10702 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10704 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10705 hardcode_direct=yes
10706 hardcode_minus_L=yes
10707 hardcode_shlibpath_var=no
10710 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10711 freebsd* | dragonfly*)
10712 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10713 hardcode_libdir_flag_spec='-R$libdir'
10714 hardcode_direct=yes
10715 hardcode_shlibpath_var=no
10719 if test "$GCC" = yes; then
10720 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'
10722 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'
10724 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10725 hardcode_libdir_separator=:
10726 hardcode_direct=yes
10728 # hardcode_minus_L: Not really in the search PATH,
10729 # but as the default location of the library.
10730 hardcode_minus_L=yes
10731 export_dynamic_flag_spec='${wl}-E'
10735 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10736 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10738 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10740 if test "$with_gnu_ld" = no; then
10741 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10742 hardcode_libdir_flag_spec_ld='+b $libdir'
10743 hardcode_libdir_separator=:
10744 hardcode_direct=yes
10745 hardcode_direct_absolute=yes
10746 export_dynamic_flag_spec='${wl}-E'
10747 # hardcode_minus_L: Not really in the search PATH,
10748 # but as the default location of the library.
10749 hardcode_minus_L=yes
10754 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10757 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10760 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10763 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10769 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10772 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10775 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10779 if test "$with_gnu_ld" = no; then
10780 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10781 hardcode_libdir_separator=:
10786 hardcode_shlibpath_var=no
10789 hardcode_direct=yes
10790 hardcode_direct_absolute=yes
10791 export_dynamic_flag_spec='${wl}-E'
10793 # hardcode_minus_L: Not really in the search PATH,
10794 # but as the default location of the library.
10795 hardcode_minus_L=yes
10801 irix5* | irix6* | nonstopux*)
10802 if test "$GCC" = yes; then
10803 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'
10804 # Try to use the -exported_symbol ld option, if it does not
10805 # work, assume that -exports_file does not work either and
10806 # implicitly export all symbols.
10807 save_LDFLAGS="$LDFLAGS"
10808 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10810 /* end confdefs.h. */
10813 if ac_fn_c_try_link "$LINENO"; then :
10814 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'
10817 rm -f core conftest.err conftest.$ac_objext \
10818 conftest$ac_exeext conftest.$ac_ext
10819 LDFLAGS="$save_LDFLAGS"
10821 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'
10822 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'
10824 archive_cmds_need_lc='no'
10825 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10826 hardcode_libdir_separator=:
10828 link_all_deplibs=yes
10832 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10833 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10835 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10837 hardcode_libdir_flag_spec='-R$libdir'
10838 hardcode_direct=yes
10839 hardcode_shlibpath_var=no
10843 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10844 hardcode_direct=yes
10845 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10846 hardcode_libdir_separator=:
10847 hardcode_shlibpath_var=no
10854 if test -f /usr/libexec/ld.so; then
10855 hardcode_direct=yes
10856 hardcode_shlibpath_var=no
10857 hardcode_direct_absolute=yes
10858 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10859 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10860 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10861 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10862 export_dynamic_flag_spec='${wl}-E'
10865 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10866 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10867 hardcode_libdir_flag_spec='-R$libdir'
10870 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10871 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10881 hardcode_libdir_flag_spec='-L$libdir'
10882 hardcode_minus_L=yes
10883 allow_undefined_flag=unsupported
10884 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'
10885 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10889 if test "$GCC" = yes; then
10890 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10891 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'
10893 allow_undefined_flag=' -expect_unresolved \*'
10894 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'
10896 archive_cmds_need_lc='no'
10897 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10898 hardcode_libdir_separator=:
10901 osf4* | osf5*) # as osf3* with the addition of -msym flag
10902 if test "$GCC" = yes; then
10903 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10904 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'
10905 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10907 allow_undefined_flag=' -expect_unresolved \*'
10908 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'
10909 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~
10910 $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'
10912 # Both c and cxx compiler support -rpath directly
10913 hardcode_libdir_flag_spec='-rpath $libdir'
10915 archive_cmds_need_lc='no'
10916 hardcode_libdir_separator=:
10920 no_undefined_flag=' -z defs'
10921 if test "$GCC" = yes; then
10923 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10924 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10925 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10927 case `$CC -V 2>&1` in
10930 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10931 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10932 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10936 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10937 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10938 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10942 hardcode_libdir_flag_spec='-R$libdir'
10943 hardcode_shlibpath_var=no
10945 solaris2.[0-5] | solaris2.[0-5].*) ;;
10947 # The compiler driver will combine and reorder linker options,
10948 # but understands `-z linker_flag'. GCC discards it without `$wl',
10949 # but is careful enough not to reorder.
10950 # Supported since Solaris 2.6 (maybe 2.5.1?)
10951 if test "$GCC" = yes; then
10952 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10954 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10958 link_all_deplibs=yes
10962 if test "x$host_vendor" = xsequent; then
10963 # Use $CC to link under sequent, because it throws in some extra .o
10964 # files that make .init and .fini sections work.
10965 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10967 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10969 hardcode_libdir_flag_spec='-L$libdir'
10970 hardcode_direct=yes
10971 hardcode_minus_L=yes
10972 hardcode_shlibpath_var=no
10976 case $host_vendor in
10978 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10979 hardcode_direct=yes # is this really true???
10982 ## LD is ld it makes a PLAMLIB
10983 ## CC just makes a GrossModule.
10984 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10985 reload_cmds='$CC -r -o $output$reload_objs'
10989 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10990 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10993 runpath_var='LD_RUN_PATH'
10994 hardcode_shlibpath_var=no
10998 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10999 hardcode_shlibpath_var=no
11000 export_dynamic_flag_spec='-Bexport'
11004 if test -d /usr/nec; then
11005 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11006 hardcode_shlibpath_var=no
11007 runpath_var=LD_RUN_PATH
11008 hardcode_runpath_var=yes
11013 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11014 no_undefined_flag='${wl}-z,text'
11015 archive_cmds_need_lc=no
11016 hardcode_shlibpath_var=no
11017 runpath_var='LD_RUN_PATH'
11019 if test "$GCC" = yes; then
11020 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11021 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11023 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11024 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11028 sysv5* | sco3.2v5* | sco5v6*)
11029 # Note: We can NOT use -z defs as we might desire, because we do not
11030 # link with -lc, and that would cause any symbols used from libc to
11031 # always be unresolved, which means just about no library would
11032 # ever link correctly. If we're not using GNU ld we use -z text
11033 # though, which does catch some bad symbols but isn't as heavy-handed
11035 no_undefined_flag='${wl}-z,text'
11036 allow_undefined_flag='${wl}-z,nodefs'
11037 archive_cmds_need_lc=no
11038 hardcode_shlibpath_var=no
11039 hardcode_libdir_flag_spec='${wl}-R,$libdir'
11040 hardcode_libdir_separator=':'
11041 link_all_deplibs=yes
11042 export_dynamic_flag_spec='${wl}-Bexport'
11043 runpath_var='LD_RUN_PATH'
11045 if test "$GCC" = yes; then
11046 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11047 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11049 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11050 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11055 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11056 hardcode_libdir_flag_spec='-L$libdir'
11057 hardcode_shlibpath_var=no
11065 if test x$host_vendor = xsni; then
11067 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11068 export_dynamic_flag_spec='${wl}-Blargedynsym'
11074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11075 $as_echo "$ld_shlibs" >&6; }
11076 test "$ld_shlibs" = no && can_build_shared=no
11078 with_gnu_ld=$with_gnu_ld
11095 # Do we need to explicitly link libc?
11097 case "x$archive_cmds_need_lc" in
11099 # Assume -lc should be added
11100 archive_cmds_need_lc=yes
11102 if test "$enable_shared" = yes && test "$GCC" = yes; then
11103 case $archive_cmds in
11105 # FIXME: we may have to deal with multi-command sequences.
11108 # Test whether the compiler implicitly links with -lc since on some
11109 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11110 # to ld, don't add -lc before -lgcc.
11111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11112 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11114 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11116 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11117 (eval $ac_compile) 2>&5
11119 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11120 test $ac_status = 0; } 2>conftest.err; then
11123 libobjs=conftest.$ac_objext
11125 wl=$lt_prog_compiler_wl
11126 pic_flag=$lt_prog_compiler_pic
11132 lt_save_allow_undefined_flag=$allow_undefined_flag
11133 allow_undefined_flag=
11134 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11135 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11137 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11138 test $ac_status = 0; }
11140 archive_cmds_need_lc=no
11142 archive_cmds_need_lc=yes
11144 allow_undefined_flag=$lt_save_allow_undefined_flag
11146 cat conftest.err 1>&5
11149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
11150 $as_echo "$archive_cmds_need_lc" >&6; }
11313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11314 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11316 if test "$GCC" = yes; then
11318 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11319 *) lt_awk_arg="/^libraries:/" ;;
11321 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11322 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
11323 # if the path contains ";" then we assume it to be the separator
11324 # otherwise default to the standard path separator (i.e. ":") - it is
11325 # assumed that no part of a normal pathname contains ";" but that should
11326 # okay in the real world where ";" in dirpaths is itself problematic.
11327 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
11329 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11331 # Ok, now we have the path, separated by spaces, we can step through it
11332 # and add multilib dir if necessary.
11333 lt_tmp_lt_search_path_spec=
11334 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11335 for lt_sys_path in $lt_search_path_spec; do
11336 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11337 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11339 test -d "$lt_sys_path" && \
11340 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11343 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
11344 BEGIN {RS=" "; FS="/|\n";} {
11347 for (lt_i = NF; lt_i > 0; lt_i--) {
11348 if ($lt_i != "" && $lt_i != ".") {
11349 if ($lt_i == "..") {
11352 if (lt_count == 0) {
11353 lt_foo="/" $lt_i lt_foo;
11360 if (lt_foo != "") { lt_freq[lt_foo]++; }
11361 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11363 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
11365 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11367 library_names_spec=
11368 libname_spec='lib$name'
11372 postuninstall_cmds=
11376 shlibpath_overrides_runpath=unknown
11378 dynamic_linker="$host_os ld.so"
11379 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11380 need_lib_prefix=unknown
11381 hardcode_into_libs=no
11383 # when you set need_version to no, make sure it does not cause -set_version
11384 # flags to be left without arguments
11385 need_version=unknown
11390 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11391 shlibpath_var=LIBPATH
11393 # AIX 3 has no versioning support, so we append a major version to the name.
11394 soname_spec='${libname}${release}${shared_ext}$major'
11401 hardcode_into_libs=yes
11402 if test "$host_cpu" = ia64; then
11403 # AIX 5 supports IA64
11404 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11405 shlibpath_var=LD_LIBRARY_PATH
11407 # With GCC up to 2.95.x, collect2 would create an import file
11408 # for dependence libraries. The import file would start with
11409 # the line `#! .'. This would cause the generated library to
11410 # depend on `.', always an invalid library. This was fixed in
11411 # development snapshots of GCC prior to 3.0.
11413 aix4 | aix4.[01] | aix4.[01].*)
11414 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11416 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11419 can_build_shared=no
11423 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11424 # soname into executable. Probably we can add versioning support to
11425 # collect2, so additional links can be useful in future.
11426 if test "$aix_use_runtimelinking" = yes; then
11427 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11428 # instead of lib<name>.a to let people know that these are not
11429 # typical AIX shared libraries.
11430 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11432 # We preserve .a as extension for shared libraries through AIX4.2
11433 # and later when we are not doing run time linking.
11434 library_names_spec='${libname}${release}.a $libname.a'
11435 soname_spec='${libname}${release}${shared_ext}$major'
11437 shlibpath_var=LIBPATH
11444 # Since July 2007 AmigaOS4 officially supports .so libraries.
11445 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11446 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11449 library_names_spec='$libname.ixlibrary $libname.a'
11450 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11451 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'
11457 library_names_spec='${libname}${shared_ext}'
11458 dynamic_linker="$host_os ld.so"
11459 shlibpath_var=LIBRARY_PATH
11465 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11466 soname_spec='${libname}${release}${shared_ext}$major'
11467 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11468 shlibpath_var=LD_LIBRARY_PATH
11469 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11470 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11471 # the default ld.so.conf also contains /usr/contrib/lib and
11472 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11473 # libtool to hard-code these into programs
11476 cygwin* | mingw* | pw32* | cegcc*)
11477 version_type=windows
11482 case $GCC,$host_os in
11483 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11484 library_names_spec='$libname.dll.a'
11485 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11486 postinstall_cmds='base_file=`basename \${file}`~
11487 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11488 dldir=$destdir/`dirname \$dlpath`~
11489 test -d \$dldir || mkdir -p \$dldir~
11490 $install_prog $dir/$dlname \$dldir/$dlname~
11491 chmod a+x \$dldir/$dlname~
11492 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11493 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11495 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11496 dlpath=$dir/\$dldll~
11498 shlibpath_overrides_runpath=yes
11502 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11503 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11504 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11507 # MinGW DLLs use traditional 'lib' prefix
11508 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11509 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11510 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11511 # It is most probably a Windows format PATH printed by
11512 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11513 # path with ; separators, and with drive letters. We can handle the
11514 # drive letters (cygwin fileutils understands them), so leave them,
11515 # especially as we might pass files found there to a mingw objdump,
11516 # which wouldn't understand a cygwinified path. Ahh.
11517 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11519 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11523 # pw32 DLLs use 'pw' prefix rather than 'lib'
11524 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11530 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11533 dynamic_linker='Win32 ld.exe'
11534 # FIXME: first we should search . and the directory the executable is in
11538 darwin* | rhapsody*)
11539 dynamic_linker="$host_os dyld"
11540 version_type=darwin
11543 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11544 soname_spec='${libname}${release}${major}$shared_ext'
11545 shlibpath_overrides_runpath=yes
11546 shlibpath_var=DYLD_LIBRARY_PATH
11547 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11549 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11550 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11557 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11558 soname_spec='${libname}${release}${shared_ext}$major'
11559 shlibpath_var=LD_LIBRARY_PATH
11566 freebsd* | dragonfly*)
11567 # DragonFly does not have aout. When/if they implement a new
11568 # versioning mechanism, adjust this.
11569 if test -x /usr/bin/objformat; then
11570 objformat=`/usr/bin/objformat`
11573 freebsd[123]*) objformat=aout ;;
11574 *) objformat=elf ;;
11577 version_type=freebsd-$objformat
11578 case $version_type in
11580 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11585 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11589 shlibpath_var=LD_LIBRARY_PATH
11592 shlibpath_overrides_runpath=yes
11594 freebsd3.[01]* | freebsdelf3.[01]*)
11595 shlibpath_overrides_runpath=yes
11596 hardcode_into_libs=yes
11598 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11599 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11600 shlibpath_overrides_runpath=no
11601 hardcode_into_libs=yes
11603 *) # from 4.6 on, and DragonFly
11604 shlibpath_overrides_runpath=yes
11605 hardcode_into_libs=yes
11614 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11615 soname_spec='${libname}${release}${shared_ext}$major'
11616 shlibpath_var=LD_LIBRARY_PATH
11617 hardcode_into_libs=yes
11620 hpux9* | hpux10* | hpux11*)
11621 # Give a soname corresponding to the major version so that dld.sl refuses to
11622 # link against other versions.
11629 hardcode_into_libs=yes
11630 dynamic_linker="$host_os dld.so"
11631 shlibpath_var=LD_LIBRARY_PATH
11632 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11633 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11634 soname_spec='${libname}${release}${shared_ext}$major'
11635 if test "X$HPUX_IA64_MODE" = X32; then
11636 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11638 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11640 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11644 hardcode_into_libs=yes
11645 dynamic_linker="$host_os dld.sl"
11646 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11647 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11648 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11649 soname_spec='${libname}${release}${shared_ext}$major'
11650 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11651 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11655 dynamic_linker="$host_os dld.sl"
11656 shlibpath_var=SHLIB_PATH
11657 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11658 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11659 soname_spec='${libname}${release}${shared_ext}$major'
11662 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11663 postinstall_cmds='chmod 555 $lib'
11670 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11671 soname_spec='${libname}${release}${shared_ext}$major'
11672 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11673 shlibpath_var=LD_LIBRARY_PATH
11674 shlibpath_overrides_runpath=no
11675 hardcode_into_libs=yes
11678 irix5* | irix6* | nonstopux*)
11680 nonstopux*) version_type=nonstopux ;;
11682 if test "$lt_cv_prog_gnu_ld" = yes; then
11690 soname_spec='${libname}${release}${shared_ext}$major'
11691 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11693 irix5* | nonstopux*)
11694 libsuff= shlibsuff=
11697 case $LD in # libtool.m4 will add one of these switches to LD
11698 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11699 libsuff= shlibsuff= libmagic=32-bit;;
11700 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11701 libsuff=32 shlibsuff=N32 libmagic=N32;;
11702 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11703 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11704 *) libsuff= shlibsuff= libmagic=never-match;;
11708 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11709 shlibpath_overrides_runpath=no
11710 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11711 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11712 hardcode_into_libs=yes
11715 # No shared lib support for Linux oldld, aout, or coff.
11716 linux*oldld* | linux*aout* | linux*coff*)
11720 # This must be Linux ELF.
11721 linux* | k*bsd*-gnu)
11725 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11726 soname_spec='${libname}${release}${shared_ext}$major'
11727 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11728 shlibpath_var=LD_LIBRARY_PATH
11729 shlibpath_overrides_runpath=no
11730 # Some binutils ld are patched to set DT_RUNPATH
11731 save_LDFLAGS=$LDFLAGS
11732 save_libdir=$libdir
11733 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11734 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11736 /* end confdefs.h. */
11746 if ac_fn_c_try_link "$LINENO"; then :
11747 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11748 shlibpath_overrides_runpath=yes
11751 rm -f core conftest.err conftest.$ac_objext \
11752 conftest$ac_exeext conftest.$ac_ext
11753 LDFLAGS=$save_LDFLAGS
11754 libdir=$save_libdir
11756 # This implies no fast_install, which is unacceptable.
11757 # Some rework will be needed to allow for fast_install
11758 # before this can be enabled.
11759 hardcode_into_libs=yes
11761 # Append ld.so.conf contents to the search path
11762 if test -f /etc/ld.so.conf; then
11763 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' ' '`
11764 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11767 # We used to test for /lib/ld.so.1 and disable shared libraries on
11768 # powerpc, because MkLinux only supported shared libraries with the
11769 # GNU dynamic linker. Since this was broken with cross compilers,
11770 # most powerpc-linux boxes support dynamic linking these days and
11771 # people can always --disable-shared, the test was removed, and we
11772 # assume the GNU/Linux dynamic linker is in use.
11773 dynamic_linker='GNU/Linux ld.so'
11780 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11781 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11782 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11783 dynamic_linker='NetBSD (a.out) ld.so'
11785 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11786 soname_spec='${libname}${release}${shared_ext}$major'
11787 dynamic_linker='NetBSD ld.elf_so'
11789 shlibpath_var=LD_LIBRARY_PATH
11790 shlibpath_overrides_runpath=yes
11791 hardcode_into_libs=yes
11796 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11797 shlibpath_var=LD_LIBRARY_PATH
11798 shlibpath_overrides_runpath=yes
11805 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11806 soname_spec='${libname}${release}${shared_ext}$major'
11807 shlibpath_var=LD_LIBRARY_PATH
11808 shlibpath_overrides_runpath=no
11809 hardcode_into_libs=yes
11810 dynamic_linker='ldqnx.so'
11815 sys_lib_dlsearch_path_spec="/usr/lib"
11817 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11819 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11820 *) need_version=no ;;
11822 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11823 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11824 shlibpath_var=LD_LIBRARY_PATH
11825 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11827 openbsd2.[89] | openbsd2.[89].*)
11828 shlibpath_overrides_runpath=no
11831 shlibpath_overrides_runpath=yes
11835 shlibpath_overrides_runpath=yes
11840 libname_spec='$name'
11843 library_names_spec='$libname${shared_ext} $libname.a'
11844 dynamic_linker='OS/2 ld.exe'
11845 shlibpath_var=LIBPATH
11848 osf3* | osf4* | osf5*)
11852 soname_spec='${libname}${release}${shared_ext}$major'
11853 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11854 shlibpath_var=LD_LIBRARY_PATH
11855 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11856 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11867 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11868 soname_spec='${libname}${release}${shared_ext}$major'
11869 shlibpath_var=LD_LIBRARY_PATH
11870 shlibpath_overrides_runpath=yes
11871 hardcode_into_libs=yes
11872 # ldd complains unless libraries are executable
11873 postinstall_cmds='chmod +x $lib'
11878 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11879 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11880 shlibpath_var=LD_LIBRARY_PATH
11881 shlibpath_overrides_runpath=yes
11882 if test "$with_gnu_ld" = yes; then
11890 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11891 soname_spec='${libname}${release}${shared_ext}$major'
11892 shlibpath_var=LD_LIBRARY_PATH
11893 case $host_vendor in
11895 shlibpath_overrides_runpath=no
11897 runpath_var=LD_RUN_PATH
11905 shlibpath_overrides_runpath=no
11906 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11912 if test -d /usr/nec ;then
11914 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11915 soname_spec='$libname${shared_ext}.$major'
11916 shlibpath_var=LD_LIBRARY_PATH
11920 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11921 version_type=freebsd-elf
11924 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11925 soname_spec='${libname}${release}${shared_ext}$major'
11926 shlibpath_var=LD_LIBRARY_PATH
11927 shlibpath_overrides_runpath=yes
11928 hardcode_into_libs=yes
11929 if test "$with_gnu_ld" = yes; then
11930 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11932 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11935 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11939 sys_lib_dlsearch_path_spec='/usr/lib'
11943 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11947 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11948 shlibpath_var=LD_LIBRARY_PATH
11949 shlibpath_overrides_runpath=no
11950 hardcode_into_libs=yes
11955 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11956 soname_spec='${libname}${release}${shared_ext}$major'
11957 shlibpath_var=LD_LIBRARY_PATH
11964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11965 $as_echo "$dynamic_linker" >&6; }
11966 test "$dynamic_linker" = no && can_build_shared=no
11968 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11969 if test "$GCC" = yes; then
11970 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11973 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11974 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11976 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11977 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12067 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12069 if test -n "$hardcode_libdir_flag_spec" ||
12070 test -n "$runpath_var" ||
12071 test "X$hardcode_automatic" = "Xyes" ; then
12073 # We can hardcode non-existent directories.
12074 if test "$hardcode_direct" != no &&
12075 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12076 # have to relink, otherwise we might link with an installed library
12077 # when we should be linking with a yet-to-be-installed one
12078 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12079 test "$hardcode_minus_L" != no; then
12080 # Linking always hardcodes the temporary library directory.
12081 hardcode_action=relink
12083 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12084 hardcode_action=immediate
12087 # We cannot hardcode anything, or else we can only hardcode existing
12089 hardcode_action=unsupported
12091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12092 $as_echo "$hardcode_action" >&6; }
12094 if test "$hardcode_action" = relink ||
12095 test "$inherit_rpath" = yes; then
12096 # Fast installation is not supported
12097 enable_fast_install=no
12098 elif test "$shlibpath_overrides_runpath" = yes ||
12099 test "$enable_shared" = no; then
12100 # Fast installation is not necessary
12101 enable_fast_install=needless
12109 if test "x$enable_dlopen" != xyes; then
12110 enable_dlopen=unknown
12111 enable_dlopen_self=unknown
12112 enable_dlopen_self_static=unknown
12119 lt_cv_dlopen="load_add_on"
12121 lt_cv_dlopen_self=yes
12124 mingw* | pw32* | cegcc*)
12125 lt_cv_dlopen="LoadLibrary"
12130 lt_cv_dlopen="dlopen"
12135 # if libdl is installed we need to link against it
12136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12137 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12138 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
12139 $as_echo_n "(cached) " >&6
12141 ac_check_lib_save_LIBS=$LIBS
12143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12144 /* end confdefs.h. */
12146 /* Override any GCC internal prototype to avoid an error.
12147 Use char because int might match the return type of a GCC
12148 builtin and then its argument prototype would still apply. */
12161 if ac_fn_c_try_link "$LINENO"; then :
12162 ac_cv_lib_dl_dlopen=yes
12164 ac_cv_lib_dl_dlopen=no
12166 rm -f core conftest.err conftest.$ac_objext \
12167 conftest$ac_exeext conftest.$ac_ext
12168 LIBS=$ac_check_lib_save_LIBS
12170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12171 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12172 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
12173 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12176 lt_cv_dlopen="dyld"
12178 lt_cv_dlopen_self=yes
12185 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12186 if test "x$ac_cv_func_shl_load" = x""yes; then :
12187 lt_cv_dlopen="shl_load"
12189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12190 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12191 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
12192 $as_echo_n "(cached) " >&6
12194 ac_check_lib_save_LIBS=$LIBS
12196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12197 /* end confdefs.h. */
12199 /* Override any GCC internal prototype to avoid an error.
12200 Use char because int might match the return type of a GCC
12201 builtin and then its argument prototype would still apply. */
12209 return shl_load ();
12214 if ac_fn_c_try_link "$LINENO"; then :
12215 ac_cv_lib_dld_shl_load=yes
12217 ac_cv_lib_dld_shl_load=no
12219 rm -f core conftest.err conftest.$ac_objext \
12220 conftest$ac_exeext conftest.$ac_ext
12221 LIBS=$ac_check_lib_save_LIBS
12223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12224 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12225 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
12226 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12228 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12229 if test "x$ac_cv_func_dlopen" = x""yes; then :
12230 lt_cv_dlopen="dlopen"
12232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12233 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12234 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
12235 $as_echo_n "(cached) " >&6
12237 ac_check_lib_save_LIBS=$LIBS
12239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12240 /* end confdefs.h. */
12242 /* Override any GCC internal prototype to avoid an error.
12243 Use char because int might match the return type of a GCC
12244 builtin and then its argument prototype would still apply. */
12257 if ac_fn_c_try_link "$LINENO"; then :
12258 ac_cv_lib_dl_dlopen=yes
12260 ac_cv_lib_dl_dlopen=no
12262 rm -f core conftest.err conftest.$ac_objext \
12263 conftest$ac_exeext conftest.$ac_ext
12264 LIBS=$ac_check_lib_save_LIBS
12266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12267 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12268 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
12269 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12272 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12273 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
12274 $as_echo_n "(cached) " >&6
12276 ac_check_lib_save_LIBS=$LIBS
12277 LIBS="-lsvld $LIBS"
12278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12279 /* end confdefs.h. */
12281 /* Override any GCC internal prototype to avoid an error.
12282 Use char because int might match the return type of a GCC
12283 builtin and then its argument prototype would still apply. */
12296 if ac_fn_c_try_link "$LINENO"; then :
12297 ac_cv_lib_svld_dlopen=yes
12299 ac_cv_lib_svld_dlopen=no
12301 rm -f core conftest.err conftest.$ac_objext \
12302 conftest$ac_exeext conftest.$ac_ext
12303 LIBS=$ac_check_lib_save_LIBS
12305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12306 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12307 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
12308 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12311 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12312 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
12313 $as_echo_n "(cached) " >&6
12315 ac_check_lib_save_LIBS=$LIBS
12317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12318 /* end confdefs.h. */
12320 /* Override any GCC internal prototype to avoid an error.
12321 Use char because int might match the return type of a GCC
12322 builtin and then its argument prototype would still apply. */
12330 return dld_link ();
12335 if ac_fn_c_try_link "$LINENO"; then :
12336 ac_cv_lib_dld_dld_link=yes
12338 ac_cv_lib_dld_dld_link=no
12340 rm -f core conftest.err conftest.$ac_objext \
12341 conftest$ac_exeext conftest.$ac_ext
12342 LIBS=$ac_check_lib_save_LIBS
12344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12345 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12346 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
12347 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12368 if test "x$lt_cv_dlopen" != xno; then
12374 case $lt_cv_dlopen in
12376 save_CPPFLAGS="$CPPFLAGS"
12377 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12379 save_LDFLAGS="$LDFLAGS"
12380 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12383 LIBS="$lt_cv_dlopen_libs $LIBS"
12385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12386 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12387 if test "${lt_cv_dlopen_self+set}" = set; then :
12388 $as_echo_n "(cached) " >&6
12390 if test "$cross_compiling" = yes; then :
12391 lt_cv_dlopen_self=cross
12393 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12394 lt_status=$lt_dlunknown
12395 cat > conftest.$ac_ext <<_LT_EOF
12396 #line 12396 "configure"
12397 #include "confdefs.h"
12406 # define LT_DLGLOBAL RTLD_GLOBAL
12409 # define LT_DLGLOBAL DL_GLOBAL
12411 # define LT_DLGLOBAL 0
12415 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12416 find out it does not work in some platform. */
12417 #ifndef LT_DLLAZY_OR_NOW
12419 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12422 # define LT_DLLAZY_OR_NOW DL_LAZY
12425 # define LT_DLLAZY_OR_NOW RTLD_NOW
12428 # define LT_DLLAZY_OR_NOW DL_NOW
12430 # define LT_DLLAZY_OR_NOW 0
12437 void fnord() { int i=42;}
12440 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12441 int status = $lt_dlunknown;
12445 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12446 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12447 /* dlclose (self); */
12455 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12456 (eval $ac_link) 2>&5
12458 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12459 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12460 (./conftest; exit; ) >&5 2>/dev/null
12462 case x$lt_status in
12463 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12464 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12465 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12468 # compilation failed
12469 lt_cv_dlopen_self=no
12476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12477 $as_echo "$lt_cv_dlopen_self" >&6; }
12479 if test "x$lt_cv_dlopen_self" = xyes; then
12480 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12482 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12483 if test "${lt_cv_dlopen_self_static+set}" = set; then :
12484 $as_echo_n "(cached) " >&6
12486 if test "$cross_compiling" = yes; then :
12487 lt_cv_dlopen_self_static=cross
12489 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12490 lt_status=$lt_dlunknown
12491 cat > conftest.$ac_ext <<_LT_EOF
12492 #line 12492 "configure"
12493 #include "confdefs.h"
12502 # define LT_DLGLOBAL RTLD_GLOBAL
12505 # define LT_DLGLOBAL DL_GLOBAL
12507 # define LT_DLGLOBAL 0
12511 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12512 find out it does not work in some platform. */
12513 #ifndef LT_DLLAZY_OR_NOW
12515 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12518 # define LT_DLLAZY_OR_NOW DL_LAZY
12521 # define LT_DLLAZY_OR_NOW RTLD_NOW
12524 # define LT_DLLAZY_OR_NOW DL_NOW
12526 # define LT_DLLAZY_OR_NOW 0
12533 void fnord() { int i=42;}
12536 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12537 int status = $lt_dlunknown;
12541 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12542 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12543 /* dlclose (self); */
12551 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12552 (eval $ac_link) 2>&5
12554 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12555 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12556 (./conftest; exit; ) >&5 2>/dev/null
12558 case x$lt_status in
12559 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12560 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12561 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12564 # compilation failed
12565 lt_cv_dlopen_self_static=no
12572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12573 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12576 CPPFLAGS="$save_CPPFLAGS"
12577 LDFLAGS="$save_LDFLAGS"
12582 case $lt_cv_dlopen_self in
12583 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12584 *) enable_dlopen_self=unknown ;;
12587 case $lt_cv_dlopen_self_static in
12588 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12589 *) enable_dlopen_self_static=unknown ;;
12611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12612 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12613 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12614 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12615 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12617 $as_echo "yes" >&6; }
12619 # FIXME - insert some real tests, host_os isn't really good enough
12622 if test -n "$STRIP" ; then
12623 striplib="$STRIP -x"
12624 old_striplib="$STRIP -S"
12625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12626 $as_echo "yes" >&6; }
12628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12629 $as_echo "no" >&6; }
12633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12634 $as_echo "no" >&6; }
12650 # Report which library types will actually be built
12651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12652 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12654 $as_echo "$can_build_shared" >&6; }
12656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12657 $as_echo_n "checking whether to build shared libraries... " >&6; }
12658 test "$can_build_shared" = "no" && enable_shared=no
12660 # On AIX, shared libraries and static libraries use the same namespace, and
12661 # are all built from PIC.
12664 test "$enable_shared" = yes && enable_static=no
12665 if test -n "$RANLIB"; then
12666 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12667 postinstall_cmds='$RANLIB $lib'
12672 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12673 test "$enable_shared" = yes && enable_static=no
12677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12678 $as_echo "$enable_shared" >&6; }
12680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12681 $as_echo_n "checking whether to build static libraries... " >&6; }
12682 # Make sure either enable_shared or enable_static is yes.
12683 test "$enable_shared" = yes || enable_static=yes
12684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12685 $as_echo "$enable_static" >&6; }
12692 ac_cpp='$CPP $CPPFLAGS'
12693 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12694 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12695 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12701 ac_cpp='$CXXCPP $CPPFLAGS'
12702 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12703 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12704 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12706 archive_cmds_need_lc_CXX=no
12707 allow_undefined_flag_CXX=
12708 always_export_symbols_CXX=no
12709 archive_expsym_cmds_CXX=
12710 compiler_needs_object_CXX=no
12711 export_dynamic_flag_spec_CXX=
12712 hardcode_direct_CXX=no
12713 hardcode_direct_absolute_CXX=no
12714 hardcode_libdir_flag_spec_CXX=
12715 hardcode_libdir_flag_spec_ld_CXX=
12716 hardcode_libdir_separator_CXX=
12717 hardcode_minus_L_CXX=no
12718 hardcode_shlibpath_var_CXX=unsupported
12719 hardcode_automatic_CXX=no
12720 inherit_rpath_CXX=no
12722 module_expsym_cmds_CXX=
12723 link_all_deplibs_CXX=unknown
12724 old_archive_cmds_CXX=$old_archive_cmds
12725 no_undefined_flag_CXX=
12726 whole_archive_flag_spec_CXX=
12727 enable_shared_with_static_runtimes_CXX=no
12729 # Source file extension for C++ test sources.
12732 # Object file extension for compiled C++ test sources.
12736 # No sense in running all these tests if we already determined that
12737 # the CXX compiler isn't working. Some variables (like enable_shared)
12738 # are currently assumed to apply to all compilers on this platform,
12739 # and will be corrupted by setting them based on a non-working compiler.
12740 if test "$_lt_caught_CXX_error" != yes; then
12741 # Code to be used in simple compile tests
12742 lt_simple_compile_test_code="int some_variable = 0;"
12744 # Code to be used in simple link tests
12745 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12747 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12754 # If no C compiler was specified, use CC.
12757 # If no C compiler flags were specified, use CFLAGS.
12758 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12760 # Allow CC to be a program name with arguments.
12764 # save warnings/boilerplate of simple test code
12765 ac_outfile=conftest.$ac_objext
12766 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12767 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12768 _lt_compiler_boilerplate=`cat conftest.err`
12771 ac_outfile=conftest.$ac_objext
12772 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12773 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12774 _lt_linker_boilerplate=`cat conftest.err`
12778 # Allow CC to be a program name with arguments.
12783 lt_save_with_gnu_ld=$with_gnu_ld
12784 lt_save_path_LD=$lt_cv_path_LD
12785 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12786 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12788 $as_unset lt_cv_prog_gnu_ld
12790 if test -n "${lt_cv_path_LDCXX+set}"; then
12791 lt_cv_path_LD=$lt_cv_path_LDCXX
12793 $as_unset lt_cv_path_LD
12795 test -z "${LDCXX+set}" || LD=$LDCXX
12799 for cc_temp in $compiler""; do
12801 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12802 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12807 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12810 if test -n "$compiler"; then
12811 # We don't want -fno-exception when compiling C++ code, so set the
12812 # no_builtin_flag separately
12813 if test "$GXX" = yes; then
12814 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12816 lt_prog_compiler_no_builtin_flag_CXX=
12819 if test "$GXX" = yes; then
12820 # Set up default GNU C++ configuration
12824 # Check whether --with-gnu-ld was given.
12825 if test "${with_gnu_ld+set}" = set; then :
12826 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12832 if test "$GCC" = yes; then
12833 # Check if gcc -print-prog-name=ld gives a path.
12834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12835 $as_echo_n "checking for ld used by $CC... " >&6; }
12838 # gcc leaves a trailing carriage return which upsets mingw
12839 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12841 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12844 # Accept absolute paths.
12846 re_direlt='/[^/][^/]*/\.\./'
12847 # Canonicalize the pathname of ld
12848 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12849 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12850 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12852 test -z "$LD" && LD="$ac_prog"
12855 # If it fails, then pretend we aren't using GCC.
12859 # If it is relative, then search for the first ld in PATH.
12860 with_gnu_ld=unknown
12863 elif test "$with_gnu_ld" = yes; then
12864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12865 $as_echo_n "checking for GNU ld... " >&6; }
12867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12868 $as_echo_n "checking for non-GNU ld... " >&6; }
12870 if test "${lt_cv_path_LD+set}" = set; then :
12871 $as_echo_n "(cached) " >&6
12873 if test -z "$LD"; then
12874 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12875 for ac_dir in $PATH; do
12877 test -z "$ac_dir" && ac_dir=.
12878 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12879 lt_cv_path_LD="$ac_dir/$ac_prog"
12880 # Check to see if the program is GNU ld. I'd rather use --version,
12881 # but apparently some variants of GNU ld only accept -v.
12882 # Break only if it was the GNU/non-GNU ld that we prefer.
12883 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12884 *GNU* | *'with BFD'*)
12885 test "$with_gnu_ld" != no && break
12888 test "$with_gnu_ld" != yes && break
12895 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12899 LD="$lt_cv_path_LD"
12900 if test -n "$LD"; then
12901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12902 $as_echo "$LD" >&6; }
12904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12905 $as_echo "no" >&6; }
12907 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
12908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12909 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12910 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12911 $as_echo_n "(cached) " >&6
12913 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12914 case `$LD -v 2>&1 </dev/null` in
12915 *GNU* | *'with BFD'*)
12916 lt_cv_prog_gnu_ld=yes
12919 lt_cv_prog_gnu_ld=no
12923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12924 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12925 with_gnu_ld=$lt_cv_prog_gnu_ld
12933 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12934 # archiving commands below assume that GNU ld is being used.
12935 if test "$with_gnu_ld" = yes; then
12936 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12937 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'
12939 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12940 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12942 # If archive_cmds runs LD, not CC, wlarc should be empty
12943 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12944 # investigate it a little bit more. (MM)
12947 # ancient GNU ld didn't support --whole-archive et. al.
12948 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12949 $GREP 'no-whole-archive' > /dev/null; then
12950 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12952 whole_archive_flag_spec_CXX=
12958 # A generic and very simple default shared library creation
12959 # command for GNU C++ for the case where it uses the native
12960 # linker, instead of GNU ld. If possible, this setting should
12961 # overridden to take advantage of the native linker features on
12962 # the platform it is being used on.
12963 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12966 # Commands to make compiler produce verbose output that lists
12967 # what "hidden" libraries, object files and flags are used when
12968 # linking a shared library.
12969 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12977 # PORTME: fill in a description of your system's C++ link characteristics
12978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12979 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12983 # FIXME: insert proper C++ library support
12987 if test "$host_cpu" = ia64; then
12988 # On IA64, the linker does run time linking by default, so we don't
12989 # have to do anything special.
12990 aix_use_runtimelinking=no
12991 exp_sym_flag='-Bexport'
12994 aix_use_runtimelinking=no
12996 # Test if we are trying to use run time linking or normal
12997 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12998 # need to do runtime linking.
12999 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13000 for ld_flag in $LDFLAGS; do
13003 aix_use_runtimelinking=yes
13011 exp_sym_flag='-bexport'
13012 no_entry_flag='-bnoentry'
13015 # When large executables or shared objects are built, AIX ld can
13016 # have problems creating the table of contents. If linking a library
13017 # or program results in "error TOC overflow" add -mminimal-toc to
13018 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13019 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13021 archive_cmds_CXX=''
13022 hardcode_direct_CXX=yes
13023 hardcode_direct_absolute_CXX=yes
13024 hardcode_libdir_separator_CXX=':'
13025 link_all_deplibs_CXX=yes
13026 file_list_spec_CXX='${wl}-f,'
13028 if test "$GXX" = yes; then
13029 case $host_os in aix4.[012]|aix4.[012].*)
13030 # We only want to do this on AIX 4.2 and lower, the check
13031 # below for broken collect2 doesn't work under 4.3+
13032 collect2name=`${CC} -print-prog-name=collect2`
13033 if test -f "$collect2name" &&
13034 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13036 # We have reworked collect2
13039 # We have old collect2
13040 hardcode_direct_CXX=unsupported
13041 # It fails to find uninstalled libraries when the uninstalled
13042 # path is not listed in the libpath. Setting hardcode_minus_L
13043 # to unsupported forces relinking
13044 hardcode_minus_L_CXX=yes
13045 hardcode_libdir_flag_spec_CXX='-L$libdir'
13046 hardcode_libdir_separator_CXX=
13049 shared_flag='-shared'
13050 if test "$aix_use_runtimelinking" = yes; then
13051 shared_flag="$shared_flag "'${wl}-G'
13055 if test "$host_cpu" = ia64; then
13056 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13057 # chokes on -Wl,-G. The following line is correct:
13060 if test "$aix_use_runtimelinking" = yes; then
13061 shared_flag='${wl}-G'
13063 shared_flag='${wl}-bM:SRE'
13068 export_dynamic_flag_spec_CXX='${wl}-bexpall'
13069 # It seems that -bexpall does not export symbols beginning with
13070 # underscore (_), so it is better to generate a list of symbols to
13072 always_export_symbols_CXX=yes
13073 if test "$aix_use_runtimelinking" = yes; then
13074 # Warning - without using the other runtime loading flags (-brtl),
13075 # -berok will link without error, but may produce a broken library.
13076 allow_undefined_flag_CXX='-berok'
13077 # Determine the default libpath from the value encoded in an empty
13079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13080 /* end confdefs.h. */
13090 if ac_fn_cxx_try_link "$LINENO"; then :
13092 lt_aix_libpath_sed='
13093 /Import File Strings/,/^$/ {
13099 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13100 # Check for a 64-bit object if we didn't find anything.
13101 if test -z "$aix_libpath"; then
13102 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13105 rm -f core conftest.err conftest.$ac_objext \
13106 conftest$ac_exeext conftest.$ac_ext
13107 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13109 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13111 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"
13113 if test "$host_cpu" = ia64; then
13114 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13115 allow_undefined_flag_CXX="-z nodefs"
13116 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"
13118 # Determine the default libpath from the value encoded in an
13119 # empty executable.
13120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13121 /* end confdefs.h. */
13131 if ac_fn_cxx_try_link "$LINENO"; then :
13133 lt_aix_libpath_sed='
13134 /Import File Strings/,/^$/ {
13140 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13141 # Check for a 64-bit object if we didn't find anything.
13142 if test -z "$aix_libpath"; then
13143 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13146 rm -f core conftest.err conftest.$ac_objext \
13147 conftest$ac_exeext conftest.$ac_ext
13148 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13150 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13151 # Warning - without using the other run time loading flags,
13152 # -berok will link without error, but may produce a broken library.
13153 no_undefined_flag_CXX=' ${wl}-bernotok'
13154 allow_undefined_flag_CXX=' ${wl}-berok'
13155 # Exported symbols can be pulled into shared objects from archives
13156 whole_archive_flag_spec_CXX='$convenience'
13157 archive_cmds_need_lc_CXX=yes
13158 # This is similar to how AIX traditionally builds its shared
13160 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'
13166 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13167 allow_undefined_flag_CXX=unsupported
13168 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13169 # support --undefined. This deserves some investigation. FIXME
13170 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13177 case $cc_basename in
13179 # FIXME: insert proper C++ library support
13185 cygwin* | mingw* | pw32* | cegcc*)
13186 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13187 # as there is no search path for DLLs.
13188 hardcode_libdir_flag_spec_CXX='-L$libdir'
13189 allow_undefined_flag_CXX=unsupported
13190 always_export_symbols_CXX=no
13191 enable_shared_with_static_runtimes_CXX=yes
13193 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13194 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'
13195 # If the export-symbols file already is a .def file (1st line
13196 # is EXPORTS), use it as is; otherwise, prepend...
13197 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13198 cp $export_symbols $output_objdir/$soname.def;
13200 echo EXPORTS > $output_objdir/$soname.def;
13201 cat $export_symbols >> $output_objdir/$soname.def;
13203 $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'
13208 darwin* | rhapsody*)
13211 archive_cmds_need_lc_CXX=no
13212 hardcode_direct_CXX=no
13213 hardcode_automatic_CXX=yes
13214 hardcode_shlibpath_var_CXX=unsupported
13215 whole_archive_flag_spec_CXX=''
13216 link_all_deplibs_CXX=yes
13217 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13218 case $cc_basename in
13219 ifort*) _lt_dar_can_shared=yes ;;
13220 *) _lt_dar_can_shared=$GCC ;;
13222 if test "$_lt_dar_can_shared" = "yes"; then
13223 output_verbose_link_cmd=echo
13224 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}"
13225 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13226 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}"
13227 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}"
13228 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13229 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}"
13230 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}"
13240 case $cc_basename in
13242 # FIXME: insert proper C++ library support
13246 # Green Hills C++ Compiler
13247 # FIXME: insert proper C++ library support
13251 # FIXME: insert proper C++ library support
13258 # C++ shared libraries reported to be fairly broken before
13264 archive_cmds_need_lc_CXX=no
13267 freebsd* | dragonfly*)
13268 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13277 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13278 hardcode_libdir_separator_CXX=:
13279 export_dynamic_flag_spec_CXX='${wl}-E'
13280 hardcode_direct_CXX=yes
13281 hardcode_minus_L_CXX=yes # Not in the search PATH,
13282 # but as the default
13283 # location of the library.
13285 case $cc_basename in
13287 # FIXME: insert proper C++ library support
13291 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'
13292 # Commands to make compiler produce verbose output that lists
13293 # what "hidden" libraries, object files and flags are used when
13294 # linking a shared library.
13296 # There doesn't appear to be a way to prevent this compiler from
13297 # explicitly linking system object files so we need to strip them
13298 # from the output so that they don't get included in the library
13300 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'
13303 if test "$GXX" = yes; then
13304 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'
13306 # FIXME: insert proper C++ library support
13314 if test $with_gnu_ld = no; then
13315 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13316 hardcode_libdir_separator_CXX=:
13322 export_dynamic_flag_spec_CXX='${wl}-E'
13328 hardcode_direct_CXX=no
13329 hardcode_shlibpath_var_CXX=no
13332 hardcode_direct_CXX=yes
13333 hardcode_direct_absolute_CXX=yes
13334 hardcode_minus_L_CXX=yes # Not in the search PATH,
13335 # but as the default
13336 # location of the library.
13340 case $cc_basename in
13342 # FIXME: insert proper C++ library support
13348 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13351 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13354 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13357 # Commands to make compiler produce verbose output that lists
13358 # what "hidden" libraries, object files and flags are used when
13359 # linking a shared library.
13361 # There doesn't appear to be a way to prevent this compiler from
13362 # explicitly linking system object files so we need to strip them
13363 # from the output so that they don't get included in the library
13365 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'
13368 if test "$GXX" = yes; then
13369 if test $with_gnu_ld = no; then
13372 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13375 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13378 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'
13383 # FIXME: insert proper C++ library support
13391 hardcode_direct_CXX=no
13392 hardcode_shlibpath_var_CXX=no
13393 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13394 export_dynamic_flag_spec_CXX='${wl}-E'
13395 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13396 # Instead, shared libraries are loaded at an image base (0x10000000 by
13397 # default) and relocated if they conflict, which is a slow very memory
13398 # consuming and fragmenting process. To avoid this, we pick a random,
13399 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13400 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13401 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'
13402 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'
13405 case $cc_basename in
13408 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'
13410 # Archives containing C++ object files must be created using
13411 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13412 # necessary to make sure instantiated templates are included
13414 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13417 if test "$GXX" = yes; then
13418 if test "$with_gnu_ld" = no; then
13419 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'
13421 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'
13424 link_all_deplibs_CXX=yes
13427 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13428 hardcode_libdir_separator_CXX=:
13429 inherit_rpath_CXX=yes
13432 linux* | k*bsd*-gnu)
13433 case $cc_basename in
13435 # Kuck and Associates, Inc. (KAI) C++ Compiler
13437 # KCC will only create a shared library if the output file
13438 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13439 # to its proper name (with version) after linking.
13440 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'
13441 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'
13442 # Commands to make compiler produce verbose output that lists
13443 # what "hidden" libraries, object files and flags are used when
13444 # linking a shared library.
13446 # There doesn't appear to be a way to prevent this compiler from
13447 # explicitly linking system object files so we need to strip them
13448 # from the output so that they don't get included in the library
13450 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'
13452 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13453 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13455 # Archives containing C++ object files must be created using
13456 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13457 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13462 # version 8.0 and above of icpc choke on multiply defined symbols
13463 # if we add $predep_objects and $postdep_objects, however 7.1 and
13464 # earlier do not add the objects themselves.
13465 case `$CC -V 2>&1` in
13467 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13468 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'
13470 *) # Version 8.0 or newer
13473 ia64*) tmp_idyn=' -i_dynamic';;
13475 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13476 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'
13479 archive_cmds_need_lc_CXX=no
13480 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13481 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13482 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13485 # Portland Group C++ compiler
13487 *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
13488 prelink_cmds_CXX='tpldir=Template.dir~
13490 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13491 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
13492 old_archive_cmds_CXX='tpldir=Template.dir~
13494 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13495 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
13497 archive_cmds_CXX='tpldir=Template.dir~
13499 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13500 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13501 archive_expsym_cmds_CXX='tpldir=Template.dir~
13503 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13504 $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'
13506 *) # Version 6 will use weak symbols
13507 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13508 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'
13512 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13513 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13514 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'
13518 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13519 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'
13521 runpath_var=LD_RUN_PATH
13522 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13523 hardcode_libdir_separator_CXX=:
13525 # Commands to make compiler produce verbose output that lists
13526 # what "hidden" libraries, object files and flags are used when
13527 # linking a shared library.
13529 # There doesn't appear to be a way to prevent this compiler from
13530 # explicitly linking system object files so we need to strip them
13531 # from the output so that they don't get included in the library
13533 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'
13536 # IBM XL 8.0 on PPC, with GNU ld
13537 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13538 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13539 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13540 if test "x$supports_anon_versioning" = xyes; then
13541 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13542 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13543 echo "local: *; };" >> $output_objdir/$libname.ver~
13544 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13548 case `$CC -V 2>&1 | sed 5q` in
13551 no_undefined_flag_CXX=' -zdefs'
13552 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13553 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'
13554 hardcode_libdir_flag_spec_CXX='-R$libdir'
13555 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'
13556 compiler_needs_object_CXX=yes
13558 # Not sure whether something based on
13559 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13561 output_verbose_link_cmd='echo'
13563 # Archives containing C++ object files must be created using
13564 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13565 # necessary to make sure instantiated templates are included
13567 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13575 # FIXME: insert proper C++ library support
13580 # FIXME: insert proper C++ library support
13585 case $cc_basename in
13587 # FIXME: insert proper C++ library support
13591 # FIXME: insert proper C++ library support
13598 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13599 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13601 hardcode_libdir_flag_spec_CXX='-R$libdir'
13602 hardcode_direct_CXX=yes
13603 hardcode_shlibpath_var_CXX=no
13605 # Workaround some broken pre-1.5 toolchains
13606 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13614 # C++ shared libraries are fairly broken
13619 if test -f /usr/libexec/ld.so; then
13620 hardcode_direct_CXX=yes
13621 hardcode_shlibpath_var_CXX=no
13622 hardcode_direct_absolute_CXX=yes
13623 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13624 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13625 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13626 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13627 export_dynamic_flag_spec_CXX='${wl}-E'
13628 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13630 output_verbose_link_cmd=echo
13636 osf3* | osf4* | osf5*)
13637 case $cc_basename in
13639 # Kuck and Associates, Inc. (KAI) C++ Compiler
13641 # KCC will only create a shared library if the output file
13642 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13643 # to its proper name (with version) after linking.
13644 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'
13646 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13647 hardcode_libdir_separator_CXX=:
13649 # Archives containing C++ object files must be created using
13650 # the KAI C++ compiler.
13652 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13653 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13657 # Rational C++ 2.4.1
13658 # FIXME: insert proper C++ library support
13664 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13665 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'
13666 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13669 allow_undefined_flag_CXX=' -expect_unresolved \*'
13670 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'
13671 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13672 echo "-hidden">> $lib.exp~
13673 $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~
13675 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13679 hardcode_libdir_separator_CXX=:
13681 # Commands to make compiler produce verbose output that lists
13682 # what "hidden" libraries, object files and flags are used when
13683 # linking a shared library.
13685 # There doesn't appear to be a way to prevent this compiler from
13686 # explicitly linking system object files so we need to strip them
13687 # from the output so that they don't get included in the library
13689 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'
13692 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13693 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13696 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'
13699 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'
13703 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13704 hardcode_libdir_separator_CXX=:
13706 # Commands to make compiler produce verbose output that lists
13707 # what "hidden" libraries, object files and flags are used when
13708 # linking a shared library.
13709 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13712 # FIXME: insert proper C++ library support
13720 # FIXME: insert proper C++ library support
13725 case $cc_basename in
13728 # FIXME: insert proper C++ library support
13733 # FIXME: insert proper C++ library support
13737 # FIXME: insert proper C++ library support
13744 case $cc_basename in
13746 # Sun C++ 4.2, 5.x and Centerline C++
13747 archive_cmds_need_lc_CXX=yes
13748 no_undefined_flag_CXX=' -zdefs'
13749 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13750 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13751 $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'
13753 hardcode_libdir_flag_spec_CXX='-R$libdir'
13754 hardcode_shlibpath_var_CXX=no
13756 solaris2.[0-5] | solaris2.[0-5].*) ;;
13758 # The compiler driver will combine and reorder linker options,
13759 # but understands `-z linker_flag'.
13760 # Supported since Solaris 2.6 (maybe 2.5.1?)
13761 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13764 link_all_deplibs_CXX=yes
13766 output_verbose_link_cmd='echo'
13768 # Archives containing C++ object files must be created using
13769 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13770 # necessary to make sure instantiated templates are included
13772 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13775 # Green Hills C++ Compiler
13776 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13778 # The C++ compiler must be used to create the archive.
13779 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13782 # GNU C++ compiler with Solaris linker
13783 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13784 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13785 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13786 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13787 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13788 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13790 # Commands to make compiler produce verbose output that lists
13791 # what "hidden" libraries, object files and flags are used when
13792 # linking a shared library.
13793 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13795 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13797 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13798 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13799 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13801 # Commands to make compiler produce verbose output that lists
13802 # what "hidden" libraries, object files and flags are used when
13803 # linking a shared library.
13804 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13807 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13809 solaris2.[0-5] | solaris2.[0-5].*) ;;
13811 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13819 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13820 no_undefined_flag_CXX='${wl}-z,text'
13821 archive_cmds_need_lc_CXX=no
13822 hardcode_shlibpath_var_CXX=no
13823 runpath_var='LD_RUN_PATH'
13825 case $cc_basename in
13827 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13828 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13831 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13832 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13837 sysv5* | sco3.2v5* | sco5v6*)
13838 # Note: We can NOT use -z defs as we might desire, because we do not
13839 # link with -lc, and that would cause any symbols used from libc to
13840 # always be unresolved, which means just about no library would
13841 # ever link correctly. If we're not using GNU ld we use -z text
13842 # though, which does catch some bad symbols but isn't as heavy-handed
13844 no_undefined_flag_CXX='${wl}-z,text'
13845 allow_undefined_flag_CXX='${wl}-z,nodefs'
13846 archive_cmds_need_lc_CXX=no
13847 hardcode_shlibpath_var_CXX=no
13848 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13849 hardcode_libdir_separator_CXX=':'
13850 link_all_deplibs_CXX=yes
13851 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13852 runpath_var='LD_RUN_PATH'
13854 case $cc_basename in
13856 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13857 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13860 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13861 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13867 case $cc_basename in
13869 # NonStop-UX NCC 3.20
13870 # FIXME: insert proper C++ library support
13874 # FIXME: insert proper C++ library support
13881 # FIXME: insert proper C++ library support
13886 # FIXME: insert proper C++ library support
13891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13892 $as_echo "$ld_shlibs_CXX" >&6; }
13893 test "$ld_shlibs_CXX" = no && can_build_shared=no
13899 ## There is no encapsulation within the following macros, do not change
13900 ## the running order or otherwise move them around unless you know exactly
13901 ## what you are doing...
13902 # Dependencies to place before and after the object being linked:
13903 predep_objects_CXX=
13904 postdep_objects_CXX=
13907 compiler_lib_search_path_CXX=
13909 cat > conftest.$ac_ext <<_LT_EOF
13913 Foo (void) { a = 0; }
13919 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13920 (eval $ac_compile) 2>&5
13922 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13923 test $ac_status = 0; }; then
13924 # Parse the compiler output and extract the necessary
13925 # objects, libraries and library flags.
13927 # Sentinel used to keep track of whether or not we are before
13928 # the conftest object file.
13929 pre_test_object_deps_done=no
13931 for p in `eval "$output_verbose_link_cmd"`; do
13935 # Some compilers place space between "-{L,R}" and the path.
13936 # Remove the space.
13937 if test $p = "-L" ||
13938 test $p = "-R"; then
13945 if test "$pre_test_object_deps_done" = no; then
13948 # Internal compiler library paths should come after those
13949 # provided the user. The postdeps already come after the
13950 # user supplied libs so there is no need to process them.
13951 if test -z "$compiler_lib_search_path_CXX"; then
13952 compiler_lib_search_path_CXX="${prev}${p}"
13954 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13957 # The "-l" case would never come before the object being
13958 # linked, so don't bother handling this case.
13961 if test -z "$postdeps_CXX"; then
13962 postdeps_CXX="${prev}${p}"
13964 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13970 # This assumes that the test object file only shows up
13971 # once in the compiler output.
13972 if test "$p" = "conftest.$objext"; then
13973 pre_test_object_deps_done=yes
13977 if test "$pre_test_object_deps_done" = no; then
13978 if test -z "$predep_objects_CXX"; then
13979 predep_objects_CXX="$p"
13981 predep_objects_CXX="$predep_objects_CXX $p"
13984 if test -z "$postdep_objects_CXX"; then
13985 postdep_objects_CXX="$p"
13987 postdep_objects_CXX="$postdep_objects_CXX $p"
13992 *) ;; # Ignore the rest.
14000 echo "libtool.m4: error: problem compiling CXX test program"
14003 $RM -f confest.$objext
14005 # PORTME: override above test on systems where it is broken
14008 # Interix 3.5 installs completely hosed .la files for C++, so rather than
14009 # hack all around it, let's just trust "g++" to DTRT.
14010 predep_objects_CXX=
14011 postdep_objects_CXX=
14016 case `$CC -V 2>&1 | sed 5q` in
14020 # The more standards-conforming stlport4 library is
14021 # incompatible with the Cstd library. Avoid specifying
14022 # it if it's in CXXFLAGS. Ignore libCrun as
14023 # -library=stlport4 depends on it.
14024 case " $CXX $CXXFLAGS " in
14025 *" -library=stlport4 "*)
14026 solaris_use_stlport4=yes
14030 if test "$solaris_use_stlport4" != yes; then
14031 postdeps_CXX='-library=Cstd -library=Crun'
14038 case $cc_basename in
14040 # The more standards-conforming stlport4 library is
14041 # incompatible with the Cstd library. Avoid specifying
14042 # it if it's in CXXFLAGS. Ignore libCrun as
14043 # -library=stlport4 depends on it.
14044 case " $CXX $CXXFLAGS " in
14045 *" -library=stlport4 "*)
14046 solaris_use_stlport4=yes
14050 # Adding this requires a known-good setup of shared libraries for
14051 # Sun compiler versions before 5.6, else PIC objects from an old
14052 # archive will be linked into the output, leading to subtle bugs.
14053 if test "$solaris_use_stlport4" != yes; then
14054 postdeps_CXX='-library=Cstd -library=Crun'
14062 case " $postdeps_CXX " in
14063 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14065 compiler_lib_search_dirs_CXX=
14066 if test -n "${compiler_lib_search_path_CXX}"; then
14067 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14100 lt_prog_compiler_wl_CXX=
14101 lt_prog_compiler_pic_CXX=
14102 lt_prog_compiler_static_CXX=
14104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14105 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14107 # C++ specific cases for pic, static, wl, etc.
14108 if test "$GXX" = yes; then
14109 lt_prog_compiler_wl_CXX='-Wl,'
14110 lt_prog_compiler_static_CXX='-static'
14114 # All AIX code is PIC.
14115 if test "$host_cpu" = ia64; then
14116 # AIX 5 now supports IA64 processor
14117 lt_prog_compiler_static_CXX='-Bstatic'
14124 # see comment about AmigaOS4 .so support
14125 lt_prog_compiler_pic_CXX='-fPIC'
14128 # FIXME: we need at least 68020 code to build shared libraries, but
14129 # adding the `-m68020' flag to GCC prevents building anything better,
14131 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14136 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14137 # PIC is the default for these OSes.
14139 mingw* | cygwin* | os2* | pw32* | cegcc*)
14140 # This hack is so that the source file can tell whether it is being
14141 # built for inclusion in a dll (and should export symbols for example).
14142 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14143 # (--disable-auto-import) libraries
14144 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14146 darwin* | rhapsody*)
14147 # PIC is the default on this platform
14148 # Common symbols not allowed in MH_DYLIB files
14149 lt_prog_compiler_pic_CXX='-fno-common'
14152 # DJGPP does not support shared libraries at all
14153 lt_prog_compiler_pic_CXX=
14156 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14157 # Instead, we relocate shared libraries at runtime.
14160 if test -d /usr/nec; then
14161 lt_prog_compiler_pic_CXX=-Kconform_pic
14165 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14166 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14167 # sets the default TLS model and affects inlining.
14172 lt_prog_compiler_pic_CXX='-fPIC'
14177 # QNX uses GNU C++, but need to define -shared option too, otherwise
14178 # it will coredump.
14179 lt_prog_compiler_pic_CXX='-fPIC -shared'
14182 lt_prog_compiler_pic_CXX='-fPIC'
14188 # All AIX code is PIC.
14189 if test "$host_cpu" = ia64; then
14190 # AIX 5 now supports IA64 processor
14191 lt_prog_compiler_static_CXX='-Bstatic'
14193 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14197 case $cc_basename in
14199 # Green Hills C++ Compiler
14200 # _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"
14205 case $cc_basename in
14207 lt_prog_compiler_pic_CXX='-KPIC'
14210 # Green Hills C++ Compiler
14211 lt_prog_compiler_pic_CXX='-pic'
14217 freebsd* | dragonfly*)
14218 # FreeBSD uses GNU C++
14220 hpux9* | hpux10* | hpux11*)
14221 case $cc_basename in
14223 lt_prog_compiler_wl_CXX='-Wl,'
14224 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14225 if test "$host_cpu" != ia64; then
14226 lt_prog_compiler_pic_CXX='+Z'
14230 lt_prog_compiler_wl_CXX='-Wl,'
14231 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14237 lt_prog_compiler_pic_CXX='+Z'
14246 # This is c89, which is MS Visual C++ (no shared libs)
14247 # Anyone wants to do a port?
14249 irix5* | irix6* | nonstopux*)
14250 case $cc_basename in
14252 lt_prog_compiler_wl_CXX='-Wl,'
14253 lt_prog_compiler_static_CXX='-non_shared'
14254 # CC pic flag -KPIC is the default.
14260 linux* | k*bsd*-gnu)
14261 case $cc_basename in
14264 lt_prog_compiler_wl_CXX='--backend -Wl,'
14265 lt_prog_compiler_pic_CXX='-fPIC'
14268 # old Intel C++ for x86_64 which still supported -KPIC.
14269 lt_prog_compiler_wl_CXX='-Wl,'
14270 lt_prog_compiler_pic_CXX='-KPIC'
14271 lt_prog_compiler_static_CXX='-static'
14274 # Intel C++, used to be incompatible with GCC.
14275 # ICC 10 doesn't accept -KPIC any more.
14276 lt_prog_compiler_wl_CXX='-Wl,'
14277 lt_prog_compiler_pic_CXX='-fPIC'
14278 lt_prog_compiler_static_CXX='-static'
14281 # Portland Group C++ compiler
14282 lt_prog_compiler_wl_CXX='-Wl,'
14283 lt_prog_compiler_pic_CXX='-fpic'
14284 lt_prog_compiler_static_CXX='-Bstatic'
14288 # Make sure the PIC flag is empty. It appears that all Alpha
14289 # Linux and Compaq Tru64 Unix objects are PIC.
14290 lt_prog_compiler_pic_CXX=
14291 lt_prog_compiler_static_CXX='-non_shared'
14294 # IBM XL 8.0 on PPC
14295 lt_prog_compiler_wl_CXX='-Wl,'
14296 lt_prog_compiler_pic_CXX='-qpic'
14297 lt_prog_compiler_static_CXX='-qstaticlink'
14300 case `$CC -V 2>&1 | sed 5q` in
14303 lt_prog_compiler_pic_CXX='-KPIC'
14304 lt_prog_compiler_static_CXX='-Bstatic'
14305 lt_prog_compiler_wl_CXX='-Qoption ld '
14316 case $cc_basename in
14318 lt_prog_compiler_pic_CXX='-W c,exportall'
14327 # QNX uses GNU C++, but need to define -shared option too, otherwise
14328 # it will coredump.
14329 lt_prog_compiler_pic_CXX='-fPIC -shared'
14331 osf3* | osf4* | osf5*)
14332 case $cc_basename in
14334 lt_prog_compiler_wl_CXX='--backend -Wl,'
14337 # Rational C++ 2.4.1
14338 lt_prog_compiler_pic_CXX='-pic'
14341 # Digital/Compaq C++
14342 lt_prog_compiler_wl_CXX='-Wl,'
14343 # Make sure the PIC flag is empty. It appears that all Alpha
14344 # Linux and Compaq Tru64 Unix objects are PIC.
14345 lt_prog_compiler_pic_CXX=
14346 lt_prog_compiler_static_CXX='-non_shared'
14355 case $cc_basename in
14357 # Sun C++ 4.2, 5.x and Centerline C++
14358 lt_prog_compiler_pic_CXX='-KPIC'
14359 lt_prog_compiler_static_CXX='-Bstatic'
14360 lt_prog_compiler_wl_CXX='-Qoption ld '
14363 # Green Hills C++ Compiler
14364 lt_prog_compiler_pic_CXX='-PIC'
14371 case $cc_basename in
14374 lt_prog_compiler_pic_CXX='-pic'
14375 lt_prog_compiler_static_CXX='-Bstatic'
14379 lt_prog_compiler_pic_CXX='-pic'
14385 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14386 case $cc_basename in
14388 lt_prog_compiler_wl_CXX='-Wl,'
14389 lt_prog_compiler_pic_CXX='-KPIC'
14390 lt_prog_compiler_static_CXX='-Bstatic'
14395 case $cc_basename in
14397 # NonStop-UX NCC 3.20
14398 lt_prog_compiler_pic_CXX='-KPIC'
14407 lt_prog_compiler_can_build_shared_CXX=no
14413 # For platforms which do not support PIC, -DPIC is meaningless:
14415 lt_prog_compiler_pic_CXX=
14418 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
14422 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
14427 # Check to make sure the PIC flag actually works.
14429 if test -n "$lt_prog_compiler_pic_CXX"; then
14430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14431 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14432 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
14433 $as_echo_n "(cached) " >&6
14435 lt_cv_prog_compiler_pic_works_CXX=no
14436 ac_outfile=conftest.$ac_objext
14437 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14438 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14439 # Insert the option either (1) after the last *FLAGS variable, or
14440 # (2) before a word containing "conftest.", or (3) at the end.
14441 # Note that $ac_compile itself does not contain backslashes and begins
14442 # with a dollar sign (not a hyphen), so the echo should work correctly.
14443 # The option is referenced via a variable to avoid confusing sed.
14444 lt_compile=`echo "$ac_compile" | $SED \
14445 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14446 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14447 -e 's:$: $lt_compiler_flag:'`
14448 (eval echo "\"\$as_me:14448: $lt_compile\"" >&5)
14449 (eval "$lt_compile" 2>conftest.err)
14451 cat conftest.err >&5
14452 echo "$as_me:14452: \$? = $ac_status" >&5
14453 if (exit $ac_status) && test -s "$ac_outfile"; then
14454 # The compiler can only warn and ignore the option if not recognized
14455 # So say no if there are warnings other than the usual output.
14456 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14457 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14458 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14459 lt_cv_prog_compiler_pic_works_CXX=yes
14465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14466 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14468 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14469 case $lt_prog_compiler_pic_CXX in
14471 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14474 lt_prog_compiler_pic_CXX=
14475 lt_prog_compiler_can_build_shared_CXX=no
14483 # Check to make sure the static flag actually works.
14485 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14487 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14488 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
14489 $as_echo_n "(cached) " >&6
14491 lt_cv_prog_compiler_static_works_CXX=no
14492 save_LDFLAGS="$LDFLAGS"
14493 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14494 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14495 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14496 # The linker can only warn and ignore the option if not recognized
14497 # So say no if there are warnings
14498 if test -s conftest.err; then
14499 # Append any errors to the config.log.
14500 cat conftest.err 1>&5
14501 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14502 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14503 if diff conftest.exp conftest.er2 >/dev/null; then
14504 lt_cv_prog_compiler_static_works_CXX=yes
14507 lt_cv_prog_compiler_static_works_CXX=yes
14511 LDFLAGS="$save_LDFLAGS"
14514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14515 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14517 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14520 lt_prog_compiler_static_CXX=
14526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14527 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14528 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
14529 $as_echo_n "(cached) " >&6
14531 lt_cv_prog_compiler_c_o_CXX=no
14532 $RM -r conftest 2>/dev/null
14536 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14538 lt_compiler_flag="-o out/conftest2.$ac_objext"
14539 # Insert the option either (1) after the last *FLAGS variable, or
14540 # (2) before a word containing "conftest.", or (3) at the end.
14541 # Note that $ac_compile itself does not contain backslashes and begins
14542 # with a dollar sign (not a hyphen), so the echo should work correctly.
14543 lt_compile=`echo "$ac_compile" | $SED \
14544 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14545 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14546 -e 's:$: $lt_compiler_flag:'`
14547 (eval echo "\"\$as_me:14547: $lt_compile\"" >&5)
14548 (eval "$lt_compile" 2>out/conftest.err)
14550 cat out/conftest.err >&5
14551 echo "$as_me:14551: \$? = $ac_status" >&5
14552 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14554 # The compiler can only warn and ignore the option if not recognized
14555 # So say no if there are warnings
14556 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14557 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14558 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14559 lt_cv_prog_compiler_c_o_CXX=yes
14564 # SGI C++ compiler will create directory out/ii_files/ for
14565 # template instantiation
14566 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14567 $RM out/* && rmdir out
14573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14574 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14579 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14580 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
14581 $as_echo_n "(cached) " >&6
14583 lt_cv_prog_compiler_c_o_CXX=no
14584 $RM -r conftest 2>/dev/null
14588 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14590 lt_compiler_flag="-o out/conftest2.$ac_objext"
14591 # Insert the option either (1) after the last *FLAGS variable, or
14592 # (2) before a word containing "conftest.", or (3) at the end.
14593 # Note that $ac_compile itself does not contain backslashes and begins
14594 # with a dollar sign (not a hyphen), so the echo should work correctly.
14595 lt_compile=`echo "$ac_compile" | $SED \
14596 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14597 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14598 -e 's:$: $lt_compiler_flag:'`
14599 (eval echo "\"\$as_me:14599: $lt_compile\"" >&5)
14600 (eval "$lt_compile" 2>out/conftest.err)
14602 cat out/conftest.err >&5
14603 echo "$as_me:14603: \$? = $ac_status" >&5
14604 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14606 # The compiler can only warn and ignore the option if not recognized
14607 # So say no if there are warnings
14608 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14609 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14610 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14611 lt_cv_prog_compiler_c_o_CXX=yes
14616 # SGI C++ compiler will create directory out/ii_files/ for
14617 # template instantiation
14618 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14619 $RM out/* && rmdir out
14625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14626 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14631 hard_links="nottested"
14632 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14633 # do not overwrite the value of need_locks provided by the user
14634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14635 $as_echo_n "checking if we can lock with hard links... " >&6; }
14638 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14640 ln conftest.a conftest.b 2>&5 || hard_links=no
14641 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14643 $as_echo "$hard_links" >&6; }
14644 if test "$hard_links" = no; then
14645 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14646 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14656 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14658 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14661 # If we're using GNU nm, then we don't want the "-C" option.
14662 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14663 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14664 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'
14666 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'
14670 export_symbols_cmds_CXX="$ltdll_cmds"
14672 cygwin* | mingw* | cegcc*)
14673 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'
14676 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14679 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14682 $as_echo "$ld_shlibs_CXX" >&6; }
14683 test "$ld_shlibs_CXX" = no && can_build_shared=no
14685 with_gnu_ld_CXX=$with_gnu_ld
14693 # Do we need to explicitly link libc?
14695 case "x$archive_cmds_need_lc_CXX" in
14697 # Assume -lc should be added
14698 archive_cmds_need_lc_CXX=yes
14700 if test "$enable_shared" = yes && test "$GCC" = yes; then
14701 case $archive_cmds_CXX in
14703 # FIXME: we may have to deal with multi-command sequences.
14706 # Test whether the compiler implicitly links with -lc since on some
14707 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14708 # to ld, don't add -lc before -lgcc.
14709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14710 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14712 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14714 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14715 (eval $ac_compile) 2>&5
14717 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14718 test $ac_status = 0; } 2>conftest.err; then
14721 libobjs=conftest.$ac_objext
14723 wl=$lt_prog_compiler_wl_CXX
14724 pic_flag=$lt_prog_compiler_pic_CXX
14730 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14731 allow_undefined_flag_CXX=
14732 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14733 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14735 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14736 test $ac_status = 0; }
14738 archive_cmds_need_lc_CXX=no
14740 archive_cmds_need_lc_CXX=yes
14742 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14744 cat conftest.err 1>&5
14747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
14748 $as_echo "$archive_cmds_need_lc_CXX" >&6; }
14818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14819 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14821 library_names_spec=
14822 libname_spec='lib$name'
14826 postuninstall_cmds=
14830 shlibpath_overrides_runpath=unknown
14832 dynamic_linker="$host_os ld.so"
14833 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14834 need_lib_prefix=unknown
14835 hardcode_into_libs=no
14837 # when you set need_version to no, make sure it does not cause -set_version
14838 # flags to be left without arguments
14839 need_version=unknown
14844 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14845 shlibpath_var=LIBPATH
14847 # AIX 3 has no versioning support, so we append a major version to the name.
14848 soname_spec='${libname}${release}${shared_ext}$major'
14855 hardcode_into_libs=yes
14856 if test "$host_cpu" = ia64; then
14857 # AIX 5 supports IA64
14858 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14859 shlibpath_var=LD_LIBRARY_PATH
14861 # With GCC up to 2.95.x, collect2 would create an import file
14862 # for dependence libraries. The import file would start with
14863 # the line `#! .'. This would cause the generated library to
14864 # depend on `.', always an invalid library. This was fixed in
14865 # development snapshots of GCC prior to 3.0.
14867 aix4 | aix4.[01] | aix4.[01].*)
14868 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14870 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14873 can_build_shared=no
14877 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14878 # soname into executable. Probably we can add versioning support to
14879 # collect2, so additional links can be useful in future.
14880 if test "$aix_use_runtimelinking" = yes; then
14881 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14882 # instead of lib<name>.a to let people know that these are not
14883 # typical AIX shared libraries.
14884 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14886 # We preserve .a as extension for shared libraries through AIX4.2
14887 # and later when we are not doing run time linking.
14888 library_names_spec='${libname}${release}.a $libname.a'
14889 soname_spec='${libname}${release}${shared_ext}$major'
14891 shlibpath_var=LIBPATH
14898 # Since July 2007 AmigaOS4 officially supports .so libraries.
14899 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14900 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14903 library_names_spec='$libname.ixlibrary $libname.a'
14904 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14905 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'
14911 library_names_spec='${libname}${shared_ext}'
14912 dynamic_linker="$host_os ld.so"
14913 shlibpath_var=LIBRARY_PATH
14919 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14920 soname_spec='${libname}${release}${shared_ext}$major'
14921 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14922 shlibpath_var=LD_LIBRARY_PATH
14923 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14924 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14925 # the default ld.so.conf also contains /usr/contrib/lib and
14926 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14927 # libtool to hard-code these into programs
14930 cygwin* | mingw* | pw32* | cegcc*)
14931 version_type=windows
14936 case $GCC,$host_os in
14937 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14938 library_names_spec='$libname.dll.a'
14939 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14940 postinstall_cmds='base_file=`basename \${file}`~
14941 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14942 dldir=$destdir/`dirname \$dlpath`~
14943 test -d \$dldir || mkdir -p \$dldir~
14944 $install_prog $dir/$dlname \$dldir/$dlname~
14945 chmod a+x \$dldir/$dlname~
14946 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14947 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14949 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14950 dlpath=$dir/\$dldll~
14952 shlibpath_overrides_runpath=yes
14956 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14957 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14958 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14961 # MinGW DLLs use traditional 'lib' prefix
14962 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14963 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14964 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14965 # It is most probably a Windows format PATH printed by
14966 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14967 # path with ; separators, and with drive letters. We can handle the
14968 # drive letters (cygwin fileutils understands them), so leave them,
14969 # especially as we might pass files found there to a mingw objdump,
14970 # which wouldn't understand a cygwinified path. Ahh.
14971 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14973 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14977 # pw32 DLLs use 'pw' prefix rather than 'lib'
14978 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14984 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14987 dynamic_linker='Win32 ld.exe'
14988 # FIXME: first we should search . and the directory the executable is in
14992 darwin* | rhapsody*)
14993 dynamic_linker="$host_os dyld"
14994 version_type=darwin
14997 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14998 soname_spec='${libname}${release}${major}$shared_ext'
14999 shlibpath_overrides_runpath=yes
15000 shlibpath_var=DYLD_LIBRARY_PATH
15001 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15003 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15010 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15011 soname_spec='${libname}${release}${shared_ext}$major'
15012 shlibpath_var=LD_LIBRARY_PATH
15019 freebsd* | dragonfly*)
15020 # DragonFly does not have aout. When/if they implement a new
15021 # versioning mechanism, adjust this.
15022 if test -x /usr/bin/objformat; then
15023 objformat=`/usr/bin/objformat`
15026 freebsd[123]*) objformat=aout ;;
15027 *) objformat=elf ;;
15030 version_type=freebsd-$objformat
15031 case $version_type in
15033 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15038 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15042 shlibpath_var=LD_LIBRARY_PATH
15045 shlibpath_overrides_runpath=yes
15047 freebsd3.[01]* | freebsdelf3.[01]*)
15048 shlibpath_overrides_runpath=yes
15049 hardcode_into_libs=yes
15051 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15052 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15053 shlibpath_overrides_runpath=no
15054 hardcode_into_libs=yes
15056 *) # from 4.6 on, and DragonFly
15057 shlibpath_overrides_runpath=yes
15058 hardcode_into_libs=yes
15067 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15068 soname_spec='${libname}${release}${shared_ext}$major'
15069 shlibpath_var=LD_LIBRARY_PATH
15070 hardcode_into_libs=yes
15073 hpux9* | hpux10* | hpux11*)
15074 # Give a soname corresponding to the major version so that dld.sl refuses to
15075 # link against other versions.
15082 hardcode_into_libs=yes
15083 dynamic_linker="$host_os dld.so"
15084 shlibpath_var=LD_LIBRARY_PATH
15085 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15086 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15087 soname_spec='${libname}${release}${shared_ext}$major'
15088 if test "X$HPUX_IA64_MODE" = X32; then
15089 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15091 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15093 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15097 hardcode_into_libs=yes
15098 dynamic_linker="$host_os dld.sl"
15099 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15100 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15101 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15102 soname_spec='${libname}${release}${shared_ext}$major'
15103 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15104 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15108 dynamic_linker="$host_os dld.sl"
15109 shlibpath_var=SHLIB_PATH
15110 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15111 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15112 soname_spec='${libname}${release}${shared_ext}$major'
15115 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15116 postinstall_cmds='chmod 555 $lib'
15123 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15124 soname_spec='${libname}${release}${shared_ext}$major'
15125 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15126 shlibpath_var=LD_LIBRARY_PATH
15127 shlibpath_overrides_runpath=no
15128 hardcode_into_libs=yes
15131 irix5* | irix6* | nonstopux*)
15133 nonstopux*) version_type=nonstopux ;;
15135 if test "$lt_cv_prog_gnu_ld" = yes; then
15143 soname_spec='${libname}${release}${shared_ext}$major'
15144 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15146 irix5* | nonstopux*)
15147 libsuff= shlibsuff=
15150 case $LD in # libtool.m4 will add one of these switches to LD
15151 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15152 libsuff= shlibsuff= libmagic=32-bit;;
15153 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15154 libsuff=32 shlibsuff=N32 libmagic=N32;;
15155 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15156 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15157 *) libsuff= shlibsuff= libmagic=never-match;;
15161 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15162 shlibpath_overrides_runpath=no
15163 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15164 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15165 hardcode_into_libs=yes
15168 # No shared lib support for Linux oldld, aout, or coff.
15169 linux*oldld* | linux*aout* | linux*coff*)
15173 # This must be Linux ELF.
15174 linux* | k*bsd*-gnu)
15178 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15179 soname_spec='${libname}${release}${shared_ext}$major'
15180 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15181 shlibpath_var=LD_LIBRARY_PATH
15182 shlibpath_overrides_runpath=no
15183 # Some binutils ld are patched to set DT_RUNPATH
15184 save_LDFLAGS=$LDFLAGS
15185 save_libdir=$libdir
15186 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15187 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15189 /* end confdefs.h. */
15199 if ac_fn_cxx_try_link "$LINENO"; then :
15200 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15201 shlibpath_overrides_runpath=yes
15204 rm -f core conftest.err conftest.$ac_objext \
15205 conftest$ac_exeext conftest.$ac_ext
15206 LDFLAGS=$save_LDFLAGS
15207 libdir=$save_libdir
15209 # This implies no fast_install, which is unacceptable.
15210 # Some rework will be needed to allow for fast_install
15211 # before this can be enabled.
15212 hardcode_into_libs=yes
15214 # Append ld.so.conf contents to the search path
15215 if test -f /etc/ld.so.conf; then
15216 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' ' '`
15217 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15220 # We used to test for /lib/ld.so.1 and disable shared libraries on
15221 # powerpc, because MkLinux only supported shared libraries with the
15222 # GNU dynamic linker. Since this was broken with cross compilers,
15223 # most powerpc-linux boxes support dynamic linking these days and
15224 # people can always --disable-shared, the test was removed, and we
15225 # assume the GNU/Linux dynamic linker is in use.
15226 dynamic_linker='GNU/Linux ld.so'
15233 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15234 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15235 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15236 dynamic_linker='NetBSD (a.out) ld.so'
15238 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15239 soname_spec='${libname}${release}${shared_ext}$major'
15240 dynamic_linker='NetBSD ld.elf_so'
15242 shlibpath_var=LD_LIBRARY_PATH
15243 shlibpath_overrides_runpath=yes
15244 hardcode_into_libs=yes
15249 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15250 shlibpath_var=LD_LIBRARY_PATH
15251 shlibpath_overrides_runpath=yes
15258 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15259 soname_spec='${libname}${release}${shared_ext}$major'
15260 shlibpath_var=LD_LIBRARY_PATH
15261 shlibpath_overrides_runpath=no
15262 hardcode_into_libs=yes
15263 dynamic_linker='ldqnx.so'
15268 sys_lib_dlsearch_path_spec="/usr/lib"
15270 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15272 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15273 *) need_version=no ;;
15275 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15276 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15277 shlibpath_var=LD_LIBRARY_PATH
15278 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15280 openbsd2.[89] | openbsd2.[89].*)
15281 shlibpath_overrides_runpath=no
15284 shlibpath_overrides_runpath=yes
15288 shlibpath_overrides_runpath=yes
15293 libname_spec='$name'
15296 library_names_spec='$libname${shared_ext} $libname.a'
15297 dynamic_linker='OS/2 ld.exe'
15298 shlibpath_var=LIBPATH
15301 osf3* | osf4* | osf5*)
15305 soname_spec='${libname}${release}${shared_ext}$major'
15306 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15307 shlibpath_var=LD_LIBRARY_PATH
15308 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15309 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15320 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15321 soname_spec='${libname}${release}${shared_ext}$major'
15322 shlibpath_var=LD_LIBRARY_PATH
15323 shlibpath_overrides_runpath=yes
15324 hardcode_into_libs=yes
15325 # ldd complains unless libraries are executable
15326 postinstall_cmds='chmod +x $lib'
15331 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15332 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15333 shlibpath_var=LD_LIBRARY_PATH
15334 shlibpath_overrides_runpath=yes
15335 if test "$with_gnu_ld" = yes; then
15343 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15344 soname_spec='${libname}${release}${shared_ext}$major'
15345 shlibpath_var=LD_LIBRARY_PATH
15346 case $host_vendor in
15348 shlibpath_overrides_runpath=no
15350 runpath_var=LD_RUN_PATH
15358 shlibpath_overrides_runpath=no
15359 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15365 if test -d /usr/nec ;then
15367 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15368 soname_spec='$libname${shared_ext}.$major'
15369 shlibpath_var=LD_LIBRARY_PATH
15373 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15374 version_type=freebsd-elf
15377 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15378 soname_spec='${libname}${release}${shared_ext}$major'
15379 shlibpath_var=LD_LIBRARY_PATH
15380 shlibpath_overrides_runpath=yes
15381 hardcode_into_libs=yes
15382 if test "$with_gnu_ld" = yes; then
15383 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15385 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15388 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15392 sys_lib_dlsearch_path_spec='/usr/lib'
15396 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15400 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15401 shlibpath_var=LD_LIBRARY_PATH
15402 shlibpath_overrides_runpath=no
15403 hardcode_into_libs=yes
15408 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15409 soname_spec='${libname}${release}${shared_ext}$major'
15410 shlibpath_var=LD_LIBRARY_PATH
15417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15418 $as_echo "$dynamic_linker" >&6; }
15419 test "$dynamic_linker" = no && can_build_shared=no
15421 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15422 if test "$GCC" = yes; then
15423 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15426 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15427 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15429 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15430 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15469 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15470 hardcode_action_CXX=
15471 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15472 test -n "$runpath_var_CXX" ||
15473 test "X$hardcode_automatic_CXX" = "Xyes" ; then
15475 # We can hardcode non-existent directories.
15476 if test "$hardcode_direct_CXX" != no &&
15477 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15478 # have to relink, otherwise we might link with an installed library
15479 # when we should be linking with a yet-to-be-installed one
15480 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15481 test "$hardcode_minus_L_CXX" != no; then
15482 # Linking always hardcodes the temporary library directory.
15483 hardcode_action_CXX=relink
15485 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15486 hardcode_action_CXX=immediate
15489 # We cannot hardcode anything, or else we can only hardcode existing
15491 hardcode_action_CXX=unsupported
15493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15494 $as_echo "$hardcode_action_CXX" >&6; }
15496 if test "$hardcode_action_CXX" = relink ||
15497 test "$inherit_rpath_CXX" = yes; then
15498 # Fast installation is not supported
15499 enable_fast_install=no
15500 elif test "$shlibpath_overrides_runpath" = yes ||
15501 test "$enable_shared" = no; then
15502 # Fast installation is not necessary
15503 enable_fast_install=needless
15512 fi # test -n "$compiler"
15518 with_gnu_ld=$lt_save_with_gnu_ld
15519 lt_cv_path_LDCXX=$lt_cv_path_LD
15520 lt_cv_path_LD=$lt_save_path_LD
15521 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15522 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15523 fi # test "$_lt_caught_CXX_error" != yes
15526 ac_cpp='$CPP $CPPFLAGS'
15527 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15528 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15529 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15543 ac_config_commands="$ac_config_commands libtool"
15548 # Only expand once:
15553 if test x$use_libtool != xno; then
15554 DEFAULT_OBJECT_TYPE=".lo"
15555 DEFAULT_ARCHIVE_TYPE=".la"
15556 DEFAULT_SHARED_OBJECT_TYPE=".la"
15557 LIBTOOL="\$(LIBTOOL)"
15558 LIBTOOL_INSTALL_TARGET="libtool-install"
15559 LIBTOOL_UNINSTALL_TARGET="libtool-uninstall"
15560 LIBTOOL_CLEAN_TARGET="libtool-clean"
15561 QMAKE_LIBTOOL="${BUILD_DIR}/libtool"
15562 FD_PLUGIN_DIR="src/plugins/fd"
15565 DEFAULT_OBJECT_TYPE=".o"
15566 DEFAULT_ARCHIVE_TYPE=".a"
15567 DEFAULT_SHARED_OBJECT_TYPE=".so"
15568 LIBTOOL="# \$(LIBTOOL)"
15569 LIBTOOL_INSTALL_TARGET=""
15570 LIBTOOL_UNINSTALL_TARGET=""
15571 LIBTOOL_CLEAN_TARGET=""
15572 QMAKE_LIBTOOL="# ${BUILD_DIR}/libtool"
15587 # Check whether --enable-includes was given.
15588 if test "${enable_includes+set}" = set; then :
15589 enableval=$enable_includes;
15590 if test x$enableval = xyes; then
15591 install_includes=yes
15599 if test x$use_libtool != xno -a x$install_includes = xyes; then
15600 INCLUDE_INSTALL_TARGET="install-includes"
15601 INCLUDE_UNINSTALL_TARGET="uninstall-includes"
15603 INCLUDE_INSTALL_TARGET=""
15604 INCLUDE_UNINSTALL_TARGET=""
15612 *cygwin* ) CYGWIN=yes;;
15616 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
15622 HAVE_SUN_OS_FALSE='#'
15624 HAVE_SUN_OS_TRUE='#'
15627 $as_echo "#define HAVE_SUN_OS 1" >>confdefs.h
15634 HAVE_SUN_OS_FALSE='#'
15636 HAVE_SUN_OS_TRUE='#'
15641 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
15647 HAVE_OSF1_OS_FALSE='#'
15649 HAVE_OSF1_OS_TRUE='#'
15650 HAVE_OSF1_OS_FALSE=
15652 $as_echo "#define HAVE_OSF1_OS 1" >>confdefs.h
15659 HAVE_OSF1_OS_FALSE='#'
15661 HAVE_OSF1_OS_TRUE='#'
15662 HAVE_OSF1_OS_FALSE=
15666 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
15672 HAVE_AIX_OS_FALSE='#'
15674 HAVE_AIX_OS_TRUE='#'
15677 $as_echo "#define HAVE_AIX_OS 1" >>confdefs.h
15684 HAVE_AIX_OS_FALSE='#'
15686 HAVE_AIX_OS_TRUE='#'
15691 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
15697 HAVE_HPUX_OS_FALSE='#'
15699 HAVE_HPUX_OS_TRUE='#'
15700 HAVE_HPUX_OS_FALSE=
15702 $as_echo "#define HAVE_HPUX_OS 1" >>confdefs.h
15709 HAVE_HPUX_OS_FALSE='#'
15711 HAVE_HPUX_OS_TRUE='#'
15712 HAVE_HPUX_OS_FALSE=
15716 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
15721 HAVE_LINUX_OS_TRUE=
15722 HAVE_LINUX_OS_FALSE='#'
15724 HAVE_LINUX_OS_TRUE='#'
15725 HAVE_LINUX_OS_FALSE=
15727 $as_echo "#define HAVE_LINUX_OS 1" >>confdefs.h
15733 HAVE_LINUX_OS_TRUE=
15734 HAVE_LINUX_OS_FALSE='#'
15736 HAVE_LINUX_OS_TRUE='#'
15737 HAVE_LINUX_OS_FALSE=
15741 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
15746 HAVE_FREEBSD_OS_TRUE=
15747 HAVE_FREEBSD_OS_FALSE='#'
15749 HAVE_FREEBSD_OS_TRUE='#'
15750 HAVE_FREEBSD_OS_FALSE=
15752 $as_echo "#define HAVE_FREEBSD_OS 1" >>confdefs.h
15758 HAVE_FREEBSD_OS_TRUE=
15759 HAVE_FREEBSD_OS_FALSE='#'
15761 HAVE_FREEBSD_OS_TRUE='#'
15762 HAVE_FREEBSD_OS_FALSE=
15766 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
15771 HAVE_NETBSD_OS_TRUE=
15772 HAVE_NETBSD_OS_FALSE='#'
15774 HAVE_NETBSD_OS_TRUE='#'
15775 HAVE_NETBSD_OS_FALSE=
15777 $as_echo "#define HAVE_NETBSD_OS 1" >>confdefs.h
15783 HAVE_NETBSD_OS_TRUE=
15784 HAVE_NETBSD_OS_FALSE='#'
15786 HAVE_NETBSD_OS_TRUE='#'
15787 HAVE_NETBSD_OS_FALSE=
15791 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
15796 HAVE_OPENBSD_OS_TRUE=
15797 HAVE_OPENBSD_OS_FALSE='#'
15799 HAVE_OPENBSD_OS_TRUE='#'
15800 HAVE_OPENBSD_OS_FALSE=
15802 $as_echo "#define HAVE_OPENBSD_OS 1" >>confdefs.h
15808 HAVE_OPENBSD_OS_TRUE=
15809 HAVE_OPENBSD_OS_FALSE='#'
15811 HAVE_OPENBSD_OS_TRUE='#'
15812 HAVE_OPENBSD_OS_FALSE=
15816 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
15822 HAVE_BSDI_OS_FALSE='#'
15824 HAVE_BSDI_OS_TRUE='#'
15825 HAVE_BSDI_OS_FALSE=
15827 $as_echo "#define HAVE_BSDI_OS 1" >>confdefs.h
15834 HAVE_BSDI_OS_FALSE='#'
15836 HAVE_BSDI_OS_TRUE='#'
15837 HAVE_BSDI_OS_FALSE=
15841 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
15847 HAVE_SGI_OS_FALSE='#'
15849 HAVE_SGI_OS_TRUE='#'
15852 $as_echo "#define HAVE_SGI_OS 1" >>confdefs.h
15859 HAVE_SGI_OS_FALSE='#'
15861 HAVE_SGI_OS_TRUE='#'
15866 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX -o x`uname -s` = xIRIX64
15872 HAVE_IRIX_OS_FALSE='#'
15874 HAVE_IRIX_OS_TRUE='#'
15875 HAVE_IRIX_OS_FALSE=
15877 $as_echo "#define HAVE_IRIX_OS 1" >>confdefs.h
15884 HAVE_IRIX_OS_FALSE='#'
15886 HAVE_IRIX_OS_TRUE='#'
15887 HAVE_IRIX_OS_FALSE=
15891 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
15896 HAVE_DARWIN_OS_TRUE=
15897 HAVE_DARWIN_OS_FALSE='#'
15899 HAVE_DARWIN_OS_TRUE='#'
15900 HAVE_DARWIN_OS_FALSE=
15902 $as_echo "#define HAVE_DARWIN_OS 1" >>confdefs.h
15908 HAVE_DARWIN_OS_TRUE=
15909 HAVE_DARWIN_OS_FALSE='#'
15911 HAVE_DARWIN_OS_TRUE='#'
15912 HAVE_DARWIN_OS_FALSE=
15917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Operating System Distribution" >&5
15918 $as_echo_n "checking for Operating System Distribution... " >&6; }
15919 if test "x$DISTNAME" != "x"
15921 echo "distname set to $DISTNAME"
15922 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
15925 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
15928 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
15931 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
15934 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
15937 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
15940 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
15943 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
15946 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
15949 elif test -f /etc/SuSE-release
15952 elif test -d /etc/SuSEconfig
15955 elif test -f /etc/mandrake-release
15958 elif test -f /etc/whitebox-release
15961 elif test -f /etc/redhat-release
15964 elif test -f /etc/gentoo-release
15967 elif test -f /etc/debian_version
15970 elif test -f /etc/slackware-version
15973 elif test x$host_vendor = xapple
15976 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
15979 elif test -f /etc/engarde-version
15982 elif test -f /etc/arch-release
15985 elif test "$CYGWIN" = yes
15988 $as_echo "#define HAVE_CYGWIN 1" >>confdefs.h
15993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
15994 $as_echo "done" >&6; }
15997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
15998 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
16000 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
16001 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
16002 $as_echo_n "(cached) " >&6
16004 cat >conftest.make <<\_ACEOF
16007 @echo '@@@%%%=$(MAKE)=@@@%%%'
16009 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
16010 case `${MAKE-make} -f conftest.make 2>/dev/null` in
16011 *@@@%%%=?*=@@@%%%*)
16012 eval ac_cv_prog_make_${ac_make}_set=yes;;
16014 eval ac_cv_prog_make_${ac_make}_set=no;;
16016 rm -f conftest.make
16018 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
16019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16020 $as_echo "yes" >&6; }
16023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16024 $as_echo "no" >&6; }
16025 SET_MAKE="MAKE=${MAKE-make}"
16031 if test -n "$ac_aux_dir"; then
16032 case "$ac_aux_dir" in
16033 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
16034 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
16037 if test -z "$MKINSTALLDIRS"; then
16038 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
16043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
16044 $as_echo_n "checking whether NLS is requested... " >&6; }
16045 # Check whether --enable-nls was given.
16046 if test "${enable_nls+set}" = set; then :
16047 enableval=$enable_nls; USE_NLS=$enableval
16052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
16053 $as_echo "$USE_NLS" >&6; }
16060 # Prepare PATH_SEPARATOR.
16061 # The user is always right.
16062 if test "${PATH_SEPARATOR+set}" != set; then
16063 echo "#! /bin/sh" >conf$$.sh
16064 echo "exit 0" >>conf$$.sh
16066 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16074 # Find out how to test for executable files. Don't use a zero-byte file,
16075 # as systems may use methods other than mode bits to determine executability.
16076 cat >conf$$.file <<_ASEOF
16080 chmod +x conf$$.file
16081 if test -x conf$$.file >/dev/null 2>&1; then
16082 ac_executable_p="test -x"
16084 ac_executable_p="test -f"
16088 # Extract the first word of "msgfmt", so it can be a program name with args.
16089 set dummy msgfmt; ac_word=$2
16090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16091 $as_echo_n "checking for $ac_word... " >&6; }
16092 if test "${ac_cv_path_MSGFMT+set}" = set; then :
16093 $as_echo_n "(cached) " >&6
16097 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
16100 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16101 for ac_dir in $PATH; do
16103 test -z "$ac_dir" && ac_dir=.
16104 for ac_exec_ext in '' $ac_executable_extensions; do
16105 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16106 echo "$as_me: trying $ac_dir/$ac_word..." >&5
16107 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
16108 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16109 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
16116 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
16120 MSGFMT="$ac_cv_path_MSGFMT"
16121 if test "$MSGFMT" != ":"; then
16122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
16123 $as_echo "$MSGFMT" >&6; }
16125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16126 $as_echo "no" >&6; }
16129 # Extract the first word of "gmsgfmt", so it can be a program name with args.
16130 set dummy gmsgfmt; ac_word=$2
16131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16132 $as_echo_n "checking for $ac_word... " >&6; }
16133 if test "${ac_cv_path_GMSGFMT+set}" = set; then :
16134 $as_echo_n "(cached) " >&6
16138 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
16141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16142 for as_dir in $PATH
16145 test -z "$as_dir" && as_dir=.
16146 for ac_exec_ext in '' $ac_executable_extensions; do
16147 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16148 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
16149 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16156 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
16160 GMSGFMT=$ac_cv_path_GMSGFMT
16161 if test -n "$GMSGFMT"; then
16162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
16163 $as_echo "$GMSGFMT" >&6; }
16165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16166 $as_echo "no" >&6; }
16172 # Prepare PATH_SEPARATOR.
16173 # The user is always right.
16174 if test "${PATH_SEPARATOR+set}" != set; then
16175 echo "#! /bin/sh" >conf$$.sh
16176 echo "exit 0" >>conf$$.sh
16178 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16186 # Find out how to test for executable files. Don't use a zero-byte file,
16187 # as systems may use methods other than mode bits to determine executability.
16188 cat >conf$$.file <<_ASEOF
16192 chmod +x conf$$.file
16193 if test -x conf$$.file >/dev/null 2>&1; then
16194 ac_executable_p="test -x"
16196 ac_executable_p="test -f"
16200 # Extract the first word of "xgettext", so it can be a program name with args.
16201 set dummy xgettext; ac_word=$2
16202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16203 $as_echo_n "checking for $ac_word... " >&6; }
16204 if test "${ac_cv_path_XGETTEXT+set}" = set; then :
16205 $as_echo_n "(cached) " >&6
16207 case "$XGETTEXT" in
16209 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
16212 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16213 for ac_dir in $PATH; do
16215 test -z "$ac_dir" && ac_dir=.
16216 for ac_exec_ext in '' $ac_executable_extensions; do
16217 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16218 echo "$as_me: trying $ac_dir/$ac_word..." >&5
16219 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
16220 (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
16221 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
16228 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
16232 XGETTEXT="$ac_cv_path_XGETTEXT"
16233 if test "$XGETTEXT" != ":"; then
16234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
16235 $as_echo "$XGETTEXT" >&6; }
16237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16238 $as_echo "no" >&6; }
16244 # Prepare PATH_SEPARATOR.
16245 # The user is always right.
16246 if test "${PATH_SEPARATOR+set}" != set; then
16247 echo "#! /bin/sh" >conf$$.sh
16248 echo "exit 0" >>conf$$.sh
16250 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16258 # Find out how to test for executable files. Don't use a zero-byte file,
16259 # as systems may use methods other than mode bits to determine executability.
16260 cat >conf$$.file <<_ASEOF
16264 chmod +x conf$$.file
16265 if test -x conf$$.file >/dev/null 2>&1; then
16266 ac_executable_p="test -x"
16268 ac_executable_p="test -f"
16272 # Extract the first word of "msgmerge", so it can be a program name with args.
16273 set dummy msgmerge; ac_word=$2
16274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16275 $as_echo_n "checking for $ac_word... " >&6; }
16276 if test "${ac_cv_path_MSGMERGE+set}" = set; then :
16277 $as_echo_n "(cached) " >&6
16279 case "$MSGMERGE" in
16281 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
16284 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16285 for ac_dir in $PATH; do
16287 test -z "$ac_dir" && ac_dir=.
16288 for ac_exec_ext in '' $ac_executable_extensions; do
16289 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16290 echo "$as_me: trying $ac_dir/$ac_word..." >&5
16291 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
16292 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
16299 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
16303 MSGMERGE="$ac_cv_path_MSGMERGE"
16304 if test "$MSGMERGE" != ":"; then
16305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
16306 $as_echo "$MSGMERGE" >&6; }
16308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16309 $as_echo "no" >&6; }
16313 if test "$GMSGFMT" != ":"; then
16314 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
16315 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16318 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
16319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
16320 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
16325 if test "$XGETTEXT" != ":"; then
16326 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
16327 (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
16330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
16331 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
16337 ac_config_commands="$ac_config_commands default-1"
16341 if test "X$prefix" = "XNONE"; then
16342 acl_final_prefix="$ac_default_prefix"
16344 acl_final_prefix="$prefix"
16346 if test "X$exec_prefix" = "XNONE"; then
16347 acl_final_exec_prefix='${prefix}'
16349 acl_final_exec_prefix="$exec_prefix"
16351 acl_save_prefix="$prefix"
16352 prefix="$acl_final_prefix"
16353 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
16354 prefix="$acl_save_prefix"
16357 # Check whether --with-gnu-ld was given.
16358 if test "${with_gnu_ld+set}" = set; then :
16359 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
16364 # Prepare PATH_SEPARATOR.
16365 # The user is always right.
16366 if test "${PATH_SEPARATOR+set}" != set; then
16367 echo "#! /bin/sh" >conf$$.sh
16368 echo "exit 0" >>conf$$.sh
16370 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16378 if test "$GCC" = yes; then
16379 # Check if gcc -print-prog-name=ld gives a path.
16380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
16381 $as_echo_n "checking for ld used by GCC... " >&6; }
16384 # gcc leaves a trailing carriage return which upsets mingw
16385 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16387 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16390 # Accept absolute paths.
16391 [\\/]* | [A-Za-z]:[\\/]*)
16392 re_direlt='/[^/][^/]*/\.\./'
16393 # Canonicalize the path of ld
16394 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
16395 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
16396 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
16398 test -z "$LD" && LD="$ac_prog"
16401 # If it fails, then pretend we aren't using GCC.
16405 # If it is relative, then search for the first ld in PATH.
16406 with_gnu_ld=unknown
16409 elif test "$with_gnu_ld" = yes; then
16410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
16411 $as_echo_n "checking for GNU ld... " >&6; }
16413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
16414 $as_echo_n "checking for non-GNU ld... " >&6; }
16416 if test "${acl_cv_path_LD+set}" = set; then :
16417 $as_echo_n "(cached) " >&6
16419 if test -z "$LD"; then
16420 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
16421 for ac_dir in $PATH; do
16422 test -z "$ac_dir" && ac_dir=.
16423 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16424 acl_cv_path_LD="$ac_dir/$ac_prog"
16425 # Check to see if the program is GNU ld. I'd rather use --version,
16426 # but apparently some GNU ld's only accept -v.
16427 # Break only if it was the GNU/non-GNU ld that we prefer.
16428 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
16429 *GNU* | *'with BFD'*)
16430 test "$with_gnu_ld" != no && break ;;
16432 test "$with_gnu_ld" != yes && break ;;
16438 acl_cv_path_LD="$LD" # Let the user override the test with a path.
16442 LD="$acl_cv_path_LD"
16443 if test -n "$LD"; then
16444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
16445 $as_echo "$LD" >&6; }
16447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16448 $as_echo "no" >&6; }
16450 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
16451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
16452 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
16453 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
16454 $as_echo_n "(cached) " >&6
16456 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
16457 case `$LD -v 2>&1 </dev/null` in
16458 *GNU* | *'with BFD'*)
16459 acl_cv_prog_gnu_ld=yes ;;
16461 acl_cv_prog_gnu_ld=no ;;
16464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
16465 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
16466 with_gnu_ld=$acl_cv_prog_gnu_ld
16471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
16472 $as_echo_n "checking for shared library run path origin... " >&6; }
16473 if test "${acl_cv_rpath+set}" = set; then :
16474 $as_echo_n "(cached) " >&6
16477 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
16478 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
16480 rm -f ./conftest.sh
16484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
16485 $as_echo "$acl_cv_rpath" >&6; }
16487 libext="$acl_cv_libext"
16488 shlibext="$acl_cv_shlibext"
16489 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
16490 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
16491 hardcode_direct="$acl_cv_hardcode_direct"
16492 hardcode_minus_L="$acl_cv_hardcode_minus_L"
16493 # Check whether --enable-rpath was given.
16494 if test "${enable_rpath+set}" = set; then :
16495 enableval=$enable_rpath; :
16509 acl_save_prefix="$prefix"
16510 prefix="$acl_final_prefix"
16511 acl_save_exec_prefix="$exec_prefix"
16512 exec_prefix="$acl_final_exec_prefix"
16514 eval additional_includedir=\"$includedir\"
16515 eval additional_libdir=\"$libdir\"
16517 exec_prefix="$acl_save_exec_prefix"
16518 prefix="$acl_save_prefix"
16521 # Check whether --with-libiconv-prefix was given.
16522 if test "${with_libiconv_prefix+set}" = set; then :
16523 withval=$with_libiconv_prefix;
16524 if test "X$withval" = "Xno"; then
16527 if test "X$withval" = "X"; then
16529 acl_save_prefix="$prefix"
16530 prefix="$acl_final_prefix"
16531 acl_save_exec_prefix="$exec_prefix"
16532 exec_prefix="$acl_final_exec_prefix"
16534 eval additional_includedir=\"$includedir\"
16535 eval additional_libdir=\"$libdir\"
16537 exec_prefix="$acl_save_exec_prefix"
16538 prefix="$acl_save_prefix"
16541 additional_includedir="$withval/include"
16542 additional_libdir="$withval/lib"
16553 names_already_handled=
16554 names_next_round='iconv '
16555 while test -n "$names_next_round"; do
16556 names_this_round="$names_next_round"
16558 for name in $names_this_round; do
16560 for n in $names_already_handled; do
16561 if test "$n" = "$name"; then
16562 already_handled=yes
16566 if test -z "$already_handled"; then
16567 names_already_handled="$names_already_handled $name"
16568 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
16569 eval value=\"\$HAVE_LIB$uppername\"
16570 if test -n "$value"; then
16571 if test "$value" = yes; then
16572 eval value=\"\$LIB$uppername\"
16573 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
16574 eval value=\"\$LTLIB$uppername\"
16575 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
16584 if test $use_additional = yes; then
16585 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
16586 found_dir="$additional_libdir"
16587 found_so="$additional_libdir/lib$name.$shlibext"
16588 if test -f "$additional_libdir/lib$name.la"; then
16589 found_la="$additional_libdir/lib$name.la"
16592 if test -f "$additional_libdir/lib$name.$libext"; then
16593 found_dir="$additional_libdir"
16594 found_a="$additional_libdir/lib$name.$libext"
16595 if test -f "$additional_libdir/lib$name.la"; then
16596 found_la="$additional_libdir/lib$name.la"
16601 if test "X$found_dir" = "X"; then
16602 for x in $LDFLAGS $LTLIBICONV; do
16604 acl_save_prefix="$prefix"
16605 prefix="$acl_final_prefix"
16606 acl_save_exec_prefix="$exec_prefix"
16607 exec_prefix="$acl_final_exec_prefix"
16609 exec_prefix="$acl_save_exec_prefix"
16610 prefix="$acl_save_prefix"
16614 dir=`echo "X$x" | sed -e 's/^X-L//'`
16615 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
16617 found_so="$dir/lib$name.$shlibext"
16618 if test -f "$dir/lib$name.la"; then
16619 found_la="$dir/lib$name.la"
16622 if test -f "$dir/lib$name.$libext"; then
16624 found_a="$dir/lib$name.$libext"
16625 if test -f "$dir/lib$name.la"; then
16626 found_la="$dir/lib$name.la"
16632 if test "X$found_dir" != "X"; then
16637 if test "X$found_dir" != "X"; then
16638 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
16639 if test "X$found_so" != "X"; then
16640 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
16641 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
16644 for x in $ltrpathdirs; do
16645 if test "X$x" = "X$found_dir"; then
16650 if test -z "$haveit"; then
16651 ltrpathdirs="$ltrpathdirs $found_dir"
16653 if test "$hardcode_direct" = yes; then
16654 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
16656 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
16657 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
16659 for x in $rpathdirs; do
16660 if test "X$x" = "X$found_dir"; then
16665 if test -z "$haveit"; then
16666 rpathdirs="$rpathdirs $found_dir"
16670 for x in $LDFLAGS $LIBICONV; do
16672 acl_save_prefix="$prefix"
16673 prefix="$acl_final_prefix"
16674 acl_save_exec_prefix="$exec_prefix"
16675 exec_prefix="$acl_final_exec_prefix"
16677 exec_prefix="$acl_save_exec_prefix"
16678 prefix="$acl_save_prefix"
16680 if test "X$x" = "X-L$found_dir"; then
16685 if test -z "$haveit"; then
16686 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
16688 if test "$hardcode_minus_L" != no; then
16689 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
16691 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
16697 if test "X$found_a" != "X"; then
16698 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
16700 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
16703 additional_includedir=
16704 case "$found_dir" in
16706 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
16707 additional_includedir="$basedir/include"
16710 if test "X$additional_includedir" != "X"; then
16711 if test "X$additional_includedir" != "X/usr/include"; then
16713 if test "X$additional_includedir" = "X/usr/local/include"; then
16714 if test -n "$GCC"; then
16716 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
16720 if test -z "$haveit"; then
16721 for x in $CPPFLAGS $INCICONV; do
16723 acl_save_prefix="$prefix"
16724 prefix="$acl_final_prefix"
16725 acl_save_exec_prefix="$exec_prefix"
16726 exec_prefix="$acl_final_exec_prefix"
16728 exec_prefix="$acl_save_exec_prefix"
16729 prefix="$acl_save_prefix"
16731 if test "X$x" = "X-I$additional_includedir"; then
16736 if test -z "$haveit"; then
16737 if test -d "$additional_includedir"; then
16738 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
16744 if test -n "$found_la"; then
16745 save_libdir="$libdir"
16746 case "$found_la" in
16747 */* | *\\*) . "$found_la" ;;
16748 *) . "./$found_la" ;;
16750 libdir="$save_libdir"
16751 for dep in $dependency_libs; do
16754 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
16755 if test "X$additional_libdir" != "X/usr/lib"; then
16757 if test "X$additional_libdir" = "X/usr/local/lib"; then
16758 if test -n "$GCC"; then
16760 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
16764 if test -z "$haveit"; then
16766 for x in $LDFLAGS $LIBICONV; 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 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
16787 for x in $LDFLAGS $LTLIBICONV; do
16789 acl_save_prefix="$prefix"
16790 prefix="$acl_final_prefix"
16791 acl_save_exec_prefix="$exec_prefix"
16792 exec_prefix="$acl_final_exec_prefix"
16794 exec_prefix="$acl_save_exec_prefix"
16795 prefix="$acl_save_prefix"
16797 if test "X$x" = "X-L$additional_libdir"; then
16802 if test -z "$haveit"; then
16803 if test -d "$additional_libdir"; then
16804 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
16811 dir=`echo "X$dep" | sed -e 's/^X-R//'`
16812 if test "$enable_rpath" != no; then
16814 for x in $rpathdirs; do
16815 if test "X$x" = "X$dir"; then
16820 if test -z "$haveit"; then
16821 rpathdirs="$rpathdirs $dir"
16824 for x in $ltrpathdirs; do
16825 if test "X$x" = "X$dir"; then
16830 if test -z "$haveit"; then
16831 ltrpathdirs="$ltrpathdirs $dir"
16836 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
16839 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
16842 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
16843 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
16849 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
16850 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
16856 if test "X$rpathdirs" != "X"; then
16857 if test -n "$hardcode_libdir_separator"; then
16859 for found_dir in $rpathdirs; do
16860 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
16862 acl_save_libdir="$libdir"
16864 eval flag=\"$hardcode_libdir_flag_spec\"
16865 libdir="$acl_save_libdir"
16866 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
16868 for found_dir in $rpathdirs; do
16869 acl_save_libdir="$libdir"
16870 libdir="$found_dir"
16871 eval flag=\"$hardcode_libdir_flag_spec\"
16872 libdir="$acl_save_libdir"
16873 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
16877 if test "X$ltrpathdirs" != "X"; then
16878 for found_dir in $ltrpathdirs; do
16879 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
16900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
16901 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
16902 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then :
16903 $as_echo_n "(cached) " >&6
16905 gt_save_CPPFLAGS="$CPPFLAGS"
16906 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
16907 gt_save_LIBS="$LIBS"
16908 LIBS="$LIBS -framework CoreFoundation"
16909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16910 /* end confdefs.h. */
16911 #include <CFPreferences.h>
16915 CFPreferencesCopyAppValue(NULL, NULL)
16920 if ac_fn_c_try_link "$LINENO"; then :
16921 gt_cv_func_CFPreferencesCopyAppValue=yes
16923 gt_cv_func_CFPreferencesCopyAppValue=no
16925 rm -f core conftest.err conftest.$ac_objext \
16926 conftest$ac_exeext conftest.$ac_ext
16927 CPPFLAGS="$gt_save_CPPFLAGS"
16928 LIBS="$gt_save_LIBS"
16930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
16931 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
16932 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
16934 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
16937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
16938 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
16939 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then :
16940 $as_echo_n "(cached) " >&6
16942 gt_save_CPPFLAGS="$CPPFLAGS"
16943 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
16944 gt_save_LIBS="$LIBS"
16945 LIBS="$LIBS -framework CoreFoundation"
16946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16947 /* end confdefs.h. */
16948 #include <CFLocale.h>
16952 CFLocaleCopyCurrent();
16957 if ac_fn_c_try_link "$LINENO"; then :
16958 gt_cv_func_CFLocaleCopyCurrent=yes
16960 gt_cv_func_CFLocaleCopyCurrent=no
16962 rm -f core conftest.err conftest.$ac_objext \
16963 conftest$ac_exeext conftest.$ac_ext
16964 CPPFLAGS="$gt_save_CPPFLAGS"
16965 LIBS="$gt_save_LIBS"
16967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
16968 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
16969 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
16971 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
16975 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
16976 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
16982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
16983 $as_echo_n "checking whether NLS is requested... " >&6; }
16984 # Check whether --enable-nls was given.
16985 if test "${enable_nls+set}" = set; then :
16986 enableval=$enable_nls; USE_NLS=$enableval
16991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
16992 $as_echo "$USE_NLS" >&6; }
17001 if test "$USE_NLS" = "yes"; then
17002 gt_use_preinstalled_gnugettext=no
17009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
17010 $as_echo_n "checking for GNU gettext in libc... " >&6; }
17011 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then :
17012 $as_echo_n "(cached) " >&6
17014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17015 /* end confdefs.h. */
17016 #include <libintl.h>
17017 extern int _nl_msg_cat_cntr;
17018 extern int *_nl_domain_bindings;
17022 bindtextdomain ("", "");
17023 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
17028 if ac_fn_c_try_link "$LINENO"; then :
17029 gt_cv_func_gnugettext1_libc=yes
17031 gt_cv_func_gnugettext1_libc=no
17033 rm -f core conftest.err conftest.$ac_objext \
17034 conftest$ac_exeext conftest.$ac_ext
17036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5
17037 $as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
17039 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
17045 am_save_CPPFLAGS="$CPPFLAGS"
17047 for element in $INCICONV; do
17049 for x in $CPPFLAGS; do
17051 acl_save_prefix="$prefix"
17052 prefix="$acl_final_prefix"
17053 acl_save_exec_prefix="$exec_prefix"
17054 exec_prefix="$acl_final_exec_prefix"
17056 exec_prefix="$acl_save_exec_prefix"
17057 prefix="$acl_save_prefix"
17059 if test "X$x" = "X$element"; then
17064 if test -z "$haveit"; then
17065 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
17070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
17071 $as_echo_n "checking for iconv... " >&6; }
17072 if test "${am_cv_func_iconv+set}" = set; then :
17073 $as_echo_n "(cached) " >&6
17076 am_cv_func_iconv="no, consider installing GNU libiconv"
17078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17079 /* end confdefs.h. */
17080 #include <stdlib.h>
17085 iconv_t cd = iconv_open("","");
17086 iconv(cd,NULL,NULL,NULL,NULL);
17092 if ac_fn_c_try_link "$LINENO"; then :
17093 am_cv_func_iconv=yes
17095 rm -f core conftest.err conftest.$ac_objext \
17096 conftest$ac_exeext conftest.$ac_ext
17097 if test "$am_cv_func_iconv" != yes; then
17098 am_save_LIBS="$LIBS"
17099 LIBS="$LIBS $LIBICONV"
17100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17101 /* end confdefs.h. */
17102 #include <stdlib.h>
17107 iconv_t cd = iconv_open("","");
17108 iconv(cd,NULL,NULL,NULL,NULL);
17114 if ac_fn_c_try_link "$LINENO"; then :
17115 am_cv_lib_iconv=yes
17116 am_cv_func_iconv=yes
17118 rm -f core conftest.err conftest.$ac_objext \
17119 conftest$ac_exeext conftest.$ac_ext
17120 LIBS="$am_save_LIBS"
17124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
17125 $as_echo "$am_cv_func_iconv" >&6; }
17126 if test "$am_cv_func_iconv" = yes; then
17128 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
17131 if test "$am_cv_lib_iconv" = yes; then
17132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
17133 $as_echo_n "checking how to link with libiconv... " >&6; }
17134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
17135 $as_echo "$LIBICONV" >&6; }
17137 CPPFLAGS="$am_save_CPPFLAGS"
17149 acl_save_prefix="$prefix"
17150 prefix="$acl_final_prefix"
17151 acl_save_exec_prefix="$exec_prefix"
17152 exec_prefix="$acl_final_exec_prefix"
17154 eval additional_includedir=\"$includedir\"
17155 eval additional_libdir=\"$libdir\"
17157 exec_prefix="$acl_save_exec_prefix"
17158 prefix="$acl_save_prefix"
17161 # Check whether --with-libintl-prefix was given.
17162 if test "${with_libintl_prefix+set}" = set; then :
17163 withval=$with_libintl_prefix;
17164 if test "X$withval" = "Xno"; then
17167 if test "X$withval" = "X"; then
17169 acl_save_prefix="$prefix"
17170 prefix="$acl_final_prefix"
17171 acl_save_exec_prefix="$exec_prefix"
17172 exec_prefix="$acl_final_exec_prefix"
17174 eval additional_includedir=\"$includedir\"
17175 eval additional_libdir=\"$libdir\"
17177 exec_prefix="$acl_save_exec_prefix"
17178 prefix="$acl_save_prefix"
17181 additional_includedir="$withval/include"
17182 additional_libdir="$withval/lib"
17193 names_already_handled=
17194 names_next_round='intl '
17195 while test -n "$names_next_round"; do
17196 names_this_round="$names_next_round"
17198 for name in $names_this_round; do
17200 for n in $names_already_handled; do
17201 if test "$n" = "$name"; then
17202 already_handled=yes
17206 if test -z "$already_handled"; then
17207 names_already_handled="$names_already_handled $name"
17208 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
17209 eval value=\"\$HAVE_LIB$uppername\"
17210 if test -n "$value"; then
17211 if test "$value" = yes; then
17212 eval value=\"\$LIB$uppername\"
17213 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
17214 eval value=\"\$LTLIB$uppername\"
17215 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
17224 if test $use_additional = yes; then
17225 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
17226 found_dir="$additional_libdir"
17227 found_so="$additional_libdir/lib$name.$shlibext"
17228 if test -f "$additional_libdir/lib$name.la"; then
17229 found_la="$additional_libdir/lib$name.la"
17232 if test -f "$additional_libdir/lib$name.$libext"; then
17233 found_dir="$additional_libdir"
17234 found_a="$additional_libdir/lib$name.$libext"
17235 if test -f "$additional_libdir/lib$name.la"; then
17236 found_la="$additional_libdir/lib$name.la"
17241 if test "X$found_dir" = "X"; then
17242 for x in $LDFLAGS $LTLIBINTL; do
17244 acl_save_prefix="$prefix"
17245 prefix="$acl_final_prefix"
17246 acl_save_exec_prefix="$exec_prefix"
17247 exec_prefix="$acl_final_exec_prefix"
17249 exec_prefix="$acl_save_exec_prefix"
17250 prefix="$acl_save_prefix"
17254 dir=`echo "X$x" | sed -e 's/^X-L//'`
17255 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
17257 found_so="$dir/lib$name.$shlibext"
17258 if test -f "$dir/lib$name.la"; then
17259 found_la="$dir/lib$name.la"
17262 if test -f "$dir/lib$name.$libext"; then
17264 found_a="$dir/lib$name.$libext"
17265 if test -f "$dir/lib$name.la"; then
17266 found_la="$dir/lib$name.la"
17272 if test "X$found_dir" != "X"; then
17277 if test "X$found_dir" != "X"; then
17278 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
17279 if test "X$found_so" != "X"; then
17280 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
17281 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17284 for x in $ltrpathdirs; do
17285 if test "X$x" = "X$found_dir"; then
17290 if test -z "$haveit"; then
17291 ltrpathdirs="$ltrpathdirs $found_dir"
17293 if test "$hardcode_direct" = yes; then
17294 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17296 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
17297 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17299 for x in $rpathdirs; do
17300 if test "X$x" = "X$found_dir"; then
17305 if test -z "$haveit"; then
17306 rpathdirs="$rpathdirs $found_dir"
17310 for x in $LDFLAGS $LIBINTL; do
17312 acl_save_prefix="$prefix"
17313 prefix="$acl_final_prefix"
17314 acl_save_exec_prefix="$exec_prefix"
17315 exec_prefix="$acl_final_exec_prefix"
17317 exec_prefix="$acl_save_exec_prefix"
17318 prefix="$acl_save_prefix"
17320 if test "X$x" = "X-L$found_dir"; then
17325 if test -z "$haveit"; then
17326 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
17328 if test "$hardcode_minus_L" != no; then
17329 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17331 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
17337 if test "X$found_a" != "X"; then
17338 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
17340 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
17343 additional_includedir=
17344 case "$found_dir" in
17346 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
17347 additional_includedir="$basedir/include"
17350 if test "X$additional_includedir" != "X"; then
17351 if test "X$additional_includedir" != "X/usr/include"; then
17353 if test "X$additional_includedir" = "X/usr/local/include"; then
17354 if test -n "$GCC"; then
17356 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17360 if test -z "$haveit"; then
17361 for x in $CPPFLAGS $INCINTL; do
17363 acl_save_prefix="$prefix"
17364 prefix="$acl_final_prefix"
17365 acl_save_exec_prefix="$exec_prefix"
17366 exec_prefix="$acl_final_exec_prefix"
17368 exec_prefix="$acl_save_exec_prefix"
17369 prefix="$acl_save_prefix"
17371 if test "X$x" = "X-I$additional_includedir"; then
17376 if test -z "$haveit"; then
17377 if test -d "$additional_includedir"; then
17378 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
17384 if test -n "$found_la"; then
17385 save_libdir="$libdir"
17386 case "$found_la" in
17387 */* | *\\*) . "$found_la" ;;
17388 *) . "./$found_la" ;;
17390 libdir="$save_libdir"
17391 for dep in $dependency_libs; do
17394 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17395 if test "X$additional_libdir" != "X/usr/lib"; then
17397 if test "X$additional_libdir" = "X/usr/local/lib"; then
17398 if test -n "$GCC"; then
17400 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17404 if test -z "$haveit"; then
17406 for x in $LDFLAGS $LIBINTL; 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 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
17427 for x in $LDFLAGS $LTLIBINTL; do
17429 acl_save_prefix="$prefix"
17430 prefix="$acl_final_prefix"
17431 acl_save_exec_prefix="$exec_prefix"
17432 exec_prefix="$acl_final_exec_prefix"
17434 exec_prefix="$acl_save_exec_prefix"
17435 prefix="$acl_save_prefix"
17437 if test "X$x" = "X-L$additional_libdir"; then
17442 if test -z "$haveit"; then
17443 if test -d "$additional_libdir"; then
17444 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
17451 dir=`echo "X$dep" | sed -e 's/^X-R//'`
17452 if test "$enable_rpath" != no; then
17454 for x in $rpathdirs; do
17455 if test "X$x" = "X$dir"; then
17460 if test -z "$haveit"; then
17461 rpathdirs="$rpathdirs $dir"
17464 for x in $ltrpathdirs; do
17465 if test "X$x" = "X$dir"; then
17470 if test -z "$haveit"; then
17471 ltrpathdirs="$ltrpathdirs $dir"
17476 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
17479 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
17482 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
17483 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
17489 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
17490 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
17496 if test "X$rpathdirs" != "X"; then
17497 if test -n "$hardcode_libdir_separator"; then
17499 for found_dir in $rpathdirs; do
17500 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
17502 acl_save_libdir="$libdir"
17504 eval flag=\"$hardcode_libdir_flag_spec\"
17505 libdir="$acl_save_libdir"
17506 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
17508 for found_dir in $rpathdirs; do
17509 acl_save_libdir="$libdir"
17510 libdir="$found_dir"
17511 eval flag=\"$hardcode_libdir_flag_spec\"
17512 libdir="$acl_save_libdir"
17513 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
17517 if test "X$ltrpathdirs" != "X"; then
17518 for found_dir in $ltrpathdirs; do
17519 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
17523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
17524 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
17525 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then :
17526 $as_echo_n "(cached) " >&6
17528 gt_save_CPPFLAGS="$CPPFLAGS"
17529 CPPFLAGS="$CPPFLAGS $INCINTL"
17530 gt_save_LIBS="$LIBS"
17531 LIBS="$LIBS $LIBINTL"
17532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17533 /* end confdefs.h. */
17534 #include <libintl.h>
17535 extern int _nl_msg_cat_cntr;
17540 const char *_nl_expand_alias (const char *);
17544 bindtextdomain ("", "");
17545 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
17550 if ac_fn_c_try_link "$LINENO"; then :
17551 gt_cv_func_gnugettext1_libintl=yes
17553 gt_cv_func_gnugettext1_libintl=no
17555 rm -f core conftest.err conftest.$ac_objext \
17556 conftest$ac_exeext conftest.$ac_ext
17557 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
17558 LIBS="$LIBS $LIBICONV"
17559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17560 /* end confdefs.h. */
17561 #include <libintl.h>
17562 extern int _nl_msg_cat_cntr;
17567 const char *_nl_expand_alias (const char *);
17571 bindtextdomain ("", "");
17572 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
17577 if ac_fn_c_try_link "$LINENO"; then :
17578 LIBINTL="$LIBINTL $LIBICONV"
17579 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
17580 gt_cv_func_gnugettext1_libintl=yes
17583 rm -f core conftest.err conftest.$ac_objext \
17584 conftest$ac_exeext conftest.$ac_ext
17586 CPPFLAGS="$gt_save_CPPFLAGS"
17587 LIBS="$gt_save_LIBS"
17589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5
17590 $as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
17593 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
17594 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
17595 && test "$PACKAGE" != gettext-runtime \
17596 && test "$PACKAGE" != gettext-tools; }; then
17597 gt_use_preinstalled_gnugettext=yes
17606 if test -n "$INTL_MACOSX_LIBS"; then
17607 if test "$gt_use_preinstalled_gnugettext" = "yes" \
17608 || test "$nls_cv_use_gnu_gettext" = "yes"; then
17609 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
17610 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
17614 if test "$gt_use_preinstalled_gnugettext" = "yes" \
17615 || test "$nls_cv_use_gnu_gettext" = "yes"; then
17617 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
17624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
17625 $as_echo_n "checking whether to use NLS... " >&6; }
17626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
17627 $as_echo "$USE_NLS" >&6; }
17628 if test "$USE_NLS" = "yes"; then
17629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
17630 $as_echo_n "checking where the gettext function comes from... " >&6; }
17631 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
17632 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
17633 gt_source="external libintl"
17638 gt_source="included intl directory"
17640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
17641 $as_echo "$gt_source" >&6; }
17644 if test "$USE_NLS" = "yes"; then
17646 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
17647 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
17648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
17649 $as_echo_n "checking how to link with libintl... " >&6; }
17650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
17651 $as_echo "$LIBINTL" >&6; }
17653 for element in $INCINTL; do
17655 for x in $CPPFLAGS; do
17657 acl_save_prefix="$prefix"
17658 prefix="$acl_final_prefix"
17659 acl_save_exec_prefix="$exec_prefix"
17660 exec_prefix="$acl_final_exec_prefix"
17662 exec_prefix="$acl_save_exec_prefix"
17663 prefix="$acl_save_prefix"
17665 if test "X$x" = "X$element"; then
17670 if test -z "$haveit"; then
17671 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
17678 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
17681 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
17690 INTLLIBS="$LIBINTL"
17698 os_name=`uname -s 2>/dev/null`
17699 if test x${prefix} = xNONE ; then
17700 if test `eval echo ${sysconfdir}` = NONE/etc ; then
17701 sysconfdir=/etc/bacula
17704 if test `eval echo ${libdir}` = NONE/lib ; then
17707 os_processor=`uname -p 2>/dev/null`
17708 case ${os_processor} in
17723 if test `eval echo ${includedir}` = NONE/include ; then
17724 includedir=/usr/include
17727 if test `eval echo ${datarootdir}` = NONE/share ; then
17728 datarootdir=/usr/share
17733 if test x${exec_prefix} = xNONE ; then
17734 exec_prefix=${prefix}
17737 sysconfdir=`eval echo ${sysconfdir}`
17738 datarootdir=`eval echo ${datarootdir}`
17739 docdir=`eval echo ${docdir}`
17740 htmldir=`eval echo ${htmldir}`
17741 libdir=`eval echo ${libdir}`
17742 includedir=`eval echo ${includedir}`
17743 localedir=`eval echo ${datarootdir}/locale`
17744 cat >>confdefs.h <<_ACEOF
17745 #define SYSCONFDIR "$sysconfdir"
17748 cat >>confdefs.h <<_ACEOF
17749 #define LOCALEDIR "$localedir"
17753 if test x$sbindir = x'${exec_prefix}/sbin' ; then
17754 sbindir=${exec_prefix}/sbin
17756 sbindir=`eval echo ${sbindir}`
17758 if test x$mandir = x'${prefix}/man' ; then
17759 mandir=/usr/share/man
17762 if test x$htmldir = x${docdir} ; then
17763 htmldir=`eval echo ${docdir}bacula/html`
17766 if test x$docdir = x'/usr/share/doc/' ; then
17767 docdir=`eval echo ${docdir}bacula`
17771 for ac_prog in msgfmt
17773 # Extract the first word of "$ac_prog", so it can be a program name with args.
17774 set dummy $ac_prog; ac_word=$2
17775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17776 $as_echo_n "checking for $ac_word... " >&6; }
17777 if test "${ac_cv_path_MSGFMT+set}" = set; then :
17778 $as_echo_n "(cached) " >&6
17782 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
17785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17786 for as_dir in $PATH
17789 test -z "$as_dir" && as_dir=.
17790 for ac_exec_ext in '' $ac_executable_extensions; do
17791 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17792 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
17793 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17803 MSGFMT=$ac_cv_path_MSGFMT
17804 if test -n "$MSGFMT"; then
17805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
17806 $as_echo "$MSGFMT" >&6; }
17808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17809 $as_echo "no" >&6; }
17813 test -n "$MSGFMT" && break
17815 test -n "$MSGFMT" || MSGFMT="no"
17817 if test "$MSGFMT" = "no"
17819 echo 'msgfmt program not found, disabling NLS !'
17821 USE_INCLUDED_LIBINTL=no
17824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2 or newer" >&5
17825 $as_echo_n "checking whether we are using the GNU C Library 2 or newer... " >&6; }
17826 if test "${ac_cv_gnu_library_2+set}" = set; then :
17827 $as_echo_n "(cached) " >&6
17829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17830 /* end confdefs.h. */
17832 #include <features.h>
17833 #ifdef __GNU_LIBRARY__
17834 #if (__GLIBC__ >= 2)
17840 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17841 $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
17842 ac_cv_gnu_library_2=yes
17844 ac_cv_gnu_library_2=no
17851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2" >&5
17852 $as_echo "$ac_cv_gnu_library_2" >&6; }
17854 GLIBC2="$ac_cv_gnu_library_2"
17857 if test -n "$ac_tool_prefix"; then
17858 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
17859 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
17860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17861 $as_echo_n "checking for $ac_word... " >&6; }
17862 if test "${ac_cv_prog_RANLIB+set}" = set; then :
17863 $as_echo_n "(cached) " >&6
17865 if test -n "$RANLIB"; then
17866 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
17868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17869 for as_dir in $PATH
17872 test -z "$as_dir" && as_dir=.
17873 for ac_exec_ext in '' $ac_executable_extensions; do
17874 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17875 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
17876 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17885 RANLIB=$ac_cv_prog_RANLIB
17886 if test -n "$RANLIB"; then
17887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
17888 $as_echo "$RANLIB" >&6; }
17890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17891 $as_echo "no" >&6; }
17896 if test -z "$ac_cv_prog_RANLIB"; then
17897 ac_ct_RANLIB=$RANLIB
17898 # Extract the first word of "ranlib", so it can be a program name with args.
17899 set dummy ranlib; ac_word=$2
17900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17901 $as_echo_n "checking for $ac_word... " >&6; }
17902 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
17903 $as_echo_n "(cached) " >&6
17905 if test -n "$ac_ct_RANLIB"; then
17906 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
17908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17909 for as_dir in $PATH
17912 test -z "$as_dir" && as_dir=.
17913 for ac_exec_ext in '' $ac_executable_extensions; do
17914 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17915 ac_cv_prog_ac_ct_RANLIB="ranlib"
17916 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17925 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
17926 if test -n "$ac_ct_RANLIB"; then
17927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
17928 $as_echo "$ac_ct_RANLIB" >&6; }
17930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17931 $as_echo "no" >&6; }
17934 if test "x$ac_ct_RANLIB" = x; then
17937 case $cross_compiling:$ac_tool_warned in
17939 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17940 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17941 ac_tool_warned=yes ;;
17943 RANLIB=$ac_ct_RANLIB
17946 RANLIB="$ac_cv_prog_RANLIB"
17950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strerror in -lcposix" >&5
17951 $as_echo_n "checking for strerror in -lcposix... " >&6; }
17952 if test "${ac_cv_lib_cposix_strerror+set}" = set; then :
17953 $as_echo_n "(cached) " >&6
17955 ac_check_lib_save_LIBS=$LIBS
17956 LIBS="-lcposix $LIBS"
17957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17958 /* end confdefs.h. */
17960 /* Override any GCC internal prototype to avoid an error.
17961 Use char because int might match the return type of a GCC
17962 builtin and then its argument prototype would still apply. */
17970 return strerror ();
17975 if ac_fn_c_try_link "$LINENO"; then :
17976 ac_cv_lib_cposix_strerror=yes
17978 ac_cv_lib_cposix_strerror=no
17980 rm -f core conftest.err conftest.$ac_objext \
17981 conftest$ac_exeext conftest.$ac_ext
17982 LIBS=$ac_check_lib_save_LIBS
17984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cposix_strerror" >&5
17985 $as_echo "$ac_cv_lib_cposix_strerror" >&6; }
17986 if test "x$ac_cv_lib_cposix_strerror" = x""yes; then :
17987 LIBS="$LIBS -lcposix"
17992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
17993 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
17994 if test "${ac_cv_c_const+set}" = set; then :
17995 $as_echo_n "(cached) " >&6
17997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17998 /* end confdefs.h. */
18003 /* FIXME: Include the comments suggested by Paul. */
18004 #ifndef __cplusplus
18005 /* Ultrix mips cc rejects this. */
18006 typedef int charset[2];
18008 /* SunOS 4.1.1 cc rejects this. */
18009 char const *const *pcpcc;
18011 /* NEC SVR4.0.2 mips cc rejects this. */
18012 struct point {int x, y;};
18013 static struct point const zero = {0,0};
18014 /* AIX XL C 1.02.0.0 rejects this.
18015 It does not let you subtract one const X* pointer from another in
18016 an arm of an if-expression whose if-part is not a constant
18018 const char *g = "string";
18019 pcpcc = &g + (g ? g-g : 0);
18020 /* HPUX 7.0 cc rejects these. */
18022 ppc = (char**) pcpcc;
18023 pcpcc = (char const *const *) ppc;
18024 { /* SCO 3.2v4 cc rejects this. */
18026 char const *s = 0 ? (char *) 0 : (char const *) 0;
18031 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
18032 int x[] = {25, 17};
18033 const int *foo = &x[0];
18036 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
18037 typedef const int *iptr;
18041 { /* AIX XL C 1.02.0.0 rejects this saying
18042 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
18043 struct s { int j; const int *ap[3]; };
18044 struct s *b; b->j = 5;
18046 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
18047 const int foo = 10;
18048 if (!foo) return 0;
18050 return !cs[0] && !zero.x;
18057 if ac_fn_c_try_compile "$LINENO"; then :
18062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
18065 $as_echo "$ac_cv_c_const" >&6; }
18066 if test $ac_cv_c_const = no; then
18068 $as_echo "#define const /**/" >>confdefs.h
18073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed" >&5
18074 $as_echo_n "checking for signed... " >&6; }
18075 if test "${bh_cv_c_signed+set}" = set; then :
18076 $as_echo_n "(cached) " >&6
18078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18079 /* end confdefs.h. */
18089 if ac_fn_c_try_compile "$LINENO"; then :
18094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bh_cv_c_signed" >&5
18097 $as_echo "$bh_cv_c_signed" >&6; }
18098 if test $bh_cv_c_signed = no; then
18100 $as_echo "#define signed /**/" >>confdefs.h
18104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
18105 $as_echo_n "checking for inline... " >&6; }
18106 if test "${ac_cv_c_inline+set}" = set; then :
18107 $as_echo_n "(cached) " >&6
18110 for ac_kw in inline __inline__ __inline; do
18111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18112 /* end confdefs.h. */
18113 #ifndef __cplusplus
18115 static $ac_kw foo_t static_foo () {return 0; }
18116 $ac_kw foo_t foo () {return 0; }
18120 if ac_fn_c_try_compile "$LINENO"; then :
18121 ac_cv_c_inline=$ac_kw
18123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18124 test "$ac_cv_c_inline" != no && break
18128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
18129 $as_echo "$ac_cv_c_inline" >&6; }
18131 case $ac_cv_c_inline in
18134 case $ac_cv_c_inline in
18136 *) ac_val=$ac_cv_c_inline;;
18138 cat >>confdefs.h <<_ACEOF
18139 #ifndef __cplusplus
18140 #define inline $ac_val
18146 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
18147 if test "x$ac_cv_type_off_t" = x""yes; then :
18151 cat >>confdefs.h <<_ACEOF
18152 #define off_t long int
18157 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
18158 if test "x$ac_cv_type_size_t" = x""yes; then :
18162 cat >>confdefs.h <<_ACEOF
18163 #define size_t unsigned int
18169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long" >&5
18170 $as_echo_n "checking for long long... " >&6; }
18171 if test "${ac_cv_type_long_long+set}" = set; then :
18172 $as_echo_n "(cached) " >&6
18174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18175 /* end confdefs.h. */
18176 long long ll = 1LL; int i = 63;
18180 long long llmax = (long long) -1;
18181 return ll << i | ll >> i | llmax / ll | llmax % ll;
18186 if ac_fn_c_try_link "$LINENO"; then :
18187 ac_cv_type_long_long=yes
18189 ac_cv_type_long_long=no
18191 rm -f core conftest.err conftest.$ac_objext \
18192 conftest$ac_exeext conftest.$ac_ext
18194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long" >&5
18195 $as_echo "$ac_cv_type_long_long" >&6; }
18196 if test $ac_cv_type_long_long = yes; then
18198 $as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h
18203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
18204 $as_echo_n "checking for long double... " >&6; }
18205 if test "${gt_cv_c_long_double+set}" = set; then :
18206 $as_echo_n "(cached) " >&6
18208 if test "$GCC" = yes; then
18209 gt_cv_c_long_double=yes
18211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18212 /* end confdefs.h. */
18214 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
18215 long double foo = 0.0;
18216 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
18217 int array [2*(sizeof(long double) >= sizeof(double)) - 1];
18227 if ac_fn_c_try_compile "$LINENO"; then :
18228 gt_cv_c_long_double=yes
18230 gt_cv_c_long_double=no
18232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_long_double" >&5
18236 $as_echo "$gt_cv_c_long_double" >&6; }
18237 if test $gt_cv_c_long_double = yes; then
18239 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
18244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
18245 $as_echo_n "checking for wchar_t... " >&6; }
18246 if test "${gt_cv_c_wchar_t+set}" = set; then :
18247 $as_echo_n "(cached) " >&6
18249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18250 /* end confdefs.h. */
18251 #include <stddef.h>
18252 wchar_t foo = (wchar_t)'\0';
18261 if ac_fn_c_try_compile "$LINENO"; then :
18262 gt_cv_c_wchar_t=yes
18266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
18269 $as_echo "$gt_cv_c_wchar_t" >&6; }
18270 if test $gt_cv_c_wchar_t = yes; then
18272 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
18277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
18278 $as_echo_n "checking for wint_t... " >&6; }
18279 if test "${gt_cv_c_wint_t+set}" = set; then :
18280 $as_echo_n "(cached) " >&6
18282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18283 /* end confdefs.h. */
18285 wint_t foo = (wchar_t)'\0';
18294 if ac_fn_c_try_compile "$LINENO"; then :
18299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
18302 $as_echo "$gt_cv_c_wint_t" >&6; }
18303 if test $gt_cv_c_wint_t = yes; then
18305 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
18310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
18311 $as_echo_n "checking for inttypes.h... " >&6; }
18312 if test "${gl_cv_header_inttypes_h+set}" = set; then :
18313 $as_echo_n "(cached) " >&6
18315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18316 /* end confdefs.h. */
18317 #include <sys/types.h>
18318 #include <inttypes.h>
18322 uintmax_t i = (uintmax_t) -1;
18327 if ac_fn_c_try_compile "$LINENO"; then :
18328 gl_cv_header_inttypes_h=yes
18330 gl_cv_header_inttypes_h=no
18332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5
18335 $as_echo "$gl_cv_header_inttypes_h" >&6; }
18336 if test $gl_cv_header_inttypes_h = yes; then
18338 cat >>confdefs.h <<_ACEOF
18339 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
18345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
18346 $as_echo_n "checking for stdint.h... " >&6; }
18347 if test "${gl_cv_header_stdint_h+set}" = set; then :
18348 $as_echo_n "(cached) " >&6
18350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18351 /* end confdefs.h. */
18352 #include <sys/types.h>
18353 #include <stdint.h>
18357 uintmax_t i = (uintmax_t) -1;
18362 if ac_fn_c_try_compile "$LINENO"; then :
18363 gl_cv_header_stdint_h=yes
18365 gl_cv_header_stdint_h=no
18367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5
18370 $as_echo "$gl_cv_header_stdint_h" >&6; }
18371 if test $gl_cv_header_stdint_h = yes; then
18373 cat >>confdefs.h <<_ACEOF
18374 #define HAVE_STDINT_H_WITH_UINTMAX 1
18382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
18383 $as_echo_n "checking for intmax_t... " >&6; }
18384 if test "${gt_cv_c_intmax_t+set}" = set; then :
18385 $as_echo_n "(cached) " >&6
18387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18388 /* end confdefs.h. */
18390 #include <stddef.h>
18391 #include <stdlib.h>
18392 #if HAVE_STDINT_H_WITH_UINTMAX
18393 #include <stdint.h>
18395 #if HAVE_INTTYPES_H_WITH_UINTMAX
18396 #include <inttypes.h>
18407 if ac_fn_c_try_compile "$LINENO"; then :
18408 gt_cv_c_intmax_t=yes
18410 gt_cv_c_intmax_t=no
18412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
18415 $as_echo "$gt_cv_c_intmax_t" >&6; }
18416 if test $gt_cv_c_intmax_t = yes; then
18418 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
18424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5
18425 $as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
18426 if test "${gt_cv_func_printf_posix+set}" = set; then :
18427 $as_echo_n "(cached) " >&6
18430 if test "$cross_compiling" = yes; then :
18432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18433 /* end confdefs.h. */
18435 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
18440 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18441 $EGREP "notposix" >/dev/null 2>&1; then :
18442 gt_cv_func_printf_posix="guessing no"
18444 gt_cv_func_printf_posix="guessing yes"
18450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18451 /* end confdefs.h. */
18454 #include <string.h>
18455 /* The string "%2$d %1$d", with dollar characters protected from the shell's
18456 dollar expansion (possibly an autoconf bug). */
18457 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
18458 static char buf[100];
18461 sprintf (buf, format, 33, 55);
18462 return (strcmp (buf, "55 33") != 0);
18465 if ac_fn_c_try_run "$LINENO"; then :
18466 gt_cv_func_printf_posix=yes
18468 gt_cv_func_printf_posix=no
18470 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18471 conftest.$ac_objext conftest.beam conftest.$ac_ext
18476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5
18477 $as_echo "$gt_cv_func_printf_posix" >&6; }
18478 case $gt_cv_func_printf_posix in
18481 $as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h
18486 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
18487 # for constant arguments. Useless!
18488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
18489 $as_echo_n "checking for working alloca.h... " >&6; }
18490 if test "${ac_cv_working_alloca_h+set}" = set; then :
18491 $as_echo_n "(cached) " >&6
18493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18494 /* end confdefs.h. */
18495 #include <alloca.h>
18499 char *p = (char *) alloca (2 * sizeof (int));
18505 if ac_fn_c_try_link "$LINENO"; then :
18506 ac_cv_working_alloca_h=yes
18508 ac_cv_working_alloca_h=no
18510 rm -f core conftest.err conftest.$ac_objext \
18511 conftest$ac_exeext conftest.$ac_ext
18513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
18514 $as_echo "$ac_cv_working_alloca_h" >&6; }
18515 if test $ac_cv_working_alloca_h = yes; then
18517 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
18521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
18522 $as_echo_n "checking for alloca... " >&6; }
18523 if test "${ac_cv_func_alloca_works+set}" = set; then :
18524 $as_echo_n "(cached) " >&6
18526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18527 /* end confdefs.h. */
18529 # define alloca __builtin_alloca
18532 # include <malloc.h>
18533 # define alloca _alloca
18535 # ifdef HAVE_ALLOCA_H
18536 # include <alloca.h>
18541 # ifndef alloca /* predefined by HP cc +Olibcalls */
18552 char *p = (char *) alloca (1);
18558 if ac_fn_c_try_link "$LINENO"; then :
18559 ac_cv_func_alloca_works=yes
18561 ac_cv_func_alloca_works=no
18563 rm -f core conftest.err conftest.$ac_objext \
18564 conftest$ac_exeext conftest.$ac_ext
18566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
18567 $as_echo "$ac_cv_func_alloca_works" >&6; }
18569 if test $ac_cv_func_alloca_works = yes; then
18571 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
18574 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
18575 # that cause trouble. Some versions do not even contain alloca or
18576 # contain a buggy version. If you still want to use their alloca,
18577 # use ar to extract alloca.o from them instead of compiling alloca.c.
18579 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
18581 $as_echo "#define C_ALLOCA 1" >>confdefs.h
18584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
18585 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
18586 if test "${ac_cv_os_cray+set}" = set; then :
18587 $as_echo_n "(cached) " >&6
18589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18590 /* end confdefs.h. */
18591 #if defined CRAY && ! defined CRAY2
18598 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18599 $EGREP "webecray" >/dev/null 2>&1; then :
18607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
18608 $as_echo "$ac_cv_os_cray" >&6; }
18609 if test $ac_cv_os_cray = yes; then
18610 for ac_func in _getb67 GETB67 getb67; do
18611 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18612 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18613 eval as_val=\$$as_ac_var
18614 if test "x$as_val" = x""yes; then :
18616 cat >>confdefs.h <<_ACEOF
18617 #define CRAY_STACKSEG_END $ac_func
18626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
18627 $as_echo_n "checking stack direction for C alloca... " >&6; }
18628 if test "${ac_cv_c_stack_direction+set}" = set; then :
18629 $as_echo_n "(cached) " >&6
18631 if test "$cross_compiling" = yes; then :
18632 ac_cv_c_stack_direction=0
18634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18635 /* end confdefs.h. */
18636 $ac_includes_default
18638 find_stack_direction ()
18640 static char *addr = 0;
18645 return find_stack_direction ();
18648 return (&dummy > addr) ? 1 : -1;
18654 return find_stack_direction () < 0;
18657 if ac_fn_c_try_run "$LINENO"; then :
18658 ac_cv_c_stack_direction=1
18660 ac_cv_c_stack_direction=-1
18662 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18663 conftest.$ac_objext conftest.beam conftest.$ac_ext
18667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
18668 $as_echo "$ac_cv_c_stack_direction" >&6; }
18669 cat >>confdefs.h <<_ACEOF
18670 #define STACK_DIRECTION $ac_cv_c_stack_direction
18679 for ac_header in $ac_header_list
18681 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18682 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
18684 eval as_val=\$$as_ac_Header
18685 if test "x$as_val" = x""yes; then :
18686 cat >>confdefs.h <<_ACEOF
18687 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18701 for ac_func in getpagesize
18703 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
18704 if test "x$ac_cv_func_getpagesize" = x""yes; then :
18705 cat >>confdefs.h <<_ACEOF
18706 #define HAVE_GETPAGESIZE 1
18712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
18713 $as_echo_n "checking for working mmap... " >&6; }
18714 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
18715 $as_echo_n "(cached) " >&6
18717 if test "$cross_compiling" = yes; then :
18718 ac_cv_func_mmap_fixed_mapped=no
18720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18721 /* end confdefs.h. */
18722 $ac_includes_default
18723 /* malloc might have been renamed as rpl_malloc. */
18726 /* Thanks to Mike Haertel and Jim Avera for this test.
18727 Here is a matrix of mmap possibilities:
18728 mmap private not fixed
18729 mmap private fixed at somewhere currently unmapped
18730 mmap private fixed at somewhere already mapped
18731 mmap shared not fixed
18732 mmap shared fixed at somewhere currently unmapped
18733 mmap shared fixed at somewhere already mapped
18734 For private mappings, we should verify that changes cannot be read()
18735 back from the file, nor mmap's back from the file at a different
18736 address. (There have been systems where private was not correctly
18737 implemented like the infamous i386 svr4.0, and systems where the
18738 VM page cache was not coherent with the file system buffer cache
18739 like early versions of FreeBSD and possibly contemporary NetBSD.)
18740 For shared mappings, we should conversely verify that changes get
18741 propagated back to all the places they're supposed to be.
18743 Grep wants private fixed already mapped.
18744 The main things grep needs to know about mmap are:
18745 * does it exist and is it safe to write into the mmap'd area
18746 * how to use it (BSD variants) */
18749 #include <sys/mman.h>
18751 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
18755 /* This mess was copied from the GNU getpagesize.h. */
18756 #ifndef HAVE_GETPAGESIZE
18757 # ifdef _SC_PAGESIZE
18758 # define getpagesize() sysconf(_SC_PAGESIZE)
18759 # else /* no _SC_PAGESIZE */
18760 # ifdef HAVE_SYS_PARAM_H
18761 # include <sys/param.h>
18762 # ifdef EXEC_PAGESIZE
18763 # define getpagesize() EXEC_PAGESIZE
18764 # else /* no EXEC_PAGESIZE */
18766 # define getpagesize() NBPG * CLSIZE
18769 # endif /* no CLSIZE */
18770 # else /* no NBPG */
18772 # define getpagesize() NBPC
18773 # else /* no NBPC */
18775 # define getpagesize() PAGESIZE
18776 # endif /* PAGESIZE */
18777 # endif /* no NBPC */
18778 # endif /* no NBPG */
18779 # endif /* no EXEC_PAGESIZE */
18780 # else /* no HAVE_SYS_PARAM_H */
18781 # define getpagesize() 8192 /* punt totally */
18782 # endif /* no HAVE_SYS_PARAM_H */
18783 # endif /* no _SC_PAGESIZE */
18785 #endif /* no HAVE_GETPAGESIZE */
18790 char *data, *data2, *data3;
18791 const char *cdata2;
18795 pagesize = getpagesize ();
18797 /* First, make a file with some known garbage in it. */
18798 data = (char *) malloc (pagesize);
18801 for (i = 0; i < pagesize; ++i)
18802 *(data + i) = rand ();
18804 fd = creat ("conftest.mmap", 0600);
18807 if (write (fd, data, pagesize) != pagesize)
18811 /* Next, check that the tail of a page is zero-filled. File must have
18812 non-zero length, otherwise we risk SIGBUS for entire page. */
18813 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
18817 if (write (fd2, cdata2, 1) != 1)
18819 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
18820 if (data2 == MAP_FAILED)
18822 for (i = 0; i < pagesize; ++i)
18826 if (munmap (data2, pagesize))
18829 /* Next, try to mmap the file at a fixed address which already has
18830 something else allocated at it. If we can, also make sure that
18831 we see the same garbage. */
18832 fd = open ("conftest.mmap", O_RDWR);
18835 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
18836 MAP_PRIVATE | MAP_FIXED, fd, 0L))
18838 for (i = 0; i < pagesize; ++i)
18839 if (*(data + i) != *(data2 + i))
18842 /* Finally, make sure that changes to the mapped area do not
18843 percolate back to the file as seen by read(). (This is a bug on
18844 some variants of i386 svr4.0.) */
18845 for (i = 0; i < pagesize; ++i)
18846 *(data2 + i) = *(data2 + i) + 1;
18847 data3 = (char *) malloc (pagesize);
18850 if (read (fd, data3, pagesize) != pagesize)
18852 for (i = 0; i < pagesize; ++i)
18853 if (*(data + i) != *(data3 + i))
18859 if ac_fn_c_try_run "$LINENO"; then :
18860 ac_cv_func_mmap_fixed_mapped=yes
18862 ac_cv_func_mmap_fixed_mapped=no
18864 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18865 conftest.$ac_objext conftest.beam conftest.$ac_ext
18869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
18870 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
18871 if test $ac_cv_func_mmap_fixed_mapped = yes; then
18873 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
18876 rm -f conftest.mmap conftest.txt
18879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5
18880 $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
18881 if test "${ac_cv_gnu_library_2_1+set}" = set; then :
18882 $as_echo_n "(cached) " >&6
18884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18885 /* end confdefs.h. */
18887 #include <features.h>
18888 #ifdef __GNU_LIBRARY__
18889 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
18895 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18896 $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
18897 ac_cv_gnu_library_2_1=yes
18899 ac_cv_gnu_library_2_1=no
18906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
18907 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
18909 GLIBC21="$ac_cv_gnu_library_2_1"
18914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
18915 $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
18916 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then :
18917 $as_echo_n "(cached) " >&6
18920 if test "$cross_compiling" = yes; then :
18922 # Guess based on the CPU.
18923 case "$host_cpu" in
18924 alpha* | i3456786 | m68k | s390*)
18925 gt_cv_int_divbyzero_sigfpe="guessing yes";;
18927 gt_cv_int_divbyzero_sigfpe="guessing no";;
18931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18932 /* end confdefs.h. */
18934 #include <stdlib.h>
18935 #include <signal.h>
18939 sigfpe_handler (int sig)
18941 sigfpe_handler (sig) int sig;
18944 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
18945 exit (sig != SIGFPE);
18955 signal (SIGFPE, sigfpe_handler);
18956 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
18957 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
18958 signal (SIGTRAP, sigfpe_handler);
18960 /* Linux/SPARC yields signal SIGILL. */
18961 #if defined (__sparc__) && defined (__linux__)
18962 signal (SIGILL, sigfpe_handler);
18971 if ac_fn_c_try_run "$LINENO"; then :
18972 gt_cv_int_divbyzero_sigfpe=yes
18974 gt_cv_int_divbyzero_sigfpe=no
18976 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18977 conftest.$ac_objext conftest.beam conftest.$ac_ext
18982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
18983 $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
18984 case "$gt_cv_int_divbyzero_sigfpe" in
18989 cat >>confdefs.h <<_ACEOF
18990 #define INTDIV0_RAISES_SIGFPE $value
18995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long" >&5
18996 $as_echo_n "checking for unsigned long long... " >&6; }
18997 if test "${ac_cv_type_unsigned_long_long+set}" = set; then :
18998 $as_echo_n "(cached) " >&6
19000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19001 /* end confdefs.h. */
19002 unsigned long long ull = 1ULL; int i = 63;
19006 unsigned long long ullmax = (unsigned long long) -1;
19007 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
19012 if ac_fn_c_try_link "$LINENO"; then :
19013 ac_cv_type_unsigned_long_long=yes
19015 ac_cv_type_unsigned_long_long=no
19017 rm -f core conftest.err conftest.$ac_objext \
19018 conftest$ac_exeext conftest.$ac_ext
19020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long" >&5
19021 $as_echo "$ac_cv_type_unsigned_long_long" >&6; }
19022 if test $ac_cv_type_unsigned_long_long = yes; then
19024 $as_echo "#define HAVE_UNSIGNED_LONG_LONG 1" >>confdefs.h
19031 if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
19033 test $ac_cv_type_unsigned_long_long = yes \
19034 && ac_type='unsigned long long' \
19035 || ac_type='unsigned long'
19037 cat >>confdefs.h <<_ACEOF
19038 #define uintmax_t $ac_type
19043 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
19048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
19049 $as_echo_n "checking for inttypes.h... " >&6; }
19050 if test "${gt_cv_header_inttypes_h+set}" = set; then :
19051 $as_echo_n "(cached) " >&6
19054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19055 /* end confdefs.h. */
19056 #include <sys/types.h>
19057 #include <inttypes.h>
19066 if ac_fn_c_try_compile "$LINENO"; then :
19067 gt_cv_header_inttypes_h=yes
19069 gt_cv_header_inttypes_h=no
19071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_header_inttypes_h" >&5
19075 $as_echo "$gt_cv_header_inttypes_h" >&6; }
19076 if test $gt_cv_header_inttypes_h = yes; then
19078 cat >>confdefs.h <<_ACEOF
19079 #define HAVE_INTTYPES_H 1
19086 if test $gt_cv_header_inttypes_h = yes; then
19087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
19088 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
19089 if test "${gt_cv_inttypes_pri_broken+set}" = set; then :
19090 $as_echo_n "(cached) " >&6
19093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19094 /* end confdefs.h. */
19095 #include <inttypes.h>
19108 if ac_fn_c_try_compile "$LINENO"; then :
19109 gt_cv_inttypes_pri_broken=no
19111 gt_cv_inttypes_pri_broken=yes
19113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
19117 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
19119 if test "$gt_cv_inttypes_pri_broken" = yes; then
19121 cat >>confdefs.h <<_ACEOF
19122 #define PRI_MACROS_BROKEN 1
19128 for ac_header in stdint.h
19130 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
19131 if test "x$ac_cv_header_stdint_h" = x""yes; then :
19132 cat >>confdefs.h <<_ACEOF
19133 #define HAVE_STDINT_H 1
19140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
19141 $as_echo_n "checking for SIZE_MAX... " >&6; }
19143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19144 /* end confdefs.h. */
19146 #include <limits.h>
19148 #include <stdint.h>
19155 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19156 $EGREP "Found it" >/dev/null 2>&1; then :
19161 if test -z "$result"; then
19162 if ac_fn_c_compute_int "$LINENO" "~(size_t)0 / 10" "res_hi" "#include <stddef.h>"; then :
19169 if ac_fn_c_compute_int "$LINENO" "~(size_t)0 % 10" "res_lo" "#include <stddef.h>"; then :
19176 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint" "#include <stddef.h>"; then :
19183 if test "$fits_in_uint" = 1; then
19184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19185 /* end confdefs.h. */
19186 #include <stddef.h>
19188 extern unsigned long foo;
19198 if ac_fn_c_try_compile "$LINENO"; then :
19201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19203 if test -z "$result"; then
19204 if test "$fits_in_uint" = 1; then
19205 result="$res_hi$res_lo"U
19207 result="$res_hi$res_lo"UL
19210 result='~(size_t)0'
19213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
19214 $as_echo "$result" >&6; }
19215 if test "$result" != yes; then
19217 cat >>confdefs.h <<_ACEOF
19218 #define SIZE_MAX $result
19226 for ac_header in stdint.h
19228 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
19229 if test "x$ac_cv_header_stdint_h" = x""yes; then :
19230 cat >>confdefs.h <<_ACEOF
19231 #define HAVE_STDINT_H 1
19245 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
19246 if test "x$ac_cv_type_ptrdiff_t" = x""yes; then :
19250 $as_echo "#define ptrdiff_t long" >>confdefs.h
19255 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
19256 stdlib.h string.h unistd.h sys/param.h
19258 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19259 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19260 eval as_val=\$$as_ac_Header
19261 if test "x$as_val" = x""yes; then :
19262 cat >>confdefs.h <<_ACEOF
19263 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19270 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
19271 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
19272 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
19275 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19276 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19277 eval as_val=\$$as_ac_var
19278 if test "x$as_val" = x""yes; then :
19279 cat >>confdefs.h <<_ACEOF
19280 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snprintf is declared" >&5
19289 $as_echo_n "checking whether _snprintf is declared... " >&6; }
19290 if test "${ac_cv_have_decl__snprintf+set}" = set; then :
19291 $as_echo_n "(cached) " >&6
19293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19294 /* end confdefs.h. */
19301 char *p = (char *) _snprintf;
19308 if ac_fn_c_try_compile "$LINENO"; then :
19309 ac_cv_have_decl__snprintf=yes
19311 ac_cv_have_decl__snprintf=no
19313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snprintf" >&5
19316 $as_echo "$ac_cv_have_decl__snprintf" >&6; }
19317 if test $ac_cv_have_decl__snprintf = yes; then
19323 cat >>confdefs.h <<_ACEOF
19324 #define HAVE_DECL__SNPRINTF $gt_value
19329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snwprintf is declared" >&5
19330 $as_echo_n "checking whether _snwprintf is declared... " >&6; }
19331 if test "${ac_cv_have_decl__snwprintf+set}" = set; then :
19332 $as_echo_n "(cached) " >&6
19334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19335 /* end confdefs.h. */
19342 char *p = (char *) _snwprintf;
19349 if ac_fn_c_try_compile "$LINENO"; then :
19350 ac_cv_have_decl__snwprintf=yes
19352 ac_cv_have_decl__snwprintf=no
19354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snwprintf" >&5
19357 $as_echo "$ac_cv_have_decl__snwprintf" >&6; }
19358 if test $ac_cv_have_decl__snwprintf = yes; then
19364 cat >>confdefs.h <<_ACEOF
19365 #define HAVE_DECL__SNWPRINTF $gt_value
19371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether feof_unlocked is declared" >&5
19372 $as_echo_n "checking whether feof_unlocked is declared... " >&6; }
19373 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then :
19374 $as_echo_n "(cached) " >&6
19376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19377 /* end confdefs.h. */
19383 #ifndef feof_unlocked
19384 char *p = (char *) feof_unlocked;
19391 if ac_fn_c_try_compile "$LINENO"; then :
19392 ac_cv_have_decl_feof_unlocked=yes
19394 ac_cv_have_decl_feof_unlocked=no
19396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_feof_unlocked" >&5
19399 $as_echo "$ac_cv_have_decl_feof_unlocked" >&6; }
19400 if test $ac_cv_have_decl_feof_unlocked = yes; then
19406 cat >>confdefs.h <<_ACEOF
19407 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
19412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fgets_unlocked is declared" >&5
19413 $as_echo_n "checking whether fgets_unlocked is declared... " >&6; }
19414 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then :
19415 $as_echo_n "(cached) " >&6
19417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19418 /* end confdefs.h. */
19424 #ifndef fgets_unlocked
19425 char *p = (char *) fgets_unlocked;
19432 if ac_fn_c_try_compile "$LINENO"; then :
19433 ac_cv_have_decl_fgets_unlocked=yes
19435 ac_cv_have_decl_fgets_unlocked=no
19437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_fgets_unlocked" >&5
19440 $as_echo "$ac_cv_have_decl_fgets_unlocked" >&6; }
19441 if test $ac_cv_have_decl_fgets_unlocked = yes; then
19447 cat >>confdefs.h <<_ACEOF
19448 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
19453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getc_unlocked is declared" >&5
19454 $as_echo_n "checking whether getc_unlocked is declared... " >&6; }
19455 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then :
19456 $as_echo_n "(cached) " >&6
19458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19459 /* end confdefs.h. */
19465 #ifndef getc_unlocked
19466 char *p = (char *) getc_unlocked;
19473 if ac_fn_c_try_compile "$LINENO"; then :
19474 ac_cv_have_decl_getc_unlocked=yes
19476 ac_cv_have_decl_getc_unlocked=no
19478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_getc_unlocked" >&5
19481 $as_echo "$ac_cv_have_decl_getc_unlocked" >&6; }
19482 if test $ac_cv_have_decl_getc_unlocked = yes; then
19488 cat >>confdefs.h <<_ACEOF
19489 #define HAVE_DECL_GETC_UNLOCKED $gt_value
19494 case $gt_cv_func_printf_posix in
19495 *yes) HAVE_POSIX_PRINTF=1 ;;
19496 *) HAVE_POSIX_PRINTF=0 ;;
19499 if test "$ac_cv_func_asprintf" = yes; then
19505 if test "$ac_cv_func_snprintf" = yes; then
19511 if test "$ac_cv_func_wprintf" = yes; then
19523 am_save_CPPFLAGS="$CPPFLAGS"
19525 for element in $INCICONV; do
19527 for x in $CPPFLAGS; do
19529 acl_save_prefix="$prefix"
19530 prefix="$acl_final_prefix"
19531 acl_save_exec_prefix="$exec_prefix"
19532 exec_prefix="$acl_final_exec_prefix"
19534 exec_prefix="$acl_save_exec_prefix"
19535 prefix="$acl_save_prefix"
19537 if test "X$x" = "X$element"; then
19542 if test -z "$haveit"; then
19543 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
19548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
19549 $as_echo_n "checking for iconv... " >&6; }
19550 if test "${am_cv_func_iconv+set}" = set; then :
19551 $as_echo_n "(cached) " >&6
19554 am_cv_func_iconv="no, consider installing GNU 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_func_iconv=yes
19573 rm -f core conftest.err conftest.$ac_objext \
19574 conftest$ac_exeext conftest.$ac_ext
19575 if test "$am_cv_func_iconv" != yes; then
19576 am_save_LIBS="$LIBS"
19577 LIBS="$LIBS $LIBICONV"
19578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19579 /* end confdefs.h. */
19580 #include <stdlib.h>
19585 iconv_t cd = iconv_open("","");
19586 iconv(cd,NULL,NULL,NULL,NULL);
19592 if ac_fn_c_try_link "$LINENO"; then :
19593 am_cv_lib_iconv=yes
19594 am_cv_func_iconv=yes
19596 rm -f core conftest.err conftest.$ac_objext \
19597 conftest$ac_exeext conftest.$ac_ext
19598 LIBS="$am_save_LIBS"
19602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
19603 $as_echo "$am_cv_func_iconv" >&6; }
19604 if test "$am_cv_func_iconv" = yes; then
19606 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
19609 if test "$am_cv_lib_iconv" = yes; then
19610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
19611 $as_echo_n "checking how to link with libiconv... " >&6; }
19612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
19613 $as_echo "$LIBICONV" >&6; }
19615 CPPFLAGS="$am_save_CPPFLAGS"
19622 if test "$am_cv_func_iconv" = yes; then
19623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
19624 $as_echo_n "checking for iconv declaration... " >&6; }
19625 if test "${am_cv_proto_iconv+set}" = set; then :
19626 $as_echo_n "(cached) " >&6
19629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19630 /* end confdefs.h. */
19632 #include <stdlib.h>
19638 #if defined(__STDC__) || defined(__cplusplus)
19639 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
19652 if ac_fn_c_try_compile "$LINENO"; then :
19653 am_cv_proto_iconv_arg1=""
19655 am_cv_proto_iconv_arg1="const"
19657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19658 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);"
19661 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
19662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
19663 }$am_cv_proto_iconv" >&5
19665 }$am_cv_proto_iconv" >&6; }
19667 cat >>confdefs.h <<_ACEOF
19668 #define ICONV_CONST $am_cv_proto_iconv_arg1
19674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
19675 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
19676 if test "${am_cv_langinfo_codeset+set}" = set; then :
19677 $as_echo_n "(cached) " >&6
19679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19680 /* end confdefs.h. */
19681 #include <langinfo.h>
19685 char* cs = nl_langinfo(CODESET);
19690 if ac_fn_c_try_link "$LINENO"; then :
19691 am_cv_langinfo_codeset=yes
19693 am_cv_langinfo_codeset=no
19695 rm -f core conftest.err conftest.$ac_objext \
19696 conftest$ac_exeext conftest.$ac_ext
19699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
19700 $as_echo "$am_cv_langinfo_codeset" >&6; }
19701 if test $am_cv_langinfo_codeset = yes; then
19703 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
19707 if test $ac_cv_header_locale_h = yes; then
19709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
19710 $as_echo_n "checking for LC_MESSAGES... " >&6; }
19711 if test "${gt_cv_val_LC_MESSAGES+set}" = set; then :
19712 $as_echo_n "(cached) " >&6
19714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19715 /* end confdefs.h. */
19716 #include <locale.h>
19725 if ac_fn_c_try_link "$LINENO"; then :
19726 gt_cv_val_LC_MESSAGES=yes
19728 gt_cv_val_LC_MESSAGES=no
19730 rm -f core conftest.err conftest.$ac_objext \
19731 conftest$ac_exeext conftest.$ac_ext
19733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_val_LC_MESSAGES" >&5
19734 $as_echo "$gt_cv_val_LC_MESSAGES" >&6; }
19735 if test $gt_cv_val_LC_MESSAGES = yes; then
19737 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
19743 if test -n "$INTL_MACOSX_LIBS"; then
19744 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
19747 for ac_prog in bison
19749 # Extract the first word of "$ac_prog", so it can be a program name with args.
19750 set dummy $ac_prog; ac_word=$2
19751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19752 $as_echo_n "checking for $ac_word... " >&6; }
19753 if test "${ac_cv_prog_INTLBISON+set}" = set; then :
19754 $as_echo_n "(cached) " >&6
19756 if test -n "$INTLBISON"; then
19757 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
19759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19760 for as_dir in $PATH
19763 test -z "$as_dir" && as_dir=.
19764 for ac_exec_ext in '' $ac_executable_extensions; do
19765 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19766 ac_cv_prog_INTLBISON="$ac_prog"
19767 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19776 INTLBISON=$ac_cv_prog_INTLBISON
19777 if test -n "$INTLBISON"; then
19778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
19779 $as_echo "$INTLBISON" >&6; }
19781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19782 $as_echo "no" >&6; }
19786 test -n "$INTLBISON" && break
19789 if test -z "$INTLBISON"; then
19792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
19793 $as_echo_n "checking version of bison... " >&6; }
19794 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
19795 case $ac_prog_version in
19796 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
19797 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
19798 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
19799 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
19801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
19802 $as_echo "$ac_prog_version" >&6; }
19804 if test $ac_verc_fail = yes; then
19823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
19824 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
19825 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then :
19826 $as_echo_n "(cached) " >&6
19828 gt_save_CPPFLAGS="$CPPFLAGS"
19829 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
19830 gt_save_LIBS="$LIBS"
19831 LIBS="$LIBS -framework CoreFoundation"
19832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19833 /* end confdefs.h. */
19834 #include <CFPreferences.h>
19838 CFPreferencesCopyAppValue(NULL, NULL)
19843 if ac_fn_c_try_link "$LINENO"; then :
19844 gt_cv_func_CFPreferencesCopyAppValue=yes
19846 gt_cv_func_CFPreferencesCopyAppValue=no
19848 rm -f core conftest.err conftest.$ac_objext \
19849 conftest$ac_exeext conftest.$ac_ext
19850 CPPFLAGS="$gt_save_CPPFLAGS"
19851 LIBS="$gt_save_LIBS"
19853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
19854 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
19855 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
19857 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
19860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
19861 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
19862 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then :
19863 $as_echo_n "(cached) " >&6
19865 gt_save_CPPFLAGS="$CPPFLAGS"
19866 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
19867 gt_save_LIBS="$LIBS"
19868 LIBS="$LIBS -framework CoreFoundation"
19869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19870 /* end confdefs.h. */
19871 #include <CFLocale.h>
19875 CFLocaleCopyCurrent();
19880 if ac_fn_c_try_link "$LINENO"; then :
19881 gt_cv_func_CFLocaleCopyCurrent=yes
19883 gt_cv_func_CFLocaleCopyCurrent=no
19885 rm -f core conftest.err conftest.$ac_objext \
19886 conftest$ac_exeext conftest.$ac_ext
19887 CPPFLAGS="$gt_save_CPPFLAGS"
19888 LIBS="$gt_save_LIBS"
19890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
19891 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
19892 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
19894 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
19898 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
19899 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
19905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
19906 $as_echo_n "checking whether NLS is requested... " >&6; }
19907 # Check whether --enable-nls was given.
19908 if test "${enable_nls+set}" = set; then :
19909 enableval=$enable_nls; USE_NLS=$enableval
19914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
19915 $as_echo "$USE_NLS" >&6; }
19920 BUILD_INCLUDED_LIBINTL=no
19921 USE_INCLUDED_LIBINTL=no
19927 if test "$USE_NLS" = "yes"; then
19928 gt_use_preinstalled_gnugettext=no
19930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
19931 $as_echo_n "checking whether included gettext is requested... " >&6; }
19933 # Check whether --with-included-gettext was given.
19934 if test "${with_included_gettext+set}" = set; then :
19935 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
19937 nls_cv_force_use_gnu_gettext=no
19940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
19941 $as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
19943 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
19944 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
19951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
19952 $as_echo_n "checking for GNU gettext in libc... " >&6; }
19953 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then :
19954 $as_echo_n "(cached) " >&6
19956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19957 /* end confdefs.h. */
19958 #include <libintl.h>
19959 extern int _nl_msg_cat_cntr;
19960 extern int *_nl_domain_bindings;
19964 bindtextdomain ("", "");
19965 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
19970 if ac_fn_c_try_link "$LINENO"; then :
19971 gt_cv_func_gnugettext1_libc=yes
19973 gt_cv_func_gnugettext1_libc=no
19975 rm -f core conftest.err conftest.$ac_objext \
19976 conftest$ac_exeext conftest.$ac_ext
19978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5
19979 $as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
19981 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
19987 acl_save_prefix="$prefix"
19988 prefix="$acl_final_prefix"
19989 acl_save_exec_prefix="$exec_prefix"
19990 exec_prefix="$acl_final_exec_prefix"
19992 eval additional_includedir=\"$includedir\"
19993 eval additional_libdir=\"$libdir\"
19995 exec_prefix="$acl_save_exec_prefix"
19996 prefix="$acl_save_prefix"
19999 # Check whether --with-libintl-prefix was given.
20000 if test "${with_libintl_prefix+set}" = set; then :
20001 withval=$with_libintl_prefix;
20002 if test "X$withval" = "Xno"; then
20005 if test "X$withval" = "X"; then
20007 acl_save_prefix="$prefix"
20008 prefix="$acl_final_prefix"
20009 acl_save_exec_prefix="$exec_prefix"
20010 exec_prefix="$acl_final_exec_prefix"
20012 eval additional_includedir=\"$includedir\"
20013 eval additional_libdir=\"$libdir\"
20015 exec_prefix="$acl_save_exec_prefix"
20016 prefix="$acl_save_prefix"
20019 additional_includedir="$withval/include"
20020 additional_libdir="$withval/lib"
20031 names_already_handled=
20032 names_next_round='intl '
20033 while test -n "$names_next_round"; do
20034 names_this_round="$names_next_round"
20036 for name in $names_this_round; do
20038 for n in $names_already_handled; do
20039 if test "$n" = "$name"; then
20040 already_handled=yes
20044 if test -z "$already_handled"; then
20045 names_already_handled="$names_already_handled $name"
20046 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
20047 eval value=\"\$HAVE_LIB$uppername\"
20048 if test -n "$value"; then
20049 if test "$value" = yes; then
20050 eval value=\"\$LIB$uppername\"
20051 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
20052 eval value=\"\$LTLIB$uppername\"
20053 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
20062 if test $use_additional = yes; then
20063 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
20064 found_dir="$additional_libdir"
20065 found_so="$additional_libdir/lib$name.$shlibext"
20066 if test -f "$additional_libdir/lib$name.la"; then
20067 found_la="$additional_libdir/lib$name.la"
20070 if test -f "$additional_libdir/lib$name.$libext"; then
20071 found_dir="$additional_libdir"
20072 found_a="$additional_libdir/lib$name.$libext"
20073 if test -f "$additional_libdir/lib$name.la"; then
20074 found_la="$additional_libdir/lib$name.la"
20079 if test "X$found_dir" = "X"; then
20080 for x in $LDFLAGS $LTLIBINTL; do
20082 acl_save_prefix="$prefix"
20083 prefix="$acl_final_prefix"
20084 acl_save_exec_prefix="$exec_prefix"
20085 exec_prefix="$acl_final_exec_prefix"
20087 exec_prefix="$acl_save_exec_prefix"
20088 prefix="$acl_save_prefix"
20092 dir=`echo "X$x" | sed -e 's/^X-L//'`
20093 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
20095 found_so="$dir/lib$name.$shlibext"
20096 if test -f "$dir/lib$name.la"; then
20097 found_la="$dir/lib$name.la"
20100 if test -f "$dir/lib$name.$libext"; then
20102 found_a="$dir/lib$name.$libext"
20103 if test -f "$dir/lib$name.la"; then
20104 found_la="$dir/lib$name.la"
20110 if test "X$found_dir" != "X"; then
20115 if test "X$found_dir" != "X"; then
20116 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
20117 if test "X$found_so" != "X"; then
20118 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
20119 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
20122 for x in $ltrpathdirs; do
20123 if test "X$x" = "X$found_dir"; then
20128 if test -z "$haveit"; then
20129 ltrpathdirs="$ltrpathdirs $found_dir"
20131 if test "$hardcode_direct" = yes; then
20132 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
20134 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
20135 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
20137 for x in $rpathdirs; do
20138 if test "X$x" = "X$found_dir"; then
20143 if test -z "$haveit"; then
20144 rpathdirs="$rpathdirs $found_dir"
20148 for x in $LDFLAGS $LIBINTL; do
20150 acl_save_prefix="$prefix"
20151 prefix="$acl_final_prefix"
20152 acl_save_exec_prefix="$exec_prefix"
20153 exec_prefix="$acl_final_exec_prefix"
20155 exec_prefix="$acl_save_exec_prefix"
20156 prefix="$acl_save_prefix"
20158 if test "X$x" = "X-L$found_dir"; then
20163 if test -z "$haveit"; then
20164 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
20166 if test "$hardcode_minus_L" != no; then
20167 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
20169 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
20175 if test "X$found_a" != "X"; then
20176 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
20178 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
20181 additional_includedir=
20182 case "$found_dir" in
20184 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
20185 additional_includedir="$basedir/include"
20188 if test "X$additional_includedir" != "X"; then
20189 if test "X$additional_includedir" != "X/usr/include"; then
20191 if test "X$additional_includedir" = "X/usr/local/include"; then
20192 if test -n "$GCC"; then
20194 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
20198 if test -z "$haveit"; then
20199 for x in $CPPFLAGS $INCINTL; do
20201 acl_save_prefix="$prefix"
20202 prefix="$acl_final_prefix"
20203 acl_save_exec_prefix="$exec_prefix"
20204 exec_prefix="$acl_final_exec_prefix"
20206 exec_prefix="$acl_save_exec_prefix"
20207 prefix="$acl_save_prefix"
20209 if test "X$x" = "X-I$additional_includedir"; then
20214 if test -z "$haveit"; then
20215 if test -d "$additional_includedir"; then
20216 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
20222 if test -n "$found_la"; then
20223 save_libdir="$libdir"
20224 case "$found_la" in
20225 */* | *\\*) . "$found_la" ;;
20226 *) . "./$found_la" ;;
20228 libdir="$save_libdir"
20229 for dep in $dependency_libs; do
20232 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
20233 if test "X$additional_libdir" != "X/usr/lib"; then
20235 if test "X$additional_libdir" = "X/usr/local/lib"; then
20236 if test -n "$GCC"; then
20238 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
20242 if test -z "$haveit"; then
20244 for x in $LDFLAGS $LIBINTL; do
20246 acl_save_prefix="$prefix"
20247 prefix="$acl_final_prefix"
20248 acl_save_exec_prefix="$exec_prefix"
20249 exec_prefix="$acl_final_exec_prefix"
20251 exec_prefix="$acl_save_exec_prefix"
20252 prefix="$acl_save_prefix"
20254 if test "X$x" = "X-L$additional_libdir"; then
20259 if test -z "$haveit"; then
20260 if test -d "$additional_libdir"; then
20261 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
20265 for x in $LDFLAGS $LTLIBINTL; do
20267 acl_save_prefix="$prefix"
20268 prefix="$acl_final_prefix"
20269 acl_save_exec_prefix="$exec_prefix"
20270 exec_prefix="$acl_final_exec_prefix"
20272 exec_prefix="$acl_save_exec_prefix"
20273 prefix="$acl_save_prefix"
20275 if test "X$x" = "X-L$additional_libdir"; then
20280 if test -z "$haveit"; then
20281 if test -d "$additional_libdir"; then
20282 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
20289 dir=`echo "X$dep" | sed -e 's/^X-R//'`
20290 if test "$enable_rpath" != no; then
20292 for x in $rpathdirs; do
20293 if test "X$x" = "X$dir"; then
20298 if test -z "$haveit"; then
20299 rpathdirs="$rpathdirs $dir"
20302 for x in $ltrpathdirs; do
20303 if test "X$x" = "X$dir"; then
20308 if test -z "$haveit"; then
20309 ltrpathdirs="$ltrpathdirs $dir"
20314 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
20317 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
20320 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
20321 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
20327 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
20328 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
20334 if test "X$rpathdirs" != "X"; then
20335 if test -n "$hardcode_libdir_separator"; then
20337 for found_dir in $rpathdirs; do
20338 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
20340 acl_save_libdir="$libdir"
20342 eval flag=\"$hardcode_libdir_flag_spec\"
20343 libdir="$acl_save_libdir"
20344 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
20346 for found_dir in $rpathdirs; do
20347 acl_save_libdir="$libdir"
20348 libdir="$found_dir"
20349 eval flag=\"$hardcode_libdir_flag_spec\"
20350 libdir="$acl_save_libdir"
20351 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
20355 if test "X$ltrpathdirs" != "X"; then
20356 for found_dir in $ltrpathdirs; do
20357 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
20361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
20362 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
20363 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then :
20364 $as_echo_n "(cached) " >&6
20366 gt_save_CPPFLAGS="$CPPFLAGS"
20367 CPPFLAGS="$CPPFLAGS $INCINTL"
20368 gt_save_LIBS="$LIBS"
20369 LIBS="$LIBS $LIBINTL"
20370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20371 /* end confdefs.h. */
20372 #include <libintl.h>
20373 extern int _nl_msg_cat_cntr;
20378 const char *_nl_expand_alias (const char *);
20382 bindtextdomain ("", "");
20383 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
20388 if ac_fn_c_try_link "$LINENO"; then :
20389 gt_cv_func_gnugettext1_libintl=yes
20391 gt_cv_func_gnugettext1_libintl=no
20393 rm -f core conftest.err conftest.$ac_objext \
20394 conftest$ac_exeext conftest.$ac_ext
20395 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
20396 LIBS="$LIBS $LIBICONV"
20397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20398 /* end confdefs.h. */
20399 #include <libintl.h>
20400 extern int _nl_msg_cat_cntr;
20405 const char *_nl_expand_alias (const char *);
20409 bindtextdomain ("", "");
20410 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
20415 if ac_fn_c_try_link "$LINENO"; then :
20416 LIBINTL="$LIBINTL $LIBICONV"
20417 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
20418 gt_cv_func_gnugettext1_libintl=yes
20421 rm -f core conftest.err conftest.$ac_objext \
20422 conftest$ac_exeext conftest.$ac_ext
20424 CPPFLAGS="$gt_save_CPPFLAGS"
20425 LIBS="$gt_save_LIBS"
20427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5
20428 $as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
20431 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
20432 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
20433 && test "$PACKAGE" != gettext-runtime \
20434 && test "$PACKAGE" != gettext-tools; }; then
20435 gt_use_preinstalled_gnugettext=yes
20443 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
20444 nls_cv_use_gnu_gettext=yes
20448 if test "$nls_cv_use_gnu_gettext" = "yes"; then
20449 BUILD_INCLUDED_LIBINTL=yes
20450 USE_INCLUDED_LIBINTL=yes
20451 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
20452 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
20453 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
20457 if test "$gt_use_preinstalled_gnugettext" = "yes" \
20458 || test "$nls_cv_use_gnu_gettext" = "yes"; then
20463 if test -n "$INTL_MACOSX_LIBS"; then
20464 if test "$gt_use_preinstalled_gnugettext" = "yes" \
20465 || test "$nls_cv_use_gnu_gettext" = "yes"; then
20466 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
20467 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
20471 if test "$gt_use_preinstalled_gnugettext" = "yes" \
20472 || test "$nls_cv_use_gnu_gettext" = "yes"; then
20474 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
20481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
20482 $as_echo_n "checking whether to use NLS... " >&6; }
20483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
20484 $as_echo "$USE_NLS" >&6; }
20485 if test "$USE_NLS" = "yes"; then
20486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
20487 $as_echo_n "checking where the gettext function comes from... " >&6; }
20488 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
20489 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
20490 gt_source="external libintl"
20495 gt_source="included intl directory"
20497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
20498 $as_echo "$gt_source" >&6; }
20501 if test "$USE_NLS" = "yes"; then
20503 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
20504 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
20505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
20506 $as_echo_n "checking how to link with libintl... " >&6; }
20507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
20508 $as_echo "$LIBINTL" >&6; }
20510 for element in $INCINTL; do
20512 for x in $CPPFLAGS; do
20514 acl_save_prefix="$prefix"
20515 prefix="$acl_final_prefix"
20516 acl_save_exec_prefix="$exec_prefix"
20517 exec_prefix="$acl_final_exec_prefix"
20519 exec_prefix="$acl_save_exec_prefix"
20520 prefix="$acl_save_prefix"
20522 if test "X$x" = "X$element"; then
20527 if test -z "$haveit"; then
20528 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
20535 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
20538 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
20546 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
20547 BUILD_INCLUDED_LIBINTL=yes
20554 nls_cv_header_intl=
20555 nls_cv_header_libgt=
20567 if test "$USE_INCLUDED_LIBINTL" = yes; then
20568 INTLOBJS="\$(GETTOBJS)"
20572 INTL_LIBTOOL_SUFFIX_PREFIX=
20576 INTLLIBS="$LIBINTL"
20585 support_smartalloc=yes
20586 support_readline=yes
20590 support_wx_console=no
20591 support_tray_monitor=no
20596 support_static_tools=no
20597 support_static_fd=no
20598 support_static_sd=no
20599 support_static_dir=no
20600 support_static_cons=no
20602 build_client_only=no
20609 # Check whether --enable-gnome was given.
20610 if test "${enable_gnome+set}" = set; then :
20611 enableval=$enable_gnome;
20612 if test x$enableval = xyes; then
20621 if test x$support_gnome = xyes; then
20622 as_fn_error "bgnome-console no longer supported" "$LINENO" 5
20623 as_fn_error "--enable-gnome option no longer supported" "$LINENO" 5
20625 # AC_SUBST(GNOME_DIR)
20627 # Check whether --enable-bat was given.
20628 if test "${enable_bat+set}" = set; then :
20629 enableval=$enable_bat;
20630 if test x$enableval = xyes; then
20632 $as_echo "#define HAVE_BAT 1" >>confdefs.h
20642 if test x$support_bat = xyes; then
20643 abc=`$PKGCONFIG --atleast-version=4.2 QtGui`
20645 if test $pkg = 0; then
20646 BAT_DIR=src/qt-console
20648 as_fn_error "Unable to find Qt4 installation needed by bat" "$LINENO" 5
20666 # Check whether --enable-bwx-console was given.
20667 if test "${enable_bwx_console+set}" = set; then :
20668 enableval=$enable_bwx_console;
20669 if test x$enableval = xyes; then
20670 support_wx_console=yes
20678 if test x$support_wx_console = xyes; then
20679 abc=`$WXCONFIG $WXFLAGS --cppflags`
20681 if test $pkg = 0; then
20682 wx_version="wxWidgets `$WXCONFIG $WXFLAGS --release`"
20683 WXCONS_CPPFLAGS=`$WXCONFIG $WXFLAGS --cppflags`
20684 WXCONS_LDFLAGS=`$WXCONFIG $WXFLAGS --libs`
20688 WX_DIR="src/wx-console"
20691 echo "wx-config program not found. bwx-console disabled."
20693 support_wx_console=no
20698 # Check whether --enable-tray-monitor was given.
20699 if test "${enable_tray_monitor+set}" = set; then :
20700 enableval=$enable_tray_monitor;
20701 if test x$enableval = xyes; then
20702 support_tray_monitor=yes
20710 if test x$support_tray_monitor = xyes; then
20711 abc=`$PKGCONFIG --exists gtk+-2.0`
20713 if test $pkg = 0; then
20714 TRAY_MONITOR_CPPFLAGS=`$PKGCONFIG --cflags gtk+-2.0`
20715 TRAY_MONITOR_LDFLAGS=`$PKGCONFIG --libs gtk+-2.0`
20718 TRAY_MONITOR_DIR=src/tray-monitor
20719 abc=`$PKGCONFIG --atleast-version=2.4 gtk+-2.0`
20721 if test $pkg = 0; then
20723 $as_echo "#define HAVE_GTK_2_4 1" >>confdefs.h
20730 # Check whether --enable-smartalloc was given.
20731 if test "${enable_smartalloc+set}" = set; then :
20732 enableval=$enable_smartalloc;
20733 if test x$enableval = xno; then
20734 support_smartalloc=no
20741 if test x$support_smartalloc = xyes; then
20743 $as_echo "#define SMARTALLOC 1" >>confdefs.h
20747 # Check whether --enable-lockmgr was given.
20748 if test "${enable_lockmgr+set}" = set; then :
20749 enableval=$enable_lockmgr;
20750 if test x$enableval = xyes; then
20751 support_lockmgr=yes
20758 if test x$support_lockmgr = xyes; then
20760 $as_echo "#define _USE_LOCKMGR 1" >>confdefs.h
20765 # Check whether --enable-static-tools was given.
20766 if test "${enable_static_tools+set}" = set; then :
20767 enableval=$enable_static_tools;
20768 if test x$enableval = xyes; then
20769 if test x$use_libtool = xyes; then
20770 as_fn_error "Libtool is enabled, not compatible with static tools,
20771 please rerun configure with --disable-libtool" "$LINENO" 5
20773 support_static_tools=yes
20781 if test x$support_static_tools = xyes; then
20782 TTOOL_LDFLAGS="-static"
20786 # Check whether --enable-static-fd was given.
20787 if test "${enable_static_fd+set}" = set; then :
20788 enableval=$enable_static_fd;
20789 if test x$enableval = xyes; then
20790 if test x$use_libtool = xyes; then
20791 as_fn_error "Libtool is enabled, not compatible with static tools,
20792 please rerun configure with --disable-libtool" "$LINENO" 5
20794 support_static_fd=yes
20802 if test x$support_static_fd = xyes; then
20803 STATIC_FD="static-bacula-fd"
20807 # Check whether --enable-static-sd was given.
20808 if test "${enable_static_sd+set}" = set; then :
20809 enableval=$enable_static_sd;
20810 if test x$enableval = xyes; then
20811 if test x$use_libtool = xyes; then
20812 as_fn_error "Libtool is enabled, not compatible with static tools,
20813 please rerun configure with --disable-libtool" "$LINENO" 5
20815 support_static_sd=yes
20823 if test x$support_static_sd = xyes; then
20824 STATIC_SD="static-bacula-sd"
20828 # Check whether --enable-static-dir was given.
20829 if test "${enable_static_dir+set}" = set; then :
20830 enableval=$enable_static_dir;
20831 if test x$enableval = xyes; then
20832 if test x$use_libtool = xyes; then
20833 as_fn_error "Libtool is enabled, not compatible with static tools,
20834 please rerun configure with --disable-libtool" "$LINENO" 5
20836 support_static_dir=yes
20844 if test x$support_static_dir = xyes; then
20845 STATIC_DIR="static-bacula-dir"
20849 # Check whether --enable-static-cons was given.
20850 if test "${enable_static_cons+set}" = set; then :
20851 enableval=$enable_static_cons;
20852 if test x$enableval = xyes; then
20853 if test x$use_libtool = xyes; then
20854 as_fn_error "Libtool is enabled, not compatible with static tools,
20855 please rerun configure with --disable-libtool" "$LINENO" 5
20857 support_static_cons=yes
20867 if test x$support_static_cons = xyes; then
20868 STATIC_CONS="static-bconsole"
20869 STATIC_GNOME_CONS="static-bgnome-console"
20870 STATIC_WX_CONS="static-bwx-console"
20876 # Check whether --enable-client-only was given.
20877 if test "${enable_client_only+set}" = set; then :
20878 enableval=$enable_client_only;
20879 if test x$enableval = xyes; then
20880 build_client_only=yes
20888 if test x$build_client_only = xno; then
20895 # Check whether --enable-build-dird was given.
20896 if test "${enable_build_dird+set}" = set; then :
20897 enableval=$enable_build_dird;
20898 if test x$enableval = xno; then
20905 if test x$build_dird = xyes; then
20906 DIRD_DIR="src/dird"
20907 DIR_TOOLS="DIRTOOLS"
20910 DIR_TOOLS="NODIRTOOLS"
20915 # Check whether --enable-build-stored was given.
20916 if test "${enable_build_stored+set}" = set; then :
20917 enableval=$enable_build_stored;
20918 if test x$enableval = xno; then
20925 if test x$build_stored = xyes; then
20926 STORED_DIR="src/stored"
20932 # Check whether --enable-conio was given.
20933 if test "${enable_conio+set}" = set; then :
20934 enableval=$enable_conio;
20935 if test x$enableval = xno; then
20945 # Check whether --enable-ipv6 was given.
20946 if test "${enable_ipv6+set}" = set; then :
20947 enableval=$enable_ipv6;
20948 if test x$enableval = xno; then
20956 if test x$support_ipv6 = xyes; then
20957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20958 /* end confdefs.h. */
20959 #include <sys/types.h>
20960 #include <sys/socket.h>
20961 #include <netinet/in.h>
20965 struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] = 0;
20970 if ac_fn_c_try_link "$LINENO"; then :
20975 rm -f core conftest.err conftest.$ac_objext \
20976 conftest$ac_exeext conftest.$ac_ext
20979 if test x$support_ipv6 = xyes; then
20981 $as_echo "#define HAVE_IPV6 1" >>confdefs.h
20986 ac_fn_c_check_header_mongrel "$LINENO" "curses.h" "ac_cv_header_curses_h" "$ac_includes_default"
20987 if test "x$ac_cv_header_curses_h" = x""yes; then :
20989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltinfo" >&5
20990 $as_echo_n "checking for tgetent in -ltinfo... " >&6; }
20991 if test "${ac_cv_lib_tinfo_tgetent+set}" = set; then :
20992 $as_echo_n "(cached) " >&6
20994 ac_check_lib_save_LIBS=$LIBS
20995 LIBS="-ltinfo $LIBS"
20996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20997 /* end confdefs.h. */
20999 /* Override any GCC internal prototype to avoid an error.
21000 Use char because int might match the return type of a GCC
21001 builtin and then its argument prototype would still apply. */
21014 if ac_fn_c_try_link "$LINENO"; then :
21015 ac_cv_lib_tinfo_tgetent=yes
21017 ac_cv_lib_tinfo_tgetent=no
21019 rm -f core conftest.err conftest.$ac_objext \
21020 conftest$ac_exeext conftest.$ac_ext
21021 LIBS=$ac_check_lib_save_LIBS
21023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tinfo_tgetent" >&5
21024 $as_echo "$ac_cv_lib_tinfo_tgetent" >&6; }
21025 if test "x$ac_cv_lib_tinfo_tgetent" = x""yes; then :
21029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lncurses" >&5
21030 $as_echo_n "checking for tgetent in -lncurses... " >&6; }
21031 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then :
21032 $as_echo_n "(cached) " >&6
21034 ac_check_lib_save_LIBS=$LIBS
21035 LIBS="-lncurses $LIBS"
21036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21037 /* end confdefs.h. */
21039 /* Override any GCC internal prototype to avoid an error.
21040 Use char because int might match the return type of a GCC
21041 builtin and then its argument prototype would still apply. */
21054 if ac_fn_c_try_link "$LINENO"; then :
21055 ac_cv_lib_ncurses_tgetent=yes
21057 ac_cv_lib_ncurses_tgetent=no
21059 rm -f core conftest.err conftest.$ac_objext \
21060 conftest$ac_exeext conftest.$ac_ext
21061 LIBS=$ac_check_lib_save_LIBS
21063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_tgetent" >&5
21064 $as_echo "$ac_cv_lib_ncurses_tgetent" >&6; }
21065 if test "x$ac_cv_lib_ncurses_tgetent" = x""yes; then :
21066 TERM_LIB="-lncurses"
21069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltermcap" >&5
21070 $as_echo_n "checking for tgetent in -ltermcap... " >&6; }
21071 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then :
21072 $as_echo_n "(cached) " >&6
21074 ac_check_lib_save_LIBS=$LIBS
21075 LIBS="-ltermcap $LIBS"
21076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21077 /* end confdefs.h. */
21079 /* Override any GCC internal prototype to avoid an error.
21080 Use char because int might match the return type of a GCC
21081 builtin and then its argument prototype would still apply. */
21094 if ac_fn_c_try_link "$LINENO"; then :
21095 ac_cv_lib_termcap_tgetent=yes
21097 ac_cv_lib_termcap_tgetent=no
21099 rm -f core conftest.err conftest.$ac_objext \
21100 conftest$ac_exeext conftest.$ac_ext
21101 LIBS=$ac_check_lib_save_LIBS
21103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_termcap_tgetent" >&5
21104 $as_echo "$ac_cv_lib_termcap_tgetent" >&6; }
21105 if test "x$ac_cv_lib_termcap_tgetent" = x""yes; then :
21106 TERM_LIB="-ltermcap"
21117 for ac_header in curses.h
21119 ac_fn_c_check_header_mongrel "$LINENO" "curses.h" "ac_cv_header_curses_h" "$ac_includes_default"
21120 if test "x$ac_cv_header_curses_h" = x""yes; then :
21121 cat >>confdefs.h <<_ACEOF
21122 #define HAVE_CURSES_H 1
21129 ac_fn_c_check_header_mongrel "$LINENO" "term.h" "ac_cv_header_term_h" "$ac_includes_default"
21130 if test "x$ac_cv_header_term_h" = x""yes; then :
21131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lcurses" >&5
21132 $as_echo_n "checking for tgetent in -lcurses... " >&6; }
21133 if test "${ac_cv_lib_curses_tgetent+set}" = set; then :
21134 $as_echo_n "(cached) " >&6
21136 ac_check_lib_save_LIBS=$LIBS
21137 LIBS="-lcurses $LIBS"
21138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21139 /* end confdefs.h. */
21141 /* Override any GCC internal prototype to avoid an error.
21142 Use char because int might match the return type of a GCC
21143 builtin and then its argument prototype would still apply. */
21156 if ac_fn_c_try_link "$LINENO"; then :
21157 ac_cv_lib_curses_tgetent=yes
21159 ac_cv_lib_curses_tgetent=no
21161 rm -f core conftest.err conftest.$ac_objext \
21162 conftest$ac_exeext conftest.$ac_ext
21163 LIBS=$ac_check_lib_save_LIBS
21165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_tgetent" >&5
21166 $as_echo "$ac_cv_lib_curses_tgetent" >&6; }
21167 if test "x$ac_cv_lib_curses_tgetent" = x""yes; then :
21168 TERM_LIB="-lcurses"
21182 if test x$support_conio = xyes; then
21183 if test x$TERM_LIB != x; then
21184 CONS_LIBS=$TERM_LIB
21188 support_readline=no
21190 $as_echo "#define HAVE_CONIO 1" >>confdefs.h
21193 echo " "; echo "Required libraries not found. CONIO turned off ..."; echo " "],
21198 # Check whether --enable-readline was given.
21199 if test "${enable_readline+set}" = set; then :
21200 enableval=$enable_readline;
21201 if test x$enableval = xno; then
21202 support_readline=no
21208 if test x$TERM_LIB = x ; then
21209 support_readline=no
21214 if test x$support_readline = xyes; then
21216 # Check whether --with-readline was given.
21217 if test "${with_readline+set}" = set; then :
21218 withval=$with_readline;
21219 case "$with_readline" in
21224 if test -f ${with_readline}/readline.h; then
21225 CONS_INC="-I${with_readline}"
21226 CONS_LDFLAGS="-L$with_readline"
21227 elif test -f ${with_readline}/include/readline/readline.h; then
21228 CONS_INC="-I${with_readline}/include/readline"
21229 CONS_LDFLAGS="-L${with_readline}/lib"
21230 with_readline="${with_readline}/include/readline"
21232 with_readline="/usr/include/readline"
21235 as_ac_Header=`$as_echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
21236 ac_fn_c_check_header_mongrel "$LINENO" "${with_readline}/readline.h" "$as_ac_Header" "$ac_includes_default"
21237 eval as_val=\$$as_ac_Header
21238 if test "x$as_val" = x""yes; then :
21241 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
21243 CONS_LIBS="-lreadline -lhistory $TERM_LIB"
21249 echo "readline.h not found. readline turned off ..."
21261 ac_fn_c_check_header_mongrel "$LINENO" "/usr/include/readline/readline.h" "ac_cv_header__usr_include_readline_readline_h" "$ac_includes_default"
21262 if test "x$ac_cv_header__usr_include_readline_readline_h" = x""yes; then :
21265 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
21268 CONS_INC="-I/usr/include/readline"
21269 CONS_LIBS="-lreadline $TERM_LIB"
21273 as_ac_Header=`$as_echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
21274 ac_fn_c_check_header_mongrel "$LINENO" "${TOP_DIR}/depkgs/readline/readline.h" "$as_ac_Header" "$ac_includes_default"
21275 eval as_val=\$$as_ac_Header
21276 if test "x$as_val" = x""yes; then :
21279 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
21282 CONS_INC="-I${TOP_DIR}/depkgs/readline"
21283 CONS_LIBS="-lreadline -lhistory $TERM_LIB"
21284 CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
21285 PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
21290 echo "readline.h not found. readline turned off ..."
21317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
21318 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
21319 if test "${ac_cv_header_stat_broken+set}" = set; then :
21320 $as_echo_n "(cached) " >&6
21322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21323 /* end confdefs.h. */
21324 #include <sys/types.h>
21325 #include <sys/stat.h>
21327 #if defined S_ISBLK && defined S_IFDIR
21328 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
21331 #if defined S_ISBLK && defined S_IFCHR
21332 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
21335 #if defined S_ISLNK && defined S_IFREG
21336 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
21339 #if defined S_ISSOCK && defined S_IFREG
21340 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
21344 if ac_fn_c_try_compile "$LINENO"; then :
21345 ac_cv_header_stat_broken=no
21347 ac_cv_header_stat_broken=yes
21349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
21352 $as_echo "$ac_cv_header_stat_broken" >&6; }
21353 if test $ac_cv_header_stat_broken = yes; then
21355 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
21359 ac_header_dirent=no
21360 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
21361 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
21362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
21363 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
21364 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
21365 $as_echo_n "(cached) " >&6
21367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21368 /* end confdefs.h. */
21369 #include <sys/types.h>
21381 if ac_fn_c_try_compile "$LINENO"; then :
21382 eval "$as_ac_Header=yes"
21384 eval "$as_ac_Header=no"
21386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21388 eval ac_res=\$$as_ac_Header
21389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21390 $as_echo "$ac_res" >&6; }
21391 eval as_val=\$$as_ac_Header
21392 if test "x$as_val" = x""yes; then :
21393 cat >>confdefs.h <<_ACEOF
21394 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
21397 ac_header_dirent=$ac_hdr; break
21401 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
21402 if test $ac_header_dirent = dirent.h; then
21403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
21404 $as_echo_n "checking for library containing opendir... " >&6; }
21405 if test "${ac_cv_search_opendir+set}" = set; then :
21406 $as_echo_n "(cached) " >&6
21408 ac_func_search_save_LIBS=$LIBS
21409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21410 /* end confdefs.h. */
21412 /* Override any GCC internal prototype to avoid an error.
21413 Use char because int might match the return type of a GCC
21414 builtin and then its argument prototype would still apply. */
21427 for ac_lib in '' dir; do
21428 if test -z "$ac_lib"; then
21429 ac_res="none required"
21432 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21434 if ac_fn_c_try_link "$LINENO"; then :
21435 ac_cv_search_opendir=$ac_res
21437 rm -f core conftest.err conftest.$ac_objext \
21439 if test "${ac_cv_search_opendir+set}" = set; then :
21443 if test "${ac_cv_search_opendir+set}" = set; then :
21446 ac_cv_search_opendir=no
21448 rm conftest.$ac_ext
21449 LIBS=$ac_func_search_save_LIBS
21451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
21452 $as_echo "$ac_cv_search_opendir" >&6; }
21453 ac_res=$ac_cv_search_opendir
21454 if test "$ac_res" != no; then :
21455 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
21461 $as_echo_n "checking for library containing opendir... " >&6; }
21462 if test "${ac_cv_search_opendir+set}" = set; then :
21463 $as_echo_n "(cached) " >&6
21465 ac_func_search_save_LIBS=$LIBS
21466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21467 /* end confdefs.h. */
21469 /* Override any GCC internal prototype to avoid an error.
21470 Use char because int might match the return type of a GCC
21471 builtin and then its argument prototype would still apply. */
21484 for ac_lib in '' x; do
21485 if test -z "$ac_lib"; then
21486 ac_res="none required"
21489 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21491 if ac_fn_c_try_link "$LINENO"; then :
21492 ac_cv_search_opendir=$ac_res
21494 rm -f core conftest.err conftest.$ac_objext \
21496 if test "${ac_cv_search_opendir+set}" = set; then :
21500 if test "${ac_cv_search_opendir+set}" = set; then :
21503 ac_cv_search_opendir=no
21505 rm conftest.$ac_ext
21506 LIBS=$ac_func_search_save_LIBS
21508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
21509 $as_echo "$ac_cv_search_opendir" >&6; }
21510 ac_res=$ac_cv_search_opendir
21511 if test "$ac_res" != no; then :
21512 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21518 for ac_func in strcasecmp select setenv putenv tcgetattr lstat lchown
21520 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21521 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21522 eval as_val=\$$as_ac_var
21523 if test "x$as_val" = x""yes; then :
21524 cat >>confdefs.h <<_ACEOF
21525 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21531 for ac_func in nanosleep nl_langinfo
21533 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21534 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21535 eval as_val=\$$as_ac_var
21536 if test "x$as_val" = x""yes; then :
21537 cat >>confdefs.h <<_ACEOF
21538 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21544 for ac_header in varargs.h
21546 ac_fn_c_check_header_mongrel "$LINENO" "varargs.h" "ac_cv_header_varargs_h" "$ac_includes_default"
21547 if test "x$ac_cv_header_varargs_h" = x""yes; then :
21548 cat >>confdefs.h <<_ACEOF
21549 #define HAVE_VARARGS_H 1
21558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python support" >&5
21559 $as_echo_n "checking for Python support... " >&6; }
21561 # Check whether --with-python was given.
21562 if test "${with_python+set}" = set; then :
21563 withval=$with_python;
21566 if test "$withval" != "no"; then
21567 if test "$withval" = "yes"; then
21568 if test -e /usr/bin/python-config ; then
21569 PYTHON_INCDIR=`/usr/bin/python-config --includes`
21570 PYTHON_LIBS=`/usr/bin/python-config --libs`
21572 for python_root in /usr /usr/local /usr/sfw; do
21573 for ver in python2.2 python2.3 python2.4 python2.5 python2.6 python3; do
21574 if test -f $python_root/include/${ver}/Python.h; then
21575 PYTHON_INCDIR=-I$python_root/include/${ver}
21576 if test -d $python_root/lib64/${ver}/config; then
21577 PYTHON_LIBS="-L$python_root/lib64/${ver}/config -l${ver}"
21579 PYTHON_LIBS="-L$python_root/lib/${ver}/config -l${ver}"
21586 if test x$PYTHON_INCDIR = x; then
21587 if test -f $prefix/include/Python.h; then
21588 PYTHON_INCDIR=-I$prefix/include
21589 if test -d $prefix/lib64/config; then
21590 PYTHON_LIBS="-L$prefix/lib64/config -lpython"
21592 PYTHON_LIBS="-L$prefix/lib/config -lpython"
21595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21596 $as_echo "no" >&6; }
21597 as_fn_error "Unable to find Python.h in standard locations" "$LINENO" 5
21602 if test -e $withval/bin/python-config ; then
21603 PYTHON_INCDIR=`$withval/bin/python-config --includes`
21604 PYTHON_LIBS=`$withval/bin/python-config --libs`
21605 elif test -f $withval/Python.h; then
21606 PYTHON_INCDIR=-I$withval
21607 PYTHON_LIBS="-L$withval/config -lpython"
21608 elif test -f $withval/include/Python.h; then
21609 PYTHON_INCDIR=-I$withval/include
21610 if test -d $withval/lib64/config; then
21611 PYTHON_LIBS="-L$withval/lib64/config -lpython"
21613 PYTHON_LIBS="-L$withval/lib/config -lpython"
21615 elif test -f $withval/include/python/Python.h; then
21616 PYTHON_INCDIR=-I$withval/include/python
21617 if test -d $withval/lib64/python/config; then
21618 PYTHON_LIBS="-L$withval/lib64/python/config -lpython"
21620 PYTHON_LIBS="-L$withval/lib/python/config -lpython"
21623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21624 $as_echo "no" >&6; }
21625 as_fn_error "Invalid Python directory $withval - unable to find Python.h under $withval" "$LINENO" 5
21629 $as_echo "#define HAVE_PYTHON 1" >>confdefs.h
21631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21632 $as_echo "yes" >&6; }
21634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for more Python libs" >&5
21635 $as_echo "$as_me: checking for more Python libs" >&6;}
21636 saved_LIBS="$LIBS"; LIBS=
21637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing shm_open" >&5
21638 $as_echo_n "checking for library containing shm_open... " >&6; }
21639 if test "${ac_cv_search_shm_open+set}" = set; then :
21640 $as_echo_n "(cached) " >&6
21642 ac_func_search_save_LIBS=$LIBS
21643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21644 /* end confdefs.h. */
21646 /* Override any GCC internal prototype to avoid an error.
21647 Use char because int might match the return type of a GCC
21648 builtin and then its argument prototype would still apply. */
21656 return shm_open ();
21661 for ac_lib in '' rt; do
21662 if test -z "$ac_lib"; then
21663 ac_res="none required"
21666 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21668 if ac_fn_c_try_link "$LINENO"; then :
21669 ac_cv_search_shm_open=$ac_res
21671 rm -f core conftest.err conftest.$ac_objext \
21673 if test "${ac_cv_search_shm_open+set}" = set; then :
21677 if test "${ac_cv_search_shm_open+set}" = set; then :
21680 ac_cv_search_shm_open=no
21682 rm conftest.$ac_ext
21683 LIBS=$ac_func_search_save_LIBS
21685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_shm_open" >&5
21686 $as_echo "$ac_cv_search_shm_open" >&6; }
21687 ac_res=$ac_cv_search_shm_open
21688 if test "$ac_res" != no; then :
21689 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openpty in -lutil" >&5
21694 $as_echo_n "checking for openpty in -lutil... " >&6; }
21695 if test "${ac_cv_lib_util_openpty+set}" = set; then :
21696 $as_echo_n "(cached) " >&6
21698 ac_check_lib_save_LIBS=$LIBS
21699 LIBS="-lutil $LIBS"
21700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21701 /* end confdefs.h. */
21703 /* Override any GCC internal prototype to avoid an error.
21704 Use char because int might match the return type of a GCC
21705 builtin and then its argument prototype would still apply. */
21718 if ac_fn_c_try_link "$LINENO"; then :
21719 ac_cv_lib_util_openpty=yes
21721 ac_cv_lib_util_openpty=no
21723 rm -f core conftest.err conftest.$ac_objext \
21724 conftest$ac_exeext conftest.$ac_ext
21725 LIBS=$ac_check_lib_save_LIBS
21727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_openpty" >&5
21728 $as_echo "$ac_cv_lib_util_openpty" >&6; }
21729 if test "x$ac_cv_lib_util_openpty" = x""yes; then :
21730 cat >>confdefs.h <<_ACEOF
21731 #define HAVE_LIBUTIL 1
21734 LIBS="-lutil $LIBS"
21738 PYTHON_LIBS="$PYTHON_LIBS $LIBS"
21741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21742 $as_echo "no" >&6; }
21747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21748 $as_echo "no" >&6; }
21756 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
21757 if test "x$ac_cv_func_socket" = x""yes; then :
21758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using libc's socket" >&5
21759 $as_echo "using libc's socket" >&6; }
21761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lxnet" >&5
21762 $as_echo_n "checking for socket in -lxnet... " >&6; }
21763 if test "${ac_cv_lib_xnet_socket+set}" = set; then :
21764 $as_echo_n "(cached) " >&6
21766 ac_check_lib_save_LIBS=$LIBS
21767 LIBS="-lxnet $LIBS"
21768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21769 /* end confdefs.h. */
21771 /* Override any GCC internal prototype to avoid an error.
21772 Use char because int might match the return type of a GCC
21773 builtin and then its argument prototype would still apply. */
21786 if ac_fn_c_try_link "$LINENO"; then :
21787 ac_cv_lib_xnet_socket=yes
21789 ac_cv_lib_xnet_socket=no
21791 rm -f core conftest.err conftest.$ac_objext \
21792 conftest$ac_exeext conftest.$ac_ext
21793 LIBS=$ac_check_lib_save_LIBS
21795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xnet_socket" >&5
21796 $as_echo "$ac_cv_lib_xnet_socket" >&6; }
21797 if test "x$ac_cv_lib_xnet_socket" = x""yes; then :
21798 cat >>confdefs.h <<_ACEOF
21799 #define HAVE_LIBXNET 1
21802 LIBS="-lxnet $LIBS"
21806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
21807 $as_echo_n "checking for socket in -lsocket... " >&6; }
21808 if test "${ac_cv_lib_socket_socket+set}" = set; then :
21809 $as_echo_n "(cached) " >&6
21811 ac_check_lib_save_LIBS=$LIBS
21812 LIBS="-lsocket $LIBS"
21813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21814 /* end confdefs.h. */
21816 /* Override any GCC internal prototype to avoid an error.
21817 Use char because int might match the return type of a GCC
21818 builtin and then its argument prototype would still apply. */
21831 if ac_fn_c_try_link "$LINENO"; then :
21832 ac_cv_lib_socket_socket=yes
21834 ac_cv_lib_socket_socket=no
21836 rm -f core conftest.err conftest.$ac_objext \
21837 conftest$ac_exeext conftest.$ac_ext
21838 LIBS=$ac_check_lib_save_LIBS
21840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
21841 $as_echo "$ac_cv_lib_socket_socket" >&6; }
21842 if test "x$ac_cv_lib_socket_socket" = x""yes; then :
21843 cat >>confdefs.h <<_ACEOF
21844 #define HAVE_LIBSOCKET 1
21847 LIBS="-lsocket $LIBS"
21851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -linet" >&5
21852 $as_echo_n "checking for socket in -linet... " >&6; }
21853 if test "${ac_cv_lib_inet_socket+set}" = set; then :
21854 $as_echo_n "(cached) " >&6
21856 ac_check_lib_save_LIBS=$LIBS
21857 LIBS="-linet $LIBS"
21858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21859 /* end confdefs.h. */
21861 /* Override any GCC internal prototype to avoid an error.
21862 Use char because int might match the return type of a GCC
21863 builtin and then its argument prototype would still apply. */
21876 if ac_fn_c_try_link "$LINENO"; then :
21877 ac_cv_lib_inet_socket=yes
21879 ac_cv_lib_inet_socket=no
21881 rm -f core conftest.err conftest.$ac_objext \
21882 conftest$ac_exeext conftest.$ac_ext
21883 LIBS=$ac_check_lib_save_LIBS
21885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_inet_socket" >&5
21886 $as_echo "$ac_cv_lib_inet_socket" >&6; }
21887 if test "x$ac_cv_lib_inet_socket" = x""yes; then :
21888 cat >>confdefs.h <<_ACEOF
21889 #define HAVE_LIBINET 1
21892 LIBS="-linet $LIBS"
21902 # Check whether --with-tcp-wrappers was given.
21903 if test "${with_tcp_wrappers+set}" = set; then :
21904 withval=$with_tcp_wrappers;
21905 if test "x$withval" != "xno" ; then
21907 LIBS="$saved_LIBS -lwrap"
21908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nanosleep" >&5
21909 $as_echo_n "checking for library containing nanosleep... " >&6; }
21910 if test "${ac_cv_search_nanosleep+set}" = set; then :
21911 $as_echo_n "(cached) " >&6
21913 ac_func_search_save_LIBS=$LIBS
21914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21915 /* end confdefs.h. */
21917 /* Override any GCC internal prototype to avoid an error.
21918 Use char because int might match the return type of a GCC
21919 builtin and then its argument prototype would still apply. */
21927 return nanosleep ();
21932 for ac_lib in '' rt; do
21933 if test -z "$ac_lib"; then
21934 ac_res="none required"
21937 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21939 if ac_fn_c_try_link "$LINENO"; then :
21940 ac_cv_search_nanosleep=$ac_res
21942 rm -f core conftest.err conftest.$ac_objext \
21944 if test "${ac_cv_search_nanosleep+set}" = set; then :
21948 if test "${ac_cv_search_nanosleep+set}" = set; then :
21951 ac_cv_search_nanosleep=no
21953 rm conftest.$ac_ext
21954 LIBS=$ac_func_search_save_LIBS
21956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nanosleep" >&5
21957 $as_echo "$ac_cv_search_nanosleep" >&6; }
21958 ac_res=$ac_cv_search_nanosleep
21959 if test "$ac_res" != no; then :
21960 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libwrap" >&5
21965 $as_echo_n "checking for libwrap... " >&6; }
21966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21967 /* end confdefs.h. */
21969 #include <sys/types.h>
21971 int deny_severity = 0;
21972 int allow_severity = 0;
21973 struct request_info *req;
21985 if ac_fn_c_try_link "$LINENO"; then :
21987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21988 $as_echo "yes" >&6; }
21990 $as_echo "#define HAVE_LIBWRAP 1" >>confdefs.h
21998 LIBS="$saved_LIBS -lwrap -lnsl"
21999 WRAPLIBS="$saved_LIBS -lwrap -lnsl"
22000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22001 /* end confdefs.h. */
22003 #include <sys/types.h>
22005 int deny_severity = 0;
22006 int allow_severity = 0;
22007 struct request_info *req;
22019 if ac_fn_c_try_link "$LINENO"; then :
22021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22022 $as_echo "yes" >&6; }
22024 $as_echo "#define HAVE_LIBWRAP 1" >>confdefs.h
22032 as_fn_error "*** libwrap missing" "$LINENO" 5
22036 rm -f core conftest.err conftest.$ac_objext \
22037 conftest$ac_exeext conftest.$ac_ext
22041 rm -f core conftest.err conftest.$ac_objext \
22042 conftest$ac_exeext conftest.$ac_ext
22049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL" >&5
22050 $as_echo_n "checking for OpenSSL... " >&6; }
22052 # Check whether --with-openssl was given.
22053 if test "${with_openssl+set}" = set; then :
22054 withval=$with_openssl;
22055 with_openssl_directory=${withval}
22061 if test "x$with_openssl_directory" != "xno"; then
22062 OPENSSL_LIBS="-lssl -lcrypto"
22065 if test "x$with_openssl_directory" != "xyes" && test x"${with_openssl_directory}" != "x"; then
22067 # Make sure the $with_openssl_directory also makes sense
22069 if test -d "$with_openssl_directory/lib" -a -d "$with_openssl_directory/include"; then
22070 OPENSSL_LIBS="-L$with_openssl_directory/lib $OPENSSL_LIBS"
22071 OPENSSL_INC="-I$with_openssl_directory/include $OPENSSL_INC"
22075 saved_LIBS="${LIBS}"
22076 saved_CFLAGS="${CFLAGS}"
22077 LIBS="${saved_LIBS} ${OPENSSL_LIBS}"
22078 CFLAGS="${saved_CFLAGS} ${OPENSSL_INC}"
22080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22081 /* end confdefs.h. */
22083 #include <openssl/ssl.h>
22089 CRYPTO_set_id_callback(NULL);
22095 if ac_fn_c_try_link "$LINENO"; then :
22098 support_crypto="yes"
22103 support_crypto="no"
22107 rm -f core conftest.err conftest.$ac_objext \
22108 conftest$ac_exeext conftest.$ac_ext
22110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22111 /* end confdefs.h. */
22113 #include <openssl/evp.h>
22125 if ac_fn_c_try_link "$LINENO"; then :
22127 ac_cv_openssl_sha2="yes"
22131 ac_cv_openssl_sha2="no"
22135 rm -f core conftest.err conftest.$ac_objext \
22136 conftest$ac_exeext conftest.$ac_ext
22138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22139 /* end confdefs.h. */
22141 #include <openssl/evp.h>
22153 if ac_fn_c_try_link "$LINENO"; then :
22155 ac_cv_openssl_export="no"
22159 ac_cv_openssl_export="yes"
22163 rm -f core conftest.err conftest.$ac_objext \
22164 conftest$ac_exeext conftest.$ac_ext
22166 if test "$support_tls" = "yes"; then
22168 $as_echo "#define HAVE_OPENSSL 1" >>confdefs.h
22171 $as_echo "#define HAVE_TLS 1" >>confdefs.h
22174 $as_echo "#define HAVE_CRYPTO 1" >>confdefs.h
22178 if test "$ac_cv_openssl_sha2" = "yes"; then
22180 $as_echo "#define HAVE_SHA2 1" >>confdefs.h
22184 if test "$ac_cv_openssl_export" = "yes"; then
22186 $as_echo "#define HAVE_OPENSSL_EXPORT_LIBRARY 1" >>confdefs.h
22190 if test "$support_crypto" = "yes"; then
22191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVP_PKEY_encrypt_old in -lcrypto" >&5
22192 $as_echo_n "checking for EVP_PKEY_encrypt_old in -lcrypto... " >&6; }
22193 if test "${ac_cv_lib_crypto_EVP_PKEY_encrypt_old+set}" = set; then :
22194 $as_echo_n "(cached) " >&6
22196 ac_check_lib_save_LIBS=$LIBS
22197 LIBS="-lcrypto $LIBS"
22198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22199 /* end confdefs.h. */
22201 /* Override any GCC internal prototype to avoid an error.
22202 Use char because int might match the return type of a GCC
22203 builtin and then its argument prototype would still apply. */
22207 char EVP_PKEY_encrypt_old ();
22211 return EVP_PKEY_encrypt_old ();
22216 if ac_fn_c_try_link "$LINENO"; then :
22217 ac_cv_lib_crypto_EVP_PKEY_encrypt_old=yes
22219 ac_cv_lib_crypto_EVP_PKEY_encrypt_old=no
22221 rm -f core conftest.err conftest.$ac_objext \
22222 conftest$ac_exeext conftest.$ac_ext
22223 LIBS=$ac_check_lib_save_LIBS
22225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_EVP_PKEY_encrypt_old" >&5
22226 $as_echo "$ac_cv_lib_crypto_EVP_PKEY_encrypt_old" >&6; }
22227 if test "x$ac_cv_lib_crypto_EVP_PKEY_encrypt_old" = x""yes; then :
22229 $as_echo "#define HAVE_OPENSSLv1 1" >>confdefs.h
22235 LIBS="${saved_LIBS}"
22236 CFLAGS="${saved_CFLAGS}"
22239 support_crypto="no"
22243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $support_tls" >&5
22244 $as_echo "$support_tls" >&6; }
22246 if test "$support_tls" = "no"; then
22250 if test "$support_crypto" = "no"; then
22258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
22259 $as_echo_n "checking for library containing dlopen... " >&6; }
22260 if test "${ac_cv_search_dlopen+set}" = set; then :
22261 $as_echo_n "(cached) " >&6
22263 ac_func_search_save_LIBS=$LIBS
22264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22265 /* end confdefs.h. */
22267 /* Override any GCC internal prototype to avoid an error.
22268 Use char because int might match the return type of a GCC
22269 builtin and then its argument prototype would still apply. */
22282 for ac_lib in '' dl; do
22283 if test -z "$ac_lib"; then
22284 ac_res="none required"
22287 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22289 if ac_fn_c_try_link "$LINENO"; then :
22290 ac_cv_search_dlopen=$ac_res
22292 rm -f core conftest.err conftest.$ac_objext \
22294 if test "${ac_cv_search_dlopen+set}" = set; then :
22298 if test "${ac_cv_search_dlopen+set}" = set; then :
22301 ac_cv_search_dlopen=no
22303 rm conftest.$ac_ext
22304 LIBS=$ac_func_search_save_LIBS
22306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
22307 $as_echo "$ac_cv_search_dlopen" >&6; }
22308 ac_res=$ac_cv_search_dlopen
22309 if test "$ac_res" != no; then :
22310 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22315 working_dir=`eval echo ${prefix}/var/bacula/working`
22317 # Check whether --with-working-dir was given.
22318 if test "${with_working_dir+set}" = set; then :
22319 withval=$with_working_dir;
22320 if test "x$withval" != "xno" ; then
22321 working_dir=$withval
22332 # Check whether --with-archivedir was given.
22333 if test "${with_archivedir+set}" = set; then :
22334 withval=$with_archivedir;
22335 if test "x$withval" != "xno" ; then
22336 archivedir=$withval
22345 basename=`hostname`
22347 # Check whether --with-basename was given.
22348 if test "${with_basename+set}" = set; then :
22349 withval=$with_basename;
22350 if test "x$withval" != "xno" ; then
22360 hostname=`uname -n | cut -d '.' -f 1`
22361 if test x${hostname} = x ; then
22362 hostname="localhost"
22365 # Check whether --with-hostname was given.
22366 if test "${with_hostname+set}" = set; then :
22367 withval=$with_hostname;
22368 if test "x$withval" != "xno" ; then
22379 scriptdir=`eval echo ${sysconfdir}`
22381 # Check whether --with-scriptdir was given.
22382 if test "${with_scriptdir+set}" = set; then :
22383 withval=$with_scriptdir;
22384 if test "x$withval" != "xno" ; then
22397 # Check whether --with-bsrdir was given.
22398 if test "${with_bsrdir+set}" = set; then :
22399 withval=$with_bsrdir;
22400 if test "x$withval" != "xno" ; then
22412 # Check whether --with-logdir was given.
22413 if test "${with_logdir+set}" = set; then :
22414 withval=$with_logdir;
22415 if test "x$withval" != "xno" ; then
22426 # ------------------------------------------
22427 # Where to place plugindir (plugin files)
22428 # ------------------------------------------
22429 plugindir=`eval echo ${libdir}`
22431 # Check whether --with-plugindir was given.
22432 if test "${with_plugindir+set}" = set; then :
22433 withval=$with_plugindir;
22434 if test "x$withval" != "xno" ; then
22444 dump_email=root@localhost
22446 # Check whether --with-dump-email was given.
22447 if test "${with_dump_email+set}" = set; then :
22448 withval=$with_dump_email;
22449 if test "x$withval" != "xno" ; then
22450 dump_email=$withval
22459 job_email=root@localhost
22461 # Check whether --with-job-email was given.
22462 if test "${with_job_email+set}" = set; then :
22463 withval=$with_job_email;
22464 if test "x$withval" != "xno" ; then
22474 smtp_host=localhost
22476 # Check whether --with-smtp_host was given.
22477 if test "${with_smtp_host+set}" = set; then :
22478 withval=$with_smtp_host;
22479 if test "x$withval" != "xno" ; then
22491 # Check whether --with-pid-dir was given.
22492 if test "${with_pid_dir+set}" = set; then :
22493 withval=$with_pid_dir;
22494 if test "x$withval" != "xno" ; then
22502 cat >>confdefs.h <<_ACEOF
22503 #define _PATH_BACULA_PIDDIR "$piddir"
22508 subsysdir=/var/run/subsys
22509 if test -d /var/run/subsys; then
22510 subsysdir=/var/run/subsys
22511 elif test -d /var/lock/subsys; then
22512 subsysdir=/var/lock/subsys
22514 subsysdir=/var/run/subsys
22517 # Check whether --with-subsys-dir was given.
22518 if test "${with_subsys_dir+set}" = set; then :
22519 withval=$with_subsys_dir;
22520 if test "x$withval" != "xno" ; then
22532 # Check whether --with-baseport was given.
22533 if test "${with_baseport+set}" = set; then :
22534 withval=$with_baseport;
22535 if test "x$withval" != "xno" ; then
22544 dir_port=`expr $baseport`
22545 fd_port=`expr $baseport + 1`
22546 sd_port=`expr $fd_port + 1`
22554 # Check whether --with-dir-password was given.
22555 if test "${with_dir_password+set}" = set; then :
22556 withval=$with_dir_password;
22557 if test "x$withval" != "xno" ; then
22558 dir_password=$withval
22565 if test "x$dir_password" = "x" ; then
22566 if test "x$OPENSSL" = "xnone" ; then
22567 key=`autoconf/randpass 33`
22569 key=`openssl rand -base64 33`
22576 # Check whether --with-fd-password was given.
22577 if test "${with_fd_password+set}" = set; then :
22578 withval=$with_fd_password;
22579 if test "x$withval" != "xno" ; then
22580 fd_password=$withval
22587 if test "x$fd_password" = "x" ; then
22588 if test "x$OPENSSL" = "xnone" ; then
22589 key=`autoconf/randpass 37`
22591 key=`openssl rand -base64 33`
22598 # Check whether --with-sd-password was given.
22599 if test "${with_sd_password+set}" = set; then :
22600 withval=$with_sd_password;
22601 if test "x$withval" != "xno" ; then
22602 sd_password=$withval
22609 if test "x$sd_password" = "x" ; then
22610 if test "x$OPENSSL" = "xnone" ; then
22611 key=`autoconf/randpass 41`
22613 key=`openssl rand -base64 33`
22620 # Check whether --with-mon-dir-password was given.
22621 if test "${with_mon_dir_password+set}" = set; then :
22622 withval=$with_mon_dir_password;
22623 if test "x$withval" != "xno" ; then
22624 mon_dir_password=$withval
22631 if test "x$mon_dir_password" = "x" ; then
22632 if test "x$OPENSSL" = "xnone" ; then
22633 key=`autoconf/randpass 33`
22635 key=`openssl rand -base64 33`
22637 mon_dir_password=$key
22642 # Check whether --with-mon-fd-password was given.
22643 if test "${with_mon_fd_password+set}" = set; then :
22644 withval=$with_mon_fd_password;
22645 if test "x$withval" != "xno" ; then
22646 mon_fd_password=$withval
22653 if test "x$mon_fd_password" = "x" ; then
22654 if test "x$OPENSSL" = "xnone" ; then
22655 key=`autoconf/randpass 37`
22657 key=`openssl rand -base64 33`
22659 mon_fd_password=$key
22664 # Check whether --with-mon-sd-password was given.
22665 if test "${with_mon_sd_password+set}" = set; then :
22666 withval=$with_mon_sd_password;
22667 if test "x$withval" != "xno" ; then
22668 mon_sd_password=$withval
22675 if test "x$mon_sd_password" = "x" ; then
22676 if test "x$OPENSSL" = "xnone" ; then
22677 key=`autoconf/randpass 41`
22679 key=`openssl rand -base64 33`
22681 mon_sd_password=$key
22693 # Check whether --with-db_name was given.
22694 if test "${with_db_name+set}" = set; then :
22695 withval=$with_db_name;
22696 if test "x$withval" != "x" ; then
22707 # Check whether --with-db_user was given.
22708 if test "${with_db_user+set}" = set; then :
22709 withval=$with_db_user;
22710 if test "x$withval" != "x" ; then
22721 # Check whether --with-db_password was given.
22722 if test "${with_db_password+set}" = set; then :
22723 withval=$with_db_password;
22724 if test "x$withval" != "x" ; then
22725 db_password=$withval
22735 # Check whether --with-db_port was given.
22736 if test "${with_db_port+set}" = set; then :
22737 withval=$with_db_port;
22738 if test "x$withval" != "x" ; then
22748 # Handle users and groups for each daemon
22752 # Check whether --with-dir_user was given.
22753 if test "${with_dir_user+set}" = set; then :
22754 withval=$with_dir_user;
22755 if test "x$withval" != "x" ; then
22765 # Check whether --with-dir_group was given.
22766 if test "${with_dir_group+set}" = set; then :
22767 withval=$with_dir_group;
22768 if test "x$withval" != "x" ; then
22778 # Check whether --with-sd_user was given.
22779 if test "${with_sd_user+set}" = set; then :
22780 withval=$with_sd_user;
22781 if test "x$withval" != "x" ; then
22791 # Check whether --with-sd_group was given.
22792 if test "${with_sd_group+set}" = set; then :
22793 withval=$with_sd_group;
22794 if test "x$withval" != "x" ; then
22804 # Check whether --with-fd_user was given.
22805 if test "${with_fd_user+set}" = set; then :
22806 withval=$with_fd_user;
22807 if test "x$withval" != "x" ; then
22817 # Check whether --with-fd_group was given.
22818 if test "${with_fd_group+set}" = set; then :
22819 withval=$with_fd_group;
22820 if test "x$withval" != "x" ; then
22837 # Check whether --with-sbin-perm was given.
22838 if test "${with_sbin_perm+set}" = set; then :
22839 withval=$with_sbin_perm;
22840 if test "x$withval" != "x" ; then
22851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PostgreSQL support" >&5
22852 $as_echo_n "checking for PostgreSQL support... " >&6; }
22854 # Check whether --with-postgresql was given.
22855 if test "${with_postgresql+set}" = set; then :
22856 withval=$with_postgresql;
22857 if test "$withval" != "no"; then
22858 if test "$withval" = "yes"; then
22859 PG_CONFIG=`which pg_config`
22860 if test -n "$PG_CONFIG"; then
22861 POSTGRESQL_INCDIR=`"$PG_CONFIG" --includedir`
22862 POSTGRESQL_LIBDIR=`"$PG_CONFIG" --libdir`
22863 POSTGRESQL_BINDIR=`"$PG_CONFIG" --bindir`
22864 elif test -f /usr/local/include/libpq-fe.h; then
22865 POSTGRESQL_INCDIR=/usr/local/include
22866 if test -d /usr/local/lib64; then
22867 POSTGRESQL_LIBDIR=/usr/local/lib64
22869 POSTGRESQL_LIBDIR=/usr/local/lib
22871 POSTGRESQL_BINDIR=/usr/local/bin
22872 elif test -f /usr/include/libpq-fe.h; then
22873 POSTGRESQL_INCDIR=/usr/include
22874 if test -d /usr/lib64; then
22875 POSTGRESQL_LIBDIR=/usr/lib64
22877 POSTGRESQL_LIBDIR=/usr/lib
22879 POSTGRESQL_BINDIR=/usr/bin
22880 elif test -f /usr/include/pgsql/libpq-fe.h; then
22881 POSTGRESQL_INCDIR=/usr/include/pgsql
22882 if test -d /usr/lib64/pgsql; then
22883 POSTGRESQL_LIBDIR=/usr/lib64/pgsql
22885 POSTGRESQL_LIBDIR=/usr/lib/pgsql
22887 POSTGRESQL_BINDIR=/usr/bin
22888 elif test -f /usr/include/postgresql/libpq-fe.h; then
22889 POSTGRESQL_INCDIR=/usr/include/postgresql
22890 if test -d /usr/lib64/postgresql; then
22891 POSTGRESQL_LIBDIR=/usr/lib64/postgresql
22893 POSTGRESQL_LIBDIR=/usr/lib/postgresql
22895 POSTGRESQL_BINDIR=/usr/bin
22897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22898 $as_echo "no" >&6; }
22899 as_fn_error "Unable to find libpq-fe.h in standard locations" "$LINENO" 5
22901 elif test -f $withval/include/libpq-fe.h; then
22902 POSTGRESQL_INCDIR=$withval/include
22903 POSTGRESQL_LIBDIR=$withval/lib
22904 POSTGRESQL_BINDIR=$withval/bin
22905 elif test -f $withval/include/postgresql/libpq-fe.h; then
22906 POSTGRESQL_INCDIR=$withval/include/postgresql
22907 if test -d $withval/lib64; then
22908 POSTGRESQL_LIBDIR=$withval/lib64
22910 POSTGRESQL_LIBDIR=$withval/lib
22912 POSTGRESQL_BINDIR=$withval/bin
22914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22915 $as_echo "no" >&6; }
22916 as_fn_error "Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" "$LINENO" 5
22919 $as_echo "#define HAVE_POSTGRESQL 1" >>confdefs.h
22921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22922 $as_echo "yes" >&6; }
22924 POSTGRESQL_INCLUDE=-I$POSTGRESQL_INCDIR
22925 POSTGRESQL_LIBS="-R $POSTGRESQL_LIBDIR -L$POSTGRESQL_LIBDIR -lpq"
22926 ac_fn_c_check_func "$LINENO" "crypt" "ac_cv_func_crypt"
22927 if test "x$ac_cv_func_crypt" = x""yes; then :
22930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
22931 $as_echo_n "checking for crypt in -lcrypt... " >&6; }
22932 if test "${ac_cv_lib_crypt_crypt+set}" = set; then :
22933 $as_echo_n "(cached) " >&6
22935 ac_check_lib_save_LIBS=$LIBS
22936 LIBS="-lcrypt $LIBS"
22937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22938 /* end confdefs.h. */
22940 /* Override any GCC internal prototype to avoid an error.
22941 Use char because int might match the return type of a GCC
22942 builtin and then its argument prototype would still apply. */
22955 if ac_fn_c_try_link "$LINENO"; then :
22956 ac_cv_lib_crypt_crypt=yes
22958 ac_cv_lib_crypt_crypt=no
22960 rm -f core conftest.err conftest.$ac_objext \
22961 conftest$ac_exeext conftest.$ac_ext
22962 LIBS=$ac_check_lib_save_LIBS
22964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
22965 $as_echo "$ac_cv_lib_crypt_crypt" >&6; }
22966 if test "x$ac_cv_lib_crypt_crypt" = x""yes; then :
22967 POSTGRESQL_LIBS="$POSTGRESQL_LIBS -lcrypt"
22972 POSTGRESQL_LIB=$POSTGRESQL_LIBDIR/libpq.a
22973 DB_LIBS="${DB_LIBS} ${POSTGRESQL_LIBS}"
22975 if test -z "${db_backends}"; then
22976 db_backends="PostgreSQL"
22978 db_backends="${db_backends} PostgreSQL"
22980 if test -z "${DB_BACKENDS}"; then
22981 DB_BACKENDS="postgresql"
22983 DB_BACKENDS="${DB_BACKENDS} postgresql"
22986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22987 $as_echo "no" >&6; }
22992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22993 $as_echo "no" >&6; }
23004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MySQL support" >&5
23005 $as_echo_n "checking for MySQL support... " >&6; }
23007 # Check whether --with-mysql was given.
23008 if test "${with_mysql+set}" = set; then :
23009 withval=$with_mysql;
23010 if test "$withval" != "no"; then
23011 if test "$withval" = "yes"; then
23012 if test -f /usr/local/mysql/include/mysql/mysql.h; then
23013 MYSQL_INCDIR=/usr/local/mysql/include/mysql
23014 if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
23015 -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
23016 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
23018 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
23020 MYSQL_BINDIR=/usr/local/mysql/bin
23021 elif test -f /usr/include/mysql/mysql.h; then
23022 MYSQL_INCDIR=/usr/include/mysql
23023 if test -f /usr/lib64/mysql/libmysqlclient_r.a \
23024 -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
23025 MYSQL_LIBDIR=/usr/lib64/mysql
23026 elif test -f /usr/lib64/libmysqlclient_r.a \
23027 -o -f /usr/lib64/libmysqlclient_r.so; then
23028 MYSQL_LIBDIR=/usr/lib64
23029 elif test -f /usr/lib/mysql/libmysqlclient_r.a \
23030 -o -f /usr/lib/mysql/libmysqlclient_r.so; then
23031 MYSQL_LIBDIR=/usr/lib/mysql
23033 MYSQL_LIBDIR=/usr/lib
23035 MYSQL_BINDIR=/usr/bin
23036 elif test -f /usr/include/mysql.h; then
23037 MYSQL_INCDIR=/usr/include
23038 if test -f /usr/lib64/libmysqlclient_r.a \
23039 -o -f /usr/lib64/libmysqlclient_r.so; then
23040 MYSQL_LIBDIR=/usr/lib64
23042 MYSQL_LIBDIR=/usr/lib
23044 MYSQL_BINDIR=/usr/bin
23045 elif test -f /usr/local/include/mysql/mysql.h; then
23046 MYSQL_INCDIR=/usr/local/include/mysql
23047 if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
23048 -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
23049 MYSQL_LIBDIR=/usr/local/lib64/mysql
23051 MYSQL_LIBDIR=/usr/local/lib/mysql
23053 MYSQL_BINDIR=/usr/local/bin
23054 elif test -f /usr/local/include/mysql.h; then
23055 MYSQL_INCDIR=/usr/local/include
23056 if test -f /usr/local/lib64/libmysqlclient_r.a \
23057 -o -f /usr/local/lib64/libmysqlclient_r.so; then
23058 MYSQL_LIBDIR=/usr/local/lib64
23060 MYSQL_LIBDIR=/usr/local/lib
23062 MYSQL_BINDIR=/usr/local/bin
23064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23065 $as_echo "no" >&6; }
23066 as_fn_error "Unable to find mysql.h in standard locations" "$LINENO" 5
23069 if test -f $withval/include/mysql/mysql.h; then
23070 MYSQL_INCDIR=$withval/include/mysql
23071 if test -f $withval/lib64/mysql/libmysqlclient_r.a \
23072 -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
23073 MYSQL_LIBDIR=$withval/lib64/mysql
23074 elif test -f $withval/lib64/libmysqlclient_r.a \
23075 -o -f $withval/lib64/libmysqlclient_r.so; then
23076 MYSQL_LIBDIR=$withval/lib64
23077 elif test -f $withval/lib/libmysqlclient_r.a \
23078 -o -f $withval/lib/libmysqlclient_r.so; then
23079 MYSQL_LIBDIR=$withval/lib
23081 MYSQL_LIBDIR=$withval/lib/mysql
23083 MYSQL_BINDIR=$withval/bin
23084 elif test -f $withval/include/mysql.h; then
23085 MYSQL_INCDIR=$withval/include
23086 if test -f $withval/lib64/libmysqlclient_r.a \
23087 -o -f $withval/lib64/libmysqlclient_r.so; then
23088 MYSQL_LIBDIR=$withval/lib64
23090 MYSQL_LIBDIR=$withval/lib
23092 MYSQL_BINDIR=$withval/bin
23094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23095 $as_echo "no" >&6; }
23096 as_fn_error "Invalid MySQL directory $withval - unable to find mysql.h under $withval" "$LINENO" 5
23099 MYSQL_INCLUDE=-I$MYSQL_INCDIR
23100 if test -f $MYSQL_LIBDIR/libmysqlclient_r.a \
23101 -o -f $MYSQL_LIBDIR/libmysqlclient_r.so; then
23102 MYSQL_LIBS="-R $MYSQL_LIBDIR -L$MYSQL_LIBDIR -lmysqlclient_r -lz"
23104 $as_echo "#define HAVE_THREAD_SAFE_MYSQL 1" >>confdefs.h
23106 DB_LIBS="${DB_LIBS} ${MYSQL_LIBS}"
23108 MYSQL_LIB=$MYSQL_LIBDIR/libmysqlclient_r.a
23111 $as_echo "#define HAVE_MYSQL 1" >>confdefs.h
23113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23114 $as_echo "yes" >&6; }
23116 if test -z "${db_backends}" ; then
23117 db_backends="MySQL"
23119 db_backends="${db_backends} MySQL"
23121 if test -z "${DB_BACKENDS}" ; then
23122 DB_BACKENDS="mysql"
23124 DB_BACKENDS="${DB_BACKENDS} mysql"
23127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23128 $as_echo "no" >&6; }
23136 # Check whether --with-embedded-mysql was given.
23137 if test "${with_embedded_mysql+set}" = set; then :
23138 withval=$with_embedded_mysql;
23139 if test "$withval" != "no"; then
23140 if test "$withval" = "yes"; then
23141 if test -f /usr/local/mysql/include/mysql/mysql.h; then
23142 MYSQL_INCDIR=/usr/local/mysql/include/mysql
23143 if test -d /usr/local/mysql/lib64/mysql; then
23144 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
23146 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
23148 MYSQL_BINDIR=/usr/local/mysql/bin
23149 elif test -f /usr/include/mysql/mysql.h; then
23150 MYSQL_INCDIR=/usr/include/mysql
23151 if test -d /usr/lib64/mysql; then
23152 MYSQL_LIBDIR=/usr/lib64/mysql
23154 MYSQL_LIBDIR=/usr/lib/mysql
23156 MYSQL_BINDIR=/usr/bin
23157 elif test -f /usr/include/mysql.h; then
23158 MYSQL_INCDIR=/usr/include
23159 if test -d /usr/lib64; then
23160 MYSQL_LIBDIR=/usr/lib64
23162 MYSQL_LIBDIR=/usr/lib
23164 MYSQL_BINDIR=/usr/bin
23165 elif test -f /usr/local/include/mysql/mysql.h; then
23166 MYSQL_INCDIR=/usr/local/include/mysql
23167 if test -d /usr/local/lib64/mysql; then
23168 MYSQL_LIBDIR=/usr/local/lib64/mysql
23170 MYSQL_LIBDIR=/usr/local/lib/mysql
23172 MYSQL_BINDIR=/usr/local/bin
23173 elif test -f /usr/local/include/mysql.h; then
23174 MYSQL_INCDIR=/usr/local/include
23175 if test -d /usr/local/lib64; then
23176 MYSQL_LIBDIR=/usr/local/lib64
23178 MYSQL_LIBDIR=/usr/local/lib
23180 MYSQL_BINDIR=/usr/local/bin
23182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23183 $as_echo "no" >&6; }
23184 as_fn_error "Unable to find mysql.h in standard locations" "$LINENO" 5
23187 if test -f $withval/include/mysql/mysql.h; then
23188 MYSQL_INCDIR=$withval/include/mysql
23189 if test -d $withval/lib64/mysql; then
23190 MYSQL_LIBDIR=$withval/lib64/mysql
23192 MYSQL_LIBDIR=$withval/lib/mysql
23194 MYSQL_BINDIR=$withval/bin
23195 elif test -f $withval/include/mysql.h; then
23196 MYSQL_INCDIR=$withval/include
23197 if test -d $withval/lib64; then
23198 MYSQL_LIBDIR=$withval/lib64
23200 MYSQL_LIBDIR=$withval/lib
23202 MYSQL_BINDIR=$withval/bin
23204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23205 $as_echo "no" >&6; }
23206 as_fn_error "Invalid MySQL directory $withval - unable to find mysql.h under $withval" "$LINENO" 5
23209 MYSQL_INCLUDE=-I$MYSQL_INCDIR
23210 MYSQL_LIBS="-R $MYSQL_LIBDIR -L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
23211 MYSQL_LIB=$MYSQL_LIBDIR/libmysqld.a
23212 DB_LIBS="${DB_LIBS} ${MYSQL_LIBS}"
23215 $as_echo "#define HAVE_MYSQL 1" >>confdefs.h
23218 $as_echo "#define HAVE_EMBEDDED_MYSQL 1" >>confdefs.h
23220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23221 $as_echo "yes" >&6; }
23223 if test -z "${db_backends}"; then
23224 db_backends="MySQL"
23226 db_backends="${db_backends} MySQL"
23228 if test -z "${DB_BACKENDS}"; then
23229 DB_BACKENDS="mysql"
23231 DB_BACKENDS="${DB_BACKENDS} mysql"
23234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23235 $as_echo "no" >&6; }
23249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLite3 support" >&5
23250 $as_echo_n "checking for SQLite3 support... " >&6; }
23252 # Check whether --with-sqlite3 was given.
23253 if test "${with_sqlite3+set}" = set; then :
23254 withval=$with_sqlite3;
23255 if test "$withval" != "no"; then
23256 if test "$withval" = "yes"; then
23257 if test -f /usr/local/include/sqlite3.h; then
23258 SQLITE_INCDIR=/usr/local/include
23259 if test -d /usr/local/lib64; then
23260 SQLITE_LIBDIR=/usr/local/lib64
23262 SQLITE_LIBDIR=/usr/local/lib
23264 SQLITE_BINDIR=/usr/local/bin
23265 elif test -f /usr/include/sqlite3.h; then
23266 SQLITE_INCDIR=/usr/include
23267 if test -d /usr/lib64; then
23268 SQLITE_LIBDIR=/usr/lib64
23270 SQLITE_LIBDIR=/usr/lib
23272 SQLITE_BINDIR=/usr/bin
23273 elif test -f $prefix/include/sqlite3.h; then
23274 SQLITE_INCDIR=$prefix/include
23275 if test -d $prefix/lib64; then
23276 SQLITE_LIBDIR=$prefix/lib64
23278 SQLITE_LIBDIR=$prefix/lib
23280 SQLITE_BINDIR=$prefix/bin
23282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23283 $as_echo "no" >&6; }
23284 as_fn_error "Unable to find sqlite3.h in standard locations" "$LINENO" 5
23287 if test -f $withval/sqlite3.h; then
23288 SQLITE_INCDIR=$withval
23289 SQLITE_LIBDIR=$withval
23290 SQLITE_BINDIR=$withval
23291 elif test -f $withval/include/sqlite3.h; then
23292 SQLITE_INCDIR=$withval/include
23293 if test -d $withval/lib64; then
23294 SQLITE_LIBDIR=$withval/lib64
23296 SQLITE_LIBDIR=$withval/lib
23298 SQLITE_BINDIR=$withval/bin
23300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23301 $as_echo "no" >&6; }
23302 as_fn_error "Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" "$LINENO" 5
23305 SQLITE_INCLUDE=-I$SQLITE_INCDIR
23306 SQLITE_LIBS="-R $SQLITE_LIBDIR -L$SQLITE_LIBDIR -lsqlite3"
23307 SQLITE_LIB=$SQLITE_LIBDIR/libsqlite3.a
23308 DB_LIBS="${DB_LIBS} ${SQLITE_LIBS}"
23311 $as_echo "#define HAVE_SQLITE3 1" >>confdefs.h
23313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23314 $as_echo "yes" >&6; }
23316 if test -z "${db_backends}"; then
23317 db_backends="SQLite3"
23319 db_backends="${db_backends} SQLite3"
23321 if test -z "${DB_BACKENDS}"; then
23322 DB_BACKENDS="sqlite3"
23324 DB_BACKENDS="${DB_BACKENDS} sqlite3"
23327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23328 $as_echo "no" >&6; }
23333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23334 $as_echo "no" >&6; }
23345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ingres support" >&5
23346 $as_echo_n "checking for Ingres support... " >&6; }
23348 # Check whether --with-ingres was given.
23349 if test "${with_ingres+set}" = set; then :
23350 withval=$with_ingres;
23351 if test "$withval" != "no"; then
23352 if test "$withval" = "yes"; then
23353 if test -f ${II_SYSTEM}/files/eqdefc.h; then
23354 INGRES_INCDIR=${II_SYSTEM}/files
23355 INGRES_LIBDIR=${II_SYSTEM}/lib
23356 INGRES_BINDIR=${II_SYSTEM}/bin
23357 elif test -f ${II_SYSTEM}/ingres/files/eqdefc.h; then
23358 INGRES_INCDIR=${II_SYSTEM}/ingres/files
23359 INGRES_LIBDIR=${II_SYSTEM}/ingres/lib
23360 INGRES_BINDIR=${II_SYSTEM}/ingres/bin
23362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23363 $as_echo "no" >&6; }
23364 as_fn_error "Unable to find eqdefc.h in standard locations" "$LINENO" 5
23367 if test -f $withval/files/eqdefc.h; then
23368 INGRES_INCDIR=$withval/files
23369 INGRES_LIBDIR=$withval/lib
23370 INGRES_BINDIR=$withval/bin
23372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23373 $as_echo "no" >&6; }
23374 as_fn_error "Invalid Ingres directory $withval - unable to find Ingres headers under $withval" "$LINENO" 5
23377 INGRES_INCLUDE=-I$INGRES_INCDIR
23378 INGRES_LIBS="-R $INGRES_LIBDIR -L$INGRES_LIBDIR -lq.1 -lcompat.1 -lframe.1"
23379 DB_LIBS="${DB_LIBS} ${INGRES_LIBS}"
23381 $as_echo "#define HAVE_INGRES 1" >>confdefs.h
23383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23384 $as_echo "yes" >&6; }
23386 if test -z "${db_backends}"; then
23387 db_backends="Ingres"
23389 db_backends="${db_backends} Ingres"
23391 if test -z "${DB_BACKENDS}"; then
23392 DB_BACKENDS="ingres"
23394 DB_BACKENDS="${DB_BACKENDS} ingres"
23397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23398 $as_echo "no" >&6; }
23403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23404 $as_echo "no" >&6; }
23415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DBI support" >&5
23416 $as_echo_n "checking for DBI support... " >&6; }
23418 # Check whether --with-dbi was given.
23419 if test "${with_dbi+set}" = set; then :
23421 if test "$withval" != "no"; then
23422 if test "$withval" = "yes"; then
23423 if test -f /usr/local/include/dbi/dbi.h; then
23424 DBI_INCDIR=/usr/local/dbi/include
23425 if test -d /usr/local/lib64; then
23426 DBI_LIBDIR=/usr/local/lib64
23428 DBI_LIBDIR=/usr/local/lib
23430 DBI_BINDIR=/usr/local/bin
23431 elif test -f /usr/include/dbi/dbi.h; then
23432 DBI_INCDIR=/usr/include
23433 if test -d /usr/lib64; then
23434 DBI_LIBDIR=/usr/lib64
23436 DBI_LIBDIR=/usr/lib
23438 DBI_BINDIR=/usr/bin
23439 elif test -f $prefix/include/dbi/dbi.h; then
23440 DBI_INCDIR=$prefix/include
23441 if test -d $prefix/lib64; then
23442 DBI_LIBDIR=$prefix/lib64
23444 DBI_LIBDIR=$prefix/lib
23446 DBI_BINDIR=$prefix/bin
23448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23449 $as_echo "no" >&6; }
23450 as_fn_error "Unable to find dbi.h in standard locations" "$LINENO" 5
23452 if test -d /usr/local/lib/dbd; then
23453 DRIVERDIR=/usr/local/lib/dbd
23454 if test -d /usr/local/lib64/dbd; then
23455 DRIVERDIR=/usr/local/lib64/dbd
23457 DRIVERDIR=/usr/local/lib/dbd
23459 elif test -d /usr/lib/dbd; then
23460 DRIVERDIR=/usr/lib/dbd
23461 if test -d /usr/lib64/dbd; then
23462 DRIVERDIR=/usr/lib64/dbd
23464 DRIVERDIR=/usr/lib/dbd
23466 elif test -d $prefix/lib/dbd; then
23467 if test -d $prefix/lib64/dbd; then
23468 DRIVERDIR=$prefix/lib64/dbd
23470 DRIVERDIR=$prefix/lib/dbd
23472 elif test -d /usr/local/lib64/dbd; then
23473 DRIVERDIR=/usr/local/lib64/dbd
23474 elif test -d /usr/lib64/dbd; then
23475 DRIVERDIR=/usr/lib64/dbd
23476 elif test -d $prefix/lib64/dbd; then
23477 DRIVERDIR=$prefix/lib64/dbd
23479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23480 $as_echo "no" >&6; }
23481 as_fn_error "Unable to find DBD drivers in standard locations" "$LINENO" 5
23484 if test -f $withval/dbi.h; then
23485 DBI_INCDIR=$withval
23486 DBI_LIBDIR=$withval
23487 DBI_BINDIR=$withval
23488 elif test -f $withval/include/dbi/dbi.h; then
23489 DBI_INCDIR=$withval/include
23490 if test -d $withval/lib64; then
23491 DBI_LIBDIR=$withval/lib64
23493 DBI_LIBDIR=$withval/lib
23495 DBI_BINDIR=$withval/bin
23497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23498 $as_echo "no" >&6; }
23499 as_fn_error "Invalid DBI directory $withval - unable to find dbi.h under $withval" "$LINENO" 5
23501 if test -d $withval/dbd; then
23502 DRIVERDIR=$withval/dbd
23503 elif test -d $withval/lib/; then
23504 if test -d $withval/lib64/dbd; then
23505 DRIVERDIR=$withval/lib64/dbd
23507 DRIVERDIR=$withval/lib/dbd
23509 elif test -d $withval/lib64/dbd; then
23510 DRIVERDIR=$withval/lib64/dbd
23512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23513 $as_echo "no" >&6; }
23514 as_fn_error "Invalid DBD driver directory $withval - unable to find DBD drivers under $withval" "$LINENO" 5
23517 DBI_INCLUDE=-I$DBI_INCDIR
23518 DBI_LIBS="-R $DBI_LIBDIR -L$DBI_LIBDIR -ldbi"
23519 DBI_LIB=$DBI_LIBDIR/libdbi.a
23520 DBI_DBD_DRIVERDIR="-D DBI_DRIVER_DIR=\\\"$DRIVERDIR\\\""
23521 DB_LIBS="${DB_LIBS} ${DBI_LIBS}"
23524 $as_echo "#define HAVE_DBI 1" >>confdefs.h
23526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23527 $as_echo "yes" >&6; }
23529 if test -z "${db_backends}"; then
23532 db_backends="${db_backends} DBI"
23534 if test -z "${DB_BACKENDS}" ; then
23537 DB_BACKENDS="${DB_BACKENDS} dbi"
23542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23543 $as_echo "no" >&6; }
23548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23549 $as_echo "no" >&6; }
23564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DBI drivers support" >&5
23565 $as_echo_n "checking for DBI drivers support... " >&6; }
23567 # Check whether --with-dbi-driver was given.
23568 if test "${with_dbi_driver+set}" = set; then :
23569 withval=$with_dbi_driver;
23570 if test "$withval" != "no"; then
23574 if test -f /usr/local/mysql/bin/mysql; then
23575 SQL_BINDIR=/usr/local/mysql/bin
23576 if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
23577 -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
23578 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
23580 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
23582 elif test -f /usr/bin/mysql; then
23583 SQL_BINDIR=/usr/bin
23584 if test -f /usr/lib64/mysql/libmysqlclient_r.a \
23585 -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
23586 MYSQL_LIBDIR=/usr/lib64/mysql
23587 elif test -f /usr/lib/mysql/libmysqlclient_r.a \
23588 -o -f /usr/lib/mysql/libmysqlclient_r.so; then
23589 MYSQL_LIBDIR=/usr/lib/mysql
23591 MYSQL_LIBDIR=/usr/lib
23593 elif test -f /usr/local/bin/mysql; then
23594 SQL_BINDIR=/usr/local/bin
23595 if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
23596 -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
23597 MYSQL_LIBDIR=/usr/local/lib64/mysql
23598 elif test -f /usr/local/lib/mysql/libmysqlclient_r.a \
23599 -o -f /usr/local/lib/mysql/libmysqlclient_r.so; then
23600 MYSQL_LIBDIR=/usr/local/lib/mysql
23602 MYSQL_LIBDIR=/usr/local/lib
23604 elif test -f $withval/bin/mysql; then
23605 SQL_BINDIR=$withval/bin
23606 if test -f $withval/lib64/mysql/libmysqlclient_r.a \
23607 -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
23608 MYSQL_LIBDIR=$withval/lib64/mysql
23609 elif test -f $withval/lib64/libmysqlclient_r.a \
23610 -o -f $withval/lib64/libmysqlclient_r.so; then
23611 MYSQL_LIBDIR=$withval/lib64
23612 elif test -f $withval/lib/libmysqlclient_r.a \
23613 -o -f $withval/lib/libmysqlclient_r.so; then
23614 MYSQL_LIBDIR=$withval/lib/
23616 MYSQL_LIBDIR=$withval/lib/mysql
23619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23620 $as_echo "no" >&6; }
23621 as_fn_error "Unable to find mysql in standard locations" "$LINENO" 5
23623 if test -f $SQL_LIBDIR/libmysqlclient_r.so; then
23624 DB_PROG_LIB=$SQL_LIBDIR/libmysqlclient_r.so
23626 DB_PROG_LIB=$SQL_LIBDIR/libmysqlclient_r.a
23630 db_prog="postgresql"
23631 PG_CONFIG=`which pg_config`
23632 if test -n "$PG_CONFIG"; then
23633 POSTGRESQL_BINDIR=`"$PG_CONFIG" --bindir`
23634 POSTGRESQL_LIBDIR=`"$PG_CONFIG" --libdir`
23635 elif test -f /usr/local/bin/psql; then
23636 POSTGRESQL_BINDIR=/usr/local/bin
23637 if test -d /usr/local/lib64; then
23638 POSTGRESQL_LIBDIR=/usr/local/lib64
23640 POSTGRESQL_LIBDIR=/usr/local/lib
23642 elif test -f /usr/bin/psql; then
23643 POSTGRESQL_BINDIR=/usr/local/bin
23644 if test -d /usr/lib64/postgresql; then
23645 POSTGRESQL_LIBDIR=/usr/lib64/postgresql
23646 elif test -d /usr/lib/postgresql; then
23647 POSTGRESQL_LIBDIR=/usr/lib/postgresql
23648 elif test -d /usr/lib64; then
23649 POSTGRESQL_LIBDIR=/usr/lib64
23651 POSTGRESQL_LIBDIR=/usr/lib
23653 elif test -f $withval/bin/psql; then
23654 POSTGRESQL_BINDIR=$withval/bin
23655 if test -d $withval/lib64; then
23656 POSTGRESQL_LIBDIR=$withval/lib64
23658 POSTGRESQL_LIBDIR=$withval/lib
23661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23662 $as_echo "no" >&6; }
23663 as_fn_error "Unable to find psql in standard locations" "$LINENO" 5
23665 if test -f $POSTGRESQL_LIBDIR/libpq.so; then
23666 DB_PROG_LIB=$POSTGRESQL_LIBDIR/libpq.so
23668 DB_PROG_LIB=$POSTGRESQL_LIBDIR/libpq.a
23673 if test -f /usr/local/bin/sqlite3; then
23674 SQLITE_BINDIR=/usr/local/bin
23675 if test -d /usr/local/lib64; then
23676 SQLITE_LIBDIR=/usr/local/lib64
23678 SQLITE_LIBDIR=/usr/local/lib
23680 elif test -f /usr/bin/sqlite3; then
23681 SQLITE_BINDIR=/usr/bin
23682 if test -d /usr/lib64; then
23683 SQLITE_LIBDIR=/usr/lib64
23685 SQLITE_LIBDIR=/usr/lib
23687 elif test -f $withval/bin/sqlite3; then
23688 SQLITE_BINDIR=$withval/bin
23689 if test -d $withval/lib64; then
23690 SQLITE_LIBDIR=$withval/lib64
23692 SQLITE_LIBDIR=$withval/lib
23695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23696 $as_echo "no" >&6; }
23697 as_fn_error "Unable to find sqlite in standard locations" "$LINENO" 5
23699 if test -f $SQLITE_LIBDIR/libsqlite3.so; then
23700 DB_PROG_LIB=$SQLITE_LIBDIR/libsqlite3.so
23702 DB_PROG_LIB=$SQLITE_LIBDIR/libsqlite3.a
23706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23707 $as_echo "no" >&6; }
23708 as_fn_error "Unable to set DBI driver. $withval is not supported" "$LINENO" 5
23712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23713 $as_echo "yes" >&6; }
23716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23717 $as_echo "no" >&6; }
23722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23723 $as_echo "no" >&6; }
23736 if test "x${db_backends}" = "x" ; then
23739 echo "You have not specified either --enable-client-only or one of the"
23740 echo "supported databases: MySQL, PostgreSQL, Ingres, SQLite3 or DBI."
23741 echo "This is not permitted. Please reconfigure."
23743 echo "Aborting the configuration ..."
23749 case `echo $DB_BACKENDS | wc -w | sed -e 's/^ *//'` in
23751 DEFAULT_DB_TYPE="${DB_BACKENDS}"
23752 if test x$use_libtool = xno; then
23753 SHARED_CATALOG_TARGETS=""
23755 SHARED_CATALOG_TARGETS="libbaccats-${DEFAULT_DB_TYPE}.la"
23759 DEFAULT_DB_TYPE=`echo ${DB_BACKENDS} | cut -d' ' -f1`
23761 if test x$use_libtool = xno; then
23764 echo "You have specified two or more of the"
23765 echo "supported databases: MySQL, PostgreSQL, Ingres, SQLite3 or DBI."
23766 echo "This is not permitted when not using libtool Please reconfigure."
23768 echo "Aborting the configuration ..."
23774 SHARED_CATALOG_TARGETS=""
23775 for db_type in ${DB_BACKENDS}
23777 if test -z "${SHARED_CATALOG_TARGETS}"; then
23778 SHARED_CATALOG_TARGETS="libbaccats-${db_type}.la"
23780 SHARED_CATALOG_TARGETS="${SHARED_CATALOG_TARGETS} libbaccats-${db_type}.la"
23786 if test x$use_libtool = xyes; then
23795 support_batch_insert=yes
23796 # Check whether --enable-batch-insert was given.
23797 if test "${enable_batch_insert+set}" = set; then :
23798 enableval=$enable_batch_insert;
23799 if test x$enableval = xno; then
23800 support_batch_insert=no
23807 if test x$support_batch_insert = xyes; then
23809 $as_echo "#define USE_BATCH_FILE_INSERT 1" >>confdefs.h
23813 if test ! -z "$MYSQL_LIB"; then
23814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql_thread_safe in -lmysql_r" >&5
23815 $as_echo_n "checking for mysql_thread_safe in -lmysql_r... " >&6; }
23816 if test "${ac_cv_lib_mysql_r_mysql_thread_safe+set}" = set; then :
23817 $as_echo_n "(cached) " >&6
23819 ac_check_lib_save_LIBS=$LIBS
23820 LIBS="-lmysql_r $LIBS"
23821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23822 /* end confdefs.h. */
23824 /* Override any GCC internal prototype to avoid an error.
23825 Use char because int might match the return type of a GCC
23826 builtin and then its argument prototype would still apply. */
23830 char mysql_thread_safe ();
23834 return mysql_thread_safe ();
23839 if ac_fn_c_try_link "$LINENO"; then :
23840 ac_cv_lib_mysql_r_mysql_thread_safe=yes
23842 ac_cv_lib_mysql_r_mysql_thread_safe=no
23844 rm -f core conftest.err conftest.$ac_objext \
23845 conftest$ac_exeext conftest.$ac_ext
23846 LIBS=$ac_check_lib_save_LIBS
23848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mysql_r_mysql_thread_safe" >&5
23849 $as_echo "$ac_cv_lib_mysql_r_mysql_thread_safe" >&6; }
23850 if test "x$ac_cv_lib_mysql_r_mysql_thread_safe" = x""yes; then :
23852 $as_echo "#define HAVE_MYSQL_THREAD_SAFE 1" >>confdefs.h
23858 if test ! -z "SQLITE_LIB"; then
23859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_threadsafe in -lsqlite3" >&5
23860 $as_echo_n "checking for sqlite3_threadsafe in -lsqlite3... " >&6; }
23861 if test "${ac_cv_lib_sqlite3_sqlite3_threadsafe+set}" = set; then :
23862 $as_echo_n "(cached) " >&6
23864 ac_check_lib_save_LIBS=$LIBS
23865 LIBS="-lsqlite3 $LIBS"
23866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23867 /* end confdefs.h. */
23869 /* Override any GCC internal prototype to avoid an error.
23870 Use char because int might match the return type of a GCC
23871 builtin and then its argument prototype would still apply. */
23875 char sqlite3_threadsafe ();
23879 return sqlite3_threadsafe ();
23884 if ac_fn_c_try_link "$LINENO"; then :
23885 ac_cv_lib_sqlite3_sqlite3_threadsafe=yes
23887 ac_cv_lib_sqlite3_sqlite3_threadsafe=no
23889 rm -f core conftest.err conftest.$ac_objext \
23890 conftest$ac_exeext conftest.$ac_ext
23891 LIBS=$ac_check_lib_save_LIBS
23893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_threadsafe" >&5
23894 $as_echo "$ac_cv_lib_sqlite3_sqlite3_threadsafe" >&6; }
23895 if test "x$ac_cv_lib_sqlite3_sqlite3_threadsafe" = x""yes; then :
23897 $as_echo "#define HAVE_SQLITE3_THREADSAFE 1" >>confdefs.h
23903 if test ! -z "$POSTGRESQL_LIB"; then
23904 saved_LIBS="${LIBS}"
23905 LIBS="${saved_LIBS} ${POSTGRESQL_LIB}"
23907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQisthreadsafe in -lpq" >&5
23908 $as_echo_n "checking for PQisthreadsafe in -lpq... " >&6; }
23909 if test "${ac_cv_lib_pq_PQisthreadsafe+set}" = set; then :
23910 $as_echo_n "(cached) " >&6
23912 ac_check_lib_save_LIBS=$LIBS
23914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23915 /* end confdefs.h. */
23917 /* Override any GCC internal prototype to avoid an error.
23918 Use char because int might match the return type of a GCC
23919 builtin and then its argument prototype would still apply. */
23923 char PQisthreadsafe ();
23927 return PQisthreadsafe ();
23932 if ac_fn_c_try_link "$LINENO"; then :
23933 ac_cv_lib_pq_PQisthreadsafe=yes
23935 ac_cv_lib_pq_PQisthreadsafe=no
23937 rm -f core conftest.err conftest.$ac_objext \
23938 conftest$ac_exeext conftest.$ac_ext
23939 LIBS=$ac_check_lib_save_LIBS
23941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQisthreadsafe" >&5
23942 $as_echo "$ac_cv_lib_pq_PQisthreadsafe" >&6; }
23943 if test "x$ac_cv_lib_pq_PQisthreadsafe" = x""yes; then :
23945 $as_echo "#define HAVE_PQISTHREADSAFE 1" >>confdefs.h
23949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQputCopyData in -lpq" >&5
23950 $as_echo_n "checking for PQputCopyData in -lpq... " >&6; }
23951 if test "${ac_cv_lib_pq_PQputCopyData+set}" = set; then :
23952 $as_echo_n "(cached) " >&6
23954 ac_check_lib_save_LIBS=$LIBS
23956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23957 /* end confdefs.h. */
23959 /* Override any GCC internal prototype to avoid an error.
23960 Use char because int might match the return type of a GCC
23961 builtin and then its argument prototype would still apply. */
23965 char PQputCopyData ();
23969 return PQputCopyData ();
23974 if ac_fn_c_try_link "$LINENO"; then :
23975 ac_cv_lib_pq_PQputCopyData=yes
23977 ac_cv_lib_pq_PQputCopyData=no
23979 rm -f core conftest.err conftest.$ac_objext \
23980 conftest$ac_exeext conftest.$ac_ext
23981 LIBS=$ac_check_lib_save_LIBS
23983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQputCopyData" >&5
23984 $as_echo "$ac_cv_lib_pq_PQputCopyData" >&6; }
23985 if test "x$ac_cv_lib_pq_PQputCopyData" = x""yes; then :
23987 $as_echo "#define HAVE_PQ_COPY 1" >>confdefs.h
23991 if test "x$ac_cv_lib_pq_PQputCopyData" = "xyes"; then
23992 if test $support_batch_insert = yes ; then
23994 $as_echo "#define HAVE_POSTGRESQL_BATCH_FILE_INSERT 1" >>confdefs.h
23999 if test x$ac_cv_lib_pq_PQisthreadsafe != xyes -a x$support_batch_insert = xyes
24001 echo "WARNING: Your PostgreSQL client library is too old to detect "
24002 echo "if it was compiled with --enable-thread-safety, consider to "
24003 echo "upgrade it in order to avoid problems with Batch insert mode"
24007 LIBS="${saved_LIBS}"
24010 if test ! -z "$DBI_LIBS"; then
24011 DB_BACKENDS="${DB_BACKENDS} ${DB_PROG}"
24013 if test $DB_PROG = postgresql; then
24014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQisthreadsafe in -lpq" >&5
24015 $as_echo_n "checking for PQisthreadsafe in -lpq... " >&6; }
24016 if test "${ac_cv_lib_pq_PQisthreadsafe+set}" = set; then :
24017 $as_echo_n "(cached) " >&6
24019 ac_check_lib_save_LIBS=$LIBS
24021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24022 /* end confdefs.h. */
24024 /* Override any GCC internal prototype to avoid an error.
24025 Use char because int might match the return type of a GCC
24026 builtin and then its argument prototype would still apply. */
24030 char PQisthreadsafe ();
24034 return PQisthreadsafe ();
24039 if ac_fn_c_try_link "$LINENO"; then :
24040 ac_cv_lib_pq_PQisthreadsafe=yes
24042 ac_cv_lib_pq_PQisthreadsafe=no
24044 rm -f core conftest.err conftest.$ac_objext \
24045 conftest$ac_exeext conftest.$ac_ext
24046 LIBS=$ac_check_lib_save_LIBS
24048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQisthreadsafe" >&5
24049 $as_echo "$ac_cv_lib_pq_PQisthreadsafe" >&6; }
24050 if test "x$ac_cv_lib_pq_PQisthreadsafe" = x""yes; then :
24051 $as_echo "#define HAVE_PQISTHREADSAFE 1" >>confdefs.h
24055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQputCopyData in -lpq" >&5
24056 $as_echo_n "checking for PQputCopyData in -lpq... " >&6; }
24057 if test "${ac_cv_lib_pq_PQputCopyData+set}" = set; then :
24058 $as_echo_n "(cached) " >&6
24060 ac_check_lib_save_LIBS=$LIBS
24062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24063 /* end confdefs.h. */
24065 /* Override any GCC internal prototype to avoid an error.
24066 Use char because int might match the return type of a GCC
24067 builtin and then its argument prototype would still apply. */
24071 char PQputCopyData ();
24075 return PQputCopyData ();
24080 if ac_fn_c_try_link "$LINENO"; then :
24081 ac_cv_lib_pq_PQputCopyData=yes
24083 ac_cv_lib_pq_PQputCopyData=no
24085 rm -f core conftest.err conftest.$ac_objext \
24086 conftest$ac_exeext conftest.$ac_ext
24087 LIBS=$ac_check_lib_save_LIBS
24089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQputCopyData" >&5
24090 $as_echo "$ac_cv_lib_pq_PQputCopyData" >&6; }
24091 if test "x$ac_cv_lib_pq_PQputCopyData" = x""yes; then :
24092 $as_echo "#define HAVE_PQ_COPY 1" >>confdefs.h
24096 test "x$ac_cv_lib_pq_PQputCopyData" = "xyes"
24098 if test $pkg = 0; then
24099 if test $support_batch_insert = yes ; then
24101 $as_echo "#define HAVE_DBI_BATCH_FILE_INSERT 1" >>confdefs.h
24112 $as_echo "#define PROTOTYPES 1" >>confdefs.h
24115 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
24116 if test -z "$CCOPTS"; then
24117 CCOPTS='-g -O2 -Wall'
24124 largefile_support="no"
24126 # Check whether --enable-largefile was given.
24127 if test "${enable_largefile+set}" = set; then :
24128 enableval=$enable_largefile;
24131 if test "$enable_largefile" != no; then
24132 if test -n "$ac_tool_prefix"; then
24133 # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
24134 set dummy ${ac_tool_prefix}getconf; ac_word=$2
24135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24136 $as_echo_n "checking for $ac_word... " >&6; }
24137 if test "${ac_cv_prog_GETCONF+set}" = set; then :
24138 $as_echo_n "(cached) " >&6
24140 if test -n "$GETCONF"; then
24141 ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
24143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24144 for as_dir in $PATH
24147 test -z "$as_dir" && as_dir=.
24148 for ac_exec_ext in '' $ac_executable_extensions; do
24149 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24150 ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
24151 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24160 GETCONF=$ac_cv_prog_GETCONF
24161 if test -n "$GETCONF"; then
24162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GETCONF" >&5
24163 $as_echo "$GETCONF" >&6; }
24165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24166 $as_echo "no" >&6; }
24171 if test -z "$ac_cv_prog_GETCONF"; then
24172 ac_ct_GETCONF=$GETCONF
24173 # Extract the first word of "getconf", so it can be a program name with args.
24174 set dummy getconf; ac_word=$2
24175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24176 $as_echo_n "checking for $ac_word... " >&6; }
24177 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then :
24178 $as_echo_n "(cached) " >&6
24180 if test -n "$ac_ct_GETCONF"; then
24181 ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
24183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24184 for as_dir in $PATH
24187 test -z "$as_dir" && as_dir=.
24188 for ac_exec_ext in '' $ac_executable_extensions; do
24189 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24190 ac_cv_prog_ac_ct_GETCONF="getconf"
24191 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24200 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
24201 if test -n "$ac_ct_GETCONF"; then
24202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GETCONF" >&5
24203 $as_echo "$ac_ct_GETCONF" >&6; }
24205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24206 $as_echo "no" >&6; }
24209 if test "x$ac_ct_GETCONF" = x; then
24212 case $cross_compiling:$ac_tool_warned in
24214 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
24215 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
24216 ac_tool_warned=yes ;;
24218 GETCONF=$ac_ct_GETCONF
24221 GETCONF="$ac_cv_prog_GETCONF"
24224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLAGS value to request large file support" >&5
24225 $as_echo_n "checking for CFLAGS value to request large file support... " >&6; }
24226 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then :
24227 $as_echo_n "(cached) " >&6
24229 ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
24230 ac_cv_sys_largefile_CFLAGS=no
24232 # IRIX 6.2 and later require cc -n32.
24233 irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
24234 if test "$GCC" != yes; then
24235 ac_cv_sys_largefile_CFLAGS=-n32
24238 CC="$CC $ac_cv_sys_largefile_CFLAGS"
24239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24240 /* end confdefs.h. */
24250 if ac_fn_c_try_link "$LINENO"; then :
24253 ac_cv_sys_largefile_CFLAGS=no
24255 rm -f core conftest.err conftest.$ac_objext \
24256 conftest$ac_exeext conftest.$ac_ext
24261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CFLAGS" >&5
24262 $as_echo "$ac_cv_sys_largefile_CFLAGS" >&6; }
24263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDFLAGS value to request large file support" >&5
24264 $as_echo_n "checking for LDFLAGS value to request large file support... " >&6; }
24265 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then :
24266 $as_echo_n "(cached) " >&6
24268 ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
24269 ac_cv_sys_largefile_LDFLAGS=no
24273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_LDFLAGS" >&5
24274 $as_echo "$ac_cv_sys_largefile_LDFLAGS" >&6; }
24275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBS value to request large file support" >&5
24276 $as_echo_n "checking for LIBS value to request large file support... " >&6; }
24277 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then :
24278 $as_echo_n "(cached) " >&6
24280 ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
24281 ac_cv_sys_largefile_LIBS=no
24285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_LIBS" >&5
24286 $as_echo "$ac_cv_sys_largefile_LIBS" >&6; }
24288 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
24291 -D_FILE_OFFSET_BITS=*) ;;
24292 -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
24293 -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
24298 case "$CPPFLAGS" in
24299 '') CPPFLAGS="$ac_flag" ;;
24300 *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
24308 '') CFLAGS="$ac_flag" ;;
24309 *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
24314 case "$ac_cv_sys_largefile_LDFLAGS" in
24318 '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
24319 *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
24322 case "$ac_cv_sys_largefile_LIBS" in
24326 '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
24327 *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
24330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS" >&5
24331 $as_echo_n "checking for _FILE_OFFSET_BITS... " >&6; }
24332 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
24333 $as_echo_n "(cached) " >&6
24335 ac_cv_sys_file_offset_bits=no
24336 ac_cv_sys_file_offset_bits=64
24337 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
24339 -D_FILE_OFFSET_BITS)
24340 ac_cv_sys_file_offset_bits=1 ;;
24341 -D_FILE_OFFSET_BITS=*)
24342 ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
24347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
24348 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
24349 if test "$ac_cv_sys_file_offset_bits" != no; then
24351 cat >>confdefs.h <<_ACEOF
24352 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
24356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE" >&5
24357 $as_echo_n "checking for _LARGEFILE_SOURCE... " >&6; }
24358 if test "${ac_cv_sys_largefile_source+set}" = set; then :
24359 $as_echo_n "(cached) " >&6
24361 ac_cv_sys_largefile_source=no
24362 ac_cv_sys_largefile_source=1
24363 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
24365 -D_LARGEFILE_SOURCE)
24366 ac_cv_sys_largefile_source=1 ;;
24367 -D_LARGEFILE_SOURCE=*)
24368 ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
24373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
24374 $as_echo "$ac_cv_sys_largefile_source" >&6; }
24375 if test "$ac_cv_sys_largefile_source" != no; then
24377 cat >>confdefs.h <<_ACEOF
24378 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
24382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES" >&5
24383 $as_echo_n "checking for _LARGE_FILES... " >&6; }
24384 if test "${ac_cv_sys_large_files+set}" = set; then :
24385 $as_echo_n "(cached) " >&6
24387 ac_cv_sys_large_files=no
24388 ac_cv_sys_large_files=1
24389 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
24392 ac_cv_sys_large_files=1 ;;
24394 ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
24399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
24400 $as_echo "$ac_cv_sys_large_files" >&6; }
24401 if test "$ac_cv_sys_large_files" != no; then
24403 cat >>confdefs.h <<_ACEOF
24404 #define _LARGE_FILES $ac_cv_sys_large_files
24411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
24412 $as_echo_n "checking for X... " >&6; }
24415 # Check whether --with-x was given.
24416 if test "${with_x+set}" = set; then :
24420 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
24421 if test "x$with_x" = xno; then
24422 # The user explicitly disabled X.
24425 case $x_includes,$x_libraries in #(
24426 *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
24427 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
24428 $as_echo_n "(cached) " >&6
24430 # One or both of the vars are not set, and there is no cached value.
24431 ac_x_includes=no ac_x_libraries=no
24432 rm -f -r conftest.dir
24433 if mkdir conftest.dir; then
24435 cat >Imakefile <<'_ACEOF'
24437 @echo incroot='${INCROOT}'
24439 @echo usrlibdir='${USRLIBDIR}'
24441 @echo libdir='${LIBDIR}'
24443 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
24444 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
24445 for ac_var in incroot usrlibdir libdir; do
24446 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
24448 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
24449 for ac_extension in a so sl dylib la dll; do
24450 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
24451 test -f "$ac_im_libdir/libX11.$ac_extension"; then
24452 ac_im_usrlibdir=$ac_im_libdir; break
24455 # Screen out bogus values from the imake configuration. They are
24456 # bogus both because they are the default anyway, and because
24457 # using them would break gcc on systems where it needs fixed includes.
24458 case $ac_im_incroot in
24459 /usr/include) ac_x_includes= ;;
24460 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
24462 case $ac_im_usrlibdir in
24463 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
24464 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
24468 rm -f -r conftest.dir
24471 # Standard set of common directories for X headers.
24472 # Check X11 before X11Rn because it is often a symlink to the current release.
24486 /usr/local/X11/include
24487 /usr/local/X11R7/include
24488 /usr/local/X11R6/include
24489 /usr/local/X11R5/include
24490 /usr/local/X11R4/include
24492 /usr/local/include/X11
24493 /usr/local/include/X11R7
24494 /usr/local/include/X11R6
24495 /usr/local/include/X11R5
24496 /usr/local/include/X11R4
24500 /usr/XFree86/include/X11
24504 /usr/unsupported/include
24505 /usr/athena/include
24506 /usr/local/x11r5/include
24507 /usr/lpp/Xamples/include
24509 /usr/openwin/include
24510 /usr/openwin/share/include'
24512 if test "$ac_x_includes" = no; then
24513 # Guess where to find include files, by looking for Xlib.h.
24514 # First, try using that file with no special directory specified.
24515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24516 /* end confdefs.h. */
24517 #include <X11/Xlib.h>
24519 if ac_fn_c_try_cpp "$LINENO"; then :
24520 # We can compile using X headers with no special include directory.
24523 for ac_dir in $ac_x_header_dirs; do
24524 if test -r "$ac_dir/X11/Xlib.h"; then
24525 ac_x_includes=$ac_dir
24530 rm -f conftest.err conftest.$ac_ext
24531 fi # $ac_x_includes = no
24533 if test "$ac_x_libraries" = no; then
24534 # Check for the libraries.
24535 # See if we find them without any special options.
24536 # Don't add to $LIBS permanently.
24539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24540 /* end confdefs.h. */
24541 #include <X11/Xlib.h>
24550 if ac_fn_c_try_link "$LINENO"; then :
24552 # We can link X programs with no special library path.
24556 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
24558 # Don't even attempt the hair of trying to link an X program!
24559 for ac_extension in a so sl dylib la dll; do
24560 if test -r "$ac_dir/libX11.$ac_extension"; then
24561 ac_x_libraries=$ac_dir
24567 rm -f core conftest.err conftest.$ac_objext \
24568 conftest$ac_exeext conftest.$ac_ext
24569 fi # $ac_x_libraries = no
24571 case $ac_x_includes,$ac_x_libraries in #(
24572 no,* | *,no | *\'*)
24573 # Didn't find X, or a directory has "'" in its name.
24574 ac_cv_have_x="have_x=no";; #(
24576 # Record where we found X for the cache.
24577 ac_cv_have_x="have_x=yes\
24578 ac_x_includes='$ac_x_includes'\
24579 ac_x_libraries='$ac_x_libraries'"
24585 eval "$ac_cv_have_x"
24588 if test "$have_x" != yes; then
24589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
24590 $as_echo "$have_x" >&6; }
24593 # If each of the values was on the command line, it overrides each guess.
24594 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
24595 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
24596 # Update the cache value to reflect the command line values.
24597 ac_cv_have_x="have_x=yes\
24598 ac_x_includes='$x_includes'\
24599 ac_x_libraries='$x_libraries'"
24600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
24601 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
24604 if test "$no_x" = yes; then
24605 # Not all programs may use this symbol, but it does not hurt to define it.
24607 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
24609 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
24611 if test -n "$x_includes"; then
24612 X_CFLAGS="$X_CFLAGS -I$x_includes"
24615 # It would also be nice to do this for all -L options, not just this one.
24616 if test -n "$x_libraries"; then
24617 X_LIBS="$X_LIBS -L$x_libraries"
24618 # For Solaris; some versions of Sun CC require a space after -R and
24619 # others require no space. Words are not sufficient . . . .
24620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
24621 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
24622 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
24623 ac_xsave_c_werror_flag=$ac_c_werror_flag
24624 ac_c_werror_flag=yes
24625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24626 /* end confdefs.h. */
24636 if ac_fn_c_try_link "$LINENO"; then :
24637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24638 $as_echo "no" >&6; }
24639 X_LIBS="$X_LIBS -R$x_libraries"
24641 LIBS="$ac_xsave_LIBS -R $x_libraries"
24642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24643 /* end confdefs.h. */
24653 if ac_fn_c_try_link "$LINENO"; then :
24654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24655 $as_echo "yes" >&6; }
24656 X_LIBS="$X_LIBS -R $x_libraries"
24658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
24659 $as_echo "neither works" >&6; }
24661 rm -f core conftest.err conftest.$ac_objext \
24662 conftest$ac_exeext conftest.$ac_ext
24664 rm -f core conftest.err conftest.$ac_objext \
24665 conftest$ac_exeext conftest.$ac_ext
24666 ac_c_werror_flag=$ac_xsave_c_werror_flag
24667 LIBS=$ac_xsave_LIBS
24670 # Check for system-dependent libraries X programs must link with.
24671 # Do this before checking for the system-independent R6 libraries
24672 # (-lICE), since we may need -lsocket or whatever for X linking.
24674 if test "$ISC" = yes; then
24675 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
24677 # Martyn Johnson says this is needed for Ultrix, if the X
24678 # libraries were built with DECnet support. And Karl Berry says
24679 # the Alpha needs dnet_stub (dnet does not exist).
24680 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
24681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24682 /* end confdefs.h. */
24684 /* Override any GCC internal prototype to avoid an error.
24685 Use char because int might match the return type of a GCC
24686 builtin and then its argument prototype would still apply. */
24690 char XOpenDisplay ();
24694 return XOpenDisplay ();
24699 if ac_fn_c_try_link "$LINENO"; then :
24702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
24703 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
24704 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
24705 $as_echo_n "(cached) " >&6
24707 ac_check_lib_save_LIBS=$LIBS
24708 LIBS="-ldnet $LIBS"
24709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24710 /* end confdefs.h. */
24712 /* Override any GCC internal prototype to avoid an error.
24713 Use char because int might match the return type of a GCC
24714 builtin and then its argument prototype would still apply. */
24722 return dnet_ntoa ();
24727 if ac_fn_c_try_link "$LINENO"; then :
24728 ac_cv_lib_dnet_dnet_ntoa=yes
24730 ac_cv_lib_dnet_dnet_ntoa=no
24732 rm -f core conftest.err conftest.$ac_objext \
24733 conftest$ac_exeext conftest.$ac_ext
24734 LIBS=$ac_check_lib_save_LIBS
24736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
24737 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
24738 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
24739 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
24742 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
24743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
24744 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
24745 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then :
24746 $as_echo_n "(cached) " >&6
24748 ac_check_lib_save_LIBS=$LIBS
24749 LIBS="-ldnet_stub $LIBS"
24750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24751 /* end confdefs.h. */
24753 /* Override any GCC internal prototype to avoid an error.
24754 Use char because int might match the return type of a GCC
24755 builtin and then its argument prototype would still apply. */
24763 return dnet_ntoa ();
24768 if ac_fn_c_try_link "$LINENO"; then :
24769 ac_cv_lib_dnet_stub_dnet_ntoa=yes
24771 ac_cv_lib_dnet_stub_dnet_ntoa=no
24773 rm -f core conftest.err conftest.$ac_objext \
24774 conftest$ac_exeext conftest.$ac_ext
24775 LIBS=$ac_check_lib_save_LIBS
24777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
24778 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
24779 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then :
24780 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
24785 rm -f core conftest.err conftest.$ac_objext \
24786 conftest$ac_exeext conftest.$ac_ext
24787 LIBS="$ac_xsave_LIBS"
24789 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
24790 # to get the SysV transport functions.
24791 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
24793 # The nsl library prevents programs from opening the X display
24794 # on Irix 5.2, according to T.E. Dickey.
24795 # The functions gethostbyname, getservbyname, and inet_addr are
24796 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
24797 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
24798 if test "x$ac_cv_func_gethostbyname" = x""yes; then :
24802 if test $ac_cv_func_gethostbyname = no; then
24803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
24804 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
24805 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
24806 $as_echo_n "(cached) " >&6
24808 ac_check_lib_save_LIBS=$LIBS
24810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24811 /* end confdefs.h. */
24813 /* Override any GCC internal prototype to avoid an error.
24814 Use char because int might match the return type of a GCC
24815 builtin and then its argument prototype would still apply. */
24819 char gethostbyname ();
24823 return gethostbyname ();
24828 if ac_fn_c_try_link "$LINENO"; then :
24829 ac_cv_lib_nsl_gethostbyname=yes
24831 ac_cv_lib_nsl_gethostbyname=no
24833 rm -f core conftest.err conftest.$ac_objext \
24834 conftest$ac_exeext conftest.$ac_ext
24835 LIBS=$ac_check_lib_save_LIBS
24837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
24838 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
24839 if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
24840 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
24843 if test $ac_cv_lib_nsl_gethostbyname = no; then
24844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
24845 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
24846 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then :
24847 $as_echo_n "(cached) " >&6
24849 ac_check_lib_save_LIBS=$LIBS
24851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24852 /* end confdefs.h. */
24854 /* Override any GCC internal prototype to avoid an error.
24855 Use char because int might match the return type of a GCC
24856 builtin and then its argument prototype would still apply. */
24860 char gethostbyname ();
24864 return gethostbyname ();
24869 if ac_fn_c_try_link "$LINENO"; then :
24870 ac_cv_lib_bsd_gethostbyname=yes
24872 ac_cv_lib_bsd_gethostbyname=no
24874 rm -f core conftest.err conftest.$ac_objext \
24875 conftest$ac_exeext conftest.$ac_ext
24876 LIBS=$ac_check_lib_save_LIBS
24878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
24879 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
24880 if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then :
24881 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
24887 # lieder@skyler.mavd.honeywell.com says without -lsocket,
24888 # socket/setsockopt and other routines are undefined under SCO ODT
24889 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
24890 # on later versions), says Simon Leinen: it contains gethostby*
24891 # variants that don't use the name server (or something). -lsocket
24892 # must be given before -lnsl if both are needed. We assume that
24893 # if connect needs -lnsl, so does gethostbyname.
24894 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
24895 if test "x$ac_cv_func_connect" = x""yes; then :
24899 if test $ac_cv_func_connect = no; then
24900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
24901 $as_echo_n "checking for connect in -lsocket... " >&6; }
24902 if test "${ac_cv_lib_socket_connect+set}" = set; then :
24903 $as_echo_n "(cached) " >&6
24905 ac_check_lib_save_LIBS=$LIBS
24906 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
24907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24908 /* end confdefs.h. */
24910 /* Override any GCC internal prototype to avoid an error.
24911 Use char because int might match the return type of a GCC
24912 builtin and then its argument prototype would still apply. */
24925 if ac_fn_c_try_link "$LINENO"; then :
24926 ac_cv_lib_socket_connect=yes
24928 ac_cv_lib_socket_connect=no
24930 rm -f core conftest.err conftest.$ac_objext \
24931 conftest$ac_exeext conftest.$ac_ext
24932 LIBS=$ac_check_lib_save_LIBS
24934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
24935 $as_echo "$ac_cv_lib_socket_connect" >&6; }
24936 if test "x$ac_cv_lib_socket_connect" = x""yes; then :
24937 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
24942 # Guillermo Gomez says -lposix is necessary on A/UX.
24943 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
24944 if test "x$ac_cv_func_remove" = x""yes; then :
24948 if test $ac_cv_func_remove = no; then
24949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
24950 $as_echo_n "checking for remove in -lposix... " >&6; }
24951 if test "${ac_cv_lib_posix_remove+set}" = set; then :
24952 $as_echo_n "(cached) " >&6
24954 ac_check_lib_save_LIBS=$LIBS
24955 LIBS="-lposix $LIBS"
24956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24957 /* end confdefs.h. */
24959 /* Override any GCC internal prototype to avoid an error.
24960 Use char because int might match the return type of a GCC
24961 builtin and then its argument prototype would still apply. */
24974 if ac_fn_c_try_link "$LINENO"; then :
24975 ac_cv_lib_posix_remove=yes
24977 ac_cv_lib_posix_remove=no
24979 rm -f core conftest.err conftest.$ac_objext \
24980 conftest$ac_exeext conftest.$ac_ext
24981 LIBS=$ac_check_lib_save_LIBS
24983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
24984 $as_echo "$ac_cv_lib_posix_remove" >&6; }
24985 if test "x$ac_cv_lib_posix_remove" = x""yes; then :
24986 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
24991 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
24992 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
24993 if test "x$ac_cv_func_shmat" = x""yes; then :
24997 if test $ac_cv_func_shmat = no; then
24998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
24999 $as_echo_n "checking for shmat in -lipc... " >&6; }
25000 if test "${ac_cv_lib_ipc_shmat+set}" = set; then :
25001 $as_echo_n "(cached) " >&6
25003 ac_check_lib_save_LIBS=$LIBS
25005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25006 /* end confdefs.h. */
25008 /* Override any GCC internal prototype to avoid an error.
25009 Use char because int might match the return type of a GCC
25010 builtin and then its argument prototype would still apply. */
25023 if ac_fn_c_try_link "$LINENO"; then :
25024 ac_cv_lib_ipc_shmat=yes
25026 ac_cv_lib_ipc_shmat=no
25028 rm -f core conftest.err conftest.$ac_objext \
25029 conftest$ac_exeext conftest.$ac_ext
25030 LIBS=$ac_check_lib_save_LIBS
25032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
25033 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
25034 if test "x$ac_cv_lib_ipc_shmat" = x""yes; then :
25035 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
25041 # Check for libraries that X11R6 Xt/Xaw programs need.
25042 ac_save_LDFLAGS=$LDFLAGS
25043 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
25044 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
25045 # check for ICE first), but we must link in the order -lSM -lICE or
25046 # we get undefined symbols. So assume we have SM if we have ICE.
25047 # These have to be linked with before -lX11, unlike the other
25048 # libraries we check for below, so use a different variable.
25049 # John Interrante, Karl Berry
25050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
25051 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
25052 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then :
25053 $as_echo_n "(cached) " >&6
25055 ac_check_lib_save_LIBS=$LIBS
25056 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
25057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25058 /* end confdefs.h. */
25060 /* Override any GCC internal prototype to avoid an error.
25061 Use char because int might match the return type of a GCC
25062 builtin and then its argument prototype would still apply. */
25066 char IceConnectionNumber ();
25070 return IceConnectionNumber ();
25075 if ac_fn_c_try_link "$LINENO"; then :
25076 ac_cv_lib_ICE_IceConnectionNumber=yes
25078 ac_cv_lib_ICE_IceConnectionNumber=no
25080 rm -f core conftest.err conftest.$ac_objext \
25081 conftest$ac_exeext conftest.$ac_ext
25082 LIBS=$ac_check_lib_save_LIBS
25084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
25085 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
25086 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then :
25087 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
25090 LDFLAGS=$ac_save_LDFLAGS
25127 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25128 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
25129 eval as_val=\$$as_ac_Header
25130 if test "x$as_val" = x""yes; then :
25131 cat >>confdefs.h <<_ACEOF
25132 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
25140 $as_echo_n "checking for ANSI C header files... " >&6; }
25141 if test "${ac_cv_header_stdc+set}" = set; then :
25142 $as_echo_n "(cached) " >&6
25144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25145 /* end confdefs.h. */
25146 #include <stdlib.h>
25147 #include <stdarg.h>
25148 #include <string.h>
25159 if ac_fn_c_try_compile "$LINENO"; then :
25160 ac_cv_header_stdc=yes
25162 ac_cv_header_stdc=no
25164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25166 if test $ac_cv_header_stdc = yes; then
25167 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
25168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25169 /* end confdefs.h. */
25170 #include <string.h>
25173 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25174 $EGREP "memchr" >/dev/null 2>&1; then :
25177 ac_cv_header_stdc=no
25183 if test $ac_cv_header_stdc = yes; then
25184 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
25185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25186 /* end confdefs.h. */
25187 #include <stdlib.h>
25190 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25191 $EGREP "free" >/dev/null 2>&1; then :
25194 ac_cv_header_stdc=no
25200 if test $ac_cv_header_stdc = yes; then
25201 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
25202 if test "$cross_compiling" = yes; then :
25205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25206 /* end confdefs.h. */
25208 #include <stdlib.h>
25209 #if ((' ' & 0x0FF) == 0x020)
25210 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
25211 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
25213 # define ISLOWER(c) \
25214 (('a' <= (c) && (c) <= 'i') \
25215 || ('j' <= (c) && (c) <= 'r') \
25216 || ('s' <= (c) && (c) <= 'z'))
25217 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
25220 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
25225 for (i = 0; i < 256; i++)
25226 if (XOR (islower (i), ISLOWER (i))
25227 || toupper (i) != TOUPPER (i))
25232 if ac_fn_c_try_run "$LINENO"; then :
25235 ac_cv_header_stdc=no
25237 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25238 conftest.$ac_objext conftest.beam conftest.$ac_ext
25243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
25244 $as_echo "$ac_cv_header_stdc" >&6; }
25245 if test $ac_cv_header_stdc = yes; then
25247 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
25251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev" >&5
25252 $as_echo_n "checking whether sys/types.h defines makedev... " >&6; }
25253 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then :
25254 $as_echo_n "(cached) " >&6
25256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25257 /* end confdefs.h. */
25258 #include <sys/types.h>
25262 return makedev(0, 0);
25267 if ac_fn_c_try_link "$LINENO"; then :
25268 ac_cv_header_sys_types_h_makedev=yes
25270 ac_cv_header_sys_types_h_makedev=no
25272 rm -f core conftest.err conftest.$ac_objext \
25273 conftest$ac_exeext conftest.$ac_ext
25276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_types_h_makedev" >&5
25277 $as_echo "$ac_cv_header_sys_types_h_makedev" >&6; }
25279 if test $ac_cv_header_sys_types_h_makedev = no; then
25280 ac_fn_c_check_header_mongrel "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"
25281 if test "x$ac_cv_header_sys_mkdev_h" = x""yes; then :
25283 $as_echo "#define MAJOR_IN_MKDEV 1" >>confdefs.h
25289 if test $ac_cv_header_sys_mkdev_h = no; then
25290 ac_fn_c_check_header_mongrel "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
25291 if test "x$ac_cv_header_sys_sysmacros_h" = x""yes; then :
25293 $as_echo "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h
25301 ac_header_dirent=no
25302 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
25303 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
25304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
25305 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
25306 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
25307 $as_echo_n "(cached) " >&6
25309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25310 /* end confdefs.h. */
25311 #include <sys/types.h>
25323 if ac_fn_c_try_compile "$LINENO"; then :
25324 eval "$as_ac_Header=yes"
25326 eval "$as_ac_Header=no"
25328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25330 eval ac_res=\$$as_ac_Header
25331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
25332 $as_echo "$ac_res" >&6; }
25333 eval as_val=\$$as_ac_Header
25334 if test "x$as_val" = x""yes; then :
25335 cat >>confdefs.h <<_ACEOF
25336 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
25339 ac_header_dirent=$ac_hdr; break
25343 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
25344 if test $ac_header_dirent = dirent.h; then
25345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
25346 $as_echo_n "checking for library containing opendir... " >&6; }
25347 if test "${ac_cv_search_opendir+set}" = set; then :
25348 $as_echo_n "(cached) " >&6
25350 ac_func_search_save_LIBS=$LIBS
25351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25352 /* end confdefs.h. */
25354 /* Override any GCC internal prototype to avoid an error.
25355 Use char because int might match the return type of a GCC
25356 builtin and then its argument prototype would still apply. */
25369 for ac_lib in '' dir; do
25370 if test -z "$ac_lib"; then
25371 ac_res="none required"
25374 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25376 if ac_fn_c_try_link "$LINENO"; then :
25377 ac_cv_search_opendir=$ac_res
25379 rm -f core conftest.err conftest.$ac_objext \
25381 if test "${ac_cv_search_opendir+set}" = set; then :
25385 if test "${ac_cv_search_opendir+set}" = set; then :
25388 ac_cv_search_opendir=no
25390 rm conftest.$ac_ext
25391 LIBS=$ac_func_search_save_LIBS
25393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
25394 $as_echo "$ac_cv_search_opendir" >&6; }
25395 ac_res=$ac_cv_search_opendir
25396 if test "$ac_res" != no; then :
25397 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
25403 $as_echo_n "checking for library containing opendir... " >&6; }
25404 if test "${ac_cv_search_opendir+set}" = set; then :
25405 $as_echo_n "(cached) " >&6
25407 ac_func_search_save_LIBS=$LIBS
25408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25409 /* end confdefs.h. */
25411 /* Override any GCC internal prototype to avoid an error.
25412 Use char because int might match the return type of a GCC
25413 builtin and then its argument prototype would still apply. */
25426 for ac_lib in '' x; do
25427 if test -z "$ac_lib"; then
25428 ac_res="none required"
25431 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25433 if ac_fn_c_try_link "$LINENO"; then :
25434 ac_cv_search_opendir=$ac_res
25436 rm -f core conftest.err conftest.$ac_objext \
25438 if test "${ac_cv_search_opendir+set}" = set; then :
25442 if test "${ac_cv_search_opendir+set}" = set; then :
25445 ac_cv_search_opendir=no
25447 rm conftest.$ac_ext
25448 LIBS=$ac_func_search_save_LIBS
25450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
25451 $as_echo "$ac_cv_search_opendir" >&6; }
25452 ac_res=$ac_cv_search_opendir
25453 if test "$ac_res" != no; then :
25454 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
25461 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
25462 if test "${ac_cv_header_stat_broken+set}" = set; then :
25463 $as_echo_n "(cached) " >&6
25465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25466 /* end confdefs.h. */
25467 #include <sys/types.h>
25468 #include <sys/stat.h>
25470 #if defined S_ISBLK && defined S_IFDIR
25471 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
25474 #if defined S_ISBLK && defined S_IFCHR
25475 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
25478 #if defined S_ISLNK && defined S_IFREG
25479 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
25482 #if defined S_ISSOCK && defined S_IFREG
25483 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
25487 if ac_fn_c_try_compile "$LINENO"; then :
25488 ac_cv_header_stat_broken=no
25490 ac_cv_header_stat_broken=yes
25492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
25495 $as_echo "$ac_cv_header_stat_broken" >&6; }
25496 if test $ac_cv_header_stat_broken = yes; then
25498 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
25502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
25503 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
25504 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
25505 $as_echo_n "(cached) " >&6
25507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25508 /* end confdefs.h. */
25509 #include <sys/types.h>
25510 #include <sys/wait.h>
25511 #ifndef WEXITSTATUS
25512 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
25515 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
25523 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
25528 if ac_fn_c_try_compile "$LINENO"; then :
25529 ac_cv_header_sys_wait_h=yes
25531 ac_cv_header_sys_wait_h=no
25533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
25536 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
25537 if test $ac_cv_header_sys_wait_h = yes; then
25539 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
25543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
25544 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
25545 if test "${ac_cv_header_time+set}" = set; then :
25546 $as_echo_n "(cached) " >&6
25548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25549 /* end confdefs.h. */
25550 #include <sys/types.h>
25551 #include <sys/time.h>
25557 if ((struct tm *) 0)
25563 if ac_fn_c_try_compile "$LINENO"; then :
25564 ac_cv_header_time=yes
25566 ac_cv_header_time=no
25568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
25571 $as_echo "$ac_cv_header_time" >&6; }
25572 if test $ac_cv_header_time = yes; then
25574 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
25578 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
25579 if test "x$ac_cv_member_struct_stat_st_blksize" = x""yes; then :
25581 cat >>confdefs.h <<_ACEOF
25582 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
25586 $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h
25591 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
25592 if test "x$ac_cv_member_struct_stat_st_blocks" = x""yes; then :
25594 cat >>confdefs.h <<_ACEOF
25595 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
25599 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
25602 case " $LIBOBJS " in
25603 *" fileblocks.$ac_objext "* ) ;;
25604 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
25611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
25612 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
25613 if test "${ac_cv_struct_tm+set}" = set; then :
25614 $as_echo_n "(cached) " >&6
25616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25617 /* end confdefs.h. */
25618 #include <sys/types.h>
25625 int *p = &tm.tm_sec;
25631 if ac_fn_c_try_compile "$LINENO"; then :
25632 ac_cv_struct_tm=time.h
25634 ac_cv_struct_tm=sys/time.h
25636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
25639 $as_echo "$ac_cv_struct_tm" >&6; }
25640 if test $ac_cv_struct_tm = sys/time.h; then
25642 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
25646 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
25647 #include <$ac_cv_struct_tm>
25650 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then :
25652 cat >>confdefs.h <<_ACEOF
25653 #define HAVE_STRUCT_TM_TM_ZONE 1
25659 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
25661 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
25664 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
25666 if test "x$ac_cv_have_decl_tzname" = x""yes; then :
25672 cat >>confdefs.h <<_ACEOF
25673 #define HAVE_DECL_TZNAME $ac_have_decl
25676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
25677 $as_echo_n "checking for tzname... " >&6; }
25678 if test "${ac_cv_var_tzname+set}" = set; then :
25679 $as_echo_n "(cached) " >&6
25681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25682 /* end confdefs.h. */
25684 #if !HAVE_DECL_TZNAME
25685 extern char *tzname[];
25691 return tzname[0][0];
25696 if ac_fn_c_try_link "$LINENO"; then :
25697 ac_cv_var_tzname=yes
25699 ac_cv_var_tzname=no
25701 rm -f core conftest.err conftest.$ac_objext \
25702 conftest$ac_exeext conftest.$ac_ext
25704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
25705 $as_echo "$ac_cv_var_tzname" >&6; }
25706 if test $ac_cv_var_tzname = yes; then
25708 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
25714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for utime.h" >&5
25715 $as_echo_n "checking for utime.h... " >&6; }
25716 if test "${ba_cv_header_utime_h+set}" = set; then :
25717 $as_echo_n "(cached) " >&6
25720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25721 /* end confdefs.h. */
25723 #include <sys/types.h>
25736 if ac_fn_c_try_compile "$LINENO"; then :
25738 ba_cv_header_utime_h=yes
25742 ba_cv_header_utime_h=no
25746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_header_utime_h" >&5
25751 $as_echo "$ba_cv_header_utime_h" >&6; }
25752 test $ba_cv_header_utime_h = yes &&
25753 $as_echo "#define HAVE_UTIME_H 1" >>confdefs.h
25756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5
25757 $as_echo_n "checking for socklen_t... " >&6; }
25758 if test "${ba_cv_header_socklen_t+set}" = set; then :
25759 $as_echo_n "(cached) " >&6
25762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25763 /* end confdefs.h. */
25765 #include <sys/types.h>
25766 #include <sys/socket.h>
25778 if ac_fn_c_try_compile "$LINENO"; then :
25780 ba_cv_header_socklen_t=yes
25784 ba_cv_header_socklen_t=no
25788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_header_socklen_t" >&5
25793 $as_echo "$ba_cv_header_socklen_t" >&6; }
25794 test $ba_cv_header_socklen_t = yes &&
25795 $as_echo "#define HAVE_SOCKLEN_T 1" >>confdefs.h
25799 ac_cpp='$CXXCPP $CPPFLAGS'
25800 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25801 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25802 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ioctl_req_t" >&5
25805 $as_echo_n "checking for ioctl_req_t... " >&6; }
25806 if test "${ba_cv_header_ioctl_req_t+set}" = set; then :
25807 $as_echo_n "(cached) " >&6
25810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25811 /* end confdefs.h. */
25813 #include <unistd.h>
25814 #include <sys/types.h>
25815 #include <sys/ioctl.h>
25821 int (*d_ioctl)(int fd, unsigned long int request, ...);
25828 if ac_fn_cxx_try_compile "$LINENO"; then :
25830 ba_cv_header_ioctl_req_t=yes
25834 ba_cv_header_ioctl_req_t=no
25838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_header_ioctl_req_t" >&5
25843 $as_echo "$ba_cv_header_ioctl_req_t" >&6; }
25844 test $ba_cv_header_ioctl_req_t = yes &&
25845 $as_echo "#define HAVE_IOCTL_ULINT_REQUEST 1" >>confdefs.h
25849 ac_cpp='$CPP $CPPFLAGS'
25850 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25851 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25852 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25856 ac_cpp='$CXXCPP $CPPFLAGS'
25857 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25858 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25859 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for typeof" >&5
25862 $as_echo_n "checking for typeof... " >&6; }
25863 if test "${ba_cv_have_typeof+set}" = set; then :
25864 $as_echo_n "(cached) " >&6
25867 if test "$cross_compiling" = yes; then :
25869 ba_cv_have_typeof=no
25873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25874 /* end confdefs.h. */
25876 main(){char *a = 0; a = (typeof a)a;}
25879 if ac_fn_cxx_try_run "$LINENO"; then :
25881 ba_cv_have_typeof=yes
25885 ba_cv_have_typeof=no
25888 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25889 conftest.$ac_objext conftest.beam conftest.$ac_ext
25895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_have_typeof" >&5
25896 $as_echo "$ba_cv_have_typeof" >&6; }
25897 test $ba_cv_have_typeof = yes &&
25898 $as_echo "#define HAVE_TYPEOF 1" >>confdefs.h
25901 ac_cpp='$CPP $CPPFLAGS'
25902 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25903 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25904 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
25908 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
25909 if test "${ac_cv_c_const+set}" = set; then :
25910 $as_echo_n "(cached) " >&6
25912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25913 /* end confdefs.h. */
25918 /* FIXME: Include the comments suggested by Paul. */
25919 #ifndef __cplusplus
25920 /* Ultrix mips cc rejects this. */
25921 typedef int charset[2];
25923 /* SunOS 4.1.1 cc rejects this. */
25924 char const *const *pcpcc;
25926 /* NEC SVR4.0.2 mips cc rejects this. */
25927 struct point {int x, y;};
25928 static struct point const zero = {0,0};
25929 /* AIX XL C 1.02.0.0 rejects this.
25930 It does not let you subtract one const X* pointer from another in
25931 an arm of an if-expression whose if-part is not a constant
25933 const char *g = "string";
25934 pcpcc = &g + (g ? g-g : 0);
25935 /* HPUX 7.0 cc rejects these. */
25937 ppc = (char**) pcpcc;
25938 pcpcc = (char const *const *) ppc;
25939 { /* SCO 3.2v4 cc rejects this. */
25941 char const *s = 0 ? (char *) 0 : (char const *) 0;
25946 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
25947 int x[] = {25, 17};
25948 const int *foo = &x[0];
25951 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
25952 typedef const int *iptr;
25956 { /* AIX XL C 1.02.0.0 rejects this saying
25957 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
25958 struct s { int j; const int *ap[3]; };
25959 struct s *b; b->j = 5;
25961 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
25962 const int foo = 10;
25963 if (!foo) return 0;
25965 return !cs[0] && !zero.x;
25972 if ac_fn_c_try_compile "$LINENO"; then :
25977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
25980 $as_echo "$ac_cv_c_const" >&6; }
25981 if test $ac_cv_c_const = no; then
25983 $as_echo "#define const /**/" >>confdefs.h
25988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
25989 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
25990 if test "${ac_cv_c_bigendian+set}" = set; then :
25991 $as_echo_n "(cached) " >&6
25993 ac_cv_c_bigendian=unknown
25994 # See if we're dealing with a universal compiler.
25995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25996 /* end confdefs.h. */
25997 #ifndef __APPLE_CC__
25998 not a universal capable compiler
26003 if ac_fn_c_try_compile "$LINENO"; then :
26005 # Check for potential -arch flags. It is not universal unless
26006 # there are at least two -arch flags with different values.
26009 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
26010 if test -n "$ac_prev"; then
26012 i?86 | x86_64 | ppc | ppc64)
26013 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
26016 ac_cv_c_bigendian=universal
26022 elif test "x$ac_word" = "x-arch"; then
26027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26028 if test $ac_cv_c_bigendian = unknown; then
26029 # See if sys/param.h defines the BYTE_ORDER macro.
26030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26031 /* end confdefs.h. */
26032 #include <sys/types.h>
26033 #include <sys/param.h>
26038 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
26039 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
26041 bogus endian macros
26048 if ac_fn_c_try_compile "$LINENO"; then :
26049 # It does; now see whether it defined to BIG_ENDIAN or not.
26050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26051 /* end confdefs.h. */
26052 #include <sys/types.h>
26053 #include <sys/param.h>
26058 #if BYTE_ORDER != BIG_ENDIAN
26066 if ac_fn_c_try_compile "$LINENO"; then :
26067 ac_cv_c_bigendian=yes
26069 ac_cv_c_bigendian=no
26071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26075 if test $ac_cv_c_bigendian = unknown; then
26076 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
26077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26078 /* end confdefs.h. */
26079 #include <limits.h>
26084 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
26085 bogus endian macros
26092 if ac_fn_c_try_compile "$LINENO"; then :
26093 # It does; now see whether it defined to _BIG_ENDIAN or not.
26094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26095 /* end confdefs.h. */
26096 #include <limits.h>
26101 #ifndef _BIG_ENDIAN
26109 if ac_fn_c_try_compile "$LINENO"; then :
26110 ac_cv_c_bigendian=yes
26112 ac_cv_c_bigendian=no
26114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26118 if test $ac_cv_c_bigendian = unknown; then
26119 # Compile a test program.
26120 if test "$cross_compiling" = yes; then :
26121 # Try to guess by grepping values from an object file.
26122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26123 /* end confdefs.h. */
26124 short int ascii_mm[] =
26125 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
26126 short int ascii_ii[] =
26127 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
26128 int use_ascii (int i) {
26129 return ascii_mm[i] + ascii_ii[i];
26131 short int ebcdic_ii[] =
26132 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
26133 short int ebcdic_mm[] =
26134 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
26135 int use_ebcdic (int i) {
26136 return ebcdic_mm[i] + ebcdic_ii[i];
26143 return use_ascii (foo) == use_ebcdic (foo);
26148 if ac_fn_c_try_compile "$LINENO"; then :
26149 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
26150 ac_cv_c_bigendian=yes
26152 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
26153 if test "$ac_cv_c_bigendian" = unknown; then
26154 ac_cv_c_bigendian=no
26156 # finding both strings is unlikely to happen, but who knows?
26157 ac_cv_c_bigendian=unknown
26161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26164 /* end confdefs.h. */
26165 $ac_includes_default
26170 /* Are we little or big endian? From Harbison&Steele. */
26174 char c[sizeof (long int)];
26177 return u.c[sizeof (long int) - 1] == 1;
26183 if ac_fn_c_try_run "$LINENO"; then :
26184 ac_cv_c_bigendian=no
26186 ac_cv_c_bigendian=yes
26188 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26189 conftest.$ac_objext conftest.beam conftest.$ac_ext
26194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
26195 $as_echo "$ac_cv_c_bigendian" >&6; }
26196 case $ac_cv_c_bigendian in #(
26199 $as_echo "#define HAVE_BIG_ENDIAN 1" >>confdefs.h
26203 $as_echo "#define HAVE_LITTLE_ENDIAN 1" >>confdefs.h
26207 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
26211 as_fn_error "unknown endianness
26212 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
26216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to get filesystem type" >&5
26217 $as_echo_n "checking how to get filesystem type... " >&6; }
26219 # The order of these tests is important.
26220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26221 /* end confdefs.h. */
26223 #include <sys/statvfs.h>
26224 #include <sys/fstyp.h>
26227 if ac_fn_c_try_cpp "$LINENO"; then :
26228 $as_echo "#define FSTYPE_STATVFS 1" >>confdefs.h
26232 rm -f conftest.err conftest.$ac_ext
26233 if test $fstype = no; then
26234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26235 /* end confdefs.h. */
26237 #include <sys/statfs.h>
26238 #include <sys/fstyp.h>
26241 if ac_fn_c_try_cpp "$LINENO"; then :
26242 $as_echo "#define FSTYPE_USG_STATFS 1" >>confdefs.h
26246 rm -f conftest.err conftest.$ac_ext
26248 if test $fstype = no; then
26249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26250 /* end confdefs.h. */
26252 #include <sys/statfs.h>
26253 #include <sys/vmount.h>
26256 if ac_fn_c_try_cpp "$LINENO"; then :
26257 $as_echo "#define FSTYPE_AIX_STATFS 1" >>confdefs.h
26261 rm -f conftest.err conftest.$ac_ext
26263 if test $fstype = no; then
26264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26265 /* end confdefs.h. */
26267 #include <mntent.h>
26270 if ac_fn_c_try_cpp "$LINENO"; then :
26271 $as_echo "#define FSTYPE_MNTENT 1" >>confdefs.h
26275 rm -f conftest.err conftest.$ac_ext
26277 if test $fstype = no; then
26278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26279 /* end confdefs.h. */
26280 #include <sys/mount.h>
26283 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26284 $EGREP "f_type;" >/dev/null 2>&1; then :
26285 $as_echo "#define FSTYPE_STATFS 1" >>confdefs.h
26291 if test $fstype = no; then
26292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26293 /* end confdefs.h. */
26295 #include <sys/mount.h>
26296 #include <sys/fs_types.h>
26299 if ac_fn_c_try_cpp "$LINENO"; then :
26300 $as_echo "#define FSTYPE_GETMNT 1" >>confdefs.h
26304 rm -f conftest.err conftest.$ac_ext
26306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fstype" >&5
26307 $as_echo "$fstype" >&6; }
26309 ac_fn_c_check_header_mongrel "$LINENO" "sys/statvfs.h" "ac_cv_header_sys_statvfs_h" "$ac_includes_default"
26310 if test "x$ac_cv_header_sys_statvfs_h" = x""yes; then :
26312 $as_echo "#define HAVE_SYS_STATVFS_H 1" >>confdefs.h
26318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
26319 $as_echo_n "checking return type of signal handlers... " >&6; }
26320 if test "${ac_cv_type_signal+set}" = set; then :
26321 $as_echo_n "(cached) " >&6
26323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26324 /* end confdefs.h. */
26325 #include <sys/types.h>
26326 #include <signal.h>
26331 return *(signal (0, 0)) (0) == 1;
26336 if ac_fn_c_try_compile "$LINENO"; then :
26337 ac_cv_type_signal=int
26339 ac_cv_type_signal=void
26341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
26344 $as_echo "$ac_cv_type_signal" >&6; }
26346 cat >>confdefs.h <<_ACEOF
26347 #define RETSIGTYPE $ac_cv_type_signal
26352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type of signal functions" >&5
26353 $as_echo_n "checking for type of signal functions... " >&6; }
26354 if test "${bash_cv_signal_vintage+set}" = set; then :
26355 $as_echo_n "(cached) " >&6
26358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26359 /* end confdefs.h. */
26360 #include <signal.h>
26366 struct sigaction sa;
26367 sigemptyset(&ss); sigsuspend(&ss);
26368 sigaction(SIGINT, &sa, (struct sigaction *) 0);
26369 sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
26375 if ac_fn_c_try_link "$LINENO"; then :
26376 bash_cv_signal_vintage="posix"
26379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26380 /* end confdefs.h. */
26381 #include <signal.h>
26386 int mask = sigmask(SIGINT);
26387 sigsetmask(mask); sigblock(mask); sigpause(mask);
26393 if ac_fn_c_try_link "$LINENO"; then :
26394 bash_cv_signal_vintage="4.2bsd"
26397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26398 /* end confdefs.h. */
26400 #include <signal.h>
26401 RETSIGTYPE foo() { }
26406 int mask = sigmask(SIGINT);
26407 sigset(SIGINT, foo); sigrelse(SIGINT);
26408 sighold(SIGINT); sigpause(SIGINT);
26414 if ac_fn_c_try_link "$LINENO"; then :
26415 bash_cv_signal_vintage="svr3"
26417 bash_cv_signal_vintage="v7"
26420 rm -f core conftest.err conftest.$ac_objext \
26421 conftest$ac_exeext conftest.$ac_ext
26424 rm -f core conftest.err conftest.$ac_objext \
26425 conftest$ac_exeext conftest.$ac_ext
26428 rm -f core conftest.err conftest.$ac_objext \
26429 conftest$ac_exeext conftest.$ac_ext
26433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_signal_vintage" >&5
26434 $as_echo "$bash_cv_signal_vintage" >&6; }
26435 if test "$bash_cv_signal_vintage" = "posix"; then
26436 $as_echo "#define HAVE_POSIX_SIGNALS 1" >>confdefs.h
26438 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
26439 $as_echo "#define HAVE_BSD_SIGNALS 1" >>confdefs.h
26441 elif test "$bash_cv_signal_vintage" = "svr3"; then
26442 $as_echo "#define HAVE_USG_SIGHOLD 1" >>confdefs.h
26446 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
26447 if test "x$ac_cv_type_mode_t" = x""yes; then :
26451 cat >>confdefs.h <<_ACEOF
26457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
26458 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
26459 if test "${ac_cv_type_uid_t+set}" = set; then :
26460 $as_echo_n "(cached) " >&6
26462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26463 /* end confdefs.h. */
26464 #include <sys/types.h>
26467 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26468 $EGREP "uid_t" >/dev/null 2>&1; then :
26469 ac_cv_type_uid_t=yes
26471 ac_cv_type_uid_t=no
26476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
26477 $as_echo "$ac_cv_type_uid_t" >&6; }
26478 if test $ac_cv_type_uid_t = no; then
26480 $as_echo "#define uid_t int" >>confdefs.h
26483 $as_echo "#define gid_t int" >>confdefs.h
26487 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
26488 if test "x$ac_cv_type_size_t" = x""yes; then :
26492 cat >>confdefs.h <<_ACEOF
26493 #define size_t unsigned int
26498 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
26499 if test "x$ac_cv_type_pid_t" = x""yes; then :
26503 cat >>confdefs.h <<_ACEOF
26509 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
26510 if test "x$ac_cv_type_off_t" = x""yes; then :
26514 cat >>confdefs.h <<_ACEOF
26515 #define off_t long int
26521 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
26522 if test "x$ac_cv_type_intptr_t" = x""yes; then :
26524 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
26527 for ac_type in 'int' 'long int' 'long long int'; do
26528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26529 /* end confdefs.h. */
26530 $ac_includes_default
26534 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
26541 if ac_fn_c_try_compile "$LINENO"; then :
26543 cat >>confdefs.h <<_ACEOF
26544 #define intptr_t $ac_type
26549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26550 test -z "$ac_type" && break
26556 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
26557 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
26559 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
26562 for ac_type in 'unsigned int' 'unsigned long int' \
26563 'unsigned long long int'; do
26564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26565 /* end confdefs.h. */
26566 $ac_includes_default
26570 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
26577 if ac_fn_c_try_compile "$LINENO"; then :
26579 cat >>confdefs.h <<_ACEOF
26580 #define uintptr_t $ac_type
26585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26586 test -z "$ac_type" && break
26591 ac_fn_c_check_type "$LINENO" "ino_t" "ac_cv_type_ino_t" "$ac_includes_default"
26592 if test "x$ac_cv_type_ino_t" = x""yes; then :
26596 cat >>confdefs.h <<_ACEOF
26597 #define ino_t unsigned long
26602 ac_fn_c_check_type "$LINENO" "dev_t" "ac_cv_type_dev_t" "$ac_includes_default"
26603 if test "x$ac_cv_type_dev_t" = x""yes; then :
26607 cat >>confdefs.h <<_ACEOF
26608 #define dev_t unsigned long
26613 ac_fn_c_check_type "$LINENO" "daddr_t" "ac_cv_type_daddr_t" "$ac_includes_default"
26614 if test "x$ac_cv_type_daddr_t" = x""yes; then :
26618 cat >>confdefs.h <<_ACEOF
26619 #define daddr_t long
26624 ac_fn_c_check_type "$LINENO" "major_t" "ac_cv_type_major_t" "$ac_includes_default"
26625 if test "x$ac_cv_type_major_t" = x""yes; then :
26629 cat >>confdefs.h <<_ACEOF
26630 #define major_t int
26635 ac_fn_c_check_type "$LINENO" "minor_t" "ac_cv_type_minor_t" "$ac_includes_default"
26636 if test "x$ac_cv_type_minor_t" = x""yes; then :
26640 cat >>confdefs.h <<_ACEOF
26641 #define minor_t int
26646 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
26647 if test "x$ac_cv_type_ssize_t" = x""yes; then :
26651 cat >>confdefs.h <<_ACEOF
26652 #define ssize_t int
26657 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
26658 if test "x$ac_cv_member_struct_stat_st_blocks" = x""yes; then :
26660 cat >>confdefs.h <<_ACEOF
26661 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
26665 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
26668 case " $LIBOBJS " in
26669 *" fileblocks.$ac_objext "* ) ;;
26670 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
26677 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
26678 if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then :
26680 cat >>confdefs.h <<_ACEOF
26681 #define HAVE_STRUCT_STAT_ST_RDEV 1
26685 $as_echo "#define HAVE_ST_RDEV 1" >>confdefs.h
26690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
26691 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
26692 if test "${ac_cv_struct_tm+set}" = set; then :
26693 $as_echo_n "(cached) " >&6
26695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26696 /* end confdefs.h. */
26697 #include <sys/types.h>
26704 int *p = &tm.tm_sec;
26710 if ac_fn_c_try_compile "$LINENO"; then :
26711 ac_cv_struct_tm=time.h
26713 ac_cv_struct_tm=sys/time.h
26715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
26718 $as_echo "$ac_cv_struct_tm" >&6; }
26719 if test $ac_cv_struct_tm = sys/time.h; then
26721 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
26725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
26726 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
26727 if test "${ac_cv_c_const+set}" = set; then :
26728 $as_echo_n "(cached) " >&6
26730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26731 /* end confdefs.h. */
26736 /* FIXME: Include the comments suggested by Paul. */
26737 #ifndef __cplusplus
26738 /* Ultrix mips cc rejects this. */
26739 typedef int charset[2];
26741 /* SunOS 4.1.1 cc rejects this. */
26742 char const *const *pcpcc;
26744 /* NEC SVR4.0.2 mips cc rejects this. */
26745 struct point {int x, y;};
26746 static struct point const zero = {0,0};
26747 /* AIX XL C 1.02.0.0 rejects this.
26748 It does not let you subtract one const X* pointer from another in
26749 an arm of an if-expression whose if-part is not a constant
26751 const char *g = "string";
26752 pcpcc = &g + (g ? g-g : 0);
26753 /* HPUX 7.0 cc rejects these. */
26755 ppc = (char**) pcpcc;
26756 pcpcc = (char const *const *) ppc;
26757 { /* SCO 3.2v4 cc rejects this. */
26759 char const *s = 0 ? (char *) 0 : (char const *) 0;
26764 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
26765 int x[] = {25, 17};
26766 const int *foo = &x[0];
26769 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
26770 typedef const int *iptr;
26774 { /* AIX XL C 1.02.0.0 rejects this saying
26775 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
26776 struct s { int j; const int *ap[3]; };
26777 struct s *b; b->j = 5;
26779 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
26780 const int foo = 10;
26781 if (!foo) return 0;
26783 return !cs[0] && !zero.x;
26790 if ac_fn_c_try_compile "$LINENO"; then :
26795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
26798 $as_echo "$ac_cv_c_const" >&6; }
26799 if test $ac_cv_c_const = no; then
26801 $as_echo "#define const /**/" >>confdefs.h
26806 # The cast to long int works around a bug in the HP C Compiler
26807 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26808 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26809 # This bug is HP SR number 8606223364.
26810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
26811 $as_echo_n "checking size of char... " >&6; }
26812 if test "${ac_cv_sizeof_char+set}" = set; then :
26813 $as_echo_n "(cached) " >&6
26815 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
26818 if test "$ac_cv_type_char" = yes; then
26819 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26820 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26821 { as_fn_set_status 77
26822 as_fn_error "cannot compute sizeof (char)
26823 See \`config.log' for more details." "$LINENO" 5; }; }
26825 ac_cv_sizeof_char=0
26830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
26831 $as_echo "$ac_cv_sizeof_char" >&6; }
26835 cat >>confdefs.h <<_ACEOF
26836 #define SIZEOF_CHAR $ac_cv_sizeof_char
26840 # The cast to long int works around a bug in the HP C Compiler
26841 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26842 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26843 # This bug is HP SR number 8606223364.
26844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short int" >&5
26845 $as_echo_n "checking size of short int... " >&6; }
26846 if test "${ac_cv_sizeof_short_int+set}" = set; then :
26847 $as_echo_n "(cached) " >&6
26849 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short int))" "ac_cv_sizeof_short_int" "$ac_includes_default"; then :
26852 if test "$ac_cv_type_short_int" = yes; then
26853 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26854 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26855 { as_fn_set_status 77
26856 as_fn_error "cannot compute sizeof (short int)
26857 See \`config.log' for more details." "$LINENO" 5; }; }
26859 ac_cv_sizeof_short_int=0
26864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short_int" >&5
26865 $as_echo "$ac_cv_sizeof_short_int" >&6; }
26869 cat >>confdefs.h <<_ACEOF
26870 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
26874 # The cast to long int works around a bug in the HP C Compiler
26875 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26876 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26877 # This bug is HP SR number 8606223364.
26878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
26879 $as_echo_n "checking size of int... " >&6; }
26880 if test "${ac_cv_sizeof_int+set}" = set; then :
26881 $as_echo_n "(cached) " >&6
26883 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
26886 if test "$ac_cv_type_int" = yes; then
26887 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26888 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26889 { as_fn_set_status 77
26890 as_fn_error "cannot compute sizeof (int)
26891 See \`config.log' for more details." "$LINENO" 5; }; }
26898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
26899 $as_echo "$ac_cv_sizeof_int" >&6; }
26903 cat >>confdefs.h <<_ACEOF
26904 #define SIZEOF_INT $ac_cv_sizeof_int
26908 # The cast to long int works around a bug in the HP C Compiler
26909 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26910 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26911 # This bug is HP SR number 8606223364.
26912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long int" >&5
26913 $as_echo_n "checking size of long int... " >&6; }
26914 if test "${ac_cv_sizeof_long_int+set}" = set; then :
26915 $as_echo_n "(cached) " >&6
26917 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long int))" "ac_cv_sizeof_long_int" "$ac_includes_default"; then :
26920 if test "$ac_cv_type_long_int" = yes; then
26921 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26922 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26923 { as_fn_set_status 77
26924 as_fn_error "cannot compute sizeof (long int)
26925 See \`config.log' for more details." "$LINENO" 5; }; }
26927 ac_cv_sizeof_long_int=0
26932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_int" >&5
26933 $as_echo "$ac_cv_sizeof_long_int" >&6; }
26937 cat >>confdefs.h <<_ACEOF
26938 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
26942 # The cast to long int works around a bug in the HP C Compiler
26943 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26944 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26945 # This bug is HP SR number 8606223364.
26946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long int" >&5
26947 $as_echo_n "checking size of long long int... " >&6; }
26948 if test "${ac_cv_sizeof_long_long_int+set}" = set; then :
26949 $as_echo_n "(cached) " >&6
26951 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long int))" "ac_cv_sizeof_long_long_int" "$ac_includes_default"; then :
26954 if test "$ac_cv_type_long_long_int" = yes; then
26955 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26956 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26957 { as_fn_set_status 77
26958 as_fn_error "cannot compute sizeof (long long int)
26959 See \`config.log' for more details." "$LINENO" 5; }; }
26961 ac_cv_sizeof_long_long_int=0
26966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long_int" >&5
26967 $as_echo "$ac_cv_sizeof_long_long_int" >&6; }
26971 cat >>confdefs.h <<_ACEOF
26972 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
26976 # The cast to long int works around a bug in the HP C Compiler
26977 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26978 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26979 # This bug is HP SR number 8606223364.
26980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int *" >&5
26981 $as_echo_n "checking size of int *... " >&6; }
26982 if test "${ac_cv_sizeof_int_p+set}" = set; then :
26983 $as_echo_n "(cached) " >&6
26985 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int *))" "ac_cv_sizeof_int_p" "$ac_includes_default"; then :
26988 if test "$ac_cv_type_int_p" = yes; then
26989 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26990 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26991 { as_fn_set_status 77
26992 as_fn_error "cannot compute sizeof (int *)
26993 See \`config.log' for more details." "$LINENO" 5; }; }
26995 ac_cv_sizeof_int_p=0
27000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int_p" >&5
27001 $as_echo "$ac_cv_sizeof_int_p" >&6; }
27005 cat >>confdefs.h <<_ACEOF
27006 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
27011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int type" >&5
27012 $as_echo_n "checking for u_int type... " >&6; }
27013 if test "${ac_cv_have_u_int+set}" = set; then :
27014 $as_echo_n "(cached) " >&6
27017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27018 /* end confdefs.h. */
27020 #include <sys/types.h>
27032 if ac_fn_c_try_compile "$LINENO"; then :
27034 ac_cv_have_u_int="yes"
27038 ac_cv_have_u_int="no"
27042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_int" >&5
27047 $as_echo "$ac_cv_have_u_int" >&6; }
27048 if test "x$ac_cv_have_u_int" = "xyes" ; then
27049 $as_echo "#define HAVE_U_INT 1" >>confdefs.h
27054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t type" >&5
27055 $as_echo_n "checking for intmax_t type... " >&6; }
27056 if test "${ac_cv_have_intmax_t+set}" = set; then :
27057 $as_echo_n "(cached) " >&6
27060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27061 /* end confdefs.h. */
27063 #include <sys/types.h>
27075 if ac_fn_c_try_compile "$LINENO"; then :
27077 ac_cv_have_intmax_t="yes"
27081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27082 /* end confdefs.h. */
27084 #include <stdint.h>
27096 if ac_fn_c_try_compile "$LINENO"; then :
27098 ac_cv_have_intmax_t="yes"
27102 ac_cv_have_intmax_t="no"
27106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_intmax_t" >&5
27115 $as_echo "$ac_cv_have_intmax_t" >&6; }
27116 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
27117 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
27122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_intmax_t type" >&5
27123 $as_echo_n "checking for u_intmax_t type... " >&6; }
27124 if test "${ac_cv_have_u_intmax_t+set}" = set; then :
27125 $as_echo_n "(cached) " >&6
27128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27129 /* end confdefs.h. */
27131 #include <sys/types.h>
27137 u_intmax_t a; a = 1;
27143 if ac_fn_c_try_compile "$LINENO"; then :
27145 ac_cv_have_u_intmax_t="yes"
27149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27150 /* end confdefs.h. */
27152 #include <stdint.h>
27158 u_intmax_t a; a = 1;
27164 if ac_fn_c_try_compile "$LINENO"; then :
27166 ac_cv_have_u_intmax_t="yes"
27170 ac_cv_have_u_intmax_t="no"
27174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_intmax_t" >&5
27183 $as_echo "$ac_cv_have_u_intmax_t" >&6; }
27184 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
27185 $as_echo "#define HAVE_U_INTMAX_T 1" >>confdefs.h
27190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intXX_t types" >&5
27191 $as_echo_n "checking for intXX_t types... " >&6; }
27192 if test "${ac_cv_have_intxx_t+set}" = set; then :
27193 $as_echo_n "(cached) " >&6
27196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27197 /* end confdefs.h. */
27199 #include <sys/types.h>
27205 int8_t a; int16_t b; int32_t c; a = b = c = 1;
27211 if ac_fn_c_try_compile "$LINENO"; then :
27213 ac_cv_have_intxx_t="yes"
27217 ac_cv_have_intxx_t="no"
27221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_intxx_t" >&5
27226 $as_echo "$ac_cv_have_intxx_t" >&6; }
27227 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
27228 $as_echo "#define HAVE_INTXX_T 1" >>confdefs.h
27233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t type" >&5
27234 $as_echo_n "checking for int64_t type... " >&6; }
27235 if test "${ac_cv_have_int64_t+set}" = set; then :
27236 $as_echo_n "(cached) " >&6
27239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27240 /* end confdefs.h. */
27242 #include <sys/types.h>
27254 if ac_fn_c_try_compile "$LINENO"; then :
27256 ac_cv_have_int64_t="yes"
27260 ac_cv_have_int64_t="no"
27264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_int64_t" >&5
27269 $as_echo "$ac_cv_have_int64_t" >&6; }
27270 if test "x$ac_cv_have_int64_t" = "xyes" ; then
27271 $as_echo "#define HAVE_INT64_T 1" >>confdefs.h
27276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_intXX_t types" >&5
27277 $as_echo_n "checking for u_intXX_t types... " >&6; }
27278 if test "${ac_cv_have_u_intxx_t+set}" = set; then :
27279 $as_echo_n "(cached) " >&6
27282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27283 /* end confdefs.h. */
27285 #include <sys/types.h>
27291 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
27297 if ac_fn_c_try_compile "$LINENO"; then :
27299 ac_cv_have_u_intxx_t="yes"
27303 ac_cv_have_u_intxx_t="no"
27307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_intxx_t" >&5
27312 $as_echo "$ac_cv_have_u_intxx_t" >&6; }
27313 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
27314 $as_echo "#define HAVE_U_INTXX_T 1" >>confdefs.h
27319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int64_t types" >&5
27320 $as_echo_n "checking for u_int64_t types... " >&6; }
27321 if test "${ac_cv_have_u_int64_t+set}" = set; then :
27322 $as_echo_n "(cached) " >&6
27325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27326 /* end confdefs.h. */
27328 #include <sys/types.h>
27334 u_int64_t a; a = 1;
27340 if ac_fn_c_try_compile "$LINENO"; then :
27342 ac_cv_have_u_int64_t="yes"
27346 ac_cv_have_u_int64_t="no"
27350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_int64_t" >&5
27355 $as_echo "$ac_cv_have_u_int64_t" >&6; }
27356 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
27357 $as_echo "#define HAVE_U_INT64_T 1" >>confdefs.h
27362 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
27363 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
27365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
27366 $as_echo_n "checking for intXX_t and u_intXX_t types in sys/bitypes.h... " >&6; }
27367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27368 /* end confdefs.h. */
27370 #include <sys/bitypes.h>
27376 int8_t a; int16_t b; int32_t c;
27377 u_int8_t e; u_int16_t f; u_int32_t g;
27378 a = b = c = e = f = g = 1;
27384 if ac_fn_c_try_compile "$LINENO"; then :
27386 $as_echo "#define HAVE_U_INTXX_T 1" >>confdefs.h
27388 $as_echo "#define HAVE_INTXX_T 1" >>confdefs.h
27390 $as_echo "#define HAVE_SYS_BITYPES_H 1" >>confdefs.h
27392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27393 $as_echo "yes" >&6; }
27397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27398 $as_echo "no" >&6; }
27402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27405 if test -z "$have_u_intxx_t" ; then
27406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uintXX_t types" >&5
27407 $as_echo_n "checking for uintXX_t types... " >&6; }
27408 if test "${ac_cv_have_uintxx_t+set}" = set; then :
27409 $as_echo_n "(cached) " >&6
27412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27413 /* end confdefs.h. */
27415 #include <sys/types.h>
27421 uint8_t a; uint16_t b;
27422 uint32_t c; a = b = c = 1;
27428 if ac_fn_c_try_compile "$LINENO"; then :
27430 ac_cv_have_uintxx_t="yes"
27434 ac_cv_have_uintxx_t="no"
27438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_uintxx_t" >&5
27443 $as_echo "$ac_cv_have_uintxx_t" >&6; }
27444 if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
27445 $as_echo "#define HAVE_UINTXX_T 1" >>confdefs.h
27450 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
27451 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
27453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
27454 $as_echo_n "checking for int64_t and u_int64_t types in sys/bitypes.h... " >&6; }
27455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27456 /* end confdefs.h. */
27458 #include <sys/bitypes.h>
27464 int64_t a; u_int64_t b;
27471 if ac_fn_c_try_compile "$LINENO"; then :
27473 $as_echo "#define HAVE_U_INT64_T 1" >>confdefs.h
27475 $as_echo "#define HAVE_INT64_T 1" >>confdefs.h
27477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27478 $as_echo "yes" >&6; }
27482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27483 $as_echo "no" >&6; }
27487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27490 if (test -z "$have_uintxx_t" && \
27491 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
27493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uintXX_t types in sys/bitypes.h" >&5
27494 $as_echo_n "checking for uintXX_t types in sys/bitypes.h... " >&6; }
27495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27496 /* end confdefs.h. */
27498 #include <sys/bitypes.h>
27504 uint8_t a; uint16_t b;
27505 uint32_t c; a = b = c = 1;
27511 if ac_fn_c_try_compile "$LINENO"; then :
27513 $as_echo "#define HAVE_UINTXX_T 1" >>confdefs.h
27515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27516 $as_echo "yes" >&6; }
27520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27521 $as_echo "no" >&6; }
27525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27544 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
27545 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
27546 eval as_val=\$$as_ac_var
27547 if test "x$as_val" = x""yes; then :
27548 cat >>confdefs.h <<_ACEOF
27549 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
27553 echo 'configure: cannot find needed function.'; exit 1
27559 for ac_func in getpagesize
27561 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
27562 if test "x$ac_cv_func_getpagesize" = x""yes; then :
27563 cat >>confdefs.h <<_ACEOF
27564 #define HAVE_GETPAGESIZE 1
27567 $as_echo "#define HAVE_GETPAGESIZE 1" >>confdefs.h
27573 for ac_func in malloc_trim
27575 ac_fn_c_check_func "$LINENO" "malloc_trim" "ac_cv_func_malloc_trim"
27576 if test "x$ac_cv_func_malloc_trim" = x""yes; then :
27577 cat >>confdefs.h <<_ACEOF
27578 #define HAVE_MALLOC_TRIM 1
27581 $as_echo "#define HAVE_MALLOC_TRIM 1" >>confdefs.h
27587 for ac_func in fchdir
27589 ac_fn_c_check_func "$LINENO" "fchdir" "ac_cv_func_fchdir"
27590 if test "x$ac_cv_func_fchdir" = x""yes; then :
27591 cat >>confdefs.h <<_ACEOF
27592 #define HAVE_FCHDIR 1
27594 $as_echo "#define HAVE_FCHDIR 1" >>confdefs.h
27599 for ac_func in strtoll
27601 ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll"
27602 if test "x$ac_cv_func_strtoll" = x""yes; then :
27603 cat >>confdefs.h <<_ACEOF
27604 #define HAVE_STRTOLL 1
27606 $as_echo "#define HAVE_STRTOLL 1" >>confdefs.h
27611 for ac_func in posix_fadvise
27613 ac_fn_c_check_func "$LINENO" "posix_fadvise" "ac_cv_func_posix_fadvise"
27614 if test "x$ac_cv_func_posix_fadvise" = x""yes; then :
27615 cat >>confdefs.h <<_ACEOF
27616 #define HAVE_POSIX_FADVISE 1
27622 for ac_func in fdatasync
27624 ac_fn_c_check_func "$LINENO" "fdatasync" "ac_cv_func_fdatasync"
27625 if test "x$ac_cv_func_fdatasync" = x""yes; then :
27626 cat >>confdefs.h <<_ACEOF
27627 #define HAVE_FDATASYNC 1
27634 for ac_func in chflags
27636 ac_fn_c_check_func "$LINENO" "chflags" "ac_cv_func_chflags"
27637 if test "x$ac_cv_func_chflags" = x""yes; then :
27638 cat >>confdefs.h <<_ACEOF
27639 #define HAVE_CHFLAGS 1
27646 for ac_func in snprintf vsnprintf gethostid fseeko
27648 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
27649 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
27650 eval as_val=\$$as_ac_var
27651 if test "x$as_val" = x""yes; then :
27652 cat >>confdefs.h <<_ACEOF
27653 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
27660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
27661 $as_echo_n "checking for va_copy... " >&6; }
27662 if test "${ba_cv_va_copy+set}" = set; then :
27663 $as_echo_n "(cached) " >&6
27666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27667 /* end confdefs.h. */
27669 #include <stdarg.h>
27670 void use_va_copy(va_list args){va_list args2; va_copy(args2,args); va_end(args2);}
27671 void call_use_va_copy(int junk,...){va_list args; va_start(args,junk); use_va_copy(args); va_end(args);}
27677 call_use_va_copy(1,2,3)
27683 if ac_fn_c_try_link "$LINENO"; then :
27693 rm -f core conftest.err conftest.$ac_objext \
27694 conftest$ac_exeext conftest.$ac_ext
27698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_va_copy" >&5
27699 $as_echo "$ba_cv_va_copy" >&6; }
27700 test $ba_cv_va_copy = yes &&
27701 $as_echo "#define HAVE_VA_COPY 1" >>confdefs.h
27704 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
27706 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
27707 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
27708 eval as_val=\$$as_ac_var
27709 if test "x$as_val" = x""yes; then :
27710 cat >>confdefs.h <<_ACEOF
27711 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
27718 # If resolver functions are not in libc check for -lnsl or -lresolv.
27719 ac_fn_c_check_func "$LINENO" "gethostbyname_r" "ac_cv_func_gethostbyname_r"
27720 if test "x$ac_cv_func_gethostbyname_r" = x""yes; then :
27721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using libc's resolver" >&5
27722 $as_echo "using libc's resolver" >&6; }
27724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname_r in -lnsl" >&5
27725 $as_echo_n "checking for gethostbyname_r in -lnsl... " >&6; }
27726 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then :
27727 $as_echo_n "(cached) " >&6
27729 ac_check_lib_save_LIBS=$LIBS
27731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27732 /* end confdefs.h. */
27734 /* Override any GCC internal prototype to avoid an error.
27735 Use char because int might match the return type of a GCC
27736 builtin and then its argument prototype would still apply. */
27740 char gethostbyname_r ();
27744 return gethostbyname_r ();
27749 if ac_fn_c_try_link "$LINENO"; then :
27750 ac_cv_lib_nsl_gethostbyname_r=yes
27752 ac_cv_lib_nsl_gethostbyname_r=no
27754 rm -f core conftest.err conftest.$ac_objext \
27755 conftest$ac_exeext conftest.$ac_ext
27756 LIBS=$ac_check_lib_save_LIBS
27758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
27759 $as_echo "$ac_cv_lib_nsl_gethostbyname_r" >&6; }
27760 if test "x$ac_cv_lib_nsl_gethostbyname_r" = x""yes; then :
27761 cat >>confdefs.h <<_ACEOF
27762 #define HAVE_LIBNSL 1
27769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname_r in -lresolv" >&5
27770 $as_echo_n "checking for gethostbyname_r in -lresolv... " >&6; }
27771 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then :
27772 $as_echo_n "(cached) " >&6
27774 ac_check_lib_save_LIBS=$LIBS
27775 LIBS="-lresolv $LIBS"
27776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27777 /* end confdefs.h. */
27779 /* Override any GCC internal prototype to avoid an error.
27780 Use char because int might match the return type of a GCC
27781 builtin and then its argument prototype would still apply. */
27785 char gethostbyname_r ();
27789 return gethostbyname_r ();
27794 if ac_fn_c_try_link "$LINENO"; then :
27795 ac_cv_lib_resolv_gethostbyname_r=yes
27797 ac_cv_lib_resolv_gethostbyname_r=no
27799 rm -f core conftest.err conftest.$ac_objext \
27800 conftest$ac_exeext conftest.$ac_ext
27801 LIBS=$ac_check_lib_save_LIBS
27803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
27804 $as_echo "$ac_cv_lib_resolv_gethostbyname_r" >&6; }
27805 if test "x$ac_cv_lib_resolv_gethostbyname_r" = x""yes; then :
27806 cat >>confdefs.h <<_ACEOF
27807 #define HAVE_LIBRESOLV 1
27810 LIBS="-lresolv $LIBS"
27817 for ac_func in inet_pton
27819 ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton"
27820 if test "x$ac_cv_func_inet_pton" = x""yes; then :
27821 cat >>confdefs.h <<_ACEOF
27822 #define HAVE_INET_PTON 1
27824 $as_echo "#define HAVE_INET_PTON 1" >>confdefs.h
27829 for ac_func in inet_ntop
27831 ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
27832 if test "x$ac_cv_func_inet_ntop" = x""yes; then :
27833 cat >>confdefs.h <<_ACEOF
27834 #define HAVE_INET_NTOP 1
27836 $as_echo "#define HAVE_INET_NTOP 1" >>confdefs.h
27841 for ac_func in gethostbyname2
27843 ac_fn_c_check_func "$LINENO" "gethostbyname2" "ac_cv_func_gethostbyname2"
27844 if test "x$ac_cv_func_gethostbyname2" = x""yes; then :
27845 cat >>confdefs.h <<_ACEOF
27846 #define HAVE_GETHOSTBYNAME2 1
27848 $as_echo "#define HAVE_GETHOSTBYNAME2 1" >>confdefs.h
27854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr has a sa_len field" >&5
27855 $as_echo_n "checking for struct sockaddr has a sa_len field... " >&6; }
27856 if test "${ac_cv_struct_sockaddr_sa_len+set}" = set; then :
27857 $as_echo_n "(cached) " >&6
27860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27861 /* end confdefs.h. */
27863 #include <sys/socket.h>
27869 struct sockaddr s; s.sa_len;
27875 if ac_fn_c_try_compile "$LINENO"; then :
27877 ac_cv_struct_sockaddr_sa_len=yes
27880 ac_cv_struct_sockaddr_sa_len=no
27884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_sockaddr_sa_len" >&5
27889 $as_echo "$ac_cv_struct_sockaddr_sa_len" >&6; }
27891 if test $ac_cv_struct_sockaddr_sa_len = yes; then
27893 $as_echo "#define HAVE_SA_LEN 1" >>confdefs.h
27897 for ac_func in strftime
27899 ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
27900 if test "x$ac_cv_func_strftime" = x""yes; then :
27901 cat >>confdefs.h <<_ACEOF
27902 #define HAVE_STRFTIME 1
27906 # strftime is in -lintl on SCO UNIX.
27907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
27908 $as_echo_n "checking for strftime in -lintl... " >&6; }
27909 if test "${ac_cv_lib_intl_strftime+set}" = set; then :
27910 $as_echo_n "(cached) " >&6
27912 ac_check_lib_save_LIBS=$LIBS
27913 LIBS="-lintl $LIBS"
27914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27915 /* end confdefs.h. */
27917 /* Override any GCC internal prototype to avoid an error.
27918 Use char because int might match the return type of a GCC
27919 builtin and then its argument prototype would still apply. */
27927 return strftime ();
27932 if ac_fn_c_try_link "$LINENO"; then :
27933 ac_cv_lib_intl_strftime=yes
27935 ac_cv_lib_intl_strftime=no
27937 rm -f core conftest.err conftest.$ac_objext \
27938 conftest$ac_exeext conftest.$ac_ext
27939 LIBS=$ac_check_lib_save_LIBS
27941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
27942 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
27943 if test "x$ac_cv_lib_intl_strftime" = x""yes; then :
27944 $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
27946 LIBS="-lintl $LIBS"
27952 for ac_func in vprintf
27954 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
27955 if test "x$ac_cv_func_vprintf" = x""yes; then :
27956 cat >>confdefs.h <<_ACEOF
27957 #define HAVE_VPRINTF 1
27960 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
27961 if test "x$ac_cv_func__doprnt" = x""yes; then :
27963 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
27971 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
27972 # for constant arguments. Useless!
27973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
27974 $as_echo_n "checking for working alloca.h... " >&6; }
27975 if test "${ac_cv_working_alloca_h+set}" = set; then :
27976 $as_echo_n "(cached) " >&6
27978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27979 /* end confdefs.h. */
27980 #include <alloca.h>
27984 char *p = (char *) alloca (2 * sizeof (int));
27990 if ac_fn_c_try_link "$LINENO"; then :
27991 ac_cv_working_alloca_h=yes
27993 ac_cv_working_alloca_h=no
27995 rm -f core conftest.err conftest.$ac_objext \
27996 conftest$ac_exeext conftest.$ac_ext
27998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
27999 $as_echo "$ac_cv_working_alloca_h" >&6; }
28000 if test $ac_cv_working_alloca_h = yes; then
28002 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
28006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
28007 $as_echo_n "checking for alloca... " >&6; }
28008 if test "${ac_cv_func_alloca_works+set}" = set; then :
28009 $as_echo_n "(cached) " >&6
28011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28012 /* end confdefs.h. */
28014 # define alloca __builtin_alloca
28017 # include <malloc.h>
28018 # define alloca _alloca
28020 # ifdef HAVE_ALLOCA_H
28021 # include <alloca.h>
28026 # ifndef alloca /* predefined by HP cc +Olibcalls */
28037 char *p = (char *) alloca (1);
28043 if ac_fn_c_try_link "$LINENO"; then :
28044 ac_cv_func_alloca_works=yes
28046 ac_cv_func_alloca_works=no
28048 rm -f core conftest.err conftest.$ac_objext \
28049 conftest$ac_exeext conftest.$ac_ext
28051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
28052 $as_echo "$ac_cv_func_alloca_works" >&6; }
28054 if test $ac_cv_func_alloca_works = yes; then
28056 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
28059 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
28060 # that cause trouble. Some versions do not even contain alloca or
28061 # contain a buggy version. If you still want to use their alloca,
28062 # use ar to extract alloca.o from them instead of compiling alloca.c.
28064 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
28066 $as_echo "#define C_ALLOCA 1" >>confdefs.h
28069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
28070 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
28071 if test "${ac_cv_os_cray+set}" = set; then :
28072 $as_echo_n "(cached) " >&6
28074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28075 /* end confdefs.h. */
28076 #if defined CRAY && ! defined CRAY2
28083 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28084 $EGREP "webecray" >/dev/null 2>&1; then :
28092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
28093 $as_echo "$ac_cv_os_cray" >&6; }
28094 if test $ac_cv_os_cray = yes; then
28095 for ac_func in _getb67 GETB67 getb67; do
28096 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28097 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28098 eval as_val=\$$as_ac_var
28099 if test "x$as_val" = x""yes; then :
28101 cat >>confdefs.h <<_ACEOF
28102 #define CRAY_STACKSEG_END $ac_func
28111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
28112 $as_echo_n "checking stack direction for C alloca... " >&6; }
28113 if test "${ac_cv_c_stack_direction+set}" = set; then :
28114 $as_echo_n "(cached) " >&6
28116 if test "$cross_compiling" = yes; then :
28117 ac_cv_c_stack_direction=0
28119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28120 /* end confdefs.h. */
28121 $ac_includes_default
28123 find_stack_direction ()
28125 static char *addr = 0;
28130 return find_stack_direction ();
28133 return (&dummy > addr) ? 1 : -1;
28139 return find_stack_direction () < 0;
28142 if ac_fn_c_try_run "$LINENO"; then :
28143 ac_cv_c_stack_direction=1
28145 ac_cv_c_stack_direction=-1
28147 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28148 conftest.$ac_objext conftest.beam conftest.$ac_ext
28152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
28153 $as_echo "$ac_cv_c_stack_direction" >&6; }
28154 cat >>confdefs.h <<_ACEOF
28155 #define STACK_DIRECTION $ac_cv_c_stack_direction
28161 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
28162 # -lseq on Dynix/PTX, -lgen on Unixware.
28163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getmntent" >&5
28164 $as_echo_n "checking for library containing getmntent... " >&6; }
28165 if test "${ac_cv_search_getmntent+set}" = set; then :
28166 $as_echo_n "(cached) " >&6
28168 ac_func_search_save_LIBS=$LIBS
28169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28170 /* end confdefs.h. */
28172 /* Override any GCC internal prototype to avoid an error.
28173 Use char because int might match the return type of a GCC
28174 builtin and then its argument prototype would still apply. */
28182 return getmntent ();
28187 for ac_lib in '' sun seq gen; do
28188 if test -z "$ac_lib"; then
28189 ac_res="none required"
28192 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28194 if ac_fn_c_try_link "$LINENO"; then :
28195 ac_cv_search_getmntent=$ac_res
28197 rm -f core conftest.err conftest.$ac_objext \
28199 if test "${ac_cv_search_getmntent+set}" = set; then :
28203 if test "${ac_cv_search_getmntent+set}" = set; then :
28206 ac_cv_search_getmntent=no
28208 rm conftest.$ac_ext
28209 LIBS=$ac_func_search_save_LIBS
28211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getmntent" >&5
28212 $as_echo "$ac_cv_search_getmntent" >&6; }
28213 ac_res=$ac_cv_search_getmntent
28214 if test "$ac_res" != no; then :
28215 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28216 ac_cv_func_getmntent=yes
28218 $as_echo "#define HAVE_GETMNTENT 1" >>confdefs.h
28221 ac_cv_func_getmntent=no
28225 for ac_func in getmntinfo
28227 ac_fn_c_check_func "$LINENO" "getmntinfo" "ac_cv_func_getmntinfo"
28228 if test "x$ac_cv_func_getmntinfo" = x""yes; then :
28229 cat >>confdefs.h <<_ACEOF
28230 #define HAVE_GETMNTINFO 1
28232 $as_echo "#define HAVE_GETMNTINFO 1" >>confdefs.h
28237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
28238 $as_echo_n "checking whether closedir returns void... " >&6; }
28239 if test "${ac_cv_func_closedir_void+set}" = set; then :
28240 $as_echo_n "(cached) " >&6
28242 if test "$cross_compiling" = yes; then :
28243 ac_cv_func_closedir_void=yes
28245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28246 /* end confdefs.h. */
28247 $ac_includes_default
28248 #include <$ac_header_dirent>
28249 #ifndef __cplusplus
28256 return closedir (opendir (".")) != 0;
28261 if ac_fn_c_try_run "$LINENO"; then :
28262 ac_cv_func_closedir_void=no
28264 ac_cv_func_closedir_void=yes
28266 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28267 conftest.$ac_objext conftest.beam conftest.$ac_ext
28271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
28272 $as_echo "$ac_cv_func_closedir_void" >&6; }
28273 if test $ac_cv_func_closedir_void = yes; then
28275 $as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
28279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
28280 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
28281 if test "${ac_cv_func_setpgrp_void+set}" = set; then :
28282 $as_echo_n "(cached) " >&6
28284 if test "$cross_compiling" = yes; then :
28285 as_fn_error "cannot check setpgrp when cross compiling" "$LINENO" 5
28287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28288 /* end confdefs.h. */
28289 $ac_includes_default
28293 /* If this system has a BSD-style setpgrp which takes arguments,
28294 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
28295 exit successfully. */
28296 return setpgrp (1,1) != -1;
28301 if ac_fn_c_try_run "$LINENO"; then :
28302 ac_cv_func_setpgrp_void=no
28304 ac_cv_func_setpgrp_void=yes
28306 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28307 conftest.$ac_objext conftest.beam conftest.$ac_ext
28311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
28312 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
28313 if test $ac_cv_func_setpgrp_void = yes; then
28315 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
28318 # AC_FUNC_FNMATCH dnl use local version
28320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettext in -lintl" >&5
28321 $as_echo_n "checking for gettext in -lintl... " >&6; }
28322 if test "${ac_cv_lib_intl_gettext+set}" = set; then :
28323 $as_echo_n "(cached) " >&6
28325 ac_check_lib_save_LIBS=$LIBS
28326 LIBS="-lintl $LIBS"
28327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28328 /* end confdefs.h. */
28330 /* Override any GCC internal prototype to avoid an error.
28331 Use char because int might match the return type of a GCC
28332 builtin and then its argument prototype would still apply. */
28345 if ac_fn_c_try_link "$LINENO"; then :
28346 ac_cv_lib_intl_gettext=yes
28348 ac_cv_lib_intl_gettext=no
28350 rm -f core conftest.err conftest.$ac_objext \
28351 conftest$ac_exeext conftest.$ac_ext
28352 LIBS=$ac_check_lib_save_LIBS
28354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_gettext" >&5
28355 $as_echo "$ac_cv_lib_intl_gettext" >&6; }
28356 if test "x$ac_cv_lib_intl_gettext" = x""yes; then :
28357 LIBS="$LIBS -lintl"
28361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpwnam in -lsun" >&5
28362 $as_echo_n "checking for getpwnam in -lsun... " >&6; }
28363 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then :
28364 $as_echo_n "(cached) " >&6
28366 ac_check_lib_save_LIBS=$LIBS
28368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28369 /* end confdefs.h. */
28371 /* Override any GCC internal prototype to avoid an error.
28372 Use char because int might match the return type of a GCC
28373 builtin and then its argument prototype would still apply. */
28381 return getpwnam ();
28386 if ac_fn_c_try_link "$LINENO"; then :
28387 ac_cv_lib_sun_getpwnam=yes
28389 ac_cv_lib_sun_getpwnam=no
28391 rm -f core conftest.err conftest.$ac_objext \
28392 conftest$ac_exeext conftest.$ac_ext
28393 LIBS=$ac_check_lib_save_LIBS
28395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sun_getpwnam" >&5
28396 $as_echo "$ac_cv_lib_sun_getpwnam" >&6; }
28397 if test "x$ac_cv_lib_sun_getpwnam" = x""yes; then :
28398 cat >>confdefs.h <<_ACEOF
28399 #define HAVE_LIBSUN 1
28407 for ac_header in zlib.h
28409 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
28410 if test "x$ac_cv_header_zlib_h" = x""yes; then :
28411 cat >>confdefs.h <<_ACEOF
28412 #define HAVE_ZLIB_H 1
28419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
28420 $as_echo_n "checking for deflate in -lz... " >&6; }
28421 if test "${ac_cv_lib_z_deflate+set}" = set; then :
28422 $as_echo_n "(cached) " >&6
28424 ac_check_lib_save_LIBS=$LIBS
28426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28427 /* end confdefs.h. */
28429 /* Override any GCC internal prototype to avoid an error.
28430 Use char because int might match the return type of a GCC
28431 builtin and then its argument prototype would still apply. */
28444 if ac_fn_c_try_link "$LINENO"; then :
28445 ac_cv_lib_z_deflate=yes
28447 ac_cv_lib_z_deflate=no
28449 rm -f core conftest.err conftest.$ac_objext \
28450 conftest$ac_exeext conftest.$ac_ext
28451 LIBS=$ac_check_lib_save_LIBS
28453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
28454 $as_echo "$ac_cv_lib_z_deflate" >&6; }
28455 if test "x$ac_cv_lib_z_deflate" = x""yes; then :
28460 if test x$ZLIBS = x-lz; then
28461 $as_echo "#define HAVE_LIBZ 1" >>confdefs.h
28470 # Check whether --enable-afs was given.
28471 if test "${enable_afs+set}" = set; then :
28472 enableval=$enable_afs;
28473 if test x$enableval = xyes; then
28475 elif test x$enableval = xno; then
28484 if test x$support_afs = xyes -o x$support_afs = xauto; then
28486 # Check whether --with-afsdir was given.
28487 if test "${with_afsdir+set}" = set; then :
28488 withval=$with_afsdir; with_afsdir=$withval
28493 if test x$with_afsdir = x; then
28494 for root in /usr /usr/local; do
28495 if test -d ${root}/include/afs/ ; then
28496 with_afsdir=${root}
28502 AFS_CFLAGS="-I${with_afsdir}/include"
28504 saved_CFLAGS="${CFLAGS}"
28505 CFLAGS="${AFS_CFLAGS} ${saved_CFLAGS}"
28507 for ac_header in afs/stds.h
28509 ac_fn_c_check_header_mongrel "$LINENO" "afs/stds.h" "ac_cv_header_afs_stds_h" "$ac_includes_default"
28510 if test "x$ac_cv_header_afs_stds_h" = x""yes; then :
28511 cat >>confdefs.h <<_ACEOF
28512 #define HAVE_AFS_STDS_H 1
28520 CFLAGS="${saved_CFLAGS}"
28522 for dir in ${with_afsdir}/lib ${with_afsdir}/lib/afs
28524 for arch_type in .a .so
28526 A=`test -f ${dir}/libsys${arch_type} && nm ${dir}/libsys${arch_type} | grep pioctl`
28528 if test $pkg = 0; then
28530 AFS_LIBS="-L${dir} -lsys -lrx -llwp ${dir}/util.a"
28536 if test x$support_afs = xyes -a $have_afs != yes; then
28537 as_fn_error "afs support explicitly enabled but no supported afs implementation found,
28538 please either load the afs libraries or rerun configure without --enable-afs" "$LINENO" 5
28540 if test $have_afs = yes; then
28542 $as_echo "#define HAVE_AFS 1" >>confdefs.h
28545 $as_echo "#define HAVE_AFS_ACL 1" >>confdefs.h
28555 # Check whether --enable-acl was given.
28556 if test "${enable_acl+set}" = set; then :
28557 enableval=$enable_acl;
28558 if test x$enableval = xyes; then
28560 elif test x$enableval = xno; then
28569 have_extended_acl=no
28570 if test x$support_acl = xyes -o x$support_acl = xauto; then
28571 ac_fn_c_check_header_mongrel "$LINENO" "sys/acl.h" "ac_cv_header_sys_acl_h" "$ac_includes_default"
28572 if test "x$ac_cv_header_sys_acl_h" = x""yes; then :
28574 $as_echo "#define HAVE_SYS_ACL_H 1" >>confdefs.h
28580 ac_fn_c_check_func "$LINENO" "acl_get_file" "ac_cv_func_acl_get_file"
28581 if test "x$ac_cv_func_acl_get_file" = x""yes; then :
28589 if test $have_acl = no; then
28590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get_file in -lacl" >&5
28591 $as_echo_n "checking for acl_get_file in -lacl... " >&6; }
28592 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then :
28593 $as_echo_n "(cached) " >&6
28595 ac_check_lib_save_LIBS=$LIBS
28597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28598 /* end confdefs.h. */
28600 /* Override any GCC internal prototype to avoid an error.
28601 Use char because int might match the return type of a GCC
28602 builtin and then its argument prototype would still apply. */
28606 char acl_get_file ();
28610 return acl_get_file ();
28615 if ac_fn_c_try_link "$LINENO"; then :
28616 ac_cv_lib_acl_acl_get_file=yes
28618 ac_cv_lib_acl_acl_get_file=no
28620 rm -f core conftest.err conftest.$ac_objext \
28621 conftest$ac_exeext conftest.$ac_ext
28622 LIBS=$ac_check_lib_save_LIBS
28624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_acl_acl_get_file" >&5
28625 $as_echo "$ac_cv_lib_acl_acl_get_file" >&6; }
28626 if test "x$ac_cv_lib_acl_acl_get_file" = x""yes; then :
28629 if test $have_afs = yes; then
28630 if test -d /usr/lib64/; then
28631 FDLIBS="-L/usr/lib64 -lacl $FDLIBS"
28633 FDLIBS="-L/usr/lib -lacl $FDLIBS"
28636 FDLIBS="-lacl $FDLIBS"
28644 if test $have_acl = no; then
28645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get_file in -lpacl" >&5
28646 $as_echo_n "checking for acl_get_file in -lpacl... " >&6; }
28647 if test "${ac_cv_lib_pacl_acl_get_file+set}" = set; then :
28648 $as_echo_n "(cached) " >&6
28650 ac_check_lib_save_LIBS=$LIBS
28651 LIBS="-lpacl $LIBS"
28652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28653 /* end confdefs.h. */
28655 /* Override any GCC internal prototype to avoid an error.
28656 Use char because int might match the return type of a GCC
28657 builtin and then its argument prototype would still apply. */
28661 char acl_get_file ();
28665 return acl_get_file ();
28670 if ac_fn_c_try_link "$LINENO"; then :
28671 ac_cv_lib_pacl_acl_get_file=yes
28673 ac_cv_lib_pacl_acl_get_file=no
28675 rm -f core conftest.err conftest.$ac_objext \
28676 conftest$ac_exeext conftest.$ac_ext
28677 LIBS=$ac_check_lib_save_LIBS
28679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pacl_acl_get_file" >&5
28680 $as_echo "$ac_cv_lib_pacl_acl_get_file" >&6; }
28681 if test "x$ac_cv_lib_pacl_acl_get_file" = x""yes; then :
28684 FDLIBS="-lpacl $FDLIBS"
28691 if test $have_acl = no -a \
28692 x${HAVE_SUN_OS_TRUE} = x; then
28693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acltotext in -lsec" >&5
28694 $as_echo_n "checking for acltotext in -lsec... " >&6; }
28695 if test "${ac_cv_lib_sec_acltotext+set}" = set; then :
28696 $as_echo_n "(cached) " >&6
28698 ac_check_lib_save_LIBS=$LIBS
28700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28701 /* end confdefs.h. */
28703 /* Override any GCC internal prototype to avoid an error.
28704 Use char because int might match the return type of a GCC
28705 builtin and then its argument prototype would still apply. */
28713 return acltotext ();
28718 if ac_fn_c_try_link "$LINENO"; then :
28719 ac_cv_lib_sec_acltotext=yes
28721 ac_cv_lib_sec_acltotext=no
28723 rm -f core conftest.err conftest.$ac_objext \
28724 conftest$ac_exeext conftest.$ac_ext
28725 LIBS=$ac_check_lib_save_LIBS
28727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sec_acltotext" >&5
28728 $as_echo "$ac_cv_lib_sec_acltotext" >&6; }
28729 if test "x$ac_cv_lib_sec_acltotext" = x""yes; then :
28732 FDLIBS="-lsec $FDLIBS"
28734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_totext in -lsec" >&5
28735 $as_echo_n "checking for acl_totext in -lsec... " >&6; }
28736 if test "${ac_cv_lib_sec_acl_totext+set}" = set; then :
28737 $as_echo_n "(cached) " >&6
28739 ac_check_lib_save_LIBS=$LIBS
28741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28742 /* end confdefs.h. */
28744 /* Override any GCC internal prototype to avoid an error.
28745 Use char because int might match the return type of a GCC
28746 builtin and then its argument prototype would still apply. */
28750 char acl_totext ();
28754 return acl_totext ();
28759 if ac_fn_c_try_link "$LINENO"; then :
28760 ac_cv_lib_sec_acl_totext=yes
28762 ac_cv_lib_sec_acl_totext=no
28764 rm -f core conftest.err conftest.$ac_objext \
28765 conftest$ac_exeext conftest.$ac_ext
28766 LIBS=$ac_check_lib_save_LIBS
28768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sec_acl_totext" >&5
28769 $as_echo "$ac_cv_lib_sec_acl_totext" >&6; }
28770 if test "x$ac_cv_lib_sec_acl_totext" = x""yes; then :
28772 have_extended_acl=yes
28783 if test $have_acl = no -a \
28784 x${HAVE_AIX_OS_TRUE} = x; then
28785 ac_fn_c_check_func "$LINENO" "acl_get" "ac_cv_func_acl_get"
28786 if test "x$ac_cv_func_acl_get" = x""yes; then :
28790 ac_fn_c_check_func "$LINENO" "aclx_get" "ac_cv_func_aclx_get"
28791 if test "x$ac_cv_func_aclx_get" = x""yes; then :
28793 have_extended_acl=yes
28804 if test x$support_acl = xyes -a $have_acl != yes; then
28805 as_fn_error "acl support explicitly enabled but no supported acl implementation found,
28806 please either load the acl libraries or rerun configure without --enable-acl" "$LINENO" 5
28808 if test $have_acl = yes; then
28810 $as_echo "#define HAVE_ACL 1" >>confdefs.h
28814 if test $have_extended_acl = yes; then
28816 $as_echo "#define HAVE_EXTENDED_ACL 1" >>confdefs.h
28823 # Check whether --enable-xattr was given.
28824 if test "${enable_xattr+set}" = set; then :
28825 enableval=$enable_xattr;
28826 if test x$enableval = xyes; then
28828 elif test x$enableval = xno; then
28837 if test x$support_xattr = xyes -o x$support_xattr = xauto; then
28838 if test x${HAVE_FREEBSD_OS_TRUE} = x -o \
28839 x${HAVE_NETBSD_OS_TRUE} = x -o \
28840 x${HAVE_OPENBSD_OS_TRUE} = x; then
28841 ac_fn_c_check_header_mongrel "$LINENO" "sys/extattr.h" "ac_cv_header_sys_extattr_h" "$ac_includes_default"
28842 if test "x$ac_cv_header_sys_extattr_h" = x""yes; then :
28844 $as_echo "#define HAVE_SYS_EXTATTR_H 1" >>confdefs.h
28849 ac_fn_c_check_header_mongrel "$LINENO" "libutil.h" "ac_cv_header_libutil_h" "$ac_includes_default"
28850 if test "x$ac_cv_header_libutil_h" = x""yes; then :
28852 $as_echo "#define HAVE_LIBUTIL_H 1" >>confdefs.h
28857 for ac_func in extattr_get_link extattr_set_link extattr_list_link
28859 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28860 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28861 eval as_val=\$$as_ac_var
28862 if test "x$as_val" = x""yes; then :
28863 cat >>confdefs.h <<_ACEOF
28864 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28869 $as_echo "#define HAVE_EXTATTR_GET_LINK 1" >>confdefs.h
28872 $as_echo "#define HAVE_EXTATTR_SET_LINK 1" >>confdefs.h
28875 $as_echo "#define HAVE_EXTATTR_LIST_LINK 1" >>confdefs.h
28883 if test $have_xattr = no; then
28884 for ac_func in extattr_get_file extattr_set_file extattr_list_file
28886 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28887 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28888 eval as_val=\$$as_ac_var
28889 if test "x$as_val" = x""yes; then :
28890 cat >>confdefs.h <<_ACEOF
28891 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28896 $as_echo "#define HAVE_EXTATTR_GET_FILE 1" >>confdefs.h
28899 $as_echo "#define HAVE_EXTATTR_SET_FILE 1" >>confdefs.h
28902 $as_echo "#define HAVE_EXTATTR_LIST_FILE 1" >>confdefs.h
28911 if test $have_xattr = yes; then
28912 have_extattr_string_in_libc=no
28913 for ac_func in extattr_namespace_to_string extattr_string_to_namespace
28915 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28916 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28917 eval as_val=\$$as_ac_var
28918 if test "x$as_val" = x""yes; then :
28919 cat >>confdefs.h <<_ACEOF
28920 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28923 have_extattr_string_in_libc=yes
28925 $as_echo "#define HAVE_EXTATTR_NAMESPACE_TO_STRING 1" >>confdefs.h
28928 $as_echo "#define HAVE_EXTATTR_STRING_TO_NAMESPACE 1" >>confdefs.h
28936 if test $have_extattr_string_in_libc = no; then
28937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extattr_namespace_to_string extattr_string_to_namespace in -lutil" >&5
28938 $as_echo_n "checking for extattr_namespace_to_string extattr_string_to_namespace in -lutil... " >&6; }
28939 if test "${ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace+set}" = set; then :
28940 $as_echo_n "(cached) " >&6
28942 ac_check_lib_save_LIBS=$LIBS
28943 LIBS="-lutil $LIBS"
28944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28945 /* end confdefs.h. */
28947 /* Override any GCC internal prototype to avoid an error.
28948 Use char because int might match the return type of a GCC
28949 builtin and then its argument prototype would still apply. */
28953 char extattr_namespace_to_string extattr_string_to_namespace ();
28957 return extattr_namespace_to_string extattr_string_to_namespace ();
28962 if ac_fn_c_try_link "$LINENO"; then :
28963 ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace=yes
28965 ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace=no
28967 rm -f core conftest.err conftest.$ac_objext \
28968 conftest$ac_exeext conftest.$ac_ext
28969 LIBS=$ac_check_lib_save_LIBS
28971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" >&5
28972 $as_echo "$ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" >&6; }
28973 if test "x$ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" = x""yes; then :
28976 $as_echo "#define HAVE_EXTATTR_NAMESPACE_TO_STRING 1" >>confdefs.h
28979 $as_echo "#define HAVE_EXTATTR_STRING_TO_NAMESPACE 1" >>confdefs.h
28981 FDLIBS="-lutil $FDLIBS"
28990 if test $have_xattr = no -a \
28991 x${HAVE_AIX_OS_TRUE} = x; then
28992 ac_fn_c_check_header_mongrel "$LINENO" "sys/ea.h" "ac_cv_header_sys_ea_h" "$ac_includes_default"
28993 if test "x$ac_cv_header_sys_ea_h" = x""yes; then :
28995 $as_echo "#define HAVE_SYS_EA_H 1" >>confdefs.h
29000 for ac_func in llistea lgetea lsetea
29002 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29003 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29004 eval as_val=\$$as_ac_var
29005 if test "x$as_val" = x""yes; then :
29006 cat >>confdefs.h <<_ACEOF
29007 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29012 $as_echo "#define HAVE_LLISTEA 1" >>confdefs.h
29015 $as_echo "#define HAVE_LGETEA 1" >>confdefs.h
29018 $as_echo "#define HAVE_LSETEA 1" >>confdefs.h
29026 if test $have_xattr = no; then
29027 for ac_func in listea getea setea
29029 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29030 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29031 eval as_val=\$$as_ac_var
29032 if test "x$as_val" = x""yes; then :
29033 cat >>confdefs.h <<_ACEOF
29034 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29039 $as_echo "#define HAVE_LISTEA 1" >>confdefs.h
29042 $as_echo "#define HAVE_GETEA 1" >>confdefs.h
29045 $as_echo "#define HAVE_SETEA 1" >>confdefs.h
29055 if test $have_xattr = no -a \
29056 x${HAVE_OSF1_OS_TRUE} = x; then
29057 ac_fn_c_check_header_mongrel "$LINENO" "sys/proplist.h" "ac_cv_header_sys_proplist_h" "$ac_includes_default"
29058 if test "x$ac_cv_header_sys_proplist_h" = x""yes; then :
29060 $as_echo "#define HAVE_SYS_PROPLIST_H 1" >>confdefs.h
29065 for ac_func in getproplist get_proplist_entry sizeof_proplist_entry add_proplist_entry setproplist
29067 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29068 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29069 eval as_val=\$$as_ac_var
29070 if test "x$as_val" = x""yes; then :
29071 cat >>confdefs.h <<_ACEOF
29072 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29077 $as_echo "#define HAVE_GETPROPLIST 1" >>confdefs.h
29080 $as_echo "#define HAVE_GET_PROPLIST_ENTRY 1" >>confdefs.h
29083 $as_echo "#define HAVE_SIZEOF_PROPLIST_ENTRY 1" >>confdefs.h
29086 $as_echo "#define HAVE_ADD_PROPLIST_ENTRY 1" >>confdefs.h
29089 $as_echo "#define HAVE_SETPROPLIST 1" >>confdefs.h
29098 if test $have_xattr = no -a \
29099 x${HAVE_SUN_OS_TRUE} = x; then
29100 ac_fn_c_check_header_mongrel "$LINENO" "sys/attr.h" "ac_cv_header_sys_attr_h" "$ac_includes_default"
29101 if test "x$ac_cv_header_sys_attr_h" = x""yes; then :
29103 $as_echo "#define HAVE_SYS_ATTR_H 1" >>confdefs.h
29108 ac_fn_c_check_header_mongrel "$LINENO" "sys/nvpair.h" "ac_cv_header_sys_nvpair_h" "$ac_includes_default"
29109 if test "x$ac_cv_header_sys_nvpair_h" = x""yes; then :
29111 $as_echo "#define HAVE_SYS_NVPAIR_H 1" >>confdefs.h
29116 ac_fn_c_check_header_mongrel "$LINENO" "attr.h" "ac_cv_header_attr_h" "$ac_includes_default"
29117 if test "x$ac_cv_header_attr_h" = x""yes; then :
29119 $as_echo "#define HAVE_ATTR_H 1" >>confdefs.h
29125 for ac_func in openat fstatat unlinkat fchownat futimesat
29127 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29128 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29129 eval as_val=\$$as_ac_var
29130 if test "x$as_val" = x""yes; then :
29131 cat >>confdefs.h <<_ACEOF
29132 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29137 $as_echo "#define HAVE_OPENAT 1" >>confdefs.h
29140 $as_echo "#define HAVE_FSTATAT 1" >>confdefs.h
29143 $as_echo "#define HAVE_UNLINKAT 1" >>confdefs.h
29146 $as_echo "#define HAVE_FCHOWNAT 1" >>confdefs.h
29149 $as_echo "#define HAVE_FUTIMESAT 1" >>confdefs.h
29157 if test $have_xattr = yes; then
29158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nvlist_next_nvpair in -lnvpair" >&5
29159 $as_echo_n "checking for nvlist_next_nvpair in -lnvpair... " >&6; }
29160 if test "${ac_cv_lib_nvpair_nvlist_next_nvpair+set}" = set; then :
29161 $as_echo_n "(cached) " >&6
29163 ac_check_lib_save_LIBS=$LIBS
29164 LIBS="-lnvpair $LIBS"
29165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29166 /* end confdefs.h. */
29168 /* Override any GCC internal prototype to avoid an error.
29169 Use char because int might match the return type of a GCC
29170 builtin and then its argument prototype would still apply. */
29174 char nvlist_next_nvpair ();
29178 return nvlist_next_nvpair ();
29183 if ac_fn_c_try_link "$LINENO"; then :
29184 ac_cv_lib_nvpair_nvlist_next_nvpair=yes
29186 ac_cv_lib_nvpair_nvlist_next_nvpair=no
29188 rm -f core conftest.err conftest.$ac_objext \
29189 conftest$ac_exeext conftest.$ac_ext
29190 LIBS=$ac_check_lib_save_LIBS
29192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nvpair_nvlist_next_nvpair" >&5
29193 $as_echo "$ac_cv_lib_nvpair_nvlist_next_nvpair" >&6; }
29194 if test "x$ac_cv_lib_nvpair_nvlist_next_nvpair" = x""yes; then :
29197 $as_echo "#define HAVE_NVLIST_NEXT_NVPAIR 1" >>confdefs.h
29199 FDLIBS="-lnvpair $FDLIBS"
29207 if test $have_xattr = no; then
29208 ac_fn_c_check_header_mongrel "$LINENO" "sys/xattr.h" "ac_cv_header_sys_xattr_h" "$ac_includes_default"
29209 if test "x$ac_cv_header_sys_xattr_h" = x""yes; then :
29211 $as_echo "#define HAVE_SYS_XATTR_H 1" >>confdefs.h
29216 for ac_func in llistxattr lgetxattr lsetxattr
29218 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29219 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29220 eval as_val=\$$as_ac_var
29221 if test "x$as_val" = x""yes; then :
29222 cat >>confdefs.h <<_ACEOF
29223 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29228 $as_echo "#define HAVE_LLISTXATTR 1" >>confdefs.h
29231 $as_echo "#define HAVE_LGETXATTR 1" >>confdefs.h
29234 $as_echo "#define HAVE_LSETXATTR 1" >>confdefs.h
29242 if test $have_xattr = no; then
29243 for ac_func in listxattr getxattr setxattr
29245 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29246 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29247 eval as_val=\$$as_ac_var
29248 if test "x$as_val" = x""yes; then :
29249 cat >>confdefs.h <<_ACEOF
29250 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29255 $as_echo "#define HAVE_LISTXATTR 1" >>confdefs.h
29258 $as_echo "#define HAVE_GETXATTR 1" >>confdefs.h
29261 $as_echo "#define HAVE_SETXATTR 1" >>confdefs.h
29271 if test x$support_xattr = xyes -a $have_xattr != yes; then
29272 as_fn_error "xattr support explicitly enabled but no supported xattr implementation found,
29273 please either load the xattr libraries or rerun configure without --enable-xattr" "$LINENO" 5
29275 if test $have_xattr = yes; then
29277 $as_echo "#define HAVE_XATTR 1" >>confdefs.h
29284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
29285 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
29286 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then :
29287 $as_echo_n "(cached) " >&6
29289 ac_check_lib_save_LIBS=$LIBS
29290 LIBS="-lpthread $LIBS"
29291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29292 /* end confdefs.h. */
29294 /* Override any GCC internal prototype to avoid an error.
29295 Use char because int might match the return type of a GCC
29296 builtin and then its argument prototype would still apply. */
29300 char pthread_create ();
29304 return pthread_create ();
29309 if ac_fn_c_try_link "$LINENO"; then :
29310 ac_cv_lib_pthread_pthread_create=yes
29312 ac_cv_lib_pthread_pthread_create=no
29314 rm -f core conftest.err conftest.$ac_objext \
29315 conftest$ac_exeext conftest.$ac_ext
29316 LIBS=$ac_check_lib_save_LIBS
29318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
29319 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
29320 if test "x$ac_cv_lib_pthread_pthread_create" = x""yes; then :
29321 PTHREAD_LIB="-lpthread"
29324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthreads" >&5
29325 $as_echo_n "checking for pthread_create in -lpthreads... " >&6; }
29326 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then :
29327 $as_echo_n "(cached) " >&6
29329 ac_check_lib_save_LIBS=$LIBS
29330 LIBS="-lpthreads $LIBS"
29331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29332 /* end confdefs.h. */
29334 /* Override any GCC internal prototype to avoid an error.
29335 Use char because int might match the return type of a GCC
29336 builtin and then its argument prototype would still apply. */
29340 char pthread_create ();
29344 return pthread_create ();
29349 if ac_fn_c_try_link "$LINENO"; then :
29350 ac_cv_lib_pthreads_pthread_create=yes
29352 ac_cv_lib_pthreads_pthread_create=no
29354 rm -f core conftest.err conftest.$ac_objext \
29355 conftest$ac_exeext conftest.$ac_ext
29356 LIBS=$ac_check_lib_save_LIBS
29358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_pthread_create" >&5
29359 $as_echo "$ac_cv_lib_pthreads_pthread_create" >&6; }
29360 if test "x$ac_cv_lib_pthreads_pthread_create" = x""yes; then :
29361 PTHREAD_LIB="-lpthreads"
29364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lc_r" >&5
29365 $as_echo_n "checking for pthread_create in -lc_r... " >&6; }
29366 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then :
29367 $as_echo_n "(cached) " >&6
29369 ac_check_lib_save_LIBS=$LIBS
29371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29372 /* end confdefs.h. */
29374 /* Override any GCC internal prototype to avoid an error.
29375 Use char because int might match the return type of a GCC
29376 builtin and then its argument prototype would still apply. */
29380 char pthread_create ();
29384 return pthread_create ();
29389 if ac_fn_c_try_link "$LINENO"; then :
29390 ac_cv_lib_c_r_pthread_create=yes
29392 ac_cv_lib_c_r_pthread_create=no
29394 rm -f core conftest.err conftest.$ac_objext \
29395 conftest$ac_exeext conftest.$ac_ext
29396 LIBS=$ac_check_lib_save_LIBS
29398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_create" >&5
29399 $as_echo "$ac_cv_lib_c_r_pthread_create" >&6; }
29400 if test "x$ac_cv_lib_c_r_pthread_create" = x""yes; then :
29401 PTHREAD_LIB="-lc_r"
29404 ac_fn_c_check_func "$LINENO" "pthread_create" "ac_cv_func_pthread_create"
29405 if test "x$ac_cv_func_pthread_create" = x""yes; then :
29422 for ac_header in sys/prctl.h sys/capability.h
29424 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29425 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
29426 eval as_val=\$$as_ac_Header
29427 if test "x$as_val" = x""yes; then :
29428 cat >>confdefs.h <<_ACEOF
29429 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29436 for ac_func in prctl setreuid
29438 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29439 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29440 eval as_val=\$$as_ac_var
29441 if test "x$as_val" = x""yes; then :
29442 cat >>confdefs.h <<_ACEOF
29443 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cap_set_proc in -lcap" >&5
29450 $as_echo_n "checking for cap_set_proc in -lcap... " >&6; }
29451 if test "${ac_cv_lib_cap_cap_set_proc+set}" = set; then :
29452 $as_echo_n "(cached) " >&6
29454 ac_check_lib_save_LIBS=$LIBS
29456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29457 /* end confdefs.h. */
29459 /* Override any GCC internal prototype to avoid an error.
29460 Use char because int might match the return type of a GCC
29461 builtin and then its argument prototype would still apply. */
29465 char cap_set_proc ();
29469 return cap_set_proc ();
29474 if ac_fn_c_try_link "$LINENO"; then :
29475 ac_cv_lib_cap_cap_set_proc=yes
29477 ac_cv_lib_cap_cap_set_proc=no
29479 rm -f core conftest.err conftest.$ac_objext \
29480 conftest$ac_exeext conftest.$ac_ext
29481 LIBS=$ac_check_lib_save_LIBS
29483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cap_cap_set_proc" >&5
29484 $as_echo "$ac_cv_lib_cap_cap_set_proc" >&6; }
29485 if test "x$ac_cv_lib_cap_cap_set_proc" = x""yes; then :
29491 if test x$CAP_LIBS = x-lcap; then
29493 $as_echo "#define HAVE_LIBCAP 1" >>confdefs.h
29499 $as_echo "#define FDLIBS 1" >>confdefs.h
29502 CFLAGS=${CFLAGS--O}
29504 if test x$have_gcc = xyes ; then
29505 CPPFLAGS="$CPPFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
29506 CFLAGS="$CFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
29508 LDFLAGS=${LDFLAGS--O}
29509 CPPFLAGS="$CPPFLAGS"
29535 PFILES="platforms/Makefile"
29540 hostname=`uname -n | cut -d '.' -f 1`
29541 if test x${hostname} = x ; then
29542 hostname="localhost"
29544 ping -c 1 $hostname 2>/dev/null 1>/dev/null
29545 if test ! $? = 0; then
29546 hostname="localhost"
29549 case "$DISTNAME" in
29552 PSCMD="ps -e -o pid,comm"
29553 PFILES="${PFILES} \
29554 platforms/aix/Makefile"
29555 TAPEDRIVE="/dev/rmt0.1"
29559 PTHREAD_LIB="-lpthread -lexc"
29560 if test "${CC}" = "gcc" ; then
29567 TAPEDRIVE="/dev/nrmt0"
29570 DISTVER=`uname -a |awk '{print $3}'`
29571 TAPEDRIVE="/dev/nrmt0"
29572 PTHREAD_LIB="-pthread"
29573 CFLAGS="${CFLAGS} -pthread"
29574 PSCMD="ps -ax -o pid,command"
29577 PFILES="${PFILES} \
29578 platforms/bsdi/Makefile \
29579 platforms/bsdi/bacula-fd \
29580 platforms/bsdi/bacula-sd \
29581 platforms/bsdi/bacula-dir"
29582 largefile_support="yes"
29585 DISTVER=`uname -a |awk '{print $3}'`
29586 TAPEDRIVE="/dev/nrst0"
29588 WCFLAGS="-mwindows"
29589 WLDFLAGS="-mwindows"
29593 TAPEDRIVE="/dev/nst0"
29594 PSCMD="ps -e -o pid,command"
29596 PFILES="${PFILES} \
29597 platforms/darwin/Makefile"
29601 TAPEDRIVE="/dev/nst0"
29602 PSCMD="ps -e -o pid,command"
29604 PFILES="${PFILES} \
29605 platforms/osx/Makefile"
29608 if `test -f /etc/apt/sources.list && grep -q ubuntu /etc/apt/sources.list`; then
29611 DISTVER=`cat /etc/debian_version`
29612 if test -f /etc/lsb-release ; then
29614 if test "x$DISTRIB_ID" != "x" ; then
29615 DISTNAME=$DISTRIB_ID
29617 if test "x$DISTRIB_RELEASE" != "x" ; then
29618 DISTVER=$DISTRIB_RELEASE
29621 if test "$DISTNAME" = "Ubuntu" ; then
29624 TAPEDRIVE="/dev/nst0"
29625 PSCMD="ps -e -o pid,command"
29626 if test "$DISTNAME" = "ubuntu" ; then
29627 PFILES="${PFILES} \
29628 platforms/ubuntu/Makefile \
29629 platforms/ubuntu/bacula-fd \
29630 platforms/ubuntu/bacula-sd \
29631 platforms/ubuntu/bacula-dir"
29633 PFILES="${PFILES} \
29634 platforms/debian/Makefile \
29635 platforms/debian/bacula-fd \
29636 platforms/debian/bacula-sd \
29637 platforms/debian/bacula-dir"
29641 DISTVER=`uname -a |awk '{print $3}'`
29642 VER=`echo $DISTVER | cut -c 1`
29643 if test x$VER = x4 ; then
29644 PTHREAD_LIB="${PTHREAD_LIBS:--pthread}"
29645 CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS:--pthread}"
29649 TAPEDRIVE="/dev/nrsa0"
29650 PSCMD="ps -ax -o pid,command"
29651 PFILES="${PFILES} \
29652 platforms/freebsd/Makefile \
29653 platforms/freebsd/bacula-fd \
29654 platforms/freebsd/bacula-sd \
29655 platforms/freebsd/bacula-dir"
29656 largefile_support="yes"
29659 PSCMD="UNIX95=1; ps -e -o pid,comm"
29660 CFLAGS="${CFLAGS} -D_XOPEN_SOURCE_EXTENDED=1"
29662 TAPEDRIVE="/dev/rmt/0hnb"
29663 PTHREAD_LIB="-lpthread"
29664 $as_echo "#define _INCLUDE_LONGLONG 1" >>confdefs.h
29669 TAPEDRIVE="/dev/rmt/0cbn"
29670 PSCMD="ps -e -o pid,comm"
29671 PFILES="${PFILES} \
29672 platforms/irix/Makefile \
29673 platforms/irix/bacula-fd \
29674 platforms/irix/bacula-sd \
29675 platforms/irix/bacula-dir"
29678 DISTVER=`uname -a |awk '{print $3}'`
29681 TAPEDRIVE="/dev/nrst0"
29682 PSCMD="ps -ax -o pid,command"
29683 PTHREAD_LIB="-pthread"
29684 CFLAGS="${CFLAGS} -pthread"
29687 DISTVER=`uname -a |awk '{print $3}'`
29690 TAPEDRIVE="/dev/nrst0"
29691 PSCMD="ps -ax -o pid,command"
29692 PTHREAD_LIB="-pthread"
29693 CFLAGS="${CFLAGS} -pthread"
29694 PFILES="${PFILES} \
29695 platforms/openbsd/Makefile \
29696 platforms/openbsd/bacula-fd \
29697 platforms/openbsd/bacula-sd \
29698 platforms/openbsd/bacula-dir"
29701 if test -f /etc/whitebox-release ; then
29702 f=/etc/whitebox-release
29704 f=/etc/redhat-release
29706 if test `cat $f | grep release |\
29707 cut -f 3 -d ' '`x = "Enterprise"x ; then
29708 DISTVER="Enterprise "`cat $f | grep release |\
29711 DISTVER=`cat /etc/redhat-release | grep release |\
29714 TAPEDRIVE="/dev/nst0"
29715 PSCMD="ps -e -o pid,command"
29716 PFILES="${PFILES} \
29717 platforms/redhat/Makefile \
29718 platforms/redhat/bacula-fd \
29719 platforms/redhat/bacula-sd \
29720 platforms/redhat/bacula-dir
29724 DISTVER=`cat /etc/mandrake-release | grep release |\
29726 TAPEDRIVE="/dev/nst0"
29727 PSCMD="ps -e -o pid,command"
29728 PFILES="${PFILES} \
29729 platforms/mandrake/Makefile \
29730 platforms/mandrake/bacula-fd \
29731 platforms/mandrake/bacula-sd \
29732 platforms/mandrake/bacula-dir \
29736 DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
29737 TAPEDRIVE="/dev/nst0"
29738 PSCMD="ps -e -o pid,command"
29739 PFILES="${PFILES} \
29740 platforms/gentoo/Makefile \
29741 platforms/gentoo/bacula-init \
29742 platforms/gentoo/bacula-fd \
29743 platforms/gentoo/bacula-sd \
29744 platforms/gentoo/bacula-dir"
29747 DISTVER=`cat /etc/slackware-version`
29748 TAPEDRIVE="/dev/nst0"
29749 PSCMD="ps -e -o pid,command"
29750 PFILES="${PFILES} \
29751 platforms/slackware/Makefile \
29752 platforms/slackware/rc.bacula-fd \
29753 platforms/slackware/rc.bacula-sd \
29754 platforms/slackware/rc.bacula-dir\
29755 platforms/slackware/functions.bacula"
29759 TAPEDRIVE="/dev/rmt/0cbn"
29760 PSCMD="ps -e -o pid,comm"
29761 PFILES="${PFILES} \
29762 platforms/solaris/Makefile \
29763 platforms/solaris/bacula-fd \
29764 platforms/solaris/bacula-sd \
29765 platforms/solaris/bacula-dir"
29768 $as_echo "#define HAVE_OLD_SOCKOPT 1" >>confdefs.h
29769 $as_echo "#define USE_THR_SETCONCURRENCY 1" >>confdefs.h
29772 $as_echo "#define USE_THR_SETCONCURRENCY 1" >>confdefs.h
29777 LIBS="$LIBS -lresolv -lrt"
29780 DISTVER=`cat /etc/SuSE-release |grep VERSION|\
29782 TAPEDRIVE="/dev/nst0"
29783 PSCMD="ps -e -o pid,command"
29784 PFILES="${PFILES} \
29785 platforms/suse/Makefile \
29786 platforms/suse/bacula-fd \
29787 platforms/suse/bacula-sd \
29788 platforms/suse/bacula-dir \
29789 platforms/suse/bacula"
29794 TAPEDRIVE="/dev/nst0"
29795 PSCMD="ps -e -o pid,command"
29796 PFILES="${PFILES} \
29797 platforms/suse/Makefile \
29798 platforms/suse/bacula-fd \
29799 platforms/suse/bacula-sd \
29800 platforms/suse/bacula-dir"
29804 TAPEDRIVE="/dev/nst0"
29807 echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
29813 LIBS="$PTHREAD_LIB $LIBS"
29815 cat >>confdefs.h <<_ACEOF
29819 cat >>confdefs.h <<_ACEOF
29830 MCOMMON=./autoconf/Make.common
29833 if test "x${subsysdir}" = "x${sbindir}" ; then
29836 echo "You have set both --sbindir and --with-subsys-dir"
29837 echo " equal to: ${subsysdir} "
29838 echo "This is not permitted. Please reconfigure."
29840 echo "Aborting configuration ..."
29846 ac_config_files="$ac_config_files autoconf/Make.common Makefile manpages/Makefile scripts/btraceback scripts/bconsole scripts/bacula scripts/bacula-ctl-dir scripts/bacula-ctl-fd scripts/bacula-ctl-sd scripts/devel_bacula scripts/Makefile scripts/logrotate scripts/bacula.desktop.gnome1 scripts/bacula.desktop.gnome2 scripts/bacula.desktop.gnome1.consolehelper scripts/bacula.desktop.gnome2.consolehelper scripts/bacula.desktop.gnome1.xsu scripts/bacula.desktop.gnome2.xsu scripts/bgnome-console.console_apps scripts/mtx-changer scripts/disk-changer scripts/dvd-handler scripts/dvd-simulator scripts/bacula-tray-monitor.desktop scripts/logwatch/Makefile scripts/logwatch/logfile.bacula.conf scripts/wxconsole.console_apps scripts/wxconsole.desktop.consolehelper scripts/wxconsole.desktop.xsu scripts/bat.desktop scripts/bat.desktop.xsu scripts/bat.desktop.consolehelper scripts/bat.console_apps src/Makefile src/host.h src/console/Makefile src/console/bconsole.conf src/qt-console/tray-monitor/tray-monitor.pro src/qt-console/tray-monitor/tray-monitor.conf src/qt-console/bat.conf src/qt-console/bat.pro src/qt-console/bat.pro.mingw32 src/qt-console/install_conf_file src/wx-console/Makefile src/wx-console/bwx-console.conf src/tray-monitor/Makefile src/tray-monitor/tray-monitor.conf src/dird/Makefile src/dird/bacula-dir.conf src/lib/Makefile src/stored/Makefile src/stored/bacula-sd.conf src/filed/Makefile src/filed/bacula-fd.conf src/cats/Makefile src/cats/make_catalog_backup.pl src/cats/make_catalog_backup src/cats/delete_catalog_backup src/cats/create_postgresql_database src/cats/update_postgresql_tables src/cats/make_postgresql_tables src/cats/grant_postgresql_privileges src/cats/drop_postgresql_tables src/cats/drop_postgresql_database src/cats/create_mysql_database src/cats/update_mysql_tables src/cats/make_mysql_tables src/cats/grant_mysql_privileges src/cats/drop_mysql_tables src/cats/drop_mysql_database src/cats/create_sqlite3_database src/cats/update_sqlite3_tables src/cats/make_sqlite3_tables src/cats/grant_sqlite3_privileges src/cats/drop_sqlite3_tables src/cats/drop_sqlite3_database src/cats/create_ingres_database src/cats/update_ingres_tables src/cats/make_ingres_tables src/cats/grant_ingres_privileges src/cats/drop_ingres_tables src/cats/drop_ingres_database src/cats/sqlite src/cats/mysql src/cats/create_bacula_database src/cats/update_bacula_tables src/cats/grant_bacula_privileges src/cats/make_bacula_tables src/cats/drop_bacula_tables src/cats/drop_bacula_database src/findlib/Makefile src/tools/Makefile src/plugins/fd/Makefile src/plugins/sd/Makefile src/plugins/dir/Makefile src/win32/Makefile.inc po/Makefile.in updatedb/update_mysql_tables_9_to_10 updatedb/update_sqlite3_tables_9_to_10 updatedb/update_postgresql_tables_9_to_10 updatedb/update_mysql_tables_10_to_11 updatedb/update_sqlite3_tables_10_to_11 updatedb/update_postgresql_tables_10_to_11 updatedb/update_mysql_tables_11_to_12 updatedb/update_sqlite3_tables_11_to_12 updatedb/update_postgresql_tables_11_to_12 examples/nagios/check_bacula/Makefile $PFILES"
29848 ac_config_commands="$ac_config_commands default"
29850 cat >confcache <<\_ACEOF
29851 # This file is a shell script that caches the results of configure
29852 # tests run on this system so they can be shared between configure
29853 # scripts and configure runs, see configure's option --config-cache.
29854 # It is not useful on other systems. If it contains results you don't
29855 # want to keep, you may remove or edit it.
29857 # config.status only pays attention to the cache file if you give it
29858 # the --recheck option to rerun configure.
29860 # `ac_cv_env_foo' variables (set or unset) will be overridden when
29861 # loading this file, other *unset* `ac_cv_foo' will be assigned the
29862 # following values.
29866 # The following way of writing the cache mishandles newlines in values,
29867 # but we know of no workaround that is simple, portable, and efficient.
29868 # So, we kill variables containing newlines.
29869 # Ultrix sh set writes to stderr and can't be redirected directly,
29870 # and sets the high bit in the cache file unless we assign to the vars.
29872 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
29873 eval ac_val=\$$ac_var
29877 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
29878 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
29881 _ | IFS | as_nl) ;; #(
29882 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
29883 *) { eval $ac_var=; unset $ac_var;} ;;
29889 case $as_nl`(ac_space=' '; set) 2>&1` in #(
29890 *${as_nl}ac_space=\ *)
29891 # `set' does not quote correctly, so add quotes: double-quote
29892 # substitution turns \\\\ into \\, and sed turns \\ into \.
29895 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
29898 # `set' quotes correctly as required by POSIX, so do not add quotes.
29899 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
29908 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
29910 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
29912 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
29913 if test -w "$cache_file"; then
29914 test "x$cache_file" != "x/dev/null" &&
29915 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
29916 $as_echo "$as_me: updating cache $cache_file" >&6;}
29917 cat confcache >$cache_file
29919 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
29920 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
29925 test "x$prefix" = xNONE && prefix=$ac_default_prefix
29926 # Let make expand exec_prefix.
29927 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
29929 DEFS=-DHAVE_CONFIG_H
29933 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
29934 # 1. Remove the extension, and $U if already installed.
29935 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
29936 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
29937 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
29938 # will be set to the directory where LIBOBJS objects are built.
29939 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
29940 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
29942 LIBOBJS=$ac_libobjs
29944 LTLIBOBJS=$ac_ltlibobjs
29949 : ${CONFIG_STATUS=./config.status}
29951 ac_clean_files_save=$ac_clean_files
29952 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
29953 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
29954 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
29956 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
29958 # Generated by $as_me.
29959 # Run this file to recreate the current configuration.
29960 # Compiler output produced by configure, useful for debugging
29961 # configure, is in config.log if it exists.
29964 ac_cs_recheck=false
29967 SHELL=\${CONFIG_SHELL-$SHELL}
29970 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
29971 ## -------------------- ##
29972 ## M4sh Initialization. ##
29973 ## -------------------- ##
29975 # Be more Bourne compatible
29976 DUALCASE=1; export DUALCASE # for MKS sh
29977 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
29980 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
29981 # is contrary to our usage. Disable this feature.
29982 alias -g '${1+"$@"}'='"$@"'
29983 setopt NO_GLOB_SUBST
29985 case `(set -o) 2>/dev/null` in #(
29997 # Printing a long string crashes Solaris 7 /usr/bin/printf.
29998 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
29999 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
30000 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
30001 # Prefer a ksh shell builtin over an external printf program on Solaris,
30002 # but without wasting forks for bash or zsh.
30003 if test -z "$BASH_VERSION$ZSH_VERSION" \
30004 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
30005 as_echo='print -r --'
30006 as_echo_n='print -rn --'
30007 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
30008 as_echo='printf %s\n'
30009 as_echo_n='printf %s'
30011 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
30012 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
30013 as_echo_n='/usr/ucb/echo -n'
30015 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
30016 as_echo_n_body='eval
30020 expr "X$arg" : "X\\(.*\\)$as_nl";
30021 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
30023 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
30025 export as_echo_n_body
30026 as_echo_n='sh -c $as_echo_n_body as_echo'
30028 export as_echo_body
30029 as_echo='sh -c $as_echo_body as_echo'
30032 # The user is always right.
30033 if test "${PATH_SEPARATOR+set}" != set; then
30035 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
30036 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
30043 # We need space, tab and new line, in precisely that order. Quoting is
30044 # there to prevent editors from complaining about space-tab.
30045 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
30046 # splitting by setting IFS to empty value.)
30049 # Find who we are. Look in the path if we contain no directory separator.
30051 *[\\/]* ) as_myself=$0 ;;
30052 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30053 for as_dir in $PATH
30056 test -z "$as_dir" && as_dir=.
30057 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
30063 # We did not find ourselves, most probably we were run as `sh COMMAND'
30064 # in which case we are not to be found in the path.
30065 if test "x$as_myself" = x; then
30068 if test ! -f "$as_myself"; then
30069 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
30073 # Unset variables that we do not need and which cause bugs (e.g. in
30074 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
30075 # suppresses any "Segmentation fault" message there. '((' could
30076 # trigger a bug in pdksh 5.2.14.
30077 for as_var in BASH_ENV ENV MAIL MAILPATH
30078 do eval test x\${$as_var+set} = xset \
30079 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
30092 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
30095 # as_fn_error ERROR [LINENO LOG_FD]
30096 # ---------------------------------
30097 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
30098 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
30099 # script with status $?, using 1 if that was 0.
30102 as_status=$?; test $as_status -eq 0 && as_status=1
30104 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
30105 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
30107 $as_echo "$as_me: error: $1" >&2
30108 as_fn_exit $as_status
30112 # as_fn_set_status STATUS
30113 # -----------------------
30114 # Set $? to STATUS, without forking.
30115 as_fn_set_status ()
30118 } # as_fn_set_status
30120 # as_fn_exit STATUS
30121 # -----------------
30122 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
30126 as_fn_set_status $1
30132 # Portably unset VAR.
30135 { eval $1=; unset $1;}
30137 as_unset=as_fn_unset
30138 # as_fn_append VAR VALUE
30139 # ----------------------
30140 # Append the text in VALUE to the end of the definition contained in VAR. Take
30141 # advantage of any shell optimizations that allow amortized linear growth over
30142 # repeated appends, instead of the typical quadratic growth present in naive
30144 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
30145 eval 'as_fn_append ()
30156 # as_fn_arith ARG...
30157 # ------------------
30158 # Perform arithmetic evaluation on the ARGs, and store the result in the
30159 # global $as_val. Take advantage of shells that can avoid forks. The arguments
30160 # must be portable across $(()) and expr.
30161 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
30162 eval 'as_fn_arith ()
30169 as_val=`expr "$@" || test $? -eq 1`
30174 if expr a : '\(a\)' >/dev/null 2>&1 &&
30175 test "X`expr 00001 : '.*\(...\)'`" = X001; then
30181 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
30182 as_basename=basename
30187 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
30193 as_me=`$as_basename -- "$0" ||
30194 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
30195 X"$0" : 'X\(//\)$' \| \
30196 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
30198 sed '/^.*\/\([^/][^/]*\)\/*$/{
30212 # Avoid depending upon Character Ranges.
30213 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
30214 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
30215 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
30216 as_cr_digits='0123456789'
30217 as_cr_alnum=$as_cr_Letters$as_cr_digits
30219 ECHO_C= ECHO_N= ECHO_T=
30220 case `echo -n x` in #(((((
30222 case `echo 'xy\c'` in
30223 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
30225 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
30232 rm -f conf$$ conf$$.exe conf$$.file
30233 if test -d conf$$.dir; then
30234 rm -f conf$$.dir/conf$$.file
30237 mkdir conf$$.dir 2>/dev/null
30239 if (echo >conf$$.file) 2>/dev/null; then
30240 if ln -s conf$$.file conf$$ 2>/dev/null; then
30242 # ... but there are two gotchas:
30243 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
30244 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
30245 # In both cases, we have to default to `cp -p'.
30246 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
30248 elif ln conf$$.file conf$$ 2>/dev/null; then
30256 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
30257 rmdir conf$$.dir 2>/dev/null
30262 # Create "$as_dir" as a directory, including parents if necessary.
30267 -*) as_dir=./$as_dir;;
30269 test -d "$as_dir" || eval $as_mkdir_p || {
30273 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
30274 *) as_qdir=$as_dir;;
30276 as_dirs="'$as_qdir' $as_dirs"
30277 as_dir=`$as_dirname -- "$as_dir" ||
30278 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30279 X"$as_dir" : 'X\(//\)[^/]' \| \
30280 X"$as_dir" : 'X\(//\)$' \| \
30281 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
30282 $as_echo X"$as_dir" |
30283 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30287 /^X\(\/\/\)[^/].*/{
30300 test -d "$as_dir" && break
30302 test -z "$as_dirs" || eval "mkdir $as_dirs"
30303 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
30307 if mkdir -p . 2>/dev/null; then
30308 as_mkdir_p='mkdir -p "$as_dir"'
30310 test -d ./-p && rmdir ./-p
30314 if test -x / >/dev/null 2>&1; then
30315 as_test_x='test -x'
30317 if ls -dL / >/dev/null 2>&1; then
30324 if test -d "$1"; then
30330 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
30331 ???[sx]*):;;*)false;;esac;fi
30335 as_executable_p=$as_test_x
30337 # Sed expression to map a string onto a valid CPP name.
30338 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
30340 # Sed expression to map a string onto a valid variable name.
30341 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
30345 ## ----------------------------------- ##
30346 ## Main body of $CONFIG_STATUS script. ##
30347 ## ----------------------------------- ##
30349 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
30351 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30352 # Save the log message, to keep $0 and so on meaningful, and to
30353 # report actual input values of CONFIG_FILES etc. instead of their
30354 # values after options handling.
30356 This file was extended by $as_me, which was
30357 generated by GNU Autoconf 2.65. Invocation command line was
30359 CONFIG_FILES = $CONFIG_FILES
30360 CONFIG_HEADERS = $CONFIG_HEADERS
30361 CONFIG_LINKS = $CONFIG_LINKS
30362 CONFIG_COMMANDS = $CONFIG_COMMANDS
30365 on `(hostname || uname -n) 2>/dev/null | sed 1q`
30370 case $ac_config_files in *"
30371 "*) set x $ac_config_files; shift; ac_config_files=$*;;
30374 case $ac_config_headers in *"
30375 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
30379 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30380 # Files that config.status was made for.
30381 config_files="$ac_config_files"
30382 config_headers="$ac_config_headers"
30383 config_commands="$ac_config_commands"
30387 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30389 \`$as_me' instantiates files and other configuration actions
30390 from templates according to the current configuration. Unless the files
30391 and actions are specified as TAGs, all are instantiated by default.
30393 Usage: $0 [OPTION]... [TAG]...
30395 -h, --help print this help, then exit
30396 -V, --version print version number and configuration settings, then exit
30397 --config print configuration, then exit
30398 -q, --quiet, --silent
30399 do not print progress messages
30400 -d, --debug don't remove temporary files
30401 --recheck update $as_me by reconfiguring in the same conditions
30402 --file=FILE[:TEMPLATE]
30403 instantiate the configuration file FILE
30404 --header=FILE[:TEMPLATE]
30405 instantiate the configuration header FILE
30407 Configuration files:
30410 Configuration headers:
30413 Configuration commands:
30416 Report bugs to the package provider."
30419 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30420 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
30423 configured by $0, generated by GNU Autoconf 2.65,
30424 with options \\"\$ac_cs_config\\"
30426 Copyright (C) 2009 Free Software Foundation, Inc.
30427 This config.status script is free software; the Free Software Foundation
30428 gives unlimited permission to copy, distribute and modify it."
30434 test -n "\$AWK" || AWK=awk
30437 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30438 # The default lists apply if the user does not specify any file.
30444 ac_option=`expr "X$1" : 'X\([^=]*\)='`
30445 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
30456 # Handling of the options.
30457 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
30459 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
30460 $as_echo "$ac_cs_version"; exit ;;
30461 --config | --confi | --conf | --con | --co | --c )
30462 $as_echo "$ac_cs_config"; exit ;;
30463 --debug | --debu | --deb | --de | --d | -d )
30465 --file | --fil | --fi | --f )
30468 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
30470 as_fn_append CONFIG_FILES " '$ac_optarg'"
30471 ac_need_defaults=false;;
30472 --header | --heade | --head | --hea )
30475 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
30477 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
30478 ac_need_defaults=false;;
30480 # Conflict between --help and --header
30481 as_fn_error "ambiguous option: \`$1'
30482 Try \`$0 --help' for more information.";;
30483 --help | --hel | -h )
30484 $as_echo "$ac_cs_usage"; exit ;;
30485 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
30486 | -silent | --silent | --silen | --sile | --sil | --si | --s)
30489 # This is an error.
30490 -*) as_fn_error "unrecognized option: \`$1'
30491 Try \`$0 --help' for more information." ;;
30493 *) as_fn_append ac_config_targets " $1"
30494 ac_need_defaults=false ;;
30500 ac_configure_extra_args=
30502 if $ac_cs_silent; then
30504 ac_configure_extra_args="$ac_configure_extra_args --silent"
30508 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30509 if \$ac_cs_recheck; then
30510 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
30512 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
30513 CONFIG_SHELL='$SHELL'
30514 export CONFIG_SHELL
30519 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30523 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
30524 ## Running $as_me. ##
30530 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30536 # The HP-UX ksh and POSIX shell print the target directory to stdout
30537 # if CDPATH is set.
30538 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
30540 sed_quote_subst='$sed_quote_subst'
30541 double_quote_subst='$double_quote_subst'
30542 delay_variable_subst='$delay_variable_subst'
30543 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
30544 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
30545 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
30546 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
30547 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
30548 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
30549 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
30550 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
30551 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
30552 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
30553 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
30554 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
30555 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
30556 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
30557 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
30558 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
30559 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
30560 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
30561 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
30562 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
30563 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
30564 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
30565 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
30566 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
30567 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
30568 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
30569 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
30570 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30571 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
30572 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
30573 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
30574 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
30575 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
30576 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
30577 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
30578 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30579 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30580 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30581 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
30582 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
30583 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
30584 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
30585 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
30586 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
30587 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"`'
30588 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"`'
30589 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
30590 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
30591 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
30592 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
30593 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
30594 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
30595 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
30596 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
30597 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
30598 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
30599 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
30600 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
30601 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
30602 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
30603 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
30604 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
30605 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30606 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30607 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
30608 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
30609 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
30610 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
30611 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
30612 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30613 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30614 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30615 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30616 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30617 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30618 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
30619 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
30620 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
30621 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
30622 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
30623 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
30624 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
30625 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
30626 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
30627 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
30628 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
30629 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
30630 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
30631 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
30632 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
30633 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30634 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
30635 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
30636 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30637 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
30638 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
30639 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
30640 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
30641 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
30642 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
30643 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
30644 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
30645 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
30646 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
30647 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
30648 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30649 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30650 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30651 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
30652 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
30653 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
30654 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
30655 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
30656 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
30657 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
30658 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
30659 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
30660 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
30661 compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
30662 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
30663 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
30664 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
30665 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
30666 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
30667 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30668 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30669 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30670 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30671 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30672 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30673 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30674 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30675 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30676 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30677 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30678 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30679 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30680 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30681 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30682 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30683 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30684 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30685 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30686 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30687 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30688 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30689 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30690 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30691 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30692 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30693 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30694 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30695 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30696 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30697 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30698 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30699 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30700 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30701 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30702 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30703 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30704 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30705 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30706 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30707 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30708 compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30709 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30710 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30711 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30712 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30713 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30716 LTCFLAGS='$LTCFLAGS'
30717 compiler='$compiler_DEFAULT'
30719 # Quote evaled strings.
30731 deplibs_check_method \
30740 lt_cv_sys_global_symbol_pipe \
30741 lt_cv_sys_global_symbol_to_cdecl \
30742 lt_cv_sys_global_symbol_to_c_name_address \
30743 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
30746 lt_prog_compiler_no_builtin_flag \
30747 lt_prog_compiler_wl \
30748 lt_prog_compiler_pic \
30749 lt_prog_compiler_static \
30750 lt_cv_prog_compiler_c_o \
30758 export_dynamic_flag_spec \
30759 whole_archive_flag_spec \
30760 compiler_needs_object \
30762 allow_undefined_flag \
30763 no_undefined_flag \
30764 hardcode_libdir_flag_spec \
30765 hardcode_libdir_flag_spec_ld \
30766 hardcode_libdir_separator \
30771 variables_saved_for_relink \
30773 library_names_spec \
30778 compiler_lib_search_dirs \
30783 compiler_lib_search_path \
30786 lt_prog_compiler_no_builtin_flag_CXX \
30787 lt_prog_compiler_wl_CXX \
30788 lt_prog_compiler_pic_CXX \
30789 lt_prog_compiler_static_CXX \
30790 lt_cv_prog_compiler_c_o_CXX \
30791 export_dynamic_flag_spec_CXX \
30792 whole_archive_flag_spec_CXX \
30793 compiler_needs_object_CXX \
30795 allow_undefined_flag_CXX \
30796 no_undefined_flag_CXX \
30797 hardcode_libdir_flag_spec_CXX \
30798 hardcode_libdir_flag_spec_ld_CXX \
30799 hardcode_libdir_separator_CXX \
30800 fix_srcfile_path_CXX \
30801 exclude_expsyms_CXX \
30802 include_expsyms_CXX \
30803 file_list_spec_CXX \
30804 compiler_lib_search_dirs_CXX \
30805 predep_objects_CXX \
30806 postdep_objects_CXX \
30809 compiler_lib_search_path_CXX; do
30810 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
30811 *[\\\\\\\`\\"\\\$]*)
30812 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
30815 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
30820 # Double-quote double-evaled strings.
30821 for var in reload_cmds \
30822 old_postinstall_cmds \
30823 old_postuninstall_cmds \
30825 extract_expsyms_cmds \
30826 old_archive_from_new_cmds \
30827 old_archive_from_expsyms_cmds \
30829 archive_expsym_cmds \
30831 module_expsym_cmds \
30832 export_symbols_cmds \
30835 postuninstall_cmds \
30837 sys_lib_search_path_spec \
30838 sys_lib_dlsearch_path_spec \
30839 old_archive_cmds_CXX \
30840 old_archive_from_new_cmds_CXX \
30841 old_archive_from_expsyms_cmds_CXX \
30843 archive_expsym_cmds_CXX \
30845 module_expsym_cmds_CXX \
30846 export_symbols_cmds_CXX \
30847 prelink_cmds_CXX; do
30848 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
30849 *[\\\\\\\`\\"\\\$]*)
30850 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
30853 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
30858 # Fix-up fallback echo if it was mangled by the above quoting rules.
30860 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
30864 ac_aux_dir='$ac_aux_dir'
30865 xsi_shell='$xsi_shell'
30866 lt_shell_append='$lt_shell_append'
30868 # See if we are running on zsh, and set the options which allow our
30869 # commands through without removal of \ escapes INIT.
30870 if test -n "\${ZSH_VERSION+set}" ; then
30871 setopt NO_GLOB_SUBST
30877 TIMESTAMP='$TIMESTAMP'
30885 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
30886 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
30888 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
30889 # Capture the value of LINGUAS because we need it to compute CATALOGS.
30890 LINGUAS="${LINGUAS-%UNSET%}"
30895 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30897 # Handling of arguments.
30898 for ac_config_target in $ac_config_targets
30900 case $ac_config_target in
30901 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
30902 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
30903 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
30904 "autoconf/Make.common") CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
30905 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
30906 "manpages/Makefile") CONFIG_FILES="$CONFIG_FILES manpages/Makefile" ;;
30907 "scripts/btraceback") CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
30908 "scripts/bconsole") CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
30909 "scripts/bacula") CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
30910 "scripts/bacula-ctl-dir") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-dir" ;;
30911 "scripts/bacula-ctl-fd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-fd" ;;
30912 "scripts/bacula-ctl-sd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-sd" ;;
30913 "scripts/devel_bacula") CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
30914 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
30915 "scripts/logrotate") CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
30916 "scripts/bacula.desktop.gnome1") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
30917 "scripts/bacula.desktop.gnome2") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
30918 "scripts/bacula.desktop.gnome1.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
30919 "scripts/bacula.desktop.gnome2.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
30920 "scripts/bacula.desktop.gnome1.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
30921 "scripts/bacula.desktop.gnome2.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
30922 "scripts/bgnome-console.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bgnome-console.console_apps" ;;
30923 "scripts/mtx-changer") CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
30924 "scripts/disk-changer") CONFIG_FILES="$CONFIG_FILES scripts/disk-changer" ;;
30925 "scripts/dvd-handler") CONFIG_FILES="$CONFIG_FILES scripts/dvd-handler" ;;
30926 "scripts/dvd-simulator") CONFIG_FILES="$CONFIG_FILES scripts/dvd-simulator" ;;
30927 "scripts/bacula-tray-monitor.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bacula-tray-monitor.desktop" ;;
30928 "scripts/logwatch/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/Makefile" ;;
30929 "scripts/logwatch/logfile.bacula.conf") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/logfile.bacula.conf" ;;
30930 "scripts/wxconsole.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.console_apps" ;;
30931 "scripts/wxconsole.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.consolehelper" ;;
30932 "scripts/wxconsole.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.xsu" ;;
30933 "scripts/bat.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop" ;;
30934 "scripts/bat.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.xsu" ;;
30935 "scripts/bat.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.consolehelper" ;;
30936 "scripts/bat.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bat.console_apps" ;;
30937 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
30938 "src/host.h") CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
30939 "src/console/Makefile") CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
30940 "src/console/bconsole.conf") CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
30941 "src/qt-console/tray-monitor/tray-monitor.pro") CONFIG_FILES="$CONFIG_FILES src/qt-console/tray-monitor/tray-monitor.pro" ;;
30942 "src/qt-console/tray-monitor/tray-monitor.conf") CONFIG_FILES="$CONFIG_FILES src/qt-console/tray-monitor/tray-monitor.conf" ;;
30943 "src/qt-console/bat.conf") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.conf" ;;
30944 "src/qt-console/bat.pro") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro" ;;
30945 "src/qt-console/bat.pro.mingw32") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro.mingw32" ;;
30946 "src/qt-console/install_conf_file") CONFIG_FILES="$CONFIG_FILES src/qt-console/install_conf_file" ;;
30947 "src/wx-console/Makefile") CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
30948 "src/wx-console/bwx-console.conf") CONFIG_FILES="$CONFIG_FILES src/wx-console/bwx-console.conf" ;;
30949 "src/tray-monitor/Makefile") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/Makefile" ;;
30950 "src/tray-monitor/tray-monitor.conf") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/tray-monitor.conf" ;;
30951 "src/dird/Makefile") CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
30952 "src/dird/bacula-dir.conf") CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
30953 "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
30954 "src/stored/Makefile") CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
30955 "src/stored/bacula-sd.conf") CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
30956 "src/filed/Makefile") CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
30957 "src/filed/bacula-fd.conf") CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
30958 "src/cats/Makefile") CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
30959 "src/cats/make_catalog_backup.pl") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup.pl" ;;
30960 "src/cats/make_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
30961 "src/cats/delete_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
30962 "src/cats/create_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
30963 "src/cats/update_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
30964 "src/cats/make_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
30965 "src/cats/grant_postgresql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
30966 "src/cats/drop_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
30967 "src/cats/drop_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
30968 "src/cats/create_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
30969 "src/cats/update_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
30970 "src/cats/make_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
30971 "src/cats/grant_mysql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
30972 "src/cats/drop_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
30973 "src/cats/drop_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
30974 "src/cats/create_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite3_database" ;;
30975 "src/cats/update_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite3_tables" ;;
30976 "src/cats/make_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite3_tables" ;;
30977 "src/cats/grant_sqlite3_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite3_privileges" ;;
30978 "src/cats/drop_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_tables" ;;
30979 "src/cats/drop_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_database" ;;
30980 "src/cats/create_ingres_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_ingres_database" ;;
30981 "src/cats/update_ingres_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_ingres_tables" ;;
30982 "src/cats/make_ingres_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_ingres_tables" ;;
30983 "src/cats/grant_ingres_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_ingres_privileges" ;;
30984 "src/cats/drop_ingres_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_ingres_tables" ;;
30985 "src/cats/drop_ingres_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_ingres_database" ;;
30986 "src/cats/sqlite") CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
30987 "src/cats/mysql") CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
30988 "src/cats/create_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
30989 "src/cats/update_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
30990 "src/cats/grant_bacula_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
30991 "src/cats/make_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
30992 "src/cats/drop_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
30993 "src/cats/drop_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
30994 "src/findlib/Makefile") CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
30995 "src/tools/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
30996 "src/plugins/fd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/fd/Makefile" ;;
30997 "src/plugins/sd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/sd/Makefile" ;;
30998 "src/plugins/dir/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/dir/Makefile" ;;
30999 "src/win32/Makefile.inc") CONFIG_FILES="$CONFIG_FILES src/win32/Makefile.inc" ;;
31000 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
31001 "updatedb/update_mysql_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_9_to_10" ;;
31002 "updatedb/update_sqlite3_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_9_to_10" ;;
31003 "updatedb/update_postgresql_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_9_to_10" ;;
31004 "updatedb/update_mysql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_10_to_11" ;;
31005 "updatedb/update_sqlite3_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_10_to_11" ;;
31006 "updatedb/update_postgresql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_10_to_11" ;;
31007 "updatedb/update_mysql_tables_11_to_12") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_11_to_12" ;;
31008 "updatedb/update_sqlite3_tables_11_to_12") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_11_to_12" ;;
31009 "updatedb/update_postgresql_tables_11_to_12") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_11_to_12" ;;
31010 "examples/nagios/check_bacula/Makefile") CONFIG_FILES="$CONFIG_FILES examples/nagios/check_bacula/Makefile" ;;
31011 "$PFILES") CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
31012 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
31014 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
31019 # If the user did not use the arguments to specify the items to instantiate,
31020 # then the envvar interface is used. Set only those that are not.
31021 # We use the long form for the default assignment because of an extremely
31022 # bizarre bug on SunOS 4.1.3.
31023 if $ac_need_defaults; then
31024 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
31025 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
31026 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
31029 # Have a temporary directory for convenience. Make it in the build tree
31030 # simply because there is no reason against having it here, and in addition,
31031 # creating and moving files from /tmp can sometimes cause problems.
31032 # Hook for its removal unless debugging.
31033 # Note that there is a small window in which the directory will not be cleaned:
31034 # after its creation but before its name has been assigned to `$tmp'.
31038 trap 'exit_status=$?
31039 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
31041 trap 'as_fn_exit 1' 1 2 13 15
31043 # Create a (secure) tmp directory for tmp files.
31046 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
31047 test -n "$tmp" && test -d "$tmp"
31050 tmp=./conf$$-$RANDOM
31051 (umask 077 && mkdir "$tmp")
31052 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
31054 # Set up the scripts for CONFIG_FILES section.
31055 # No need to generate them if there are no CONFIG_FILES.
31056 # This happens for instance with `./config.status config.h'.
31057 if test -n "$CONFIG_FILES"; then
31059 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
31060 ac_cs_awk_getline=:
31061 ac_cs_awk_pipe_init=
31062 ac_cs_awk_read_file='
31063 while ((getline aline < (F[key])) > 0)
31066 ac_cs_awk_pipe_fini=
31068 ac_cs_awk_getline=false
31069 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
31070 ac_cs_awk_read_file='
31072 print "cat " F[key] " &&"
31073 '$ac_cs_awk_pipe_init
31074 # The final `:' finishes the AND list.
31075 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
31077 ac_cr=`echo X | tr X '\015'`
31078 # On cygwin, bash can eat \r inside `` if the user requested igncr.
31079 # But we know of no other shell where ac_cr would be empty at this
31080 # point, so we can use a bashism as a fallback.
31081 if test "x$ac_cr" = x; then
31082 eval ac_cr=\$\'\\r\'
31084 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
31085 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
31088 ac_cs_awk_cr=$ac_cr
31091 echo 'BEGIN {' >"$tmp/subs1.awk" &&
31094 # Create commands to substitute file output variables.
31096 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
31097 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
31098 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
31101 } >conf$$files.sh &&
31102 . ./conf$$files.sh ||
31103 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
31104 rm -f conf$$files.sh
31107 echo "cat >conf$$subs.awk <<_ACEOF" &&
31108 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
31110 } >conf$$subs.sh ||
31111 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
31112 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
31114 for ac_last_try in false false false false false :; do
31115 . ./conf$$subs.sh ||
31116 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
31118 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
31119 if test $ac_delim_n = $ac_delim_num; then
31121 elif $ac_last_try; then
31122 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
31124 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
31127 rm -f conf$$subs.sh
31129 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31130 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
31134 s/^/S["/; s/!.*/"]=/
31144 s/\(.\{148\}\)..*/\1/
31146 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
31151 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
31158 s/\(.\{148\}\)..*/\1/
31160 s/["\\]/\\&/g; s/^/"/; s/$/"/
31164 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
31169 ' <conf$$subs.awk | sed '
31174 ' >>$CONFIG_STATUS || ac_write_fail=1
31175 rm -f conf$$subs.awk
31176 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31178 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
31179 for (key in S) S_is_set[key] = 1
31181 \$ac_cs_awk_pipe_init
31185 nfields = split(line, field, "@")
31187 len = length(field[1])
31188 for (i = 2; i < nfields; i++) {
31190 keylen = length(key)
31191 if (S_is_set[key]) {
31193 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
31194 len += length(value) + length(field[++i])
31199 if (nfields == 3 && !substed) {
31201 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
31202 \$ac_cs_awk_read_file
31208 \$ac_cs_awk_pipe_fini
31211 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31212 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
31213 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
31216 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
31217 || as_fn_error "could not setup config files machinery" "$LINENO" 5
31220 # VPATH may cause trouble with some makes, so we remove $(srcdir),
31221 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
31222 # trailing colons and then remove the whole line if VPATH becomes empty
31223 # (actually we leave an empty line to preserve line numbers).
31224 if test "x$srcdir" = x.; then
31225 ac_vpsub='/^[ ]*VPATH[ ]*=/{
31226 s/:*\$(srcdir):*/:/
31227 s/:*\${srcdir}:*/:/
31229 s/^\([^=]*=[ ]*\):*/\1/
31235 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31236 fi # test -n "$CONFIG_FILES"
31238 # Set up the scripts for CONFIG_HEADERS section.
31239 # No need to generate them if there are no CONFIG_HEADERS.
31240 # This happens for instance with `./config.status Makefile'.
31241 if test -n "$CONFIG_HEADERS"; then
31242 cat >"$tmp/defines.awk" <<\_ACAWK ||
31246 # Transform confdefs.h into an awk script `defines.awk', embedded as
31247 # here-document in config.status, that substitutes the proper values into
31248 # config.h.in to produce config.h.
31250 # Create a delimiter string that does not exist in confdefs.h, to ease
31251 # handling of long lines.
31253 for ac_last_try in false false :; do
31254 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
31255 if test -z "$ac_t"; then
31257 elif $ac_last_try; then
31258 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
31260 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
31264 # For the awk script, D is an array of macro values keyed by name,
31265 # likewise P contains macro parameters if any. Preserve backslash
31266 # newline sequences.
31268 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
31270 s/.\{148\}/&'"$ac_delim"'/g
31273 s/^[ ]*#[ ]*define[ ][ ]*/ /
31280 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
31282 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
31286 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
31287 D["\1"]=" \3\\\\\\n"\\/p
31289 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
31294 s/.\{148\}/&'"$ac_delim"'/g
31299 s/["\\]/\\&/g; s/^/"/; s/$/"/p
31302 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
31304 ' <confdefs.h | sed '
31305 s/'"$ac_delim"'/"\\\
31306 "/g' >>$CONFIG_STATUS || ac_write_fail=1
31308 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31309 for (key in D) D_is_set[key] = 1
31312 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
31314 split(line, arg, " ")
31315 if (arg[1] == "#") {
31319 defundef = substr(arg[1], 2)
31322 split(mac1, mac2, "(") #)
31324 prefix = substr(line, 1, index(line, defundef) - 1)
31325 if (D_is_set[macro]) {
31326 # Preserve the white space surrounding the "#".
31327 print prefix "define", macro P[macro] D[macro]
31330 # Replace #undef with comments. This is necessary, for example,
31331 # in the case of _POSIX_SOURCE, which is predefined and required
31332 # on some systems where configure will not decide to define it.
31333 if (defundef == "undef") {
31334 print "/*", prefix defundef, macro, "*/"
31342 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31343 as_fn_error "could not setup config headers machinery" "$LINENO" 5
31344 fi # test -n "$CONFIG_HEADERS"
31347 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
31352 :[FHLC]) ac_mode=$ac_tag; continue;;
31354 case $ac_mode$ac_tag in
31356 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
31357 :[FH]-) ac_tag=-:-;;
31358 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
31375 -) ac_f="$tmp/stdin";;
31376 *) # Look for the file first in the build tree, then in the source tree
31377 # (if the path is not absolute). The absolute path cannot be DOS-style,
31378 # because $ac_f cannot contain `:'.
31382 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
31384 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
31386 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
31387 as_fn_append ac_file_inputs " '$ac_f'"
31390 # Let's still pretend it is `configure' which instantiates (i.e., don't
31391 # use $as_me), people would be surprised to read:
31392 # /* config.h. Generated by config.status. */
31393 configure_input='Generated from '`
31394 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
31396 if test x"$ac_file" != x-; then
31397 configure_input="$ac_file. $configure_input"
31398 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
31399 $as_echo "$as_me: creating $ac_file" >&6;}
31401 # Neutralize special characters interpreted by sed in replacement strings.
31402 case $configure_input in #(
31403 *\&* | *\|* | *\\* )
31404 ac_sed_conf_input=`$as_echo "$configure_input" |
31405 sed 's/[\\\\&|]/\\\\&/g'`;; #(
31406 *) ac_sed_conf_input=$configure_input;;
31410 *:-:* | *:-) cat >"$tmp/stdin" \
31411 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
31416 ac_dir=`$as_dirname -- "$ac_file" ||
31417 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31418 X"$ac_file" : 'X\(//\)[^/]' \| \
31419 X"$ac_file" : 'X\(//\)$' \| \
31420 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
31421 $as_echo X"$ac_file" |
31422 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31426 /^X\(\/\/\)[^/].*/{
31439 as_dir="$ac_dir"; as_fn_mkdir_p
31443 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
31445 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
31446 # A ".." for each directory in $ac_dir_suffix.
31447 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
31448 case $ac_top_builddir_sub in
31449 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
31450 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
31453 ac_abs_top_builddir=$ac_pwd
31454 ac_abs_builddir=$ac_pwd$ac_dir_suffix
31455 # for backward compatibility:
31456 ac_top_builddir=$ac_top_build_prefix
31459 .) # We are building in place.
31461 ac_top_srcdir=$ac_top_builddir_sub
31462 ac_abs_top_srcdir=$ac_pwd ;;
31463 [\\/]* | ?:[\\/]* ) # Absolute name.
31464 ac_srcdir=$srcdir$ac_dir_suffix;
31465 ac_top_srcdir=$srcdir
31466 ac_abs_top_srcdir=$srcdir ;;
31467 *) # Relative name.
31468 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
31469 ac_top_srcdir=$ac_top_build_prefix$srcdir
31470 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
31472 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
31482 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
31483 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
31487 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31488 # If the template does not know about datarootdir, expand it.
31489 # FIXME: This hack should be removed a few years after 2.60.
31490 ac_datarootdir_hack=; ac_datarootdir_seen=
31501 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
31502 *datarootdir*) ac_datarootdir_seen=yes;;
31503 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
31504 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
31505 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
31507 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31508 ac_datarootdir_hack='
31509 s&@datadir@&$datadir&g
31510 s&@docdir@&$docdir&g
31511 s&@infodir@&$infodir&g
31512 s&@localedir@&$localedir&g
31513 s&@mandir@&$mandir&g
31514 s&\\\${datarootdir}&$datarootdir&g' ;;
31518 # Neutralize VPATH when `$srcdir' = `.'.
31519 # Shell code in configure.ac might set extrasub.
31520 # FIXME: do we really want to maintain this feature?
31521 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31522 ac_sed_extra="$ac_vpsub
31525 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31527 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31528 s|@configure_input@|$ac_sed_conf_input|;t t
31529 s&@top_builddir@&$ac_top_builddir_sub&;t t
31530 s&@top_build_prefix@&$ac_top_build_prefix&;t t
31531 s&@srcdir@&$ac_srcdir&;t t
31532 s&@abs_srcdir@&$ac_abs_srcdir&;t t
31533 s&@top_srcdir@&$ac_top_srcdir&;t t
31534 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
31535 s&@builddir@&$ac_builddir&;t t
31536 s&@abs_builddir@&$ac_abs_builddir&;t t
31537 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
31538 s&@INSTALL@&$ac_INSTALL&;t t
31539 $ac_datarootdir_hack
31541 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
31542 if $ac_cs_awk_getline; then
31543 $AWK -f "$tmp/subs.awk"
31545 $AWK -f "$tmp/subs.awk" | $SHELL
31547 || as_fn_error "could not create $ac_file" "$LINENO" 5
31549 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
31550 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
31551 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
31552 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31553 which seems to be undefined. Please make sure it is defined." >&5
31554 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31555 which seems to be undefined. Please make sure it is defined." >&2;}
31559 -) cat "$tmp/out" && rm -f "$tmp/out";;
31560 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
31562 || as_fn_error "could not create $ac_file" "$LINENO" 5
31568 if test x"$ac_file" != x-; then
31570 $as_echo "/* $configure_input */" \
31571 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
31572 } >"$tmp/config.h" \
31573 || as_fn_error "could not create $ac_file" "$LINENO" 5
31574 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
31575 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
31576 $as_echo "$as_me: $ac_file is unchanged" >&6;}
31579 mv "$tmp/config.h" "$ac_file" \
31580 || as_fn_error "could not create $ac_file" "$LINENO" 5
31583 $as_echo "/* $configure_input */" \
31584 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
31585 || as_fn_error "could not create -" "$LINENO" 5
31589 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
31590 $as_echo "$as_me: executing $ac_file commands" >&6;}
31595 case $ac_file$ac_mode in
31598 # See if we are running on zsh, and set the options which allow our
31599 # commands through without removal of \ escapes.
31600 if test -n "${ZSH_VERSION+set}" ; then
31601 setopt NO_GLOB_SUBST
31604 cfgfile="${ofile}T"
31605 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
31608 cat <<_LT_EOF >> "$cfgfile"
31611 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
31612 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
31613 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
31614 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
31616 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
31617 # 2006, 2007, 2008 Free Software Foundation, Inc.
31618 # Written by Gordon Matzigkeit, 1996
31620 # This file is part of GNU Libtool.
31622 # GNU Libtool is free software; you can redistribute it and/or
31623 # modify it under the terms of the GNU General Public License as
31624 # published by the Free Software Foundation; either version 2 of
31625 # the License, or (at your option) any later version.
31627 # As a special exception to the GNU General Public License,
31628 # if you distribute this file as part of a program or library that
31629 # is built using GNU Libtool, you may include this file under the
31630 # same distribution terms that you use for the rest of that program.
31632 # GNU Libtool is distributed in the hope that it will be useful,
31633 # but WITHOUT ANY WARRANTY; without even the implied warranty of
31634 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
31635 # GNU General Public License for more details.
31637 # You should have received a copy of the GNU General Public License
31638 # along with GNU Libtool; see the file COPYING. If not, a copy
31639 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
31640 # obtained by writing to the Free Software Foundation, Inc.,
31641 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
31644 # The names of the tagged configurations supported by this script.
31645 available_tags="CXX "
31647 # ### BEGIN LIBTOOL CONFIG
31649 # Which release of libtool.m4 was used?
31650 macro_version=$macro_version
31651 macro_revision=$macro_revision
31653 # Whether or not to build shared libraries.
31654 build_libtool_libs=$enable_shared
31656 # Whether or not to build static libraries.
31657 build_old_libs=$enable_static
31659 # What type of objects to build.
31662 # Whether or not to optimize for fast installation.
31663 fast_install=$enable_fast_install
31666 host_alias=$host_alias
31670 # The build system.
31671 build_alias=$build_alias
31675 # A sed program that does not truncate output.
31678 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
31679 Xsed="\$SED -e 1s/^X//"
31681 # A grep program that handles long lines.
31687 # A literal string matcher.
31690 # A BSD- or MS-compatible name lister.
31693 # Whether we need soft or hard links.
31696 # What is the maximum length of a command?
31697 max_cmd_len=$max_cmd_len
31699 # Object file suffix (normally "o").
31702 # Executable file suffix (normally "").
31705 # whether the shell understands "unset".
31708 # turn spaces into newlines.
31711 # turn newlines into spaces.
31714 # How to create reloadable object files.
31715 reload_flag=$lt_reload_flag
31716 reload_cmds=$lt_reload_cmds
31718 # An object symbol dumper.
31719 OBJDUMP=$lt_OBJDUMP
31721 # Method to check whether dependent libraries are shared objects.
31722 deplibs_check_method=$lt_deplibs_check_method
31724 # Command to use when deplibs_check_method == "file_magic".
31725 file_magic_cmd=$lt_file_magic_cmd
31729 AR_FLAGS=$lt_AR_FLAGS
31731 # A symbol stripping program.
31734 # Commands used to install an old-style archive.
31736 old_postinstall_cmds=$lt_old_postinstall_cmds
31737 old_postuninstall_cmds=$lt_old_postuninstall_cmds
31742 # LTCC compiler flags.
31743 LTCFLAGS=$lt_CFLAGS
31745 # Take the output of nm and produce a listing of raw symbols and C names.
31746 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
31748 # Transform the output of nm in a proper C declaration.
31749 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
31751 # Transform the output of nm in a C name address pair.
31752 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
31754 # Transform the output of nm in a C name address pair when lib prefix is needed.
31755 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
31757 # The name of the directory that contains temporary libtool files.
31760 # Shell to use when invoking shell scripts.
31763 # An echo program that does not interpret backslashes.
31766 # Used to examine libraries when file_magic_cmd begins with "file".
31767 MAGIC_CMD=$MAGIC_CMD
31769 # Must we lock files when doing compilation?
31770 need_locks=$lt_need_locks
31772 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
31773 DSYMUTIL=$lt_DSYMUTIL
31775 # Tool to change global to local symbols on Mac OS X.
31778 # Tool to manipulate fat objects and archives on Mac OS X.
31781 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
31784 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
31785 OTOOL64=$lt_OTOOL64
31787 # Old archive suffix (normally "a").
31790 # Shared library suffix (normally ".so").
31791 shrext_cmds=$lt_shrext_cmds
31793 # The commands to extract the exported symbol list from a shared archive.
31794 extract_expsyms_cmds=$lt_extract_expsyms_cmds
31796 # Variables whose values should be saved in libtool wrapper scripts and
31797 # restored at link time.
31798 variables_saved_for_relink=$lt_variables_saved_for_relink
31800 # Do we need the "lib" prefix for modules?
31801 need_lib_prefix=$need_lib_prefix
31803 # Do we need a version for libraries?
31804 need_version=$need_version
31806 # Library versioning type.
31807 version_type=$version_type
31809 # Shared library runtime path variable.
31810 runpath_var=$runpath_var
31812 # Shared library path variable.
31813 shlibpath_var=$shlibpath_var
31815 # Is shlibpath searched before the hard-coded library search path?
31816 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
31818 # Format of library name prefix.
31819 libname_spec=$lt_libname_spec
31821 # List of archive names. First name is the real one, the rest are links.
31822 # The last name is the one that the linker finds with -lNAME
31823 library_names_spec=$lt_library_names_spec
31825 # The coded name of the library, if different from the real name.
31826 soname_spec=$lt_soname_spec
31828 # Command to use after installation of a shared archive.
31829 postinstall_cmds=$lt_postinstall_cmds
31831 # Command to use after uninstallation of a shared archive.
31832 postuninstall_cmds=$lt_postuninstall_cmds
31834 # Commands used to finish a libtool library installation in a directory.
31835 finish_cmds=$lt_finish_cmds
31837 # As "finish_cmds", except a single script fragment to be evaled but
31839 finish_eval=$lt_finish_eval
31841 # Whether we should hardcode library paths into libraries.
31842 hardcode_into_libs=$hardcode_into_libs
31844 # Compile-time system search path for libraries.
31845 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
31847 # Run-time system search path for libraries.
31848 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
31850 # Whether dlopen is supported.
31851 dlopen_support=$enable_dlopen
31853 # Whether dlopen of programs is supported.
31854 dlopen_self=$enable_dlopen_self
31856 # Whether dlopen of statically linked programs is supported.
31857 dlopen_self_static=$enable_dlopen_self_static
31859 # Commands to strip libraries.
31860 old_striplib=$lt_old_striplib
31861 striplib=$lt_striplib
31864 # The linker used to build libraries.
31867 # Commands used to build an old-style archive.
31868 old_archive_cmds=$lt_old_archive_cmds
31870 # A language specific compiler.
31873 # Is the compiler the GNU compiler?
31876 # Compiler flag to turn off builtin functions.
31877 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
31879 # How to pass a linker flag through the compiler.
31880 wl=$lt_lt_prog_compiler_wl
31882 # Additional compiler flags for building library objects.
31883 pic_flag=$lt_lt_prog_compiler_pic
31885 # Compiler flag to prevent dynamic linking.
31886 link_static_flag=$lt_lt_prog_compiler_static
31888 # Does compiler simultaneously support -c and -o options?
31889 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
31891 # Whether or not to add -lc for building shared libraries.
31892 build_libtool_need_lc=$archive_cmds_need_lc
31894 # Whether or not to disallow shared libs when runtime libs are static.
31895 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
31897 # Compiler flag to allow reflexive dlopens.
31898 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
31900 # Compiler flag to generate shared objects directly from archives.
31901 whole_archive_flag_spec=$lt_whole_archive_flag_spec
31903 # Whether the compiler copes with passing no objects directly.
31904 compiler_needs_object=$lt_compiler_needs_object
31906 # Create an old-style archive from a shared archive.
31907 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
31909 # Create a temporary old-style archive to link instead of a shared archive.
31910 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
31912 # Commands used to build a shared archive.
31913 archive_cmds=$lt_archive_cmds
31914 archive_expsym_cmds=$lt_archive_expsym_cmds
31916 # Commands used to build a loadable module if different from building
31917 # a shared archive.
31918 module_cmds=$lt_module_cmds
31919 module_expsym_cmds=$lt_module_expsym_cmds
31921 # Whether we are building with GNU ld or not.
31922 with_gnu_ld=$lt_with_gnu_ld
31924 # Flag that allows shared libraries with undefined symbols to be built.
31925 allow_undefined_flag=$lt_allow_undefined_flag
31927 # Flag that enforces no undefined symbols.
31928 no_undefined_flag=$lt_no_undefined_flag
31930 # Flag to hardcode \$libdir into a binary during linking.
31931 # This must work even if \$libdir does not exist
31932 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
31934 # If ld is used when linking, flag to hardcode \$libdir into a binary
31935 # during linking. This must work even if \$libdir does not exist.
31936 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
31938 # Whether we need a single "-rpath" flag with a separated argument.
31939 hardcode_libdir_separator=$lt_hardcode_libdir_separator
31941 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
31942 # DIR into the resulting binary.
31943 hardcode_direct=$hardcode_direct
31945 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
31946 # DIR into the resulting binary and the resulting library dependency is
31947 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
31948 # library is relocated.
31949 hardcode_direct_absolute=$hardcode_direct_absolute
31951 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
31952 # into the resulting binary.
31953 hardcode_minus_L=$hardcode_minus_L
31955 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
31956 # into the resulting binary.
31957 hardcode_shlibpath_var=$hardcode_shlibpath_var
31959 # Set to "yes" if building a shared library automatically hardcodes DIR
31960 # into the library and all subsequent libraries and executables linked
31962 hardcode_automatic=$hardcode_automatic
31964 # Set to yes if linker adds runtime paths of dependent libraries
31965 # to runtime path list.
31966 inherit_rpath=$inherit_rpath
31968 # Whether libtool must link a program against all its dependency libraries.
31969 link_all_deplibs=$link_all_deplibs
31971 # Fix the shell variable \$srcfile for the compiler.
31972 fix_srcfile_path=$lt_fix_srcfile_path
31974 # Set to "yes" if exported symbols are required.
31975 always_export_symbols=$always_export_symbols
31977 # The commands to list exported symbols.
31978 export_symbols_cmds=$lt_export_symbols_cmds
31980 # Symbols that should not be listed in the preloaded symbols.
31981 exclude_expsyms=$lt_exclude_expsyms
31983 # Symbols that must always be exported.
31984 include_expsyms=$lt_include_expsyms
31986 # Commands necessary for linking programs (against libraries) with templates.
31987 prelink_cmds=$lt_prelink_cmds
31989 # Specify filename containing input files.
31990 file_list_spec=$lt_file_list_spec
31992 # How to hardcode a shared library path into an executable.
31993 hardcode_action=$hardcode_action
31995 # The directories searched by this compiler when creating a shared library.
31996 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
31998 # Dependencies to place before and after the objects being linked to
31999 # create a shared library.
32000 predep_objects=$lt_predep_objects
32001 postdep_objects=$lt_postdep_objects
32002 predeps=$lt_predeps
32003 postdeps=$lt_postdeps
32005 # The library search path used internally by the compiler when linking
32006 # a shared library.
32007 compiler_lib_search_path=$lt_compiler_lib_search_path
32009 # ### END LIBTOOL CONFIG
32015 cat <<\_LT_EOF >> "$cfgfile"
32016 # AIX sometimes has problems with the GCC collect2 program. For some
32017 # reason, if we set the COLLECT_NAMES environment variable, the problems
32018 # vanish in a puff of smoke.
32019 if test "X${COLLECT_NAMES+set}" != Xset; then
32021 export COLLECT_NAMES
32028 ltmain="$ac_aux_dir/ltmain.sh"
32031 # We use sed instead of cat because bash on DJGPP gets confused if
32032 # if finds mixed CR/LF and LF-only lines. Since sed operates in
32033 # text mode, it properly converts lines to CR/LF. This bash problem
32034 # is reportedly fixed, but why not run on old versions too?
32035 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
32036 || (rm -f "$cfgfile"; exit 1)
32040 cat << \_LT_EOF >> "$cfgfile"
32042 # func_dirname file append nondir_replacement
32043 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
32044 # otherwise set result to NONDIR_REPLACEMENT.
32048 */*) func_dirname_result="${1%/*}${2}" ;;
32049 * ) func_dirname_result="${3}" ;;
32053 # func_basename file
32056 func_basename_result="${1##*/}"
32059 # func_dirname_and_basename file append nondir_replacement
32060 # perform func_basename and func_dirname in a single function
32062 # dirname: Compute the dirname of FILE. If nonempty,
32063 # add APPEND to the result, otherwise set result
32064 # to NONDIR_REPLACEMENT.
32065 # value returned in "$func_dirname_result"
32066 # basename: Compute filename of FILE.
32067 # value retuned in "$func_basename_result"
32068 # Implementation must be kept synchronized with func_dirname
32069 # and func_basename. For efficiency, we do not delegate to
32070 # those functions but instead duplicate the functionality here.
32071 func_dirname_and_basename ()
32074 */*) func_dirname_result="${1%/*}${2}" ;;
32075 * ) func_dirname_result="${3}" ;;
32077 func_basename_result="${1##*/}"
32080 # func_stripname prefix suffix name
32081 # strip PREFIX and SUFFIX off of NAME.
32082 # PREFIX and SUFFIX must not contain globbing or regex special
32083 # characters, hashes, percent signs, but SUFFIX may contain a leading
32084 # dot (in which case that matches only a dot).
32087 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
32088 # positional parameters, so assign one to ordinary parameter first.
32089 func_stripname_result=${3}
32090 func_stripname_result=${func_stripname_result#"${1}"}
32091 func_stripname_result=${func_stripname_result%"${2}"}
32097 func_opt_split_opt=${1%%=*}
32098 func_opt_split_arg=${1#*=}
32105 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
32106 *) func_lo2o_result=${1} ;;
32110 # func_xform libobj-or-source
32113 func_xform_result=${1%.*}.lo
32116 # func_arith arithmetic-term...
32119 func_arith_result=$(( $* ))
32123 # STRING may not start with a hyphen.
32126 func_len_result=${#1}
32131 *) # Bourne compatible functions.
32132 cat << \_LT_EOF >> "$cfgfile"
32134 # func_dirname file append nondir_replacement
32135 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
32136 # otherwise set result to NONDIR_REPLACEMENT.
32139 # Extract subdirectory from the argument.
32140 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
32141 if test "X$func_dirname_result" = "X${1}"; then
32142 func_dirname_result="${3}"
32144 func_dirname_result="$func_dirname_result${2}"
32148 # func_basename file
32151 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
32155 # func_stripname prefix suffix name
32156 # strip PREFIX and SUFFIX off of NAME.
32157 # PREFIX and SUFFIX must not contain globbing or regex special
32158 # characters, hashes, percent signs, but SUFFIX may contain a leading
32159 # dot (in which case that matches only a dot).
32160 # func_strip_suffix prefix name
32164 .*) func_stripname_result=`$ECHO "X${3}" \
32165 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
32166 *) func_stripname_result=`$ECHO "X${3}" \
32167 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
32172 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
32173 my_sed_long_arg='1s/^-[^=]*=//'
32178 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
32179 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
32185 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
32188 # func_xform libobj-or-source
32191 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
32194 # func_arith arithmetic-term...
32197 func_arith_result=`expr "$@"`
32201 # STRING may not start with a hyphen.
32204 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
32210 case $lt_shell_append in
32212 cat << \_LT_EOF >> "$cfgfile"
32214 # func_append var value
32215 # Append VALUE to the end of shell variable VAR.
32223 cat << \_LT_EOF >> "$cfgfile"
32225 # func_append var value
32226 # Append VALUE to the end of shell variable VAR.
32237 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
32238 || (rm -f "$cfgfile"; exit 1)
32240 mv -f "$cfgfile" "$ofile" ||
32241 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
32245 cat <<_LT_EOF >> "$ofile"
32247 # ### BEGIN LIBTOOL TAG CONFIG: CXX
32249 # The linker used to build libraries.
32252 # Commands used to build an old-style archive.
32253 old_archive_cmds=$lt_old_archive_cmds_CXX
32255 # A language specific compiler.
32256 CC=$lt_compiler_CXX
32258 # Is the compiler the GNU compiler?
32261 # Compiler flag to turn off builtin functions.
32262 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
32264 # How to pass a linker flag through the compiler.
32265 wl=$lt_lt_prog_compiler_wl_CXX
32267 # Additional compiler flags for building library objects.
32268 pic_flag=$lt_lt_prog_compiler_pic_CXX
32270 # Compiler flag to prevent dynamic linking.
32271 link_static_flag=$lt_lt_prog_compiler_static_CXX
32273 # Does compiler simultaneously support -c and -o options?
32274 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
32276 # Whether or not to add -lc for building shared libraries.
32277 build_libtool_need_lc=$archive_cmds_need_lc_CXX
32279 # Whether or not to disallow shared libs when runtime libs are static.
32280 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
32282 # Compiler flag to allow reflexive dlopens.
32283 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
32285 # Compiler flag to generate shared objects directly from archives.
32286 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
32288 # Whether the compiler copes with passing no objects directly.
32289 compiler_needs_object=$lt_compiler_needs_object_CXX
32291 # Create an old-style archive from a shared archive.
32292 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
32294 # Create a temporary old-style archive to link instead of a shared archive.
32295 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
32297 # Commands used to build a shared archive.
32298 archive_cmds=$lt_archive_cmds_CXX
32299 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
32301 # Commands used to build a loadable module if different from building
32302 # a shared archive.
32303 module_cmds=$lt_module_cmds_CXX
32304 module_expsym_cmds=$lt_module_expsym_cmds_CXX
32306 # Whether we are building with GNU ld or not.
32307 with_gnu_ld=$lt_with_gnu_ld_CXX
32309 # Flag that allows shared libraries with undefined symbols to be built.
32310 allow_undefined_flag=$lt_allow_undefined_flag_CXX
32312 # Flag that enforces no undefined symbols.
32313 no_undefined_flag=$lt_no_undefined_flag_CXX
32315 # Flag to hardcode \$libdir into a binary during linking.
32316 # This must work even if \$libdir does not exist
32317 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
32319 # If ld is used when linking, flag to hardcode \$libdir into a binary
32320 # during linking. This must work even if \$libdir does not exist.
32321 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
32323 # Whether we need a single "-rpath" flag with a separated argument.
32324 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
32326 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
32327 # DIR into the resulting binary.
32328 hardcode_direct=$hardcode_direct_CXX
32330 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
32331 # DIR into the resulting binary and the resulting library dependency is
32332 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
32333 # library is relocated.
32334 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
32336 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
32337 # into the resulting binary.
32338 hardcode_minus_L=$hardcode_minus_L_CXX
32340 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
32341 # into the resulting binary.
32342 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
32344 # Set to "yes" if building a shared library automatically hardcodes DIR
32345 # into the library and all subsequent libraries and executables linked
32347 hardcode_automatic=$hardcode_automatic_CXX
32349 # Set to yes if linker adds runtime paths of dependent libraries
32350 # to runtime path list.
32351 inherit_rpath=$inherit_rpath_CXX
32353 # Whether libtool must link a program against all its dependency libraries.
32354 link_all_deplibs=$link_all_deplibs_CXX
32356 # Fix the shell variable \$srcfile for the compiler.
32357 fix_srcfile_path=$lt_fix_srcfile_path_CXX
32359 # Set to "yes" if exported symbols are required.
32360 always_export_symbols=$always_export_symbols_CXX
32362 # The commands to list exported symbols.
32363 export_symbols_cmds=$lt_export_symbols_cmds_CXX
32365 # Symbols that should not be listed in the preloaded symbols.
32366 exclude_expsyms=$lt_exclude_expsyms_CXX
32368 # Symbols that must always be exported.
32369 include_expsyms=$lt_include_expsyms_CXX
32371 # Commands necessary for linking programs (against libraries) with templates.
32372 prelink_cmds=$lt_prelink_cmds_CXX
32374 # Specify filename containing input files.
32375 file_list_spec=$lt_file_list_spec_CXX
32377 # How to hardcode a shared library path into an executable.
32378 hardcode_action=$hardcode_action_CXX
32380 # The directories searched by this compiler when creating a shared library.
32381 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
32383 # Dependencies to place before and after the objects being linked to
32384 # create a shared library.
32385 predep_objects=$lt_predep_objects_CXX
32386 postdep_objects=$lt_postdep_objects_CXX
32387 predeps=$lt_predeps_CXX
32388 postdeps=$lt_postdeps_CXX
32390 # The library search path used internally by the compiler when linking
32391 # a shared library.
32392 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
32394 # ### END LIBTOOL TAG CONFIG: CXX
32399 for ac_file in $CONFIG_FILES; do
32400 # Support "outfile[:infile[:infile...]]"
32402 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
32404 # PO directories have a Makefile.in generated from Makefile.in.in.
32405 case "$ac_file" in */Makefile.in)
32406 # Adjust a relative srcdir.
32407 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
32408 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
32409 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
32410 # In autoconf-2.13 it is called $ac_given_srcdir.
32411 # In autoconf-2.50 it is called $srcdir.
32412 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
32413 case "$ac_given_srcdir" in
32414 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
32415 /*) top_srcdir="$ac_given_srcdir" ;;
32416 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
32418 # Treat a directory as a PO directory if and only if it has a
32419 # POTFILES.in file. This allows packages to have multiple PO
32420 # directories under different names or in different locations.
32421 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
32422 rm -f "$ac_dir/POTFILES"
32423 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
32424 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
32425 POMAKEFILEDEPS="POTFILES.in"
32426 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
32427 # on $ac_dir but don't depend on user-specified configuration
32429 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
32430 # The LINGUAS file contains the set of available languages.
32431 if test -n "$OBSOLETE_ALL_LINGUAS"; then
32432 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
32434 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
32435 # Hide the ALL_LINGUAS assigment from automake.
32436 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
32437 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
32439 # The set of available languages was given in configure.in.
32440 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
32443 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
32444 # Compute UPDATEPOFILES
32445 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
32446 # Compute DUMMYPOFILES
32447 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
32449 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
32450 case "$ac_given_srcdir" in
32452 *) srcdirpre='$(srcdir)/' ;;
32458 for lang in $ALL_LINGUAS; do
32459 POFILES="$POFILES $srcdirpre$lang.po"
32460 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
32461 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
32462 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
32464 # CATALOGS depends on both $ac_dir and the user's LINGUAS
32465 # environment variable.
32467 if test -n "$ALL_LINGUAS"; then
32468 for presentlang in $ALL_LINGUAS; do
32470 if test "%UNSET%" != "$LINGUAS"; then
32471 desiredlanguages="$LINGUAS"
32473 desiredlanguages="$ALL_LINGUAS"
32475 for desiredlang in $desiredlanguages; do
32476 # Use the presentlang catalog if desiredlang is
32477 # a. equal to presentlang, or
32478 # b. a variant of presentlang (because in this case,
32479 # presentlang can be used as a fallback for messages
32480 # which are not translated in the desiredlang catalog).
32481 case "$desiredlang" in
32482 "$presentlang"*) useit=yes;;
32485 if test $useit = yes; then
32486 INST_LINGUAS="$INST_LINGUAS $presentlang"
32491 if test -n "$INST_LINGUAS"; then
32492 for lang in $INST_LINGUAS; do
32493 CATALOGS="$CATALOGS $lang.gmo"
32496 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
32497 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"
32498 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
32499 if test -f "$f"; then
32501 *.orig | *.bak | *~) ;;
32502 *) cat "$f" >> "$ac_dir/Makefile" ;;
32519 ac_clean_files=$ac_clean_files_save
32521 test $ac_write_fail = 0 ||
32522 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
32525 # configure is writing to config.log, and then calls config.status.
32526 # config.status does its own redirection, appending to config.log.
32527 # Unfortunately, on DOS this fails, as config.log is still kept open
32528 # by configure, so config.status won't be able to write to it; its
32529 # output is simply discarded. So we exec the FD to /dev/null,
32530 # effectively closing config.log, so it can be properly (re)opened and
32531 # appended to by config.status. When coming back to configure, we
32532 # need to make the FD available again.
32533 if test "$no_create" != yes; then
32535 ac_config_status_args=
32536 test "$silent" = yes &&
32537 ac_config_status_args="$ac_config_status_args --quiet"
32539 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
32541 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
32542 # would make configure fail if this is the last instruction.
32543 $ac_cs_success || as_fn_exit $?
32545 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
32546 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
32547 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
32551 if test "${support_bat}" = "yes" ; then
32552 if test "x$QMAKE" = "xnone"; then
32553 as_fn_error "Could not find qmake $PATH. Check your Qt installation" "$LINENO" 5
32557 echo "Creating bat Makefile"
32562 ${MAKE:-make} clean
32566 if test X"$GCC" = "Xyes" ; then
32567 echo "Doing make of dependencies"
32568 ${MAKE:-make} depend
32572 chmod 755 install_conf_file build-depkgs-qt-console
32576 chmod 755 bacula btraceback mtx-changer
32577 chmod 755 dvd-handler dvd-simulator
32578 chmod 755 bconsole mtx-changer devel_bacula logrotate
32582 chmod 755 $c/update_mysql_tables_10_to_11 $c/update_sqlite3_tables_10_to_11
32583 chmod 755 $c/update_postgresql_tables_10_to_11
32584 chmod 755 $c/update_mysql_tables_11_to_12 $c/update_sqlite3_tables_11_to_12
32585 chmod 755 $c/update_postgresql_tables_11_to_12
32590 chmod 755 $c/create_bacula_database $c/update_bacula_tables $c/make_bacula_tables
32591 chmod 755 $c/grant_bacula_privileges $c/drop_bacula_tables $c/drop_bacula_database
32593 chmod 755 $c/create_mysql_database $c/update_mysql_tables $c/make_mysql_tables
32594 chmod 755 $c/grant_mysql_privileges $c/drop_mysql_tables $c/drop_mysql_database
32596 chmod 755 $c/create_sqlite3_database $c/update_sqlite3_tables $c/make_sqlite3_tables
32597 chmod 755 $c/grant_sqlite3_privileges $c/drop_sqlite3_tables $c/drop_sqlite3_database
32599 chmod 755 $c/create_postgresql_database $c/update_postgresql_tables $c/make_postgresql_tables
32600 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables $c/drop_postgresql_database
32602 chmod 755 $c/create_ingres_database $c/update_ingres_tables $c/make_ingres_tables
32603 chmod 755 $c/grant_ingres_privileges $c/drop_ingres_tables $c/drop_ingres_database
32606 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup $c/make_catalog_backup.pl
32607 chmod 755 $c/sqlite
32610 chmod 755 src/win32/build-depkgs-mingw32
32612 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
32613 largefile_support="yes"
32616 if test X"$GCC" = "Xyes" ; then
32617 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
32618 if test "x${CCVERSION}" = "x" ; then
32619 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
32621 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
32622 if test x"${CXXVERSION}" = x ; then
32623 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
32627 # clean up any old junk
32631 ${MAKE:-make} clean
32634 Configuration on `date`:
32636 Host: ${host}${post_host} -- ${DISTNAME} ${DISTVER}
32637 Bacula version: ${BACULA} ${VERSION} (${DATE})
32638 Source code location: ${srcdir}
32639 Install binaries: ${sbindir}
32640 Install libraries: ${libdir}
32641 Install config files: ${sysconfdir}
32642 Scripts directory: ${scriptdir}
32643 Archive directory: ${archivedir}
32644 Working directory: ${working_dir}
32645 PID directory: ${piddir}
32646 Subsys directory: ${subsysdir}
32647 Man directory: ${mandir}
32648 Data directory: ${datarootdir}
32649 Plugin directory: ${plugindir}
32650 C Compiler: ${CC} ${CCVERSION}
32651 C++ Compiler: ${CXX} ${CXXVERSION}
32652 Compiler flags: ${WCFLAGS} ${CFLAGS}
32653 Linker flags: ${WLDFLAGS} ${LDFLAGS}
32655 Statically Linked Tools: ${support_static_tools}
32656 Statically Linked FD: ${support_static_fd}
32657 Statically Linked SD: ${support_static_sd}
32658 Statically Linked DIR: ${support_static_dir}
32659 Statically Linked CONS: ${support_static_cons}
32660 Database backends: ${db_backends}
32661 Database port: ${db_port}
32662 Database name: ${db_name}
32663 Database user: ${db_user}
32665 Job Output Email: ${job_email}
32666 Traceback Email: ${dump_email}
32667 SMTP Host Address: ${smtp_host}
32669 Director Port: ${dir_port}
32670 File daemon Port: ${fd_port}
32671 Storage daemon Port: ${sd_port}
32673 Director User: ${dir_user}
32674 Director Group: ${dir_group}
32675 Storage Daemon User: ${sd_user}
32676 Storage DaemonGroup: ${sd_group}
32677 File Daemon User: ${fd_user}
32678 File Daemon Group: ${fd_group}
32680 Large file support: $largefile_support
32681 Bacula conio support: ${got_conio} ${CONS_LIBS}
32682 readline support: ${got_readline} ${PRTREADLINE_SRC}
32683 TCP Wrappers support: ${TCPW_MSG} ${WRAPLIBS}
32684 TLS support: ${support_tls}
32685 Encryption support: ${support_crypto}
32686 ZLIB support: ${have_zlib}
32687 enable-smartalloc: ${support_smartalloc}
32688 enable-lockmgr: ${support_lockmgr}
32689 bat support: ${support_bat}
32690 enable-gnome: ${support_gnome} ${gnome_version}
32691 enable-bwx-console: ${support_wx_console} ${wx_version}
32692 enable-tray-monitor: ${support_tray_monitor}
32693 client-only: ${build_client_only}
32694 build-dird: ${build_dird}
32695 build-stored: ${build_stored}
32696 Plugin support: ${have_plugins}
32697 AFS support: ${have_afs}
32698 ACL support: ${have_acl}
32699 XATTR support: ${have_xattr}
32700 Python support: ${support_python} ${PYTHON_LIBS}
32701 Batch insert enabled: ${support_batch_insert}
32705 # create a small shell script useful for support with
32706 # configure options and config.out info
32707 cat > scripts/bacula_config << EOF
32710 $ $0 $ac_configure_args
32712 cat config.out >> scripts/bacula_config
32713 echo __EOC__ >> scripts/bacula_config
32714 chmod 755 scripts/bacula_config