2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for GNU make 4.0.
5 # Report bugs to <bug-make@gnu.org>.
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
27 case `(set -o) 2>/dev/null` in #(
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 as_echo_n='sh -c $as_echo_n_body as_echo'
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
91 # Find who we are. Look in the path if we contain no directory separator.
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
149 *v*x* | *x*v* ) as_opts=-vx ;;
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
171 case \`(set -o) 2>/dev/null\` in #(
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
193 exitcode=1; echo positional parameters were not saved.
195 test x\$exitcode = x0 || exit 1
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1"
202 if (eval "$as_required") 2>/dev/null; then :
207 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
212 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
215 test -z "$as_dir" && as_dir=.
219 for as_base in sh bash ksh sh5; do
220 # Try only shells that exist, to save several forks.
221 as_shell=$as_dir/$as_base
222 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
223 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 CONFIG_SHELL=$as_shell as_have_required=yes
225 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
233 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
234 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
235 CONFIG_SHELL=$SHELL as_have_required=yes
240 if test "x$CONFIG_SHELL" != x; then :
242 # We cannot yet assume a decent shell, so we have to provide a
243 # neutralization value for shells without unset; and this also
244 # works around shells that cannot unset nonexistent variables.
245 # Preserve -v and -x to the replacement shell.
248 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
250 *v*x* | *x*v* ) as_opts=-vx ;;
255 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256 # Admittedly, this is quite paranoid, since all the known shells bail
257 # out after a failed `exec'.
258 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
262 if test x$as_have_required = xno; then :
263 $as_echo "$0: This script requires a shell more modern than all"
264 $as_echo "$0: the shells that I found on your system."
265 if test x${ZSH_VERSION+set} = xset ; then
266 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
267 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
269 $as_echo "$0: Please tell bug-autoconf@gnu.org and bug-make@gnu.org
270 $0: about your system, including any error possibly output
271 $0: before this message. Then install a modern shell, or
272 $0: manually run the script under such a shell if you do
279 SHELL=${CONFIG_SHELL-/bin/sh}
281 # Unset more variables known to interfere with behavior of common tools.
282 CLICOLOR_FORCE= GREP_OPTIONS=
283 unset CLICOLOR_FORCE GREP_OPTIONS
285 ## --------------------- ##
286 ## M4sh Shell Functions. ##
287 ## --------------------- ##
290 # Portably unset VAR.
293 { eval $1=; unset $1;}
297 # as_fn_set_status STATUS
298 # -----------------------
299 # Set $? to STATUS, without forking.
307 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
317 # Create "$as_dir" as a directory, including parents if necessary.
322 -*) as_dir=./$as_dir;;
324 test -d "$as_dir" || eval $as_mkdir_p || {
328 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
331 as_dirs="'$as_qdir' $as_dirs"
332 as_dir=`$as_dirname -- "$as_dir" ||
333 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
334 X"$as_dir" : 'X\(//\)[^/]' \| \
335 X"$as_dir" : 'X\(//\)$' \| \
336 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
337 $as_echo X"$as_dir" |
338 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
355 test -d "$as_dir" && break
357 test -z "$as_dirs" || eval "mkdir $as_dirs"
358 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
363 # as_fn_executable_p FILE
364 # -----------------------
365 # Test if FILE is an executable regular file.
366 as_fn_executable_p ()
368 test -f "$1" && test -x "$1"
369 } # as_fn_executable_p
370 # as_fn_append VAR VALUE
371 # ----------------------
372 # Append the text in VALUE to the end of the definition contained in VAR. Take
373 # advantage of any shell optimizations that allow amortized linear growth over
374 # repeated appends, instead of the typical quadratic growth present in naive
376 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
377 eval 'as_fn_append ()
390 # Perform arithmetic evaluation on the ARGs, and store the result in the
391 # global $as_val. Take advantage of shells that can avoid forks. The arguments
392 # must be portable across $(()) and expr.
393 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
401 as_val=`expr "$@" || test $? -eq 1`
406 # as_fn_error STATUS ERROR [LINENO LOG_FD]
407 # ----------------------------------------
408 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
409 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
410 # script with STATUS, using 1 if that was 0.
413 as_status=$1; test $as_status -eq 0 && as_status=1
415 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
416 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
418 $as_echo "$as_me: error: $2" >&2
419 as_fn_exit $as_status
422 if expr a : '\(a\)' >/dev/null 2>&1 &&
423 test "X`expr 00001 : '.*\(...\)'`" = X001; then
429 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441 as_me=`$as_basename -- "$0" ||
442 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
443 X"$0" : 'X\(//\)$' \| \
444 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
446 sed '/^.*\/\([^/][^/]*\)\/*$/{
460 # Avoid depending upon Character Ranges.
461 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
462 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
463 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
464 as_cr_digits='0123456789'
465 as_cr_alnum=$as_cr_Letters$as_cr_digits
468 as_lineno_1=$LINENO as_lineno_1a=$LINENO
469 as_lineno_2=$LINENO as_lineno_2a=$LINENO
470 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
471 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
472 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
484 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
488 chmod +x "$as_me.lineno" ||
489 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
491 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
492 # already done that, so ensure we don't try to do so again and fall
493 # in an infinite loop. This has already happened in practice.
494 _as_can_reexec=no; export _as_can_reexec
495 # Don't try to exec as it changes $[0], causing all sort of problems
496 # (the dirname of $[0] is not the place where we might find the
497 # original and so on. Autoconf is especially sensitive to this).
499 # Exit status is that of the last command.
503 ECHO_C= ECHO_N= ECHO_T=
504 case `echo -n x` in #(((((
506 case `echo 'xy\c'` in
507 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
509 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
516 rm -f conf$$ conf$$.exe conf$$.file
517 if test -d conf$$.dir; then
518 rm -f conf$$.dir/conf$$.file
521 mkdir conf$$.dir 2>/dev/null
523 if (echo >conf$$.file) 2>/dev/null; then
524 if ln -s conf$$.file conf$$ 2>/dev/null; then
526 # ... but there are two gotchas:
527 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
528 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
529 # In both cases, we have to default to `cp -pR'.
530 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
532 elif ln conf$$.file conf$$ 2>/dev/null; then
540 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
541 rmdir conf$$.dir 2>/dev/null
543 if mkdir -p . 2>/dev/null; then
544 as_mkdir_p='mkdir -p "$as_dir"'
546 test -d ./-p && rmdir ./-p
551 as_executable_p=as_fn_executable_p
553 # Sed expression to map a string onto a valid CPP name.
554 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
556 # Sed expression to map a string onto a valid variable name.
557 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
560 test -n "$DJDIR" || exec 7<&0 </dev/null
564 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
565 # so uname gets run too.
566 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
571 ac_default_prefix=/usr/local
573 ac_config_libobj_dir=.
580 # Identity of this package.
581 PACKAGE_NAME='GNU make'
582 PACKAGE_TARNAME='make'
583 PACKAGE_VERSION='4.0'
584 PACKAGE_STRING='GNU make 4.0'
585 PACKAGE_BUGREPORT='bug-make@gnu.org'
586 PACKAGE_URL='http://www.gnu.org/software/make/'
588 ac_unique_file="vpath.c"
589 # Factoring default headers for most tests.
590 ac_includes_default="\
592 #ifdef HAVE_SYS_TYPES_H
593 # include <sys/types.h>
595 #ifdef HAVE_SYS_STAT_H
596 # include <sys/stat.h>
602 # ifdef HAVE_STDLIB_H
607 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
612 #ifdef HAVE_STRINGS_H
613 # include <strings.h>
615 #ifdef HAVE_INTTYPES_H
616 # include <inttypes.h>
626 ac_subst_vars='am__EXEEXT_FALSE
659 XGETTEXT_EXTRA_OPTIONS
667 GETTEXT_MACRO_VERSION
712 INSTALL_STRIP_PROGRAM
754 program_transform_name
765 ac_subst_files='MAINT_MAKEFILE'
767 enable_option_checking
769 enable_dependency_tracking
778 enable_case_insensitive_file_system
783 ac_precious_vars='build_alias
799 # Initialize some variables set by options.
801 ac_init_version=false
802 ac_unrecognized_opts=
804 # The variables have the same names as the options, with
805 # dashes changed to underlines.
813 program_transform_name=s,x,x,
821 # Installation directory options.
822 # These are left unexpanded so users can "make install exec_prefix=/foo"
823 # and all the variables that are supposed to be based on exec_prefix
824 # by default will actually change.
825 # Use braces instead of parens because sh, perl, etc. also accept them.
826 # (The list follows the same order as the GNU Coding Standards.)
827 bindir='${exec_prefix}/bin'
828 sbindir='${exec_prefix}/sbin'
829 libexecdir='${exec_prefix}/libexec'
830 datarootdir='${prefix}/share'
831 datadir='${datarootdir}'
832 sysconfdir='${prefix}/etc'
833 sharedstatedir='${prefix}/com'
834 localstatedir='${prefix}/var'
835 includedir='${prefix}/include'
836 oldincludedir='/usr/include'
837 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
838 infodir='${datarootdir}/info'
843 libdir='${exec_prefix}/lib'
844 localedir='${datarootdir}/locale'
845 mandir='${datarootdir}/man'
851 # If the previous option needs an argument, assign it.
852 if test -n "$ac_prev"; then
853 eval $ac_prev=\$ac_option
859 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
864 # Accept the important Cygnus configure options, so we can diagnose typos.
866 case $ac_dashdash$ac_option in
870 -bindir | --bindir | --bindi | --bind | --bin | --bi)
872 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
875 -build | --build | --buil | --bui | --bu)
876 ac_prev=build_alias ;;
877 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
878 build_alias=$ac_optarg ;;
880 -cache-file | --cache-file | --cache-fil | --cache-fi \
881 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
882 ac_prev=cache_file ;;
883 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
884 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
885 cache_file=$ac_optarg ;;
888 cache_file=config.cache ;;
890 -datadir | --datadir | --datadi | --datad)
892 -datadir=* | --datadir=* | --datadi=* | --datad=*)
893 datadir=$ac_optarg ;;
895 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
896 | --dataroo | --dataro | --datar)
897 ac_prev=datarootdir ;;
898 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
899 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
900 datarootdir=$ac_optarg ;;
902 -disable-* | --disable-*)
903 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
904 # Reject names that are not valid shell variable names.
905 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
906 as_fn_error $? "invalid feature name: $ac_useropt"
907 ac_useropt_orig=$ac_useropt
908 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
909 case $ac_user_opts in
913 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
914 ac_unrecognized_sep=', ';;
916 eval enable_$ac_useropt=no ;;
918 -docdir | --docdir | --docdi | --doc | --do)
920 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
923 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
925 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
928 -enable-* | --enable-*)
929 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
930 # Reject names that are not valid shell variable names.
931 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
932 as_fn_error $? "invalid feature name: $ac_useropt"
933 ac_useropt_orig=$ac_useropt
934 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
935 case $ac_user_opts in
939 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
940 ac_unrecognized_sep=', ';;
942 eval enable_$ac_useropt=\$ac_optarg ;;
944 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
945 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
946 | --exec | --exe | --ex)
947 ac_prev=exec_prefix ;;
948 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
949 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
950 | --exec=* | --exe=* | --ex=*)
951 exec_prefix=$ac_optarg ;;
953 -gas | --gas | --ga | --g)
954 # Obsolete; use --with-gas.
957 -help | --help | --hel | --he | -h)
959 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
960 ac_init_help=recursive ;;
961 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
962 ac_init_help=short ;;
964 -host | --host | --hos | --ho)
965 ac_prev=host_alias ;;
966 -host=* | --host=* | --hos=* | --ho=*)
967 host_alias=$ac_optarg ;;
969 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
971 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
973 htmldir=$ac_optarg ;;
975 -includedir | --includedir | --includedi | --included | --include \
976 | --includ | --inclu | --incl | --inc)
977 ac_prev=includedir ;;
978 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
979 | --includ=* | --inclu=* | --incl=* | --inc=*)
980 includedir=$ac_optarg ;;
982 -infodir | --infodir | --infodi | --infod | --info | --inf)
984 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
985 infodir=$ac_optarg ;;
987 -libdir | --libdir | --libdi | --libd)
989 -libdir=* | --libdir=* | --libdi=* | --libd=*)
992 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
993 | --libexe | --libex | --libe)
994 ac_prev=libexecdir ;;
995 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
996 | --libexe=* | --libex=* | --libe=*)
997 libexecdir=$ac_optarg ;;
999 -localedir | --localedir | --localedi | --localed | --locale)
1000 ac_prev=localedir ;;
1001 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1002 localedir=$ac_optarg ;;
1004 -localstatedir | --localstatedir | --localstatedi | --localstated \
1005 | --localstate | --localstat | --localsta | --localst | --locals)
1006 ac_prev=localstatedir ;;
1007 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1008 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1009 localstatedir=$ac_optarg ;;
1011 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1013 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1014 mandir=$ac_optarg ;;
1016 -nfp | --nfp | --nf)
1017 # Obsolete; use --without-fp.
1020 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1021 | --no-cr | --no-c | -n)
1024 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1025 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1028 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1029 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1030 | --oldin | --oldi | --old | --ol | --o)
1031 ac_prev=oldincludedir ;;
1032 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1033 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1034 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1035 oldincludedir=$ac_optarg ;;
1037 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1039 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1040 prefix=$ac_optarg ;;
1042 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1043 | --program-pre | --program-pr | --program-p)
1044 ac_prev=program_prefix ;;
1045 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1046 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1047 program_prefix=$ac_optarg ;;
1049 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1050 | --program-suf | --program-su | --program-s)
1051 ac_prev=program_suffix ;;
1052 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1053 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1054 program_suffix=$ac_optarg ;;
1056 -program-transform-name | --program-transform-name \
1057 | --program-transform-nam | --program-transform-na \
1058 | --program-transform-n | --program-transform- \
1059 | --program-transform | --program-transfor \
1060 | --program-transfo | --program-transf \
1061 | --program-trans | --program-tran \
1062 | --progr-tra | --program-tr | --program-t)
1063 ac_prev=program_transform_name ;;
1064 -program-transform-name=* | --program-transform-name=* \
1065 | --program-transform-nam=* | --program-transform-na=* \
1066 | --program-transform-n=* | --program-transform-=* \
1067 | --program-transform=* | --program-transfor=* \
1068 | --program-transfo=* | --program-transf=* \
1069 | --program-trans=* | --program-tran=* \
1070 | --progr-tra=* | --program-tr=* | --program-t=*)
1071 program_transform_name=$ac_optarg ;;
1073 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1075 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1076 pdfdir=$ac_optarg ;;
1078 -psdir | --psdir | --psdi | --psd | --ps)
1080 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1083 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1084 | -silent | --silent | --silen | --sile | --sil)
1087 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1089 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1091 sbindir=$ac_optarg ;;
1093 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1094 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1095 | --sharedst | --shareds | --shared | --share | --shar \
1097 ac_prev=sharedstatedir ;;
1098 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1099 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1100 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1102 sharedstatedir=$ac_optarg ;;
1104 -site | --site | --sit)
1106 -site=* | --site=* | --sit=*)
1109 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1111 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1112 srcdir=$ac_optarg ;;
1114 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1115 | --syscon | --sysco | --sysc | --sys | --sy)
1116 ac_prev=sysconfdir ;;
1117 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1118 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1119 sysconfdir=$ac_optarg ;;
1121 -target | --target | --targe | --targ | --tar | --ta | --t)
1122 ac_prev=target_alias ;;
1123 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1124 target_alias=$ac_optarg ;;
1126 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1129 -version | --version | --versio | --versi | --vers | -V)
1130 ac_init_version=: ;;
1133 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1134 # Reject names that are not valid shell variable names.
1135 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1136 as_fn_error $? "invalid package name: $ac_useropt"
1137 ac_useropt_orig=$ac_useropt
1138 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1139 case $ac_user_opts in
1143 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1144 ac_unrecognized_sep=', ';;
1146 eval with_$ac_useropt=\$ac_optarg ;;
1148 -without-* | --without-*)
1149 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1150 # Reject names that are not valid shell variable names.
1151 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1152 as_fn_error $? "invalid package name: $ac_useropt"
1153 ac_useropt_orig=$ac_useropt
1154 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1155 case $ac_user_opts in
1159 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1160 ac_unrecognized_sep=', ';;
1162 eval with_$ac_useropt=no ;;
1165 # Obsolete; use --with-x.
1168 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1169 | --x-incl | --x-inc | --x-in | --x-i)
1170 ac_prev=x_includes ;;
1171 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1172 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1173 x_includes=$ac_optarg ;;
1175 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1176 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1177 ac_prev=x_libraries ;;
1178 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1179 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1180 x_libraries=$ac_optarg ;;
1182 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1183 Try \`$0 --help' for more information"
1187 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1188 # Reject names that are not valid shell variable names.
1189 case $ac_envvar in #(
1190 '' | [0-9]* | *[!_$as_cr_alnum]* )
1191 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1193 eval $ac_envvar=\$ac_optarg
1194 export $ac_envvar ;;
1197 # FIXME: should be removed in autoconf 3.0.
1198 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1199 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1200 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1201 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1207 if test -n "$ac_prev"; then
1208 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1209 as_fn_error $? "missing argument to $ac_option"
1212 if test -n "$ac_unrecognized_opts"; then
1213 case $enable_option_checking in
1215 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1216 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1220 # Check all directory arguments for consistency.
1221 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1222 datadir sysconfdir sharedstatedir localstatedir includedir \
1223 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1224 libdir localedir mandir
1226 eval ac_val=\$$ac_var
1227 # Remove trailing slashes.
1230 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1231 eval $ac_var=\$ac_val;;
1233 # Be sure to have absolute directory names.
1235 [\\/$]* | ?:[\\/]* ) continue;;
1236 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1238 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1241 # There might be people who depend on the old broken behavior: `$host'
1242 # used to hold the argument of --host etc.
1243 # FIXME: To remove some day.
1246 target=$target_alias
1248 # FIXME: To remove some day.
1249 if test "x$host_alias" != x; then
1250 if test "x$build_alias" = x; then
1251 cross_compiling=maybe
1252 elif test "x$build_alias" != "x$host_alias"; then
1258 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1260 test "$silent" = yes && exec 6>/dev/null
1263 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1264 ac_ls_di=`ls -di .` &&
1265 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1266 as_fn_error $? "working directory cannot be determined"
1267 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1268 as_fn_error $? "pwd does not report name of working directory"
1271 # Find the source files, if location was not specified.
1272 if test -z "$srcdir"; then
1273 ac_srcdir_defaulted=yes
1274 # Try the directory containing this script, then the parent directory.
1275 ac_confdir=`$as_dirname -- "$as_myself" ||
1276 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1277 X"$as_myself" : 'X\(//\)[^/]' \| \
1278 X"$as_myself" : 'X\(//\)$' \| \
1279 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1280 $as_echo X"$as_myself" |
1281 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1299 if test ! -r "$srcdir/$ac_unique_file"; then
1303 ac_srcdir_defaulted=no
1305 if test ! -r "$srcdir/$ac_unique_file"; then
1306 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1307 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1309 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1311 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1313 # When building in place, set srcdir=.
1314 if test "$ac_abs_confdir" = "$ac_pwd"; then
1317 # Remove unnecessary trailing slashes from srcdir.
1318 # Double slashes in file names in object file debugging info
1319 # mess up M-x gdb in Emacs.
1321 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1323 for ac_var in $ac_precious_vars; do
1324 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1325 eval ac_env_${ac_var}_value=\$${ac_var}
1326 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1327 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1331 # Report the --help message.
1333 if test "$ac_init_help" = "long"; then
1334 # Omit some internal or obsolete options to make the list less imposing.
1335 # This message is too long to be a string in the A/UX 3.1 sh.
1337 \`configure' configures GNU make 4.0 to adapt to many kinds of systems.
1339 Usage: $0 [OPTION]... [VAR=VALUE]...
1341 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1342 VAR=VALUE. See below for descriptions of some of the useful variables.
1344 Defaults for the options are specified in brackets.
1347 -h, --help display this help and exit
1348 --help=short display options specific to this package
1349 --help=recursive display the short help of all the included packages
1350 -V, --version display version information and exit
1351 -q, --quiet, --silent do not print \`checking ...' messages
1352 --cache-file=FILE cache test results in FILE [disabled]
1353 -C, --config-cache alias for \`--cache-file=config.cache'
1354 -n, --no-create do not create output files
1355 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1357 Installation directories:
1358 --prefix=PREFIX install architecture-independent files in PREFIX
1359 [$ac_default_prefix]
1360 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1363 By default, \`make install' will install all the files in
1364 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1365 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1366 for instance \`--prefix=\$HOME'.
1368 For better control, use the options below.
1370 Fine tuning of the installation directories:
1371 --bindir=DIR user executables [EPREFIX/bin]
1372 --sbindir=DIR system admin executables [EPREFIX/sbin]
1373 --libexecdir=DIR program executables [EPREFIX/libexec]
1374 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1375 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1376 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1377 --libdir=DIR object code libraries [EPREFIX/lib]
1378 --includedir=DIR C header files [PREFIX/include]
1379 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1380 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1381 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1382 --infodir=DIR info documentation [DATAROOTDIR/info]
1383 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1384 --mandir=DIR man documentation [DATAROOTDIR/man]
1385 --docdir=DIR documentation root [DATAROOTDIR/doc/make]
1386 --htmldir=DIR html documentation [DOCDIR]
1387 --dvidir=DIR dvi documentation [DOCDIR]
1388 --pdfdir=DIR pdf documentation [DOCDIR]
1389 --psdir=DIR ps documentation [DOCDIR]
1395 --program-prefix=PREFIX prepend PREFIX to installed program names
1396 --program-suffix=SUFFIX append SUFFIX to installed program names
1397 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1400 --build=BUILD configure for building on BUILD [guessed]
1401 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1405 if test -n "$ac_init_help"; then
1406 case $ac_init_help in
1407 short | recursive ) echo "Configuration of GNU make 4.0:";;
1412 --disable-option-checking ignore unrecognized --enable/--with options
1413 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1414 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1415 --enable-silent-rules less verbose build output (undo: `make V=1')
1416 --disable-silent-rules verbose build output (undo: `make V=0')
1417 --disable-dependency-tracking speeds up one-time build
1418 --enable-dependency-tracking do not reject slow dependency extractors
1419 --disable-nls do not use Native Language Support
1420 --disable-rpath do not hardcode runtime library paths
1421 --disable-largefile omit support for large files
1422 --enable-case-insensitive-file-system
1423 assume file systems are case insensitive
1424 --disable-job-server disallow recursive make communication during -jN
1425 --disable-load disable support for the 'load' operation
1428 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1429 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1430 --with-gnu-ld assume the C compiler uses GNU ld default=no
1431 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1432 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1433 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1434 --without-libintl-prefix don't search for libintl in includedir and libdir
1435 --with-guile Support GNU Guile for embedded scripting
1436 --with-customs=DIR enable remote jobs via Customs--see README.customs
1437 --with-dmalloc use dmalloc, as in http://www.dmalloc.com
1439 Some influential environment variables:
1440 CC C compiler command
1441 CFLAGS C compiler flags
1442 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1443 nonstandard directory <lib dir>
1444 LIBS libraries to pass to the linker, e.g. -l<library>
1445 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1446 you have headers in a nonstandard directory <include dir>
1448 PKG_CONFIG path to pkg-config utility
1450 directories to add to pkg-config's search path
1452 path overriding pkg-config's built-in search path
1454 C compiler flags for GUILE, overriding pkg-config
1455 GUILE_LIBS linker flags for GUILE, overriding pkg-config
1457 Use these variables to override the choices made by `configure' or to help
1458 it to find libraries and programs with nonstandard names/locations.
1460 Report bugs to <bug-make@gnu.org>.
1461 GNU make home page: <http://www.gnu.org/software/make/>.
1462 General help using GNU software: <http://www.gnu.org/gethelp/>.
1467 if test "$ac_init_help" = "recursive"; then
1468 # If there are subdirs, report their specific --help.
1469 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1470 test -d "$ac_dir" ||
1471 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1476 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1478 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1479 # A ".." for each directory in $ac_dir_suffix.
1480 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1481 case $ac_top_builddir_sub in
1482 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1483 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1486 ac_abs_top_builddir=$ac_pwd
1487 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1488 # for backward compatibility:
1489 ac_top_builddir=$ac_top_build_prefix
1492 .) # We are building in place.
1494 ac_top_srcdir=$ac_top_builddir_sub
1495 ac_abs_top_srcdir=$ac_pwd ;;
1496 [\\/]* | ?:[\\/]* ) # Absolute name.
1497 ac_srcdir=$srcdir$ac_dir_suffix;
1498 ac_top_srcdir=$srcdir
1499 ac_abs_top_srcdir=$srcdir ;;
1501 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1502 ac_top_srcdir=$ac_top_build_prefix$srcdir
1503 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1505 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1507 cd "$ac_dir" || { ac_status=$?; continue; }
1508 # Check for guested configure.
1509 if test -f "$ac_srcdir/configure.gnu"; then
1511 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1512 elif test -f "$ac_srcdir/configure"; then
1514 $SHELL "$ac_srcdir/configure" --help=recursive
1516 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1518 cd "$ac_pwd" || { ac_status=$?; break; }
1522 test -n "$ac_init_help" && exit $ac_status
1523 if $ac_init_version; then
1525 GNU make configure 4.0
1526 generated by GNU Autoconf 2.69
1528 Copyright (C) 2012 Free Software Foundation, Inc.
1529 This configure script is free software; the Free Software Foundation
1530 gives unlimited permission to copy, distribute and modify it.
1535 ## ------------------------ ##
1536 ## Autoconf initialization. ##
1537 ## ------------------------ ##
1539 # ac_fn_c_try_compile LINENO
1540 # --------------------------
1541 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1542 ac_fn_c_try_compile ()
1544 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1545 rm -f conftest.$ac_objext
1546 if { { ac_try="$ac_compile"
1548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1549 *) ac_try_echo=$ac_try;;
1551 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1552 $as_echo "$ac_try_echo"; } >&5
1553 (eval "$ac_compile") 2>conftest.err
1555 if test -s conftest.err; then
1556 grep -v '^ *+' conftest.err >conftest.er1
1557 cat conftest.er1 >&5
1558 mv -f conftest.er1 conftest.err
1560 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1561 test $ac_status = 0; } && {
1562 test -z "$ac_c_werror_flag" ||
1563 test ! -s conftest.err
1564 } && test -s conftest.$ac_objext; then :
1567 $as_echo "$as_me: failed program was:" >&5
1568 sed 's/^/| /' conftest.$ac_ext >&5
1572 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1573 as_fn_set_status $ac_retval
1575 } # ac_fn_c_try_compile
1577 # ac_fn_c_try_cpp LINENO
1578 # ----------------------
1579 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1582 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1583 if { { ac_try="$ac_cpp conftest.$ac_ext"
1585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1586 *) ac_try_echo=$ac_try;;
1588 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1589 $as_echo "$ac_try_echo"; } >&5
1590 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1592 if test -s conftest.err; then
1593 grep -v '^ *+' conftest.err >conftest.er1
1594 cat conftest.er1 >&5
1595 mv -f conftest.er1 conftest.err
1597 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1598 test $ac_status = 0; } > conftest.i && {
1599 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1600 test ! -s conftest.err
1604 $as_echo "$as_me: failed program was:" >&5
1605 sed 's/^/| /' conftest.$ac_ext >&5
1609 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1610 as_fn_set_status $ac_retval
1614 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1615 # -------------------------------------------------------
1616 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1617 # the include files in INCLUDES and setting the cache variable VAR
1619 ac_fn_c_check_header_mongrel ()
1621 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1622 if eval \${$3+:} false; then :
1623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1624 $as_echo_n "checking for $2... " >&6; }
1625 if eval \${$3+:} false; then :
1626 $as_echo_n "(cached) " >&6
1629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1630 $as_echo "$ac_res" >&6; }
1632 # Is the header compilable?
1633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1634 $as_echo_n "checking $2 usability... " >&6; }
1635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1636 /* end confdefs.h. */
1640 if ac_fn_c_try_compile "$LINENO"; then :
1641 ac_header_compiler=yes
1643 ac_header_compiler=no
1645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1647 $as_echo "$ac_header_compiler" >&6; }
1649 # Is the header present?
1650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1651 $as_echo_n "checking $2 presence... " >&6; }
1652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1653 /* end confdefs.h. */
1656 if ac_fn_c_try_cpp "$LINENO"; then :
1657 ac_header_preproc=yes
1659 ac_header_preproc=no
1661 rm -f conftest.err conftest.i conftest.$ac_ext
1662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1663 $as_echo "$ac_header_preproc" >&6; }
1665 # So? What about this header?
1666 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1668 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1669 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1670 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1671 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1674 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1675 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1676 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1677 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1678 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1679 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1680 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1681 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1682 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1683 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1684 ( $as_echo "## ------------------------------- ##
1685 ## Report this to bug-make@gnu.org ##
1686 ## ------------------------------- ##"
1687 ) | sed "s/^/$as_me: WARNING: /" >&2
1690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1691 $as_echo_n "checking for $2... " >&6; }
1692 if eval \${$3+:} false; then :
1693 $as_echo_n "(cached) " >&6
1695 eval "$3=\$ac_header_compiler"
1698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1699 $as_echo "$ac_res" >&6; }
1701 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1703 } # ac_fn_c_check_header_mongrel
1705 # ac_fn_c_try_run LINENO
1706 # ----------------------
1707 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1708 # that executables *can* be run.
1711 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1712 if { { ac_try="$ac_link"
1714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1715 *) ac_try_echo=$ac_try;;
1717 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1718 $as_echo "$ac_try_echo"; } >&5
1719 (eval "$ac_link") 2>&5
1721 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1722 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1723 { { case "(($ac_try" in
1724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1725 *) ac_try_echo=$ac_try;;
1727 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1728 $as_echo "$ac_try_echo"; } >&5
1729 (eval "$ac_try") 2>&5
1731 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1732 test $ac_status = 0; }; }; then :
1735 $as_echo "$as_me: program exited with status $ac_status" >&5
1736 $as_echo "$as_me: failed program was:" >&5
1737 sed 's/^/| /' conftest.$ac_ext >&5
1739 ac_retval=$ac_status
1741 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1742 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1743 as_fn_set_status $ac_retval
1747 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1748 # -------------------------------------------------------
1749 # Tests whether HEADER exists and can be compiled using the include files in
1750 # INCLUDES, setting the cache variable VAR accordingly.
1751 ac_fn_c_check_header_compile ()
1753 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1755 $as_echo_n "checking for $2... " >&6; }
1756 if eval \${$3+:} false; then :
1757 $as_echo_n "(cached) " >&6
1759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1760 /* end confdefs.h. */
1764 if ac_fn_c_try_compile "$LINENO"; then :
1769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1773 $as_echo "$ac_res" >&6; }
1774 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1776 } # ac_fn_c_check_header_compile
1778 # ac_fn_c_try_link LINENO
1779 # -----------------------
1780 # Try to link conftest.$ac_ext, and return whether this succeeded.
1783 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1784 rm -f conftest.$ac_objext conftest$ac_exeext
1785 if { { ac_try="$ac_link"
1787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1788 *) ac_try_echo=$ac_try;;
1790 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1791 $as_echo "$ac_try_echo"; } >&5
1792 (eval "$ac_link") 2>conftest.err
1794 if test -s conftest.err; then
1795 grep -v '^ *+' conftest.err >conftest.er1
1796 cat conftest.er1 >&5
1797 mv -f conftest.er1 conftest.err
1799 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1800 test $ac_status = 0; } && {
1801 test -z "$ac_c_werror_flag" ||
1802 test ! -s conftest.err
1803 } && test -s conftest$ac_exeext && {
1804 test "$cross_compiling" = yes ||
1805 test -x conftest$ac_exeext
1809 $as_echo "$as_me: failed program was:" >&5
1810 sed 's/^/| /' conftest.$ac_ext >&5
1814 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1815 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1816 # interfere with the next link command; also delete a directory that is
1817 # left behind by Apple's compiler. We do this before executing the actions.
1818 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1819 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1820 as_fn_set_status $ac_retval
1822 } # ac_fn_c_try_link
1824 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1825 # -------------------------------------------
1826 # Tests whether TYPE exists after having included INCLUDES, setting cache
1827 # variable VAR accordingly.
1828 ac_fn_c_check_type ()
1830 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1832 $as_echo_n "checking for $2... " >&6; }
1833 if eval \${$3+:} false; then :
1834 $as_echo_n "(cached) " >&6
1837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1838 /* end confdefs.h. */
1849 if ac_fn_c_try_compile "$LINENO"; then :
1850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1851 /* end confdefs.h. */
1862 if ac_fn_c_try_compile "$LINENO"; then :
1867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1873 $as_echo "$ac_res" >&6; }
1874 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1876 } # ac_fn_c_check_type
1878 # ac_fn_c_check_func LINENO FUNC VAR
1879 # ----------------------------------
1880 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1881 ac_fn_c_check_func ()
1883 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1885 $as_echo_n "checking for $2... " >&6; }
1886 if eval \${$3+:} false; then :
1887 $as_echo_n "(cached) " >&6
1889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1890 /* end confdefs.h. */
1891 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1892 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1893 #define $2 innocuous_$2
1895 /* System header to define __stub macros and hopefully few prototypes,
1896 which can conflict with char $2 (); below.
1897 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1898 <limits.h> exists even on freestanding compilers. */
1901 # include <limits.h>
1903 # include <assert.h>
1908 /* Override any GCC internal prototype to avoid an error.
1909 Use char because int might match the return type of a GCC
1910 builtin and then its argument prototype would still apply. */
1915 /* The GNU C library defines this for functions which it implements
1916 to always fail with ENOSYS. Some functions are actually named
1917 something starting with __ and the normal name is an alias. */
1918 #if defined __stub_$2 || defined __stub___$2
1930 if ac_fn_c_try_link "$LINENO"; then :
1935 rm -f core conftest.err conftest.$ac_objext \
1936 conftest$ac_exeext conftest.$ac_ext
1939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1940 $as_echo "$ac_res" >&6; }
1941 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1943 } # ac_fn_c_check_func
1945 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1946 # ---------------------------------------------
1947 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1949 ac_fn_c_check_decl ()
1951 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1952 as_decl_name=`echo $2|sed 's/ *(.*//'`
1953 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1955 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1956 if eval \${$3+:} false; then :
1957 $as_echo_n "(cached) " >&6
1959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1960 /* end confdefs.h. */
1965 #ifndef $as_decl_name
1967 (void) $as_decl_use;
1969 (void) $as_decl_name;
1977 if ac_fn_c_try_compile "$LINENO"; then :
1982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1986 $as_echo "$ac_res" >&6; }
1987 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1989 } # ac_fn_c_check_decl
1991 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1992 # ----------------------------------------------------
1993 # Tries to find if the field MEMBER exists in type AGGR, after including
1994 # INCLUDES, setting cache variable VAR accordingly.
1995 ac_fn_c_check_member ()
1997 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1999 $as_echo_n "checking for $2.$3... " >&6; }
2000 if eval \${$4+:} false; then :
2001 $as_echo_n "(cached) " >&6
2003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2004 /* end confdefs.h. */
2016 if ac_fn_c_try_compile "$LINENO"; then :
2019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2020 /* end confdefs.h. */
2026 if (sizeof ac_aggr.$3)
2032 if ac_fn_c_try_compile "$LINENO"; then :
2037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2043 $as_echo "$ac_res" >&6; }
2044 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2046 } # ac_fn_c_check_member
2047 cat >config.log <<_ACEOF
2048 This file contains any messages produced by compilers while
2049 running configure, to aid debugging if configure makes a mistake.
2051 It was created by GNU make $as_me 4.0, which was
2052 generated by GNU Autoconf 2.69. Invocation command line was
2064 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2065 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2066 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2067 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2068 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2070 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2071 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2073 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2074 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2075 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2076 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2077 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2078 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2079 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2087 test -z "$as_dir" && as_dir=.
2088 $as_echo "PATH: $as_dir"
2104 # Keep a trace of the command line.
2105 # Strip out --no-create and --no-recursion so they do not pile up.
2106 # Strip out --silent because we don't want to record it for future runs.
2107 # Also quote any args containing shell meta-characters.
2108 # Make two passes to allow for proper duplicate-argument suppression.
2112 ac_must_keep_next=false
2118 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2119 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2120 | -silent | --silent | --silen | --sile | --sil)
2123 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2126 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2128 as_fn_append ac_configure_args1 " '$ac_arg'"
2129 if test $ac_must_keep_next = true; then
2130 ac_must_keep_next=false # Got value, back to normal.
2133 *=* | --config-cache | -C | -disable-* | --disable-* \
2134 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2135 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2136 | -with-* | --with-* | -without-* | --without-* | --x)
2137 case "$ac_configure_args0 " in
2138 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2141 -* ) ac_must_keep_next=true ;;
2144 as_fn_append ac_configure_args " '$ac_arg'"
2149 { ac_configure_args0=; unset ac_configure_args0;}
2150 { ac_configure_args1=; unset ac_configure_args1;}
2152 # When interrupted or exit'd, cleanup temporary files, and complete
2153 # config.log. We remove comments because anyway the quotes in there
2154 # would cause problems or look ugly.
2155 # WARNING: Use '\'' to represent an apostrophe within the trap.
2156 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2157 trap 'exit_status=$?
2158 # Save into config.log some information that might help in debugging.
2162 $as_echo "## ---------------- ##
2163 ## Cache variables. ##
2164 ## ---------------- ##"
2166 # The following way of writing the cache mishandles newlines in values,
2168 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2169 eval ac_val=\$$ac_var
2173 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2174 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2177 _ | IFS | as_nl) ;; #(
2178 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2179 *) { eval $ac_var=; unset $ac_var;} ;;
2184 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2185 *${as_nl}ac_space=\ *)
2187 "s/'\''/'\''\\\\'\'''\''/g;
2188 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2191 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2198 $as_echo "## ----------------- ##
2199 ## Output variables. ##
2200 ## ----------------- ##"
2202 for ac_var in $ac_subst_vars
2204 eval ac_val=\$$ac_var
2206 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2208 $as_echo "$ac_var='\''$ac_val'\''"
2212 if test -n "$ac_subst_files"; then
2213 $as_echo "## ------------------- ##
2214 ## File substitutions. ##
2215 ## ------------------- ##"
2217 for ac_var in $ac_subst_files
2219 eval ac_val=\$$ac_var
2221 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2223 $as_echo "$ac_var='\''$ac_val'\''"
2228 if test -s confdefs.h; then
2229 $as_echo "## ----------- ##
2236 test "$ac_signal" != 0 &&
2237 $as_echo "$as_me: caught signal $ac_signal"
2238 $as_echo "$as_me: exit $exit_status"
2240 rm -f core *.core core.conftest.* &&
2241 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2244 for ac_signal in 1 2 13 15; do
2245 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2249 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2250 rm -f -r conftest* confdefs.h
2252 $as_echo "/* confdefs.h */" > confdefs.h
2254 # Predefined preprocessor variables.
2256 cat >>confdefs.h <<_ACEOF
2257 #define PACKAGE_NAME "$PACKAGE_NAME"
2260 cat >>confdefs.h <<_ACEOF
2261 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2264 cat >>confdefs.h <<_ACEOF
2265 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2268 cat >>confdefs.h <<_ACEOF
2269 #define PACKAGE_STRING "$PACKAGE_STRING"
2272 cat >>confdefs.h <<_ACEOF
2273 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2276 cat >>confdefs.h <<_ACEOF
2277 #define PACKAGE_URL "$PACKAGE_URL"
2281 # Let the site file select an alternate cache file if it wants to.
2282 # Prefer an explicitly selected file to automatically selected ones.
2285 if test -n "$CONFIG_SITE"; then
2286 # We do not want a PATH search for config.site.
2287 case $CONFIG_SITE in #((
2288 -*) ac_site_file1=./$CONFIG_SITE;;
2289 */*) ac_site_file1=$CONFIG_SITE;;
2290 *) ac_site_file1=./$CONFIG_SITE;;
2292 elif test "x$prefix" != xNONE; then
2293 ac_site_file1=$prefix/share/config.site
2294 ac_site_file2=$prefix/etc/config.site
2296 ac_site_file1=$ac_default_prefix/share/config.site
2297 ac_site_file2=$ac_default_prefix/etc/config.site
2299 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2301 test "x$ac_site_file" = xNONE && continue
2302 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2303 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2304 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2305 sed 's/^/| /' "$ac_site_file" >&5
2307 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2308 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2309 as_fn_error $? "failed to load site script $ac_site_file
2310 See \`config.log' for more details" "$LINENO" 5; }
2314 if test -r "$cache_file"; then
2315 # Some versions of bash will fail to source /dev/null (special files
2316 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2317 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2318 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2319 $as_echo "$as_me: loading cache $cache_file" >&6;}
2321 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2322 *) . "./$cache_file";;
2326 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2327 $as_echo "$as_me: creating cache $cache_file" >&6;}
2331 gt_needs="$gt_needs "
2332 # Check that the precious variables saved in the cache have kept the same
2334 ac_cache_corrupted=false
2335 for ac_var in $ac_precious_vars; do
2336 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2337 eval ac_new_set=\$ac_env_${ac_var}_set
2338 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2339 eval ac_new_val=\$ac_env_${ac_var}_value
2340 case $ac_old_set,$ac_new_set in
2342 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2343 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2344 ac_cache_corrupted=: ;;
2346 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2347 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2348 ac_cache_corrupted=: ;;
2351 if test "x$ac_old_val" != "x$ac_new_val"; then
2352 # differences in whitespace do not lead to failure.
2353 ac_old_val_w=`echo x $ac_old_val`
2354 ac_new_val_w=`echo x $ac_new_val`
2355 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2356 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2357 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2358 ac_cache_corrupted=:
2360 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2361 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2362 eval $ac_var=\$ac_old_val
2364 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2365 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2366 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2367 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2370 # Pass precious variables to config.status.
2371 if test "$ac_new_set" = set; then
2373 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2374 *) ac_arg=$ac_var=$ac_new_val ;;
2376 case " $ac_configure_args " in
2377 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2378 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2382 if $ac_cache_corrupted; then
2383 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2384 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2385 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2386 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2387 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2389 ## -------------------- ##
2390 ## Main body of script. ##
2391 ## -------------------- ##
2394 ac_cpp='$CPP $CPPFLAGS'
2395 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2396 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2397 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2405 for ac_dir in config "$srcdir"/config; do
2406 if test -f "$ac_dir/install-sh"; then
2408 ac_install_sh="$ac_aux_dir/install-sh -c"
2410 elif test -f "$ac_dir/install.sh"; then
2412 ac_install_sh="$ac_aux_dir/install.sh -c"
2414 elif test -f "$ac_dir/shtool"; then
2416 ac_install_sh="$ac_aux_dir/shtool install -c"
2420 if test -z "$ac_aux_dir"; then
2421 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
2424 # These three variables are undocumented and unsupported,
2425 # and are intended to be withdrawn in a future Autoconf release.
2426 # They can cause serious problems if a builder's source tree is in a directory
2427 # whose full name contains unusual characters.
2428 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2429 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2430 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2434 ac_config_headers="$ac_config_headers config.h"
2438 am__api_version='1.11'
2440 # Find a good install program. We prefer a C program (faster),
2441 # so one script is as good as another. But avoid the broken or
2442 # incompatible versions:
2443 # SysV /etc/install, /usr/sbin/install
2444 # SunOS /usr/etc/install
2445 # IRIX /sbin/install
2447 # AmigaOS /C/install, which installs bootblocks on floppy discs
2448 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2449 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2450 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2451 # OS/2's system install, which has a completely different semantic
2452 # ./install, which can be erroneously created by make from ./install.sh.
2453 # Reject install programs that cannot install multiple files.
2454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2455 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2456 if test -z "$INSTALL"; then
2457 if ${ac_cv_path_install+:} false; then :
2458 $as_echo_n "(cached) " >&6
2460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2464 test -z "$as_dir" && as_dir=.
2465 # Account for people who put trailing slashes in PATH elements.
2466 case $as_dir/ in #((
2467 ./ | .// | /[cC]/* | \
2468 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2469 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2472 # OSF1 and SCO ODT 3.0 have their own names for install.
2473 # Don't use installbsd from OSF since it installs stuff as root
2475 for ac_prog in ginstall scoinst install; do
2476 for ac_exec_ext in '' $ac_executable_extensions; do
2477 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2478 if test $ac_prog = install &&
2479 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2480 # AIX install. It has an incompatible calling convention.
2482 elif test $ac_prog = install &&
2483 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2484 # program-specific install script used by HP pwplus--don't use.
2487 rm -rf conftest.one conftest.two conftest.dir
2488 echo one > conftest.one
2489 echo two > conftest.two
2491 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2492 test -s conftest.one && test -s conftest.two &&
2493 test -s conftest.dir/conftest.one &&
2494 test -s conftest.dir/conftest.two
2496 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2509 rm -rf conftest.one conftest.two conftest.dir
2512 if test "${ac_cv_path_install+set}" = set; then
2513 INSTALL=$ac_cv_path_install
2515 # As a last resort, use the slow shell script. Don't cache a
2516 # value for INSTALL within a source directory, because that will
2517 # break other packages using the cache if that directory is
2518 # removed, or if the value is a relative name.
2519 INSTALL=$ac_install_sh
2522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2523 $as_echo "$INSTALL" >&6; }
2525 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2526 # It thinks the first close brace ends the variable substitution.
2527 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2529 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2531 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2534 $as_echo_n "checking whether build environment is sane... " >&6; }
2537 echo timestamp > conftest.file
2538 # Reject unsafe characters in $srcdir or the absolute working directory
2539 # name. Accept space and tab only in the latter.
2543 *[\\\"\#\$\&\'\`$am_lf]*)
2544 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2547 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2548 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2551 # Do `set' in a subshell so we don't clobber the current shell's
2552 # arguments. Must try -L first in case configure is actually a
2553 # symlink; some systems play weird games with the mod time of symlinks
2554 # (eg FreeBSD returns the mod time of the symlink's containing
2557 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2558 if test "$*" = "X"; then
2560 set X `ls -t "$srcdir/configure" conftest.file`
2563 if test "$*" != "X $srcdir/configure conftest.file" \
2564 && test "$*" != "X conftest.file $srcdir/configure"; then
2566 # If neither matched, then we have a broken ls. This can happen
2567 # if, for instance, CONFIG_SHELL is bash and it inherits a
2568 # broken ls alias from the environment. This has actually
2569 # happened. Such a system could not be considered "sane".
2570 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2571 alias in your environment" "$LINENO" 5
2574 test "$2" = conftest.file
2580 as_fn_error $? "newly created file is older than distributed files!
2581 Check your system clock" "$LINENO" 5
2583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2584 $as_echo "yes" >&6; }
2585 test "$program_prefix" != NONE &&
2586 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2587 # Use a double $ so make ignores it.
2588 test "$program_suffix" != NONE &&
2589 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2590 # Double any \ or $.
2591 # By default was `s,x,x', remove it if useless.
2592 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2593 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2595 # expand $ac_aux_dir to an absolute path
2596 am_aux_dir=`cd $ac_aux_dir && pwd`
2598 if test x"${MISSING+set}" != xset; then
2601 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2603 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2606 # Use eval to expand $SHELL
2607 if eval "$MISSING --run true"; then
2608 am_missing_run="$MISSING --run "
2611 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2612 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2615 if test x"${install_sh}" != xset; then
2618 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2620 install_sh="\${SHELL} $am_aux_dir/install-sh"
2624 # Installed binaries are usually stripped using `strip' when the user
2625 # run `make install-strip'. However `strip' might not be the right
2626 # tool to use in cross-compilation environments, therefore Automake
2627 # will honor the `STRIP' environment variable to overrule this program.
2628 if test "$cross_compiling" != no; then
2629 if test -n "$ac_tool_prefix"; then
2630 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2631 set dummy ${ac_tool_prefix}strip; ac_word=$2
2632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2633 $as_echo_n "checking for $ac_word... " >&6; }
2634 if ${ac_cv_prog_STRIP+:} false; then :
2635 $as_echo_n "(cached) " >&6
2637 if test -n "$STRIP"; then
2638 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2644 test -z "$as_dir" && as_dir=.
2645 for ac_exec_ext in '' $ac_executable_extensions; do
2646 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2647 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2648 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2657 STRIP=$ac_cv_prog_STRIP
2658 if test -n "$STRIP"; then
2659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2660 $as_echo "$STRIP" >&6; }
2662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2663 $as_echo "no" >&6; }
2668 if test -z "$ac_cv_prog_STRIP"; then
2670 # Extract the first word of "strip", so it can be a program name with args.
2671 set dummy strip; ac_word=$2
2672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2673 $as_echo_n "checking for $ac_word... " >&6; }
2674 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2675 $as_echo_n "(cached) " >&6
2677 if test -n "$ac_ct_STRIP"; then
2678 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2684 test -z "$as_dir" && as_dir=.
2685 for ac_exec_ext in '' $ac_executable_extensions; do
2686 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2687 ac_cv_prog_ac_ct_STRIP="strip"
2688 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2697 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2698 if test -n "$ac_ct_STRIP"; then
2699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2700 $as_echo "$ac_ct_STRIP" >&6; }
2702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2703 $as_echo "no" >&6; }
2706 if test "x$ac_ct_STRIP" = x; then
2709 case $cross_compiling:$ac_tool_warned in
2711 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2712 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2713 ac_tool_warned=yes ;;
2718 STRIP="$ac_cv_prog_STRIP"
2722 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2725 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2726 if test -z "$MKDIR_P"; then
2727 if ${ac_cv_path_mkdir+:} false; then :
2728 $as_echo_n "(cached) " >&6
2730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2731 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2734 test -z "$as_dir" && as_dir=.
2735 for ac_prog in mkdir gmkdir; do
2736 for ac_exec_ext in '' $ac_executable_extensions; do
2737 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2738 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2739 'mkdir (GNU coreutils) '* | \
2740 'mkdir (coreutils) '* | \
2741 'mkdir (fileutils) '4.1*)
2742 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2752 test -d ./--version && rmdir ./--version
2753 if test "${ac_cv_path_mkdir+set}" = set; then
2754 MKDIR_P="$ac_cv_path_mkdir -p"
2756 # As a last resort, use the slow shell script. Don't cache a
2757 # value for MKDIR_P within a source directory, because that will
2758 # break other packages using the cache if that directory is
2759 # removed, or if the value is a relative name.
2760 MKDIR_P="$ac_install_sh -d"
2763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2764 $as_echo "$MKDIR_P" >&6; }
2768 [\\/$]* | ?:[\\/]*) ;;
2769 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2772 for ac_prog in gawk mawk nawk awk
2774 # Extract the first word of "$ac_prog", so it can be a program name with args.
2775 set dummy $ac_prog; ac_word=$2
2776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2777 $as_echo_n "checking for $ac_word... " >&6; }
2778 if ${ac_cv_prog_AWK+:} false; then :
2779 $as_echo_n "(cached) " >&6
2781 if test -n "$AWK"; then
2782 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2788 test -z "$as_dir" && as_dir=.
2789 for ac_exec_ext in '' $ac_executable_extensions; do
2790 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2791 ac_cv_prog_AWK="$ac_prog"
2792 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2802 if test -n "$AWK"; then
2803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2804 $as_echo "$AWK" >&6; }
2806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2807 $as_echo "no" >&6; }
2811 test -n "$AWK" && break
2814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2815 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2817 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2818 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2819 $as_echo_n "(cached) " >&6
2821 cat >conftest.make <<\_ACEOF
2824 @echo '@@@%%%=$(MAKE)=@@@%%%'
2826 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2827 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2829 eval ac_cv_prog_make_${ac_make}_set=yes;;
2831 eval ac_cv_prog_make_${ac_make}_set=no;;
2835 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2837 $as_echo "yes" >&6; }
2840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2841 $as_echo "no" >&6; }
2842 SET_MAKE="MAKE=${MAKE-make}"
2845 rm -rf .tst 2>/dev/null
2846 mkdir .tst 2>/dev/null
2847 if test -d .tst; then
2852 rmdir .tst 2>/dev/null
2854 # Check whether --enable-silent-rules was given.
2855 if test "${enable_silent_rules+set}" = set; then :
2856 enableval=$enable_silent_rules;
2859 case $enable_silent_rules in
2860 yes) AM_DEFAULT_VERBOSITY=0;;
2861 no) AM_DEFAULT_VERBOSITY=1;;
2862 *) AM_DEFAULT_VERBOSITY=1;;
2864 am_make=${MAKE-make}
2865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2866 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2867 if ${am_cv_make_support_nested_variables+:} false; then :
2868 $as_echo_n "(cached) " >&6
2870 if $as_echo 'TRUE=$(BAR$(V))
2876 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2877 am_cv_make_support_nested_variables=yes
2879 am_cv_make_support_nested_variables=no
2882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2883 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2884 if test $am_cv_make_support_nested_variables = yes; then
2886 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2888 AM_V=$AM_DEFAULT_VERBOSITY
2889 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2893 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2894 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2895 # is not polluted with repeated "-I."
2896 am__isrc=' -I$(srcdir)'
2897 # test to see if srcdir already configured
2898 if test -f $srcdir/config.status; then
2899 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2903 # test whether we have cygpath
2904 if test -z "$CYGPATH_W"; then
2905 if (cygpath --version) >/dev/null 2>/dev/null; then
2906 CYGPATH_W='cygpath -w'
2913 # Define the identity of the package.
2918 cat >>confdefs.h <<_ACEOF
2919 #define PACKAGE "$PACKAGE"
2923 cat >>confdefs.h <<_ACEOF
2924 #define VERSION "$VERSION"
2927 # Some tools Automake needs.
2929 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2932 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2935 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2938 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2941 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2943 # We need awk for the "check" target. The system "awk" is bad on
2945 # Always define AMTAR for backward compatibility. Yes, it's still used
2946 # in the wild :-( We should find a proper way to deprecate it ...
2949 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2956 # Checks for programs.
2958 ac_cpp='$CPP $CPPFLAGS'
2959 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2960 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2961 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2962 if test -n "$ac_tool_prefix"; then
2963 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2964 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2966 $as_echo_n "checking for $ac_word... " >&6; }
2967 if ${ac_cv_prog_CC+:} false; then :
2968 $as_echo_n "(cached) " >&6
2970 if test -n "$CC"; then
2971 ac_cv_prog_CC="$CC" # Let the user override the test.
2973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2977 test -z "$as_dir" && as_dir=.
2978 for ac_exec_ext in '' $ac_executable_extensions; do
2979 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2980 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2981 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2991 if test -n "$CC"; then
2992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2993 $as_echo "$CC" >&6; }
2995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2996 $as_echo "no" >&6; }
3001 if test -z "$ac_cv_prog_CC"; then
3003 # Extract the first word of "gcc", so it can be a program name with args.
3004 set dummy gcc; ac_word=$2
3005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3006 $as_echo_n "checking for $ac_word... " >&6; }
3007 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3008 $as_echo_n "(cached) " >&6
3010 if test -n "$ac_ct_CC"; then
3011 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3017 test -z "$as_dir" && as_dir=.
3018 for ac_exec_ext in '' $ac_executable_extensions; do
3019 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3020 ac_cv_prog_ac_ct_CC="gcc"
3021 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3030 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3031 if test -n "$ac_ct_CC"; then
3032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3033 $as_echo "$ac_ct_CC" >&6; }
3035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3036 $as_echo "no" >&6; }
3039 if test "x$ac_ct_CC" = x; then
3042 case $cross_compiling:$ac_tool_warned in
3044 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3045 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3046 ac_tool_warned=yes ;;
3054 if test -z "$CC"; then
3055 if test -n "$ac_tool_prefix"; then
3056 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3057 set dummy ${ac_tool_prefix}cc; ac_word=$2
3058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3059 $as_echo_n "checking for $ac_word... " >&6; }
3060 if ${ac_cv_prog_CC+:} false; then :
3061 $as_echo_n "(cached) " >&6
3063 if test -n "$CC"; then
3064 ac_cv_prog_CC="$CC" # Let the user override the test.
3066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3070 test -z "$as_dir" && as_dir=.
3071 for ac_exec_ext in '' $ac_executable_extensions; do
3072 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3073 ac_cv_prog_CC="${ac_tool_prefix}cc"
3074 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3084 if test -n "$CC"; then
3085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3086 $as_echo "$CC" >&6; }
3088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3089 $as_echo "no" >&6; }
3095 if test -z "$CC"; then
3096 # Extract the first word of "cc", so it can be a program name with args.
3097 set dummy cc; ac_word=$2
3098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3099 $as_echo_n "checking for $ac_word... " >&6; }
3100 if ${ac_cv_prog_CC+:} false; then :
3101 $as_echo_n "(cached) " >&6
3103 if test -n "$CC"; then
3104 ac_cv_prog_CC="$CC" # Let the user override the test.
3107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3111 test -z "$as_dir" && as_dir=.
3112 for ac_exec_ext in '' $ac_executable_extensions; do
3113 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3114 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3115 ac_prog_rejected=yes
3119 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3126 if test $ac_prog_rejected = yes; then
3127 # We found a bogon in the path, so make sure we never use it.
3128 set dummy $ac_cv_prog_CC
3130 if test $# != 0; then
3131 # We chose a different compiler from the bogus one.
3132 # However, it has the same basename, so the bogon will be chosen
3133 # first if we set CC to just the basename; use the full file name.
3135 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3141 if test -n "$CC"; then
3142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3143 $as_echo "$CC" >&6; }
3145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3146 $as_echo "no" >&6; }
3151 if test -z "$CC"; then
3152 if test -n "$ac_tool_prefix"; then
3153 for ac_prog in cl.exe
3155 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3156 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3158 $as_echo_n "checking for $ac_word... " >&6; }
3159 if ${ac_cv_prog_CC+:} false; then :
3160 $as_echo_n "(cached) " >&6
3162 if test -n "$CC"; then
3163 ac_cv_prog_CC="$CC" # Let the user override the test.
3165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3169 test -z "$as_dir" && as_dir=.
3170 for ac_exec_ext in '' $ac_executable_extensions; do
3171 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3172 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3173 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3183 if test -n "$CC"; then
3184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3185 $as_echo "$CC" >&6; }
3187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3188 $as_echo "no" >&6; }
3192 test -n "$CC" && break
3195 if test -z "$CC"; then
3197 for ac_prog in cl.exe
3199 # Extract the first word of "$ac_prog", so it can be a program name with args.
3200 set dummy $ac_prog; ac_word=$2
3201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3202 $as_echo_n "checking for $ac_word... " >&6; }
3203 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3204 $as_echo_n "(cached) " >&6
3206 if test -n "$ac_ct_CC"; then
3207 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3213 test -z "$as_dir" && as_dir=.
3214 for ac_exec_ext in '' $ac_executable_extensions; do
3215 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3216 ac_cv_prog_ac_ct_CC="$ac_prog"
3217 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3226 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3227 if test -n "$ac_ct_CC"; then
3228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3229 $as_echo "$ac_ct_CC" >&6; }
3231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3232 $as_echo "no" >&6; }
3236 test -n "$ac_ct_CC" && break
3239 if test "x$ac_ct_CC" = x; then
3242 case $cross_compiling:$ac_tool_warned in
3244 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3245 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3246 ac_tool_warned=yes ;;
3255 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3256 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3257 as_fn_error $? "no acceptable C compiler found in \$PATH
3258 See \`config.log' for more details" "$LINENO" 5; }
3260 # Provide some information about the compiler.
3261 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3264 for ac_option in --version -v -V -qversion; do
3265 { { ac_try="$ac_compiler $ac_option >&5"
3267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3268 *) ac_try_echo=$ac_try;;
3270 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3271 $as_echo "$ac_try_echo"; } >&5
3272 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3274 if test -s conftest.err; then
3276 ... rest of stderr output deleted ...
3277 10q' conftest.err >conftest.er1
3278 cat conftest.er1 >&5
3280 rm -f conftest.er1 conftest.err
3281 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3282 test $ac_status = 0; }
3285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3286 /* end confdefs.h. */
3296 ac_clean_files_save=$ac_clean_files
3297 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3298 # Try to create an executable without -o first, disregard a.out.
3299 # It will help us diagnose broken compilers, and finding out an intuition
3301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3302 $as_echo_n "checking whether the C compiler works... " >&6; }
3303 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3305 # The possible output files:
3306 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3309 for ac_file in $ac_files
3312 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3313 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3318 if { { ac_try="$ac_link_default"
3320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3321 *) ac_try_echo=$ac_try;;
3323 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3324 $as_echo "$ac_try_echo"; } >&5
3325 (eval "$ac_link_default") 2>&5
3327 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3328 test $ac_status = 0; }; then :
3329 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3330 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3331 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3332 # so that the user can short-circuit this test for compilers unknown to
3334 for ac_file in $ac_files ''
3336 test -f "$ac_file" || continue
3338 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3341 # We found the default executable, but exeext='' is most
3345 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3347 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3349 # We set ac_cv_exeext here because the later test for it is not
3350 # safe: cross compilers may not add the suffix if given an `-o'
3351 # argument, so we may need to know it at that point already.
3352 # Even if this section looks crufty: it has the advantage of
3359 test "$ac_cv_exeext" = no && ac_cv_exeext=
3364 if test -z "$ac_file"; then :
3365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3366 $as_echo "no" >&6; }
3367 $as_echo "$as_me: failed program was:" >&5
3368 sed 's/^/| /' conftest.$ac_ext >&5
3370 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3371 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3372 as_fn_error 77 "C compiler cannot create executables
3373 See \`config.log' for more details" "$LINENO" 5; }
3375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3376 $as_echo "yes" >&6; }
3378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3379 $as_echo_n "checking for C compiler default output file name... " >&6; }
3380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3381 $as_echo "$ac_file" >&6; }
3382 ac_exeext=$ac_cv_exeext
3384 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3385 ac_clean_files=$ac_clean_files_save
3386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3387 $as_echo_n "checking for suffix of executables... " >&6; }
3388 if { { ac_try="$ac_link"
3390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3391 *) ac_try_echo=$ac_try;;
3393 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3394 $as_echo "$ac_try_echo"; } >&5
3395 (eval "$ac_link") 2>&5
3397 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3398 test $ac_status = 0; }; then :
3399 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3400 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3401 # work properly (i.e., refer to `conftest.exe'), while it won't with
3403 for ac_file in conftest.exe conftest conftest.*; do
3404 test -f "$ac_file" || continue
3406 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3407 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3413 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3414 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3415 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3416 See \`config.log' for more details" "$LINENO" 5; }
3418 rm -f conftest conftest$ac_cv_exeext
3419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3420 $as_echo "$ac_cv_exeext" >&6; }
3422 rm -f conftest.$ac_ext
3423 EXEEXT=$ac_cv_exeext
3425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3426 /* end confdefs.h. */
3431 FILE *f = fopen ("conftest.out", "w");
3432 return ferror (f) || fclose (f) != 0;
3438 ac_clean_files="$ac_clean_files conftest.out"
3439 # Check that the compiler produces executables we can run. If not, either
3440 # the compiler is broken, or we cross compile.
3441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3442 $as_echo_n "checking whether we are cross compiling... " >&6; }
3443 if test "$cross_compiling" != yes; then
3444 { { ac_try="$ac_link"
3446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3447 *) ac_try_echo=$ac_try;;
3449 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3450 $as_echo "$ac_try_echo"; } >&5
3451 (eval "$ac_link") 2>&5
3453 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3454 test $ac_status = 0; }
3455 if { ac_try='./conftest$ac_cv_exeext'
3456 { { case "(($ac_try" in
3457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3458 *) ac_try_echo=$ac_try;;
3460 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3461 $as_echo "$ac_try_echo"; } >&5
3462 (eval "$ac_try") 2>&5
3464 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3465 test $ac_status = 0; }; }; then
3468 if test "$cross_compiling" = maybe; then
3471 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3472 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3473 as_fn_error $? "cannot run C compiled programs.
3474 If you meant to cross compile, use \`--host'.
3475 See \`config.log' for more details" "$LINENO" 5; }
3479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3480 $as_echo "$cross_compiling" >&6; }
3482 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3483 ac_clean_files=$ac_clean_files_save
3484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3485 $as_echo_n "checking for suffix of object files... " >&6; }
3486 if ${ac_cv_objext+:} false; then :
3487 $as_echo_n "(cached) " >&6
3489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3490 /* end confdefs.h. */
3500 rm -f conftest.o conftest.obj
3501 if { { ac_try="$ac_compile"
3503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3504 *) ac_try_echo=$ac_try;;
3506 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3507 $as_echo "$ac_try_echo"; } >&5
3508 (eval "$ac_compile") 2>&5
3510 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3511 test $ac_status = 0; }; then :
3512 for ac_file in conftest.o conftest.obj conftest.*; do
3513 test -f "$ac_file" || continue;
3515 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3516 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3521 $as_echo "$as_me: failed program was:" >&5
3522 sed 's/^/| /' conftest.$ac_ext >&5
3524 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3525 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3526 as_fn_error $? "cannot compute suffix of object files: cannot compile
3527 See \`config.log' for more details" "$LINENO" 5; }
3529 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3532 $as_echo "$ac_cv_objext" >&6; }
3533 OBJEXT=$ac_cv_objext
3535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3536 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3537 if ${ac_cv_c_compiler_gnu+:} false; then :
3538 $as_echo_n "(cached) " >&6
3540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3541 /* end confdefs.h. */
3554 if ac_fn_c_try_compile "$LINENO"; then :
3559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3560 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3564 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3565 if test $ac_compiler_gnu = yes; then
3570 ac_test_CFLAGS=${CFLAGS+set}
3571 ac_save_CFLAGS=$CFLAGS
3572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3573 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3574 if ${ac_cv_prog_cc_g+:} false; then :
3575 $as_echo_n "(cached) " >&6
3577 ac_save_c_werror_flag=$ac_c_werror_flag
3578 ac_c_werror_flag=yes
3581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3582 /* end confdefs.h. */
3592 if ac_fn_c_try_compile "$LINENO"; then :
3596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3597 /* end confdefs.h. */
3607 if ac_fn_c_try_compile "$LINENO"; then :
3610 ac_c_werror_flag=$ac_save_c_werror_flag
3612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3613 /* end confdefs.h. */
3623 if ac_fn_c_try_compile "$LINENO"; then :
3626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3631 ac_c_werror_flag=$ac_save_c_werror_flag
3633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3634 $as_echo "$ac_cv_prog_cc_g" >&6; }
3635 if test "$ac_test_CFLAGS" = set; then
3636 CFLAGS=$ac_save_CFLAGS
3637 elif test $ac_cv_prog_cc_g = yes; then
3638 if test "$GCC" = yes; then
3644 if test "$GCC" = yes; then
3650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3651 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3652 if ${ac_cv_prog_cc_c89+:} false; then :
3653 $as_echo_n "(cached) " >&6
3655 ac_cv_prog_cc_c89=no
3657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3658 /* end confdefs.h. */
3662 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3663 struct buf { int x; };
3664 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3665 static char *e (p, i)
3671 static char *f (char * (*g) (char **, int), char **p, ...)
3676 s = g (p, va_arg (v,int));
3681 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3682 function prototypes and stuff, but not '\xHH' hex character constants.
3683 These don't provoke an error unfortunately, instead are silently treated
3684 as 'x'. The following induces an error, until -std is added to get
3685 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3686 array size at least. It's necessary to write '\x00'==0 to get something
3687 that's true only with -std. */
3688 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3690 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3691 inside strings and character constants. */
3693 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3695 int test (int i, double x);
3696 struct s1 {int (*f) (int a);};
3697 struct s2 {int (*f) (double a);};
3698 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3704 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3709 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3710 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3712 CC="$ac_save_CC $ac_arg"
3713 if ac_fn_c_try_compile "$LINENO"; then :
3714 ac_cv_prog_cc_c89=$ac_arg
3716 rm -f core conftest.err conftest.$ac_objext
3717 test "x$ac_cv_prog_cc_c89" != "xno" && break
3719 rm -f conftest.$ac_ext
3724 case "x$ac_cv_prog_cc_c89" in
3726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3727 $as_echo "none needed" >&6; } ;;
3729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3730 $as_echo "unsupported" >&6; } ;;
3732 CC="$CC $ac_cv_prog_cc_c89"
3733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3734 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3736 if test "x$ac_cv_prog_cc_c89" != xno; then :
3741 ac_cpp='$CPP $CPPFLAGS'
3742 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3743 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3744 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3745 DEPDIR="${am__leading_dot}deps"
3747 ac_config_commands="$ac_config_commands depfiles"
3750 am_make=${MAKE-make}
3751 cat > confinc << 'END'
3753 @echo this is the am__doit target
3756 # If we don't find an include directive, just comment out the code.
3757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3758 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3762 # First try GNU make style include.
3763 echo "include confinc" > confmf
3764 # Ignore all kinds of additional output from `make'.
3765 case `$am_make -s -f confmf 2> /dev/null` in #(
3766 *the\ am__doit\ target*)
3772 # Now try BSD make style include.
3773 if test "$am__include" = "#"; then
3774 echo '.include "confinc"' > confmf
3775 case `$am_make -s -f confmf 2> /dev/null` in #(
3776 *the\ am__doit\ target*)
3777 am__include=.include
3785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3786 $as_echo "$_am_result" >&6; }
3787 rm -f confinc confmf
3789 # Check whether --enable-dependency-tracking was given.
3790 if test "${enable_dependency_tracking+set}" = set; then :
3791 enableval=$enable_dependency_tracking;
3794 if test "x$enable_dependency_tracking" != xno; then
3795 am_depcomp="$ac_aux_dir/depcomp"
3799 if test "x$enable_dependency_tracking" != xno; then
3809 depcc="$CC" am_compiler_list=
3811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3812 $as_echo_n "checking dependency style of $depcc... " >&6; }
3813 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3814 $as_echo_n "(cached) " >&6
3816 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3817 # We make a subdir and do the tests there. Otherwise we can end up
3818 # making bogus files that we don't know about and never remove. For
3819 # instance it was reported that on HP-UX the gcc test will end up
3820 # making a dummy file named `D' -- because `-MD' means `put the output
3824 # Copy depcomp to subdir because otherwise we won't find it if we're
3825 # using a relative directory.
3826 cp "$am_depcomp" conftest.dir
3828 # We will build objects and dependencies in a subdirectory because
3829 # it helps to detect inapplicable dependency modes. For instance
3830 # both Tru64's cc and ICC support -MD to output dependencies as a
3831 # side effect of compilation, but ICC will put the dependencies in
3832 # the current directory while Tru64 will put them in the object
3836 am_cv_CC_dependencies_compiler_type=none
3837 if test "$am_compiler_list" = ""; then
3838 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3841 case " $depcc " in #(
3842 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3845 for depmode in $am_compiler_list; do
3846 # Setup a source with many dependencies, because some compilers
3847 # like to wrap large dependency lists on column 80 (with \), and
3848 # we should not choose a depcomp mode which is confused by this.
3850 # We need to recreate these files for each test, as the compiler may
3851 # overwrite some of them when testing with obscure command lines.
3852 # This happens at least with the AIX C compiler.
3854 for i in 1 2 3 4 5 6; do
3855 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3856 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3857 # Solaris 8's {/usr,}/bin/sh.
3858 touch sub/conftst$i.h
3860 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3862 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3863 # mode. It turns out that the SunPro C++ compiler does not properly
3864 # handle `-M -o', and we need to detect this. Also, some Intel
3865 # versions had trouble with output in subdirs
3866 am__obj=sub/conftest.${OBJEXT-o}
3867 am__minus_obj="-o $am__obj"
3870 # This depmode causes a compiler race in universal mode.
3871 test "$am__universal" = false || continue
3874 # after this tag, mechanisms are not by side-effect, so they'll
3875 # only be used when explicitly requested
3876 if test "x$enable_dependency_tracking" = xyes; then
3882 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3883 # This compiler won't grok `-c -o', but also, the minuso test has
3884 # not run yet. These depmodes are late enough in the game, and
3885 # so weak that their functioning should not be impacted.
3886 am__obj=conftest.${OBJEXT-o}
3891 if depmode=$depmode \
3892 source=sub/conftest.c object=$am__obj \
3893 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3894 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3895 >/dev/null 2>conftest.err &&
3896 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3897 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3898 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3899 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3900 # icc doesn't choke on unknown options, it will just issue warnings
3901 # or remarks (even with -Werror). So we grep stderr for any message
3902 # that says an option was ignored or not supported.
3903 # When given -MP, icc 7.0 and 7.1 complain thusly:
3904 # icc: Command line warning: ignoring option '-M'; no argument required
3905 # The diagnosis changed in icc 8.0:
3906 # icc: Command line remark: option '-MP' not supported
3907 if (grep 'ignoring option' conftest.err ||
3908 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3909 am_cv_CC_dependencies_compiler_type=$depmode
3918 am_cv_CC_dependencies_compiler_type=none
3922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3923 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3924 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3927 test "x$enable_dependency_tracking" != xno \
3928 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3930 am__fastdepCC_FALSE='#'
3932 am__fastdepCC_TRUE='#'
3933 am__fastdepCC_FALSE=
3938 if test -n "$ac_tool_prefix"; then
3939 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3940 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3942 $as_echo_n "checking for $ac_word... " >&6; }
3943 if ${ac_cv_prog_RANLIB+:} false; then :
3944 $as_echo_n "(cached) " >&6
3946 if test -n "$RANLIB"; then
3947 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3953 test -z "$as_dir" && as_dir=.
3954 for ac_exec_ext in '' $ac_executable_extensions; do
3955 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3956 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3957 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3966 RANLIB=$ac_cv_prog_RANLIB
3967 if test -n "$RANLIB"; then
3968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
3969 $as_echo "$RANLIB" >&6; }
3971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3972 $as_echo "no" >&6; }
3977 if test -z "$ac_cv_prog_RANLIB"; then
3978 ac_ct_RANLIB=$RANLIB
3979 # Extract the first word of "ranlib", so it can be a program name with args.
3980 set dummy ranlib; ac_word=$2
3981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3982 $as_echo_n "checking for $ac_word... " >&6; }
3983 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
3984 $as_echo_n "(cached) " >&6
3986 if test -n "$ac_ct_RANLIB"; then
3987 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3993 test -z "$as_dir" && as_dir=.
3994 for ac_exec_ext in '' $ac_executable_extensions; do
3995 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3996 ac_cv_prog_ac_ct_RANLIB="ranlib"
3997 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4006 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4007 if test -n "$ac_ct_RANLIB"; then
4008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4009 $as_echo "$ac_ct_RANLIB" >&6; }
4011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4012 $as_echo "no" >&6; }
4015 if test "x$ac_ct_RANLIB" = x; then
4018 case $cross_compiling:$ac_tool_warned in
4020 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4021 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4022 ac_tool_warned=yes ;;
4024 RANLIB=$ac_ct_RANLIB
4027 RANLIB="$ac_cv_prog_RANLIB"
4031 ac_cpp='$CPP $CPPFLAGS'
4032 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4033 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4034 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4036 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4037 # On Suns, sometimes $CPP names a directory.
4038 if test -n "$CPP" && test -d "$CPP"; then
4041 if test -z "$CPP"; then
4042 if ${ac_cv_prog_CPP+:} false; then :
4043 $as_echo_n "(cached) " >&6
4045 # Double quotes because CPP needs to be expanded
4046 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4049 for ac_c_preproc_warn_flag in '' yes
4051 # Use a header file that comes with gcc, so configuring glibc
4052 # with a fresh cross-compiler works.
4053 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4054 # <limits.h> exists even on freestanding compilers.
4055 # On the NeXT, cc -E runs the code through the compiler's parser,
4056 # not just through cpp. "Syntax error" is here to catch this case.
4057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4058 /* end confdefs.h. */
4060 # include <limits.h>
4062 # include <assert.h>
4066 if ac_fn_c_try_cpp "$LINENO"; then :
4069 # Broken: fails on valid input.
4072 rm -f conftest.err conftest.i conftest.$ac_ext
4074 # OK, works on sane cases. Now check whether nonexistent headers
4075 # can be detected and how.
4076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4077 /* end confdefs.h. */
4078 #include <ac_nonexistent.h>
4080 if ac_fn_c_try_cpp "$LINENO"; then :
4081 # Broken: success on invalid input.
4084 # Passes both tests.
4088 rm -f conftest.err conftest.i conftest.$ac_ext
4091 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4092 rm -f conftest.i conftest.err conftest.$ac_ext
4093 if $ac_preproc_ok; then :
4105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4106 $as_echo "$CPP" >&6; }
4108 for ac_c_preproc_warn_flag in '' yes
4110 # Use a header file that comes with gcc, so configuring glibc
4111 # with a fresh cross-compiler works.
4112 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4113 # <limits.h> exists even on freestanding compilers.
4114 # On the NeXT, cc -E runs the code through the compiler's parser,
4115 # not just through cpp. "Syntax error" is here to catch this case.
4116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4117 /* end confdefs.h. */
4119 # include <limits.h>
4121 # include <assert.h>
4125 if ac_fn_c_try_cpp "$LINENO"; then :
4128 # Broken: fails on valid input.
4131 rm -f conftest.err conftest.i conftest.$ac_ext
4133 # OK, works on sane cases. Now check whether nonexistent headers
4134 # can be detected and how.
4135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4136 /* end confdefs.h. */
4137 #include <ac_nonexistent.h>
4139 if ac_fn_c_try_cpp "$LINENO"; then :
4140 # Broken: success on invalid input.
4143 # Passes both tests.
4147 rm -f conftest.err conftest.i conftest.$ac_ext
4150 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4151 rm -f conftest.i conftest.err conftest.$ac_ext
4152 if $ac_preproc_ok; then :
4155 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4156 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4157 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4158 See \`config.log' for more details" "$LINENO" 5; }
4162 ac_cpp='$CPP $CPPFLAGS'
4163 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4164 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4165 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4167 # Extract the first word of "ar", so it can be a program name with args.
4168 set dummy ar; ac_word=$2
4169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4170 $as_echo_n "checking for $ac_word... " >&6; }
4171 if ${ac_cv_prog_AR+:} false; then :
4172 $as_echo_n "(cached) " >&6
4174 if test -n "$AR"; then
4175 ac_cv_prog_AR="$AR" # Let the user override the test.
4177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4181 test -z "$as_dir" && as_dir=.
4182 for ac_exec_ext in '' $ac_executable_extensions; do
4183 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4185 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4192 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
4196 if test -n "$AR"; then
4197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4198 $as_echo "$AR" >&6; }
4200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4201 $as_echo "no" >&6; }
4205 # Perl is needed for the test suite (only)
4206 # Extract the first word of "perl", so it can be a program name with args.
4207 set dummy perl; ac_word=$2
4208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4209 $as_echo_n "checking for $ac_word... " >&6; }
4210 if ${ac_cv_prog_PERL+:} false; then :
4211 $as_echo_n "(cached) " >&6
4213 if test -n "$PERL"; then
4214 ac_cv_prog_PERL="$PERL" # Let the user override the test.
4216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4220 test -z "$as_dir" && as_dir=.
4221 for ac_exec_ext in '' $ac_executable_extensions; do
4222 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4223 ac_cv_prog_PERL="perl"
4224 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4231 test -z "$ac_cv_prog_PERL" && ac_cv_prog_PERL="perl"
4234 PERL=$ac_cv_prog_PERL
4235 if test -n "$PERL"; then
4236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
4237 $as_echo "$PERL" >&6; }
4239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4240 $as_echo "no" >&6; }
4245 # Specialized system macros
4246 # Make sure we can run config.sub.
4247 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4248 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4251 $as_echo_n "checking build system type... " >&6; }
4252 if ${ac_cv_build+:} false; then :
4253 $as_echo_n "(cached) " >&6
4255 ac_build_alias=$build_alias
4256 test "x$ac_build_alias" = x &&
4257 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4258 test "x$ac_build_alias" = x &&
4259 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4260 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4261 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4265 $as_echo "$ac_cv_build" >&6; }
4266 case $ac_cv_build in
4268 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4271 ac_save_IFS=$IFS; IFS='-'
4277 # Remember, the first character of IFS is used to create $*,
4278 # except with old shells:
4281 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4285 $as_echo_n "checking host system type... " >&6; }
4286 if ${ac_cv_host+:} false; then :
4287 $as_echo_n "(cached) " >&6
4289 if test "x$host_alias" = x; then
4290 ac_cv_host=$ac_cv_build
4292 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4293 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4298 $as_echo "$ac_cv_host" >&6; }
4301 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4304 ac_save_IFS=$IFS; IFS='-'
4310 # Remember, the first character of IFS is used to create $*,
4311 # except with old shells:
4314 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4320 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4321 if ${ac_cv_path_GREP+:} false; then :
4322 $as_echo_n "(cached) " >&6
4324 if test -z "$GREP"; then
4325 ac_path_GREP_found=false
4326 # Loop through the user's path and test for each of PROGNAME-LIST
4327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4328 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4331 test -z "$as_dir" && as_dir=.
4332 for ac_prog in grep ggrep; do
4333 for ac_exec_ext in '' $ac_executable_extensions; do
4334 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4335 as_fn_executable_p "$ac_path_GREP" || continue
4336 # Check for GNU ac_path_GREP and select it if it is found.
4337 # Check for GNU $ac_path_GREP
4338 case `"$ac_path_GREP" --version 2>&1` in
4340 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4343 $as_echo_n 0123456789 >"conftest.in"
4346 cat "conftest.in" "conftest.in" >"conftest.tmp"
4347 mv "conftest.tmp" "conftest.in"
4348 cp "conftest.in" "conftest.nl"
4349 $as_echo 'GREP' >> "conftest.nl"
4350 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4351 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4352 as_fn_arith $ac_count + 1 && ac_count=$as_val
4353 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4354 # Best one so far, save it but keep looking for a better one
4355 ac_cv_path_GREP="$ac_path_GREP"
4356 ac_path_GREP_max=$ac_count
4358 # 10*(2^10) chars as input seems more than enough
4359 test $ac_count -gt 10 && break
4361 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4364 $ac_path_GREP_found && break 3
4369 if test -z "$ac_cv_path_GREP"; then
4370 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4373 ac_cv_path_GREP=$GREP
4377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4378 $as_echo "$ac_cv_path_GREP" >&6; }
4379 GREP="$ac_cv_path_GREP"
4382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4383 $as_echo_n "checking for egrep... " >&6; }
4384 if ${ac_cv_path_EGREP+:} false; then :
4385 $as_echo_n "(cached) " >&6
4387 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4388 then ac_cv_path_EGREP="$GREP -E"
4390 if test -z "$EGREP"; then
4391 ac_path_EGREP_found=false
4392 # Loop through the user's path and test for each of PROGNAME-LIST
4393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4394 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4397 test -z "$as_dir" && as_dir=.
4398 for ac_prog in egrep; do
4399 for ac_exec_ext in '' $ac_executable_extensions; do
4400 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4401 as_fn_executable_p "$ac_path_EGREP" || continue
4402 # Check for GNU ac_path_EGREP and select it if it is found.
4403 # Check for GNU $ac_path_EGREP
4404 case `"$ac_path_EGREP" --version 2>&1` in
4406 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4409 $as_echo_n 0123456789 >"conftest.in"
4412 cat "conftest.in" "conftest.in" >"conftest.tmp"
4413 mv "conftest.tmp" "conftest.in"
4414 cp "conftest.in" "conftest.nl"
4415 $as_echo 'EGREP' >> "conftest.nl"
4416 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4417 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4418 as_fn_arith $ac_count + 1 && ac_count=$as_val
4419 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4420 # Best one so far, save it but keep looking for a better one
4421 ac_cv_path_EGREP="$ac_path_EGREP"
4422 ac_path_EGREP_max=$ac_count
4424 # 10*(2^10) chars as input seems more than enough
4425 test $ac_count -gt 10 && break
4427 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4430 $ac_path_EGREP_found && break 3
4435 if test -z "$ac_cv_path_EGREP"; then
4436 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4439 ac_cv_path_EGREP=$EGREP
4444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4445 $as_echo "$ac_cv_path_EGREP" >&6; }
4446 EGREP="$ac_cv_path_EGREP"
4449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4450 $as_echo_n "checking for ANSI C header files... " >&6; }
4451 if ${ac_cv_header_stdc+:} false; then :
4452 $as_echo_n "(cached) " >&6
4454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4455 /* end confdefs.h. */
4469 if ac_fn_c_try_compile "$LINENO"; then :
4470 ac_cv_header_stdc=yes
4472 ac_cv_header_stdc=no
4474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4476 if test $ac_cv_header_stdc = yes; then
4477 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4479 /* end confdefs.h. */
4483 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4484 $EGREP "memchr" >/dev/null 2>&1; then :
4487 ac_cv_header_stdc=no
4493 if test $ac_cv_header_stdc = yes; then
4494 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4496 /* end confdefs.h. */
4500 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4501 $EGREP "free" >/dev/null 2>&1; then :
4504 ac_cv_header_stdc=no
4510 if test $ac_cv_header_stdc = yes; then
4511 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4512 if test "$cross_compiling" = yes; then :
4515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4516 /* end confdefs.h. */
4519 #if ((' ' & 0x0FF) == 0x020)
4520 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4521 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4523 # define ISLOWER(c) \
4524 (('a' <= (c) && (c) <= 'i') \
4525 || ('j' <= (c) && (c) <= 'r') \
4526 || ('s' <= (c) && (c) <= 'z'))
4527 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4530 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4535 for (i = 0; i < 256; i++)
4536 if (XOR (islower (i), ISLOWER (i))
4537 || toupper (i) != TOUPPER (i))
4542 if ac_fn_c_try_run "$LINENO"; then :
4545 ac_cv_header_stdc=no
4547 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4548 conftest.$ac_objext conftest.beam conftest.$ac_ext
4553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4554 $as_echo "$ac_cv_header_stdc" >&6; }
4555 if test $ac_cv_header_stdc = yes; then
4557 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4561 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4562 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4563 inttypes.h stdint.h unistd.h
4565 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4566 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4568 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4569 cat >>confdefs.h <<_ACEOF
4570 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4579 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4580 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4587 if test "$MINIX" = yes; then
4589 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4592 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4595 $as_echo "#define _MINIX 1" >>confdefs.h
4600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4601 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4602 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4603 $as_echo_n "(cached) " >&6
4605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4606 /* end confdefs.h. */
4608 # define __EXTENSIONS__ 1
4609 $ac_includes_default
4618 if ac_fn_c_try_compile "$LINENO"; then :
4619 ac_cv_safe_to_define___extensions__=yes
4621 ac_cv_safe_to_define___extensions__=no
4623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4626 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4627 test $ac_cv_safe_to_define___extensions__ = yes &&
4628 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4630 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4632 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4634 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4636 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
4641 $as_echo_n "checking for library containing strerror... " >&6; }
4642 if ${ac_cv_search_strerror+:} false; then :
4643 $as_echo_n "(cached) " >&6
4645 ac_func_search_save_LIBS=$LIBS
4646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4647 /* end confdefs.h. */
4649 /* Override any GCC internal prototype to avoid an error.
4650 Use char because int might match the return type of a GCC
4651 builtin and then its argument prototype would still apply. */
4664 for ac_lib in '' cposix; do
4665 if test -z "$ac_lib"; then
4666 ac_res="none required"
4669 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4671 if ac_fn_c_try_link "$LINENO"; then :
4672 ac_cv_search_strerror=$ac_res
4674 rm -f core conftest.err conftest.$ac_objext \
4676 if ${ac_cv_search_strerror+:} false; then :
4680 if ${ac_cv_search_strerror+:} false; then :
4683 ac_cv_search_strerror=no
4686 LIBS=$ac_func_search_save_LIBS
4688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
4689 $as_echo "$ac_cv_search_strerror" >&6; }
4690 ac_res=$ac_cv_search_strerror
4691 if test "$ac_res" != no; then :
4692 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4698 # Enable gettext, in "external" mode.
4702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
4703 $as_echo_n "checking whether NLS is requested... " >&6; }
4704 # Check whether --enable-nls was given.
4705 if test "${enable_nls+set}" = set; then :
4706 enableval=$enable_nls; USE_NLS=$enableval
4711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
4712 $as_echo "$USE_NLS" >&6; }
4717 GETTEXT_MACRO_VERSION=0.18
4722 # Prepare PATH_SEPARATOR.
4723 # The user is always right.
4724 if test "${PATH_SEPARATOR+set}" != set; then
4725 echo "#! /bin/sh" >conf$$.sh
4726 echo "exit 0" >>conf$$.sh
4728 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4736 # Find out how to test for executable files. Don't use a zero-byte file,
4737 # as systems may use methods other than mode bits to determine executability.
4738 cat >conf$$.file <<_ASEOF
4742 chmod +x conf$$.file
4743 if test -x conf$$.file >/dev/null 2>&1; then
4744 ac_executable_p="test -x"
4746 ac_executable_p="test -f"
4750 # Extract the first word of "msgfmt", so it can be a program name with args.
4751 set dummy msgfmt; ac_word=$2
4752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4753 $as_echo_n "checking for $ac_word... " >&6; }
4754 if ${ac_cv_path_MSGFMT+:} false; then :
4755 $as_echo_n "(cached) " >&6
4759 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4762 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4763 for ac_dir in $PATH; do
4765 test -z "$ac_dir" && ac_dir=.
4766 for ac_exec_ext in '' $ac_executable_extensions; do
4767 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4768 echo "$as_me: trying $ac_dir/$ac_word..." >&5
4769 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
4770 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
4771 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
4778 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
4782 MSGFMT="$ac_cv_path_MSGFMT"
4783 if test "$MSGFMT" != ":"; then
4784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
4785 $as_echo "$MSGFMT" >&6; }
4787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4788 $as_echo "no" >&6; }
4791 # Extract the first word of "gmsgfmt", so it can be a program name with args.
4792 set dummy gmsgfmt; ac_word=$2
4793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4794 $as_echo_n "checking for $ac_word... " >&6; }
4795 if ${ac_cv_path_GMSGFMT+:} false; then :
4796 $as_echo_n "(cached) " >&6
4800 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
4803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4807 test -z "$as_dir" && as_dir=.
4808 for ac_exec_ext in '' $ac_executable_extensions; do
4809 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4810 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
4811 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4818 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
4822 GMSGFMT=$ac_cv_path_GMSGFMT
4823 if test -n "$GMSGFMT"; then
4824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
4825 $as_echo "$GMSGFMT" >&6; }
4827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4828 $as_echo "no" >&6; }
4833 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
4834 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
4835 *) MSGFMT_015=$MSGFMT ;;
4838 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
4839 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
4840 *) GMSGFMT_015=$GMSGFMT ;;
4845 # Prepare PATH_SEPARATOR.
4846 # The user is always right.
4847 if test "${PATH_SEPARATOR+set}" != set; then
4848 echo "#! /bin/sh" >conf$$.sh
4849 echo "exit 0" >>conf$$.sh
4851 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4859 # Find out how to test for executable files. Don't use a zero-byte file,
4860 # as systems may use methods other than mode bits to determine executability.
4861 cat >conf$$.file <<_ASEOF
4865 chmod +x conf$$.file
4866 if test -x conf$$.file >/dev/null 2>&1; then
4867 ac_executable_p="test -x"
4869 ac_executable_p="test -f"
4873 # Extract the first word of "xgettext", so it can be a program name with args.
4874 set dummy xgettext; ac_word=$2
4875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4876 $as_echo_n "checking for $ac_word... " >&6; }
4877 if ${ac_cv_path_XGETTEXT+:} false; then :
4878 $as_echo_n "(cached) " >&6
4882 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
4885 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4886 for ac_dir in $PATH; do
4888 test -z "$ac_dir" && ac_dir=.
4889 for ac_exec_ext in '' $ac_executable_extensions; do
4890 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4891 echo "$as_me: trying $ac_dir/$ac_word..." >&5
4892 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
4893 (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
4894 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
4901 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
4905 XGETTEXT="$ac_cv_path_XGETTEXT"
4906 if test "$XGETTEXT" != ":"; then
4907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
4908 $as_echo "$XGETTEXT" >&6; }
4910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4911 $as_echo "no" >&6; }
4916 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
4917 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
4918 *) XGETTEXT_015=$XGETTEXT ;;
4923 # Prepare PATH_SEPARATOR.
4924 # The user is always right.
4925 if test "${PATH_SEPARATOR+set}" != set; then
4926 echo "#! /bin/sh" >conf$$.sh
4927 echo "exit 0" >>conf$$.sh
4929 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4937 # Find out how to test for executable files. Don't use a zero-byte file,
4938 # as systems may use methods other than mode bits to determine executability.
4939 cat >conf$$.file <<_ASEOF
4943 chmod +x conf$$.file
4944 if test -x conf$$.file >/dev/null 2>&1; then
4945 ac_executable_p="test -x"
4947 ac_executable_p="test -f"
4951 # Extract the first word of "msgmerge", so it can be a program name with args.
4952 set dummy msgmerge; ac_word=$2
4953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4954 $as_echo_n "checking for $ac_word... " >&6; }
4955 if ${ac_cv_path_MSGMERGE+:} false; then :
4956 $as_echo_n "(cached) " >&6
4960 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
4963 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4964 for ac_dir in $PATH; do
4966 test -z "$ac_dir" && ac_dir=.
4967 for ac_exec_ext in '' $ac_executable_extensions; do
4968 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4969 echo "$as_me: trying $ac_dir/$ac_word..." >&5
4970 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
4971 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
4978 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
4982 MSGMERGE="$ac_cv_path_MSGMERGE"
4983 if test "$MSGMERGE" != ":"; then
4984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
4985 $as_echo "$MSGMERGE" >&6; }
4987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4988 $as_echo "no" >&6; }
4992 test -n "$localedir" || localedir='${datadir}/locale'
4995 test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
4998 ac_config_commands="$ac_config_commands po-directories"
5002 if test "X$prefix" = "XNONE"; then
5003 acl_final_prefix="$ac_default_prefix"
5005 acl_final_prefix="$prefix"
5007 if test "X$exec_prefix" = "XNONE"; then
5008 acl_final_exec_prefix='${prefix}'
5010 acl_final_exec_prefix="$exec_prefix"
5012 acl_save_prefix="$prefix"
5013 prefix="$acl_final_prefix"
5014 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
5015 prefix="$acl_save_prefix"
5018 # Check whether --with-gnu-ld was given.
5019 if test "${with_gnu_ld+set}" = set; then :
5020 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5025 # Prepare PATH_SEPARATOR.
5026 # The user is always right.
5027 if test "${PATH_SEPARATOR+set}" != set; then
5028 echo "#! /bin/sh" >conf$$.sh
5029 echo "exit 0" >>conf$$.sh
5031 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5039 if test "$GCC" = yes; then
5040 # Check if gcc -print-prog-name=ld gives a path.
5041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
5042 $as_echo_n "checking for ld used by GCC... " >&6; }
5045 # gcc leaves a trailing carriage return which upsets mingw
5046 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5048 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5051 # Accept absolute paths.
5052 [\\/]* | [A-Za-z]:[\\/]*)
5053 re_direlt='/[^/][^/]*/\.\./'
5054 # Canonicalize the path of ld
5055 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
5056 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5057 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
5059 test -z "$LD" && LD="$ac_prog"
5062 # If it fails, then pretend we aren't using GCC.
5066 # If it is relative, then search for the first ld in PATH.
5070 elif test "$with_gnu_ld" = yes; then
5071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5072 $as_echo_n "checking for GNU ld... " >&6; }
5074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5075 $as_echo_n "checking for non-GNU ld... " >&6; }
5077 if ${acl_cv_path_LD+:} false; then :
5078 $as_echo_n "(cached) " >&6
5080 if test -z "$LD"; then
5081 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
5082 for ac_dir in $PATH; do
5083 test -z "$ac_dir" && ac_dir=.
5084 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5085 acl_cv_path_LD="$ac_dir/$ac_prog"
5086 # Check to see if the program is GNU ld. I'd rather use --version,
5087 # but apparently some GNU ld's only accept -v.
5088 # Break only if it was the GNU/non-GNU ld that we prefer.
5089 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
5090 *GNU* | *'with BFD'*)
5091 test "$with_gnu_ld" != no && break ;;
5093 test "$with_gnu_ld" != yes && break ;;
5099 acl_cv_path_LD="$LD" # Let the user override the test with a path.
5103 LD="$acl_cv_path_LD"
5104 if test -n "$LD"; then
5105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5106 $as_echo "$LD" >&6; }
5108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5109 $as_echo "no" >&6; }
5111 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5113 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5114 if ${acl_cv_prog_gnu_ld+:} false; then :
5115 $as_echo_n "(cached) " >&6
5117 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5118 case `$LD -v 2>&1 </dev/null` in
5119 *GNU* | *'with BFD'*)
5120 acl_cv_prog_gnu_ld=yes ;;
5122 acl_cv_prog_gnu_ld=no ;;
5125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
5126 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
5127 with_gnu_ld=$acl_cv_prog_gnu_ld
5132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
5133 $as_echo_n "checking for shared library run path origin... " >&6; }
5134 if ${acl_cv_rpath+:} false; then :
5135 $as_echo_n "(cached) " >&6
5138 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
5139 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
5145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
5146 $as_echo "$acl_cv_rpath" >&6; }
5148 acl_libext="$acl_cv_libext"
5149 acl_shlibext="$acl_cv_shlibext"
5150 acl_libname_spec="$acl_cv_libname_spec"
5151 acl_library_names_spec="$acl_cv_library_names_spec"
5152 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
5153 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
5154 acl_hardcode_direct="$acl_cv_hardcode_direct"
5155 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
5156 # Check whether --enable-rpath was given.
5157 if test "${enable_rpath+set}" = set; then :
5158 enableval=$enable_rpath; :
5170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
5171 $as_echo_n "checking for 64-bit host... " >&6; }
5172 if ${gl_cv_solaris_64bit+:} false; then :
5173 $as_echo_n "(cached) " >&6
5175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5176 /* end confdefs.h. */
5183 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5184 $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
5185 gl_cv_solaris_64bit=yes
5187 gl_cv_solaris_64bit=no
5193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
5194 $as_echo "$gl_cv_solaris_64bit" >&6; }
5195 if test $gl_cv_solaris_64bit = yes; then
5196 acl_libdirstem=lib/64
5198 sparc*) acl_libdirstem2=lib/sparcv9 ;;
5199 i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
5204 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
5205 if test -n "$searchpath"; then
5206 acl_save_IFS="${IFS= }"; IFS=":"
5207 for searchdir in $searchpath; do
5208 if test -d "$searchdir"; then
5209 case "$searchdir" in
5210 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
5212 # Better ignore directories of this form. They are misleading.
5214 *) searchdir=`cd "$searchdir" && pwd`
5215 case "$searchdir" in
5216 */lib64 ) acl_libdirstem=lib64 ;;
5225 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
5240 acl_save_prefix="$prefix"
5241 prefix="$acl_final_prefix"
5242 acl_save_exec_prefix="$exec_prefix"
5243 exec_prefix="$acl_final_exec_prefix"
5245 eval additional_includedir=\"$includedir\"
5246 eval additional_libdir=\"$libdir\"
5248 exec_prefix="$acl_save_exec_prefix"
5249 prefix="$acl_save_prefix"
5252 # Check whether --with-libiconv-prefix was given.
5253 if test "${with_libiconv_prefix+set}" = set; then :
5254 withval=$with_libiconv_prefix;
5255 if test "X$withval" = "Xno"; then
5258 if test "X$withval" = "X"; then
5260 acl_save_prefix="$prefix"
5261 prefix="$acl_final_prefix"
5262 acl_save_exec_prefix="$exec_prefix"
5263 exec_prefix="$acl_final_exec_prefix"
5265 eval additional_includedir=\"$includedir\"
5266 eval additional_libdir=\"$libdir\"
5268 exec_prefix="$acl_save_exec_prefix"
5269 prefix="$acl_save_prefix"
5272 additional_includedir="$withval/include"
5273 additional_libdir="$withval/$acl_libdirstem"
5274 if test "$acl_libdirstem2" != "$acl_libdirstem" \
5275 && ! test -d "$withval/$acl_libdirstem"; then
5276 additional_libdir="$withval/$acl_libdirstem2"
5290 names_already_handled=
5291 names_next_round='iconv '
5292 while test -n "$names_next_round"; do
5293 names_this_round="$names_next_round"
5295 for name in $names_this_round; do
5297 for n in $names_already_handled; do
5298 if test "$n" = "$name"; then
5303 if test -z "$already_handled"; then
5304 names_already_handled="$names_already_handled $name"
5305 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
5306 eval value=\"\$HAVE_LIB$uppername\"
5307 if test -n "$value"; then
5308 if test "$value" = yes; then
5309 eval value=\"\$LIB$uppername\"
5310 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
5311 eval value=\"\$LTLIB$uppername\"
5312 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
5321 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
5322 if test -n "$acl_shlibext"; then
5323 shrext=".$acl_shlibext" # typically: shrext=.so
5327 if test $use_additional = yes; then
5328 dir="$additional_libdir"
5329 if test -n "$acl_shlibext"; then
5330 if test -f "$dir/$libname$shrext"; then
5332 found_so="$dir/$libname$shrext"
5334 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
5335 ver=`(cd "$dir" && \
5336 for f in "$libname$shrext".*; do echo "$f"; done \
5337 | sed -e "s,^$libname$shrext\\\\.,," \
5338 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
5339 | sed 1q ) 2>/dev/null`
5340 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
5342 found_so="$dir/$libname$shrext.$ver"
5345 eval library_names=\"$acl_library_names_spec\"
5346 for f in $library_names; do
5347 if test -f "$dir/$f"; then
5356 if test "X$found_dir" = "X"; then
5357 if test -f "$dir/$libname.$acl_libext"; then
5359 found_a="$dir/$libname.$acl_libext"
5362 if test "X$found_dir" != "X"; then
5363 if test -f "$dir/$libname.la"; then
5364 found_la="$dir/$libname.la"
5368 if test "X$found_dir" = "X"; then
5369 for x in $LDFLAGS $LTLIBICONV; do
5371 acl_save_prefix="$prefix"
5372 prefix="$acl_final_prefix"
5373 acl_save_exec_prefix="$exec_prefix"
5374 exec_prefix="$acl_final_exec_prefix"
5376 exec_prefix="$acl_save_exec_prefix"
5377 prefix="$acl_save_prefix"
5381 dir=`echo "X$x" | sed -e 's/^X-L//'`
5382 if test -n "$acl_shlibext"; then
5383 if test -f "$dir/$libname$shrext"; then
5385 found_so="$dir/$libname$shrext"
5387 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
5388 ver=`(cd "$dir" && \
5389 for f in "$libname$shrext".*; do echo "$f"; done \
5390 | sed -e "s,^$libname$shrext\\\\.,," \
5391 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
5392 | sed 1q ) 2>/dev/null`
5393 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
5395 found_so="$dir/$libname$shrext.$ver"
5398 eval library_names=\"$acl_library_names_spec\"
5399 for f in $library_names; do
5400 if test -f "$dir/$f"; then
5409 if test "X$found_dir" = "X"; then
5410 if test -f "$dir/$libname.$acl_libext"; then
5412 found_a="$dir/$libname.$acl_libext"
5415 if test "X$found_dir" != "X"; then
5416 if test -f "$dir/$libname.la"; then
5417 found_la="$dir/$libname.la"
5422 if test "X$found_dir" != "X"; then
5427 if test "X$found_dir" != "X"; then
5428 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
5429 if test "X$found_so" != "X"; then
5430 if test "$enable_rpath" = no \
5431 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
5432 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
5433 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5436 for x in $ltrpathdirs; do
5437 if test "X$x" = "X$found_dir"; then
5442 if test -z "$haveit"; then
5443 ltrpathdirs="$ltrpathdirs $found_dir"
5445 if test "$acl_hardcode_direct" = yes; then
5446 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5448 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
5449 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5451 for x in $rpathdirs; do
5452 if test "X$x" = "X$found_dir"; then
5457 if test -z "$haveit"; then
5458 rpathdirs="$rpathdirs $found_dir"
5462 for x in $LDFLAGS $LIBICONV; do
5464 acl_save_prefix="$prefix"
5465 prefix="$acl_final_prefix"
5466 acl_save_exec_prefix="$exec_prefix"
5467 exec_prefix="$acl_final_exec_prefix"
5469 exec_prefix="$acl_save_exec_prefix"
5470 prefix="$acl_save_prefix"
5472 if test "X$x" = "X-L$found_dir"; then
5477 if test -z "$haveit"; then
5478 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
5480 if test "$acl_hardcode_minus_L" != no; then
5481 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5483 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
5489 if test "X$found_a" != "X"; then
5490 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
5492 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
5495 additional_includedir=
5496 case "$found_dir" in
5497 */$acl_libdirstem | */$acl_libdirstem/)
5498 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
5499 if test "$name" = 'iconv'; then
5500 LIBICONV_PREFIX="$basedir"
5502 additional_includedir="$basedir/include"
5504 */$acl_libdirstem2 | */$acl_libdirstem2/)
5505 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
5506 if test "$name" = 'iconv'; then
5507 LIBICONV_PREFIX="$basedir"
5509 additional_includedir="$basedir/include"
5512 if test "X$additional_includedir" != "X"; then
5513 if test "X$additional_includedir" != "X/usr/include"; then
5515 if test "X$additional_includedir" = "X/usr/local/include"; then
5516 if test -n "$GCC"; then
5518 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
5522 if test -z "$haveit"; then
5523 for x in $CPPFLAGS $INCICONV; do
5525 acl_save_prefix="$prefix"
5526 prefix="$acl_final_prefix"
5527 acl_save_exec_prefix="$exec_prefix"
5528 exec_prefix="$acl_final_exec_prefix"
5530 exec_prefix="$acl_save_exec_prefix"
5531 prefix="$acl_save_prefix"
5533 if test "X$x" = "X-I$additional_includedir"; then
5538 if test -z "$haveit"; then
5539 if test -d "$additional_includedir"; then
5540 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
5546 if test -n "$found_la"; then
5547 save_libdir="$libdir"
5549 */* | *\\*) . "$found_la" ;;
5550 *) . "./$found_la" ;;
5552 libdir="$save_libdir"
5553 for dep in $dependency_libs; do
5556 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
5557 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
5558 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
5560 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
5561 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
5562 if test -n "$GCC"; then
5564 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
5568 if test -z "$haveit"; then
5570 for x in $LDFLAGS $LIBICONV; do
5572 acl_save_prefix="$prefix"
5573 prefix="$acl_final_prefix"
5574 acl_save_exec_prefix="$exec_prefix"
5575 exec_prefix="$acl_final_exec_prefix"
5577 exec_prefix="$acl_save_exec_prefix"
5578 prefix="$acl_save_prefix"
5580 if test "X$x" = "X-L$additional_libdir"; then
5585 if test -z "$haveit"; then
5586 if test -d "$additional_libdir"; then
5587 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
5591 for x in $LDFLAGS $LTLIBICONV; do
5593 acl_save_prefix="$prefix"
5594 prefix="$acl_final_prefix"
5595 acl_save_exec_prefix="$exec_prefix"
5596 exec_prefix="$acl_final_exec_prefix"
5598 exec_prefix="$acl_save_exec_prefix"
5599 prefix="$acl_save_prefix"
5601 if test "X$x" = "X-L$additional_libdir"; then
5606 if test -z "$haveit"; then
5607 if test -d "$additional_libdir"; then
5608 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
5615 dir=`echo "X$dep" | sed -e 's/^X-R//'`
5616 if test "$enable_rpath" != no; then
5618 for x in $rpathdirs; do
5619 if test "X$x" = "X$dir"; then
5624 if test -z "$haveit"; then
5625 rpathdirs="$rpathdirs $dir"
5628 for x in $ltrpathdirs; do
5629 if test "X$x" = "X$dir"; then
5634 if test -z "$haveit"; then
5635 ltrpathdirs="$ltrpathdirs $dir"
5640 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
5643 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
5646 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
5647 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
5653 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
5654 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
5660 if test "X$rpathdirs" != "X"; then
5661 if test -n "$acl_hardcode_libdir_separator"; then
5663 for found_dir in $rpathdirs; do
5664 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
5666 acl_save_libdir="$libdir"
5668 eval flag=\"$acl_hardcode_libdir_flag_spec\"
5669 libdir="$acl_save_libdir"
5670 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
5672 for found_dir in $rpathdirs; do
5673 acl_save_libdir="$libdir"
5675 eval flag=\"$acl_hardcode_libdir_flag_spec\"
5676 libdir="$acl_save_libdir"
5677 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
5681 if test "X$ltrpathdirs" != "X"; then
5682 for found_dir in $ltrpathdirs; do
5683 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
5717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
5718 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
5719 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
5720 $as_echo_n "(cached) " >&6
5722 gt_save_LIBS="$LIBS"
5723 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
5724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5725 /* end confdefs.h. */
5726 #include <CoreFoundation/CFPreferences.h>
5730 CFPreferencesCopyAppValue(NULL, NULL)
5735 if ac_fn_c_try_link "$LINENO"; then :
5736 gt_cv_func_CFPreferencesCopyAppValue=yes
5738 gt_cv_func_CFPreferencesCopyAppValue=no
5740 rm -f core conftest.err conftest.$ac_objext \
5741 conftest$ac_exeext conftest.$ac_ext
5742 LIBS="$gt_save_LIBS"
5744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
5745 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
5746 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
5748 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
5751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
5752 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
5753 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
5754 $as_echo_n "(cached) " >&6
5756 gt_save_LIBS="$LIBS"
5757 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
5758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5759 /* end confdefs.h. */
5760 #include <CoreFoundation/CFLocale.h>
5764 CFLocaleCopyCurrent();
5769 if ac_fn_c_try_link "$LINENO"; then :
5770 gt_cv_func_CFLocaleCopyCurrent=yes
5772 gt_cv_func_CFLocaleCopyCurrent=no
5774 rm -f core conftest.err conftest.$ac_objext \
5775 conftest$ac_exeext conftest.$ac_ext
5776 LIBS="$gt_save_LIBS"
5778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
5779 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
5780 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
5782 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
5786 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
5787 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
5799 case " $gt_needs " in
5800 *" need-formatstring-macros "*) gt_api_version=3 ;;
5801 *" need-ngettext "*) gt_api_version=2 ;;
5802 *) gt_api_version=1 ;;
5804 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
5805 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
5807 if test "$USE_NLS" = "yes"; then
5808 gt_use_preinstalled_gnugettext=no
5811 if test $gt_api_version -ge 3; then
5812 gt_revision_test_code='
5813 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
5814 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
5816 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
5819 gt_revision_test_code=
5821 if test $gt_api_version -ge 2; then
5822 gt_expression_test_code=' + * ngettext ("", "", 0)'
5824 gt_expression_test_code=
5827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
5828 $as_echo_n "checking for GNU gettext in libc... " >&6; }
5829 if eval \${$gt_func_gnugettext_libc+:} false; then :
5830 $as_echo_n "(cached) " >&6
5832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5833 /* end confdefs.h. */
5834 #include <libintl.h>
5835 $gt_revision_test_code
5836 extern int _nl_msg_cat_cntr;
5837 extern int *_nl_domain_bindings;
5841 bindtextdomain ("", "");
5842 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
5847 if ac_fn_c_try_link "$LINENO"; then :
5848 eval "$gt_func_gnugettext_libc=yes"
5850 eval "$gt_func_gnugettext_libc=no"
5852 rm -f core conftest.err conftest.$ac_objext \
5853 conftest$ac_exeext conftest.$ac_ext
5855 eval ac_res=\$$gt_func_gnugettext_libc
5856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5857 $as_echo "$ac_res" >&6; }
5859 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
5865 am_save_CPPFLAGS="$CPPFLAGS"
5867 for element in $INCICONV; do
5869 for x in $CPPFLAGS; do
5871 acl_save_prefix="$prefix"
5872 prefix="$acl_final_prefix"
5873 acl_save_exec_prefix="$exec_prefix"
5874 exec_prefix="$acl_final_exec_prefix"
5876 exec_prefix="$acl_save_exec_prefix"
5877 prefix="$acl_save_prefix"
5879 if test "X$x" = "X$element"; then
5884 if test -z "$haveit"; then
5885 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
5890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
5891 $as_echo_n "checking for iconv... " >&6; }
5892 if ${am_cv_func_iconv+:} false; then :
5893 $as_echo_n "(cached) " >&6
5896 am_cv_func_iconv="no, consider installing GNU libiconv"
5898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5899 /* end confdefs.h. */
5905 iconv_t cd = iconv_open("","");
5906 iconv(cd,NULL,NULL,NULL,NULL);
5912 if ac_fn_c_try_link "$LINENO"; then :
5913 am_cv_func_iconv=yes
5915 rm -f core conftest.err conftest.$ac_objext \
5916 conftest$ac_exeext conftest.$ac_ext
5917 if test "$am_cv_func_iconv" != yes; then
5918 am_save_LIBS="$LIBS"
5919 LIBS="$LIBS $LIBICONV"
5920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5921 /* end confdefs.h. */
5927 iconv_t cd = iconv_open("","");
5928 iconv(cd,NULL,NULL,NULL,NULL);
5934 if ac_fn_c_try_link "$LINENO"; then :
5936 am_cv_func_iconv=yes
5938 rm -f core conftest.err conftest.$ac_objext \
5939 conftest$ac_exeext conftest.$ac_ext
5940 LIBS="$am_save_LIBS"
5944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
5945 $as_echo "$am_cv_func_iconv" >&6; }
5946 if test "$am_cv_func_iconv" = yes; then
5947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
5948 $as_echo_n "checking for working iconv... " >&6; }
5949 if ${am_cv_func_iconv_works+:} false; then :
5950 $as_echo_n "(cached) " >&6
5953 am_save_LIBS="$LIBS"
5954 if test $am_cv_lib_iconv = yes; then
5955 LIBS="$LIBS $LIBICONV"
5957 if test "$cross_compiling" = yes; then :
5959 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
5960 *) am_cv_func_iconv_works="guessing yes" ;;
5963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5964 /* end confdefs.h. */
5970 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
5973 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
5974 if (cd_utf8_to_88591 != (iconv_t)(-1))
5976 static const char input[] = "\342\202\254"; /* EURO SIGN */
5978 const char *inptr = input;
5979 size_t inbytesleft = strlen (input);
5981 size_t outbytesleft = sizeof (buf);
5982 size_t res = iconv (cd_utf8_to_88591,
5983 (char **) &inptr, &inbytesleft,
5984 &outptr, &outbytesleft);
5989 /* Test against Solaris 10 bug: Failures are not distinguishable from
5990 successful returns. */
5992 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
5993 if (cd_ascii_to_88591 != (iconv_t)(-1))
5995 static const char input[] = "\263";
5997 const char *inptr = input;
5998 size_t inbytesleft = strlen (input);
6000 size_t outbytesleft = sizeof (buf);
6001 size_t res = iconv (cd_ascii_to_88591,
6002 (char **) &inptr, &inbytesleft,
6003 &outptr, &outbytesleft);
6008 #if 0 /* This bug could be worked around by the caller. */
6009 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
6011 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
6012 if (cd_88591_to_utf8 != (iconv_t)(-1))
6014 static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
6016 const char *inptr = input;
6017 size_t inbytesleft = strlen (input);
6019 size_t outbytesleft = sizeof (buf);
6020 size_t res = iconv (cd_88591_to_utf8,
6021 (char **) &inptr, &inbytesleft,
6022 &outptr, &outbytesleft);
6028 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
6030 if (/* Try standardized names. */
6031 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
6032 /* Try IRIX, OSF/1 names. */
6033 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
6034 /* Try AIX names. */
6035 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
6036 /* Try HP-UX names. */
6037 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
6042 if ac_fn_c_try_run "$LINENO"; then :
6043 am_cv_func_iconv_works=yes
6045 am_cv_func_iconv_works=no
6047 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6048 conftest.$ac_objext conftest.beam conftest.$ac_ext
6051 LIBS="$am_save_LIBS"
6054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
6055 $as_echo "$am_cv_func_iconv_works" >&6; }
6056 case "$am_cv_func_iconv_works" in
6057 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
6058 *) am_func_iconv=yes ;;
6061 am_func_iconv=no am_cv_lib_iconv=no
6063 if test "$am_func_iconv" = yes; then
6065 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
6068 if test "$am_cv_lib_iconv" = yes; then
6069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
6070 $as_echo_n "checking how to link with libiconv... " >&6; }
6071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
6072 $as_echo "$LIBICONV" >&6; }
6074 CPPFLAGS="$am_save_CPPFLAGS"
6091 acl_save_prefix="$prefix"
6092 prefix="$acl_final_prefix"
6093 acl_save_exec_prefix="$exec_prefix"
6094 exec_prefix="$acl_final_exec_prefix"
6096 eval additional_includedir=\"$includedir\"
6097 eval additional_libdir=\"$libdir\"
6099 exec_prefix="$acl_save_exec_prefix"
6100 prefix="$acl_save_prefix"
6103 # Check whether --with-libintl-prefix was given.
6104 if test "${with_libintl_prefix+set}" = set; then :
6105 withval=$with_libintl_prefix;
6106 if test "X$withval" = "Xno"; then
6109 if test "X$withval" = "X"; then
6111 acl_save_prefix="$prefix"
6112 prefix="$acl_final_prefix"
6113 acl_save_exec_prefix="$exec_prefix"
6114 exec_prefix="$acl_final_exec_prefix"
6116 eval additional_includedir=\"$includedir\"
6117 eval additional_libdir=\"$libdir\"
6119 exec_prefix="$acl_save_exec_prefix"
6120 prefix="$acl_save_prefix"
6123 additional_includedir="$withval/include"
6124 additional_libdir="$withval/$acl_libdirstem"
6125 if test "$acl_libdirstem2" != "$acl_libdirstem" \
6126 && ! test -d "$withval/$acl_libdirstem"; then
6127 additional_libdir="$withval/$acl_libdirstem2"
6141 names_already_handled=
6142 names_next_round='intl '
6143 while test -n "$names_next_round"; do
6144 names_this_round="$names_next_round"
6146 for name in $names_this_round; do
6148 for n in $names_already_handled; do
6149 if test "$n" = "$name"; then
6154 if test -z "$already_handled"; then
6155 names_already_handled="$names_already_handled $name"
6156 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
6157 eval value=\"\$HAVE_LIB$uppername\"
6158 if test -n "$value"; then
6159 if test "$value" = yes; then
6160 eval value=\"\$LIB$uppername\"
6161 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
6162 eval value=\"\$LTLIB$uppername\"
6163 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
6172 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
6173 if test -n "$acl_shlibext"; then
6174 shrext=".$acl_shlibext" # typically: shrext=.so
6178 if test $use_additional = yes; then
6179 dir="$additional_libdir"
6180 if test -n "$acl_shlibext"; then
6181 if test -f "$dir/$libname$shrext"; then
6183 found_so="$dir/$libname$shrext"
6185 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
6186 ver=`(cd "$dir" && \
6187 for f in "$libname$shrext".*; do echo "$f"; done \
6188 | sed -e "s,^$libname$shrext\\\\.,," \
6189 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
6190 | sed 1q ) 2>/dev/null`
6191 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
6193 found_so="$dir/$libname$shrext.$ver"
6196 eval library_names=\"$acl_library_names_spec\"
6197 for f in $library_names; do
6198 if test -f "$dir/$f"; then
6207 if test "X$found_dir" = "X"; then
6208 if test -f "$dir/$libname.$acl_libext"; then
6210 found_a="$dir/$libname.$acl_libext"
6213 if test "X$found_dir" != "X"; then
6214 if test -f "$dir/$libname.la"; then
6215 found_la="$dir/$libname.la"
6219 if test "X$found_dir" = "X"; then
6220 for x in $LDFLAGS $LTLIBINTL; do
6222 acl_save_prefix="$prefix"
6223 prefix="$acl_final_prefix"
6224 acl_save_exec_prefix="$exec_prefix"
6225 exec_prefix="$acl_final_exec_prefix"
6227 exec_prefix="$acl_save_exec_prefix"
6228 prefix="$acl_save_prefix"
6232 dir=`echo "X$x" | sed -e 's/^X-L//'`
6233 if test -n "$acl_shlibext"; then
6234 if test -f "$dir/$libname$shrext"; then
6236 found_so="$dir/$libname$shrext"
6238 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
6239 ver=`(cd "$dir" && \
6240 for f in "$libname$shrext".*; do echo "$f"; done \
6241 | sed -e "s,^$libname$shrext\\\\.,," \
6242 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
6243 | sed 1q ) 2>/dev/null`
6244 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
6246 found_so="$dir/$libname$shrext.$ver"
6249 eval library_names=\"$acl_library_names_spec\"
6250 for f in $library_names; do
6251 if test -f "$dir/$f"; then
6260 if test "X$found_dir" = "X"; then
6261 if test -f "$dir/$libname.$acl_libext"; then
6263 found_a="$dir/$libname.$acl_libext"
6266 if test "X$found_dir" != "X"; then
6267 if test -f "$dir/$libname.la"; then
6268 found_la="$dir/$libname.la"
6273 if test "X$found_dir" != "X"; then
6278 if test "X$found_dir" != "X"; then
6279 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
6280 if test "X$found_so" != "X"; then
6281 if test "$enable_rpath" = no \
6282 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
6283 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
6284 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6287 for x in $ltrpathdirs; do
6288 if test "X$x" = "X$found_dir"; then
6293 if test -z "$haveit"; then
6294 ltrpathdirs="$ltrpathdirs $found_dir"
6296 if test "$acl_hardcode_direct" = yes; then
6297 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6299 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
6300 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6302 for x in $rpathdirs; do
6303 if test "X$x" = "X$found_dir"; then
6308 if test -z "$haveit"; then
6309 rpathdirs="$rpathdirs $found_dir"
6313 for x in $LDFLAGS $LIBINTL; do
6315 acl_save_prefix="$prefix"
6316 prefix="$acl_final_prefix"
6317 acl_save_exec_prefix="$exec_prefix"
6318 exec_prefix="$acl_final_exec_prefix"
6320 exec_prefix="$acl_save_exec_prefix"
6321 prefix="$acl_save_prefix"
6323 if test "X$x" = "X-L$found_dir"; then
6328 if test -z "$haveit"; then
6329 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
6331 if test "$acl_hardcode_minus_L" != no; then
6332 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6334 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
6340 if test "X$found_a" != "X"; then
6341 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
6343 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
6346 additional_includedir=
6347 case "$found_dir" in
6348 */$acl_libdirstem | */$acl_libdirstem/)
6349 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
6350 if test "$name" = 'intl'; then
6351 LIBINTL_PREFIX="$basedir"
6353 additional_includedir="$basedir/include"
6355 */$acl_libdirstem2 | */$acl_libdirstem2/)
6356 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
6357 if test "$name" = 'intl'; then
6358 LIBINTL_PREFIX="$basedir"
6360 additional_includedir="$basedir/include"
6363 if test "X$additional_includedir" != "X"; then
6364 if test "X$additional_includedir" != "X/usr/include"; then
6366 if test "X$additional_includedir" = "X/usr/local/include"; then
6367 if test -n "$GCC"; then
6369 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6373 if test -z "$haveit"; then
6374 for x in $CPPFLAGS $INCINTL; do
6376 acl_save_prefix="$prefix"
6377 prefix="$acl_final_prefix"
6378 acl_save_exec_prefix="$exec_prefix"
6379 exec_prefix="$acl_final_exec_prefix"
6381 exec_prefix="$acl_save_exec_prefix"
6382 prefix="$acl_save_prefix"
6384 if test "X$x" = "X-I$additional_includedir"; then
6389 if test -z "$haveit"; then
6390 if test -d "$additional_includedir"; then
6391 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
6397 if test -n "$found_la"; then
6398 save_libdir="$libdir"
6400 */* | *\\*) . "$found_la" ;;
6401 *) . "./$found_la" ;;
6403 libdir="$save_libdir"
6404 for dep in $dependency_libs; do
6407 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
6408 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
6409 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
6411 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
6412 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
6413 if test -n "$GCC"; then
6415 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6419 if test -z "$haveit"; then
6421 for x in $LDFLAGS $LIBINTL; do
6423 acl_save_prefix="$prefix"
6424 prefix="$acl_final_prefix"
6425 acl_save_exec_prefix="$exec_prefix"
6426 exec_prefix="$acl_final_exec_prefix"
6428 exec_prefix="$acl_save_exec_prefix"
6429 prefix="$acl_save_prefix"
6431 if test "X$x" = "X-L$additional_libdir"; then
6436 if test -z "$haveit"; then
6437 if test -d "$additional_libdir"; then
6438 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
6442 for x in $LDFLAGS $LTLIBINTL; do
6444 acl_save_prefix="$prefix"
6445 prefix="$acl_final_prefix"
6446 acl_save_exec_prefix="$exec_prefix"
6447 exec_prefix="$acl_final_exec_prefix"
6449 exec_prefix="$acl_save_exec_prefix"
6450 prefix="$acl_save_prefix"
6452 if test "X$x" = "X-L$additional_libdir"; then
6457 if test -z "$haveit"; then
6458 if test -d "$additional_libdir"; then
6459 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
6466 dir=`echo "X$dep" | sed -e 's/^X-R//'`
6467 if test "$enable_rpath" != no; then
6469 for x in $rpathdirs; do
6470 if test "X$x" = "X$dir"; then
6475 if test -z "$haveit"; then
6476 rpathdirs="$rpathdirs $dir"
6479 for x in $ltrpathdirs; do
6480 if test "X$x" = "X$dir"; then
6485 if test -z "$haveit"; then
6486 ltrpathdirs="$ltrpathdirs $dir"
6491 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
6494 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
6497 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
6498 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
6504 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
6505 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
6511 if test "X$rpathdirs" != "X"; then
6512 if test -n "$acl_hardcode_libdir_separator"; then
6514 for found_dir in $rpathdirs; do
6515 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
6517 acl_save_libdir="$libdir"
6519 eval flag=\"$acl_hardcode_libdir_flag_spec\"
6520 libdir="$acl_save_libdir"
6521 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
6523 for found_dir in $rpathdirs; do
6524 acl_save_libdir="$libdir"
6526 eval flag=\"$acl_hardcode_libdir_flag_spec\"
6527 libdir="$acl_save_libdir"
6528 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
6532 if test "X$ltrpathdirs" != "X"; then
6533 for found_dir in $ltrpathdirs; do
6534 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
6543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
6544 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
6545 if eval \${$gt_func_gnugettext_libintl+:} false; then :
6546 $as_echo_n "(cached) " >&6
6548 gt_save_CPPFLAGS="$CPPFLAGS"
6549 CPPFLAGS="$CPPFLAGS $INCINTL"
6550 gt_save_LIBS="$LIBS"
6551 LIBS="$LIBS $LIBINTL"
6552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6553 /* end confdefs.h. */
6554 #include <libintl.h>
6555 $gt_revision_test_code
6556 extern int _nl_msg_cat_cntr;
6561 const char *_nl_expand_alias (const char *);
6565 bindtextdomain ("", "");
6566 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
6571 if ac_fn_c_try_link "$LINENO"; then :
6572 eval "$gt_func_gnugettext_libintl=yes"
6574 eval "$gt_func_gnugettext_libintl=no"
6576 rm -f core conftest.err conftest.$ac_objext \
6577 conftest$ac_exeext conftest.$ac_ext
6578 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
6579 LIBS="$LIBS $LIBICONV"
6580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6581 /* end confdefs.h. */
6582 #include <libintl.h>
6583 $gt_revision_test_code
6584 extern int _nl_msg_cat_cntr;
6589 const char *_nl_expand_alias (const char *);
6593 bindtextdomain ("", "");
6594 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
6599 if ac_fn_c_try_link "$LINENO"; then :
6600 LIBINTL="$LIBINTL $LIBICONV"
6601 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
6602 eval "$gt_func_gnugettext_libintl=yes"
6605 rm -f core conftest.err conftest.$ac_objext \
6606 conftest$ac_exeext conftest.$ac_ext
6608 CPPFLAGS="$gt_save_CPPFLAGS"
6609 LIBS="$gt_save_LIBS"
6611 eval ac_res=\$$gt_func_gnugettext_libintl
6612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6613 $as_echo "$ac_res" >&6; }
6616 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
6617 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
6618 && test "$PACKAGE" != gettext-runtime \
6619 && test "$PACKAGE" != gettext-tools; }; then
6620 gt_use_preinstalled_gnugettext=yes
6629 if test -n "$INTL_MACOSX_LIBS"; then
6630 if test "$gt_use_preinstalled_gnugettext" = "yes" \
6631 || test "$nls_cv_use_gnu_gettext" = "yes"; then
6632 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
6633 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
6637 if test "$gt_use_preinstalled_gnugettext" = "yes" \
6638 || test "$nls_cv_use_gnu_gettext" = "yes"; then
6640 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
6647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
6648 $as_echo_n "checking whether to use NLS... " >&6; }
6649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
6650 $as_echo "$USE_NLS" >&6; }
6651 if test "$USE_NLS" = "yes"; then
6652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
6653 $as_echo_n "checking where the gettext function comes from... " >&6; }
6654 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
6655 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
6656 gt_source="external libintl"
6661 gt_source="included intl directory"
6663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
6664 $as_echo "$gt_source" >&6; }
6667 if test "$USE_NLS" = "yes"; then
6669 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
6670 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
6671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
6672 $as_echo_n "checking how to link with libintl... " >&6; }
6673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
6674 $as_echo "$LIBINTL" >&6; }
6676 for element in $INCINTL; do
6678 for x in $CPPFLAGS; do
6680 acl_save_prefix="$prefix"
6681 prefix="$acl_final_prefix"
6682 acl_save_exec_prefix="$exec_prefix"
6683 exec_prefix="$acl_final_exec_prefix"
6685 exec_prefix="$acl_save_exec_prefix"
6686 prefix="$acl_save_prefix"
6688 if test "X$x" = "X$element"; then
6693 if test -z "$haveit"; then
6694 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
6701 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
6704 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
6721 # This test must come as early as possible after the compiler configuration
6722 # tests, because the choice of the file model can (in principle) affect
6723 # whether functions and headers are available, whether they work, etc.
6724 # Check whether --enable-largefile was given.
6725 if test "${enable_largefile+set}" = set; then :
6726 enableval=$enable_largefile;
6729 if test "$enable_largefile" != no; then
6731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
6732 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
6733 if ${ac_cv_sys_largefile_CC+:} false; then :
6734 $as_echo_n "(cached) " >&6
6736 ac_cv_sys_largefile_CC=no
6737 if test "$GCC" != yes; then
6740 # IRIX 6.2 and later do not support large files by default,
6741 # so use the C compiler's -n32 option if that helps.
6742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6743 /* end confdefs.h. */
6744 #include <sys/types.h>
6745 /* Check that off_t can represent 2**63 - 1 correctly.
6746 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6747 since some C++ compilers masquerading as C compilers
6748 incorrectly reject 9223372036854775807. */
6749 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6750 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6751 && LARGE_OFF_T % 2147483647 == 1)
6761 if ac_fn_c_try_compile "$LINENO"; then :
6764 rm -f core conftest.err conftest.$ac_objext
6766 if ac_fn_c_try_compile "$LINENO"; then :
6767 ac_cv_sys_largefile_CC=' -n32'; break
6769 rm -f core conftest.err conftest.$ac_objext
6773 rm -f conftest.$ac_ext
6776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
6777 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
6778 if test "$ac_cv_sys_largefile_CC" != no; then
6779 CC=$CC$ac_cv_sys_largefile_CC
6782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6783 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6784 if ${ac_cv_sys_file_offset_bits+:} false; then :
6785 $as_echo_n "(cached) " >&6
6788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6789 /* end confdefs.h. */
6790 #include <sys/types.h>
6791 /* Check that off_t can represent 2**63 - 1 correctly.
6792 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6793 since some C++ compilers masquerading as C compilers
6794 incorrectly reject 9223372036854775807. */
6795 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6796 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6797 && LARGE_OFF_T % 2147483647 == 1)
6807 if ac_fn_c_try_compile "$LINENO"; then :
6808 ac_cv_sys_file_offset_bits=no; break
6810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6812 /* end confdefs.h. */
6813 #define _FILE_OFFSET_BITS 64
6814 #include <sys/types.h>
6815 /* Check that off_t can represent 2**63 - 1 correctly.
6816 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6817 since some C++ compilers masquerading as C compilers
6818 incorrectly reject 9223372036854775807. */
6819 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6820 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6821 && LARGE_OFF_T % 2147483647 == 1)
6831 if ac_fn_c_try_compile "$LINENO"; then :
6832 ac_cv_sys_file_offset_bits=64; break
6834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6835 ac_cv_sys_file_offset_bits=unknown
6839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
6840 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6841 case $ac_cv_sys_file_offset_bits in #(
6844 cat >>confdefs.h <<_ACEOF
6845 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6850 if test $ac_cv_sys_file_offset_bits = unknown; then
6851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
6852 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6853 if ${ac_cv_sys_large_files+:} false; then :
6854 $as_echo_n "(cached) " >&6
6857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6858 /* end confdefs.h. */
6859 #include <sys/types.h>
6860 /* Check that off_t can represent 2**63 - 1 correctly.
6861 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6862 since some C++ compilers masquerading as C compilers
6863 incorrectly reject 9223372036854775807. */
6864 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6865 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6866 && LARGE_OFF_T % 2147483647 == 1)
6876 if ac_fn_c_try_compile "$LINENO"; then :
6877 ac_cv_sys_large_files=no; break
6879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6881 /* end confdefs.h. */
6882 #define _LARGE_FILES 1
6883 #include <sys/types.h>
6884 /* Check that off_t can represent 2**63 - 1 correctly.
6885 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6886 since some C++ compilers masquerading as C compilers
6887 incorrectly reject 9223372036854775807. */
6888 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6889 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6890 && LARGE_OFF_T % 2147483647 == 1)
6900 if ac_fn_c_try_compile "$LINENO"; then :
6901 ac_cv_sys_large_files=1; break
6903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6904 ac_cv_sys_large_files=unknown
6908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
6909 $as_echo "$ac_cv_sys_large_files" >&6; }
6910 case $ac_cv_sys_large_files in #(
6913 cat >>confdefs.h <<_ACEOF
6914 #define _LARGE_FILES $ac_cv_sys_large_files
6925 # Checks for libraries.
6926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getpwnam" >&5
6927 $as_echo_n "checking for library containing getpwnam... " >&6; }
6928 if ${ac_cv_search_getpwnam+:} false; then :
6929 $as_echo_n "(cached) " >&6
6931 ac_func_search_save_LIBS=$LIBS
6932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6933 /* end confdefs.h. */
6935 /* Override any GCC internal prototype to avoid an error.
6936 Use char because int might match the return type of a GCC
6937 builtin and then its argument prototype would still apply. */
6950 for ac_lib in '' sun; do
6951 if test -z "$ac_lib"; then
6952 ac_res="none required"
6955 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6957 if ac_fn_c_try_link "$LINENO"; then :
6958 ac_cv_search_getpwnam=$ac_res
6960 rm -f core conftest.err conftest.$ac_objext \
6962 if ${ac_cv_search_getpwnam+:} false; then :
6966 if ${ac_cv_search_getpwnam+:} false; then :
6969 ac_cv_search_getpwnam=no
6972 LIBS=$ac_func_search_save_LIBS
6974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getpwnam" >&5
6975 $as_echo "$ac_cv_search_getpwnam" >&6; }
6976 ac_res=$ac_cv_search_getpwnam
6977 if test "$ac_res" != no; then :
6978 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6983 # Checks for header files.
6984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6985 $as_echo_n "checking for ANSI C header files... " >&6; }
6986 if ${ac_cv_header_stdc+:} false; then :
6987 $as_echo_n "(cached) " >&6
6989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6990 /* end confdefs.h. */
7004 if ac_fn_c_try_compile "$LINENO"; then :
7005 ac_cv_header_stdc=yes
7007 ac_cv_header_stdc=no
7009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7011 if test $ac_cv_header_stdc = yes; then
7012 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7014 /* end confdefs.h. */
7018 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7019 $EGREP "memchr" >/dev/null 2>&1; then :
7022 ac_cv_header_stdc=no
7028 if test $ac_cv_header_stdc = yes; then
7029 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7031 /* end confdefs.h. */
7035 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7036 $EGREP "free" >/dev/null 2>&1; then :
7039 ac_cv_header_stdc=no
7045 if test $ac_cv_header_stdc = yes; then
7046 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7047 if test "$cross_compiling" = yes; then :
7050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7051 /* end confdefs.h. */
7054 #if ((' ' & 0x0FF) == 0x020)
7055 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7056 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7058 # define ISLOWER(c) \
7059 (('a' <= (c) && (c) <= 'i') \
7060 || ('j' <= (c) && (c) <= 'r') \
7061 || ('s' <= (c) && (c) <= 'z'))
7062 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7065 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7070 for (i = 0; i < 256; i++)
7071 if (XOR (islower (i), ISLOWER (i))
7072 || toupper (i) != TOUPPER (i))
7077 if ac_fn_c_try_run "$LINENO"; then :
7080 ac_cv_header_stdc=no
7082 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7083 conftest.$ac_objext conftest.beam conftest.$ac_ext
7088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7089 $as_echo "$ac_cv_header_stdc" >&6; }
7090 if test $ac_cv_header_stdc = yes; then
7092 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7097 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
7098 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
7099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
7100 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
7101 if eval \${$as_ac_Header+:} false; then :
7102 $as_echo_n "(cached) " >&6
7104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7105 /* end confdefs.h. */
7106 #include <sys/types.h>
7118 if ac_fn_c_try_compile "$LINENO"; then :
7119 eval "$as_ac_Header=yes"
7121 eval "$as_ac_Header=no"
7123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7125 eval ac_res=\$$as_ac_Header
7126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7127 $as_echo "$ac_res" >&6; }
7128 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7129 cat >>confdefs.h <<_ACEOF
7130 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
7133 ac_header_dirent=$ac_hdr; break
7137 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
7138 if test $ac_header_dirent = dirent.h; then
7139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
7140 $as_echo_n "checking for library containing opendir... " >&6; }
7141 if ${ac_cv_search_opendir+:} false; then :
7142 $as_echo_n "(cached) " >&6
7144 ac_func_search_save_LIBS=$LIBS
7145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7146 /* end confdefs.h. */
7148 /* Override any GCC internal prototype to avoid an error.
7149 Use char because int might match the return type of a GCC
7150 builtin and then its argument prototype would still apply. */
7163 for ac_lib in '' dir; do
7164 if test -z "$ac_lib"; then
7165 ac_res="none required"
7168 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7170 if ac_fn_c_try_link "$LINENO"; then :
7171 ac_cv_search_opendir=$ac_res
7173 rm -f core conftest.err conftest.$ac_objext \
7175 if ${ac_cv_search_opendir+:} false; then :
7179 if ${ac_cv_search_opendir+:} false; then :
7182 ac_cv_search_opendir=no
7185 LIBS=$ac_func_search_save_LIBS
7187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
7188 $as_echo "$ac_cv_search_opendir" >&6; }
7189 ac_res=$ac_cv_search_opendir
7190 if test "$ac_res" != no; then :
7191 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
7197 $as_echo_n "checking for library containing opendir... " >&6; }
7198 if ${ac_cv_search_opendir+:} false; then :
7199 $as_echo_n "(cached) " >&6
7201 ac_func_search_save_LIBS=$LIBS
7202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7203 /* end confdefs.h. */
7205 /* Override any GCC internal prototype to avoid an error.
7206 Use char because int might match the return type of a GCC
7207 builtin and then its argument prototype would still apply. */
7220 for ac_lib in '' x; do
7221 if test -z "$ac_lib"; then
7222 ac_res="none required"
7225 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7227 if ac_fn_c_try_link "$LINENO"; then :
7228 ac_cv_search_opendir=$ac_res
7230 rm -f core conftest.err conftest.$ac_objext \
7232 if ${ac_cv_search_opendir+:} false; then :
7236 if ${ac_cv_search_opendir+:} false; then :
7239 ac_cv_search_opendir=no
7242 LIBS=$ac_func_search_save_LIBS
7244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
7245 $as_echo "$ac_cv_search_opendir" >&6; }
7246 ac_res=$ac_cv_search_opendir
7247 if test "$ac_res" != no; then :
7248 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
7255 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
7256 if ${ac_cv_header_stat_broken+:} false; then :
7257 $as_echo_n "(cached) " >&6
7259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7260 /* end confdefs.h. */
7261 #include <sys/types.h>
7262 #include <sys/stat.h>
7264 #if defined S_ISBLK && defined S_IFDIR
7265 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
7268 #if defined S_ISBLK && defined S_IFCHR
7269 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
7272 #if defined S_ISLNK && defined S_IFREG
7273 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
7276 #if defined S_ISSOCK && defined S_IFREG
7277 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
7281 if ac_fn_c_try_compile "$LINENO"; then :
7282 ac_cv_header_stat_broken=no
7284 ac_cv_header_stat_broken=yes
7286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
7289 $as_echo "$ac_cv_header_stat_broken" >&6; }
7290 if test $ac_cv_header_stat_broken = yes; then
7292 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
7296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
7297 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
7298 if ${ac_cv_header_time+:} false; then :
7299 $as_echo_n "(cached) " >&6
7301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7302 /* end confdefs.h. */
7303 #include <sys/types.h>
7304 #include <sys/time.h>
7310 if ((struct tm *) 0)
7316 if ac_fn_c_try_compile "$LINENO"; then :
7317 ac_cv_header_time=yes
7319 ac_cv_header_time=no
7321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
7324 $as_echo "$ac_cv_header_time" >&6; }
7325 if test $ac_cv_header_time = yes; then
7327 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
7331 for ac_header in stdlib.h locale.h unistd.h limits.h fcntl.h string.h \
7332 memory.h sys/param.h sys/resource.h sys/time.h sys/timeb.h
7334 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7335 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7336 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7337 cat >>confdefs.h <<_ACEOF
7338 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7346 if test "x$CC" != xcc; then
7347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
7348 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
7350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
7351 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
7353 set dummy $CC; ac_cc=`$as_echo "$2" |
7354 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
7355 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
7356 $as_echo_n "(cached) " >&6
7358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7359 /* end confdefs.h. */
7369 # Make sure it works both with $CC and with simple cc.
7370 # We do the test twice because some compilers refuse to overwrite an
7371 # existing .o file with -o, though they will create one.
7372 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7374 if { { case "(($ac_try" in
7375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7376 *) ac_try_echo=$ac_try;;
7378 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7379 $as_echo "$ac_try_echo"; } >&5
7380 (eval "$ac_try") 2>&5
7382 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7383 test $ac_status = 0; } &&
7384 test -f conftest2.$ac_objext && { { case "(($ac_try" in
7385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7386 *) ac_try_echo=$ac_try;;
7388 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7389 $as_echo "$ac_try_echo"; } >&5
7390 (eval "$ac_try") 2>&5
7392 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7393 test $ac_status = 0; };
7395 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
7396 if test "x$CC" != xcc; then
7397 # Test first that cc exists at all.
7398 if { ac_try='cc -c conftest.$ac_ext >&5'
7399 { { case "(($ac_try" in
7400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7401 *) ac_try_echo=$ac_try;;
7403 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7404 $as_echo "$ac_try_echo"; } >&5
7405 (eval "$ac_try") 2>&5
7407 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7408 test $ac_status = 0; }; }; then
7409 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7411 if { { case "(($ac_try" in
7412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7413 *) ac_try_echo=$ac_try;;
7415 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7416 $as_echo "$ac_try_echo"; } >&5
7417 (eval "$ac_try") 2>&5
7419 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7420 test $ac_status = 0; } &&
7421 test -f conftest2.$ac_objext && { { case "(($ac_try" in
7422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7423 *) ac_try_echo=$ac_try;;
7425 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7426 $as_echo "$ac_try_echo"; } >&5
7427 (eval "$ac_try") 2>&5
7429 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7430 test $ac_status = 0; };
7435 # cc exists but doesn't like -o.
7436 eval ac_cv_prog_cc_${ac_cc}_c_o=no
7441 eval ac_cv_prog_cc_${ac_cc}_c_o=no
7443 rm -f core conftest*
7446 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
7447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7448 $as_echo "yes" >&6; }
7450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7451 $as_echo "no" >&6; }
7453 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
7457 # FIXME: we rely on the cache variable name because
7458 # there is no other way.
7460 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
7461 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
7462 if test "$am_t" != yes; then
7463 # Losing compiler, so override with the script.
7464 # FIXME: It is wrong to rewrite CC.
7465 # But if we don't then we get into trouble of one sort or another.
7466 # A longer-term fix would be to have automake use am__CC in this case,
7467 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
7468 CC="$am_aux_dir/compile $CC"
7472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
7473 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
7474 if ${ac_cv_c_const+:} false; then :
7475 $as_echo_n "(cached) " >&6
7477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7478 /* end confdefs.h. */
7485 /* Ultrix mips cc rejects this sort of thing. */
7486 typedef int charset[2];
7487 const charset cs = { 0, 0 };
7488 /* SunOS 4.1.1 cc rejects this. */
7489 char const *const *pcpcc;
7491 /* NEC SVR4.0.2 mips cc rejects this. */
7492 struct point {int x, y;};
7493 static struct point const zero = {0,0};
7494 /* AIX XL C 1.02.0.0 rejects this.
7495 It does not let you subtract one const X* pointer from another in
7496 an arm of an if-expression whose if-part is not a constant
7498 const char *g = "string";
7499 pcpcc = &g + (g ? g-g : 0);
7500 /* HPUX 7.0 cc rejects these. */
7502 ppc = (char**) pcpcc;
7503 pcpcc = (char const *const *) ppc;
7504 { /* SCO 3.2v4 cc rejects this sort of thing. */
7507 char const *s = 0 ? (char *) 0 : (char const *) 0;
7512 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7514 const int *foo = &x[0];
7517 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7518 typedef const int *iptr;
7522 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
7523 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7524 struct s { int j; const int *ap[3]; } bx;
7525 struct s *b = &bx; b->j = 5;
7527 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7531 return !cs[0] && !zero.x;
7538 if ac_fn_c_try_compile "$LINENO"; then :
7543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
7546 $as_echo "$ac_cv_c_const" >&6; }
7547 if test $ac_cv_c_const = no; then
7549 $as_echo "#define const /**/" >>confdefs.h
7553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
7554 $as_echo_n "checking return type of signal handlers... " >&6; }
7555 if ${ac_cv_type_signal+:} false; then :
7556 $as_echo_n "(cached) " >&6
7558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7559 /* end confdefs.h. */
7560 #include <sys/types.h>
7566 return *(signal (0, 0)) (0) == 1;
7571 if ac_fn_c_try_compile "$LINENO"; then :
7572 ac_cv_type_signal=int
7574 ac_cv_type_signal=void
7576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
7579 $as_echo "$ac_cv_type_signal" >&6; }
7581 cat >>confdefs.h <<_ACEOF
7582 #define RETSIGTYPE $ac_cv_type_signal
7586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
7587 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
7588 if ${ac_cv_type_uid_t+:} false; then :
7589 $as_echo_n "(cached) " >&6
7591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7592 /* end confdefs.h. */
7593 #include <sys/types.h>
7596 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7597 $EGREP "uid_t" >/dev/null 2>&1; then :
7598 ac_cv_type_uid_t=yes
7605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
7606 $as_echo "$ac_cv_type_uid_t" >&6; }
7607 if test $ac_cv_type_uid_t = no; then
7609 $as_echo "#define uid_t int" >>confdefs.h
7612 $as_echo "#define gid_t int" >>confdefs.h
7616 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
7617 if test "x$ac_cv_type_pid_t" = xyes; then :
7621 cat >>confdefs.h <<_ACEOF
7628 # Find some definition for uintmax_t
7630 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
7631 if test "x$ac_cv_type_uintmax_t" = xyes; then :
7634 uintmax_t="unsigned long"
7635 ac_fn_c_check_type "$LINENO" "unsigned long long" "ac_cv_type_unsigned_long_long" "$ac_includes_default"
7636 if test "x$ac_cv_type_unsigned_long_long" = xyes; then :
7637 uintmax_t="unsigned long long"
7641 cat >>confdefs.h <<_ACEOF
7642 #define uintmax_t $uintmax_t
7649 # Find out whether our struct stat returns nanosecond resolution timestamps.
7651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nanoseconds field of struct stat" >&5
7652 $as_echo_n "checking for nanoseconds field of struct stat... " >&6; }
7653 if ${ac_cv_struct_st_mtim_nsec+:} false; then :
7654 $as_echo_n "(cached) " >&6
7656 ac_save_CPPFLAGS="$CPPFLAGS"
7657 ac_cv_struct_st_mtim_nsec=no
7658 # st_mtim.tv_nsec -- the usual case
7659 # st_mtim._tv_nsec -- Solaris 2.6, if
7660 # (defined _XOPEN_SOURCE && _XOPEN_SOURCE_EXTENDED == 1
7661 # && !defined __EXTENSIONS__)
7662 # st_mtim.st__tim.tv_nsec -- UnixWare 2.1.2
7663 # st_mtime_n -- AIX 5.2 and above
7664 # st_mtimespec.tv_nsec -- Darwin (Mac OSX)
7665 for ac_val in st_mtim.tv_nsec st_mtim._tv_nsec st_mtim.st__tim.tv_nsec st_mtime_n st_mtimespec.tv_nsec; do
7666 CPPFLAGS="$ac_save_CPPFLAGS -DST_MTIM_NSEC=$ac_val"
7667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7668 /* end confdefs.h. */
7669 #include <sys/types.h>
7670 #include <sys/stat.h>
7675 struct stat s; s.ST_MTIM_NSEC;
7680 if ac_fn_c_try_compile "$LINENO"; then :
7681 ac_cv_struct_st_mtim_nsec=$ac_val; break
7683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7685 CPPFLAGS="$ac_save_CPPFLAGS"
7688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_st_mtim_nsec" >&5
7689 $as_echo "$ac_cv_struct_st_mtim_nsec" >&6; }
7691 if test $ac_cv_struct_st_mtim_nsec != no; then
7693 cat >>confdefs.h <<_ACEOF
7694 #define ST_MTIM_NSEC $ac_cv_struct_st_mtim_nsec
7700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use high resolution file timestamps" >&5
7701 $as_echo_n "checking whether to use high resolution file timestamps... " >&6; }
7702 if ${make_cv_file_timestamp_hi_res+:} false; then :
7703 $as_echo_n "(cached) " >&6
7705 make_cv_file_timestamp_hi_res=no
7706 if test "$ac_cv_struct_st_mtim_nsec" != no; then :
7707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7708 /* end confdefs.h. */
7711 # include <inttypes.h>
7716 char a[0x7fffffff < (uintmax_t)-1 >> 30 ? 1 : -1];
7721 if ac_fn_c_try_compile "$LINENO"; then :
7722 make_cv_file_timestamp_hi_res=yes
7724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $make_cv_file_timestamp_hi_res" >&5
7729 $as_echo "$make_cv_file_timestamp_hi_res" >&6; }
7730 if test "$make_cv_file_timestamp_hi_res" = yes; then :
7736 cat >>confdefs.h <<_ACEOF
7737 #define FILE_TIMESTAMP_HI_RES $val
7741 if test "$make_cv_file_timestamp_hi_res" = yes; then :
7742 # Solaris 2.5.1 needs -lposix4 to get the clock_gettime function.
7743 # Solaris 7 prefers the library name -lrt to the obsolescent name -lposix4.
7744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
7745 $as_echo_n "checking for library containing clock_gettime... " >&6; }
7746 if ${ac_cv_search_clock_gettime+:} false; then :
7747 $as_echo_n "(cached) " >&6
7749 ac_func_search_save_LIBS=$LIBS
7750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7751 /* end confdefs.h. */
7753 /* Override any GCC internal prototype to avoid an error.
7754 Use char because int might match the return type of a GCC
7755 builtin and then its argument prototype would still apply. */
7759 char clock_gettime ();
7763 return clock_gettime ();
7768 for ac_lib in '' rt posix4; do
7769 if test -z "$ac_lib"; then
7770 ac_res="none required"
7773 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7775 if ac_fn_c_try_link "$LINENO"; then :
7776 ac_cv_search_clock_gettime=$ac_res
7778 rm -f core conftest.err conftest.$ac_objext \
7780 if ${ac_cv_search_clock_gettime+:} false; then :
7784 if ${ac_cv_search_clock_gettime+:} false; then :
7787 ac_cv_search_clock_gettime=no
7790 LIBS=$ac_func_search_save_LIBS
7792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
7793 $as_echo "$ac_cv_search_clock_gettime" >&6; }
7794 ac_res=$ac_cv_search_clock_gettime
7795 if test "$ac_res" != no; then :
7796 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7800 if test "$ac_cv_search_clock_gettime" != no; then :
7802 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
7809 # Check for DOS-style pathnames.
7811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system uses MSDOS-style paths" >&5
7812 $as_echo_n "checking whether system uses MSDOS-style paths... " >&6; }
7813 if ${ac_cv_dos_paths+:} false; then :
7814 $as_echo_n "(cached) " >&6
7817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7818 /* end confdefs.h. */
7820 #if !defined _WIN32 && !defined __WIN32__ && !defined __MSDOS__ && !defined __EMX__ && !defined __MSYS__ && !defined __CYGWIN__
7821 neither MSDOS nor Windows nor OS2
7832 if ac_fn_c_try_compile "$LINENO"; then :
7837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_dos_paths" >&5
7840 $as_echo "$ac_cv_dos_paths" >&6; }
7842 if test x"$ac_cv_dos_paths" = xyes; then :
7844 cat >>confdefs.h <<_ACEOF
7845 #define HAVE_DOS_PATHS 1
7851 # See if we have a standard version of gettimeofday(). Since actual
7852 # implementations can differ, just make sure we have the most common
7854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for standard gettimeofday" >&5
7855 $as_echo_n "checking for standard gettimeofday... " >&6; }
7856 if ${ac_cv_func_gettimeofday+:} false; then :
7857 $as_echo_n "(cached) " >&6
7859 ac_cv_func_gettimeofday=no
7860 if test "$cross_compiling" = yes; then :
7861 ac_cv_func_gettimeofday="no (cross-compiling)"
7863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7864 /* end confdefs.h. */
7865 #include <sys/time.h>
7868 struct timeval t; t.tv_sec = -1; t.tv_usec = -1;
7869 exit (gettimeofday (&t, 0) != 0
7870 || t.tv_sec < 0 || t.tv_usec < 0);
7873 if ac_fn_c_try_run "$LINENO"; then :
7874 ac_cv_func_gettimeofday=yes
7876 ac_cv_func_gettimeofday=no
7878 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7879 conftest.$ac_objext conftest.beam conftest.$ac_ext
7883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_gettimeofday" >&5
7884 $as_echo "$ac_cv_func_gettimeofday" >&6; }
7885 if test "$ac_cv_func_gettimeofday" = yes; then :
7887 $as_echo "#define HAVE_GETTIMEOFDAY 1" >>confdefs.h
7892 for ac_func in strdup strndup mkstemp mktemp fdopen fileno \
7893 dup dup2 getcwd realpath sigsetmask sigaction \
7894 getgroups seteuid setegid setlinebuf setreuid setregid \
7895 getrlimit setrlimit setvbuf pipe strerror strsignal \
7896 lstat readlink atexit
7898 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7899 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7900 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7901 cat >>confdefs.h <<_ACEOF
7902 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7909 # We need to check declarations, not just existence, because on Tru64 this
7910 # function is not declared without special flags, which themselves cause
7911 # other problems. We'll just use our own.
7912 ac_fn_c_check_decl "$LINENO" "bsd_signal" "ac_cv_have_decl_bsd_signal" "#define _GNU_SOURCE 1
7915 if test "x$ac_cv_have_decl_bsd_signal" = xyes; then :
7921 cat >>confdefs.h <<_ACEOF
7922 #define HAVE_DECL_BSD_SIGNAL $ac_have_decl
7926 if ${ac_cv_func_setvbuf_reversed+:} false; then :
7927 $as_echo_n "(cached) " >&6
7929 ac_cv_func_setvbuf_reversed=no
7934 # Rumor has it that strcasecmp lives in -lresolv on some odd systems.
7935 # It doesn't hurt much to use our own if we can't find it so I don't
7936 # make the effort here.
7937 for ac_func in strcasecmp strncasecmp strcmpi strncmpi stricmp strnicmp
7939 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7940 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7941 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7942 cat >>confdefs.h <<_ACEOF
7943 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7950 # strcoll() is used by the GNU glob library
7951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strcoll" >&5
7952 $as_echo_n "checking for working strcoll... " >&6; }
7953 if ${ac_cv_func_strcoll_works+:} false; then :
7954 $as_echo_n "(cached) " >&6
7956 if test "$cross_compiling" = yes; then :
7957 ac_cv_func_strcoll_works=no
7959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7960 /* end confdefs.h. */
7961 $ac_includes_default
7965 return (strcoll ("abc", "def") >= 0 ||
7966 strcoll ("ABC", "DEF") >= 0 ||
7967 strcoll ("123", "456") >= 0)
7972 if ac_fn_c_try_run "$LINENO"; then :
7973 ac_cv_func_strcoll_works=yes
7975 ac_cv_func_strcoll_works=no
7977 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7978 conftest.$ac_objext conftest.beam conftest.$ac_ext
7982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strcoll_works" >&5
7983 $as_echo "$ac_cv_func_strcoll_works" >&6; }
7984 if test $ac_cv_func_strcoll_works = yes; then
7986 $as_echo "#define HAVE_STRCOLL 1" >>confdefs.h
7991 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
7992 if test "x$ac_cv_type_size_t" = xyes; then :
7996 cat >>confdefs.h <<_ACEOF
7997 #define size_t unsigned int
8002 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
8003 # for constant arguments. Useless!
8004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
8005 $as_echo_n "checking for working alloca.h... " >&6; }
8006 if ${ac_cv_working_alloca_h+:} false; then :
8007 $as_echo_n "(cached) " >&6
8009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8010 /* end confdefs.h. */
8015 char *p = (char *) alloca (2 * sizeof (int));
8021 if ac_fn_c_try_link "$LINENO"; then :
8022 ac_cv_working_alloca_h=yes
8024 ac_cv_working_alloca_h=no
8026 rm -f core conftest.err conftest.$ac_objext \
8027 conftest$ac_exeext conftest.$ac_ext
8029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
8030 $as_echo "$ac_cv_working_alloca_h" >&6; }
8031 if test $ac_cv_working_alloca_h = yes; then
8033 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
8037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
8038 $as_echo_n "checking for alloca... " >&6; }
8039 if ${ac_cv_func_alloca_works+:} false; then :
8040 $as_echo_n "(cached) " >&6
8042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8043 /* end confdefs.h. */
8045 # define alloca __builtin_alloca
8048 # include <malloc.h>
8049 # define alloca _alloca
8051 # ifdef HAVE_ALLOCA_H
8052 # include <alloca.h>
8057 # ifndef alloca /* predefined by HP cc +Olibcalls */
8058 void *alloca (size_t);
8068 char *p = (char *) alloca (1);
8074 if ac_fn_c_try_link "$LINENO"; then :
8075 ac_cv_func_alloca_works=yes
8077 ac_cv_func_alloca_works=no
8079 rm -f core conftest.err conftest.$ac_objext \
8080 conftest$ac_exeext conftest.$ac_ext
8082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
8083 $as_echo "$ac_cv_func_alloca_works" >&6; }
8085 if test $ac_cv_func_alloca_works = yes; then
8087 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
8090 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
8091 # that cause trouble. Some versions do not even contain alloca or
8092 # contain a buggy version. If you still want to use their alloca,
8093 # use ar to extract alloca.o from them instead of compiling alloca.c.
8095 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
8097 $as_echo "#define C_ALLOCA 1" >>confdefs.h
8100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
8101 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
8102 if ${ac_cv_os_cray+:} false; then :
8103 $as_echo_n "(cached) " >&6
8105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8106 /* end confdefs.h. */
8107 #if defined CRAY && ! defined CRAY2
8114 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8115 $EGREP "webecray" >/dev/null 2>&1; then :
8123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
8124 $as_echo "$ac_cv_os_cray" >&6; }
8125 if test $ac_cv_os_cray = yes; then
8126 for ac_func in _getb67 GETB67 getb67; do
8127 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8128 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8129 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8131 cat >>confdefs.h <<_ACEOF
8132 #define CRAY_STACKSEG_END $ac_func
8141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
8142 $as_echo_n "checking stack direction for C alloca... " >&6; }
8143 if ${ac_cv_c_stack_direction+:} false; then :
8144 $as_echo_n "(cached) " >&6
8146 if test "$cross_compiling" = yes; then :
8147 ac_cv_c_stack_direction=0
8149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8150 /* end confdefs.h. */
8151 $ac_includes_default
8153 find_stack_direction (int *addr, int depth)
8158 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
8159 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
8164 main (int argc, char **argv)
8166 return find_stack_direction (0, argc + !argv + 20) < 0;
8169 if ac_fn_c_try_run "$LINENO"; then :
8170 ac_cv_c_stack_direction=1
8172 ac_cv_c_stack_direction=-1
8174 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8175 conftest.$ac_objext conftest.beam conftest.$ac_ext
8179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
8180 $as_echo "$ac_cv_c_stack_direction" >&6; }
8181 cat >>confdefs.h <<_ACEOF
8182 #define STACK_DIRECTION $ac_cv_c_stack_direction
8188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
8189 $as_echo_n "checking whether closedir returns void... " >&6; }
8190 if ${ac_cv_func_closedir_void+:} false; then :
8191 $as_echo_n "(cached) " >&6
8193 if test "$cross_compiling" = yes; then :
8194 ac_cv_func_closedir_void=yes
8196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8197 /* end confdefs.h. */
8198 $ac_includes_default
8199 #include <$ac_header_dirent>
8207 return closedir (opendir (".")) != 0;
8212 if ac_fn_c_try_run "$LINENO"; then :
8213 ac_cv_func_closedir_void=no
8215 ac_cv_func_closedir_void=yes
8217 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8218 conftest.$ac_objext conftest.beam conftest.$ac_ext
8222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
8223 $as_echo "$ac_cv_func_closedir_void" >&6; }
8224 if test $ac_cv_func_closedir_void = yes; then
8226 $as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
8231 # See if the user wants to add (or not) GNU Guile support
8239 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
8240 if test -n "$ac_tool_prefix"; then
8241 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
8242 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
8243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8244 $as_echo_n "checking for $ac_word... " >&6; }
8245 if ${ac_cv_path_PKG_CONFIG+:} false; then :
8246 $as_echo_n "(cached) " >&6
8250 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8257 test -z "$as_dir" && as_dir=.
8258 for ac_exec_ext in '' $ac_executable_extensions; do
8259 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8260 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8261 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8271 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8272 if test -n "$PKG_CONFIG"; then
8273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8274 $as_echo "$PKG_CONFIG" >&6; }
8276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8277 $as_echo "no" >&6; }
8282 if test -z "$ac_cv_path_PKG_CONFIG"; then
8283 ac_pt_PKG_CONFIG=$PKG_CONFIG
8284 # Extract the first word of "pkg-config", so it can be a program name with args.
8285 set dummy pkg-config; ac_word=$2
8286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8287 $as_echo_n "checking for $ac_word... " >&6; }
8288 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
8289 $as_echo_n "(cached) " >&6
8291 case $ac_pt_PKG_CONFIG in
8293 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
8296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8300 test -z "$as_dir" && as_dir=.
8301 for ac_exec_ext in '' $ac_executable_extensions; do
8302 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8303 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8304 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8314 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
8315 if test -n "$ac_pt_PKG_CONFIG"; then
8316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
8317 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
8319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8320 $as_echo "no" >&6; }
8323 if test "x$ac_pt_PKG_CONFIG" = x; then
8326 case $cross_compiling:$ac_tool_warned in
8328 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8329 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8330 ac_tool_warned=yes ;;
8332 PKG_CONFIG=$ac_pt_PKG_CONFIG
8335 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
8339 if test -n "$PKG_CONFIG"; then
8340 _pkg_min_version=0.9.0
8341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
8342 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
8343 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
8344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8345 $as_echo "yes" >&6; }
8347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8348 $as_echo "no" >&6; }
8353 # Check whether --with-guile was given.
8354 if test "${with_guile+set}" = set; then :
8355 withval=$with_guile;
8359 # For some strange reason, at least on Ubuntu, each version of Guile
8360 # comes with it's own PC file so we have to specify them as individual
8362 if test "x$with_guile" != xno; then :
8365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GUILE" >&5
8366 $as_echo_n "checking for GUILE... " >&6; }
8368 if test -n "$GUILE_CFLAGS"; then
8369 pkg_cv_GUILE_CFLAGS="$GUILE_CFLAGS"
8370 elif test -n "$PKG_CONFIG"; then
8371 if test -n "$PKG_CONFIG" && \
8372 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"guile-2.0\""; } >&5
8373 ($PKG_CONFIG --exists --print-errors "guile-2.0") 2>&5
8375 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8376 test $ac_status = 0; }; then
8377 pkg_cv_GUILE_CFLAGS=`$PKG_CONFIG --cflags "guile-2.0" 2>/dev/null`
8378 test "x$?" != "x0" && pkg_failed=yes
8385 if test -n "$GUILE_LIBS"; then
8386 pkg_cv_GUILE_LIBS="$GUILE_LIBS"
8387 elif test -n "$PKG_CONFIG"; then
8388 if test -n "$PKG_CONFIG" && \
8389 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"guile-2.0\""; } >&5
8390 ($PKG_CONFIG --exists --print-errors "guile-2.0") 2>&5
8392 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8393 test $ac_status = 0; }; then
8394 pkg_cv_GUILE_LIBS=`$PKG_CONFIG --libs "guile-2.0" 2>/dev/null`
8395 test "x$?" != "x0" && pkg_failed=yes
8405 if test $pkg_failed = yes; then
8406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8407 $as_echo "no" >&6; }
8409 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8410 _pkg_short_errors_supported=yes
8412 _pkg_short_errors_supported=no
8414 if test $_pkg_short_errors_supported = yes; then
8415 GUILE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "guile-2.0" 2>&1`
8417 GUILE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "guile-2.0" 2>&1`
8419 # Put the nasty error message in config.log where it belongs
8420 echo "$GUILE_PKG_ERRORS" >&5
8424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GUILE" >&5
8425 $as_echo_n "checking for GUILE... " >&6; }
8427 if test -n "$GUILE_CFLAGS"; then
8428 pkg_cv_GUILE_CFLAGS="$GUILE_CFLAGS"
8429 elif test -n "$PKG_CONFIG"; then
8430 if test -n "$PKG_CONFIG" && \
8431 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"guile-1.8\""; } >&5
8432 ($PKG_CONFIG --exists --print-errors "guile-1.8") 2>&5
8434 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8435 test $ac_status = 0; }; then
8436 pkg_cv_GUILE_CFLAGS=`$PKG_CONFIG --cflags "guile-1.8" 2>/dev/null`
8437 test "x$?" != "x0" && pkg_failed=yes
8444 if test -n "$GUILE_LIBS"; then
8445 pkg_cv_GUILE_LIBS="$GUILE_LIBS"
8446 elif test -n "$PKG_CONFIG"; then
8447 if test -n "$PKG_CONFIG" && \
8448 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"guile-1.8\""; } >&5
8449 ($PKG_CONFIG --exists --print-errors "guile-1.8") 2>&5
8451 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8452 test $ac_status = 0; }; then
8453 pkg_cv_GUILE_LIBS=`$PKG_CONFIG --libs "guile-1.8" 2>/dev/null`
8454 test "x$?" != "x0" && pkg_failed=yes
8464 if test $pkg_failed = yes; then
8465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8466 $as_echo "no" >&6; }
8468 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8469 _pkg_short_errors_supported=yes
8471 _pkg_short_errors_supported=no
8473 if test $_pkg_short_errors_supported = yes; then
8474 GUILE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "guile-1.8" 2>&1`
8476 GUILE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "guile-1.8" 2>&1`
8478 # Put the nasty error message in config.log where it belongs
8479 echo "$GUILE_PKG_ERRORS" >&5
8482 elif test $pkg_failed = untried; then
8483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8484 $as_echo "no" >&6; }
8487 GUILE_CFLAGS=$pkg_cv_GUILE_CFLAGS
8488 GUILE_LIBS=$pkg_cv_GUILE_LIBS
8489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8490 $as_echo "yes" >&6; }
8493 elif test $pkg_failed = untried; then
8494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8495 $as_echo "no" >&6; }
8498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GUILE" >&5
8499 $as_echo_n "checking for GUILE... " >&6; }
8501 if test -n "$GUILE_CFLAGS"; then
8502 pkg_cv_GUILE_CFLAGS="$GUILE_CFLAGS"
8503 elif test -n "$PKG_CONFIG"; then
8504 if test -n "$PKG_CONFIG" && \
8505 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"guile-1.8\""; } >&5
8506 ($PKG_CONFIG --exists --print-errors "guile-1.8") 2>&5
8508 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8509 test $ac_status = 0; }; then
8510 pkg_cv_GUILE_CFLAGS=`$PKG_CONFIG --cflags "guile-1.8" 2>/dev/null`
8511 test "x$?" != "x0" && pkg_failed=yes
8518 if test -n "$GUILE_LIBS"; then
8519 pkg_cv_GUILE_LIBS="$GUILE_LIBS"
8520 elif test -n "$PKG_CONFIG"; then
8521 if test -n "$PKG_CONFIG" && \
8522 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"guile-1.8\""; } >&5
8523 ($PKG_CONFIG --exists --print-errors "guile-1.8") 2>&5
8525 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8526 test $ac_status = 0; }; then
8527 pkg_cv_GUILE_LIBS=`$PKG_CONFIG --libs "guile-1.8" 2>/dev/null`
8528 test "x$?" != "x0" && pkg_failed=yes
8538 if test $pkg_failed = yes; then
8539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8540 $as_echo "no" >&6; }
8542 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8543 _pkg_short_errors_supported=yes
8545 _pkg_short_errors_supported=no
8547 if test $_pkg_short_errors_supported = yes; then
8548 GUILE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "guile-1.8" 2>&1`
8550 GUILE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "guile-1.8" 2>&1`
8552 # Put the nasty error message in config.log where it belongs
8553 echo "$GUILE_PKG_ERRORS" >&5
8556 elif test $pkg_failed = untried; then
8557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8558 $as_echo "no" >&6; }
8561 GUILE_CFLAGS=$pkg_cv_GUILE_CFLAGS
8562 GUILE_LIBS=$pkg_cv_GUILE_LIBS
8563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8564 $as_echo "yes" >&6; }
8568 GUILE_CFLAGS=$pkg_cv_GUILE_CFLAGS
8569 GUILE_LIBS=$pkg_cv_GUILE_LIBS
8570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8571 $as_echo "yes" >&6; }
8577 if test "$have_guile" = yes; then :
8579 $as_echo "#define HAVE_GUILE 1" >>confdefs.h
8583 if test "$have_guile" = yes; then
8585 HAVE_GUILE_FALSE='#'
8592 ac_have_func=no # yes means we've found a way to get the load average.
8594 # Make sure getloadavg.c is where it belongs, at configure-time.
8595 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
8596 as_fn_error $? "$srcdir/$ac_config_libobj_dir/getloadavg.c is missing" "$LINENO" 5
8600 # Check for getloadavg, but be sure not to touch the cache variable.
8601 (ac_fn_c_check_func "$LINENO" "getloadavg" "ac_cv_func_getloadavg"
8602 if test "x$ac_cv_func_getloadavg" = xyes; then :
8607 ) && ac_have_func=yes
8609 # On HPUX9, an unprivileged user can get load averages through this function.
8610 for ac_func in pstat_getdynamic
8612 ac_fn_c_check_func "$LINENO" "pstat_getdynamic" "ac_cv_func_pstat_getdynamic"
8613 if test "x$ac_cv_func_pstat_getdynamic" = xyes; then :
8614 cat >>confdefs.h <<_ACEOF
8615 #define HAVE_PSTAT_GETDYNAMIC 1
8622 # Solaris has libkstat which does not require root.
8623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
8624 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
8625 if ${ac_cv_lib_kstat_kstat_open+:} false; then :
8626 $as_echo_n "(cached) " >&6
8628 ac_check_lib_save_LIBS=$LIBS
8629 LIBS="-lkstat $LIBS"
8630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8631 /* end confdefs.h. */
8633 /* Override any GCC internal prototype to avoid an error.
8634 Use char because int might match the return type of a GCC
8635 builtin and then its argument prototype would still apply. */
8643 return kstat_open ();
8648 if ac_fn_c_try_link "$LINENO"; then :
8649 ac_cv_lib_kstat_kstat_open=yes
8651 ac_cv_lib_kstat_kstat_open=no
8653 rm -f core conftest.err conftest.$ac_objext \
8654 conftest$ac_exeext conftest.$ac_ext
8655 LIBS=$ac_check_lib_save_LIBS
8657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
8658 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
8659 if test "x$ac_cv_lib_kstat_kstat_open" = xyes; then :
8660 cat >>confdefs.h <<_ACEOF
8661 #define HAVE_LIBKSTAT 1
8664 LIBS="-lkstat $LIBS"
8668 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
8670 # Some systems with -lutil have (and need) -lkvm as well, some do not.
8671 # On Solaris, -lkvm requires nlist from -lelf, so check that first
8672 # to get the right answer into the cache.
8673 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
8674 if test $ac_have_func = no; then
8675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_begin in -lelf" >&5
8676 $as_echo_n "checking for elf_begin in -lelf... " >&6; }
8677 if ${ac_cv_lib_elf_elf_begin+:} false; then :
8678 $as_echo_n "(cached) " >&6
8680 ac_check_lib_save_LIBS=$LIBS
8682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8683 /* end confdefs.h. */
8685 /* Override any GCC internal prototype to avoid an error.
8686 Use char because int might match the return type of a GCC
8687 builtin and then its argument prototype would still apply. */
8695 return elf_begin ();
8700 if ac_fn_c_try_link "$LINENO"; then :
8701 ac_cv_lib_elf_elf_begin=yes
8703 ac_cv_lib_elf_elf_begin=no
8705 rm -f core conftest.err conftest.$ac_objext \
8706 conftest$ac_exeext conftest.$ac_ext
8707 LIBS=$ac_check_lib_save_LIBS
8709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_begin" >&5
8710 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
8711 if test "x$ac_cv_lib_elf_elf_begin" = xyes; then :
8716 if test $ac_have_func = no; then
8717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kvm_open in -lkvm" >&5
8718 $as_echo_n "checking for kvm_open in -lkvm... " >&6; }
8719 if ${ac_cv_lib_kvm_kvm_open+:} false; then :
8720 $as_echo_n "(cached) " >&6
8722 ac_check_lib_save_LIBS=$LIBS
8724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8725 /* end confdefs.h. */
8727 /* Override any GCC internal prototype to avoid an error.
8728 Use char because int might match the return type of a GCC
8729 builtin and then its argument prototype would still apply. */
8742 if ac_fn_c_try_link "$LINENO"; then :
8743 ac_cv_lib_kvm_kvm_open=yes
8745 ac_cv_lib_kvm_kvm_open=no
8747 rm -f core conftest.err conftest.$ac_objext \
8748 conftest$ac_exeext conftest.$ac_ext
8749 LIBS=$ac_check_lib_save_LIBS
8751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_kvm_open" >&5
8752 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
8753 if test "x$ac_cv_lib_kvm_kvm_open" = xyes; then :
8757 # Check for the 4.4BSD definition of getloadavg.
8758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lutil" >&5
8759 $as_echo_n "checking for getloadavg in -lutil... " >&6; }
8760 if ${ac_cv_lib_util_getloadavg+:} false; then :
8761 $as_echo_n "(cached) " >&6
8763 ac_check_lib_save_LIBS=$LIBS
8765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8766 /* end confdefs.h. */
8768 /* Override any GCC internal prototype to avoid an error.
8769 Use char because int might match the return type of a GCC
8770 builtin and then its argument prototype would still apply. */
8778 return getloadavg ();
8783 if ac_fn_c_try_link "$LINENO"; then :
8784 ac_cv_lib_util_getloadavg=yes
8786 ac_cv_lib_util_getloadavg=no
8788 rm -f core conftest.err conftest.$ac_objext \
8789 conftest$ac_exeext conftest.$ac_ext
8790 LIBS=$ac_check_lib_save_LIBS
8792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_getloadavg" >&5
8793 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
8794 if test "x$ac_cv_lib_util_getloadavg" = xyes; then :
8795 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
8800 if test $ac_have_func = no; then
8801 # There is a commonly available library for RS/6000 AIX.
8802 # Since it is not a standard part of AIX, it might be installed locally.
8803 ac_getloadavg_LIBS=$LIBS
8804 LIBS="-L/usr/local/lib $LIBS"
8805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lgetloadavg" >&5
8806 $as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
8807 if ${ac_cv_lib_getloadavg_getloadavg+:} false; then :
8808 $as_echo_n "(cached) " >&6
8810 ac_check_lib_save_LIBS=$LIBS
8811 LIBS="-lgetloadavg $LIBS"
8812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8813 /* end confdefs.h. */
8815 /* Override any GCC internal prototype to avoid an error.
8816 Use char because int might match the return type of a GCC
8817 builtin and then its argument prototype would still apply. */
8825 return getloadavg ();
8830 if ac_fn_c_try_link "$LINENO"; then :
8831 ac_cv_lib_getloadavg_getloadavg=yes
8833 ac_cv_lib_getloadavg_getloadavg=no
8835 rm -f core conftest.err conftest.$ac_objext \
8836 conftest$ac_exeext conftest.$ac_ext
8837 LIBS=$ac_check_lib_save_LIBS
8839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_getloadavg_getloadavg" >&5
8840 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
8841 if test "x$ac_cv_lib_getloadavg_getloadavg" = xyes; then :
8842 LIBS="-lgetloadavg $LIBS"
8844 LIBS=$ac_getloadavg_LIBS
8849 # Make sure it is really in the library, if we think we found it,
8850 # otherwise set up the replacement function.
8851 for ac_func in getloadavg
8853 ac_fn_c_check_func "$LINENO" "getloadavg" "ac_cv_func_getloadavg"
8854 if test "x$ac_cv_func_getloadavg" = xyes; then :
8855 cat >>confdefs.h <<_ACEOF
8856 #define HAVE_GETLOADAVG 1
8860 case " $LIBOBJS " in
8861 *" getloadavg.$ac_objext "* ) ;;
8862 *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext"
8867 $as_echo "#define C_GETLOADAVG 1" >>confdefs.h
8869 # Figure out what our getloadavg.c needs.
8871 ac_fn_c_check_header_mongrel "$LINENO" "sys/dg_sys_info.h" "ac_cv_header_sys_dg_sys_info_h" "$ac_includes_default"
8872 if test "x$ac_cv_header_sys_dg_sys_info_h" = xyes; then :
8875 $as_echo "#define DGUX 1" >>confdefs.h
8877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dg_sys_info in -ldgc" >&5
8878 $as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
8879 if ${ac_cv_lib_dgc_dg_sys_info+:} false; then :
8880 $as_echo_n "(cached) " >&6
8882 ac_check_lib_save_LIBS=$LIBS
8884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8885 /* end confdefs.h. */
8887 /* Override any GCC internal prototype to avoid an error.
8888 Use char because int might match the return type of a GCC
8889 builtin and then its argument prototype would still apply. */
8893 char dg_sys_info ();
8897 return dg_sys_info ();
8902 if ac_fn_c_try_link "$LINENO"; then :
8903 ac_cv_lib_dgc_dg_sys_info=yes
8905 ac_cv_lib_dgc_dg_sys_info=no
8907 rm -f core conftest.err conftest.$ac_objext \
8908 conftest$ac_exeext conftest.$ac_ext
8909 LIBS=$ac_check_lib_save_LIBS
8911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dgc_dg_sys_info" >&5
8912 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
8913 if test "x$ac_cv_lib_dgc_dg_sys_info" = xyes; then :
8914 cat >>confdefs.h <<_ACEOF
8915 #define HAVE_LIBDGC 1
8926 ac_fn_c_check_header_mongrel "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
8927 if test "x$ac_cv_header_locale_h" = xyes; then :
8932 for ac_func in setlocale
8934 ac_fn_c_check_func "$LINENO" "setlocale" "ac_cv_func_setlocale"
8935 if test "x$ac_cv_func_setlocale" = xyes; then :
8936 cat >>confdefs.h <<_ACEOF
8937 #define HAVE_SETLOCALE 1
8944 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
8945 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
8946 # Irix 4.0.5F has the header but not the library.
8947 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes \
8948 && test "$ac_cv_lib_kvm_kvm_open" = yes; then
8951 $as_echo "#define SVR4 1" >>confdefs.h
8955 if test $ac_have_func = no; then
8956 ac_fn_c_check_header_mongrel "$LINENO" "inq_stats/cpustats.h" "ac_cv_header_inq_stats_cpustats_h" "$ac_includes_default"
8957 if test "x$ac_cv_header_inq_stats_cpustats_h" = xyes; then :
8960 $as_echo "#define UMAX 1" >>confdefs.h
8963 $as_echo "#define UMAX4_3 1" >>confdefs.h
8970 if test $ac_have_func = no; then
8971 ac_fn_c_check_header_mongrel "$LINENO" "sys/cpustats.h" "ac_cv_header_sys_cpustats_h" "$ac_includes_default"
8972 if test "x$ac_cv_header_sys_cpustats_h" = xyes; then :
8973 ac_have_func=yes; $as_echo "#define UMAX 1" >>confdefs.h
8980 if test $ac_have_func = no; then
8981 for ac_header in mach/mach.h
8983 ac_fn_c_check_header_mongrel "$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default"
8984 if test "x$ac_cv_header_mach_mach_h" = xyes; then :
8985 cat >>confdefs.h <<_ACEOF
8986 #define HAVE_MACH_MACH_H 1
8995 for ac_header in nlist.h
8997 ac_fn_c_check_header_mongrel "$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default"
8998 if test "x$ac_cv_header_nlist_h" = xyes; then :
8999 cat >>confdefs.h <<_ACEOF
9000 #define HAVE_NLIST_H 1
9002 ac_fn_c_check_member "$LINENO" "struct nlist" "n_un.n_name" "ac_cv_member_struct_nlist_n_un_n_name" "#include <nlist.h>
9004 if test "x$ac_cv_member_struct_nlist_n_un_n_name" = xyes; then :
9006 cat >>confdefs.h <<_ACEOF
9007 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
9011 $as_echo "#define NLIST_NAME_UNION 1" >>confdefs.h
9024 # Some definitions of getloadavg require that the program be installed setgid.
9025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getloadavg requires setgid" >&5
9026 $as_echo_n "checking whether getloadavg requires setgid... " >&6; }
9027 if ${ac_cv_func_getloadavg_setgid+:} false; then :
9028 $as_echo_n "(cached) " >&6
9030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9031 /* end confdefs.h. */
9032 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
9033 #ifdef LDAV_PRIVILEGED
9034 Yowza Am I SETGID yet
9037 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9038 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then :
9039 ac_cv_func_getloadavg_setgid=yes
9041 ac_cv_func_getloadavg_setgid=no
9046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getloadavg_setgid" >&5
9047 $as_echo "$ac_cv_func_getloadavg_setgid" >&6; }
9048 if test $ac_cv_func_getloadavg_setgid = yes; then
9051 $as_echo "#define GETLOADAVG_PRIVILEGED 1" >>confdefs.h
9057 if test $ac_cv_func_getloadavg_setgid = yes; then
9058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking group of /dev/kmem" >&5
9059 $as_echo_n "checking group of /dev/kmem... " >&6; }
9060 if ${ac_cv_group_kmem+:} false; then :
9061 $as_echo_n "(cached) " >&6
9063 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
9064 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
9065 # If we got an error (system does not support symlinks), try without -L.
9066 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
9067 ac_cv_group_kmem=`$as_echo "$ac_ls_output" \
9068 | sed -ne 's/[ ][ ]*/ /g;
9069 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
9073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_group_kmem" >&5
9074 $as_echo "$ac_cv_group_kmem" >&6; }
9075 KMEM_GROUP=$ac_cv_group_kmem
9077 if test "x$ac_save_LIBS" = x; then
9078 GETLOADAVG_LIBS=$LIBS
9080 GETLOADAVG_LIBS=`$as_echo "$LIBS" | sed "s|$ac_save_LIBS||"`
9086 # AC_FUNC_GETLOADAVG is documented to set the NLIST_STRUCT value, but it
9087 # doesn't. So, we will.
9089 if test "$ac_cv_header_nlist_h" = yes; then :
9090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9091 /* end confdefs.h. */
9097 nl.n_name = "string";
9103 if ac_fn_c_try_compile "$LINENO"; then :
9104 make_cv_nlist_struct=yes
9106 make_cv_nlist_struct=no
9108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9109 if test "$make_cv_nlist_struct" = yes; then :
9111 $as_echo "#define NLIST_STRUCT 1" >>confdefs.h
9118 ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "$ac_includes_default
9120 /* NetBSD declares sys_siglist in unistd.h. */
9122 # include <unistd.h>
9126 if test "x$ac_cv_have_decl_sys_siglist" = xyes; then :
9132 cat >>confdefs.h <<_ACEOF
9133 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
9135 ac_fn_c_check_decl "$LINENO" "_sys_siglist" "ac_cv_have_decl__sys_siglist" "$ac_includes_default
9137 /* NetBSD declares sys_siglist in unistd.h. */
9139 # include <unistd.h>
9143 if test "x$ac_cv_have_decl__sys_siglist" = xyes; then :
9149 cat >>confdefs.h <<_ACEOF
9150 #define HAVE_DECL__SYS_SIGLIST $ac_have_decl
9152 ac_fn_c_check_decl "$LINENO" "__sys_siglist" "ac_cv_have_decl___sys_siglist" "$ac_includes_default
9154 /* NetBSD declares sys_siglist in unistd.h. */
9156 # include <unistd.h>
9160 if test "x$ac_cv_have_decl___sys_siglist" = xyes; then :
9166 cat >>confdefs.h <<_ACEOF
9167 #define HAVE_DECL___SYS_SIGLIST $ac_have_decl
9172 # Check out the wait reality.
9173 for ac_header in sys/wait.h
9175 ac_fn_c_check_header_compile "$LINENO" "sys/wait.h" "ac_cv_header_sys_wait_h" "#include <sys/types.h>
9177 if test "x$ac_cv_header_sys_wait_h" = xyes; then :
9178 cat >>confdefs.h <<_ACEOF
9179 #define HAVE_SYS_WAIT_H 1
9186 for ac_func in waitpid wait3
9188 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9189 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9190 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9191 cat >>confdefs.h <<_ACEOF
9192 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for union wait" >&5
9199 $as_echo_n "checking for union wait... " >&6; }
9200 if ${make_cv_union_wait+:} false; then :
9201 $as_echo_n "(cached) " >&6
9203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9204 /* end confdefs.h. */
9205 #include <sys/types.h>
9206 #include <sys/wait.h>
9210 union wait status; int pid; pid = wait (&status);
9212 /* Some POSIXoid systems have both the new-style macros and the old
9213 union wait type, and they do not work together. If union wait
9214 conflicts with WEXITSTATUS et al, we don't want to use it at all. */
9215 if (WEXITSTATUS (status) != 0) pid = -1;
9217 /* If we have WEXITSTATUS and WTERMSIG, just use them on ints. */
9218 -- blow chunks here --
9222 /* Make sure union wait works with waitpid. */
9223 pid = waitpid (-1, &status, 0);
9230 if ac_fn_c_try_link "$LINENO"; then :
9231 make_cv_union_wait=yes
9233 make_cv_union_wait=no
9235 rm -f core conftest.err conftest.$ac_objext \
9236 conftest$ac_exeext conftest.$ac_ext
9239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $make_cv_union_wait" >&5
9240 $as_echo "$make_cv_union_wait" >&6; }
9241 if test "$make_cv_union_wait" = yes; then :
9243 $as_echo "#define HAVE_UNION_WAIT 1" >>confdefs.h
9249 # If we're building on Windows/DOS/OS/2, add some support for DOS drive specs.
9250 if test "$PATH_SEPARATOR" = ';'; then :
9252 $as_echo "#define HAVE_DOS_PATHS 1" >>confdefs.h
9257 # See if the user wants to use pmake's "customs" distributed build capability
9261 # Check whether --with-customs was given.
9262 if test "${with_customs+set}" = set; then :
9263 withval=$with_customs; case $withval in #(
9267 make_cppflags="$CPPFLAGS"
9272 CPPFLAGS="$CPPFLAGS -I$with_customs/include/customs"
9273 make_ldflags="$LDFLAGS -L$with_customs/lib" ;;
9277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for network libraries" >&5
9278 $as_echo_n "checking for network libraries... " >&6; }
9279 if ${cf_cv_netlibs+:} false; then :
9280 $as_echo_n "(cached) " >&6
9283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: working..." >&5
9284 $as_echo "working..." >&6; }
9287 for ac_func in gethostname
9289 ac_fn_c_check_func "$LINENO" "gethostname" "ac_cv_func_gethostname"
9290 if test "x$ac_cv_func_gethostname" = xyes; then :
9291 cat >>confdefs.h <<_ACEOF
9292 #define HAVE_GETHOSTNAME 1
9298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostname in -lnsl" >&5
9299 $as_echo_n "checking for gethostname in -lnsl... " >&6; }
9300 if ${ac_cv_lib_nsl_gethostname+:} false; then :
9301 $as_echo_n "(cached) " >&6
9303 ac_check_lib_save_LIBS=$LIBS
9304 LIBS="-lnsl $cf_cv_netlibs $LIBS"
9305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9306 /* end confdefs.h. */
9308 /* Override any GCC internal prototype to avoid an error.
9309 Use char because int might match the return type of a GCC
9310 builtin and then its argument prototype would still apply. */
9314 char gethostname ();
9318 return gethostname ();
9323 if ac_fn_c_try_link "$LINENO"; then :
9324 ac_cv_lib_nsl_gethostname=yes
9326 ac_cv_lib_nsl_gethostname=no
9328 rm -f core conftest.err conftest.$ac_objext \
9329 conftest$ac_exeext conftest.$ac_ext
9330 LIBS=$ac_check_lib_save_LIBS
9332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostname" >&5
9333 $as_echo "$ac_cv_lib_nsl_gethostname" >&6; }
9334 if test "x$ac_cv_lib_nsl_gethostname" = xyes; then :
9337 cf_tr_func=`echo gethostname | tr '[a-z]' '[A-Z]'`
9340 cat >>confdefs.h <<_ACEOF
9341 #define HAVE_$cf_tr_func 1
9344 ac_cv_func_gethostname=yes
9345 cf_cv_netlibs="-lnsl $cf_cv_netlibs"
9348 ac_cv_func_gethostname=unknown
9349 unset ac_cv_func_gethostname 2>/dev/null
9352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostname in -lsocket" >&5
9353 $as_echo_n "checking for gethostname in -lsocket... " >&6; }
9354 if ${ac_cv_lib_socket_gethostname+:} false; then :
9355 $as_echo_n "(cached) " >&6
9357 ac_check_lib_save_LIBS=$LIBS
9358 LIBS="-lsocket $cf_cv_netlibs $LIBS"
9359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9360 /* end confdefs.h. */
9362 /* Override any GCC internal prototype to avoid an error.
9363 Use char because int might match the return type of a GCC
9364 builtin and then its argument prototype would still apply. */
9368 char gethostname ();
9372 return gethostname ();
9377 if ac_fn_c_try_link "$LINENO"; then :
9378 ac_cv_lib_socket_gethostname=yes
9380 ac_cv_lib_socket_gethostname=no
9382 rm -f core conftest.err conftest.$ac_objext \
9383 conftest$ac_exeext conftest.$ac_ext
9384 LIBS=$ac_check_lib_save_LIBS
9386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_gethostname" >&5
9387 $as_echo "$ac_cv_lib_socket_gethostname" >&6; }
9388 if test "x$ac_cv_lib_socket_gethostname" = xyes; then :
9391 cf_tr_func=`echo gethostname | tr '[a-z]' '[A-Z]'`
9394 cat >>confdefs.h <<_ACEOF
9395 #define HAVE_$cf_tr_func 1
9398 ac_cv_func_gethostname=yes
9399 cf_cv_netlibs="-lsocket $cf_cv_netlibs"
9402 ac_cv_func_gethostname=unknown
9403 unset ac_cv_func_gethostname 2>/dev/null
9415 # FIXME: sequent needs this library (i.e., -lsocket -linet -lnsl), but
9416 # I don't know the entrypoints - 97/7/22 TD
9417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -linet" >&5
9418 $as_echo_n "checking for main in -linet... " >&6; }
9419 if ${ac_cv_lib_inet_main+:} false; then :
9420 $as_echo_n "(cached) " >&6
9422 ac_check_lib_save_LIBS=$LIBS
9424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9425 /* end confdefs.h. */
9436 if ac_fn_c_try_link "$LINENO"; then :
9437 ac_cv_lib_inet_main=yes
9439 ac_cv_lib_inet_main=no
9441 rm -f core conftest.err conftest.$ac_objext \
9442 conftest$ac_exeext conftest.$ac_ext
9443 LIBS=$ac_check_lib_save_LIBS
9445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_inet_main" >&5
9446 $as_echo "$ac_cv_lib_inet_main" >&6; }
9447 if test "x$ac_cv_lib_inet_main" = xyes; then :
9448 cf_cv_netlibs="-linet $cf_cv_netlibs"
9452 if test "$ac_cv_func_lsocket" != no ; then
9453 for ac_func in socket
9455 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
9456 if test "x$ac_cv_func_socket" = xyes; then :
9457 cat >>confdefs.h <<_ACEOF
9458 #define HAVE_SOCKET 1
9464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
9465 $as_echo_n "checking for socket in -lsocket... " >&6; }
9466 if ${ac_cv_lib_socket_socket+:} false; then :
9467 $as_echo_n "(cached) " >&6
9469 ac_check_lib_save_LIBS=$LIBS
9470 LIBS="-lsocket $cf_cv_netlibs $LIBS"
9471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9472 /* end confdefs.h. */
9474 /* Override any GCC internal prototype to avoid an error.
9475 Use char because int might match the return type of a GCC
9476 builtin and then its argument prototype would still apply. */
9489 if ac_fn_c_try_link "$LINENO"; then :
9490 ac_cv_lib_socket_socket=yes
9492 ac_cv_lib_socket_socket=no
9494 rm -f core conftest.err conftest.$ac_objext \
9495 conftest$ac_exeext conftest.$ac_ext
9496 LIBS=$ac_check_lib_save_LIBS
9498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
9499 $as_echo "$ac_cv_lib_socket_socket" >&6; }
9500 if test "x$ac_cv_lib_socket_socket" = xyes; then :
9503 cf_tr_func=`echo socket | tr '[a-z]' '[A-Z]'`
9506 cat >>confdefs.h <<_ACEOF
9507 #define HAVE_$cf_tr_func 1
9510 ac_cv_func_socket=yes
9511 cf_cv_netlibs="-lsocket $cf_cv_netlibs"
9514 ac_cv_func_socket=unknown
9515 unset ac_cv_func_socket 2>/dev/null
9518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lbsd" >&5
9519 $as_echo_n "checking for socket in -lbsd... " >&6; }
9520 if ${ac_cv_lib_bsd_socket+:} false; then :
9521 $as_echo_n "(cached) " >&6
9523 ac_check_lib_save_LIBS=$LIBS
9524 LIBS="-lbsd $cf_cv_netlibs $LIBS"
9525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9526 /* end confdefs.h. */
9528 /* Override any GCC internal prototype to avoid an error.
9529 Use char because int might match the return type of a GCC
9530 builtin and then its argument prototype would still apply. */
9543 if ac_fn_c_try_link "$LINENO"; then :
9544 ac_cv_lib_bsd_socket=yes
9546 ac_cv_lib_bsd_socket=no
9548 rm -f core conftest.err conftest.$ac_objext \
9549 conftest$ac_exeext conftest.$ac_ext
9550 LIBS=$ac_check_lib_save_LIBS
9552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_socket" >&5
9553 $as_echo "$ac_cv_lib_bsd_socket" >&6; }
9554 if test "x$ac_cv_lib_bsd_socket" = xyes; then :
9557 cf_tr_func=`echo socket | tr '[a-z]' '[A-Z]'`
9560 cat >>confdefs.h <<_ACEOF
9561 #define HAVE_$cf_tr_func 1
9564 ac_cv_func_socket=yes
9565 cf_cv_netlibs="-lbsd $cf_cv_netlibs"
9568 ac_cv_func_socket=unknown
9569 unset ac_cv_func_socket 2>/dev/null
9582 for ac_func in gethostbyname
9584 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
9585 if test "x$ac_cv_func_gethostbyname" = xyes; then :
9586 cat >>confdefs.h <<_ACEOF
9587 #define HAVE_GETHOSTBYNAME 1
9593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
9594 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
9595 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
9596 $as_echo_n "(cached) " >&6
9598 ac_check_lib_save_LIBS=$LIBS
9599 LIBS="-lnsl $cf_cv_netlibs $LIBS"
9600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9601 /* end confdefs.h. */
9603 /* Override any GCC internal prototype to avoid an error.
9604 Use char because int might match the return type of a GCC
9605 builtin and then its argument prototype would still apply. */
9609 char gethostbyname ();
9613 return gethostbyname ();
9618 if ac_fn_c_try_link "$LINENO"; then :
9619 ac_cv_lib_nsl_gethostbyname=yes
9621 ac_cv_lib_nsl_gethostbyname=no
9623 rm -f core conftest.err conftest.$ac_objext \
9624 conftest$ac_exeext conftest.$ac_ext
9625 LIBS=$ac_check_lib_save_LIBS
9627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
9628 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
9629 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
9632 cf_tr_func=`echo gethostbyname | tr '[a-z]' '[A-Z]'`
9635 cat >>confdefs.h <<_ACEOF
9636 #define HAVE_$cf_tr_func 1
9639 ac_cv_func_gethostbyname=yes
9640 cf_cv_netlibs="-lnsl $cf_cv_netlibs"
9643 ac_cv_func_gethostbyname=unknown
9644 unset ac_cv_func_gethostbyname 2>/dev/null
9655 LIBS="$LIBS $cf_cv_netlibs"
9656 test $cf_test_netlibs = no && echo "$cf_cv_netlibs" >&6
9658 ac_fn_c_check_header_mongrel "$LINENO" "customs.h" "ac_cv_header_customs_h" "$ac_includes_default"
9659 if test "x$ac_cv_header_customs_h" = xyes; then :
9662 LIBS="$LIBS -lcustoms" LDFLAGS="$make_ldflags"
9665 CPPFLAGS="$make_cppflags" make_badcust=yes
9675 # Tell automake about this, so it can include the right .c files.
9676 if test "$use_customs" = true; then
9678 USE_CUSTOMS_FALSE='#'
9680 USE_CUSTOMS_TRUE='#'
9685 # See if the user asked to handle case insensitive file systems.
9687 # Check whether --enable-case-insensitive-file-system was given.
9688 if test "${enable_case_insensitive_file_system+set}" = set; then :
9689 enableval=$enable_case_insensitive_file_system; if test "$enableval" = yes; then :
9690 $as_echo "#define HAVE_CASE_INSENSITIVE_FS 1" >>confdefs.h
9696 # See if we can handle the job server feature, and if the user wants it.
9697 # Check whether --enable-job-server was given.
9698 if test "${enable_job_server+set}" = set; then :
9699 enableval=$enable_job_server; make_cv_job_server="$enableval" user_job_server="$enableval"
9701 make_cv_job_server="yes"
9705 if test "$ac_cv_func_waitpid" = no && test "$ac_cv_func_wait3" = no; then :
9711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SA_RESTART" >&5
9712 $as_echo_n "checking for SA_RESTART... " >&6; }
9713 if ${make_cv_sa_restart+:} false; then :
9714 $as_echo_n "(cached) " >&6
9717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9718 /* end confdefs.h. */
9728 if ac_fn_c_try_compile "$LINENO"; then :
9729 make_cv_sa_restart=yes
9731 make_cv_sa_restart=no
9733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $make_cv_sa_restart" >&5
9736 $as_echo "$make_cv_sa_restart" >&6; }
9738 if test "$make_cv_sa_restart" != no; then :
9740 $as_echo "#define HAVE_SA_RESTART 1" >>confdefs.h
9745 # Only allow jobserver on systems that support it
9746 case /$ac_cv_func_pipe/$ac_cv_func_sigaction/$make_cv_sa_restart/$has_wait_nohang/ in #(
9748 make_cv_job_server=no ;; #(
9753 # Also supported on OS2 and MinGW
9756 make_cv_job_server=yes ;; #(
9761 # If we support it and the user didn't disable it, build with jobserver
9762 case /$make_cv_job_server/$user_job_server/ in #(
9764 : no jobserver ;; #(
9767 $as_echo "#define MAKE_JOBSERVER 1" >>confdefs.h
9772 # If dl*() functions are supported we can enable the load operation
9773 ac_fn_c_check_decl "$LINENO" "dlopen" "ac_cv_have_decl_dlopen" "#include <dlfcn.h>
9775 if test "x$ac_cv_have_decl_dlopen" = xyes; then :
9781 cat >>confdefs.h <<_ACEOF
9782 #define HAVE_DECL_DLOPEN $ac_have_decl
9784 ac_fn_c_check_decl "$LINENO" "dlsym" "ac_cv_have_decl_dlsym" "#include <dlfcn.h>
9786 if test "x$ac_cv_have_decl_dlsym" = xyes; then :
9792 cat >>confdefs.h <<_ACEOF
9793 #define HAVE_DECL_DLSYM $ac_have_decl
9795 ac_fn_c_check_decl "$LINENO" "dlerror" "ac_cv_have_decl_dlerror" "#include <dlfcn.h>
9797 if test "x$ac_cv_have_decl_dlerror" = xyes; then :
9803 cat >>confdefs.h <<_ACEOF
9804 #define HAVE_DECL_DLERROR $ac_have_decl
9808 # Check whether --enable-load was given.
9809 if test "${enable_load+set}" = set; then :
9810 enableval=$enable_load; make_cv_load="$enableval" user_load="$enableval"
9816 case /$ac_cv_func_dlopen/$ac_cv_func_dlsym/$ac_cv_func_dlerror/ in #(
9818 make_cv_load=no ;; #(
9823 case /$make_cv_load/$user_load/ in #(
9825 make_cv_load=no ;; #(
9828 $as_echo "#define MAKE_LOAD 1" >>confdefs.h
9833 # We might need -ldl
9834 if test "$make_cv_load" = yes; then :
9836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
9837 $as_echo_n "checking for library containing dlopen... " >&6; }
9838 if ${ac_cv_search_dlopen+:} false; then :
9839 $as_echo_n "(cached) " >&6
9841 ac_func_search_save_LIBS=$LIBS
9842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9843 /* end confdefs.h. */
9845 /* Override any GCC internal prototype to avoid an error.
9846 Use char because int might match the return type of a GCC
9847 builtin and then its argument prototype would still apply. */
9860 for ac_lib in '' dl; do
9861 if test -z "$ac_lib"; then
9862 ac_res="none required"
9865 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9867 if ac_fn_c_try_link "$LINENO"; then :
9868 ac_cv_search_dlopen=$ac_res
9870 rm -f core conftest.err conftest.$ac_objext \
9872 if ${ac_cv_search_dlopen+:} false; then :
9876 if ${ac_cv_search_dlopen+:} false; then :
9879 ac_cv_search_dlopen=no
9882 LIBS=$ac_func_search_save_LIBS
9884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
9885 $as_echo "$ac_cv_search_dlopen" >&6; }
9886 ac_res=$ac_cv_search_dlopen
9887 if test "$ac_res" != no; then :
9888 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9897 # If we want load support, we might need to link with export-dynamic.
9898 # See if we can figure it out. Unfortunately this is very difficult.
9899 # For example passing -rdynamic to the SunPRO linker gives a warning
9900 # but succeeds and creates a shared object, not an executable!
9901 if test "$make_cv_load" = yes; then :
9903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking If the linker accepts -Wl,--export-dynamic" >&5
9904 $as_echo_n "checking If the linker accepts -Wl,--export-dynamic... " >&6; }
9905 old_LDFLAGS="$LDFLAGS"
9906 LDFLAGS="$LDFLAGS -Wl,--export-dynamic"
9907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9908 /* end confdefs.h. */
9911 if ac_fn_c_try_link "$LINENO"; then :
9912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9913 $as_echo "yes" >&6; }
9914 AM_LDFLAGS=-Wl,--export-dynamic
9917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9918 $as_echo "no" >&6; }
9919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking If the linker accepts -rdynamic" >&5
9920 $as_echo_n "checking If the linker accepts -rdynamic... " >&6; }
9921 LDFLAGS="$old_LDFLAGS -rdynamic"
9922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9923 /* end confdefs.h. */
9926 if ac_fn_c_try_link "$LINENO"; then :
9927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9928 $as_echo "yes" >&6; }
9929 AM_LDFLAGS=-rdynamic
9932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9933 $as_echo "no" >&6; }
9935 rm -f core conftest.err conftest.$ac_objext \
9936 conftest$ac_exeext conftest.$ac_ext
9939 rm -f core conftest.err conftest.$ac_objext \
9940 conftest$ac_exeext conftest.$ac_ext
9941 LDFLAGS="$old_LDFLAGS"
9945 # if we have both lstat() and readlink() then we can support symlink
9947 if test "$ac_cv_func_lstat" = yes && test "$ac_cv_func_readlink" = yes; then :
9949 $as_echo "#define MAKE_SYMLINKS 1" >>confdefs.h
9954 # Find the SCCS commands, so we can include them in our default rules.
9956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for location of SCCS get command" >&5
9957 $as_echo_n "checking for location of SCCS get command... " >&6; }
9958 if ${make_cv_path_sccs_get+:} false; then :
9959 $as_echo_n "(cached) " >&6
9962 if test -f /usr/sccs/get; then :
9963 make_cv_path_sccs_get=/usr/sccs/get
9965 make_cv_path_sccs_get=get
9969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $make_cv_path_sccs_get" >&5
9970 $as_echo "$make_cv_path_sccs_get" >&6; }
9972 cat >>confdefs.h <<_ACEOF
9973 #define SCCS_GET "$make_cv_path_sccs_get"
9977 ac_clean_files="$ac_clean_files s.conftest conftoast" # Remove these later.
9978 if (/usr/sccs/admin -n s.conftest || admin -n s.conftest) >/dev/null 2>&1 &&
9979 test -f s.conftest; then :
9980 # We successfully created an SCCS file.
9981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if SCCS get command understands -G" >&5
9982 $as_echo_n "checking if SCCS get command understands -G... " >&6; }
9983 if ${make_cv_sys_get_minus_G+:} false; then :
9984 $as_echo_n "(cached) " >&6
9986 if $make_cv_path_sccs_get -Gconftoast s.conftest >/dev/null 2>&1 &&
9987 test -f conftoast; then :
9988 make_cv_sys_get_minus_G=yes
9990 make_cv_sys_get_minus_G=no
9994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $make_cv_sys_get_minus_G" >&5
9995 $as_echo "$make_cv_sys_get_minus_G" >&6; }
9996 if test "$make_cv_sys_get_minus_G" = yes; then :
9998 $as_echo "#define SCCS_GET_MINUS_G 1" >>confdefs.h
10004 rm -f s.conftest conftoast
10006 # Check the system to see if it provides GNU glob. If not, use our
10008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if system libc has GNU glob" >&5
10009 $as_echo_n "checking if system libc has GNU glob... " >&6; }
10010 if ${make_cv_sys_gnu_glob+:} false; then :
10011 $as_echo_n "(cached) " >&6
10013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10014 /* end confdefs.h. */
10016 #include <features.h>
10018 #include <fnmatch.h>
10020 #define GLOB_INTERFACE_VERSION 1
10021 #if !defined _LIBC && defined __GNU_LIBRARY__ && __GNU_LIBRARY__ > 1
10022 # include <gnu-versions.h>
10023 # if _GNU_GLOB_INTERFACE_VERSION == GLOB_INTERFACE_VERSION
10028 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10029 $EGREP "gnu glob" >/dev/null 2>&1; then :
10030 make_cv_sys_gnu_glob=yes
10032 make_cv_sys_gnu_glob=no
10037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $make_cv_sys_gnu_glob" >&5
10038 $as_echo "$make_cv_sys_gnu_glob" >&6; }
10039 if test "$make_cv_sys_gnu_glob" = no; then :
10040 GLOBINC='-I$(srcdir)/glob'
10041 GLOBLIB=glob/libglob.a
10047 # Tell automake about this, so it can build the right .c files.
10048 if test "$make_cv_sys_gnu_glob" = no; then
10049 USE_LOCAL_GLOB_TRUE=
10050 USE_LOCAL_GLOB_FALSE='#'
10052 USE_LOCAL_GLOB_TRUE='#'
10053 USE_LOCAL_GLOB_FALSE=
10057 # Let the makefile know what our build host is
10060 cat >>confdefs.h <<_ACEOF
10061 #define MAKE_HOST "$host"
10070 WINDOWSENV_FALSE='#'
10072 WINDOWSENV_TRUE='#'
10081 WINDOWSENV_FALSE='#'
10083 WINDOWSENV_TRUE='#'
10089 $as_echo "#define WINDOWS32 1" >>confdefs.h
10092 $as_echo "#define HAVE_DOS_PATHS 1" >>confdefs.h
10100 cat >>confdefs.h <<_ACEOF
10101 #define PATH_SEPARATOR_CHAR '$PATH_SEPARATOR'
10105 # Include the Maintainer's Makefile section, if it's here.
10107 MAINT_MAKEFILE=/dev/null
10108 if test -r "$srcdir/maintMakefile"; then :
10109 MAINT_MAKEFILE="$srcdir/maintMakefile"
10114 # Allow building with dmalloc
10115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if malloc debugging is wanted" >&5
10116 $as_echo_n "checking if malloc debugging is wanted... " >&6; }
10118 # Check whether --with-dmalloc was given.
10119 if test "${with_dmalloc+set}" = set; then :
10120 withval=$with_dmalloc; if test "$withval" = yes; then
10121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10122 $as_echo "yes" >&6; }
10124 $as_echo "#define WITH_DMALLOC 1" >>confdefs.h
10126 LIBS="$LIBS -ldmalloc"
10127 LDFLAGS="$LDFLAGS -g"
10129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10130 $as_echo "no" >&6; }
10133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10134 $as_echo "no" >&6; }
10139 # Forcibly disable SET_MAKE. If it's set it breaks things like the test
10143 # Sanity check and inform the user of what we found
10145 if test "x$make_badcust" = xyes; then :
10148 echo "WARNING: --with-customs specified but no customs.h could be found;"
10149 echo " disabling Customs support."
10154 case $with_customs in #(
10155 ""|n|no|y|ye|yes) :
10158 if test -f "$with_customs/lib/libcustoms.a"; then :
10162 echo "WARNING: '$with_customs/lib' does not appear to contain the"
10163 echo " Customs library. You must build and install Customs"
10164 echo " before compiling GNU make."
10170 if test "x$has_wait_nohang" = xno; then :
10172 echo "WARNING: Your system has neither waitpid() nor wait3()."
10173 echo " Without one of these, signal handling is unreliable."
10174 echo " You should be aware that running GNU make with -j"
10175 echo " could result in erratic behavior."
10180 if test "x$make_cv_job_server" = xno && test "x$user_job_server" = xyes; then :
10182 echo "WARNING: Make job server requires a POSIX-ish system that"
10183 echo " supports the pipe(), sigaction(), and either"
10184 echo " waitpid() or wait3() functions. Your system doesn't"
10185 echo " appear to provide one or more of those."
10186 echo " Disabling job server support."
10191 if test "x$make_cv_load" = xno && test "x$user_load" = xyes; then :
10193 echo "WARNING: 'load' support requires a POSIX-ish system that"
10194 echo " supports the dlopen(), dlsym(), and dlerror() functions."
10195 echo " Your system doesn't appear to provide one or more of these."
10196 echo " Disabling 'load' support."
10201 # Specify what files are to be created.
10202 ac_config_files="$ac_config_files Makefile glob/Makefile po/Makefile.in config/Makefile doc/Makefile w32/Makefile"
10207 cat >confcache <<\_ACEOF
10208 # This file is a shell script that caches the results of configure
10209 # tests run on this system so they can be shared between configure
10210 # scripts and configure runs, see configure's option --config-cache.
10211 # It is not useful on other systems. If it contains results you don't
10212 # want to keep, you may remove or edit it.
10214 # config.status only pays attention to the cache file if you give it
10215 # the --recheck option to rerun configure.
10217 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10218 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10219 # following values.
10223 # The following way of writing the cache mishandles newlines in values,
10224 # but we know of no workaround that is simple, portable, and efficient.
10225 # So, we kill variables containing newlines.
10226 # Ultrix sh set writes to stderr and can't be redirected directly,
10227 # and sets the high bit in the cache file unless we assign to the vars.
10229 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10230 eval ac_val=\$$ac_var
10234 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
10235 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
10238 _ | IFS | as_nl) ;; #(
10239 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
10240 *) { eval $ac_var=; unset $ac_var;} ;;
10246 case $as_nl`(ac_space=' '; set) 2>&1` in #(
10247 *${as_nl}ac_space=\ *)
10248 # `set' does not quote correctly, so add quotes: double-quote
10249 # substitution turns \\\\ into \\, and sed turns \\ into \.
10252 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10255 # `set' quotes correctly as required by POSIX, so do not add quotes.
10256 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
10265 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10267 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10269 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
10270 if test -w "$cache_file"; then
10271 if test "x$cache_file" != "x/dev/null"; then
10272 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
10273 $as_echo "$as_me: updating cache $cache_file" >&6;}
10274 if test ! -f "$cache_file" || test -h "$cache_file"; then
10275 cat confcache >"$cache_file"
10277 case $cache_file in #(
10279 mv -f confcache "$cache_file"$$ &&
10280 mv -f "$cache_file"$$ "$cache_file" ;; #(
10282 mv -f confcache "$cache_file" ;;
10287 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
10288 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
10293 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10294 # Let make expand exec_prefix.
10295 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10297 DEFS=-DHAVE_CONFIG_H
10302 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10303 # 1. Remove the extension, and $U if already installed.
10304 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
10305 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
10306 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
10307 # will be set to the directory where LIBOBJS objects are built.
10308 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10309 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
10311 LIBOBJS=$ac_libobjs
10313 LTLIBOBJS=$ac_ltlibobjs
10316 if test -n "$EXEEXT"; then
10318 am__EXEEXT_FALSE='#'
10320 am__EXEEXT_TRUE='#'
10324 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
10325 as_fn_error $? "conditional \"AMDEP\" was never defined.
10326 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10328 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
10329 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
10330 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10332 if test -z "${HAVE_GUILE_TRUE}" && test -z "${HAVE_GUILE_FALSE}"; then
10333 as_fn_error $? "conditional \"HAVE_GUILE\" was never defined.
10334 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10336 if test -z "${USE_CUSTOMS_TRUE}" && test -z "${USE_CUSTOMS_FALSE}"; then
10337 as_fn_error $? "conditional \"USE_CUSTOMS\" was never defined.
10338 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10340 if test -z "${USE_LOCAL_GLOB_TRUE}" && test -z "${USE_LOCAL_GLOB_FALSE}"; then
10341 as_fn_error $? "conditional \"USE_LOCAL_GLOB\" was never defined.
10342 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10344 if test -z "${WINDOWSENV_TRUE}" && test -z "${WINDOWSENV_FALSE}"; then
10345 as_fn_error $? "conditional \"WINDOWSENV\" was never defined.
10346 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10348 if test -z "${WINDOWSENV_TRUE}" && test -z "${WINDOWSENV_FALSE}"; then
10349 as_fn_error $? "conditional \"WINDOWSENV\" was never defined.
10350 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10353 : "${CONFIG_STATUS=./config.status}"
10355 ac_clean_files_save=$ac_clean_files
10356 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10357 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
10358 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
10360 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
10362 # Generated by $as_me.
10363 # Run this file to recreate the current configuration.
10364 # Compiler output produced by configure, useful for debugging
10365 # configure, is in config.log if it exists.
10368 ac_cs_recheck=false
10371 SHELL=\${CONFIG_SHELL-$SHELL}
10374 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
10375 ## -------------------- ##
10376 ## M4sh Initialization. ##
10377 ## -------------------- ##
10379 # Be more Bourne compatible
10380 DUALCASE=1; export DUALCASE # for MKS sh
10381 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
10384 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
10385 # is contrary to our usage. Disable this feature.
10386 alias -g '${1+"$@"}'='"$@"'
10387 setopt NO_GLOB_SUBST
10389 case `(set -o) 2>/dev/null` in #(
10401 # Printing a long string crashes Solaris 7 /usr/bin/printf.
10402 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10403 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
10404 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
10405 # Prefer a ksh shell builtin over an external printf program on Solaris,
10406 # but without wasting forks for bash or zsh.
10407 if test -z "$BASH_VERSION$ZSH_VERSION" \
10408 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
10409 as_echo='print -r --'
10410 as_echo_n='print -rn --'
10411 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
10412 as_echo='printf %s\n'
10413 as_echo_n='printf %s'
10415 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
10416 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
10417 as_echo_n='/usr/ucb/echo -n'
10419 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
10420 as_echo_n_body='eval
10424 expr "X$arg" : "X\\(.*\\)$as_nl";
10425 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
10427 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
10429 export as_echo_n_body
10430 as_echo_n='sh -c $as_echo_n_body as_echo'
10432 export as_echo_body
10433 as_echo='sh -c $as_echo_body as_echo'
10436 # The user is always right.
10437 if test "${PATH_SEPARATOR+set}" != set; then
10439 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
10440 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
10447 # We need space, tab and new line, in precisely that order. Quoting is
10448 # there to prevent editors from complaining about space-tab.
10449 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
10450 # splitting by setting IFS to empty value.)
10453 # Find who we are. Look in the path if we contain no directory separator.
10456 *[\\/]* ) as_myself=$0 ;;
10457 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10458 for as_dir in $PATH
10461 test -z "$as_dir" && as_dir=.
10462 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10468 # We did not find ourselves, most probably we were run as `sh COMMAND'
10469 # in which case we are not to be found in the path.
10470 if test "x$as_myself" = x; then
10473 if test ! -f "$as_myself"; then
10474 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
10478 # Unset variables that we do not need and which cause bugs (e.g. in
10479 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
10480 # suppresses any "Segmentation fault" message there. '((' could
10481 # trigger a bug in pdksh 5.2.14.
10482 for as_var in BASH_ENV ENV MAIL MAILPATH
10483 do eval test x\${$as_var+set} = xset \
10484 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
10497 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10500 # as_fn_error STATUS ERROR [LINENO LOG_FD]
10501 # ----------------------------------------
10502 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
10503 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
10504 # script with STATUS, using 1 if that was 0.
10507 as_status=$1; test $as_status -eq 0 && as_status=1
10509 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
10510 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
10512 $as_echo "$as_me: error: $2" >&2
10513 as_fn_exit $as_status
10517 # as_fn_set_status STATUS
10518 # -----------------------
10519 # Set $? to STATUS, without forking.
10520 as_fn_set_status ()
10523 } # as_fn_set_status
10525 # as_fn_exit STATUS
10526 # -----------------
10527 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
10531 as_fn_set_status $1
10537 # Portably unset VAR.
10540 { eval $1=; unset $1;}
10542 as_unset=as_fn_unset
10543 # as_fn_append VAR VALUE
10544 # ----------------------
10545 # Append the text in VALUE to the end of the definition contained in VAR. Take
10546 # advantage of any shell optimizations that allow amortized linear growth over
10547 # repeated appends, instead of the typical quadratic growth present in naive
10549 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
10550 eval 'as_fn_append ()
10561 # as_fn_arith ARG...
10562 # ------------------
10563 # Perform arithmetic evaluation on the ARGs, and store the result in the
10564 # global $as_val. Take advantage of shells that can avoid forks. The arguments
10565 # must be portable across $(()) and expr.
10566 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
10567 eval 'as_fn_arith ()
10574 as_val=`expr "$@" || test $? -eq 1`
10579 if expr a : '\(a\)' >/dev/null 2>&1 &&
10580 test "X`expr 00001 : '.*\(...\)'`" = X001; then
10586 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
10587 as_basename=basename
10592 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
10598 as_me=`$as_basename -- "$0" ||
10599 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10600 X"$0" : 'X\(//\)$' \| \
10601 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
10603 sed '/^.*\/\([^/][^/]*\)\/*$/{
10617 # Avoid depending upon Character Ranges.
10618 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10619 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10620 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10621 as_cr_digits='0123456789'
10622 as_cr_alnum=$as_cr_Letters$as_cr_digits
10624 ECHO_C= ECHO_N= ECHO_T=
10625 case `echo -n x` in #(((((
10627 case `echo 'xy\c'` in
10628 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
10630 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
10637 rm -f conf$$ conf$$.exe conf$$.file
10638 if test -d conf$$.dir; then
10639 rm -f conf$$.dir/conf$$.file
10642 mkdir conf$$.dir 2>/dev/null
10644 if (echo >conf$$.file) 2>/dev/null; then
10645 if ln -s conf$$.file conf$$ 2>/dev/null; then
10647 # ... but there are two gotchas:
10648 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
10649 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
10650 # In both cases, we have to default to `cp -pR'.
10651 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
10653 elif ln conf$$.file conf$$ 2>/dev/null; then
10661 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
10662 rmdir conf$$.dir 2>/dev/null
10667 # Create "$as_dir" as a directory, including parents if necessary.
10672 -*) as_dir=./$as_dir;;
10674 test -d "$as_dir" || eval $as_mkdir_p || {
10678 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
10679 *) as_qdir=$as_dir;;
10681 as_dirs="'$as_qdir' $as_dirs"
10682 as_dir=`$as_dirname -- "$as_dir" ||
10683 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10684 X"$as_dir" : 'X\(//\)[^/]' \| \
10685 X"$as_dir" : 'X\(//\)$' \| \
10686 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
10687 $as_echo X"$as_dir" |
10688 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10692 /^X\(\/\/\)[^/].*/{
10705 test -d "$as_dir" && break
10707 test -z "$as_dirs" || eval "mkdir $as_dirs"
10708 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
10712 if mkdir -p . 2>/dev/null; then
10713 as_mkdir_p='mkdir -p "$as_dir"'
10715 test -d ./-p && rmdir ./-p
10720 # as_fn_executable_p FILE
10721 # -----------------------
10722 # Test if FILE is an executable regular file.
10723 as_fn_executable_p ()
10725 test -f "$1" && test -x "$1"
10726 } # as_fn_executable_p
10727 as_test_x='test -x'
10728 as_executable_p=as_fn_executable_p
10730 # Sed expression to map a string onto a valid CPP name.
10731 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10733 # Sed expression to map a string onto a valid variable name.
10734 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10738 ## ----------------------------------- ##
10739 ## Main body of $CONFIG_STATUS script. ##
10740 ## ----------------------------------- ##
10742 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
10744 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10745 # Save the log message, to keep $0 and so on meaningful, and to
10746 # report actual input values of CONFIG_FILES etc. instead of their
10747 # values after options handling.
10749 This file was extended by GNU make $as_me 4.0, which was
10750 generated by GNU Autoconf 2.69. Invocation command line was
10752 CONFIG_FILES = $CONFIG_FILES
10753 CONFIG_HEADERS = $CONFIG_HEADERS
10754 CONFIG_LINKS = $CONFIG_LINKS
10755 CONFIG_COMMANDS = $CONFIG_COMMANDS
10758 on `(hostname || uname -n) 2>/dev/null | sed 1q`
10763 case $ac_config_files in *"
10764 "*) set x $ac_config_files; shift; ac_config_files=$*;;
10767 case $ac_config_headers in *"
10768 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
10772 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10773 # Files that config.status was made for.
10774 config_files="$ac_config_files"
10775 config_headers="$ac_config_headers"
10776 config_commands="$ac_config_commands"
10780 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10782 \`$as_me' instantiates files and other configuration actions
10783 from templates according to the current configuration. Unless the files
10784 and actions are specified as TAGs, all are instantiated by default.
10786 Usage: $0 [OPTION]... [TAG]...
10788 -h, --help print this help, then exit
10789 -V, --version print version number and configuration settings, then exit
10790 --config print configuration, then exit
10791 -q, --quiet, --silent
10792 do not print progress messages
10793 -d, --debug don't remove temporary files
10794 --recheck update $as_me by reconfiguring in the same conditions
10795 --file=FILE[:TEMPLATE]
10796 instantiate the configuration file FILE
10797 --header=FILE[:TEMPLATE]
10798 instantiate the configuration header FILE
10800 Configuration files:
10803 Configuration headers:
10806 Configuration commands:
10809 Report bugs to <bug-make@gnu.org>.
10810 GNU make home page: <http://www.gnu.org/software/make/>.
10811 General help using GNU software: <http://www.gnu.org/gethelp/>."
10814 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10815 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
10817 GNU make config.status 4.0
10818 configured by $0, generated by GNU Autoconf 2.69,
10819 with options \\"\$ac_cs_config\\"
10821 Copyright (C) 2012 Free Software Foundation, Inc.
10822 This config.status script is free software; the Free Software Foundation
10823 gives unlimited permission to copy, distribute and modify it."
10830 test -n "\$AWK" || AWK=awk
10833 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10834 # The default lists apply if the user does not specify any file.
10840 ac_option=`expr "X$1" : 'X\([^=]*\)='`
10841 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
10845 ac_option=`expr "X$1" : 'X\([^=]*\)='`
10857 # Handling of the options.
10858 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10860 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
10861 $as_echo "$ac_cs_version"; exit ;;
10862 --config | --confi | --conf | --con | --co | --c )
10863 $as_echo "$ac_cs_config"; exit ;;
10864 --debug | --debu | --deb | --de | --d | -d )
10866 --file | --fil | --fi | --f )
10869 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10870 '') as_fn_error $? "missing file argument" ;;
10872 as_fn_append CONFIG_FILES " '$ac_optarg'"
10873 ac_need_defaults=false;;
10874 --header | --heade | --head | --hea )
10877 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10879 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
10880 ac_need_defaults=false;;
10882 # Conflict between --help and --header
10883 as_fn_error $? "ambiguous option: \`$1'
10884 Try \`$0 --help' for more information.";;
10885 --help | --hel | -h )
10886 $as_echo "$ac_cs_usage"; exit ;;
10887 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10888 | -silent | --silent | --silen | --sile | --sil | --si | --s)
10891 # This is an error.
10892 -*) as_fn_error $? "unrecognized option: \`$1'
10893 Try \`$0 --help' for more information." ;;
10895 *) as_fn_append ac_config_targets " $1"
10896 ac_need_defaults=false ;;
10902 ac_configure_extra_args=
10904 if $ac_cs_silent; then
10906 ac_configure_extra_args="$ac_configure_extra_args --silent"
10910 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10911 if \$ac_cs_recheck; then
10912 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10914 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
10915 CONFIG_SHELL='$SHELL'
10916 export CONFIG_SHELL
10921 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10925 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10926 ## Running $as_me. ##
10932 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10936 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
10937 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
10938 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
10939 # from automake < 1.5.
10940 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
10941 # Capture the value of LINGUAS because we need it to compute CATALOGS.
10942 LINGUAS="${LINGUAS-%UNSET%}"
10947 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10949 # Handling of arguments.
10950 for ac_config_target in $ac_config_targets
10952 case $ac_config_target in
10953 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
10954 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
10955 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
10956 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
10957 "glob/Makefile") CONFIG_FILES="$CONFIG_FILES glob/Makefile" ;;
10958 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
10959 "config/Makefile") CONFIG_FILES="$CONFIG_FILES config/Makefile" ;;
10960 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
10961 "w32/Makefile") CONFIG_FILES="$CONFIG_FILES w32/Makefile" ;;
10963 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
10968 # If the user did not use the arguments to specify the items to instantiate,
10969 # then the envvar interface is used. Set only those that are not.
10970 # We use the long form for the default assignment because of an extremely
10971 # bizarre bug on SunOS 4.1.3.
10972 if $ac_need_defaults; then
10973 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
10974 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
10975 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
10978 # Have a temporary directory for convenience. Make it in the build tree
10979 # simply because there is no reason against having it here, and in addition,
10980 # creating and moving files from /tmp can sometimes cause problems.
10981 # Hook for its removal unless debugging.
10982 # Note that there is a small window in which the directory will not be cleaned:
10983 # after its creation but before its name has been assigned to `$tmp'.
10987 trap 'exit_status=$?
10988 : "${ac_tmp:=$tmp}"
10989 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
10991 trap 'as_fn_exit 1' 1 2 13 15
10993 # Create a (secure) tmp directory for tmp files.
10996 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11000 tmp=./conf$$-$RANDOM
11001 (umask 077 && mkdir "$tmp")
11002 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
11005 # Set up the scripts for CONFIG_FILES section.
11006 # No need to generate them if there are no CONFIG_FILES.
11007 # This happens for instance with `./config.status config.h'.
11008 if test -n "$CONFIG_FILES"; then
11010 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
11011 ac_cs_awk_getline=:
11012 ac_cs_awk_pipe_init=
11013 ac_cs_awk_read_file='
11014 while ((getline aline < (F[key])) > 0)
11017 ac_cs_awk_pipe_fini=
11019 ac_cs_awk_getline=false
11020 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
11021 ac_cs_awk_read_file='
11023 print "cat " F[key] " &&"
11024 '$ac_cs_awk_pipe_init
11025 # The final `:' finishes the AND list.
11026 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
11028 ac_cr=`echo X | tr X '\015'`
11029 # On cygwin, bash can eat \r inside `` if the user requested igncr.
11030 # But we know of no other shell where ac_cr would be empty at this
11031 # point, so we can use a bashism as a fallback.
11032 if test "x$ac_cr" = x; then
11033 eval ac_cr=\$\'\\r\'
11035 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11036 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11039 ac_cs_awk_cr=$ac_cr
11042 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
11045 # Create commands to substitute file output variables.
11047 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
11048 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
11049 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
11052 } >conf$$files.sh &&
11053 . ./conf$$files.sh ||
11054 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11055 rm -f conf$$files.sh
11058 echo "cat >conf$$subs.awk <<_ACEOF" &&
11059 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
11061 } >conf$$subs.sh ||
11062 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11063 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
11065 for ac_last_try in false false false false false :; do
11066 . ./conf$$subs.sh ||
11067 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11069 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
11070 if test $ac_delim_n = $ac_delim_num; then
11072 elif $ac_last_try; then
11073 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11075 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11078 rm -f conf$$subs.sh
11080 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11081 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
11085 s/^/S["/; s/!.*/"]=/
11095 s/\(.\{148\}\)..*/\1/
11097 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
11102 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11109 s/\(.\{148\}\)..*/\1/
11111 s/["\\]/\\&/g; s/^/"/; s/$/"/
11115 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11120 ' <conf$$subs.awk | sed '
11125 ' >>$CONFIG_STATUS || ac_write_fail=1
11126 rm -f conf$$subs.awk
11127 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11129 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
11130 for (key in S) S_is_set[key] = 1
11132 \$ac_cs_awk_pipe_init
11136 nfields = split(line, field, "@")
11138 len = length(field[1])
11139 for (i = 2; i < nfields; i++) {
11141 keylen = length(key)
11142 if (S_is_set[key]) {
11144 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
11145 len += length(value) + length(field[++i])
11150 if (nfields == 3 && !substed) {
11152 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
11153 \$ac_cs_awk_read_file
11159 \$ac_cs_awk_pipe_fini
11162 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11163 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
11164 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
11167 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
11168 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
11171 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
11172 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
11173 # trailing colons and then remove the whole line if VPATH becomes empty
11174 # (actually we leave an empty line to preserve line numbers).
11175 if test "x$srcdir" = x.; then
11176 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
11194 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11195 fi # test -n "$CONFIG_FILES"
11197 # Set up the scripts for CONFIG_HEADERS section.
11198 # No need to generate them if there are no CONFIG_HEADERS.
11199 # This happens for instance with `./config.status Makefile'.
11200 if test -n "$CONFIG_HEADERS"; then
11201 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
11205 # Transform confdefs.h into an awk script `defines.awk', embedded as
11206 # here-document in config.status, that substitutes the proper values into
11207 # config.h.in to produce config.h.
11209 # Create a delimiter string that does not exist in confdefs.h, to ease
11210 # handling of long lines.
11212 for ac_last_try in false false :; do
11213 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
11214 if test -z "$ac_tt"; then
11216 elif $ac_last_try; then
11217 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
11219 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11223 # For the awk script, D is an array of macro values keyed by name,
11224 # likewise P contains macro parameters if any. Preserve backslash
11225 # newline sequences.
11227 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
11229 s/.\{148\}/&'"$ac_delim"'/g
11232 s/^[ ]*#[ ]*define[ ][ ]*/ /
11239 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
11241 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
11245 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
11246 D["\1"]=" \3\\\\\\n"\\/p
11248 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
11253 s/.\{148\}/&'"$ac_delim"'/g
11258 s/["\\]/\\&/g; s/^/"/; s/$/"/p
11261 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
11263 ' <confdefs.h | sed '
11264 s/'"$ac_delim"'/"\\\
11265 "/g' >>$CONFIG_STATUS || ac_write_fail=1
11267 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11268 for (key in D) D_is_set[key] = 1
11271 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
11273 split(line, arg, " ")
11274 if (arg[1] == "#") {
11278 defundef = substr(arg[1], 2)
11281 split(mac1, mac2, "(") #)
11283 prefix = substr(line, 1, index(line, defundef) - 1)
11284 if (D_is_set[macro]) {
11285 # Preserve the white space surrounding the "#".
11286 print prefix "define", macro P[macro] D[macro]
11289 # Replace #undef with comments. This is necessary, for example,
11290 # in the case of _POSIX_SOURCE, which is predefined and required
11291 # on some systems where configure will not decide to define it.
11292 if (defundef == "undef") {
11293 print "/*", prefix defundef, macro, "*/"
11301 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11302 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
11303 fi # test -n "$CONFIG_HEADERS"
11306 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
11311 :[FHLC]) ac_mode=$ac_tag; continue;;
11313 case $ac_mode$ac_tag in
11315 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
11316 :[FH]-) ac_tag=-:-;;
11317 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
11334 -) ac_f="$ac_tmp/stdin";;
11335 *) # Look for the file first in the build tree, then in the source tree
11336 # (if the path is not absolute). The absolute path cannot be DOS-style,
11337 # because $ac_f cannot contain `:'.
11341 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
11343 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
11345 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
11346 as_fn_append ac_file_inputs " '$ac_f'"
11349 # Let's still pretend it is `configure' which instantiates (i.e., don't
11350 # use $as_me), people would be surprised to read:
11351 # /* config.h. Generated by config.status. */
11352 configure_input='Generated from '`
11353 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
11355 if test x"$ac_file" != x-; then
11356 configure_input="$ac_file. $configure_input"
11357 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
11358 $as_echo "$as_me: creating $ac_file" >&6;}
11360 # Neutralize special characters interpreted by sed in replacement strings.
11361 case $configure_input in #(
11362 *\&* | *\|* | *\\* )
11363 ac_sed_conf_input=`$as_echo "$configure_input" |
11364 sed 's/[\\\\&|]/\\\\&/g'`;; #(
11365 *) ac_sed_conf_input=$configure_input;;
11369 *:-:* | *:-) cat >"$ac_tmp/stdin" \
11370 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
11375 ac_dir=`$as_dirname -- "$ac_file" ||
11376 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11377 X"$ac_file" : 'X\(//\)[^/]' \| \
11378 X"$ac_file" : 'X\(//\)$' \| \
11379 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
11380 $as_echo X"$ac_file" |
11381 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11385 /^X\(\/\/\)[^/].*/{
11398 as_dir="$ac_dir"; as_fn_mkdir_p
11402 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
11404 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
11405 # A ".." for each directory in $ac_dir_suffix.
11406 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
11407 case $ac_top_builddir_sub in
11408 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
11409 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
11412 ac_abs_top_builddir=$ac_pwd
11413 ac_abs_builddir=$ac_pwd$ac_dir_suffix
11414 # for backward compatibility:
11415 ac_top_builddir=$ac_top_build_prefix
11418 .) # We are building in place.
11420 ac_top_srcdir=$ac_top_builddir_sub
11421 ac_abs_top_srcdir=$ac_pwd ;;
11422 [\\/]* | ?:[\\/]* ) # Absolute name.
11423 ac_srcdir=$srcdir$ac_dir_suffix;
11424 ac_top_srcdir=$srcdir
11425 ac_abs_top_srcdir=$srcdir ;;
11426 *) # Relative name.
11427 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
11428 ac_top_srcdir=$ac_top_build_prefix$srcdir
11429 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
11431 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
11441 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11442 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
11444 ac_MKDIR_P=$MKDIR_P
11446 [\\/$]* | ?:[\\/]* ) ;;
11447 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
11451 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11452 # If the template does not know about datarootdir, expand it.
11453 # FIXME: This hack should be removed a few years after 2.60.
11454 ac_datarootdir_hack=; ac_datarootdir_seen=
11465 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
11466 *datarootdir*) ac_datarootdir_seen=yes;;
11467 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
11468 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
11469 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11471 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11472 ac_datarootdir_hack='
11473 s&@datadir@&$datadir&g
11474 s&@docdir@&$docdir&g
11475 s&@infodir@&$infodir&g
11476 s&@localedir@&$localedir&g
11477 s&@mandir@&$mandir&g
11478 s&\\\${datarootdir}&$datarootdir&g' ;;
11482 # Neutralize VPATH when `$srcdir' = `.'.
11483 # Shell code in configure.ac might set extrasub.
11484 # FIXME: do we really want to maintain this feature?
11485 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11486 ac_sed_extra="$ac_vpsub
11489 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11491 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11492 s|@configure_input@|$ac_sed_conf_input|;t t
11493 s&@top_builddir@&$ac_top_builddir_sub&;t t
11494 s&@top_build_prefix@&$ac_top_build_prefix&;t t
11495 s&@srcdir@&$ac_srcdir&;t t
11496 s&@abs_srcdir@&$ac_abs_srcdir&;t t
11497 s&@top_srcdir@&$ac_top_srcdir&;t t
11498 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
11499 s&@builddir@&$ac_builddir&;t t
11500 s&@abs_builddir@&$ac_abs_builddir&;t t
11501 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
11502 s&@INSTALL@&$ac_INSTALL&;t t
11503 s&@MKDIR_P@&$ac_MKDIR_P&;t t
11504 $ac_datarootdir_hack
11506 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
11507 if $ac_cs_awk_getline; then
11508 $AWK -f "$ac_tmp/subs.awk"
11510 $AWK -f "$ac_tmp/subs.awk" | $SHELL
11512 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11514 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
11515 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
11516 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
11517 "$ac_tmp/out"`; test -z "$ac_out"; } &&
11518 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11519 which seems to be undefined. Please make sure it is defined" >&5
11520 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11521 which seems to be undefined. Please make sure it is defined" >&2;}
11523 rm -f "$ac_tmp/stdin"
11525 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
11526 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
11528 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11534 if test x"$ac_file" != x-; then
11536 $as_echo "/* $configure_input */" \
11537 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
11538 } >"$ac_tmp/config.h" \
11539 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11540 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
11541 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
11542 $as_echo "$as_me: $ac_file is unchanged" >&6;}
11545 mv "$ac_tmp/config.h" "$ac_file" \
11546 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11549 $as_echo "/* $configure_input */" \
11550 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
11551 || as_fn_error $? "could not create -" "$LINENO" 5
11553 # Compute "$ac_file"'s index in $config_headers.
11556 for _am_header in $config_headers :; do
11557 case $_am_header in
11558 $_am_arg | $_am_arg:* )
11561 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
11564 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
11565 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11566 X"$_am_arg" : 'X\(//\)[^/]' \| \
11567 X"$_am_arg" : 'X\(//\)$' \| \
11568 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
11569 $as_echo X"$_am_arg" |
11570 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11574 /^X\(\/\/\)[^/].*/{
11586 s/.*/./; q'`/stamp-h$_am_stamp_count
11589 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
11590 $as_echo "$as_me: executing $ac_file commands" >&6;}
11595 case $ac_file$ac_mode in
11596 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
11597 # Autoconf 2.62 quotes --file arguments for eval, but not when files
11598 # are listed without --file. Let's play safe and only enable the eval
11599 # if we detect the quoting.
11600 case $CONFIG_FILES in
11601 *\'*) eval set x "$CONFIG_FILES" ;;
11602 *) set x $CONFIG_FILES ;;
11607 # Strip MF so we end up with the name of the file.
11608 mf=`echo "$mf" | sed -e 's/:.*$//'`
11609 # Check whether this is an Automake generated Makefile or not.
11610 # We used to match only the files named `Makefile.in', but
11611 # some people rename them; so instead we look at the file content.
11612 # Grep'ing the first line is not enough: some people post-process
11613 # each Makefile.in and add a new line on top of each file to say so.
11614 # Grep'ing the whole file is not good either: AIX grep has a line
11615 # limit of 2048, but all sed's we know have understand at least 4000.
11616 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
11617 dirpart=`$as_dirname -- "$mf" ||
11618 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11619 X"$mf" : 'X\(//\)[^/]' \| \
11620 X"$mf" : 'X\(//\)$' \| \
11621 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
11623 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11627 /^X\(\/\/\)[^/].*/{
11643 # Extract the definition of DEPDIR, am__include, and am__quote
11644 # from the Makefile without running `make'.
11645 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
11646 test -z "$DEPDIR" && continue
11647 am__include=`sed -n 's/^am__include = //p' < "$mf"`
11648 test -z "am__include" && continue
11649 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
11650 # When using ansi2knr, U may be empty or an underscore; expand it
11651 U=`sed -n 's/^U = //p' < "$mf"`
11652 # Find all dependency output files, they are included files with
11653 # $(DEPDIR) in their names. We invoke sed twice because it is the
11654 # simplest approach to changing $(DEPDIR) to its actual value in the
11656 for file in `sed -n "
11657 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
11658 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
11659 # Make sure the directory exists.
11660 test -f "$dirpart/$file" && continue
11661 fdir=`$as_dirname -- "$file" ||
11662 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11663 X"$file" : 'X\(//\)[^/]' \| \
11664 X"$file" : 'X\(//\)$' \| \
11665 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
11666 $as_echo X"$file" |
11667 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11671 /^X\(\/\/\)[^/].*/{
11684 as_dir=$dirpart/$fdir; as_fn_mkdir_p
11685 # echo "creating $dirpart/$file"
11686 echo '# dummy' > "$dirpart/$file"
11691 "po-directories":C)
11692 for ac_file in $CONFIG_FILES; do
11693 # Support "outfile[:infile[:infile...]]"
11695 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
11697 # PO directories have a Makefile.in generated from Makefile.in.in.
11698 case "$ac_file" in */Makefile.in)
11699 # Adjust a relative srcdir.
11700 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
11701 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
11702 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
11703 # In autoconf-2.13 it is called $ac_given_srcdir.
11704 # In autoconf-2.50 it is called $srcdir.
11705 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
11706 case "$ac_given_srcdir" in
11707 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
11708 /*) top_srcdir="$ac_given_srcdir" ;;
11709 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
11711 # Treat a directory as a PO directory if and only if it has a
11712 # POTFILES.in file. This allows packages to have multiple PO
11713 # directories under different names or in different locations.
11714 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
11715 rm -f "$ac_dir/POTFILES"
11716 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
11717 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
11718 POMAKEFILEDEPS="POTFILES.in"
11719 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
11720 # on $ac_dir but don't depend on user-specified configuration
11722 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
11723 # The LINGUAS file contains the set of available languages.
11724 if test -n "$OBSOLETE_ALL_LINGUAS"; then
11725 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
11727 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
11728 # Hide the ALL_LINGUAS assigment from automake < 1.5.
11729 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
11730 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
11732 # The set of available languages was given in configure.in.
11733 # Hide the ALL_LINGUAS assigment from automake < 1.5.
11734 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
11737 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
11738 # Compute UPDATEPOFILES
11739 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
11740 # Compute DUMMYPOFILES
11741 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
11743 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
11744 case "$ac_given_srcdir" in
11746 *) srcdirpre='$(srcdir)/' ;;
11752 for lang in $ALL_LINGUAS; do
11753 POFILES="$POFILES $srcdirpre$lang.po"
11754 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
11755 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
11756 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
11758 # CATALOGS depends on both $ac_dir and the user's LINGUAS
11759 # environment variable.
11761 if test -n "$ALL_LINGUAS"; then
11762 for presentlang in $ALL_LINGUAS; do
11764 if test "%UNSET%" != "$LINGUAS"; then
11765 desiredlanguages="$LINGUAS"
11767 desiredlanguages="$ALL_LINGUAS"
11769 for desiredlang in $desiredlanguages; do
11770 # Use the presentlang catalog if desiredlang is
11771 # a. equal to presentlang, or
11772 # b. a variant of presentlang (because in this case,
11773 # presentlang can be used as a fallback for messages
11774 # which are not translated in the desiredlang catalog).
11775 case "$desiredlang" in
11776 "$presentlang"*) useit=yes;;
11779 if test $useit = yes; then
11780 INST_LINGUAS="$INST_LINGUAS $presentlang"
11785 if test -n "$INST_LINGUAS"; then
11786 for lang in $INST_LINGUAS; do
11787 CATALOGS="$CATALOGS $lang.gmo"
11790 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
11791 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"
11792 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
11793 if test -f "$f"; then
11795 *.orig | *.bak | *~) ;;
11796 *) cat "$f" >> "$ac_dir/Makefile" ;;
11811 ac_clean_files=$ac_clean_files_save
11813 test $ac_write_fail = 0 ||
11814 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
11817 # configure is writing to config.log, and then calls config.status.
11818 # config.status does its own redirection, appending to config.log.
11819 # Unfortunately, on DOS this fails, as config.log is still kept open
11820 # by configure, so config.status won't be able to write to it; its
11821 # output is simply discarded. So we exec the FD to /dev/null,
11822 # effectively closing config.log, so it can be properly (re)opened and
11823 # appended to by config.status. When coming back to configure, we
11824 # need to make the FD available again.
11825 if test "$no_create" != yes; then
11827 ac_config_status_args=
11828 test "$silent" = yes &&
11829 ac_config_status_args="$ac_config_status_args --quiet"
11831 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
11833 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11834 # would make configure fail if this is the last instruction.
11835 $ac_cs_success || as_fn_exit 1
11837 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
11838 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
11839 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
11843 # We only generate the build.sh if we have a build.sh.in; we won't have
11844 # one before we've created a distribution.
11845 if test -f "$srcdir/build.sh.in"; then :
11846 ./config.status --file build.sh