2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.65.
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
27 case `(set -o) 2>/dev/null` in #(
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 as_echo_n='sh -c $as_echo_n_body as_echo'
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
91 # Find who we are. Look in the path if we contain no directory separator.
93 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98 test -z "$as_dir" && as_dir=.
99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105 # We did not find ourselves, most probably we were run as `sh COMMAND'
106 # in which case we are not to be found in the path.
107 if test "x$as_myself" = x; then
110 if test ! -f "$as_myself"; then
111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115 # Unset variables that we do not need and which cause bugs (e.g. in
116 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117 # suppresses any "Segmentation fault" message there. '((' could
118 # trigger a bug in pdksh 5.2.14.
119 for as_var in BASH_ENV ENV MAIL MAILPATH
120 do eval test x\${$as_var+set} = xset \
121 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
134 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136 if test "x$CONFIG_SHELL" = x; then
137 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141 # is contrary to our usage. Disable this feature.
142 alias -g '\${1+\"\$@\"}'='\"\$@\"'
145 case \`(set -o) 2>/dev/null\` in #(
153 as_required="as_fn_return () { (exit \$1); }
154 as_fn_success () { as_fn_return 0; }
155 as_fn_failure () { as_fn_return 1; }
156 as_fn_ret_success () { return 0; }
157 as_fn_ret_failure () { return 1; }
160 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167 exitcode=1; echo positional parameters were not saved.
169 test x\$exitcode = x0 || exit 1"
170 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174 test \$(( 1 + 1 )) = 2 || exit 1"
175 if (eval "$as_required") 2>/dev/null; then :
180 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
185 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
188 test -z "$as_dir" && as_dir=.
192 for as_base in sh bash ksh sh5; do
193 # Try only shells that exist, to save several forks.
194 as_shell=$as_dir/$as_base
195 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
196 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 CONFIG_SHELL=$as_shell as_have_required=yes
198 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
206 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
208 CONFIG_SHELL=$SHELL as_have_required=yes
213 if test "x$CONFIG_SHELL" != x; then :
214 # We cannot yet assume a decent shell, so we have to provide a
215 # neutralization value for shells without unset; and this also
216 # works around shells that cannot unset nonexistent variables.
219 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
221 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
224 if test x$as_have_required = xno; then :
225 $as_echo "$0: This script requires a shell more modern than all"
226 $as_echo "$0: the shells that I found on your system."
227 if test x${ZSH_VERSION+set} = xset ; then
228 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
231 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
232 $0: including any error possibly output before this
233 $0: message. Then install a modern shell, or manually run
234 $0: the script under such a shell if you do have one."
240 SHELL=${CONFIG_SHELL-/bin/sh}
242 # Unset more variables known to interfere with behavior of common tools.
243 CLICOLOR_FORCE= GREP_OPTIONS=
244 unset CLICOLOR_FORCE GREP_OPTIONS
246 ## --------------------- ##
247 ## M4sh Shell Functions. ##
248 ## --------------------- ##
251 # Portably unset VAR.
254 { eval $1=; unset $1;}
258 # as_fn_set_status STATUS
259 # -----------------------
260 # Set $? to STATUS, without forking.
268 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
278 # Create "$as_dir" as a directory, including parents if necessary.
283 -*) as_dir=./$as_dir;;
285 test -d "$as_dir" || eval $as_mkdir_p || {
289 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
292 as_dirs="'$as_qdir' $as_dirs"
293 as_dir=`$as_dirname -- "$as_dir" ||
294 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
295 X"$as_dir" : 'X\(//\)[^/]' \| \
296 X"$as_dir" : 'X\(//\)$' \| \
297 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
298 $as_echo X"$as_dir" |
299 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
316 test -d "$as_dir" && break
318 test -z "$as_dirs" || eval "mkdir $as_dirs"
319 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
323 # as_fn_append VAR VALUE
324 # ----------------------
325 # Append the text in VALUE to the end of the definition contained in VAR. Take
326 # advantage of any shell optimizations that allow amortized linear growth over
327 # repeated appends, instead of the typical quadratic growth present in naive
329 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
330 eval 'as_fn_append ()
343 # Perform arithmetic evaluation on the ARGs, and store the result in the
344 # global $as_val. Take advantage of shells that can avoid forks. The arguments
345 # must be portable across $(()) and expr.
346 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
354 as_val=`expr "$@" || test $? -eq 1`
359 # as_fn_error ERROR [LINENO LOG_FD]
360 # ---------------------------------
361 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
362 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
363 # script with status $?, using 1 if that was 0.
366 as_status=$?; test $as_status -eq 0 && as_status=1
368 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
369 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
371 $as_echo "$as_me: error: $1" >&2
372 as_fn_exit $as_status
375 if expr a : '\(a\)' >/dev/null 2>&1 &&
376 test "X`expr 00001 : '.*\(...\)'`" = X001; then
382 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
388 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
394 as_me=`$as_basename -- "$0" ||
395 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
396 X"$0" : 'X\(//\)$' \| \
397 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
399 sed '/^.*\/\([^/][^/]*\)\/*$/{
413 # Avoid depending upon Character Ranges.
414 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
415 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
416 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
417 as_cr_digits='0123456789'
418 as_cr_alnum=$as_cr_Letters$as_cr_digits
421 as_lineno_1=$LINENO as_lineno_1a=$LINENO
422 as_lineno_2=$LINENO as_lineno_2a=$LINENO
423 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
424 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
425 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
437 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
441 chmod +x "$as_me.lineno" ||
442 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
444 # Don't try to exec as it changes $[0], causing all sort of problems
445 # (the dirname of $[0] is not the place where we might find the
446 # original and so on. Autoconf is especially sensitive to this).
448 # Exit status is that of the last command.
452 ECHO_C= ECHO_N= ECHO_T=
453 case `echo -n x` in #(((((
455 case `echo 'xy\c'` in
456 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
458 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
465 rm -f conf$$ conf$$.exe conf$$.file
466 if test -d conf$$.dir; then
467 rm -f conf$$.dir/conf$$.file
470 mkdir conf$$.dir 2>/dev/null
472 if (echo >conf$$.file) 2>/dev/null; then
473 if ln -s conf$$.file conf$$ 2>/dev/null; then
475 # ... but there are two gotchas:
476 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
477 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
478 # In both cases, we have to default to `cp -p'.
479 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
481 elif ln conf$$.file conf$$ 2>/dev/null; then
489 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
490 rmdir conf$$.dir 2>/dev/null
492 if mkdir -p . 2>/dev/null; then
493 as_mkdir_p='mkdir -p "$as_dir"'
495 test -d ./-p && rmdir ./-p
499 if test -x / >/dev/null 2>&1; then
502 if ls -dL / >/dev/null 2>&1; then
509 if test -d "$1"; then
515 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
516 ???[sx]*):;;*)false;;esac;fi
520 as_executable_p=$as_test_x
522 # Sed expression to map a string onto a valid CPP name.
523 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
525 # Sed expression to map a string onto a valid variable name.
526 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
530 # Check that we are running under the correct shell.
531 SHELL=${CONFIG_SHELL-/bin/sh}
535 # Remove one level of quotation (which was required for Make).
536 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
541 if test "X$1" = X--no-reexec; then
542 # Discard the --no-reexec flag, and continue.
544 elif test "X$1" = X--fallback-echo; then
545 # Avoid inline document here, it may be left over
547 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
548 # Yippee, $ECHO works!
551 # Restart under the correct shell.
552 exec $SHELL "$0" --no-reexec ${1+"$@"}
555 if test "X$1" = X--fallback-echo; then
556 # used as fallback echo
564 # The HP-UX ksh and POSIX shell print the target directory to stdout
566 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
568 if test -z "$lt_ECHO"; then
569 if test "X${echo_test_string+set}" != Xset; then
570 # find a string as large as possible, as long as the shell can cope with it
571 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
572 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
573 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
574 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
581 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
582 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
583 test "X$echo_testing_string" = "X$echo_test_string"; then
586 # The Solaris, AIX, and Digital Unix default echo programs unquote
587 # backslashes. This makes it impossible to quote backslashes using
588 # echo "$something" | sed 's/\\/\\\\/g'
590 # So, first we look for a working echo in the user's PATH.
592 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
593 for dir in $PATH /usr/ucb; do
595 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
596 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
597 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
598 test "X$echo_testing_string" = "X$echo_test_string"; then
605 if test "X$ECHO" = Xecho; then
606 # We didn't find a better echo, so look for alternatives.
607 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
608 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
609 test "X$echo_testing_string" = "X$echo_test_string"; then
610 # This shell has a builtin print -r that does the trick.
612 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
613 test "X$CONFIG_SHELL" != X/bin/ksh; then
614 # If we have ksh, try running configure again with it.
615 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
616 export ORIGINAL_CONFIG_SHELL
617 CONFIG_SHELL=/bin/ksh
619 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
623 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
624 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
625 test "X$echo_testing_string" = "X$echo_test_string"; then
628 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
629 test "X$echo_testing_string" = 'X\t' &&
630 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
631 test "X$echo_testing_string" = "X$echo_test_string"; then
632 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
634 SHELL="$CONFIG_SHELL"
636 ECHO="$CONFIG_SHELL $0 --fallback-echo"
637 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
638 test "X$echo_testing_string" = 'X\t' &&
639 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
640 test "X$echo_testing_string" = "X$echo_test_string"; then
641 ECHO="$CONFIG_SHELL $0 --fallback-echo"
643 # maybe with a smaller string...
646 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
647 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
654 if test "$prev" != 'sed 50q "$0"'; then
655 echo_test_string=`eval $prev`
656 export echo_test_string
657 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
659 # Oops. We lost completely, so just stick with echo.
668 # Copy echo and quote the copy suitably for passing to libtool from
669 # the Makefile, instead of quoting the original, which is used later.
671 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
672 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
678 test -n "$DJDIR" || exec 7<&0 </dev/null
682 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
683 # so uname gets run too.
684 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
689 ac_default_prefix=/usr/local
691 ac_config_libobj_dir=.
698 # Identity of this package.
706 ac_unique_file="src/version.h"
707 # Factoring default headers for most tests.
708 ac_includes_default="\
710 #ifdef HAVE_SYS_TYPES_H
711 # include <sys/types.h>
713 #ifdef HAVE_SYS_STAT_H
714 # include <sys/stat.h>
720 # ifdef HAVE_STDLIB_H
725 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
730 #ifdef HAVE_STRINGS_H
731 # include <strings.h>
733 #ifdef HAVE_INTTYPES_H
734 # include <inttypes.h>
744 ac_subst_vars='LTLIBOBJS
837 TRAY_MONITOR_CPPFLAGS
846 INTL_LIBTOOL_SUFFIX_PREFIX
853 BUILD_INCLUDED_LIBINTL
884 HAVE_OPENBSD_OS_FALSE
888 HAVE_FREEBSD_OS_FALSE
900 INCLUDE_UNINSTALL_TARGET
901 INCLUDE_INSTALL_TARGET
905 LIBTOOL_UNINSTALL_TARGET
906 LIBTOOL_INSTALL_TARGET
907 DEFAULT_SHARED_OBJECT_TYPE
981 LIBBACFIND_LT_RELEASE
1026 program_transform_name
1037 ac_subst_files='MCOMMON'
1039 enable_option_checking
1050 with_libiconv_prefix
1052 with_included_gettext
1091 with_mon_dir_password
1092 with_mon_fd_password
1093 with_mon_sd_password
1120 ac_precious_vars='build_alias
1138 # Initialize some variables set by options.
1140 ac_init_version=false
1141 ac_unrecognized_opts=
1142 ac_unrecognized_sep=
1143 # The variables have the same names as the options, with
1144 # dashes changed to underlines.
1145 cache_file=/dev/null
1152 program_transform_name=s,x,x,
1160 # Installation directory options.
1161 # These are left unexpanded so users can "make install exec_prefix=/foo"
1162 # and all the variables that are supposed to be based on exec_prefix
1163 # by default will actually change.
1164 # Use braces instead of parens because sh, perl, etc. also accept them.
1165 # (The list follows the same order as the GNU Coding Standards.)
1166 bindir='${exec_prefix}/bin'
1167 sbindir='${exec_prefix}/sbin'
1168 libexecdir='${exec_prefix}/libexec'
1169 datarootdir='${prefix}/share'
1170 datadir='${datarootdir}'
1171 sysconfdir='${prefix}/etc'
1172 sharedstatedir='${prefix}/com'
1173 localstatedir='${prefix}/var'
1174 includedir='${prefix}/include'
1175 oldincludedir='/usr/include'
1176 docdir='${datarootdir}/doc/${PACKAGE}'
1177 infodir='${datarootdir}/info'
1182 libdir='${exec_prefix}/lib'
1183 localedir='${datarootdir}/locale'
1184 mandir='${datarootdir}/man'
1190 # If the previous option needs an argument, assign it.
1191 if test -n "$ac_prev"; then
1192 eval $ac_prev=\$ac_option
1198 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1202 # Accept the important Cygnus configure options, so we can diagnose typos.
1204 case $ac_dashdash$ac_option in
1208 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1210 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1211 bindir=$ac_optarg ;;
1213 -build | --build | --buil | --bui | --bu)
1214 ac_prev=build_alias ;;
1215 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1216 build_alias=$ac_optarg ;;
1218 -cache-file | --cache-file | --cache-fil | --cache-fi \
1219 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1220 ac_prev=cache_file ;;
1221 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1222 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1223 cache_file=$ac_optarg ;;
1225 --config-cache | -C)
1226 cache_file=config.cache ;;
1228 -datadir | --datadir | --datadi | --datad)
1230 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1231 datadir=$ac_optarg ;;
1233 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1234 | --dataroo | --dataro | --datar)
1235 ac_prev=datarootdir ;;
1236 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1237 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1238 datarootdir=$ac_optarg ;;
1240 -disable-* | --disable-*)
1241 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1242 # Reject names that are not valid shell variable names.
1243 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1244 as_fn_error "invalid feature name: $ac_useropt"
1245 ac_useropt_orig=$ac_useropt
1246 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1247 case $ac_user_opts in
1249 "enable_$ac_useropt"
1251 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1252 ac_unrecognized_sep=', ';;
1254 eval enable_$ac_useropt=no ;;
1256 -docdir | --docdir | --docdi | --doc | --do)
1258 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1259 docdir=$ac_optarg ;;
1261 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1263 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1264 dvidir=$ac_optarg ;;
1266 -enable-* | --enable-*)
1267 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1268 # Reject names that are not valid shell variable names.
1269 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1270 as_fn_error "invalid feature name: $ac_useropt"
1271 ac_useropt_orig=$ac_useropt
1272 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1273 case $ac_user_opts in
1275 "enable_$ac_useropt"
1277 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1278 ac_unrecognized_sep=', ';;
1280 eval enable_$ac_useropt=\$ac_optarg ;;
1282 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1283 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1284 | --exec | --exe | --ex)
1285 ac_prev=exec_prefix ;;
1286 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1287 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1288 | --exec=* | --exe=* | --ex=*)
1289 exec_prefix=$ac_optarg ;;
1291 -gas | --gas | --ga | --g)
1292 # Obsolete; use --with-gas.
1295 -help | --help | --hel | --he | -h)
1296 ac_init_help=long ;;
1297 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1298 ac_init_help=recursive ;;
1299 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1300 ac_init_help=short ;;
1302 -host | --host | --hos | --ho)
1303 ac_prev=host_alias ;;
1304 -host=* | --host=* | --hos=* | --ho=*)
1305 host_alias=$ac_optarg ;;
1307 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1309 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1311 htmldir=$ac_optarg ;;
1313 -includedir | --includedir | --includedi | --included | --include \
1314 | --includ | --inclu | --incl | --inc)
1315 ac_prev=includedir ;;
1316 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1317 | --includ=* | --inclu=* | --incl=* | --inc=*)
1318 includedir=$ac_optarg ;;
1320 -infodir | --infodir | --infodi | --infod | --info | --inf)
1322 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1323 infodir=$ac_optarg ;;
1325 -libdir | --libdir | --libdi | --libd)
1327 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1328 libdir=$ac_optarg ;;
1330 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1331 | --libexe | --libex | --libe)
1332 ac_prev=libexecdir ;;
1333 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1334 | --libexe=* | --libex=* | --libe=*)
1335 libexecdir=$ac_optarg ;;
1337 -localedir | --localedir | --localedi | --localed | --locale)
1338 ac_prev=localedir ;;
1339 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1340 localedir=$ac_optarg ;;
1342 -localstatedir | --localstatedir | --localstatedi | --localstated \
1343 | --localstate | --localstat | --localsta | --localst | --locals)
1344 ac_prev=localstatedir ;;
1345 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1346 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1347 localstatedir=$ac_optarg ;;
1349 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1351 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1352 mandir=$ac_optarg ;;
1354 -nfp | --nfp | --nf)
1355 # Obsolete; use --without-fp.
1358 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1359 | --no-cr | --no-c | -n)
1362 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1363 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1366 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1367 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1368 | --oldin | --oldi | --old | --ol | --o)
1369 ac_prev=oldincludedir ;;
1370 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1371 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1372 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1373 oldincludedir=$ac_optarg ;;
1375 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1377 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1378 prefix=$ac_optarg ;;
1380 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1381 | --program-pre | --program-pr | --program-p)
1382 ac_prev=program_prefix ;;
1383 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1384 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1385 program_prefix=$ac_optarg ;;
1387 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1388 | --program-suf | --program-su | --program-s)
1389 ac_prev=program_suffix ;;
1390 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1391 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1392 program_suffix=$ac_optarg ;;
1394 -program-transform-name | --program-transform-name \
1395 | --program-transform-nam | --program-transform-na \
1396 | --program-transform-n | --program-transform- \
1397 | --program-transform | --program-transfor \
1398 | --program-transfo | --program-transf \
1399 | --program-trans | --program-tran \
1400 | --progr-tra | --program-tr | --program-t)
1401 ac_prev=program_transform_name ;;
1402 -program-transform-name=* | --program-transform-name=* \
1403 | --program-transform-nam=* | --program-transform-na=* \
1404 | --program-transform-n=* | --program-transform-=* \
1405 | --program-transform=* | --program-transfor=* \
1406 | --program-transfo=* | --program-transf=* \
1407 | --program-trans=* | --program-tran=* \
1408 | --progr-tra=* | --program-tr=* | --program-t=*)
1409 program_transform_name=$ac_optarg ;;
1411 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1413 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1414 pdfdir=$ac_optarg ;;
1416 -psdir | --psdir | --psdi | --psd | --ps)
1418 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1421 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1422 | -silent | --silent | --silen | --sile | --sil)
1425 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1427 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1429 sbindir=$ac_optarg ;;
1431 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1432 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1433 | --sharedst | --shareds | --shared | --share | --shar \
1435 ac_prev=sharedstatedir ;;
1436 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1437 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1438 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1440 sharedstatedir=$ac_optarg ;;
1442 -site | --site | --sit)
1444 -site=* | --site=* | --sit=*)
1447 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1449 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1450 srcdir=$ac_optarg ;;
1452 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1453 | --syscon | --sysco | --sysc | --sys | --sy)
1454 ac_prev=sysconfdir ;;
1455 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1456 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1457 sysconfdir=$ac_optarg ;;
1459 -target | --target | --targe | --targ | --tar | --ta | --t)
1460 ac_prev=target_alias ;;
1461 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1462 target_alias=$ac_optarg ;;
1464 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1467 -version | --version | --versio | --versi | --vers | -V)
1468 ac_init_version=: ;;
1471 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1472 # Reject names that are not valid shell variable names.
1473 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1474 as_fn_error "invalid package name: $ac_useropt"
1475 ac_useropt_orig=$ac_useropt
1476 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1477 case $ac_user_opts in
1481 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1482 ac_unrecognized_sep=', ';;
1484 eval with_$ac_useropt=\$ac_optarg ;;
1486 -without-* | --without-*)
1487 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1488 # Reject names that are not valid shell variable names.
1489 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1490 as_fn_error "invalid package name: $ac_useropt"
1491 ac_useropt_orig=$ac_useropt
1492 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1493 case $ac_user_opts in
1497 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1498 ac_unrecognized_sep=', ';;
1500 eval with_$ac_useropt=no ;;
1503 # Obsolete; use --with-x.
1506 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1507 | --x-incl | --x-inc | --x-in | --x-i)
1508 ac_prev=x_includes ;;
1509 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1510 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1511 x_includes=$ac_optarg ;;
1513 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1514 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1515 ac_prev=x_libraries ;;
1516 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1517 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1518 x_libraries=$ac_optarg ;;
1520 -*) as_fn_error "unrecognized option: \`$ac_option'
1521 Try \`$0 --help' for more information."
1525 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1526 # Reject names that are not valid shell variable names.
1527 case $ac_envvar in #(
1528 '' | [0-9]* | *[!_$as_cr_alnum]* )
1529 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1531 eval $ac_envvar=\$ac_optarg
1532 export $ac_envvar ;;
1535 # FIXME: should be removed in autoconf 3.0.
1536 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1537 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1538 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1539 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1545 if test -n "$ac_prev"; then
1546 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1547 as_fn_error "missing argument to $ac_option"
1550 if test -n "$ac_unrecognized_opts"; then
1551 case $enable_option_checking in
1553 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1554 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1558 # Check all directory arguments for consistency.
1559 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1560 datadir sysconfdir sharedstatedir localstatedir includedir \
1561 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1562 libdir localedir mandir
1564 eval ac_val=\$$ac_var
1565 # Remove trailing slashes.
1568 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1569 eval $ac_var=\$ac_val;;
1571 # Be sure to have absolute directory names.
1573 [\\/$]* | ?:[\\/]* ) continue;;
1574 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1576 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1579 # There might be people who depend on the old broken behavior: `$host'
1580 # used to hold the argument of --host etc.
1581 # FIXME: To remove some day.
1584 target=$target_alias
1586 # FIXME: To remove some day.
1587 if test "x$host_alias" != x; then
1588 if test "x$build_alias" = x; then
1589 cross_compiling=maybe
1590 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1591 If a cross compiler is detected then cross compile mode will be used." >&2
1592 elif test "x$build_alias" != "x$host_alias"; then
1598 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1600 test "$silent" = yes && exec 6>/dev/null
1603 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1604 ac_ls_di=`ls -di .` &&
1605 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1606 as_fn_error "working directory cannot be determined"
1607 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1608 as_fn_error "pwd does not report name of working directory"
1611 # Find the source files, if location was not specified.
1612 if test -z "$srcdir"; then
1613 ac_srcdir_defaulted=yes
1614 # Try the directory containing this script, then the parent directory.
1615 ac_confdir=`$as_dirname -- "$as_myself" ||
1616 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1617 X"$as_myself" : 'X\(//\)[^/]' \| \
1618 X"$as_myself" : 'X\(//\)$' \| \
1619 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1620 $as_echo X"$as_myself" |
1621 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1639 if test ! -r "$srcdir/$ac_unique_file"; then
1643 ac_srcdir_defaulted=no
1645 if test ! -r "$srcdir/$ac_unique_file"; then
1646 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1647 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1649 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1651 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1653 # When building in place, set srcdir=.
1654 if test "$ac_abs_confdir" = "$ac_pwd"; then
1657 # Remove unnecessary trailing slashes from srcdir.
1658 # Double slashes in file names in object file debugging info
1659 # mess up M-x gdb in Emacs.
1661 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1663 for ac_var in $ac_precious_vars; do
1664 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1665 eval ac_env_${ac_var}_value=\$${ac_var}
1666 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1667 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1671 # Report the --help message.
1673 if test "$ac_init_help" = "long"; then
1674 # Omit some internal or obsolete options to make the list less imposing.
1675 # This message is too long to be a string in the A/UX 3.1 sh.
1677 \`configure' configures this package to adapt to many kinds of systems.
1679 Usage: $0 [OPTION]... [VAR=VALUE]...
1681 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1682 VAR=VALUE. See below for descriptions of some of the useful variables.
1684 Defaults for the options are specified in brackets.
1687 -h, --help display this help and exit
1688 --help=short display options specific to this package
1689 --help=recursive display the short help of all the included packages
1690 -V, --version display version information and exit
1691 -q, --quiet, --silent do not print \`checking...' messages
1692 --cache-file=FILE cache test results in FILE [disabled]
1693 -C, --config-cache alias for \`--cache-file=config.cache'
1694 -n, --no-create do not create output files
1695 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1697 Installation directories:
1698 --prefix=PREFIX install architecture-independent files in PREFIX
1699 [$ac_default_prefix]
1700 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1703 By default, \`make install' will install all the files in
1704 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1705 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1706 for instance \`--prefix=\$HOME'.
1708 For better control, use the options below.
1710 Fine tuning of the installation directories:
1711 --bindir=DIR user executables [EPREFIX/bin]
1712 --sbindir=DIR system admin executables [EPREFIX/sbin]
1713 --libexecdir=DIR program executables [EPREFIX/libexec]
1714 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1715 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1716 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1717 --libdir=DIR object code libraries [EPREFIX/lib]
1718 --includedir=DIR C header files [PREFIX/include]
1719 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1720 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1721 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1722 --infodir=DIR info documentation [DATAROOTDIR/info]
1723 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1724 --mandir=DIR man documentation [DATAROOTDIR/man]
1725 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1726 --htmldir=DIR html documentation [DOCDIR]
1727 --dvidir=DIR dvi documentation [DOCDIR]
1728 --pdfdir=DIR pdf documentation [DOCDIR]
1729 --psdir=DIR ps documentation [DOCDIR]
1735 --x-includes=DIR X include files are in DIR
1736 --x-libraries=DIR X library files are in DIR
1739 --build=BUILD configure for building on BUILD [guessed]
1740 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1744 if test -n "$ac_init_help"; then
1749 --disable-option-checking ignore unrecognized --enable/--with options
1750 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1751 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1752 --enable-libtool enable building using GNU libtool [default=yes]
1753 --enable-shared[=PKGS] build shared libraries [default=yes]
1754 --enable-static[=PKGS] build static libraries [default=no]
1755 --enable-fast-install[=PKGS]
1756 optimize for fast installation [default=yes]
1757 --disable-libtool-lock avoid locking (might break parallel builds)
1758 --enable-includes enable installing of include files [default=no]
1759 --disable-nls do not use Native Language Support
1760 --disable-rpath do not hardcode runtime library paths
1761 --enable-gnome enable build of bgnome-console GUI [default=no]
1762 --enable-bat enable build of bat Qt4 GUI [default=no]
1763 --enable-bwx-console enable build of wxWidgets console [default=no]
1764 --enable-tray-monitor enable build of Gnome tray monitor (compatible with
1766 --enable-smartalloc enable smartalloc debugging support [default=no]
1767 --enable-lockmgr enable lock manager support [default=no]
1768 --enable-static-tools enable static tape tools [default=no]
1769 --enable-static-fd enable static File daemon [default=no]
1770 --enable-static-sd enable static Storage daemon [default=no]
1771 --enable-static-dir enable static Director [default=no]
1772 --enable-static-cons enable static Console [default=no]
1773 --enable-client-only build client (File daemon) only [default=no]
1774 --enable-build-dird enable building of dird (Director) [default=yes]
1775 --enable-build-stored enable building of stored (Storage daemon)
1777 --disable-conio disable conio support [default=no]
1778 --enable-ipv6 enable ipv6 support [default=yes]
1779 --disable-readline disable readline support [default=yes]
1780 --enable-batch-insert enable the DB batch insert code [default=no]
1781 --disable-largefile omit support for large files
1782 --disable-afs disable afs support [default=auto]
1783 --disable-acl disable acl support [default=auto]
1784 --disable-xattr disable xattr support [default=auto]
1787 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1788 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1789 --with-pic try to use only PIC/non-PIC objects [default=use
1791 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1792 --with-gnu-ld assume the C compiler uses GNU ld default=no
1793 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1794 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1795 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1796 --without-libintl-prefix don't search for libintl in includedir and libdir
1797 --with-included-gettext use the GNU gettext library included here
1798 --with-readline[=DIR] specify readline library directory
1799 --with-python[=DIR] Include Python support. DIR is the Python base
1800 install directory, default is to search through a
1801 number of common places for the Python files.
1802 --with-tcp-wrappers[=DIR]
1803 enable tcpwrappers support
1804 --with-openssl[=DIR] Include OpenSSL support. DIR is the OpenSSL base
1805 --with-working-dir=PATH specify path of Bacula working directory
1806 --with-archivedir=PATH specify path of SD archive directory
1807 --with-basename=RESNAME specify base resource name for daemons
1808 --with-hostname=RESNAME specify host name for daemons
1809 --with-scriptdir=PATH specify path of Bacula scripts directory
1810 --with-bsrdir=PATH specify path of Bacula bsrs directory
1811 --with-logdir=PATH specify path of Bacula logs directory
1812 --with-plugindir=PATH specify path of Bacula plugins directory
1813 --with-dump-email=EMAIL dump email address
1814 --with-job-email=EMAIL job output email address
1815 --with-smtp-host=HOST SMTP mail host address
1816 --with-pid-dir=PATH specify location of Bacula pid files
1817 --with-subsys-dir=PATH specify location of Bacula subsys file
1818 --with-baseport=PORT specify base port address for daemons
1819 --with-dir-password=PASSWORD
1820 specify Director's password
1821 --with-fd-password=PASSWORD
1822 specify Client's password
1823 --with-sd-password=PASSWORD
1824 specify Storage daemon's password
1825 --with-mon-dir-password=PASSWORD
1826 specify Director's password used by the monitor
1827 --with-mon-fd-password=PASSWORD
1828 specify Client's password used by the monitor
1829 --with-mon-sd-password=PASSWORD
1830 specify Storage daemon's password used by the
1832 --with-db-name=DBNAME specify database name [default=bacula]
1833 --with-db-user=UNAME specify database user [default=bacula]
1834 --with-db-password=PWD specify database password [default=*none*]
1835 --with-db-port=DBPORT specify a database port [default=null]
1836 --with-dir-user=USER specify user for Director daemon
1837 --with-dir-group=GROUP specify group for Director daemon
1838 --with-sd-user=USER specify user for Storage daemon
1839 --with-sd-group=GROUP specify group for Storage daemon
1840 --with-fd-user=USER specify user for File daemon
1841 --with-fd-group=GROUP specify group for File daemon
1842 --with-sbin-perm=MODE specify permissions for sbin binaries [default=0750]
1843 --with-postgresql[=DIR] Include PostgreSQL support. DIR is the PostgreSQL
1844 base install directory, [default=/usr/local/pgsql]
1845 --with-mysql[=DIR] Include MySQL support. DIR is the MySQL base install
1846 directory, default is to search through a number of
1847 common places for the MySQL files.
1848 --with-embedded-mysql[=DIR]
1849 Include MySQL support. DIR is the MySQL base install
1850 directory, default is to search through a number of
1851 common places for the MySQL files.
1852 --with-ingres[=DIR] Include Ingres support. DIR is the Ingres base
1853 install directory, default is to search through a
1854 number of common places for the Ingres files.
1855 --with-sqlite3[=DIR] Include SQLite3 support. DIR is the SQLite3 base
1856 install directory, default is to search through a
1857 number of common places for the SQLite3 files.
1858 --with-dbi[=DIR] Include DBI support. DIR is the DBD base install
1859 directory, default is to search through a number of
1860 common places for the DBI files.
1861 --with-dbi-driver[=DRIVER]
1862 Suport for DBI driver. DRIVER is the one DBI driver
1863 like Mysql, Postgresql, others. Default is to not
1864 configure any driver.
1865 --with-x use the X Window System
1866 --with-afsdir[=DIR] Directory holding AFS includes/libs
1868 Some influential environment variables:
1869 CC C compiler command
1870 CFLAGS C compiler flags
1871 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1872 nonstandard directory <lib dir>
1873 LIBS libraries to pass to the linker, e.g. -l<library>
1874 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1875 you have headers in a nonstandard directory <include dir>
1876 CXX C++ compiler command
1877 CXXFLAGS C++ compiler flags
1879 WXCONFIG wx-config command. On some systems, you must set it to
1880 wx-config-2.6 to use wxWidgets 2.6.
1881 WXFLAGS Parameters to pass to wx-config (e.g. --unicode=no).
1882 CXXCPP C++ preprocessor
1883 XMKMF Path to xmkmf, Makefile generator for X Window System
1885 Use these variables to override the choices made by `configure' or to help
1886 it to find libraries and programs with nonstandard names/locations.
1888 Report bugs to the package provider.
1893 if test "$ac_init_help" = "recursive"; then
1894 # If there are subdirs, report their specific --help.
1895 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1896 test -d "$ac_dir" ||
1897 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1902 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1904 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1905 # A ".." for each directory in $ac_dir_suffix.
1906 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1907 case $ac_top_builddir_sub in
1908 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1909 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1912 ac_abs_top_builddir=$ac_pwd
1913 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1914 # for backward compatibility:
1915 ac_top_builddir=$ac_top_build_prefix
1918 .) # We are building in place.
1920 ac_top_srcdir=$ac_top_builddir_sub
1921 ac_abs_top_srcdir=$ac_pwd ;;
1922 [\\/]* | ?:[\\/]* ) # Absolute name.
1923 ac_srcdir=$srcdir$ac_dir_suffix;
1924 ac_top_srcdir=$srcdir
1925 ac_abs_top_srcdir=$srcdir ;;
1927 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1928 ac_top_srcdir=$ac_top_build_prefix$srcdir
1929 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1931 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1933 cd "$ac_dir" || { ac_status=$?; continue; }
1934 # Check for guested configure.
1935 if test -f "$ac_srcdir/configure.gnu"; then
1937 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1938 elif test -f "$ac_srcdir/configure"; then
1940 $SHELL "$ac_srcdir/configure" --help=recursive
1942 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1944 cd "$ac_pwd" || { ac_status=$?; break; }
1948 test -n "$ac_init_help" && exit $ac_status
1949 if $ac_init_version; then
1952 generated by GNU Autoconf 2.65
1954 Copyright (C) 2009 Free Software Foundation, Inc.
1955 This configure script is free software; the Free Software Foundation
1956 gives unlimited permission to copy, distribute and modify it.
1961 ## ------------------------ ##
1962 ## Autoconf initialization. ##
1963 ## ------------------------ ##
1965 # ac_fn_c_try_compile LINENO
1966 # --------------------------
1967 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1968 ac_fn_c_try_compile ()
1970 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1971 rm -f conftest.$ac_objext
1972 if { { ac_try="$ac_compile"
1974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1975 *) ac_try_echo=$ac_try;;
1977 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1978 $as_echo "$ac_try_echo"; } >&5
1979 (eval "$ac_compile") 2>conftest.err
1981 if test -s conftest.err; then
1982 grep -v '^ *+' conftest.err >conftest.er1
1983 cat conftest.er1 >&5
1984 mv -f conftest.er1 conftest.err
1986 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1987 test $ac_status = 0; } && {
1988 test -z "$ac_c_werror_flag" ||
1989 test ! -s conftest.err
1990 } && test -s conftest.$ac_objext; then :
1993 $as_echo "$as_me: failed program was:" >&5
1994 sed 's/^/| /' conftest.$ac_ext >&5
1998 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1999 as_fn_set_status $ac_retval
2001 } # ac_fn_c_try_compile
2003 # ac_fn_cxx_try_compile LINENO
2004 # ----------------------------
2005 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2006 ac_fn_cxx_try_compile ()
2008 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2009 rm -f conftest.$ac_objext
2010 if { { ac_try="$ac_compile"
2012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2013 *) ac_try_echo=$ac_try;;
2015 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2016 $as_echo "$ac_try_echo"; } >&5
2017 (eval "$ac_compile") 2>conftest.err
2019 if test -s conftest.err; then
2020 grep -v '^ *+' conftest.err >conftest.er1
2021 cat conftest.er1 >&5
2022 mv -f conftest.er1 conftest.err
2024 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2025 test $ac_status = 0; } && {
2026 test -z "$ac_cxx_werror_flag" ||
2027 test ! -s conftest.err
2028 } && test -s conftest.$ac_objext; then :
2031 $as_echo "$as_me: failed program was:" >&5
2032 sed 's/^/| /' conftest.$ac_ext >&5
2036 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2037 as_fn_set_status $ac_retval
2039 } # ac_fn_cxx_try_compile
2041 # ac_fn_c_try_cpp LINENO
2042 # ----------------------
2043 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2046 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2047 if { { ac_try="$ac_cpp conftest.$ac_ext"
2049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2050 *) ac_try_echo=$ac_try;;
2052 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2053 $as_echo "$ac_try_echo"; } >&5
2054 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2056 if test -s conftest.err; then
2057 grep -v '^ *+' conftest.err >conftest.er1
2058 cat conftest.er1 >&5
2059 mv -f conftest.er1 conftest.err
2061 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2062 test $ac_status = 0; } >/dev/null && {
2063 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2064 test ! -s conftest.err
2068 $as_echo "$as_me: failed program was:" >&5
2069 sed 's/^/| /' conftest.$ac_ext >&5
2073 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2074 as_fn_set_status $ac_retval
2078 # ac_fn_c_try_link LINENO
2079 # -----------------------
2080 # Try to link conftest.$ac_ext, and return whether this succeeded.
2083 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2084 rm -f conftest.$ac_objext conftest$ac_exeext
2085 if { { ac_try="$ac_link"
2087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2088 *) ac_try_echo=$ac_try;;
2090 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2091 $as_echo "$ac_try_echo"; } >&5
2092 (eval "$ac_link") 2>conftest.err
2094 if test -s conftest.err; then
2095 grep -v '^ *+' conftest.err >conftest.er1
2096 cat conftest.er1 >&5
2097 mv -f conftest.er1 conftest.err
2099 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2100 test $ac_status = 0; } && {
2101 test -z "$ac_c_werror_flag" ||
2102 test ! -s conftest.err
2103 } && test -s conftest$ac_exeext && {
2104 test "$cross_compiling" = yes ||
2105 $as_test_x conftest$ac_exeext
2109 $as_echo "$as_me: failed program was:" >&5
2110 sed 's/^/| /' conftest.$ac_ext >&5
2114 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2115 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2116 # interfere with the next link command; also delete a directory that is
2117 # left behind by Apple's compiler. We do this before executing the actions.
2118 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2119 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2120 as_fn_set_status $ac_retval
2122 } # ac_fn_c_try_link
2124 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2125 # -------------------------------------------------------
2126 # Tests whether HEADER exists and can be compiled using the include files in
2127 # INCLUDES, setting the cache variable VAR accordingly.
2128 ac_fn_c_check_header_compile ()
2130 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2132 $as_echo_n "checking for $2... " >&6; }
2133 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2134 $as_echo_n "(cached) " >&6
2136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2137 /* end confdefs.h. */
2141 if ac_fn_c_try_compile "$LINENO"; then :
2146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2150 $as_echo "$ac_res" >&6; }
2151 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2153 } # ac_fn_c_check_header_compile
2155 # ac_fn_c_try_run LINENO
2156 # ----------------------
2157 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2158 # that executables *can* be run.
2161 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2162 if { { ac_try="$ac_link"
2164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2165 *) ac_try_echo=$ac_try;;
2167 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2168 $as_echo "$ac_try_echo"; } >&5
2169 (eval "$ac_link") 2>&5
2171 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2172 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2173 { { case "(($ac_try" in
2174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2175 *) ac_try_echo=$ac_try;;
2177 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2178 $as_echo "$ac_try_echo"; } >&5
2179 (eval "$ac_try") 2>&5
2181 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2182 test $ac_status = 0; }; }; then :
2185 $as_echo "$as_me: program exited with status $ac_status" >&5
2186 $as_echo "$as_me: failed program was:" >&5
2187 sed 's/^/| /' conftest.$ac_ext >&5
2189 ac_retval=$ac_status
2191 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2192 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2193 as_fn_set_status $ac_retval
2197 # ac_fn_c_check_func LINENO FUNC VAR
2198 # ----------------------------------
2199 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2200 ac_fn_c_check_func ()
2202 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2204 $as_echo_n "checking for $2... " >&6; }
2205 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2206 $as_echo_n "(cached) " >&6
2208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2209 /* end confdefs.h. */
2210 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2211 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2212 #define $2 innocuous_$2
2214 /* System header to define __stub macros and hopefully few prototypes,
2215 which can conflict with char $2 (); below.
2216 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2217 <limits.h> exists even on freestanding compilers. */
2220 # include <limits.h>
2222 # include <assert.h>
2227 /* Override any GCC internal prototype to avoid an error.
2228 Use char because int might match the return type of a GCC
2229 builtin and then its argument prototype would still apply. */
2234 /* The GNU C library defines this for functions which it implements
2235 to always fail with ENOSYS. Some functions are actually named
2236 something starting with __ and the normal name is an alias. */
2237 #if defined __stub_$2 || defined __stub___$2
2249 if ac_fn_c_try_link "$LINENO"; then :
2254 rm -f core conftest.err conftest.$ac_objext \
2255 conftest$ac_exeext conftest.$ac_ext
2258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2259 $as_echo "$ac_res" >&6; }
2260 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2262 } # ac_fn_c_check_func
2264 # ac_fn_cxx_try_cpp LINENO
2265 # ------------------------
2266 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2267 ac_fn_cxx_try_cpp ()
2269 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2270 if { { ac_try="$ac_cpp conftest.$ac_ext"
2272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2273 *) ac_try_echo=$ac_try;;
2275 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2276 $as_echo "$ac_try_echo"; } >&5
2277 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2279 if test -s conftest.err; then
2280 grep -v '^ *+' conftest.err >conftest.er1
2281 cat conftest.er1 >&5
2282 mv -f conftest.er1 conftest.err
2284 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2285 test $ac_status = 0; } >/dev/null && {
2286 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2287 test ! -s conftest.err
2291 $as_echo "$as_me: failed program was:" >&5
2292 sed 's/^/| /' conftest.$ac_ext >&5
2296 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2297 as_fn_set_status $ac_retval
2299 } # ac_fn_cxx_try_cpp
2301 # ac_fn_cxx_try_link LINENO
2302 # -------------------------
2303 # Try to link conftest.$ac_ext, and return whether this succeeded.
2304 ac_fn_cxx_try_link ()
2306 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2307 rm -f conftest.$ac_objext conftest$ac_exeext
2308 if { { ac_try="$ac_link"
2310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2311 *) ac_try_echo=$ac_try;;
2313 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2314 $as_echo "$ac_try_echo"; } >&5
2315 (eval "$ac_link") 2>conftest.err
2317 if test -s conftest.err; then
2318 grep -v '^ *+' conftest.err >conftest.er1
2319 cat conftest.er1 >&5
2320 mv -f conftest.er1 conftest.err
2322 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2323 test $ac_status = 0; } && {
2324 test -z "$ac_cxx_werror_flag" ||
2325 test ! -s conftest.err
2326 } && test -s conftest$ac_exeext && {
2327 test "$cross_compiling" = yes ||
2328 $as_test_x conftest$ac_exeext
2332 $as_echo "$as_me: failed program was:" >&5
2333 sed 's/^/| /' conftest.$ac_ext >&5
2337 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2338 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2339 # interfere with the next link command; also delete a directory that is
2340 # left behind by Apple's compiler. We do this before executing the actions.
2341 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2342 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2343 as_fn_set_status $ac_retval
2345 } # ac_fn_cxx_try_link
2347 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2348 # -------------------------------------------
2349 # Tests whether TYPE exists after having included INCLUDES, setting cache
2350 # variable VAR accordingly.
2351 ac_fn_c_check_type ()
2353 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2355 $as_echo_n "checking for $2... " >&6; }
2356 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2357 $as_echo_n "(cached) " >&6
2360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2361 /* end confdefs.h. */
2372 if ac_fn_c_try_compile "$LINENO"; then :
2373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2374 /* end confdefs.h. */
2385 if ac_fn_c_try_compile "$LINENO"; then :
2390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2396 $as_echo "$ac_res" >&6; }
2397 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2399 } # ac_fn_c_check_type
2401 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2402 # -------------------------------------------------------
2403 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2404 # the include files in INCLUDES and setting the cache variable VAR
2406 ac_fn_c_check_header_mongrel ()
2408 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2409 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2411 $as_echo_n "checking for $2... " >&6; }
2412 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2413 $as_echo_n "(cached) " >&6
2416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2417 $as_echo "$ac_res" >&6; }
2419 # Is the header compilable?
2420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2421 $as_echo_n "checking $2 usability... " >&6; }
2422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2423 /* end confdefs.h. */
2427 if ac_fn_c_try_compile "$LINENO"; then :
2428 ac_header_compiler=yes
2430 ac_header_compiler=no
2432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2434 $as_echo "$ac_header_compiler" >&6; }
2436 # Is the header present?
2437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2438 $as_echo_n "checking $2 presence... " >&6; }
2439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2440 /* end confdefs.h. */
2443 if ac_fn_c_try_cpp "$LINENO"; then :
2444 ac_header_preproc=yes
2446 ac_header_preproc=no
2448 rm -f conftest.err conftest.$ac_ext
2449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2450 $as_echo "$ac_header_preproc" >&6; }
2452 # So? What about this header?
2453 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2455 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2456 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2457 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2458 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2461 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2462 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2463 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2464 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2465 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2466 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2467 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2468 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2469 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2470 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2474 $as_echo_n "checking for $2... " >&6; }
2475 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2476 $as_echo_n "(cached) " >&6
2478 eval "$3=\$ac_header_compiler"
2481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2482 $as_echo "$ac_res" >&6; }
2484 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2486 } # ac_fn_c_check_header_mongrel
2488 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2489 # --------------------------------------------
2490 # Tries to find the compile-time value of EXPR in a program that includes
2491 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2493 ac_fn_c_compute_int ()
2495 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2496 if test "$cross_compiling" = yes; then
2497 # Depending upon the size, compute the lo and hi bounds.
2498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2499 /* end confdefs.h. */
2504 static int test_array [1 - 2 * !(($2) >= 0)];
2511 if ac_fn_c_try_compile "$LINENO"; then :
2514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2515 /* end confdefs.h. */
2520 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2527 if ac_fn_c_try_compile "$LINENO"; then :
2528 ac_hi=$ac_mid; break
2530 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2531 if test $ac_lo -le $ac_mid; then
2535 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2541 /* end confdefs.h. */
2546 static int test_array [1 - 2 * !(($2) < 0)];
2553 if ac_fn_c_try_compile "$LINENO"; then :
2556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2557 /* end confdefs.h. */
2562 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2569 if ac_fn_c_try_compile "$LINENO"; then :
2570 ac_lo=$ac_mid; break
2572 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2573 if test $ac_mid -le $ac_hi; then
2577 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2587 # Binary search between lo and hi bounds.
2588 while test "x$ac_lo" != "x$ac_hi"; do
2589 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2591 /* end confdefs.h. */
2596 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2603 if ac_fn_c_try_compile "$LINENO"; then :
2606 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2611 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2616 /* end confdefs.h. */
2618 static long int longval () { return $2; }
2619 static unsigned long int ulongval () { return $2; }
2626 FILE *f = fopen ("conftest.val", "w");
2631 long int i = longval ();
2634 fprintf (f, "%ld", i);
2638 unsigned long int i = ulongval ();
2641 fprintf (f, "%lu", i);
2643 /* Do not output a trailing newline, as this causes \r\n confusion
2644 on some platforms. */
2645 return ferror (f) || fclose (f) != 0;
2651 if ac_fn_c_try_run "$LINENO"; then :
2652 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2656 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2657 conftest.$ac_objext conftest.beam conftest.$ac_ext
2661 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2662 as_fn_set_status $ac_retval
2664 } # ac_fn_c_compute_int
2666 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2667 # ----------------------------------------------------
2668 # Tries to find if the field MEMBER exists in type AGGR, after including
2669 # INCLUDES, setting cache variable VAR accordingly.
2670 ac_fn_c_check_member ()
2672 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2674 $as_echo_n "checking for $2.$3... " >&6; }
2675 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2676 $as_echo_n "(cached) " >&6
2678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2679 /* end confdefs.h. */
2691 if ac_fn_c_try_compile "$LINENO"; then :
2694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2695 /* end confdefs.h. */
2701 if (sizeof ac_aggr.$3)
2707 if ac_fn_c_try_compile "$LINENO"; then :
2712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2718 $as_echo "$ac_res" >&6; }
2719 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2721 } # ac_fn_c_check_member
2723 # ac_fn_c_check_decl LINENO SYMBOL VAR
2724 # ------------------------------------
2725 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2726 ac_fn_c_check_decl ()
2728 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2730 $as_echo_n "checking whether $2 is declared... " >&6; }
2731 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2732 $as_echo_n "(cached) " >&6
2734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2735 /* end confdefs.h. */
2748 if ac_fn_c_try_compile "$LINENO"; then :
2753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2757 $as_echo "$ac_res" >&6; }
2758 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2760 } # ac_fn_c_check_decl
2762 # ac_fn_cxx_try_run LINENO
2763 # ------------------------
2764 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2765 # that executables *can* be run.
2766 ac_fn_cxx_try_run ()
2768 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2769 if { { ac_try="$ac_link"
2771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2772 *) ac_try_echo=$ac_try;;
2774 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2775 $as_echo "$ac_try_echo"; } >&5
2776 (eval "$ac_link") 2>&5
2778 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2779 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2780 { { case "(($ac_try" in
2781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2782 *) ac_try_echo=$ac_try;;
2784 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2785 $as_echo "$ac_try_echo"; } >&5
2786 (eval "$ac_try") 2>&5
2788 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2789 test $ac_status = 0; }; }; then :
2792 $as_echo "$as_me: program exited with status $ac_status" >&5
2793 $as_echo "$as_me: failed program was:" >&5
2794 sed 's/^/| /' conftest.$ac_ext >&5
2796 ac_retval=$ac_status
2798 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2799 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2800 as_fn_set_status $ac_retval
2802 } # ac_fn_cxx_try_run
2803 cat >config.log <<_ACEOF
2804 This file contains any messages produced by compilers while
2805 running configure, to aid debugging if configure makes a mistake.
2807 It was created by $as_me, which was
2808 generated by GNU Autoconf 2.65. Invocation command line was
2820 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2821 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2822 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2823 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2824 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2826 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2827 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2829 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2830 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2831 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2832 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2833 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2834 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2835 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2843 test -z "$as_dir" && as_dir=.
2844 $as_echo "PATH: $as_dir"
2860 # Keep a trace of the command line.
2861 # Strip out --no-create and --no-recursion so they do not pile up.
2862 # Strip out --silent because we don't want to record it for future runs.
2863 # Also quote any args containing shell meta-characters.
2864 # Make two passes to allow for proper duplicate-argument suppression.
2868 ac_must_keep_next=false
2874 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2875 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2876 | -silent | --silent | --silen | --sile | --sil)
2879 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2882 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2884 as_fn_append ac_configure_args1 " '$ac_arg'"
2885 if test $ac_must_keep_next = true; then
2886 ac_must_keep_next=false # Got value, back to normal.
2889 *=* | --config-cache | -C | -disable-* | --disable-* \
2890 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2891 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2892 | -with-* | --with-* | -without-* | --without-* | --x)
2893 case "$ac_configure_args0 " in
2894 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2897 -* ) ac_must_keep_next=true ;;
2900 as_fn_append ac_configure_args " '$ac_arg'"
2905 { ac_configure_args0=; unset ac_configure_args0;}
2906 { ac_configure_args1=; unset ac_configure_args1;}
2908 # When interrupted or exit'd, cleanup temporary files, and complete
2909 # config.log. We remove comments because anyway the quotes in there
2910 # would cause problems or look ugly.
2911 # WARNING: Use '\'' to represent an apostrophe within the trap.
2912 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2913 trap 'exit_status=$?
2914 # Save into config.log some information that might help in debugging.
2919 ## ---------------- ##
2920 ## Cache variables. ##
2921 ## ---------------- ##
2924 # The following way of writing the cache mishandles newlines in values,
2926 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2927 eval ac_val=\$$ac_var
2931 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2932 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2935 _ | IFS | as_nl) ;; #(
2936 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2937 *) { eval $ac_var=; unset $ac_var;} ;;
2942 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2943 *${as_nl}ac_space=\ *)
2945 "s/'\''/'\''\\\\'\'''\''/g;
2946 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2949 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2957 ## ----------------- ##
2958 ## Output variables. ##
2959 ## ----------------- ##
2962 for ac_var in $ac_subst_vars
2964 eval ac_val=\$$ac_var
2966 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2968 $as_echo "$ac_var='\''$ac_val'\''"
2972 if test -n "$ac_subst_files"; then
2974 ## ------------------- ##
2975 ## File substitutions. ##
2976 ## ------------------- ##
2979 for ac_var in $ac_subst_files
2981 eval ac_val=\$$ac_var
2983 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2985 $as_echo "$ac_var='\''$ac_val'\''"
2990 if test -s confdefs.h; then
3000 test "$ac_signal" != 0 &&
3001 $as_echo "$as_me: caught signal $ac_signal"
3002 $as_echo "$as_me: exit $exit_status"
3004 rm -f core *.core core.conftest.* &&
3005 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3008 for ac_signal in 1 2 13 15; do
3009 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3013 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3014 rm -f -r conftest* confdefs.h
3016 $as_echo "/* confdefs.h */" > confdefs.h
3018 # Predefined preprocessor variables.
3020 cat >>confdefs.h <<_ACEOF
3021 #define PACKAGE_NAME "$PACKAGE_NAME"
3024 cat >>confdefs.h <<_ACEOF
3025 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3028 cat >>confdefs.h <<_ACEOF
3029 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3032 cat >>confdefs.h <<_ACEOF
3033 #define PACKAGE_STRING "$PACKAGE_STRING"
3036 cat >>confdefs.h <<_ACEOF
3037 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3040 cat >>confdefs.h <<_ACEOF
3041 #define PACKAGE_URL "$PACKAGE_URL"
3045 # Let the site file select an alternate cache file if it wants to.
3046 # Prefer an explicitly selected file to automatically selected ones.
3049 if test -n "$CONFIG_SITE"; then
3050 ac_site_file1=$CONFIG_SITE
3051 elif test "x$prefix" != xNONE; then
3052 ac_site_file1=$prefix/share/config.site
3053 ac_site_file2=$prefix/etc/config.site
3055 ac_site_file1=$ac_default_prefix/share/config.site
3056 ac_site_file2=$ac_default_prefix/etc/config.site
3058 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3060 test "x$ac_site_file" = xNONE && continue
3061 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3062 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3063 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3064 sed 's/^/| /' "$ac_site_file" >&5
3069 if test -r "$cache_file"; then
3070 # Some versions of bash will fail to source /dev/null (special files
3071 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3072 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3073 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3074 $as_echo "$as_me: loading cache $cache_file" >&6;}
3076 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3077 *) . "./$cache_file";;
3081 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3082 $as_echo "$as_me: creating cache $cache_file" >&6;}
3086 as_fn_append ac_header_list " stdlib.h"
3087 as_fn_append ac_header_list " unistd.h"
3088 as_fn_append ac_header_list " sys/param.h"
3089 # Check that the precious variables saved in the cache have kept the same
3091 ac_cache_corrupted=false
3092 for ac_var in $ac_precious_vars; do
3093 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3094 eval ac_new_set=\$ac_env_${ac_var}_set
3095 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3096 eval ac_new_val=\$ac_env_${ac_var}_value
3097 case $ac_old_set,$ac_new_set in
3099 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3100 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3101 ac_cache_corrupted=: ;;
3103 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3104 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3105 ac_cache_corrupted=: ;;
3108 if test "x$ac_old_val" != "x$ac_new_val"; then
3109 # differences in whitespace do not lead to failure.
3110 ac_old_val_w=`echo x $ac_old_val`
3111 ac_new_val_w=`echo x $ac_new_val`
3112 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3113 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3114 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3115 ac_cache_corrupted=:
3117 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3118 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3119 eval $ac_var=\$ac_old_val
3121 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3122 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3123 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3124 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3127 # Pass precious variables to config.status.
3128 if test "$ac_new_set" = set; then
3130 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3131 *) ac_arg=$ac_var=$ac_new_val ;;
3133 case " $ac_configure_args " in
3134 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3135 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3139 if $ac_cache_corrupted; then
3140 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3141 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3142 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3143 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3144 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3146 ## -------------------- ##
3147 ## Main body of script. ##
3148 ## -------------------- ##
3151 ac_cpp='$CPP $CPPFLAGS'
3152 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3153 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3154 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3164 for ac_dir in ${BUILD_DIR}/autoconf "$srcdir"/${BUILD_DIR}/autoconf; do
3165 for ac_t in install-sh install.sh shtool; do
3166 if test -f "$ac_dir/$ac_t"; then
3168 ac_install_sh="$ac_aux_dir/$ac_t -c"
3173 if test -z "$ac_aux_dir"; then
3174 as_fn_error "cannot find install-sh, install.sh, or shtool in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" "$LINENO" 5
3177 # These three variables are undocumented and unsupported,
3178 # and are intended to be withdrawn in a future Autoconf release.
3179 # They can cause serious problems if a builder's source tree is in a directory
3180 # whose full name contains unusual characters.
3181 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3182 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3183 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3186 ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
3189 WIN32BUILDDIR=${BUILD_DIR}/src/win32
3190 WIN32MAINDIR=${BUILD_DIR}
3191 WIN32TOPDIR=${TOP_DIR}
3198 # Extract the first word of "$ac_prog", so it can be a program name with args.
3199 set dummy $ac_prog; ac_word=$2
3200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3201 $as_echo_n "checking for $ac_word... " >&6; }
3202 if test "${ac_cv_path_TRUEPRG+set}" = set; then :
3203 $as_echo_n "(cached) " >&6
3207 ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
3210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3214 test -z "$as_dir" && as_dir=.
3215 for ac_exec_ext in '' $ac_executable_extensions; do
3216 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3217 ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
3218 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3228 TRUEPRG=$ac_cv_path_TRUEPRG
3229 if test -n "$TRUEPRG"; then
3230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TRUEPRG" >&5
3231 $as_echo "$TRUEPRG" >&6; }
3233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3234 $as_echo "no" >&6; }
3238 test -n "$TRUEPRG" && break
3240 test -n "$TRUEPRG" || TRUEPRG=":"
3242 for ac_prog in false
3244 # Extract the first word of "$ac_prog", so it can be a program name with args.
3245 set dummy $ac_prog; ac_word=$2
3246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3247 $as_echo_n "checking for $ac_word... " >&6; }
3248 if test "${ac_cv_path_FALSEPRG+set}" = set; then :
3249 $as_echo_n "(cached) " >&6
3253 ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
3256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3260 test -z "$as_dir" && as_dir=.
3261 for ac_exec_ext in '' $ac_executable_extensions; do
3262 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3263 ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
3264 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3274 FALSEPRG=$ac_cv_path_FALSEPRG
3275 if test -n "$FALSEPRG"; then
3276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FALSEPRG" >&5
3277 $as_echo "$FALSEPRG" >&6; }
3279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3280 $as_echo "no" >&6; }
3284 test -n "$FALSEPRG" && break
3286 test -n "$FALSEPRG" || FALSEPRG=":"
3291 if test "x$BACULA" != x; then
3292 post_host=`echo -${BACULA} | tr 'A-Z ' 'a-z-'`
3294 BACULA=${BACULA:-Bacula}
3295 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3296 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3297 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3298 BDB_VERSION=`sed -n -e 's/^.*BDB_VERSION \(.*\)$/\1/p' ${srcdir}/src/cats/cats.h`
3300 LIBBAC_LT_RELEASE=`sed -n -e 's/^#.*LIBBAC_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3301 LIBBACCFG_LT_RELEASE=`sed -n -e 's/^#.*LIBBACCFG_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3302 LIBBACPY_LT_RELEASE=`sed -n -e 's/^#.*LIBBACPY_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3304 LIBBAC_LT_RELEASE=${LIBBAC_LT_RELEASE:-$VERSION}
3305 LIBBACCFG_LT_RELEASE=${LIBBACCFG_LT_RELEASE:-$VERSION}
3306 LIBBACPY_LT_RELEASE=${LIBBACPY_LT_RELEASE:-$VERSION}
3309 LIBBACSQL_LT_RELEASE=`sed -n -e 's/^#.*LIBBACSQL_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3311 LIBBACSQL_LT_RELEASE=${LIBBACSQL_LT_RELEASE:-$VERSION}
3314 LIBBACFIND_LT_RELEASE=`sed -n -e 's/^#.*LIBBACFIND_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3316 LIBBACFIND_LT_RELEASE=${LIBBACFIND_LT_RELEASE:-$VERSION}
3319 echo "configuring for ${BACULA} $VERSION ($DATE)"
3324 ac_cpp='$CPP $CPPFLAGS'
3325 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3326 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3327 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3328 if test -n "$ac_tool_prefix"; then
3329 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3330 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3332 $as_echo_n "checking for $ac_word... " >&6; }
3333 if test "${ac_cv_prog_CC+set}" = set; then :
3334 $as_echo_n "(cached) " >&6
3336 if test -n "$CC"; then
3337 ac_cv_prog_CC="$CC" # Let the user override the test.
3339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3343 test -z "$as_dir" && as_dir=.
3344 for ac_exec_ext in '' $ac_executable_extensions; do
3345 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3346 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3347 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3357 if test -n "$CC"; then
3358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3359 $as_echo "$CC" >&6; }
3361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3362 $as_echo "no" >&6; }
3367 if test -z "$ac_cv_prog_CC"; then
3369 # Extract the first word of "gcc", so it can be a program name with args.
3370 set dummy gcc; ac_word=$2
3371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3372 $as_echo_n "checking for $ac_word... " >&6; }
3373 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3374 $as_echo_n "(cached) " >&6
3376 if test -n "$ac_ct_CC"; then
3377 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3383 test -z "$as_dir" && as_dir=.
3384 for ac_exec_ext in '' $ac_executable_extensions; do
3385 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3386 ac_cv_prog_ac_ct_CC="gcc"
3387 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3396 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3397 if test -n "$ac_ct_CC"; then
3398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3399 $as_echo "$ac_ct_CC" >&6; }
3401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3402 $as_echo "no" >&6; }
3405 if test "x$ac_ct_CC" = x; then
3408 case $cross_compiling:$ac_tool_warned in
3410 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3411 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3412 ac_tool_warned=yes ;;
3420 if test -z "$CC"; then
3421 if test -n "$ac_tool_prefix"; then
3422 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3423 set dummy ${ac_tool_prefix}cc; ac_word=$2
3424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3425 $as_echo_n "checking for $ac_word... " >&6; }
3426 if test "${ac_cv_prog_CC+set}" = set; then :
3427 $as_echo_n "(cached) " >&6
3429 if test -n "$CC"; then
3430 ac_cv_prog_CC="$CC" # Let the user override the test.
3432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3436 test -z "$as_dir" && as_dir=.
3437 for ac_exec_ext in '' $ac_executable_extensions; do
3438 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3439 ac_cv_prog_CC="${ac_tool_prefix}cc"
3440 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3450 if test -n "$CC"; then
3451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3452 $as_echo "$CC" >&6; }
3454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3455 $as_echo "no" >&6; }
3461 if test -z "$CC"; then
3462 # Extract the first word of "cc", so it can be a program name with args.
3463 set dummy cc; ac_word=$2
3464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3465 $as_echo_n "checking for $ac_word... " >&6; }
3466 if test "${ac_cv_prog_CC+set}" = set; then :
3467 $as_echo_n "(cached) " >&6
3469 if test -n "$CC"; then
3470 ac_cv_prog_CC="$CC" # Let the user override the test.
3473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3477 test -z "$as_dir" && as_dir=.
3478 for ac_exec_ext in '' $ac_executable_extensions; do
3479 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3480 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3481 ac_prog_rejected=yes
3485 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3492 if test $ac_prog_rejected = yes; then
3493 # We found a bogon in the path, so make sure we never use it.
3494 set dummy $ac_cv_prog_CC
3496 if test $# != 0; then
3497 # We chose a different compiler from the bogus one.
3498 # However, it has the same basename, so the bogon will be chosen
3499 # first if we set CC to just the basename; use the full file name.
3501 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3507 if test -n "$CC"; then
3508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3509 $as_echo "$CC" >&6; }
3511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3512 $as_echo "no" >&6; }
3517 if test -z "$CC"; then
3518 if test -n "$ac_tool_prefix"; then
3519 for ac_prog in cl.exe
3521 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3522 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3524 $as_echo_n "checking for $ac_word... " >&6; }
3525 if test "${ac_cv_prog_CC+set}" = set; then :
3526 $as_echo_n "(cached) " >&6
3528 if test -n "$CC"; then
3529 ac_cv_prog_CC="$CC" # Let the user override the test.
3531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3535 test -z "$as_dir" && as_dir=.
3536 for ac_exec_ext in '' $ac_executable_extensions; do
3537 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3538 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3539 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3549 if test -n "$CC"; then
3550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3551 $as_echo "$CC" >&6; }
3553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3554 $as_echo "no" >&6; }
3558 test -n "$CC" && break
3561 if test -z "$CC"; then
3563 for ac_prog in cl.exe
3565 # Extract the first word of "$ac_prog", so it can be a program name with args.
3566 set dummy $ac_prog; ac_word=$2
3567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3568 $as_echo_n "checking for $ac_word... " >&6; }
3569 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3570 $as_echo_n "(cached) " >&6
3572 if test -n "$ac_ct_CC"; then
3573 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3579 test -z "$as_dir" && as_dir=.
3580 for ac_exec_ext in '' $ac_executable_extensions; do
3581 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3582 ac_cv_prog_ac_ct_CC="$ac_prog"
3583 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3592 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3593 if test -n "$ac_ct_CC"; then
3594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3595 $as_echo "$ac_ct_CC" >&6; }
3597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3598 $as_echo "no" >&6; }
3602 test -n "$ac_ct_CC" && break
3605 if test "x$ac_ct_CC" = x; then
3608 case $cross_compiling:$ac_tool_warned in
3610 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3611 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3612 ac_tool_warned=yes ;;
3621 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3622 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3623 as_fn_error "no acceptable C compiler found in \$PATH
3624 See \`config.log' for more details." "$LINENO" 5; }
3626 # Provide some information about the compiler.
3627 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3630 for ac_option in --version -v -V -qversion; do
3631 { { ac_try="$ac_compiler $ac_option >&5"
3633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3634 *) ac_try_echo=$ac_try;;
3636 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3637 $as_echo "$ac_try_echo"; } >&5
3638 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3640 if test -s conftest.err; then
3642 ... rest of stderr output deleted ...
3643 10q' conftest.err >conftest.er1
3644 cat conftest.er1 >&5
3646 rm -f conftest.er1 conftest.err
3647 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3648 test $ac_status = 0; }
3651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3652 /* end confdefs.h. */
3662 ac_clean_files_save=$ac_clean_files
3663 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3664 # Try to create an executable without -o first, disregard a.out.
3665 # It will help us diagnose broken compilers, and finding out an intuition
3667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3668 $as_echo_n "checking whether the C compiler works... " >&6; }
3669 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3671 # The possible output files:
3672 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3675 for ac_file in $ac_files
3678 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3679 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3684 if { { ac_try="$ac_link_default"
3686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3687 *) ac_try_echo=$ac_try;;
3689 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3690 $as_echo "$ac_try_echo"; } >&5
3691 (eval "$ac_link_default") 2>&5
3693 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3694 test $ac_status = 0; }; then :
3695 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3696 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3697 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3698 # so that the user can short-circuit this test for compilers unknown to
3700 for ac_file in $ac_files ''
3702 test -f "$ac_file" || continue
3704 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3707 # We found the default executable, but exeext='' is most
3711 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3713 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3715 # We set ac_cv_exeext here because the later test for it is not
3716 # safe: cross compilers may not add the suffix if given an `-o'
3717 # argument, so we may need to know it at that point already.
3718 # Even if this section looks crufty: it has the advantage of
3725 test "$ac_cv_exeext" = no && ac_cv_exeext=
3730 if test -z "$ac_file"; then :
3731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3732 $as_echo "no" >&6; }
3733 $as_echo "$as_me: failed program was:" >&5
3734 sed 's/^/| /' conftest.$ac_ext >&5
3736 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3737 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3738 { as_fn_set_status 77
3739 as_fn_error "C compiler cannot create executables
3740 See \`config.log' for more details." "$LINENO" 5; }; }
3742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3743 $as_echo "yes" >&6; }
3745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3746 $as_echo_n "checking for C compiler default output file name... " >&6; }
3747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3748 $as_echo "$ac_file" >&6; }
3749 ac_exeext=$ac_cv_exeext
3751 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3752 ac_clean_files=$ac_clean_files_save
3753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3754 $as_echo_n "checking for suffix of executables... " >&6; }
3755 if { { ac_try="$ac_link"
3757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3758 *) ac_try_echo=$ac_try;;
3760 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3761 $as_echo "$ac_try_echo"; } >&5
3762 (eval "$ac_link") 2>&5
3764 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3765 test $ac_status = 0; }; then :
3766 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3767 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3768 # work properly (i.e., refer to `conftest.exe'), while it won't with
3770 for ac_file in conftest.exe conftest conftest.*; do
3771 test -f "$ac_file" || continue
3773 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3774 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3780 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3781 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3782 as_fn_error "cannot compute suffix of executables: cannot compile and link
3783 See \`config.log' for more details." "$LINENO" 5; }
3785 rm -f conftest conftest$ac_cv_exeext
3786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3787 $as_echo "$ac_cv_exeext" >&6; }
3789 rm -f conftest.$ac_ext
3790 EXEEXT=$ac_cv_exeext
3792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3793 /* end confdefs.h. */
3798 FILE *f = fopen ("conftest.out", "w");
3799 return ferror (f) || fclose (f) != 0;
3805 ac_clean_files="$ac_clean_files conftest.out"
3806 # Check that the compiler produces executables we can run. If not, either
3807 # the compiler is broken, or we cross compile.
3808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3809 $as_echo_n "checking whether we are cross compiling... " >&6; }
3810 if test "$cross_compiling" != yes; then
3811 { { ac_try="$ac_link"
3813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3814 *) ac_try_echo=$ac_try;;
3816 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3817 $as_echo "$ac_try_echo"; } >&5
3818 (eval "$ac_link") 2>&5
3820 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3821 test $ac_status = 0; }
3822 if { ac_try='./conftest$ac_cv_exeext'
3823 { { case "(($ac_try" in
3824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3825 *) ac_try_echo=$ac_try;;
3827 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3828 $as_echo "$ac_try_echo"; } >&5
3829 (eval "$ac_try") 2>&5
3831 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3832 test $ac_status = 0; }; }; then
3835 if test "$cross_compiling" = maybe; then
3838 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3839 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3840 as_fn_error "cannot run C compiled programs.
3841 If you meant to cross compile, use \`--host'.
3842 See \`config.log' for more details." "$LINENO" 5; }
3846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3847 $as_echo "$cross_compiling" >&6; }
3849 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3850 ac_clean_files=$ac_clean_files_save
3851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3852 $as_echo_n "checking for suffix of object files... " >&6; }
3853 if test "${ac_cv_objext+set}" = set; then :
3854 $as_echo_n "(cached) " >&6
3856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3857 /* end confdefs.h. */
3867 rm -f conftest.o conftest.obj
3868 if { { ac_try="$ac_compile"
3870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3871 *) ac_try_echo=$ac_try;;
3873 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3874 $as_echo "$ac_try_echo"; } >&5
3875 (eval "$ac_compile") 2>&5
3877 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3878 test $ac_status = 0; }; then :
3879 for ac_file in conftest.o conftest.obj conftest.*; do
3880 test -f "$ac_file" || continue;
3882 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3883 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3888 $as_echo "$as_me: failed program was:" >&5
3889 sed 's/^/| /' conftest.$ac_ext >&5
3891 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3892 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3893 as_fn_error "cannot compute suffix of object files: cannot compile
3894 See \`config.log' for more details." "$LINENO" 5; }
3896 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3899 $as_echo "$ac_cv_objext" >&6; }
3900 OBJEXT=$ac_cv_objext
3902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3903 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3904 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3905 $as_echo_n "(cached) " >&6
3907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3908 /* end confdefs.h. */
3921 if ac_fn_c_try_compile "$LINENO"; then :
3926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3927 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3931 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3932 if test $ac_compiler_gnu = yes; then
3937 ac_test_CFLAGS=${CFLAGS+set}
3938 ac_save_CFLAGS=$CFLAGS
3939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3940 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3941 if test "${ac_cv_prog_cc_g+set}" = set; then :
3942 $as_echo_n "(cached) " >&6
3944 ac_save_c_werror_flag=$ac_c_werror_flag
3945 ac_c_werror_flag=yes
3948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3949 /* end confdefs.h. */
3959 if ac_fn_c_try_compile "$LINENO"; then :
3963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3964 /* end confdefs.h. */
3974 if ac_fn_c_try_compile "$LINENO"; then :
3977 ac_c_werror_flag=$ac_save_c_werror_flag
3979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3980 /* end confdefs.h. */
3990 if ac_fn_c_try_compile "$LINENO"; then :
3993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3998 ac_c_werror_flag=$ac_save_c_werror_flag
4000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4001 $as_echo "$ac_cv_prog_cc_g" >&6; }
4002 if test "$ac_test_CFLAGS" = set; then
4003 CFLAGS=$ac_save_CFLAGS
4004 elif test $ac_cv_prog_cc_g = yes; then
4005 if test "$GCC" = yes; then
4011 if test "$GCC" = yes; then
4017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4018 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4019 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4020 $as_echo_n "(cached) " >&6
4022 ac_cv_prog_cc_c89=no
4024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4025 /* end confdefs.h. */
4028 #include <sys/types.h>
4029 #include <sys/stat.h>
4030 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4031 struct buf { int x; };
4032 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4033 static char *e (p, i)
4039 static char *f (char * (*g) (char **, int), char **p, ...)
4044 s = g (p, va_arg (v,int));
4049 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4050 function prototypes and stuff, but not '\xHH' hex character constants.
4051 These don't provoke an error unfortunately, instead are silently treated
4052 as 'x'. The following induces an error, until -std is added to get
4053 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4054 array size at least. It's necessary to write '\x00'==0 to get something
4055 that's true only with -std. */
4056 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4058 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4059 inside strings and character constants. */
4061 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4063 int test (int i, double x);
4064 struct s1 {int (*f) (int a);};
4065 struct s2 {int (*f) (double a);};
4066 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4072 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4077 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4078 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4080 CC="$ac_save_CC $ac_arg"
4081 if ac_fn_c_try_compile "$LINENO"; then :
4082 ac_cv_prog_cc_c89=$ac_arg
4084 rm -f core conftest.err conftest.$ac_objext
4085 test "x$ac_cv_prog_cc_c89" != "xno" && break
4087 rm -f conftest.$ac_ext
4092 case "x$ac_cv_prog_cc_c89" in
4094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4095 $as_echo "none needed" >&6; } ;;
4097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4098 $as_echo "unsupported" >&6; } ;;
4100 CC="$CC $ac_cv_prog_cc_c89"
4101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4102 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4104 if test "x$ac_cv_prog_cc_c89" != xno; then :
4109 ac_cpp='$CPP $CPPFLAGS'
4110 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4111 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4112 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4115 ac_cpp='$CXXCPP $CPPFLAGS'
4116 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4117 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4118 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4119 if test -z "$CXX"; then
4120 if test -n "$CCC"; then
4123 if test -n "$ac_tool_prefix"; then
4124 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4126 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4127 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4129 $as_echo_n "checking for $ac_word... " >&6; }
4130 if test "${ac_cv_prog_CXX+set}" = set; then :
4131 $as_echo_n "(cached) " >&6
4133 if test -n "$CXX"; then
4134 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4140 test -z "$as_dir" && as_dir=.
4141 for ac_exec_ext in '' $ac_executable_extensions; do
4142 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4143 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4144 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4154 if test -n "$CXX"; then
4155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4156 $as_echo "$CXX" >&6; }
4158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4159 $as_echo "no" >&6; }
4163 test -n "$CXX" && break
4166 if test -z "$CXX"; then
4168 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4170 # Extract the first word of "$ac_prog", so it can be a program name with args.
4171 set dummy $ac_prog; ac_word=$2
4172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4173 $as_echo_n "checking for $ac_word... " >&6; }
4174 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4175 $as_echo_n "(cached) " >&6
4177 if test -n "$ac_ct_CXX"; then
4178 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4184 test -z "$as_dir" && as_dir=.
4185 for ac_exec_ext in '' $ac_executable_extensions; do
4186 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4187 ac_cv_prog_ac_ct_CXX="$ac_prog"
4188 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4197 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4198 if test -n "$ac_ct_CXX"; then
4199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4200 $as_echo "$ac_ct_CXX" >&6; }
4202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4203 $as_echo "no" >&6; }
4207 test -n "$ac_ct_CXX" && break
4210 if test "x$ac_ct_CXX" = x; then
4213 case $cross_compiling:$ac_tool_warned in
4215 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4216 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4217 ac_tool_warned=yes ;;
4225 # Provide some information about the compiler.
4226 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4229 for ac_option in --version -v -V -qversion; do
4230 { { ac_try="$ac_compiler $ac_option >&5"
4232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4233 *) ac_try_echo=$ac_try;;
4235 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4236 $as_echo "$ac_try_echo"; } >&5
4237 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4239 if test -s conftest.err; then
4241 ... rest of stderr output deleted ...
4242 10q' conftest.err >conftest.er1
4243 cat conftest.er1 >&5
4245 rm -f conftest.er1 conftest.err
4246 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4247 test $ac_status = 0; }
4250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4251 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4252 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4253 $as_echo_n "(cached) " >&6
4255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4256 /* end confdefs.h. */
4269 if ac_fn_cxx_try_compile "$LINENO"; then :
4274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4275 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4279 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4280 if test $ac_compiler_gnu = yes; then
4285 ac_test_CXXFLAGS=${CXXFLAGS+set}
4286 ac_save_CXXFLAGS=$CXXFLAGS
4287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4288 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4289 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4290 $as_echo_n "(cached) " >&6
4292 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4293 ac_cxx_werror_flag=yes
4296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4297 /* end confdefs.h. */
4307 if ac_fn_cxx_try_compile "$LINENO"; then :
4308 ac_cv_prog_cxx_g=yes
4311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4312 /* end confdefs.h. */
4322 if ac_fn_cxx_try_compile "$LINENO"; then :
4325 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4328 /* end confdefs.h. */
4338 if ac_fn_cxx_try_compile "$LINENO"; then :
4339 ac_cv_prog_cxx_g=yes
4341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4346 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4349 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4350 if test "$ac_test_CXXFLAGS" = set; then
4351 CXXFLAGS=$ac_save_CXXFLAGS
4352 elif test $ac_cv_prog_cxx_g = yes; then
4353 if test "$GXX" = yes; then
4359 if test "$GXX" = yes; then
4366 ac_cpp='$CPP $CPPFLAGS'
4367 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4368 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4369 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4371 if test "x$CC" != xcc; then
4372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4373 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4376 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4378 set dummy $CC; ac_cc=`$as_echo "$2" |
4379 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4380 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
4381 $as_echo_n "(cached) " >&6
4383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4384 /* end confdefs.h. */
4394 # Make sure it works both with $CC and with simple cc.
4395 # We do the test twice because some compilers refuse to overwrite an
4396 # existing .o file with -o, though they will create one.
4397 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4399 if { { case "(($ac_try" in
4400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4401 *) ac_try_echo=$ac_try;;
4403 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4404 $as_echo "$ac_try_echo"; } >&5
4405 (eval "$ac_try") 2>&5
4407 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4408 test $ac_status = 0; } &&
4409 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4411 *) ac_try_echo=$ac_try;;
4413 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4414 $as_echo "$ac_try_echo"; } >&5
4415 (eval "$ac_try") 2>&5
4417 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4418 test $ac_status = 0; };
4420 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4421 if test "x$CC" != xcc; then
4422 # Test first that cc exists at all.
4423 if { ac_try='cc -c conftest.$ac_ext >&5'
4424 { { case "(($ac_try" in
4425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4426 *) ac_try_echo=$ac_try;;
4428 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4429 $as_echo "$ac_try_echo"; } >&5
4430 (eval "$ac_try") 2>&5
4432 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4433 test $ac_status = 0; }; }; then
4434 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4436 if { { case "(($ac_try" in
4437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4438 *) ac_try_echo=$ac_try;;
4440 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4441 $as_echo "$ac_try_echo"; } >&5
4442 (eval "$ac_try") 2>&5
4444 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4445 test $ac_status = 0; } &&
4446 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4448 *) ac_try_echo=$ac_try;;
4450 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4451 $as_echo "$ac_try_echo"; } >&5
4452 (eval "$ac_try") 2>&5
4454 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4455 test $ac_status = 0; };
4460 # cc exists but doesn't like -o.
4461 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4466 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4468 rm -f core conftest*
4471 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4473 $as_echo "yes" >&6; }
4475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4476 $as_echo "no" >&6; }
4478 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4483 ac_cpp='$CPP $CPPFLAGS'
4484 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4485 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4486 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4488 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4489 # On Suns, sometimes $CPP names a directory.
4490 if test -n "$CPP" && test -d "$CPP"; then
4493 if test -z "$CPP"; then
4494 if test "${ac_cv_prog_CPP+set}" = set; then :
4495 $as_echo_n "(cached) " >&6
4497 # Double quotes because CPP needs to be expanded
4498 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4501 for ac_c_preproc_warn_flag in '' yes
4503 # Use a header file that comes with gcc, so configuring glibc
4504 # with a fresh cross-compiler works.
4505 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4506 # <limits.h> exists even on freestanding compilers.
4507 # On the NeXT, cc -E runs the code through the compiler's parser,
4508 # not just through cpp. "Syntax error" is here to catch this case.
4509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4510 /* end confdefs.h. */
4512 # include <limits.h>
4514 # include <assert.h>
4518 if ac_fn_c_try_cpp "$LINENO"; then :
4521 # Broken: fails on valid input.
4524 rm -f conftest.err conftest.$ac_ext
4526 # OK, works on sane cases. Now check whether nonexistent headers
4527 # can be detected and how.
4528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4529 /* end confdefs.h. */
4530 #include <ac_nonexistent.h>
4532 if ac_fn_c_try_cpp "$LINENO"; then :
4533 # Broken: success on invalid input.
4536 # Passes both tests.
4540 rm -f conftest.err conftest.$ac_ext
4543 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4544 rm -f conftest.err conftest.$ac_ext
4545 if $ac_preproc_ok; then :
4557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4558 $as_echo "$CPP" >&6; }
4560 for ac_c_preproc_warn_flag in '' yes
4562 # Use a header file that comes with gcc, so configuring glibc
4563 # with a fresh cross-compiler works.
4564 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4565 # <limits.h> exists even on freestanding compilers.
4566 # On the NeXT, cc -E runs the code through the compiler's parser,
4567 # not just through cpp. "Syntax error" is here to catch this case.
4568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4569 /* end confdefs.h. */
4571 # include <limits.h>
4573 # include <assert.h>
4577 if ac_fn_c_try_cpp "$LINENO"; then :
4580 # Broken: fails on valid input.
4583 rm -f conftest.err conftest.$ac_ext
4585 # OK, works on sane cases. Now check whether nonexistent headers
4586 # can be detected and how.
4587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4588 /* end confdefs.h. */
4589 #include <ac_nonexistent.h>
4591 if ac_fn_c_try_cpp "$LINENO"; then :
4592 # Broken: success on invalid input.
4595 # Passes both tests.
4599 rm -f conftest.err conftest.$ac_ext
4602 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4603 rm -f conftest.err conftest.$ac_ext
4604 if $ac_preproc_ok; then :
4607 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4608 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4609 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4610 See \`config.log' for more details." "$LINENO" 5; }
4614 ac_cpp='$CPP $CPPFLAGS'
4615 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4616 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4617 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4621 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4622 if test "${ac_cv_path_GREP+set}" = set; then :
4623 $as_echo_n "(cached) " >&6
4625 if test -z "$GREP"; then
4626 ac_path_GREP_found=false
4627 # Loop through the user's path and test for each of PROGNAME-LIST
4628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4629 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4632 test -z "$as_dir" && as_dir=.
4633 for ac_prog in grep ggrep; do
4634 for ac_exec_ext in '' $ac_executable_extensions; do
4635 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4636 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4637 # Check for GNU ac_path_GREP and select it if it is found.
4638 # Check for GNU $ac_path_GREP
4639 case `"$ac_path_GREP" --version 2>&1` in
4641 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4644 $as_echo_n 0123456789 >"conftest.in"
4647 cat "conftest.in" "conftest.in" >"conftest.tmp"
4648 mv "conftest.tmp" "conftest.in"
4649 cp "conftest.in" "conftest.nl"
4650 $as_echo 'GREP' >> "conftest.nl"
4651 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4652 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4653 as_fn_arith $ac_count + 1 && ac_count=$as_val
4654 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4655 # Best one so far, save it but keep looking for a better one
4656 ac_cv_path_GREP="$ac_path_GREP"
4657 ac_path_GREP_max=$ac_count
4659 # 10*(2^10) chars as input seems more than enough
4660 test $ac_count -gt 10 && break
4662 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4665 $ac_path_GREP_found && break 3
4670 if test -z "$ac_cv_path_GREP"; then
4671 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4674 ac_cv_path_GREP=$GREP
4678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4679 $as_echo "$ac_cv_path_GREP" >&6; }
4680 GREP="$ac_cv_path_GREP"
4683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4684 $as_echo_n "checking for egrep... " >&6; }
4685 if test "${ac_cv_path_EGREP+set}" = set; then :
4686 $as_echo_n "(cached) " >&6
4688 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4689 then ac_cv_path_EGREP="$GREP -E"
4691 if test -z "$EGREP"; then
4692 ac_path_EGREP_found=false
4693 # Loop through the user's path and test for each of PROGNAME-LIST
4694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4695 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4698 test -z "$as_dir" && as_dir=.
4699 for ac_prog in egrep; do
4700 for ac_exec_ext in '' $ac_executable_extensions; do
4701 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4702 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4703 # Check for GNU ac_path_EGREP and select it if it is found.
4704 # Check for GNU $ac_path_EGREP
4705 case `"$ac_path_EGREP" --version 2>&1` in
4707 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4710 $as_echo_n 0123456789 >"conftest.in"
4713 cat "conftest.in" "conftest.in" >"conftest.tmp"
4714 mv "conftest.tmp" "conftest.in"
4715 cp "conftest.in" "conftest.nl"
4716 $as_echo 'EGREP' >> "conftest.nl"
4717 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4718 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4719 as_fn_arith $ac_count + 1 && ac_count=$as_val
4720 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4721 # Best one so far, save it but keep looking for a better one
4722 ac_cv_path_EGREP="$ac_path_EGREP"
4723 ac_path_EGREP_max=$ac_count
4725 # 10*(2^10) chars as input seems more than enough
4726 test $ac_count -gt 10 && break
4728 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4731 $ac_path_EGREP_found && break 3
4736 if test -z "$ac_cv_path_EGREP"; then
4737 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4740 ac_cv_path_EGREP=$EGREP
4745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4746 $as_echo "$ac_cv_path_EGREP" >&6; }
4747 EGREP="$ac_cv_path_EGREP"
4750 if test $ac_cv_c_compiler_gnu = yes; then
4751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
4752 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
4753 if test "${ac_cv_prog_gcc_traditional+set}" = set; then :
4754 $as_echo_n "(cached) " >&6
4756 ac_pattern="Autoconf.*'x'"
4757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4758 /* end confdefs.h. */
4762 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4763 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4764 ac_cv_prog_gcc_traditional=yes
4766 ac_cv_prog_gcc_traditional=no
4771 if test $ac_cv_prog_gcc_traditional = no; then
4772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4773 /* end confdefs.h. */
4777 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4778 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4779 ac_cv_prog_gcc_traditional=yes
4785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
4786 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
4787 if test $ac_cv_prog_gcc_traditional = yes; then
4788 CC="$CC -traditional"
4792 BASECC=`basename $CC`
4794 if test "x$BASECC" = xgcc; then
4795 $as_echo "#define HAVE_GCC 1" >>confdefs.h
4799 # Extract the first word of "$CXX", so it can be a program name with args.
4800 set dummy $CXX; ac_word=$2
4801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4802 $as_echo_n "checking for $ac_word... " >&6; }
4803 if test "${ac_cv_path_CXX+set}" = set; then :
4804 $as_echo_n "(cached) " >&6
4808 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
4811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4815 test -z "$as_dir" && as_dir=.
4816 for ac_exec_ext in '' $ac_executable_extensions; do
4817 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4818 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
4819 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4826 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="$CXX"
4831 if test -n "$CXX"; then
4832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4833 $as_echo "$CXX" >&6; }
4835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4836 $as_echo "no" >&6; }
4840 if test ! -e $CXX; then
4841 as_fn_error "Unable to find C++ compiler" "$LINENO" 5
4844 # Find a good install program. We prefer a C program (faster),
4845 # so one script is as good as another. But avoid the broken or
4846 # incompatible versions:
4847 # SysV /etc/install, /usr/sbin/install
4848 # SunOS /usr/etc/install
4849 # IRIX /sbin/install
4851 # AmigaOS /C/install, which installs bootblocks on floppy discs
4852 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4853 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4854 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4855 # OS/2's system install, which has a completely different semantic
4856 # ./install, which can be erroneously created by make from ./install.sh.
4857 # Reject install programs that cannot install multiple files.
4858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4859 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4860 if test -z "$INSTALL"; then
4861 if test "${ac_cv_path_install+set}" = set; then :
4862 $as_echo_n "(cached) " >&6
4864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4868 test -z "$as_dir" && as_dir=.
4869 # Account for people who put trailing slashes in PATH elements.
4870 case $as_dir/ in #((
4871 ./ | .// | /[cC]/* | \
4872 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4873 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4876 # OSF1 and SCO ODT 3.0 have their own names for install.
4877 # Don't use installbsd from OSF since it installs stuff as root
4879 for ac_prog in ginstall scoinst install; do
4880 for ac_exec_ext in '' $ac_executable_extensions; do
4881 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4882 if test $ac_prog = install &&
4883 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4884 # AIX install. It has an incompatible calling convention.
4886 elif test $ac_prog = install &&
4887 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4888 # program-specific install script used by HP pwplus--don't use.
4891 rm -rf conftest.one conftest.two conftest.dir
4892 echo one > conftest.one
4893 echo two > conftest.two
4895 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4896 test -s conftest.one && test -s conftest.two &&
4897 test -s conftest.dir/conftest.one &&
4898 test -s conftest.dir/conftest.two
4900 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4913 rm -rf conftest.one conftest.two conftest.dir
4916 if test "${ac_cv_path_install+set}" = set; then
4917 INSTALL=$ac_cv_path_install
4919 # As a last resort, use the slow shell script. Don't cache a
4920 # value for INSTALL within a source directory, because that will
4921 # break other packages using the cache if that directory is
4922 # removed, or if the value is a relative name.
4923 INSTALL=$ac_install_sh
4926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4927 $as_echo "$INSTALL" >&6; }
4929 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4930 # It thinks the first close brace ends the variable substitution.
4931 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4933 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4935 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4937 # Extract the first word of "mv", so it can be a program name with args.
4938 set dummy mv; ac_word=$2
4939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4940 $as_echo_n "checking for $ac_word... " >&6; }
4941 if test "${ac_cv_path_MV+set}" = set; then :
4942 $as_echo_n "(cached) " >&6
4946 ac_cv_path_MV="$MV" # Let the user override the test with a path.
4949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4953 test -z "$as_dir" && as_dir=.
4954 for ac_exec_ext in '' $ac_executable_extensions; do
4955 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4956 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4957 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4964 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4969 if test -n "$MV"; then
4970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
4971 $as_echo "$MV" >&6; }
4973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4974 $as_echo "no" >&6; }
4978 # Extract the first word of "rm", so it can be a program name with args.
4979 set dummy rm; ac_word=$2
4980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4981 $as_echo_n "checking for $ac_word... " >&6; }
4982 if test "${ac_cv_path_REMOVE+set}" = set; then :
4983 $as_echo_n "(cached) " >&6
4987 ac_cv_path_REMOVE="$REMOVE" # Let the user override the test with a path.
4990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4994 test -z "$as_dir" && as_dir=.
4995 for ac_exec_ext in '' $ac_executable_extensions; do
4996 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4997 ac_cv_path_REMOVE="$as_dir/$ac_word$ac_exec_ext"
4998 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5005 test -z "$ac_cv_path_REMOVE" && ac_cv_path_REMOVE="rm"
5009 REMOVE=$ac_cv_path_REMOVE
5010 if test -n "$REMOVE"; then
5011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $REMOVE" >&5
5012 $as_echo "$REMOVE" >&6; }
5014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5015 $as_echo "no" >&6; }
5019 # Extract the first word of "cp", so it can be a program name with args.
5020 set dummy cp; ac_word=$2
5021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5022 $as_echo_n "checking for $ac_word... " >&6; }
5023 if test "${ac_cv_path_CP+set}" = set; then :
5024 $as_echo_n "(cached) " >&6
5028 ac_cv_path_CP="$CP" # Let the user override the test with a path.
5031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5035 test -z "$as_dir" && as_dir=.
5036 for ac_exec_ext in '' $ac_executable_extensions; do
5037 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5038 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5039 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5046 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5051 if test -n "$CP"; then
5052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
5053 $as_echo "$CP" >&6; }
5055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5056 $as_echo "no" >&6; }
5060 # Extract the first word of "sed", so it can be a program name with args.
5061 set dummy sed; ac_word=$2
5062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5063 $as_echo_n "checking for $ac_word... " >&6; }
5064 if test "${ac_cv_path_SED+set}" = set; then :
5065 $as_echo_n "(cached) " >&6
5069 ac_cv_path_SED="$SED" # Let the user override the test with a path.
5072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5076 test -z "$as_dir" && as_dir=.
5077 for ac_exec_ext in '' $ac_executable_extensions; do
5078 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5079 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
5080 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5087 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
5092 if test -n "$SED"; then
5093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
5094 $as_echo "$SED" >&6; }
5096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5097 $as_echo "no" >&6; }
5101 # Extract the first word of "echo", so it can be a program name with args.
5102 set dummy echo; ac_word=$2
5103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5104 $as_echo_n "checking for $ac_word... " >&6; }
5105 if test "${ac_cv_path_ECHO+set}" = set; then :
5106 $as_echo_n "(cached) " >&6
5110 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
5113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5117 test -z "$as_dir" && as_dir=.
5118 for ac_exec_ext in '' $ac_executable_extensions; do
5119 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5120 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
5121 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5128 test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
5132 ECHO=$ac_cv_path_ECHO
5133 if test -n "$ECHO"; then
5134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
5135 $as_echo "$ECHO" >&6; }
5137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5138 $as_echo "no" >&6; }
5142 # Extract the first word of "cmp", so it can be a program name with args.
5143 set dummy cmp; ac_word=$2
5144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5145 $as_echo_n "checking for $ac_word... " >&6; }
5146 if test "${ac_cv_path_CMP+set}" = set; then :
5147 $as_echo_n "(cached) " >&6
5151 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5158 test -z "$as_dir" && as_dir=.
5159 for ac_exec_ext in '' $ac_executable_extensions; do
5160 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5161 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5162 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5169 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5174 if test -n "$CMP"; then
5175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5
5176 $as_echo "$CMP" >&6; }
5178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5179 $as_echo "no" >&6; }
5183 # Extract the first word of "tbl", so it can be a program name with args.
5184 set dummy tbl; ac_word=$2
5185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5186 $as_echo_n "checking for $ac_word... " >&6; }
5187 if test "${ac_cv_path_TBL+set}" = set; then :
5188 $as_echo_n "(cached) " >&6
5192 ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
5195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5199 test -z "$as_dir" && as_dir=.
5200 for ac_exec_ext in '' $ac_executable_extensions; do
5201 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5202 ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
5203 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5210 test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
5215 if test -n "$TBL"; then
5216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TBL" >&5
5217 $as_echo "$TBL" >&6; }
5219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5220 $as_echo "no" >&6; }
5224 # Extract the first word of "ar", so it can be a program name with args.
5225 set dummy ar; ac_word=$2
5226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5227 $as_echo_n "checking for $ac_word... " >&6; }
5228 if test "${ac_cv_path_AR+set}" = set; then :
5229 $as_echo_n "(cached) " >&6
5233 ac_cv_path_AR="$AR" # Let the user override the test with a path.
5236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5240 test -z "$as_dir" && as_dir=.
5241 for ac_exec_ext in '' $ac_executable_extensions; do
5242 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5243 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
5244 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5251 test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
5256 if test -n "$AR"; then
5257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5258 $as_echo "$AR" >&6; }
5260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5261 $as_echo "no" >&6; }
5265 # Extract the first word of "openssl", so it can be a program name with args.
5266 set dummy openssl; ac_word=$2
5267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5268 $as_echo_n "checking for $ac_word... " >&6; }
5269 if test "${ac_cv_path_OPENSSL+set}" = set; then :
5270 $as_echo_n "(cached) " >&6
5274 ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
5277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5281 test -z "$as_dir" && as_dir=.
5282 for ac_exec_ext in '' $ac_executable_extensions; do
5283 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5284 ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
5285 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5292 test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
5296 OPENSSL=$ac_cv_path_OPENSSL
5297 if test -n "$OPENSSL"; then
5298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENSSL" >&5
5299 $as_echo "$OPENSSL" >&6; }
5301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5302 $as_echo "no" >&6; }
5306 # Extract the first word of "mtx", so it can be a program name with args.
5307 set dummy mtx; ac_word=$2
5308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5309 $as_echo_n "checking for $ac_word... " >&6; }
5310 if test "${ac_cv_path_MTX+set}" = set; then :
5311 $as_echo_n "(cached) " >&6
5315 ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
5318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5322 test -z "$as_dir" && as_dir=.
5323 for ac_exec_ext in '' $ac_executable_extensions; do
5324 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5325 ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
5326 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5333 test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
5338 if test -n "$MTX"; then
5339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MTX" >&5
5340 $as_echo "$MTX" >&6; }
5342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5343 $as_echo "no" >&6; }
5347 # Extract the first word of "dd", so it can be a program name with args.
5348 set dummy dd; ac_word=$2
5349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5350 $as_echo_n "checking for $ac_word... " >&6; }
5351 if test "${ac_cv_path_DD+set}" = set; then :
5352 $as_echo_n "(cached) " >&6
5356 ac_cv_path_DD="$DD" # Let the user override the test with a path.
5359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5363 test -z "$as_dir" && as_dir=.
5364 for ac_exec_ext in '' $ac_executable_extensions; do
5365 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5366 ac_cv_path_DD="$as_dir/$ac_word$ac_exec_ext"
5367 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5374 test -z "$ac_cv_path_DD" && ac_cv_path_DD="dd"
5379 if test -n "$DD"; then
5380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DD" >&5
5381 $as_echo "$DD" >&6; }
5383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5384 $as_echo "no" >&6; }
5388 # Extract the first word of "mkisofs", so it can be a program name with args.
5389 set dummy mkisofs; ac_word=$2
5390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5391 $as_echo_n "checking for $ac_word... " >&6; }
5392 if test "${ac_cv_path_MKISOFS+set}" = set; then :
5393 $as_echo_n "(cached) " >&6
5397 ac_cv_path_MKISOFS="$MKISOFS" # Let the user override the test with a path.
5400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5404 test -z "$as_dir" && as_dir=.
5405 for ac_exec_ext in '' $ac_executable_extensions; do
5406 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5407 ac_cv_path_MKISOFS="$as_dir/$ac_word$ac_exec_ext"
5408 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5415 test -z "$ac_cv_path_MKISOFS" && ac_cv_path_MKISOFS="mkisofs"
5419 MKISOFS=$ac_cv_path_MKISOFS
5420 if test -n "$MKISOFS"; then
5421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKISOFS" >&5
5422 $as_echo "$MKISOFS" >&6; }
5424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5425 $as_echo "no" >&6; }
5429 # Extract the first word of "python", so it can be a program name with args.
5430 set dummy python; ac_word=$2
5431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5432 $as_echo_n "checking for $ac_word... " >&6; }
5433 if test "${ac_cv_path_PYTHON+set}" = set; then :
5434 $as_echo_n "(cached) " >&6
5438 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
5441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5445 test -z "$as_dir" && as_dir=.
5446 for ac_exec_ext in '' $ac_executable_extensions; do
5447 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5448 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
5449 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5456 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="python"
5460 PYTHON=$ac_cv_path_PYTHON
5461 if test -n "$PYTHON"; then
5462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
5463 $as_echo "$PYTHON" >&6; }
5465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5466 $as_echo "no" >&6; }
5470 # Extract the first word of "growisofs", so it can be a program name with args.
5471 set dummy growisofs; ac_word=$2
5472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5473 $as_echo_n "checking for $ac_word... " >&6; }
5474 if test "${ac_cv_path_GROWISOFS+set}" = set; then :
5475 $as_echo_n "(cached) " >&6
5479 ac_cv_path_GROWISOFS="$GROWISOFS" # Let the user override the test with a path.
5482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5486 test -z "$as_dir" && as_dir=.
5487 for ac_exec_ext in '' $ac_executable_extensions; do
5488 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5489 ac_cv_path_GROWISOFS="$as_dir/$ac_word$ac_exec_ext"
5490 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5497 test -z "$ac_cv_path_GROWISOFS" && ac_cv_path_GROWISOFS="growisofs"
5501 GROWISOFS=$ac_cv_path_GROWISOFS
5502 if test -n "$GROWISOFS"; then
5503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GROWISOFS" >&5
5504 $as_echo "$GROWISOFS" >&6; }
5506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5507 $as_echo "no" >&6; }
5511 # Extract the first word of "dvd+rw-mediainfo", so it can be a program name with args.
5512 set dummy dvd+rw-mediainfo; ac_word=$2
5513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5514 $as_echo_n "checking for $ac_word... " >&6; }
5515 if test "${ac_cv_path_DVDRWMEDIAINFO+set}" = set; then :
5516 $as_echo_n "(cached) " >&6
5518 case $DVDRWMEDIAINFO in
5520 ac_cv_path_DVDRWMEDIAINFO="$DVDRWMEDIAINFO" # Let the user override the test with a path.
5523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5527 test -z "$as_dir" && as_dir=.
5528 for ac_exec_ext in '' $ac_executable_extensions; do
5529 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5530 ac_cv_path_DVDRWMEDIAINFO="$as_dir/$ac_word$ac_exec_ext"
5531 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5538 test -z "$ac_cv_path_DVDRWMEDIAINFO" && ac_cv_path_DVDRWMEDIAINFO="dvd+rw-mediainfo"
5542 DVDRWMEDIAINFO=$ac_cv_path_DVDRWMEDIAINFO
5543 if test -n "$DVDRWMEDIAINFO"; then
5544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVDRWMEDIAINFO" >&5
5545 $as_echo "$DVDRWMEDIAINFO" >&6; }
5547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5548 $as_echo "no" >&6; }
5552 # Extract the first word of "dvd+rw-format", so it can be a program name with args.
5553 set dummy dvd+rw-format; ac_word=$2
5554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5555 $as_echo_n "checking for $ac_word... " >&6; }
5556 if test "${ac_cv_path_DVDRWFORMAT+set}" = set; then :
5557 $as_echo_n "(cached) " >&6
5559 case $DVDRWFORMAT in
5561 ac_cv_path_DVDRWFORMAT="$DVDRWFORMAT" # Let the user override the test with a path.
5564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5568 test -z "$as_dir" && as_dir=.
5569 for ac_exec_ext in '' $ac_executable_extensions; do
5570 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5571 ac_cv_path_DVDRWFORMAT="$as_dir/$ac_word$ac_exec_ext"
5572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5579 test -z "$ac_cv_path_DVDRWFORMAT" && ac_cv_path_DVDRWFORMAT="dvd+rw-format"
5583 DVDRWFORMAT=$ac_cv_path_DVDRWFORMAT
5584 if test -n "$DVDRWFORMAT"; then
5585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVDRWFORMAT" >&5
5586 $as_echo "$DVDRWFORMAT" >&6; }
5588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5589 $as_echo "no" >&6; }
5593 # Extract the first word of "pkg-config", so it can be a program name with args.
5594 set dummy pkg-config; ac_word=$2
5595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5596 $as_echo_n "checking for $ac_word... " >&6; }
5597 if test "${ac_cv_path_PKGCONFIG+set}" = set; then :
5598 $as_echo_n "(cached) " >&6
5602 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
5605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5609 test -z "$as_dir" && as_dir=.
5610 for ac_exec_ext in '' $ac_executable_extensions; do
5611 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5612 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
5613 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5620 test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
5624 PKGCONFIG=$ac_cv_path_PKGCONFIG
5625 if test -n "$PKGCONFIG"; then
5626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
5627 $as_echo "$PKGCONFIG" >&6; }
5629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5630 $as_echo "no" >&6; }
5634 # Extract the first word of "qmake", so it can be a program name with args.
5635 set dummy qmake; ac_word=$2
5636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5637 $as_echo_n "checking for $ac_word... " >&6; }
5638 if test "${ac_cv_path_QMAKE+set}" = set; then :
5639 $as_echo_n "(cached) " >&6
5643 ac_cv_path_QMAKE="$QMAKE" # Let the user override the test with a path.
5646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5650 test -z "$as_dir" && as_dir=.
5651 for ac_exec_ext in '' $ac_executable_extensions; do
5652 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5653 ac_cv_path_QMAKE="$as_dir/$ac_word$ac_exec_ext"
5654 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5661 test -z "$ac_cv_path_QMAKE" && ac_cv_path_QMAKE="none"
5665 QMAKE=$ac_cv_path_QMAKE
5666 if test -n "$QMAKE"; then
5667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QMAKE" >&5
5668 $as_echo "$QMAKE" >&6; }
5670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5671 $as_echo "no" >&6; }
5675 # Extract the first word of "gmake", so it can be a program name with args.
5676 set dummy gmake; ac_word=$2
5677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5678 $as_echo_n "checking for $ac_word... " >&6; }
5679 if test "${ac_cv_path_GMAKE+set}" = set; then :
5680 $as_echo_n "(cached) " >&6
5684 ac_cv_path_GMAKE="$GMAKE" # Let the user override the test with a path.
5687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5691 test -z "$as_dir" && as_dir=.
5692 for ac_exec_ext in '' $ac_executable_extensions; do
5693 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5694 ac_cv_path_GMAKE="$as_dir/$ac_word$ac_exec_ext"
5695 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5702 test -z "$ac_cv_path_GMAKE" && ac_cv_path_GMAKE="none"
5706 GMAKE=$ac_cv_path_GMAKE
5707 if test -n "$GMAKE"; then
5708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMAKE" >&5
5709 $as_echo "$GMAKE" >&6; }
5711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5712 $as_echo "no" >&6; }
5717 if test "x$WXCONFIG" = x; then
5720 # Extract the first word of "${WXCONFIG}", so it can be a program name with args.
5721 set dummy ${WXCONFIG}; ac_word=$2
5722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5723 $as_echo_n "checking for $ac_word... " >&6; }
5724 if test "${ac_cv_path_WXCONFIG+set}" = set; then :
5725 $as_echo_n "(cached) " >&6
5729 ac_cv_path_WXCONFIG="$WXCONFIG" # Let the user override the test with a path.
5732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5736 test -z "$as_dir" && as_dir=.
5737 for ac_exec_ext in '' $ac_executable_extensions; do
5738 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5739 ac_cv_path_WXCONFIG="$as_dir/$ac_word$ac_exec_ext"
5740 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5747 test -z "$ac_cv_path_WXCONFIG" && ac_cv_path_WXCONFIG="${WXCONFIG}"
5751 WXCONFIG=$ac_cv_path_WXCONFIG
5752 if test -n "$WXCONFIG"; then
5753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WXCONFIG" >&5
5754 $as_echo "$WXCONFIG" >&6; }
5756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5757 $as_echo "no" >&6; }
5762 # Extract the first word of "cdrecord", so it can be a program name with args.
5763 set dummy cdrecord; ac_word=$2
5764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5765 $as_echo_n "checking for $ac_word... " >&6; }
5766 if test "${ac_cv_path_CDRECORD+set}" = set; then :
5767 $as_echo_n "(cached) " >&6
5771 ac_cv_path_CDRECORD="$CDRECORD" # Let the user override the test with a path.
5774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5778 test -z "$as_dir" && as_dir=.
5779 for ac_exec_ext in '' $ac_executable_extensions; do
5780 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5781 ac_cv_path_CDRECORD="$as_dir/$ac_word$ac_exec_ext"
5782 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5789 test -z "$ac_cv_path_CDRECORD" && ac_cv_path_CDRECORD="cdrecord"
5793 CDRECORD=$ac_cv_path_CDRECORD
5794 if test -n "$CDRECORD"; then
5795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CDRECORD" >&5
5796 $as_echo "$CDRECORD" >&6; }
5798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5799 $as_echo "no" >&6; }
5803 # Extract the first word of "pidof", so it can be a program name with args.
5804 set dummy pidof; ac_word=$2
5805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5806 $as_echo_n "checking for $ac_word... " >&6; }
5807 if test "${ac_cv_path_PIDOF+set}" = set; then :
5808 $as_echo_n "(cached) " >&6
5812 ac_cv_path_PIDOF="$PIDOF" # Let the user override the test with a path.
5815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5819 test -z "$as_dir" && as_dir=.
5820 for ac_exec_ext in '' $ac_executable_extensions; do
5821 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5822 ac_cv_path_PIDOF="$as_dir/$ac_word$ac_exec_ext"
5823 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5830 test -z "$ac_cv_path_PIDOF" && ac_cv_path_PIDOF="pidof"
5834 PIDOF=$ac_cv_path_PIDOF
5835 if test -n "$PIDOF"; then
5836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PIDOF" >&5
5837 $as_echo "$PIDOF" >&6; }
5839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5840 $as_echo "no" >&6; }
5844 for ac_prog in gawk mawk nawk awk
5846 # Extract the first word of "$ac_prog", so it can be a program name with args.
5847 set dummy $ac_prog; ac_word=$2
5848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5849 $as_echo_n "checking for $ac_word... " >&6; }
5850 if test "${ac_cv_prog_AWK+set}" = set; then :
5851 $as_echo_n "(cached) " >&6
5853 if test -n "$AWK"; then
5854 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5860 test -z "$as_dir" && as_dir=.
5861 for ac_exec_ext in '' $ac_executable_extensions; do
5862 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5863 ac_cv_prog_AWK="$ac_prog"
5864 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5874 if test -n "$AWK"; then
5875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5876 $as_echo "$AWK" >&6; }
5878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5879 $as_echo "no" >&6; }
5883 test -n "$AWK" && break
5886 # Some AWK programs fail, so test it and warn the user
5887 if echo xfoo | $AWK 'BEGIN { prog=ARGV1; ARGC=1 }
5888 { if ((prog == $2) || (("(" prog ")") == $2) ||
5889 (("" prog "") == $2) ||
5890 ((prog ":") == $2)) { print $1 ; exit 0 } }' xfoo>/dev/null; then :;
5892 as_fn_error "!!!!!!!!! WARNING !!!!!!!!!!!!!!
5893 The regex engine of $AWK is too broken to be used you
5894 might want to install GNU AWK.
5895 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" "$LINENO" 5
5898 # Extract the first word of "$THE_AWK", so it can be a program name with args.
5899 set dummy $THE_AWK; ac_word=$2
5900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5901 $as_echo_n "checking for $ac_word... " >&6; }
5902 if test "${ac_cv_path_AWK+set}" = set; then :
5903 $as_echo_n "(cached) " >&6
5907 ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
5910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5914 test -z "$as_dir" && as_dir=.
5915 for ac_exec_ext in '' $ac_executable_extensions; do
5916 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5917 ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
5918 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5925 test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="$THE_AWK"
5930 if test -n "$AWK"; then
5931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5932 $as_echo "$AWK" >&6; }
5934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5935 $as_echo "no" >&6; }
5941 test -n "$ARFLAG" || ARFLAGS="cr"
5953 # Check whether --enable-libtool was given.
5954 if test "${enable_libtool+set}" = set; then :
5955 enableval=$enable_libtool;
5956 if test x$enableval = xno; then
5965 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5966 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5971 macro_version='2.2.6'
5972 macro_revision='1.3012'
5986 ltmain="$ac_aux_dir/ltmain.sh"
5988 # Make sure we can run config.sub.
5989 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5990 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5993 $as_echo_n "checking build system type... " >&6; }
5994 if test "${ac_cv_build+set}" = set; then :
5995 $as_echo_n "(cached) " >&6
5997 ac_build_alias=$build_alias
5998 test "x$ac_build_alias" = x &&
5999 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
6000 test "x$ac_build_alias" = x &&
6001 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
6002 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
6003 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
6006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
6007 $as_echo "$ac_cv_build" >&6; }
6008 case $ac_cv_build in
6010 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
6013 ac_save_IFS=$IFS; IFS='-'
6019 # Remember, the first character of IFS is used to create $*,
6020 # except with old shells:
6023 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
6026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
6027 $as_echo_n "checking host system type... " >&6; }
6028 if test "${ac_cv_host+set}" = set; then :
6029 $as_echo_n "(cached) " >&6
6031 if test "x$host_alias" = x; then
6032 ac_cv_host=$ac_cv_build
6034 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
6035 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
6039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
6040 $as_echo "$ac_cv_host" >&6; }
6043 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
6046 ac_save_IFS=$IFS; IFS='-'
6052 # Remember, the first character of IFS is used to create $*,
6053 # except with old shells:
6056 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
6059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6060 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6061 if test "${ac_cv_path_SED+set}" = set; then :
6062 $as_echo_n "(cached) " >&6
6064 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6065 for ac_i in 1 2 3 4 5 6 7; do
6066 ac_script="$ac_script$as_nl$ac_script"
6068 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6069 { ac_script=; unset ac_script;}
6070 if test -z "$SED"; then
6071 ac_path_SED_found=false
6072 # Loop through the user's path and test for each of PROGNAME-LIST
6073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6077 test -z "$as_dir" && as_dir=.
6078 for ac_prog in sed gsed; do
6079 for ac_exec_ext in '' $ac_executable_extensions; do
6080 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6081 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
6082 # Check for GNU ac_path_SED and select it if it is found.
6083 # Check for GNU $ac_path_SED
6084 case `"$ac_path_SED" --version 2>&1` in
6086 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6089 $as_echo_n 0123456789 >"conftest.in"
6092 cat "conftest.in" "conftest.in" >"conftest.tmp"
6093 mv "conftest.tmp" "conftest.in"
6094 cp "conftest.in" "conftest.nl"
6095 $as_echo '' >> "conftest.nl"
6096 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6097 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6098 as_fn_arith $ac_count + 1 && ac_count=$as_val
6099 if test $ac_count -gt ${ac_path_SED_max-0}; then
6100 # Best one so far, save it but keep looking for a better one
6101 ac_cv_path_SED="$ac_path_SED"
6102 ac_path_SED_max=$ac_count
6104 # 10*(2^10) chars as input seems more than enough
6105 test $ac_count -gt 10 && break
6107 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6110 $ac_path_SED_found && break 3
6115 if test -z "$ac_cv_path_SED"; then
6116 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
6123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6124 $as_echo "$ac_cv_path_SED" >&6; }
6125 SED="$ac_cv_path_SED"
6128 test -z "$SED" && SED=sed
6129 Xsed="$SED -e 1s/^X//"
6141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6142 $as_echo_n "checking for fgrep... " >&6; }
6143 if test "${ac_cv_path_FGREP+set}" = set; then :
6144 $as_echo_n "(cached) " >&6
6146 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6147 then ac_cv_path_FGREP="$GREP -F"
6149 if test -z "$FGREP"; then
6150 ac_path_FGREP_found=false
6151 # Loop through the user's path and test for each of PROGNAME-LIST
6152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6153 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6156 test -z "$as_dir" && as_dir=.
6157 for ac_prog in fgrep; do
6158 for ac_exec_ext in '' $ac_executable_extensions; do
6159 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6160 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
6161 # Check for GNU ac_path_FGREP and select it if it is found.
6162 # Check for GNU $ac_path_FGREP
6163 case `"$ac_path_FGREP" --version 2>&1` in
6165 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6168 $as_echo_n 0123456789 >"conftest.in"
6171 cat "conftest.in" "conftest.in" >"conftest.tmp"
6172 mv "conftest.tmp" "conftest.in"
6173 cp "conftest.in" "conftest.nl"
6174 $as_echo 'FGREP' >> "conftest.nl"
6175 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6176 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6177 as_fn_arith $ac_count + 1 && ac_count=$as_val
6178 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6179 # Best one so far, save it but keep looking for a better one
6180 ac_cv_path_FGREP="$ac_path_FGREP"
6181 ac_path_FGREP_max=$ac_count
6183 # 10*(2^10) chars as input seems more than enough
6184 test $ac_count -gt 10 && break
6186 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6189 $ac_path_FGREP_found && break 3
6194 if test -z "$ac_cv_path_FGREP"; then
6195 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6198 ac_cv_path_FGREP=$FGREP
6203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6204 $as_echo "$ac_cv_path_FGREP" >&6; }
6205 FGREP="$ac_cv_path_FGREP"
6208 test -z "$GREP" && GREP=grep
6228 # Check whether --with-gnu-ld was given.
6229 if test "${with_gnu_ld+set}" = set; then :
6230 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6236 if test "$GCC" = yes; then
6237 # Check if gcc -print-prog-name=ld gives a path.
6238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6239 $as_echo_n "checking for ld used by $CC... " >&6; }
6242 # gcc leaves a trailing carriage return which upsets mingw
6243 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6245 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6248 # Accept absolute paths.
6250 re_direlt='/[^/][^/]*/\.\./'
6251 # Canonicalize the pathname of ld
6252 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6253 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6254 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6256 test -z "$LD" && LD="$ac_prog"
6259 # If it fails, then pretend we aren't using GCC.
6263 # If it is relative, then search for the first ld in PATH.
6267 elif test "$with_gnu_ld" = yes; then
6268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6269 $as_echo_n "checking for GNU ld... " >&6; }
6271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6272 $as_echo_n "checking for non-GNU ld... " >&6; }
6274 if test "${lt_cv_path_LD+set}" = set; then :
6275 $as_echo_n "(cached) " >&6
6277 if test -z "$LD"; then
6278 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6279 for ac_dir in $PATH; do
6281 test -z "$ac_dir" && ac_dir=.
6282 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6283 lt_cv_path_LD="$ac_dir/$ac_prog"
6284 # Check to see if the program is GNU ld. I'd rather use --version,
6285 # but apparently some variants of GNU ld only accept -v.
6286 # Break only if it was the GNU/non-GNU ld that we prefer.
6287 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6288 *GNU* | *'with BFD'*)
6289 test "$with_gnu_ld" != no && break
6292 test "$with_gnu_ld" != yes && break
6299 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6304 if test -n "$LD"; then
6305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6306 $as_echo "$LD" >&6; }
6308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6309 $as_echo "no" >&6; }
6311 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
6312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6313 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6314 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
6315 $as_echo_n "(cached) " >&6
6317 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6318 case `$LD -v 2>&1 </dev/null` in
6319 *GNU* | *'with BFD'*)
6320 lt_cv_prog_gnu_ld=yes
6323 lt_cv_prog_gnu_ld=no
6327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6328 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6329 with_gnu_ld=$lt_cv_prog_gnu_ld
6339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6340 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6341 if test "${lt_cv_path_NM+set}" = set; then :
6342 $as_echo_n "(cached) " >&6
6344 if test -n "$NM"; then
6345 # Let the user override the test.
6348 lt_nm_to_check="${ac_tool_prefix}nm"
6349 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6350 lt_nm_to_check="$lt_nm_to_check nm"
6352 for lt_tmp_nm in $lt_nm_to_check; do
6353 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6354 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6356 test -z "$ac_dir" && ac_dir=.
6357 tmp_nm="$ac_dir/$lt_tmp_nm"
6358 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6359 # Check to see if the nm accepts a BSD-compat flag.
6360 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6361 # nm: unknown option "B" ignored
6362 # Tru64's nm complains that /dev/null is an invalid object file
6363 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6364 */dev/null* | *'Invalid file or object type'*)
6365 lt_cv_path_NM="$tmp_nm -B"
6369 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6371 lt_cv_path_NM="$tmp_nm -p"
6375 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6376 continue # so that we can try to find one that supports BSD flags
6385 : ${lt_cv_path_NM=no}
6388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6389 $as_echo "$lt_cv_path_NM" >&6; }
6390 if test "$lt_cv_path_NM" != "no"; then
6393 # Didn't find any BSD compatible name lister, look for dumpbin.
6394 if test -n "$ac_tool_prefix"; then
6395 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
6397 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6398 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6400 $as_echo_n "checking for $ac_word... " >&6; }
6401 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
6402 $as_echo_n "(cached) " >&6
6404 if test -n "$DUMPBIN"; then
6405 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6411 test -z "$as_dir" && as_dir=.
6412 for ac_exec_ext in '' $ac_executable_extensions; do
6413 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6414 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6415 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6424 DUMPBIN=$ac_cv_prog_DUMPBIN
6425 if test -n "$DUMPBIN"; then
6426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6427 $as_echo "$DUMPBIN" >&6; }
6429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6430 $as_echo "no" >&6; }
6434 test -n "$DUMPBIN" && break
6437 if test -z "$DUMPBIN"; then
6438 ac_ct_DUMPBIN=$DUMPBIN
6439 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
6441 # Extract the first word of "$ac_prog", so it can be a program name with args.
6442 set dummy $ac_prog; ac_word=$2
6443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6444 $as_echo_n "checking for $ac_word... " >&6; }
6445 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
6446 $as_echo_n "(cached) " >&6
6448 if test -n "$ac_ct_DUMPBIN"; then
6449 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6455 test -z "$as_dir" && as_dir=.
6456 for ac_exec_ext in '' $ac_executable_extensions; do
6457 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6458 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6459 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6468 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6469 if test -n "$ac_ct_DUMPBIN"; then
6470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6471 $as_echo "$ac_ct_DUMPBIN" >&6; }
6473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6474 $as_echo "no" >&6; }
6478 test -n "$ac_ct_DUMPBIN" && break
6481 if test "x$ac_ct_DUMPBIN" = x; then
6484 case $cross_compiling:$ac_tool_warned in
6486 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6487 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6488 ac_tool_warned=yes ;;
6490 DUMPBIN=$ac_ct_DUMPBIN
6495 if test "$DUMPBIN" != ":"; then
6499 test -z "$NM" && NM=nm
6506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6507 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6508 if test "${lt_cv_nm_interface+set}" = set; then :
6509 $as_echo_n "(cached) " >&6
6511 lt_cv_nm_interface="BSD nm"
6512 echo "int some_variable = 0;" > conftest.$ac_ext
6513 (eval echo "\"\$as_me:6513: $ac_compile\"" >&5)
6514 (eval "$ac_compile" 2>conftest.err)
6515 cat conftest.err >&5
6516 (eval echo "\"\$as_me:6516: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6517 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6518 cat conftest.err >&5
6519 (eval echo "\"\$as_me:6519: output\"" >&5)
6520 cat conftest.out >&5
6521 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6522 lt_cv_nm_interface="MS dumpbin"
6526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6527 $as_echo "$lt_cv_nm_interface" >&6; }
6529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6530 $as_echo_n "checking whether ln -s works... " >&6; }
6532 if test "$LN_S" = "ln -s"; then
6533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6534 $as_echo "yes" >&6; }
6536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6537 $as_echo "no, using $LN_S" >&6; }
6540 # find the maximum length of command line arguments
6541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6542 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6543 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
6544 $as_echo_n "(cached) " >&6
6551 # On DJGPP, this test can blow up pretty badly due to problems in libc
6552 # (any single argument exceeding 2000 bytes causes a buffer overrun
6553 # during glob expansion). Even if it were fixed, the result of this
6554 # check would be larger than it should be.
6555 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6559 # Under GNU Hurd, this test is not required because there is
6560 # no limit to the length of command line arguments.
6561 # Libtool will interpret -1 as no limit whatsoever
6562 lt_cv_sys_max_cmd_len=-1;
6565 cygwin* | mingw* | cegcc*)
6566 # On Win9x/ME, this test blows up -- it succeeds, but takes
6567 # about 5 minutes as the teststring grows exponentially.
6568 # Worse, since 9x/ME are not pre-emptively multitasking,
6569 # you end up with a "frozen" computer, even though with patience
6570 # the test eventually succeeds (with a max line length of 256k).
6571 # Instead, let's just punt: use the minimum linelength reported by
6572 # all of the supported platforms: 8192 (on NT/2K/XP).
6573 lt_cv_sys_max_cmd_len=8192;
6577 # On AmigaOS with pdksh, this test takes hours, literally.
6578 # So we just punt and use a minimum line length of 8192.
6579 lt_cv_sys_max_cmd_len=8192;
6582 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6583 # This has been around since 386BSD, at least. Likely further.
6584 if test -x /sbin/sysctl; then
6585 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6586 elif test -x /usr/sbin/sysctl; then
6587 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6589 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6591 # And add a safety zone
6592 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6593 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6597 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6598 lt_cv_sys_max_cmd_len=196608
6602 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6603 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6604 # nice to cause kernel panics so lets avoid the loop below.
6605 # First set a reasonable default.
6606 lt_cv_sys_max_cmd_len=16384
6608 if test -x /sbin/sysconfig; then
6609 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6610 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6615 lt_cv_sys_max_cmd_len=102400
6617 sysv5* | sco5v6* | sysv4.2uw2*)
6618 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6619 if test -n "$kargmax"; then
6620 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6622 lt_cv_sys_max_cmd_len=32768
6626 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6627 if test -n "$lt_cv_sys_max_cmd_len"; then
6628 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6629 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6631 # Make teststring a little bigger before we do anything with it.
6632 # a 1K string should be a reasonable start.
6633 for i in 1 2 3 4 5 6 7 8 ; do
6634 teststring=$teststring$teststring
6636 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6637 # If test is not a shell built-in, we'll probably end up computing a
6638 # maximum length that is only half of the actual maximum length, but
6640 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
6641 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
6642 test $i != 17 # 1/2 MB should be enough
6645 teststring=$teststring$teststring
6647 # Only check the string length outside the loop.
6648 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6650 # Add a significant safety factor because C++ compilers can tack on
6651 # massive amounts of additional arguments before passing them to the
6652 # linker. It appears as though 1/2 is a usable value.
6653 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6660 if test -n $lt_cv_sys_max_cmd_len ; then
6661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6662 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6665 $as_echo "none" >&6; }
6667 max_cmd_len=$lt_cv_sys_max_cmd_len
6678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6679 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6680 # Try some XSI features
6683 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6685 && eval 'test $(( 1 + 1 )) -eq 2 \
6686 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6689 $as_echo "$xsi_shell" >&6; }
6692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6693 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6695 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6697 && lt_shell_append=yes
6698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6699 $as_echo "$lt_shell_append" >&6; }
6702 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6712 # test EBCDIC or ASCII
6713 case `echo X|tr X '\101'` in
6714 A) # ASCII based system
6715 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6716 lt_SP2NL='tr \040 \012'
6717 lt_NL2SP='tr \015\012 \040\040'
6719 *) # EBCDIC based system
6720 lt_SP2NL='tr \100 \n'
6721 lt_NL2SP='tr \r\n \100\100'
6733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6734 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6735 if test "${lt_cv_ld_reload_flag+set}" = set; then :
6736 $as_echo_n "(cached) " >&6
6738 lt_cv_ld_reload_flag='-r'
6740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6741 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6742 reload_flag=$lt_cv_ld_reload_flag
6743 case $reload_flag in
6745 *) reload_flag=" $reload_flag" ;;
6747 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6750 if test "$GCC" = yes; then
6751 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6753 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6766 if test -n "$ac_tool_prefix"; then
6767 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6768 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6770 $as_echo_n "checking for $ac_word... " >&6; }
6771 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
6772 $as_echo_n "(cached) " >&6
6774 if test -n "$OBJDUMP"; then
6775 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6781 test -z "$as_dir" && as_dir=.
6782 for ac_exec_ext in '' $ac_executable_extensions; do
6783 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6784 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6785 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6794 OBJDUMP=$ac_cv_prog_OBJDUMP
6795 if test -n "$OBJDUMP"; then
6796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6797 $as_echo "$OBJDUMP" >&6; }
6799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6800 $as_echo "no" >&6; }
6805 if test -z "$ac_cv_prog_OBJDUMP"; then
6806 ac_ct_OBJDUMP=$OBJDUMP
6807 # Extract the first word of "objdump", so it can be a program name with args.
6808 set dummy objdump; ac_word=$2
6809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6810 $as_echo_n "checking for $ac_word... " >&6; }
6811 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
6812 $as_echo_n "(cached) " >&6
6814 if test -n "$ac_ct_OBJDUMP"; then
6815 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6821 test -z "$as_dir" && as_dir=.
6822 for ac_exec_ext in '' $ac_executable_extensions; do
6823 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6824 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6825 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6834 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6835 if test -n "$ac_ct_OBJDUMP"; then
6836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6837 $as_echo "$ac_ct_OBJDUMP" >&6; }
6839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6840 $as_echo "no" >&6; }
6843 if test "x$ac_ct_OBJDUMP" = x; then
6846 case $cross_compiling:$ac_tool_warned in
6848 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6849 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6850 ac_tool_warned=yes ;;
6852 OBJDUMP=$ac_ct_OBJDUMP
6855 OBJDUMP="$ac_cv_prog_OBJDUMP"
6858 test -z "$OBJDUMP" && OBJDUMP=objdump
6868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6869 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6870 if test "${lt_cv_deplibs_check_method+set}" = set; then :
6871 $as_echo_n "(cached) " >&6
6873 lt_cv_file_magic_cmd='$MAGIC_CMD'
6874 lt_cv_file_magic_test_file=
6875 lt_cv_deplibs_check_method='unknown'
6876 # Need to set the preceding variable on all platforms that support
6877 # interlibrary dependencies.
6878 # 'none' -- dependencies not supported.
6879 # `unknown' -- same as none, but documents that we really don't know.
6880 # 'pass_all' -- all dependencies passed with no checks.
6881 # 'test_compile' -- check by making test program.
6882 # 'file_magic [[regex]]' -- check by looking for files in library path
6883 # which responds to the $file_magic_cmd with a given extended regex.
6884 # If you have `file' or equivalent on your system and you're not sure
6885 # whether `pass_all' will *always* work, you probably want this one.
6889 lt_cv_deplibs_check_method=pass_all
6893 lt_cv_deplibs_check_method=pass_all
6897 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6898 lt_cv_file_magic_cmd='/usr/bin/file -L'
6899 lt_cv_file_magic_test_file=/shlib/libc.so
6903 # func_win32_libid is a shell function defined in ltmain.sh
6904 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6905 lt_cv_file_magic_cmd='func_win32_libid'
6909 # Base MSYS/MinGW do not provide the 'file' command needed by
6910 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6911 # unless we find 'file', for example because we are cross-compiling.
6912 if ( file / ) >/dev/null 2>&1; then
6913 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6914 lt_cv_file_magic_cmd='func_win32_libid'
6916 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6917 lt_cv_file_magic_cmd='$OBJDUMP -f'
6922 # use the weaker test based on 'objdump'. See mingw*.
6923 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6924 lt_cv_file_magic_cmd='$OBJDUMP -f'
6927 darwin* | rhapsody*)
6928 lt_cv_deplibs_check_method=pass_all
6931 freebsd* | dragonfly*)
6932 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6935 # Not sure whether the presence of OpenBSD here was a mistake.
6936 # Let's accept both of them until this is cleared up.
6937 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6938 lt_cv_file_magic_cmd=/usr/bin/file
6939 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6943 lt_cv_deplibs_check_method=pass_all
6948 lt_cv_deplibs_check_method=pass_all
6951 hpux10.20* | hpux11*)
6952 lt_cv_file_magic_cmd=/usr/bin/file
6955 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6956 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6959 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]'
6960 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6963 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6964 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6970 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6971 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6974 irix5* | irix6* | nonstopux*)
6976 *-32|*"-32 ") libmagic=32-bit;;
6977 *-n32|*"-n32 ") libmagic=N32;;
6978 *-64|*"-64 ") libmagic=64-bit;;
6979 *) libmagic=never-match;;
6981 lt_cv_deplibs_check_method=pass_all
6984 # This must be Linux ELF.
6985 linux* | k*bsd*-gnu)
6986 lt_cv_deplibs_check_method=pass_all
6990 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6991 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6993 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6998 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6999 lt_cv_file_magic_cmd=/usr/bin/file
7000 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7004 lt_cv_deplibs_check_method=pass_all
7008 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7009 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7011 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7015 osf3* | osf4* | osf5*)
7016 lt_cv_deplibs_check_method=pass_all
7020 lt_cv_deplibs_check_method=pass_all
7024 lt_cv_deplibs_check_method=pass_all
7027 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7028 lt_cv_deplibs_check_method=pass_all
7032 case $host_vendor in
7034 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]'
7035 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7038 lt_cv_deplibs_check_method=pass_all
7041 lt_cv_file_magic_cmd='/bin/file'
7042 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7045 lt_cv_file_magic_cmd='/bin/file'
7046 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7047 lt_cv_file_magic_test_file=/lib/libc.so
7050 lt_cv_deplibs_check_method=pass_all
7053 lt_cv_deplibs_check_method=pass_all
7059 lt_cv_deplibs_check_method=pass_all
7064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7065 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7066 file_magic_cmd=$lt_cv_file_magic_cmd
7067 deplibs_check_method=$lt_cv_deplibs_check_method
7068 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7081 if test -n "$ac_tool_prefix"; then
7082 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7083 set dummy ${ac_tool_prefix}ar; ac_word=$2
7084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7085 $as_echo_n "checking for $ac_word... " >&6; }
7086 if test "${ac_cv_prog_AR+set}" = set; then :
7087 $as_echo_n "(cached) " >&6
7089 if test -n "$AR"; then
7090 ac_cv_prog_AR="$AR" # Let the user override the test.
7092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7096 test -z "$as_dir" && as_dir=.
7097 for ac_exec_ext in '' $ac_executable_extensions; do
7098 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7099 ac_cv_prog_AR="${ac_tool_prefix}ar"
7100 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7110 if test -n "$AR"; then
7111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7112 $as_echo "$AR" >&6; }
7114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7115 $as_echo "no" >&6; }
7120 if test -z "$ac_cv_prog_AR"; then
7122 # Extract the first word of "ar", so it can be a program name with args.
7123 set dummy ar; ac_word=$2
7124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7125 $as_echo_n "checking for $ac_word... " >&6; }
7126 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
7127 $as_echo_n "(cached) " >&6
7129 if test -n "$ac_ct_AR"; then
7130 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7136 test -z "$as_dir" && as_dir=.
7137 for ac_exec_ext in '' $ac_executable_extensions; do
7138 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7139 ac_cv_prog_ac_ct_AR="ar"
7140 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7149 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7150 if test -n "$ac_ct_AR"; then
7151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7152 $as_echo "$ac_ct_AR" >&6; }
7154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7155 $as_echo "no" >&6; }
7158 if test "x$ac_ct_AR" = x; then
7161 case $cross_compiling:$ac_tool_warned in
7163 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7164 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7165 ac_tool_warned=yes ;;
7173 test -z "$AR" && AR=ar
7174 test -z "$AR_FLAGS" && AR_FLAGS=cru
7186 if test -n "$ac_tool_prefix"; then
7187 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7188 set dummy ${ac_tool_prefix}strip; ac_word=$2
7189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7190 $as_echo_n "checking for $ac_word... " >&6; }
7191 if test "${ac_cv_prog_STRIP+set}" = set; then :
7192 $as_echo_n "(cached) " >&6
7194 if test -n "$STRIP"; then
7195 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7201 test -z "$as_dir" && as_dir=.
7202 for ac_exec_ext in '' $ac_executable_extensions; do
7203 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7204 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7205 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7214 STRIP=$ac_cv_prog_STRIP
7215 if test -n "$STRIP"; then
7216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7217 $as_echo "$STRIP" >&6; }
7219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7220 $as_echo "no" >&6; }
7225 if test -z "$ac_cv_prog_STRIP"; then
7227 # Extract the first word of "strip", so it can be a program name with args.
7228 set dummy strip; ac_word=$2
7229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7230 $as_echo_n "checking for $ac_word... " >&6; }
7231 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
7232 $as_echo_n "(cached) " >&6
7234 if test -n "$ac_ct_STRIP"; then
7235 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7241 test -z "$as_dir" && as_dir=.
7242 for ac_exec_ext in '' $ac_executable_extensions; do
7243 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7244 ac_cv_prog_ac_ct_STRIP="strip"
7245 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7254 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7255 if test -n "$ac_ct_STRIP"; then
7256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7257 $as_echo "$ac_ct_STRIP" >&6; }
7259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7260 $as_echo "no" >&6; }
7263 if test "x$ac_ct_STRIP" = x; then
7266 case $cross_compiling:$ac_tool_warned in
7268 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7269 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7270 ac_tool_warned=yes ;;
7275 STRIP="$ac_cv_prog_STRIP"
7278 test -z "$STRIP" && STRIP=:
7285 if test -n "$ac_tool_prefix"; then
7286 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7287 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7289 $as_echo_n "checking for $ac_word... " >&6; }
7290 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7291 $as_echo_n "(cached) " >&6
7293 if test -n "$RANLIB"; then
7294 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7300 test -z "$as_dir" && as_dir=.
7301 for ac_exec_ext in '' $ac_executable_extensions; do
7302 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7303 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7304 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7313 RANLIB=$ac_cv_prog_RANLIB
7314 if test -n "$RANLIB"; then
7315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7316 $as_echo "$RANLIB" >&6; }
7318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7319 $as_echo "no" >&6; }
7324 if test -z "$ac_cv_prog_RANLIB"; then
7325 ac_ct_RANLIB=$RANLIB
7326 # Extract the first word of "ranlib", so it can be a program name with args.
7327 set dummy ranlib; ac_word=$2
7328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7329 $as_echo_n "checking for $ac_word... " >&6; }
7330 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7331 $as_echo_n "(cached) " >&6
7333 if test -n "$ac_ct_RANLIB"; then
7334 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7340 test -z "$as_dir" && as_dir=.
7341 for ac_exec_ext in '' $ac_executable_extensions; do
7342 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7343 ac_cv_prog_ac_ct_RANLIB="ranlib"
7344 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7353 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7354 if test -n "$ac_ct_RANLIB"; then
7355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7356 $as_echo "$ac_ct_RANLIB" >&6; }
7358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7359 $as_echo "no" >&6; }
7362 if test "x$ac_ct_RANLIB" = x; then
7365 case $cross_compiling:$ac_tool_warned in
7367 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7368 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7369 ac_tool_warned=yes ;;
7371 RANLIB=$ac_ct_RANLIB
7374 RANLIB="$ac_cv_prog_RANLIB"
7377 test -z "$RANLIB" && RANLIB=:
7384 # Determine commands to create old-style static archives.
7385 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7386 old_postinstall_cmds='chmod 644 $oldlib'
7387 old_postuninstall_cmds=
7389 if test -n "$RANLIB"; then
7392 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7395 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7398 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7434 # If no C compiler was specified, use CC.
7437 # If no C compiler flags were specified, use CFLAGS.
7438 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7440 # Allow CC to be a program name with arguments.
7444 # Check for command to grab the raw symbol name followed by C symbol from nm.
7445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7446 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7447 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
7448 $as_echo_n "(cached) " >&6
7451 # These are sane defaults that work on at least a few old systems.
7452 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7454 # Character class describing NM global symbol codes.
7455 symcode='[BCDEGRST]'
7457 # Regexp to match symbols that can be accessed directly from C.
7458 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7460 # Define system-specific variables.
7465 cygwin* | mingw* | pw32* | cegcc*)
7466 symcode='[ABCDGISTW]'
7469 if test "$host_cpu" = ia64; then
7470 symcode='[ABCDEGRST]'
7474 symcode='[BCDEGRST]'
7477 symcode='[BCDEGQRST]'
7488 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7496 # If we're using GNU nm, then use its standard symbol codes.
7497 case `$NM -V 2>&1` in
7498 *GNU* | *'with BFD'*)
7499 symcode='[ABCDGIRSTW]' ;;
7502 # Transform an extracted symbol line into a proper C declaration.
7503 # Some systems (esp. on ia64) link data and code symbols differently,
7504 # so use this general approach.
7505 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7507 # Transform an extracted symbol line into symbol name and symbol address
7508 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7509 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'"
7511 # Handle CRLF in mingw tool chain
7515 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7519 # Try without a prefix underscore, then with it.
7520 for ac_symprfx in "" "_"; do
7522 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7523 symxfrm="\\1 $ac_symprfx\\2 \\2"
7525 # Write the raw and C identifiers.
7526 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7527 # Fake it for dumpbin and say T for any non-static function
7528 # and D for any global variable.
7529 # Also find C++ and __fastcall symbols from MSVC++,
7530 # which start with @ or ?.
7531 lt_cv_sys_global_symbol_pipe="$AWK '"\
7532 " {last_section=section; section=\$ 3};"\
7533 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7534 " \$ 0!~/External *\|/{next};"\
7535 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7536 " {if(hide[section]) next};"\
7537 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7538 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7539 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7540 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7541 " ' prfx=^$ac_symprfx"
7543 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7546 # Check to see that the pipe works correctly.
7550 cat > conftest.$ac_ext <<_LT_EOF
7555 void nm_test_func(void);
7556 void nm_test_func(void){}
7560 int main(){nm_test_var='a';nm_test_func();return(0);}
7563 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7564 (eval $ac_compile) 2>&5
7566 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7567 test $ac_status = 0; }; then
7568 # Now try to grab the symbols.
7570 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
7571 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7573 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7574 test $ac_status = 0; } && test -s "$nlist"; then
7575 # Try sorting and uniquifying the output.
7576 if sort "$nlist" | uniq > "$nlist"T; then
7577 mv -f "$nlist"T "$nlist"
7582 # Make sure that we snagged all the symbols we need.
7583 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7584 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7585 cat <<_LT_EOF > conftest.$ac_ext
7591 # Now generate the symbol file.
7592 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7594 cat <<_LT_EOF >> conftest.$ac_ext
7596 /* The mapping between symbol names and symbols. */
7601 lt__PROGRAM__LTX_preloaded_symbols[] =
7603 { "@PROGRAM@", (void *) 0 },
7605 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7606 cat <<\_LT_EOF >> conftest.$ac_ext
7610 /* This works around a problem in FreeBSD linker */
7611 #ifdef FREEBSD_WORKAROUND
7612 static const void *lt_preloaded_setup() {
7613 return lt__PROGRAM__LTX_preloaded_symbols;
7621 # Now try linking the two files.
7622 mv conftest.$ac_objext conftstm.$ac_objext
7623 lt_save_LIBS="$LIBS"
7624 lt_save_CFLAGS="$CFLAGS"
7625 LIBS="conftstm.$ac_objext"
7626 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7627 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7628 (eval $ac_link) 2>&5
7630 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7631 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7634 LIBS="$lt_save_LIBS"
7635 CFLAGS="$lt_save_CFLAGS"
7637 echo "cannot find nm_test_func in $nlist" >&5
7640 echo "cannot find nm_test_var in $nlist" >&5
7643 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7646 echo "$progname: failed program was:" >&5
7647 cat conftest.$ac_ext >&5
7649 rm -rf conftest* conftst*
7651 # Do not use the global_symbol_pipe unless it works.
7652 if test "$pipe_works" = yes; then
7655 lt_cv_sys_global_symbol_pipe=
7661 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7662 lt_cv_sys_global_symbol_to_cdecl=
7664 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7666 $as_echo "failed" >&6; }
7668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7669 $as_echo "ok" >&6; }
7693 # Check whether --enable-libtool-lock was given.
7694 if test "${enable_libtool_lock+set}" = set; then :
7695 enableval=$enable_libtool_lock;
7698 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7700 # Some flags need to be propagated to the compiler or linker for good
7704 # Find out which ABI we are using.
7705 echo 'int i;' > conftest.$ac_ext
7706 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7707 (eval $ac_compile) 2>&5
7709 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7710 test $ac_status = 0; }; then
7711 case `/usr/bin/file conftest.$ac_objext` in
7723 # Find out which ABI we are using.
7724 echo '#line 7724 "configure"' > conftest.$ac_ext
7725 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7726 (eval $ac_compile) 2>&5
7728 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7729 test $ac_status = 0; }; then
7730 if test "$lt_cv_prog_gnu_ld" = yes; then
7731 case `/usr/bin/file conftest.$ac_objext` in
7733 LD="${LD-ld} -melf32bsmip"
7736 LD="${LD-ld} -melf32bmipn32"
7739 LD="${LD-ld} -melf64bmip"
7743 case `/usr/bin/file conftest.$ac_objext` in
7759 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7760 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7761 # Find out which ABI we are using.
7762 echo 'int i;' > conftest.$ac_ext
7763 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7764 (eval $ac_compile) 2>&5
7766 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7767 test $ac_status = 0; }; then
7768 case `/usr/bin/file conftest.o` in
7771 x86_64-*kfreebsd*-gnu)
7772 LD="${LD-ld} -m elf_i386_fbsd"
7775 LD="${LD-ld} -m elf_i386"
7777 ppc64-*linux*|powerpc64-*linux*)
7778 LD="${LD-ld} -m elf32ppclinux"
7781 LD="${LD-ld} -m elf_s390"
7784 LD="${LD-ld} -m elf32_sparc"
7790 x86_64-*kfreebsd*-gnu)
7791 LD="${LD-ld} -m elf_x86_64_fbsd"
7794 LD="${LD-ld} -m elf_x86_64"
7796 ppc*-*linux*|powerpc*-*linux*)
7797 LD="${LD-ld} -m elf64ppc"
7799 s390*-*linux*|s390*-*tpf*)
7800 LD="${LD-ld} -m elf64_s390"
7803 LD="${LD-ld} -m elf64_sparc"
7813 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7814 SAVE_CFLAGS="$CFLAGS"
7815 CFLAGS="$CFLAGS -belf"
7816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7817 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7818 if test "${lt_cv_cc_needs_belf+set}" = set; then :
7819 $as_echo_n "(cached) " >&6
7822 ac_cpp='$CPP $CPPFLAGS'
7823 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7824 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7825 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7828 /* end confdefs.h. */
7838 if ac_fn_c_try_link "$LINENO"; then :
7839 lt_cv_cc_needs_belf=yes
7841 lt_cv_cc_needs_belf=no
7843 rm -f core conftest.err conftest.$ac_objext \
7844 conftest$ac_exeext conftest.$ac_ext
7846 ac_cpp='$CPP $CPPFLAGS'
7847 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7848 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7849 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7853 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7854 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7855 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7856 CFLAGS="$SAVE_CFLAGS"
7860 # Find out which ABI we are using.
7861 echo 'int i;' > conftest.$ac_ext
7862 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7863 (eval $ac_compile) 2>&5
7865 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7866 test $ac_status = 0; }; then
7867 case `/usr/bin/file conftest.o` in
7869 case $lt_cv_prog_gnu_ld in
7870 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7872 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7884 need_locks="$enable_libtool_lock"
7888 rhapsody* | darwin*)
7889 if test -n "$ac_tool_prefix"; then
7890 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7891 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7893 $as_echo_n "checking for $ac_word... " >&6; }
7894 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
7895 $as_echo_n "(cached) " >&6
7897 if test -n "$DSYMUTIL"; then
7898 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7904 test -z "$as_dir" && as_dir=.
7905 for ac_exec_ext in '' $ac_executable_extensions; do
7906 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7907 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7908 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7917 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7918 if test -n "$DSYMUTIL"; then
7919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7920 $as_echo "$DSYMUTIL" >&6; }
7922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7923 $as_echo "no" >&6; }
7928 if test -z "$ac_cv_prog_DSYMUTIL"; then
7929 ac_ct_DSYMUTIL=$DSYMUTIL
7930 # Extract the first word of "dsymutil", so it can be a program name with args.
7931 set dummy dsymutil; ac_word=$2
7932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7933 $as_echo_n "checking for $ac_word... " >&6; }
7934 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
7935 $as_echo_n "(cached) " >&6
7937 if test -n "$ac_ct_DSYMUTIL"; then
7938 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7944 test -z "$as_dir" && as_dir=.
7945 for ac_exec_ext in '' $ac_executable_extensions; do
7946 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7947 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7948 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7957 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7958 if test -n "$ac_ct_DSYMUTIL"; then
7959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7960 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7963 $as_echo "no" >&6; }
7966 if test "x$ac_ct_DSYMUTIL" = x; then
7969 case $cross_compiling:$ac_tool_warned in
7971 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7972 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7973 ac_tool_warned=yes ;;
7975 DSYMUTIL=$ac_ct_DSYMUTIL
7978 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7981 if test -n "$ac_tool_prefix"; then
7982 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7983 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7985 $as_echo_n "checking for $ac_word... " >&6; }
7986 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
7987 $as_echo_n "(cached) " >&6
7989 if test -n "$NMEDIT"; then
7990 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7996 test -z "$as_dir" && as_dir=.
7997 for ac_exec_ext in '' $ac_executable_extensions; do
7998 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7999 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8000 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8009 NMEDIT=$ac_cv_prog_NMEDIT
8010 if test -n "$NMEDIT"; then
8011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8012 $as_echo "$NMEDIT" >&6; }
8014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8015 $as_echo "no" >&6; }
8020 if test -z "$ac_cv_prog_NMEDIT"; then
8021 ac_ct_NMEDIT=$NMEDIT
8022 # Extract the first word of "nmedit", so it can be a program name with args.
8023 set dummy nmedit; ac_word=$2
8024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8025 $as_echo_n "checking for $ac_word... " >&6; }
8026 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
8027 $as_echo_n "(cached) " >&6
8029 if test -n "$ac_ct_NMEDIT"; then
8030 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8036 test -z "$as_dir" && as_dir=.
8037 for ac_exec_ext in '' $ac_executable_extensions; do
8038 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8039 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8040 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8049 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8050 if test -n "$ac_ct_NMEDIT"; then
8051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8052 $as_echo "$ac_ct_NMEDIT" >&6; }
8054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8055 $as_echo "no" >&6; }
8058 if test "x$ac_ct_NMEDIT" = x; then
8061 case $cross_compiling:$ac_tool_warned in
8063 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8064 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8065 ac_tool_warned=yes ;;
8067 NMEDIT=$ac_ct_NMEDIT
8070 NMEDIT="$ac_cv_prog_NMEDIT"
8073 if test -n "$ac_tool_prefix"; then
8074 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8075 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8077 $as_echo_n "checking for $ac_word... " >&6; }
8078 if test "${ac_cv_prog_LIPO+set}" = set; then :
8079 $as_echo_n "(cached) " >&6
8081 if test -n "$LIPO"; then
8082 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8088 test -z "$as_dir" && as_dir=.
8089 for ac_exec_ext in '' $ac_executable_extensions; do
8090 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8091 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8092 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8101 LIPO=$ac_cv_prog_LIPO
8102 if test -n "$LIPO"; then
8103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8104 $as_echo "$LIPO" >&6; }
8106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8107 $as_echo "no" >&6; }
8112 if test -z "$ac_cv_prog_LIPO"; then
8114 # Extract the first word of "lipo", so it can be a program name with args.
8115 set dummy lipo; ac_word=$2
8116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8117 $as_echo_n "checking for $ac_word... " >&6; }
8118 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
8119 $as_echo_n "(cached) " >&6
8121 if test -n "$ac_ct_LIPO"; then
8122 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8128 test -z "$as_dir" && as_dir=.
8129 for ac_exec_ext in '' $ac_executable_extensions; do
8130 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8131 ac_cv_prog_ac_ct_LIPO="lipo"
8132 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8141 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8142 if test -n "$ac_ct_LIPO"; then
8143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8144 $as_echo "$ac_ct_LIPO" >&6; }
8146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8147 $as_echo "no" >&6; }
8150 if test "x$ac_ct_LIPO" = x; then
8153 case $cross_compiling:$ac_tool_warned in
8155 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8156 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8157 ac_tool_warned=yes ;;
8162 LIPO="$ac_cv_prog_LIPO"
8165 if test -n "$ac_tool_prefix"; then
8166 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8167 set dummy ${ac_tool_prefix}otool; ac_word=$2
8168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8169 $as_echo_n "checking for $ac_word... " >&6; }
8170 if test "${ac_cv_prog_OTOOL+set}" = set; then :
8171 $as_echo_n "(cached) " >&6
8173 if test -n "$OTOOL"; then
8174 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8180 test -z "$as_dir" && as_dir=.
8181 for ac_exec_ext in '' $ac_executable_extensions; do
8182 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8183 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8184 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8193 OTOOL=$ac_cv_prog_OTOOL
8194 if test -n "$OTOOL"; then
8195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8196 $as_echo "$OTOOL" >&6; }
8198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8199 $as_echo "no" >&6; }
8204 if test -z "$ac_cv_prog_OTOOL"; then
8206 # Extract the first word of "otool", so it can be a program name with args.
8207 set dummy otool; ac_word=$2
8208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8209 $as_echo_n "checking for $ac_word... " >&6; }
8210 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
8211 $as_echo_n "(cached) " >&6
8213 if test -n "$ac_ct_OTOOL"; then
8214 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8220 test -z "$as_dir" && as_dir=.
8221 for ac_exec_ext in '' $ac_executable_extensions; do
8222 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8223 ac_cv_prog_ac_ct_OTOOL="otool"
8224 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8233 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8234 if test -n "$ac_ct_OTOOL"; then
8235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8236 $as_echo "$ac_ct_OTOOL" >&6; }
8238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8239 $as_echo "no" >&6; }
8242 if test "x$ac_ct_OTOOL" = x; then
8245 case $cross_compiling:$ac_tool_warned in
8247 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8248 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8249 ac_tool_warned=yes ;;
8254 OTOOL="$ac_cv_prog_OTOOL"
8257 if test -n "$ac_tool_prefix"; then
8258 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8259 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8261 $as_echo_n "checking for $ac_word... " >&6; }
8262 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
8263 $as_echo_n "(cached) " >&6
8265 if test -n "$OTOOL64"; then
8266 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8272 test -z "$as_dir" && as_dir=.
8273 for ac_exec_ext in '' $ac_executable_extensions; do
8274 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8275 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8276 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8285 OTOOL64=$ac_cv_prog_OTOOL64
8286 if test -n "$OTOOL64"; then
8287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8288 $as_echo "$OTOOL64" >&6; }
8290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8291 $as_echo "no" >&6; }
8296 if test -z "$ac_cv_prog_OTOOL64"; then
8297 ac_ct_OTOOL64=$OTOOL64
8298 # Extract the first word of "otool64", so it can be a program name with args.
8299 set dummy otool64; ac_word=$2
8300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8301 $as_echo_n "checking for $ac_word... " >&6; }
8302 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
8303 $as_echo_n "(cached) " >&6
8305 if test -n "$ac_ct_OTOOL64"; then
8306 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8312 test -z "$as_dir" && as_dir=.
8313 for ac_exec_ext in '' $ac_executable_extensions; do
8314 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8315 ac_cv_prog_ac_ct_OTOOL64="otool64"
8316 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8325 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8326 if test -n "$ac_ct_OTOOL64"; then
8327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8328 $as_echo "$ac_ct_OTOOL64" >&6; }
8330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8331 $as_echo "no" >&6; }
8334 if test "x$ac_ct_OTOOL64" = x; then
8337 case $cross_compiling:$ac_tool_warned in
8339 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8340 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8341 ac_tool_warned=yes ;;
8343 OTOOL64=$ac_ct_OTOOL64
8346 OTOOL64="$ac_cv_prog_OTOOL64"
8375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8376 $as_echo_n "checking for -single_module linker flag... " >&6; }
8377 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
8378 $as_echo_n "(cached) " >&6
8380 lt_cv_apple_cc_single_mod=no
8381 if test -z "${LT_MULTI_MODULE}"; then
8382 # By default we will add the -single_module flag. You can override
8383 # by either setting the environment variable LT_MULTI_MODULE
8384 # non-empty at configure time, or by adding -multi_module to the
8386 rm -rf libconftest.dylib*
8387 echo "int foo(void){return 1;}" > conftest.c
8388 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8389 -dynamiclib -Wl,-single_module conftest.c" >&5
8390 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8391 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8393 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8394 lt_cv_apple_cc_single_mod=yes
8396 cat conftest.err >&5
8398 rm -rf libconftest.dylib*
8402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8403 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8405 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8406 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
8407 $as_echo_n "(cached) " >&6
8409 lt_cv_ld_exported_symbols_list=no
8410 save_LDFLAGS=$LDFLAGS
8411 echo "_main" > conftest.sym
8412 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8414 /* end confdefs.h. */
8424 if ac_fn_c_try_link "$LINENO"; then :
8425 lt_cv_ld_exported_symbols_list=yes
8427 lt_cv_ld_exported_symbols_list=no
8429 rm -f core conftest.err conftest.$ac_objext \
8430 conftest$ac_exeext conftest.$ac_ext
8431 LDFLAGS="$save_LDFLAGS"
8434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8435 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8437 rhapsody* | darwin1.[012])
8438 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8440 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8441 darwin*) # darwin 5.x on
8442 # if running on 10.5 or later, the deployment target defaults
8443 # to the OS version, if on x86, and 10.4, the deployment
8444 # target defaults to 10.4. Don't you love it?
8445 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8446 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8447 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8449 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8451 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8455 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8456 _lt_dar_single_mod='$single_module'
8458 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8459 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8461 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8463 if test "$DSYMUTIL" != ":"; then
8464 _lt_dsymutil='~$DSYMUTIL $lib || :'
8471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8472 $as_echo_n "checking for ANSI C header files... " >&6; }
8473 if test "${ac_cv_header_stdc+set}" = set; then :
8474 $as_echo_n "(cached) " >&6
8476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8477 /* end confdefs.h. */
8491 if ac_fn_c_try_compile "$LINENO"; then :
8492 ac_cv_header_stdc=yes
8494 ac_cv_header_stdc=no
8496 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8498 if test $ac_cv_header_stdc = yes; then
8499 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8501 /* end confdefs.h. */
8505 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8506 $EGREP "memchr" >/dev/null 2>&1; then :
8509 ac_cv_header_stdc=no
8515 if test $ac_cv_header_stdc = yes; then
8516 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8518 /* end confdefs.h. */
8522 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8523 $EGREP "free" >/dev/null 2>&1; then :
8526 ac_cv_header_stdc=no
8532 if test $ac_cv_header_stdc = yes; then
8533 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8534 if test "$cross_compiling" = yes; then :
8537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8538 /* end confdefs.h. */
8541 #if ((' ' & 0x0FF) == 0x020)
8542 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8543 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8545 # define ISLOWER(c) \
8546 (('a' <= (c) && (c) <= 'i') \
8547 || ('j' <= (c) && (c) <= 'r') \
8548 || ('s' <= (c) && (c) <= 'z'))
8549 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8552 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8557 for (i = 0; i < 256; i++)
8558 if (XOR (islower (i), ISLOWER (i))
8559 || toupper (i) != TOUPPER (i))
8564 if ac_fn_c_try_run "$LINENO"; then :
8567 ac_cv_header_stdc=no
8569 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8570 conftest.$ac_objext conftest.beam conftest.$ac_ext
8575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8576 $as_echo "$ac_cv_header_stdc" >&6; }
8577 if test $ac_cv_header_stdc = yes; then
8579 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8583 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8584 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8585 inttypes.h stdint.h unistd.h
8587 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8588 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8590 eval as_val=\$$as_ac_Header
8591 if test "x$as_val" = x""yes; then :
8592 cat >>confdefs.h <<_ACEOF
8593 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8601 for ac_header in dlfcn.h
8603 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8605 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
8606 cat >>confdefs.h <<_ACEOF
8607 #define HAVE_DLFCN_H 1
8617 ac_cpp='$CXXCPP $CPPFLAGS'
8618 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8619 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8620 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8621 if test -z "$CXX"; then
8622 if test -n "$CCC"; then
8625 if test -n "$ac_tool_prefix"; then
8626 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
8628 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8629 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8631 $as_echo_n "checking for $ac_word... " >&6; }
8632 if test "${ac_cv_prog_CXX+set}" = set; then :
8633 $as_echo_n "(cached) " >&6
8635 if test -n "$CXX"; then
8636 ac_cv_prog_CXX="$CXX" # Let the user override the test.
8638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8642 test -z "$as_dir" && as_dir=.
8643 for ac_exec_ext in '' $ac_executable_extensions; do
8644 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8645 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
8646 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8656 if test -n "$CXX"; then
8657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
8658 $as_echo "$CXX" >&6; }
8660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8661 $as_echo "no" >&6; }
8665 test -n "$CXX" && break
8668 if test -z "$CXX"; then
8670 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
8672 # Extract the first word of "$ac_prog", so it can be a program name with args.
8673 set dummy $ac_prog; ac_word=$2
8674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8675 $as_echo_n "checking for $ac_word... " >&6; }
8676 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
8677 $as_echo_n "(cached) " >&6
8679 if test -n "$ac_ct_CXX"; then
8680 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
8682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8686 test -z "$as_dir" && as_dir=.
8687 for ac_exec_ext in '' $ac_executable_extensions; do
8688 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8689 ac_cv_prog_ac_ct_CXX="$ac_prog"
8690 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8699 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
8700 if test -n "$ac_ct_CXX"; then
8701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
8702 $as_echo "$ac_ct_CXX" >&6; }
8704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8705 $as_echo "no" >&6; }
8709 test -n "$ac_ct_CXX" && break
8712 if test "x$ac_ct_CXX" = x; then
8715 case $cross_compiling:$ac_tool_warned in
8717 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8718 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8719 ac_tool_warned=yes ;;
8727 # Provide some information about the compiler.
8728 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
8731 for ac_option in --version -v -V -qversion; do
8732 { { ac_try="$ac_compiler $ac_option >&5"
8734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8735 *) ac_try_echo=$ac_try;;
8737 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
8738 $as_echo "$ac_try_echo"; } >&5
8739 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
8741 if test -s conftest.err; then
8743 ... rest of stderr output deleted ...
8744 10q' conftest.err >conftest.er1
8745 cat conftest.er1 >&5
8747 rm -f conftest.er1 conftest.err
8748 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8749 test $ac_status = 0; }
8752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
8753 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
8754 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
8755 $as_echo_n "(cached) " >&6
8757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8758 /* end confdefs.h. */
8771 if ac_fn_cxx_try_compile "$LINENO"; then :
8776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8777 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
8780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
8781 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
8782 if test $ac_compiler_gnu = yes; then
8787 ac_test_CXXFLAGS=${CXXFLAGS+set}
8788 ac_save_CXXFLAGS=$CXXFLAGS
8789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
8790 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
8791 if test "${ac_cv_prog_cxx_g+set}" = set; then :
8792 $as_echo_n "(cached) " >&6
8794 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
8795 ac_cxx_werror_flag=yes
8798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8799 /* end confdefs.h. */
8809 if ac_fn_cxx_try_compile "$LINENO"; then :
8810 ac_cv_prog_cxx_g=yes
8813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8814 /* end confdefs.h. */
8824 if ac_fn_cxx_try_compile "$LINENO"; then :
8827 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8830 /* end confdefs.h. */
8840 if ac_fn_cxx_try_compile "$LINENO"; then :
8841 ac_cv_prog_cxx_g=yes
8843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8848 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
8851 $as_echo "$ac_cv_prog_cxx_g" >&6; }
8852 if test "$ac_test_CXXFLAGS" = set; then
8853 CXXFLAGS=$ac_save_CXXFLAGS
8854 elif test $ac_cv_prog_cxx_g = yes; then
8855 if test "$GXX" = yes; then
8861 if test "$GXX" = yes; then
8868 ac_cpp='$CPP $CPPFLAGS'
8869 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8870 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8871 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8873 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
8874 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
8875 (test "X$CXX" != "Xg++"))) ; then
8877 ac_cpp='$CXXCPP $CPPFLAGS'
8878 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8879 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8880 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
8882 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
8883 if test -z "$CXXCPP"; then
8884 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
8885 $as_echo_n "(cached) " >&6
8887 # Double quotes because CXXCPP needs to be expanded
8888 for CXXCPP in "$CXX -E" "/lib/cpp"
8891 for ac_cxx_preproc_warn_flag in '' yes
8893 # Use a header file that comes with gcc, so configuring glibc
8894 # with a fresh cross-compiler works.
8895 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8896 # <limits.h> exists even on freestanding compilers.
8897 # On the NeXT, cc -E runs the code through the compiler's parser,
8898 # not just through cpp. "Syntax error" is here to catch this case.
8899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8900 /* end confdefs.h. */
8902 # include <limits.h>
8904 # include <assert.h>
8908 if ac_fn_cxx_try_cpp "$LINENO"; then :
8911 # Broken: fails on valid input.
8914 rm -f conftest.err conftest.$ac_ext
8916 # OK, works on sane cases. Now check whether nonexistent headers
8917 # can be detected and how.
8918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8919 /* end confdefs.h. */
8920 #include <ac_nonexistent.h>
8922 if ac_fn_cxx_try_cpp "$LINENO"; then :
8923 # Broken: success on invalid input.
8926 # Passes both tests.
8930 rm -f conftest.err conftest.$ac_ext
8933 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8934 rm -f conftest.err conftest.$ac_ext
8935 if $ac_preproc_ok; then :
8940 ac_cv_prog_CXXCPP=$CXXCPP
8943 CXXCPP=$ac_cv_prog_CXXCPP
8945 ac_cv_prog_CXXCPP=$CXXCPP
8947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
8948 $as_echo "$CXXCPP" >&6; }
8950 for ac_cxx_preproc_warn_flag in '' yes
8952 # Use a header file that comes with gcc, so configuring glibc
8953 # with a fresh cross-compiler works.
8954 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8955 # <limits.h> exists even on freestanding compilers.
8956 # On the NeXT, cc -E runs the code through the compiler's parser,
8957 # not just through cpp. "Syntax error" is here to catch this case.
8958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8959 /* end confdefs.h. */
8961 # include <limits.h>
8963 # include <assert.h>
8967 if ac_fn_cxx_try_cpp "$LINENO"; then :
8970 # Broken: fails on valid input.
8973 rm -f conftest.err conftest.$ac_ext
8975 # OK, works on sane cases. Now check whether nonexistent headers
8976 # can be detected and how.
8977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8978 /* end confdefs.h. */
8979 #include <ac_nonexistent.h>
8981 if ac_fn_cxx_try_cpp "$LINENO"; then :
8982 # Broken: success on invalid input.
8985 # Passes both tests.
8989 rm -f conftest.err conftest.$ac_ext
8992 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8993 rm -f conftest.err conftest.$ac_ext
8994 if $ac_preproc_ok; then :
8997 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8998 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8999 _lt_caught_CXX_error=yes; }
9003 ac_cpp='$CPP $CPPFLAGS'
9004 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9005 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9006 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9009 _lt_caught_CXX_error=yes
9017 # Check whether --enable-shared was given.
9018 if test "${enable_shared+set}" = set; then :
9019 enableval=$enable_shared; p=${PACKAGE-default}
9021 yes) enable_shared=yes ;;
9022 no) enable_shared=no ;;
9025 # Look at the argument we got. We use all the common list separators.
9026 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9027 for pkg in $enableval; do
9029 if test "X$pkg" = "X$p"; then
9046 # Check whether --enable-static was given.
9047 if test "${enable_static+set}" = set; then :
9048 enableval=$enable_static; p=${PACKAGE-default}
9050 yes) enable_static=yes ;;
9051 no) enable_static=no ;;
9054 # Look at the argument we got. We use all the common list separators.
9055 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9056 for pkg in $enableval; do
9058 if test "X$pkg" = "X$p"; then
9087 # Check whether --with-pic was given.
9088 if test "${with_pic+set}" = set; then :
9089 withval=$with_pic; pic_mode="$withval"
9095 test -z "$pic_mode" && pic_mode=default
9103 # Check whether --enable-fast-install was given.
9104 if test "${enable_fast_install+set}" = set; then :
9105 enableval=$enable_fast_install; p=${PACKAGE-default}
9107 yes) enable_fast_install=yes ;;
9108 no) enable_fast_install=no ;;
9110 enable_fast_install=no
9111 # Look at the argument we got. We use all the common list separators.
9112 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9113 for pkg in $enableval; do
9115 if test "X$pkg" = "X$p"; then
9116 enable_fast_install=yes
9123 enable_fast_install=yes
9136 # This can be used to rebuild libtool when needed
9137 LIBTOOL_DEPS="$ltmain"
9139 # Always use our own libtool.
9140 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9166 test -z "$LN_S" && LN_S="ln -s"
9181 if test -n "${ZSH_VERSION+set}" ; then
9182 setopt NO_GLOB_SUBST
9185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9186 $as_echo_n "checking for objdir... " >&6; }
9187 if test "${lt_cv_objdir+set}" = set; then :
9188 $as_echo_n "(cached) " >&6
9190 rm -f .libs 2>/dev/null
9191 mkdir .libs 2>/dev/null
9192 if test -d .libs; then
9195 # MS-DOS does not allow filenames that begin with a dot.
9198 rmdir .libs 2>/dev/null
9200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9201 $as_echo "$lt_cv_objdir" >&6; }
9202 objdir=$lt_cv_objdir
9208 cat >>confdefs.h <<_ACEOF
9209 #define LT_OBJDIR "$lt_cv_objdir/"
9230 # AIX sometimes has problems with the GCC collect2 program. For some
9231 # reason, if we set the COLLECT_NAMES environment variable, the problems
9232 # vanish in a puff of smoke.
9233 if test "X${COLLECT_NAMES+set}" != Xset; then
9235 export COLLECT_NAMES
9240 # Sed substitution that helps us do robust quoting. It backslashifies
9241 # metacharacters that are still active within double-quoted strings.
9242 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
9244 # Same as above, but do not quote variable references.
9245 double_quote_subst='s/\(["`\\]\)/\\\1/g'
9247 # Sed substitution to delay expansion of an escaped shell variable in a
9248 # double_quote_subst'ed string.
9249 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
9251 # Sed substitution to delay expansion of an escaped single quote.
9252 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
9254 # Sed substitution to avoid accidental globbing in evaled expressions
9255 no_glob_subst='s/\*/\\\*/g'
9259 can_build_shared=yes
9261 # All known linkers require a `.a' archive for static linking (except MSVC,
9262 # which needs '.lib').
9265 with_gnu_ld="$lt_cv_prog_gnu_ld"
9268 old_CFLAGS="$CFLAGS"
9270 # Set sane defaults for various variables
9271 test -z "$CC" && CC=cc
9272 test -z "$LTCC" && LTCC=$CC
9273 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9274 test -z "$LD" && LD=ld
9275 test -z "$ac_objext" && ac_objext=o
9277 for cc_temp in $compiler""; do
9279 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9280 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9285 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9288 # Only perform the check for file, if the check method requires it
9289 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9290 case $deplibs_check_method in
9292 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9294 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9295 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
9296 $as_echo_n "(cached) " >&6
9300 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9303 lt_save_MAGIC_CMD="$MAGIC_CMD"
9304 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9305 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9306 for ac_dir in $ac_dummy; do
9308 test -z "$ac_dir" && ac_dir=.
9309 if test -f $ac_dir/${ac_tool_prefix}file; then
9310 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9311 if test -n "$file_magic_test_file"; then
9312 case $deplibs_check_method in
9314 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9315 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9316 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9317 $EGREP "$file_magic_regex" > /dev/null; then
9322 *** Warning: the command libtool uses to detect shared libraries,
9323 *** $file_magic_cmd, produces output that libtool cannot recognize.
9324 *** The result is that libtool may fail to recognize shared libraries
9325 *** as such. This will affect the creation of libtool libraries that
9326 *** depend on shared libraries, but programs linked with such libtool
9327 *** libraries will work regardless of this problem. Nevertheless, you
9328 *** may want to report the problem to your system manager and/or to
9329 *** bug-libtool@gnu.org
9339 MAGIC_CMD="$lt_save_MAGIC_CMD"
9344 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9345 if test -n "$MAGIC_CMD"; then
9346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9347 $as_echo "$MAGIC_CMD" >&6; }
9349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9350 $as_echo "no" >&6; }
9357 if test -z "$lt_cv_path_MAGIC_CMD"; then
9358 if test -n "$ac_tool_prefix"; then
9359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9360 $as_echo_n "checking for file... " >&6; }
9361 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
9362 $as_echo_n "(cached) " >&6
9366 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9369 lt_save_MAGIC_CMD="$MAGIC_CMD"
9370 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9371 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9372 for ac_dir in $ac_dummy; do
9374 test -z "$ac_dir" && ac_dir=.
9375 if test -f $ac_dir/file; then
9376 lt_cv_path_MAGIC_CMD="$ac_dir/file"
9377 if test -n "$file_magic_test_file"; then
9378 case $deplibs_check_method in
9380 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9381 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9382 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9383 $EGREP "$file_magic_regex" > /dev/null; then
9388 *** Warning: the command libtool uses to detect shared libraries,
9389 *** $file_magic_cmd, produces output that libtool cannot recognize.
9390 *** The result is that libtool may fail to recognize shared libraries
9391 *** as such. This will affect the creation of libtool libraries that
9392 *** depend on shared libraries, but programs linked with such libtool
9393 *** libraries will work regardless of this problem. Nevertheless, you
9394 *** may want to report the problem to your system manager and/or to
9395 *** bug-libtool@gnu.org
9405 MAGIC_CMD="$lt_save_MAGIC_CMD"
9410 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9411 if test -n "$MAGIC_CMD"; then
9412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9413 $as_echo "$MAGIC_CMD" >&6; }
9415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9416 $as_echo "no" >&6; }
9429 # Use C for the default configuration in the libtool script
9433 ac_cpp='$CPP $CPPFLAGS'
9434 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9435 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9436 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9439 # Source file extension for C test sources.
9442 # Object file extension for compiled C test sources.
9446 # Code to be used in simple compile tests
9447 lt_simple_compile_test_code="int some_variable = 0;"
9449 # Code to be used in simple link tests
9450 lt_simple_link_test_code='int main(){return(0);}'
9458 # If no C compiler was specified, use CC.
9461 # If no C compiler flags were specified, use CFLAGS.
9462 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9464 # Allow CC to be a program name with arguments.
9467 # Save the default compiler, since it gets overwritten when the other
9468 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9469 compiler_DEFAULT=$CC
9471 # save warnings/boilerplate of simple test code
9472 ac_outfile=conftest.$ac_objext
9473 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9474 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9475 _lt_compiler_boilerplate=`cat conftest.err`
9478 ac_outfile=conftest.$ac_objext
9479 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9480 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9481 _lt_linker_boilerplate=`cat conftest.err`
9486 ## There is no encapsulation within the following macros, do not change
9487 ## the running order or otherwise move them around unless you know exactly
9488 ## what you are doing...
9489 if test -n "$compiler"; then
9491 lt_prog_compiler_no_builtin_flag=
9493 if test "$GCC" = yes; then
9494 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
9496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9497 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9498 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
9499 $as_echo_n "(cached) " >&6
9501 lt_cv_prog_compiler_rtti_exceptions=no
9502 ac_outfile=conftest.$ac_objext
9503 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9504 lt_compiler_flag="-fno-rtti -fno-exceptions"
9505 # Insert the option either (1) after the last *FLAGS variable, or
9506 # (2) before a word containing "conftest.", or (3) at the end.
9507 # Note that $ac_compile itself does not contain backslashes and begins
9508 # with a dollar sign (not a hyphen), so the echo should work correctly.
9509 # The option is referenced via a variable to avoid confusing sed.
9510 lt_compile=`echo "$ac_compile" | $SED \
9511 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9512 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9513 -e 's:$: $lt_compiler_flag:'`
9514 (eval echo "\"\$as_me:9514: $lt_compile\"" >&5)
9515 (eval "$lt_compile" 2>conftest.err)
9517 cat conftest.err >&5
9518 echo "$as_me:9518: \$? = $ac_status" >&5
9519 if (exit $ac_status) && test -s "$ac_outfile"; then
9520 # The compiler can only warn and ignore the option if not recognized
9521 # So say no if there are warnings other than the usual output.
9522 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9523 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9524 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9525 lt_cv_prog_compiler_rtti_exceptions=yes
9531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9532 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9534 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9535 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9547 lt_prog_compiler_wl=
9548 lt_prog_compiler_pic=
9549 lt_prog_compiler_static=
9551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9552 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9554 if test "$GCC" = yes; then
9555 lt_prog_compiler_wl='-Wl,'
9556 lt_prog_compiler_static='-static'
9560 # All AIX code is PIC.
9561 if test "$host_cpu" = ia64; then
9562 # AIX 5 now supports IA64 processor
9563 lt_prog_compiler_static='-Bstatic'
9570 # see comment about AmigaOS4 .so support
9571 lt_prog_compiler_pic='-fPIC'
9574 # FIXME: we need at least 68020 code to build shared libraries, but
9575 # adding the `-m68020' flag to GCC prevents building anything better,
9577 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9582 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9583 # PIC is the default for these OSes.
9586 mingw* | cygwin* | pw32* | os2* | cegcc*)
9587 # This hack is so that the source file can tell whether it is being
9588 # built for inclusion in a dll (and should export symbols for example).
9589 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9590 # (--disable-auto-import) libraries
9591 lt_prog_compiler_pic='-DDLL_EXPORT'
9594 darwin* | rhapsody*)
9595 # PIC is the default on this platform
9596 # Common symbols not allowed in MH_DYLIB files
9597 lt_prog_compiler_pic='-fno-common'
9601 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9602 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9603 # sets the default TLS model and affects inlining.
9609 lt_prog_compiler_pic='-fPIC'
9615 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9616 # Instead, we relocate shared libraries at runtime.
9620 # Just because we use GCC doesn't mean we suddenly get shared libraries
9621 # on systems that don't support them.
9622 lt_prog_compiler_can_build_shared=no
9627 # QNX uses GNU C++, but need to define -shared option too, otherwise
9629 lt_prog_compiler_pic='-fPIC -shared'
9633 if test -d /usr/nec; then
9634 lt_prog_compiler_pic=-Kconform_pic
9639 lt_prog_compiler_pic='-fPIC'
9643 # PORTME Check for flag to pass linker flags through the system compiler.
9646 lt_prog_compiler_wl='-Wl,'
9647 if test "$host_cpu" = ia64; then
9648 # AIX 5 now supports IA64 processor
9649 lt_prog_compiler_static='-Bstatic'
9651 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9655 mingw* | cygwin* | pw32* | os2* | cegcc*)
9656 # This hack is so that the source file can tell whether it is being
9657 # built for inclusion in a dll (and should export symbols for example).
9658 lt_prog_compiler_pic='-DDLL_EXPORT'
9661 hpux9* | hpux10* | hpux11*)
9662 lt_prog_compiler_wl='-Wl,'
9663 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9670 lt_prog_compiler_pic='+Z'
9673 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9674 lt_prog_compiler_static='${wl}-a ${wl}archive'
9677 irix5* | irix6* | nonstopux*)
9678 lt_prog_compiler_wl='-Wl,'
9679 # PIC (with -KPIC) is the default.
9680 lt_prog_compiler_static='-non_shared'
9683 linux* | k*bsd*-gnu)
9684 case $cc_basename in
9685 # old Intel for x86_64 which still supported -KPIC.
9687 lt_prog_compiler_wl='-Wl,'
9688 lt_prog_compiler_pic='-KPIC'
9689 lt_prog_compiler_static='-static'
9691 # icc used to be incompatible with GCC.
9692 # ICC 10 doesn't accept -KPIC any more.
9694 lt_prog_compiler_wl='-Wl,'
9695 lt_prog_compiler_pic='-fPIC'
9696 lt_prog_compiler_static='-static'
9698 # Lahey Fortran 8.1.
9700 lt_prog_compiler_wl='-Wl,'
9701 lt_prog_compiler_pic='--shared'
9702 lt_prog_compiler_static='--static'
9704 pgcc* | pgf77* | pgf90* | pgf95*)
9705 # Portland Group compilers (*not* the Pentium gcc compiler,
9706 # which looks to be a dead project)
9707 lt_prog_compiler_wl='-Wl,'
9708 lt_prog_compiler_pic='-fpic'
9709 lt_prog_compiler_static='-Bstatic'
9712 lt_prog_compiler_wl='-Wl,'
9713 # All Alpha code is PIC.
9714 lt_prog_compiler_static='-non_shared'
9717 # IBM XL C 8.0/Fortran 10.1 on PPC
9718 lt_prog_compiler_wl='-Wl,'
9719 lt_prog_compiler_pic='-qpic'
9720 lt_prog_compiler_static='-qstaticlink'
9723 case `$CC -V 2>&1 | sed 5q` in
9726 lt_prog_compiler_pic='-KPIC'
9727 lt_prog_compiler_static='-Bstatic'
9728 lt_prog_compiler_wl='-Wl,'
9731 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9732 lt_prog_compiler_pic='-KPIC'
9733 lt_prog_compiler_static='-Bstatic'
9734 lt_prog_compiler_wl=''
9742 lt_prog_compiler_pic='-KPIC'
9743 lt_prog_compiler_static='-Bstatic'
9747 # QNX uses GNU C++, but need to define -shared option too, otherwise
9749 lt_prog_compiler_pic='-fPIC -shared'
9752 osf3* | osf4* | osf5*)
9753 lt_prog_compiler_wl='-Wl,'
9754 # All OSF/1 code is PIC.
9755 lt_prog_compiler_static='-non_shared'
9759 lt_prog_compiler_static='-non_shared'
9763 lt_prog_compiler_pic='-KPIC'
9764 lt_prog_compiler_static='-Bstatic'
9765 case $cc_basename in
9767 lt_prog_compiler_wl='-Qoption ld ';;
9769 lt_prog_compiler_wl='-Wl,';;
9774 lt_prog_compiler_wl='-Qoption ld '
9775 lt_prog_compiler_pic='-PIC'
9776 lt_prog_compiler_static='-Bstatic'
9779 sysv4 | sysv4.2uw2* | sysv4.3*)
9780 lt_prog_compiler_wl='-Wl,'
9781 lt_prog_compiler_pic='-KPIC'
9782 lt_prog_compiler_static='-Bstatic'
9786 if test -d /usr/nec ;then
9787 lt_prog_compiler_pic='-Kconform_pic'
9788 lt_prog_compiler_static='-Bstatic'
9792 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9793 lt_prog_compiler_wl='-Wl,'
9794 lt_prog_compiler_pic='-KPIC'
9795 lt_prog_compiler_static='-Bstatic'
9799 lt_prog_compiler_wl='-Wl,'
9800 lt_prog_compiler_can_build_shared=no
9804 lt_prog_compiler_pic='-pic'
9805 lt_prog_compiler_static='-Bstatic'
9809 lt_prog_compiler_can_build_shared=no
9815 # For platforms which do not support PIC, -DPIC is meaningless:
9817 lt_prog_compiler_pic=
9820 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9824 $as_echo "$lt_prog_compiler_pic" >&6; }
9832 # Check to make sure the PIC flag actually works.
9834 if test -n "$lt_prog_compiler_pic"; then
9835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9836 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9837 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
9838 $as_echo_n "(cached) " >&6
9840 lt_cv_prog_compiler_pic_works=no
9841 ac_outfile=conftest.$ac_objext
9842 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9843 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9844 # Insert the option either (1) after the last *FLAGS variable, or
9845 # (2) before a word containing "conftest.", or (3) at the end.
9846 # Note that $ac_compile itself does not contain backslashes and begins
9847 # with a dollar sign (not a hyphen), so the echo should work correctly.
9848 # The option is referenced via a variable to avoid confusing sed.
9849 lt_compile=`echo "$ac_compile" | $SED \
9850 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9851 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9852 -e 's:$: $lt_compiler_flag:'`
9853 (eval echo "\"\$as_me:9853: $lt_compile\"" >&5)
9854 (eval "$lt_compile" 2>conftest.err)
9856 cat conftest.err >&5
9857 echo "$as_me:9857: \$? = $ac_status" >&5
9858 if (exit $ac_status) && test -s "$ac_outfile"; then
9859 # The compiler can only warn and ignore the option if not recognized
9860 # So say no if there are warnings other than the usual output.
9861 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9862 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9863 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9864 lt_cv_prog_compiler_pic_works=yes
9870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9871 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9873 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9874 case $lt_prog_compiler_pic in
9876 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9879 lt_prog_compiler_pic=
9880 lt_prog_compiler_can_build_shared=no
9891 # Check to make sure the static flag actually works.
9893 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9895 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9896 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
9897 $as_echo_n "(cached) " >&6
9899 lt_cv_prog_compiler_static_works=no
9900 save_LDFLAGS="$LDFLAGS"
9901 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9902 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9903 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9904 # The linker can only warn and ignore the option if not recognized
9905 # So say no if there are warnings
9906 if test -s conftest.err; then
9907 # Append any errors to the config.log.
9908 cat conftest.err 1>&5
9909 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9910 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9911 if diff conftest.exp conftest.er2 >/dev/null; then
9912 lt_cv_prog_compiler_static_works=yes
9915 lt_cv_prog_compiler_static_works=yes
9919 LDFLAGS="$save_LDFLAGS"
9922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9923 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9925 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9928 lt_prog_compiler_static=
9937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9938 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9939 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9940 $as_echo_n "(cached) " >&6
9942 lt_cv_prog_compiler_c_o=no
9943 $RM -r conftest 2>/dev/null
9947 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9949 lt_compiler_flag="-o out/conftest2.$ac_objext"
9950 # Insert the option either (1) after the last *FLAGS variable, or
9951 # (2) before a word containing "conftest.", or (3) at the end.
9952 # Note that $ac_compile itself does not contain backslashes and begins
9953 # with a dollar sign (not a hyphen), so the echo should work correctly.
9954 lt_compile=`echo "$ac_compile" | $SED \
9955 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9956 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9957 -e 's:$: $lt_compiler_flag:'`
9958 (eval echo "\"\$as_me:9958: $lt_compile\"" >&5)
9959 (eval "$lt_compile" 2>out/conftest.err)
9961 cat out/conftest.err >&5
9962 echo "$as_me:9962: \$? = $ac_status" >&5
9963 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9965 # The compiler can only warn and ignore the option if not recognized
9966 # So say no if there are warnings
9967 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9968 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9969 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9970 lt_cv_prog_compiler_c_o=yes
9975 # SGI C++ compiler will create directory out/ii_files/ for
9976 # template instantiation
9977 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9978 $RM out/* && rmdir out
9984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9985 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9993 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9994 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9995 $as_echo_n "(cached) " >&6
9997 lt_cv_prog_compiler_c_o=no
9998 $RM -r conftest 2>/dev/null
10002 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10004 lt_compiler_flag="-o out/conftest2.$ac_objext"
10005 # Insert the option either (1) after the last *FLAGS variable, or
10006 # (2) before a word containing "conftest.", or (3) at the end.
10007 # Note that $ac_compile itself does not contain backslashes and begins
10008 # with a dollar sign (not a hyphen), so the echo should work correctly.
10009 lt_compile=`echo "$ac_compile" | $SED \
10010 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10011 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10012 -e 's:$: $lt_compiler_flag:'`
10013 (eval echo "\"\$as_me:10013: $lt_compile\"" >&5)
10014 (eval "$lt_compile" 2>out/conftest.err)
10016 cat out/conftest.err >&5
10017 echo "$as_me:10017: \$? = $ac_status" >&5
10018 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10020 # The compiler can only warn and ignore the option if not recognized
10021 # So say no if there are warnings
10022 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
10023 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10024 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10025 lt_cv_prog_compiler_c_o=yes
10030 # SGI C++ compiler will create directory out/ii_files/ for
10031 # template instantiation
10032 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10033 $RM out/* && rmdir out
10039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10040 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10045 hard_links="nottested"
10046 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10047 # do not overwrite the value of need_locks provided by the user
10048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10049 $as_echo_n "checking if we can lock with hard links... " >&6; }
10052 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10054 ln conftest.a conftest.b 2>&5 || hard_links=no
10055 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10057 $as_echo "$hard_links" >&6; }
10058 if test "$hard_links" = no; then
10059 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10060 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10073 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10076 allow_undefined_flag=
10077 always_export_symbols=no
10079 archive_expsym_cmds=
10080 compiler_needs_object=no
10081 enable_shared_with_static_runtimes=no
10082 export_dynamic_flag_spec=
10083 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10084 hardcode_automatic=no
10086 hardcode_direct_absolute=no
10087 hardcode_libdir_flag_spec=
10088 hardcode_libdir_flag_spec_ld=
10089 hardcode_libdir_separator=
10090 hardcode_minus_L=no
10091 hardcode_shlibpath_var=unsupported
10093 link_all_deplibs=unknown
10095 module_expsym_cmds=
10096 old_archive_from_new_cmds=
10097 old_archive_from_expsyms_cmds=
10098 thread_safe_flag_spec=
10099 whole_archive_flag_spec=
10100 # include_expsyms should be a list of space-separated symbols to be *always*
10101 # included in the symbol list
10103 # exclude_expsyms can be an extended regexp of symbols to exclude
10104 # it will be wrapped by ` (' and `)$', so one must not match beginning or
10105 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10106 # as well as any symbol that contains `d'.
10107 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10108 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10109 # platforms (ab)use it in PIC code, but their linkers get confused if
10110 # the symbol is explicitly referenced. Since portable code cannot
10111 # rely on this symbol name, it's probably fine to never include it in
10112 # preloaded symbol tables.
10113 # Exclude shared library initialization/finalization symbols.
10114 extract_expsyms_cmds=
10117 cygwin* | mingw* | pw32* | cegcc*)
10118 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10119 # When not using gcc, we currently assume that we are using
10120 # Microsoft Visual C++.
10121 if test "$GCC" != yes; then
10126 # we just hope/assume this is gcc and not c89 (= MSVC++)
10135 if test "$with_gnu_ld" = yes; then
10136 # If archive_cmds runs LD, not CC, wlarc should be empty
10139 # Set some defaults for GNU ld with shared library support. These
10140 # are reset later if shared libraries are not supported. Putting them
10141 # here allows them to be overridden if necessary.
10142 runpath_var=LD_RUN_PATH
10143 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10144 export_dynamic_flag_spec='${wl}--export-dynamic'
10145 # ancient GNU ld didn't support --whole-archive et. al.
10146 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10147 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10149 whole_archive_flag_spec=
10151 supports_anon_versioning=no
10152 case `$LD -v 2>&1` in
10153 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10154 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10155 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10156 *\ 2.11.*) ;; # other 2.11 versions
10157 *) supports_anon_versioning=yes ;;
10160 # See if GNU ld supports shared libraries.
10163 # On AIX/PPC, the GNU linker is very broken
10164 if test "$host_cpu" != ia64; then
10168 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
10169 *** to be unable to reliably create shared libraries on AIX.
10170 *** Therefore, libtool is disabling shared libraries support. If you
10171 *** really care for shared libraries, you may want to modify your PATH
10172 *** so that a non-GNU linker is found, and then restart.
10181 # see comment about AmigaOS4 .so support
10182 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10183 archive_expsym_cmds=''
10186 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)'
10187 hardcode_libdir_flag_spec='-L$libdir'
10188 hardcode_minus_L=yes
10194 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10195 allow_undefined_flag=unsupported
10196 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10197 # support --undefined. This deserves some investigation. FIXME
10198 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10204 cygwin* | mingw* | pw32* | cegcc*)
10205 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10206 # as there is no search path for DLLs.
10207 hardcode_libdir_flag_spec='-L$libdir'
10208 allow_undefined_flag=unsupported
10209 always_export_symbols=no
10210 enable_shared_with_static_runtimes=yes
10211 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10213 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10214 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10215 # If the export-symbols file already is a .def file (1st line
10216 # is EXPORTS), use it as is; otherwise, prepend...
10217 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10218 cp $export_symbols $output_objdir/$soname.def;
10220 echo EXPORTS > $output_objdir/$soname.def;
10221 cat $export_symbols >> $output_objdir/$soname.def;
10223 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10231 hardcode_shlibpath_var=no
10232 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10233 export_dynamic_flag_spec='${wl}-E'
10234 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10235 # Instead, shared libraries are loaded at an image base (0x10000000 by
10236 # default) and relocated if they conflict, which is a slow very memory
10237 # consuming and fragmenting process. To avoid this, we pick a random,
10238 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10239 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10240 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10241 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'
10244 gnu* | linux* | tpf* | k*bsd*-gnu)
10246 if test "$host_os" = linux-dietlibc; then
10247 case $cc_basename in
10248 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10251 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10252 && test "$tmp_diet" = no
10255 tmp_sharedflag='-shared'
10256 case $cc_basename,$host_cpu in
10257 pgcc*) # Portland Group C compiler
10258 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'
10259 tmp_addflag=' $pic_flag'
10261 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
10262 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'
10263 tmp_addflag=' $pic_flag -Mnomain' ;;
10264 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10265 tmp_addflag=' -i_dynamic' ;;
10266 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10267 tmp_addflag=' -i_dynamic -nofor_main' ;;
10268 ifc* | ifort*) # Intel Fortran compiler
10269 tmp_addflag=' -nofor_main' ;;
10270 lf95*) # Lahey Fortran 8.1
10271 whole_archive_flag_spec=
10272 tmp_sharedflag='--shared' ;;
10273 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10274 tmp_sharedflag='-qmkshrobj'
10277 case `$CC -V 2>&1 | sed 5q` in
10278 *Sun\ C*) # Sun C 5.9
10279 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'
10280 compiler_needs_object=yes
10281 tmp_sharedflag='-G' ;;
10282 *Sun\ F*) # Sun Fortran 8.3
10283 tmp_sharedflag='-G' ;;
10285 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10287 if test "x$supports_anon_versioning" = xyes; then
10288 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10289 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10290 echo "local: *; };" >> $output_objdir/$libname.ver~
10291 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10294 case $cc_basename in
10296 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10297 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10298 hardcode_libdir_flag_spec=
10299 hardcode_libdir_flag_spec_ld='-rpath $libdir'
10300 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
10301 if test "x$supports_anon_versioning" = xyes; then
10302 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10303 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10304 echo "local: *; };" >> $output_objdir/$libname.ver~
10305 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10315 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10316 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10319 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10320 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10325 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10329 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10330 *** create shared libraries on Solaris systems. Therefore, libtool
10331 *** is disabling shared libraries support. We urge you to upgrade GNU
10332 *** binutils to release 2.9.1 or newer. Another option is to modify
10333 *** your PATH or compiler configuration so that the native linker is
10334 *** used, and then restart.
10337 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10338 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10339 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10345 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10346 case `$LD -v 2>&1` in
10347 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10351 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10352 *** reliably create shared libraries on SCO systems. Therefore, libtool
10353 *** is disabling shared libraries support. We urge you to upgrade GNU
10354 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10355 *** your PATH or compiler configuration so that the native linker is
10356 *** used, and then restart.
10361 # For security reasons, it is highly recommended that you always
10362 # use absolute paths for naming shared libraries, and exclude the
10363 # DT_RUNPATH tag from executables and libraries. But doing so
10364 # requires that you compile everything twice, which is a pain.
10365 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10366 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10367 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10368 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10377 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10379 hardcode_direct=yes
10380 hardcode_shlibpath_var=no
10384 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10385 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10386 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10393 if test "$ld_shlibs" = no; then
10395 hardcode_libdir_flag_spec=
10396 export_dynamic_flag_spec=
10397 whole_archive_flag_spec=
10400 # PORTME fill in a description of your system's linker (not GNU ld)
10403 allow_undefined_flag=unsupported
10404 always_export_symbols=yes
10405 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'
10406 # Note: this linker hardcodes the directories in LIBPATH if there
10407 # are no directories specified by -L.
10408 hardcode_minus_L=yes
10409 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10410 # Neither direct hardcoding nor static linking is supported with a
10412 hardcode_direct=unsupported
10417 if test "$host_cpu" = ia64; then
10418 # On IA64, the linker does run time linking by default, so we don't
10419 # have to do anything special.
10420 aix_use_runtimelinking=no
10421 exp_sym_flag='-Bexport'
10424 # If we're using GNU nm, then we don't want the "-C" option.
10425 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10426 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10427 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'
10429 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'
10431 aix_use_runtimelinking=no
10433 # Test if we are trying to use run time linking or normal
10434 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10435 # need to do runtime linking.
10436 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10437 for ld_flag in $LDFLAGS; do
10438 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10439 aix_use_runtimelinking=yes
10446 exp_sym_flag='-bexport'
10447 no_entry_flag='-bnoentry'
10450 # When large executables or shared objects are built, AIX ld can
10451 # have problems creating the table of contents. If linking a library
10452 # or program results in "error TOC overflow" add -mminimal-toc to
10453 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10454 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10457 hardcode_direct=yes
10458 hardcode_direct_absolute=yes
10459 hardcode_libdir_separator=':'
10460 link_all_deplibs=yes
10461 file_list_spec='${wl}-f,'
10463 if test "$GCC" = yes; then
10464 case $host_os in aix4.[012]|aix4.[012].*)
10465 # We only want to do this on AIX 4.2 and lower, the check
10466 # below for broken collect2 doesn't work under 4.3+
10467 collect2name=`${CC} -print-prog-name=collect2`
10468 if test -f "$collect2name" &&
10469 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10471 # We have reworked collect2
10474 # We have old collect2
10475 hardcode_direct=unsupported
10476 # It fails to find uninstalled libraries when the uninstalled
10477 # path is not listed in the libpath. Setting hardcode_minus_L
10478 # to unsupported forces relinking
10479 hardcode_minus_L=yes
10480 hardcode_libdir_flag_spec='-L$libdir'
10481 hardcode_libdir_separator=
10485 shared_flag='-shared'
10486 if test "$aix_use_runtimelinking" = yes; then
10487 shared_flag="$shared_flag "'${wl}-G'
10491 if test "$host_cpu" = ia64; then
10492 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10493 # chokes on -Wl,-G. The following line is correct:
10496 if test "$aix_use_runtimelinking" = yes; then
10497 shared_flag='${wl}-G'
10499 shared_flag='${wl}-bM:SRE'
10504 export_dynamic_flag_spec='${wl}-bexpall'
10505 # It seems that -bexpall does not export symbols beginning with
10506 # underscore (_), so it is better to generate a list of symbols to export.
10507 always_export_symbols=yes
10508 if test "$aix_use_runtimelinking" = yes; then
10509 # Warning - without using the other runtime loading flags (-brtl),
10510 # -berok will link without error, but may produce a broken library.
10511 allow_undefined_flag='-berok'
10512 # Determine the default libpath from the value encoded in an
10513 # empty executable.
10514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10515 /* end confdefs.h. */
10525 if ac_fn_c_try_link "$LINENO"; then :
10527 lt_aix_libpath_sed='
10528 /Import File Strings/,/^$/ {
10534 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10535 # Check for a 64-bit object if we didn't find anything.
10536 if test -z "$aix_libpath"; then
10537 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10540 rm -f core conftest.err conftest.$ac_objext \
10541 conftest$ac_exeext conftest.$ac_ext
10542 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10544 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10545 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"
10547 if test "$host_cpu" = ia64; then
10548 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10549 allow_undefined_flag="-z nodefs"
10550 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"
10552 # Determine the default libpath from the value encoded in an
10553 # empty executable.
10554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10555 /* end confdefs.h. */
10565 if ac_fn_c_try_link "$LINENO"; then :
10567 lt_aix_libpath_sed='
10568 /Import File Strings/,/^$/ {
10574 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10575 # Check for a 64-bit object if we didn't find anything.
10576 if test -z "$aix_libpath"; then
10577 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10580 rm -f core conftest.err conftest.$ac_objext \
10581 conftest$ac_exeext conftest.$ac_ext
10582 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10584 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10585 # Warning - without using the other run time loading flags,
10586 # -berok will link without error, but may produce a broken library.
10587 no_undefined_flag=' ${wl}-bernotok'
10588 allow_undefined_flag=' ${wl}-berok'
10589 # Exported symbols can be pulled into shared objects from archives
10590 whole_archive_flag_spec='$convenience'
10591 archive_cmds_need_lc=yes
10592 # This is similar to how AIX traditionally builds its shared libraries.
10593 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'
10601 # see comment about AmigaOS4 .so support
10602 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10603 archive_expsym_cmds=''
10606 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)'
10607 hardcode_libdir_flag_spec='-L$libdir'
10608 hardcode_minus_L=yes
10614 export_dynamic_flag_spec=-rdynamic
10617 cygwin* | mingw* | pw32* | cegcc*)
10618 # When not using gcc, we currently assume that we are using
10619 # Microsoft Visual C++.
10620 # hardcode_libdir_flag_spec is actually meaningless, as there is
10621 # no search path for DLLs.
10622 hardcode_libdir_flag_spec=' '
10623 allow_undefined_flag=unsupported
10624 # Tell ltmain to make .lib files, not .a files.
10626 # Tell ltmain to make .dll files, not .so files.
10628 # FIXME: Setting linknames here is a bad hack.
10629 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
10630 # The linker will automatically build a .lib file if we build a DLL.
10631 old_archive_from_new_cmds='true'
10632 # FIXME: Should let the user specify the lib program.
10633 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10634 fix_srcfile_path='`cygpath -w "$srcfile"`'
10635 enable_shared_with_static_runtimes=yes
10638 darwin* | rhapsody*)
10641 archive_cmds_need_lc=no
10643 hardcode_automatic=yes
10644 hardcode_shlibpath_var=unsupported
10645 whole_archive_flag_spec=''
10646 link_all_deplibs=yes
10647 allow_undefined_flag="$_lt_dar_allow_undefined"
10648 case $cc_basename in
10649 ifort*) _lt_dar_can_shared=yes ;;
10650 *) _lt_dar_can_shared=$GCC ;;
10652 if test "$_lt_dar_can_shared" = "yes"; then
10653 output_verbose_link_cmd=echo
10654 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10655 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10656 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}"
10657 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}"
10666 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10667 hardcode_libdir_flag_spec='-L$libdir'
10668 hardcode_shlibpath_var=no
10675 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10676 # support. Future versions do this automatically, but an explicit c++rt0.o
10677 # does not break anything, and helps significantly (at the cost of a little
10680 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10681 hardcode_libdir_flag_spec='-R$libdir'
10682 hardcode_direct=yes
10683 hardcode_shlibpath_var=no
10686 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10688 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10689 hardcode_direct=yes
10690 hardcode_minus_L=yes
10691 hardcode_shlibpath_var=no
10694 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10695 freebsd* | dragonfly*)
10696 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10697 hardcode_libdir_flag_spec='-R$libdir'
10698 hardcode_direct=yes
10699 hardcode_shlibpath_var=no
10703 if test "$GCC" = yes; then
10704 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'
10706 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'
10708 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10709 hardcode_libdir_separator=:
10710 hardcode_direct=yes
10712 # hardcode_minus_L: Not really in the search PATH,
10713 # but as the default location of the library.
10714 hardcode_minus_L=yes
10715 export_dynamic_flag_spec='${wl}-E'
10719 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10720 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10722 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10724 if test "$with_gnu_ld" = no; then
10725 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10726 hardcode_libdir_flag_spec_ld='+b $libdir'
10727 hardcode_libdir_separator=:
10728 hardcode_direct=yes
10729 hardcode_direct_absolute=yes
10730 export_dynamic_flag_spec='${wl}-E'
10731 # hardcode_minus_L: Not really in the search PATH,
10732 # but as the default location of the library.
10733 hardcode_minus_L=yes
10738 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10741 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10744 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10747 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10753 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10756 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10759 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10763 if test "$with_gnu_ld" = no; then
10764 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10765 hardcode_libdir_separator=:
10770 hardcode_shlibpath_var=no
10773 hardcode_direct=yes
10774 hardcode_direct_absolute=yes
10775 export_dynamic_flag_spec='${wl}-E'
10777 # hardcode_minus_L: Not really in the search PATH,
10778 # but as the default location of the library.
10779 hardcode_minus_L=yes
10785 irix5* | irix6* | nonstopux*)
10786 if test "$GCC" = yes; then
10787 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'
10788 # Try to use the -exported_symbol ld option, if it does not
10789 # work, assume that -exports_file does not work either and
10790 # implicitly export all symbols.
10791 save_LDFLAGS="$LDFLAGS"
10792 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10794 /* end confdefs.h. */
10797 if ac_fn_c_try_link "$LINENO"; then :
10798 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'
10801 rm -f core conftest.err conftest.$ac_objext \
10802 conftest$ac_exeext conftest.$ac_ext
10803 LDFLAGS="$save_LDFLAGS"
10805 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'
10806 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'
10808 archive_cmds_need_lc='no'
10809 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10810 hardcode_libdir_separator=:
10812 link_all_deplibs=yes
10816 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10817 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10819 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10821 hardcode_libdir_flag_spec='-R$libdir'
10822 hardcode_direct=yes
10823 hardcode_shlibpath_var=no
10827 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10828 hardcode_direct=yes
10829 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10830 hardcode_libdir_separator=:
10831 hardcode_shlibpath_var=no
10838 if test -f /usr/libexec/ld.so; then
10839 hardcode_direct=yes
10840 hardcode_shlibpath_var=no
10841 hardcode_direct_absolute=yes
10842 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10843 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10844 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10845 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10846 export_dynamic_flag_spec='${wl}-E'
10849 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10850 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10851 hardcode_libdir_flag_spec='-R$libdir'
10854 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10855 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10865 hardcode_libdir_flag_spec='-L$libdir'
10866 hardcode_minus_L=yes
10867 allow_undefined_flag=unsupported
10868 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'
10869 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10873 if test "$GCC" = yes; then
10874 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10875 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'
10877 allow_undefined_flag=' -expect_unresolved \*'
10878 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'
10880 archive_cmds_need_lc='no'
10881 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10882 hardcode_libdir_separator=:
10885 osf4* | osf5*) # as osf3* with the addition of -msym flag
10886 if test "$GCC" = yes; then
10887 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10888 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'
10889 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10891 allow_undefined_flag=' -expect_unresolved \*'
10892 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'
10893 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~
10894 $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'
10896 # Both c and cxx compiler support -rpath directly
10897 hardcode_libdir_flag_spec='-rpath $libdir'
10899 archive_cmds_need_lc='no'
10900 hardcode_libdir_separator=:
10904 no_undefined_flag=' -z defs'
10905 if test "$GCC" = yes; then
10907 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10908 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10909 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10911 case `$CC -V 2>&1` in
10914 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10915 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10916 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10920 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10921 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10922 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10926 hardcode_libdir_flag_spec='-R$libdir'
10927 hardcode_shlibpath_var=no
10929 solaris2.[0-5] | solaris2.[0-5].*) ;;
10931 # The compiler driver will combine and reorder linker options,
10932 # but understands `-z linker_flag'. GCC discards it without `$wl',
10933 # but is careful enough not to reorder.
10934 # Supported since Solaris 2.6 (maybe 2.5.1?)
10935 if test "$GCC" = yes; then
10936 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10938 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10942 link_all_deplibs=yes
10946 if test "x$host_vendor" = xsequent; then
10947 # Use $CC to link under sequent, because it throws in some extra .o
10948 # files that make .init and .fini sections work.
10949 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10951 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10953 hardcode_libdir_flag_spec='-L$libdir'
10954 hardcode_direct=yes
10955 hardcode_minus_L=yes
10956 hardcode_shlibpath_var=no
10960 case $host_vendor in
10962 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10963 hardcode_direct=yes # is this really true???
10966 ## LD is ld it makes a PLAMLIB
10967 ## CC just makes a GrossModule.
10968 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10969 reload_cmds='$CC -r -o $output$reload_objs'
10973 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10974 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10977 runpath_var='LD_RUN_PATH'
10978 hardcode_shlibpath_var=no
10982 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10983 hardcode_shlibpath_var=no
10984 export_dynamic_flag_spec='-Bexport'
10988 if test -d /usr/nec; then
10989 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10990 hardcode_shlibpath_var=no
10991 runpath_var=LD_RUN_PATH
10992 hardcode_runpath_var=yes
10997 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10998 no_undefined_flag='${wl}-z,text'
10999 archive_cmds_need_lc=no
11000 hardcode_shlibpath_var=no
11001 runpath_var='LD_RUN_PATH'
11003 if test "$GCC" = yes; then
11004 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11005 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11007 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11008 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11012 sysv5* | sco3.2v5* | sco5v6*)
11013 # Note: We can NOT use -z defs as we might desire, because we do not
11014 # link with -lc, and that would cause any symbols used from libc to
11015 # always be unresolved, which means just about no library would
11016 # ever link correctly. If we're not using GNU ld we use -z text
11017 # though, which does catch some bad symbols but isn't as heavy-handed
11019 no_undefined_flag='${wl}-z,text'
11020 allow_undefined_flag='${wl}-z,nodefs'
11021 archive_cmds_need_lc=no
11022 hardcode_shlibpath_var=no
11023 hardcode_libdir_flag_spec='${wl}-R,$libdir'
11024 hardcode_libdir_separator=':'
11025 link_all_deplibs=yes
11026 export_dynamic_flag_spec='${wl}-Bexport'
11027 runpath_var='LD_RUN_PATH'
11029 if test "$GCC" = yes; then
11030 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11031 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11033 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11034 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11039 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11040 hardcode_libdir_flag_spec='-L$libdir'
11041 hardcode_shlibpath_var=no
11049 if test x$host_vendor = xsni; then
11051 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11052 export_dynamic_flag_spec='${wl}-Blargedynsym'
11058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11059 $as_echo "$ld_shlibs" >&6; }
11060 test "$ld_shlibs" = no && can_build_shared=no
11062 with_gnu_ld=$with_gnu_ld
11079 # Do we need to explicitly link libc?
11081 case "x$archive_cmds_need_lc" in
11083 # Assume -lc should be added
11084 archive_cmds_need_lc=yes
11086 if test "$enable_shared" = yes && test "$GCC" = yes; then
11087 case $archive_cmds in
11089 # FIXME: we may have to deal with multi-command sequences.
11092 # Test whether the compiler implicitly links with -lc since on some
11093 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11094 # to ld, don't add -lc before -lgcc.
11095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11096 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11098 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11100 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11101 (eval $ac_compile) 2>&5
11103 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11104 test $ac_status = 0; } 2>conftest.err; then
11107 libobjs=conftest.$ac_objext
11109 wl=$lt_prog_compiler_wl
11110 pic_flag=$lt_prog_compiler_pic
11116 lt_save_allow_undefined_flag=$allow_undefined_flag
11117 allow_undefined_flag=
11118 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11119 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11121 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11122 test $ac_status = 0; }
11124 archive_cmds_need_lc=no
11126 archive_cmds_need_lc=yes
11128 allow_undefined_flag=$lt_save_allow_undefined_flag
11130 cat conftest.err 1>&5
11133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
11134 $as_echo "$archive_cmds_need_lc" >&6; }
11297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11298 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11300 if test "$GCC" = yes; then
11302 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11303 *) lt_awk_arg="/^libraries:/" ;;
11305 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11306 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
11307 # if the path contains ";" then we assume it to be the separator
11308 # otherwise default to the standard path separator (i.e. ":") - it is
11309 # assumed that no part of a normal pathname contains ";" but that should
11310 # okay in the real world where ";" in dirpaths is itself problematic.
11311 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
11313 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11315 # Ok, now we have the path, separated by spaces, we can step through it
11316 # and add multilib dir if necessary.
11317 lt_tmp_lt_search_path_spec=
11318 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11319 for lt_sys_path in $lt_search_path_spec; do
11320 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11321 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11323 test -d "$lt_sys_path" && \
11324 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11327 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
11328 BEGIN {RS=" "; FS="/|\n";} {
11331 for (lt_i = NF; lt_i > 0; lt_i--) {
11332 if ($lt_i != "" && $lt_i != ".") {
11333 if ($lt_i == "..") {
11336 if (lt_count == 0) {
11337 lt_foo="/" $lt_i lt_foo;
11344 if (lt_foo != "") { lt_freq[lt_foo]++; }
11345 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11347 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
11349 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11351 library_names_spec=
11352 libname_spec='lib$name'
11356 postuninstall_cmds=
11360 shlibpath_overrides_runpath=unknown
11362 dynamic_linker="$host_os ld.so"
11363 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11364 need_lib_prefix=unknown
11365 hardcode_into_libs=no
11367 # when you set need_version to no, make sure it does not cause -set_version
11368 # flags to be left without arguments
11369 need_version=unknown
11374 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11375 shlibpath_var=LIBPATH
11377 # AIX 3 has no versioning support, so we append a major version to the name.
11378 soname_spec='${libname}${release}${shared_ext}$major'
11385 hardcode_into_libs=yes
11386 if test "$host_cpu" = ia64; then
11387 # AIX 5 supports IA64
11388 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11389 shlibpath_var=LD_LIBRARY_PATH
11391 # With GCC up to 2.95.x, collect2 would create an import file
11392 # for dependence libraries. The import file would start with
11393 # the line `#! .'. This would cause the generated library to
11394 # depend on `.', always an invalid library. This was fixed in
11395 # development snapshots of GCC prior to 3.0.
11397 aix4 | aix4.[01] | aix4.[01].*)
11398 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11400 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11403 can_build_shared=no
11407 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11408 # soname into executable. Probably we can add versioning support to
11409 # collect2, so additional links can be useful in future.
11410 if test "$aix_use_runtimelinking" = yes; then
11411 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11412 # instead of lib<name>.a to let people know that these are not
11413 # typical AIX shared libraries.
11414 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11416 # We preserve .a as extension for shared libraries through AIX4.2
11417 # and later when we are not doing run time linking.
11418 library_names_spec='${libname}${release}.a $libname.a'
11419 soname_spec='${libname}${release}${shared_ext}$major'
11421 shlibpath_var=LIBPATH
11428 # Since July 2007 AmigaOS4 officially supports .so libraries.
11429 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11430 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11433 library_names_spec='$libname.ixlibrary $libname.a'
11434 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11435 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'
11441 library_names_spec='${libname}${shared_ext}'
11442 dynamic_linker="$host_os ld.so"
11443 shlibpath_var=LIBRARY_PATH
11449 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11450 soname_spec='${libname}${release}${shared_ext}$major'
11451 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11452 shlibpath_var=LD_LIBRARY_PATH
11453 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11454 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11455 # the default ld.so.conf also contains /usr/contrib/lib and
11456 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11457 # libtool to hard-code these into programs
11460 cygwin* | mingw* | pw32* | cegcc*)
11461 version_type=windows
11466 case $GCC,$host_os in
11467 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11468 library_names_spec='$libname.dll.a'
11469 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11470 postinstall_cmds='base_file=`basename \${file}`~
11471 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11472 dldir=$destdir/`dirname \$dlpath`~
11473 test -d \$dldir || mkdir -p \$dldir~
11474 $install_prog $dir/$dlname \$dldir/$dlname~
11475 chmod a+x \$dldir/$dlname~
11476 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11477 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11479 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11480 dlpath=$dir/\$dldll~
11482 shlibpath_overrides_runpath=yes
11486 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11487 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11488 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11491 # MinGW DLLs use traditional 'lib' prefix
11492 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11493 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11494 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11495 # It is most probably a Windows format PATH printed by
11496 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11497 # path with ; separators, and with drive letters. We can handle the
11498 # drive letters (cygwin fileutils understands them), so leave them,
11499 # especially as we might pass files found there to a mingw objdump,
11500 # which wouldn't understand a cygwinified path. Ahh.
11501 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11503 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11507 # pw32 DLLs use 'pw' prefix rather than 'lib'
11508 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11514 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11517 dynamic_linker='Win32 ld.exe'
11518 # FIXME: first we should search . and the directory the executable is in
11522 darwin* | rhapsody*)
11523 dynamic_linker="$host_os dyld"
11524 version_type=darwin
11527 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11528 soname_spec='${libname}${release}${major}$shared_ext'
11529 shlibpath_overrides_runpath=yes
11530 shlibpath_var=DYLD_LIBRARY_PATH
11531 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11533 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11534 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11541 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11542 soname_spec='${libname}${release}${shared_ext}$major'
11543 shlibpath_var=LD_LIBRARY_PATH
11550 freebsd* | dragonfly*)
11551 # DragonFly does not have aout. When/if they implement a new
11552 # versioning mechanism, adjust this.
11553 if test -x /usr/bin/objformat; then
11554 objformat=`/usr/bin/objformat`
11557 freebsd[123]*) objformat=aout ;;
11558 *) objformat=elf ;;
11561 version_type=freebsd-$objformat
11562 case $version_type in
11564 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11569 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11573 shlibpath_var=LD_LIBRARY_PATH
11576 shlibpath_overrides_runpath=yes
11578 freebsd3.[01]* | freebsdelf3.[01]*)
11579 shlibpath_overrides_runpath=yes
11580 hardcode_into_libs=yes
11582 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11583 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11584 shlibpath_overrides_runpath=no
11585 hardcode_into_libs=yes
11587 *) # from 4.6 on, and DragonFly
11588 shlibpath_overrides_runpath=yes
11589 hardcode_into_libs=yes
11598 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11599 soname_spec='${libname}${release}${shared_ext}$major'
11600 shlibpath_var=LD_LIBRARY_PATH
11601 hardcode_into_libs=yes
11604 hpux9* | hpux10* | hpux11*)
11605 # Give a soname corresponding to the major version so that dld.sl refuses to
11606 # link against other versions.
11613 hardcode_into_libs=yes
11614 dynamic_linker="$host_os dld.so"
11615 shlibpath_var=LD_LIBRARY_PATH
11616 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11617 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11618 soname_spec='${libname}${release}${shared_ext}$major'
11619 if test "X$HPUX_IA64_MODE" = X32; then
11620 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11622 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11624 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11628 hardcode_into_libs=yes
11629 dynamic_linker="$host_os dld.sl"
11630 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11631 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11632 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11633 soname_spec='${libname}${release}${shared_ext}$major'
11634 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11635 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11639 dynamic_linker="$host_os dld.sl"
11640 shlibpath_var=SHLIB_PATH
11641 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11642 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11643 soname_spec='${libname}${release}${shared_ext}$major'
11646 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11647 postinstall_cmds='chmod 555 $lib'
11654 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11655 soname_spec='${libname}${release}${shared_ext}$major'
11656 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11657 shlibpath_var=LD_LIBRARY_PATH
11658 shlibpath_overrides_runpath=no
11659 hardcode_into_libs=yes
11662 irix5* | irix6* | nonstopux*)
11664 nonstopux*) version_type=nonstopux ;;
11666 if test "$lt_cv_prog_gnu_ld" = yes; then
11674 soname_spec='${libname}${release}${shared_ext}$major'
11675 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11677 irix5* | nonstopux*)
11678 libsuff= shlibsuff=
11681 case $LD in # libtool.m4 will add one of these switches to LD
11682 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11683 libsuff= shlibsuff= libmagic=32-bit;;
11684 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11685 libsuff=32 shlibsuff=N32 libmagic=N32;;
11686 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11687 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11688 *) libsuff= shlibsuff= libmagic=never-match;;
11692 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11693 shlibpath_overrides_runpath=no
11694 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11695 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11696 hardcode_into_libs=yes
11699 # No shared lib support for Linux oldld, aout, or coff.
11700 linux*oldld* | linux*aout* | linux*coff*)
11704 # This must be Linux ELF.
11705 linux* | k*bsd*-gnu)
11709 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11710 soname_spec='${libname}${release}${shared_ext}$major'
11711 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11712 shlibpath_var=LD_LIBRARY_PATH
11713 shlibpath_overrides_runpath=no
11714 # Some binutils ld are patched to set DT_RUNPATH
11715 save_LDFLAGS=$LDFLAGS
11716 save_libdir=$libdir
11717 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11718 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11720 /* end confdefs.h. */
11730 if ac_fn_c_try_link "$LINENO"; then :
11731 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11732 shlibpath_overrides_runpath=yes
11735 rm -f core conftest.err conftest.$ac_objext \
11736 conftest$ac_exeext conftest.$ac_ext
11737 LDFLAGS=$save_LDFLAGS
11738 libdir=$save_libdir
11740 # This implies no fast_install, which is unacceptable.
11741 # Some rework will be needed to allow for fast_install
11742 # before this can be enabled.
11743 hardcode_into_libs=yes
11745 # Append ld.so.conf contents to the search path
11746 if test -f /etc/ld.so.conf; then
11747 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' ' '`
11748 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11751 # We used to test for /lib/ld.so.1 and disable shared libraries on
11752 # powerpc, because MkLinux only supported shared libraries with the
11753 # GNU dynamic linker. Since this was broken with cross compilers,
11754 # most powerpc-linux boxes support dynamic linking these days and
11755 # people can always --disable-shared, the test was removed, and we
11756 # assume the GNU/Linux dynamic linker is in use.
11757 dynamic_linker='GNU/Linux ld.so'
11764 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11765 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11766 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11767 dynamic_linker='NetBSD (a.out) ld.so'
11769 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11770 soname_spec='${libname}${release}${shared_ext}$major'
11771 dynamic_linker='NetBSD ld.elf_so'
11773 shlibpath_var=LD_LIBRARY_PATH
11774 shlibpath_overrides_runpath=yes
11775 hardcode_into_libs=yes
11780 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11781 shlibpath_var=LD_LIBRARY_PATH
11782 shlibpath_overrides_runpath=yes
11789 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11790 soname_spec='${libname}${release}${shared_ext}$major'
11791 shlibpath_var=LD_LIBRARY_PATH
11792 shlibpath_overrides_runpath=no
11793 hardcode_into_libs=yes
11794 dynamic_linker='ldqnx.so'
11799 sys_lib_dlsearch_path_spec="/usr/lib"
11801 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11803 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11804 *) need_version=no ;;
11806 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11807 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11808 shlibpath_var=LD_LIBRARY_PATH
11809 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11811 openbsd2.[89] | openbsd2.[89].*)
11812 shlibpath_overrides_runpath=no
11815 shlibpath_overrides_runpath=yes
11819 shlibpath_overrides_runpath=yes
11824 libname_spec='$name'
11827 library_names_spec='$libname${shared_ext} $libname.a'
11828 dynamic_linker='OS/2 ld.exe'
11829 shlibpath_var=LIBPATH
11832 osf3* | osf4* | osf5*)
11836 soname_spec='${libname}${release}${shared_ext}$major'
11837 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11838 shlibpath_var=LD_LIBRARY_PATH
11839 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11840 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11851 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11852 soname_spec='${libname}${release}${shared_ext}$major'
11853 shlibpath_var=LD_LIBRARY_PATH
11854 shlibpath_overrides_runpath=yes
11855 hardcode_into_libs=yes
11856 # ldd complains unless libraries are executable
11857 postinstall_cmds='chmod +x $lib'
11862 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11863 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11864 shlibpath_var=LD_LIBRARY_PATH
11865 shlibpath_overrides_runpath=yes
11866 if test "$with_gnu_ld" = yes; then
11874 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11875 soname_spec='${libname}${release}${shared_ext}$major'
11876 shlibpath_var=LD_LIBRARY_PATH
11877 case $host_vendor in
11879 shlibpath_overrides_runpath=no
11881 runpath_var=LD_RUN_PATH
11889 shlibpath_overrides_runpath=no
11890 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11896 if test -d /usr/nec ;then
11898 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11899 soname_spec='$libname${shared_ext}.$major'
11900 shlibpath_var=LD_LIBRARY_PATH
11904 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11905 version_type=freebsd-elf
11908 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11909 soname_spec='${libname}${release}${shared_ext}$major'
11910 shlibpath_var=LD_LIBRARY_PATH
11911 shlibpath_overrides_runpath=yes
11912 hardcode_into_libs=yes
11913 if test "$with_gnu_ld" = yes; then
11914 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11916 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11919 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11923 sys_lib_dlsearch_path_spec='/usr/lib'
11927 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11931 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11932 shlibpath_var=LD_LIBRARY_PATH
11933 shlibpath_overrides_runpath=no
11934 hardcode_into_libs=yes
11939 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11940 soname_spec='${libname}${release}${shared_ext}$major'
11941 shlibpath_var=LD_LIBRARY_PATH
11948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11949 $as_echo "$dynamic_linker" >&6; }
11950 test "$dynamic_linker" = no && can_build_shared=no
11952 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11953 if test "$GCC" = yes; then
11954 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11957 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11958 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11960 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11961 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12051 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12053 if test -n "$hardcode_libdir_flag_spec" ||
12054 test -n "$runpath_var" ||
12055 test "X$hardcode_automatic" = "Xyes" ; then
12057 # We can hardcode non-existent directories.
12058 if test "$hardcode_direct" != no &&
12059 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12060 # have to relink, otherwise we might link with an installed library
12061 # when we should be linking with a yet-to-be-installed one
12062 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12063 test "$hardcode_minus_L" != no; then
12064 # Linking always hardcodes the temporary library directory.
12065 hardcode_action=relink
12067 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12068 hardcode_action=immediate
12071 # We cannot hardcode anything, or else we can only hardcode existing
12073 hardcode_action=unsupported
12075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12076 $as_echo "$hardcode_action" >&6; }
12078 if test "$hardcode_action" = relink ||
12079 test "$inherit_rpath" = yes; then
12080 # Fast installation is not supported
12081 enable_fast_install=no
12082 elif test "$shlibpath_overrides_runpath" = yes ||
12083 test "$enable_shared" = no; then
12084 # Fast installation is not necessary
12085 enable_fast_install=needless
12093 if test "x$enable_dlopen" != xyes; then
12094 enable_dlopen=unknown
12095 enable_dlopen_self=unknown
12096 enable_dlopen_self_static=unknown
12103 lt_cv_dlopen="load_add_on"
12105 lt_cv_dlopen_self=yes
12108 mingw* | pw32* | cegcc*)
12109 lt_cv_dlopen="LoadLibrary"
12114 lt_cv_dlopen="dlopen"
12119 # if libdl is installed we need to link against it
12120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12121 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12122 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
12123 $as_echo_n "(cached) " >&6
12125 ac_check_lib_save_LIBS=$LIBS
12127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12128 /* end confdefs.h. */
12130 /* Override any GCC internal prototype to avoid an error.
12131 Use char because int might match the return type of a GCC
12132 builtin and then its argument prototype would still apply. */
12145 if ac_fn_c_try_link "$LINENO"; then :
12146 ac_cv_lib_dl_dlopen=yes
12148 ac_cv_lib_dl_dlopen=no
12150 rm -f core conftest.err conftest.$ac_objext \
12151 conftest$ac_exeext conftest.$ac_ext
12152 LIBS=$ac_check_lib_save_LIBS
12154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12155 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12156 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
12157 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12160 lt_cv_dlopen="dyld"
12162 lt_cv_dlopen_self=yes
12169 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12170 if test "x$ac_cv_func_shl_load" = x""yes; then :
12171 lt_cv_dlopen="shl_load"
12173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12174 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12175 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
12176 $as_echo_n "(cached) " >&6
12178 ac_check_lib_save_LIBS=$LIBS
12180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12181 /* end confdefs.h. */
12183 /* Override any GCC internal prototype to avoid an error.
12184 Use char because int might match the return type of a GCC
12185 builtin and then its argument prototype would still apply. */
12193 return shl_load ();
12198 if ac_fn_c_try_link "$LINENO"; then :
12199 ac_cv_lib_dld_shl_load=yes
12201 ac_cv_lib_dld_shl_load=no
12203 rm -f core conftest.err conftest.$ac_objext \
12204 conftest$ac_exeext conftest.$ac_ext
12205 LIBS=$ac_check_lib_save_LIBS
12207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12208 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12209 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
12210 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12212 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12213 if test "x$ac_cv_func_dlopen" = x""yes; then :
12214 lt_cv_dlopen="dlopen"
12216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12217 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12218 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
12219 $as_echo_n "(cached) " >&6
12221 ac_check_lib_save_LIBS=$LIBS
12223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12224 /* end confdefs.h. */
12226 /* Override any GCC internal prototype to avoid an error.
12227 Use char because int might match the return type of a GCC
12228 builtin and then its argument prototype would still apply. */
12241 if ac_fn_c_try_link "$LINENO"; then :
12242 ac_cv_lib_dl_dlopen=yes
12244 ac_cv_lib_dl_dlopen=no
12246 rm -f core conftest.err conftest.$ac_objext \
12247 conftest$ac_exeext conftest.$ac_ext
12248 LIBS=$ac_check_lib_save_LIBS
12250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12251 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12252 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
12253 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12256 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12257 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
12258 $as_echo_n "(cached) " >&6
12260 ac_check_lib_save_LIBS=$LIBS
12261 LIBS="-lsvld $LIBS"
12262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12263 /* end confdefs.h. */
12265 /* Override any GCC internal prototype to avoid an error.
12266 Use char because int might match the return type of a GCC
12267 builtin and then its argument prototype would still apply. */
12280 if ac_fn_c_try_link "$LINENO"; then :
12281 ac_cv_lib_svld_dlopen=yes
12283 ac_cv_lib_svld_dlopen=no
12285 rm -f core conftest.err conftest.$ac_objext \
12286 conftest$ac_exeext conftest.$ac_ext
12287 LIBS=$ac_check_lib_save_LIBS
12289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12290 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12291 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
12292 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12295 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12296 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
12297 $as_echo_n "(cached) " >&6
12299 ac_check_lib_save_LIBS=$LIBS
12301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12302 /* end confdefs.h. */
12304 /* Override any GCC internal prototype to avoid an error.
12305 Use char because int might match the return type of a GCC
12306 builtin and then its argument prototype would still apply. */
12314 return dld_link ();
12319 if ac_fn_c_try_link "$LINENO"; then :
12320 ac_cv_lib_dld_dld_link=yes
12322 ac_cv_lib_dld_dld_link=no
12324 rm -f core conftest.err conftest.$ac_objext \
12325 conftest$ac_exeext conftest.$ac_ext
12326 LIBS=$ac_check_lib_save_LIBS
12328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12329 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12330 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
12331 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12352 if test "x$lt_cv_dlopen" != xno; then
12358 case $lt_cv_dlopen in
12360 save_CPPFLAGS="$CPPFLAGS"
12361 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12363 save_LDFLAGS="$LDFLAGS"
12364 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12367 LIBS="$lt_cv_dlopen_libs $LIBS"
12369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12370 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12371 if test "${lt_cv_dlopen_self+set}" = set; then :
12372 $as_echo_n "(cached) " >&6
12374 if test "$cross_compiling" = yes; then :
12375 lt_cv_dlopen_self=cross
12377 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12378 lt_status=$lt_dlunknown
12379 cat > conftest.$ac_ext <<_LT_EOF
12380 #line 12380 "configure"
12381 #include "confdefs.h"
12390 # define LT_DLGLOBAL RTLD_GLOBAL
12393 # define LT_DLGLOBAL DL_GLOBAL
12395 # define LT_DLGLOBAL 0
12399 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12400 find out it does not work in some platform. */
12401 #ifndef LT_DLLAZY_OR_NOW
12403 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12406 # define LT_DLLAZY_OR_NOW DL_LAZY
12409 # define LT_DLLAZY_OR_NOW RTLD_NOW
12412 # define LT_DLLAZY_OR_NOW DL_NOW
12414 # define LT_DLLAZY_OR_NOW 0
12421 void fnord() { int i=42;}
12424 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12425 int status = $lt_dlunknown;
12429 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12430 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12431 /* dlclose (self); */
12439 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12440 (eval $ac_link) 2>&5
12442 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12443 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12444 (./conftest; exit; ) >&5 2>/dev/null
12446 case x$lt_status in
12447 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12448 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12449 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12452 # compilation failed
12453 lt_cv_dlopen_self=no
12460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12461 $as_echo "$lt_cv_dlopen_self" >&6; }
12463 if test "x$lt_cv_dlopen_self" = xyes; then
12464 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12466 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12467 if test "${lt_cv_dlopen_self_static+set}" = set; then :
12468 $as_echo_n "(cached) " >&6
12470 if test "$cross_compiling" = yes; then :
12471 lt_cv_dlopen_self_static=cross
12473 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12474 lt_status=$lt_dlunknown
12475 cat > conftest.$ac_ext <<_LT_EOF
12476 #line 12476 "configure"
12477 #include "confdefs.h"
12486 # define LT_DLGLOBAL RTLD_GLOBAL
12489 # define LT_DLGLOBAL DL_GLOBAL
12491 # define LT_DLGLOBAL 0
12495 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12496 find out it does not work in some platform. */
12497 #ifndef LT_DLLAZY_OR_NOW
12499 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12502 # define LT_DLLAZY_OR_NOW DL_LAZY
12505 # define LT_DLLAZY_OR_NOW RTLD_NOW
12508 # define LT_DLLAZY_OR_NOW DL_NOW
12510 # define LT_DLLAZY_OR_NOW 0
12517 void fnord() { int i=42;}
12520 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12521 int status = $lt_dlunknown;
12525 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12526 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12527 /* dlclose (self); */
12535 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12536 (eval $ac_link) 2>&5
12538 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12539 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12540 (./conftest; exit; ) >&5 2>/dev/null
12542 case x$lt_status in
12543 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12544 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12545 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12548 # compilation failed
12549 lt_cv_dlopen_self_static=no
12556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12557 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12560 CPPFLAGS="$save_CPPFLAGS"
12561 LDFLAGS="$save_LDFLAGS"
12566 case $lt_cv_dlopen_self in
12567 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12568 *) enable_dlopen_self=unknown ;;
12571 case $lt_cv_dlopen_self_static in
12572 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12573 *) enable_dlopen_self_static=unknown ;;
12595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12596 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12597 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12598 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12599 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12601 $as_echo "yes" >&6; }
12603 # FIXME - insert some real tests, host_os isn't really good enough
12606 if test -n "$STRIP" ; then
12607 striplib="$STRIP -x"
12608 old_striplib="$STRIP -S"
12609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12610 $as_echo "yes" >&6; }
12612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12613 $as_echo "no" >&6; }
12617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12618 $as_echo "no" >&6; }
12634 # Report which library types will actually be built
12635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12636 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12638 $as_echo "$can_build_shared" >&6; }
12640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12641 $as_echo_n "checking whether to build shared libraries... " >&6; }
12642 test "$can_build_shared" = "no" && enable_shared=no
12644 # On AIX, shared libraries and static libraries use the same namespace, and
12645 # are all built from PIC.
12648 test "$enable_shared" = yes && enable_static=no
12649 if test -n "$RANLIB"; then
12650 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12651 postinstall_cmds='$RANLIB $lib'
12656 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12657 test "$enable_shared" = yes && enable_static=no
12661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12662 $as_echo "$enable_shared" >&6; }
12664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12665 $as_echo_n "checking whether to build static libraries... " >&6; }
12666 # Make sure either enable_shared or enable_static is yes.
12667 test "$enable_shared" = yes || enable_static=yes
12668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12669 $as_echo "$enable_static" >&6; }
12676 ac_cpp='$CPP $CPPFLAGS'
12677 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12678 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12679 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12685 ac_cpp='$CXXCPP $CPPFLAGS'
12686 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12687 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12688 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12690 archive_cmds_need_lc_CXX=no
12691 allow_undefined_flag_CXX=
12692 always_export_symbols_CXX=no
12693 archive_expsym_cmds_CXX=
12694 compiler_needs_object_CXX=no
12695 export_dynamic_flag_spec_CXX=
12696 hardcode_direct_CXX=no
12697 hardcode_direct_absolute_CXX=no
12698 hardcode_libdir_flag_spec_CXX=
12699 hardcode_libdir_flag_spec_ld_CXX=
12700 hardcode_libdir_separator_CXX=
12701 hardcode_minus_L_CXX=no
12702 hardcode_shlibpath_var_CXX=unsupported
12703 hardcode_automatic_CXX=no
12704 inherit_rpath_CXX=no
12706 module_expsym_cmds_CXX=
12707 link_all_deplibs_CXX=unknown
12708 old_archive_cmds_CXX=$old_archive_cmds
12709 no_undefined_flag_CXX=
12710 whole_archive_flag_spec_CXX=
12711 enable_shared_with_static_runtimes_CXX=no
12713 # Source file extension for C++ test sources.
12716 # Object file extension for compiled C++ test sources.
12720 # No sense in running all these tests if we already determined that
12721 # the CXX compiler isn't working. Some variables (like enable_shared)
12722 # are currently assumed to apply to all compilers on this platform,
12723 # and will be corrupted by setting them based on a non-working compiler.
12724 if test "$_lt_caught_CXX_error" != yes; then
12725 # Code to be used in simple compile tests
12726 lt_simple_compile_test_code="int some_variable = 0;"
12728 # Code to be used in simple link tests
12729 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12731 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12738 # If no C compiler was specified, use CC.
12741 # If no C compiler flags were specified, use CFLAGS.
12742 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12744 # Allow CC to be a program name with arguments.
12748 # save warnings/boilerplate of simple test code
12749 ac_outfile=conftest.$ac_objext
12750 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12751 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12752 _lt_compiler_boilerplate=`cat conftest.err`
12755 ac_outfile=conftest.$ac_objext
12756 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12757 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12758 _lt_linker_boilerplate=`cat conftest.err`
12762 # Allow CC to be a program name with arguments.
12767 lt_save_with_gnu_ld=$with_gnu_ld
12768 lt_save_path_LD=$lt_cv_path_LD
12769 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12770 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12772 $as_unset lt_cv_prog_gnu_ld
12774 if test -n "${lt_cv_path_LDCXX+set}"; then
12775 lt_cv_path_LD=$lt_cv_path_LDCXX
12777 $as_unset lt_cv_path_LD
12779 test -z "${LDCXX+set}" || LD=$LDCXX
12783 for cc_temp in $compiler""; do
12785 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12786 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12791 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12794 if test -n "$compiler"; then
12795 # We don't want -fno-exception when compiling C++ code, so set the
12796 # no_builtin_flag separately
12797 if test "$GXX" = yes; then
12798 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12800 lt_prog_compiler_no_builtin_flag_CXX=
12803 if test "$GXX" = yes; then
12804 # Set up default GNU C++ configuration
12808 # Check whether --with-gnu-ld was given.
12809 if test "${with_gnu_ld+set}" = set; then :
12810 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12816 if test "$GCC" = yes; then
12817 # Check if gcc -print-prog-name=ld gives a path.
12818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12819 $as_echo_n "checking for ld used by $CC... " >&6; }
12822 # gcc leaves a trailing carriage return which upsets mingw
12823 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12825 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12828 # Accept absolute paths.
12830 re_direlt='/[^/][^/]*/\.\./'
12831 # Canonicalize the pathname of ld
12832 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12833 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12834 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12836 test -z "$LD" && LD="$ac_prog"
12839 # If it fails, then pretend we aren't using GCC.
12843 # If it is relative, then search for the first ld in PATH.
12844 with_gnu_ld=unknown
12847 elif test "$with_gnu_ld" = yes; then
12848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12849 $as_echo_n "checking for GNU ld... " >&6; }
12851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12852 $as_echo_n "checking for non-GNU ld... " >&6; }
12854 if test "${lt_cv_path_LD+set}" = set; then :
12855 $as_echo_n "(cached) " >&6
12857 if test -z "$LD"; then
12858 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12859 for ac_dir in $PATH; do
12861 test -z "$ac_dir" && ac_dir=.
12862 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12863 lt_cv_path_LD="$ac_dir/$ac_prog"
12864 # Check to see if the program is GNU ld. I'd rather use --version,
12865 # but apparently some variants of GNU ld only accept -v.
12866 # Break only if it was the GNU/non-GNU ld that we prefer.
12867 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12868 *GNU* | *'with BFD'*)
12869 test "$with_gnu_ld" != no && break
12872 test "$with_gnu_ld" != yes && break
12879 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12883 LD="$lt_cv_path_LD"
12884 if test -n "$LD"; then
12885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12886 $as_echo "$LD" >&6; }
12888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12889 $as_echo "no" >&6; }
12891 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
12892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12893 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12894 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12895 $as_echo_n "(cached) " >&6
12897 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12898 case `$LD -v 2>&1 </dev/null` in
12899 *GNU* | *'with BFD'*)
12900 lt_cv_prog_gnu_ld=yes
12903 lt_cv_prog_gnu_ld=no
12907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12908 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12909 with_gnu_ld=$lt_cv_prog_gnu_ld
12917 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12918 # archiving commands below assume that GNU ld is being used.
12919 if test "$with_gnu_ld" = yes; then
12920 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12921 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'
12923 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12924 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12926 # If archive_cmds runs LD, not CC, wlarc should be empty
12927 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12928 # investigate it a little bit more. (MM)
12931 # ancient GNU ld didn't support --whole-archive et. al.
12932 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12933 $GREP 'no-whole-archive' > /dev/null; then
12934 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12936 whole_archive_flag_spec_CXX=
12942 # A generic and very simple default shared library creation
12943 # command for GNU C++ for the case where it uses the native
12944 # linker, instead of GNU ld. If possible, this setting should
12945 # overridden to take advantage of the native linker features on
12946 # the platform it is being used on.
12947 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12950 # Commands to make compiler produce verbose output that lists
12951 # what "hidden" libraries, object files and flags are used when
12952 # linking a shared library.
12953 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12961 # PORTME: fill in a description of your system's C++ link characteristics
12962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12963 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12967 # FIXME: insert proper C++ library support
12971 if test "$host_cpu" = ia64; then
12972 # On IA64, the linker does run time linking by default, so we don't
12973 # have to do anything special.
12974 aix_use_runtimelinking=no
12975 exp_sym_flag='-Bexport'
12978 aix_use_runtimelinking=no
12980 # Test if we are trying to use run time linking or normal
12981 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12982 # need to do runtime linking.
12983 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12984 for ld_flag in $LDFLAGS; do
12987 aix_use_runtimelinking=yes
12995 exp_sym_flag='-bexport'
12996 no_entry_flag='-bnoentry'
12999 # When large executables or shared objects are built, AIX ld can
13000 # have problems creating the table of contents. If linking a library
13001 # or program results in "error TOC overflow" add -mminimal-toc to
13002 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13003 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13005 archive_cmds_CXX=''
13006 hardcode_direct_CXX=yes
13007 hardcode_direct_absolute_CXX=yes
13008 hardcode_libdir_separator_CXX=':'
13009 link_all_deplibs_CXX=yes
13010 file_list_spec_CXX='${wl}-f,'
13012 if test "$GXX" = yes; then
13013 case $host_os in aix4.[012]|aix4.[012].*)
13014 # We only want to do this on AIX 4.2 and lower, the check
13015 # below for broken collect2 doesn't work under 4.3+
13016 collect2name=`${CC} -print-prog-name=collect2`
13017 if test -f "$collect2name" &&
13018 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13020 # We have reworked collect2
13023 # We have old collect2
13024 hardcode_direct_CXX=unsupported
13025 # It fails to find uninstalled libraries when the uninstalled
13026 # path is not listed in the libpath. Setting hardcode_minus_L
13027 # to unsupported forces relinking
13028 hardcode_minus_L_CXX=yes
13029 hardcode_libdir_flag_spec_CXX='-L$libdir'
13030 hardcode_libdir_separator_CXX=
13033 shared_flag='-shared'
13034 if test "$aix_use_runtimelinking" = yes; then
13035 shared_flag="$shared_flag "'${wl}-G'
13039 if test "$host_cpu" = ia64; then
13040 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13041 # chokes on -Wl,-G. The following line is correct:
13044 if test "$aix_use_runtimelinking" = yes; then
13045 shared_flag='${wl}-G'
13047 shared_flag='${wl}-bM:SRE'
13052 export_dynamic_flag_spec_CXX='${wl}-bexpall'
13053 # It seems that -bexpall does not export symbols beginning with
13054 # underscore (_), so it is better to generate a list of symbols to
13056 always_export_symbols_CXX=yes
13057 if test "$aix_use_runtimelinking" = yes; then
13058 # Warning - without using the other runtime loading flags (-brtl),
13059 # -berok will link without error, but may produce a broken library.
13060 allow_undefined_flag_CXX='-berok'
13061 # Determine the default libpath from the value encoded in an empty
13063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13064 /* end confdefs.h. */
13074 if ac_fn_cxx_try_link "$LINENO"; then :
13076 lt_aix_libpath_sed='
13077 /Import File Strings/,/^$/ {
13083 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13084 # Check for a 64-bit object if we didn't find anything.
13085 if test -z "$aix_libpath"; then
13086 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13089 rm -f core conftest.err conftest.$ac_objext \
13090 conftest$ac_exeext conftest.$ac_ext
13091 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13093 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13095 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"
13097 if test "$host_cpu" = ia64; then
13098 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13099 allow_undefined_flag_CXX="-z nodefs"
13100 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"
13102 # Determine the default libpath from the value encoded in an
13103 # empty executable.
13104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13105 /* end confdefs.h. */
13115 if ac_fn_cxx_try_link "$LINENO"; then :
13117 lt_aix_libpath_sed='
13118 /Import File Strings/,/^$/ {
13124 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13125 # Check for a 64-bit object if we didn't find anything.
13126 if test -z "$aix_libpath"; then
13127 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13130 rm -f core conftest.err conftest.$ac_objext \
13131 conftest$ac_exeext conftest.$ac_ext
13132 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13134 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13135 # Warning - without using the other run time loading flags,
13136 # -berok will link without error, but may produce a broken library.
13137 no_undefined_flag_CXX=' ${wl}-bernotok'
13138 allow_undefined_flag_CXX=' ${wl}-berok'
13139 # Exported symbols can be pulled into shared objects from archives
13140 whole_archive_flag_spec_CXX='$convenience'
13141 archive_cmds_need_lc_CXX=yes
13142 # This is similar to how AIX traditionally builds its shared
13144 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'
13150 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13151 allow_undefined_flag_CXX=unsupported
13152 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13153 # support --undefined. This deserves some investigation. FIXME
13154 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13161 case $cc_basename in
13163 # FIXME: insert proper C++ library support
13169 cygwin* | mingw* | pw32* | cegcc*)
13170 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13171 # as there is no search path for DLLs.
13172 hardcode_libdir_flag_spec_CXX='-L$libdir'
13173 allow_undefined_flag_CXX=unsupported
13174 always_export_symbols_CXX=no
13175 enable_shared_with_static_runtimes_CXX=yes
13177 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13178 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'
13179 # If the export-symbols file already is a .def file (1st line
13180 # is EXPORTS), use it as is; otherwise, prepend...
13181 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13182 cp $export_symbols $output_objdir/$soname.def;
13184 echo EXPORTS > $output_objdir/$soname.def;
13185 cat $export_symbols >> $output_objdir/$soname.def;
13187 $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'
13192 darwin* | rhapsody*)
13195 archive_cmds_need_lc_CXX=no
13196 hardcode_direct_CXX=no
13197 hardcode_automatic_CXX=yes
13198 hardcode_shlibpath_var_CXX=unsupported
13199 whole_archive_flag_spec_CXX=''
13200 link_all_deplibs_CXX=yes
13201 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13202 case $cc_basename in
13203 ifort*) _lt_dar_can_shared=yes ;;
13204 *) _lt_dar_can_shared=$GCC ;;
13206 if test "$_lt_dar_can_shared" = "yes"; then
13207 output_verbose_link_cmd=echo
13208 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}"
13209 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13210 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}"
13211 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}"
13212 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13213 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}"
13214 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}"
13224 case $cc_basename in
13226 # FIXME: insert proper C++ library support
13230 # Green Hills C++ Compiler
13231 # FIXME: insert proper C++ library support
13235 # FIXME: insert proper C++ library support
13242 # C++ shared libraries reported to be fairly broken before
13248 archive_cmds_need_lc_CXX=no
13251 freebsd* | dragonfly*)
13252 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13261 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13262 hardcode_libdir_separator_CXX=:
13263 export_dynamic_flag_spec_CXX='${wl}-E'
13264 hardcode_direct_CXX=yes
13265 hardcode_minus_L_CXX=yes # Not in the search PATH,
13266 # but as the default
13267 # location of the library.
13269 case $cc_basename in
13271 # FIXME: insert proper C++ library support
13275 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'
13276 # Commands to make compiler produce verbose output that lists
13277 # what "hidden" libraries, object files and flags are used when
13278 # linking a shared library.
13280 # There doesn't appear to be a way to prevent this compiler from
13281 # explicitly linking system object files so we need to strip them
13282 # from the output so that they don't get included in the library
13284 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'
13287 if test "$GXX" = yes; then
13288 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'
13290 # FIXME: insert proper C++ library support
13298 if test $with_gnu_ld = no; then
13299 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13300 hardcode_libdir_separator_CXX=:
13306 export_dynamic_flag_spec_CXX='${wl}-E'
13312 hardcode_direct_CXX=no
13313 hardcode_shlibpath_var_CXX=no
13316 hardcode_direct_CXX=yes
13317 hardcode_direct_absolute_CXX=yes
13318 hardcode_minus_L_CXX=yes # Not in the search PATH,
13319 # but as the default
13320 # location of the library.
13324 case $cc_basename in
13326 # FIXME: insert proper C++ library support
13332 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13335 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13338 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13341 # Commands to make compiler produce verbose output that lists
13342 # what "hidden" libraries, object files and flags are used when
13343 # linking a shared library.
13345 # There doesn't appear to be a way to prevent this compiler from
13346 # explicitly linking system object files so we need to strip them
13347 # from the output so that they don't get included in the library
13349 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'
13352 if test "$GXX" = yes; then
13353 if test $with_gnu_ld = no; then
13356 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13359 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13362 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'
13367 # FIXME: insert proper C++ library support
13375 hardcode_direct_CXX=no
13376 hardcode_shlibpath_var_CXX=no
13377 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13378 export_dynamic_flag_spec_CXX='${wl}-E'
13379 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13380 # Instead, shared libraries are loaded at an image base (0x10000000 by
13381 # default) and relocated if they conflict, which is a slow very memory
13382 # consuming and fragmenting process. To avoid this, we pick a random,
13383 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13384 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13385 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'
13386 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'
13389 case $cc_basename in
13392 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'
13394 # Archives containing C++ object files must be created using
13395 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13396 # necessary to make sure instantiated templates are included
13398 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13401 if test "$GXX" = yes; then
13402 if test "$with_gnu_ld" = no; then
13403 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13405 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'
13408 link_all_deplibs_CXX=yes
13411 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13412 hardcode_libdir_separator_CXX=:
13413 inherit_rpath_CXX=yes
13416 linux* | k*bsd*-gnu)
13417 case $cc_basename in
13419 # Kuck and Associates, Inc. (KAI) C++ Compiler
13421 # KCC will only create a shared library if the output file
13422 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13423 # to its proper name (with version) after linking.
13424 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'
13425 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'
13426 # Commands to make compiler produce verbose output that lists
13427 # what "hidden" libraries, object files and flags are used when
13428 # linking a shared library.
13430 # There doesn't appear to be a way to prevent this compiler from
13431 # explicitly linking system object files so we need to strip them
13432 # from the output so that they don't get included in the library
13434 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'
13436 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13437 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13439 # Archives containing C++ object files must be created using
13440 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13441 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13446 # version 8.0 and above of icpc choke on multiply defined symbols
13447 # if we add $predep_objects and $postdep_objects, however 7.1 and
13448 # earlier do not add the objects themselves.
13449 case `$CC -V 2>&1` in
13451 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13452 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'
13454 *) # Version 8.0 or newer
13457 ia64*) tmp_idyn=' -i_dynamic';;
13459 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13460 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'
13463 archive_cmds_need_lc_CXX=no
13464 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13465 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13466 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13469 # Portland Group C++ compiler
13471 *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
13472 prelink_cmds_CXX='tpldir=Template.dir~
13474 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13475 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
13476 old_archive_cmds_CXX='tpldir=Template.dir~
13478 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13479 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
13481 archive_cmds_CXX='tpldir=Template.dir~
13483 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13484 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13485 archive_expsym_cmds_CXX='tpldir=Template.dir~
13487 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13488 $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'
13490 *) # Version 6 will use weak symbols
13491 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13492 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'
13496 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13497 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13498 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'
13502 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13503 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'
13505 runpath_var=LD_RUN_PATH
13506 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13507 hardcode_libdir_separator_CXX=:
13509 # Commands to make compiler produce verbose output that lists
13510 # what "hidden" libraries, object files and flags are used when
13511 # linking a shared library.
13513 # There doesn't appear to be a way to prevent this compiler from
13514 # explicitly linking system object files so we need to strip them
13515 # from the output so that they don't get included in the library
13517 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'
13520 # IBM XL 8.0 on PPC, with GNU ld
13521 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13522 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13523 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13524 if test "x$supports_anon_versioning" = xyes; then
13525 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13526 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13527 echo "local: *; };" >> $output_objdir/$libname.ver~
13528 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13532 case `$CC -V 2>&1 | sed 5q` in
13535 no_undefined_flag_CXX=' -zdefs'
13536 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13537 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'
13538 hardcode_libdir_flag_spec_CXX='-R$libdir'
13539 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'
13540 compiler_needs_object_CXX=yes
13542 # Not sure whether something based on
13543 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13545 output_verbose_link_cmd='echo'
13547 # Archives containing C++ object files must be created using
13548 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13549 # necessary to make sure instantiated templates are included
13551 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13559 # FIXME: insert proper C++ library support
13564 # FIXME: insert proper C++ library support
13569 case $cc_basename in
13571 # FIXME: insert proper C++ library support
13575 # FIXME: insert proper C++ library support
13582 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13583 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13585 hardcode_libdir_flag_spec_CXX='-R$libdir'
13586 hardcode_direct_CXX=yes
13587 hardcode_shlibpath_var_CXX=no
13589 # Workaround some broken pre-1.5 toolchains
13590 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13598 # C++ shared libraries are fairly broken
13603 if test -f /usr/libexec/ld.so; then
13604 hardcode_direct_CXX=yes
13605 hardcode_shlibpath_var_CXX=no
13606 hardcode_direct_absolute_CXX=yes
13607 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13608 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13609 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13610 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13611 export_dynamic_flag_spec_CXX='${wl}-E'
13612 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13614 output_verbose_link_cmd=echo
13620 osf3* | osf4* | osf5*)
13621 case $cc_basename in
13623 # Kuck and Associates, Inc. (KAI) C++ Compiler
13625 # KCC will only create a shared library if the output file
13626 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13627 # to its proper name (with version) after linking.
13628 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'
13630 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13631 hardcode_libdir_separator_CXX=:
13633 # Archives containing C++ object files must be created using
13634 # the KAI C++ compiler.
13636 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13637 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13641 # Rational C++ 2.4.1
13642 # FIXME: insert proper C++ library support
13648 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13649 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'
13650 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13653 allow_undefined_flag_CXX=' -expect_unresolved \*'
13654 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'
13655 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13656 echo "-hidden">> $lib.exp~
13657 $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~
13659 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13663 hardcode_libdir_separator_CXX=:
13665 # Commands to make compiler produce verbose output that lists
13666 # what "hidden" libraries, object files and flags are used when
13667 # linking a shared library.
13669 # There doesn't appear to be a way to prevent this compiler from
13670 # explicitly linking system object files so we need to strip them
13671 # from the output so that they don't get included in the library
13673 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'
13676 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13677 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13680 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'
13683 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'
13687 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13688 hardcode_libdir_separator_CXX=:
13690 # Commands to make compiler produce verbose output that lists
13691 # what "hidden" libraries, object files and flags are used when
13692 # linking a shared library.
13693 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13696 # FIXME: insert proper C++ library support
13704 # FIXME: insert proper C++ library support
13709 case $cc_basename in
13712 # FIXME: insert proper C++ library support
13717 # FIXME: insert proper C++ library support
13721 # FIXME: insert proper C++ library support
13728 case $cc_basename in
13730 # Sun C++ 4.2, 5.x and Centerline C++
13731 archive_cmds_need_lc_CXX=yes
13732 no_undefined_flag_CXX=' -zdefs'
13733 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13734 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13735 $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'
13737 hardcode_libdir_flag_spec_CXX='-R$libdir'
13738 hardcode_shlibpath_var_CXX=no
13740 solaris2.[0-5] | solaris2.[0-5].*) ;;
13742 # The compiler driver will combine and reorder linker options,
13743 # but understands `-z linker_flag'.
13744 # Supported since Solaris 2.6 (maybe 2.5.1?)
13745 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13748 link_all_deplibs_CXX=yes
13750 output_verbose_link_cmd='echo'
13752 # Archives containing C++ object files must be created using
13753 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13754 # necessary to make sure instantiated templates are included
13756 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13759 # Green Hills C++ Compiler
13760 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13762 # The C++ compiler must be used to create the archive.
13763 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13766 # GNU C++ compiler with Solaris linker
13767 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13768 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13769 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13770 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13771 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13772 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13774 # Commands to make compiler produce verbose output that lists
13775 # what "hidden" libraries, object files and flags are used when
13776 # linking a shared library.
13777 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13779 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13781 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13782 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13783 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13785 # Commands to make compiler produce verbose output that lists
13786 # what "hidden" libraries, object files and flags are used when
13787 # linking a shared library.
13788 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13791 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13793 solaris2.[0-5] | solaris2.[0-5].*) ;;
13795 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13803 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13804 no_undefined_flag_CXX='${wl}-z,text'
13805 archive_cmds_need_lc_CXX=no
13806 hardcode_shlibpath_var_CXX=no
13807 runpath_var='LD_RUN_PATH'
13809 case $cc_basename in
13811 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13812 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13815 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13816 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13821 sysv5* | sco3.2v5* | sco5v6*)
13822 # Note: We can NOT use -z defs as we might desire, because we do not
13823 # link with -lc, and that would cause any symbols used from libc to
13824 # always be unresolved, which means just about no library would
13825 # ever link correctly. If we're not using GNU ld we use -z text
13826 # though, which does catch some bad symbols but isn't as heavy-handed
13828 no_undefined_flag_CXX='${wl}-z,text'
13829 allow_undefined_flag_CXX='${wl}-z,nodefs'
13830 archive_cmds_need_lc_CXX=no
13831 hardcode_shlibpath_var_CXX=no
13832 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13833 hardcode_libdir_separator_CXX=':'
13834 link_all_deplibs_CXX=yes
13835 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13836 runpath_var='LD_RUN_PATH'
13838 case $cc_basename in
13840 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13841 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13844 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13845 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13851 case $cc_basename in
13853 # NonStop-UX NCC 3.20
13854 # FIXME: insert proper C++ library support
13858 # FIXME: insert proper C++ library support
13865 # FIXME: insert proper C++ library support
13870 # FIXME: insert proper C++ library support
13875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13876 $as_echo "$ld_shlibs_CXX" >&6; }
13877 test "$ld_shlibs_CXX" = no && can_build_shared=no
13883 ## There is no encapsulation within the following macros, do not change
13884 ## the running order or otherwise move them around unless you know exactly
13885 ## what you are doing...
13886 # Dependencies to place before and after the object being linked:
13887 predep_objects_CXX=
13888 postdep_objects_CXX=
13891 compiler_lib_search_path_CXX=
13893 cat > conftest.$ac_ext <<_LT_EOF
13897 Foo (void) { a = 0; }
13903 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13904 (eval $ac_compile) 2>&5
13906 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13907 test $ac_status = 0; }; then
13908 # Parse the compiler output and extract the necessary
13909 # objects, libraries and library flags.
13911 # Sentinel used to keep track of whether or not we are before
13912 # the conftest object file.
13913 pre_test_object_deps_done=no
13915 for p in `eval "$output_verbose_link_cmd"`; do
13919 # Some compilers place space between "-{L,R}" and the path.
13920 # Remove the space.
13921 if test $p = "-L" ||
13922 test $p = "-R"; then
13929 if test "$pre_test_object_deps_done" = no; then
13932 # Internal compiler library paths should come after those
13933 # provided the user. The postdeps already come after the
13934 # user supplied libs so there is no need to process them.
13935 if test -z "$compiler_lib_search_path_CXX"; then
13936 compiler_lib_search_path_CXX="${prev}${p}"
13938 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13941 # The "-l" case would never come before the object being
13942 # linked, so don't bother handling this case.
13945 if test -z "$postdeps_CXX"; then
13946 postdeps_CXX="${prev}${p}"
13948 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13954 # This assumes that the test object file only shows up
13955 # once in the compiler output.
13956 if test "$p" = "conftest.$objext"; then
13957 pre_test_object_deps_done=yes
13961 if test "$pre_test_object_deps_done" = no; then
13962 if test -z "$predep_objects_CXX"; then
13963 predep_objects_CXX="$p"
13965 predep_objects_CXX="$predep_objects_CXX $p"
13968 if test -z "$postdep_objects_CXX"; then
13969 postdep_objects_CXX="$p"
13971 postdep_objects_CXX="$postdep_objects_CXX $p"
13976 *) ;; # Ignore the rest.
13984 echo "libtool.m4: error: problem compiling CXX test program"
13987 $RM -f confest.$objext
13989 # PORTME: override above test on systems where it is broken
13992 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13993 # hack all around it, let's just trust "g++" to DTRT.
13994 predep_objects_CXX=
13995 postdep_objects_CXX=
14000 case `$CC -V 2>&1 | sed 5q` in
14004 # The more standards-conforming stlport4 library is
14005 # incompatible with the Cstd library. Avoid specifying
14006 # it if it's in CXXFLAGS. Ignore libCrun as
14007 # -library=stlport4 depends on it.
14008 case " $CXX $CXXFLAGS " in
14009 *" -library=stlport4 "*)
14010 solaris_use_stlport4=yes
14014 if test "$solaris_use_stlport4" != yes; then
14015 postdeps_CXX='-library=Cstd -library=Crun'
14022 case $cc_basename in
14024 # The more standards-conforming stlport4 library is
14025 # incompatible with the Cstd library. Avoid specifying
14026 # it if it's in CXXFLAGS. Ignore libCrun as
14027 # -library=stlport4 depends on it.
14028 case " $CXX $CXXFLAGS " in
14029 *" -library=stlport4 "*)
14030 solaris_use_stlport4=yes
14034 # Adding this requires a known-good setup of shared libraries for
14035 # Sun compiler versions before 5.6, else PIC objects from an old
14036 # archive will be linked into the output, leading to subtle bugs.
14037 if test "$solaris_use_stlport4" != yes; then
14038 postdeps_CXX='-library=Cstd -library=Crun'
14046 case " $postdeps_CXX " in
14047 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14049 compiler_lib_search_dirs_CXX=
14050 if test -n "${compiler_lib_search_path_CXX}"; then
14051 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14084 lt_prog_compiler_wl_CXX=
14085 lt_prog_compiler_pic_CXX=
14086 lt_prog_compiler_static_CXX=
14088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14089 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14091 # C++ specific cases for pic, static, wl, etc.
14092 if test "$GXX" = yes; then
14093 lt_prog_compiler_wl_CXX='-Wl,'
14094 lt_prog_compiler_static_CXX='-static'
14098 # All AIX code is PIC.
14099 if test "$host_cpu" = ia64; then
14100 # AIX 5 now supports IA64 processor
14101 lt_prog_compiler_static_CXX='-Bstatic'
14108 # see comment about AmigaOS4 .so support
14109 lt_prog_compiler_pic_CXX='-fPIC'
14112 # FIXME: we need at least 68020 code to build shared libraries, but
14113 # adding the `-m68020' flag to GCC prevents building anything better,
14115 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14120 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14121 # PIC is the default for these OSes.
14123 mingw* | cygwin* | os2* | pw32* | cegcc*)
14124 # This hack is so that the source file can tell whether it is being
14125 # built for inclusion in a dll (and should export symbols for example).
14126 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14127 # (--disable-auto-import) libraries
14128 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14130 darwin* | rhapsody*)
14131 # PIC is the default on this platform
14132 # Common symbols not allowed in MH_DYLIB files
14133 lt_prog_compiler_pic_CXX='-fno-common'
14136 # DJGPP does not support shared libraries at all
14137 lt_prog_compiler_pic_CXX=
14140 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14141 # Instead, we relocate shared libraries at runtime.
14144 if test -d /usr/nec; then
14145 lt_prog_compiler_pic_CXX=-Kconform_pic
14149 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14150 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14151 # sets the default TLS model and affects inlining.
14156 lt_prog_compiler_pic_CXX='-fPIC'
14161 # QNX uses GNU C++, but need to define -shared option too, otherwise
14162 # it will coredump.
14163 lt_prog_compiler_pic_CXX='-fPIC -shared'
14166 lt_prog_compiler_pic_CXX='-fPIC'
14172 # All AIX code is PIC.
14173 if test "$host_cpu" = ia64; then
14174 # AIX 5 now supports IA64 processor
14175 lt_prog_compiler_static_CXX='-Bstatic'
14177 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14181 case $cc_basename in
14183 # Green Hills C++ Compiler
14184 # _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"
14189 case $cc_basename in
14191 lt_prog_compiler_pic_CXX='-KPIC'
14194 # Green Hills C++ Compiler
14195 lt_prog_compiler_pic_CXX='-pic'
14201 freebsd* | dragonfly*)
14202 # FreeBSD uses GNU C++
14204 hpux9* | hpux10* | hpux11*)
14205 case $cc_basename in
14207 lt_prog_compiler_wl_CXX='-Wl,'
14208 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14209 if test "$host_cpu" != ia64; then
14210 lt_prog_compiler_pic_CXX='+Z'
14214 lt_prog_compiler_wl_CXX='-Wl,'
14215 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14221 lt_prog_compiler_pic_CXX='+Z'
14230 # This is c89, which is MS Visual C++ (no shared libs)
14231 # Anyone wants to do a port?
14233 irix5* | irix6* | nonstopux*)
14234 case $cc_basename in
14236 lt_prog_compiler_wl_CXX='-Wl,'
14237 lt_prog_compiler_static_CXX='-non_shared'
14238 # CC pic flag -KPIC is the default.
14244 linux* | k*bsd*-gnu)
14245 case $cc_basename in
14248 lt_prog_compiler_wl_CXX='--backend -Wl,'
14249 lt_prog_compiler_pic_CXX='-fPIC'
14252 # old Intel C++ for x86_64 which still supported -KPIC.
14253 lt_prog_compiler_wl_CXX='-Wl,'
14254 lt_prog_compiler_pic_CXX='-KPIC'
14255 lt_prog_compiler_static_CXX='-static'
14258 # Intel C++, used to be incompatible with GCC.
14259 # ICC 10 doesn't accept -KPIC any more.
14260 lt_prog_compiler_wl_CXX='-Wl,'
14261 lt_prog_compiler_pic_CXX='-fPIC'
14262 lt_prog_compiler_static_CXX='-static'
14265 # Portland Group C++ compiler
14266 lt_prog_compiler_wl_CXX='-Wl,'
14267 lt_prog_compiler_pic_CXX='-fpic'
14268 lt_prog_compiler_static_CXX='-Bstatic'
14272 # Make sure the PIC flag is empty. It appears that all Alpha
14273 # Linux and Compaq Tru64 Unix objects are PIC.
14274 lt_prog_compiler_pic_CXX=
14275 lt_prog_compiler_static_CXX='-non_shared'
14278 # IBM XL 8.0 on PPC
14279 lt_prog_compiler_wl_CXX='-Wl,'
14280 lt_prog_compiler_pic_CXX='-qpic'
14281 lt_prog_compiler_static_CXX='-qstaticlink'
14284 case `$CC -V 2>&1 | sed 5q` in
14287 lt_prog_compiler_pic_CXX='-KPIC'
14288 lt_prog_compiler_static_CXX='-Bstatic'
14289 lt_prog_compiler_wl_CXX='-Qoption ld '
14300 case $cc_basename in
14302 lt_prog_compiler_pic_CXX='-W c,exportall'
14311 # QNX uses GNU C++, but need to define -shared option too, otherwise
14312 # it will coredump.
14313 lt_prog_compiler_pic_CXX='-fPIC -shared'
14315 osf3* | osf4* | osf5*)
14316 case $cc_basename in
14318 lt_prog_compiler_wl_CXX='--backend -Wl,'
14321 # Rational C++ 2.4.1
14322 lt_prog_compiler_pic_CXX='-pic'
14325 # Digital/Compaq C++
14326 lt_prog_compiler_wl_CXX='-Wl,'
14327 # Make sure the PIC flag is empty. It appears that all Alpha
14328 # Linux and Compaq Tru64 Unix objects are PIC.
14329 lt_prog_compiler_pic_CXX=
14330 lt_prog_compiler_static_CXX='-non_shared'
14339 case $cc_basename in
14341 # Sun C++ 4.2, 5.x and Centerline C++
14342 lt_prog_compiler_pic_CXX='-KPIC'
14343 lt_prog_compiler_static_CXX='-Bstatic'
14344 lt_prog_compiler_wl_CXX='-Qoption ld '
14347 # Green Hills C++ Compiler
14348 lt_prog_compiler_pic_CXX='-PIC'
14355 case $cc_basename in
14358 lt_prog_compiler_pic_CXX='-pic'
14359 lt_prog_compiler_static_CXX='-Bstatic'
14363 lt_prog_compiler_pic_CXX='-pic'
14369 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14370 case $cc_basename in
14372 lt_prog_compiler_wl_CXX='-Wl,'
14373 lt_prog_compiler_pic_CXX='-KPIC'
14374 lt_prog_compiler_static_CXX='-Bstatic'
14379 case $cc_basename in
14381 # NonStop-UX NCC 3.20
14382 lt_prog_compiler_pic_CXX='-KPIC'
14391 lt_prog_compiler_can_build_shared_CXX=no
14397 # For platforms which do not support PIC, -DPIC is meaningless:
14399 lt_prog_compiler_pic_CXX=
14402 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
14406 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
14411 # Check to make sure the PIC flag actually works.
14413 if test -n "$lt_prog_compiler_pic_CXX"; then
14414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14415 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14416 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
14417 $as_echo_n "(cached) " >&6
14419 lt_cv_prog_compiler_pic_works_CXX=no
14420 ac_outfile=conftest.$ac_objext
14421 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14422 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14423 # Insert the option either (1) after the last *FLAGS variable, or
14424 # (2) before a word containing "conftest.", or (3) at the end.
14425 # Note that $ac_compile itself does not contain backslashes and begins
14426 # with a dollar sign (not a hyphen), so the echo should work correctly.
14427 # The option is referenced via a variable to avoid confusing sed.
14428 lt_compile=`echo "$ac_compile" | $SED \
14429 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14430 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14431 -e 's:$: $lt_compiler_flag:'`
14432 (eval echo "\"\$as_me:14432: $lt_compile\"" >&5)
14433 (eval "$lt_compile" 2>conftest.err)
14435 cat conftest.err >&5
14436 echo "$as_me:14436: \$? = $ac_status" >&5
14437 if (exit $ac_status) && test -s "$ac_outfile"; then
14438 # The compiler can only warn and ignore the option if not recognized
14439 # So say no if there are warnings other than the usual output.
14440 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14441 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14442 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14443 lt_cv_prog_compiler_pic_works_CXX=yes
14449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14450 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14452 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14453 case $lt_prog_compiler_pic_CXX in
14455 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14458 lt_prog_compiler_pic_CXX=
14459 lt_prog_compiler_can_build_shared_CXX=no
14467 # Check to make sure the static flag actually works.
14469 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14471 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14472 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
14473 $as_echo_n "(cached) " >&6
14475 lt_cv_prog_compiler_static_works_CXX=no
14476 save_LDFLAGS="$LDFLAGS"
14477 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14478 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14479 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14480 # The linker can only warn and ignore the option if not recognized
14481 # So say no if there are warnings
14482 if test -s conftest.err; then
14483 # Append any errors to the config.log.
14484 cat conftest.err 1>&5
14485 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14486 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14487 if diff conftest.exp conftest.er2 >/dev/null; then
14488 lt_cv_prog_compiler_static_works_CXX=yes
14491 lt_cv_prog_compiler_static_works_CXX=yes
14495 LDFLAGS="$save_LDFLAGS"
14498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14499 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14501 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14504 lt_prog_compiler_static_CXX=
14510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14511 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14512 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
14513 $as_echo_n "(cached) " >&6
14515 lt_cv_prog_compiler_c_o_CXX=no
14516 $RM -r conftest 2>/dev/null
14520 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14522 lt_compiler_flag="-o out/conftest2.$ac_objext"
14523 # Insert the option either (1) after the last *FLAGS variable, or
14524 # (2) before a word containing "conftest.", or (3) at the end.
14525 # Note that $ac_compile itself does not contain backslashes and begins
14526 # with a dollar sign (not a hyphen), so the echo should work correctly.
14527 lt_compile=`echo "$ac_compile" | $SED \
14528 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14529 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14530 -e 's:$: $lt_compiler_flag:'`
14531 (eval echo "\"\$as_me:14531: $lt_compile\"" >&5)
14532 (eval "$lt_compile" 2>out/conftest.err)
14534 cat out/conftest.err >&5
14535 echo "$as_me:14535: \$? = $ac_status" >&5
14536 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14538 # The compiler can only warn and ignore the option if not recognized
14539 # So say no if there are warnings
14540 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14541 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14542 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14543 lt_cv_prog_compiler_c_o_CXX=yes
14548 # SGI C++ compiler will create directory out/ii_files/ for
14549 # template instantiation
14550 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14551 $RM out/* && rmdir out
14557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14558 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14563 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14564 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
14565 $as_echo_n "(cached) " >&6
14567 lt_cv_prog_compiler_c_o_CXX=no
14568 $RM -r conftest 2>/dev/null
14572 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14574 lt_compiler_flag="-o out/conftest2.$ac_objext"
14575 # Insert the option either (1) after the last *FLAGS variable, or
14576 # (2) before a word containing "conftest.", or (3) at the end.
14577 # Note that $ac_compile itself does not contain backslashes and begins
14578 # with a dollar sign (not a hyphen), so the echo should work correctly.
14579 lt_compile=`echo "$ac_compile" | $SED \
14580 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14581 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14582 -e 's:$: $lt_compiler_flag:'`
14583 (eval echo "\"\$as_me:14583: $lt_compile\"" >&5)
14584 (eval "$lt_compile" 2>out/conftest.err)
14586 cat out/conftest.err >&5
14587 echo "$as_me:14587: \$? = $ac_status" >&5
14588 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14590 # The compiler can only warn and ignore the option if not recognized
14591 # So say no if there are warnings
14592 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14593 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14594 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14595 lt_cv_prog_compiler_c_o_CXX=yes
14600 # SGI C++ compiler will create directory out/ii_files/ for
14601 # template instantiation
14602 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14603 $RM out/* && rmdir out
14609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14610 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14615 hard_links="nottested"
14616 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14617 # do not overwrite the value of need_locks provided by the user
14618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14619 $as_echo_n "checking if we can lock with hard links... " >&6; }
14622 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14624 ln conftest.a conftest.b 2>&5 || hard_links=no
14625 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14627 $as_echo "$hard_links" >&6; }
14628 if test "$hard_links" = no; then
14629 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14630 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14640 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14642 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14645 # If we're using GNU nm, then we don't want the "-C" option.
14646 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14647 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14648 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'
14650 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'
14654 export_symbols_cmds_CXX="$ltdll_cmds"
14656 cygwin* | mingw* | cegcc*)
14657 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'
14660 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14663 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14666 $as_echo "$ld_shlibs_CXX" >&6; }
14667 test "$ld_shlibs_CXX" = no && can_build_shared=no
14669 with_gnu_ld_CXX=$with_gnu_ld
14677 # Do we need to explicitly link libc?
14679 case "x$archive_cmds_need_lc_CXX" in
14681 # Assume -lc should be added
14682 archive_cmds_need_lc_CXX=yes
14684 if test "$enable_shared" = yes && test "$GCC" = yes; then
14685 case $archive_cmds_CXX in
14687 # FIXME: we may have to deal with multi-command sequences.
14690 # Test whether the compiler implicitly links with -lc since on some
14691 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14692 # to ld, don't add -lc before -lgcc.
14693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14694 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14696 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14698 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14699 (eval $ac_compile) 2>&5
14701 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14702 test $ac_status = 0; } 2>conftest.err; then
14705 libobjs=conftest.$ac_objext
14707 wl=$lt_prog_compiler_wl_CXX
14708 pic_flag=$lt_prog_compiler_pic_CXX
14714 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14715 allow_undefined_flag_CXX=
14716 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14717 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14719 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14720 test $ac_status = 0; }
14722 archive_cmds_need_lc_CXX=no
14724 archive_cmds_need_lc_CXX=yes
14726 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14728 cat conftest.err 1>&5
14731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
14732 $as_echo "$archive_cmds_need_lc_CXX" >&6; }
14802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14803 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14805 library_names_spec=
14806 libname_spec='lib$name'
14810 postuninstall_cmds=
14814 shlibpath_overrides_runpath=unknown
14816 dynamic_linker="$host_os ld.so"
14817 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14818 need_lib_prefix=unknown
14819 hardcode_into_libs=no
14821 # when you set need_version to no, make sure it does not cause -set_version
14822 # flags to be left without arguments
14823 need_version=unknown
14828 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14829 shlibpath_var=LIBPATH
14831 # AIX 3 has no versioning support, so we append a major version to the name.
14832 soname_spec='${libname}${release}${shared_ext}$major'
14839 hardcode_into_libs=yes
14840 if test "$host_cpu" = ia64; then
14841 # AIX 5 supports IA64
14842 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14843 shlibpath_var=LD_LIBRARY_PATH
14845 # With GCC up to 2.95.x, collect2 would create an import file
14846 # for dependence libraries. The import file would start with
14847 # the line `#! .'. This would cause the generated library to
14848 # depend on `.', always an invalid library. This was fixed in
14849 # development snapshots of GCC prior to 3.0.
14851 aix4 | aix4.[01] | aix4.[01].*)
14852 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14854 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14857 can_build_shared=no
14861 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14862 # soname into executable. Probably we can add versioning support to
14863 # collect2, so additional links can be useful in future.
14864 if test "$aix_use_runtimelinking" = yes; then
14865 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14866 # instead of lib<name>.a to let people know that these are not
14867 # typical AIX shared libraries.
14868 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14870 # We preserve .a as extension for shared libraries through AIX4.2
14871 # and later when we are not doing run time linking.
14872 library_names_spec='${libname}${release}.a $libname.a'
14873 soname_spec='${libname}${release}${shared_ext}$major'
14875 shlibpath_var=LIBPATH
14882 # Since July 2007 AmigaOS4 officially supports .so libraries.
14883 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14884 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14887 library_names_spec='$libname.ixlibrary $libname.a'
14888 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14889 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'
14895 library_names_spec='${libname}${shared_ext}'
14896 dynamic_linker="$host_os ld.so"
14897 shlibpath_var=LIBRARY_PATH
14903 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14904 soname_spec='${libname}${release}${shared_ext}$major'
14905 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14906 shlibpath_var=LD_LIBRARY_PATH
14907 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14908 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14909 # the default ld.so.conf also contains /usr/contrib/lib and
14910 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14911 # libtool to hard-code these into programs
14914 cygwin* | mingw* | pw32* | cegcc*)
14915 version_type=windows
14920 case $GCC,$host_os in
14921 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14922 library_names_spec='$libname.dll.a'
14923 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14924 postinstall_cmds='base_file=`basename \${file}`~
14925 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14926 dldir=$destdir/`dirname \$dlpath`~
14927 test -d \$dldir || mkdir -p \$dldir~
14928 $install_prog $dir/$dlname \$dldir/$dlname~
14929 chmod a+x \$dldir/$dlname~
14930 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14931 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14933 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14934 dlpath=$dir/\$dldll~
14936 shlibpath_overrides_runpath=yes
14940 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14941 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14942 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14945 # MinGW DLLs use traditional 'lib' prefix
14946 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14947 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14948 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14949 # It is most probably a Windows format PATH printed by
14950 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14951 # path with ; separators, and with drive letters. We can handle the
14952 # drive letters (cygwin fileutils understands them), so leave them,
14953 # especially as we might pass files found there to a mingw objdump,
14954 # which wouldn't understand a cygwinified path. Ahh.
14955 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14957 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14961 # pw32 DLLs use 'pw' prefix rather than 'lib'
14962 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14968 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14971 dynamic_linker='Win32 ld.exe'
14972 # FIXME: first we should search . and the directory the executable is in
14976 darwin* | rhapsody*)
14977 dynamic_linker="$host_os dyld"
14978 version_type=darwin
14981 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14982 soname_spec='${libname}${release}${major}$shared_ext'
14983 shlibpath_overrides_runpath=yes
14984 shlibpath_var=DYLD_LIBRARY_PATH
14985 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14987 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14994 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14995 soname_spec='${libname}${release}${shared_ext}$major'
14996 shlibpath_var=LD_LIBRARY_PATH
15003 freebsd* | dragonfly*)
15004 # DragonFly does not have aout. When/if they implement a new
15005 # versioning mechanism, adjust this.
15006 if test -x /usr/bin/objformat; then
15007 objformat=`/usr/bin/objformat`
15010 freebsd[123]*) objformat=aout ;;
15011 *) objformat=elf ;;
15014 version_type=freebsd-$objformat
15015 case $version_type in
15017 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15022 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15026 shlibpath_var=LD_LIBRARY_PATH
15029 shlibpath_overrides_runpath=yes
15031 freebsd3.[01]* | freebsdelf3.[01]*)
15032 shlibpath_overrides_runpath=yes
15033 hardcode_into_libs=yes
15035 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15036 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15037 shlibpath_overrides_runpath=no
15038 hardcode_into_libs=yes
15040 *) # from 4.6 on, and DragonFly
15041 shlibpath_overrides_runpath=yes
15042 hardcode_into_libs=yes
15051 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15052 soname_spec='${libname}${release}${shared_ext}$major'
15053 shlibpath_var=LD_LIBRARY_PATH
15054 hardcode_into_libs=yes
15057 hpux9* | hpux10* | hpux11*)
15058 # Give a soname corresponding to the major version so that dld.sl refuses to
15059 # link against other versions.
15066 hardcode_into_libs=yes
15067 dynamic_linker="$host_os dld.so"
15068 shlibpath_var=LD_LIBRARY_PATH
15069 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15070 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15071 soname_spec='${libname}${release}${shared_ext}$major'
15072 if test "X$HPUX_IA64_MODE" = X32; then
15073 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15075 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15077 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15081 hardcode_into_libs=yes
15082 dynamic_linker="$host_os dld.sl"
15083 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15084 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15085 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15086 soname_spec='${libname}${release}${shared_ext}$major'
15087 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15088 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15092 dynamic_linker="$host_os dld.sl"
15093 shlibpath_var=SHLIB_PATH
15094 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15095 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15096 soname_spec='${libname}${release}${shared_ext}$major'
15099 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15100 postinstall_cmds='chmod 555 $lib'
15107 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15108 soname_spec='${libname}${release}${shared_ext}$major'
15109 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15110 shlibpath_var=LD_LIBRARY_PATH
15111 shlibpath_overrides_runpath=no
15112 hardcode_into_libs=yes
15115 irix5* | irix6* | nonstopux*)
15117 nonstopux*) version_type=nonstopux ;;
15119 if test "$lt_cv_prog_gnu_ld" = yes; then
15127 soname_spec='${libname}${release}${shared_ext}$major'
15128 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15130 irix5* | nonstopux*)
15131 libsuff= shlibsuff=
15134 case $LD in # libtool.m4 will add one of these switches to LD
15135 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15136 libsuff= shlibsuff= libmagic=32-bit;;
15137 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15138 libsuff=32 shlibsuff=N32 libmagic=N32;;
15139 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15140 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15141 *) libsuff= shlibsuff= libmagic=never-match;;
15145 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15146 shlibpath_overrides_runpath=no
15147 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15148 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15149 hardcode_into_libs=yes
15152 # No shared lib support for Linux oldld, aout, or coff.
15153 linux*oldld* | linux*aout* | linux*coff*)
15157 # This must be Linux ELF.
15158 linux* | k*bsd*-gnu)
15162 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15163 soname_spec='${libname}${release}${shared_ext}$major'
15164 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15165 shlibpath_var=LD_LIBRARY_PATH
15166 shlibpath_overrides_runpath=no
15167 # Some binutils ld are patched to set DT_RUNPATH
15168 save_LDFLAGS=$LDFLAGS
15169 save_libdir=$libdir
15170 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15171 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15173 /* end confdefs.h. */
15183 if ac_fn_cxx_try_link "$LINENO"; then :
15184 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15185 shlibpath_overrides_runpath=yes
15188 rm -f core conftest.err conftest.$ac_objext \
15189 conftest$ac_exeext conftest.$ac_ext
15190 LDFLAGS=$save_LDFLAGS
15191 libdir=$save_libdir
15193 # This implies no fast_install, which is unacceptable.
15194 # Some rework will be needed to allow for fast_install
15195 # before this can be enabled.
15196 hardcode_into_libs=yes
15198 # Append ld.so.conf contents to the search path
15199 if test -f /etc/ld.so.conf; then
15200 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' ' '`
15201 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15204 # We used to test for /lib/ld.so.1 and disable shared libraries on
15205 # powerpc, because MkLinux only supported shared libraries with the
15206 # GNU dynamic linker. Since this was broken with cross compilers,
15207 # most powerpc-linux boxes support dynamic linking these days and
15208 # people can always --disable-shared, the test was removed, and we
15209 # assume the GNU/Linux dynamic linker is in use.
15210 dynamic_linker='GNU/Linux ld.so'
15217 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15218 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15219 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15220 dynamic_linker='NetBSD (a.out) ld.so'
15222 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15223 soname_spec='${libname}${release}${shared_ext}$major'
15224 dynamic_linker='NetBSD ld.elf_so'
15226 shlibpath_var=LD_LIBRARY_PATH
15227 shlibpath_overrides_runpath=yes
15228 hardcode_into_libs=yes
15233 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15234 shlibpath_var=LD_LIBRARY_PATH
15235 shlibpath_overrides_runpath=yes
15242 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15243 soname_spec='${libname}${release}${shared_ext}$major'
15244 shlibpath_var=LD_LIBRARY_PATH
15245 shlibpath_overrides_runpath=no
15246 hardcode_into_libs=yes
15247 dynamic_linker='ldqnx.so'
15252 sys_lib_dlsearch_path_spec="/usr/lib"
15254 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15256 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15257 *) need_version=no ;;
15259 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15260 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15261 shlibpath_var=LD_LIBRARY_PATH
15262 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15264 openbsd2.[89] | openbsd2.[89].*)
15265 shlibpath_overrides_runpath=no
15268 shlibpath_overrides_runpath=yes
15272 shlibpath_overrides_runpath=yes
15277 libname_spec='$name'
15280 library_names_spec='$libname${shared_ext} $libname.a'
15281 dynamic_linker='OS/2 ld.exe'
15282 shlibpath_var=LIBPATH
15285 osf3* | osf4* | osf5*)
15289 soname_spec='${libname}${release}${shared_ext}$major'
15290 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15291 shlibpath_var=LD_LIBRARY_PATH
15292 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15293 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15304 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15305 soname_spec='${libname}${release}${shared_ext}$major'
15306 shlibpath_var=LD_LIBRARY_PATH
15307 shlibpath_overrides_runpath=yes
15308 hardcode_into_libs=yes
15309 # ldd complains unless libraries are executable
15310 postinstall_cmds='chmod +x $lib'
15315 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15316 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15317 shlibpath_var=LD_LIBRARY_PATH
15318 shlibpath_overrides_runpath=yes
15319 if test "$with_gnu_ld" = yes; then
15327 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15328 soname_spec='${libname}${release}${shared_ext}$major'
15329 shlibpath_var=LD_LIBRARY_PATH
15330 case $host_vendor in
15332 shlibpath_overrides_runpath=no
15334 runpath_var=LD_RUN_PATH
15342 shlibpath_overrides_runpath=no
15343 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15349 if test -d /usr/nec ;then
15351 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15352 soname_spec='$libname${shared_ext}.$major'
15353 shlibpath_var=LD_LIBRARY_PATH
15357 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15358 version_type=freebsd-elf
15361 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15362 soname_spec='${libname}${release}${shared_ext}$major'
15363 shlibpath_var=LD_LIBRARY_PATH
15364 shlibpath_overrides_runpath=yes
15365 hardcode_into_libs=yes
15366 if test "$with_gnu_ld" = yes; then
15367 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15369 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15372 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15376 sys_lib_dlsearch_path_spec='/usr/lib'
15380 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15384 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15385 shlibpath_var=LD_LIBRARY_PATH
15386 shlibpath_overrides_runpath=no
15387 hardcode_into_libs=yes
15392 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15393 soname_spec='${libname}${release}${shared_ext}$major'
15394 shlibpath_var=LD_LIBRARY_PATH
15401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15402 $as_echo "$dynamic_linker" >&6; }
15403 test "$dynamic_linker" = no && can_build_shared=no
15405 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15406 if test "$GCC" = yes; then
15407 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15410 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15411 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15413 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15414 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15453 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15454 hardcode_action_CXX=
15455 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15456 test -n "$runpath_var_CXX" ||
15457 test "X$hardcode_automatic_CXX" = "Xyes" ; then
15459 # We can hardcode non-existent directories.
15460 if test "$hardcode_direct_CXX" != no &&
15461 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15462 # have to relink, otherwise we might link with an installed library
15463 # when we should be linking with a yet-to-be-installed one
15464 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15465 test "$hardcode_minus_L_CXX" != no; then
15466 # Linking always hardcodes the temporary library directory.
15467 hardcode_action_CXX=relink
15469 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15470 hardcode_action_CXX=immediate
15473 # We cannot hardcode anything, or else we can only hardcode existing
15475 hardcode_action_CXX=unsupported
15477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15478 $as_echo "$hardcode_action_CXX" >&6; }
15480 if test "$hardcode_action_CXX" = relink ||
15481 test "$inherit_rpath_CXX" = yes; then
15482 # Fast installation is not supported
15483 enable_fast_install=no
15484 elif test "$shlibpath_overrides_runpath" = yes ||
15485 test "$enable_shared" = no; then
15486 # Fast installation is not necessary
15487 enable_fast_install=needless
15496 fi # test -n "$compiler"
15502 with_gnu_ld=$lt_save_with_gnu_ld
15503 lt_cv_path_LDCXX=$lt_cv_path_LD
15504 lt_cv_path_LD=$lt_save_path_LD
15505 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15506 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15507 fi # test "$_lt_caught_CXX_error" != yes
15510 ac_cpp='$CPP $CPPFLAGS'
15511 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15512 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15513 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15527 ac_config_commands="$ac_config_commands libtool"
15532 # Only expand once:
15537 if test x$use_libtool != xno; then
15538 DEFAULT_OBJECT_TYPE=".lo"
15539 DEFAULT_ARCHIVE_TYPE=".la"
15540 DEFAULT_SHARED_OBJECT_TYPE=".la"
15541 LIBTOOL="\$(LIBTOOL)"
15542 LIBTOOL_INSTALL_TARGET="libtool-install"
15543 LIBTOOL_UNINSTALL_TARGET="libtool-uninstall"
15544 LIBTOOL_CLEAN_TARGET="libtool-clean"
15545 QMAKE_LIBTOOL="${BUILD_DIR}/libtool"
15546 FD_PLUGIN_DIR="src/plugins/fd"
15549 DEFAULT_OBJECT_TYPE=".o"
15550 DEFAULT_ARCHIVE_TYPE=".a"
15551 DEFAULT_SHARED_OBJECT_TYPE=".so"
15552 LIBTOOL="# \$(LIBTOOL)"
15553 LIBTOOL_INSTALL_TARGET=""
15554 LIBTOOL_UNINSTALL_TARGET=""
15555 LIBTOOL_CLEAN_TARGET=""
15556 QMAKE_LIBTOOL="# ${BUILD_DIR}/libtool"
15571 # Check whether --enable-includes was given.
15572 if test "${enable_includes+set}" = set; then :
15573 enableval=$enable_includes;
15574 if test x$enableval = xyes; then
15575 install_includes=yes
15583 if test x$use_libtool != xno -a x$install_includes = xyes; then
15584 INCLUDE_INSTALL_TARGET="install-includes"
15585 INCLUDE_UNINSTALL_TARGET="uninstall-includes"
15587 INCLUDE_INSTALL_TARGET=""
15588 INCLUDE_UNINSTALL_TARGET=""
15596 *cygwin* ) CYGWIN=yes;;
15600 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
15606 HAVE_SUN_OS_FALSE='#'
15608 HAVE_SUN_OS_TRUE='#'
15611 $as_echo "#define HAVE_SUN_OS 1" >>confdefs.h
15618 HAVE_SUN_OS_FALSE='#'
15620 HAVE_SUN_OS_TRUE='#'
15625 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
15631 HAVE_OSF1_OS_FALSE='#'
15633 HAVE_OSF1_OS_TRUE='#'
15634 HAVE_OSF1_OS_FALSE=
15636 $as_echo "#define HAVE_OSF1_OS 1" >>confdefs.h
15643 HAVE_OSF1_OS_FALSE='#'
15645 HAVE_OSF1_OS_TRUE='#'
15646 HAVE_OSF1_OS_FALSE=
15650 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
15656 HAVE_AIX_OS_FALSE='#'
15658 HAVE_AIX_OS_TRUE='#'
15661 $as_echo "#define HAVE_AIX_OS 1" >>confdefs.h
15668 HAVE_AIX_OS_FALSE='#'
15670 HAVE_AIX_OS_TRUE='#'
15675 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
15681 HAVE_HPUX_OS_FALSE='#'
15683 HAVE_HPUX_OS_TRUE='#'
15684 HAVE_HPUX_OS_FALSE=
15686 $as_echo "#define HAVE_HPUX_OS 1" >>confdefs.h
15693 HAVE_HPUX_OS_FALSE='#'
15695 HAVE_HPUX_OS_TRUE='#'
15696 HAVE_HPUX_OS_FALSE=
15700 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
15705 HAVE_LINUX_OS_TRUE=
15706 HAVE_LINUX_OS_FALSE='#'
15708 HAVE_LINUX_OS_TRUE='#'
15709 HAVE_LINUX_OS_FALSE=
15711 $as_echo "#define HAVE_LINUX_OS 1" >>confdefs.h
15717 HAVE_LINUX_OS_TRUE=
15718 HAVE_LINUX_OS_FALSE='#'
15720 HAVE_LINUX_OS_TRUE='#'
15721 HAVE_LINUX_OS_FALSE=
15725 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
15730 HAVE_FREEBSD_OS_TRUE=
15731 HAVE_FREEBSD_OS_FALSE='#'
15733 HAVE_FREEBSD_OS_TRUE='#'
15734 HAVE_FREEBSD_OS_FALSE=
15736 $as_echo "#define HAVE_FREEBSD_OS 1" >>confdefs.h
15742 HAVE_FREEBSD_OS_TRUE=
15743 HAVE_FREEBSD_OS_FALSE='#'
15745 HAVE_FREEBSD_OS_TRUE='#'
15746 HAVE_FREEBSD_OS_FALSE=
15750 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
15755 HAVE_NETBSD_OS_TRUE=
15756 HAVE_NETBSD_OS_FALSE='#'
15758 HAVE_NETBSD_OS_TRUE='#'
15759 HAVE_NETBSD_OS_FALSE=
15761 $as_echo "#define HAVE_NETBSD_OS 1" >>confdefs.h
15767 HAVE_NETBSD_OS_TRUE=
15768 HAVE_NETBSD_OS_FALSE='#'
15770 HAVE_NETBSD_OS_TRUE='#'
15771 HAVE_NETBSD_OS_FALSE=
15775 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
15780 HAVE_OPENBSD_OS_TRUE=
15781 HAVE_OPENBSD_OS_FALSE='#'
15783 HAVE_OPENBSD_OS_TRUE='#'
15784 HAVE_OPENBSD_OS_FALSE=
15786 $as_echo "#define HAVE_OPENBSD_OS 1" >>confdefs.h
15792 HAVE_OPENBSD_OS_TRUE=
15793 HAVE_OPENBSD_OS_FALSE='#'
15795 HAVE_OPENBSD_OS_TRUE='#'
15796 HAVE_OPENBSD_OS_FALSE=
15800 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
15806 HAVE_BSDI_OS_FALSE='#'
15808 HAVE_BSDI_OS_TRUE='#'
15809 HAVE_BSDI_OS_FALSE=
15811 $as_echo "#define HAVE_BSDI_OS 1" >>confdefs.h
15818 HAVE_BSDI_OS_FALSE='#'
15820 HAVE_BSDI_OS_TRUE='#'
15821 HAVE_BSDI_OS_FALSE=
15825 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
15831 HAVE_SGI_OS_FALSE='#'
15833 HAVE_SGI_OS_TRUE='#'
15836 $as_echo "#define HAVE_SGI_OS 1" >>confdefs.h
15843 HAVE_SGI_OS_FALSE='#'
15845 HAVE_SGI_OS_TRUE='#'
15850 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX -o x`uname -s` = xIRIX64
15856 HAVE_IRIX_OS_FALSE='#'
15858 HAVE_IRIX_OS_TRUE='#'
15859 HAVE_IRIX_OS_FALSE=
15861 $as_echo "#define HAVE_IRIX_OS 1" >>confdefs.h
15868 HAVE_IRIX_OS_FALSE='#'
15870 HAVE_IRIX_OS_TRUE='#'
15871 HAVE_IRIX_OS_FALSE=
15875 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
15880 HAVE_DARWIN_OS_TRUE=
15881 HAVE_DARWIN_OS_FALSE='#'
15883 HAVE_DARWIN_OS_TRUE='#'
15884 HAVE_DARWIN_OS_FALSE=
15886 $as_echo "#define HAVE_DARWIN_OS 1" >>confdefs.h
15892 HAVE_DARWIN_OS_TRUE=
15893 HAVE_DARWIN_OS_FALSE='#'
15895 HAVE_DARWIN_OS_TRUE='#'
15896 HAVE_DARWIN_OS_FALSE=
15901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Operating System Distribution" >&5
15902 $as_echo_n "checking for Operating System Distribution... " >&6; }
15903 if test "x$DISTNAME" != "x"
15905 echo "distname set to $DISTNAME"
15906 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
15909 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
15912 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
15915 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
15918 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
15921 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
15924 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
15927 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
15930 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
15933 elif test -f /etc/SuSE-release
15936 elif test -d /etc/SuSEconfig
15939 elif test -f /etc/mandrake-release
15942 elif test -f /etc/whitebox-release
15945 elif test -f /etc/redhat-release
15948 elif test -f /etc/gentoo-release
15951 elif test -f /etc/debian_version
15954 elif test -f /etc/slackware-version
15957 elif test x$host_vendor = xapple
15960 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
15963 elif test -f /etc/engarde-version
15966 elif test -f /etc/arch-release
15969 elif test "$CYGWIN" = yes
15972 $as_echo "#define HAVE_CYGWIN 1" >>confdefs.h
15977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
15978 $as_echo "done" >&6; }
15981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
15982 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
15984 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
15985 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
15986 $as_echo_n "(cached) " >&6
15988 cat >conftest.make <<\_ACEOF
15991 @echo '@@@%%%=$(MAKE)=@@@%%%'
15993 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
15994 case `${MAKE-make} -f conftest.make 2>/dev/null` in
15995 *@@@%%%=?*=@@@%%%*)
15996 eval ac_cv_prog_make_${ac_make}_set=yes;;
15998 eval ac_cv_prog_make_${ac_make}_set=no;;
16000 rm -f conftest.make
16002 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
16003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16004 $as_echo "yes" >&6; }
16007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16008 $as_echo "no" >&6; }
16009 SET_MAKE="MAKE=${MAKE-make}"
16015 if test -n "$ac_aux_dir"; then
16016 case "$ac_aux_dir" in
16017 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
16018 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
16021 if test -z "$MKINSTALLDIRS"; then
16022 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
16027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
16028 $as_echo_n "checking whether NLS is requested... " >&6; }
16029 # Check whether --enable-nls was given.
16030 if test "${enable_nls+set}" = set; then :
16031 enableval=$enable_nls; USE_NLS=$enableval
16036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
16037 $as_echo "$USE_NLS" >&6; }
16044 # Prepare PATH_SEPARATOR.
16045 # The user is always right.
16046 if test "${PATH_SEPARATOR+set}" != set; then
16047 echo "#! /bin/sh" >conf$$.sh
16048 echo "exit 0" >>conf$$.sh
16050 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16058 # Find out how to test for executable files. Don't use a zero-byte file,
16059 # as systems may use methods other than mode bits to determine executability.
16060 cat >conf$$.file <<_ASEOF
16064 chmod +x conf$$.file
16065 if test -x conf$$.file >/dev/null 2>&1; then
16066 ac_executable_p="test -x"
16068 ac_executable_p="test -f"
16072 # Extract the first word of "msgfmt", so it can be a program name with args.
16073 set dummy msgfmt; ac_word=$2
16074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16075 $as_echo_n "checking for $ac_word... " >&6; }
16076 if test "${ac_cv_path_MSGFMT+set}" = set; then :
16077 $as_echo_n "(cached) " >&6
16081 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
16084 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16085 for ac_dir in $PATH; do
16087 test -z "$ac_dir" && ac_dir=.
16088 for ac_exec_ext in '' $ac_executable_extensions; do
16089 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16090 echo "$as_me: trying $ac_dir/$ac_word..." >&5
16091 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
16092 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16093 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
16100 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
16104 MSGFMT="$ac_cv_path_MSGFMT"
16105 if test "$MSGFMT" != ":"; then
16106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
16107 $as_echo "$MSGFMT" >&6; }
16109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16110 $as_echo "no" >&6; }
16113 # Extract the first word of "gmsgfmt", so it can be a program name with args.
16114 set dummy gmsgfmt; ac_word=$2
16115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16116 $as_echo_n "checking for $ac_word... " >&6; }
16117 if test "${ac_cv_path_GMSGFMT+set}" = set; then :
16118 $as_echo_n "(cached) " >&6
16122 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
16125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16126 for as_dir in $PATH
16129 test -z "$as_dir" && as_dir=.
16130 for ac_exec_ext in '' $ac_executable_extensions; do
16131 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16132 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
16133 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16140 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
16144 GMSGFMT=$ac_cv_path_GMSGFMT
16145 if test -n "$GMSGFMT"; then
16146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
16147 $as_echo "$GMSGFMT" >&6; }
16149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16150 $as_echo "no" >&6; }
16156 # Prepare PATH_SEPARATOR.
16157 # The user is always right.
16158 if test "${PATH_SEPARATOR+set}" != set; then
16159 echo "#! /bin/sh" >conf$$.sh
16160 echo "exit 0" >>conf$$.sh
16162 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16170 # Find out how to test for executable files. Don't use a zero-byte file,
16171 # as systems may use methods other than mode bits to determine executability.
16172 cat >conf$$.file <<_ASEOF
16176 chmod +x conf$$.file
16177 if test -x conf$$.file >/dev/null 2>&1; then
16178 ac_executable_p="test -x"
16180 ac_executable_p="test -f"
16184 # Extract the first word of "xgettext", so it can be a program name with args.
16185 set dummy xgettext; ac_word=$2
16186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16187 $as_echo_n "checking for $ac_word... " >&6; }
16188 if test "${ac_cv_path_XGETTEXT+set}" = set; then :
16189 $as_echo_n "(cached) " >&6
16191 case "$XGETTEXT" in
16193 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
16196 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16197 for ac_dir in $PATH; do
16199 test -z "$ac_dir" && ac_dir=.
16200 for ac_exec_ext in '' $ac_executable_extensions; do
16201 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16202 echo "$as_me: trying $ac_dir/$ac_word..." >&5
16203 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
16204 (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
16205 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
16212 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
16216 XGETTEXT="$ac_cv_path_XGETTEXT"
16217 if test "$XGETTEXT" != ":"; then
16218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
16219 $as_echo "$XGETTEXT" >&6; }
16221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16222 $as_echo "no" >&6; }
16228 # Prepare PATH_SEPARATOR.
16229 # The user is always right.
16230 if test "${PATH_SEPARATOR+set}" != set; then
16231 echo "#! /bin/sh" >conf$$.sh
16232 echo "exit 0" >>conf$$.sh
16234 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16242 # Find out how to test for executable files. Don't use a zero-byte file,
16243 # as systems may use methods other than mode bits to determine executability.
16244 cat >conf$$.file <<_ASEOF
16248 chmod +x conf$$.file
16249 if test -x conf$$.file >/dev/null 2>&1; then
16250 ac_executable_p="test -x"
16252 ac_executable_p="test -f"
16256 # Extract the first word of "msgmerge", so it can be a program name with args.
16257 set dummy msgmerge; ac_word=$2
16258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16259 $as_echo_n "checking for $ac_word... " >&6; }
16260 if test "${ac_cv_path_MSGMERGE+set}" = set; then :
16261 $as_echo_n "(cached) " >&6
16263 case "$MSGMERGE" in
16265 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
16268 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16269 for ac_dir in $PATH; do
16271 test -z "$ac_dir" && ac_dir=.
16272 for ac_exec_ext in '' $ac_executable_extensions; do
16273 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16274 echo "$as_me: trying $ac_dir/$ac_word..." >&5
16275 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
16276 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
16283 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
16287 MSGMERGE="$ac_cv_path_MSGMERGE"
16288 if test "$MSGMERGE" != ":"; then
16289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
16290 $as_echo "$MSGMERGE" >&6; }
16292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16293 $as_echo "no" >&6; }
16297 if test "$GMSGFMT" != ":"; then
16298 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
16299 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16302 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
16303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
16304 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
16309 if test "$XGETTEXT" != ":"; then
16310 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
16311 (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
16314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
16315 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
16321 ac_config_commands="$ac_config_commands default-1"
16325 if test "X$prefix" = "XNONE"; then
16326 acl_final_prefix="$ac_default_prefix"
16328 acl_final_prefix="$prefix"
16330 if test "X$exec_prefix" = "XNONE"; then
16331 acl_final_exec_prefix='${prefix}'
16333 acl_final_exec_prefix="$exec_prefix"
16335 acl_save_prefix="$prefix"
16336 prefix="$acl_final_prefix"
16337 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
16338 prefix="$acl_save_prefix"
16341 # Check whether --with-gnu-ld was given.
16342 if test "${with_gnu_ld+set}" = set; then :
16343 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
16348 # Prepare PATH_SEPARATOR.
16349 # The user is always right.
16350 if test "${PATH_SEPARATOR+set}" != set; then
16351 echo "#! /bin/sh" >conf$$.sh
16352 echo "exit 0" >>conf$$.sh
16354 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16362 if test "$GCC" = yes; then
16363 # Check if gcc -print-prog-name=ld gives a path.
16364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
16365 $as_echo_n "checking for ld used by GCC... " >&6; }
16368 # gcc leaves a trailing carriage return which upsets mingw
16369 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16371 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16374 # Accept absolute paths.
16375 [\\/]* | [A-Za-z]:[\\/]*)
16376 re_direlt='/[^/][^/]*/\.\./'
16377 # Canonicalize the path of ld
16378 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
16379 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
16380 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
16382 test -z "$LD" && LD="$ac_prog"
16385 # If it fails, then pretend we aren't using GCC.
16389 # If it is relative, then search for the first ld in PATH.
16390 with_gnu_ld=unknown
16393 elif test "$with_gnu_ld" = yes; then
16394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
16395 $as_echo_n "checking for GNU ld... " >&6; }
16397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
16398 $as_echo_n "checking for non-GNU ld... " >&6; }
16400 if test "${acl_cv_path_LD+set}" = set; then :
16401 $as_echo_n "(cached) " >&6
16403 if test -z "$LD"; then
16404 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
16405 for ac_dir in $PATH; do
16406 test -z "$ac_dir" && ac_dir=.
16407 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16408 acl_cv_path_LD="$ac_dir/$ac_prog"
16409 # Check to see if the program is GNU ld. I'd rather use --version,
16410 # but apparently some GNU ld's only accept -v.
16411 # Break only if it was the GNU/non-GNU ld that we prefer.
16412 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
16413 *GNU* | *'with BFD'*)
16414 test "$with_gnu_ld" != no && break ;;
16416 test "$with_gnu_ld" != yes && break ;;
16422 acl_cv_path_LD="$LD" # Let the user override the test with a path.
16426 LD="$acl_cv_path_LD"
16427 if test -n "$LD"; then
16428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
16429 $as_echo "$LD" >&6; }
16431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16432 $as_echo "no" >&6; }
16434 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
16435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
16436 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
16437 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
16438 $as_echo_n "(cached) " >&6
16440 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
16441 case `$LD -v 2>&1 </dev/null` in
16442 *GNU* | *'with BFD'*)
16443 acl_cv_prog_gnu_ld=yes ;;
16445 acl_cv_prog_gnu_ld=no ;;
16448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
16449 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
16450 with_gnu_ld=$acl_cv_prog_gnu_ld
16455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
16456 $as_echo_n "checking for shared library run path origin... " >&6; }
16457 if test "${acl_cv_rpath+set}" = set; then :
16458 $as_echo_n "(cached) " >&6
16461 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
16462 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
16464 rm -f ./conftest.sh
16468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
16469 $as_echo "$acl_cv_rpath" >&6; }
16471 libext="$acl_cv_libext"
16472 shlibext="$acl_cv_shlibext"
16473 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
16474 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
16475 hardcode_direct="$acl_cv_hardcode_direct"
16476 hardcode_minus_L="$acl_cv_hardcode_minus_L"
16477 # Check whether --enable-rpath was given.
16478 if test "${enable_rpath+set}" = set; then :
16479 enableval=$enable_rpath; :
16493 acl_save_prefix="$prefix"
16494 prefix="$acl_final_prefix"
16495 acl_save_exec_prefix="$exec_prefix"
16496 exec_prefix="$acl_final_exec_prefix"
16498 eval additional_includedir=\"$includedir\"
16499 eval additional_libdir=\"$libdir\"
16501 exec_prefix="$acl_save_exec_prefix"
16502 prefix="$acl_save_prefix"
16505 # Check whether --with-libiconv-prefix was given.
16506 if test "${with_libiconv_prefix+set}" = set; then :
16507 withval=$with_libiconv_prefix;
16508 if test "X$withval" = "Xno"; then
16511 if test "X$withval" = "X"; then
16513 acl_save_prefix="$prefix"
16514 prefix="$acl_final_prefix"
16515 acl_save_exec_prefix="$exec_prefix"
16516 exec_prefix="$acl_final_exec_prefix"
16518 eval additional_includedir=\"$includedir\"
16519 eval additional_libdir=\"$libdir\"
16521 exec_prefix="$acl_save_exec_prefix"
16522 prefix="$acl_save_prefix"
16525 additional_includedir="$withval/include"
16526 additional_libdir="$withval/lib"
16537 names_already_handled=
16538 names_next_round='iconv '
16539 while test -n "$names_next_round"; do
16540 names_this_round="$names_next_round"
16542 for name in $names_this_round; do
16544 for n in $names_already_handled; do
16545 if test "$n" = "$name"; then
16546 already_handled=yes
16550 if test -z "$already_handled"; then
16551 names_already_handled="$names_already_handled $name"
16552 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
16553 eval value=\"\$HAVE_LIB$uppername\"
16554 if test -n "$value"; then
16555 if test "$value" = yes; then
16556 eval value=\"\$LIB$uppername\"
16557 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
16558 eval value=\"\$LTLIB$uppername\"
16559 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
16568 if test $use_additional = yes; then
16569 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
16570 found_dir="$additional_libdir"
16571 found_so="$additional_libdir/lib$name.$shlibext"
16572 if test -f "$additional_libdir/lib$name.la"; then
16573 found_la="$additional_libdir/lib$name.la"
16576 if test -f "$additional_libdir/lib$name.$libext"; then
16577 found_dir="$additional_libdir"
16578 found_a="$additional_libdir/lib$name.$libext"
16579 if test -f "$additional_libdir/lib$name.la"; then
16580 found_la="$additional_libdir/lib$name.la"
16585 if test "X$found_dir" = "X"; then
16586 for x in $LDFLAGS $LTLIBICONV; do
16588 acl_save_prefix="$prefix"
16589 prefix="$acl_final_prefix"
16590 acl_save_exec_prefix="$exec_prefix"
16591 exec_prefix="$acl_final_exec_prefix"
16593 exec_prefix="$acl_save_exec_prefix"
16594 prefix="$acl_save_prefix"
16598 dir=`echo "X$x" | sed -e 's/^X-L//'`
16599 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
16601 found_so="$dir/lib$name.$shlibext"
16602 if test -f "$dir/lib$name.la"; then
16603 found_la="$dir/lib$name.la"
16606 if test -f "$dir/lib$name.$libext"; then
16608 found_a="$dir/lib$name.$libext"
16609 if test -f "$dir/lib$name.la"; then
16610 found_la="$dir/lib$name.la"
16616 if test "X$found_dir" != "X"; then
16621 if test "X$found_dir" != "X"; then
16622 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
16623 if test "X$found_so" != "X"; then
16624 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
16625 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
16628 for x in $ltrpathdirs; do
16629 if test "X$x" = "X$found_dir"; then
16634 if test -z "$haveit"; then
16635 ltrpathdirs="$ltrpathdirs $found_dir"
16637 if test "$hardcode_direct" = yes; then
16638 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
16640 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
16641 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
16643 for x in $rpathdirs; do
16644 if test "X$x" = "X$found_dir"; then
16649 if test -z "$haveit"; then
16650 rpathdirs="$rpathdirs $found_dir"
16654 for x in $LDFLAGS $LIBICONV; do
16656 acl_save_prefix="$prefix"
16657 prefix="$acl_final_prefix"
16658 acl_save_exec_prefix="$exec_prefix"
16659 exec_prefix="$acl_final_exec_prefix"
16661 exec_prefix="$acl_save_exec_prefix"
16662 prefix="$acl_save_prefix"
16664 if test "X$x" = "X-L$found_dir"; then
16669 if test -z "$haveit"; then
16670 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
16672 if test "$hardcode_minus_L" != no; then
16673 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
16675 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
16681 if test "X$found_a" != "X"; then
16682 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
16684 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
16687 additional_includedir=
16688 case "$found_dir" in
16690 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
16691 additional_includedir="$basedir/include"
16694 if test "X$additional_includedir" != "X"; then
16695 if test "X$additional_includedir" != "X/usr/include"; then
16697 if test "X$additional_includedir" = "X/usr/local/include"; then
16698 if test -n "$GCC"; then
16700 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
16704 if test -z "$haveit"; then
16705 for x in $CPPFLAGS $INCICONV; do
16707 acl_save_prefix="$prefix"
16708 prefix="$acl_final_prefix"
16709 acl_save_exec_prefix="$exec_prefix"
16710 exec_prefix="$acl_final_exec_prefix"
16712 exec_prefix="$acl_save_exec_prefix"
16713 prefix="$acl_save_prefix"
16715 if test "X$x" = "X-I$additional_includedir"; then
16720 if test -z "$haveit"; then
16721 if test -d "$additional_includedir"; then
16722 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
16728 if test -n "$found_la"; then
16729 save_libdir="$libdir"
16730 case "$found_la" in
16731 */* | *\\*) . "$found_la" ;;
16732 *) . "./$found_la" ;;
16734 libdir="$save_libdir"
16735 for dep in $dependency_libs; do
16738 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
16739 if test "X$additional_libdir" != "X/usr/lib"; then
16741 if test "X$additional_libdir" = "X/usr/local/lib"; then
16742 if test -n "$GCC"; then
16744 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
16748 if test -z "$haveit"; then
16750 for x in $LDFLAGS $LIBICONV; do
16752 acl_save_prefix="$prefix"
16753 prefix="$acl_final_prefix"
16754 acl_save_exec_prefix="$exec_prefix"
16755 exec_prefix="$acl_final_exec_prefix"
16757 exec_prefix="$acl_save_exec_prefix"
16758 prefix="$acl_save_prefix"
16760 if test "X$x" = "X-L$additional_libdir"; then
16765 if test -z "$haveit"; then
16766 if test -d "$additional_libdir"; then
16767 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
16771 for x in $LDFLAGS $LTLIBICONV; do
16773 acl_save_prefix="$prefix"
16774 prefix="$acl_final_prefix"
16775 acl_save_exec_prefix="$exec_prefix"
16776 exec_prefix="$acl_final_exec_prefix"
16778 exec_prefix="$acl_save_exec_prefix"
16779 prefix="$acl_save_prefix"
16781 if test "X$x" = "X-L$additional_libdir"; then
16786 if test -z "$haveit"; then
16787 if test -d "$additional_libdir"; then
16788 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
16795 dir=`echo "X$dep" | sed -e 's/^X-R//'`
16796 if test "$enable_rpath" != no; then
16798 for x in $rpathdirs; do
16799 if test "X$x" = "X$dir"; then
16804 if test -z "$haveit"; then
16805 rpathdirs="$rpathdirs $dir"
16808 for x in $ltrpathdirs; do
16809 if test "X$x" = "X$dir"; then
16814 if test -z "$haveit"; then
16815 ltrpathdirs="$ltrpathdirs $dir"
16820 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
16823 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
16826 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
16827 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
16833 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
16834 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
16840 if test "X$rpathdirs" != "X"; then
16841 if test -n "$hardcode_libdir_separator"; then
16843 for found_dir in $rpathdirs; do
16844 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
16846 acl_save_libdir="$libdir"
16848 eval flag=\"$hardcode_libdir_flag_spec\"
16849 libdir="$acl_save_libdir"
16850 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
16852 for found_dir in $rpathdirs; do
16853 acl_save_libdir="$libdir"
16854 libdir="$found_dir"
16855 eval flag=\"$hardcode_libdir_flag_spec\"
16856 libdir="$acl_save_libdir"
16857 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
16861 if test "X$ltrpathdirs" != "X"; then
16862 for found_dir in $ltrpathdirs; do
16863 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
16884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
16885 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
16886 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then :
16887 $as_echo_n "(cached) " >&6
16889 gt_save_CPPFLAGS="$CPPFLAGS"
16890 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
16891 gt_save_LIBS="$LIBS"
16892 LIBS="$LIBS -framework CoreFoundation"
16893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16894 /* end confdefs.h. */
16895 #include <CFPreferences.h>
16899 CFPreferencesCopyAppValue(NULL, NULL)
16904 if ac_fn_c_try_link "$LINENO"; then :
16905 gt_cv_func_CFPreferencesCopyAppValue=yes
16907 gt_cv_func_CFPreferencesCopyAppValue=no
16909 rm -f core conftest.err conftest.$ac_objext \
16910 conftest$ac_exeext conftest.$ac_ext
16911 CPPFLAGS="$gt_save_CPPFLAGS"
16912 LIBS="$gt_save_LIBS"
16914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
16915 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
16916 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
16918 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
16921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
16922 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
16923 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then :
16924 $as_echo_n "(cached) " >&6
16926 gt_save_CPPFLAGS="$CPPFLAGS"
16927 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
16928 gt_save_LIBS="$LIBS"
16929 LIBS="$LIBS -framework CoreFoundation"
16930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16931 /* end confdefs.h. */
16932 #include <CFLocale.h>
16936 CFLocaleCopyCurrent();
16941 if ac_fn_c_try_link "$LINENO"; then :
16942 gt_cv_func_CFLocaleCopyCurrent=yes
16944 gt_cv_func_CFLocaleCopyCurrent=no
16946 rm -f core conftest.err conftest.$ac_objext \
16947 conftest$ac_exeext conftest.$ac_ext
16948 CPPFLAGS="$gt_save_CPPFLAGS"
16949 LIBS="$gt_save_LIBS"
16951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
16952 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
16953 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
16955 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
16959 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
16960 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
16966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
16967 $as_echo_n "checking whether NLS is requested... " >&6; }
16968 # Check whether --enable-nls was given.
16969 if test "${enable_nls+set}" = set; then :
16970 enableval=$enable_nls; USE_NLS=$enableval
16975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
16976 $as_echo "$USE_NLS" >&6; }
16985 if test "$USE_NLS" = "yes"; then
16986 gt_use_preinstalled_gnugettext=no
16993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
16994 $as_echo_n "checking for GNU gettext in libc... " >&6; }
16995 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then :
16996 $as_echo_n "(cached) " >&6
16998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16999 /* end confdefs.h. */
17000 #include <libintl.h>
17001 extern int _nl_msg_cat_cntr;
17002 extern int *_nl_domain_bindings;
17006 bindtextdomain ("", "");
17007 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
17012 if ac_fn_c_try_link "$LINENO"; then :
17013 gt_cv_func_gnugettext1_libc=yes
17015 gt_cv_func_gnugettext1_libc=no
17017 rm -f core conftest.err conftest.$ac_objext \
17018 conftest$ac_exeext conftest.$ac_ext
17020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5
17021 $as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
17023 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
17029 am_save_CPPFLAGS="$CPPFLAGS"
17031 for element in $INCICONV; do
17033 for x in $CPPFLAGS; do
17035 acl_save_prefix="$prefix"
17036 prefix="$acl_final_prefix"
17037 acl_save_exec_prefix="$exec_prefix"
17038 exec_prefix="$acl_final_exec_prefix"
17040 exec_prefix="$acl_save_exec_prefix"
17041 prefix="$acl_save_prefix"
17043 if test "X$x" = "X$element"; then
17048 if test -z "$haveit"; then
17049 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
17054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
17055 $as_echo_n "checking for iconv... " >&6; }
17056 if test "${am_cv_func_iconv+set}" = set; then :
17057 $as_echo_n "(cached) " >&6
17060 am_cv_func_iconv="no, consider installing GNU libiconv"
17062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17063 /* end confdefs.h. */
17064 #include <stdlib.h>
17069 iconv_t cd = iconv_open("","");
17070 iconv(cd,NULL,NULL,NULL,NULL);
17076 if ac_fn_c_try_link "$LINENO"; then :
17077 am_cv_func_iconv=yes
17079 rm -f core conftest.err conftest.$ac_objext \
17080 conftest$ac_exeext conftest.$ac_ext
17081 if test "$am_cv_func_iconv" != yes; then
17082 am_save_LIBS="$LIBS"
17083 LIBS="$LIBS $LIBICONV"
17084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17085 /* end confdefs.h. */
17086 #include <stdlib.h>
17091 iconv_t cd = iconv_open("","");
17092 iconv(cd,NULL,NULL,NULL,NULL);
17098 if ac_fn_c_try_link "$LINENO"; then :
17099 am_cv_lib_iconv=yes
17100 am_cv_func_iconv=yes
17102 rm -f core conftest.err conftest.$ac_objext \
17103 conftest$ac_exeext conftest.$ac_ext
17104 LIBS="$am_save_LIBS"
17108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
17109 $as_echo "$am_cv_func_iconv" >&6; }
17110 if test "$am_cv_func_iconv" = yes; then
17112 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
17115 if test "$am_cv_lib_iconv" = yes; then
17116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
17117 $as_echo_n "checking how to link with libiconv... " >&6; }
17118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
17119 $as_echo "$LIBICONV" >&6; }
17121 CPPFLAGS="$am_save_CPPFLAGS"
17133 acl_save_prefix="$prefix"
17134 prefix="$acl_final_prefix"
17135 acl_save_exec_prefix="$exec_prefix"
17136 exec_prefix="$acl_final_exec_prefix"
17138 eval additional_includedir=\"$includedir\"
17139 eval additional_libdir=\"$libdir\"
17141 exec_prefix="$acl_save_exec_prefix"
17142 prefix="$acl_save_prefix"
17145 # Check whether --with-libintl-prefix was given.
17146 if test "${with_libintl_prefix+set}" = set; then :
17147 withval=$with_libintl_prefix;
17148 if test "X$withval" = "Xno"; then
17151 if test "X$withval" = "X"; then
17153 acl_save_prefix="$prefix"
17154 prefix="$acl_final_prefix"
17155 acl_save_exec_prefix="$exec_prefix"
17156 exec_prefix="$acl_final_exec_prefix"
17158 eval additional_includedir=\"$includedir\"
17159 eval additional_libdir=\"$libdir\"
17161 exec_prefix="$acl_save_exec_prefix"
17162 prefix="$acl_save_prefix"
17165 additional_includedir="$withval/include"
17166 additional_libdir="$withval/lib"
17177 names_already_handled=
17178 names_next_round='intl '
17179 while test -n "$names_next_round"; do
17180 names_this_round="$names_next_round"
17182 for name in $names_this_round; do
17184 for n in $names_already_handled; do
17185 if test "$n" = "$name"; then
17186 already_handled=yes
17190 if test -z "$already_handled"; then
17191 names_already_handled="$names_already_handled $name"
17192 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
17193 eval value=\"\$HAVE_LIB$uppername\"
17194 if test -n "$value"; then
17195 if test "$value" = yes; then
17196 eval value=\"\$LIB$uppername\"
17197 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
17198 eval value=\"\$LTLIB$uppername\"
17199 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
17208 if test $use_additional = yes; then
17209 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
17210 found_dir="$additional_libdir"
17211 found_so="$additional_libdir/lib$name.$shlibext"
17212 if test -f "$additional_libdir/lib$name.la"; then
17213 found_la="$additional_libdir/lib$name.la"
17216 if test -f "$additional_libdir/lib$name.$libext"; then
17217 found_dir="$additional_libdir"
17218 found_a="$additional_libdir/lib$name.$libext"
17219 if test -f "$additional_libdir/lib$name.la"; then
17220 found_la="$additional_libdir/lib$name.la"
17225 if test "X$found_dir" = "X"; then
17226 for x in $LDFLAGS $LTLIBINTL; do
17228 acl_save_prefix="$prefix"
17229 prefix="$acl_final_prefix"
17230 acl_save_exec_prefix="$exec_prefix"
17231 exec_prefix="$acl_final_exec_prefix"
17233 exec_prefix="$acl_save_exec_prefix"
17234 prefix="$acl_save_prefix"
17238 dir=`echo "X$x" | sed -e 's/^X-L//'`
17239 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
17241 found_so="$dir/lib$name.$shlibext"
17242 if test -f "$dir/lib$name.la"; then
17243 found_la="$dir/lib$name.la"
17246 if test -f "$dir/lib$name.$libext"; then
17248 found_a="$dir/lib$name.$libext"
17249 if test -f "$dir/lib$name.la"; then
17250 found_la="$dir/lib$name.la"
17256 if test "X$found_dir" != "X"; then
17261 if test "X$found_dir" != "X"; then
17262 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
17263 if test "X$found_so" != "X"; then
17264 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
17265 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17268 for x in $ltrpathdirs; do
17269 if test "X$x" = "X$found_dir"; then
17274 if test -z "$haveit"; then
17275 ltrpathdirs="$ltrpathdirs $found_dir"
17277 if test "$hardcode_direct" = yes; then
17278 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17280 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
17281 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17283 for x in $rpathdirs; do
17284 if test "X$x" = "X$found_dir"; then
17289 if test -z "$haveit"; then
17290 rpathdirs="$rpathdirs $found_dir"
17294 for x in $LDFLAGS $LIBINTL; do
17296 acl_save_prefix="$prefix"
17297 prefix="$acl_final_prefix"
17298 acl_save_exec_prefix="$exec_prefix"
17299 exec_prefix="$acl_final_exec_prefix"
17301 exec_prefix="$acl_save_exec_prefix"
17302 prefix="$acl_save_prefix"
17304 if test "X$x" = "X-L$found_dir"; then
17309 if test -z "$haveit"; then
17310 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
17312 if test "$hardcode_minus_L" != no; then
17313 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17315 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
17321 if test "X$found_a" != "X"; then
17322 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
17324 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
17327 additional_includedir=
17328 case "$found_dir" in
17330 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
17331 additional_includedir="$basedir/include"
17334 if test "X$additional_includedir" != "X"; then
17335 if test "X$additional_includedir" != "X/usr/include"; then
17337 if test "X$additional_includedir" = "X/usr/local/include"; then
17338 if test -n "$GCC"; then
17340 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17344 if test -z "$haveit"; then
17345 for x in $CPPFLAGS $INCINTL; do
17347 acl_save_prefix="$prefix"
17348 prefix="$acl_final_prefix"
17349 acl_save_exec_prefix="$exec_prefix"
17350 exec_prefix="$acl_final_exec_prefix"
17352 exec_prefix="$acl_save_exec_prefix"
17353 prefix="$acl_save_prefix"
17355 if test "X$x" = "X-I$additional_includedir"; then
17360 if test -z "$haveit"; then
17361 if test -d "$additional_includedir"; then
17362 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
17368 if test -n "$found_la"; then
17369 save_libdir="$libdir"
17370 case "$found_la" in
17371 */* | *\\*) . "$found_la" ;;
17372 *) . "./$found_la" ;;
17374 libdir="$save_libdir"
17375 for dep in $dependency_libs; do
17378 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17379 if test "X$additional_libdir" != "X/usr/lib"; then
17381 if test "X$additional_libdir" = "X/usr/local/lib"; then
17382 if test -n "$GCC"; then
17384 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17388 if test -z "$haveit"; then
17390 for x in $LDFLAGS $LIBINTL; do
17392 acl_save_prefix="$prefix"
17393 prefix="$acl_final_prefix"
17394 acl_save_exec_prefix="$exec_prefix"
17395 exec_prefix="$acl_final_exec_prefix"
17397 exec_prefix="$acl_save_exec_prefix"
17398 prefix="$acl_save_prefix"
17400 if test "X$x" = "X-L$additional_libdir"; then
17405 if test -z "$haveit"; then
17406 if test -d "$additional_libdir"; then
17407 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
17411 for x in $LDFLAGS $LTLIBINTL; do
17413 acl_save_prefix="$prefix"
17414 prefix="$acl_final_prefix"
17415 acl_save_exec_prefix="$exec_prefix"
17416 exec_prefix="$acl_final_exec_prefix"
17418 exec_prefix="$acl_save_exec_prefix"
17419 prefix="$acl_save_prefix"
17421 if test "X$x" = "X-L$additional_libdir"; then
17426 if test -z "$haveit"; then
17427 if test -d "$additional_libdir"; then
17428 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
17435 dir=`echo "X$dep" | sed -e 's/^X-R//'`
17436 if test "$enable_rpath" != no; then
17438 for x in $rpathdirs; do
17439 if test "X$x" = "X$dir"; then
17444 if test -z "$haveit"; then
17445 rpathdirs="$rpathdirs $dir"
17448 for x in $ltrpathdirs; do
17449 if test "X$x" = "X$dir"; then
17454 if test -z "$haveit"; then
17455 ltrpathdirs="$ltrpathdirs $dir"
17460 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
17463 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
17466 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
17467 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
17473 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
17474 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
17480 if test "X$rpathdirs" != "X"; then
17481 if test -n "$hardcode_libdir_separator"; then
17483 for found_dir in $rpathdirs; do
17484 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
17486 acl_save_libdir="$libdir"
17488 eval flag=\"$hardcode_libdir_flag_spec\"
17489 libdir="$acl_save_libdir"
17490 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
17492 for found_dir in $rpathdirs; do
17493 acl_save_libdir="$libdir"
17494 libdir="$found_dir"
17495 eval flag=\"$hardcode_libdir_flag_spec\"
17496 libdir="$acl_save_libdir"
17497 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
17501 if test "X$ltrpathdirs" != "X"; then
17502 for found_dir in $ltrpathdirs; do
17503 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
17507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
17508 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
17509 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then :
17510 $as_echo_n "(cached) " >&6
17512 gt_save_CPPFLAGS="$CPPFLAGS"
17513 CPPFLAGS="$CPPFLAGS $INCINTL"
17514 gt_save_LIBS="$LIBS"
17515 LIBS="$LIBS $LIBINTL"
17516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17517 /* end confdefs.h. */
17518 #include <libintl.h>
17519 extern int _nl_msg_cat_cntr;
17524 const char *_nl_expand_alias (const char *);
17528 bindtextdomain ("", "");
17529 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
17534 if ac_fn_c_try_link "$LINENO"; then :
17535 gt_cv_func_gnugettext1_libintl=yes
17537 gt_cv_func_gnugettext1_libintl=no
17539 rm -f core conftest.err conftest.$ac_objext \
17540 conftest$ac_exeext conftest.$ac_ext
17541 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
17542 LIBS="$LIBS $LIBICONV"
17543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17544 /* end confdefs.h. */
17545 #include <libintl.h>
17546 extern int _nl_msg_cat_cntr;
17551 const char *_nl_expand_alias (const char *);
17555 bindtextdomain ("", "");
17556 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
17561 if ac_fn_c_try_link "$LINENO"; then :
17562 LIBINTL="$LIBINTL $LIBICONV"
17563 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
17564 gt_cv_func_gnugettext1_libintl=yes
17567 rm -f core conftest.err conftest.$ac_objext \
17568 conftest$ac_exeext conftest.$ac_ext
17570 CPPFLAGS="$gt_save_CPPFLAGS"
17571 LIBS="$gt_save_LIBS"
17573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5
17574 $as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
17577 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
17578 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
17579 && test "$PACKAGE" != gettext-runtime \
17580 && test "$PACKAGE" != gettext-tools; }; then
17581 gt_use_preinstalled_gnugettext=yes
17590 if test -n "$INTL_MACOSX_LIBS"; then
17591 if test "$gt_use_preinstalled_gnugettext" = "yes" \
17592 || test "$nls_cv_use_gnu_gettext" = "yes"; then
17593 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
17594 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
17598 if test "$gt_use_preinstalled_gnugettext" = "yes" \
17599 || test "$nls_cv_use_gnu_gettext" = "yes"; then
17601 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
17608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
17609 $as_echo_n "checking whether to use NLS... " >&6; }
17610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
17611 $as_echo "$USE_NLS" >&6; }
17612 if test "$USE_NLS" = "yes"; then
17613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
17614 $as_echo_n "checking where the gettext function comes from... " >&6; }
17615 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
17616 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
17617 gt_source="external libintl"
17622 gt_source="included intl directory"
17624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
17625 $as_echo "$gt_source" >&6; }
17628 if test "$USE_NLS" = "yes"; then
17630 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
17631 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
17632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
17633 $as_echo_n "checking how to link with libintl... " >&6; }
17634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
17635 $as_echo "$LIBINTL" >&6; }
17637 for element in $INCINTL; do
17639 for x in $CPPFLAGS; do
17641 acl_save_prefix="$prefix"
17642 prefix="$acl_final_prefix"
17643 acl_save_exec_prefix="$exec_prefix"
17644 exec_prefix="$acl_final_exec_prefix"
17646 exec_prefix="$acl_save_exec_prefix"
17647 prefix="$acl_save_prefix"
17649 if test "X$x" = "X$element"; then
17654 if test -z "$haveit"; then
17655 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
17662 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
17665 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
17674 INTLLIBS="$LIBINTL"
17682 os_name=`uname -s 2>/dev/null`
17683 if test x${prefix} = xNONE ; then
17684 if test `eval echo ${sysconfdir}` = NONE/etc ; then
17685 sysconfdir=/etc/bacula
17688 if test `eval echo ${libdir}` = NONE/lib ; then
17691 os_processor=`uname -p 2>/dev/null`
17692 case ${os_processor} in
17707 if test `eval echo ${includedir}` = NONE/include ; then
17708 includedir=/usr/include
17711 if test `eval echo ${datarootdir}` = NONE/share ; then
17712 datarootdir=/usr/share
17717 if test x${exec_prefix} = xNONE ; then
17718 exec_prefix=${prefix}
17721 sysconfdir=`eval echo ${sysconfdir}`
17722 datarootdir=`eval echo ${datarootdir}`
17723 docdir=`eval echo ${docdir}`
17724 htmldir=`eval echo ${htmldir}`
17725 libdir=`eval echo ${libdir}`
17726 includedir=`eval echo ${includedir}`
17727 localedir=`eval echo ${datarootdir}/locale`
17728 cat >>confdefs.h <<_ACEOF
17729 #define SYSCONFDIR "$sysconfdir"
17732 cat >>confdefs.h <<_ACEOF
17733 #define LOCALEDIR "$localedir"
17737 if test x$sbindir = x'${exec_prefix}/sbin' ; then
17738 sbindir=${exec_prefix}/sbin
17740 sbindir=`eval echo ${sbindir}`
17742 if test x$mandir = x'${prefix}/man' ; then
17743 mandir=/usr/share/man
17746 if test x$htmldir = x${docdir} ; then
17747 htmldir=`eval echo ${docdir}bacula/html`
17750 if test x$docdir = x'/usr/share/doc/' ; then
17751 docdir=`eval echo ${docdir}bacula`
17755 for ac_prog in msgfmt
17757 # Extract the first word of "$ac_prog", so it can be a program name with args.
17758 set dummy $ac_prog; ac_word=$2
17759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17760 $as_echo_n "checking for $ac_word... " >&6; }
17761 if test "${ac_cv_path_MSGFMT+set}" = set; then :
17762 $as_echo_n "(cached) " >&6
17766 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
17769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17770 for as_dir in $PATH
17773 test -z "$as_dir" && as_dir=.
17774 for ac_exec_ext in '' $ac_executable_extensions; do
17775 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17776 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
17777 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17787 MSGFMT=$ac_cv_path_MSGFMT
17788 if test -n "$MSGFMT"; then
17789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
17790 $as_echo "$MSGFMT" >&6; }
17792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17793 $as_echo "no" >&6; }
17797 test -n "$MSGFMT" && break
17799 test -n "$MSGFMT" || MSGFMT="no"
17801 if test "$MSGFMT" = "no"
17803 echo 'msgfmt program not found, disabling NLS !'
17805 USE_INCLUDED_LIBINTL=no
17808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2 or newer" >&5
17809 $as_echo_n "checking whether we are using the GNU C Library 2 or newer... " >&6; }
17810 if test "${ac_cv_gnu_library_2+set}" = set; then :
17811 $as_echo_n "(cached) " >&6
17813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17814 /* end confdefs.h. */
17816 #include <features.h>
17817 #ifdef __GNU_LIBRARY__
17818 #if (__GLIBC__ >= 2)
17824 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17825 $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
17826 ac_cv_gnu_library_2=yes
17828 ac_cv_gnu_library_2=no
17835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2" >&5
17836 $as_echo "$ac_cv_gnu_library_2" >&6; }
17838 GLIBC2="$ac_cv_gnu_library_2"
17841 if test -n "$ac_tool_prefix"; then
17842 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
17843 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
17844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17845 $as_echo_n "checking for $ac_word... " >&6; }
17846 if test "${ac_cv_prog_RANLIB+set}" = set; then :
17847 $as_echo_n "(cached) " >&6
17849 if test -n "$RANLIB"; then
17850 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
17852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17853 for as_dir in $PATH
17856 test -z "$as_dir" && as_dir=.
17857 for ac_exec_ext in '' $ac_executable_extensions; do
17858 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17859 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
17860 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17869 RANLIB=$ac_cv_prog_RANLIB
17870 if test -n "$RANLIB"; then
17871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
17872 $as_echo "$RANLIB" >&6; }
17874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17875 $as_echo "no" >&6; }
17880 if test -z "$ac_cv_prog_RANLIB"; then
17881 ac_ct_RANLIB=$RANLIB
17882 # Extract the first word of "ranlib", so it can be a program name with args.
17883 set dummy ranlib; ac_word=$2
17884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17885 $as_echo_n "checking for $ac_word... " >&6; }
17886 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
17887 $as_echo_n "(cached) " >&6
17889 if test -n "$ac_ct_RANLIB"; then
17890 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
17892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17893 for as_dir in $PATH
17896 test -z "$as_dir" && as_dir=.
17897 for ac_exec_ext in '' $ac_executable_extensions; do
17898 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17899 ac_cv_prog_ac_ct_RANLIB="ranlib"
17900 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17909 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
17910 if test -n "$ac_ct_RANLIB"; then
17911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
17912 $as_echo "$ac_ct_RANLIB" >&6; }
17914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17915 $as_echo "no" >&6; }
17918 if test "x$ac_ct_RANLIB" = x; then
17921 case $cross_compiling:$ac_tool_warned in
17923 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17924 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17925 ac_tool_warned=yes ;;
17927 RANLIB=$ac_ct_RANLIB
17930 RANLIB="$ac_cv_prog_RANLIB"
17934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strerror in -lcposix" >&5
17935 $as_echo_n "checking for strerror in -lcposix... " >&6; }
17936 if test "${ac_cv_lib_cposix_strerror+set}" = set; then :
17937 $as_echo_n "(cached) " >&6
17939 ac_check_lib_save_LIBS=$LIBS
17940 LIBS="-lcposix $LIBS"
17941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17942 /* end confdefs.h. */
17944 /* Override any GCC internal prototype to avoid an error.
17945 Use char because int might match the return type of a GCC
17946 builtin and then its argument prototype would still apply. */
17954 return strerror ();
17959 if ac_fn_c_try_link "$LINENO"; then :
17960 ac_cv_lib_cposix_strerror=yes
17962 ac_cv_lib_cposix_strerror=no
17964 rm -f core conftest.err conftest.$ac_objext \
17965 conftest$ac_exeext conftest.$ac_ext
17966 LIBS=$ac_check_lib_save_LIBS
17968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cposix_strerror" >&5
17969 $as_echo "$ac_cv_lib_cposix_strerror" >&6; }
17970 if test "x$ac_cv_lib_cposix_strerror" = x""yes; then :
17971 LIBS="$LIBS -lcposix"
17976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
17977 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
17978 if test "${ac_cv_c_const+set}" = set; then :
17979 $as_echo_n "(cached) " >&6
17981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17982 /* end confdefs.h. */
17987 /* FIXME: Include the comments suggested by Paul. */
17988 #ifndef __cplusplus
17989 /* Ultrix mips cc rejects this. */
17990 typedef int charset[2];
17992 /* SunOS 4.1.1 cc rejects this. */
17993 char const *const *pcpcc;
17995 /* NEC SVR4.0.2 mips cc rejects this. */
17996 struct point {int x, y;};
17997 static struct point const zero = {0,0};
17998 /* AIX XL C 1.02.0.0 rejects this.
17999 It does not let you subtract one const X* pointer from another in
18000 an arm of an if-expression whose if-part is not a constant
18002 const char *g = "string";
18003 pcpcc = &g + (g ? g-g : 0);
18004 /* HPUX 7.0 cc rejects these. */
18006 ppc = (char**) pcpcc;
18007 pcpcc = (char const *const *) ppc;
18008 { /* SCO 3.2v4 cc rejects this. */
18010 char const *s = 0 ? (char *) 0 : (char const *) 0;
18015 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
18016 int x[] = {25, 17};
18017 const int *foo = &x[0];
18020 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
18021 typedef const int *iptr;
18025 { /* AIX XL C 1.02.0.0 rejects this saying
18026 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
18027 struct s { int j; const int *ap[3]; };
18028 struct s *b; b->j = 5;
18030 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
18031 const int foo = 10;
18032 if (!foo) return 0;
18034 return !cs[0] && !zero.x;
18041 if ac_fn_c_try_compile "$LINENO"; then :
18046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
18049 $as_echo "$ac_cv_c_const" >&6; }
18050 if test $ac_cv_c_const = no; then
18052 $as_echo "#define const /**/" >>confdefs.h
18057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed" >&5
18058 $as_echo_n "checking for signed... " >&6; }
18059 if test "${bh_cv_c_signed+set}" = set; then :
18060 $as_echo_n "(cached) " >&6
18062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18063 /* end confdefs.h. */
18073 if ac_fn_c_try_compile "$LINENO"; then :
18078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bh_cv_c_signed" >&5
18081 $as_echo "$bh_cv_c_signed" >&6; }
18082 if test $bh_cv_c_signed = no; then
18084 $as_echo "#define signed /**/" >>confdefs.h
18088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
18089 $as_echo_n "checking for inline... " >&6; }
18090 if test "${ac_cv_c_inline+set}" = set; then :
18091 $as_echo_n "(cached) " >&6
18094 for ac_kw in inline __inline__ __inline; do
18095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18096 /* end confdefs.h. */
18097 #ifndef __cplusplus
18099 static $ac_kw foo_t static_foo () {return 0; }
18100 $ac_kw foo_t foo () {return 0; }
18104 if ac_fn_c_try_compile "$LINENO"; then :
18105 ac_cv_c_inline=$ac_kw
18107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18108 test "$ac_cv_c_inline" != no && break
18112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
18113 $as_echo "$ac_cv_c_inline" >&6; }
18115 case $ac_cv_c_inline in
18118 case $ac_cv_c_inline in
18120 *) ac_val=$ac_cv_c_inline;;
18122 cat >>confdefs.h <<_ACEOF
18123 #ifndef __cplusplus
18124 #define inline $ac_val
18130 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
18131 if test "x$ac_cv_type_off_t" = x""yes; then :
18135 cat >>confdefs.h <<_ACEOF
18136 #define off_t long int
18141 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
18142 if test "x$ac_cv_type_size_t" = x""yes; then :
18146 cat >>confdefs.h <<_ACEOF
18147 #define size_t unsigned int
18153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long" >&5
18154 $as_echo_n "checking for long long... " >&6; }
18155 if test "${ac_cv_type_long_long+set}" = set; then :
18156 $as_echo_n "(cached) " >&6
18158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18159 /* end confdefs.h. */
18160 long long ll = 1LL; int i = 63;
18164 long long llmax = (long long) -1;
18165 return ll << i | ll >> i | llmax / ll | llmax % ll;
18170 if ac_fn_c_try_link "$LINENO"; then :
18171 ac_cv_type_long_long=yes
18173 ac_cv_type_long_long=no
18175 rm -f core conftest.err conftest.$ac_objext \
18176 conftest$ac_exeext conftest.$ac_ext
18178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long" >&5
18179 $as_echo "$ac_cv_type_long_long" >&6; }
18180 if test $ac_cv_type_long_long = yes; then
18182 $as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h
18187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
18188 $as_echo_n "checking for long double... " >&6; }
18189 if test "${gt_cv_c_long_double+set}" = set; then :
18190 $as_echo_n "(cached) " >&6
18192 if test "$GCC" = yes; then
18193 gt_cv_c_long_double=yes
18195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18196 /* end confdefs.h. */
18198 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
18199 long double foo = 0.0;
18200 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
18201 int array [2*(sizeof(long double) >= sizeof(double)) - 1];
18211 if ac_fn_c_try_compile "$LINENO"; then :
18212 gt_cv_c_long_double=yes
18214 gt_cv_c_long_double=no
18216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_long_double" >&5
18220 $as_echo "$gt_cv_c_long_double" >&6; }
18221 if test $gt_cv_c_long_double = yes; then
18223 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
18228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
18229 $as_echo_n "checking for wchar_t... " >&6; }
18230 if test "${gt_cv_c_wchar_t+set}" = set; then :
18231 $as_echo_n "(cached) " >&6
18233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18234 /* end confdefs.h. */
18235 #include <stddef.h>
18236 wchar_t foo = (wchar_t)'\0';
18245 if ac_fn_c_try_compile "$LINENO"; then :
18246 gt_cv_c_wchar_t=yes
18250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
18253 $as_echo "$gt_cv_c_wchar_t" >&6; }
18254 if test $gt_cv_c_wchar_t = yes; then
18256 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
18261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
18262 $as_echo_n "checking for wint_t... " >&6; }
18263 if test "${gt_cv_c_wint_t+set}" = set; then :
18264 $as_echo_n "(cached) " >&6
18266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18267 /* end confdefs.h. */
18269 wint_t foo = (wchar_t)'\0';
18278 if ac_fn_c_try_compile "$LINENO"; then :
18283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
18286 $as_echo "$gt_cv_c_wint_t" >&6; }
18287 if test $gt_cv_c_wint_t = yes; then
18289 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
18294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
18295 $as_echo_n "checking for inttypes.h... " >&6; }
18296 if test "${gl_cv_header_inttypes_h+set}" = set; then :
18297 $as_echo_n "(cached) " >&6
18299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18300 /* end confdefs.h. */
18301 #include <sys/types.h>
18302 #include <inttypes.h>
18306 uintmax_t i = (uintmax_t) -1;
18311 if ac_fn_c_try_compile "$LINENO"; then :
18312 gl_cv_header_inttypes_h=yes
18314 gl_cv_header_inttypes_h=no
18316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5
18319 $as_echo "$gl_cv_header_inttypes_h" >&6; }
18320 if test $gl_cv_header_inttypes_h = yes; then
18322 cat >>confdefs.h <<_ACEOF
18323 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
18329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
18330 $as_echo_n "checking for stdint.h... " >&6; }
18331 if test "${gl_cv_header_stdint_h+set}" = set; then :
18332 $as_echo_n "(cached) " >&6
18334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18335 /* end confdefs.h. */
18336 #include <sys/types.h>
18337 #include <stdint.h>
18341 uintmax_t i = (uintmax_t) -1;
18346 if ac_fn_c_try_compile "$LINENO"; then :
18347 gl_cv_header_stdint_h=yes
18349 gl_cv_header_stdint_h=no
18351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5
18354 $as_echo "$gl_cv_header_stdint_h" >&6; }
18355 if test $gl_cv_header_stdint_h = yes; then
18357 cat >>confdefs.h <<_ACEOF
18358 #define HAVE_STDINT_H_WITH_UINTMAX 1
18366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
18367 $as_echo_n "checking for intmax_t... " >&6; }
18368 if test "${gt_cv_c_intmax_t+set}" = set; then :
18369 $as_echo_n "(cached) " >&6
18371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18372 /* end confdefs.h. */
18374 #include <stddef.h>
18375 #include <stdlib.h>
18376 #if HAVE_STDINT_H_WITH_UINTMAX
18377 #include <stdint.h>
18379 #if HAVE_INTTYPES_H_WITH_UINTMAX
18380 #include <inttypes.h>
18391 if ac_fn_c_try_compile "$LINENO"; then :
18392 gt_cv_c_intmax_t=yes
18394 gt_cv_c_intmax_t=no
18396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
18399 $as_echo "$gt_cv_c_intmax_t" >&6; }
18400 if test $gt_cv_c_intmax_t = yes; then
18402 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
18408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5
18409 $as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
18410 if test "${gt_cv_func_printf_posix+set}" = set; then :
18411 $as_echo_n "(cached) " >&6
18414 if test "$cross_compiling" = yes; then :
18416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18417 /* end confdefs.h. */
18419 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
18424 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18425 $EGREP "notposix" >/dev/null 2>&1; then :
18426 gt_cv_func_printf_posix="guessing no"
18428 gt_cv_func_printf_posix="guessing yes"
18434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18435 /* end confdefs.h. */
18438 #include <string.h>
18439 /* The string "%2$d %1$d", with dollar characters protected from the shell's
18440 dollar expansion (possibly an autoconf bug). */
18441 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
18442 static char buf[100];
18445 sprintf (buf, format, 33, 55);
18446 return (strcmp (buf, "55 33") != 0);
18449 if ac_fn_c_try_run "$LINENO"; then :
18450 gt_cv_func_printf_posix=yes
18452 gt_cv_func_printf_posix=no
18454 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18455 conftest.$ac_objext conftest.beam conftest.$ac_ext
18460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5
18461 $as_echo "$gt_cv_func_printf_posix" >&6; }
18462 case $gt_cv_func_printf_posix in
18465 $as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h
18470 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
18471 # for constant arguments. Useless!
18472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
18473 $as_echo_n "checking for working alloca.h... " >&6; }
18474 if test "${ac_cv_working_alloca_h+set}" = set; then :
18475 $as_echo_n "(cached) " >&6
18477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18478 /* end confdefs.h. */
18479 #include <alloca.h>
18483 char *p = (char *) alloca (2 * sizeof (int));
18489 if ac_fn_c_try_link "$LINENO"; then :
18490 ac_cv_working_alloca_h=yes
18492 ac_cv_working_alloca_h=no
18494 rm -f core conftest.err conftest.$ac_objext \
18495 conftest$ac_exeext conftest.$ac_ext
18497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
18498 $as_echo "$ac_cv_working_alloca_h" >&6; }
18499 if test $ac_cv_working_alloca_h = yes; then
18501 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
18505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
18506 $as_echo_n "checking for alloca... " >&6; }
18507 if test "${ac_cv_func_alloca_works+set}" = set; then :
18508 $as_echo_n "(cached) " >&6
18510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18511 /* end confdefs.h. */
18513 # define alloca __builtin_alloca
18516 # include <malloc.h>
18517 # define alloca _alloca
18519 # ifdef HAVE_ALLOCA_H
18520 # include <alloca.h>
18525 # ifndef alloca /* predefined by HP cc +Olibcalls */
18536 char *p = (char *) alloca (1);
18542 if ac_fn_c_try_link "$LINENO"; then :
18543 ac_cv_func_alloca_works=yes
18545 ac_cv_func_alloca_works=no
18547 rm -f core conftest.err conftest.$ac_objext \
18548 conftest$ac_exeext conftest.$ac_ext
18550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
18551 $as_echo "$ac_cv_func_alloca_works" >&6; }
18553 if test $ac_cv_func_alloca_works = yes; then
18555 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
18558 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
18559 # that cause trouble. Some versions do not even contain alloca or
18560 # contain a buggy version. If you still want to use their alloca,
18561 # use ar to extract alloca.o from them instead of compiling alloca.c.
18563 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
18565 $as_echo "#define C_ALLOCA 1" >>confdefs.h
18568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
18569 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
18570 if test "${ac_cv_os_cray+set}" = set; then :
18571 $as_echo_n "(cached) " >&6
18573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18574 /* end confdefs.h. */
18575 #if defined CRAY && ! defined CRAY2
18582 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18583 $EGREP "webecray" >/dev/null 2>&1; then :
18591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
18592 $as_echo "$ac_cv_os_cray" >&6; }
18593 if test $ac_cv_os_cray = yes; then
18594 for ac_func in _getb67 GETB67 getb67; do
18595 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18596 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18597 eval as_val=\$$as_ac_var
18598 if test "x$as_val" = x""yes; then :
18600 cat >>confdefs.h <<_ACEOF
18601 #define CRAY_STACKSEG_END $ac_func
18610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
18611 $as_echo_n "checking stack direction for C alloca... " >&6; }
18612 if test "${ac_cv_c_stack_direction+set}" = set; then :
18613 $as_echo_n "(cached) " >&6
18615 if test "$cross_compiling" = yes; then :
18616 ac_cv_c_stack_direction=0
18618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18619 /* end confdefs.h. */
18620 $ac_includes_default
18622 find_stack_direction ()
18624 static char *addr = 0;
18629 return find_stack_direction ();
18632 return (&dummy > addr) ? 1 : -1;
18638 return find_stack_direction () < 0;
18641 if ac_fn_c_try_run "$LINENO"; then :
18642 ac_cv_c_stack_direction=1
18644 ac_cv_c_stack_direction=-1
18646 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18647 conftest.$ac_objext conftest.beam conftest.$ac_ext
18651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
18652 $as_echo "$ac_cv_c_stack_direction" >&6; }
18653 cat >>confdefs.h <<_ACEOF
18654 #define STACK_DIRECTION $ac_cv_c_stack_direction
18663 for ac_header in $ac_header_list
18665 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18666 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
18668 eval as_val=\$$as_ac_Header
18669 if test "x$as_val" = x""yes; then :
18670 cat >>confdefs.h <<_ACEOF
18671 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18685 for ac_func in getpagesize
18687 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
18688 if test "x$ac_cv_func_getpagesize" = x""yes; then :
18689 cat >>confdefs.h <<_ACEOF
18690 #define HAVE_GETPAGESIZE 1
18696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
18697 $as_echo_n "checking for working mmap... " >&6; }
18698 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
18699 $as_echo_n "(cached) " >&6
18701 if test "$cross_compiling" = yes; then :
18702 ac_cv_func_mmap_fixed_mapped=no
18704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18705 /* end confdefs.h. */
18706 $ac_includes_default
18707 /* malloc might have been renamed as rpl_malloc. */
18710 /* Thanks to Mike Haertel and Jim Avera for this test.
18711 Here is a matrix of mmap possibilities:
18712 mmap private not fixed
18713 mmap private fixed at somewhere currently unmapped
18714 mmap private fixed at somewhere already mapped
18715 mmap shared not fixed
18716 mmap shared fixed at somewhere currently unmapped
18717 mmap shared fixed at somewhere already mapped
18718 For private mappings, we should verify that changes cannot be read()
18719 back from the file, nor mmap's back from the file at a different
18720 address. (There have been systems where private was not correctly
18721 implemented like the infamous i386 svr4.0, and systems where the
18722 VM page cache was not coherent with the file system buffer cache
18723 like early versions of FreeBSD and possibly contemporary NetBSD.)
18724 For shared mappings, we should conversely verify that changes get
18725 propagated back to all the places they're supposed to be.
18727 Grep wants private fixed already mapped.
18728 The main things grep needs to know about mmap are:
18729 * does it exist and is it safe to write into the mmap'd area
18730 * how to use it (BSD variants) */
18733 #include <sys/mman.h>
18735 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
18739 /* This mess was copied from the GNU getpagesize.h. */
18740 #ifndef HAVE_GETPAGESIZE
18741 # ifdef _SC_PAGESIZE
18742 # define getpagesize() sysconf(_SC_PAGESIZE)
18743 # else /* no _SC_PAGESIZE */
18744 # ifdef HAVE_SYS_PARAM_H
18745 # include <sys/param.h>
18746 # ifdef EXEC_PAGESIZE
18747 # define getpagesize() EXEC_PAGESIZE
18748 # else /* no EXEC_PAGESIZE */
18750 # define getpagesize() NBPG * CLSIZE
18753 # endif /* no CLSIZE */
18754 # else /* no NBPG */
18756 # define getpagesize() NBPC
18757 # else /* no NBPC */
18759 # define getpagesize() PAGESIZE
18760 # endif /* PAGESIZE */
18761 # endif /* no NBPC */
18762 # endif /* no NBPG */
18763 # endif /* no EXEC_PAGESIZE */
18764 # else /* no HAVE_SYS_PARAM_H */
18765 # define getpagesize() 8192 /* punt totally */
18766 # endif /* no HAVE_SYS_PARAM_H */
18767 # endif /* no _SC_PAGESIZE */
18769 #endif /* no HAVE_GETPAGESIZE */
18774 char *data, *data2, *data3;
18775 const char *cdata2;
18779 pagesize = getpagesize ();
18781 /* First, make a file with some known garbage in it. */
18782 data = (char *) malloc (pagesize);
18785 for (i = 0; i < pagesize; ++i)
18786 *(data + i) = rand ();
18788 fd = creat ("conftest.mmap", 0600);
18791 if (write (fd, data, pagesize) != pagesize)
18795 /* Next, check that the tail of a page is zero-filled. File must have
18796 non-zero length, otherwise we risk SIGBUS for entire page. */
18797 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
18801 if (write (fd2, cdata2, 1) != 1)
18803 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
18804 if (data2 == MAP_FAILED)
18806 for (i = 0; i < pagesize; ++i)
18810 if (munmap (data2, pagesize))
18813 /* Next, try to mmap the file at a fixed address which already has
18814 something else allocated at it. If we can, also make sure that
18815 we see the same garbage. */
18816 fd = open ("conftest.mmap", O_RDWR);
18819 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
18820 MAP_PRIVATE | MAP_FIXED, fd, 0L))
18822 for (i = 0; i < pagesize; ++i)
18823 if (*(data + i) != *(data2 + i))
18826 /* Finally, make sure that changes to the mapped area do not
18827 percolate back to the file as seen by read(). (This is a bug on
18828 some variants of i386 svr4.0.) */
18829 for (i = 0; i < pagesize; ++i)
18830 *(data2 + i) = *(data2 + i) + 1;
18831 data3 = (char *) malloc (pagesize);
18834 if (read (fd, data3, pagesize) != pagesize)
18836 for (i = 0; i < pagesize; ++i)
18837 if (*(data + i) != *(data3 + i))
18843 if ac_fn_c_try_run "$LINENO"; then :
18844 ac_cv_func_mmap_fixed_mapped=yes
18846 ac_cv_func_mmap_fixed_mapped=no
18848 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18849 conftest.$ac_objext conftest.beam conftest.$ac_ext
18853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
18854 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
18855 if test $ac_cv_func_mmap_fixed_mapped = yes; then
18857 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
18860 rm -f conftest.mmap conftest.txt
18863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5
18864 $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
18865 if test "${ac_cv_gnu_library_2_1+set}" = set; then :
18866 $as_echo_n "(cached) " >&6
18868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18869 /* end confdefs.h. */
18871 #include <features.h>
18872 #ifdef __GNU_LIBRARY__
18873 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
18879 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18880 $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
18881 ac_cv_gnu_library_2_1=yes
18883 ac_cv_gnu_library_2_1=no
18890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
18891 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
18893 GLIBC21="$ac_cv_gnu_library_2_1"
18898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
18899 $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
18900 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then :
18901 $as_echo_n "(cached) " >&6
18904 if test "$cross_compiling" = yes; then :
18906 # Guess based on the CPU.
18907 case "$host_cpu" in
18908 alpha* | i3456786 | m68k | s390*)
18909 gt_cv_int_divbyzero_sigfpe="guessing yes";;
18911 gt_cv_int_divbyzero_sigfpe="guessing no";;
18915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18916 /* end confdefs.h. */
18918 #include <stdlib.h>
18919 #include <signal.h>
18923 sigfpe_handler (int sig)
18925 sigfpe_handler (sig) int sig;
18928 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
18929 exit (sig != SIGFPE);
18939 signal (SIGFPE, sigfpe_handler);
18940 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
18941 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
18942 signal (SIGTRAP, sigfpe_handler);
18944 /* Linux/SPARC yields signal SIGILL. */
18945 #if defined (__sparc__) && defined (__linux__)
18946 signal (SIGILL, sigfpe_handler);
18955 if ac_fn_c_try_run "$LINENO"; then :
18956 gt_cv_int_divbyzero_sigfpe=yes
18958 gt_cv_int_divbyzero_sigfpe=no
18960 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18961 conftest.$ac_objext conftest.beam conftest.$ac_ext
18966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
18967 $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
18968 case "$gt_cv_int_divbyzero_sigfpe" in
18973 cat >>confdefs.h <<_ACEOF
18974 #define INTDIV0_RAISES_SIGFPE $value
18979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long" >&5
18980 $as_echo_n "checking for unsigned long long... " >&6; }
18981 if test "${ac_cv_type_unsigned_long_long+set}" = set; then :
18982 $as_echo_n "(cached) " >&6
18984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18985 /* end confdefs.h. */
18986 unsigned long long ull = 1ULL; int i = 63;
18990 unsigned long long ullmax = (unsigned long long) -1;
18991 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
18996 if ac_fn_c_try_link "$LINENO"; then :
18997 ac_cv_type_unsigned_long_long=yes
18999 ac_cv_type_unsigned_long_long=no
19001 rm -f core conftest.err conftest.$ac_objext \
19002 conftest$ac_exeext conftest.$ac_ext
19004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long" >&5
19005 $as_echo "$ac_cv_type_unsigned_long_long" >&6; }
19006 if test $ac_cv_type_unsigned_long_long = yes; then
19008 $as_echo "#define HAVE_UNSIGNED_LONG_LONG 1" >>confdefs.h
19015 if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
19017 test $ac_cv_type_unsigned_long_long = yes \
19018 && ac_type='unsigned long long' \
19019 || ac_type='unsigned long'
19021 cat >>confdefs.h <<_ACEOF
19022 #define uintmax_t $ac_type
19027 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
19032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
19033 $as_echo_n "checking for inttypes.h... " >&6; }
19034 if test "${gt_cv_header_inttypes_h+set}" = set; then :
19035 $as_echo_n "(cached) " >&6
19038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19039 /* end confdefs.h. */
19040 #include <sys/types.h>
19041 #include <inttypes.h>
19050 if ac_fn_c_try_compile "$LINENO"; then :
19051 gt_cv_header_inttypes_h=yes
19053 gt_cv_header_inttypes_h=no
19055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_header_inttypes_h" >&5
19059 $as_echo "$gt_cv_header_inttypes_h" >&6; }
19060 if test $gt_cv_header_inttypes_h = yes; then
19062 cat >>confdefs.h <<_ACEOF
19063 #define HAVE_INTTYPES_H 1
19070 if test $gt_cv_header_inttypes_h = yes; then
19071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
19072 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
19073 if test "${gt_cv_inttypes_pri_broken+set}" = set; then :
19074 $as_echo_n "(cached) " >&6
19077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19078 /* end confdefs.h. */
19079 #include <inttypes.h>
19092 if ac_fn_c_try_compile "$LINENO"; then :
19093 gt_cv_inttypes_pri_broken=no
19095 gt_cv_inttypes_pri_broken=yes
19097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
19101 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
19103 if test "$gt_cv_inttypes_pri_broken" = yes; then
19105 cat >>confdefs.h <<_ACEOF
19106 #define PRI_MACROS_BROKEN 1
19112 for ac_header in stdint.h
19114 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
19115 if test "x$ac_cv_header_stdint_h" = x""yes; then :
19116 cat >>confdefs.h <<_ACEOF
19117 #define HAVE_STDINT_H 1
19124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
19125 $as_echo_n "checking for SIZE_MAX... " >&6; }
19127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19128 /* end confdefs.h. */
19130 #include <limits.h>
19132 #include <stdint.h>
19139 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19140 $EGREP "Found it" >/dev/null 2>&1; then :
19145 if test -z "$result"; then
19146 if ac_fn_c_compute_int "$LINENO" "~(size_t)0 / 10" "res_hi" "#include <stddef.h>"; then :
19153 if ac_fn_c_compute_int "$LINENO" "~(size_t)0 % 10" "res_lo" "#include <stddef.h>"; then :
19160 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint" "#include <stddef.h>"; then :
19167 if test "$fits_in_uint" = 1; then
19168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19169 /* end confdefs.h. */
19170 #include <stddef.h>
19172 extern unsigned long foo;
19182 if ac_fn_c_try_compile "$LINENO"; then :
19185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19187 if test -z "$result"; then
19188 if test "$fits_in_uint" = 1; then
19189 result="$res_hi$res_lo"U
19191 result="$res_hi$res_lo"UL
19194 result='~(size_t)0'
19197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
19198 $as_echo "$result" >&6; }
19199 if test "$result" != yes; then
19201 cat >>confdefs.h <<_ACEOF
19202 #define SIZE_MAX $result
19210 for ac_header in stdint.h
19212 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
19213 if test "x$ac_cv_header_stdint_h" = x""yes; then :
19214 cat >>confdefs.h <<_ACEOF
19215 #define HAVE_STDINT_H 1
19229 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
19230 if test "x$ac_cv_type_ptrdiff_t" = x""yes; then :
19234 $as_echo "#define ptrdiff_t long" >>confdefs.h
19239 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
19240 stdlib.h string.h unistd.h sys/param.h
19242 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19243 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19244 eval as_val=\$$as_ac_Header
19245 if test "x$as_val" = x""yes; then :
19246 cat >>confdefs.h <<_ACEOF
19247 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19254 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
19255 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
19256 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
19259 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19260 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19261 eval as_val=\$$as_ac_var
19262 if test "x$as_val" = x""yes; then :
19263 cat >>confdefs.h <<_ACEOF
19264 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snprintf is declared" >&5
19273 $as_echo_n "checking whether _snprintf is declared... " >&6; }
19274 if test "${ac_cv_have_decl__snprintf+set}" = set; then :
19275 $as_echo_n "(cached) " >&6
19277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19278 /* end confdefs.h. */
19285 char *p = (char *) _snprintf;
19292 if ac_fn_c_try_compile "$LINENO"; then :
19293 ac_cv_have_decl__snprintf=yes
19295 ac_cv_have_decl__snprintf=no
19297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snprintf" >&5
19300 $as_echo "$ac_cv_have_decl__snprintf" >&6; }
19301 if test $ac_cv_have_decl__snprintf = yes; then
19307 cat >>confdefs.h <<_ACEOF
19308 #define HAVE_DECL__SNPRINTF $gt_value
19313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snwprintf is declared" >&5
19314 $as_echo_n "checking whether _snwprintf is declared... " >&6; }
19315 if test "${ac_cv_have_decl__snwprintf+set}" = set; then :
19316 $as_echo_n "(cached) " >&6
19318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19319 /* end confdefs.h. */
19326 char *p = (char *) _snwprintf;
19333 if ac_fn_c_try_compile "$LINENO"; then :
19334 ac_cv_have_decl__snwprintf=yes
19336 ac_cv_have_decl__snwprintf=no
19338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snwprintf" >&5
19341 $as_echo "$ac_cv_have_decl__snwprintf" >&6; }
19342 if test $ac_cv_have_decl__snwprintf = yes; then
19348 cat >>confdefs.h <<_ACEOF
19349 #define HAVE_DECL__SNWPRINTF $gt_value
19355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether feof_unlocked is declared" >&5
19356 $as_echo_n "checking whether feof_unlocked is declared... " >&6; }
19357 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then :
19358 $as_echo_n "(cached) " >&6
19360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19361 /* end confdefs.h. */
19367 #ifndef feof_unlocked
19368 char *p = (char *) feof_unlocked;
19375 if ac_fn_c_try_compile "$LINENO"; then :
19376 ac_cv_have_decl_feof_unlocked=yes
19378 ac_cv_have_decl_feof_unlocked=no
19380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_feof_unlocked" >&5
19383 $as_echo "$ac_cv_have_decl_feof_unlocked" >&6; }
19384 if test $ac_cv_have_decl_feof_unlocked = yes; then
19390 cat >>confdefs.h <<_ACEOF
19391 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
19396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fgets_unlocked is declared" >&5
19397 $as_echo_n "checking whether fgets_unlocked is declared... " >&6; }
19398 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then :
19399 $as_echo_n "(cached) " >&6
19401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19402 /* end confdefs.h. */
19408 #ifndef fgets_unlocked
19409 char *p = (char *) fgets_unlocked;
19416 if ac_fn_c_try_compile "$LINENO"; then :
19417 ac_cv_have_decl_fgets_unlocked=yes
19419 ac_cv_have_decl_fgets_unlocked=no
19421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_fgets_unlocked" >&5
19424 $as_echo "$ac_cv_have_decl_fgets_unlocked" >&6; }
19425 if test $ac_cv_have_decl_fgets_unlocked = yes; then
19431 cat >>confdefs.h <<_ACEOF
19432 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
19437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getc_unlocked is declared" >&5
19438 $as_echo_n "checking whether getc_unlocked is declared... " >&6; }
19439 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then :
19440 $as_echo_n "(cached) " >&6
19442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19443 /* end confdefs.h. */
19449 #ifndef getc_unlocked
19450 char *p = (char *) getc_unlocked;
19457 if ac_fn_c_try_compile "$LINENO"; then :
19458 ac_cv_have_decl_getc_unlocked=yes
19460 ac_cv_have_decl_getc_unlocked=no
19462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_getc_unlocked" >&5
19465 $as_echo "$ac_cv_have_decl_getc_unlocked" >&6; }
19466 if test $ac_cv_have_decl_getc_unlocked = yes; then
19472 cat >>confdefs.h <<_ACEOF
19473 #define HAVE_DECL_GETC_UNLOCKED $gt_value
19478 case $gt_cv_func_printf_posix in
19479 *yes) HAVE_POSIX_PRINTF=1 ;;
19480 *) HAVE_POSIX_PRINTF=0 ;;
19483 if test "$ac_cv_func_asprintf" = yes; then
19489 if test "$ac_cv_func_snprintf" = yes; then
19495 if test "$ac_cv_func_wprintf" = yes; then
19507 am_save_CPPFLAGS="$CPPFLAGS"
19509 for element in $INCICONV; do
19511 for x in $CPPFLAGS; do
19513 acl_save_prefix="$prefix"
19514 prefix="$acl_final_prefix"
19515 acl_save_exec_prefix="$exec_prefix"
19516 exec_prefix="$acl_final_exec_prefix"
19518 exec_prefix="$acl_save_exec_prefix"
19519 prefix="$acl_save_prefix"
19521 if test "X$x" = "X$element"; then
19526 if test -z "$haveit"; then
19527 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
19532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
19533 $as_echo_n "checking for iconv... " >&6; }
19534 if test "${am_cv_func_iconv+set}" = set; then :
19535 $as_echo_n "(cached) " >&6
19538 am_cv_func_iconv="no, consider installing GNU libiconv"
19540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19541 /* end confdefs.h. */
19542 #include <stdlib.h>
19547 iconv_t cd = iconv_open("","");
19548 iconv(cd,NULL,NULL,NULL,NULL);
19554 if ac_fn_c_try_link "$LINENO"; then :
19555 am_cv_func_iconv=yes
19557 rm -f core conftest.err conftest.$ac_objext \
19558 conftest$ac_exeext conftest.$ac_ext
19559 if test "$am_cv_func_iconv" != yes; then
19560 am_save_LIBS="$LIBS"
19561 LIBS="$LIBS $LIBICONV"
19562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19563 /* end confdefs.h. */
19564 #include <stdlib.h>
19569 iconv_t cd = iconv_open("","");
19570 iconv(cd,NULL,NULL,NULL,NULL);
19576 if ac_fn_c_try_link "$LINENO"; then :
19577 am_cv_lib_iconv=yes
19578 am_cv_func_iconv=yes
19580 rm -f core conftest.err conftest.$ac_objext \
19581 conftest$ac_exeext conftest.$ac_ext
19582 LIBS="$am_save_LIBS"
19586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
19587 $as_echo "$am_cv_func_iconv" >&6; }
19588 if test "$am_cv_func_iconv" = yes; then
19590 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
19593 if test "$am_cv_lib_iconv" = yes; then
19594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
19595 $as_echo_n "checking how to link with libiconv... " >&6; }
19596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
19597 $as_echo "$LIBICONV" >&6; }
19599 CPPFLAGS="$am_save_CPPFLAGS"
19606 if test "$am_cv_func_iconv" = yes; then
19607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
19608 $as_echo_n "checking for iconv declaration... " >&6; }
19609 if test "${am_cv_proto_iconv+set}" = set; then :
19610 $as_echo_n "(cached) " >&6
19613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19614 /* end confdefs.h. */
19616 #include <stdlib.h>
19622 #if defined(__STDC__) || defined(__cplusplus)
19623 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
19636 if ac_fn_c_try_compile "$LINENO"; then :
19637 am_cv_proto_iconv_arg1=""
19639 am_cv_proto_iconv_arg1="const"
19641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19642 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);"
19645 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
19646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
19647 }$am_cv_proto_iconv" >&5
19649 }$am_cv_proto_iconv" >&6; }
19651 cat >>confdefs.h <<_ACEOF
19652 #define ICONV_CONST $am_cv_proto_iconv_arg1
19658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
19659 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
19660 if test "${am_cv_langinfo_codeset+set}" = set; then :
19661 $as_echo_n "(cached) " >&6
19663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19664 /* end confdefs.h. */
19665 #include <langinfo.h>
19669 char* cs = nl_langinfo(CODESET);
19674 if ac_fn_c_try_link "$LINENO"; then :
19675 am_cv_langinfo_codeset=yes
19677 am_cv_langinfo_codeset=no
19679 rm -f core conftest.err conftest.$ac_objext \
19680 conftest$ac_exeext conftest.$ac_ext
19683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
19684 $as_echo "$am_cv_langinfo_codeset" >&6; }
19685 if test $am_cv_langinfo_codeset = yes; then
19687 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
19691 if test $ac_cv_header_locale_h = yes; then
19693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
19694 $as_echo_n "checking for LC_MESSAGES... " >&6; }
19695 if test "${gt_cv_val_LC_MESSAGES+set}" = set; then :
19696 $as_echo_n "(cached) " >&6
19698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19699 /* end confdefs.h. */
19700 #include <locale.h>
19709 if ac_fn_c_try_link "$LINENO"; then :
19710 gt_cv_val_LC_MESSAGES=yes
19712 gt_cv_val_LC_MESSAGES=no
19714 rm -f core conftest.err conftest.$ac_objext \
19715 conftest$ac_exeext conftest.$ac_ext
19717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_val_LC_MESSAGES" >&5
19718 $as_echo "$gt_cv_val_LC_MESSAGES" >&6; }
19719 if test $gt_cv_val_LC_MESSAGES = yes; then
19721 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
19727 if test -n "$INTL_MACOSX_LIBS"; then
19728 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
19731 for ac_prog in bison
19733 # Extract the first word of "$ac_prog", so it can be a program name with args.
19734 set dummy $ac_prog; ac_word=$2
19735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19736 $as_echo_n "checking for $ac_word... " >&6; }
19737 if test "${ac_cv_prog_INTLBISON+set}" = set; then :
19738 $as_echo_n "(cached) " >&6
19740 if test -n "$INTLBISON"; then
19741 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
19743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19744 for as_dir in $PATH
19747 test -z "$as_dir" && as_dir=.
19748 for ac_exec_ext in '' $ac_executable_extensions; do
19749 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19750 ac_cv_prog_INTLBISON="$ac_prog"
19751 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19760 INTLBISON=$ac_cv_prog_INTLBISON
19761 if test -n "$INTLBISON"; then
19762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
19763 $as_echo "$INTLBISON" >&6; }
19765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19766 $as_echo "no" >&6; }
19770 test -n "$INTLBISON" && break
19773 if test -z "$INTLBISON"; then
19776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
19777 $as_echo_n "checking version of bison... " >&6; }
19778 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
19779 case $ac_prog_version in
19780 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
19781 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
19782 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
19783 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
19785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
19786 $as_echo "$ac_prog_version" >&6; }
19788 if test $ac_verc_fail = yes; then
19807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
19808 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
19809 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then :
19810 $as_echo_n "(cached) " >&6
19812 gt_save_CPPFLAGS="$CPPFLAGS"
19813 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
19814 gt_save_LIBS="$LIBS"
19815 LIBS="$LIBS -framework CoreFoundation"
19816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19817 /* end confdefs.h. */
19818 #include <CFPreferences.h>
19822 CFPreferencesCopyAppValue(NULL, NULL)
19827 if ac_fn_c_try_link "$LINENO"; then :
19828 gt_cv_func_CFPreferencesCopyAppValue=yes
19830 gt_cv_func_CFPreferencesCopyAppValue=no
19832 rm -f core conftest.err conftest.$ac_objext \
19833 conftest$ac_exeext conftest.$ac_ext
19834 CPPFLAGS="$gt_save_CPPFLAGS"
19835 LIBS="$gt_save_LIBS"
19837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
19838 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
19839 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
19841 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
19844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
19845 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
19846 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then :
19847 $as_echo_n "(cached) " >&6
19849 gt_save_CPPFLAGS="$CPPFLAGS"
19850 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
19851 gt_save_LIBS="$LIBS"
19852 LIBS="$LIBS -framework CoreFoundation"
19853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19854 /* end confdefs.h. */
19855 #include <CFLocale.h>
19859 CFLocaleCopyCurrent();
19864 if ac_fn_c_try_link "$LINENO"; then :
19865 gt_cv_func_CFLocaleCopyCurrent=yes
19867 gt_cv_func_CFLocaleCopyCurrent=no
19869 rm -f core conftest.err conftest.$ac_objext \
19870 conftest$ac_exeext conftest.$ac_ext
19871 CPPFLAGS="$gt_save_CPPFLAGS"
19872 LIBS="$gt_save_LIBS"
19874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
19875 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
19876 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
19878 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
19882 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
19883 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
19889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
19890 $as_echo_n "checking whether NLS is requested... " >&6; }
19891 # Check whether --enable-nls was given.
19892 if test "${enable_nls+set}" = set; then :
19893 enableval=$enable_nls; USE_NLS=$enableval
19898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
19899 $as_echo "$USE_NLS" >&6; }
19904 BUILD_INCLUDED_LIBINTL=no
19905 USE_INCLUDED_LIBINTL=no
19911 if test "$USE_NLS" = "yes"; then
19912 gt_use_preinstalled_gnugettext=no
19914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
19915 $as_echo_n "checking whether included gettext is requested... " >&6; }
19917 # Check whether --with-included-gettext was given.
19918 if test "${with_included_gettext+set}" = set; then :
19919 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
19921 nls_cv_force_use_gnu_gettext=no
19924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
19925 $as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
19927 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
19928 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
19935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
19936 $as_echo_n "checking for GNU gettext in libc... " >&6; }
19937 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then :
19938 $as_echo_n "(cached) " >&6
19940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19941 /* end confdefs.h. */
19942 #include <libintl.h>
19943 extern int _nl_msg_cat_cntr;
19944 extern int *_nl_domain_bindings;
19948 bindtextdomain ("", "");
19949 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
19954 if ac_fn_c_try_link "$LINENO"; then :
19955 gt_cv_func_gnugettext1_libc=yes
19957 gt_cv_func_gnugettext1_libc=no
19959 rm -f core conftest.err conftest.$ac_objext \
19960 conftest$ac_exeext conftest.$ac_ext
19962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5
19963 $as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
19965 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
19971 acl_save_prefix="$prefix"
19972 prefix="$acl_final_prefix"
19973 acl_save_exec_prefix="$exec_prefix"
19974 exec_prefix="$acl_final_exec_prefix"
19976 eval additional_includedir=\"$includedir\"
19977 eval additional_libdir=\"$libdir\"
19979 exec_prefix="$acl_save_exec_prefix"
19980 prefix="$acl_save_prefix"
19983 # Check whether --with-libintl-prefix was given.
19984 if test "${with_libintl_prefix+set}" = set; then :
19985 withval=$with_libintl_prefix;
19986 if test "X$withval" = "Xno"; then
19989 if test "X$withval" = "X"; then
19991 acl_save_prefix="$prefix"
19992 prefix="$acl_final_prefix"
19993 acl_save_exec_prefix="$exec_prefix"
19994 exec_prefix="$acl_final_exec_prefix"
19996 eval additional_includedir=\"$includedir\"
19997 eval additional_libdir=\"$libdir\"
19999 exec_prefix="$acl_save_exec_prefix"
20000 prefix="$acl_save_prefix"
20003 additional_includedir="$withval/include"
20004 additional_libdir="$withval/lib"
20015 names_already_handled=
20016 names_next_round='intl '
20017 while test -n "$names_next_round"; do
20018 names_this_round="$names_next_round"
20020 for name in $names_this_round; do
20022 for n in $names_already_handled; do
20023 if test "$n" = "$name"; then
20024 already_handled=yes
20028 if test -z "$already_handled"; then
20029 names_already_handled="$names_already_handled $name"
20030 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
20031 eval value=\"\$HAVE_LIB$uppername\"
20032 if test -n "$value"; then
20033 if test "$value" = yes; then
20034 eval value=\"\$LIB$uppername\"
20035 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
20036 eval value=\"\$LTLIB$uppername\"
20037 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
20046 if test $use_additional = yes; then
20047 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
20048 found_dir="$additional_libdir"
20049 found_so="$additional_libdir/lib$name.$shlibext"
20050 if test -f "$additional_libdir/lib$name.la"; then
20051 found_la="$additional_libdir/lib$name.la"
20054 if test -f "$additional_libdir/lib$name.$libext"; then
20055 found_dir="$additional_libdir"
20056 found_a="$additional_libdir/lib$name.$libext"
20057 if test -f "$additional_libdir/lib$name.la"; then
20058 found_la="$additional_libdir/lib$name.la"
20063 if test "X$found_dir" = "X"; then
20064 for x in $LDFLAGS $LTLIBINTL; do
20066 acl_save_prefix="$prefix"
20067 prefix="$acl_final_prefix"
20068 acl_save_exec_prefix="$exec_prefix"
20069 exec_prefix="$acl_final_exec_prefix"
20071 exec_prefix="$acl_save_exec_prefix"
20072 prefix="$acl_save_prefix"
20076 dir=`echo "X$x" | sed -e 's/^X-L//'`
20077 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
20079 found_so="$dir/lib$name.$shlibext"
20080 if test -f "$dir/lib$name.la"; then
20081 found_la="$dir/lib$name.la"
20084 if test -f "$dir/lib$name.$libext"; then
20086 found_a="$dir/lib$name.$libext"
20087 if test -f "$dir/lib$name.la"; then
20088 found_la="$dir/lib$name.la"
20094 if test "X$found_dir" != "X"; then
20099 if test "X$found_dir" != "X"; then
20100 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
20101 if test "X$found_so" != "X"; then
20102 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
20103 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
20106 for x in $ltrpathdirs; do
20107 if test "X$x" = "X$found_dir"; then
20112 if test -z "$haveit"; then
20113 ltrpathdirs="$ltrpathdirs $found_dir"
20115 if test "$hardcode_direct" = yes; then
20116 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
20118 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
20119 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
20121 for x in $rpathdirs; do
20122 if test "X$x" = "X$found_dir"; then
20127 if test -z "$haveit"; then
20128 rpathdirs="$rpathdirs $found_dir"
20132 for x in $LDFLAGS $LIBINTL; do
20134 acl_save_prefix="$prefix"
20135 prefix="$acl_final_prefix"
20136 acl_save_exec_prefix="$exec_prefix"
20137 exec_prefix="$acl_final_exec_prefix"
20139 exec_prefix="$acl_save_exec_prefix"
20140 prefix="$acl_save_prefix"
20142 if test "X$x" = "X-L$found_dir"; then
20147 if test -z "$haveit"; then
20148 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
20150 if test "$hardcode_minus_L" != no; then
20151 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
20153 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
20159 if test "X$found_a" != "X"; then
20160 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
20162 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
20165 additional_includedir=
20166 case "$found_dir" in
20168 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
20169 additional_includedir="$basedir/include"
20172 if test "X$additional_includedir" != "X"; then
20173 if test "X$additional_includedir" != "X/usr/include"; then
20175 if test "X$additional_includedir" = "X/usr/local/include"; then
20176 if test -n "$GCC"; then
20178 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
20182 if test -z "$haveit"; then
20183 for x in $CPPFLAGS $INCINTL; do
20185 acl_save_prefix="$prefix"
20186 prefix="$acl_final_prefix"
20187 acl_save_exec_prefix="$exec_prefix"
20188 exec_prefix="$acl_final_exec_prefix"
20190 exec_prefix="$acl_save_exec_prefix"
20191 prefix="$acl_save_prefix"
20193 if test "X$x" = "X-I$additional_includedir"; then
20198 if test -z "$haveit"; then
20199 if test -d "$additional_includedir"; then
20200 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
20206 if test -n "$found_la"; then
20207 save_libdir="$libdir"
20208 case "$found_la" in
20209 */* | *\\*) . "$found_la" ;;
20210 *) . "./$found_la" ;;
20212 libdir="$save_libdir"
20213 for dep in $dependency_libs; do
20216 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
20217 if test "X$additional_libdir" != "X/usr/lib"; then
20219 if test "X$additional_libdir" = "X/usr/local/lib"; then
20220 if test -n "$GCC"; then
20222 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
20226 if test -z "$haveit"; then
20228 for x in $LDFLAGS $LIBINTL; do
20230 acl_save_prefix="$prefix"
20231 prefix="$acl_final_prefix"
20232 acl_save_exec_prefix="$exec_prefix"
20233 exec_prefix="$acl_final_exec_prefix"
20235 exec_prefix="$acl_save_exec_prefix"
20236 prefix="$acl_save_prefix"
20238 if test "X$x" = "X-L$additional_libdir"; then
20243 if test -z "$haveit"; then
20244 if test -d "$additional_libdir"; then
20245 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
20249 for x in $LDFLAGS $LTLIBINTL; do
20251 acl_save_prefix="$prefix"
20252 prefix="$acl_final_prefix"
20253 acl_save_exec_prefix="$exec_prefix"
20254 exec_prefix="$acl_final_exec_prefix"
20256 exec_prefix="$acl_save_exec_prefix"
20257 prefix="$acl_save_prefix"
20259 if test "X$x" = "X-L$additional_libdir"; then
20264 if test -z "$haveit"; then
20265 if test -d "$additional_libdir"; then
20266 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
20273 dir=`echo "X$dep" | sed -e 's/^X-R//'`
20274 if test "$enable_rpath" != no; then
20276 for x in $rpathdirs; do
20277 if test "X$x" = "X$dir"; then
20282 if test -z "$haveit"; then
20283 rpathdirs="$rpathdirs $dir"
20286 for x in $ltrpathdirs; do
20287 if test "X$x" = "X$dir"; then
20292 if test -z "$haveit"; then
20293 ltrpathdirs="$ltrpathdirs $dir"
20298 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
20301 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
20304 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
20305 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
20311 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
20312 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
20318 if test "X$rpathdirs" != "X"; then
20319 if test -n "$hardcode_libdir_separator"; then
20321 for found_dir in $rpathdirs; do
20322 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
20324 acl_save_libdir="$libdir"
20326 eval flag=\"$hardcode_libdir_flag_spec\"
20327 libdir="$acl_save_libdir"
20328 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
20330 for found_dir in $rpathdirs; do
20331 acl_save_libdir="$libdir"
20332 libdir="$found_dir"
20333 eval flag=\"$hardcode_libdir_flag_spec\"
20334 libdir="$acl_save_libdir"
20335 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
20339 if test "X$ltrpathdirs" != "X"; then
20340 for found_dir in $ltrpathdirs; do
20341 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
20345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
20346 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
20347 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then :
20348 $as_echo_n "(cached) " >&6
20350 gt_save_CPPFLAGS="$CPPFLAGS"
20351 CPPFLAGS="$CPPFLAGS $INCINTL"
20352 gt_save_LIBS="$LIBS"
20353 LIBS="$LIBS $LIBINTL"
20354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20355 /* end confdefs.h. */
20356 #include <libintl.h>
20357 extern int _nl_msg_cat_cntr;
20362 const char *_nl_expand_alias (const char *);
20366 bindtextdomain ("", "");
20367 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
20372 if ac_fn_c_try_link "$LINENO"; then :
20373 gt_cv_func_gnugettext1_libintl=yes
20375 gt_cv_func_gnugettext1_libintl=no
20377 rm -f core conftest.err conftest.$ac_objext \
20378 conftest$ac_exeext conftest.$ac_ext
20379 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
20380 LIBS="$LIBS $LIBICONV"
20381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20382 /* end confdefs.h. */
20383 #include <libintl.h>
20384 extern int _nl_msg_cat_cntr;
20389 const char *_nl_expand_alias (const char *);
20393 bindtextdomain ("", "");
20394 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
20399 if ac_fn_c_try_link "$LINENO"; then :
20400 LIBINTL="$LIBINTL $LIBICONV"
20401 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
20402 gt_cv_func_gnugettext1_libintl=yes
20405 rm -f core conftest.err conftest.$ac_objext \
20406 conftest$ac_exeext conftest.$ac_ext
20408 CPPFLAGS="$gt_save_CPPFLAGS"
20409 LIBS="$gt_save_LIBS"
20411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5
20412 $as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
20415 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
20416 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
20417 && test "$PACKAGE" != gettext-runtime \
20418 && test "$PACKAGE" != gettext-tools; }; then
20419 gt_use_preinstalled_gnugettext=yes
20427 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
20428 nls_cv_use_gnu_gettext=yes
20432 if test "$nls_cv_use_gnu_gettext" = "yes"; then
20433 BUILD_INCLUDED_LIBINTL=yes
20434 USE_INCLUDED_LIBINTL=yes
20435 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
20436 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
20437 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
20441 if test "$gt_use_preinstalled_gnugettext" = "yes" \
20442 || test "$nls_cv_use_gnu_gettext" = "yes"; then
20447 if test -n "$INTL_MACOSX_LIBS"; then
20448 if test "$gt_use_preinstalled_gnugettext" = "yes" \
20449 || test "$nls_cv_use_gnu_gettext" = "yes"; then
20450 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
20451 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
20455 if test "$gt_use_preinstalled_gnugettext" = "yes" \
20456 || test "$nls_cv_use_gnu_gettext" = "yes"; then
20458 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
20465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
20466 $as_echo_n "checking whether to use NLS... " >&6; }
20467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
20468 $as_echo "$USE_NLS" >&6; }
20469 if test "$USE_NLS" = "yes"; then
20470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
20471 $as_echo_n "checking where the gettext function comes from... " >&6; }
20472 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
20473 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
20474 gt_source="external libintl"
20479 gt_source="included intl directory"
20481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
20482 $as_echo "$gt_source" >&6; }
20485 if test "$USE_NLS" = "yes"; then
20487 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
20488 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
20489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
20490 $as_echo_n "checking how to link with libintl... " >&6; }
20491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
20492 $as_echo "$LIBINTL" >&6; }
20494 for element in $INCINTL; do
20496 for x in $CPPFLAGS; do
20498 acl_save_prefix="$prefix"
20499 prefix="$acl_final_prefix"
20500 acl_save_exec_prefix="$exec_prefix"
20501 exec_prefix="$acl_final_exec_prefix"
20503 exec_prefix="$acl_save_exec_prefix"
20504 prefix="$acl_save_prefix"
20506 if test "X$x" = "X$element"; then
20511 if test -z "$haveit"; then
20512 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
20519 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
20522 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
20530 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
20531 BUILD_INCLUDED_LIBINTL=yes
20538 nls_cv_header_intl=
20539 nls_cv_header_libgt=
20551 if test "$USE_INCLUDED_LIBINTL" = yes; then
20552 INTLOBJS="\$(GETTOBJS)"
20556 INTL_LIBTOOL_SUFFIX_PREFIX=
20560 INTLLIBS="$LIBINTL"
20572 support_postgresql=no
20575 support_smartalloc=yes
20576 support_readline=yes
20580 support_wx_console=no
20581 support_tray_monitor=no
20586 support_static_tools=no
20587 support_static_fd=no
20588 support_static_sd=no
20589 support_static_dir=no
20590 support_static_cons=no
20592 build_client_only=no
20601 # Check whether --enable-gnome was given.
20602 if test "${enable_gnome+set}" = set; then :
20603 enableval=$enable_gnome;
20604 if test x$enableval = xyes; then
20613 if test x$support_gnome = xyes; then
20614 as_fn_error "bgnome-console no longer supported" "$LINENO" 5
20615 as_fn_error "--enable-gnome option no longer supported" "$LINENO" 5
20617 # AC_SUBST(GNOME_DIR)
20619 # Check whether --enable-bat was given.
20620 if test "${enable_bat+set}" = set; then :
20621 enableval=$enable_bat;
20622 if test x$enableval = xyes; then
20624 $as_echo "#define HAVE_BAT 1" >>confdefs.h
20634 if test x$support_bat = xyes; then
20635 abc=`$PKGCONFIG --atleast-version=4.2 QtGui`
20637 if test $pkg = 0; then
20638 BAT_DIR=src/qt-console
20640 as_fn_error "Unable to find Qt4 installation needed by bat" "$LINENO" 5
20658 # Check whether --enable-bwx-console was given.
20659 if test "${enable_bwx_console+set}" = set; then :
20660 enableval=$enable_bwx_console;
20661 if test x$enableval = xyes; then
20662 support_wx_console=yes
20670 if test x$support_wx_console = xyes; then
20671 abc=`$WXCONFIG $WXFLAGS --cppflags`
20673 if test $pkg = 0; then
20674 wx_version="wxWidgets `$WXCONFIG $WXFLAGS --release`"
20675 WXCONS_CPPFLAGS=`$WXCONFIG $WXFLAGS --cppflags`
20676 WXCONS_LDFLAGS=`$WXCONFIG $WXFLAGS --libs`
20680 WX_DIR="src/wx-console"
20683 echo "wx-config program not found. bwx-console disabled."
20685 support_wx_console=no
20690 # Check whether --enable-tray-monitor was given.
20691 if test "${enable_tray_monitor+set}" = set; then :
20692 enableval=$enable_tray_monitor;
20693 if test x$enableval = xyes; then
20694 support_tray_monitor=yes
20702 if test x$support_tray_monitor = xyes; then
20703 abc=`$PKGCONFIG --exists gtk+-2.0`
20705 if test $pkg = 0; then
20706 TRAY_MONITOR_CPPFLAGS=`$PKGCONFIG --cflags gtk+-2.0`
20707 TRAY_MONITOR_LDFLAGS=`$PKGCONFIG --libs gtk+-2.0`
20710 TRAY_MONITOR_DIR=src/tray-monitor
20711 abc=`$PKGCONFIG --atleast-version=2.4 gtk+-2.0`
20713 if test $pkg = 0; then
20715 $as_echo "#define HAVE_GTK_2_4 1" >>confdefs.h
20722 # Check whether --enable-smartalloc was given.
20723 if test "${enable_smartalloc+set}" = set; then :
20724 enableval=$enable_smartalloc;
20725 if test x$enableval = xno; then
20726 support_smartalloc=no
20733 if test x$support_smartalloc = xyes; then
20735 $as_echo "#define SMARTALLOC 1" >>confdefs.h
20739 # Check whether --enable-lockmgr was given.
20740 if test "${enable_lockmgr+set}" = set; then :
20741 enableval=$enable_lockmgr;
20742 if test x$enableval = xyes; then
20743 support_lockmgr=yes
20750 if test x$support_lockmgr = xyes; then
20752 $as_echo "#define _USE_LOCKMGR 1" >>confdefs.h
20757 # Check whether --enable-static-tools was given.
20758 if test "${enable_static_tools+set}" = set; then :
20759 enableval=$enable_static_tools;
20760 if test x$enableval = xyes; then
20761 if test x$use_libtool = xyes; then
20762 as_fn_error "Libtool is enabled, not compatible with static tools,
20763 please rerun configure with --disable-libtool" "$LINENO" 5
20765 support_static_tools=yes
20773 if test x$support_static_tools = xyes; then
20774 TTOOL_LDFLAGS="-static"
20778 # Check whether --enable-static-fd was given.
20779 if test "${enable_static_fd+set}" = set; then :
20780 enableval=$enable_static_fd;
20781 if test x$enableval = xyes; then
20782 if test x$use_libtool = xyes; then
20783 as_fn_error "Libtool is enabled, not compatible with static tools,
20784 please rerun configure with --disable-libtool" "$LINENO" 5
20786 support_static_fd=yes
20794 if test x$support_static_fd = xyes; then
20795 STATIC_FD="static-bacula-fd"
20799 # Check whether --enable-static-sd was given.
20800 if test "${enable_static_sd+set}" = set; then :
20801 enableval=$enable_static_sd;
20802 if test x$enableval = xyes; then
20803 if test x$use_libtool = xyes; then
20804 as_fn_error "Libtool is enabled, not compatible with static tools,
20805 please rerun configure with --disable-libtool" "$LINENO" 5
20807 support_static_sd=yes
20815 if test x$support_static_sd = xyes; then
20816 STATIC_SD="static-bacula-sd"
20820 # Check whether --enable-static-dir was given.
20821 if test "${enable_static_dir+set}" = set; then :
20822 enableval=$enable_static_dir;
20823 if test x$enableval = xyes; then
20824 if test x$use_libtool = xyes; then
20825 as_fn_error "Libtool is enabled, not compatible with static tools,
20826 please rerun configure with --disable-libtool" "$LINENO" 5
20828 support_static_dir=yes
20836 if test x$support_static_dir = xyes; then
20837 STATIC_DIR="static-bacula-dir"
20841 # Check whether --enable-static-cons was given.
20842 if test "${enable_static_cons+set}" = set; then :
20843 enableval=$enable_static_cons;
20844 if test x$enableval = xyes; then
20845 if test x$use_libtool = xyes; then
20846 as_fn_error "Libtool is enabled, not compatible with static tools,
20847 please rerun configure with --disable-libtool" "$LINENO" 5
20849 support_static_cons=yes
20859 if test x$support_static_cons = xyes; then
20860 STATIC_CONS="static-bconsole"
20861 STATIC_GNOME_CONS="static-bgnome-console"
20862 STATIC_WX_CONS="static-bwx-console"
20868 # Check whether --enable-client-only was given.
20869 if test "${enable_client_only+set}" = set; then :
20870 enableval=$enable_client_only;
20871 if test x$enableval = xyes; then
20872 build_client_only=yes
20880 if test x$build_client_only = xno; then
20887 # Check whether --enable-build-dird was given.
20888 if test "${enable_build_dird+set}" = set; then :
20889 enableval=$enable_build_dird;
20890 if test x$enableval = xno; then
20897 if test x$build_dird = xyes; then
20898 DIRD_DIR="src/dird"
20899 DIR_TOOLS="DIRTOOLS"
20902 DIR_TOOLS="NODIRTOOLS"
20907 # Check whether --enable-build-stored was given.
20908 if test "${enable_build_stored+set}" = set; then :
20909 enableval=$enable_build_stored;
20910 if test x$enableval = xno; then
20917 if test x$build_stored = xyes; then
20918 STORED_DIR="src/stored"
20924 # Check whether --enable-conio was given.
20925 if test "${enable_conio+set}" = set; then :
20926 enableval=$enable_conio;
20927 if test x$enableval = xno; then
20937 # Check whether --enable-ipv6 was given.
20938 if test "${enable_ipv6+set}" = set; then :
20939 enableval=$enable_ipv6;
20940 if test x$enableval = xno; then
20948 if test x$support_ipv6 = xyes; then
20949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20950 /* end confdefs.h. */
20951 #include <sys/types.h>
20952 #include <sys/socket.h>
20953 #include <netinet/in.h>
20957 struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] = 0;
20962 if ac_fn_c_try_link "$LINENO"; then :
20967 rm -f core conftest.err conftest.$ac_objext \
20968 conftest$ac_exeext conftest.$ac_ext
20971 if test x$support_ipv6 = xyes; then
20973 $as_echo "#define HAVE_IPV6 1" >>confdefs.h
20978 ac_fn_c_check_header_mongrel "$LINENO" "curses.h" "ac_cv_header_curses_h" "$ac_includes_default"
20979 if test "x$ac_cv_header_curses_h" = x""yes; then :
20980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lncurses" >&5
20981 $as_echo_n "checking for tgetent in -lncurses... " >&6; }
20982 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then :
20983 $as_echo_n "(cached) " >&6
20985 ac_check_lib_save_LIBS=$LIBS
20986 LIBS="-lncurses $LIBS"
20987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20988 /* end confdefs.h. */
20990 /* Override any GCC internal prototype to avoid an error.
20991 Use char because int might match the return type of a GCC
20992 builtin and then its argument prototype would still apply. */
21005 if ac_fn_c_try_link "$LINENO"; then :
21006 ac_cv_lib_ncurses_tgetent=yes
21008 ac_cv_lib_ncurses_tgetent=no
21010 rm -f core conftest.err conftest.$ac_objext \
21011 conftest$ac_exeext conftest.$ac_ext
21012 LIBS=$ac_check_lib_save_LIBS
21014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_tgetent" >&5
21015 $as_echo "$ac_cv_lib_ncurses_tgetent" >&6; }
21016 if test "x$ac_cv_lib_ncurses_tgetent" = x""yes; then :
21017 TERM_LIB="-lncurses"
21019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltermcap" >&5
21020 $as_echo_n "checking for tgetent in -ltermcap... " >&6; }
21021 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then :
21022 $as_echo_n "(cached) " >&6
21024 ac_check_lib_save_LIBS=$LIBS
21025 LIBS="-ltermcap $LIBS"
21026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21027 /* end confdefs.h. */
21029 /* Override any GCC internal prototype to avoid an error.
21030 Use char because int might match the return type of a GCC
21031 builtin and then its argument prototype would still apply. */
21044 if ac_fn_c_try_link "$LINENO"; then :
21045 ac_cv_lib_termcap_tgetent=yes
21047 ac_cv_lib_termcap_tgetent=no
21049 rm -f core conftest.err conftest.$ac_objext \
21050 conftest$ac_exeext conftest.$ac_ext
21051 LIBS=$ac_check_lib_save_LIBS
21053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_termcap_tgetent" >&5
21054 $as_echo "$ac_cv_lib_termcap_tgetent" >&6; }
21055 if test "x$ac_cv_lib_termcap_tgetent" = x""yes; then :
21056 TERM_LIB="-ltermcap"
21064 for ac_header in curses.h
21066 ac_fn_c_check_header_mongrel "$LINENO" "curses.h" "ac_cv_header_curses_h" "$ac_includes_default"
21067 if test "x$ac_cv_header_curses_h" = x""yes; then :
21068 cat >>confdefs.h <<_ACEOF
21069 #define HAVE_CURSES_H 1
21076 ac_fn_c_check_header_mongrel "$LINENO" "term.h" "ac_cv_header_term_h" "$ac_includes_default"
21077 if test "x$ac_cv_header_term_h" = x""yes; then :
21078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lcurses" >&5
21079 $as_echo_n "checking for tgetent in -lcurses... " >&6; }
21080 if test "${ac_cv_lib_curses_tgetent+set}" = set; then :
21081 $as_echo_n "(cached) " >&6
21083 ac_check_lib_save_LIBS=$LIBS
21084 LIBS="-lcurses $LIBS"
21085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21086 /* end confdefs.h. */
21088 /* Override any GCC internal prototype to avoid an error.
21089 Use char because int might match the return type of a GCC
21090 builtin and then its argument prototype would still apply. */
21103 if ac_fn_c_try_link "$LINENO"; then :
21104 ac_cv_lib_curses_tgetent=yes
21106 ac_cv_lib_curses_tgetent=no
21108 rm -f core conftest.err conftest.$ac_objext \
21109 conftest$ac_exeext conftest.$ac_ext
21110 LIBS=$ac_check_lib_save_LIBS
21112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_tgetent" >&5
21113 $as_echo "$ac_cv_lib_curses_tgetent" >&6; }
21114 if test "x$ac_cv_lib_curses_tgetent" = x""yes; then :
21115 TERM_LIB="-lcurses"
21129 if test x$support_conio = xyes; then
21130 if test x$TERM_LIB != x; then
21131 CONS_LIBS=$TERM_LIB
21135 support_readline=no
21137 $as_echo "#define HAVE_CONIO 1" >>confdefs.h
21140 echo " "; echo "Required libraries not found. CONIO turned off ..."; echo " "],
21145 # Check whether --enable-readline was given.
21146 if test "${enable_readline+set}" = set; then :
21147 enableval=$enable_readline;
21148 if test x$enableval = xno; then
21149 support_readline=no
21155 if test x$TERM_LIB = x ; then
21156 support_readline=no
21161 if test x$support_readline = xyes; then
21163 # Check whether --with-readline was given.
21164 if test "${with_readline+set}" = set; then :
21165 withval=$with_readline;
21166 case "$with_readline" in
21171 if test -f ${with_readline}/readline.h; then
21172 CONS_INC="-I${with_readline}"
21173 CONS_LDFLAGS="-L$with_readline"
21174 elif test -f ${with_readline}/include/readline/readline.h; then
21175 CONS_INC="-I${with_readline}/include/readline"
21176 CONS_LDFLAGS="-L${with_readline}/lib"
21177 with_readline="${with_readline}/include/readline"
21179 with_readline="/usr/include/readline"
21182 as_ac_Header=`$as_echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
21183 ac_fn_c_check_header_mongrel "$LINENO" "${with_readline}/readline.h" "$as_ac_Header" "$ac_includes_default"
21184 eval as_val=\$$as_ac_Header
21185 if test "x$as_val" = x""yes; then :
21188 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
21190 CONS_LIBS="-lreadline -lhistory $TERM_LIB"
21196 echo "readline.h not found. readline turned off ..."
21208 ac_fn_c_check_header_mongrel "$LINENO" "/usr/include/readline/readline.h" "ac_cv_header__usr_include_readline_readline_h" "$ac_includes_default"
21209 if test "x$ac_cv_header__usr_include_readline_readline_h" = x""yes; then :
21212 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
21215 CONS_INC="-I/usr/include/readline"
21216 CONS_LIBS="-lreadline $TERM_LIB"
21220 as_ac_Header=`$as_echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
21221 ac_fn_c_check_header_mongrel "$LINENO" "${TOP_DIR}/depkgs/readline/readline.h" "$as_ac_Header" "$ac_includes_default"
21222 eval as_val=\$$as_ac_Header
21223 if test "x$as_val" = x""yes; then :
21226 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
21229 CONS_INC="-I${TOP_DIR}/depkgs/readline"
21230 CONS_LIBS="-lreadline -lhistory $TERM_LIB"
21231 CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
21232 PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
21237 echo "readline.h not found. readline turned off ..."
21264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
21265 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
21266 if test "${ac_cv_header_stat_broken+set}" = set; then :
21267 $as_echo_n "(cached) " >&6
21269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21270 /* end confdefs.h. */
21271 #include <sys/types.h>
21272 #include <sys/stat.h>
21274 #if defined S_ISBLK && defined S_IFDIR
21275 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
21278 #if defined S_ISBLK && defined S_IFCHR
21279 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
21282 #if defined S_ISLNK && defined S_IFREG
21283 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
21286 #if defined S_ISSOCK && defined S_IFREG
21287 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
21291 if ac_fn_c_try_compile "$LINENO"; then :
21292 ac_cv_header_stat_broken=no
21294 ac_cv_header_stat_broken=yes
21296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
21299 $as_echo "$ac_cv_header_stat_broken" >&6; }
21300 if test $ac_cv_header_stat_broken = yes; then
21302 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
21306 ac_header_dirent=no
21307 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
21308 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
21309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
21310 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
21311 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
21312 $as_echo_n "(cached) " >&6
21314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21315 /* end confdefs.h. */
21316 #include <sys/types.h>
21328 if ac_fn_c_try_compile "$LINENO"; then :
21329 eval "$as_ac_Header=yes"
21331 eval "$as_ac_Header=no"
21333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21335 eval ac_res=\$$as_ac_Header
21336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21337 $as_echo "$ac_res" >&6; }
21338 eval as_val=\$$as_ac_Header
21339 if test "x$as_val" = x""yes; then :
21340 cat >>confdefs.h <<_ACEOF
21341 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
21344 ac_header_dirent=$ac_hdr; break
21348 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
21349 if test $ac_header_dirent = dirent.h; then
21350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
21351 $as_echo_n "checking for library containing opendir... " >&6; }
21352 if test "${ac_cv_search_opendir+set}" = set; then :
21353 $as_echo_n "(cached) " >&6
21355 ac_func_search_save_LIBS=$LIBS
21356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21357 /* end confdefs.h. */
21359 /* Override any GCC internal prototype to avoid an error.
21360 Use char because int might match the return type of a GCC
21361 builtin and then its argument prototype would still apply. */
21374 for ac_lib in '' dir; do
21375 if test -z "$ac_lib"; then
21376 ac_res="none required"
21379 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21381 if ac_fn_c_try_link "$LINENO"; then :
21382 ac_cv_search_opendir=$ac_res
21384 rm -f core conftest.err conftest.$ac_objext \
21386 if test "${ac_cv_search_opendir+set}" = set; then :
21390 if test "${ac_cv_search_opendir+set}" = set; then :
21393 ac_cv_search_opendir=no
21395 rm conftest.$ac_ext
21396 LIBS=$ac_func_search_save_LIBS
21398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
21399 $as_echo "$ac_cv_search_opendir" >&6; }
21400 ac_res=$ac_cv_search_opendir
21401 if test "$ac_res" != no; then :
21402 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
21408 $as_echo_n "checking for library containing opendir... " >&6; }
21409 if test "${ac_cv_search_opendir+set}" = set; then :
21410 $as_echo_n "(cached) " >&6
21412 ac_func_search_save_LIBS=$LIBS
21413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21414 /* end confdefs.h. */
21416 /* Override any GCC internal prototype to avoid an error.
21417 Use char because int might match the return type of a GCC
21418 builtin and then its argument prototype would still apply. */
21431 for ac_lib in '' x; do
21432 if test -z "$ac_lib"; then
21433 ac_res="none required"
21436 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21438 if ac_fn_c_try_link "$LINENO"; then :
21439 ac_cv_search_opendir=$ac_res
21441 rm -f core conftest.err conftest.$ac_objext \
21443 if test "${ac_cv_search_opendir+set}" = set; then :
21447 if test "${ac_cv_search_opendir+set}" = set; then :
21450 ac_cv_search_opendir=no
21452 rm conftest.$ac_ext
21453 LIBS=$ac_func_search_save_LIBS
21455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
21456 $as_echo "$ac_cv_search_opendir" >&6; }
21457 ac_res=$ac_cv_search_opendir
21458 if test "$ac_res" != no; then :
21459 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21465 for ac_func in strcasecmp select setenv putenv tcgetattr lstat lchown
21467 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21468 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21469 eval as_val=\$$as_ac_var
21470 if test "x$as_val" = x""yes; then :
21471 cat >>confdefs.h <<_ACEOF
21472 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21478 for ac_func in nanosleep nl_langinfo
21480 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21481 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21482 eval as_val=\$$as_ac_var
21483 if test "x$as_val" = x""yes; then :
21484 cat >>confdefs.h <<_ACEOF
21485 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21491 for ac_header in varargs.h
21493 ac_fn_c_check_header_mongrel "$LINENO" "varargs.h" "ac_cv_header_varargs_h" "$ac_includes_default"
21494 if test "x$ac_cv_header_varargs_h" = x""yes; then :
21495 cat >>confdefs.h <<_ACEOF
21496 #define HAVE_VARARGS_H 1
21505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python support" >&5
21506 $as_echo_n "checking for Python support... " >&6; }
21508 # Check whether --with-python was given.
21509 if test "${with_python+set}" = set; then :
21510 withval=$with_python;
21513 if test "$withval" != "no"; then
21514 if test "$withval" = "yes"; then
21515 if test -e /usr/bin/python-config ; then
21516 PYTHON_INCDIR=`/usr/bin/python-config --includes`
21517 PYTHON_LIBS=`/usr/bin/python-config --libs`
21519 for python_root in /usr /usr/local /usr/sfw; do
21520 for ver in python2.2 python2.3 python2.4 python2.5 python2.6 python3; do
21521 if test -f $python_root/include/${ver}/Python.h; then
21522 PYTHON_INCDIR=-I$python_root/include/${ver}
21523 if test -d $python_root/lib64/${ver}/config; then
21524 PYTHON_LIBS="-L$python_root/lib64/${ver}/config -l${ver}"
21526 PYTHON_LIBS="-L$python_root/lib/${ver}/config -l${ver}"
21533 if test x$PYTHON_INCDIR = x; then
21534 if test -f $prefix/include/Python.h; then
21535 PYTHON_INCDIR=-I$prefix/include
21536 if test -d $prefix/lib64/config; then
21537 PYTHON_LIBS="-L$prefix/lib64/config -lpython"
21539 PYTHON_LIBS="-L$prefix/lib/config -lpython"
21542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21543 $as_echo "no" >&6; }
21544 as_fn_error "Unable to find Python.h in standard locations" "$LINENO" 5
21549 if test -e $withval/bin/python-config ; then
21550 PYTHON_INCDIR=`$withval/bin/python-config --includes`
21551 PYTHON_LIBS=`$withval/bin/python-config --libs`
21552 elif test -f $withval/Python.h; then
21553 PYTHON_INCDIR=-I$withval
21554 PYTHON_LIBS="-L$withval/config -lpython"
21555 elif test -f $withval/include/Python.h; then
21556 PYTHON_INCDIR=-I$withval/include
21557 if test -d $withval/lib64/config; then
21558 PYTHON_LIBS="-L$withval/lib64/config -lpython"
21560 PYTHON_LIBS="-L$withval/lib/config -lpython"
21562 elif test -f $withval/include/python/Python.h; then
21563 PYTHON_INCDIR=-I$withval/include/python
21564 if test -d $withval/lib64/python/config; then
21565 PYTHON_LIBS="-L$withval/lib64/python/config -lpython"
21567 PYTHON_LIBS="-L$withval/lib/python/config -lpython"
21570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21571 $as_echo "no" >&6; }
21572 as_fn_error "Invalid Python directory $withval - unable to find Python.h under $withval" "$LINENO" 5
21576 $as_echo "#define HAVE_PYTHON 1" >>confdefs.h
21578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21579 $as_echo "yes" >&6; }
21581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for more Python libs" >&5
21582 $as_echo "$as_me: checking for more Python libs" >&6;}
21583 saved_LIBS="$LIBS"; LIBS=
21584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing shm_open" >&5
21585 $as_echo_n "checking for library containing shm_open... " >&6; }
21586 if test "${ac_cv_search_shm_open+set}" = set; then :
21587 $as_echo_n "(cached) " >&6
21589 ac_func_search_save_LIBS=$LIBS
21590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21591 /* end confdefs.h. */
21593 /* Override any GCC internal prototype to avoid an error.
21594 Use char because int might match the return type of a GCC
21595 builtin and then its argument prototype would still apply. */
21603 return shm_open ();
21608 for ac_lib in '' rt; do
21609 if test -z "$ac_lib"; then
21610 ac_res="none required"
21613 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21615 if ac_fn_c_try_link "$LINENO"; then :
21616 ac_cv_search_shm_open=$ac_res
21618 rm -f core conftest.err conftest.$ac_objext \
21620 if test "${ac_cv_search_shm_open+set}" = set; then :
21624 if test "${ac_cv_search_shm_open+set}" = set; then :
21627 ac_cv_search_shm_open=no
21629 rm conftest.$ac_ext
21630 LIBS=$ac_func_search_save_LIBS
21632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_shm_open" >&5
21633 $as_echo "$ac_cv_search_shm_open" >&6; }
21634 ac_res=$ac_cv_search_shm_open
21635 if test "$ac_res" != no; then :
21636 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openpty in -lutil" >&5
21641 $as_echo_n "checking for openpty in -lutil... " >&6; }
21642 if test "${ac_cv_lib_util_openpty+set}" = set; then :
21643 $as_echo_n "(cached) " >&6
21645 ac_check_lib_save_LIBS=$LIBS
21646 LIBS="-lutil $LIBS"
21647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21648 /* end confdefs.h. */
21650 /* Override any GCC internal prototype to avoid an error.
21651 Use char because int might match the return type of a GCC
21652 builtin and then its argument prototype would still apply. */
21665 if ac_fn_c_try_link "$LINENO"; then :
21666 ac_cv_lib_util_openpty=yes
21668 ac_cv_lib_util_openpty=no
21670 rm -f core conftest.err conftest.$ac_objext \
21671 conftest$ac_exeext conftest.$ac_ext
21672 LIBS=$ac_check_lib_save_LIBS
21674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_openpty" >&5
21675 $as_echo "$ac_cv_lib_util_openpty" >&6; }
21676 if test "x$ac_cv_lib_util_openpty" = x""yes; then :
21677 cat >>confdefs.h <<_ACEOF
21678 #define HAVE_LIBUTIL 1
21681 LIBS="-lutil $LIBS"
21685 PYTHON_LIBS="$PYTHON_LIBS $LIBS"
21688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21689 $as_echo "no" >&6; }
21694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21695 $as_echo "no" >&6; }
21703 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
21704 if test "x$ac_cv_func_socket" = x""yes; then :
21705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using libc's socket" >&5
21706 $as_echo "using libc's socket" >&6; }
21708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lxnet" >&5
21709 $as_echo_n "checking for socket in -lxnet... " >&6; }
21710 if test "${ac_cv_lib_xnet_socket+set}" = set; then :
21711 $as_echo_n "(cached) " >&6
21713 ac_check_lib_save_LIBS=$LIBS
21714 LIBS="-lxnet $LIBS"
21715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21716 /* end confdefs.h. */
21718 /* Override any GCC internal prototype to avoid an error.
21719 Use char because int might match the return type of a GCC
21720 builtin and then its argument prototype would still apply. */
21733 if ac_fn_c_try_link "$LINENO"; then :
21734 ac_cv_lib_xnet_socket=yes
21736 ac_cv_lib_xnet_socket=no
21738 rm -f core conftest.err conftest.$ac_objext \
21739 conftest$ac_exeext conftest.$ac_ext
21740 LIBS=$ac_check_lib_save_LIBS
21742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xnet_socket" >&5
21743 $as_echo "$ac_cv_lib_xnet_socket" >&6; }
21744 if test "x$ac_cv_lib_xnet_socket" = x""yes; then :
21745 cat >>confdefs.h <<_ACEOF
21746 #define HAVE_LIBXNET 1
21749 LIBS="-lxnet $LIBS"
21753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
21754 $as_echo_n "checking for socket in -lsocket... " >&6; }
21755 if test "${ac_cv_lib_socket_socket+set}" = set; then :
21756 $as_echo_n "(cached) " >&6
21758 ac_check_lib_save_LIBS=$LIBS
21759 LIBS="-lsocket $LIBS"
21760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21761 /* end confdefs.h. */
21763 /* Override any GCC internal prototype to avoid an error.
21764 Use char because int might match the return type of a GCC
21765 builtin and then its argument prototype would still apply. */
21778 if ac_fn_c_try_link "$LINENO"; then :
21779 ac_cv_lib_socket_socket=yes
21781 ac_cv_lib_socket_socket=no
21783 rm -f core conftest.err conftest.$ac_objext \
21784 conftest$ac_exeext conftest.$ac_ext
21785 LIBS=$ac_check_lib_save_LIBS
21787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
21788 $as_echo "$ac_cv_lib_socket_socket" >&6; }
21789 if test "x$ac_cv_lib_socket_socket" = x""yes; then :
21790 cat >>confdefs.h <<_ACEOF
21791 #define HAVE_LIBSOCKET 1
21794 LIBS="-lsocket $LIBS"
21798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -linet" >&5
21799 $as_echo_n "checking for socket in -linet... " >&6; }
21800 if test "${ac_cv_lib_inet_socket+set}" = set; then :
21801 $as_echo_n "(cached) " >&6
21803 ac_check_lib_save_LIBS=$LIBS
21804 LIBS="-linet $LIBS"
21805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21806 /* end confdefs.h. */
21808 /* Override any GCC internal prototype to avoid an error.
21809 Use char because int might match the return type of a GCC
21810 builtin and then its argument prototype would still apply. */
21823 if ac_fn_c_try_link "$LINENO"; then :
21824 ac_cv_lib_inet_socket=yes
21826 ac_cv_lib_inet_socket=no
21828 rm -f core conftest.err conftest.$ac_objext \
21829 conftest$ac_exeext conftest.$ac_ext
21830 LIBS=$ac_check_lib_save_LIBS
21832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_inet_socket" >&5
21833 $as_echo "$ac_cv_lib_inet_socket" >&6; }
21834 if test "x$ac_cv_lib_inet_socket" = x""yes; then :
21835 cat >>confdefs.h <<_ACEOF
21836 #define HAVE_LIBINET 1
21839 LIBS="-linet $LIBS"
21849 # Check whether --with-tcp-wrappers was given.
21850 if test "${with_tcp_wrappers+set}" = set; then :
21851 withval=$with_tcp_wrappers;
21852 if test "x$withval" != "xno" ; then
21854 LIBS="$saved_LIBS -lwrap"
21855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nanosleep" >&5
21856 $as_echo_n "checking for library containing nanosleep... " >&6; }
21857 if test "${ac_cv_search_nanosleep+set}" = set; then :
21858 $as_echo_n "(cached) " >&6
21860 ac_func_search_save_LIBS=$LIBS
21861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21862 /* end confdefs.h. */
21864 /* Override any GCC internal prototype to avoid an error.
21865 Use char because int might match the return type of a GCC
21866 builtin and then its argument prototype would still apply. */
21874 return nanosleep ();
21879 for ac_lib in '' rt; do
21880 if test -z "$ac_lib"; then
21881 ac_res="none required"
21884 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21886 if ac_fn_c_try_link "$LINENO"; then :
21887 ac_cv_search_nanosleep=$ac_res
21889 rm -f core conftest.err conftest.$ac_objext \
21891 if test "${ac_cv_search_nanosleep+set}" = set; then :
21895 if test "${ac_cv_search_nanosleep+set}" = set; then :
21898 ac_cv_search_nanosleep=no
21900 rm conftest.$ac_ext
21901 LIBS=$ac_func_search_save_LIBS
21903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nanosleep" >&5
21904 $as_echo "$ac_cv_search_nanosleep" >&6; }
21905 ac_res=$ac_cv_search_nanosleep
21906 if test "$ac_res" != no; then :
21907 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libwrap" >&5
21912 $as_echo_n "checking for libwrap... " >&6; }
21913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21914 /* end confdefs.h. */
21916 #include <sys/types.h>
21918 int deny_severity = 0;
21919 int allow_severity = 0;
21920 struct request_info *req;
21932 if ac_fn_c_try_link "$LINENO"; then :
21934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21935 $as_echo "yes" >&6; }
21937 $as_echo "#define HAVE_LIBWRAP 1" >>confdefs.h
21945 LIBS="$saved_LIBS -lwrap -lnsl"
21946 WRAPLIBS="$saved_LIBS -lwrap -lnsl"
21947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21948 /* end confdefs.h. */
21950 #include <sys/types.h>
21952 int deny_severity = 0;
21953 int allow_severity = 0;
21954 struct request_info *req;
21966 if ac_fn_c_try_link "$LINENO"; then :
21968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21969 $as_echo "yes" >&6; }
21971 $as_echo "#define HAVE_LIBWRAP 1" >>confdefs.h
21979 as_fn_error "*** libwrap missing" "$LINENO" 5
21983 rm -f core conftest.err conftest.$ac_objext \
21984 conftest$ac_exeext conftest.$ac_ext
21988 rm -f core conftest.err conftest.$ac_objext \
21989 conftest$ac_exeext conftest.$ac_ext
21996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL" >&5
21997 $as_echo_n "checking for OpenSSL... " >&6; }
21999 # Check whether --with-openssl was given.
22000 if test "${with_openssl+set}" = set; then :
22001 withval=$with_openssl;
22002 with_openssl_directory=${withval}
22008 if test "x$with_openssl_directory" != "xno"; then
22009 OPENSSL_LIBS="-lssl -lcrypto"
22012 if test "x$with_openssl_directory" != "xyes" && test x"${with_openssl_directory}" != "x"; then
22014 # Make sure the $with_openssl_directory also makes sense
22016 if test -d "$with_openssl_directory/lib" -a -d "$with_openssl_directory/include"; then
22017 OPENSSL_LIBS="-L$with_openssl_directory/lib $OPENSSL_LIBS"
22018 OPENSSL_INC="-I$with_openssl_directory/include $OPENSSL_INC"
22022 saved_LIBS="${LIBS}"
22023 saved_CFLAGS="${CFLAGS}"
22024 LIBS="${saved_LIBS} ${OPENSSL_LIBS}"
22025 CFLAGS="${saved_CFLAGS} ${OPENSSL_INC}"
22027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22028 /* end confdefs.h. */
22030 #include <openssl/ssl.h>
22036 CRYPTO_set_id_callback(NULL);
22042 if ac_fn_c_try_link "$LINENO"; then :
22045 support_crypto="yes"
22050 support_crypto="no"
22054 rm -f core conftest.err conftest.$ac_objext \
22055 conftest$ac_exeext conftest.$ac_ext
22057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22058 /* end confdefs.h. */
22060 #include <openssl/evp.h>
22072 if ac_fn_c_try_link "$LINENO"; then :
22074 ac_cv_openssl_sha2="yes"
22078 ac_cv_openssl_sha2="no"
22082 rm -f core conftest.err conftest.$ac_objext \
22083 conftest$ac_exeext conftest.$ac_ext
22085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22086 /* end confdefs.h. */
22088 #include <openssl/evp.h>
22100 if ac_fn_c_try_link "$LINENO"; then :
22102 ac_cv_openssl_export="no"
22106 ac_cv_openssl_export="yes"
22110 rm -f core conftest.err conftest.$ac_objext \
22111 conftest$ac_exeext conftest.$ac_ext
22113 if test "$support_tls" = "yes"; then
22115 $as_echo "#define HAVE_OPENSSL 1" >>confdefs.h
22118 $as_echo "#define HAVE_TLS 1" >>confdefs.h
22121 $as_echo "#define HAVE_CRYPTO 1" >>confdefs.h
22125 if test "$ac_cv_openssl_sha2" = "yes"; then
22127 $as_echo "#define HAVE_SHA2 1" >>confdefs.h
22131 if test "$ac_cv_openssl_export" = "yes"; then
22133 $as_echo "#define HAVE_OPENSSL_EXPORT_LIBRARY 1" >>confdefs.h
22137 if test "$support_crypto" = "yes"; then
22138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVP_PKEY_encrypt_old in -lssl" >&5
22139 $as_echo_n "checking for EVP_PKEY_encrypt_old in -lssl... " >&6; }
22140 if test "${ac_cv_lib_ssl_EVP_PKEY_encrypt_old+set}" = set; then :
22141 $as_echo_n "(cached) " >&6
22143 ac_check_lib_save_LIBS=$LIBS
22145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22146 /* end confdefs.h. */
22148 /* Override any GCC internal prototype to avoid an error.
22149 Use char because int might match the return type of a GCC
22150 builtin and then its argument prototype would still apply. */
22154 char EVP_PKEY_encrypt_old ();
22158 return EVP_PKEY_encrypt_old ();
22163 if ac_fn_c_try_link "$LINENO"; then :
22164 ac_cv_lib_ssl_EVP_PKEY_encrypt_old=yes
22166 ac_cv_lib_ssl_EVP_PKEY_encrypt_old=no
22168 rm -f core conftest.err conftest.$ac_objext \
22169 conftest$ac_exeext conftest.$ac_ext
22170 LIBS=$ac_check_lib_save_LIBS
22172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_EVP_PKEY_encrypt_old" >&5
22173 $as_echo "$ac_cv_lib_ssl_EVP_PKEY_encrypt_old" >&6; }
22174 if test "x$ac_cv_lib_ssl_EVP_PKEY_encrypt_old" = x""yes; then :
22176 $as_echo "#define HAVE_OPENSSLv1 1" >>confdefs.h
22182 LIBS="${saved_LIBS}"
22183 CFLAGS="${saved_CFLAGS}"
22186 support_crypto="no"
22190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $support_tls" >&5
22191 $as_echo "$support_tls" >&6; }
22193 if test "$support_tls" = "no"; then
22197 if test "$support_crypto" = "no"; then
22205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
22206 $as_echo_n "checking for library containing dlopen... " >&6; }
22207 if test "${ac_cv_search_dlopen+set}" = set; then :
22208 $as_echo_n "(cached) " >&6
22210 ac_func_search_save_LIBS=$LIBS
22211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22212 /* end confdefs.h. */
22214 /* Override any GCC internal prototype to avoid an error.
22215 Use char because int might match the return type of a GCC
22216 builtin and then its argument prototype would still apply. */
22229 for ac_lib in '' dl; do
22230 if test -z "$ac_lib"; then
22231 ac_res="none required"
22234 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22236 if ac_fn_c_try_link "$LINENO"; then :
22237 ac_cv_search_dlopen=$ac_res
22239 rm -f core conftest.err conftest.$ac_objext \
22241 if test "${ac_cv_search_dlopen+set}" = set; then :
22245 if test "${ac_cv_search_dlopen+set}" = set; then :
22248 ac_cv_search_dlopen=no
22250 rm conftest.$ac_ext
22251 LIBS=$ac_func_search_save_LIBS
22253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
22254 $as_echo "$ac_cv_search_dlopen" >&6; }
22255 ac_res=$ac_cv_search_dlopen
22256 if test "$ac_res" != no; then :
22257 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22262 working_dir=`eval echo ${prefix}/var/bacula/working`
22264 # Check whether --with-working-dir was given.
22265 if test "${with_working_dir+set}" = set; then :
22266 withval=$with_working_dir;
22267 if test "x$withval" != "xno" ; then
22268 working_dir=$withval
22279 # Check whether --with-archivedir was given.
22280 if test "${with_archivedir+set}" = set; then :
22281 withval=$with_archivedir;
22282 if test "x$withval" != "xno" ; then
22283 archivedir=$withval
22292 basename=`hostname`
22294 # Check whether --with-basename was given.
22295 if test "${with_basename+set}" = set; then :
22296 withval=$with_basename;
22297 if test "x$withval" != "xno" ; then
22307 hostname=`uname -n | cut -d '.' -f 1`
22308 if test x${hostname} = x ; then
22309 hostname="localhost"
22312 # Check whether --with-hostname was given.
22313 if test "${with_hostname+set}" = set; then :
22314 withval=$with_hostname;
22315 if test "x$withval" != "xno" ; then
22326 scriptdir=`eval echo ${sysconfdir}`
22328 # Check whether --with-scriptdir was given.
22329 if test "${with_scriptdir+set}" = set; then :
22330 withval=$with_scriptdir;
22331 if test "x$withval" != "xno" ; then
22344 # Check whether --with-bsrdir was given.
22345 if test "${with_bsrdir+set}" = set; then :
22346 withval=$with_bsrdir;
22347 if test "x$withval" != "xno" ; then
22359 # Check whether --with-logdir was given.
22360 if test "${with_logdir+set}" = set; then :
22361 withval=$with_logdir;
22362 if test "x$withval" != "xno" ; then
22373 # ------------------------------------------
22374 # Where to place plugindir (plugin files)
22375 # ------------------------------------------
22376 plugindir=`eval echo ${libdir}`
22378 # Check whether --with-plugindir was given.
22379 if test "${with_plugindir+set}" = set; then :
22380 withval=$with_plugindir;
22381 if test "x$withval" != "xno" ; then
22391 dump_email=root@localhost
22393 # Check whether --with-dump-email was given.
22394 if test "${with_dump_email+set}" = set; then :
22395 withval=$with_dump_email;
22396 if test "x$withval" != "xno" ; then
22397 dump_email=$withval
22406 job_email=root@localhost
22408 # Check whether --with-job-email was given.
22409 if test "${with_job_email+set}" = set; then :
22410 withval=$with_job_email;
22411 if test "x$withval" != "xno" ; then
22421 smtp_host=localhost
22423 # Check whether --with-smtp_host was given.
22424 if test "${with_smtp_host+set}" = set; then :
22425 withval=$with_smtp_host;
22426 if test "x$withval" != "xno" ; then
22438 # Check whether --with-pid-dir was given.
22439 if test "${with_pid_dir+set}" = set; then :
22440 withval=$with_pid_dir;
22441 if test "x$withval" != "xno" ; then
22449 cat >>confdefs.h <<_ACEOF
22450 #define _PATH_BACULA_PIDDIR "$piddir"
22455 subsysdir=/var/run/subsys
22456 if test -d /var/run/subsys; then
22457 subsysdir=/var/run/subsys
22458 elif test -d /var/lock/subsys; then
22459 subsysdir=/var/lock/subsys
22461 subsysdir=/var/run/subsys
22464 # Check whether --with-subsys-dir was given.
22465 if test "${with_subsys_dir+set}" = set; then :
22466 withval=$with_subsys_dir;
22467 if test "x$withval" != "xno" ; then
22479 # Check whether --with-baseport was given.
22480 if test "${with_baseport+set}" = set; then :
22481 withval=$with_baseport;
22482 if test "x$withval" != "xno" ; then
22491 dir_port=`expr $baseport`
22492 fd_port=`expr $baseport + 1`
22493 sd_port=`expr $fd_port + 1`
22501 # Check whether --with-dir-password was given.
22502 if test "${with_dir_password+set}" = set; then :
22503 withval=$with_dir_password;
22504 if test "x$withval" != "xno" ; then
22505 dir_password=$withval
22512 if test "x$dir_password" = "x" ; then
22513 if test "x$OPENSSL" = "xnone" ; then
22514 key=`autoconf/randpass 33`
22516 key=`openssl rand -base64 33`
22523 # Check whether --with-fd-password was given.
22524 if test "${with_fd_password+set}" = set; then :
22525 withval=$with_fd_password;
22526 if test "x$withval" != "xno" ; then
22527 fd_password=$withval
22534 if test "x$fd_password" = "x" ; then
22535 if test "x$OPENSSL" = "xnone" ; then
22536 key=`autoconf/randpass 37`
22538 key=`openssl rand -base64 33`
22545 # Check whether --with-sd-password was given.
22546 if test "${with_sd_password+set}" = set; then :
22547 withval=$with_sd_password;
22548 if test "x$withval" != "xno" ; then
22549 sd_password=$withval
22556 if test "x$sd_password" = "x" ; then
22557 if test "x$OPENSSL" = "xnone" ; then
22558 key=`autoconf/randpass 41`
22560 key=`openssl rand -base64 33`
22567 # Check whether --with-mon-dir-password was given.
22568 if test "${with_mon_dir_password+set}" = set; then :
22569 withval=$with_mon_dir_password;
22570 if test "x$withval" != "xno" ; then
22571 mon_dir_password=$withval
22578 if test "x$mon_dir_password" = "x" ; then
22579 if test "x$OPENSSL" = "xnone" ; then
22580 key=`autoconf/randpass 33`
22582 key=`openssl rand -base64 33`
22584 mon_dir_password=$key
22589 # Check whether --with-mon-fd-password was given.
22590 if test "${with_mon_fd_password+set}" = set; then :
22591 withval=$with_mon_fd_password;
22592 if test "x$withval" != "xno" ; then
22593 mon_fd_password=$withval
22600 if test "x$mon_fd_password" = "x" ; then
22601 if test "x$OPENSSL" = "xnone" ; then
22602 key=`autoconf/randpass 37`
22604 key=`openssl rand -base64 33`
22606 mon_fd_password=$key
22611 # Check whether --with-mon-sd-password was given.
22612 if test "${with_mon_sd_password+set}" = set; then :
22613 withval=$with_mon_sd_password;
22614 if test "x$withval" != "xno" ; then
22615 mon_sd_password=$withval
22622 if test "x$mon_sd_password" = "x" ; then
22623 if test "x$OPENSSL" = "xnone" ; then
22624 key=`autoconf/randpass 41`
22626 key=`openssl rand -base64 33`
22628 mon_sd_password=$key
22640 # Check whether --with-db_name was given.
22641 if test "${with_db_name+set}" = set; then :
22642 withval=$with_db_name;
22643 if test "x$withval" != "x" ; then
22654 # Check whether --with-db_user was given.
22655 if test "${with_db_user+set}" = set; then :
22656 withval=$with_db_user;
22657 if test "x$withval" != "x" ; then
22668 # Check whether --with-db_password was given.
22669 if test "${with_db_password+set}" = set; then :
22670 withval=$with_db_password;
22671 if test "x$withval" != "x" ; then
22672 db_password=$withval
22682 # Check whether --with-db_port was given.
22683 if test "${with_db_port+set}" = set; then :
22684 withval=$with_db_port;
22685 if test "x$withval" != "x" ; then
22695 # Handle users and groups for each daemon
22699 # Check whether --with-dir_user was given.
22700 if test "${with_dir_user+set}" = set; then :
22701 withval=$with_dir_user;
22702 if test "x$withval" != "x" ; then
22712 # Check whether --with-dir_group was given.
22713 if test "${with_dir_group+set}" = set; then :
22714 withval=$with_dir_group;
22715 if test "x$withval" != "x" ; then
22725 # Check whether --with-sd_user was given.
22726 if test "${with_sd_user+set}" = set; then :
22727 withval=$with_sd_user;
22728 if test "x$withval" != "x" ; then
22738 # Check whether --with-sd_group was given.
22739 if test "${with_sd_group+set}" = set; then :
22740 withval=$with_sd_group;
22741 if test "x$withval" != "x" ; then
22751 # Check whether --with-fd_user was given.
22752 if test "${with_fd_user+set}" = set; then :
22753 withval=$with_fd_user;
22754 if test "x$withval" != "x" ; then
22764 # Check whether --with-fd_group was given.
22765 if test "${with_fd_group+set}" = set; then :
22766 withval=$with_fd_group;
22767 if test "x$withval" != "x" ; then
22784 # Check whether --with-sbin-perm was given.
22785 if test "${with_sbin_perm+set}" = set; then :
22786 withval=$with_sbin_perm;
22787 if test "x$withval" != "x" ; then
22800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PostgreSQL support" >&5
22801 $as_echo_n "checking for PostgreSQL support... " >&6; }
22803 # Check whether --with-postgresql was given.
22804 if test "${with_postgresql+set}" = set; then :
22805 withval=$with_postgresql;
22806 if test "$withval" != "no"; then
22807 if test "$db_found" = "yes"; then
22808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: error" >&5
22809 $as_echo "error" >&6; }
22810 as_fn_error "\"You can configure for only one database.\"" "$LINENO" 5;
22812 if test "$withval" = "yes"; then
22813 PG_CONFIG=`which pg_config`
22814 if test -n "$PG_CONFIG";then
22815 POSTGRESQL_INCDIR=`"$PG_CONFIG" --includedir`
22816 POSTGRESQL_LIBDIR=`"$PG_CONFIG" --libdir`
22817 POSTGRESQL_BINDIR=`"$PG_CONFIG" --bindir`
22818 elif test -f /usr/local/include/libpq-fe.h; then
22819 POSTGRESQL_INCDIR=/usr/local/include
22820 if test -d /usr/local/lib64; then
22821 POSTGRESQL_LIBDIR=/usr/local/lib64
22823 POSTGRESQL_LIBDIR=/usr/local/lib
22825 POSTGRESQL_BINDIR=/usr/local/bin
22826 elif test -f /usr/include/libpq-fe.h; then
22827 POSTGRESQL_INCDIR=/usr/include
22828 if test -d /usr/lib64; then
22829 POSTGRESQL_LIBDIR=/usr/lib64
22831 POSTGRESQL_LIBDIR=/usr/lib
22833 POSTGRESQL_BINDIR=/usr/bin
22834 elif test -f /usr/include/pgsql/libpq-fe.h; then
22835 POSTGRESQL_INCDIR=/usr/include/pgsql
22836 if test -d /usr/lib64/pgsql; then
22837 POSTGRESQL_LIBDIR=/usr/lib64/pgsql
22839 POSTGRESQL_LIBDIR=/usr/lib/pgsql
22841 POSTGRESQL_BINDIR=/usr/bin
22842 elif test -f /usr/include/postgresql/libpq-fe.h; then
22843 POSTGRESQL_INCDIR=/usr/include/postgresql
22844 if test -d /usr/lib64/postgresql; then
22845 POSTGRESQL_LIBDIR=/usr/lib64/postgresql
22847 POSTGRESQL_LIBDIR=/usr/lib/postgresql
22849 POSTGRESQL_BINDIR=/usr/bin
22851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22852 $as_echo "no" >&6; }
22853 as_fn_error "Unable to find libpq-fe.h in standard locations" "$LINENO" 5
22855 elif test -f $withval/include/libpq-fe.h; then
22856 POSTGRESQL_INCDIR=$withval/include
22857 POSTGRESQL_LIBDIR=$withval/lib
22858 POSTGRESQL_BINDIR=$withval/bin
22859 elif test -f $withval/include/postgresql/libpq-fe.h; then
22860 POSTGRESQL_INCDIR=$withval/include/postgresql
22861 if test -d $withval/lib64; then
22862 POSTGRESQL_LIBDIR=$withval/lib64
22864 POSTGRESQL_LIBDIR=$withval/lib
22866 POSTGRESQL_BINDIR=$withval/bin
22868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22869 $as_echo "no" >&6; }
22870 as_fn_error "Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" "$LINENO" 5
22872 $as_echo "#define HAVE_POSTGRESQL 1" >>confdefs.h
22874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22875 $as_echo "yes" >&6; }
22876 POSTGRESQL_LFLAGS="-L$POSTGRESQL_LIBDIR -lpq"
22877 ac_fn_c_check_func "$LINENO" "crypt" "ac_cv_func_crypt"
22878 if test "x$ac_cv_func_crypt" = x""yes; then :
22881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
22882 $as_echo_n "checking for crypt in -lcrypt... " >&6; }
22883 if test "${ac_cv_lib_crypt_crypt+set}" = set; then :
22884 $as_echo_n "(cached) " >&6
22886 ac_check_lib_save_LIBS=$LIBS
22887 LIBS="-lcrypt $LIBS"
22888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22889 /* end confdefs.h. */
22891 /* Override any GCC internal prototype to avoid an error.
22892 Use char because int might match the return type of a GCC
22893 builtin and then its argument prototype would still apply. */
22906 if ac_fn_c_try_link "$LINENO"; then :
22907 ac_cv_lib_crypt_crypt=yes
22909 ac_cv_lib_crypt_crypt=no
22911 rm -f core conftest.err conftest.$ac_objext \
22912 conftest$ac_exeext conftest.$ac_ext
22913 LIBS=$ac_check_lib_save_LIBS
22915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
22916 $as_echo "$ac_cv_lib_crypt_crypt" >&6; }
22917 if test "x$ac_cv_lib_crypt_crypt" = x""yes; then :
22918 POSTGRESQL_LFLAGS="$POSTGRESQL_LFLAGS -lcrypt"
22923 SQL_INCLUDE=-I$POSTGRESQL_INCDIR
22924 SQL_LFLAGS=$POSTGRESQL_LFLAGS
22925 SQL_BINDIR=$POSTGRESQL_BINDIR
22926 SQL_LIB=$POSTGRESQL_LIBDIR/libpq.a
22929 support_postgresql=yes
22933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22934 $as_echo "no" >&6; }
22939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22940 $as_echo "no" >&6; }
22952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MySQL support" >&5
22953 $as_echo_n "checking for MySQL support... " >&6; }
22955 # Check whether --with-mysql was given.
22956 if test "${with_mysql+set}" = set; then :
22957 withval=$with_mysql;
22958 if test "$withval" != "no"; then
22959 if test "$withval" = "yes"; then
22960 if test -f /usr/local/mysql/include/mysql/mysql.h; then
22961 MYSQL_INCDIR=/usr/local/mysql/include/mysql
22962 if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
22963 -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
22964 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
22966 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
22968 MYSQL_BINDIR=/usr/local/mysql/bin
22969 elif test -f /usr/include/mysql/mysql.h; then
22970 MYSQL_INCDIR=/usr/include/mysql
22971 if test -f /usr/lib64/mysql/libmysqlclient_r.a \
22972 -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
22973 MYSQL_LIBDIR=/usr/lib64/mysql
22974 elif test -f /usr/lib64/libmysqlclient_r.a \
22975 -o -f /usr/lib64/libmysqlclient_r.so; then
22976 MYSQL_LIBDIR=/usr/lib64
22977 elif test -f /usr/lib/mysql/libmysqlclient_r.a \
22978 -o -f /usr/lib/mysql/libmysqlclient_r.so; then
22979 MYSQL_LIBDIR=/usr/lib/mysql
22981 MYSQL_LIBDIR=/usr/lib
22983 MYSQL_BINDIR=/usr/bin
22984 elif test -f /usr/include/mysql.h; then
22985 MYSQL_INCDIR=/usr/include
22986 if test -f /usr/lib64/libmysqlclient_r.a \
22987 -o -f /usr/lib64/libmysqlclient_r.so; then
22988 MYSQL_LIBDIR=/usr/lib64
22990 MYSQL_LIBDIR=/usr/lib
22992 MYSQL_BINDIR=/usr/bin
22993 elif test -f /usr/local/include/mysql/mysql.h; then
22994 MYSQL_INCDIR=/usr/local/include/mysql
22995 if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
22996 -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
22997 MYSQL_LIBDIR=/usr/local/lib64/mysql
22999 MYSQL_LIBDIR=/usr/local/lib/mysql
23001 MYSQL_BINDIR=/usr/local/bin
23002 elif test -f /usr/local/include/mysql.h; then
23003 MYSQL_INCDIR=/usr/local/include
23004 if test -f /usr/local/lib64/libmysqlclient_r.a \
23005 -o -f /usr/local/lib64/libmysqlclient_r.so; then
23006 MYSQL_LIBDIR=/usr/local/lib64
23008 MYSQL_LIBDIR=/usr/local/lib
23010 MYSQL_BINDIR=/usr/local/bin
23012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23013 $as_echo "no" >&6; }
23014 as_fn_error "Unable to find mysql.h in standard locations" "$LINENO" 5
23017 if test -f $withval/include/mysql/mysql.h; then
23018 MYSQL_INCDIR=$withval/include/mysql
23019 if test -f $withval/lib64/mysql/libmysqlclient_r.a \
23020 -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
23021 MYSQL_LIBDIR=$withval/lib64/mysql
23022 elif test -f $withval/lib64/libmysqlclient_r.a \
23023 -o -f $withval/lib64/libmysqlclient_r.so; then
23024 MYSQL_LIBDIR=$withval/lib64
23025 elif test -f $withval/lib/libmysqlclient_r.a \
23026 -o -f $withval/lib/libmysqlclient_r.so; then
23027 MYSQL_LIBDIR=$withval/lib
23029 MYSQL_LIBDIR=$withval/lib/mysql
23031 MYSQL_BINDIR=$withval/bin
23032 elif test -f $withval/include/mysql.h; then
23033 MYSQL_INCDIR=$withval/include
23034 if test -f $withval/lib64/libmysqlclient_r.a \
23035 -o -f $withval/lib64/libmysqlclient_r.so; then
23036 MYSQL_LIBDIR=$withval/lib64
23038 MYSQL_LIBDIR=$withval/lib
23040 MYSQL_BINDIR=$withval/bin
23042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23043 $as_echo "no" >&6; }
23044 as_fn_error "Invalid MySQL directory $withval - unable to find mysql.h under $withval" "$LINENO" 5
23047 SQL_INCLUDE=-I$MYSQL_INCDIR
23048 if test -f $MYSQL_LIBDIR/libmysqlclient_r.a \
23049 -o -f $MYSQL_LIBDIR/libmysqlclient_r.so; then
23050 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
23051 $as_echo "#define HAVE_THREAD_SAFE_MYSQL 1" >>confdefs.h
23054 SQL_BINDIR=$MYSQL_BINDIR
23055 SQL_LIB=$MYSQL_LIBDIR/libmysqlclient_r.a
23058 $as_echo "#define HAVE_MYSQL 1" >>confdefs.h
23060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23061 $as_echo "yes" >&6; }
23068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23069 $as_echo "no" >&6; }
23077 # Check whether --with-embedded-mysql was given.
23078 if test "${with_embedded_mysql+set}" = set; then :
23079 withval=$with_embedded_mysql;
23080 if test "$withval" != "no"; then
23081 if test "$withval" = "yes"; then
23082 if test -f /usr/local/mysql/include/mysql/mysql.h; then
23083 MYSQL_INCDIR=/usr/local/mysql/include/mysql
23084 if test -d /usr/local/mysql/lib64/mysql; then
23085 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
23087 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
23089 MYSQL_BINDIR=/usr/local/mysql/bin
23090 elif test -f /usr/include/mysql/mysql.h; then
23091 MYSQL_INCDIR=/usr/include/mysql
23092 if test -d /usr/lib64/mysql; then
23093 MYSQL_LIBDIR=/usr/lib64/mysql
23095 MYSQL_LIBDIR=/usr/lib/mysql
23097 MYSQL_BINDIR=/usr/bin
23098 elif test -f /usr/include/mysql.h; then
23099 MYSQL_INCDIR=/usr/include
23100 if test -d /usr/lib64; then
23101 MYSQL_LIBDIR=/usr/lib64
23103 MYSQL_LIBDIR=/usr/lib
23105 MYSQL_BINDIR=/usr/bin
23106 elif test -f /usr/local/include/mysql/mysql.h; then
23107 MYSQL_INCDIR=/usr/local/include/mysql
23108 if test -d /usr/local/lib64/mysql; then
23109 MYSQL_LIBDIR=/usr/local/lib64/mysql
23111 MYSQL_LIBDIR=/usr/local/lib/mysql
23113 MYSQL_BINDIR=/usr/local/bin
23114 elif test -f /usr/local/include/mysql.h; then
23115 MYSQL_INCDIR=/usr/local/include
23116 if test -d /usr/local/lib64; then
23117 MYSQL_LIBDIR=/usr/local/lib64
23119 MYSQL_LIBDIR=/usr/local/lib
23121 MYSQL_BINDIR=/usr/local/bin
23123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23124 $as_echo "no" >&6; }
23125 as_fn_error "Unable to find mysql.h in standard locations" "$LINENO" 5
23128 if test -f $withval/include/mysql/mysql.h; then
23129 MYSQL_INCDIR=$withval/include/mysql
23130 if test -d $withval/lib64/mysql; then
23131 MYSQL_LIBDIR=$withval/lib64/mysql
23133 MYSQL_LIBDIR=$withval/lib/mysql
23135 MYSQL_BINDIR=$withval/bin
23136 elif test -f $withval/include/mysql.h; then
23137 MYSQL_INCDIR=$withval/include
23138 if test -d $withval/lib64; then
23139 MYSQL_LIBDIR=$withval/lib64
23141 MYSQL_LIBDIR=$withval/lib
23143 MYSQL_BINDIR=$withval/bin
23145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23146 $as_echo "no" >&6; }
23147 as_fn_error "Invalid MySQL directory $withval - unable to find mysql.h under $withval" "$LINENO" 5
23150 SQL_INCLUDE=-I$MYSQL_INCDIR
23151 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
23152 SQL_BINDIR=$MYSQL_BINDIR
23153 SQL_LIB=$MYSQL_LIBDIR/libmysqld.a
23155 $as_echo "#define HAVE_MYSQL 1" >>confdefs.h
23157 $as_echo "#define HAVE_EMBEDDED_MYSQL 1" >>confdefs.h
23159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23160 $as_echo "yes" >&6; }
23167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23168 $as_echo "no" >&6; }
23184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ingres support" >&5
23185 $as_echo_n "checking for Ingres support... " >&6; }
23187 # Check whether --with-ingres was given.
23188 if test "${with_ingres+set}" = set; then :
23189 withval=$with_ingres;
23190 if test "$withval" != "no"; then
23191 if test "$withval" = "yes"; then
23192 if test -f ${II_SYSTEM}/files/eqdefc.h; then
23193 INGRES_INCDIR=${II_SYSTEM}/files
23194 INGRES_LIBDIR=${II_SYSTEM}/lib
23195 INGRES_BINDIR=${II_SYSTEM}/bin
23196 elif test -f ${II_SYSTEM}/ingres/files/eqdefc.h; then
23197 INGRES_INCDIR=${II_SYSTEM}/ingres/files
23198 INGRES_LIBDIR=${II_SYSTEM}/ingres/lib
23199 INGRES_BINDIR=${II_SYSTEM}/ingres/bin
23201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23202 $as_echo "no" >&6; }
23203 as_fn_error "Unable to find eqdefc.h in standard locations" "$LINENO" 5
23206 if test -f $withval/files/eqdefc.h; then
23207 INGRES_INCDIR=$withval/files
23208 INGRES_LIBDIR=$withval/lib
23209 INGRES_BINDIR=$withval/bin
23211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23212 $as_echo "no" >&6; }
23213 as_fn_error "Invalid Ingres directory $withval - unable to find Ingres headers under $withval" "$LINENO" 5
23216 SQL_INCLUDE=-I$INGRES_INCDIR
23217 SQL_LFLAGS="-L$INGRES_LIBDIR -lq.1 -lcompat.1 -lframe.1"
23218 SQL_BINDIR=$INGRES_BINDIR
23219 SQL_LIB=$INGRES_LIBDIR/libingres.a
23221 $as_echo "#define HAVE_INGRES 1" >>confdefs.h
23223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23224 $as_echo "yes" >&6; }
23231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23232 $as_echo "no" >&6; }
23237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23238 $as_echo "no" >&6; }
23250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLite3 support" >&5
23251 $as_echo_n "checking for SQLite3 support... " >&6; }
23253 # Check whether --with-sqlite3 was given.
23254 if test "${with_sqlite3+set}" = set; then :
23255 withval=$with_sqlite3;
23256 if test "$withval" != "no"; then
23257 if test "$withval" = "yes"; then
23258 if test -f /usr/local/include/sqlite3.h; then
23259 SQLITE_INCDIR=/usr/local/include
23260 if test -d /usr/local/lib64; then
23261 SQLITE_LIBDIR=/usr/local/lib64
23263 SQLITE_LIBDIR=/usr/local/lib
23265 SQLITE_BINDIR=/usr/local/bin
23266 elif test -f /usr/include/sqlite3.h; then
23267 SQLITE_INCDIR=/usr/include
23268 if test -d /usr/lib64; then
23269 SQLITE_LIBDIR=/usr/lib64
23271 SQLITE_LIBDIR=/usr/lib
23273 SQLITE_BINDIR=/usr/bin
23274 elif test -f $prefix/include/sqlite3.h; then
23275 SQLITE_INCDIR=$prefix/include
23276 if test -d $prefix/lib64; then
23277 SQLITE_LIBDIR=$prefix/lib64
23279 SQLITE_LIBDIR=$prefix/lib
23281 SQLITE_BINDIR=$prefix/bin
23283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23284 $as_echo "no" >&6; }
23285 as_fn_error "Unable to find sqlite3.h in standard locations" "$LINENO" 5
23288 if test -f $withval/sqlite3.h; then
23289 SQLITE_INCDIR=$withval
23290 SQLITE_LIBDIR=$withval
23291 SQLITE_BINDIR=$withval
23292 elif test -f $withval/include/sqlite3.h; then
23293 SQLITE_INCDIR=$withval/include
23294 if test -d $withval/lib64; then
23295 SQLITE_LIBDIR=$withval/lib64
23297 SQLITE_LIBDIR=$withval/lib
23299 SQLITE_BINDIR=$withval/bin
23301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23302 $as_echo "no" >&6; }
23303 as_fn_error "Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" "$LINENO" 5
23306 SQL_INCLUDE=-I$SQLITE_INCDIR
23307 SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite3"
23308 SQL_BINDIR=$SQLITE_BINDIR
23309 SQL_LIB=$SQLITE_LIBDIR/libsqlite3.a
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 support_sqlite3=yes
23321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23322 $as_echo "no" >&6; }
23327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23328 $as_echo "no" >&6; }
23338 # BA_CHECK_SQLITE_DB
23342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DBI support" >&5
23343 $as_echo_n "checking for DBI support... " >&6; }
23345 # Check whether --with-dbi was given.
23346 if test "${with_dbi+set}" = set; then :
23348 if test "$withval" != "no"; then
23349 if test "$withval" = "yes"; then
23350 if test -f /usr/local/include/dbi/dbi.h; then
23351 DBI_INCDIR=/usr/local/dbi/include
23352 if test -d /usr/local/lib64; then
23353 DBI_LIBDIR=/usr/local/lib64
23355 DBI_LIBDIR=/usr/local/lib
23357 DBI_BINDIR=/usr/local/bin
23358 elif test -f /usr/include/dbi/dbi.h; then
23359 DBI_INCDIR=/usr/include
23360 if test -d /usr/lib64; then
23361 DBI_LIBDIR=/usr/lib64
23363 DBI_LIBDIR=/usr/lib
23365 DBI_BINDIR=/usr/bin
23366 elif test -f $prefix/include/dbi/dbi.h; then
23367 DBI_INCDIR=$prefix/include
23368 if test -d $prefix/lib64; then
23369 DBI_LIBDIR=$prefix/lib64
23371 DBI_LIBDIR=$prefix/lib
23373 DBI_BINDIR=$prefix/bin
23375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23376 $as_echo "no" >&6; }
23377 as_fn_error "Unable to find dbi.h in standard locations" "$LINENO" 5
23379 if test -d /usr/local/lib/dbd; then
23380 DRIVERDIR=/usr/local/lib/dbd
23381 if test -d /usr/local/lib64/dbd; then
23382 DRIVERDIR=/usr/local/lib64/dbd
23384 DRIVERDIR=/usr/local/lib/dbd
23386 elif test -d /usr/lib/dbd; then
23387 DRIVERDIR=/usr/lib/dbd
23388 if test -d /usr/lib64/dbd; then
23389 DRIVERDIR=/usr/lib64/dbd
23391 DRIVERDIR=/usr/lib/dbd
23393 elif test -d $prefix/lib/dbd; then
23394 if test -d $prefix/lib64/dbd; then
23395 DRIVERDIR=$prefix/lib64/dbd
23397 DRIVERDIR=$prefix/lib/dbd
23399 elif test -d /usr/local/lib64/dbd; then
23400 DRIVERDIR=/usr/local/lib64/dbd
23401 elif test -d /usr/lib64/dbd; then
23402 DRIVERDIR=/usr/lib64/dbd
23403 elif test -d $prefix/lib64/dbd; then
23404 DRIVERDIR=$prefix/lib64/dbd
23406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23407 $as_echo "no" >&6; }
23408 as_fn_error "Unable to find DBD drivers in standard locations" "$LINENO" 5
23411 if test -f $withval/dbi.h; then
23412 DBI_INCDIR=$withval
23413 DBI_LIBDIR=$withval
23414 DBI_BINDIR=$withval
23415 elif test -f $withval/include/dbi/dbi.h; then
23416 DBI_INCDIR=$withval/include
23417 if test -d $withval/lib64; then
23418 DBI_LIBDIR=$withval/lib64
23420 DBI_LIBDIR=$withval/lib
23422 DBI_BINDIR=$withval/bin
23424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23425 $as_echo "no" >&6; }
23426 as_fn_error "Invalid DBI directory $withval - unable to find dbi.h under $withval" "$LINENO" 5
23428 if test -d $withval/dbd; then
23429 DRIVERDIR=$withval/dbd
23430 elif test -d $withval/lib/; then
23431 if test -d $withval/lib64/dbd; then
23432 DRIVERDIR=$withval/lib64/dbd
23434 DRIVERDIR=$withval/lib/dbd
23436 elif test -d $withval/lib64/dbd; then
23437 DRIVERDIR=$withval/lib64/dbd
23439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23440 $as_echo "no" >&6; }
23441 as_fn_error "Invalid DBD driver directory $withval - unable to find DBD drivers under $withval" "$LINENO" 5
23444 SQL_INCLUDE=-I$DBI_INCDIR
23445 SQL_LFLAGS="-L$DBI_LIBDIR -ldbi"
23446 SQL_BINDIR=$DBI_BINDIR
23447 SQL_LIB=$DBI_LIBDIR/libdbi.a
23448 DBI_DBD_DRIVERDIR="-D DBI_DRIVER_DIR=\\\"$DRIVERDIR\\\""
23451 $as_echo "#define HAVE_DBI 1" >>confdefs.h
23453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23454 $as_echo "yes" >&6; }
23462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23463 $as_echo "no" >&6; }
23468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23469 $as_echo "no" >&6; }
23484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DBI drivers support" >&5
23485 $as_echo_n "checking for DBI drivers support... " >&6; }
23487 # Check whether --with-dbi-driver was given.
23488 if test "${with_dbi_driver+set}" = set; then :
23489 withval=$with_dbi_driver;
23490 if test "$withval" != "no"; then
23494 if test -f /usr/local/mysql/bin/mysql; then
23495 SQL_BINDIR=/usr/local/mysql/bin
23496 if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
23497 -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
23498 SQL_LIBDIR=/usr/local/mysql/lib64/mysql
23500 SQL_LIBDIR=/usr/local/mysql/lib/mysql
23502 elif test -f /usr/bin/mysql; then
23503 SQL_BINDIR=/usr/bin
23504 if test -f /usr/lib64/mysql/libmysqlclient_r.a \
23505 -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
23506 SQL_LIBDIR=/usr/lib64/mysql
23507 elif test -f /usr/lib/mysql/libmysqlclient_r.a \
23508 -o -f /usr/lib/mysql/libmysqlclient_r.so; then
23509 SQL_LIBDIR=/usr/lib/mysql
23511 SQL_LIBDIR=/usr/lib
23513 elif test -f /usr/local/bin/mysql; then
23514 SQL_BINDIR=/usr/local/bin
23515 if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
23516 -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
23517 SQL_LIBDIR=/usr/local/lib64/mysql
23518 elif test -f /usr/local/lib/mysql/libmysqlclient_r.a \
23519 -o -f /usr/local/lib/mysql/libmysqlclient_r.so; then
23520 SQL_LIBDIR=/usr/local/lib/mysql
23522 SQL_LIBDIR=/usr/local/lib
23524 elif test -f $withval/bin/mysql; then
23525 SQL_BINDIR=$withval/bin
23526 if test -f $withval/lib64/mysql/libmysqlclient_r.a \
23527 -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
23528 SQL_LIBDIR=$withval/lib64/mysql
23529 elif test -f $withval/lib64/libmysqlclient_r.a \
23530 -o -f $withval/lib64/libmysqlclient_r.so; then
23531 SQL_LIBDIR=$withval/lib64
23532 elif test -f $withval/lib/libmysqlclient_r.a \
23533 -o -f $withval/lib/libmysqlclient_r.so; then
23534 SQL_LIBDIR=$withval/lib/
23536 SQL_LIBDIR=$withval/lib/mysql
23539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23540 $as_echo "no" >&6; }
23541 as_fn_error "Unable to find mysql in standard locations" "$LINENO" 5
23543 if test -f $SQL_LIBDIR/libmysqlclient_r.so; then
23544 DB_PROG_LIB=$SQL_LIBDIR/libmysqlclient_r.so
23546 DB_PROG_LIB=$SQL_LIBDIR/libmysqlclient_r.a
23550 db_prog="postgresql"
23551 PG_CONFIG=`which pg_config`
23552 if test -n "$PG_CONFIG"; then
23553 SQL_BINDIR=`"$PG_CONFIG" --bindir`
23554 SQL_LIBDIR=`"$PG_CONFIG" --libdir`
23555 elif test -f /usr/local/bin/psql; then
23556 SQL_BINDIR=/usr/local/bin
23557 if test -d /usr/local/lib64; then
23558 SQL_LIBDIR=/usr/local/lib64
23560 SQL_LIBDIR=/usr/local/lib
23562 elif test -f /usr/bin/psql; then
23563 SQL_BINDIR=/usr/local/bin
23564 if test -d /usr/lib64/postgresql; then
23565 SQL_LIBDIR=/usr/lib64/postgresql
23566 elif test -d /usr/lib/postgresql; then
23567 SQL_LIBDIR=/usr/lib/postgresql
23568 elif test -d /usr/lib64; then
23569 SQL_LIBDIR=/usr/lib64
23571 SQL_LIBDIR=/usr/lib
23573 elif test -f $withval/bin/psql; then
23574 SQL_BINDIR=$withval/bin
23575 if test -d $withval/lib64; then
23576 SQL_LIBDIR=$withval/lib64
23578 SQL_LIBDIR=$withval/lib
23581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23582 $as_echo "no" >&6; }
23583 as_fn_error "Unable to find psql in standard locations" "$LINENO" 5
23585 if test -f $SQL_LIBDIR/libpq.so; then
23586 DB_PROG_LIB=$SQL_LIBDIR/libpq.so
23588 DB_PROG_LIB=$SQL_LIBDIR/libpq.a
23593 if test -f /usr/local/bin/sqlite; then
23594 SQL_BINDIR=/usr/local/bin
23595 if test -d /usr/local/lib64; then
23596 SQL_LIBDIR=/usr/local/lib64
23598 SQL_LIBDIR=/usr/local/lib
23600 elif test -f /usr/bin/sqlite; then
23601 SQL_BINDIR=/usr/bin
23602 if test -d /usr/lib64; then
23603 SQL_LIBDIR=/usr/lib64
23605 SQL_LIBDIR=/usr/lib
23607 elif test -f $withval/bin/sqlite; then
23608 SQL_BINDIR=$withval/bin
23609 if test -d $withval/lib64; then
23610 SQL_LIBDIR=$withval/lib64
23612 SQL_LIBDIR=$withval/lib
23615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23616 $as_echo "no" >&6; }
23617 as_fn_error "Unable to find sqlite in standard locations" "$LINENO" 5
23619 if test -f $SQL_LIBDIR/libsqlite.so; then
23620 DB_PROG_LIB=$SQL_LIBDIR/libsqlite.so
23622 DB_PROG_LIB=$SQL_LIBDIR/libsqlite.a
23627 if test -f /usr/local/bin/sqlite3; then
23628 SQL_BINDIR=/usr/local/bin
23629 if test -d /usr/local/lib64; then
23630 SQL_LIBDIR=/usr/local/lib64
23632 SQL_LIBDIR=/usr/local/lib
23634 elif test -f /usr/bin/sqlite3; then
23635 SQL_BINDIR=/usr/bin
23636 if test -d /usr/lib64; then
23637 SQL_LIBDIR=/usr/lib64
23639 SQL_LIBDIR=/usr/lib
23641 elif test -f $withval/bin/sqlite3; then
23642 SQL_BINDIR=$withval/bin
23643 if test -d $withval/lib64; then
23644 SQL_LIBDIR=$withval/lib64
23646 SQL_LIBDIR=$withval/lib
23649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23650 $as_echo "no" >&6; }
23651 as_fn_error "Unable to find sqlite in standard locations" "$LINENO" 5
23653 if test -f $SQL_LIBDIR/libsqlite3.so; then
23654 DB_PROG_LIB=$SQL_LIBDIR/libsqlite3.so
23656 DB_PROG_LIB=$SQL_LIBDIR/libsqlite3.a
23660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23661 $as_echo "no" >&6; }
23662 as_fn_error "Unable to set DBI driver. $withval is not supported" "$LINENO" 5
23666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23667 $as_echo "yes" >&6; }
23670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23671 $as_echo "no" >&6; }
23676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23677 $as_echo "no" >&6; }
23690 support_batch_insert=no
23691 A=`test -f $SQL_LIB && nm $SQL_LIB | grep pthread_mutex_lock`
23693 if test $pkg = 0; then
23694 support_batch_insert=yes
23695 # Check whether --enable-batch-insert was given.
23696 if test "${enable_batch_insert+set}" = set; then :
23697 enableval=$enable_batch_insert;
23698 if test x$enableval = xno; then
23699 support_batch_insert=no
23701 support_batch_insert=yes
23709 if test x$support_batch_insert = xno; then
23710 if test x$DB_TYPE = xmysql; then
23711 A=`test -f $MYSQL_LIBDIR/libmysqlclient_r.so && nm -D $MYSQL_LIBDIR/libmysqlclient_r.so | grep pthread_mutex_lock`
23713 if test $pkg = 0; then
23714 support_batch_insert=yes
23715 # Check whether --enable-batch-insert was given.
23716 if test "${enable_batch_insert+set}" = set; then :
23717 enableval=$enable_batch_insert;
23718 if test x$enableval = xno; then
23719 support_batch_insert=no
23721 support_batch_insert=yes
23731 saved_LIBS="${LIBS}"
23732 LIBS="${saved_LIBS} ${SQL_LFLAGS}"
23734 if test x$DB_TYPE = xpostgresql; then
23735 support_batch_insert=yes
23736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQisthreadsafe in -lpq" >&5
23737 $as_echo_n "checking for PQisthreadsafe in -lpq... " >&6; }
23738 if test "${ac_cv_lib_pq_PQisthreadsafe+set}" = set; then :
23739 $as_echo_n "(cached) " >&6
23741 ac_check_lib_save_LIBS=$LIBS
23743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23744 /* end confdefs.h. */
23746 /* Override any GCC internal prototype to avoid an error.
23747 Use char because int might match the return type of a GCC
23748 builtin and then its argument prototype would still apply. */
23752 char PQisthreadsafe ();
23756 return PQisthreadsafe ();
23761 if ac_fn_c_try_link "$LINENO"; then :
23762 ac_cv_lib_pq_PQisthreadsafe=yes
23764 ac_cv_lib_pq_PQisthreadsafe=no
23766 rm -f core conftest.err conftest.$ac_objext \
23767 conftest$ac_exeext conftest.$ac_ext
23768 LIBS=$ac_check_lib_save_LIBS
23770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQisthreadsafe" >&5
23771 $as_echo "$ac_cv_lib_pq_PQisthreadsafe" >&6; }
23772 if test "x$ac_cv_lib_pq_PQisthreadsafe" = x""yes; then :
23774 $as_echo "#define HAVE_PQISTHREADSAFE 1" >>confdefs.h
23778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQputCopyData in -lpq" >&5
23779 $as_echo_n "checking for PQputCopyData in -lpq... " >&6; }
23780 if test "${ac_cv_lib_pq_PQputCopyData+set}" = set; then :
23781 $as_echo_n "(cached) " >&6
23783 ac_check_lib_save_LIBS=$LIBS
23785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23786 /* end confdefs.h. */
23788 /* Override any GCC internal prototype to avoid an error.
23789 Use char because int might match the return type of a GCC
23790 builtin and then its argument prototype would still apply. */
23794 char PQputCopyData ();
23798 return PQputCopyData ();
23803 if ac_fn_c_try_link "$LINENO"; then :
23804 ac_cv_lib_pq_PQputCopyData=yes
23806 ac_cv_lib_pq_PQputCopyData=no
23808 rm -f core conftest.err conftest.$ac_objext \
23809 conftest$ac_exeext conftest.$ac_ext
23810 LIBS=$ac_check_lib_save_LIBS
23812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQputCopyData" >&5
23813 $as_echo "$ac_cv_lib_pq_PQputCopyData" >&6; }
23814 if test "x$ac_cv_lib_pq_PQputCopyData" = x""yes; then :
23816 $as_echo "#define HAVE_PQ_COPY 1" >>confdefs.h
23820 test "x$ac_cv_lib_pq_PQputCopyData" = "xyes"
23822 if test $pkg = 0; then
23823 # Check whether --enable-batch-insert was given.
23824 if test "${enable_batch_insert+set}" = set; then :
23825 enableval=$enable_batch_insert;
23826 if test x$enableval = xno; then
23827 support_batch_insert=no
23834 support_batch_insert=no
23838 if test x$DB_TYPE = xdbi; then
23842 if test $DB_PROG = postgresql; then
23843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQisthreadsafe in -lpq" >&5
23844 $as_echo_n "checking for PQisthreadsafe in -lpq... " >&6; }
23845 if test "${ac_cv_lib_pq_PQisthreadsafe+set}" = set; then :
23846 $as_echo_n "(cached) " >&6
23848 ac_check_lib_save_LIBS=$LIBS
23850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23851 /* end confdefs.h. */
23853 /* Override any GCC internal prototype to avoid an error.
23854 Use char because int might match the return type of a GCC
23855 builtin and then its argument prototype would still apply. */
23859 char PQisthreadsafe ();
23863 return PQisthreadsafe ();
23868 if ac_fn_c_try_link "$LINENO"; then :
23869 ac_cv_lib_pq_PQisthreadsafe=yes
23871 ac_cv_lib_pq_PQisthreadsafe=no
23873 rm -f core conftest.err conftest.$ac_objext \
23874 conftest$ac_exeext conftest.$ac_ext
23875 LIBS=$ac_check_lib_save_LIBS
23877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQisthreadsafe" >&5
23878 $as_echo "$ac_cv_lib_pq_PQisthreadsafe" >&6; }
23879 if test "x$ac_cv_lib_pq_PQisthreadsafe" = x""yes; then :
23880 $as_echo "#define HAVE_PQISTHREADSAFE 1" >>confdefs.h
23884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQputCopyData in -lpq" >&5
23885 $as_echo_n "checking for PQputCopyData in -lpq... " >&6; }
23886 if test "${ac_cv_lib_pq_PQputCopyData+set}" = set; then :
23887 $as_echo_n "(cached) " >&6
23889 ac_check_lib_save_LIBS=$LIBS
23891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23892 /* end confdefs.h. */
23894 /* Override any GCC internal prototype to avoid an error.
23895 Use char because int might match the return type of a GCC
23896 builtin and then its argument prototype would still apply. */
23900 char PQputCopyData ();
23904 return PQputCopyData ();
23909 if ac_fn_c_try_link "$LINENO"; then :
23910 ac_cv_lib_pq_PQputCopyData=yes
23912 ac_cv_lib_pq_PQputCopyData=no
23914 rm -f core conftest.err conftest.$ac_objext \
23915 conftest$ac_exeext conftest.$ac_ext
23916 LIBS=$ac_check_lib_save_LIBS
23918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQputCopyData" >&5
23919 $as_echo "$ac_cv_lib_pq_PQputCopyData" >&6; }
23920 if test "x$ac_cv_lib_pq_PQputCopyData" = x""yes; then :
23921 $as_echo "#define HAVE_PQ_COPY 1" >>confdefs.h
23925 test "x$ac_cv_lib_pq_PQputCopyData" = "xyes"
23929 if test $DB_PROG = mysql; then
23930 A=`test -f $SQL_LIB && nm $DB_PROG_LIB | grep pthread_mutex_lock`
23934 if test $DB_PROG = sqlite3; then
23935 A=`test -f $SQL_LIB && nm $DB_PROG_LIB | grep pthread_mutex_lock`
23937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_threadsafe in -lsqlite3" >&5
23938 $as_echo_n "checking for sqlite3_threadsafe in -lsqlite3... " >&6; }
23939 if test "${ac_cv_lib_sqlite3_sqlite3_threadsafe+set}" = set; then :
23940 $as_echo_n "(cached) " >&6
23942 ac_check_lib_save_LIBS=$LIBS
23943 LIBS="-lsqlite3 $LIBS"
23944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23945 /* end confdefs.h. */
23947 /* Override any GCC internal prototype to avoid an error.
23948 Use char because int might match the return type of a GCC
23949 builtin and then its argument prototype would still apply. */
23953 char sqlite3_threadsafe ();
23957 return sqlite3_threadsafe ();
23962 if ac_fn_c_try_link "$LINENO"; then :
23963 ac_cv_lib_sqlite3_sqlite3_threadsafe=yes
23965 ac_cv_lib_sqlite3_sqlite3_threadsafe=no
23967 rm -f core conftest.err conftest.$ac_objext \
23968 conftest$ac_exeext conftest.$ac_ext
23969 LIBS=$ac_check_lib_save_LIBS
23971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_threadsafe" >&5
23972 $as_echo "$ac_cv_lib_sqlite3_sqlite3_threadsafe" >&6; }
23973 if test "x$ac_cv_lib_sqlite3_sqlite3_threadsafe" = x""yes; then :
23975 $as_echo "#define HAVE_SQLITE3_THREADSAFE 1" >>confdefs.h
23981 if test $pkg = 0; then
23982 # Check whether --enable-batch-insert was given.
23983 if test "${enable_batch_insert+set}" = set; then :
23984 enableval=$enable_batch_insert;
23985 if test x$enableval = xno; then
23986 support_batch_insert=no
23988 support_batch_insert=yes
23999 LIBS="${saved_LIBS}"
24003 if test x$DB_TYPE = xingres; then
24004 support_batch_insert=yes
24007 if test $support_batch_insert = yes ; then
24009 $as_echo "#define HAVE_BATCH_FILE_INSERT 1" >>confdefs.h
24013 $as_echo "#define PROTOTYPES 1" >>confdefs.h
24016 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
24017 if test -z "$CCOPTS"; then
24018 CCOPTS='-g -O2 -Wall'
24025 largefile_support="no"
24027 # Check whether --enable-largefile was given.
24028 if test "${enable_largefile+set}" = set; then :
24029 enableval=$enable_largefile;
24032 if test "$enable_largefile" != no; then
24033 if test -n "$ac_tool_prefix"; then
24034 # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
24035 set dummy ${ac_tool_prefix}getconf; ac_word=$2
24036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24037 $as_echo_n "checking for $ac_word... " >&6; }
24038 if test "${ac_cv_prog_GETCONF+set}" = set; then :
24039 $as_echo_n "(cached) " >&6
24041 if test -n "$GETCONF"; then
24042 ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
24044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24045 for as_dir in $PATH
24048 test -z "$as_dir" && as_dir=.
24049 for ac_exec_ext in '' $ac_executable_extensions; do
24050 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24051 ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
24052 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24061 GETCONF=$ac_cv_prog_GETCONF
24062 if test -n "$GETCONF"; then
24063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GETCONF" >&5
24064 $as_echo "$GETCONF" >&6; }
24066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24067 $as_echo "no" >&6; }
24072 if test -z "$ac_cv_prog_GETCONF"; then
24073 ac_ct_GETCONF=$GETCONF
24074 # Extract the first word of "getconf", so it can be a program name with args.
24075 set dummy getconf; ac_word=$2
24076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24077 $as_echo_n "checking for $ac_word... " >&6; }
24078 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then :
24079 $as_echo_n "(cached) " >&6
24081 if test -n "$ac_ct_GETCONF"; then
24082 ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
24084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24085 for as_dir in $PATH
24088 test -z "$as_dir" && as_dir=.
24089 for ac_exec_ext in '' $ac_executable_extensions; do
24090 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24091 ac_cv_prog_ac_ct_GETCONF="getconf"
24092 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24101 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
24102 if test -n "$ac_ct_GETCONF"; then
24103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GETCONF" >&5
24104 $as_echo "$ac_ct_GETCONF" >&6; }
24106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24107 $as_echo "no" >&6; }
24110 if test "x$ac_ct_GETCONF" = x; then
24113 case $cross_compiling:$ac_tool_warned in
24115 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
24116 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
24117 ac_tool_warned=yes ;;
24119 GETCONF=$ac_ct_GETCONF
24122 GETCONF="$ac_cv_prog_GETCONF"
24125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLAGS value to request large file support" >&5
24126 $as_echo_n "checking for CFLAGS value to request large file support... " >&6; }
24127 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then :
24128 $as_echo_n "(cached) " >&6
24130 ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
24131 ac_cv_sys_largefile_CFLAGS=no
24133 # IRIX 6.2 and later require cc -n32.
24134 irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
24135 if test "$GCC" != yes; then
24136 ac_cv_sys_largefile_CFLAGS=-n32
24139 CC="$CC $ac_cv_sys_largefile_CFLAGS"
24140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24141 /* end confdefs.h. */
24151 if ac_fn_c_try_link "$LINENO"; then :
24154 ac_cv_sys_largefile_CFLAGS=no
24156 rm -f core conftest.err conftest.$ac_objext \
24157 conftest$ac_exeext conftest.$ac_ext
24162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CFLAGS" >&5
24163 $as_echo "$ac_cv_sys_largefile_CFLAGS" >&6; }
24164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDFLAGS value to request large file support" >&5
24165 $as_echo_n "checking for LDFLAGS value to request large file support... " >&6; }
24166 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then :
24167 $as_echo_n "(cached) " >&6
24169 ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
24170 ac_cv_sys_largefile_LDFLAGS=no
24174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_LDFLAGS" >&5
24175 $as_echo "$ac_cv_sys_largefile_LDFLAGS" >&6; }
24176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBS value to request large file support" >&5
24177 $as_echo_n "checking for LIBS value to request large file support... " >&6; }
24178 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then :
24179 $as_echo_n "(cached) " >&6
24181 ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
24182 ac_cv_sys_largefile_LIBS=no
24186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_LIBS" >&5
24187 $as_echo "$ac_cv_sys_largefile_LIBS" >&6; }
24189 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
24192 -D_FILE_OFFSET_BITS=*) ;;
24193 -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
24194 -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
24199 case "$CPPFLAGS" in
24200 '') CPPFLAGS="$ac_flag" ;;
24201 *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
24209 '') CFLAGS="$ac_flag" ;;
24210 *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
24215 case "$ac_cv_sys_largefile_LDFLAGS" in
24219 '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
24220 *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
24223 case "$ac_cv_sys_largefile_LIBS" in
24227 '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
24228 *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
24231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS" >&5
24232 $as_echo_n "checking for _FILE_OFFSET_BITS... " >&6; }
24233 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
24234 $as_echo_n "(cached) " >&6
24236 ac_cv_sys_file_offset_bits=no
24237 ac_cv_sys_file_offset_bits=64
24238 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
24240 -D_FILE_OFFSET_BITS)
24241 ac_cv_sys_file_offset_bits=1 ;;
24242 -D_FILE_OFFSET_BITS=*)
24243 ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
24248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
24249 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
24250 if test "$ac_cv_sys_file_offset_bits" != no; then
24252 cat >>confdefs.h <<_ACEOF
24253 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
24257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE" >&5
24258 $as_echo_n "checking for _LARGEFILE_SOURCE... " >&6; }
24259 if test "${ac_cv_sys_largefile_source+set}" = set; then :
24260 $as_echo_n "(cached) " >&6
24262 ac_cv_sys_largefile_source=no
24263 ac_cv_sys_largefile_source=1
24264 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
24266 -D_LARGEFILE_SOURCE)
24267 ac_cv_sys_largefile_source=1 ;;
24268 -D_LARGEFILE_SOURCE=*)
24269 ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
24274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
24275 $as_echo "$ac_cv_sys_largefile_source" >&6; }
24276 if test "$ac_cv_sys_largefile_source" != no; then
24278 cat >>confdefs.h <<_ACEOF
24279 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
24283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES" >&5
24284 $as_echo_n "checking for _LARGE_FILES... " >&6; }
24285 if test "${ac_cv_sys_large_files+set}" = set; then :
24286 $as_echo_n "(cached) " >&6
24288 ac_cv_sys_large_files=no
24289 ac_cv_sys_large_files=1
24290 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
24293 ac_cv_sys_large_files=1 ;;
24295 ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
24300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
24301 $as_echo "$ac_cv_sys_large_files" >&6; }
24302 if test "$ac_cv_sys_large_files" != no; then
24304 cat >>confdefs.h <<_ACEOF
24305 #define _LARGE_FILES $ac_cv_sys_large_files
24312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
24313 $as_echo_n "checking for X... " >&6; }
24316 # Check whether --with-x was given.
24317 if test "${with_x+set}" = set; then :
24321 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
24322 if test "x$with_x" = xno; then
24323 # The user explicitly disabled X.
24326 case $x_includes,$x_libraries in #(
24327 *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
24328 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
24329 $as_echo_n "(cached) " >&6
24331 # One or both of the vars are not set, and there is no cached value.
24332 ac_x_includes=no ac_x_libraries=no
24333 rm -f -r conftest.dir
24334 if mkdir conftest.dir; then
24336 cat >Imakefile <<'_ACEOF'
24338 @echo incroot='${INCROOT}'
24340 @echo usrlibdir='${USRLIBDIR}'
24342 @echo libdir='${LIBDIR}'
24344 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
24345 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
24346 for ac_var in incroot usrlibdir libdir; do
24347 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
24349 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
24350 for ac_extension in a so sl dylib la dll; do
24351 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
24352 test -f "$ac_im_libdir/libX11.$ac_extension"; then
24353 ac_im_usrlibdir=$ac_im_libdir; break
24356 # Screen out bogus values from the imake configuration. They are
24357 # bogus both because they are the default anyway, and because
24358 # using them would break gcc on systems where it needs fixed includes.
24359 case $ac_im_incroot in
24360 /usr/include) ac_x_includes= ;;
24361 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
24363 case $ac_im_usrlibdir in
24364 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
24365 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
24369 rm -f -r conftest.dir
24372 # Standard set of common directories for X headers.
24373 # Check X11 before X11Rn because it is often a symlink to the current release.
24387 /usr/local/X11/include
24388 /usr/local/X11R7/include
24389 /usr/local/X11R6/include
24390 /usr/local/X11R5/include
24391 /usr/local/X11R4/include
24393 /usr/local/include/X11
24394 /usr/local/include/X11R7
24395 /usr/local/include/X11R6
24396 /usr/local/include/X11R5
24397 /usr/local/include/X11R4
24401 /usr/XFree86/include/X11
24405 /usr/unsupported/include
24406 /usr/athena/include
24407 /usr/local/x11r5/include
24408 /usr/lpp/Xamples/include
24410 /usr/openwin/include
24411 /usr/openwin/share/include'
24413 if test "$ac_x_includes" = no; then
24414 # Guess where to find include files, by looking for Xlib.h.
24415 # First, try using that file with no special directory specified.
24416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24417 /* end confdefs.h. */
24418 #include <X11/Xlib.h>
24420 if ac_fn_c_try_cpp "$LINENO"; then :
24421 # We can compile using X headers with no special include directory.
24424 for ac_dir in $ac_x_header_dirs; do
24425 if test -r "$ac_dir/X11/Xlib.h"; then
24426 ac_x_includes=$ac_dir
24431 rm -f conftest.err conftest.$ac_ext
24432 fi # $ac_x_includes = no
24434 if test "$ac_x_libraries" = no; then
24435 # Check for the libraries.
24436 # See if we find them without any special options.
24437 # Don't add to $LIBS permanently.
24440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24441 /* end confdefs.h. */
24442 #include <X11/Xlib.h>
24451 if ac_fn_c_try_link "$LINENO"; then :
24453 # We can link X programs with no special library path.
24457 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
24459 # Don't even attempt the hair of trying to link an X program!
24460 for ac_extension in a so sl dylib la dll; do
24461 if test -r "$ac_dir/libX11.$ac_extension"; then
24462 ac_x_libraries=$ac_dir
24468 rm -f core conftest.err conftest.$ac_objext \
24469 conftest$ac_exeext conftest.$ac_ext
24470 fi # $ac_x_libraries = no
24472 case $ac_x_includes,$ac_x_libraries in #(
24473 no,* | *,no | *\'*)
24474 # Didn't find X, or a directory has "'" in its name.
24475 ac_cv_have_x="have_x=no";; #(
24477 # Record where we found X for the cache.
24478 ac_cv_have_x="have_x=yes\
24479 ac_x_includes='$ac_x_includes'\
24480 ac_x_libraries='$ac_x_libraries'"
24486 eval "$ac_cv_have_x"
24489 if test "$have_x" != yes; then
24490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
24491 $as_echo "$have_x" >&6; }
24494 # If each of the values was on the command line, it overrides each guess.
24495 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
24496 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
24497 # Update the cache value to reflect the command line values.
24498 ac_cv_have_x="have_x=yes\
24499 ac_x_includes='$x_includes'\
24500 ac_x_libraries='$x_libraries'"
24501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
24502 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
24505 if test "$no_x" = yes; then
24506 # Not all programs may use this symbol, but it does not hurt to define it.
24508 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
24510 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
24512 if test -n "$x_includes"; then
24513 X_CFLAGS="$X_CFLAGS -I$x_includes"
24516 # It would also be nice to do this for all -L options, not just this one.
24517 if test -n "$x_libraries"; then
24518 X_LIBS="$X_LIBS -L$x_libraries"
24519 # For Solaris; some versions of Sun CC require a space after -R and
24520 # others require no space. Words are not sufficient . . . .
24521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
24522 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
24523 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
24524 ac_xsave_c_werror_flag=$ac_c_werror_flag
24525 ac_c_werror_flag=yes
24526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24527 /* end confdefs.h. */
24537 if ac_fn_c_try_link "$LINENO"; then :
24538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24539 $as_echo "no" >&6; }
24540 X_LIBS="$X_LIBS -R$x_libraries"
24542 LIBS="$ac_xsave_LIBS -R $x_libraries"
24543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24544 /* end confdefs.h. */
24554 if ac_fn_c_try_link "$LINENO"; then :
24555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24556 $as_echo "yes" >&6; }
24557 X_LIBS="$X_LIBS -R $x_libraries"
24559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
24560 $as_echo "neither works" >&6; }
24562 rm -f core conftest.err conftest.$ac_objext \
24563 conftest$ac_exeext conftest.$ac_ext
24565 rm -f core conftest.err conftest.$ac_objext \
24566 conftest$ac_exeext conftest.$ac_ext
24567 ac_c_werror_flag=$ac_xsave_c_werror_flag
24568 LIBS=$ac_xsave_LIBS
24571 # Check for system-dependent libraries X programs must link with.
24572 # Do this before checking for the system-independent R6 libraries
24573 # (-lICE), since we may need -lsocket or whatever for X linking.
24575 if test "$ISC" = yes; then
24576 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
24578 # Martyn Johnson says this is needed for Ultrix, if the X
24579 # libraries were built with DECnet support. And Karl Berry says
24580 # the Alpha needs dnet_stub (dnet does not exist).
24581 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
24582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24583 /* end confdefs.h. */
24585 /* Override any GCC internal prototype to avoid an error.
24586 Use char because int might match the return type of a GCC
24587 builtin and then its argument prototype would still apply. */
24591 char XOpenDisplay ();
24595 return XOpenDisplay ();
24600 if ac_fn_c_try_link "$LINENO"; then :
24603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
24604 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
24605 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
24606 $as_echo_n "(cached) " >&6
24608 ac_check_lib_save_LIBS=$LIBS
24609 LIBS="-ldnet $LIBS"
24610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24611 /* end confdefs.h. */
24613 /* Override any GCC internal prototype to avoid an error.
24614 Use char because int might match the return type of a GCC
24615 builtin and then its argument prototype would still apply. */
24623 return dnet_ntoa ();
24628 if ac_fn_c_try_link "$LINENO"; then :
24629 ac_cv_lib_dnet_dnet_ntoa=yes
24631 ac_cv_lib_dnet_dnet_ntoa=no
24633 rm -f core conftest.err conftest.$ac_objext \
24634 conftest$ac_exeext conftest.$ac_ext
24635 LIBS=$ac_check_lib_save_LIBS
24637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
24638 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
24639 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
24640 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
24643 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
24644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
24645 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
24646 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then :
24647 $as_echo_n "(cached) " >&6
24649 ac_check_lib_save_LIBS=$LIBS
24650 LIBS="-ldnet_stub $LIBS"
24651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24652 /* end confdefs.h. */
24654 /* Override any GCC internal prototype to avoid an error.
24655 Use char because int might match the return type of a GCC
24656 builtin and then its argument prototype would still apply. */
24664 return dnet_ntoa ();
24669 if ac_fn_c_try_link "$LINENO"; then :
24670 ac_cv_lib_dnet_stub_dnet_ntoa=yes
24672 ac_cv_lib_dnet_stub_dnet_ntoa=no
24674 rm -f core conftest.err conftest.$ac_objext \
24675 conftest$ac_exeext conftest.$ac_ext
24676 LIBS=$ac_check_lib_save_LIBS
24678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
24679 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
24680 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then :
24681 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
24686 rm -f core conftest.err conftest.$ac_objext \
24687 conftest$ac_exeext conftest.$ac_ext
24688 LIBS="$ac_xsave_LIBS"
24690 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
24691 # to get the SysV transport functions.
24692 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
24694 # The nsl library prevents programs from opening the X display
24695 # on Irix 5.2, according to T.E. Dickey.
24696 # The functions gethostbyname, getservbyname, and inet_addr are
24697 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
24698 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
24699 if test "x$ac_cv_func_gethostbyname" = x""yes; then :
24703 if test $ac_cv_func_gethostbyname = no; then
24704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
24705 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
24706 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
24707 $as_echo_n "(cached) " >&6
24709 ac_check_lib_save_LIBS=$LIBS
24711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24712 /* end confdefs.h. */
24714 /* Override any GCC internal prototype to avoid an error.
24715 Use char because int might match the return type of a GCC
24716 builtin and then its argument prototype would still apply. */
24720 char gethostbyname ();
24724 return gethostbyname ();
24729 if ac_fn_c_try_link "$LINENO"; then :
24730 ac_cv_lib_nsl_gethostbyname=yes
24732 ac_cv_lib_nsl_gethostbyname=no
24734 rm -f core conftest.err conftest.$ac_objext \
24735 conftest$ac_exeext conftest.$ac_ext
24736 LIBS=$ac_check_lib_save_LIBS
24738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
24739 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
24740 if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
24741 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
24744 if test $ac_cv_lib_nsl_gethostbyname = no; then
24745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
24746 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
24747 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then :
24748 $as_echo_n "(cached) " >&6
24750 ac_check_lib_save_LIBS=$LIBS
24752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24753 /* end confdefs.h. */
24755 /* Override any GCC internal prototype to avoid an error.
24756 Use char because int might match the return type of a GCC
24757 builtin and then its argument prototype would still apply. */
24761 char gethostbyname ();
24765 return gethostbyname ();
24770 if ac_fn_c_try_link "$LINENO"; then :
24771 ac_cv_lib_bsd_gethostbyname=yes
24773 ac_cv_lib_bsd_gethostbyname=no
24775 rm -f core conftest.err conftest.$ac_objext \
24776 conftest$ac_exeext conftest.$ac_ext
24777 LIBS=$ac_check_lib_save_LIBS
24779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
24780 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
24781 if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then :
24782 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
24788 # lieder@skyler.mavd.honeywell.com says without -lsocket,
24789 # socket/setsockopt and other routines are undefined under SCO ODT
24790 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
24791 # on later versions), says Simon Leinen: it contains gethostby*
24792 # variants that don't use the name server (or something). -lsocket
24793 # must be given before -lnsl if both are needed. We assume that
24794 # if connect needs -lnsl, so does gethostbyname.
24795 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
24796 if test "x$ac_cv_func_connect" = x""yes; then :
24800 if test $ac_cv_func_connect = no; then
24801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
24802 $as_echo_n "checking for connect in -lsocket... " >&6; }
24803 if test "${ac_cv_lib_socket_connect+set}" = set; then :
24804 $as_echo_n "(cached) " >&6
24806 ac_check_lib_save_LIBS=$LIBS
24807 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
24808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24809 /* end confdefs.h. */
24811 /* Override any GCC internal prototype to avoid an error.
24812 Use char because int might match the return type of a GCC
24813 builtin and then its argument prototype would still apply. */
24826 if ac_fn_c_try_link "$LINENO"; then :
24827 ac_cv_lib_socket_connect=yes
24829 ac_cv_lib_socket_connect=no
24831 rm -f core conftest.err conftest.$ac_objext \
24832 conftest$ac_exeext conftest.$ac_ext
24833 LIBS=$ac_check_lib_save_LIBS
24835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
24836 $as_echo "$ac_cv_lib_socket_connect" >&6; }
24837 if test "x$ac_cv_lib_socket_connect" = x""yes; then :
24838 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
24843 # Guillermo Gomez says -lposix is necessary on A/UX.
24844 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
24845 if test "x$ac_cv_func_remove" = x""yes; then :
24849 if test $ac_cv_func_remove = no; then
24850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
24851 $as_echo_n "checking for remove in -lposix... " >&6; }
24852 if test "${ac_cv_lib_posix_remove+set}" = set; then :
24853 $as_echo_n "(cached) " >&6
24855 ac_check_lib_save_LIBS=$LIBS
24856 LIBS="-lposix $LIBS"
24857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24858 /* end confdefs.h. */
24860 /* Override any GCC internal prototype to avoid an error.
24861 Use char because int might match the return type of a GCC
24862 builtin and then its argument prototype would still apply. */
24875 if ac_fn_c_try_link "$LINENO"; then :
24876 ac_cv_lib_posix_remove=yes
24878 ac_cv_lib_posix_remove=no
24880 rm -f core conftest.err conftest.$ac_objext \
24881 conftest$ac_exeext conftest.$ac_ext
24882 LIBS=$ac_check_lib_save_LIBS
24884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
24885 $as_echo "$ac_cv_lib_posix_remove" >&6; }
24886 if test "x$ac_cv_lib_posix_remove" = x""yes; then :
24887 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
24892 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
24893 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
24894 if test "x$ac_cv_func_shmat" = x""yes; then :
24898 if test $ac_cv_func_shmat = no; then
24899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
24900 $as_echo_n "checking for shmat in -lipc... " >&6; }
24901 if test "${ac_cv_lib_ipc_shmat+set}" = set; then :
24902 $as_echo_n "(cached) " >&6
24904 ac_check_lib_save_LIBS=$LIBS
24906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24907 /* end confdefs.h. */
24909 /* Override any GCC internal prototype to avoid an error.
24910 Use char because int might match the return type of a GCC
24911 builtin and then its argument prototype would still apply. */
24924 if ac_fn_c_try_link "$LINENO"; then :
24925 ac_cv_lib_ipc_shmat=yes
24927 ac_cv_lib_ipc_shmat=no
24929 rm -f core conftest.err conftest.$ac_objext \
24930 conftest$ac_exeext conftest.$ac_ext
24931 LIBS=$ac_check_lib_save_LIBS
24933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
24934 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
24935 if test "x$ac_cv_lib_ipc_shmat" = x""yes; then :
24936 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
24942 # Check for libraries that X11R6 Xt/Xaw programs need.
24943 ac_save_LDFLAGS=$LDFLAGS
24944 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
24945 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
24946 # check for ICE first), but we must link in the order -lSM -lICE or
24947 # we get undefined symbols. So assume we have SM if we have ICE.
24948 # These have to be linked with before -lX11, unlike the other
24949 # libraries we check for below, so use a different variable.
24950 # John Interrante, Karl Berry
24951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
24952 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
24953 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then :
24954 $as_echo_n "(cached) " >&6
24956 ac_check_lib_save_LIBS=$LIBS
24957 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
24958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24959 /* end confdefs.h. */
24961 /* Override any GCC internal prototype to avoid an error.
24962 Use char because int might match the return type of a GCC
24963 builtin and then its argument prototype would still apply. */
24967 char IceConnectionNumber ();
24971 return IceConnectionNumber ();
24976 if ac_fn_c_try_link "$LINENO"; then :
24977 ac_cv_lib_ICE_IceConnectionNumber=yes
24979 ac_cv_lib_ICE_IceConnectionNumber=no
24981 rm -f core conftest.err conftest.$ac_objext \
24982 conftest$ac_exeext conftest.$ac_ext
24983 LIBS=$ac_check_lib_save_LIBS
24985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
24986 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
24987 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then :
24988 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
24991 LDFLAGS=$ac_save_LDFLAGS
25028 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25029 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
25030 eval as_val=\$$as_ac_Header
25031 if test "x$as_val" = x""yes; then :
25032 cat >>confdefs.h <<_ACEOF
25033 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
25041 $as_echo_n "checking for ANSI C header files... " >&6; }
25042 if test "${ac_cv_header_stdc+set}" = set; then :
25043 $as_echo_n "(cached) " >&6
25045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25046 /* end confdefs.h. */
25047 #include <stdlib.h>
25048 #include <stdarg.h>
25049 #include <string.h>
25060 if ac_fn_c_try_compile "$LINENO"; then :
25061 ac_cv_header_stdc=yes
25063 ac_cv_header_stdc=no
25065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25067 if test $ac_cv_header_stdc = yes; then
25068 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
25069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25070 /* end confdefs.h. */
25071 #include <string.h>
25074 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25075 $EGREP "memchr" >/dev/null 2>&1; then :
25078 ac_cv_header_stdc=no
25084 if test $ac_cv_header_stdc = yes; then
25085 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
25086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25087 /* end confdefs.h. */
25088 #include <stdlib.h>
25091 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25092 $EGREP "free" >/dev/null 2>&1; then :
25095 ac_cv_header_stdc=no
25101 if test $ac_cv_header_stdc = yes; then
25102 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
25103 if test "$cross_compiling" = yes; then :
25106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25107 /* end confdefs.h. */
25109 #include <stdlib.h>
25110 #if ((' ' & 0x0FF) == 0x020)
25111 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
25112 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
25114 # define ISLOWER(c) \
25115 (('a' <= (c) && (c) <= 'i') \
25116 || ('j' <= (c) && (c) <= 'r') \
25117 || ('s' <= (c) && (c) <= 'z'))
25118 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
25121 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
25126 for (i = 0; i < 256; i++)
25127 if (XOR (islower (i), ISLOWER (i))
25128 || toupper (i) != TOUPPER (i))
25133 if ac_fn_c_try_run "$LINENO"; then :
25136 ac_cv_header_stdc=no
25138 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25139 conftest.$ac_objext conftest.beam conftest.$ac_ext
25144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
25145 $as_echo "$ac_cv_header_stdc" >&6; }
25146 if test $ac_cv_header_stdc = yes; then
25148 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
25152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev" >&5
25153 $as_echo_n "checking whether sys/types.h defines makedev... " >&6; }
25154 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then :
25155 $as_echo_n "(cached) " >&6
25157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25158 /* end confdefs.h. */
25159 #include <sys/types.h>
25163 return makedev(0, 0);
25168 if ac_fn_c_try_link "$LINENO"; then :
25169 ac_cv_header_sys_types_h_makedev=yes
25171 ac_cv_header_sys_types_h_makedev=no
25173 rm -f core conftest.err conftest.$ac_objext \
25174 conftest$ac_exeext conftest.$ac_ext
25177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_types_h_makedev" >&5
25178 $as_echo "$ac_cv_header_sys_types_h_makedev" >&6; }
25180 if test $ac_cv_header_sys_types_h_makedev = no; then
25181 ac_fn_c_check_header_mongrel "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"
25182 if test "x$ac_cv_header_sys_mkdev_h" = x""yes; then :
25184 $as_echo "#define MAJOR_IN_MKDEV 1" >>confdefs.h
25190 if test $ac_cv_header_sys_mkdev_h = no; then
25191 ac_fn_c_check_header_mongrel "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
25192 if test "x$ac_cv_header_sys_sysmacros_h" = x""yes; then :
25194 $as_echo "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h
25202 ac_header_dirent=no
25203 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
25204 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
25205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
25206 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
25207 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
25208 $as_echo_n "(cached) " >&6
25210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25211 /* end confdefs.h. */
25212 #include <sys/types.h>
25224 if ac_fn_c_try_compile "$LINENO"; then :
25225 eval "$as_ac_Header=yes"
25227 eval "$as_ac_Header=no"
25229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25231 eval ac_res=\$$as_ac_Header
25232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
25233 $as_echo "$ac_res" >&6; }
25234 eval as_val=\$$as_ac_Header
25235 if test "x$as_val" = x""yes; then :
25236 cat >>confdefs.h <<_ACEOF
25237 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
25240 ac_header_dirent=$ac_hdr; break
25244 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
25245 if test $ac_header_dirent = dirent.h; then
25246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
25247 $as_echo_n "checking for library containing opendir... " >&6; }
25248 if test "${ac_cv_search_opendir+set}" = set; then :
25249 $as_echo_n "(cached) " >&6
25251 ac_func_search_save_LIBS=$LIBS
25252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25253 /* end confdefs.h. */
25255 /* Override any GCC internal prototype to avoid an error.
25256 Use char because int might match the return type of a GCC
25257 builtin and then its argument prototype would still apply. */
25270 for ac_lib in '' dir; do
25271 if test -z "$ac_lib"; then
25272 ac_res="none required"
25275 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25277 if ac_fn_c_try_link "$LINENO"; then :
25278 ac_cv_search_opendir=$ac_res
25280 rm -f core conftest.err conftest.$ac_objext \
25282 if test "${ac_cv_search_opendir+set}" = set; then :
25286 if test "${ac_cv_search_opendir+set}" = set; then :
25289 ac_cv_search_opendir=no
25291 rm conftest.$ac_ext
25292 LIBS=$ac_func_search_save_LIBS
25294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
25295 $as_echo "$ac_cv_search_opendir" >&6; }
25296 ac_res=$ac_cv_search_opendir
25297 if test "$ac_res" != no; then :
25298 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
25304 $as_echo_n "checking for library containing opendir... " >&6; }
25305 if test "${ac_cv_search_opendir+set}" = set; then :
25306 $as_echo_n "(cached) " >&6
25308 ac_func_search_save_LIBS=$LIBS
25309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25310 /* end confdefs.h. */
25312 /* Override any GCC internal prototype to avoid an error.
25313 Use char because int might match the return type of a GCC
25314 builtin and then its argument prototype would still apply. */
25327 for ac_lib in '' x; do
25328 if test -z "$ac_lib"; then
25329 ac_res="none required"
25332 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25334 if ac_fn_c_try_link "$LINENO"; then :
25335 ac_cv_search_opendir=$ac_res
25337 rm -f core conftest.err conftest.$ac_objext \
25339 if test "${ac_cv_search_opendir+set}" = set; then :
25343 if test "${ac_cv_search_opendir+set}" = set; then :
25346 ac_cv_search_opendir=no
25348 rm conftest.$ac_ext
25349 LIBS=$ac_func_search_save_LIBS
25351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
25352 $as_echo "$ac_cv_search_opendir" >&6; }
25353 ac_res=$ac_cv_search_opendir
25354 if test "$ac_res" != no; then :
25355 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
25362 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
25363 if test "${ac_cv_header_stat_broken+set}" = set; then :
25364 $as_echo_n "(cached) " >&6
25366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25367 /* end confdefs.h. */
25368 #include <sys/types.h>
25369 #include <sys/stat.h>
25371 #if defined S_ISBLK && defined S_IFDIR
25372 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
25375 #if defined S_ISBLK && defined S_IFCHR
25376 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
25379 #if defined S_ISLNK && defined S_IFREG
25380 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
25383 #if defined S_ISSOCK && defined S_IFREG
25384 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
25388 if ac_fn_c_try_compile "$LINENO"; then :
25389 ac_cv_header_stat_broken=no
25391 ac_cv_header_stat_broken=yes
25393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
25396 $as_echo "$ac_cv_header_stat_broken" >&6; }
25397 if test $ac_cv_header_stat_broken = yes; then
25399 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
25403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
25404 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
25405 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
25406 $as_echo_n "(cached) " >&6
25408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25409 /* end confdefs.h. */
25410 #include <sys/types.h>
25411 #include <sys/wait.h>
25412 #ifndef WEXITSTATUS
25413 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
25416 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
25424 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
25429 if ac_fn_c_try_compile "$LINENO"; then :
25430 ac_cv_header_sys_wait_h=yes
25432 ac_cv_header_sys_wait_h=no
25434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
25437 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
25438 if test $ac_cv_header_sys_wait_h = yes; then
25440 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
25444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
25445 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
25446 if test "${ac_cv_header_time+set}" = set; then :
25447 $as_echo_n "(cached) " >&6
25449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25450 /* end confdefs.h. */
25451 #include <sys/types.h>
25452 #include <sys/time.h>
25458 if ((struct tm *) 0)
25464 if ac_fn_c_try_compile "$LINENO"; then :
25465 ac_cv_header_time=yes
25467 ac_cv_header_time=no
25469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
25472 $as_echo "$ac_cv_header_time" >&6; }
25473 if test $ac_cv_header_time = yes; then
25475 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
25479 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
25480 if test "x$ac_cv_member_struct_stat_st_blksize" = x""yes; then :
25482 cat >>confdefs.h <<_ACEOF
25483 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
25487 $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h
25492 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
25493 if test "x$ac_cv_member_struct_stat_st_blocks" = x""yes; then :
25495 cat >>confdefs.h <<_ACEOF
25496 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
25500 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
25503 case " $LIBOBJS " in
25504 *" fileblocks.$ac_objext "* ) ;;
25505 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
25512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
25513 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
25514 if test "${ac_cv_struct_tm+set}" = set; then :
25515 $as_echo_n "(cached) " >&6
25517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25518 /* end confdefs.h. */
25519 #include <sys/types.h>
25526 int *p = &tm.tm_sec;
25532 if ac_fn_c_try_compile "$LINENO"; then :
25533 ac_cv_struct_tm=time.h
25535 ac_cv_struct_tm=sys/time.h
25537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
25540 $as_echo "$ac_cv_struct_tm" >&6; }
25541 if test $ac_cv_struct_tm = sys/time.h; then
25543 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
25547 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
25548 #include <$ac_cv_struct_tm>
25551 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then :
25553 cat >>confdefs.h <<_ACEOF
25554 #define HAVE_STRUCT_TM_TM_ZONE 1
25560 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
25562 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
25565 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
25567 if test "x$ac_cv_have_decl_tzname" = x""yes; then :
25573 cat >>confdefs.h <<_ACEOF
25574 #define HAVE_DECL_TZNAME $ac_have_decl
25577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
25578 $as_echo_n "checking for tzname... " >&6; }
25579 if test "${ac_cv_var_tzname+set}" = set; then :
25580 $as_echo_n "(cached) " >&6
25582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25583 /* end confdefs.h. */
25585 #if !HAVE_DECL_TZNAME
25586 extern char *tzname[];
25592 return tzname[0][0];
25597 if ac_fn_c_try_link "$LINENO"; then :
25598 ac_cv_var_tzname=yes
25600 ac_cv_var_tzname=no
25602 rm -f core conftest.err conftest.$ac_objext \
25603 conftest$ac_exeext conftest.$ac_ext
25605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
25606 $as_echo "$ac_cv_var_tzname" >&6; }
25607 if test $ac_cv_var_tzname = yes; then
25609 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
25615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for utime.h" >&5
25616 $as_echo_n "checking for utime.h... " >&6; }
25617 if test "${ba_cv_header_utime_h+set}" = set; then :
25618 $as_echo_n "(cached) " >&6
25621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25622 /* end confdefs.h. */
25624 #include <sys/types.h>
25637 if ac_fn_c_try_compile "$LINENO"; then :
25639 ba_cv_header_utime_h=yes
25643 ba_cv_header_utime_h=no
25647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_header_utime_h" >&5
25652 $as_echo "$ba_cv_header_utime_h" >&6; }
25653 test $ba_cv_header_utime_h = yes &&
25654 $as_echo "#define HAVE_UTIME_H 1" >>confdefs.h
25657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5
25658 $as_echo_n "checking for socklen_t... " >&6; }
25659 if test "${ba_cv_header_socklen_t+set}" = set; then :
25660 $as_echo_n "(cached) " >&6
25663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25664 /* end confdefs.h. */
25666 #include <sys/types.h>
25667 #include <sys/socket.h>
25679 if ac_fn_c_try_compile "$LINENO"; then :
25681 ba_cv_header_socklen_t=yes
25685 ba_cv_header_socklen_t=no
25689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_header_socklen_t" >&5
25694 $as_echo "$ba_cv_header_socklen_t" >&6; }
25695 test $ba_cv_header_socklen_t = yes &&
25696 $as_echo "#define HAVE_SOCKLEN_T 1" >>confdefs.h
25700 ac_cpp='$CXXCPP $CPPFLAGS'
25701 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25702 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25703 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ioctl_req_t" >&5
25706 $as_echo_n "checking for ioctl_req_t... " >&6; }
25707 if test "${ba_cv_header_ioctl_req_t+set}" = set; then :
25708 $as_echo_n "(cached) " >&6
25711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25712 /* end confdefs.h. */
25714 #include <unistd.h>
25715 #include <sys/types.h>
25716 #include <sys/ioctl.h>
25722 int (*d_ioctl)(int fd, unsigned long int request, ...);
25729 if ac_fn_cxx_try_compile "$LINENO"; then :
25731 ba_cv_header_ioctl_req_t=yes
25735 ba_cv_header_ioctl_req_t=no
25739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_header_ioctl_req_t" >&5
25744 $as_echo "$ba_cv_header_ioctl_req_t" >&6; }
25745 test $ba_cv_header_ioctl_req_t = yes &&
25746 $as_echo "#define HAVE_IOCTL_ULINT_REQUEST 1" >>confdefs.h
25750 ac_cpp='$CPP $CPPFLAGS'
25751 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25752 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25753 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25757 ac_cpp='$CXXCPP $CPPFLAGS'
25758 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25759 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25760 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for typeof" >&5
25763 $as_echo_n "checking for typeof... " >&6; }
25764 if test "${ba_cv_have_typeof+set}" = set; then :
25765 $as_echo_n "(cached) " >&6
25768 if test "$cross_compiling" = yes; then :
25770 ba_cv_have_typeof=no
25774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25775 /* end confdefs.h. */
25777 main(){char *a = 0; a = (typeof a)a;}
25780 if ac_fn_cxx_try_run "$LINENO"; then :
25782 ba_cv_have_typeof=yes
25786 ba_cv_have_typeof=no
25789 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25790 conftest.$ac_objext conftest.beam conftest.$ac_ext
25796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_have_typeof" >&5
25797 $as_echo "$ba_cv_have_typeof" >&6; }
25798 test $ba_cv_have_typeof = yes &&
25799 $as_echo "#define HAVE_TYPEOF 1" >>confdefs.h
25802 ac_cpp='$CPP $CPPFLAGS'
25803 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25804 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25805 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
25809 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
25810 if test "${ac_cv_c_const+set}" = set; then :
25811 $as_echo_n "(cached) " >&6
25813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25814 /* end confdefs.h. */
25819 /* FIXME: Include the comments suggested by Paul. */
25820 #ifndef __cplusplus
25821 /* Ultrix mips cc rejects this. */
25822 typedef int charset[2];
25824 /* SunOS 4.1.1 cc rejects this. */
25825 char const *const *pcpcc;
25827 /* NEC SVR4.0.2 mips cc rejects this. */
25828 struct point {int x, y;};
25829 static struct point const zero = {0,0};
25830 /* AIX XL C 1.02.0.0 rejects this.
25831 It does not let you subtract one const X* pointer from another in
25832 an arm of an if-expression whose if-part is not a constant
25834 const char *g = "string";
25835 pcpcc = &g + (g ? g-g : 0);
25836 /* HPUX 7.0 cc rejects these. */
25838 ppc = (char**) pcpcc;
25839 pcpcc = (char const *const *) ppc;
25840 { /* SCO 3.2v4 cc rejects this. */
25842 char const *s = 0 ? (char *) 0 : (char const *) 0;
25847 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
25848 int x[] = {25, 17};
25849 const int *foo = &x[0];
25852 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
25853 typedef const int *iptr;
25857 { /* AIX XL C 1.02.0.0 rejects this saying
25858 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
25859 struct s { int j; const int *ap[3]; };
25860 struct s *b; b->j = 5;
25862 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
25863 const int foo = 10;
25864 if (!foo) return 0;
25866 return !cs[0] && !zero.x;
25873 if ac_fn_c_try_compile "$LINENO"; then :
25878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
25881 $as_echo "$ac_cv_c_const" >&6; }
25882 if test $ac_cv_c_const = no; then
25884 $as_echo "#define const /**/" >>confdefs.h
25889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
25890 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
25891 if test "${ac_cv_c_bigendian+set}" = set; then :
25892 $as_echo_n "(cached) " >&6
25894 ac_cv_c_bigendian=unknown
25895 # See if we're dealing with a universal compiler.
25896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25897 /* end confdefs.h. */
25898 #ifndef __APPLE_CC__
25899 not a universal capable compiler
25904 if ac_fn_c_try_compile "$LINENO"; then :
25906 # Check for potential -arch flags. It is not universal unless
25907 # there are at least two -arch flags with different values.
25910 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
25911 if test -n "$ac_prev"; then
25913 i?86 | x86_64 | ppc | ppc64)
25914 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
25917 ac_cv_c_bigendian=universal
25923 elif test "x$ac_word" = "x-arch"; then
25928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25929 if test $ac_cv_c_bigendian = unknown; then
25930 # See if sys/param.h defines the BYTE_ORDER macro.
25931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25932 /* end confdefs.h. */
25933 #include <sys/types.h>
25934 #include <sys/param.h>
25939 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
25940 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
25942 bogus endian macros
25949 if ac_fn_c_try_compile "$LINENO"; then :
25950 # It does; now see whether it defined to BIG_ENDIAN or not.
25951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25952 /* end confdefs.h. */
25953 #include <sys/types.h>
25954 #include <sys/param.h>
25959 #if BYTE_ORDER != BIG_ENDIAN
25967 if ac_fn_c_try_compile "$LINENO"; then :
25968 ac_cv_c_bigendian=yes
25970 ac_cv_c_bigendian=no
25972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25976 if test $ac_cv_c_bigendian = unknown; then
25977 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
25978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25979 /* end confdefs.h. */
25980 #include <limits.h>
25985 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
25986 bogus endian macros
25993 if ac_fn_c_try_compile "$LINENO"; then :
25994 # It does; now see whether it defined to _BIG_ENDIAN or not.
25995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25996 /* end confdefs.h. */
25997 #include <limits.h>
26002 #ifndef _BIG_ENDIAN
26010 if ac_fn_c_try_compile "$LINENO"; then :
26011 ac_cv_c_bigendian=yes
26013 ac_cv_c_bigendian=no
26015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26019 if test $ac_cv_c_bigendian = unknown; then
26020 # Compile a test program.
26021 if test "$cross_compiling" = yes; then :
26022 # Try to guess by grepping values from an object file.
26023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26024 /* end confdefs.h. */
26025 short int ascii_mm[] =
26026 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
26027 short int ascii_ii[] =
26028 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
26029 int use_ascii (int i) {
26030 return ascii_mm[i] + ascii_ii[i];
26032 short int ebcdic_ii[] =
26033 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
26034 short int ebcdic_mm[] =
26035 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
26036 int use_ebcdic (int i) {
26037 return ebcdic_mm[i] + ebcdic_ii[i];
26044 return use_ascii (foo) == use_ebcdic (foo);
26049 if ac_fn_c_try_compile "$LINENO"; then :
26050 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
26051 ac_cv_c_bigendian=yes
26053 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
26054 if test "$ac_cv_c_bigendian" = unknown; then
26055 ac_cv_c_bigendian=no
26057 # finding both strings is unlikely to happen, but who knows?
26058 ac_cv_c_bigendian=unknown
26062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26065 /* end confdefs.h. */
26066 $ac_includes_default
26071 /* Are we little or big endian? From Harbison&Steele. */
26075 char c[sizeof (long int)];
26078 return u.c[sizeof (long int) - 1] == 1;
26084 if ac_fn_c_try_run "$LINENO"; then :
26085 ac_cv_c_bigendian=no
26087 ac_cv_c_bigendian=yes
26089 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26090 conftest.$ac_objext conftest.beam conftest.$ac_ext
26095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
26096 $as_echo "$ac_cv_c_bigendian" >&6; }
26097 case $ac_cv_c_bigendian in #(
26100 $as_echo "#define HAVE_BIG_ENDIAN 1" >>confdefs.h
26104 $as_echo "#define HAVE_LITTLE_ENDIAN 1" >>confdefs.h
26108 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
26112 as_fn_error "unknown endianness
26113 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
26117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to get filesystem type" >&5
26118 $as_echo_n "checking how to get filesystem type... " >&6; }
26120 # The order of these tests is important.
26121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26122 /* end confdefs.h. */
26124 #include <sys/statvfs.h>
26125 #include <sys/fstyp.h>
26128 if ac_fn_c_try_cpp "$LINENO"; then :
26129 $as_echo "#define FSTYPE_STATVFS 1" >>confdefs.h
26133 rm -f conftest.err conftest.$ac_ext
26134 if test $fstype = no; then
26135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26136 /* end confdefs.h. */
26138 #include <sys/statfs.h>
26139 #include <sys/fstyp.h>
26142 if ac_fn_c_try_cpp "$LINENO"; then :
26143 $as_echo "#define FSTYPE_USG_STATFS 1" >>confdefs.h
26147 rm -f conftest.err conftest.$ac_ext
26149 if test $fstype = no; then
26150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26151 /* end confdefs.h. */
26153 #include <sys/statfs.h>
26154 #include <sys/vmount.h>
26157 if ac_fn_c_try_cpp "$LINENO"; then :
26158 $as_echo "#define FSTYPE_AIX_STATFS 1" >>confdefs.h
26162 rm -f conftest.err conftest.$ac_ext
26164 if test $fstype = no; then
26165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26166 /* end confdefs.h. */
26168 #include <mntent.h>
26171 if ac_fn_c_try_cpp "$LINENO"; then :
26172 $as_echo "#define FSTYPE_MNTENT 1" >>confdefs.h
26176 rm -f conftest.err conftest.$ac_ext
26178 if test $fstype = no; then
26179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26180 /* end confdefs.h. */
26181 #include <sys/mount.h>
26184 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26185 $EGREP "f_type;" >/dev/null 2>&1; then :
26186 $as_echo "#define FSTYPE_STATFS 1" >>confdefs.h
26192 if test $fstype = no; then
26193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26194 /* end confdefs.h. */
26196 #include <sys/mount.h>
26197 #include <sys/fs_types.h>
26200 if ac_fn_c_try_cpp "$LINENO"; then :
26201 $as_echo "#define FSTYPE_GETMNT 1" >>confdefs.h
26205 rm -f conftest.err conftest.$ac_ext
26207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fstype" >&5
26208 $as_echo "$fstype" >&6; }
26210 ac_fn_c_check_header_mongrel "$LINENO" "sys/statvfs.h" "ac_cv_header_sys_statvfs_h" "$ac_includes_default"
26211 if test "x$ac_cv_header_sys_statvfs_h" = x""yes; then :
26213 $as_echo "#define HAVE_SYS_STATVFS_H 1" >>confdefs.h
26219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
26220 $as_echo_n "checking return type of signal handlers... " >&6; }
26221 if test "${ac_cv_type_signal+set}" = set; then :
26222 $as_echo_n "(cached) " >&6
26224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26225 /* end confdefs.h. */
26226 #include <sys/types.h>
26227 #include <signal.h>
26232 return *(signal (0, 0)) (0) == 1;
26237 if ac_fn_c_try_compile "$LINENO"; then :
26238 ac_cv_type_signal=int
26240 ac_cv_type_signal=void
26242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
26245 $as_echo "$ac_cv_type_signal" >&6; }
26247 cat >>confdefs.h <<_ACEOF
26248 #define RETSIGTYPE $ac_cv_type_signal
26253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type of signal functions" >&5
26254 $as_echo_n "checking for type of signal functions... " >&6; }
26255 if test "${bash_cv_signal_vintage+set}" = set; then :
26256 $as_echo_n "(cached) " >&6
26259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26260 /* end confdefs.h. */
26261 #include <signal.h>
26267 struct sigaction sa;
26268 sigemptyset(&ss); sigsuspend(&ss);
26269 sigaction(SIGINT, &sa, (struct sigaction *) 0);
26270 sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
26276 if ac_fn_c_try_link "$LINENO"; then :
26277 bash_cv_signal_vintage="posix"
26280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26281 /* end confdefs.h. */
26282 #include <signal.h>
26287 int mask = sigmask(SIGINT);
26288 sigsetmask(mask); sigblock(mask); sigpause(mask);
26294 if ac_fn_c_try_link "$LINENO"; then :
26295 bash_cv_signal_vintage="4.2bsd"
26298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26299 /* end confdefs.h. */
26301 #include <signal.h>
26302 RETSIGTYPE foo() { }
26307 int mask = sigmask(SIGINT);
26308 sigset(SIGINT, foo); sigrelse(SIGINT);
26309 sighold(SIGINT); sigpause(SIGINT);
26315 if ac_fn_c_try_link "$LINENO"; then :
26316 bash_cv_signal_vintage="svr3"
26318 bash_cv_signal_vintage="v7"
26321 rm -f core conftest.err conftest.$ac_objext \
26322 conftest$ac_exeext conftest.$ac_ext
26325 rm -f core conftest.err conftest.$ac_objext \
26326 conftest$ac_exeext conftest.$ac_ext
26329 rm -f core conftest.err conftest.$ac_objext \
26330 conftest$ac_exeext conftest.$ac_ext
26334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_signal_vintage" >&5
26335 $as_echo "$bash_cv_signal_vintage" >&6; }
26336 if test "$bash_cv_signal_vintage" = "posix"; then
26337 $as_echo "#define HAVE_POSIX_SIGNALS 1" >>confdefs.h
26339 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
26340 $as_echo "#define HAVE_BSD_SIGNALS 1" >>confdefs.h
26342 elif test "$bash_cv_signal_vintage" = "svr3"; then
26343 $as_echo "#define HAVE_USG_SIGHOLD 1" >>confdefs.h
26347 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
26348 if test "x$ac_cv_type_mode_t" = x""yes; then :
26352 cat >>confdefs.h <<_ACEOF
26358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
26359 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
26360 if test "${ac_cv_type_uid_t+set}" = set; then :
26361 $as_echo_n "(cached) " >&6
26363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26364 /* end confdefs.h. */
26365 #include <sys/types.h>
26368 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26369 $EGREP "uid_t" >/dev/null 2>&1; then :
26370 ac_cv_type_uid_t=yes
26372 ac_cv_type_uid_t=no
26377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
26378 $as_echo "$ac_cv_type_uid_t" >&6; }
26379 if test $ac_cv_type_uid_t = no; then
26381 $as_echo "#define uid_t int" >>confdefs.h
26384 $as_echo "#define gid_t int" >>confdefs.h
26388 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
26389 if test "x$ac_cv_type_size_t" = x""yes; then :
26393 cat >>confdefs.h <<_ACEOF
26394 #define size_t unsigned int
26399 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
26400 if test "x$ac_cv_type_pid_t" = x""yes; then :
26404 cat >>confdefs.h <<_ACEOF
26410 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
26411 if test "x$ac_cv_type_off_t" = x""yes; then :
26415 cat >>confdefs.h <<_ACEOF
26416 #define off_t long int
26422 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
26423 if test "x$ac_cv_type_intptr_t" = x""yes; then :
26425 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
26428 for ac_type in 'int' 'long int' 'long long int'; do
26429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26430 /* end confdefs.h. */
26431 $ac_includes_default
26435 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
26442 if ac_fn_c_try_compile "$LINENO"; then :
26444 cat >>confdefs.h <<_ACEOF
26445 #define intptr_t $ac_type
26450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26451 test -z "$ac_type" && break
26457 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
26458 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
26460 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
26463 for ac_type in 'unsigned int' 'unsigned long int' \
26464 'unsigned long long int'; do
26465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26466 /* end confdefs.h. */
26467 $ac_includes_default
26471 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
26478 if ac_fn_c_try_compile "$LINENO"; then :
26480 cat >>confdefs.h <<_ACEOF
26481 #define uintptr_t $ac_type
26486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26487 test -z "$ac_type" && break
26492 ac_fn_c_check_type "$LINENO" "ino_t" "ac_cv_type_ino_t" "$ac_includes_default"
26493 if test "x$ac_cv_type_ino_t" = x""yes; then :
26497 cat >>confdefs.h <<_ACEOF
26498 #define ino_t unsigned long
26503 ac_fn_c_check_type "$LINENO" "dev_t" "ac_cv_type_dev_t" "$ac_includes_default"
26504 if test "x$ac_cv_type_dev_t" = x""yes; then :
26508 cat >>confdefs.h <<_ACEOF
26509 #define dev_t unsigned long
26514 ac_fn_c_check_type "$LINENO" "daddr_t" "ac_cv_type_daddr_t" "$ac_includes_default"
26515 if test "x$ac_cv_type_daddr_t" = x""yes; then :
26519 cat >>confdefs.h <<_ACEOF
26520 #define daddr_t long
26525 ac_fn_c_check_type "$LINENO" "major_t" "ac_cv_type_major_t" "$ac_includes_default"
26526 if test "x$ac_cv_type_major_t" = x""yes; then :
26530 cat >>confdefs.h <<_ACEOF
26531 #define major_t int
26536 ac_fn_c_check_type "$LINENO" "minor_t" "ac_cv_type_minor_t" "$ac_includes_default"
26537 if test "x$ac_cv_type_minor_t" = x""yes; then :
26541 cat >>confdefs.h <<_ACEOF
26542 #define minor_t int
26547 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
26548 if test "x$ac_cv_type_ssize_t" = x""yes; then :
26552 cat >>confdefs.h <<_ACEOF
26553 #define ssize_t int
26558 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
26559 if test "x$ac_cv_member_struct_stat_st_blocks" = x""yes; then :
26561 cat >>confdefs.h <<_ACEOF
26562 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
26566 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
26569 case " $LIBOBJS " in
26570 *" fileblocks.$ac_objext "* ) ;;
26571 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
26578 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
26579 if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then :
26581 cat >>confdefs.h <<_ACEOF
26582 #define HAVE_STRUCT_STAT_ST_RDEV 1
26586 $as_echo "#define HAVE_ST_RDEV 1" >>confdefs.h
26591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
26592 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
26593 if test "${ac_cv_struct_tm+set}" = set; then :
26594 $as_echo_n "(cached) " >&6
26596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26597 /* end confdefs.h. */
26598 #include <sys/types.h>
26605 int *p = &tm.tm_sec;
26611 if ac_fn_c_try_compile "$LINENO"; then :
26612 ac_cv_struct_tm=time.h
26614 ac_cv_struct_tm=sys/time.h
26616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
26619 $as_echo "$ac_cv_struct_tm" >&6; }
26620 if test $ac_cv_struct_tm = sys/time.h; then
26622 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
26626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
26627 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
26628 if test "${ac_cv_c_const+set}" = set; then :
26629 $as_echo_n "(cached) " >&6
26631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26632 /* end confdefs.h. */
26637 /* FIXME: Include the comments suggested by Paul. */
26638 #ifndef __cplusplus
26639 /* Ultrix mips cc rejects this. */
26640 typedef int charset[2];
26642 /* SunOS 4.1.1 cc rejects this. */
26643 char const *const *pcpcc;
26645 /* NEC SVR4.0.2 mips cc rejects this. */
26646 struct point {int x, y;};
26647 static struct point const zero = {0,0};
26648 /* AIX XL C 1.02.0.0 rejects this.
26649 It does not let you subtract one const X* pointer from another in
26650 an arm of an if-expression whose if-part is not a constant
26652 const char *g = "string";
26653 pcpcc = &g + (g ? g-g : 0);
26654 /* HPUX 7.0 cc rejects these. */
26656 ppc = (char**) pcpcc;
26657 pcpcc = (char const *const *) ppc;
26658 { /* SCO 3.2v4 cc rejects this. */
26660 char const *s = 0 ? (char *) 0 : (char const *) 0;
26665 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
26666 int x[] = {25, 17};
26667 const int *foo = &x[0];
26670 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
26671 typedef const int *iptr;
26675 { /* AIX XL C 1.02.0.0 rejects this saying
26676 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
26677 struct s { int j; const int *ap[3]; };
26678 struct s *b; b->j = 5;
26680 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
26681 const int foo = 10;
26682 if (!foo) return 0;
26684 return !cs[0] && !zero.x;
26691 if ac_fn_c_try_compile "$LINENO"; then :
26696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
26699 $as_echo "$ac_cv_c_const" >&6; }
26700 if test $ac_cv_c_const = no; then
26702 $as_echo "#define const /**/" >>confdefs.h
26707 # The cast to long int works around a bug in the HP C Compiler
26708 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26709 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26710 # This bug is HP SR number 8606223364.
26711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
26712 $as_echo_n "checking size of char... " >&6; }
26713 if test "${ac_cv_sizeof_char+set}" = set; then :
26714 $as_echo_n "(cached) " >&6
26716 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
26719 if test "$ac_cv_type_char" = yes; then
26720 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26721 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26722 { as_fn_set_status 77
26723 as_fn_error "cannot compute sizeof (char)
26724 See \`config.log' for more details." "$LINENO" 5; }; }
26726 ac_cv_sizeof_char=0
26731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
26732 $as_echo "$ac_cv_sizeof_char" >&6; }
26736 cat >>confdefs.h <<_ACEOF
26737 #define SIZEOF_CHAR $ac_cv_sizeof_char
26741 # The cast to long int works around a bug in the HP C Compiler
26742 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26743 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26744 # This bug is HP SR number 8606223364.
26745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short int" >&5
26746 $as_echo_n "checking size of short int... " >&6; }
26747 if test "${ac_cv_sizeof_short_int+set}" = set; then :
26748 $as_echo_n "(cached) " >&6
26750 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short int))" "ac_cv_sizeof_short_int" "$ac_includes_default"; then :
26753 if test "$ac_cv_type_short_int" = yes; then
26754 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26755 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26756 { as_fn_set_status 77
26757 as_fn_error "cannot compute sizeof (short int)
26758 See \`config.log' for more details." "$LINENO" 5; }; }
26760 ac_cv_sizeof_short_int=0
26765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short_int" >&5
26766 $as_echo "$ac_cv_sizeof_short_int" >&6; }
26770 cat >>confdefs.h <<_ACEOF
26771 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
26775 # The cast to long int works around a bug in the HP C Compiler
26776 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26777 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26778 # This bug is HP SR number 8606223364.
26779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
26780 $as_echo_n "checking size of int... " >&6; }
26781 if test "${ac_cv_sizeof_int+set}" = set; then :
26782 $as_echo_n "(cached) " >&6
26784 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
26787 if test "$ac_cv_type_int" = yes; then
26788 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26789 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26790 { as_fn_set_status 77
26791 as_fn_error "cannot compute sizeof (int)
26792 See \`config.log' for more details." "$LINENO" 5; }; }
26799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
26800 $as_echo "$ac_cv_sizeof_int" >&6; }
26804 cat >>confdefs.h <<_ACEOF
26805 #define SIZEOF_INT $ac_cv_sizeof_int
26809 # The cast to long int works around a bug in the HP C Compiler
26810 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26811 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26812 # This bug is HP SR number 8606223364.
26813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long int" >&5
26814 $as_echo_n "checking size of long int... " >&6; }
26815 if test "${ac_cv_sizeof_long_int+set}" = set; then :
26816 $as_echo_n "(cached) " >&6
26818 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long int))" "ac_cv_sizeof_long_int" "$ac_includes_default"; then :
26821 if test "$ac_cv_type_long_int" = yes; then
26822 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26823 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26824 { as_fn_set_status 77
26825 as_fn_error "cannot compute sizeof (long int)
26826 See \`config.log' for more details." "$LINENO" 5; }; }
26828 ac_cv_sizeof_long_int=0
26833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_int" >&5
26834 $as_echo "$ac_cv_sizeof_long_int" >&6; }
26838 cat >>confdefs.h <<_ACEOF
26839 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
26843 # The cast to long int works around a bug in the HP C Compiler
26844 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26845 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26846 # This bug is HP SR number 8606223364.
26847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long int" >&5
26848 $as_echo_n "checking size of long long int... " >&6; }
26849 if test "${ac_cv_sizeof_long_long_int+set}" = set; then :
26850 $as_echo_n "(cached) " >&6
26852 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long int))" "ac_cv_sizeof_long_long_int" "$ac_includes_default"; then :
26855 if test "$ac_cv_type_long_long_int" = yes; then
26856 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26857 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26858 { as_fn_set_status 77
26859 as_fn_error "cannot compute sizeof (long long int)
26860 See \`config.log' for more details." "$LINENO" 5; }; }
26862 ac_cv_sizeof_long_long_int=0
26867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long_int" >&5
26868 $as_echo "$ac_cv_sizeof_long_long_int" >&6; }
26872 cat >>confdefs.h <<_ACEOF
26873 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
26877 # The cast to long int works around a bug in the HP C Compiler
26878 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26879 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26880 # This bug is HP SR number 8606223364.
26881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int *" >&5
26882 $as_echo_n "checking size of int *... " >&6; }
26883 if test "${ac_cv_sizeof_int_p+set}" = set; then :
26884 $as_echo_n "(cached) " >&6
26886 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int *))" "ac_cv_sizeof_int_p" "$ac_includes_default"; then :
26889 if test "$ac_cv_type_int_p" = yes; then
26890 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26891 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26892 { as_fn_set_status 77
26893 as_fn_error "cannot compute sizeof (int *)
26894 See \`config.log' for more details." "$LINENO" 5; }; }
26896 ac_cv_sizeof_int_p=0
26901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int_p" >&5
26902 $as_echo "$ac_cv_sizeof_int_p" >&6; }
26906 cat >>confdefs.h <<_ACEOF
26907 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
26912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int type" >&5
26913 $as_echo_n "checking for u_int type... " >&6; }
26914 if test "${ac_cv_have_u_int+set}" = set; then :
26915 $as_echo_n "(cached) " >&6
26918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26919 /* end confdefs.h. */
26921 #include <sys/types.h>
26933 if ac_fn_c_try_compile "$LINENO"; then :
26935 ac_cv_have_u_int="yes"
26939 ac_cv_have_u_int="no"
26943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_int" >&5
26948 $as_echo "$ac_cv_have_u_int" >&6; }
26949 if test "x$ac_cv_have_u_int" = "xyes" ; then
26950 $as_echo "#define HAVE_U_INT 1" >>confdefs.h
26955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t type" >&5
26956 $as_echo_n "checking for intmax_t type... " >&6; }
26957 if test "${ac_cv_have_intmax_t+set}" = set; then :
26958 $as_echo_n "(cached) " >&6
26961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26962 /* end confdefs.h. */
26964 #include <sys/types.h>
26976 if ac_fn_c_try_compile "$LINENO"; then :
26978 ac_cv_have_intmax_t="yes"
26982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26983 /* end confdefs.h. */
26985 #include <stdint.h>
26997 if ac_fn_c_try_compile "$LINENO"; then :
26999 ac_cv_have_intmax_t="yes"
27003 ac_cv_have_intmax_t="no"
27007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_intmax_t" >&5
27016 $as_echo "$ac_cv_have_intmax_t" >&6; }
27017 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
27018 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
27023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_intmax_t type" >&5
27024 $as_echo_n "checking for u_intmax_t type... " >&6; }
27025 if test "${ac_cv_have_u_intmax_t+set}" = set; then :
27026 $as_echo_n "(cached) " >&6
27029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27030 /* end confdefs.h. */
27032 #include <sys/types.h>
27038 u_intmax_t a; a = 1;
27044 if ac_fn_c_try_compile "$LINENO"; then :
27046 ac_cv_have_u_intmax_t="yes"
27050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27051 /* end confdefs.h. */
27053 #include <stdint.h>
27059 u_intmax_t a; a = 1;
27065 if ac_fn_c_try_compile "$LINENO"; then :
27067 ac_cv_have_u_intmax_t="yes"
27071 ac_cv_have_u_intmax_t="no"
27075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_intmax_t" >&5
27084 $as_echo "$ac_cv_have_u_intmax_t" >&6; }
27085 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
27086 $as_echo "#define HAVE_U_INTMAX_T 1" >>confdefs.h
27091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intXX_t types" >&5
27092 $as_echo_n "checking for intXX_t types... " >&6; }
27093 if test "${ac_cv_have_intxx_t+set}" = set; then :
27094 $as_echo_n "(cached) " >&6
27097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27098 /* end confdefs.h. */
27100 #include <sys/types.h>
27106 int8_t a; int16_t b; int32_t c; a = b = c = 1;
27112 if ac_fn_c_try_compile "$LINENO"; then :
27114 ac_cv_have_intxx_t="yes"
27118 ac_cv_have_intxx_t="no"
27122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_intxx_t" >&5
27127 $as_echo "$ac_cv_have_intxx_t" >&6; }
27128 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
27129 $as_echo "#define HAVE_INTXX_T 1" >>confdefs.h
27134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t type" >&5
27135 $as_echo_n "checking for int64_t type... " >&6; }
27136 if test "${ac_cv_have_int64_t+set}" = set; then :
27137 $as_echo_n "(cached) " >&6
27140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27141 /* end confdefs.h. */
27143 #include <sys/types.h>
27155 if ac_fn_c_try_compile "$LINENO"; then :
27157 ac_cv_have_int64_t="yes"
27161 ac_cv_have_int64_t="no"
27165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_int64_t" >&5
27170 $as_echo "$ac_cv_have_int64_t" >&6; }
27171 if test "x$ac_cv_have_int64_t" = "xyes" ; then
27172 $as_echo "#define HAVE_INT64_T 1" >>confdefs.h
27177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_intXX_t types" >&5
27178 $as_echo_n "checking for u_intXX_t types... " >&6; }
27179 if test "${ac_cv_have_u_intxx_t+set}" = set; then :
27180 $as_echo_n "(cached) " >&6
27183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27184 /* end confdefs.h. */
27186 #include <sys/types.h>
27192 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
27198 if ac_fn_c_try_compile "$LINENO"; then :
27200 ac_cv_have_u_intxx_t="yes"
27204 ac_cv_have_u_intxx_t="no"
27208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_intxx_t" >&5
27213 $as_echo "$ac_cv_have_u_intxx_t" >&6; }
27214 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
27215 $as_echo "#define HAVE_U_INTXX_T 1" >>confdefs.h
27220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int64_t types" >&5
27221 $as_echo_n "checking for u_int64_t types... " >&6; }
27222 if test "${ac_cv_have_u_int64_t+set}" = set; then :
27223 $as_echo_n "(cached) " >&6
27226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27227 /* end confdefs.h. */
27229 #include <sys/types.h>
27235 u_int64_t a; a = 1;
27241 if ac_fn_c_try_compile "$LINENO"; then :
27243 ac_cv_have_u_int64_t="yes"
27247 ac_cv_have_u_int64_t="no"
27251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_int64_t" >&5
27256 $as_echo "$ac_cv_have_u_int64_t" >&6; }
27257 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
27258 $as_echo "#define HAVE_U_INT64_T 1" >>confdefs.h
27263 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
27264 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
27266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
27267 $as_echo_n "checking for intXX_t and u_intXX_t types in sys/bitypes.h... " >&6; }
27268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27269 /* end confdefs.h. */
27271 #include <sys/bitypes.h>
27277 int8_t a; int16_t b; int32_t c;
27278 u_int8_t e; u_int16_t f; u_int32_t g;
27279 a = b = c = e = f = g = 1;
27285 if ac_fn_c_try_compile "$LINENO"; then :
27287 $as_echo "#define HAVE_U_INTXX_T 1" >>confdefs.h
27289 $as_echo "#define HAVE_INTXX_T 1" >>confdefs.h
27291 $as_echo "#define HAVE_SYS_BITYPES_H 1" >>confdefs.h
27293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27294 $as_echo "yes" >&6; }
27298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27299 $as_echo "no" >&6; }
27303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27306 if test -z "$have_u_intxx_t" ; then
27307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uintXX_t types" >&5
27308 $as_echo_n "checking for uintXX_t types... " >&6; }
27309 if test "${ac_cv_have_uintxx_t+set}" = set; then :
27310 $as_echo_n "(cached) " >&6
27313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27314 /* end confdefs.h. */
27316 #include <sys/types.h>
27322 uint8_t a; uint16_t b;
27323 uint32_t c; a = b = c = 1;
27329 if ac_fn_c_try_compile "$LINENO"; then :
27331 ac_cv_have_uintxx_t="yes"
27335 ac_cv_have_uintxx_t="no"
27339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_uintxx_t" >&5
27344 $as_echo "$ac_cv_have_uintxx_t" >&6; }
27345 if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
27346 $as_echo "#define HAVE_UINTXX_T 1" >>confdefs.h
27351 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
27352 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
27354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
27355 $as_echo_n "checking for int64_t and u_int64_t types in sys/bitypes.h... " >&6; }
27356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27357 /* end confdefs.h. */
27359 #include <sys/bitypes.h>
27365 int64_t a; u_int64_t b;
27372 if ac_fn_c_try_compile "$LINENO"; then :
27374 $as_echo "#define HAVE_U_INT64_T 1" >>confdefs.h
27376 $as_echo "#define HAVE_INT64_T 1" >>confdefs.h
27378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27379 $as_echo "yes" >&6; }
27383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27384 $as_echo "no" >&6; }
27388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27391 if (test -z "$have_uintxx_t" && \
27392 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
27394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uintXX_t types in sys/bitypes.h" >&5
27395 $as_echo_n "checking for uintXX_t types in sys/bitypes.h... " >&6; }
27396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27397 /* end confdefs.h. */
27399 #include <sys/bitypes.h>
27405 uint8_t a; uint16_t b;
27406 uint32_t c; a = b = c = 1;
27412 if ac_fn_c_try_compile "$LINENO"; then :
27414 $as_echo "#define HAVE_UINTXX_T 1" >>confdefs.h
27416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27417 $as_echo "yes" >&6; }
27421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27422 $as_echo "no" >&6; }
27426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27445 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
27446 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
27447 eval as_val=\$$as_ac_var
27448 if test "x$as_val" = x""yes; then :
27449 cat >>confdefs.h <<_ACEOF
27450 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
27454 echo 'configure: cannot find needed function.'; exit 1
27460 for ac_func in fchdir
27462 ac_fn_c_check_func "$LINENO" "fchdir" "ac_cv_func_fchdir"
27463 if test "x$ac_cv_func_fchdir" = x""yes; then :
27464 cat >>confdefs.h <<_ACEOF
27465 #define HAVE_FCHDIR 1
27467 $as_echo "#define HAVE_FCHDIR 1" >>confdefs.h
27472 for ac_func in strtoll
27474 ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll"
27475 if test "x$ac_cv_func_strtoll" = x""yes; then :
27476 cat >>confdefs.h <<_ACEOF
27477 #define HAVE_STRTOLL 1
27479 $as_echo "#define HAVE_STRTOLL 1" >>confdefs.h
27484 for ac_func in posix_fadvise
27486 ac_fn_c_check_func "$LINENO" "posix_fadvise" "ac_cv_func_posix_fadvise"
27487 if test "x$ac_cv_func_posix_fadvise" = x""yes; then :
27488 cat >>confdefs.h <<_ACEOF
27489 #define HAVE_POSIX_FADVISE 1
27495 for ac_func in fdatasync
27497 ac_fn_c_check_func "$LINENO" "fdatasync" "ac_cv_func_fdatasync"
27498 if test "x$ac_cv_func_fdatasync" = x""yes; then :
27499 cat >>confdefs.h <<_ACEOF
27500 #define HAVE_FDATASYNC 1
27507 for ac_func in chflags
27509 ac_fn_c_check_func "$LINENO" "chflags" "ac_cv_func_chflags"
27510 if test "x$ac_cv_func_chflags" = x""yes; then :
27511 cat >>confdefs.h <<_ACEOF
27512 #define HAVE_CHFLAGS 1
27519 for ac_func in snprintf vsnprintf gethostid fseeko
27521 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
27522 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
27523 eval as_val=\$$as_ac_var
27524 if test "x$as_val" = x""yes; then :
27525 cat >>confdefs.h <<_ACEOF
27526 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
27533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
27534 $as_echo_n "checking for va_copy... " >&6; }
27535 if test "${ba_cv_va_copy+set}" = set; then :
27536 $as_echo_n "(cached) " >&6
27539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27540 /* end confdefs.h. */
27542 #include <stdarg.h>
27543 void use_va_copy(va_list args){va_list args2; va_copy(args2,args); va_end(args2);}
27544 void call_use_va_copy(int junk,...){va_list args; va_start(args,junk); use_va_copy(args); va_end(args);}
27550 call_use_va_copy(1,2,3)
27556 if ac_fn_c_try_link "$LINENO"; then :
27566 rm -f core conftest.err conftest.$ac_objext \
27567 conftest$ac_exeext conftest.$ac_ext
27571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_va_copy" >&5
27572 $as_echo "$ba_cv_va_copy" >&6; }
27573 test $ba_cv_va_copy = yes &&
27574 $as_echo "#define HAVE_VA_COPY 1" >>confdefs.h
27577 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
27579 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
27580 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
27581 eval as_val=\$$as_ac_var
27582 if test "x$as_val" = x""yes; then :
27583 cat >>confdefs.h <<_ACEOF
27584 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
27591 # If resolver functions are not in libc check for -lnsl or -lresolv.
27592 ac_fn_c_check_func "$LINENO" "gethostbyname_r" "ac_cv_func_gethostbyname_r"
27593 if test "x$ac_cv_func_gethostbyname_r" = x""yes; then :
27594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using libc's resolver" >&5
27595 $as_echo "using libc's resolver" >&6; }
27597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname_r in -lnsl" >&5
27598 $as_echo_n "checking for gethostbyname_r in -lnsl... " >&6; }
27599 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then :
27600 $as_echo_n "(cached) " >&6
27602 ac_check_lib_save_LIBS=$LIBS
27604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27605 /* end confdefs.h. */
27607 /* Override any GCC internal prototype to avoid an error.
27608 Use char because int might match the return type of a GCC
27609 builtin and then its argument prototype would still apply. */
27613 char gethostbyname_r ();
27617 return gethostbyname_r ();
27622 if ac_fn_c_try_link "$LINENO"; then :
27623 ac_cv_lib_nsl_gethostbyname_r=yes
27625 ac_cv_lib_nsl_gethostbyname_r=no
27627 rm -f core conftest.err conftest.$ac_objext \
27628 conftest$ac_exeext conftest.$ac_ext
27629 LIBS=$ac_check_lib_save_LIBS
27631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
27632 $as_echo "$ac_cv_lib_nsl_gethostbyname_r" >&6; }
27633 if test "x$ac_cv_lib_nsl_gethostbyname_r" = x""yes; then :
27634 cat >>confdefs.h <<_ACEOF
27635 #define HAVE_LIBNSL 1
27642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname_r in -lresolv" >&5
27643 $as_echo_n "checking for gethostbyname_r in -lresolv... " >&6; }
27644 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then :
27645 $as_echo_n "(cached) " >&6
27647 ac_check_lib_save_LIBS=$LIBS
27648 LIBS="-lresolv $LIBS"
27649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27650 /* end confdefs.h. */
27652 /* Override any GCC internal prototype to avoid an error.
27653 Use char because int might match the return type of a GCC
27654 builtin and then its argument prototype would still apply. */
27658 char gethostbyname_r ();
27662 return gethostbyname_r ();
27667 if ac_fn_c_try_link "$LINENO"; then :
27668 ac_cv_lib_resolv_gethostbyname_r=yes
27670 ac_cv_lib_resolv_gethostbyname_r=no
27672 rm -f core conftest.err conftest.$ac_objext \
27673 conftest$ac_exeext conftest.$ac_ext
27674 LIBS=$ac_check_lib_save_LIBS
27676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
27677 $as_echo "$ac_cv_lib_resolv_gethostbyname_r" >&6; }
27678 if test "x$ac_cv_lib_resolv_gethostbyname_r" = x""yes; then :
27679 cat >>confdefs.h <<_ACEOF
27680 #define HAVE_LIBRESOLV 1
27683 LIBS="-lresolv $LIBS"
27690 for ac_func in inet_pton
27692 ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton"
27693 if test "x$ac_cv_func_inet_pton" = x""yes; then :
27694 cat >>confdefs.h <<_ACEOF
27695 #define HAVE_INET_PTON 1
27697 $as_echo "#define HAVE_INET_PTON 1" >>confdefs.h
27702 for ac_func in inet_ntop
27704 ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
27705 if test "x$ac_cv_func_inet_ntop" = x""yes; then :
27706 cat >>confdefs.h <<_ACEOF
27707 #define HAVE_INET_NTOP 1
27709 $as_echo "#define HAVE_INET_NTOP 1" >>confdefs.h
27714 for ac_func in gethostbyname2
27716 ac_fn_c_check_func "$LINENO" "gethostbyname2" "ac_cv_func_gethostbyname2"
27717 if test "x$ac_cv_func_gethostbyname2" = x""yes; then :
27718 cat >>confdefs.h <<_ACEOF
27719 #define HAVE_GETHOSTBYNAME2 1
27721 $as_echo "#define HAVE_GETHOSTBYNAME2 1" >>confdefs.h
27727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr has a sa_len field" >&5
27728 $as_echo_n "checking for struct sockaddr has a sa_len field... " >&6; }
27729 if test "${ac_cv_struct_sockaddr_sa_len+set}" = set; then :
27730 $as_echo_n "(cached) " >&6
27733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27734 /* end confdefs.h. */
27736 #include <sys/socket.h>
27742 struct sockaddr s; s.sa_len;
27748 if ac_fn_c_try_compile "$LINENO"; then :
27750 ac_cv_struct_sockaddr_sa_len=yes
27753 ac_cv_struct_sockaddr_sa_len=no
27757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_sockaddr_sa_len" >&5
27762 $as_echo "$ac_cv_struct_sockaddr_sa_len" >&6; }
27764 if test $ac_cv_struct_sockaddr_sa_len = yes; then
27766 $as_echo "#define HAVE_SA_LEN 1" >>confdefs.h
27770 for ac_func in strftime
27772 ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
27773 if test "x$ac_cv_func_strftime" = x""yes; then :
27774 cat >>confdefs.h <<_ACEOF
27775 #define HAVE_STRFTIME 1
27779 # strftime is in -lintl on SCO UNIX.
27780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
27781 $as_echo_n "checking for strftime in -lintl... " >&6; }
27782 if test "${ac_cv_lib_intl_strftime+set}" = set; then :
27783 $as_echo_n "(cached) " >&6
27785 ac_check_lib_save_LIBS=$LIBS
27786 LIBS="-lintl $LIBS"
27787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27788 /* end confdefs.h. */
27790 /* Override any GCC internal prototype to avoid an error.
27791 Use char because int might match the return type of a GCC
27792 builtin and then its argument prototype would still apply. */
27800 return strftime ();
27805 if ac_fn_c_try_link "$LINENO"; then :
27806 ac_cv_lib_intl_strftime=yes
27808 ac_cv_lib_intl_strftime=no
27810 rm -f core conftest.err conftest.$ac_objext \
27811 conftest$ac_exeext conftest.$ac_ext
27812 LIBS=$ac_check_lib_save_LIBS
27814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
27815 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
27816 if test "x$ac_cv_lib_intl_strftime" = x""yes; then :
27817 $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
27819 LIBS="-lintl $LIBS"
27825 for ac_func in vprintf
27827 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
27828 if test "x$ac_cv_func_vprintf" = x""yes; then :
27829 cat >>confdefs.h <<_ACEOF
27830 #define HAVE_VPRINTF 1
27833 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
27834 if test "x$ac_cv_func__doprnt" = x""yes; then :
27836 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
27844 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
27845 # for constant arguments. Useless!
27846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
27847 $as_echo_n "checking for working alloca.h... " >&6; }
27848 if test "${ac_cv_working_alloca_h+set}" = set; then :
27849 $as_echo_n "(cached) " >&6
27851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27852 /* end confdefs.h. */
27853 #include <alloca.h>
27857 char *p = (char *) alloca (2 * sizeof (int));
27863 if ac_fn_c_try_link "$LINENO"; then :
27864 ac_cv_working_alloca_h=yes
27866 ac_cv_working_alloca_h=no
27868 rm -f core conftest.err conftest.$ac_objext \
27869 conftest$ac_exeext conftest.$ac_ext
27871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
27872 $as_echo "$ac_cv_working_alloca_h" >&6; }
27873 if test $ac_cv_working_alloca_h = yes; then
27875 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
27879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
27880 $as_echo_n "checking for alloca... " >&6; }
27881 if test "${ac_cv_func_alloca_works+set}" = set; then :
27882 $as_echo_n "(cached) " >&6
27884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27885 /* end confdefs.h. */
27887 # define alloca __builtin_alloca
27890 # include <malloc.h>
27891 # define alloca _alloca
27893 # ifdef HAVE_ALLOCA_H
27894 # include <alloca.h>
27899 # ifndef alloca /* predefined by HP cc +Olibcalls */
27910 char *p = (char *) alloca (1);
27916 if ac_fn_c_try_link "$LINENO"; then :
27917 ac_cv_func_alloca_works=yes
27919 ac_cv_func_alloca_works=no
27921 rm -f core conftest.err conftest.$ac_objext \
27922 conftest$ac_exeext conftest.$ac_ext
27924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
27925 $as_echo "$ac_cv_func_alloca_works" >&6; }
27927 if test $ac_cv_func_alloca_works = yes; then
27929 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
27932 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
27933 # that cause trouble. Some versions do not even contain alloca or
27934 # contain a buggy version. If you still want to use their alloca,
27935 # use ar to extract alloca.o from them instead of compiling alloca.c.
27937 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
27939 $as_echo "#define C_ALLOCA 1" >>confdefs.h
27942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
27943 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
27944 if test "${ac_cv_os_cray+set}" = set; then :
27945 $as_echo_n "(cached) " >&6
27947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27948 /* end confdefs.h. */
27949 #if defined CRAY && ! defined CRAY2
27956 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27957 $EGREP "webecray" >/dev/null 2>&1; then :
27965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
27966 $as_echo "$ac_cv_os_cray" >&6; }
27967 if test $ac_cv_os_cray = yes; then
27968 for ac_func in _getb67 GETB67 getb67; do
27969 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
27970 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
27971 eval as_val=\$$as_ac_var
27972 if test "x$as_val" = x""yes; then :
27974 cat >>confdefs.h <<_ACEOF
27975 #define CRAY_STACKSEG_END $ac_func
27984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
27985 $as_echo_n "checking stack direction for C alloca... " >&6; }
27986 if test "${ac_cv_c_stack_direction+set}" = set; then :
27987 $as_echo_n "(cached) " >&6
27989 if test "$cross_compiling" = yes; then :
27990 ac_cv_c_stack_direction=0
27992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27993 /* end confdefs.h. */
27994 $ac_includes_default
27996 find_stack_direction ()
27998 static char *addr = 0;
28003 return find_stack_direction ();
28006 return (&dummy > addr) ? 1 : -1;
28012 return find_stack_direction () < 0;
28015 if ac_fn_c_try_run "$LINENO"; then :
28016 ac_cv_c_stack_direction=1
28018 ac_cv_c_stack_direction=-1
28020 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28021 conftest.$ac_objext conftest.beam conftest.$ac_ext
28025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
28026 $as_echo "$ac_cv_c_stack_direction" >&6; }
28027 cat >>confdefs.h <<_ACEOF
28028 #define STACK_DIRECTION $ac_cv_c_stack_direction
28034 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
28035 # -lseq on Dynix/PTX, -lgen on Unixware.
28036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getmntent" >&5
28037 $as_echo_n "checking for library containing getmntent... " >&6; }
28038 if test "${ac_cv_search_getmntent+set}" = set; then :
28039 $as_echo_n "(cached) " >&6
28041 ac_func_search_save_LIBS=$LIBS
28042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28043 /* end confdefs.h. */
28045 /* Override any GCC internal prototype to avoid an error.
28046 Use char because int might match the return type of a GCC
28047 builtin and then its argument prototype would still apply. */
28055 return getmntent ();
28060 for ac_lib in '' sun seq gen; do
28061 if test -z "$ac_lib"; then
28062 ac_res="none required"
28065 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28067 if ac_fn_c_try_link "$LINENO"; then :
28068 ac_cv_search_getmntent=$ac_res
28070 rm -f core conftest.err conftest.$ac_objext \
28072 if test "${ac_cv_search_getmntent+set}" = set; then :
28076 if test "${ac_cv_search_getmntent+set}" = set; then :
28079 ac_cv_search_getmntent=no
28081 rm conftest.$ac_ext
28082 LIBS=$ac_func_search_save_LIBS
28084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getmntent" >&5
28085 $as_echo "$ac_cv_search_getmntent" >&6; }
28086 ac_res=$ac_cv_search_getmntent
28087 if test "$ac_res" != no; then :
28088 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28089 ac_cv_func_getmntent=yes
28091 $as_echo "#define HAVE_GETMNTENT 1" >>confdefs.h
28094 ac_cv_func_getmntent=no
28098 for ac_func in getmntinfo
28100 ac_fn_c_check_func "$LINENO" "getmntinfo" "ac_cv_func_getmntinfo"
28101 if test "x$ac_cv_func_getmntinfo" = x""yes; then :
28102 cat >>confdefs.h <<_ACEOF
28103 #define HAVE_GETMNTINFO 1
28105 $as_echo "#define HAVE_GETMNTINFO 1" >>confdefs.h
28110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
28111 $as_echo_n "checking whether closedir returns void... " >&6; }
28112 if test "${ac_cv_func_closedir_void+set}" = set; then :
28113 $as_echo_n "(cached) " >&6
28115 if test "$cross_compiling" = yes; then :
28116 ac_cv_func_closedir_void=yes
28118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28119 /* end confdefs.h. */
28120 $ac_includes_default
28121 #include <$ac_header_dirent>
28122 #ifndef __cplusplus
28129 return closedir (opendir (".")) != 0;
28134 if ac_fn_c_try_run "$LINENO"; then :
28135 ac_cv_func_closedir_void=no
28137 ac_cv_func_closedir_void=yes
28139 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28140 conftest.$ac_objext conftest.beam conftest.$ac_ext
28144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
28145 $as_echo "$ac_cv_func_closedir_void" >&6; }
28146 if test $ac_cv_func_closedir_void = yes; then
28148 $as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
28152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
28153 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
28154 if test "${ac_cv_func_setpgrp_void+set}" = set; then :
28155 $as_echo_n "(cached) " >&6
28157 if test "$cross_compiling" = yes; then :
28158 as_fn_error "cannot check setpgrp when cross compiling" "$LINENO" 5
28160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28161 /* end confdefs.h. */
28162 $ac_includes_default
28166 /* If this system has a BSD-style setpgrp which takes arguments,
28167 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
28168 exit successfully. */
28169 return setpgrp (1,1) != -1;
28174 if ac_fn_c_try_run "$LINENO"; then :
28175 ac_cv_func_setpgrp_void=no
28177 ac_cv_func_setpgrp_void=yes
28179 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28180 conftest.$ac_objext conftest.beam conftest.$ac_ext
28184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
28185 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
28186 if test $ac_cv_func_setpgrp_void = yes; then
28188 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
28191 # AC_FUNC_FNMATCH dnl use local version
28193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettext in -lintl" >&5
28194 $as_echo_n "checking for gettext in -lintl... " >&6; }
28195 if test "${ac_cv_lib_intl_gettext+set}" = set; then :
28196 $as_echo_n "(cached) " >&6
28198 ac_check_lib_save_LIBS=$LIBS
28199 LIBS="-lintl $LIBS"
28200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28201 /* end confdefs.h. */
28203 /* Override any GCC internal prototype to avoid an error.
28204 Use char because int might match the return type of a GCC
28205 builtin and then its argument prototype would still apply. */
28218 if ac_fn_c_try_link "$LINENO"; then :
28219 ac_cv_lib_intl_gettext=yes
28221 ac_cv_lib_intl_gettext=no
28223 rm -f core conftest.err conftest.$ac_objext \
28224 conftest$ac_exeext conftest.$ac_ext
28225 LIBS=$ac_check_lib_save_LIBS
28227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_gettext" >&5
28228 $as_echo "$ac_cv_lib_intl_gettext" >&6; }
28229 if test "x$ac_cv_lib_intl_gettext" = x""yes; then :
28230 LIBS="$LIBS -lintl"
28234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpwnam in -lsun" >&5
28235 $as_echo_n "checking for getpwnam in -lsun... " >&6; }
28236 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then :
28237 $as_echo_n "(cached) " >&6
28239 ac_check_lib_save_LIBS=$LIBS
28241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28242 /* end confdefs.h. */
28244 /* Override any GCC internal prototype to avoid an error.
28245 Use char because int might match the return type of a GCC
28246 builtin and then its argument prototype would still apply. */
28254 return getpwnam ();
28259 if ac_fn_c_try_link "$LINENO"; then :
28260 ac_cv_lib_sun_getpwnam=yes
28262 ac_cv_lib_sun_getpwnam=no
28264 rm -f core conftest.err conftest.$ac_objext \
28265 conftest$ac_exeext conftest.$ac_ext
28266 LIBS=$ac_check_lib_save_LIBS
28268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sun_getpwnam" >&5
28269 $as_echo "$ac_cv_lib_sun_getpwnam" >&6; }
28270 if test "x$ac_cv_lib_sun_getpwnam" = x""yes; then :
28271 cat >>confdefs.h <<_ACEOF
28272 #define HAVE_LIBSUN 1
28280 for ac_header in zlib.h
28282 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
28283 if test "x$ac_cv_header_zlib_h" = x""yes; then :
28284 cat >>confdefs.h <<_ACEOF
28285 #define HAVE_ZLIB_H 1
28292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
28293 $as_echo_n "checking for deflate in -lz... " >&6; }
28294 if test "${ac_cv_lib_z_deflate+set}" = set; then :
28295 $as_echo_n "(cached) " >&6
28297 ac_check_lib_save_LIBS=$LIBS
28299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28300 /* end confdefs.h. */
28302 /* Override any GCC internal prototype to avoid an error.
28303 Use char because int might match the return type of a GCC
28304 builtin and then its argument prototype would still apply. */
28317 if ac_fn_c_try_link "$LINENO"; then :
28318 ac_cv_lib_z_deflate=yes
28320 ac_cv_lib_z_deflate=no
28322 rm -f core conftest.err conftest.$ac_objext \
28323 conftest$ac_exeext conftest.$ac_ext
28324 LIBS=$ac_check_lib_save_LIBS
28326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
28327 $as_echo "$ac_cv_lib_z_deflate" >&6; }
28328 if test "x$ac_cv_lib_z_deflate" = x""yes; then :
28333 if test x$ZLIBS = x-lz; then
28334 $as_echo "#define HAVE_LIBZ 1" >>confdefs.h
28343 # Check whether --enable-afs was given.
28344 if test "${enable_afs+set}" = set; then :
28345 enableval=$enable_afs;
28346 if test x$enableval = xyes; then
28348 elif test x$enableval = xno; then
28357 if test x$support_afs = xyes -o x$support_afs = xauto; then
28359 # Check whether --with-afsdir was given.
28360 if test "${with_afsdir+set}" = set; then :
28361 withval=$with_afsdir; with_afsdir=$withval
28366 if test x$with_afsdir = x; then
28367 for root in /usr /usr/local; do
28368 if test -d ${root}/include/afs/ ; then
28369 with_afsdir=${root}
28375 AFS_CFLAGS="-I${with_afsdir}/include"
28377 saved_CFLAGS="${CFLAGS}"
28378 CFLAGS="${AFS_CFLAGS} ${saved_CFLAGS}"
28380 for ac_header in afs/stds.h
28382 ac_fn_c_check_header_mongrel "$LINENO" "afs/stds.h" "ac_cv_header_afs_stds_h" "$ac_includes_default"
28383 if test "x$ac_cv_header_afs_stds_h" = x""yes; then :
28384 cat >>confdefs.h <<_ACEOF
28385 #define HAVE_AFS_STDS_H 1
28393 CFLAGS="${saved_CFLAGS}"
28395 for dir in ${with_afsdir}/lib ${with_afsdir}/lib/afs
28397 for arch_type in .a .so
28399 A=`test -f ${dir}/libsys${arch_type} && nm ${dir}/libsys${arch_type} | grep pioctl`
28401 if test $pkg = 0; then
28403 AFS_LIBS="-L${dir} -lsys -lrx -llwp ${dir}/util.a"
28409 if test x$support_afs = xyes -a $have_afs != yes; then
28410 as_fn_error "afs support explicitly enabled but no supported afs implementation found,
28411 please either load the afs libraries or rerun configure without --enable-afs" "$LINENO" 5
28413 if test $have_afs = yes; then
28415 $as_echo "#define HAVE_AFS 1" >>confdefs.h
28418 $as_echo "#define HAVE_AFS_ACL 1" >>confdefs.h
28428 # Check whether --enable-acl was given.
28429 if test "${enable_acl+set}" = set; then :
28430 enableval=$enable_acl;
28431 if test x$enableval = xyes; then
28433 elif test x$enableval = xno; then
28442 have_extended_acl=no
28443 if test x$support_acl = xyes -o x$support_acl = xauto; then
28444 ac_fn_c_check_header_mongrel "$LINENO" "sys/acl.h" "ac_cv_header_sys_acl_h" "$ac_includes_default"
28445 if test "x$ac_cv_header_sys_acl_h" = x""yes; then :
28447 $as_echo "#define HAVE_SYS_ACL_H 1" >>confdefs.h
28453 ac_fn_c_check_func "$LINENO" "acl_get_file" "ac_cv_func_acl_get_file"
28454 if test "x$ac_cv_func_acl_get_file" = x""yes; then :
28462 if test $have_acl = no; then
28463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get_file in -lacl" >&5
28464 $as_echo_n "checking for acl_get_file in -lacl... " >&6; }
28465 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then :
28466 $as_echo_n "(cached) " >&6
28468 ac_check_lib_save_LIBS=$LIBS
28470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28471 /* end confdefs.h. */
28473 /* Override any GCC internal prototype to avoid an error.
28474 Use char because int might match the return type of a GCC
28475 builtin and then its argument prototype would still apply. */
28479 char acl_get_file ();
28483 return acl_get_file ();
28488 if ac_fn_c_try_link "$LINENO"; then :
28489 ac_cv_lib_acl_acl_get_file=yes
28491 ac_cv_lib_acl_acl_get_file=no
28493 rm -f core conftest.err conftest.$ac_objext \
28494 conftest$ac_exeext conftest.$ac_ext
28495 LIBS=$ac_check_lib_save_LIBS
28497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_acl_acl_get_file" >&5
28498 $as_echo "$ac_cv_lib_acl_acl_get_file" >&6; }
28499 if test "x$ac_cv_lib_acl_acl_get_file" = x""yes; then :
28502 if test $have_afs = yes; then
28503 if test -d /usr/lib64/; then
28504 FDLIBS="-L/usr/lib64 -lacl $FDLIBS"
28506 FDLIBS="-L/usr/lib -lacl $FDLIBS"
28509 FDLIBS="-lacl $FDLIBS"
28517 if test $have_acl = no; then
28518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get_file in -lpacl" >&5
28519 $as_echo_n "checking for acl_get_file in -lpacl... " >&6; }
28520 if test "${ac_cv_lib_pacl_acl_get_file+set}" = set; then :
28521 $as_echo_n "(cached) " >&6
28523 ac_check_lib_save_LIBS=$LIBS
28524 LIBS="-lpacl $LIBS"
28525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28526 /* end confdefs.h. */
28528 /* Override any GCC internal prototype to avoid an error.
28529 Use char because int might match the return type of a GCC
28530 builtin and then its argument prototype would still apply. */
28534 char acl_get_file ();
28538 return acl_get_file ();
28543 if ac_fn_c_try_link "$LINENO"; then :
28544 ac_cv_lib_pacl_acl_get_file=yes
28546 ac_cv_lib_pacl_acl_get_file=no
28548 rm -f core conftest.err conftest.$ac_objext \
28549 conftest$ac_exeext conftest.$ac_ext
28550 LIBS=$ac_check_lib_save_LIBS
28552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pacl_acl_get_file" >&5
28553 $as_echo "$ac_cv_lib_pacl_acl_get_file" >&6; }
28554 if test "x$ac_cv_lib_pacl_acl_get_file" = x""yes; then :
28557 FDLIBS="-lpacl $FDLIBS"
28564 if test $have_acl = no; then
28565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acltotext in -lsec" >&5
28566 $as_echo_n "checking for acltotext in -lsec... " >&6; }
28567 if test "${ac_cv_lib_sec_acltotext+set}" = set; then :
28568 $as_echo_n "(cached) " >&6
28570 ac_check_lib_save_LIBS=$LIBS
28572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28573 /* end confdefs.h. */
28575 /* Override any GCC internal prototype to avoid an error.
28576 Use char because int might match the return type of a GCC
28577 builtin and then its argument prototype would still apply. */
28585 return acltotext ();
28590 if ac_fn_c_try_link "$LINENO"; then :
28591 ac_cv_lib_sec_acltotext=yes
28593 ac_cv_lib_sec_acltotext=no
28595 rm -f core conftest.err conftest.$ac_objext \
28596 conftest$ac_exeext conftest.$ac_ext
28597 LIBS=$ac_check_lib_save_LIBS
28599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sec_acltotext" >&5
28600 $as_echo "$ac_cv_lib_sec_acltotext" >&6; }
28601 if test "x$ac_cv_lib_sec_acltotext" = x""yes; then :
28604 FDLIBS="-lsec $FDLIBS"
28606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_totext in -lsec" >&5
28607 $as_echo_n "checking for acl_totext in -lsec... " >&6; }
28608 if test "${ac_cv_lib_sec_acl_totext+set}" = set; then :
28609 $as_echo_n "(cached) " >&6
28611 ac_check_lib_save_LIBS=$LIBS
28613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28614 /* end confdefs.h. */
28616 /* Override any GCC internal prototype to avoid an error.
28617 Use char because int might match the return type of a GCC
28618 builtin and then its argument prototype would still apply. */
28622 char acl_totext ();
28626 return acl_totext ();
28631 if ac_fn_c_try_link "$LINENO"; then :
28632 ac_cv_lib_sec_acl_totext=yes
28634 ac_cv_lib_sec_acl_totext=no
28636 rm -f core conftest.err conftest.$ac_objext \
28637 conftest$ac_exeext conftest.$ac_ext
28638 LIBS=$ac_check_lib_save_LIBS
28640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sec_acl_totext" >&5
28641 $as_echo "$ac_cv_lib_sec_acl_totext" >&6; }
28642 if test "x$ac_cv_lib_sec_acl_totext" = x""yes; then :
28644 have_extended_acl=yes
28655 if test $have_acl = no; then
28656 ac_fn_c_check_func "$LINENO" "acl_get" "ac_cv_func_acl_get"
28657 if test "x$ac_cv_func_acl_get" = x""yes; then :
28661 ac_fn_c_check_func "$LINENO" "aclx_get" "ac_cv_func_aclx_get"
28662 if test "x$ac_cv_func_aclx_get" = x""yes; then :
28664 have_extended_acl=yes
28675 if test x$support_acl = xyes -a $have_acl != yes; then
28676 as_fn_error "acl support explicitly enabled but no supported acl implementation found,
28677 please either load the acl libraries or rerun configure without --enable-acl" "$LINENO" 5
28679 if test $have_acl = yes; then
28681 $as_echo "#define HAVE_ACL 1" >>confdefs.h
28685 if test $have_extended_acl = yes; then
28687 $as_echo "#define HAVE_EXTENDED_ACL 1" >>confdefs.h
28694 # Check whether --enable-xattr was given.
28695 if test "${enable_xattr+set}" = set; then :
28696 enableval=$enable_xattr;
28697 if test x$enableval = xyes; then
28699 elif test x$enableval = xno; then
28708 if test x$support_xattr = xyes -o x$support_xattr = xauto; then
28709 ac_fn_c_check_header_mongrel "$LINENO" "sys/extattr.h" "ac_cv_header_sys_extattr_h" "$ac_includes_default"
28710 if test "x$ac_cv_header_sys_extattr_h" = x""yes; then :
28712 $as_echo "#define HAVE_SYS_EXTATTR_H 1" >>confdefs.h
28717 ac_fn_c_check_header_mongrel "$LINENO" "libutil.h" "ac_cv_header_libutil_h" "$ac_includes_default"
28718 if test "x$ac_cv_header_libutil_h" = x""yes; then :
28720 $as_echo "#define HAVE_LIBUTIL_H 1" >>confdefs.h
28725 for ac_func in extattr_get_link extattr_set_link extattr_list_link
28727 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28728 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28729 eval as_val=\$$as_ac_var
28730 if test "x$as_val" = x""yes; then :
28731 cat >>confdefs.h <<_ACEOF
28732 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28737 $as_echo "#define HAVE_EXTATTR_GET_LINK 1" >>confdefs.h
28740 $as_echo "#define HAVE_EXTATTR_SET_LINK 1" >>confdefs.h
28743 $as_echo "#define HAVE_EXTATTR_LIST_LINK 1" >>confdefs.h
28751 if test $have_xattr = no; then
28752 for ac_func in extattr_get_file extattr_set_file extattr_list_file
28754 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28755 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28756 eval as_val=\$$as_ac_var
28757 if test "x$as_val" = x""yes; then :
28758 cat >>confdefs.h <<_ACEOF
28759 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28764 $as_echo "#define HAVE_EXTATTR_GET_FILE 1" >>confdefs.h
28767 $as_echo "#define HAVE_EXTATTR_SET_FILE 1" >>confdefs.h
28770 $as_echo "#define HAVE_EXTATTR_LIST_FILE 1" >>confdefs.h
28779 if test $have_xattr = yes; then
28780 have_extattr_string_in_libc=no
28781 for ac_func in extattr_namespace_to_string extattr_string_to_namespace
28783 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28784 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28785 eval as_val=\$$as_ac_var
28786 if test "x$as_val" = x""yes; then :
28787 cat >>confdefs.h <<_ACEOF
28788 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28791 have_extattr_string_in_libc=yes
28793 $as_echo "#define HAVE_EXTATTR_NAMESPACE_TO_STRING 1" >>confdefs.h
28796 $as_echo "#define HAVE_EXTATTR_STRING_TO_NAMESPACE 1" >>confdefs.h
28804 if test $have_extattr_string_in_libc = no; then
28805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extattr_namespace_to_string extattr_string_to_namespace in -lutil" >&5
28806 $as_echo_n "checking for extattr_namespace_to_string extattr_string_to_namespace in -lutil... " >&6; }
28807 if test "${ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace+set}" = set; then :
28808 $as_echo_n "(cached) " >&6
28810 ac_check_lib_save_LIBS=$LIBS
28811 LIBS="-lutil $LIBS"
28812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28813 /* end confdefs.h. */
28815 /* Override any GCC internal prototype to avoid an error.
28816 Use char because int might match the return type of a GCC
28817 builtin and then its argument prototype would still apply. */
28821 char extattr_namespace_to_string extattr_string_to_namespace ();
28825 return extattr_namespace_to_string extattr_string_to_namespace ();
28830 if ac_fn_c_try_link "$LINENO"; then :
28831 ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace=yes
28833 ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace=no
28835 rm -f core conftest.err conftest.$ac_objext \
28836 conftest$ac_exeext conftest.$ac_ext
28837 LIBS=$ac_check_lib_save_LIBS
28839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" >&5
28840 $as_echo "$ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" >&6; }
28841 if test "x$ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" = x""yes; then :
28844 $as_echo "#define HAVE_EXTATTR_NAMESPACE_TO_STRING 1" >>confdefs.h
28847 $as_echo "#define HAVE_EXTATTR_STRING_TO_NAMESPACE 1" >>confdefs.h
28849 FDLIBS="-lutil $FDLIBS"
28857 if test $have_xattr = no; then
28858 ac_fn_c_check_header_mongrel "$LINENO" "sys/ea.h" "ac_cv_header_sys_ea_h" "$ac_includes_default"
28859 if test "x$ac_cv_header_sys_ea_h" = x""yes; then :
28861 $as_echo "#define HAVE_SYS_EA_H 1" >>confdefs.h
28866 for ac_func in llistea lgetea lsetea
28868 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28869 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28870 eval as_val=\$$as_ac_var
28871 if test "x$as_val" = x""yes; then :
28872 cat >>confdefs.h <<_ACEOF
28873 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28878 $as_echo "#define HAVE_LLISTEA 1" >>confdefs.h
28881 $as_echo "#define HAVE_LGETEA 1" >>confdefs.h
28884 $as_echo "#define HAVE_LSETEA 1" >>confdefs.h
28892 if test $have_xattr = no; then
28893 for ac_func in listea getea setea
28895 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28896 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28897 eval as_val=\$$as_ac_var
28898 if test "x$as_val" = x""yes; then :
28899 cat >>confdefs.h <<_ACEOF
28900 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28905 $as_echo "#define HAVE_LISTEA 1" >>confdefs.h
28908 $as_echo "#define HAVE_GETEA 1" >>confdefs.h
28911 $as_echo "#define HAVE_SETEA 1" >>confdefs.h
28921 if test $have_xattr = no; then
28922 ac_fn_c_check_header_mongrel "$LINENO" "sys/xattr.h" "ac_cv_header_sys_xattr_h" "$ac_includes_default"
28923 if test "x$ac_cv_header_sys_xattr_h" = x""yes; then :
28925 $as_echo "#define HAVE_SYS_XATTR_H 1" >>confdefs.h
28930 for ac_func in llistxattr lgetxattr lsetxattr
28932 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28933 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28934 eval as_val=\$$as_ac_var
28935 if test "x$as_val" = x""yes; then :
28936 cat >>confdefs.h <<_ACEOF
28937 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28942 $as_echo "#define HAVE_LLISTXATTR 1" >>confdefs.h
28945 $as_echo "#define HAVE_LGETXATTR 1" >>confdefs.h
28948 $as_echo "#define HAVE_LSETXATTR 1" >>confdefs.h
28956 if test $have_xattr = no; then
28957 for ac_func in listxattr getxattr setxattr
28959 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28960 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28961 eval as_val=\$$as_ac_var
28962 if test "x$as_val" = x""yes; then :
28963 cat >>confdefs.h <<_ACEOF
28964 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28969 $as_echo "#define HAVE_LISTXATTR 1" >>confdefs.h
28972 $as_echo "#define HAVE_GETXATTR 1" >>confdefs.h
28975 $as_echo "#define HAVE_SETXATTR 1" >>confdefs.h
28985 if test $have_xattr = no -a `uname -s` = SunOS; then
28986 ac_fn_c_check_header_mongrel "$LINENO" "sys/attr.h" "ac_cv_header_sys_attr_h" "$ac_includes_default"
28987 if test "x$ac_cv_header_sys_attr_h" = x""yes; then :
28989 $as_echo "#define HAVE_SYS_ATTR_H 1" >>confdefs.h
28994 ac_fn_c_check_header_mongrel "$LINENO" "sys/nvpair.h" "ac_cv_header_sys_nvpair_h" "$ac_includes_default"
28995 if test "x$ac_cv_header_sys_nvpair_h" = x""yes; then :
28997 $as_echo "#define HAVE_SYS_NVPAIR_H 1" >>confdefs.h
29002 ac_fn_c_check_header_mongrel "$LINENO" "attr.h" "ac_cv_header_attr_h" "$ac_includes_default"
29003 if test "x$ac_cv_header_attr_h" = x""yes; then :
29005 $as_echo "#define HAVE_ATTR_H 1" >>confdefs.h
29011 for ac_func in openat fstatat unlinkat fchownat futimesat
29013 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29014 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29015 eval as_val=\$$as_ac_var
29016 if test "x$as_val" = x""yes; then :
29017 cat >>confdefs.h <<_ACEOF
29018 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29023 $as_echo "#define HAVE_OPENAT 1" >>confdefs.h
29026 $as_echo "#define HAVE_FSTATAT 1" >>confdefs.h
29029 $as_echo "#define HAVE_UNLINKAT 1" >>confdefs.h
29032 $as_echo "#define HAVE_FCHOWNAT 1" >>confdefs.h
29035 $as_echo "#define HAVE_FUTIMESAT 1" >>confdefs.h
29043 if test $have_xattr = yes; then
29044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nvlist_next_nvpair in -lnvpair" >&5
29045 $as_echo_n "checking for nvlist_next_nvpair in -lnvpair... " >&6; }
29046 if test "${ac_cv_lib_nvpair_nvlist_next_nvpair+set}" = set; then :
29047 $as_echo_n "(cached) " >&6
29049 ac_check_lib_save_LIBS=$LIBS
29050 LIBS="-lnvpair $LIBS"
29051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29052 /* end confdefs.h. */
29054 /* Override any GCC internal prototype to avoid an error.
29055 Use char because int might match the return type of a GCC
29056 builtin and then its argument prototype would still apply. */
29060 char nvlist_next_nvpair ();
29064 return nvlist_next_nvpair ();
29069 if ac_fn_c_try_link "$LINENO"; then :
29070 ac_cv_lib_nvpair_nvlist_next_nvpair=yes
29072 ac_cv_lib_nvpair_nvlist_next_nvpair=no
29074 rm -f core conftest.err conftest.$ac_objext \
29075 conftest$ac_exeext conftest.$ac_ext
29076 LIBS=$ac_check_lib_save_LIBS
29078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nvpair_nvlist_next_nvpair" >&5
29079 $as_echo "$ac_cv_lib_nvpair_nvlist_next_nvpair" >&6; }
29080 if test "x$ac_cv_lib_nvpair_nvlist_next_nvpair" = x""yes; then :
29083 $as_echo "#define HAVE_NVLIST_NEXT_NVPAIR 1" >>confdefs.h
29085 FDLIBS="-lnvpair $FDLIBS"
29093 if test x$support_xattr = xyes -a $have_xattr != yes; then
29094 as_fn_error "xattr support explicitly enabled but no supported xattr implementation found,
29095 please either load the xattr libraries or rerun configure without --enable-xattr" "$LINENO" 5
29097 if test $have_xattr = yes; then
29099 $as_echo "#define HAVE_XATTR 1" >>confdefs.h
29106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
29107 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
29108 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then :
29109 $as_echo_n "(cached) " >&6
29111 ac_check_lib_save_LIBS=$LIBS
29112 LIBS="-lpthread $LIBS"
29113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29114 /* end confdefs.h. */
29116 /* Override any GCC internal prototype to avoid an error.
29117 Use char because int might match the return type of a GCC
29118 builtin and then its argument prototype would still apply. */
29122 char pthread_create ();
29126 return pthread_create ();
29131 if ac_fn_c_try_link "$LINENO"; then :
29132 ac_cv_lib_pthread_pthread_create=yes
29134 ac_cv_lib_pthread_pthread_create=no
29136 rm -f core conftest.err conftest.$ac_objext \
29137 conftest$ac_exeext conftest.$ac_ext
29138 LIBS=$ac_check_lib_save_LIBS
29140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
29141 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
29142 if test "x$ac_cv_lib_pthread_pthread_create" = x""yes; then :
29143 PTHREAD_LIB="-lpthread"
29146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthreads" >&5
29147 $as_echo_n "checking for pthread_create in -lpthreads... " >&6; }
29148 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then :
29149 $as_echo_n "(cached) " >&6
29151 ac_check_lib_save_LIBS=$LIBS
29152 LIBS="-lpthreads $LIBS"
29153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29154 /* end confdefs.h. */
29156 /* Override any GCC internal prototype to avoid an error.
29157 Use char because int might match the return type of a GCC
29158 builtin and then its argument prototype would still apply. */
29162 char pthread_create ();
29166 return pthread_create ();
29171 if ac_fn_c_try_link "$LINENO"; then :
29172 ac_cv_lib_pthreads_pthread_create=yes
29174 ac_cv_lib_pthreads_pthread_create=no
29176 rm -f core conftest.err conftest.$ac_objext \
29177 conftest$ac_exeext conftest.$ac_ext
29178 LIBS=$ac_check_lib_save_LIBS
29180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_pthread_create" >&5
29181 $as_echo "$ac_cv_lib_pthreads_pthread_create" >&6; }
29182 if test "x$ac_cv_lib_pthreads_pthread_create" = x""yes; then :
29183 PTHREAD_LIB="-lpthreads"
29186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lc_r" >&5
29187 $as_echo_n "checking for pthread_create in -lc_r... " >&6; }
29188 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then :
29189 $as_echo_n "(cached) " >&6
29191 ac_check_lib_save_LIBS=$LIBS
29193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29194 /* end confdefs.h. */
29196 /* Override any GCC internal prototype to avoid an error.
29197 Use char because int might match the return type of a GCC
29198 builtin and then its argument prototype would still apply. */
29202 char pthread_create ();
29206 return pthread_create ();
29211 if ac_fn_c_try_link "$LINENO"; then :
29212 ac_cv_lib_c_r_pthread_create=yes
29214 ac_cv_lib_c_r_pthread_create=no
29216 rm -f core conftest.err conftest.$ac_objext \
29217 conftest$ac_exeext conftest.$ac_ext
29218 LIBS=$ac_check_lib_save_LIBS
29220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_create" >&5
29221 $as_echo "$ac_cv_lib_c_r_pthread_create" >&6; }
29222 if test "x$ac_cv_lib_c_r_pthread_create" = x""yes; then :
29223 PTHREAD_LIB="-lc_r"
29226 ac_fn_c_check_func "$LINENO" "pthread_create" "ac_cv_func_pthread_create"
29227 if test "x$ac_cv_func_pthread_create" = x""yes; then :
29244 for ac_header in sys/prctl.h sys/capability.h
29246 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29247 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
29248 eval as_val=\$$as_ac_Header
29249 if test "x$as_val" = x""yes; then :
29250 cat >>confdefs.h <<_ACEOF
29251 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29258 for ac_func in prctl setreuid
29260 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29261 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29262 eval as_val=\$$as_ac_var
29263 if test "x$as_val" = x""yes; then :
29264 cat >>confdefs.h <<_ACEOF
29265 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cap_set_proc in -lcap" >&5
29272 $as_echo_n "checking for cap_set_proc in -lcap... " >&6; }
29273 if test "${ac_cv_lib_cap_cap_set_proc+set}" = set; then :
29274 $as_echo_n "(cached) " >&6
29276 ac_check_lib_save_LIBS=$LIBS
29278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29279 /* end confdefs.h. */
29281 /* Override any GCC internal prototype to avoid an error.
29282 Use char because int might match the return type of a GCC
29283 builtin and then its argument prototype would still apply. */
29287 char cap_set_proc ();
29291 return cap_set_proc ();
29296 if ac_fn_c_try_link "$LINENO"; then :
29297 ac_cv_lib_cap_cap_set_proc=yes
29299 ac_cv_lib_cap_cap_set_proc=no
29301 rm -f core conftest.err conftest.$ac_objext \
29302 conftest$ac_exeext conftest.$ac_ext
29303 LIBS=$ac_check_lib_save_LIBS
29305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cap_cap_set_proc" >&5
29306 $as_echo "$ac_cv_lib_cap_cap_set_proc" >&6; }
29307 if test "x$ac_cv_lib_cap_cap_set_proc" = x""yes; then :
29313 if test x$CAP_LIBS = x-lcap; then
29315 $as_echo "#define HAVE_LIBCAP 1" >>confdefs.h
29321 $as_echo "#define FDLIBS 1" >>confdefs.h
29324 CFLAGS=${CFLAGS--O}
29326 if test x$have_gcc = xyes ; then
29327 CPPFLAGS="$CPPFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
29328 CFLAGS="$CFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
29330 LDFLAGS=${LDFLAGS--O}
29331 DB_LIBS="${SQL_LFLAGS}"
29332 CPPFLAGS="$CPPFLAGS"
29359 PFILES="platforms/Makefile"
29364 hostname=`uname -n | cut -d '.' -f 1`
29365 if test x${hostname} = x ; then
29366 hostname="localhost"
29368 ping -c 1 $hostname 2>/dev/null 1>/dev/null
29369 if test ! $? = 0; then
29370 hostname="localhost"
29373 case "$DISTNAME" in
29376 PSCMD="ps -e -o pid,comm"
29377 PFILES="${PFILES} \
29378 platforms/aix/Makefile"
29379 TAPEDRIVE="/dev/rmt0.1"
29383 PTHREAD_LIB="-lpthread -lexc"
29384 if test "${CC}" = "gcc" ; then
29391 TAPEDRIVE="/dev/nrmt0"
29394 DISTVER=`uname -a |awk '{print $3}'`
29395 TAPEDRIVE="/dev/nrmt0"
29396 PTHREAD_LIB="-pthread"
29397 CFLAGS="${CFLAGS} -pthread"
29398 PSCMD="ps -ax -o pid,command"
29401 PFILES="${PFILES} \
29402 platforms/bsdi/Makefile \
29403 platforms/bsdi/bacula-fd \
29404 platforms/bsdi/bacula-sd \
29405 platforms/bsdi/bacula-dir"
29406 largefile_support="yes"
29409 DISTVER=`uname -a |awk '{print $3}'`
29410 TAPEDRIVE="/dev/nrst0"
29412 WCFLAGS="-mwindows"
29413 WLDFLAGS="-mwindows"
29417 TAPEDRIVE="/dev/nst0"
29418 PSCMD="ps -e -o pid,command"
29420 PFILES="${PFILES} \
29421 platforms/darwin/Makefile"
29425 TAPEDRIVE="/dev/nst0"
29426 PSCMD="ps -e -o pid,command"
29428 PFILES="${PFILES} \
29429 platforms/osx/Makefile"
29432 if `test -f /etc/apt/sources.list && grep -q ubuntu /etc/apt/sources.list`; then
29435 DISTVER=`cat /etc/debian_version`
29436 if test -f /etc/lsb-release ; then
29438 if test "x$DISTRIB_ID" != "x" ; then
29439 DISTNAME=$DISTRIB_ID
29441 if test "x$DISTRIB_RELEASE" != "x" ; then
29442 DISTVER=$DISTRIB_RELEASE
29445 if test "$DISTNAME" = "Ubuntu" ; then
29448 TAPEDRIVE="/dev/nst0"
29449 PSCMD="ps -e -o pid,command"
29450 if test "$DISTNAME" = "ubuntu" ; then
29451 PFILES="${PFILES} \
29452 platforms/ubuntu/Makefile \
29453 platforms/ubuntu/bacula-fd \
29454 platforms/ubuntu/bacula-sd \
29455 platforms/ubuntu/bacula-dir"
29457 PFILES="${PFILES} \
29458 platforms/debian/Makefile \
29459 platforms/debian/bacula-fd \
29460 platforms/debian/bacula-sd \
29461 platforms/debian/bacula-dir"
29465 DISTVER=`uname -a |awk '{print $3}'`
29466 VER=`echo $DISTVER | cut -c 1`
29467 if test x$VER = x4 ; then
29468 PTHREAD_LIB="${PTHREAD_LIBS:--pthread}"
29469 CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS:--pthread}"
29473 TAPEDRIVE="/dev/nrsa0"
29474 PSCMD="ps -ax -o pid,command"
29475 PFILES="${PFILES} \
29476 platforms/freebsd/Makefile \
29477 platforms/freebsd/bacula-fd \
29478 platforms/freebsd/bacula-sd \
29479 platforms/freebsd/bacula-dir"
29480 largefile_support="yes"
29483 PSCMD="UNIX95=1; ps -e -o pid,comm"
29484 CFLAGS="${CFLAGS} -D_XOPEN_SOURCE_EXTENDED=1"
29486 TAPEDRIVE="/dev/rmt/0hnb"
29487 PTHREAD_LIB="-lpthread"
29488 $as_echo "#define _INCLUDE_LONGLONG 1" >>confdefs.h
29493 TAPEDRIVE="/dev/rmt/0cbn"
29494 PSCMD="ps -e -o pid,comm"
29495 PFILES="${PFILES} \
29496 platforms/irix/Makefile \
29497 platforms/irix/bacula-fd \
29498 platforms/irix/bacula-sd \
29499 platforms/irix/bacula-dir"
29502 DISTVER=`uname -a |awk '{print $3}'`
29505 TAPEDRIVE="/dev/nrst0"
29506 PSCMD="ps -ax -o pid,command"
29507 PTHREAD_LIB="-pthread"
29508 CFLAGS="${CFLAGS} -pthread"
29511 DISTVER=`uname -a |awk '{print $3}'`
29514 TAPEDRIVE="/dev/nrst0"
29515 PSCMD="ps -ax -o pid,command"
29516 PTHREAD_LIB="-pthread"
29517 CFLAGS="${CFLAGS} -pthread"
29518 PFILES="${PFILES} \
29519 platforms/openbsd/Makefile \
29520 platforms/openbsd/bacula-fd \
29521 platforms/openbsd/bacula-sd \
29522 platforms/openbsd/bacula-dir"
29525 if test -f /etc/whitebox-release ; then
29526 f=/etc/whitebox-release
29528 f=/etc/redhat-release
29530 if test `cat $f | grep release |\
29531 cut -f 3 -d ' '`x = "Enterprise"x ; then
29532 DISTVER="Enterprise "`cat $f | grep release |\
29535 DISTVER=`cat /etc/redhat-release | grep release |\
29538 TAPEDRIVE="/dev/nst0"
29539 PSCMD="ps -e -o pid,command"
29540 PFILES="${PFILES} \
29541 platforms/redhat/Makefile \
29542 platforms/redhat/bacula-fd \
29543 platforms/redhat/bacula-sd \
29544 platforms/redhat/bacula-dir
29548 DISTVER=`cat /etc/mandrake-release | grep release |\
29550 TAPEDRIVE="/dev/nst0"
29551 PSCMD="ps -e -o pid,command"
29552 PFILES="${PFILES} \
29553 platforms/mandrake/Makefile \
29554 platforms/mandrake/bacula-fd \
29555 platforms/mandrake/bacula-sd \
29556 platforms/mandrake/bacula-dir \
29560 DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
29561 TAPEDRIVE="/dev/nst0"
29562 PSCMD="ps -e -o pid,command"
29563 PFILES="${PFILES} \
29564 platforms/gentoo/Makefile \
29565 platforms/gentoo/bacula-init \
29566 platforms/gentoo/bacula-fd \
29567 platforms/gentoo/bacula-sd \
29568 platforms/gentoo/bacula-dir"
29571 DISTVER=`cat /etc/slackware-version`
29572 TAPEDRIVE="/dev/nst0"
29573 PSCMD="ps -e -o pid,command"
29574 PFILES="${PFILES} \
29575 platforms/slackware/Makefile \
29576 platforms/slackware/rc.bacula-fd \
29577 platforms/slackware/rc.bacula-sd \
29578 platforms/slackware/rc.bacula-dir\
29579 platforms/slackware/functions.bacula"
29583 TAPEDRIVE="/dev/rmt/0cbn"
29584 PSCMD="ps -e -o pid,comm"
29585 PFILES="${PFILES} \
29586 platforms/solaris/Makefile \
29587 platforms/solaris/bacula-fd \
29588 platforms/solaris/bacula-sd \
29589 platforms/solaris/bacula-dir"
29590 if test x$DISTVER = x5.6 ; then
29591 $as_echo "#define HAVE_OLD_SOCKOPT 1" >>confdefs.h
29594 LIBS="$LIBS -lresolv -lrt"
29597 DISTVER=`cat /etc/SuSE-release |grep VERSION|\
29599 TAPEDRIVE="/dev/nst0"
29600 PSCMD="ps -e -o pid,command"
29601 PFILES="${PFILES} \
29602 platforms/suse/Makefile \
29603 platforms/suse/bacula-fd \
29604 platforms/suse/bacula-sd \
29605 platforms/suse/bacula-dir \
29606 platforms/suse/bacula"
29611 TAPEDRIVE="/dev/nst0"
29612 PSCMD="ps -e -o pid,command"
29613 PFILES="${PFILES} \
29614 platforms/suse/Makefile \
29615 platforms/suse/bacula-fd \
29616 platforms/suse/bacula-sd \
29617 platforms/suse/bacula-dir"
29621 TAPEDRIVE="/dev/nst0"
29624 echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
29630 LIBS="$PTHREAD_LIB $LIBS"
29632 cat >>confdefs.h <<_ACEOF
29636 cat >>confdefs.h <<_ACEOF
29647 MCOMMON=./autoconf/Make.common
29650 if test "x${subsysdir}" = "x${sbindir}" ; then
29653 echo "You have set both --sbindir and --with-subsys-dir"
29654 echo " equal to: ${subsysdir} "
29655 echo "This is not permitted. Please reconfigure."
29657 echo "Aborting configuration ..."
29663 ac_config_files="$ac_config_files autoconf/Make.common Makefile manpages/Makefile scripts/startmysql scripts/stopmysql scripts/btraceback scripts/startit scripts/stopit scripts/bconsole scripts/gconsole scripts/bacula scripts/bacula-ctl-dir scripts/bacula-ctl-fd scripts/bacula-ctl-sd scripts/devel_bacula scripts/Makefile scripts/logrotate scripts/bacula.desktop.gnome1 scripts/bacula.desktop.gnome2 scripts/bacula.desktop.gnome1.consolehelper scripts/bacula.desktop.gnome2.consolehelper scripts/bacula.desktop.gnome1.xsu scripts/bacula.desktop.gnome2.xsu scripts/bgnome-console.console_apps scripts/mtx-changer scripts/disk-changer scripts/dvd-handler scripts/dvd-simulator scripts/bacula-tray-monitor.desktop scripts/logwatch/Makefile scripts/logwatch/logfile.bacula.conf scripts/wxconsole.console_apps scripts/wxconsole.desktop.consolehelper scripts/wxconsole.desktop.xsu scripts/bat.desktop scripts/bat.desktop.xsu scripts/bat.desktop.consolehelper scripts/bat.console_apps src/Makefile src/host.h src/console/Makefile src/console/bconsole.conf src/qt-console/bat.conf src/qt-console/bat.pro src/qt-console/bat.pro.mingw32 src/qt-console/install_conf_file src/wx-console/Makefile src/wx-console/bwx-console.conf src/tray-monitor/Makefile src/tray-monitor/tray-monitor.conf src/dird/Makefile src/dird/bacula-dir.conf src/lib/Makefile src/stored/Makefile src/stored/bacula-sd.conf src/filed/Makefile src/filed/bacula-fd.conf src/cats/Makefile src/cats/make_catalog_backup.pl src/cats/make_catalog_backup src/cats/delete_catalog_backup src/cats/create_postgresql_database src/cats/update_postgresql_tables src/cats/make_postgresql_tables src/cats/grant_postgresql_privileges src/cats/drop_postgresql_tables src/cats/drop_postgresql_database src/cats/create_mysql_database src/cats/update_mysql_tables src/cats/make_mysql_tables src/cats/grant_mysql_privileges src/cats/drop_mysql_tables src/cats/drop_mysql_database src/cats/create_sqlite3_database src/cats/update_sqlite3_tables src/cats/make_sqlite3_tables src/cats/grant_sqlite3_privileges src/cats/drop_sqlite3_tables src/cats/drop_sqlite3_database src/cats/create_ingres_database src/cats/update_ingres_tables src/cats/make_ingres_tables src/cats/grant_ingres_privileges src/cats/drop_ingres_tables src/cats/drop_ingres_database src/cats/sqlite src/cats/mysql src/cats/create_bacula_database src/cats/update_bacula_tables src/cats/grant_bacula_privileges src/cats/make_bacula_tables src/cats/drop_bacula_tables src/cats/drop_bacula_database src/findlib/Makefile src/tools/Makefile src/plugins/fd/Makefile src/plugins/sd/Makefile src/plugins/dir/Makefile src/win32/Makefile.inc po/Makefile.in updatedb/update_mysql_tables_9_to_10 updatedb/update_sqlite3_tables_9_to_10 updatedb/update_postgresql_tables_9_to_10 updatedb/update_mysql_tables_10_to_11 updatedb/update_sqlite3_tables_10_to_11 updatedb/update_postgresql_tables_10_to_11 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"
29665 ac_config_commands="$ac_config_commands default"
29667 cat >confcache <<\_ACEOF
29668 # This file is a shell script that caches the results of configure
29669 # tests run on this system so they can be shared between configure
29670 # scripts and configure runs, see configure's option --config-cache.
29671 # It is not useful on other systems. If it contains results you don't
29672 # want to keep, you may remove or edit it.
29674 # config.status only pays attention to the cache file if you give it
29675 # the --recheck option to rerun configure.
29677 # `ac_cv_env_foo' variables (set or unset) will be overridden when
29678 # loading this file, other *unset* `ac_cv_foo' will be assigned the
29679 # following values.
29683 # The following way of writing the cache mishandles newlines in values,
29684 # but we know of no workaround that is simple, portable, and efficient.
29685 # So, we kill variables containing newlines.
29686 # Ultrix sh set writes to stderr and can't be redirected directly,
29687 # and sets the high bit in the cache file unless we assign to the vars.
29689 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
29690 eval ac_val=\$$ac_var
29694 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
29695 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
29698 _ | IFS | as_nl) ;; #(
29699 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
29700 *) { eval $ac_var=; unset $ac_var;} ;;
29706 case $as_nl`(ac_space=' '; set) 2>&1` in #(
29707 *${as_nl}ac_space=\ *)
29708 # `set' does not quote correctly, so add quotes: double-quote
29709 # substitution turns \\\\ into \\, and sed turns \\ into \.
29712 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
29715 # `set' quotes correctly as required by POSIX, so do not add quotes.
29716 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
29725 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
29727 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
29729 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
29730 if test -w "$cache_file"; then
29731 test "x$cache_file" != "x/dev/null" &&
29732 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
29733 $as_echo "$as_me: updating cache $cache_file" >&6;}
29734 cat confcache >$cache_file
29736 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
29737 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
29742 test "x$prefix" = xNONE && prefix=$ac_default_prefix
29743 # Let make expand exec_prefix.
29744 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
29746 DEFS=-DHAVE_CONFIG_H
29750 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
29751 # 1. Remove the extension, and $U if already installed.
29752 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
29753 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
29754 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
29755 # will be set to the directory where LIBOBJS objects are built.
29756 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
29757 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
29759 LIBOBJS=$ac_libobjs
29761 LTLIBOBJS=$ac_ltlibobjs
29766 : ${CONFIG_STATUS=./config.status}
29768 ac_clean_files_save=$ac_clean_files
29769 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
29770 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
29771 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
29773 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
29775 # Generated by $as_me.
29776 # Run this file to recreate the current configuration.
29777 # Compiler output produced by configure, useful for debugging
29778 # configure, is in config.log if it exists.
29781 ac_cs_recheck=false
29784 SHELL=\${CONFIG_SHELL-$SHELL}
29787 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
29788 ## -------------------- ##
29789 ## M4sh Initialization. ##
29790 ## -------------------- ##
29792 # Be more Bourne compatible
29793 DUALCASE=1; export DUALCASE # for MKS sh
29794 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
29797 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
29798 # is contrary to our usage. Disable this feature.
29799 alias -g '${1+"$@"}'='"$@"'
29800 setopt NO_GLOB_SUBST
29802 case `(set -o) 2>/dev/null` in #(
29814 # Printing a long string crashes Solaris 7 /usr/bin/printf.
29815 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
29816 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
29817 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
29818 # Prefer a ksh shell builtin over an external printf program on Solaris,
29819 # but without wasting forks for bash or zsh.
29820 if test -z "$BASH_VERSION$ZSH_VERSION" \
29821 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
29822 as_echo='print -r --'
29823 as_echo_n='print -rn --'
29824 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
29825 as_echo='printf %s\n'
29826 as_echo_n='printf %s'
29828 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
29829 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
29830 as_echo_n='/usr/ucb/echo -n'
29832 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
29833 as_echo_n_body='eval
29837 expr "X$arg" : "X\\(.*\\)$as_nl";
29838 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
29840 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
29842 export as_echo_n_body
29843 as_echo_n='sh -c $as_echo_n_body as_echo'
29845 export as_echo_body
29846 as_echo='sh -c $as_echo_body as_echo'
29849 # The user is always right.
29850 if test "${PATH_SEPARATOR+set}" != set; then
29852 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
29853 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
29860 # We need space, tab and new line, in precisely that order. Quoting is
29861 # there to prevent editors from complaining about space-tab.
29862 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
29863 # splitting by setting IFS to empty value.)
29866 # Find who we are. Look in the path if we contain no directory separator.
29868 *[\\/]* ) as_myself=$0 ;;
29869 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29870 for as_dir in $PATH
29873 test -z "$as_dir" && as_dir=.
29874 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
29880 # We did not find ourselves, most probably we were run as `sh COMMAND'
29881 # in which case we are not to be found in the path.
29882 if test "x$as_myself" = x; then
29885 if test ! -f "$as_myself"; then
29886 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
29890 # Unset variables that we do not need and which cause bugs (e.g. in
29891 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
29892 # suppresses any "Segmentation fault" message there. '((' could
29893 # trigger a bug in pdksh 5.2.14.
29894 for as_var in BASH_ENV ENV MAIL MAILPATH
29895 do eval test x\${$as_var+set} = xset \
29896 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
29909 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
29912 # as_fn_error ERROR [LINENO LOG_FD]
29913 # ---------------------------------
29914 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
29915 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
29916 # script with status $?, using 1 if that was 0.
29919 as_status=$?; test $as_status -eq 0 && as_status=1
29921 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
29922 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
29924 $as_echo "$as_me: error: $1" >&2
29925 as_fn_exit $as_status
29929 # as_fn_set_status STATUS
29930 # -----------------------
29931 # Set $? to STATUS, without forking.
29932 as_fn_set_status ()
29935 } # as_fn_set_status
29937 # as_fn_exit STATUS
29938 # -----------------
29939 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
29943 as_fn_set_status $1
29949 # Portably unset VAR.
29952 { eval $1=; unset $1;}
29954 as_unset=as_fn_unset
29955 # as_fn_append VAR VALUE
29956 # ----------------------
29957 # Append the text in VALUE to the end of the definition contained in VAR. Take
29958 # advantage of any shell optimizations that allow amortized linear growth over
29959 # repeated appends, instead of the typical quadratic growth present in naive
29961 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
29962 eval 'as_fn_append ()
29973 # as_fn_arith ARG...
29974 # ------------------
29975 # Perform arithmetic evaluation on the ARGs, and store the result in the
29976 # global $as_val. Take advantage of shells that can avoid forks. The arguments
29977 # must be portable across $(()) and expr.
29978 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
29979 eval 'as_fn_arith ()
29986 as_val=`expr "$@" || test $? -eq 1`
29991 if expr a : '\(a\)' >/dev/null 2>&1 &&
29992 test "X`expr 00001 : '.*\(...\)'`" = X001; then
29998 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
29999 as_basename=basename
30004 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
30010 as_me=`$as_basename -- "$0" ||
30011 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
30012 X"$0" : 'X\(//\)$' \| \
30013 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
30015 sed '/^.*\/\([^/][^/]*\)\/*$/{
30029 # Avoid depending upon Character Ranges.
30030 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
30031 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
30032 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
30033 as_cr_digits='0123456789'
30034 as_cr_alnum=$as_cr_Letters$as_cr_digits
30036 ECHO_C= ECHO_N= ECHO_T=
30037 case `echo -n x` in #(((((
30039 case `echo 'xy\c'` in
30040 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
30042 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
30049 rm -f conf$$ conf$$.exe conf$$.file
30050 if test -d conf$$.dir; then
30051 rm -f conf$$.dir/conf$$.file
30054 mkdir conf$$.dir 2>/dev/null
30056 if (echo >conf$$.file) 2>/dev/null; then
30057 if ln -s conf$$.file conf$$ 2>/dev/null; then
30059 # ... but there are two gotchas:
30060 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
30061 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
30062 # In both cases, we have to default to `cp -p'.
30063 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
30065 elif ln conf$$.file conf$$ 2>/dev/null; then
30073 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
30074 rmdir conf$$.dir 2>/dev/null
30079 # Create "$as_dir" as a directory, including parents if necessary.
30084 -*) as_dir=./$as_dir;;
30086 test -d "$as_dir" || eval $as_mkdir_p || {
30090 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
30091 *) as_qdir=$as_dir;;
30093 as_dirs="'$as_qdir' $as_dirs"
30094 as_dir=`$as_dirname -- "$as_dir" ||
30095 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30096 X"$as_dir" : 'X\(//\)[^/]' \| \
30097 X"$as_dir" : 'X\(//\)$' \| \
30098 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
30099 $as_echo X"$as_dir" |
30100 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30104 /^X\(\/\/\)[^/].*/{
30117 test -d "$as_dir" && break
30119 test -z "$as_dirs" || eval "mkdir $as_dirs"
30120 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
30124 if mkdir -p . 2>/dev/null; then
30125 as_mkdir_p='mkdir -p "$as_dir"'
30127 test -d ./-p && rmdir ./-p
30131 if test -x / >/dev/null 2>&1; then
30132 as_test_x='test -x'
30134 if ls -dL / >/dev/null 2>&1; then
30141 if test -d "$1"; then
30147 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
30148 ???[sx]*):;;*)false;;esac;fi
30152 as_executable_p=$as_test_x
30154 # Sed expression to map a string onto a valid CPP name.
30155 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
30157 # Sed expression to map a string onto a valid variable name.
30158 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
30162 ## ----------------------------------- ##
30163 ## Main body of $CONFIG_STATUS script. ##
30164 ## ----------------------------------- ##
30166 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
30168 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30169 # Save the log message, to keep $0 and so on meaningful, and to
30170 # report actual input values of CONFIG_FILES etc. instead of their
30171 # values after options handling.
30173 This file was extended by $as_me, which was
30174 generated by GNU Autoconf 2.65. Invocation command line was
30176 CONFIG_FILES = $CONFIG_FILES
30177 CONFIG_HEADERS = $CONFIG_HEADERS
30178 CONFIG_LINKS = $CONFIG_LINKS
30179 CONFIG_COMMANDS = $CONFIG_COMMANDS
30182 on `(hostname || uname -n) 2>/dev/null | sed 1q`
30187 case $ac_config_files in *"
30188 "*) set x $ac_config_files; shift; ac_config_files=$*;;
30191 case $ac_config_headers in *"
30192 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
30196 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30197 # Files that config.status was made for.
30198 config_files="$ac_config_files"
30199 config_headers="$ac_config_headers"
30200 config_commands="$ac_config_commands"
30204 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30206 \`$as_me' instantiates files and other configuration actions
30207 from templates according to the current configuration. Unless the files
30208 and actions are specified as TAGs, all are instantiated by default.
30210 Usage: $0 [OPTION]... [TAG]...
30212 -h, --help print this help, then exit
30213 -V, --version print version number and configuration settings, then exit
30214 --config print configuration, then exit
30215 -q, --quiet, --silent
30216 do not print progress messages
30217 -d, --debug don't remove temporary files
30218 --recheck update $as_me by reconfiguring in the same conditions
30219 --file=FILE[:TEMPLATE]
30220 instantiate the configuration file FILE
30221 --header=FILE[:TEMPLATE]
30222 instantiate the configuration header FILE
30224 Configuration files:
30227 Configuration headers:
30230 Configuration commands:
30233 Report bugs to the package provider."
30236 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30237 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
30240 configured by $0, generated by GNU Autoconf 2.65,
30241 with options \\"\$ac_cs_config\\"
30243 Copyright (C) 2009 Free Software Foundation, Inc.
30244 This config.status script is free software; the Free Software Foundation
30245 gives unlimited permission to copy, distribute and modify it."
30251 test -n "\$AWK" || AWK=awk
30254 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30255 # The default lists apply if the user does not specify any file.
30261 ac_option=`expr "X$1" : 'X\([^=]*\)='`
30262 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
30273 # Handling of the options.
30274 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
30276 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
30277 $as_echo "$ac_cs_version"; exit ;;
30278 --config | --confi | --conf | --con | --co | --c )
30279 $as_echo "$ac_cs_config"; exit ;;
30280 --debug | --debu | --deb | --de | --d | -d )
30282 --file | --fil | --fi | --f )
30285 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
30287 as_fn_append CONFIG_FILES " '$ac_optarg'"
30288 ac_need_defaults=false;;
30289 --header | --heade | --head | --hea )
30292 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
30294 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
30295 ac_need_defaults=false;;
30297 # Conflict between --help and --header
30298 as_fn_error "ambiguous option: \`$1'
30299 Try \`$0 --help' for more information.";;
30300 --help | --hel | -h )
30301 $as_echo "$ac_cs_usage"; exit ;;
30302 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
30303 | -silent | --silent | --silen | --sile | --sil | --si | --s)
30306 # This is an error.
30307 -*) as_fn_error "unrecognized option: \`$1'
30308 Try \`$0 --help' for more information." ;;
30310 *) as_fn_append ac_config_targets " $1"
30311 ac_need_defaults=false ;;
30317 ac_configure_extra_args=
30319 if $ac_cs_silent; then
30321 ac_configure_extra_args="$ac_configure_extra_args --silent"
30325 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30326 if \$ac_cs_recheck; then
30327 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
30329 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
30330 CONFIG_SHELL='$SHELL'
30331 export CONFIG_SHELL
30336 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30340 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
30341 ## Running $as_me. ##
30347 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30353 # The HP-UX ksh and POSIX shell print the target directory to stdout
30354 # if CDPATH is set.
30355 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
30357 sed_quote_subst='$sed_quote_subst'
30358 double_quote_subst='$double_quote_subst'
30359 delay_variable_subst='$delay_variable_subst'
30360 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
30361 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
30362 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
30363 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
30364 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
30365 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
30366 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
30367 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
30368 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
30369 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
30370 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
30371 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
30372 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
30373 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
30374 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
30375 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
30376 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
30377 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
30378 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
30379 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
30380 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
30381 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
30382 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
30383 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
30384 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
30385 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
30386 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
30387 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30388 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
30389 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
30390 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
30391 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
30392 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
30393 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
30394 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
30395 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30396 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30397 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30398 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
30399 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
30400 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
30401 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
30402 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
30403 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
30404 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"`'
30405 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"`'
30406 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
30407 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
30408 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
30409 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
30410 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
30411 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
30412 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
30413 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
30414 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
30415 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
30416 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
30417 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
30418 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
30419 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
30420 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
30421 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
30422 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30423 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30424 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
30425 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
30426 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
30427 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
30428 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
30429 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30430 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30431 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30432 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30433 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30434 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30435 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
30436 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
30437 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
30438 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
30439 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
30440 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
30441 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
30442 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
30443 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
30444 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
30445 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
30446 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
30447 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
30448 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
30449 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
30450 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30451 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
30452 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
30453 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30454 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
30455 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
30456 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
30457 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
30458 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
30459 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
30460 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
30461 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
30462 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
30463 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
30464 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
30465 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30466 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30467 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30468 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
30469 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
30470 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
30471 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
30472 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
30473 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
30474 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
30475 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
30476 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
30477 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
30478 compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
30479 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
30480 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
30481 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
30482 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
30483 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
30484 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30485 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30486 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30487 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30488 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30489 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30490 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30491 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30492 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30493 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30494 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30495 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30496 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30497 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30498 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30499 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30500 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30501 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30502 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30503 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30504 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30505 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30506 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30507 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30508 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30509 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30510 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30511 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30512 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30513 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30514 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30515 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30516 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30517 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30518 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30519 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30520 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30521 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30522 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30523 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30524 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30525 compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30526 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30527 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30528 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30529 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30530 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30533 LTCFLAGS='$LTCFLAGS'
30534 compiler='$compiler_DEFAULT'
30536 # Quote evaled strings.
30548 deplibs_check_method \
30557 lt_cv_sys_global_symbol_pipe \
30558 lt_cv_sys_global_symbol_to_cdecl \
30559 lt_cv_sys_global_symbol_to_c_name_address \
30560 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
30563 lt_prog_compiler_no_builtin_flag \
30564 lt_prog_compiler_wl \
30565 lt_prog_compiler_pic \
30566 lt_prog_compiler_static \
30567 lt_cv_prog_compiler_c_o \
30575 export_dynamic_flag_spec \
30576 whole_archive_flag_spec \
30577 compiler_needs_object \
30579 allow_undefined_flag \
30580 no_undefined_flag \
30581 hardcode_libdir_flag_spec \
30582 hardcode_libdir_flag_spec_ld \
30583 hardcode_libdir_separator \
30588 variables_saved_for_relink \
30590 library_names_spec \
30595 compiler_lib_search_dirs \
30600 compiler_lib_search_path \
30603 lt_prog_compiler_no_builtin_flag_CXX \
30604 lt_prog_compiler_wl_CXX \
30605 lt_prog_compiler_pic_CXX \
30606 lt_prog_compiler_static_CXX \
30607 lt_cv_prog_compiler_c_o_CXX \
30608 export_dynamic_flag_spec_CXX \
30609 whole_archive_flag_spec_CXX \
30610 compiler_needs_object_CXX \
30612 allow_undefined_flag_CXX \
30613 no_undefined_flag_CXX \
30614 hardcode_libdir_flag_spec_CXX \
30615 hardcode_libdir_flag_spec_ld_CXX \
30616 hardcode_libdir_separator_CXX \
30617 fix_srcfile_path_CXX \
30618 exclude_expsyms_CXX \
30619 include_expsyms_CXX \
30620 file_list_spec_CXX \
30621 compiler_lib_search_dirs_CXX \
30622 predep_objects_CXX \
30623 postdep_objects_CXX \
30626 compiler_lib_search_path_CXX; do
30627 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
30628 *[\\\\\\\`\\"\\\$]*)
30629 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
30632 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
30637 # Double-quote double-evaled strings.
30638 for var in reload_cmds \
30639 old_postinstall_cmds \
30640 old_postuninstall_cmds \
30642 extract_expsyms_cmds \
30643 old_archive_from_new_cmds \
30644 old_archive_from_expsyms_cmds \
30646 archive_expsym_cmds \
30648 module_expsym_cmds \
30649 export_symbols_cmds \
30652 postuninstall_cmds \
30654 sys_lib_search_path_spec \
30655 sys_lib_dlsearch_path_spec \
30656 old_archive_cmds_CXX \
30657 old_archive_from_new_cmds_CXX \
30658 old_archive_from_expsyms_cmds_CXX \
30660 archive_expsym_cmds_CXX \
30662 module_expsym_cmds_CXX \
30663 export_symbols_cmds_CXX \
30664 prelink_cmds_CXX; do
30665 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
30666 *[\\\\\\\`\\"\\\$]*)
30667 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
30670 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
30675 # Fix-up fallback echo if it was mangled by the above quoting rules.
30677 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
30681 ac_aux_dir='$ac_aux_dir'
30682 xsi_shell='$xsi_shell'
30683 lt_shell_append='$lt_shell_append'
30685 # See if we are running on zsh, and set the options which allow our
30686 # commands through without removal of \ escapes INIT.
30687 if test -n "\${ZSH_VERSION+set}" ; then
30688 setopt NO_GLOB_SUBST
30694 TIMESTAMP='$TIMESTAMP'
30702 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
30703 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
30705 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
30706 # Capture the value of LINGUAS because we need it to compute CATALOGS.
30707 LINGUAS="${LINGUAS-%UNSET%}"
30712 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30714 # Handling of arguments.
30715 for ac_config_target in $ac_config_targets
30717 case $ac_config_target in
30718 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
30719 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
30720 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
30721 "autoconf/Make.common") CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
30722 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
30723 "manpages/Makefile") CONFIG_FILES="$CONFIG_FILES manpages/Makefile" ;;
30724 "scripts/startmysql") CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
30725 "scripts/stopmysql") CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
30726 "scripts/btraceback") CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
30727 "scripts/startit") CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
30728 "scripts/stopit") CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
30729 "scripts/bconsole") CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
30730 "scripts/gconsole") CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
30731 "scripts/bacula") CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
30732 "scripts/bacula-ctl-dir") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-dir" ;;
30733 "scripts/bacula-ctl-fd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-fd" ;;
30734 "scripts/bacula-ctl-sd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-sd" ;;
30735 "scripts/devel_bacula") CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
30736 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
30737 "scripts/logrotate") CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
30738 "scripts/bacula.desktop.gnome1") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
30739 "scripts/bacula.desktop.gnome2") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
30740 "scripts/bacula.desktop.gnome1.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
30741 "scripts/bacula.desktop.gnome2.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
30742 "scripts/bacula.desktop.gnome1.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
30743 "scripts/bacula.desktop.gnome2.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
30744 "scripts/bgnome-console.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bgnome-console.console_apps" ;;
30745 "scripts/mtx-changer") CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
30746 "scripts/disk-changer") CONFIG_FILES="$CONFIG_FILES scripts/disk-changer" ;;
30747 "scripts/dvd-handler") CONFIG_FILES="$CONFIG_FILES scripts/dvd-handler" ;;
30748 "scripts/dvd-simulator") CONFIG_FILES="$CONFIG_FILES scripts/dvd-simulator" ;;
30749 "scripts/bacula-tray-monitor.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bacula-tray-monitor.desktop" ;;
30750 "scripts/logwatch/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/Makefile" ;;
30751 "scripts/logwatch/logfile.bacula.conf") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/logfile.bacula.conf" ;;
30752 "scripts/wxconsole.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.console_apps" ;;
30753 "scripts/wxconsole.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.consolehelper" ;;
30754 "scripts/wxconsole.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.xsu" ;;
30755 "scripts/bat.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop" ;;
30756 "scripts/bat.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.xsu" ;;
30757 "scripts/bat.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.consolehelper" ;;
30758 "scripts/bat.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bat.console_apps" ;;
30759 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
30760 "src/host.h") CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
30761 "src/console/Makefile") CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
30762 "src/console/bconsole.conf") CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
30763 "src/qt-console/bat.conf") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.conf" ;;
30764 "src/qt-console/bat.pro") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro" ;;
30765 "src/qt-console/bat.pro.mingw32") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro.mingw32" ;;
30766 "src/qt-console/install_conf_file") CONFIG_FILES="$CONFIG_FILES src/qt-console/install_conf_file" ;;
30767 "src/wx-console/Makefile") CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
30768 "src/wx-console/bwx-console.conf") CONFIG_FILES="$CONFIG_FILES src/wx-console/bwx-console.conf" ;;
30769 "src/tray-monitor/Makefile") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/Makefile" ;;
30770 "src/tray-monitor/tray-monitor.conf") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/tray-monitor.conf" ;;
30771 "src/dird/Makefile") CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
30772 "src/dird/bacula-dir.conf") CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
30773 "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
30774 "src/stored/Makefile") CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
30775 "src/stored/bacula-sd.conf") CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
30776 "src/filed/Makefile") CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
30777 "src/filed/bacula-fd.conf") CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
30778 "src/cats/Makefile") CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
30779 "src/cats/make_catalog_backup.pl") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup.pl" ;;
30780 "src/cats/make_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
30781 "src/cats/delete_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
30782 "src/cats/create_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
30783 "src/cats/update_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
30784 "src/cats/make_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
30785 "src/cats/grant_postgresql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
30786 "src/cats/drop_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
30787 "src/cats/drop_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
30788 "src/cats/create_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
30789 "src/cats/update_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
30790 "src/cats/make_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
30791 "src/cats/grant_mysql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
30792 "src/cats/drop_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
30793 "src/cats/drop_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
30794 "src/cats/create_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite3_database" ;;
30795 "src/cats/update_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite3_tables" ;;
30796 "src/cats/make_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite3_tables" ;;
30797 "src/cats/grant_sqlite3_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite3_privileges" ;;
30798 "src/cats/drop_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_tables" ;;
30799 "src/cats/drop_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_database" ;;
30800 "src/cats/create_ingres_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_ingres_database" ;;
30801 "src/cats/update_ingres_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_ingres_tables" ;;
30802 "src/cats/make_ingres_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_ingres_tables" ;;
30803 "src/cats/grant_ingres_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_ingres_privileges" ;;
30804 "src/cats/drop_ingres_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_ingres_tables" ;;
30805 "src/cats/drop_ingres_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_ingres_database" ;;
30806 "src/cats/sqlite") CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
30807 "src/cats/mysql") CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
30808 "src/cats/create_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
30809 "src/cats/update_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
30810 "src/cats/grant_bacula_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
30811 "src/cats/make_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
30812 "src/cats/drop_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
30813 "src/cats/drop_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
30814 "src/findlib/Makefile") CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
30815 "src/tools/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
30816 "src/plugins/fd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/fd/Makefile" ;;
30817 "src/plugins/sd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/sd/Makefile" ;;
30818 "src/plugins/dir/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/dir/Makefile" ;;
30819 "src/win32/Makefile.inc") CONFIG_FILES="$CONFIG_FILES src/win32/Makefile.inc" ;;
30820 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
30821 "updatedb/update_mysql_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_9_to_10" ;;
30822 "updatedb/update_sqlite3_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_9_to_10" ;;
30823 "updatedb/update_postgresql_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_9_to_10" ;;
30824 "updatedb/update_mysql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_10_to_11" ;;
30825 "updatedb/update_sqlite3_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_10_to_11" ;;
30826 "updatedb/update_postgresql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_10_to_11" ;;
30827 "updatedb/update_mysql_tables_11_to_12") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_11_to_12" ;;
30828 "updatedb/update_sqlite3_tables_11_to_12") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_11_to_12" ;;
30829 "updatedb/update_postgresql_tables_11_to_12") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_11_to_12" ;;
30830 "examples/nagios/check_bacula/Makefile") CONFIG_FILES="$CONFIG_FILES examples/nagios/check_bacula/Makefile" ;;
30831 "$PFILES") CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
30832 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
30834 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
30839 # If the user did not use the arguments to specify the items to instantiate,
30840 # then the envvar interface is used. Set only those that are not.
30841 # We use the long form for the default assignment because of an extremely
30842 # bizarre bug on SunOS 4.1.3.
30843 if $ac_need_defaults; then
30844 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
30845 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
30846 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
30849 # Have a temporary directory for convenience. Make it in the build tree
30850 # simply because there is no reason against having it here, and in addition,
30851 # creating and moving files from /tmp can sometimes cause problems.
30852 # Hook for its removal unless debugging.
30853 # Note that there is a small window in which the directory will not be cleaned:
30854 # after its creation but before its name has been assigned to `$tmp'.
30858 trap 'exit_status=$?
30859 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
30861 trap 'as_fn_exit 1' 1 2 13 15
30863 # Create a (secure) tmp directory for tmp files.
30866 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
30867 test -n "$tmp" && test -d "$tmp"
30870 tmp=./conf$$-$RANDOM
30871 (umask 077 && mkdir "$tmp")
30872 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
30874 # Set up the scripts for CONFIG_FILES section.
30875 # No need to generate them if there are no CONFIG_FILES.
30876 # This happens for instance with `./config.status config.h'.
30877 if test -n "$CONFIG_FILES"; then
30879 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
30880 ac_cs_awk_getline=:
30881 ac_cs_awk_pipe_init=
30882 ac_cs_awk_read_file='
30883 while ((getline aline < (F[key])) > 0)
30886 ac_cs_awk_pipe_fini=
30888 ac_cs_awk_getline=false
30889 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
30890 ac_cs_awk_read_file='
30892 print "cat " F[key] " &&"
30893 '$ac_cs_awk_pipe_init
30894 # The final `:' finishes the AND list.
30895 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
30897 ac_cr=`echo X | tr X '\015'`
30898 # On cygwin, bash can eat \r inside `` if the user requested igncr.
30899 # But we know of no other shell where ac_cr would be empty at this
30900 # point, so we can use a bashism as a fallback.
30901 if test "x$ac_cr" = x; then
30902 eval ac_cr=\$\'\\r\'
30904 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
30905 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
30908 ac_cs_awk_cr=$ac_cr
30911 echo 'BEGIN {' >"$tmp/subs1.awk" &&
30914 # Create commands to substitute file output variables.
30916 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
30917 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
30918 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
30921 } >conf$$files.sh &&
30922 . ./conf$$files.sh ||
30923 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
30924 rm -f conf$$files.sh
30927 echo "cat >conf$$subs.awk <<_ACEOF" &&
30928 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
30930 } >conf$$subs.sh ||
30931 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
30932 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
30934 for ac_last_try in false false false false false :; do
30935 . ./conf$$subs.sh ||
30936 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
30938 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
30939 if test $ac_delim_n = $ac_delim_num; then
30941 elif $ac_last_try; then
30942 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
30944 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30947 rm -f conf$$subs.sh
30949 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30950 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
30954 s/^/S["/; s/!.*/"]=/
30964 s/\(.\{148\}\)..*/\1/
30966 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
30971 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
30978 s/\(.\{148\}\)..*/\1/
30980 s/["\\]/\\&/g; s/^/"/; s/$/"/
30984 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
30989 ' <conf$$subs.awk | sed '
30994 ' >>$CONFIG_STATUS || ac_write_fail=1
30995 rm -f conf$$subs.awk
30996 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30998 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
30999 for (key in S) S_is_set[key] = 1
31001 \$ac_cs_awk_pipe_init
31005 nfields = split(line, field, "@")
31007 len = length(field[1])
31008 for (i = 2; i < nfields; i++) {
31010 keylen = length(key)
31011 if (S_is_set[key]) {
31013 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
31014 len += length(value) + length(field[++i])
31019 if (nfields == 3 && !substed) {
31021 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
31022 \$ac_cs_awk_read_file
31028 \$ac_cs_awk_pipe_fini
31031 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31032 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
31033 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
31036 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
31037 || as_fn_error "could not setup config files machinery" "$LINENO" 5
31040 # VPATH may cause trouble with some makes, so we remove $(srcdir),
31041 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
31042 # trailing colons and then remove the whole line if VPATH becomes empty
31043 # (actually we leave an empty line to preserve line numbers).
31044 if test "x$srcdir" = x.; then
31045 ac_vpsub='/^[ ]*VPATH[ ]*=/{
31046 s/:*\$(srcdir):*/:/
31047 s/:*\${srcdir}:*/:/
31049 s/^\([^=]*=[ ]*\):*/\1/
31055 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31056 fi # test -n "$CONFIG_FILES"
31058 # Set up the scripts for CONFIG_HEADERS section.
31059 # No need to generate them if there are no CONFIG_HEADERS.
31060 # This happens for instance with `./config.status Makefile'.
31061 if test -n "$CONFIG_HEADERS"; then
31062 cat >"$tmp/defines.awk" <<\_ACAWK ||
31066 # Transform confdefs.h into an awk script `defines.awk', embedded as
31067 # here-document in config.status, that substitutes the proper values into
31068 # config.h.in to produce config.h.
31070 # Create a delimiter string that does not exist in confdefs.h, to ease
31071 # handling of long lines.
31073 for ac_last_try in false false :; do
31074 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
31075 if test -z "$ac_t"; then
31077 elif $ac_last_try; then
31078 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
31080 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
31084 # For the awk script, D is an array of macro values keyed by name,
31085 # likewise P contains macro parameters if any. Preserve backslash
31086 # newline sequences.
31088 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
31090 s/.\{148\}/&'"$ac_delim"'/g
31093 s/^[ ]*#[ ]*define[ ][ ]*/ /
31100 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
31102 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
31106 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
31107 D["\1"]=" \3\\\\\\n"\\/p
31109 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
31114 s/.\{148\}/&'"$ac_delim"'/g
31119 s/["\\]/\\&/g; s/^/"/; s/$/"/p
31122 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
31124 ' <confdefs.h | sed '
31125 s/'"$ac_delim"'/"\\\
31126 "/g' >>$CONFIG_STATUS || ac_write_fail=1
31128 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31129 for (key in D) D_is_set[key] = 1
31132 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
31134 split(line, arg, " ")
31135 if (arg[1] == "#") {
31139 defundef = substr(arg[1], 2)
31142 split(mac1, mac2, "(") #)
31144 prefix = substr(line, 1, index(line, defundef) - 1)
31145 if (D_is_set[macro]) {
31146 # Preserve the white space surrounding the "#".
31147 print prefix "define", macro P[macro] D[macro]
31150 # Replace #undef with comments. This is necessary, for example,
31151 # in the case of _POSIX_SOURCE, which is predefined and required
31152 # on some systems where configure will not decide to define it.
31153 if (defundef == "undef") {
31154 print "/*", prefix defundef, macro, "*/"
31162 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31163 as_fn_error "could not setup config headers machinery" "$LINENO" 5
31164 fi # test -n "$CONFIG_HEADERS"
31167 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
31172 :[FHLC]) ac_mode=$ac_tag; continue;;
31174 case $ac_mode$ac_tag in
31176 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
31177 :[FH]-) ac_tag=-:-;;
31178 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
31195 -) ac_f="$tmp/stdin";;
31196 *) # Look for the file first in the build tree, then in the source tree
31197 # (if the path is not absolute). The absolute path cannot be DOS-style,
31198 # because $ac_f cannot contain `:'.
31202 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
31204 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
31206 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
31207 as_fn_append ac_file_inputs " '$ac_f'"
31210 # Let's still pretend it is `configure' which instantiates (i.e., don't
31211 # use $as_me), people would be surprised to read:
31212 # /* config.h. Generated by config.status. */
31213 configure_input='Generated from '`
31214 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
31216 if test x"$ac_file" != x-; then
31217 configure_input="$ac_file. $configure_input"
31218 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
31219 $as_echo "$as_me: creating $ac_file" >&6;}
31221 # Neutralize special characters interpreted by sed in replacement strings.
31222 case $configure_input in #(
31223 *\&* | *\|* | *\\* )
31224 ac_sed_conf_input=`$as_echo "$configure_input" |
31225 sed 's/[\\\\&|]/\\\\&/g'`;; #(
31226 *) ac_sed_conf_input=$configure_input;;
31230 *:-:* | *:-) cat >"$tmp/stdin" \
31231 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
31236 ac_dir=`$as_dirname -- "$ac_file" ||
31237 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31238 X"$ac_file" : 'X\(//\)[^/]' \| \
31239 X"$ac_file" : 'X\(//\)$' \| \
31240 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
31241 $as_echo X"$ac_file" |
31242 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31246 /^X\(\/\/\)[^/].*/{
31259 as_dir="$ac_dir"; as_fn_mkdir_p
31263 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
31265 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
31266 # A ".." for each directory in $ac_dir_suffix.
31267 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
31268 case $ac_top_builddir_sub in
31269 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
31270 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
31273 ac_abs_top_builddir=$ac_pwd
31274 ac_abs_builddir=$ac_pwd$ac_dir_suffix
31275 # for backward compatibility:
31276 ac_top_builddir=$ac_top_build_prefix
31279 .) # We are building in place.
31281 ac_top_srcdir=$ac_top_builddir_sub
31282 ac_abs_top_srcdir=$ac_pwd ;;
31283 [\\/]* | ?:[\\/]* ) # Absolute name.
31284 ac_srcdir=$srcdir$ac_dir_suffix;
31285 ac_top_srcdir=$srcdir
31286 ac_abs_top_srcdir=$srcdir ;;
31287 *) # Relative name.
31288 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
31289 ac_top_srcdir=$ac_top_build_prefix$srcdir
31290 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
31292 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
31302 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
31303 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
31307 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31308 # If the template does not know about datarootdir, expand it.
31309 # FIXME: This hack should be removed a few years after 2.60.
31310 ac_datarootdir_hack=; ac_datarootdir_seen=
31321 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
31322 *datarootdir*) ac_datarootdir_seen=yes;;
31323 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
31324 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
31325 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
31327 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31328 ac_datarootdir_hack='
31329 s&@datadir@&$datadir&g
31330 s&@docdir@&$docdir&g
31331 s&@infodir@&$infodir&g
31332 s&@localedir@&$localedir&g
31333 s&@mandir@&$mandir&g
31334 s&\\\${datarootdir}&$datarootdir&g' ;;
31338 # Neutralize VPATH when `$srcdir' = `.'.
31339 # Shell code in configure.ac might set extrasub.
31340 # FIXME: do we really want to maintain this feature?
31341 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31342 ac_sed_extra="$ac_vpsub
31345 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31347 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31348 s|@configure_input@|$ac_sed_conf_input|;t t
31349 s&@top_builddir@&$ac_top_builddir_sub&;t t
31350 s&@top_build_prefix@&$ac_top_build_prefix&;t t
31351 s&@srcdir@&$ac_srcdir&;t t
31352 s&@abs_srcdir@&$ac_abs_srcdir&;t t
31353 s&@top_srcdir@&$ac_top_srcdir&;t t
31354 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
31355 s&@builddir@&$ac_builddir&;t t
31356 s&@abs_builddir@&$ac_abs_builddir&;t t
31357 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
31358 s&@INSTALL@&$ac_INSTALL&;t t
31359 $ac_datarootdir_hack
31361 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
31362 if $ac_cs_awk_getline; then
31363 $AWK -f "$tmp/subs.awk"
31365 $AWK -f "$tmp/subs.awk" | $SHELL
31367 || as_fn_error "could not create $ac_file" "$LINENO" 5
31369 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
31370 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
31371 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
31372 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31373 which seems to be undefined. Please make sure it is defined." >&5
31374 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31375 which seems to be undefined. Please make sure it is defined." >&2;}
31379 -) cat "$tmp/out" && rm -f "$tmp/out";;
31380 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
31382 || as_fn_error "could not create $ac_file" "$LINENO" 5
31388 if test x"$ac_file" != x-; then
31390 $as_echo "/* $configure_input */" \
31391 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
31392 } >"$tmp/config.h" \
31393 || as_fn_error "could not create $ac_file" "$LINENO" 5
31394 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
31395 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
31396 $as_echo "$as_me: $ac_file is unchanged" >&6;}
31399 mv "$tmp/config.h" "$ac_file" \
31400 || as_fn_error "could not create $ac_file" "$LINENO" 5
31403 $as_echo "/* $configure_input */" \
31404 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
31405 || as_fn_error "could not create -" "$LINENO" 5
31409 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
31410 $as_echo "$as_me: executing $ac_file commands" >&6;}
31415 case $ac_file$ac_mode in
31418 # See if we are running on zsh, and set the options which allow our
31419 # commands through without removal of \ escapes.
31420 if test -n "${ZSH_VERSION+set}" ; then
31421 setopt NO_GLOB_SUBST
31424 cfgfile="${ofile}T"
31425 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
31428 cat <<_LT_EOF >> "$cfgfile"
31431 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
31432 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
31433 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
31434 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
31436 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
31437 # 2006, 2007, 2008 Free Software Foundation, Inc.
31438 # Written by Gordon Matzigkeit, 1996
31440 # This file is part of GNU Libtool.
31442 # GNU Libtool is free software; you can redistribute it and/or
31443 # modify it under the terms of the GNU General Public License as
31444 # published by the Free Software Foundation; either version 2 of
31445 # the License, or (at your option) any later version.
31447 # As a special exception to the GNU General Public License,
31448 # if you distribute this file as part of a program or library that
31449 # is built using GNU Libtool, you may include this file under the
31450 # same distribution terms that you use for the rest of that program.
31452 # GNU Libtool is distributed in the hope that it will be useful,
31453 # but WITHOUT ANY WARRANTY; without even the implied warranty of
31454 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
31455 # GNU General Public License for more details.
31457 # You should have received a copy of the GNU General Public License
31458 # along with GNU Libtool; see the file COPYING. If not, a copy
31459 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
31460 # obtained by writing to the Free Software Foundation, Inc.,
31461 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
31464 # The names of the tagged configurations supported by this script.
31465 available_tags="CXX "
31467 # ### BEGIN LIBTOOL CONFIG
31469 # Which release of libtool.m4 was used?
31470 macro_version=$macro_version
31471 macro_revision=$macro_revision
31473 # Whether or not to build shared libraries.
31474 build_libtool_libs=$enable_shared
31476 # Whether or not to build static libraries.
31477 build_old_libs=$enable_static
31479 # What type of objects to build.
31482 # Whether or not to optimize for fast installation.
31483 fast_install=$enable_fast_install
31486 host_alias=$host_alias
31490 # The build system.
31491 build_alias=$build_alias
31495 # A sed program that does not truncate output.
31498 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
31499 Xsed="\$SED -e 1s/^X//"
31501 # A grep program that handles long lines.
31507 # A literal string matcher.
31510 # A BSD- or MS-compatible name lister.
31513 # Whether we need soft or hard links.
31516 # What is the maximum length of a command?
31517 max_cmd_len=$max_cmd_len
31519 # Object file suffix (normally "o").
31522 # Executable file suffix (normally "").
31525 # whether the shell understands "unset".
31528 # turn spaces into newlines.
31531 # turn newlines into spaces.
31534 # How to create reloadable object files.
31535 reload_flag=$lt_reload_flag
31536 reload_cmds=$lt_reload_cmds
31538 # An object symbol dumper.
31539 OBJDUMP=$lt_OBJDUMP
31541 # Method to check whether dependent libraries are shared objects.
31542 deplibs_check_method=$lt_deplibs_check_method
31544 # Command to use when deplibs_check_method == "file_magic".
31545 file_magic_cmd=$lt_file_magic_cmd
31549 AR_FLAGS=$lt_AR_FLAGS
31551 # A symbol stripping program.
31554 # Commands used to install an old-style archive.
31556 old_postinstall_cmds=$lt_old_postinstall_cmds
31557 old_postuninstall_cmds=$lt_old_postuninstall_cmds
31562 # LTCC compiler flags.
31563 LTCFLAGS=$lt_CFLAGS
31565 # Take the output of nm and produce a listing of raw symbols and C names.
31566 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
31568 # Transform the output of nm in a proper C declaration.
31569 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
31571 # Transform the output of nm in a C name address pair.
31572 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
31574 # Transform the output of nm in a C name address pair when lib prefix is needed.
31575 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
31577 # The name of the directory that contains temporary libtool files.
31580 # Shell to use when invoking shell scripts.
31583 # An echo program that does not interpret backslashes.
31586 # Used to examine libraries when file_magic_cmd begins with "file".
31587 MAGIC_CMD=$MAGIC_CMD
31589 # Must we lock files when doing compilation?
31590 need_locks=$lt_need_locks
31592 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
31593 DSYMUTIL=$lt_DSYMUTIL
31595 # Tool to change global to local symbols on Mac OS X.
31598 # Tool to manipulate fat objects and archives on Mac OS X.
31601 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
31604 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
31605 OTOOL64=$lt_OTOOL64
31607 # Old archive suffix (normally "a").
31610 # Shared library suffix (normally ".so").
31611 shrext_cmds=$lt_shrext_cmds
31613 # The commands to extract the exported symbol list from a shared archive.
31614 extract_expsyms_cmds=$lt_extract_expsyms_cmds
31616 # Variables whose values should be saved in libtool wrapper scripts and
31617 # restored at link time.
31618 variables_saved_for_relink=$lt_variables_saved_for_relink
31620 # Do we need the "lib" prefix for modules?
31621 need_lib_prefix=$need_lib_prefix
31623 # Do we need a version for libraries?
31624 need_version=$need_version
31626 # Library versioning type.
31627 version_type=$version_type
31629 # Shared library runtime path variable.
31630 runpath_var=$runpath_var
31632 # Shared library path variable.
31633 shlibpath_var=$shlibpath_var
31635 # Is shlibpath searched before the hard-coded library search path?
31636 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
31638 # Format of library name prefix.
31639 libname_spec=$lt_libname_spec
31641 # List of archive names. First name is the real one, the rest are links.
31642 # The last name is the one that the linker finds with -lNAME
31643 library_names_spec=$lt_library_names_spec
31645 # The coded name of the library, if different from the real name.
31646 soname_spec=$lt_soname_spec
31648 # Command to use after installation of a shared archive.
31649 postinstall_cmds=$lt_postinstall_cmds
31651 # Command to use after uninstallation of a shared archive.
31652 postuninstall_cmds=$lt_postuninstall_cmds
31654 # Commands used to finish a libtool library installation in a directory.
31655 finish_cmds=$lt_finish_cmds
31657 # As "finish_cmds", except a single script fragment to be evaled but
31659 finish_eval=$lt_finish_eval
31661 # Whether we should hardcode library paths into libraries.
31662 hardcode_into_libs=$hardcode_into_libs
31664 # Compile-time system search path for libraries.
31665 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
31667 # Run-time system search path for libraries.
31668 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
31670 # Whether dlopen is supported.
31671 dlopen_support=$enable_dlopen
31673 # Whether dlopen of programs is supported.
31674 dlopen_self=$enable_dlopen_self
31676 # Whether dlopen of statically linked programs is supported.
31677 dlopen_self_static=$enable_dlopen_self_static
31679 # Commands to strip libraries.
31680 old_striplib=$lt_old_striplib
31681 striplib=$lt_striplib
31684 # The linker used to build libraries.
31687 # Commands used to build an old-style archive.
31688 old_archive_cmds=$lt_old_archive_cmds
31690 # A language specific compiler.
31693 # Is the compiler the GNU compiler?
31696 # Compiler flag to turn off builtin functions.
31697 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
31699 # How to pass a linker flag through the compiler.
31700 wl=$lt_lt_prog_compiler_wl
31702 # Additional compiler flags for building library objects.
31703 pic_flag=$lt_lt_prog_compiler_pic
31705 # Compiler flag to prevent dynamic linking.
31706 link_static_flag=$lt_lt_prog_compiler_static
31708 # Does compiler simultaneously support -c and -o options?
31709 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
31711 # Whether or not to add -lc for building shared libraries.
31712 build_libtool_need_lc=$archive_cmds_need_lc
31714 # Whether or not to disallow shared libs when runtime libs are static.
31715 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
31717 # Compiler flag to allow reflexive dlopens.
31718 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
31720 # Compiler flag to generate shared objects directly from archives.
31721 whole_archive_flag_spec=$lt_whole_archive_flag_spec
31723 # Whether the compiler copes with passing no objects directly.
31724 compiler_needs_object=$lt_compiler_needs_object
31726 # Create an old-style archive from a shared archive.
31727 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
31729 # Create a temporary old-style archive to link instead of a shared archive.
31730 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
31732 # Commands used to build a shared archive.
31733 archive_cmds=$lt_archive_cmds
31734 archive_expsym_cmds=$lt_archive_expsym_cmds
31736 # Commands used to build a loadable module if different from building
31737 # a shared archive.
31738 module_cmds=$lt_module_cmds
31739 module_expsym_cmds=$lt_module_expsym_cmds
31741 # Whether we are building with GNU ld or not.
31742 with_gnu_ld=$lt_with_gnu_ld
31744 # Flag that allows shared libraries with undefined symbols to be built.
31745 allow_undefined_flag=$lt_allow_undefined_flag
31747 # Flag that enforces no undefined symbols.
31748 no_undefined_flag=$lt_no_undefined_flag
31750 # Flag to hardcode \$libdir into a binary during linking.
31751 # This must work even if \$libdir does not exist
31752 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
31754 # If ld is used when linking, flag to hardcode \$libdir into a binary
31755 # during linking. This must work even if \$libdir does not exist.
31756 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
31758 # Whether we need a single "-rpath" flag with a separated argument.
31759 hardcode_libdir_separator=$lt_hardcode_libdir_separator
31761 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
31762 # DIR into the resulting binary.
31763 hardcode_direct=$hardcode_direct
31765 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
31766 # DIR into the resulting binary and the resulting library dependency is
31767 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
31768 # library is relocated.
31769 hardcode_direct_absolute=$hardcode_direct_absolute
31771 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
31772 # into the resulting binary.
31773 hardcode_minus_L=$hardcode_minus_L
31775 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
31776 # into the resulting binary.
31777 hardcode_shlibpath_var=$hardcode_shlibpath_var
31779 # Set to "yes" if building a shared library automatically hardcodes DIR
31780 # into the library and all subsequent libraries and executables linked
31782 hardcode_automatic=$hardcode_automatic
31784 # Set to yes if linker adds runtime paths of dependent libraries
31785 # to runtime path list.
31786 inherit_rpath=$inherit_rpath
31788 # Whether libtool must link a program against all its dependency libraries.
31789 link_all_deplibs=$link_all_deplibs
31791 # Fix the shell variable \$srcfile for the compiler.
31792 fix_srcfile_path=$lt_fix_srcfile_path
31794 # Set to "yes" if exported symbols are required.
31795 always_export_symbols=$always_export_symbols
31797 # The commands to list exported symbols.
31798 export_symbols_cmds=$lt_export_symbols_cmds
31800 # Symbols that should not be listed in the preloaded symbols.
31801 exclude_expsyms=$lt_exclude_expsyms
31803 # Symbols that must always be exported.
31804 include_expsyms=$lt_include_expsyms
31806 # Commands necessary for linking programs (against libraries) with templates.
31807 prelink_cmds=$lt_prelink_cmds
31809 # Specify filename containing input files.
31810 file_list_spec=$lt_file_list_spec
31812 # How to hardcode a shared library path into an executable.
31813 hardcode_action=$hardcode_action
31815 # The directories searched by this compiler when creating a shared library.
31816 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
31818 # Dependencies to place before and after the objects being linked to
31819 # create a shared library.
31820 predep_objects=$lt_predep_objects
31821 postdep_objects=$lt_postdep_objects
31822 predeps=$lt_predeps
31823 postdeps=$lt_postdeps
31825 # The library search path used internally by the compiler when linking
31826 # a shared library.
31827 compiler_lib_search_path=$lt_compiler_lib_search_path
31829 # ### END LIBTOOL CONFIG
31835 cat <<\_LT_EOF >> "$cfgfile"
31836 # AIX sometimes has problems with the GCC collect2 program. For some
31837 # reason, if we set the COLLECT_NAMES environment variable, the problems
31838 # vanish in a puff of smoke.
31839 if test "X${COLLECT_NAMES+set}" != Xset; then
31841 export COLLECT_NAMES
31848 ltmain="$ac_aux_dir/ltmain.sh"
31851 # We use sed instead of cat because bash on DJGPP gets confused if
31852 # if finds mixed CR/LF and LF-only lines. Since sed operates in
31853 # text mode, it properly converts lines to CR/LF. This bash problem
31854 # is reportedly fixed, but why not run on old versions too?
31855 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
31856 || (rm -f "$cfgfile"; exit 1)
31860 cat << \_LT_EOF >> "$cfgfile"
31862 # func_dirname file append nondir_replacement
31863 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
31864 # otherwise set result to NONDIR_REPLACEMENT.
31868 */*) func_dirname_result="${1%/*}${2}" ;;
31869 * ) func_dirname_result="${3}" ;;
31873 # func_basename file
31876 func_basename_result="${1##*/}"
31879 # func_dirname_and_basename file append nondir_replacement
31880 # perform func_basename and func_dirname in a single function
31882 # dirname: Compute the dirname of FILE. If nonempty,
31883 # add APPEND to the result, otherwise set result
31884 # to NONDIR_REPLACEMENT.
31885 # value returned in "$func_dirname_result"
31886 # basename: Compute filename of FILE.
31887 # value retuned in "$func_basename_result"
31888 # Implementation must be kept synchronized with func_dirname
31889 # and func_basename. For efficiency, we do not delegate to
31890 # those functions but instead duplicate the functionality here.
31891 func_dirname_and_basename ()
31894 */*) func_dirname_result="${1%/*}${2}" ;;
31895 * ) func_dirname_result="${3}" ;;
31897 func_basename_result="${1##*/}"
31900 # func_stripname prefix suffix name
31901 # strip PREFIX and SUFFIX off of NAME.
31902 # PREFIX and SUFFIX must not contain globbing or regex special
31903 # characters, hashes, percent signs, but SUFFIX may contain a leading
31904 # dot (in which case that matches only a dot).
31907 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
31908 # positional parameters, so assign one to ordinary parameter first.
31909 func_stripname_result=${3}
31910 func_stripname_result=${func_stripname_result#"${1}"}
31911 func_stripname_result=${func_stripname_result%"${2}"}
31917 func_opt_split_opt=${1%%=*}
31918 func_opt_split_arg=${1#*=}
31925 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
31926 *) func_lo2o_result=${1} ;;
31930 # func_xform libobj-or-source
31933 func_xform_result=${1%.*}.lo
31936 # func_arith arithmetic-term...
31939 func_arith_result=$(( $* ))
31943 # STRING may not start with a hyphen.
31946 func_len_result=${#1}
31951 *) # Bourne compatible functions.
31952 cat << \_LT_EOF >> "$cfgfile"
31954 # func_dirname file append nondir_replacement
31955 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
31956 # otherwise set result to NONDIR_REPLACEMENT.
31959 # Extract subdirectory from the argument.
31960 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
31961 if test "X$func_dirname_result" = "X${1}"; then
31962 func_dirname_result="${3}"
31964 func_dirname_result="$func_dirname_result${2}"
31968 # func_basename file
31971 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
31975 # func_stripname prefix suffix name
31976 # strip PREFIX and SUFFIX off of NAME.
31977 # PREFIX and SUFFIX must not contain globbing or regex special
31978 # characters, hashes, percent signs, but SUFFIX may contain a leading
31979 # dot (in which case that matches only a dot).
31980 # func_strip_suffix prefix name
31984 .*) func_stripname_result=`$ECHO "X${3}" \
31985 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
31986 *) func_stripname_result=`$ECHO "X${3}" \
31987 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
31992 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
31993 my_sed_long_arg='1s/^-[^=]*=//'
31998 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
31999 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
32005 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
32008 # func_xform libobj-or-source
32011 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
32014 # func_arith arithmetic-term...
32017 func_arith_result=`expr "$@"`
32021 # STRING may not start with a hyphen.
32024 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
32030 case $lt_shell_append in
32032 cat << \_LT_EOF >> "$cfgfile"
32034 # func_append var value
32035 # Append VALUE to the end of shell variable VAR.
32043 cat << \_LT_EOF >> "$cfgfile"
32045 # func_append var value
32046 # Append VALUE to the end of shell variable VAR.
32057 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
32058 || (rm -f "$cfgfile"; exit 1)
32060 mv -f "$cfgfile" "$ofile" ||
32061 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
32065 cat <<_LT_EOF >> "$ofile"
32067 # ### BEGIN LIBTOOL TAG CONFIG: CXX
32069 # The linker used to build libraries.
32072 # Commands used to build an old-style archive.
32073 old_archive_cmds=$lt_old_archive_cmds_CXX
32075 # A language specific compiler.
32076 CC=$lt_compiler_CXX
32078 # Is the compiler the GNU compiler?
32081 # Compiler flag to turn off builtin functions.
32082 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
32084 # How to pass a linker flag through the compiler.
32085 wl=$lt_lt_prog_compiler_wl_CXX
32087 # Additional compiler flags for building library objects.
32088 pic_flag=$lt_lt_prog_compiler_pic_CXX
32090 # Compiler flag to prevent dynamic linking.
32091 link_static_flag=$lt_lt_prog_compiler_static_CXX
32093 # Does compiler simultaneously support -c and -o options?
32094 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
32096 # Whether or not to add -lc for building shared libraries.
32097 build_libtool_need_lc=$archive_cmds_need_lc_CXX
32099 # Whether or not to disallow shared libs when runtime libs are static.
32100 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
32102 # Compiler flag to allow reflexive dlopens.
32103 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
32105 # Compiler flag to generate shared objects directly from archives.
32106 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
32108 # Whether the compiler copes with passing no objects directly.
32109 compiler_needs_object=$lt_compiler_needs_object_CXX
32111 # Create an old-style archive from a shared archive.
32112 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
32114 # Create a temporary old-style archive to link instead of a shared archive.
32115 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
32117 # Commands used to build a shared archive.
32118 archive_cmds=$lt_archive_cmds_CXX
32119 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
32121 # Commands used to build a loadable module if different from building
32122 # a shared archive.
32123 module_cmds=$lt_module_cmds_CXX
32124 module_expsym_cmds=$lt_module_expsym_cmds_CXX
32126 # Whether we are building with GNU ld or not.
32127 with_gnu_ld=$lt_with_gnu_ld_CXX
32129 # Flag that allows shared libraries with undefined symbols to be built.
32130 allow_undefined_flag=$lt_allow_undefined_flag_CXX
32132 # Flag that enforces no undefined symbols.
32133 no_undefined_flag=$lt_no_undefined_flag_CXX
32135 # Flag to hardcode \$libdir into a binary during linking.
32136 # This must work even if \$libdir does not exist
32137 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
32139 # If ld is used when linking, flag to hardcode \$libdir into a binary
32140 # during linking. This must work even if \$libdir does not exist.
32141 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
32143 # Whether we need a single "-rpath" flag with a separated argument.
32144 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
32146 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
32147 # DIR into the resulting binary.
32148 hardcode_direct=$hardcode_direct_CXX
32150 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
32151 # DIR into the resulting binary and the resulting library dependency is
32152 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
32153 # library is relocated.
32154 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
32156 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
32157 # into the resulting binary.
32158 hardcode_minus_L=$hardcode_minus_L_CXX
32160 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
32161 # into the resulting binary.
32162 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
32164 # Set to "yes" if building a shared library automatically hardcodes DIR
32165 # into the library and all subsequent libraries and executables linked
32167 hardcode_automatic=$hardcode_automatic_CXX
32169 # Set to yes if linker adds runtime paths of dependent libraries
32170 # to runtime path list.
32171 inherit_rpath=$inherit_rpath_CXX
32173 # Whether libtool must link a program against all its dependency libraries.
32174 link_all_deplibs=$link_all_deplibs_CXX
32176 # Fix the shell variable \$srcfile for the compiler.
32177 fix_srcfile_path=$lt_fix_srcfile_path_CXX
32179 # Set to "yes" if exported symbols are required.
32180 always_export_symbols=$always_export_symbols_CXX
32182 # The commands to list exported symbols.
32183 export_symbols_cmds=$lt_export_symbols_cmds_CXX
32185 # Symbols that should not be listed in the preloaded symbols.
32186 exclude_expsyms=$lt_exclude_expsyms_CXX
32188 # Symbols that must always be exported.
32189 include_expsyms=$lt_include_expsyms_CXX
32191 # Commands necessary for linking programs (against libraries) with templates.
32192 prelink_cmds=$lt_prelink_cmds_CXX
32194 # Specify filename containing input files.
32195 file_list_spec=$lt_file_list_spec_CXX
32197 # How to hardcode a shared library path into an executable.
32198 hardcode_action=$hardcode_action_CXX
32200 # The directories searched by this compiler when creating a shared library.
32201 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
32203 # Dependencies to place before and after the objects being linked to
32204 # create a shared library.
32205 predep_objects=$lt_predep_objects_CXX
32206 postdep_objects=$lt_postdep_objects_CXX
32207 predeps=$lt_predeps_CXX
32208 postdeps=$lt_postdeps_CXX
32210 # The library search path used internally by the compiler when linking
32211 # a shared library.
32212 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
32214 # ### END LIBTOOL TAG CONFIG: CXX
32219 for ac_file in $CONFIG_FILES; do
32220 # Support "outfile[:infile[:infile...]]"
32222 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
32224 # PO directories have a Makefile.in generated from Makefile.in.in.
32225 case "$ac_file" in */Makefile.in)
32226 # Adjust a relative srcdir.
32227 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
32228 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
32229 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
32230 # In autoconf-2.13 it is called $ac_given_srcdir.
32231 # In autoconf-2.50 it is called $srcdir.
32232 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
32233 case "$ac_given_srcdir" in
32234 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
32235 /*) top_srcdir="$ac_given_srcdir" ;;
32236 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
32238 # Treat a directory as a PO directory if and only if it has a
32239 # POTFILES.in file. This allows packages to have multiple PO
32240 # directories under different names or in different locations.
32241 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
32242 rm -f "$ac_dir/POTFILES"
32243 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
32244 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
32245 POMAKEFILEDEPS="POTFILES.in"
32246 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
32247 # on $ac_dir but don't depend on user-specified configuration
32249 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
32250 # The LINGUAS file contains the set of available languages.
32251 if test -n "$OBSOLETE_ALL_LINGUAS"; then
32252 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
32254 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
32255 # Hide the ALL_LINGUAS assigment from automake.
32256 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
32257 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
32259 # The set of available languages was given in configure.in.
32260 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
32263 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
32264 # Compute UPDATEPOFILES
32265 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
32266 # Compute DUMMYPOFILES
32267 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
32269 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
32270 case "$ac_given_srcdir" in
32272 *) srcdirpre='$(srcdir)/' ;;
32278 for lang in $ALL_LINGUAS; do
32279 POFILES="$POFILES $srcdirpre$lang.po"
32280 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
32281 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
32282 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
32284 # CATALOGS depends on both $ac_dir and the user's LINGUAS
32285 # environment variable.
32287 if test -n "$ALL_LINGUAS"; then
32288 for presentlang in $ALL_LINGUAS; do
32290 if test "%UNSET%" != "$LINGUAS"; then
32291 desiredlanguages="$LINGUAS"
32293 desiredlanguages="$ALL_LINGUAS"
32295 for desiredlang in $desiredlanguages; do
32296 # Use the presentlang catalog if desiredlang is
32297 # a. equal to presentlang, or
32298 # b. a variant of presentlang (because in this case,
32299 # presentlang can be used as a fallback for messages
32300 # which are not translated in the desiredlang catalog).
32301 case "$desiredlang" in
32302 "$presentlang"*) useit=yes;;
32305 if test $useit = yes; then
32306 INST_LINGUAS="$INST_LINGUAS $presentlang"
32311 if test -n "$INST_LINGUAS"; then
32312 for lang in $INST_LINGUAS; do
32313 CATALOGS="$CATALOGS $lang.gmo"
32316 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
32317 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"
32318 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
32319 if test -f "$f"; then
32321 *.orig | *.bak | *~) ;;
32322 *) cat "$f" >> "$ac_dir/Makefile" ;;
32339 ac_clean_files=$ac_clean_files_save
32341 test $ac_write_fail = 0 ||
32342 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
32345 # configure is writing to config.log, and then calls config.status.
32346 # config.status does its own redirection, appending to config.log.
32347 # Unfortunately, on DOS this fails, as config.log is still kept open
32348 # by configure, so config.status won't be able to write to it; its
32349 # output is simply discarded. So we exec the FD to /dev/null,
32350 # effectively closing config.log, so it can be properly (re)opened and
32351 # appended to by config.status. When coming back to configure, we
32352 # need to make the FD available again.
32353 if test "$no_create" != yes; then
32355 ac_config_status_args=
32356 test "$silent" = yes &&
32357 ac_config_status_args="$ac_config_status_args --quiet"
32359 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
32361 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
32362 # would make configure fail if this is the last instruction.
32363 $ac_cs_success || as_fn_exit $?
32365 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
32366 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
32367 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
32371 if test "${support_bat}" = "yes" ; then
32372 if test "x$QMAKE" = "xnone"; then
32373 as_fn_error "Could not find qmake $PATH. Check your Qt installation" "$LINENO" 5
32378 echo "Creating bat Makefile"
32383 ${MAKE:-make} clean
32387 if test X"$GCC" = "Xyes" ; then
32388 echo "Doing make of dependencies"
32389 ${MAKE:-make} depend
32393 chmod 755 install_conf_file build-depkgs-qt-console
32397 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
32398 chmod 755 dvd-handler dvd-simulator
32399 chmod 755 bconsole gconsole mtx-changer devel_bacula logrotate
32403 chmod 755 $c/update_mysql_tables_10_to_11 $c/update_sqlite3_tables_10_to_11
32404 chmod 755 $c/update_postgresql_tables_10_to_11
32405 chmod 755 $c/update_mysql_tables_11_to_12 $c/update_sqlite3_tables_11_to_12
32406 chmod 755 $c/update_postgresql_tables_11_to_12
32411 chmod 755 $c/create_bacula_database $c/update_bacula_tables $c/make_bacula_tables
32412 chmod 755 $c/grant_bacula_privileges $c/drop_bacula_tables $c/drop_bacula_database
32414 chmod 755 $c/create_mysql_database $c/update_mysql_tables $c/make_mysql_tables
32415 chmod 755 $c/grant_mysql_privileges $c/drop_mysql_tables $c/drop_mysql_database
32417 chmod 755 $c/create_sqlite3_database $c/update_sqlite3_tables $c/make_sqlite3_tables
32418 chmod 755 $c/grant_sqlite3_privileges $c/drop_sqlite3_tables $c/drop_sqlite3_database
32420 chmod 755 $c/create_postgresql_database $c/update_postgresql_tables $c/make_postgresql_tables
32421 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables $c/drop_postgresql_database
32423 chmod 755 $c/create_ingres_database $c/update_ingres_tables $c/make_ingres_tables
32424 chmod 755 $c/grant_ingres_privileges $c/drop_ingres_tables $c/drop_ingres_database
32427 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup $c/make_catalog_backup.pl
32428 chmod 755 $c/sqlite
32431 chmod 755 src/win32/build-depkgs-mingw32
32433 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
32434 largefile_support="yes"
32437 if test X"$GCC" = "Xyes" ; then
32438 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
32439 if test "x${CCVERSION}" = "x" ; then
32440 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
32442 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
32443 if test x"${CXXVERSION}" = x ; then
32444 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
32448 # clean up any old junk
32452 ${MAKE:-make} clean
32454 if test "x${db_type}" = "xInternal" ; then
32457 echo "You have not specified either --enable-client-only or one of the"
32458 echo " supported databases: MySQL, PostgreSQL, Ingres, SQLite3 or DBI."
32459 echo " This is not permitted. Please reconfigure."
32461 echo "Aborting the configuration ..."
32468 Configuration on `date`:
32470 Host: ${host}${post_host} -- ${DISTNAME} ${DISTVER}
32471 Bacula version: ${BACULA} ${VERSION} (${DATE})
32472 Source code location: ${srcdir}
32473 Install binaries: ${sbindir}
32474 Install libraries: ${libdir}
32475 Install config files: ${sysconfdir}
32476 Scripts directory: ${scriptdir}
32477 Archive directory: ${archivedir}
32478 Working directory: ${working_dir}
32479 PID directory: ${piddir}
32480 Subsys directory: ${subsysdir}
32481 Man directory: ${mandir}
32482 Data directory: ${datarootdir}
32483 Plugin directory: ${plugindir}
32484 C Compiler: ${CC} ${CCVERSION}
32485 C++ Compiler: ${CXX} ${CXXVERSION}
32486 Compiler flags: ${WCFLAGS} ${CFLAGS}
32487 Linker flags: ${WLDFLAGS} ${LDFLAGS}
32489 Statically Linked Tools: ${support_static_tools}
32490 Statically Linked FD: ${support_static_fd}
32491 Statically Linked SD: ${support_static_sd}
32492 Statically Linked DIR: ${support_static_dir}
32493 Statically Linked CONS: ${support_static_cons}
32494 Database type: ${db_type}
32495 Database port: ${db_port}
32496 Database lib: ${DB_LIBS}
32497 Database name: ${db_name}
32498 Database user: ${db_user}
32500 Job Output Email: ${job_email}
32501 Traceback Email: ${dump_email}
32502 SMTP Host Address: ${smtp_host}
32504 Director Port: ${dir_port}
32505 File daemon Port: ${fd_port}
32506 Storage daemon Port: ${sd_port}
32508 Director User: ${dir_user}
32509 Director Group: ${dir_group}
32510 Storage Daemon User: ${sd_user}
32511 Storage DaemonGroup: ${sd_group}
32512 File Daemon User: ${fd_user}
32513 File Daemon Group: ${fd_group}
32515 SQL binaries Directory ${SQL_BINDIR}
32517 Large file support: $largefile_support
32518 Bacula conio support: ${got_conio} ${CONS_LIBS}
32519 readline support: ${got_readline} ${PRTREADLINE_SRC}
32520 TCP Wrappers support: ${TCPW_MSG} ${WRAPLIBS}
32521 TLS support: ${support_tls}
32522 Encryption support: ${support_crypto}
32523 ZLIB support: ${have_zlib}
32524 enable-smartalloc: ${support_smartalloc}
32525 enable-lockmgr: ${support_lockmgr}
32526 bat support: ${support_bat}
32527 enable-gnome: ${support_gnome} ${gnome_version}
32528 enable-bwx-console: ${support_wx_console} ${wx_version}
32529 enable-tray-monitor: ${support_tray_monitor}
32530 client-only: ${build_client_only}
32531 build-dird: ${build_dird}
32532 build-stored: ${build_stored}
32533 Plugin support: ${have_plugins}
32534 AFS support: ${have_afs}
32535 ACL support: ${have_acl}
32536 XATTR support: ${have_xattr}
32537 Python support: ${support_python} ${PYTHON_LIBS}
32538 Batch insert enabled: ${support_batch_insert}
32542 # create a small shell script useful for support with
32543 # configure options and config.out info
32544 cat > scripts/bacula_config << EOF
32547 $ $0 $ac_configure_args
32549 cat config.out >> scripts/bacula_config
32550 echo __EOC__ >> scripts/bacula_config
32551 chmod 755 scripts/bacula_config
32555 # Display a warning message if postgresql client lib is <= 8.1
32556 if test x$DB_TYPE = xpostgresql -a x$ac_cv_lib_pq_PQisthreadsafe != xyes \
32557 -a x$support_batch_insert = xyes
32559 echo "WARNING: Your PostgreSQL client library is too old to detect "
32560 echo " if it was compiled with --enable-thread-safety, consider to"
32561 echo " upgrade it in order to avoid problems with Batch insert mode"