2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for GNU make 4.1.
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.1'
584 PACKAGE_STRING='GNU make 4.1'
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
713 INSTALL_STRIP_PROGRAM
755 program_transform_name
766 ac_subst_files='MAINT_MAKEFILE'
768 enable_option_checking
770 enable_dependency_tracking
779 enable_case_insensitive_file_system
784 ac_precious_vars='build_alias
800 # Initialize some variables set by options.
802 ac_init_version=false
803 ac_unrecognized_opts=
805 # The variables have the same names as the options, with
806 # dashes changed to underlines.
814 program_transform_name=s,x,x,
822 # Installation directory options.
823 # These are left unexpanded so users can "make install exec_prefix=/foo"
824 # and all the variables that are supposed to be based on exec_prefix
825 # by default will actually change.
826 # Use braces instead of parens because sh, perl, etc. also accept them.
827 # (The list follows the same order as the GNU Coding Standards.)
828 bindir='${exec_prefix}/bin'
829 sbindir='${exec_prefix}/sbin'
830 libexecdir='${exec_prefix}/libexec'
831 datarootdir='${prefix}/share'
832 datadir='${datarootdir}'
833 sysconfdir='${prefix}/etc'
834 sharedstatedir='${prefix}/com'
835 localstatedir='${prefix}/var'
836 includedir='${prefix}/include'
837 oldincludedir='/usr/include'
838 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
839 infodir='${datarootdir}/info'
844 libdir='${exec_prefix}/lib'
845 localedir='${datarootdir}/locale'
846 mandir='${datarootdir}/man'
852 # If the previous option needs an argument, assign it.
853 if test -n "$ac_prev"; then
854 eval $ac_prev=\$ac_option
860 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
865 # Accept the important Cygnus configure options, so we can diagnose typos.
867 case $ac_dashdash$ac_option in
871 -bindir | --bindir | --bindi | --bind | --bin | --bi)
873 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
876 -build | --build | --buil | --bui | --bu)
877 ac_prev=build_alias ;;
878 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
879 build_alias=$ac_optarg ;;
881 -cache-file | --cache-file | --cache-fil | --cache-fi \
882 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
883 ac_prev=cache_file ;;
884 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
885 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
886 cache_file=$ac_optarg ;;
889 cache_file=config.cache ;;
891 -datadir | --datadir | --datadi | --datad)
893 -datadir=* | --datadir=* | --datadi=* | --datad=*)
894 datadir=$ac_optarg ;;
896 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
897 | --dataroo | --dataro | --datar)
898 ac_prev=datarootdir ;;
899 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
900 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
901 datarootdir=$ac_optarg ;;
903 -disable-* | --disable-*)
904 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
905 # Reject names that are not valid shell variable names.
906 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
907 as_fn_error $? "invalid feature name: $ac_useropt"
908 ac_useropt_orig=$ac_useropt
909 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
910 case $ac_user_opts in
914 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
915 ac_unrecognized_sep=', ';;
917 eval enable_$ac_useropt=no ;;
919 -docdir | --docdir | --docdi | --doc | --do)
921 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
924 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
926 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
929 -enable-* | --enable-*)
930 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
931 # Reject names that are not valid shell variable names.
932 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
933 as_fn_error $? "invalid feature name: $ac_useropt"
934 ac_useropt_orig=$ac_useropt
935 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
936 case $ac_user_opts in
940 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
941 ac_unrecognized_sep=', ';;
943 eval enable_$ac_useropt=\$ac_optarg ;;
945 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
946 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
947 | --exec | --exe | --ex)
948 ac_prev=exec_prefix ;;
949 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
950 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
951 | --exec=* | --exe=* | --ex=*)
952 exec_prefix=$ac_optarg ;;
954 -gas | --gas | --ga | --g)
955 # Obsolete; use --with-gas.
958 -help | --help | --hel | --he | -h)
960 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
961 ac_init_help=recursive ;;
962 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
963 ac_init_help=short ;;
965 -host | --host | --hos | --ho)
966 ac_prev=host_alias ;;
967 -host=* | --host=* | --hos=* | --ho=*)
968 host_alias=$ac_optarg ;;
970 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
972 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
974 htmldir=$ac_optarg ;;
976 -includedir | --includedir | --includedi | --included | --include \
977 | --includ | --inclu | --incl | --inc)
978 ac_prev=includedir ;;
979 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
980 | --includ=* | --inclu=* | --incl=* | --inc=*)
981 includedir=$ac_optarg ;;
983 -infodir | --infodir | --infodi | --infod | --info | --inf)
985 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
986 infodir=$ac_optarg ;;
988 -libdir | --libdir | --libdi | --libd)
990 -libdir=* | --libdir=* | --libdi=* | --libd=*)
993 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
994 | --libexe | --libex | --libe)
995 ac_prev=libexecdir ;;
996 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
997 | --libexe=* | --libex=* | --libe=*)
998 libexecdir=$ac_optarg ;;
1000 -localedir | --localedir | --localedi | --localed | --locale)
1001 ac_prev=localedir ;;
1002 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1003 localedir=$ac_optarg ;;
1005 -localstatedir | --localstatedir | --localstatedi | --localstated \
1006 | --localstate | --localstat | --localsta | --localst | --locals)
1007 ac_prev=localstatedir ;;
1008 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1009 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1010 localstatedir=$ac_optarg ;;
1012 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1014 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1015 mandir=$ac_optarg ;;
1017 -nfp | --nfp | --nf)
1018 # Obsolete; use --without-fp.
1021 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1022 | --no-cr | --no-c | -n)
1025 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1026 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1029 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1030 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1031 | --oldin | --oldi | --old | --ol | --o)
1032 ac_prev=oldincludedir ;;
1033 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1034 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1035 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1036 oldincludedir=$ac_optarg ;;
1038 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1040 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1041 prefix=$ac_optarg ;;
1043 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1044 | --program-pre | --program-pr | --program-p)
1045 ac_prev=program_prefix ;;
1046 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1047 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1048 program_prefix=$ac_optarg ;;
1050 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1051 | --program-suf | --program-su | --program-s)
1052 ac_prev=program_suffix ;;
1053 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1054 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1055 program_suffix=$ac_optarg ;;
1057 -program-transform-name | --program-transform-name \
1058 | --program-transform-nam | --program-transform-na \
1059 | --program-transform-n | --program-transform- \
1060 | --program-transform | --program-transfor \
1061 | --program-transfo | --program-transf \
1062 | --program-trans | --program-tran \
1063 | --progr-tra | --program-tr | --program-t)
1064 ac_prev=program_transform_name ;;
1065 -program-transform-name=* | --program-transform-name=* \
1066 | --program-transform-nam=* | --program-transform-na=* \
1067 | --program-transform-n=* | --program-transform-=* \
1068 | --program-transform=* | --program-transfor=* \
1069 | --program-transfo=* | --program-transf=* \
1070 | --program-trans=* | --program-tran=* \
1071 | --progr-tra=* | --program-tr=* | --program-t=*)
1072 program_transform_name=$ac_optarg ;;
1074 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1076 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1077 pdfdir=$ac_optarg ;;
1079 -psdir | --psdir | --psdi | --psd | --ps)
1081 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1084 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1085 | -silent | --silent | --silen | --sile | --sil)
1088 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1090 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1092 sbindir=$ac_optarg ;;
1094 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1095 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1096 | --sharedst | --shareds | --shared | --share | --shar \
1098 ac_prev=sharedstatedir ;;
1099 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1100 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1101 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1103 sharedstatedir=$ac_optarg ;;
1105 -site | --site | --sit)
1107 -site=* | --site=* | --sit=*)
1110 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1112 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1113 srcdir=$ac_optarg ;;
1115 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1116 | --syscon | --sysco | --sysc | --sys | --sy)
1117 ac_prev=sysconfdir ;;
1118 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1119 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1120 sysconfdir=$ac_optarg ;;
1122 -target | --target | --targe | --targ | --tar | --ta | --t)
1123 ac_prev=target_alias ;;
1124 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1125 target_alias=$ac_optarg ;;
1127 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1130 -version | --version | --versio | --versi | --vers | -V)
1131 ac_init_version=: ;;
1134 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1135 # Reject names that are not valid shell variable names.
1136 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1137 as_fn_error $? "invalid package name: $ac_useropt"
1138 ac_useropt_orig=$ac_useropt
1139 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1140 case $ac_user_opts in
1144 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1145 ac_unrecognized_sep=', ';;
1147 eval with_$ac_useropt=\$ac_optarg ;;
1149 -without-* | --without-*)
1150 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1151 # Reject names that are not valid shell variable names.
1152 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1153 as_fn_error $? "invalid package name: $ac_useropt"
1154 ac_useropt_orig=$ac_useropt
1155 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1156 case $ac_user_opts in
1160 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1161 ac_unrecognized_sep=', ';;
1163 eval with_$ac_useropt=no ;;
1166 # Obsolete; use --with-x.
1169 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1170 | --x-incl | --x-inc | --x-in | --x-i)
1171 ac_prev=x_includes ;;
1172 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1173 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1174 x_includes=$ac_optarg ;;
1176 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1177 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1178 ac_prev=x_libraries ;;
1179 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1180 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1181 x_libraries=$ac_optarg ;;
1183 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1184 Try \`$0 --help' for more information"
1188 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1189 # Reject names that are not valid shell variable names.
1190 case $ac_envvar in #(
1191 '' | [0-9]* | *[!_$as_cr_alnum]* )
1192 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1194 eval $ac_envvar=\$ac_optarg
1195 export $ac_envvar ;;
1198 # FIXME: should be removed in autoconf 3.0.
1199 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1200 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1201 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1202 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1208 if test -n "$ac_prev"; then
1209 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1210 as_fn_error $? "missing argument to $ac_option"
1213 if test -n "$ac_unrecognized_opts"; then
1214 case $enable_option_checking in
1216 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1217 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1221 # Check all directory arguments for consistency.
1222 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1223 datadir sysconfdir sharedstatedir localstatedir includedir \
1224 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1225 libdir localedir mandir
1227 eval ac_val=\$$ac_var
1228 # Remove trailing slashes.
1231 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1232 eval $ac_var=\$ac_val;;
1234 # Be sure to have absolute directory names.
1236 [\\/$]* | ?:[\\/]* ) continue;;
1237 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1239 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1242 # There might be people who depend on the old broken behavior: `$host'
1243 # used to hold the argument of --host etc.
1244 # FIXME: To remove some day.
1247 target=$target_alias
1249 # FIXME: To remove some day.
1250 if test "x$host_alias" != x; then
1251 if test "x$build_alias" = x; then
1252 cross_compiling=maybe
1253 elif test "x$build_alias" != "x$host_alias"; then
1259 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1261 test "$silent" = yes && exec 6>/dev/null
1264 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1265 ac_ls_di=`ls -di .` &&
1266 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1267 as_fn_error $? "working directory cannot be determined"
1268 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1269 as_fn_error $? "pwd does not report name of working directory"
1272 # Find the source files, if location was not specified.
1273 if test -z "$srcdir"; then
1274 ac_srcdir_defaulted=yes
1275 # Try the directory containing this script, then the parent directory.
1276 ac_confdir=`$as_dirname -- "$as_myself" ||
1277 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1278 X"$as_myself" : 'X\(//\)[^/]' \| \
1279 X"$as_myself" : 'X\(//\)$' \| \
1280 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1281 $as_echo X"$as_myself" |
1282 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1300 if test ! -r "$srcdir/$ac_unique_file"; then
1304 ac_srcdir_defaulted=no
1306 if test ! -r "$srcdir/$ac_unique_file"; then
1307 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1308 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1310 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1312 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1314 # When building in place, set srcdir=.
1315 if test "$ac_abs_confdir" = "$ac_pwd"; then
1318 # Remove unnecessary trailing slashes from srcdir.
1319 # Double slashes in file names in object file debugging info
1320 # mess up M-x gdb in Emacs.
1322 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1324 for ac_var in $ac_precious_vars; do
1325 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1326 eval ac_env_${ac_var}_value=\$${ac_var}
1327 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1328 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1332 # Report the --help message.
1334 if test "$ac_init_help" = "long"; then
1335 # Omit some internal or obsolete options to make the list less imposing.
1336 # This message is too long to be a string in the A/UX 3.1 sh.
1338 \`configure' configures GNU make 4.1 to adapt to many kinds of systems.
1340 Usage: $0 [OPTION]... [VAR=VALUE]...
1342 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1343 VAR=VALUE. See below for descriptions of some of the useful variables.
1345 Defaults for the options are specified in brackets.
1348 -h, --help display this help and exit
1349 --help=short display options specific to this package
1350 --help=recursive display the short help of all the included packages
1351 -V, --version display version information and exit
1352 -q, --quiet, --silent do not print \`checking ...' messages
1353 --cache-file=FILE cache test results in FILE [disabled]
1354 -C, --config-cache alias for \`--cache-file=config.cache'
1355 -n, --no-create do not create output files
1356 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1358 Installation directories:
1359 --prefix=PREFIX install architecture-independent files in PREFIX
1360 [$ac_default_prefix]
1361 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1364 By default, \`make install' will install all the files in
1365 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1366 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1367 for instance \`--prefix=\$HOME'.
1369 For better control, use the options below.
1371 Fine tuning of the installation directories:
1372 --bindir=DIR user executables [EPREFIX/bin]
1373 --sbindir=DIR system admin executables [EPREFIX/sbin]
1374 --libexecdir=DIR program executables [EPREFIX/libexec]
1375 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1376 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1377 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1378 --libdir=DIR object code libraries [EPREFIX/lib]
1379 --includedir=DIR C header files [PREFIX/include]
1380 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1381 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1382 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1383 --infodir=DIR info documentation [DATAROOTDIR/info]
1384 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1385 --mandir=DIR man documentation [DATAROOTDIR/man]
1386 --docdir=DIR documentation root [DATAROOTDIR/doc/make]
1387 --htmldir=DIR html documentation [DOCDIR]
1388 --dvidir=DIR dvi documentation [DOCDIR]
1389 --pdfdir=DIR pdf documentation [DOCDIR]
1390 --psdir=DIR ps documentation [DOCDIR]
1396 --program-prefix=PREFIX prepend PREFIX to installed program names
1397 --program-suffix=SUFFIX append SUFFIX to installed program names
1398 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1401 --build=BUILD configure for building on BUILD [guessed]
1402 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1406 if test -n "$ac_init_help"; then
1407 case $ac_init_help in
1408 short | recursive ) echo "Configuration of GNU make 4.1:";;
1413 --disable-option-checking ignore unrecognized --enable/--with options
1414 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1415 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1416 --enable-silent-rules less verbose build output (undo: "make V=1")
1417 --disable-silent-rules verbose build output (undo: "make V=0")
1418 --enable-dependency-tracking
1419 do not reject slow dependency extractors
1420 --disable-dependency-tracking
1421 speeds up one-time build
1422 --disable-nls do not use Native Language Support
1423 --disable-rpath do not hardcode runtime library paths
1424 --disable-largefile omit support for large files
1425 --enable-case-insensitive-file-system
1426 assume file systems are case insensitive
1427 --disable-job-server disallow recursive make communication during -jN
1428 --disable-load disable support for the 'load' operation
1431 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1432 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1433 --with-gnu-ld assume the C compiler uses GNU ld default=no
1434 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1435 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1436 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1437 --without-libintl-prefix don't search for libintl in includedir and libdir
1438 --with-guile Support GNU Guile for embedded scripting
1439 --with-customs=DIR enable remote jobs via Customs--see README.customs
1440 --with-dmalloc use dmalloc, as in http://www.dmalloc.com
1442 Some influential environment variables:
1443 CC C compiler command
1444 CFLAGS C compiler flags
1445 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1446 nonstandard directory <lib dir>
1447 LIBS libraries to pass to the linker, e.g. -l<library>
1448 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1449 you have headers in a nonstandard directory <include dir>
1451 PKG_CONFIG path to pkg-config utility
1453 directories to add to pkg-config's search path
1455 path overriding pkg-config's built-in search path
1457 C compiler flags for GUILE, overriding pkg-config
1458 GUILE_LIBS linker flags for GUILE, overriding pkg-config
1460 Use these variables to override the choices made by `configure' or to help
1461 it to find libraries and programs with nonstandard names/locations.
1463 Report bugs to <bug-make@gnu.org>.
1464 GNU make home page: <http://www.gnu.org/software/make/>.
1465 General help using GNU software: <http://www.gnu.org/gethelp/>.
1470 if test "$ac_init_help" = "recursive"; then
1471 # If there are subdirs, report their specific --help.
1472 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1473 test -d "$ac_dir" ||
1474 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1479 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1481 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1482 # A ".." for each directory in $ac_dir_suffix.
1483 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1484 case $ac_top_builddir_sub in
1485 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1486 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1489 ac_abs_top_builddir=$ac_pwd
1490 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1491 # for backward compatibility:
1492 ac_top_builddir=$ac_top_build_prefix
1495 .) # We are building in place.
1497 ac_top_srcdir=$ac_top_builddir_sub
1498 ac_abs_top_srcdir=$ac_pwd ;;
1499 [\\/]* | ?:[\\/]* ) # Absolute name.
1500 ac_srcdir=$srcdir$ac_dir_suffix;
1501 ac_top_srcdir=$srcdir
1502 ac_abs_top_srcdir=$srcdir ;;
1504 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1505 ac_top_srcdir=$ac_top_build_prefix$srcdir
1506 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1508 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1510 cd "$ac_dir" || { ac_status=$?; continue; }
1511 # Check for guested configure.
1512 if test -f "$ac_srcdir/configure.gnu"; then
1514 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1515 elif test -f "$ac_srcdir/configure"; then
1517 $SHELL "$ac_srcdir/configure" --help=recursive
1519 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1521 cd "$ac_pwd" || { ac_status=$?; break; }
1525 test -n "$ac_init_help" && exit $ac_status
1526 if $ac_init_version; then
1528 GNU make configure 4.1
1529 generated by GNU Autoconf 2.69
1531 Copyright (C) 2012 Free Software Foundation, Inc.
1532 This configure script is free software; the Free Software Foundation
1533 gives unlimited permission to copy, distribute and modify it.
1538 ## ------------------------ ##
1539 ## Autoconf initialization. ##
1540 ## ------------------------ ##
1542 # ac_fn_c_try_compile LINENO
1543 # --------------------------
1544 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1545 ac_fn_c_try_compile ()
1547 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1548 rm -f conftest.$ac_objext
1549 if { { ac_try="$ac_compile"
1551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1552 *) ac_try_echo=$ac_try;;
1554 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1555 $as_echo "$ac_try_echo"; } >&5
1556 (eval "$ac_compile") 2>conftest.err
1558 if test -s conftest.err; then
1559 grep -v '^ *+' conftest.err >conftest.er1
1560 cat conftest.er1 >&5
1561 mv -f conftest.er1 conftest.err
1563 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1564 test $ac_status = 0; } && {
1565 test -z "$ac_c_werror_flag" ||
1566 test ! -s conftest.err
1567 } && test -s conftest.$ac_objext; then :
1570 $as_echo "$as_me: failed program was:" >&5
1571 sed 's/^/| /' conftest.$ac_ext >&5
1575 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1576 as_fn_set_status $ac_retval
1578 } # ac_fn_c_try_compile
1580 # ac_fn_c_try_cpp LINENO
1581 # ----------------------
1582 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1585 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1586 if { { ac_try="$ac_cpp conftest.$ac_ext"
1588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1589 *) ac_try_echo=$ac_try;;
1591 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1592 $as_echo "$ac_try_echo"; } >&5
1593 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1595 if test -s conftest.err; then
1596 grep -v '^ *+' conftest.err >conftest.er1
1597 cat conftest.er1 >&5
1598 mv -f conftest.er1 conftest.err
1600 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1601 test $ac_status = 0; } > conftest.i && {
1602 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1603 test ! -s conftest.err
1607 $as_echo "$as_me: failed program was:" >&5
1608 sed 's/^/| /' conftest.$ac_ext >&5
1612 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1613 as_fn_set_status $ac_retval
1617 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1618 # -------------------------------------------------------
1619 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1620 # the include files in INCLUDES and setting the cache variable VAR
1622 ac_fn_c_check_header_mongrel ()
1624 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1625 if eval \${$3+:} false; then :
1626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1627 $as_echo_n "checking for $2... " >&6; }
1628 if eval \${$3+:} false; then :
1629 $as_echo_n "(cached) " >&6
1632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1633 $as_echo "$ac_res" >&6; }
1635 # Is the header compilable?
1636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1637 $as_echo_n "checking $2 usability... " >&6; }
1638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1639 /* end confdefs.h. */
1643 if ac_fn_c_try_compile "$LINENO"; then :
1644 ac_header_compiler=yes
1646 ac_header_compiler=no
1648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1650 $as_echo "$ac_header_compiler" >&6; }
1652 # Is the header present?
1653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1654 $as_echo_n "checking $2 presence... " >&6; }
1655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1656 /* end confdefs.h. */
1659 if ac_fn_c_try_cpp "$LINENO"; then :
1660 ac_header_preproc=yes
1662 ac_header_preproc=no
1664 rm -f conftest.err conftest.i conftest.$ac_ext
1665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1666 $as_echo "$ac_header_preproc" >&6; }
1668 # So? What about this header?
1669 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1671 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1672 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1673 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1674 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1677 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1678 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1679 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1680 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1681 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1682 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1683 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1684 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1685 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1686 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1687 ( $as_echo "## ------------------------------- ##
1688 ## Report this to bug-make@gnu.org ##
1689 ## ------------------------------- ##"
1690 ) | sed "s/^/$as_me: WARNING: /" >&2
1693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1694 $as_echo_n "checking for $2... " >&6; }
1695 if eval \${$3+:} false; then :
1696 $as_echo_n "(cached) " >&6
1698 eval "$3=\$ac_header_compiler"
1701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1702 $as_echo "$ac_res" >&6; }
1704 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1706 } # ac_fn_c_check_header_mongrel
1708 # ac_fn_c_try_run LINENO
1709 # ----------------------
1710 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1711 # that executables *can* be run.
1714 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1715 if { { ac_try="$ac_link"
1717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1718 *) ac_try_echo=$ac_try;;
1720 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1721 $as_echo "$ac_try_echo"; } >&5
1722 (eval "$ac_link") 2>&5
1724 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1725 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1726 { { case "(($ac_try" in
1727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1728 *) ac_try_echo=$ac_try;;
1730 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1731 $as_echo "$ac_try_echo"; } >&5
1732 (eval "$ac_try") 2>&5
1734 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1735 test $ac_status = 0; }; }; then :
1738 $as_echo "$as_me: program exited with status $ac_status" >&5
1739 $as_echo "$as_me: failed program was:" >&5
1740 sed 's/^/| /' conftest.$ac_ext >&5
1742 ac_retval=$ac_status
1744 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1745 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1746 as_fn_set_status $ac_retval
1750 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1751 # -------------------------------------------------------
1752 # Tests whether HEADER exists and can be compiled using the include files in
1753 # INCLUDES, setting the cache variable VAR accordingly.
1754 ac_fn_c_check_header_compile ()
1756 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1758 $as_echo_n "checking for $2... " >&6; }
1759 if eval \${$3+:} false; then :
1760 $as_echo_n "(cached) " >&6
1762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1763 /* end confdefs.h. */
1767 if ac_fn_c_try_compile "$LINENO"; then :
1772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1776 $as_echo "$ac_res" >&6; }
1777 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1779 } # ac_fn_c_check_header_compile
1781 # ac_fn_c_try_link LINENO
1782 # -----------------------
1783 # Try to link conftest.$ac_ext, and return whether this succeeded.
1786 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1787 rm -f conftest.$ac_objext conftest$ac_exeext
1788 if { { ac_try="$ac_link"
1790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1791 *) ac_try_echo=$ac_try;;
1793 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1794 $as_echo "$ac_try_echo"; } >&5
1795 (eval "$ac_link") 2>conftest.err
1797 if test -s conftest.err; then
1798 grep -v '^ *+' conftest.err >conftest.er1
1799 cat conftest.er1 >&5
1800 mv -f conftest.er1 conftest.err
1802 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1803 test $ac_status = 0; } && {
1804 test -z "$ac_c_werror_flag" ||
1805 test ! -s conftest.err
1806 } && test -s conftest$ac_exeext && {
1807 test "$cross_compiling" = yes ||
1808 test -x conftest$ac_exeext
1812 $as_echo "$as_me: failed program was:" >&5
1813 sed 's/^/| /' conftest.$ac_ext >&5
1817 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1818 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1819 # interfere with the next link command; also delete a directory that is
1820 # left behind by Apple's compiler. We do this before executing the actions.
1821 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1822 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1823 as_fn_set_status $ac_retval
1825 } # ac_fn_c_try_link
1827 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1828 # -------------------------------------------
1829 # Tests whether TYPE exists after having included INCLUDES, setting cache
1830 # variable VAR accordingly.
1831 ac_fn_c_check_type ()
1833 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1835 $as_echo_n "checking for $2... " >&6; }
1836 if eval \${$3+:} false; then :
1837 $as_echo_n "(cached) " >&6
1840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1841 /* end confdefs.h. */
1852 if ac_fn_c_try_compile "$LINENO"; then :
1853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1854 /* end confdefs.h. */
1865 if ac_fn_c_try_compile "$LINENO"; then :
1870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1876 $as_echo "$ac_res" >&6; }
1877 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1879 } # ac_fn_c_check_type
1881 # ac_fn_c_check_func LINENO FUNC VAR
1882 # ----------------------------------
1883 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1884 ac_fn_c_check_func ()
1886 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1888 $as_echo_n "checking for $2... " >&6; }
1889 if eval \${$3+:} false; then :
1890 $as_echo_n "(cached) " >&6
1892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1893 /* end confdefs.h. */
1894 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1895 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1896 #define $2 innocuous_$2
1898 /* System header to define __stub macros and hopefully few prototypes,
1899 which can conflict with char $2 (); below.
1900 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1901 <limits.h> exists even on freestanding compilers. */
1904 # include <limits.h>
1906 # include <assert.h>
1911 /* Override any GCC internal prototype to avoid an error.
1912 Use char because int might match the return type of a GCC
1913 builtin and then its argument prototype would still apply. */
1918 /* The GNU C library defines this for functions which it implements
1919 to always fail with ENOSYS. Some functions are actually named
1920 something starting with __ and the normal name is an alias. */
1921 #if defined __stub_$2 || defined __stub___$2
1933 if ac_fn_c_try_link "$LINENO"; then :
1938 rm -f core conftest.err conftest.$ac_objext \
1939 conftest$ac_exeext conftest.$ac_ext
1942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1943 $as_echo "$ac_res" >&6; }
1944 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1946 } # ac_fn_c_check_func
1948 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1949 # ---------------------------------------------
1950 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1952 ac_fn_c_check_decl ()
1954 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1955 as_decl_name=`echo $2|sed 's/ *(.*//'`
1956 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1958 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1959 if eval \${$3+:} false; then :
1960 $as_echo_n "(cached) " >&6
1962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1963 /* end confdefs.h. */
1968 #ifndef $as_decl_name
1970 (void) $as_decl_use;
1972 (void) $as_decl_name;
1980 if ac_fn_c_try_compile "$LINENO"; then :
1985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1989 $as_echo "$ac_res" >&6; }
1990 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1992 } # ac_fn_c_check_decl
1994 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1995 # ----------------------------------------------------
1996 # Tries to find if the field MEMBER exists in type AGGR, after including
1997 # INCLUDES, setting cache variable VAR accordingly.
1998 ac_fn_c_check_member ()
2000 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2002 $as_echo_n "checking for $2.$3... " >&6; }
2003 if eval \${$4+:} false; then :
2004 $as_echo_n "(cached) " >&6
2006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2007 /* end confdefs.h. */
2019 if ac_fn_c_try_compile "$LINENO"; then :
2022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2023 /* end confdefs.h. */
2029 if (sizeof ac_aggr.$3)
2035 if ac_fn_c_try_compile "$LINENO"; then :
2040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2046 $as_echo "$ac_res" >&6; }
2047 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2049 } # ac_fn_c_check_member
2050 cat >config.log <<_ACEOF
2051 This file contains any messages produced by compilers while
2052 running configure, to aid debugging if configure makes a mistake.
2054 It was created by GNU make $as_me 4.1, which was
2055 generated by GNU Autoconf 2.69. Invocation command line was
2067 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2068 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2069 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2070 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2071 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2073 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2074 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2076 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2077 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2078 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2079 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2080 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2081 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2082 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2090 test -z "$as_dir" && as_dir=.
2091 $as_echo "PATH: $as_dir"
2107 # Keep a trace of the command line.
2108 # Strip out --no-create and --no-recursion so they do not pile up.
2109 # Strip out --silent because we don't want to record it for future runs.
2110 # Also quote any args containing shell meta-characters.
2111 # Make two passes to allow for proper duplicate-argument suppression.
2115 ac_must_keep_next=false
2121 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2122 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2123 | -silent | --silent | --silen | --sile | --sil)
2126 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2129 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2131 as_fn_append ac_configure_args1 " '$ac_arg'"
2132 if test $ac_must_keep_next = true; then
2133 ac_must_keep_next=false # Got value, back to normal.
2136 *=* | --config-cache | -C | -disable-* | --disable-* \
2137 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2138 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2139 | -with-* | --with-* | -without-* | --without-* | --x)
2140 case "$ac_configure_args0 " in
2141 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2144 -* ) ac_must_keep_next=true ;;
2147 as_fn_append ac_configure_args " '$ac_arg'"
2152 { ac_configure_args0=; unset ac_configure_args0;}
2153 { ac_configure_args1=; unset ac_configure_args1;}
2155 # When interrupted or exit'd, cleanup temporary files, and complete
2156 # config.log. We remove comments because anyway the quotes in there
2157 # would cause problems or look ugly.
2158 # WARNING: Use '\'' to represent an apostrophe within the trap.
2159 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2160 trap 'exit_status=$?
2161 # Save into config.log some information that might help in debugging.
2165 $as_echo "## ---------------- ##
2166 ## Cache variables. ##
2167 ## ---------------- ##"
2169 # The following way of writing the cache mishandles newlines in values,
2171 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2172 eval ac_val=\$$ac_var
2176 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2177 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2180 _ | IFS | as_nl) ;; #(
2181 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2182 *) { eval $ac_var=; unset $ac_var;} ;;
2187 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2188 *${as_nl}ac_space=\ *)
2190 "s/'\''/'\''\\\\'\'''\''/g;
2191 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2194 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2201 $as_echo "## ----------------- ##
2202 ## Output variables. ##
2203 ## ----------------- ##"
2205 for ac_var in $ac_subst_vars
2207 eval ac_val=\$$ac_var
2209 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2211 $as_echo "$ac_var='\''$ac_val'\''"
2215 if test -n "$ac_subst_files"; then
2216 $as_echo "## ------------------- ##
2217 ## File substitutions. ##
2218 ## ------------------- ##"
2220 for ac_var in $ac_subst_files
2222 eval ac_val=\$$ac_var
2224 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2226 $as_echo "$ac_var='\''$ac_val'\''"
2231 if test -s confdefs.h; then
2232 $as_echo "## ----------- ##
2239 test "$ac_signal" != 0 &&
2240 $as_echo "$as_me: caught signal $ac_signal"
2241 $as_echo "$as_me: exit $exit_status"
2243 rm -f core *.core core.conftest.* &&
2244 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2247 for ac_signal in 1 2 13 15; do
2248 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2252 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2253 rm -f -r conftest* confdefs.h
2255 $as_echo "/* confdefs.h */" > confdefs.h
2257 # Predefined preprocessor variables.
2259 cat >>confdefs.h <<_ACEOF
2260 #define PACKAGE_NAME "$PACKAGE_NAME"
2263 cat >>confdefs.h <<_ACEOF
2264 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2267 cat >>confdefs.h <<_ACEOF
2268 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2271 cat >>confdefs.h <<_ACEOF
2272 #define PACKAGE_STRING "$PACKAGE_STRING"
2275 cat >>confdefs.h <<_ACEOF
2276 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2279 cat >>confdefs.h <<_ACEOF
2280 #define PACKAGE_URL "$PACKAGE_URL"
2284 # Let the site file select an alternate cache file if it wants to.
2285 # Prefer an explicitly selected file to automatically selected ones.
2288 if test -n "$CONFIG_SITE"; then
2289 # We do not want a PATH search for config.site.
2290 case $CONFIG_SITE in #((
2291 -*) ac_site_file1=./$CONFIG_SITE;;
2292 */*) ac_site_file1=$CONFIG_SITE;;
2293 *) ac_site_file1=./$CONFIG_SITE;;
2295 elif test "x$prefix" != xNONE; then
2296 ac_site_file1=$prefix/share/config.site
2297 ac_site_file2=$prefix/etc/config.site
2299 ac_site_file1=$ac_default_prefix/share/config.site
2300 ac_site_file2=$ac_default_prefix/etc/config.site
2302 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2304 test "x$ac_site_file" = xNONE && continue
2305 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2306 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2307 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2308 sed 's/^/| /' "$ac_site_file" >&5
2310 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2311 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2312 as_fn_error $? "failed to load site script $ac_site_file
2313 See \`config.log' for more details" "$LINENO" 5; }
2317 if test -r "$cache_file"; then
2318 # Some versions of bash will fail to source /dev/null (special files
2319 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2320 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2321 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2322 $as_echo "$as_me: loading cache $cache_file" >&6;}
2324 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2325 *) . "./$cache_file";;
2329 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2330 $as_echo "$as_me: creating cache $cache_file" >&6;}
2334 gt_needs="$gt_needs "
2335 # Check that the precious variables saved in the cache have kept the same
2337 ac_cache_corrupted=false
2338 for ac_var in $ac_precious_vars; do
2339 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2340 eval ac_new_set=\$ac_env_${ac_var}_set
2341 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2342 eval ac_new_val=\$ac_env_${ac_var}_value
2343 case $ac_old_set,$ac_new_set in
2345 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2346 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2347 ac_cache_corrupted=: ;;
2349 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2350 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2351 ac_cache_corrupted=: ;;
2354 if test "x$ac_old_val" != "x$ac_new_val"; then
2355 # differences in whitespace do not lead to failure.
2356 ac_old_val_w=`echo x $ac_old_val`
2357 ac_new_val_w=`echo x $ac_new_val`
2358 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2359 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2360 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2361 ac_cache_corrupted=:
2363 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2364 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2365 eval $ac_var=\$ac_old_val
2367 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2368 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2369 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2370 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2373 # Pass precious variables to config.status.
2374 if test "$ac_new_set" = set; then
2376 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2377 *) ac_arg=$ac_var=$ac_new_val ;;
2379 case " $ac_configure_args " in
2380 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2381 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2385 if $ac_cache_corrupted; then
2386 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2387 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2388 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2389 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2390 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2392 ## -------------------- ##
2393 ## Main body of script. ##
2394 ## -------------------- ##
2397 ac_cpp='$CPP $CPPFLAGS'
2398 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2399 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2400 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2408 for ac_dir in config "$srcdir"/config; do
2409 if test -f "$ac_dir/install-sh"; then
2411 ac_install_sh="$ac_aux_dir/install-sh -c"
2413 elif test -f "$ac_dir/install.sh"; then
2415 ac_install_sh="$ac_aux_dir/install.sh -c"
2417 elif test -f "$ac_dir/shtool"; then
2419 ac_install_sh="$ac_aux_dir/shtool install -c"
2423 if test -z "$ac_aux_dir"; then
2424 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
2427 # These three variables are undocumented and unsupported,
2428 # and are intended to be withdrawn in a future Autoconf release.
2429 # They can cause serious problems if a builder's source tree is in a directory
2430 # whose full name contains unusual characters.
2431 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2432 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2433 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2437 ac_config_headers="$ac_config_headers config.h"
2441 # We have to enable "foreign" because ChangeLog is auto-generated
2442 # We cannot enable -Werror because gettext 0.18.1 has invalid content
2443 # When we update gettext to 0.18.3 or better we can add it again.
2444 am__api_version='1.14'
2446 # Find a good install program. We prefer a C program (faster),
2447 # so one script is as good as another. But avoid the broken or
2448 # incompatible versions:
2449 # SysV /etc/install, /usr/sbin/install
2450 # SunOS /usr/etc/install
2451 # IRIX /sbin/install
2453 # AmigaOS /C/install, which installs bootblocks on floppy discs
2454 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2455 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2456 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2457 # OS/2's system install, which has a completely different semantic
2458 # ./install, which can be erroneously created by make from ./install.sh.
2459 # Reject install programs that cannot install multiple files.
2460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2461 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2462 if test -z "$INSTALL"; then
2463 if ${ac_cv_path_install+:} false; then :
2464 $as_echo_n "(cached) " >&6
2466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2470 test -z "$as_dir" && as_dir=.
2471 # Account for people who put trailing slashes in PATH elements.
2472 case $as_dir/ in #((
2473 ./ | .// | /[cC]/* | \
2474 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2475 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2478 # OSF1 and SCO ODT 3.0 have their own names for install.
2479 # Don't use installbsd from OSF since it installs stuff as root
2481 for ac_prog in ginstall scoinst install; do
2482 for ac_exec_ext in '' $ac_executable_extensions; do
2483 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2484 if test $ac_prog = install &&
2485 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2486 # AIX install. It has an incompatible calling convention.
2488 elif test $ac_prog = install &&
2489 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2490 # program-specific install script used by HP pwplus--don't use.
2493 rm -rf conftest.one conftest.two conftest.dir
2494 echo one > conftest.one
2495 echo two > conftest.two
2497 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2498 test -s conftest.one && test -s conftest.two &&
2499 test -s conftest.dir/conftest.one &&
2500 test -s conftest.dir/conftest.two
2502 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2515 rm -rf conftest.one conftest.two conftest.dir
2518 if test "${ac_cv_path_install+set}" = set; then
2519 INSTALL=$ac_cv_path_install
2521 # As a last resort, use the slow shell script. Don't cache a
2522 # value for INSTALL within a source directory, because that will
2523 # break other packages using the cache if that directory is
2524 # removed, or if the value is a relative name.
2525 INSTALL=$ac_install_sh
2528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2529 $as_echo "$INSTALL" >&6; }
2531 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2532 # It thinks the first close brace ends the variable substitution.
2533 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2535 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2537 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2540 $as_echo_n "checking whether build environment is sane... " >&6; }
2541 # Reject unsafe characters in $srcdir or the absolute working directory
2542 # name. Accept space and tab only in the latter.
2546 *[\\\"\#\$\&\'\`$am_lf]*)
2547 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2550 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2551 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2554 # Do 'set' in a subshell so we don't clobber the current shell's
2555 # arguments. Must try -L first in case configure is actually a
2556 # symlink; some systems play weird games with the mod time of symlinks
2557 # (eg FreeBSD returns the mod time of the symlink's containing
2561 for am_try in 1 2; do
2562 echo "timestamp, slept: $am_has_slept" > conftest.file
2563 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2564 if test "$*" = "X"; then
2566 set X `ls -t "$srcdir/configure" conftest.file`
2568 if test "$*" != "X $srcdir/configure conftest.file" \
2569 && test "$*" != "X conftest.file $srcdir/configure"; then
2571 # If neither matched, then we have a broken ls. This can happen
2572 # if, for instance, CONFIG_SHELL is bash and it inherits a
2573 # broken ls alias from the environment. This has actually
2574 # happened. Such a system could not be considered "sane".
2575 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2576 alias in your environment" "$LINENO" 5
2578 if test "$2" = conftest.file || test $am_try -eq 2; then
2585 test "$2" = conftest.file
2591 as_fn_error $? "newly created file is older than distributed files!
2592 Check your system clock" "$LINENO" 5
2594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2595 $as_echo "yes" >&6; }
2596 # If we didn't sleep, we still need to ensure time stamps of config.status and
2597 # generated files are strictly newer.
2599 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2606 test "$program_prefix" != NONE &&
2607 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2608 # Use a double $ so make ignores it.
2609 test "$program_suffix" != NONE &&
2610 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2611 # Double any \ or $.
2612 # By default was `s,x,x', remove it if useless.
2613 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2614 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2616 # expand $ac_aux_dir to an absolute path
2617 am_aux_dir=`cd $ac_aux_dir && pwd`
2619 if test x"${MISSING+set}" != xset; then
2622 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2624 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2627 # Use eval to expand $SHELL
2628 if eval "$MISSING --is-lightweight"; then
2629 am_missing_run="$MISSING "
2632 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2633 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2636 if test x"${install_sh}" != xset; then
2639 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2641 install_sh="\${SHELL} $am_aux_dir/install-sh"
2645 # Installed binaries are usually stripped using 'strip' when the user
2646 # run "make install-strip". However 'strip' might not be the right
2647 # tool to use in cross-compilation environments, therefore Automake
2648 # will honor the 'STRIP' environment variable to overrule this program.
2649 if test "$cross_compiling" != no; then
2650 if test -n "$ac_tool_prefix"; then
2651 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2652 set dummy ${ac_tool_prefix}strip; ac_word=$2
2653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2654 $as_echo_n "checking for $ac_word... " >&6; }
2655 if ${ac_cv_prog_STRIP+:} false; then :
2656 $as_echo_n "(cached) " >&6
2658 if test -n "$STRIP"; then
2659 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2665 test -z "$as_dir" && as_dir=.
2666 for ac_exec_ext in '' $ac_executable_extensions; do
2667 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2668 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2669 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2678 STRIP=$ac_cv_prog_STRIP
2679 if test -n "$STRIP"; then
2680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2681 $as_echo "$STRIP" >&6; }
2683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2684 $as_echo "no" >&6; }
2689 if test -z "$ac_cv_prog_STRIP"; then
2691 # Extract the first word of "strip", so it can be a program name with args.
2692 set dummy strip; ac_word=$2
2693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2694 $as_echo_n "checking for $ac_word... " >&6; }
2695 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2696 $as_echo_n "(cached) " >&6
2698 if test -n "$ac_ct_STRIP"; then
2699 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2705 test -z "$as_dir" && as_dir=.
2706 for ac_exec_ext in '' $ac_executable_extensions; do
2707 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2708 ac_cv_prog_ac_ct_STRIP="strip"
2709 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2718 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2719 if test -n "$ac_ct_STRIP"; then
2720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2721 $as_echo "$ac_ct_STRIP" >&6; }
2723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2724 $as_echo "no" >&6; }
2727 if test "x$ac_ct_STRIP" = x; then
2730 case $cross_compiling:$ac_tool_warned in
2732 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2733 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2734 ac_tool_warned=yes ;;
2739 STRIP="$ac_cv_prog_STRIP"
2743 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2746 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2747 if test -z "$MKDIR_P"; then
2748 if ${ac_cv_path_mkdir+:} false; then :
2749 $as_echo_n "(cached) " >&6
2751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2752 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2755 test -z "$as_dir" && as_dir=.
2756 for ac_prog in mkdir gmkdir; do
2757 for ac_exec_ext in '' $ac_executable_extensions; do
2758 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2759 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2760 'mkdir (GNU coreutils) '* | \
2761 'mkdir (coreutils) '* | \
2762 'mkdir (fileutils) '4.1*)
2763 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2773 test -d ./--version && rmdir ./--version
2774 if test "${ac_cv_path_mkdir+set}" = set; then
2775 MKDIR_P="$ac_cv_path_mkdir -p"
2777 # As a last resort, use the slow shell script. Don't cache a
2778 # value for MKDIR_P within a source directory, because that will
2779 # break other packages using the cache if that directory is
2780 # removed, or if the value is a relative name.
2781 MKDIR_P="$ac_install_sh -d"
2784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2785 $as_echo "$MKDIR_P" >&6; }
2787 for ac_prog in gawk mawk nawk awk
2789 # Extract the first word of "$ac_prog", so it can be a program name with args.
2790 set dummy $ac_prog; ac_word=$2
2791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2792 $as_echo_n "checking for $ac_word... " >&6; }
2793 if ${ac_cv_prog_AWK+:} false; then :
2794 $as_echo_n "(cached) " >&6
2796 if test -n "$AWK"; then
2797 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2803 test -z "$as_dir" && as_dir=.
2804 for ac_exec_ext in '' $ac_executable_extensions; do
2805 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2806 ac_cv_prog_AWK="$ac_prog"
2807 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2817 if test -n "$AWK"; then
2818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2819 $as_echo "$AWK" >&6; }
2821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2822 $as_echo "no" >&6; }
2826 test -n "$AWK" && break
2829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2830 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2832 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2833 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2834 $as_echo_n "(cached) " >&6
2836 cat >conftest.make <<\_ACEOF
2839 @echo '@@@%%%=$(MAKE)=@@@%%%'
2841 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2842 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2844 eval ac_cv_prog_make_${ac_make}_set=yes;;
2846 eval ac_cv_prog_make_${ac_make}_set=no;;
2850 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2852 $as_echo "yes" >&6; }
2855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2856 $as_echo "no" >&6; }
2857 SET_MAKE="MAKE=${MAKE-make}"
2860 rm -rf .tst 2>/dev/null
2861 mkdir .tst 2>/dev/null
2862 if test -d .tst; then
2867 rmdir .tst 2>/dev/null
2869 # Check whether --enable-silent-rules was given.
2870 if test "${enable_silent_rules+set}" = set; then :
2871 enableval=$enable_silent_rules;
2874 case $enable_silent_rules in # (((
2875 yes) AM_DEFAULT_VERBOSITY=0;;
2876 no) AM_DEFAULT_VERBOSITY=1;;
2877 *) AM_DEFAULT_VERBOSITY=1;;
2879 am_make=${MAKE-make}
2880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2881 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2882 if ${am_cv_make_support_nested_variables+:} false; then :
2883 $as_echo_n "(cached) " >&6
2885 if $as_echo 'TRUE=$(BAR$(V))
2891 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2892 am_cv_make_support_nested_variables=yes
2894 am_cv_make_support_nested_variables=no
2897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2898 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2899 if test $am_cv_make_support_nested_variables = yes; then
2901 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2903 AM_V=$AM_DEFAULT_VERBOSITY
2904 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2908 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2909 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2910 # is not polluted with repeated "-I."
2911 am__isrc=' -I$(srcdir)'
2912 # test to see if srcdir already configured
2913 if test -f $srcdir/config.status; then
2914 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2918 # test whether we have cygpath
2919 if test -z "$CYGPATH_W"; then
2920 if (cygpath --version) >/dev/null 2>/dev/null; then
2921 CYGPATH_W='cygpath -w'
2928 # Define the identity of the package.
2933 cat >>confdefs.h <<_ACEOF
2934 #define PACKAGE "$PACKAGE"
2938 cat >>confdefs.h <<_ACEOF
2939 #define VERSION "$VERSION"
2942 # Some tools Automake needs.
2944 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2947 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2950 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2953 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2956 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2958 # For better backward compatibility. To be removed once Automake 1.9.x
2959 # dies out for good. For more background, see:
2960 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2961 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2962 mkdir_p='$(MKDIR_P)'
2964 # We need awk for the "check" target. The system "awk" is bad on
2966 # Always define AMTAR for backward compatibility. Yes, it's still used
2967 # in the wild :-( We should find a proper way to deprecate it ...
2971 # We'll loop over all known methods to create a tar archive until one works.
2972 _am_tools='gnutar pax cpio none'
2974 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2981 # POSIX will say in a future version that running "rm -f" with no argument
2982 # is OK; and we want to be able to make that assumption in our Makefile
2983 # recipes. So use an aggressive probe to check that the usage we want is
2984 # actually supported "in the wild" to an acceptable degree.
2985 # See automake bug#10828.
2986 # To make any issue more visible, cause the running configure to be aborted
2987 # by default if the 'rm' program in use doesn't match our expectations; the
2988 # user can still override this though.
2989 if rm -f && rm -fr && rm -rf; then : OK; else
2993 Your 'rm' program seems unable to run without file operands specified
2994 on the command line, even when the '-f' option is present. This is contrary
2995 to the behaviour of most rm programs out there, and not conforming with
2996 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2998 Please tell bug-automake@gnu.org about your system, including the value
2999 of your $PATH and any error possibly output before this message. This
3000 can help us improve future automake versions.
3003 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3004 echo 'Configuration will proceed anyway, since you have set the' >&2
3005 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3009 Aborting the configuration process, to ensure you take notice of the issue.
3011 You can download and install GNU coreutils to get an 'rm' implementation
3012 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3014 If you want to complete the configuration process using your problematic
3015 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3016 to "yes", and re-run configure.
3019 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3023 # Checks for programs.
3024 DEPDIR="${am__leading_dot}deps"
3026 ac_config_commands="$ac_config_commands depfiles"
3029 am_make=${MAKE-make}
3030 cat > confinc << 'END'
3032 @echo this is the am__doit target
3035 # If we don't find an include directive, just comment out the code.
3036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3037 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3041 # First try GNU make style include.
3042 echo "include confinc" > confmf
3043 # Ignore all kinds of additional output from 'make'.
3044 case `$am_make -s -f confmf 2> /dev/null` in #(
3045 *the\ am__doit\ target*)
3051 # Now try BSD make style include.
3052 if test "$am__include" = "#"; then
3053 echo '.include "confinc"' > confmf
3054 case `$am_make -s -f confmf 2> /dev/null` in #(
3055 *the\ am__doit\ target*)
3056 am__include=.include
3064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3065 $as_echo "$_am_result" >&6; }
3066 rm -f confinc confmf
3068 # Check whether --enable-dependency-tracking was given.
3069 if test "${enable_dependency_tracking+set}" = set; then :
3070 enableval=$enable_dependency_tracking;
3073 if test "x$enable_dependency_tracking" != xno; then
3074 am_depcomp="$ac_aux_dir/depcomp"
3078 if test "x$enable_dependency_tracking" != xno; then
3088 ac_cpp='$CPP $CPPFLAGS'
3089 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3090 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3091 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3092 if test -n "$ac_tool_prefix"; then
3093 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3094 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3096 $as_echo_n "checking for $ac_word... " >&6; }
3097 if ${ac_cv_prog_CC+:} false; then :
3098 $as_echo_n "(cached) " >&6
3100 if test -n "$CC"; then
3101 ac_cv_prog_CC="$CC" # Let the user override the test.
3103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3107 test -z "$as_dir" && as_dir=.
3108 for ac_exec_ext in '' $ac_executable_extensions; do
3109 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3110 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3111 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3121 if test -n "$CC"; then
3122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3123 $as_echo "$CC" >&6; }
3125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3126 $as_echo "no" >&6; }
3131 if test -z "$ac_cv_prog_CC"; then
3133 # Extract the first word of "gcc", so it can be a program name with args.
3134 set dummy gcc; ac_word=$2
3135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3136 $as_echo_n "checking for $ac_word... " >&6; }
3137 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3138 $as_echo_n "(cached) " >&6
3140 if test -n "$ac_ct_CC"; then
3141 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3147 test -z "$as_dir" && as_dir=.
3148 for ac_exec_ext in '' $ac_executable_extensions; do
3149 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3150 ac_cv_prog_ac_ct_CC="gcc"
3151 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3160 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3161 if test -n "$ac_ct_CC"; then
3162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3163 $as_echo "$ac_ct_CC" >&6; }
3165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3166 $as_echo "no" >&6; }
3169 if test "x$ac_ct_CC" = x; then
3172 case $cross_compiling:$ac_tool_warned in
3174 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3175 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3176 ac_tool_warned=yes ;;
3184 if test -z "$CC"; then
3185 if test -n "$ac_tool_prefix"; then
3186 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3187 set dummy ${ac_tool_prefix}cc; ac_word=$2
3188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3189 $as_echo_n "checking for $ac_word... " >&6; }
3190 if ${ac_cv_prog_CC+:} false; then :
3191 $as_echo_n "(cached) " >&6
3193 if test -n "$CC"; then
3194 ac_cv_prog_CC="$CC" # Let the user override the test.
3196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3200 test -z "$as_dir" && as_dir=.
3201 for ac_exec_ext in '' $ac_executable_extensions; do
3202 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3203 ac_cv_prog_CC="${ac_tool_prefix}cc"
3204 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3214 if test -n "$CC"; then
3215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3216 $as_echo "$CC" >&6; }
3218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3219 $as_echo "no" >&6; }
3225 if test -z "$CC"; then
3226 # Extract the first word of "cc", so it can be a program name with args.
3227 set dummy cc; ac_word=$2
3228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3229 $as_echo_n "checking for $ac_word... " >&6; }
3230 if ${ac_cv_prog_CC+:} false; then :
3231 $as_echo_n "(cached) " >&6
3233 if test -n "$CC"; then
3234 ac_cv_prog_CC="$CC" # Let the user override the test.
3237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3241 test -z "$as_dir" && as_dir=.
3242 for ac_exec_ext in '' $ac_executable_extensions; do
3243 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3244 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3245 ac_prog_rejected=yes
3249 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3256 if test $ac_prog_rejected = yes; then
3257 # We found a bogon in the path, so make sure we never use it.
3258 set dummy $ac_cv_prog_CC
3260 if test $# != 0; then
3261 # We chose a different compiler from the bogus one.
3262 # However, it has the same basename, so the bogon will be chosen
3263 # first if we set CC to just the basename; use the full file name.
3265 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3271 if test -n "$CC"; then
3272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3273 $as_echo "$CC" >&6; }
3275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3276 $as_echo "no" >&6; }
3281 if test -z "$CC"; then
3282 if test -n "$ac_tool_prefix"; then
3283 for ac_prog in cl.exe
3285 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3286 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3288 $as_echo_n "checking for $ac_word... " >&6; }
3289 if ${ac_cv_prog_CC+:} false; then :
3290 $as_echo_n "(cached) " >&6
3292 if test -n "$CC"; then
3293 ac_cv_prog_CC="$CC" # Let the user override the test.
3295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3299 test -z "$as_dir" && as_dir=.
3300 for ac_exec_ext in '' $ac_executable_extensions; do
3301 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3302 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3303 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3313 if test -n "$CC"; then
3314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3315 $as_echo "$CC" >&6; }
3317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3318 $as_echo "no" >&6; }
3322 test -n "$CC" && break
3325 if test -z "$CC"; then
3327 for ac_prog in cl.exe
3329 # Extract the first word of "$ac_prog", so it can be a program name with args.
3330 set dummy $ac_prog; ac_word=$2
3331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3332 $as_echo_n "checking for $ac_word... " >&6; }
3333 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3334 $as_echo_n "(cached) " >&6
3336 if test -n "$ac_ct_CC"; then
3337 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3343 test -z "$as_dir" && as_dir=.
3344 for ac_exec_ext in '' $ac_executable_extensions; do
3345 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3346 ac_cv_prog_ac_ct_CC="$ac_prog"
3347 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3356 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3357 if test -n "$ac_ct_CC"; then
3358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3359 $as_echo "$ac_ct_CC" >&6; }
3361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3362 $as_echo "no" >&6; }
3366 test -n "$ac_ct_CC" && break
3369 if test "x$ac_ct_CC" = x; then
3372 case $cross_compiling:$ac_tool_warned in
3374 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3375 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3376 ac_tool_warned=yes ;;
3385 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3386 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3387 as_fn_error $? "no acceptable C compiler found in \$PATH
3388 See \`config.log' for more details" "$LINENO" 5; }
3390 # Provide some information about the compiler.
3391 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3394 for ac_option in --version -v -V -qversion; do
3395 { { ac_try="$ac_compiler $ac_option >&5"
3397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3398 *) ac_try_echo=$ac_try;;
3400 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3401 $as_echo "$ac_try_echo"; } >&5
3402 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3404 if test -s conftest.err; then
3406 ... rest of stderr output deleted ...
3407 10q' conftest.err >conftest.er1
3408 cat conftest.er1 >&5
3410 rm -f conftest.er1 conftest.err
3411 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3412 test $ac_status = 0; }
3415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3416 /* end confdefs.h. */
3426 ac_clean_files_save=$ac_clean_files
3427 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3428 # Try to create an executable without -o first, disregard a.out.
3429 # It will help us diagnose broken compilers, and finding out an intuition
3431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3432 $as_echo_n "checking whether the C compiler works... " >&6; }
3433 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3435 # The possible output files:
3436 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3439 for ac_file in $ac_files
3442 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3443 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3448 if { { ac_try="$ac_link_default"
3450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3451 *) ac_try_echo=$ac_try;;
3453 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3454 $as_echo "$ac_try_echo"; } >&5
3455 (eval "$ac_link_default") 2>&5
3457 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3458 test $ac_status = 0; }; then :
3459 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3460 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3461 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3462 # so that the user can short-circuit this test for compilers unknown to
3464 for ac_file in $ac_files ''
3466 test -f "$ac_file" || continue
3468 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3471 # We found the default executable, but exeext='' is most
3475 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3477 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3479 # We set ac_cv_exeext here because the later test for it is not
3480 # safe: cross compilers may not add the suffix if given an `-o'
3481 # argument, so we may need to know it at that point already.
3482 # Even if this section looks crufty: it has the advantage of
3489 test "$ac_cv_exeext" = no && ac_cv_exeext=
3494 if test -z "$ac_file"; then :
3495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3496 $as_echo "no" >&6; }
3497 $as_echo "$as_me: failed program was:" >&5
3498 sed 's/^/| /' conftest.$ac_ext >&5
3500 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3501 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3502 as_fn_error 77 "C compiler cannot create executables
3503 See \`config.log' for more details" "$LINENO" 5; }
3505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3506 $as_echo "yes" >&6; }
3508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3509 $as_echo_n "checking for C compiler default output file name... " >&6; }
3510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3511 $as_echo "$ac_file" >&6; }
3512 ac_exeext=$ac_cv_exeext
3514 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3515 ac_clean_files=$ac_clean_files_save
3516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3517 $as_echo_n "checking for suffix of executables... " >&6; }
3518 if { { ac_try="$ac_link"
3520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3521 *) ac_try_echo=$ac_try;;
3523 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3524 $as_echo "$ac_try_echo"; } >&5
3525 (eval "$ac_link") 2>&5
3527 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3528 test $ac_status = 0; }; then :
3529 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3530 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3531 # work properly (i.e., refer to `conftest.exe'), while it won't with
3533 for ac_file in conftest.exe conftest conftest.*; do
3534 test -f "$ac_file" || continue
3536 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3537 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3543 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3544 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3545 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3546 See \`config.log' for more details" "$LINENO" 5; }
3548 rm -f conftest conftest$ac_cv_exeext
3549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3550 $as_echo "$ac_cv_exeext" >&6; }
3552 rm -f conftest.$ac_ext
3553 EXEEXT=$ac_cv_exeext
3555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3556 /* end confdefs.h. */
3561 FILE *f = fopen ("conftest.out", "w");
3562 return ferror (f) || fclose (f) != 0;
3568 ac_clean_files="$ac_clean_files conftest.out"
3569 # Check that the compiler produces executables we can run. If not, either
3570 # the compiler is broken, or we cross compile.
3571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3572 $as_echo_n "checking whether we are cross compiling... " >&6; }
3573 if test "$cross_compiling" != yes; then
3574 { { ac_try="$ac_link"
3576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3577 *) ac_try_echo=$ac_try;;
3579 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3580 $as_echo "$ac_try_echo"; } >&5
3581 (eval "$ac_link") 2>&5
3583 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3584 test $ac_status = 0; }
3585 if { ac_try='./conftest$ac_cv_exeext'
3586 { { case "(($ac_try" in
3587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3588 *) ac_try_echo=$ac_try;;
3590 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3591 $as_echo "$ac_try_echo"; } >&5
3592 (eval "$ac_try") 2>&5
3594 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3595 test $ac_status = 0; }; }; then
3598 if test "$cross_compiling" = maybe; then
3601 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3602 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3603 as_fn_error $? "cannot run C compiled programs.
3604 If you meant to cross compile, use \`--host'.
3605 See \`config.log' for more details" "$LINENO" 5; }
3609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3610 $as_echo "$cross_compiling" >&6; }
3612 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3613 ac_clean_files=$ac_clean_files_save
3614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3615 $as_echo_n "checking for suffix of object files... " >&6; }
3616 if ${ac_cv_objext+:} false; then :
3617 $as_echo_n "(cached) " >&6
3619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3620 /* end confdefs.h. */
3630 rm -f conftest.o conftest.obj
3631 if { { ac_try="$ac_compile"
3633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3634 *) ac_try_echo=$ac_try;;
3636 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3637 $as_echo "$ac_try_echo"; } >&5
3638 (eval "$ac_compile") 2>&5
3640 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3641 test $ac_status = 0; }; then :
3642 for ac_file in conftest.o conftest.obj conftest.*; do
3643 test -f "$ac_file" || continue;
3645 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3646 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3651 $as_echo "$as_me: failed program was:" >&5
3652 sed 's/^/| /' conftest.$ac_ext >&5
3654 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3655 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3656 as_fn_error $? "cannot compute suffix of object files: cannot compile
3657 See \`config.log' for more details" "$LINENO" 5; }
3659 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3662 $as_echo "$ac_cv_objext" >&6; }
3663 OBJEXT=$ac_cv_objext
3665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3666 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3667 if ${ac_cv_c_compiler_gnu+:} false; then :
3668 $as_echo_n "(cached) " >&6
3670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3671 /* end confdefs.h. */
3684 if ac_fn_c_try_compile "$LINENO"; then :
3689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3690 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3694 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3695 if test $ac_compiler_gnu = yes; then
3700 ac_test_CFLAGS=${CFLAGS+set}
3701 ac_save_CFLAGS=$CFLAGS
3702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3703 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3704 if ${ac_cv_prog_cc_g+:} false; then :
3705 $as_echo_n "(cached) " >&6
3707 ac_save_c_werror_flag=$ac_c_werror_flag
3708 ac_c_werror_flag=yes
3711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3712 /* end confdefs.h. */
3722 if ac_fn_c_try_compile "$LINENO"; then :
3726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3727 /* end confdefs.h. */
3737 if ac_fn_c_try_compile "$LINENO"; then :
3740 ac_c_werror_flag=$ac_save_c_werror_flag
3742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3743 /* end confdefs.h. */
3753 if ac_fn_c_try_compile "$LINENO"; then :
3756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3761 ac_c_werror_flag=$ac_save_c_werror_flag
3763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3764 $as_echo "$ac_cv_prog_cc_g" >&6; }
3765 if test "$ac_test_CFLAGS" = set; then
3766 CFLAGS=$ac_save_CFLAGS
3767 elif test $ac_cv_prog_cc_g = yes; then
3768 if test "$GCC" = yes; then
3774 if test "$GCC" = yes; then
3780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3781 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3782 if ${ac_cv_prog_cc_c89+:} false; then :
3783 $as_echo_n "(cached) " >&6
3785 ac_cv_prog_cc_c89=no
3787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3788 /* end confdefs.h. */
3792 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3793 struct buf { int x; };
3794 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3795 static char *e (p, i)
3801 static char *f (char * (*g) (char **, int), char **p, ...)
3806 s = g (p, va_arg (v,int));
3811 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3812 function prototypes and stuff, but not '\xHH' hex character constants.
3813 These don't provoke an error unfortunately, instead are silently treated
3814 as 'x'. The following induces an error, until -std is added to get
3815 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3816 array size at least. It's necessary to write '\x00'==0 to get something
3817 that's true only with -std. */
3818 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3820 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3821 inside strings and character constants. */
3823 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3825 int test (int i, double x);
3826 struct s1 {int (*f) (int a);};
3827 struct s2 {int (*f) (double a);};
3828 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3834 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3839 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3840 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3842 CC="$ac_save_CC $ac_arg"
3843 if ac_fn_c_try_compile "$LINENO"; then :
3844 ac_cv_prog_cc_c89=$ac_arg
3846 rm -f core conftest.err conftest.$ac_objext
3847 test "x$ac_cv_prog_cc_c89" != "xno" && break
3849 rm -f conftest.$ac_ext
3854 case "x$ac_cv_prog_cc_c89" in
3856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3857 $as_echo "none needed" >&6; } ;;
3859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3860 $as_echo "unsupported" >&6; } ;;
3862 CC="$CC $ac_cv_prog_cc_c89"
3863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3864 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3866 if test "x$ac_cv_prog_cc_c89" != xno; then :
3871 ac_cpp='$CPP $CPPFLAGS'
3872 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3873 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3874 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3877 ac_cpp='$CPP $CPPFLAGS'
3878 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3879 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3880 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3882 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3883 if ${am_cv_prog_cc_c_o+:} false; then :
3884 $as_echo_n "(cached) " >&6
3886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3887 /* end confdefs.h. */
3897 # Make sure it works both with $CC and with simple cc.
3898 # Following AC_PROG_CC_C_O, we do the test twice because some
3899 # compilers refuse to overwrite an existing .o file with -o,
3900 # though they will create one.
3901 am_cv_prog_cc_c_o=yes
3903 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3904 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3907 (exit $ac_status); } \
3908 && test -f conftest2.$ac_objext; then
3911 am_cv_prog_cc_c_o=no
3915 rm -f core conftest*
3918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3919 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3920 if test "$am_cv_prog_cc_c_o" != yes; then
3921 # Losing compiler, so override with the script.
3922 # FIXME: It is wrong to rewrite CC.
3923 # But if we don't then we get into trouble of one sort or another.
3924 # A longer-term fix would be to have automake use am__CC in this case,
3925 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3926 CC="$am_aux_dir/compile $CC"
3929 ac_cpp='$CPP $CPPFLAGS'
3930 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3931 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3932 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3935 depcc="$CC" am_compiler_list=
3937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3938 $as_echo_n "checking dependency style of $depcc... " >&6; }
3939 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3940 $as_echo_n "(cached) " >&6
3942 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3943 # We make a subdir and do the tests there. Otherwise we can end up
3944 # making bogus files that we don't know about and never remove. For
3945 # instance it was reported that on HP-UX the gcc test will end up
3946 # making a dummy file named 'D' -- because '-MD' means "put the output
3950 # Copy depcomp to subdir because otherwise we won't find it if we're
3951 # using a relative directory.
3952 cp "$am_depcomp" conftest.dir
3954 # We will build objects and dependencies in a subdirectory because
3955 # it helps to detect inapplicable dependency modes. For instance
3956 # both Tru64's cc and ICC support -MD to output dependencies as a
3957 # side effect of compilation, but ICC will put the dependencies in
3958 # the current directory while Tru64 will put them in the object
3962 am_cv_CC_dependencies_compiler_type=none
3963 if test "$am_compiler_list" = ""; then
3964 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3967 case " $depcc " in #(
3968 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3971 for depmode in $am_compiler_list; do
3972 # Setup a source with many dependencies, because some compilers
3973 # like to wrap large dependency lists on column 80 (with \), and
3974 # we should not choose a depcomp mode which is confused by this.
3976 # We need to recreate these files for each test, as the compiler may
3977 # overwrite some of them when testing with obscure command lines.
3978 # This happens at least with the AIX C compiler.
3980 for i in 1 2 3 4 5 6; do
3981 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3982 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3983 # Solaris 10 /bin/sh.
3984 echo '/* dummy */' > sub/conftst$i.h
3986 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3988 # We check with '-c' and '-o' for the sake of the "dashmstdout"
3989 # mode. It turns out that the SunPro C++ compiler does not properly
3990 # handle '-M -o', and we need to detect this. Also, some Intel
3991 # versions had trouble with output in subdirs.
3992 am__obj=sub/conftest.${OBJEXT-o}
3993 am__minus_obj="-o $am__obj"
3996 # This depmode causes a compiler race in universal mode.
3997 test "$am__universal" = false || continue
4000 # After this tag, mechanisms are not by side-effect, so they'll
4001 # only be used when explicitly requested.
4002 if test "x$enable_dependency_tracking" = xyes; then
4008 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4009 # This compiler won't grok '-c -o', but also, the minuso test has
4010 # not run yet. These depmodes are late enough in the game, and
4011 # so weak that their functioning should not be impacted.
4012 am__obj=conftest.${OBJEXT-o}
4017 if depmode=$depmode \
4018 source=sub/conftest.c object=$am__obj \
4019 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4020 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4021 >/dev/null 2>conftest.err &&
4022 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4023 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4024 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4025 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4026 # icc doesn't choke on unknown options, it will just issue warnings
4027 # or remarks (even with -Werror). So we grep stderr for any message
4028 # that says an option was ignored or not supported.
4029 # When given -MP, icc 7.0 and 7.1 complain thusly:
4030 # icc: Command line warning: ignoring option '-M'; no argument required
4031 # The diagnosis changed in icc 8.0:
4032 # icc: Command line remark: option '-MP' not supported
4033 if (grep 'ignoring option' conftest.err ||
4034 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4035 am_cv_CC_dependencies_compiler_type=$depmode
4044 am_cv_CC_dependencies_compiler_type=none
4048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4049 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4050 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4053 test "x$enable_dependency_tracking" != xno \
4054 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4056 am__fastdepCC_FALSE='#'
4058 am__fastdepCC_TRUE='#'
4059 am__fastdepCC_FALSE=
4065 ac_cpp='$CPP $CPPFLAGS'
4066 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4067 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4068 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4070 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4071 # On Suns, sometimes $CPP names a directory.
4072 if test -n "$CPP" && test -d "$CPP"; then
4075 if test -z "$CPP"; then
4076 if ${ac_cv_prog_CPP+:} false; then :
4077 $as_echo_n "(cached) " >&6
4079 # Double quotes because CPP needs to be expanded
4080 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4083 for ac_c_preproc_warn_flag in '' yes
4085 # Use a header file that comes with gcc, so configuring glibc
4086 # with a fresh cross-compiler works.
4087 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4088 # <limits.h> exists even on freestanding compilers.
4089 # On the NeXT, cc -E runs the code through the compiler's parser,
4090 # not just through cpp. "Syntax error" is here to catch this case.
4091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4092 /* end confdefs.h. */
4094 # include <limits.h>
4096 # include <assert.h>
4100 if ac_fn_c_try_cpp "$LINENO"; then :
4103 # Broken: fails on valid input.
4106 rm -f conftest.err conftest.i conftest.$ac_ext
4108 # OK, works on sane cases. Now check whether nonexistent headers
4109 # can be detected and how.
4110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4111 /* end confdefs.h. */
4112 #include <ac_nonexistent.h>
4114 if ac_fn_c_try_cpp "$LINENO"; then :
4115 # Broken: success on invalid input.
4118 # Passes both tests.
4122 rm -f conftest.err conftest.i conftest.$ac_ext
4125 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4126 rm -f conftest.i conftest.err conftest.$ac_ext
4127 if $ac_preproc_ok; then :
4139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4140 $as_echo "$CPP" >&6; }
4142 for ac_c_preproc_warn_flag in '' yes
4144 # Use a header file that comes with gcc, so configuring glibc
4145 # with a fresh cross-compiler works.
4146 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4147 # <limits.h> exists even on freestanding compilers.
4148 # On the NeXT, cc -E runs the code through the compiler's parser,
4149 # not just through cpp. "Syntax error" is here to catch this case.
4150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4151 /* end confdefs.h. */
4153 # include <limits.h>
4155 # include <assert.h>
4159 if ac_fn_c_try_cpp "$LINENO"; then :
4162 # Broken: fails on valid input.
4165 rm -f conftest.err conftest.i conftest.$ac_ext
4167 # OK, works on sane cases. Now check whether nonexistent headers
4168 # can be detected and how.
4169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4170 /* end confdefs.h. */
4171 #include <ac_nonexistent.h>
4173 if ac_fn_c_try_cpp "$LINENO"; then :
4174 # Broken: success on invalid input.
4177 # Passes both tests.
4181 rm -f conftest.err conftest.i conftest.$ac_ext
4184 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4185 rm -f conftest.i conftest.err conftest.$ac_ext
4186 if $ac_preproc_ok; then :
4189 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4190 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4191 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4192 See \`config.log' for more details" "$LINENO" 5; }
4196 ac_cpp='$CPP $CPPFLAGS'
4197 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4198 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4199 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4203 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4204 if ${ac_cv_path_GREP+:} false; then :
4205 $as_echo_n "(cached) " >&6
4207 if test -z "$GREP"; then
4208 ac_path_GREP_found=false
4209 # Loop through the user's path and test for each of PROGNAME-LIST
4210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4211 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4214 test -z "$as_dir" && as_dir=.
4215 for ac_prog in grep ggrep; do
4216 for ac_exec_ext in '' $ac_executable_extensions; do
4217 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4218 as_fn_executable_p "$ac_path_GREP" || continue
4219 # Check for GNU ac_path_GREP and select it if it is found.
4220 # Check for GNU $ac_path_GREP
4221 case `"$ac_path_GREP" --version 2>&1` in
4223 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4226 $as_echo_n 0123456789 >"conftest.in"
4229 cat "conftest.in" "conftest.in" >"conftest.tmp"
4230 mv "conftest.tmp" "conftest.in"
4231 cp "conftest.in" "conftest.nl"
4232 $as_echo 'GREP' >> "conftest.nl"
4233 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4234 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4235 as_fn_arith $ac_count + 1 && ac_count=$as_val
4236 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4237 # Best one so far, save it but keep looking for a better one
4238 ac_cv_path_GREP="$ac_path_GREP"
4239 ac_path_GREP_max=$ac_count
4241 # 10*(2^10) chars as input seems more than enough
4242 test $ac_count -gt 10 && break
4244 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4247 $ac_path_GREP_found && break 3
4252 if test -z "$ac_cv_path_GREP"; then
4253 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4256 ac_cv_path_GREP=$GREP
4260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4261 $as_echo "$ac_cv_path_GREP" >&6; }
4262 GREP="$ac_cv_path_GREP"
4265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4266 $as_echo_n "checking for egrep... " >&6; }
4267 if ${ac_cv_path_EGREP+:} false; then :
4268 $as_echo_n "(cached) " >&6
4270 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4271 then ac_cv_path_EGREP="$GREP -E"
4273 if test -z "$EGREP"; then
4274 ac_path_EGREP_found=false
4275 # Loop through the user's path and test for each of PROGNAME-LIST
4276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4277 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4280 test -z "$as_dir" && as_dir=.
4281 for ac_prog in egrep; do
4282 for ac_exec_ext in '' $ac_executable_extensions; do
4283 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4284 as_fn_executable_p "$ac_path_EGREP" || continue
4285 # Check for GNU ac_path_EGREP and select it if it is found.
4286 # Check for GNU $ac_path_EGREP
4287 case `"$ac_path_EGREP" --version 2>&1` in
4289 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4292 $as_echo_n 0123456789 >"conftest.in"
4295 cat "conftest.in" "conftest.in" >"conftest.tmp"
4296 mv "conftest.tmp" "conftest.in"
4297 cp "conftest.in" "conftest.nl"
4298 $as_echo 'EGREP' >> "conftest.nl"
4299 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4300 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4301 as_fn_arith $ac_count + 1 && ac_count=$as_val
4302 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4303 # Best one so far, save it but keep looking for a better one
4304 ac_cv_path_EGREP="$ac_path_EGREP"
4305 ac_path_EGREP_max=$ac_count
4307 # 10*(2^10) chars as input seems more than enough
4308 test $ac_count -gt 10 && break
4310 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4313 $ac_path_EGREP_found && break 3
4318 if test -z "$ac_cv_path_EGREP"; then
4319 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4322 ac_cv_path_EGREP=$EGREP
4327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4328 $as_echo "$ac_cv_path_EGREP" >&6; }
4329 EGREP="$ac_cv_path_EGREP"
4332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4333 $as_echo_n "checking for ANSI C header files... " >&6; }
4334 if ${ac_cv_header_stdc+:} false; then :
4335 $as_echo_n "(cached) " >&6
4337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4338 /* end confdefs.h. */
4352 if ac_fn_c_try_compile "$LINENO"; then :
4353 ac_cv_header_stdc=yes
4355 ac_cv_header_stdc=no
4357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4359 if test $ac_cv_header_stdc = yes; then
4360 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4362 /* end confdefs.h. */
4366 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4367 $EGREP "memchr" >/dev/null 2>&1; then :
4370 ac_cv_header_stdc=no
4376 if test $ac_cv_header_stdc = yes; then
4377 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4379 /* end confdefs.h. */
4383 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4384 $EGREP "free" >/dev/null 2>&1; then :
4387 ac_cv_header_stdc=no
4393 if test $ac_cv_header_stdc = yes; then
4394 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4395 if test "$cross_compiling" = yes; then :
4398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4399 /* end confdefs.h. */
4402 #if ((' ' & 0x0FF) == 0x020)
4403 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4404 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4406 # define ISLOWER(c) \
4407 (('a' <= (c) && (c) <= 'i') \
4408 || ('j' <= (c) && (c) <= 'r') \
4409 || ('s' <= (c) && (c) <= 'z'))
4410 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4413 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4418 for (i = 0; i < 256; i++)
4419 if (XOR (islower (i), ISLOWER (i))
4420 || toupper (i) != TOUPPER (i))
4425 if ac_fn_c_try_run "$LINENO"; then :
4428 ac_cv_header_stdc=no
4430 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4431 conftest.$ac_objext conftest.beam conftest.$ac_ext
4436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4437 $as_echo "$ac_cv_header_stdc" >&6; }
4438 if test $ac_cv_header_stdc = yes; then
4440 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4444 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4445 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4446 inttypes.h stdint.h unistd.h
4448 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4449 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4451 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4452 cat >>confdefs.h <<_ACEOF
4453 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4462 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4463 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4470 if test "$MINIX" = yes; then
4472 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4475 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4478 $as_echo "#define _MINIX 1" >>confdefs.h
4483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4484 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4485 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4486 $as_echo_n "(cached) " >&6
4488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4489 /* end confdefs.h. */
4491 # define __EXTENSIONS__ 1
4492 $ac_includes_default
4501 if ac_fn_c_try_compile "$LINENO"; then :
4502 ac_cv_safe_to_define___extensions__=yes
4504 ac_cv_safe_to_define___extensions__=no
4506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4509 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4510 test $ac_cv_safe_to_define___extensions__ = yes &&
4511 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4513 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4515 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4517 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4519 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4523 ac_cpp='$CPP $CPPFLAGS'
4524 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4525 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4526 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4527 if test -n "$ac_tool_prefix"; then
4528 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4529 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4531 $as_echo_n "checking for $ac_word... " >&6; }
4532 if ${ac_cv_prog_CC+:} false; then :
4533 $as_echo_n "(cached) " >&6
4535 if test -n "$CC"; then
4536 ac_cv_prog_CC="$CC" # Let the user override the test.
4538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4542 test -z "$as_dir" && as_dir=.
4543 for ac_exec_ext in '' $ac_executable_extensions; do
4544 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4545 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4546 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4556 if test -n "$CC"; then
4557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4558 $as_echo "$CC" >&6; }
4560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4561 $as_echo "no" >&6; }
4566 if test -z "$ac_cv_prog_CC"; then
4568 # Extract the first word of "gcc", so it can be a program name with args.
4569 set dummy gcc; ac_word=$2
4570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4571 $as_echo_n "checking for $ac_word... " >&6; }
4572 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4573 $as_echo_n "(cached) " >&6
4575 if test -n "$ac_ct_CC"; then
4576 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4582 test -z "$as_dir" && as_dir=.
4583 for ac_exec_ext in '' $ac_executable_extensions; do
4584 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4585 ac_cv_prog_ac_ct_CC="gcc"
4586 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4595 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4596 if test -n "$ac_ct_CC"; then
4597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4598 $as_echo "$ac_ct_CC" >&6; }
4600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4601 $as_echo "no" >&6; }
4604 if test "x$ac_ct_CC" = x; then
4607 case $cross_compiling:$ac_tool_warned in
4609 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4610 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4611 ac_tool_warned=yes ;;
4619 if test -z "$CC"; then
4620 if test -n "$ac_tool_prefix"; then
4621 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4622 set dummy ${ac_tool_prefix}cc; ac_word=$2
4623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4624 $as_echo_n "checking for $ac_word... " >&6; }
4625 if ${ac_cv_prog_CC+:} false; then :
4626 $as_echo_n "(cached) " >&6
4628 if test -n "$CC"; then
4629 ac_cv_prog_CC="$CC" # Let the user override the test.
4631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4635 test -z "$as_dir" && as_dir=.
4636 for ac_exec_ext in '' $ac_executable_extensions; do
4637 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4638 ac_cv_prog_CC="${ac_tool_prefix}cc"
4639 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4649 if test -n "$CC"; then
4650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4651 $as_echo "$CC" >&6; }
4653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4654 $as_echo "no" >&6; }
4660 if test -z "$CC"; then
4661 # Extract the first word of "cc", so it can be a program name with args.
4662 set dummy cc; ac_word=$2
4663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4664 $as_echo_n "checking for $ac_word... " >&6; }
4665 if ${ac_cv_prog_CC+:} false; then :
4666 $as_echo_n "(cached) " >&6
4668 if test -n "$CC"; then
4669 ac_cv_prog_CC="$CC" # Let the user override the test.
4672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4676 test -z "$as_dir" && as_dir=.
4677 for ac_exec_ext in '' $ac_executable_extensions; do
4678 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4679 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4680 ac_prog_rejected=yes
4684 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4691 if test $ac_prog_rejected = yes; then
4692 # We found a bogon in the path, so make sure we never use it.
4693 set dummy $ac_cv_prog_CC
4695 if test $# != 0; then
4696 # We chose a different compiler from the bogus one.
4697 # However, it has the same basename, so the bogon will be chosen
4698 # first if we set CC to just the basename; use the full file name.
4700 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4706 if test -n "$CC"; then
4707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4708 $as_echo "$CC" >&6; }
4710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4711 $as_echo "no" >&6; }
4716 if test -z "$CC"; then
4717 if test -n "$ac_tool_prefix"; then
4718 for ac_prog in cl.exe
4720 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4721 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4723 $as_echo_n "checking for $ac_word... " >&6; }
4724 if ${ac_cv_prog_CC+:} false; then :
4725 $as_echo_n "(cached) " >&6
4727 if test -n "$CC"; then
4728 ac_cv_prog_CC="$CC" # Let the user override the test.
4730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4734 test -z "$as_dir" && as_dir=.
4735 for ac_exec_ext in '' $ac_executable_extensions; do
4736 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4737 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4738 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4748 if test -n "$CC"; then
4749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4750 $as_echo "$CC" >&6; }
4752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4753 $as_echo "no" >&6; }
4757 test -n "$CC" && break
4760 if test -z "$CC"; then
4762 for ac_prog in cl.exe
4764 # Extract the first word of "$ac_prog", so it can be a program name with args.
4765 set dummy $ac_prog; ac_word=$2
4766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4767 $as_echo_n "checking for $ac_word... " >&6; }
4768 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4769 $as_echo_n "(cached) " >&6
4771 if test -n "$ac_ct_CC"; then
4772 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4778 test -z "$as_dir" && as_dir=.
4779 for ac_exec_ext in '' $ac_executable_extensions; do
4780 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4781 ac_cv_prog_ac_ct_CC="$ac_prog"
4782 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4791 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4792 if test -n "$ac_ct_CC"; then
4793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4794 $as_echo "$ac_ct_CC" >&6; }
4796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4797 $as_echo "no" >&6; }
4801 test -n "$ac_ct_CC" && break
4804 if test "x$ac_ct_CC" = x; then
4807 case $cross_compiling:$ac_tool_warned in
4809 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4810 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4811 ac_tool_warned=yes ;;
4820 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4821 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4822 as_fn_error $? "no acceptable C compiler found in \$PATH
4823 See \`config.log' for more details" "$LINENO" 5; }
4825 # Provide some information about the compiler.
4826 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4829 for ac_option in --version -v -V -qversion; do
4830 { { ac_try="$ac_compiler $ac_option >&5"
4832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4833 *) ac_try_echo=$ac_try;;
4835 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4836 $as_echo "$ac_try_echo"; } >&5
4837 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4839 if test -s conftest.err; then
4841 ... rest of stderr output deleted ...
4842 10q' conftest.err >conftest.er1
4843 cat conftest.er1 >&5
4845 rm -f conftest.er1 conftest.err
4846 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4847 test $ac_status = 0; }
4850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4851 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4852 if ${ac_cv_c_compiler_gnu+:} false; then :
4853 $as_echo_n "(cached) " >&6
4855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4856 /* end confdefs.h. */
4869 if ac_fn_c_try_compile "$LINENO"; then :
4874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4875 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4879 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4880 if test $ac_compiler_gnu = yes; then
4885 ac_test_CFLAGS=${CFLAGS+set}
4886 ac_save_CFLAGS=$CFLAGS
4887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4888 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4889 if ${ac_cv_prog_cc_g+:} false; then :
4890 $as_echo_n "(cached) " >&6
4892 ac_save_c_werror_flag=$ac_c_werror_flag
4893 ac_c_werror_flag=yes
4896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4897 /* end confdefs.h. */
4907 if ac_fn_c_try_compile "$LINENO"; then :
4911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4912 /* end confdefs.h. */
4922 if ac_fn_c_try_compile "$LINENO"; then :
4925 ac_c_werror_flag=$ac_save_c_werror_flag
4927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4928 /* end confdefs.h. */
4938 if ac_fn_c_try_compile "$LINENO"; then :
4941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4946 ac_c_werror_flag=$ac_save_c_werror_flag
4948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4949 $as_echo "$ac_cv_prog_cc_g" >&6; }
4950 if test "$ac_test_CFLAGS" = set; then
4951 CFLAGS=$ac_save_CFLAGS
4952 elif test $ac_cv_prog_cc_g = yes; then
4953 if test "$GCC" = yes; then
4959 if test "$GCC" = yes; then
4965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4966 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4967 if ${ac_cv_prog_cc_c89+:} false; then :
4968 $as_echo_n "(cached) " >&6
4970 ac_cv_prog_cc_c89=no
4972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4973 /* end confdefs.h. */
4977 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4978 struct buf { int x; };
4979 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4980 static char *e (p, i)
4986 static char *f (char * (*g) (char **, int), char **p, ...)
4991 s = g (p, va_arg (v,int));
4996 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4997 function prototypes and stuff, but not '\xHH' hex character constants.
4998 These don't provoke an error unfortunately, instead are silently treated
4999 as 'x'. The following induces an error, until -std is added to get
5000 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5001 array size at least. It's necessary to write '\x00'==0 to get something
5002 that's true only with -std. */
5003 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5005 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5006 inside strings and character constants. */
5008 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5010 int test (int i, double x);
5011 struct s1 {int (*f) (int a);};
5012 struct s2 {int (*f) (double a);};
5013 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5019 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5024 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5025 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5027 CC="$ac_save_CC $ac_arg"
5028 if ac_fn_c_try_compile "$LINENO"; then :
5029 ac_cv_prog_cc_c89=$ac_arg
5031 rm -f core conftest.err conftest.$ac_objext
5032 test "x$ac_cv_prog_cc_c89" != "xno" && break
5034 rm -f conftest.$ac_ext
5039 case "x$ac_cv_prog_cc_c89" in
5041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5042 $as_echo "none needed" >&6; } ;;
5044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5045 $as_echo "unsupported" >&6; } ;;
5047 CC="$CC $ac_cv_prog_cc_c89"
5048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5049 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5051 if test "x$ac_cv_prog_cc_c89" != xno; then :
5056 ac_cpp='$CPP $CPPFLAGS'
5057 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5058 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5059 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5062 ac_cpp='$CPP $CPPFLAGS'
5063 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5064 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5065 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5067 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5068 if ${am_cv_prog_cc_c_o+:} false; then :
5069 $as_echo_n "(cached) " >&6
5071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5072 /* end confdefs.h. */
5082 # Make sure it works both with $CC and with simple cc.
5083 # Following AC_PROG_CC_C_O, we do the test twice because some
5084 # compilers refuse to overwrite an existing .o file with -o,
5085 # though they will create one.
5086 am_cv_prog_cc_c_o=yes
5088 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5089 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5092 (exit $ac_status); } \
5093 && test -f conftest2.$ac_objext; then
5096 am_cv_prog_cc_c_o=no
5100 rm -f core conftest*
5103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5104 $as_echo "$am_cv_prog_cc_c_o" >&6; }
5105 if test "$am_cv_prog_cc_c_o" != yes; then
5106 # Losing compiler, so override with the script.
5107 # FIXME: It is wrong to rewrite CC.
5108 # But if we don't then we get into trouble of one sort or another.
5109 # A longer-term fix would be to have automake use am__CC in this case,
5110 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5111 CC="$am_aux_dir/compile $CC"
5114 ac_cpp='$CPP $CPPFLAGS'
5115 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5116 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5117 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5120 depcc="$CC" am_compiler_list=
5122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5123 $as_echo_n "checking dependency style of $depcc... " >&6; }
5124 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5125 $as_echo_n "(cached) " >&6
5127 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5128 # We make a subdir and do the tests there. Otherwise we can end up
5129 # making bogus files that we don't know about and never remove. For
5130 # instance it was reported that on HP-UX the gcc test will end up
5131 # making a dummy file named 'D' -- because '-MD' means "put the output
5135 # Copy depcomp to subdir because otherwise we won't find it if we're
5136 # using a relative directory.
5137 cp "$am_depcomp" conftest.dir
5139 # We will build objects and dependencies in a subdirectory because
5140 # it helps to detect inapplicable dependency modes. For instance
5141 # both Tru64's cc and ICC support -MD to output dependencies as a
5142 # side effect of compilation, but ICC will put the dependencies in
5143 # the current directory while Tru64 will put them in the object
5147 am_cv_CC_dependencies_compiler_type=none
5148 if test "$am_compiler_list" = ""; then
5149 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5152 case " $depcc " in #(
5153 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5156 for depmode in $am_compiler_list; do
5157 # Setup a source with many dependencies, because some compilers
5158 # like to wrap large dependency lists on column 80 (with \), and
5159 # we should not choose a depcomp mode which is confused by this.
5161 # We need to recreate these files for each test, as the compiler may
5162 # overwrite some of them when testing with obscure command lines.
5163 # This happens at least with the AIX C compiler.
5165 for i in 1 2 3 4 5 6; do
5166 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5167 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5168 # Solaris 10 /bin/sh.
5169 echo '/* dummy */' > sub/conftst$i.h
5171 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5173 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5174 # mode. It turns out that the SunPro C++ compiler does not properly
5175 # handle '-M -o', and we need to detect this. Also, some Intel
5176 # versions had trouble with output in subdirs.
5177 am__obj=sub/conftest.${OBJEXT-o}
5178 am__minus_obj="-o $am__obj"
5181 # This depmode causes a compiler race in universal mode.
5182 test "$am__universal" = false || continue
5185 # After this tag, mechanisms are not by side-effect, so they'll
5186 # only be used when explicitly requested.
5187 if test "x$enable_dependency_tracking" = xyes; then
5193 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5194 # This compiler won't grok '-c -o', but also, the minuso test has
5195 # not run yet. These depmodes are late enough in the game, and
5196 # so weak that their functioning should not be impacted.
5197 am__obj=conftest.${OBJEXT-o}
5202 if depmode=$depmode \
5203 source=sub/conftest.c object=$am__obj \
5204 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5205 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5206 >/dev/null 2>conftest.err &&
5207 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5208 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5209 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5210 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5211 # icc doesn't choke on unknown options, it will just issue warnings
5212 # or remarks (even with -Werror). So we grep stderr for any message
5213 # that says an option was ignored or not supported.
5214 # When given -MP, icc 7.0 and 7.1 complain thusly:
5215 # icc: Command line warning: ignoring option '-M'; no argument required
5216 # The diagnosis changed in icc 8.0:
5217 # icc: Command line remark: option '-MP' not supported
5218 if (grep 'ignoring option' conftest.err ||
5219 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5220 am_cv_CC_dependencies_compiler_type=$depmode
5229 am_cv_CC_dependencies_compiler_type=none
5233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5234 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5235 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5238 test "x$enable_dependency_tracking" != xno \
5239 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5241 am__fastdepCC_FALSE='#'
5243 am__fastdepCC_TRUE='#'
5244 am__fastdepCC_FALSE=
5249 if test -n "$ac_tool_prefix"; then
5250 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5251 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5253 $as_echo_n "checking for $ac_word... " >&6; }
5254 if ${ac_cv_prog_RANLIB+:} false; then :
5255 $as_echo_n "(cached) " >&6
5257 if test -n "$RANLIB"; then
5258 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5264 test -z "$as_dir" && as_dir=.
5265 for ac_exec_ext in '' $ac_executable_extensions; do
5266 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5267 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5268 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5277 RANLIB=$ac_cv_prog_RANLIB
5278 if test -n "$RANLIB"; then
5279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5280 $as_echo "$RANLIB" >&6; }
5282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5283 $as_echo "no" >&6; }
5288 if test -z "$ac_cv_prog_RANLIB"; then
5289 ac_ct_RANLIB=$RANLIB
5290 # Extract the first word of "ranlib", so it can be a program name with args.
5291 set dummy ranlib; ac_word=$2
5292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5293 $as_echo_n "checking for $ac_word... " >&6; }
5294 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5295 $as_echo_n "(cached) " >&6
5297 if test -n "$ac_ct_RANLIB"; then
5298 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5304 test -z "$as_dir" && as_dir=.
5305 for ac_exec_ext in '' $ac_executable_extensions; do
5306 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5307 ac_cv_prog_ac_ct_RANLIB="ranlib"
5308 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5317 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5318 if test -n "$ac_ct_RANLIB"; then
5319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5320 $as_echo "$ac_ct_RANLIB" >&6; }
5322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5323 $as_echo "no" >&6; }
5326 if test "x$ac_ct_RANLIB" = x; then
5329 case $cross_compiling:$ac_tool_warned in
5331 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5332 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5333 ac_tool_warned=yes ;;
5335 RANLIB=$ac_ct_RANLIB
5338 RANLIB="$ac_cv_prog_RANLIB"
5342 ac_cpp='$CPP $CPPFLAGS'
5343 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5344 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5345 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5347 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5348 # On Suns, sometimes $CPP names a directory.
5349 if test -n "$CPP" && test -d "$CPP"; then
5352 if test -z "$CPP"; then
5353 if ${ac_cv_prog_CPP+:} false; then :
5354 $as_echo_n "(cached) " >&6
5356 # Double quotes because CPP needs to be expanded
5357 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5360 for ac_c_preproc_warn_flag in '' yes
5362 # Use a header file that comes with gcc, so configuring glibc
5363 # with a fresh cross-compiler works.
5364 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5365 # <limits.h> exists even on freestanding compilers.
5366 # On the NeXT, cc -E runs the code through the compiler's parser,
5367 # not just through cpp. "Syntax error" is here to catch this case.
5368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5369 /* end confdefs.h. */
5371 # include <limits.h>
5373 # include <assert.h>
5377 if ac_fn_c_try_cpp "$LINENO"; then :
5380 # Broken: fails on valid input.
5383 rm -f conftest.err conftest.i conftest.$ac_ext
5385 # OK, works on sane cases. Now check whether nonexistent headers
5386 # can be detected and how.
5387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5388 /* end confdefs.h. */
5389 #include <ac_nonexistent.h>
5391 if ac_fn_c_try_cpp "$LINENO"; then :
5392 # Broken: success on invalid input.
5395 # Passes both tests.
5399 rm -f conftest.err conftest.i conftest.$ac_ext
5402 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5403 rm -f conftest.i conftest.err conftest.$ac_ext
5404 if $ac_preproc_ok; then :
5416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5417 $as_echo "$CPP" >&6; }
5419 for ac_c_preproc_warn_flag in '' yes
5421 # Use a header file that comes with gcc, so configuring glibc
5422 # with a fresh cross-compiler works.
5423 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5424 # <limits.h> exists even on freestanding compilers.
5425 # On the NeXT, cc -E runs the code through the compiler's parser,
5426 # not just through cpp. "Syntax error" is here to catch this case.
5427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5428 /* end confdefs.h. */
5430 # include <limits.h>
5432 # include <assert.h>
5436 if ac_fn_c_try_cpp "$LINENO"; then :
5439 # Broken: fails on valid input.
5442 rm -f conftest.err conftest.i conftest.$ac_ext
5444 # OK, works on sane cases. Now check whether nonexistent headers
5445 # can be detected and how.
5446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5447 /* end confdefs.h. */
5448 #include <ac_nonexistent.h>
5450 if ac_fn_c_try_cpp "$LINENO"; then :
5451 # Broken: success on invalid input.
5454 # Passes both tests.
5458 rm -f conftest.err conftest.i conftest.$ac_ext
5461 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5462 rm -f conftest.i conftest.err conftest.$ac_ext
5463 if $ac_preproc_ok; then :
5466 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5467 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5468 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5469 See \`config.log' for more details" "$LINENO" 5; }
5473 ac_cpp='$CPP $CPPFLAGS'
5474 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5475 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5476 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5478 # Extract the first word of "ar", so it can be a program name with args.
5479 set dummy ar; ac_word=$2
5480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5481 $as_echo_n "checking for $ac_word... " >&6; }
5482 if ${ac_cv_prog_AR+:} false; then :
5483 $as_echo_n "(cached) " >&6
5485 if test -n "$AR"; then
5486 ac_cv_prog_AR="$AR" # Let the user override the test.
5488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5492 test -z "$as_dir" && as_dir=.
5493 for ac_exec_ext in '' $ac_executable_extensions; do
5494 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5496 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5503 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
5507 if test -n "$AR"; then
5508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5509 $as_echo "$AR" >&6; }
5511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5512 $as_echo "no" >&6; }
5516 # Perl is needed for the test suite (only)
5517 # Extract the first word of "perl", so it can be a program name with args.
5518 set dummy perl; ac_word=$2
5519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5520 $as_echo_n "checking for $ac_word... " >&6; }
5521 if ${ac_cv_prog_PERL+:} false; then :
5522 $as_echo_n "(cached) " >&6
5524 if test -n "$PERL"; then
5525 ac_cv_prog_PERL="$PERL" # Let the user override the test.
5527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5531 test -z "$as_dir" && as_dir=.
5532 for ac_exec_ext in '' $ac_executable_extensions; do
5533 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5534 ac_cv_prog_PERL="perl"
5535 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5542 test -z "$ac_cv_prog_PERL" && ac_cv_prog_PERL="perl"
5545 PERL=$ac_cv_prog_PERL
5546 if test -n "$PERL"; then
5547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
5548 $as_echo "$PERL" >&6; }
5550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5551 $as_echo "no" >&6; }
5556 # Needed for w32/Makefile.am
5557 if test -n "$ac_tool_prefix"; then
5558 for ac_prog in ar lib "link -lib"
5560 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5561 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5563 $as_echo_n "checking for $ac_word... " >&6; }
5564 if ${ac_cv_prog_AR+:} false; then :
5565 $as_echo_n "(cached) " >&6
5567 if test -n "$AR"; then
5568 ac_cv_prog_AR="$AR" # Let the user override the test.
5570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5574 test -z "$as_dir" && as_dir=.
5575 for ac_exec_ext in '' $ac_executable_extensions; do
5576 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5577 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5578 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5588 if test -n "$AR"; then
5589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5590 $as_echo "$AR" >&6; }
5592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5593 $as_echo "no" >&6; }
5597 test -n "$AR" && break
5600 if test -z "$AR"; then
5602 for ac_prog in ar lib "link -lib"
5604 # Extract the first word of "$ac_prog", so it can be a program name with args.
5605 set dummy $ac_prog; ac_word=$2
5606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5607 $as_echo_n "checking for $ac_word... " >&6; }
5608 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5609 $as_echo_n "(cached) " >&6
5611 if test -n "$ac_ct_AR"; then
5612 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5618 test -z "$as_dir" && as_dir=.
5619 for ac_exec_ext in '' $ac_executable_extensions; do
5620 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5621 ac_cv_prog_ac_ct_AR="$ac_prog"
5622 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5631 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5632 if test -n "$ac_ct_AR"; then
5633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5634 $as_echo "$ac_ct_AR" >&6; }
5636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5637 $as_echo "no" >&6; }
5641 test -n "$ac_ct_AR" && break
5644 if test "x$ac_ct_AR" = x; then
5647 case $cross_compiling:$ac_tool_warned in
5649 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5650 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5651 ac_tool_warned=yes ;;
5659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
5660 $as_echo_n "checking the archiver ($AR) interface... " >&6; }
5661 if ${am_cv_ar_interface+:} false; then :
5662 $as_echo_n "(cached) " >&6
5665 ac_cpp='$CPP $CPPFLAGS'
5666 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5667 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5668 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5670 am_cv_ar_interface=ar
5671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5672 /* end confdefs.h. */
5673 int some_variable = 0;
5675 if ac_fn_c_try_compile "$LINENO"; then :
5676 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
5677 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5678 (eval $am_ar_try) 2>&5
5680 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5681 test $ac_status = 0; }
5682 if test "$ac_status" -eq 0; then
5683 am_cv_ar_interface=ar
5685 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
5686 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5687 (eval $am_ar_try) 2>&5
5689 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5690 test $ac_status = 0; }
5691 if test "$ac_status" -eq 0; then
5692 am_cv_ar_interface=lib
5694 am_cv_ar_interface=unknown
5697 rm -f conftest.lib libconftest.a
5700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5702 ac_cpp='$CPP $CPPFLAGS'
5703 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5704 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5705 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
5709 $as_echo "$am_cv_ar_interface" >&6; }
5711 case $am_cv_ar_interface in
5715 # Microsoft lib, so override with the ar-lib wrapper script.
5716 # FIXME: It is wrong to rewrite AR.
5717 # But if we don't then we get into trouble of one sort or another.
5718 # A longer-term fix would be to have automake use am__AR in this case,
5719 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
5721 AR="$am_aux_dir/ar-lib $AR"
5724 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
5729 # Specialized system macros
5730 # Make sure we can run config.sub.
5731 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5732 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5735 $as_echo_n "checking build system type... " >&6; }
5736 if ${ac_cv_build+:} false; then :
5737 $as_echo_n "(cached) " >&6
5739 ac_build_alias=$build_alias
5740 test "x$ac_build_alias" = x &&
5741 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5742 test "x$ac_build_alias" = x &&
5743 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5744 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5745 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5749 $as_echo "$ac_cv_build" >&6; }
5750 case $ac_cv_build in
5752 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5755 ac_save_IFS=$IFS; IFS='-'
5761 # Remember, the first character of IFS is used to create $*,
5762 # except with old shells:
5765 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5769 $as_echo_n "checking host system type... " >&6; }
5770 if ${ac_cv_host+:} false; then :
5771 $as_echo_n "(cached) " >&6
5773 if test "x$host_alias" = x; then
5774 ac_cv_host=$ac_cv_build
5776 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5777 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5782 $as_echo "$ac_cv_host" >&6; }
5785 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5788 ac_save_IFS=$IFS; IFS='-'
5794 # Remember, the first character of IFS is used to create $*,
5795 # except with old shells:
5798 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
5803 $as_echo_n "checking for library containing strerror... " >&6; }
5804 if ${ac_cv_search_strerror+:} false; then :
5805 $as_echo_n "(cached) " >&6
5807 ac_func_search_save_LIBS=$LIBS
5808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5809 /* end confdefs.h. */
5811 /* Override any GCC internal prototype to avoid an error.
5812 Use char because int might match the return type of a GCC
5813 builtin and then its argument prototype would still apply. */
5826 for ac_lib in '' cposix; do
5827 if test -z "$ac_lib"; then
5828 ac_res="none required"
5831 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5833 if ac_fn_c_try_link "$LINENO"; then :
5834 ac_cv_search_strerror=$ac_res
5836 rm -f core conftest.err conftest.$ac_objext \
5838 if ${ac_cv_search_strerror+:} false; then :
5842 if ${ac_cv_search_strerror+:} false; then :
5845 ac_cv_search_strerror=no
5848 LIBS=$ac_func_search_save_LIBS
5850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
5851 $as_echo "$ac_cv_search_strerror" >&6; }
5852 ac_res=$ac_cv_search_strerror
5853 if test "$ac_res" != no; then :
5854 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5860 # Enable gettext, in "external" mode.
5865 [\\/$]* | ?:[\\/]*) ;;
5866 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
5870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
5871 $as_echo_n "checking whether NLS is requested... " >&6; }
5872 # Check whether --enable-nls was given.
5873 if test "${enable_nls+set}" = set; then :
5874 enableval=$enable_nls; USE_NLS=$enableval
5879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
5880 $as_echo "$USE_NLS" >&6; }
5885 GETTEXT_MACRO_VERSION=0.18
5890 # Prepare PATH_SEPARATOR.
5891 # The user is always right.
5892 if test "${PATH_SEPARATOR+set}" != set; then
5893 echo "#! /bin/sh" >conf$$.sh
5894 echo "exit 0" >>conf$$.sh
5896 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5904 # Find out how to test for executable files. Don't use a zero-byte file,
5905 # as systems may use methods other than mode bits to determine executability.
5906 cat >conf$$.file <<_ASEOF
5910 chmod +x conf$$.file
5911 if test -x conf$$.file >/dev/null 2>&1; then
5912 ac_executable_p="test -x"
5914 ac_executable_p="test -f"
5918 # Extract the first word of "msgfmt", so it can be a program name with args.
5919 set dummy msgfmt; ac_word=$2
5920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5921 $as_echo_n "checking for $ac_word... " >&6; }
5922 if ${ac_cv_path_MSGFMT+:} false; then :
5923 $as_echo_n "(cached) " >&6
5927 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5930 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5931 for ac_dir in $PATH; do
5933 test -z "$ac_dir" && ac_dir=.
5934 for ac_exec_ext in '' $ac_executable_extensions; do
5935 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5936 echo "$as_me: trying $ac_dir/$ac_word..." >&5
5937 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
5938 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5939 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
5946 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
5950 MSGFMT="$ac_cv_path_MSGFMT"
5951 if test "$MSGFMT" != ":"; then
5952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
5953 $as_echo "$MSGFMT" >&6; }
5955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5956 $as_echo "no" >&6; }
5959 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5960 set dummy gmsgfmt; ac_word=$2
5961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5962 $as_echo_n "checking for $ac_word... " >&6; }
5963 if ${ac_cv_path_GMSGFMT+:} false; then :
5964 $as_echo_n "(cached) " >&6
5968 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5975 test -z "$as_dir" && as_dir=.
5976 for ac_exec_ext in '' $ac_executable_extensions; do
5977 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5978 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5979 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5986 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5990 GMSGFMT=$ac_cv_path_GMSGFMT
5991 if test -n "$GMSGFMT"; then
5992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
5993 $as_echo "$GMSGFMT" >&6; }
5995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5996 $as_echo "no" >&6; }
6001 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
6002 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
6003 *) MSGFMT_015=$MSGFMT ;;
6006 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
6007 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
6008 *) GMSGFMT_015=$GMSGFMT ;;
6013 # Prepare PATH_SEPARATOR.
6014 # The user is always right.
6015 if test "${PATH_SEPARATOR+set}" != set; then
6016 echo "#! /bin/sh" >conf$$.sh
6017 echo "exit 0" >>conf$$.sh
6019 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6027 # Find out how to test for executable files. Don't use a zero-byte file,
6028 # as systems may use methods other than mode bits to determine executability.
6029 cat >conf$$.file <<_ASEOF
6033 chmod +x conf$$.file
6034 if test -x conf$$.file >/dev/null 2>&1; then
6035 ac_executable_p="test -x"
6037 ac_executable_p="test -f"
6041 # Extract the first word of "xgettext", so it can be a program name with args.
6042 set dummy xgettext; ac_word=$2
6043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6044 $as_echo_n "checking for $ac_word... " >&6; }
6045 if ${ac_cv_path_XGETTEXT+:} false; then :
6046 $as_echo_n "(cached) " >&6
6050 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
6053 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6054 for ac_dir in $PATH; do
6056 test -z "$ac_dir" && ac_dir=.
6057 for ac_exec_ext in '' $ac_executable_extensions; do
6058 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6059 echo "$as_me: trying $ac_dir/$ac_word..." >&5
6060 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
6061 (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
6062 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
6069 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
6073 XGETTEXT="$ac_cv_path_XGETTEXT"
6074 if test "$XGETTEXT" != ":"; then
6075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
6076 $as_echo "$XGETTEXT" >&6; }
6078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6079 $as_echo "no" >&6; }
6084 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
6085 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
6086 *) XGETTEXT_015=$XGETTEXT ;;
6091 # Prepare PATH_SEPARATOR.
6092 # The user is always right.
6093 if test "${PATH_SEPARATOR+set}" != set; then
6094 echo "#! /bin/sh" >conf$$.sh
6095 echo "exit 0" >>conf$$.sh
6097 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6105 # Find out how to test for executable files. Don't use a zero-byte file,
6106 # as systems may use methods other than mode bits to determine executability.
6107 cat >conf$$.file <<_ASEOF
6111 chmod +x conf$$.file
6112 if test -x conf$$.file >/dev/null 2>&1; then
6113 ac_executable_p="test -x"
6115 ac_executable_p="test -f"
6119 # Extract the first word of "msgmerge", so it can be a program name with args.
6120 set dummy msgmerge; ac_word=$2
6121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6122 $as_echo_n "checking for $ac_word... " >&6; }
6123 if ${ac_cv_path_MSGMERGE+:} false; then :
6124 $as_echo_n "(cached) " >&6
6128 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
6131 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6132 for ac_dir in $PATH; do
6134 test -z "$ac_dir" && ac_dir=.
6135 for ac_exec_ext in '' $ac_executable_extensions; do
6136 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6137 echo "$as_me: trying $ac_dir/$ac_word..." >&5
6138 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
6139 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
6146 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
6150 MSGMERGE="$ac_cv_path_MSGMERGE"
6151 if test "$MSGMERGE" != ":"; then
6152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
6153 $as_echo "$MSGMERGE" >&6; }
6155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6156 $as_echo "no" >&6; }
6160 test -n "$localedir" || localedir='${datadir}/locale'
6163 test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
6166 ac_config_commands="$ac_config_commands po-directories"
6170 if test "X$prefix" = "XNONE"; then
6171 acl_final_prefix="$ac_default_prefix"
6173 acl_final_prefix="$prefix"
6175 if test "X$exec_prefix" = "XNONE"; then
6176 acl_final_exec_prefix='${prefix}'
6178 acl_final_exec_prefix="$exec_prefix"
6180 acl_save_prefix="$prefix"
6181 prefix="$acl_final_prefix"
6182 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
6183 prefix="$acl_save_prefix"
6186 # Check whether --with-gnu-ld was given.
6187 if test "${with_gnu_ld+set}" = set; then :
6188 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6193 # Prepare PATH_SEPARATOR.
6194 # The user is always right.
6195 if test "${PATH_SEPARATOR+set}" != set; then
6196 echo "#! /bin/sh" >conf$$.sh
6197 echo "exit 0" >>conf$$.sh
6199 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6207 if test "$GCC" = yes; then
6208 # Check if gcc -print-prog-name=ld gives a path.
6209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
6210 $as_echo_n "checking for ld used by GCC... " >&6; }
6213 # gcc leaves a trailing carriage return which upsets mingw
6214 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6216 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6219 # Accept absolute paths.
6220 [\\/]* | [A-Za-z]:[\\/]*)
6221 re_direlt='/[^/][^/]*/\.\./'
6222 # Canonicalize the path of ld
6223 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
6224 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6225 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
6227 test -z "$LD" && LD="$ac_prog"
6230 # If it fails, then pretend we aren't using GCC.
6234 # If it is relative, then search for the first ld in PATH.
6238 elif test "$with_gnu_ld" = yes; then
6239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6240 $as_echo_n "checking for GNU ld... " >&6; }
6242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6243 $as_echo_n "checking for non-GNU ld... " >&6; }
6245 if ${acl_cv_path_LD+:} false; then :
6246 $as_echo_n "(cached) " >&6
6248 if test -z "$LD"; then
6249 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
6250 for ac_dir in $PATH; do
6251 test -z "$ac_dir" && ac_dir=.
6252 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6253 acl_cv_path_LD="$ac_dir/$ac_prog"
6254 # Check to see if the program is GNU ld. I'd rather use --version,
6255 # but apparently some GNU ld's only accept -v.
6256 # Break only if it was the GNU/non-GNU ld that we prefer.
6257 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
6258 *GNU* | *'with BFD'*)
6259 test "$with_gnu_ld" != no && break ;;
6261 test "$with_gnu_ld" != yes && break ;;
6267 acl_cv_path_LD="$LD" # Let the user override the test with a path.
6271 LD="$acl_cv_path_LD"
6272 if test -n "$LD"; then
6273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6274 $as_echo "$LD" >&6; }
6276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6277 $as_echo "no" >&6; }
6279 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6281 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6282 if ${acl_cv_prog_gnu_ld+:} false; then :
6283 $as_echo_n "(cached) " >&6
6285 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
6286 case `$LD -v 2>&1 </dev/null` in
6287 *GNU* | *'with BFD'*)
6288 acl_cv_prog_gnu_ld=yes ;;
6290 acl_cv_prog_gnu_ld=no ;;
6293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
6294 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
6295 with_gnu_ld=$acl_cv_prog_gnu_ld
6300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
6301 $as_echo_n "checking for shared library run path origin... " >&6; }
6302 if ${acl_cv_rpath+:} false; then :
6303 $as_echo_n "(cached) " >&6
6306 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
6307 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
6313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
6314 $as_echo "$acl_cv_rpath" >&6; }
6316 acl_libext="$acl_cv_libext"
6317 acl_shlibext="$acl_cv_shlibext"
6318 acl_libname_spec="$acl_cv_libname_spec"
6319 acl_library_names_spec="$acl_cv_library_names_spec"
6320 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
6321 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
6322 acl_hardcode_direct="$acl_cv_hardcode_direct"
6323 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
6324 # Check whether --enable-rpath was given.
6325 if test "${enable_rpath+set}" = set; then :
6326 enableval=$enable_rpath; :
6338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
6339 $as_echo_n "checking for 64-bit host... " >&6; }
6340 if ${gl_cv_solaris_64bit+:} false; then :
6341 $as_echo_n "(cached) " >&6
6343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6344 /* end confdefs.h. */
6351 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6352 $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
6353 gl_cv_solaris_64bit=yes
6355 gl_cv_solaris_64bit=no
6361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
6362 $as_echo "$gl_cv_solaris_64bit" >&6; }
6363 if test $gl_cv_solaris_64bit = yes; then
6364 acl_libdirstem=lib/64
6366 sparc*) acl_libdirstem2=lib/sparcv9 ;;
6367 i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
6372 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
6373 if test -n "$searchpath"; then
6374 acl_save_IFS="${IFS= }"; IFS=":"
6375 for searchdir in $searchpath; do
6376 if test -d "$searchdir"; then
6377 case "$searchdir" in
6378 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
6380 # Better ignore directories of this form. They are misleading.
6382 *) searchdir=`cd "$searchdir" && pwd`
6383 case "$searchdir" in
6384 */lib64 ) acl_libdirstem=lib64 ;;
6393 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
6408 acl_save_prefix="$prefix"
6409 prefix="$acl_final_prefix"
6410 acl_save_exec_prefix="$exec_prefix"
6411 exec_prefix="$acl_final_exec_prefix"
6413 eval additional_includedir=\"$includedir\"
6414 eval additional_libdir=\"$libdir\"
6416 exec_prefix="$acl_save_exec_prefix"
6417 prefix="$acl_save_prefix"
6420 # Check whether --with-libiconv-prefix was given.
6421 if test "${with_libiconv_prefix+set}" = set; then :
6422 withval=$with_libiconv_prefix;
6423 if test "X$withval" = "Xno"; then
6426 if test "X$withval" = "X"; then
6428 acl_save_prefix="$prefix"
6429 prefix="$acl_final_prefix"
6430 acl_save_exec_prefix="$exec_prefix"
6431 exec_prefix="$acl_final_exec_prefix"
6433 eval additional_includedir=\"$includedir\"
6434 eval additional_libdir=\"$libdir\"
6436 exec_prefix="$acl_save_exec_prefix"
6437 prefix="$acl_save_prefix"
6440 additional_includedir="$withval/include"
6441 additional_libdir="$withval/$acl_libdirstem"
6442 if test "$acl_libdirstem2" != "$acl_libdirstem" \
6443 && ! test -d "$withval/$acl_libdirstem"; then
6444 additional_libdir="$withval/$acl_libdirstem2"
6458 names_already_handled=
6459 names_next_round='iconv '
6460 while test -n "$names_next_round"; do
6461 names_this_round="$names_next_round"
6463 for name in $names_this_round; do
6465 for n in $names_already_handled; do
6466 if test "$n" = "$name"; then
6471 if test -z "$already_handled"; then
6472 names_already_handled="$names_already_handled $name"
6473 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
6474 eval value=\"\$HAVE_LIB$uppername\"
6475 if test -n "$value"; then
6476 if test "$value" = yes; then
6477 eval value=\"\$LIB$uppername\"
6478 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
6479 eval value=\"\$LTLIB$uppername\"
6480 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
6489 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
6490 if test -n "$acl_shlibext"; then
6491 shrext=".$acl_shlibext" # typically: shrext=.so
6495 if test $use_additional = yes; then
6496 dir="$additional_libdir"
6497 if test -n "$acl_shlibext"; then
6498 if test -f "$dir/$libname$shrext"; then
6500 found_so="$dir/$libname$shrext"
6502 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
6503 ver=`(cd "$dir" && \
6504 for f in "$libname$shrext".*; do echo "$f"; done \
6505 | sed -e "s,^$libname$shrext\\\\.,," \
6506 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
6507 | sed 1q ) 2>/dev/null`
6508 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
6510 found_so="$dir/$libname$shrext.$ver"
6513 eval library_names=\"$acl_library_names_spec\"
6514 for f in $library_names; do
6515 if test -f "$dir/$f"; then
6524 if test "X$found_dir" = "X"; then
6525 if test -f "$dir/$libname.$acl_libext"; then
6527 found_a="$dir/$libname.$acl_libext"
6530 if test "X$found_dir" != "X"; then
6531 if test -f "$dir/$libname.la"; then
6532 found_la="$dir/$libname.la"
6536 if test "X$found_dir" = "X"; then
6537 for x in $LDFLAGS $LTLIBICONV; do
6539 acl_save_prefix="$prefix"
6540 prefix="$acl_final_prefix"
6541 acl_save_exec_prefix="$exec_prefix"
6542 exec_prefix="$acl_final_exec_prefix"
6544 exec_prefix="$acl_save_exec_prefix"
6545 prefix="$acl_save_prefix"
6549 dir=`echo "X$x" | sed -e 's/^X-L//'`
6550 if test -n "$acl_shlibext"; then
6551 if test -f "$dir/$libname$shrext"; then
6553 found_so="$dir/$libname$shrext"
6555 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
6556 ver=`(cd "$dir" && \
6557 for f in "$libname$shrext".*; do echo "$f"; done \
6558 | sed -e "s,^$libname$shrext\\\\.,," \
6559 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
6560 | sed 1q ) 2>/dev/null`
6561 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
6563 found_so="$dir/$libname$shrext.$ver"
6566 eval library_names=\"$acl_library_names_spec\"
6567 for f in $library_names; do
6568 if test -f "$dir/$f"; then
6577 if test "X$found_dir" = "X"; then
6578 if test -f "$dir/$libname.$acl_libext"; then
6580 found_a="$dir/$libname.$acl_libext"
6583 if test "X$found_dir" != "X"; then
6584 if test -f "$dir/$libname.la"; then
6585 found_la="$dir/$libname.la"
6590 if test "X$found_dir" != "X"; then
6595 if test "X$found_dir" != "X"; then
6596 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
6597 if test "X$found_so" != "X"; then
6598 if test "$enable_rpath" = no \
6599 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
6600 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
6601 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6604 for x in $ltrpathdirs; do
6605 if test "X$x" = "X$found_dir"; then
6610 if test -z "$haveit"; then
6611 ltrpathdirs="$ltrpathdirs $found_dir"
6613 if test "$acl_hardcode_direct" = yes; then
6614 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6616 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
6617 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6619 for x in $rpathdirs; do
6620 if test "X$x" = "X$found_dir"; then
6625 if test -z "$haveit"; then
6626 rpathdirs="$rpathdirs $found_dir"
6630 for x in $LDFLAGS $LIBICONV; do
6632 acl_save_prefix="$prefix"
6633 prefix="$acl_final_prefix"
6634 acl_save_exec_prefix="$exec_prefix"
6635 exec_prefix="$acl_final_exec_prefix"
6637 exec_prefix="$acl_save_exec_prefix"
6638 prefix="$acl_save_prefix"
6640 if test "X$x" = "X-L$found_dir"; then
6645 if test -z "$haveit"; then
6646 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
6648 if test "$acl_hardcode_minus_L" != no; then
6649 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6651 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
6657 if test "X$found_a" != "X"; then
6658 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
6660 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
6663 additional_includedir=
6664 case "$found_dir" in
6665 */$acl_libdirstem | */$acl_libdirstem/)
6666 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
6667 if test "$name" = 'iconv'; then
6668 LIBICONV_PREFIX="$basedir"
6670 additional_includedir="$basedir/include"
6672 */$acl_libdirstem2 | */$acl_libdirstem2/)
6673 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
6674 if test "$name" = 'iconv'; then
6675 LIBICONV_PREFIX="$basedir"
6677 additional_includedir="$basedir/include"
6680 if test "X$additional_includedir" != "X"; then
6681 if test "X$additional_includedir" != "X/usr/include"; then
6683 if test "X$additional_includedir" = "X/usr/local/include"; then
6684 if test -n "$GCC"; then
6686 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6690 if test -z "$haveit"; then
6691 for x in $CPPFLAGS $INCICONV; do
6693 acl_save_prefix="$prefix"
6694 prefix="$acl_final_prefix"
6695 acl_save_exec_prefix="$exec_prefix"
6696 exec_prefix="$acl_final_exec_prefix"
6698 exec_prefix="$acl_save_exec_prefix"
6699 prefix="$acl_save_prefix"
6701 if test "X$x" = "X-I$additional_includedir"; then
6706 if test -z "$haveit"; then
6707 if test -d "$additional_includedir"; then
6708 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
6714 if test -n "$found_la"; then
6715 save_libdir="$libdir"
6717 */* | *\\*) . "$found_la" ;;
6718 *) . "./$found_la" ;;
6720 libdir="$save_libdir"
6721 for dep in $dependency_libs; do
6724 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
6725 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
6726 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
6728 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
6729 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
6730 if test -n "$GCC"; then
6732 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6736 if test -z "$haveit"; then
6738 for x in $LDFLAGS $LIBICONV; do
6740 acl_save_prefix="$prefix"
6741 prefix="$acl_final_prefix"
6742 acl_save_exec_prefix="$exec_prefix"
6743 exec_prefix="$acl_final_exec_prefix"
6745 exec_prefix="$acl_save_exec_prefix"
6746 prefix="$acl_save_prefix"
6748 if test "X$x" = "X-L$additional_libdir"; then
6753 if test -z "$haveit"; then
6754 if test -d "$additional_libdir"; then
6755 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
6759 for x in $LDFLAGS $LTLIBICONV; do
6761 acl_save_prefix="$prefix"
6762 prefix="$acl_final_prefix"
6763 acl_save_exec_prefix="$exec_prefix"
6764 exec_prefix="$acl_final_exec_prefix"
6766 exec_prefix="$acl_save_exec_prefix"
6767 prefix="$acl_save_prefix"
6769 if test "X$x" = "X-L$additional_libdir"; then
6774 if test -z "$haveit"; then
6775 if test -d "$additional_libdir"; then
6776 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
6783 dir=`echo "X$dep" | sed -e 's/^X-R//'`
6784 if test "$enable_rpath" != no; then
6786 for x in $rpathdirs; do
6787 if test "X$x" = "X$dir"; then
6792 if test -z "$haveit"; then
6793 rpathdirs="$rpathdirs $dir"
6796 for x in $ltrpathdirs; do
6797 if test "X$x" = "X$dir"; then
6802 if test -z "$haveit"; then
6803 ltrpathdirs="$ltrpathdirs $dir"
6808 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
6811 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
6814 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
6815 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
6821 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
6822 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
6828 if test "X$rpathdirs" != "X"; then
6829 if test -n "$acl_hardcode_libdir_separator"; then
6831 for found_dir in $rpathdirs; do
6832 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
6834 acl_save_libdir="$libdir"
6836 eval flag=\"$acl_hardcode_libdir_flag_spec\"
6837 libdir="$acl_save_libdir"
6838 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
6840 for found_dir in $rpathdirs; do
6841 acl_save_libdir="$libdir"
6843 eval flag=\"$acl_hardcode_libdir_flag_spec\"
6844 libdir="$acl_save_libdir"
6845 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
6849 if test "X$ltrpathdirs" != "X"; then
6850 for found_dir in $ltrpathdirs; do
6851 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
6885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
6886 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
6887 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
6888 $as_echo_n "(cached) " >&6
6890 gt_save_LIBS="$LIBS"
6891 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
6892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6893 /* end confdefs.h. */
6894 #include <CoreFoundation/CFPreferences.h>
6898 CFPreferencesCopyAppValue(NULL, NULL)
6903 if ac_fn_c_try_link "$LINENO"; then :
6904 gt_cv_func_CFPreferencesCopyAppValue=yes
6906 gt_cv_func_CFPreferencesCopyAppValue=no
6908 rm -f core conftest.err conftest.$ac_objext \
6909 conftest$ac_exeext conftest.$ac_ext
6910 LIBS="$gt_save_LIBS"
6912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
6913 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
6914 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
6916 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
6919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
6920 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
6921 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
6922 $as_echo_n "(cached) " >&6
6924 gt_save_LIBS="$LIBS"
6925 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
6926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6927 /* end confdefs.h. */
6928 #include <CoreFoundation/CFLocale.h>
6932 CFLocaleCopyCurrent();
6937 if ac_fn_c_try_link "$LINENO"; then :
6938 gt_cv_func_CFLocaleCopyCurrent=yes
6940 gt_cv_func_CFLocaleCopyCurrent=no
6942 rm -f core conftest.err conftest.$ac_objext \
6943 conftest$ac_exeext conftest.$ac_ext
6944 LIBS="$gt_save_LIBS"
6946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
6947 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
6948 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
6950 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
6954 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
6955 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
6967 case " $gt_needs " in
6968 *" need-formatstring-macros "*) gt_api_version=3 ;;
6969 *" need-ngettext "*) gt_api_version=2 ;;
6970 *) gt_api_version=1 ;;
6972 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
6973 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
6975 if test "$USE_NLS" = "yes"; then
6976 gt_use_preinstalled_gnugettext=no
6979 if test $gt_api_version -ge 3; then
6980 gt_revision_test_code='
6981 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
6982 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
6984 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
6987 gt_revision_test_code=
6989 if test $gt_api_version -ge 2; then
6990 gt_expression_test_code=' + * ngettext ("", "", 0)'
6992 gt_expression_test_code=
6995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
6996 $as_echo_n "checking for GNU gettext in libc... " >&6; }
6997 if eval \${$gt_func_gnugettext_libc+:} false; then :
6998 $as_echo_n "(cached) " >&6
7000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7001 /* end confdefs.h. */
7002 #include <libintl.h>
7003 $gt_revision_test_code
7004 extern int _nl_msg_cat_cntr;
7005 extern int *_nl_domain_bindings;
7009 bindtextdomain ("", "");
7010 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
7015 if ac_fn_c_try_link "$LINENO"; then :
7016 eval "$gt_func_gnugettext_libc=yes"
7018 eval "$gt_func_gnugettext_libc=no"
7020 rm -f core conftest.err conftest.$ac_objext \
7021 conftest$ac_exeext conftest.$ac_ext
7023 eval ac_res=\$$gt_func_gnugettext_libc
7024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7025 $as_echo "$ac_res" >&6; }
7027 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
7033 am_save_CPPFLAGS="$CPPFLAGS"
7035 for element in $INCICONV; do
7037 for x in $CPPFLAGS; do
7039 acl_save_prefix="$prefix"
7040 prefix="$acl_final_prefix"
7041 acl_save_exec_prefix="$exec_prefix"
7042 exec_prefix="$acl_final_exec_prefix"
7044 exec_prefix="$acl_save_exec_prefix"
7045 prefix="$acl_save_prefix"
7047 if test "X$x" = "X$element"; then
7052 if test -z "$haveit"; then
7053 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
7058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
7059 $as_echo_n "checking for iconv... " >&6; }
7060 if ${am_cv_func_iconv+:} false; then :
7061 $as_echo_n "(cached) " >&6
7064 am_cv_func_iconv="no, consider installing GNU libiconv"
7066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7067 /* end confdefs.h. */
7073 iconv_t cd = iconv_open("","");
7074 iconv(cd,NULL,NULL,NULL,NULL);
7080 if ac_fn_c_try_link "$LINENO"; then :
7081 am_cv_func_iconv=yes
7083 rm -f core conftest.err conftest.$ac_objext \
7084 conftest$ac_exeext conftest.$ac_ext
7085 if test "$am_cv_func_iconv" != yes; then
7086 am_save_LIBS="$LIBS"
7087 LIBS="$LIBS $LIBICONV"
7088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7089 /* end confdefs.h. */
7095 iconv_t cd = iconv_open("","");
7096 iconv(cd,NULL,NULL,NULL,NULL);
7102 if ac_fn_c_try_link "$LINENO"; then :
7104 am_cv_func_iconv=yes
7106 rm -f core conftest.err conftest.$ac_objext \
7107 conftest$ac_exeext conftest.$ac_ext
7108 LIBS="$am_save_LIBS"
7112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
7113 $as_echo "$am_cv_func_iconv" >&6; }
7114 if test "$am_cv_func_iconv" = yes; then
7115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
7116 $as_echo_n "checking for working iconv... " >&6; }
7117 if ${am_cv_func_iconv_works+:} false; then :
7118 $as_echo_n "(cached) " >&6
7121 am_save_LIBS="$LIBS"
7122 if test $am_cv_lib_iconv = yes; then
7123 LIBS="$LIBS $LIBICONV"
7125 if test "$cross_compiling" = yes; then :
7127 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
7128 *) am_cv_func_iconv_works="guessing yes" ;;
7131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7132 /* end confdefs.h. */
7138 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
7141 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
7142 if (cd_utf8_to_88591 != (iconv_t)(-1))
7144 static const char input[] = "\342\202\254"; /* EURO SIGN */
7146 const char *inptr = input;
7147 size_t inbytesleft = strlen (input);
7149 size_t outbytesleft = sizeof (buf);
7150 size_t res = iconv (cd_utf8_to_88591,
7151 (char **) &inptr, &inbytesleft,
7152 &outptr, &outbytesleft);
7157 /* Test against Solaris 10 bug: Failures are not distinguishable from
7158 successful returns. */
7160 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
7161 if (cd_ascii_to_88591 != (iconv_t)(-1))
7163 static const char input[] = "\263";
7165 const char *inptr = input;
7166 size_t inbytesleft = strlen (input);
7168 size_t outbytesleft = sizeof (buf);
7169 size_t res = iconv (cd_ascii_to_88591,
7170 (char **) &inptr, &inbytesleft,
7171 &outptr, &outbytesleft);
7176 #if 0 /* This bug could be worked around by the caller. */
7177 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
7179 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
7180 if (cd_88591_to_utf8 != (iconv_t)(-1))
7182 static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
7184 const char *inptr = input;
7185 size_t inbytesleft = strlen (input);
7187 size_t outbytesleft = sizeof (buf);
7188 size_t res = iconv (cd_88591_to_utf8,
7189 (char **) &inptr, &inbytesleft,
7190 &outptr, &outbytesleft);
7196 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
7198 if (/* Try standardized names. */
7199 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
7200 /* Try IRIX, OSF/1 names. */
7201 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
7202 /* Try AIX names. */
7203 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
7204 /* Try HP-UX names. */
7205 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
7210 if ac_fn_c_try_run "$LINENO"; then :
7211 am_cv_func_iconv_works=yes
7213 am_cv_func_iconv_works=no
7215 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7216 conftest.$ac_objext conftest.beam conftest.$ac_ext
7219 LIBS="$am_save_LIBS"
7222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
7223 $as_echo "$am_cv_func_iconv_works" >&6; }
7224 case "$am_cv_func_iconv_works" in
7225 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
7226 *) am_func_iconv=yes ;;
7229 am_func_iconv=no am_cv_lib_iconv=no
7231 if test "$am_func_iconv" = yes; then
7233 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
7236 if test "$am_cv_lib_iconv" = yes; then
7237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
7238 $as_echo_n "checking how to link with libiconv... " >&6; }
7239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
7240 $as_echo "$LIBICONV" >&6; }
7242 CPPFLAGS="$am_save_CPPFLAGS"
7259 acl_save_prefix="$prefix"
7260 prefix="$acl_final_prefix"
7261 acl_save_exec_prefix="$exec_prefix"
7262 exec_prefix="$acl_final_exec_prefix"
7264 eval additional_includedir=\"$includedir\"
7265 eval additional_libdir=\"$libdir\"
7267 exec_prefix="$acl_save_exec_prefix"
7268 prefix="$acl_save_prefix"
7271 # Check whether --with-libintl-prefix was given.
7272 if test "${with_libintl_prefix+set}" = set; then :
7273 withval=$with_libintl_prefix;
7274 if test "X$withval" = "Xno"; then
7277 if test "X$withval" = "X"; then
7279 acl_save_prefix="$prefix"
7280 prefix="$acl_final_prefix"
7281 acl_save_exec_prefix="$exec_prefix"
7282 exec_prefix="$acl_final_exec_prefix"
7284 eval additional_includedir=\"$includedir\"
7285 eval additional_libdir=\"$libdir\"
7287 exec_prefix="$acl_save_exec_prefix"
7288 prefix="$acl_save_prefix"
7291 additional_includedir="$withval/include"
7292 additional_libdir="$withval/$acl_libdirstem"
7293 if test "$acl_libdirstem2" != "$acl_libdirstem" \
7294 && ! test -d "$withval/$acl_libdirstem"; then
7295 additional_libdir="$withval/$acl_libdirstem2"
7309 names_already_handled=
7310 names_next_round='intl '
7311 while test -n "$names_next_round"; do
7312 names_this_round="$names_next_round"
7314 for name in $names_this_round; do
7316 for n in $names_already_handled; do
7317 if test "$n" = "$name"; then
7322 if test -z "$already_handled"; then
7323 names_already_handled="$names_already_handled $name"
7324 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
7325 eval value=\"\$HAVE_LIB$uppername\"
7326 if test -n "$value"; then
7327 if test "$value" = yes; then
7328 eval value=\"\$LIB$uppername\"
7329 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
7330 eval value=\"\$LTLIB$uppername\"
7331 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
7340 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
7341 if test -n "$acl_shlibext"; then
7342 shrext=".$acl_shlibext" # typically: shrext=.so
7346 if test $use_additional = yes; then
7347 dir="$additional_libdir"
7348 if test -n "$acl_shlibext"; then
7349 if test -f "$dir/$libname$shrext"; then
7351 found_so="$dir/$libname$shrext"
7353 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
7354 ver=`(cd "$dir" && \
7355 for f in "$libname$shrext".*; do echo "$f"; done \
7356 | sed -e "s,^$libname$shrext\\\\.,," \
7357 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
7358 | sed 1q ) 2>/dev/null`
7359 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
7361 found_so="$dir/$libname$shrext.$ver"
7364 eval library_names=\"$acl_library_names_spec\"
7365 for f in $library_names; do
7366 if test -f "$dir/$f"; then
7375 if test "X$found_dir" = "X"; then
7376 if test -f "$dir/$libname.$acl_libext"; then
7378 found_a="$dir/$libname.$acl_libext"
7381 if test "X$found_dir" != "X"; then
7382 if test -f "$dir/$libname.la"; then
7383 found_la="$dir/$libname.la"
7387 if test "X$found_dir" = "X"; then
7388 for x in $LDFLAGS $LTLIBINTL; do
7390 acl_save_prefix="$prefix"
7391 prefix="$acl_final_prefix"
7392 acl_save_exec_prefix="$exec_prefix"
7393 exec_prefix="$acl_final_exec_prefix"
7395 exec_prefix="$acl_save_exec_prefix"
7396 prefix="$acl_save_prefix"
7400 dir=`echo "X$x" | sed -e 's/^X-L//'`
7401 if test -n "$acl_shlibext"; then
7402 if test -f "$dir/$libname$shrext"; then
7404 found_so="$dir/$libname$shrext"
7406 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
7407 ver=`(cd "$dir" && \
7408 for f in "$libname$shrext".*; do echo "$f"; done \
7409 | sed -e "s,^$libname$shrext\\\\.,," \
7410 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
7411 | sed 1q ) 2>/dev/null`
7412 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
7414 found_so="$dir/$libname$shrext.$ver"
7417 eval library_names=\"$acl_library_names_spec\"
7418 for f in $library_names; do
7419 if test -f "$dir/$f"; then
7428 if test "X$found_dir" = "X"; then
7429 if test -f "$dir/$libname.$acl_libext"; then
7431 found_a="$dir/$libname.$acl_libext"
7434 if test "X$found_dir" != "X"; then
7435 if test -f "$dir/$libname.la"; then
7436 found_la="$dir/$libname.la"
7441 if test "X$found_dir" != "X"; then
7446 if test "X$found_dir" != "X"; then
7447 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
7448 if test "X$found_so" != "X"; then
7449 if test "$enable_rpath" = no \
7450 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
7451 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
7452 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7455 for x in $ltrpathdirs; do
7456 if test "X$x" = "X$found_dir"; then
7461 if test -z "$haveit"; then
7462 ltrpathdirs="$ltrpathdirs $found_dir"
7464 if test "$acl_hardcode_direct" = yes; then
7465 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7467 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
7468 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7470 for x in $rpathdirs; do
7471 if test "X$x" = "X$found_dir"; then
7476 if test -z "$haveit"; then
7477 rpathdirs="$rpathdirs $found_dir"
7481 for x in $LDFLAGS $LIBINTL; do
7483 acl_save_prefix="$prefix"
7484 prefix="$acl_final_prefix"
7485 acl_save_exec_prefix="$exec_prefix"
7486 exec_prefix="$acl_final_exec_prefix"
7488 exec_prefix="$acl_save_exec_prefix"
7489 prefix="$acl_save_prefix"
7491 if test "X$x" = "X-L$found_dir"; then
7496 if test -z "$haveit"; then
7497 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
7499 if test "$acl_hardcode_minus_L" != no; then
7500 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7502 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
7508 if test "X$found_a" != "X"; then
7509 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
7511 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
7514 additional_includedir=
7515 case "$found_dir" in
7516 */$acl_libdirstem | */$acl_libdirstem/)
7517 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
7518 if test "$name" = 'intl'; then
7519 LIBINTL_PREFIX="$basedir"
7521 additional_includedir="$basedir/include"
7523 */$acl_libdirstem2 | */$acl_libdirstem2/)
7524 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
7525 if test "$name" = 'intl'; then
7526 LIBINTL_PREFIX="$basedir"
7528 additional_includedir="$basedir/include"
7531 if test "X$additional_includedir" != "X"; then
7532 if test "X$additional_includedir" != "X/usr/include"; then
7534 if test "X$additional_includedir" = "X/usr/local/include"; then
7535 if test -n "$GCC"; then
7537 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
7541 if test -z "$haveit"; then
7542 for x in $CPPFLAGS $INCINTL; do
7544 acl_save_prefix="$prefix"
7545 prefix="$acl_final_prefix"
7546 acl_save_exec_prefix="$exec_prefix"
7547 exec_prefix="$acl_final_exec_prefix"
7549 exec_prefix="$acl_save_exec_prefix"
7550 prefix="$acl_save_prefix"
7552 if test "X$x" = "X-I$additional_includedir"; then
7557 if test -z "$haveit"; then
7558 if test -d "$additional_includedir"; then
7559 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
7565 if test -n "$found_la"; then
7566 save_libdir="$libdir"
7568 */* | *\\*) . "$found_la" ;;
7569 *) . "./$found_la" ;;
7571 libdir="$save_libdir"
7572 for dep in $dependency_libs; do
7575 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
7576 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
7577 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
7579 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
7580 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
7581 if test -n "$GCC"; then
7583 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
7587 if test -z "$haveit"; then
7589 for x in $LDFLAGS $LIBINTL; do
7591 acl_save_prefix="$prefix"
7592 prefix="$acl_final_prefix"
7593 acl_save_exec_prefix="$exec_prefix"
7594 exec_prefix="$acl_final_exec_prefix"
7596 exec_prefix="$acl_save_exec_prefix"
7597 prefix="$acl_save_prefix"
7599 if test "X$x" = "X-L$additional_libdir"; then
7604 if test -z "$haveit"; then
7605 if test -d "$additional_libdir"; then
7606 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
7610 for x in $LDFLAGS $LTLIBINTL; do
7612 acl_save_prefix="$prefix"
7613 prefix="$acl_final_prefix"
7614 acl_save_exec_prefix="$exec_prefix"
7615 exec_prefix="$acl_final_exec_prefix"
7617 exec_prefix="$acl_save_exec_prefix"
7618 prefix="$acl_save_prefix"
7620 if test "X$x" = "X-L$additional_libdir"; then
7625 if test -z "$haveit"; then
7626 if test -d "$additional_libdir"; then
7627 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
7634 dir=`echo "X$dep" | sed -e 's/^X-R//'`
7635 if test "$enable_rpath" != no; then
7637 for x in $rpathdirs; do
7638 if test "X$x" = "X$dir"; then
7643 if test -z "$haveit"; then
7644 rpathdirs="$rpathdirs $dir"
7647 for x in $ltrpathdirs; do
7648 if test "X$x" = "X$dir"; then
7653 if test -z "$haveit"; then
7654 ltrpathdirs="$ltrpathdirs $dir"
7659 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
7662 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
7665 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
7666 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
7672 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
7673 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
7679 if test "X$rpathdirs" != "X"; then
7680 if test -n "$acl_hardcode_libdir_separator"; then
7682 for found_dir in $rpathdirs; do
7683 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
7685 acl_save_libdir="$libdir"
7687 eval flag=\"$acl_hardcode_libdir_flag_spec\"
7688 libdir="$acl_save_libdir"
7689 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
7691 for found_dir in $rpathdirs; do
7692 acl_save_libdir="$libdir"
7694 eval flag=\"$acl_hardcode_libdir_flag_spec\"
7695 libdir="$acl_save_libdir"
7696 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
7700 if test "X$ltrpathdirs" != "X"; then
7701 for found_dir in $ltrpathdirs; do
7702 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
7711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
7712 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
7713 if eval \${$gt_func_gnugettext_libintl+:} false; then :
7714 $as_echo_n "(cached) " >&6
7716 gt_save_CPPFLAGS="$CPPFLAGS"
7717 CPPFLAGS="$CPPFLAGS $INCINTL"
7718 gt_save_LIBS="$LIBS"
7719 LIBS="$LIBS $LIBINTL"
7720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7721 /* end confdefs.h. */
7722 #include <libintl.h>
7723 $gt_revision_test_code
7724 extern int _nl_msg_cat_cntr;
7729 const char *_nl_expand_alias (const char *);
7733 bindtextdomain ("", "");
7734 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
7739 if ac_fn_c_try_link "$LINENO"; then :
7740 eval "$gt_func_gnugettext_libintl=yes"
7742 eval "$gt_func_gnugettext_libintl=no"
7744 rm -f core conftest.err conftest.$ac_objext \
7745 conftest$ac_exeext conftest.$ac_ext
7746 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
7747 LIBS="$LIBS $LIBICONV"
7748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7749 /* end confdefs.h. */
7750 #include <libintl.h>
7751 $gt_revision_test_code
7752 extern int _nl_msg_cat_cntr;
7757 const char *_nl_expand_alias (const char *);
7761 bindtextdomain ("", "");
7762 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
7767 if ac_fn_c_try_link "$LINENO"; then :
7768 LIBINTL="$LIBINTL $LIBICONV"
7769 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
7770 eval "$gt_func_gnugettext_libintl=yes"
7773 rm -f core conftest.err conftest.$ac_objext \
7774 conftest$ac_exeext conftest.$ac_ext
7776 CPPFLAGS="$gt_save_CPPFLAGS"
7777 LIBS="$gt_save_LIBS"
7779 eval ac_res=\$$gt_func_gnugettext_libintl
7780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7781 $as_echo "$ac_res" >&6; }
7784 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
7785 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
7786 && test "$PACKAGE" != gettext-runtime \
7787 && test "$PACKAGE" != gettext-tools; }; then
7788 gt_use_preinstalled_gnugettext=yes
7797 if test -n "$INTL_MACOSX_LIBS"; then
7798 if test "$gt_use_preinstalled_gnugettext" = "yes" \
7799 || test "$nls_cv_use_gnu_gettext" = "yes"; then
7800 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
7801 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
7805 if test "$gt_use_preinstalled_gnugettext" = "yes" \
7806 || test "$nls_cv_use_gnu_gettext" = "yes"; then
7808 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
7815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
7816 $as_echo_n "checking whether to use NLS... " >&6; }
7817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
7818 $as_echo "$USE_NLS" >&6; }
7819 if test "$USE_NLS" = "yes"; then
7820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
7821 $as_echo_n "checking where the gettext function comes from... " >&6; }
7822 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
7823 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
7824 gt_source="external libintl"
7829 gt_source="included intl directory"
7831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
7832 $as_echo "$gt_source" >&6; }
7835 if test "$USE_NLS" = "yes"; then
7837 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
7838 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
7839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
7840 $as_echo_n "checking how to link with libintl... " >&6; }
7841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
7842 $as_echo "$LIBINTL" >&6; }
7844 for element in $INCINTL; do
7846 for x in $CPPFLAGS; do
7848 acl_save_prefix="$prefix"
7849 prefix="$acl_final_prefix"
7850 acl_save_exec_prefix="$exec_prefix"
7851 exec_prefix="$acl_final_exec_prefix"
7853 exec_prefix="$acl_save_exec_prefix"
7854 prefix="$acl_save_prefix"
7856 if test "X$x" = "X$element"; then
7861 if test -z "$haveit"; then
7862 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
7869 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
7872 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
7889 # This test must come as early as possible after the compiler configuration
7890 # tests, because the choice of the file model can (in principle) affect
7891 # whether functions and headers are available, whether they work, etc.
7892 # Check whether --enable-largefile was given.
7893 if test "${enable_largefile+set}" = set; then :
7894 enableval=$enable_largefile;
7897 if test "$enable_largefile" != no; then
7899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
7900 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
7901 if ${ac_cv_sys_largefile_CC+:} false; then :
7902 $as_echo_n "(cached) " >&6
7904 ac_cv_sys_largefile_CC=no
7905 if test "$GCC" != yes; then
7908 # IRIX 6.2 and later do not support large files by default,
7909 # so use the C compiler's -n32 option if that helps.
7910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7911 /* end confdefs.h. */
7912 #include <sys/types.h>
7913 /* Check that off_t can represent 2**63 - 1 correctly.
7914 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7915 since some C++ compilers masquerading as C compilers
7916 incorrectly reject 9223372036854775807. */
7917 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7918 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7919 && LARGE_OFF_T % 2147483647 == 1)
7929 if ac_fn_c_try_compile "$LINENO"; then :
7932 rm -f core conftest.err conftest.$ac_objext
7934 if ac_fn_c_try_compile "$LINENO"; then :
7935 ac_cv_sys_largefile_CC=' -n32'; break
7937 rm -f core conftest.err conftest.$ac_objext
7941 rm -f conftest.$ac_ext
7944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
7945 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
7946 if test "$ac_cv_sys_largefile_CC" != no; then
7947 CC=$CC$ac_cv_sys_largefile_CC
7950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
7951 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
7952 if ${ac_cv_sys_file_offset_bits+:} false; then :
7953 $as_echo_n "(cached) " >&6
7956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7957 /* end confdefs.h. */
7958 #include <sys/types.h>
7959 /* Check that off_t can represent 2**63 - 1 correctly.
7960 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7961 since some C++ compilers masquerading as C compilers
7962 incorrectly reject 9223372036854775807. */
7963 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7964 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7965 && LARGE_OFF_T % 2147483647 == 1)
7975 if ac_fn_c_try_compile "$LINENO"; then :
7976 ac_cv_sys_file_offset_bits=no; break
7978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7980 /* end confdefs.h. */
7981 #define _FILE_OFFSET_BITS 64
7982 #include <sys/types.h>
7983 /* Check that off_t can represent 2**63 - 1 correctly.
7984 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7985 since some C++ compilers masquerading as C compilers
7986 incorrectly reject 9223372036854775807. */
7987 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7988 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7989 && LARGE_OFF_T % 2147483647 == 1)
7999 if ac_fn_c_try_compile "$LINENO"; then :
8000 ac_cv_sys_file_offset_bits=64; break
8002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8003 ac_cv_sys_file_offset_bits=unknown
8007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
8008 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
8009 case $ac_cv_sys_file_offset_bits in #(
8012 cat >>confdefs.h <<_ACEOF
8013 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
8018 if test $ac_cv_sys_file_offset_bits = unknown; then
8019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
8020 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
8021 if ${ac_cv_sys_large_files+:} false; then :
8022 $as_echo_n "(cached) " >&6
8025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8026 /* end confdefs.h. */
8027 #include <sys/types.h>
8028 /* Check that off_t can represent 2**63 - 1 correctly.
8029 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8030 since some C++ compilers masquerading as C compilers
8031 incorrectly reject 9223372036854775807. */
8032 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
8033 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8034 && LARGE_OFF_T % 2147483647 == 1)
8044 if ac_fn_c_try_compile "$LINENO"; then :
8045 ac_cv_sys_large_files=no; break
8047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8049 /* end confdefs.h. */
8050 #define _LARGE_FILES 1
8051 #include <sys/types.h>
8052 /* Check that off_t can represent 2**63 - 1 correctly.
8053 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8054 since some C++ compilers masquerading as C compilers
8055 incorrectly reject 9223372036854775807. */
8056 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
8057 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8058 && LARGE_OFF_T % 2147483647 == 1)
8068 if ac_fn_c_try_compile "$LINENO"; then :
8069 ac_cv_sys_large_files=1; break
8071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8072 ac_cv_sys_large_files=unknown
8076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
8077 $as_echo "$ac_cv_sys_large_files" >&6; }
8078 case $ac_cv_sys_large_files in #(
8081 cat >>confdefs.h <<_ACEOF
8082 #define _LARGE_FILES $ac_cv_sys_large_files
8093 # Checks for libraries.
8094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getpwnam" >&5
8095 $as_echo_n "checking for library containing getpwnam... " >&6; }
8096 if ${ac_cv_search_getpwnam+:} false; then :
8097 $as_echo_n "(cached) " >&6
8099 ac_func_search_save_LIBS=$LIBS
8100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8101 /* end confdefs.h. */
8103 /* Override any GCC internal prototype to avoid an error.
8104 Use char because int might match the return type of a GCC
8105 builtin and then its argument prototype would still apply. */
8118 for ac_lib in '' sun; do
8119 if test -z "$ac_lib"; then
8120 ac_res="none required"
8123 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8125 if ac_fn_c_try_link "$LINENO"; then :
8126 ac_cv_search_getpwnam=$ac_res
8128 rm -f core conftest.err conftest.$ac_objext \
8130 if ${ac_cv_search_getpwnam+:} false; then :
8134 if ${ac_cv_search_getpwnam+:} false; then :
8137 ac_cv_search_getpwnam=no
8140 LIBS=$ac_func_search_save_LIBS
8142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getpwnam" >&5
8143 $as_echo "$ac_cv_search_getpwnam" >&6; }
8144 ac_res=$ac_cv_search_getpwnam
8145 if test "$ac_res" != no; then :
8146 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8151 # Checks for header files.
8152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8153 $as_echo_n "checking for ANSI C header files... " >&6; }
8154 if ${ac_cv_header_stdc+:} false; then :
8155 $as_echo_n "(cached) " >&6
8157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8158 /* end confdefs.h. */
8172 if ac_fn_c_try_compile "$LINENO"; then :
8173 ac_cv_header_stdc=yes
8175 ac_cv_header_stdc=no
8177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8179 if test $ac_cv_header_stdc = yes; then
8180 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8182 /* end confdefs.h. */
8186 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8187 $EGREP "memchr" >/dev/null 2>&1; then :
8190 ac_cv_header_stdc=no
8196 if test $ac_cv_header_stdc = yes; then
8197 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8199 /* end confdefs.h. */
8203 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8204 $EGREP "free" >/dev/null 2>&1; then :
8207 ac_cv_header_stdc=no
8213 if test $ac_cv_header_stdc = yes; then
8214 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8215 if test "$cross_compiling" = yes; then :
8218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8219 /* end confdefs.h. */
8222 #if ((' ' & 0x0FF) == 0x020)
8223 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8224 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8226 # define ISLOWER(c) \
8227 (('a' <= (c) && (c) <= 'i') \
8228 || ('j' <= (c) && (c) <= 'r') \
8229 || ('s' <= (c) && (c) <= 'z'))
8230 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8233 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8238 for (i = 0; i < 256; i++)
8239 if (XOR (islower (i), ISLOWER (i))
8240 || toupper (i) != TOUPPER (i))
8245 if ac_fn_c_try_run "$LINENO"; then :
8248 ac_cv_header_stdc=no
8250 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8251 conftest.$ac_objext conftest.beam conftest.$ac_ext
8256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8257 $as_echo "$ac_cv_header_stdc" >&6; }
8258 if test $ac_cv_header_stdc = yes; then
8260 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8265 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8266 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
8268 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
8269 if eval \${$as_ac_Header+:} false; then :
8270 $as_echo_n "(cached) " >&6
8272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8273 /* end confdefs.h. */
8274 #include <sys/types.h>
8286 if ac_fn_c_try_compile "$LINENO"; then :
8287 eval "$as_ac_Header=yes"
8289 eval "$as_ac_Header=no"
8291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8293 eval ac_res=\$$as_ac_Header
8294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8295 $as_echo "$ac_res" >&6; }
8296 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8297 cat >>confdefs.h <<_ACEOF
8298 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8301 ac_header_dirent=$ac_hdr; break
8305 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8306 if test $ac_header_dirent = dirent.h; then
8307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
8308 $as_echo_n "checking for library containing opendir... " >&6; }
8309 if ${ac_cv_search_opendir+:} false; then :
8310 $as_echo_n "(cached) " >&6
8312 ac_func_search_save_LIBS=$LIBS
8313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8314 /* end confdefs.h. */
8316 /* Override any GCC internal prototype to avoid an error.
8317 Use char because int might match the return type of a GCC
8318 builtin and then its argument prototype would still apply. */
8331 for ac_lib in '' dir; do
8332 if test -z "$ac_lib"; then
8333 ac_res="none required"
8336 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8338 if ac_fn_c_try_link "$LINENO"; then :
8339 ac_cv_search_opendir=$ac_res
8341 rm -f core conftest.err conftest.$ac_objext \
8343 if ${ac_cv_search_opendir+:} false; then :
8347 if ${ac_cv_search_opendir+:} false; then :
8350 ac_cv_search_opendir=no
8353 LIBS=$ac_func_search_save_LIBS
8355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
8356 $as_echo "$ac_cv_search_opendir" >&6; }
8357 ac_res=$ac_cv_search_opendir
8358 if test "$ac_res" != no; then :
8359 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
8365 $as_echo_n "checking for library containing opendir... " >&6; }
8366 if ${ac_cv_search_opendir+:} false; then :
8367 $as_echo_n "(cached) " >&6
8369 ac_func_search_save_LIBS=$LIBS
8370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8371 /* end confdefs.h. */
8373 /* Override any GCC internal prototype to avoid an error.
8374 Use char because int might match the return type of a GCC
8375 builtin and then its argument prototype would still apply. */
8388 for ac_lib in '' x; do
8389 if test -z "$ac_lib"; then
8390 ac_res="none required"
8393 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8395 if ac_fn_c_try_link "$LINENO"; then :
8396 ac_cv_search_opendir=$ac_res
8398 rm -f core conftest.err conftest.$ac_objext \
8400 if ${ac_cv_search_opendir+:} false; then :
8404 if ${ac_cv_search_opendir+:} false; then :
8407 ac_cv_search_opendir=no
8410 LIBS=$ac_func_search_save_LIBS
8412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
8413 $as_echo "$ac_cv_search_opendir" >&6; }
8414 ac_res=$ac_cv_search_opendir
8415 if test "$ac_res" != no; then :
8416 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
8423 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
8424 if ${ac_cv_header_stat_broken+:} false; then :
8425 $as_echo_n "(cached) " >&6
8427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8428 /* end confdefs.h. */
8429 #include <sys/types.h>
8430 #include <sys/stat.h>
8432 #if defined S_ISBLK && defined S_IFDIR
8433 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
8436 #if defined S_ISBLK && defined S_IFCHR
8437 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
8440 #if defined S_ISLNK && defined S_IFREG
8441 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
8444 #if defined S_ISSOCK && defined S_IFREG
8445 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
8449 if ac_fn_c_try_compile "$LINENO"; then :
8450 ac_cv_header_stat_broken=no
8452 ac_cv_header_stat_broken=yes
8454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
8457 $as_echo "$ac_cv_header_stat_broken" >&6; }
8458 if test $ac_cv_header_stat_broken = yes; then
8460 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
8464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8465 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8466 if ${ac_cv_header_time+:} false; then :
8467 $as_echo_n "(cached) " >&6
8469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8470 /* end confdefs.h. */
8471 #include <sys/types.h>
8472 #include <sys/time.h>
8478 if ((struct tm *) 0)
8484 if ac_fn_c_try_compile "$LINENO"; then :
8485 ac_cv_header_time=yes
8487 ac_cv_header_time=no
8489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8492 $as_echo "$ac_cv_header_time" >&6; }
8493 if test $ac_cv_header_time = yes; then
8495 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8499 for ac_header in stdlib.h locale.h unistd.h limits.h fcntl.h string.h \
8500 memory.h sys/param.h sys/resource.h sys/time.h sys/timeb.h
8502 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8503 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8504 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8505 cat >>confdefs.h <<_ACEOF
8506 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
8516 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
8517 if ${ac_cv_c_const+:} false; then :
8518 $as_echo_n "(cached) " >&6
8520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8521 /* end confdefs.h. */
8528 /* Ultrix mips cc rejects this sort of thing. */
8529 typedef int charset[2];
8530 const charset cs = { 0, 0 };
8531 /* SunOS 4.1.1 cc rejects this. */
8532 char const *const *pcpcc;
8534 /* NEC SVR4.0.2 mips cc rejects this. */
8535 struct point {int x, y;};
8536 static struct point const zero = {0,0};
8537 /* AIX XL C 1.02.0.0 rejects this.
8538 It does not let you subtract one const X* pointer from another in
8539 an arm of an if-expression whose if-part is not a constant
8541 const char *g = "string";
8542 pcpcc = &g + (g ? g-g : 0);
8543 /* HPUX 7.0 cc rejects these. */
8545 ppc = (char**) pcpcc;
8546 pcpcc = (char const *const *) ppc;
8547 { /* SCO 3.2v4 cc rejects this sort of thing. */
8550 char const *s = 0 ? (char *) 0 : (char const *) 0;
8555 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8557 const int *foo = &x[0];
8560 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8561 typedef const int *iptr;
8565 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
8566 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8567 struct s { int j; const int *ap[3]; } bx;
8568 struct s *b = &bx; b->j = 5;
8570 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8574 return !cs[0] && !zero.x;
8581 if ac_fn_c_try_compile "$LINENO"; then :
8586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
8589 $as_echo "$ac_cv_c_const" >&6; }
8590 if test $ac_cv_c_const = no; then
8592 $as_echo "#define const /**/" >>confdefs.h
8596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
8597 $as_echo_n "checking return type of signal handlers... " >&6; }
8598 if ${ac_cv_type_signal+:} false; then :
8599 $as_echo_n "(cached) " >&6
8601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8602 /* end confdefs.h. */
8603 #include <sys/types.h>
8609 return *(signal (0, 0)) (0) == 1;
8614 if ac_fn_c_try_compile "$LINENO"; then :
8615 ac_cv_type_signal=int
8617 ac_cv_type_signal=void
8619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
8622 $as_echo "$ac_cv_type_signal" >&6; }
8624 cat >>confdefs.h <<_ACEOF
8625 #define RETSIGTYPE $ac_cv_type_signal
8629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
8630 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
8631 if ${ac_cv_type_uid_t+:} false; then :
8632 $as_echo_n "(cached) " >&6
8634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8635 /* end confdefs.h. */
8636 #include <sys/types.h>
8639 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8640 $EGREP "uid_t" >/dev/null 2>&1; then :
8641 ac_cv_type_uid_t=yes
8648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
8649 $as_echo "$ac_cv_type_uid_t" >&6; }
8650 if test $ac_cv_type_uid_t = no; then
8652 $as_echo "#define uid_t int" >>confdefs.h
8655 $as_echo "#define gid_t int" >>confdefs.h
8659 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
8660 if test "x$ac_cv_type_pid_t" = xyes; then :
8664 cat >>confdefs.h <<_ACEOF
8671 # Find some definition for uintmax_t
8673 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
8674 if test "x$ac_cv_type_uintmax_t" = xyes; then :
8677 uintmax_t="unsigned long"
8678 ac_fn_c_check_type "$LINENO" "unsigned long long" "ac_cv_type_unsigned_long_long" "$ac_includes_default"
8679 if test "x$ac_cv_type_unsigned_long_long" = xyes; then :
8680 uintmax_t="unsigned long long"
8684 cat >>confdefs.h <<_ACEOF
8685 #define uintmax_t $uintmax_t
8692 # Find out whether our struct stat returns nanosecond resolution timestamps.
8694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nanoseconds field of struct stat" >&5
8695 $as_echo_n "checking for nanoseconds field of struct stat... " >&6; }
8696 if ${ac_cv_struct_st_mtim_nsec+:} false; then :
8697 $as_echo_n "(cached) " >&6
8699 ac_save_CPPFLAGS="$CPPFLAGS"
8700 ac_cv_struct_st_mtim_nsec=no
8701 # st_mtim.tv_nsec -- the usual case
8702 # st_mtim._tv_nsec -- Solaris 2.6, if
8703 # (defined _XOPEN_SOURCE && _XOPEN_SOURCE_EXTENDED == 1
8704 # && !defined __EXTENSIONS__)
8705 # st_mtim.st__tim.tv_nsec -- UnixWare 2.1.2
8706 # st_mtime_n -- AIX 5.2 and above
8707 # st_mtimespec.tv_nsec -- Darwin (Mac OSX)
8708 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
8709 CPPFLAGS="$ac_save_CPPFLAGS -DST_MTIM_NSEC=$ac_val"
8710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8711 /* end confdefs.h. */
8712 #include <sys/types.h>
8713 #include <sys/stat.h>
8718 struct stat s; s.ST_MTIM_NSEC;
8723 if ac_fn_c_try_compile "$LINENO"; then :
8724 ac_cv_struct_st_mtim_nsec=$ac_val; break
8726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8728 CPPFLAGS="$ac_save_CPPFLAGS"
8731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_st_mtim_nsec" >&5
8732 $as_echo "$ac_cv_struct_st_mtim_nsec" >&6; }
8734 if test $ac_cv_struct_st_mtim_nsec != no; then
8736 cat >>confdefs.h <<_ACEOF
8737 #define ST_MTIM_NSEC $ac_cv_struct_st_mtim_nsec
8743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use high resolution file timestamps" >&5
8744 $as_echo_n "checking whether to use high resolution file timestamps... " >&6; }
8745 if ${make_cv_file_timestamp_hi_res+:} false; then :
8746 $as_echo_n "(cached) " >&6
8748 make_cv_file_timestamp_hi_res=no
8749 if test "$ac_cv_struct_st_mtim_nsec" != no; then :
8750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8751 /* end confdefs.h. */
8754 # include <inttypes.h>
8759 char a[0x7fffffff < (uintmax_t)-1 >> 30 ? 1 : -1];
8764 if ac_fn_c_try_compile "$LINENO"; then :
8765 make_cv_file_timestamp_hi_res=yes
8767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $make_cv_file_timestamp_hi_res" >&5
8772 $as_echo "$make_cv_file_timestamp_hi_res" >&6; }
8773 if test "$make_cv_file_timestamp_hi_res" = yes; then :
8779 cat >>confdefs.h <<_ACEOF
8780 #define FILE_TIMESTAMP_HI_RES $val
8784 if test "$make_cv_file_timestamp_hi_res" = yes; then :
8785 # Solaris 2.5.1 needs -lposix4 to get the clock_gettime function.
8786 # Solaris 7 prefers the library name -lrt to the obsolescent name -lposix4.
8787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
8788 $as_echo_n "checking for library containing clock_gettime... " >&6; }
8789 if ${ac_cv_search_clock_gettime+:} false; then :
8790 $as_echo_n "(cached) " >&6
8792 ac_func_search_save_LIBS=$LIBS
8793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8794 /* end confdefs.h. */
8796 /* Override any GCC internal prototype to avoid an error.
8797 Use char because int might match the return type of a GCC
8798 builtin and then its argument prototype would still apply. */
8802 char clock_gettime ();
8806 return clock_gettime ();
8811 for ac_lib in '' rt posix4; do
8812 if test -z "$ac_lib"; then
8813 ac_res="none required"
8816 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8818 if ac_fn_c_try_link "$LINENO"; then :
8819 ac_cv_search_clock_gettime=$ac_res
8821 rm -f core conftest.err conftest.$ac_objext \
8823 if ${ac_cv_search_clock_gettime+:} false; then :
8827 if ${ac_cv_search_clock_gettime+:} false; then :
8830 ac_cv_search_clock_gettime=no
8833 LIBS=$ac_func_search_save_LIBS
8835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
8836 $as_echo "$ac_cv_search_clock_gettime" >&6; }
8837 ac_res=$ac_cv_search_clock_gettime
8838 if test "$ac_res" != no; then :
8839 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8843 if test "$ac_cv_search_clock_gettime" != no; then :
8845 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
8852 # Check for DOS-style pathnames.
8854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system uses MSDOS-style paths" >&5
8855 $as_echo_n "checking whether system uses MSDOS-style paths... " >&6; }
8856 if ${ac_cv_dos_paths+:} false; then :
8857 $as_echo_n "(cached) " >&6
8860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8861 /* end confdefs.h. */
8863 #if !defined _WIN32 && !defined __WIN32__ && !defined __MSDOS__ && !defined __EMX__ && !defined __MSYS__ && !defined __CYGWIN__
8864 neither MSDOS nor Windows nor OS2
8875 if ac_fn_c_try_compile "$LINENO"; then :
8880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_dos_paths" >&5
8883 $as_echo "$ac_cv_dos_paths" >&6; }
8885 if test x"$ac_cv_dos_paths" = xyes; then :
8887 cat >>confdefs.h <<_ACEOF
8888 #define HAVE_DOS_PATHS 1
8894 # See if we have a standard version of gettimeofday(). Since actual
8895 # implementations can differ, just make sure we have the most common
8897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for standard gettimeofday" >&5
8898 $as_echo_n "checking for standard gettimeofday... " >&6; }
8899 if ${ac_cv_func_gettimeofday+:} false; then :
8900 $as_echo_n "(cached) " >&6
8902 ac_cv_func_gettimeofday=no
8903 if test "$cross_compiling" = yes; then :
8904 ac_cv_func_gettimeofday="no (cross-compiling)"
8906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8907 /* end confdefs.h. */
8908 #include <sys/time.h>
8911 struct timeval t; t.tv_sec = -1; t.tv_usec = -1;
8912 exit (gettimeofday (&t, 0) != 0
8913 || t.tv_sec < 0 || t.tv_usec < 0);
8916 if ac_fn_c_try_run "$LINENO"; then :
8917 ac_cv_func_gettimeofday=yes
8919 ac_cv_func_gettimeofday=no
8921 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8922 conftest.$ac_objext conftest.beam conftest.$ac_ext
8926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_gettimeofday" >&5
8927 $as_echo "$ac_cv_func_gettimeofday" >&6; }
8928 if test "$ac_cv_func_gettimeofday" = yes; then :
8930 $as_echo "#define HAVE_GETTIMEOFDAY 1" >>confdefs.h
8935 for ac_func in strdup strndup mkstemp mktemp fdopen fileno \
8936 dup dup2 getcwd realpath sigsetmask sigaction \
8937 getgroups seteuid setegid setlinebuf setreuid setregid \
8938 getrlimit setrlimit setvbuf pipe strerror strsignal \
8939 lstat readlink atexit isatty ttyname
8941 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8942 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8943 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8944 cat >>confdefs.h <<_ACEOF
8945 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8952 # We need to check declarations, not just existence, because on Tru64 this
8953 # function is not declared without special flags, which themselves cause
8954 # other problems. We'll just use our own.
8955 ac_fn_c_check_decl "$LINENO" "bsd_signal" "ac_cv_have_decl_bsd_signal" "#define _GNU_SOURCE 1
8958 if test "x$ac_cv_have_decl_bsd_signal" = xyes; then :
8964 cat >>confdefs.h <<_ACEOF
8965 #define HAVE_DECL_BSD_SIGNAL $ac_have_decl
8969 if ${ac_cv_func_setvbuf_reversed+:} false; then :
8970 $as_echo_n "(cached) " >&6
8972 ac_cv_func_setvbuf_reversed=no
8977 # Rumor has it that strcasecmp lives in -lresolv on some odd systems.
8978 # It doesn't hurt much to use our own if we can't find it so I don't
8979 # make the effort here.
8980 for ac_func in strcasecmp strncasecmp strcmpi strncmpi stricmp strnicmp
8982 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8983 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8984 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8985 cat >>confdefs.h <<_ACEOF
8986 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8993 # strcoll() is used by the GNU glob library
8994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strcoll" >&5
8995 $as_echo_n "checking for working strcoll... " >&6; }
8996 if ${ac_cv_func_strcoll_works+:} false; then :
8997 $as_echo_n "(cached) " >&6
8999 if test "$cross_compiling" = yes; then :
9000 ac_cv_func_strcoll_works=no
9002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9003 /* end confdefs.h. */
9004 $ac_includes_default
9008 return (strcoll ("abc", "def") >= 0 ||
9009 strcoll ("ABC", "DEF") >= 0 ||
9010 strcoll ("123", "456") >= 0)
9015 if ac_fn_c_try_run "$LINENO"; then :
9016 ac_cv_func_strcoll_works=yes
9018 ac_cv_func_strcoll_works=no
9020 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9021 conftest.$ac_objext conftest.beam conftest.$ac_ext
9025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strcoll_works" >&5
9026 $as_echo "$ac_cv_func_strcoll_works" >&6; }
9027 if test $ac_cv_func_strcoll_works = yes; then
9029 $as_echo "#define HAVE_STRCOLL 1" >>confdefs.h
9034 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
9035 if test "x$ac_cv_type_size_t" = xyes; then :
9039 cat >>confdefs.h <<_ACEOF
9040 #define size_t unsigned int
9045 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
9046 # for constant arguments. Useless!
9047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
9048 $as_echo_n "checking for working alloca.h... " >&6; }
9049 if ${ac_cv_working_alloca_h+:} false; then :
9050 $as_echo_n "(cached) " >&6
9052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9053 /* end confdefs.h. */
9058 char *p = (char *) alloca (2 * sizeof (int));
9064 if ac_fn_c_try_link "$LINENO"; then :
9065 ac_cv_working_alloca_h=yes
9067 ac_cv_working_alloca_h=no
9069 rm -f core conftest.err conftest.$ac_objext \
9070 conftest$ac_exeext conftest.$ac_ext
9072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
9073 $as_echo "$ac_cv_working_alloca_h" >&6; }
9074 if test $ac_cv_working_alloca_h = yes; then
9076 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
9080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
9081 $as_echo_n "checking for alloca... " >&6; }
9082 if ${ac_cv_func_alloca_works+:} false; then :
9083 $as_echo_n "(cached) " >&6
9085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9086 /* end confdefs.h. */
9088 # define alloca __builtin_alloca
9091 # include <malloc.h>
9092 # define alloca _alloca
9094 # ifdef HAVE_ALLOCA_H
9095 # include <alloca.h>
9100 # ifndef alloca /* predefined by HP cc +Olibcalls */
9101 void *alloca (size_t);
9111 char *p = (char *) alloca (1);
9117 if ac_fn_c_try_link "$LINENO"; then :
9118 ac_cv_func_alloca_works=yes
9120 ac_cv_func_alloca_works=no
9122 rm -f core conftest.err conftest.$ac_objext \
9123 conftest$ac_exeext conftest.$ac_ext
9125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
9126 $as_echo "$ac_cv_func_alloca_works" >&6; }
9128 if test $ac_cv_func_alloca_works = yes; then
9130 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
9133 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
9134 # that cause trouble. Some versions do not even contain alloca or
9135 # contain a buggy version. If you still want to use their alloca,
9136 # use ar to extract alloca.o from them instead of compiling alloca.c.
9138 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
9140 $as_echo "#define C_ALLOCA 1" >>confdefs.h
9143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
9144 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
9145 if ${ac_cv_os_cray+:} false; then :
9146 $as_echo_n "(cached) " >&6
9148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9149 /* end confdefs.h. */
9150 #if defined CRAY && ! defined CRAY2
9157 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9158 $EGREP "webecray" >/dev/null 2>&1; then :
9166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
9167 $as_echo "$ac_cv_os_cray" >&6; }
9168 if test $ac_cv_os_cray = yes; then
9169 for ac_func in _getb67 GETB67 getb67; do
9170 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9171 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9172 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9174 cat >>confdefs.h <<_ACEOF
9175 #define CRAY_STACKSEG_END $ac_func
9184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
9185 $as_echo_n "checking stack direction for C alloca... " >&6; }
9186 if ${ac_cv_c_stack_direction+:} false; then :
9187 $as_echo_n "(cached) " >&6
9189 if test "$cross_compiling" = yes; then :
9190 ac_cv_c_stack_direction=0
9192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9193 /* end confdefs.h. */
9194 $ac_includes_default
9196 find_stack_direction (int *addr, int depth)
9201 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
9202 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
9207 main (int argc, char **argv)
9209 return find_stack_direction (0, argc + !argv + 20) < 0;
9212 if ac_fn_c_try_run "$LINENO"; then :
9213 ac_cv_c_stack_direction=1
9215 ac_cv_c_stack_direction=-1
9217 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9218 conftest.$ac_objext conftest.beam conftest.$ac_ext
9222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
9223 $as_echo "$ac_cv_c_stack_direction" >&6; }
9224 cat >>confdefs.h <<_ACEOF
9225 #define STACK_DIRECTION $ac_cv_c_stack_direction
9231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
9232 $as_echo_n "checking whether closedir returns void... " >&6; }
9233 if ${ac_cv_func_closedir_void+:} false; then :
9234 $as_echo_n "(cached) " >&6
9236 if test "$cross_compiling" = yes; then :
9237 ac_cv_func_closedir_void=yes
9239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9240 /* end confdefs.h. */
9241 $ac_includes_default
9242 #include <$ac_header_dirent>
9250 return closedir (opendir (".")) != 0;
9255 if ac_fn_c_try_run "$LINENO"; then :
9256 ac_cv_func_closedir_void=no
9258 ac_cv_func_closedir_void=yes
9260 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9261 conftest.$ac_objext conftest.beam conftest.$ac_ext
9265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
9266 $as_echo "$ac_cv_func_closedir_void" >&6; }
9267 if test $ac_cv_func_closedir_void = yes; then
9269 $as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
9274 # See if the user wants to add (or not) GNU Guile support
9282 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
9283 if test -n "$ac_tool_prefix"; then
9284 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
9285 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
9286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9287 $as_echo_n "checking for $ac_word... " >&6; }
9288 if ${ac_cv_path_PKG_CONFIG+:} false; then :
9289 $as_echo_n "(cached) " >&6
9293 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9300 test -z "$as_dir" && as_dir=.
9301 for ac_exec_ext in '' $ac_executable_extensions; do
9302 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9303 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9304 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9314 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9315 if test -n "$PKG_CONFIG"; then
9316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9317 $as_echo "$PKG_CONFIG" >&6; }
9319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9320 $as_echo "no" >&6; }
9325 if test -z "$ac_cv_path_PKG_CONFIG"; then
9326 ac_pt_PKG_CONFIG=$PKG_CONFIG
9327 # Extract the first word of "pkg-config", so it can be a program name with args.
9328 set dummy pkg-config; ac_word=$2
9329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9330 $as_echo_n "checking for $ac_word... " >&6; }
9331 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
9332 $as_echo_n "(cached) " >&6
9334 case $ac_pt_PKG_CONFIG in
9336 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
9339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9343 test -z "$as_dir" && as_dir=.
9344 for ac_exec_ext in '' $ac_executable_extensions; do
9345 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9346 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9347 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9357 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
9358 if test -n "$ac_pt_PKG_CONFIG"; then
9359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
9360 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
9362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9363 $as_echo "no" >&6; }
9366 if test "x$ac_pt_PKG_CONFIG" = x; then
9369 case $cross_compiling:$ac_tool_warned in
9371 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9372 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9373 ac_tool_warned=yes ;;
9375 PKG_CONFIG=$ac_pt_PKG_CONFIG
9378 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
9382 if test -n "$PKG_CONFIG"; then
9383 _pkg_min_version=0.9.0
9384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
9385 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
9386 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
9387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9388 $as_echo "yes" >&6; }
9390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9391 $as_echo "no" >&6; }
9396 # Check whether --with-guile was given.
9397 if test "${with_guile+set}" = set; then :
9398 withval=$with_guile;
9402 # For some strange reason, at least on Ubuntu, each version of Guile
9403 # comes with it's own PC file so we have to specify them as individual
9405 if test "x$with_guile" != xno; then :
9408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GUILE" >&5
9409 $as_echo_n "checking for GUILE... " >&6; }
9411 if test -n "$GUILE_CFLAGS"; then
9412 pkg_cv_GUILE_CFLAGS="$GUILE_CFLAGS"
9413 elif test -n "$PKG_CONFIG"; then
9414 if test -n "$PKG_CONFIG" && \
9415 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"guile-2.0\""; } >&5
9416 ($PKG_CONFIG --exists --print-errors "guile-2.0") 2>&5
9418 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9419 test $ac_status = 0; }; then
9420 pkg_cv_GUILE_CFLAGS=`$PKG_CONFIG --cflags "guile-2.0" 2>/dev/null`
9421 test "x$?" != "x0" && pkg_failed=yes
9428 if test -n "$GUILE_LIBS"; then
9429 pkg_cv_GUILE_LIBS="$GUILE_LIBS"
9430 elif test -n "$PKG_CONFIG"; then
9431 if test -n "$PKG_CONFIG" && \
9432 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"guile-2.0\""; } >&5
9433 ($PKG_CONFIG --exists --print-errors "guile-2.0") 2>&5
9435 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9436 test $ac_status = 0; }; then
9437 pkg_cv_GUILE_LIBS=`$PKG_CONFIG --libs "guile-2.0" 2>/dev/null`
9438 test "x$?" != "x0" && pkg_failed=yes
9448 if test $pkg_failed = yes; then
9449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9450 $as_echo "no" >&6; }
9452 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
9453 _pkg_short_errors_supported=yes
9455 _pkg_short_errors_supported=no
9457 if test $_pkg_short_errors_supported = yes; then
9458 GUILE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "guile-2.0" 2>&1`
9460 GUILE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "guile-2.0" 2>&1`
9462 # Put the nasty error message in config.log where it belongs
9463 echo "$GUILE_PKG_ERRORS" >&5
9467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GUILE" >&5
9468 $as_echo_n "checking for GUILE... " >&6; }
9470 if test -n "$GUILE_CFLAGS"; then
9471 pkg_cv_GUILE_CFLAGS="$GUILE_CFLAGS"
9472 elif test -n "$PKG_CONFIG"; then
9473 if test -n "$PKG_CONFIG" && \
9474 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"guile-1.8\""; } >&5
9475 ($PKG_CONFIG --exists --print-errors "guile-1.8") 2>&5
9477 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9478 test $ac_status = 0; }; then
9479 pkg_cv_GUILE_CFLAGS=`$PKG_CONFIG --cflags "guile-1.8" 2>/dev/null`
9480 test "x$?" != "x0" && pkg_failed=yes
9487 if test -n "$GUILE_LIBS"; then
9488 pkg_cv_GUILE_LIBS="$GUILE_LIBS"
9489 elif test -n "$PKG_CONFIG"; then
9490 if test -n "$PKG_CONFIG" && \
9491 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"guile-1.8\""; } >&5
9492 ($PKG_CONFIG --exists --print-errors "guile-1.8") 2>&5
9494 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9495 test $ac_status = 0; }; then
9496 pkg_cv_GUILE_LIBS=`$PKG_CONFIG --libs "guile-1.8" 2>/dev/null`
9497 test "x$?" != "x0" && pkg_failed=yes
9507 if test $pkg_failed = yes; then
9508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9509 $as_echo "no" >&6; }
9511 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
9512 _pkg_short_errors_supported=yes
9514 _pkg_short_errors_supported=no
9516 if test $_pkg_short_errors_supported = yes; then
9517 GUILE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "guile-1.8" 2>&1`
9519 GUILE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "guile-1.8" 2>&1`
9521 # Put the nasty error message in config.log where it belongs
9522 echo "$GUILE_PKG_ERRORS" >&5
9525 elif test $pkg_failed = untried; then
9526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9527 $as_echo "no" >&6; }
9530 GUILE_CFLAGS=$pkg_cv_GUILE_CFLAGS
9531 GUILE_LIBS=$pkg_cv_GUILE_LIBS
9532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9533 $as_echo "yes" >&6; }
9536 elif test $pkg_failed = untried; then
9537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9538 $as_echo "no" >&6; }
9541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GUILE" >&5
9542 $as_echo_n "checking for GUILE... " >&6; }
9544 if test -n "$GUILE_CFLAGS"; then
9545 pkg_cv_GUILE_CFLAGS="$GUILE_CFLAGS"
9546 elif test -n "$PKG_CONFIG"; then
9547 if test -n "$PKG_CONFIG" && \
9548 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"guile-1.8\""; } >&5
9549 ($PKG_CONFIG --exists --print-errors "guile-1.8") 2>&5
9551 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9552 test $ac_status = 0; }; then
9553 pkg_cv_GUILE_CFLAGS=`$PKG_CONFIG --cflags "guile-1.8" 2>/dev/null`
9554 test "x$?" != "x0" && pkg_failed=yes
9561 if test -n "$GUILE_LIBS"; then
9562 pkg_cv_GUILE_LIBS="$GUILE_LIBS"
9563 elif test -n "$PKG_CONFIG"; then
9564 if test -n "$PKG_CONFIG" && \
9565 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"guile-1.8\""; } >&5
9566 ($PKG_CONFIG --exists --print-errors "guile-1.8") 2>&5
9568 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9569 test $ac_status = 0; }; then
9570 pkg_cv_GUILE_LIBS=`$PKG_CONFIG --libs "guile-1.8" 2>/dev/null`
9571 test "x$?" != "x0" && pkg_failed=yes
9581 if test $pkg_failed = yes; then
9582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9583 $as_echo "no" >&6; }
9585 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
9586 _pkg_short_errors_supported=yes
9588 _pkg_short_errors_supported=no
9590 if test $_pkg_short_errors_supported = yes; then
9591 GUILE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "guile-1.8" 2>&1`
9593 GUILE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "guile-1.8" 2>&1`
9595 # Put the nasty error message in config.log where it belongs
9596 echo "$GUILE_PKG_ERRORS" >&5
9599 elif test $pkg_failed = untried; then
9600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9601 $as_echo "no" >&6; }
9604 GUILE_CFLAGS=$pkg_cv_GUILE_CFLAGS
9605 GUILE_LIBS=$pkg_cv_GUILE_LIBS
9606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9607 $as_echo "yes" >&6; }
9611 GUILE_CFLAGS=$pkg_cv_GUILE_CFLAGS
9612 GUILE_LIBS=$pkg_cv_GUILE_LIBS
9613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9614 $as_echo "yes" >&6; }
9620 if test "$have_guile" = yes; then :
9622 $as_echo "#define HAVE_GUILE 1" >>confdefs.h
9626 if test "$have_guile" = yes; then
9628 HAVE_GUILE_FALSE='#'
9635 ac_have_func=no # yes means we've found a way to get the load average.
9637 # Make sure getloadavg.c is where it belongs, at configure-time.
9638 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
9639 as_fn_error $? "$srcdir/$ac_config_libobj_dir/getloadavg.c is missing" "$LINENO" 5
9643 # Check for getloadavg, but be sure not to touch the cache variable.
9644 (ac_fn_c_check_func "$LINENO" "getloadavg" "ac_cv_func_getloadavg"
9645 if test "x$ac_cv_func_getloadavg" = xyes; then :
9650 ) && ac_have_func=yes
9652 # On HPUX9, an unprivileged user can get load averages through this function.
9653 for ac_func in pstat_getdynamic
9655 ac_fn_c_check_func "$LINENO" "pstat_getdynamic" "ac_cv_func_pstat_getdynamic"
9656 if test "x$ac_cv_func_pstat_getdynamic" = xyes; then :
9657 cat >>confdefs.h <<_ACEOF
9658 #define HAVE_PSTAT_GETDYNAMIC 1
9665 # Solaris has libkstat which does not require root.
9666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
9667 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
9668 if ${ac_cv_lib_kstat_kstat_open+:} false; then :
9669 $as_echo_n "(cached) " >&6
9671 ac_check_lib_save_LIBS=$LIBS
9672 LIBS="-lkstat $LIBS"
9673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9674 /* end confdefs.h. */
9676 /* Override any GCC internal prototype to avoid an error.
9677 Use char because int might match the return type of a GCC
9678 builtin and then its argument prototype would still apply. */
9686 return kstat_open ();
9691 if ac_fn_c_try_link "$LINENO"; then :
9692 ac_cv_lib_kstat_kstat_open=yes
9694 ac_cv_lib_kstat_kstat_open=no
9696 rm -f core conftest.err conftest.$ac_objext \
9697 conftest$ac_exeext conftest.$ac_ext
9698 LIBS=$ac_check_lib_save_LIBS
9700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
9701 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
9702 if test "x$ac_cv_lib_kstat_kstat_open" = xyes; then :
9703 cat >>confdefs.h <<_ACEOF
9704 #define HAVE_LIBKSTAT 1
9707 LIBS="-lkstat $LIBS"
9711 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
9713 # Some systems with -lutil have (and need) -lkvm as well, some do not.
9714 # On Solaris, -lkvm requires nlist from -lelf, so check that first
9715 # to get the right answer into the cache.
9716 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
9717 if test $ac_have_func = no; then
9718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_begin in -lelf" >&5
9719 $as_echo_n "checking for elf_begin in -lelf... " >&6; }
9720 if ${ac_cv_lib_elf_elf_begin+:} false; then :
9721 $as_echo_n "(cached) " >&6
9723 ac_check_lib_save_LIBS=$LIBS
9725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9726 /* end confdefs.h. */
9728 /* Override any GCC internal prototype to avoid an error.
9729 Use char because int might match the return type of a GCC
9730 builtin and then its argument prototype would still apply. */
9738 return elf_begin ();
9743 if ac_fn_c_try_link "$LINENO"; then :
9744 ac_cv_lib_elf_elf_begin=yes
9746 ac_cv_lib_elf_elf_begin=no
9748 rm -f core conftest.err conftest.$ac_objext \
9749 conftest$ac_exeext conftest.$ac_ext
9750 LIBS=$ac_check_lib_save_LIBS
9752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_begin" >&5
9753 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
9754 if test "x$ac_cv_lib_elf_elf_begin" = xyes; then :
9759 if test $ac_have_func = no; then
9760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kvm_open in -lkvm" >&5
9761 $as_echo_n "checking for kvm_open in -lkvm... " >&6; }
9762 if ${ac_cv_lib_kvm_kvm_open+:} false; then :
9763 $as_echo_n "(cached) " >&6
9765 ac_check_lib_save_LIBS=$LIBS
9767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9768 /* end confdefs.h. */
9770 /* Override any GCC internal prototype to avoid an error.
9771 Use char because int might match the return type of a GCC
9772 builtin and then its argument prototype would still apply. */
9785 if ac_fn_c_try_link "$LINENO"; then :
9786 ac_cv_lib_kvm_kvm_open=yes
9788 ac_cv_lib_kvm_kvm_open=no
9790 rm -f core conftest.err conftest.$ac_objext \
9791 conftest$ac_exeext conftest.$ac_ext
9792 LIBS=$ac_check_lib_save_LIBS
9794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_kvm_open" >&5
9795 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
9796 if test "x$ac_cv_lib_kvm_kvm_open" = xyes; then :
9800 # Check for the 4.4BSD definition of getloadavg.
9801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lutil" >&5
9802 $as_echo_n "checking for getloadavg in -lutil... " >&6; }
9803 if ${ac_cv_lib_util_getloadavg+:} false; then :
9804 $as_echo_n "(cached) " >&6
9806 ac_check_lib_save_LIBS=$LIBS
9808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9809 /* end confdefs.h. */
9811 /* Override any GCC internal prototype to avoid an error.
9812 Use char because int might match the return type of a GCC
9813 builtin and then its argument prototype would still apply. */
9821 return getloadavg ();
9826 if ac_fn_c_try_link "$LINENO"; then :
9827 ac_cv_lib_util_getloadavg=yes
9829 ac_cv_lib_util_getloadavg=no
9831 rm -f core conftest.err conftest.$ac_objext \
9832 conftest$ac_exeext conftest.$ac_ext
9833 LIBS=$ac_check_lib_save_LIBS
9835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_getloadavg" >&5
9836 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
9837 if test "x$ac_cv_lib_util_getloadavg" = xyes; then :
9838 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
9843 if test $ac_have_func = no; then
9844 # There is a commonly available library for RS/6000 AIX.
9845 # Since it is not a standard part of AIX, it might be installed locally.
9846 ac_getloadavg_LIBS=$LIBS
9847 LIBS="-L/usr/local/lib $LIBS"
9848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lgetloadavg" >&5
9849 $as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
9850 if ${ac_cv_lib_getloadavg_getloadavg+:} false; then :
9851 $as_echo_n "(cached) " >&6
9853 ac_check_lib_save_LIBS=$LIBS
9854 LIBS="-lgetloadavg $LIBS"
9855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9856 /* end confdefs.h. */
9858 /* Override any GCC internal prototype to avoid an error.
9859 Use char because int might match the return type of a GCC
9860 builtin and then its argument prototype would still apply. */
9868 return getloadavg ();
9873 if ac_fn_c_try_link "$LINENO"; then :
9874 ac_cv_lib_getloadavg_getloadavg=yes
9876 ac_cv_lib_getloadavg_getloadavg=no
9878 rm -f core conftest.err conftest.$ac_objext \
9879 conftest$ac_exeext conftest.$ac_ext
9880 LIBS=$ac_check_lib_save_LIBS
9882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_getloadavg_getloadavg" >&5
9883 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
9884 if test "x$ac_cv_lib_getloadavg_getloadavg" = xyes; then :
9885 LIBS="-lgetloadavg $LIBS"
9887 LIBS=$ac_getloadavg_LIBS
9892 # Make sure it is really in the library, if we think we found it,
9893 # otherwise set up the replacement function.
9894 for ac_func in getloadavg
9896 ac_fn_c_check_func "$LINENO" "getloadavg" "ac_cv_func_getloadavg"
9897 if test "x$ac_cv_func_getloadavg" = xyes; then :
9898 cat >>confdefs.h <<_ACEOF
9899 #define HAVE_GETLOADAVG 1
9903 case " $LIBOBJS " in
9904 *" getloadavg.$ac_objext "* ) ;;
9905 *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext"
9910 $as_echo "#define C_GETLOADAVG 1" >>confdefs.h
9912 # Figure out what our getloadavg.c needs.
9914 ac_fn_c_check_header_mongrel "$LINENO" "sys/dg_sys_info.h" "ac_cv_header_sys_dg_sys_info_h" "$ac_includes_default"
9915 if test "x$ac_cv_header_sys_dg_sys_info_h" = xyes; then :
9918 $as_echo "#define DGUX 1" >>confdefs.h
9920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dg_sys_info in -ldgc" >&5
9921 $as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
9922 if ${ac_cv_lib_dgc_dg_sys_info+:} false; then :
9923 $as_echo_n "(cached) " >&6
9925 ac_check_lib_save_LIBS=$LIBS
9927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9928 /* end confdefs.h. */
9930 /* Override any GCC internal prototype to avoid an error.
9931 Use char because int might match the return type of a GCC
9932 builtin and then its argument prototype would still apply. */
9936 char dg_sys_info ();
9940 return dg_sys_info ();
9945 if ac_fn_c_try_link "$LINENO"; then :
9946 ac_cv_lib_dgc_dg_sys_info=yes
9948 ac_cv_lib_dgc_dg_sys_info=no
9950 rm -f core conftest.err conftest.$ac_objext \
9951 conftest$ac_exeext conftest.$ac_ext
9952 LIBS=$ac_check_lib_save_LIBS
9954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dgc_dg_sys_info" >&5
9955 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
9956 if test "x$ac_cv_lib_dgc_dg_sys_info" = xyes; then :
9957 cat >>confdefs.h <<_ACEOF
9958 #define HAVE_LIBDGC 1
9969 ac_fn_c_check_header_mongrel "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
9970 if test "x$ac_cv_header_locale_h" = xyes; then :
9975 for ac_func in setlocale
9977 ac_fn_c_check_func "$LINENO" "setlocale" "ac_cv_func_setlocale"
9978 if test "x$ac_cv_func_setlocale" = xyes; then :
9979 cat >>confdefs.h <<_ACEOF
9980 #define HAVE_SETLOCALE 1
9987 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
9988 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
9989 # Irix 4.0.5F has the header but not the library.
9990 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes \
9991 && test "$ac_cv_lib_kvm_kvm_open" = yes; then
9994 $as_echo "#define SVR4 1" >>confdefs.h
9998 if test $ac_have_func = no; then
9999 ac_fn_c_check_header_mongrel "$LINENO" "inq_stats/cpustats.h" "ac_cv_header_inq_stats_cpustats_h" "$ac_includes_default"
10000 if test "x$ac_cv_header_inq_stats_cpustats_h" = xyes; then :
10003 $as_echo "#define UMAX 1" >>confdefs.h
10006 $as_echo "#define UMAX4_3 1" >>confdefs.h
10013 if test $ac_have_func = no; then
10014 ac_fn_c_check_header_mongrel "$LINENO" "sys/cpustats.h" "ac_cv_header_sys_cpustats_h" "$ac_includes_default"
10015 if test "x$ac_cv_header_sys_cpustats_h" = xyes; then :
10016 ac_have_func=yes; $as_echo "#define UMAX 1" >>confdefs.h
10023 if test $ac_have_func = no; then
10024 for ac_header in mach/mach.h
10026 ac_fn_c_check_header_mongrel "$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default"
10027 if test "x$ac_cv_header_mach_mach_h" = xyes; then :
10028 cat >>confdefs.h <<_ACEOF
10029 #define HAVE_MACH_MACH_H 1
10038 for ac_header in nlist.h
10040 ac_fn_c_check_header_mongrel "$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default"
10041 if test "x$ac_cv_header_nlist_h" = xyes; then :
10042 cat >>confdefs.h <<_ACEOF
10043 #define HAVE_NLIST_H 1
10045 ac_fn_c_check_member "$LINENO" "struct nlist" "n_un.n_name" "ac_cv_member_struct_nlist_n_un_n_name" "#include <nlist.h>
10047 if test "x$ac_cv_member_struct_nlist_n_un_n_name" = xyes; then :
10049 cat >>confdefs.h <<_ACEOF
10050 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
10054 $as_echo "#define NLIST_NAME_UNION 1" >>confdefs.h
10067 # Some definitions of getloadavg require that the program be installed setgid.
10068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getloadavg requires setgid" >&5
10069 $as_echo_n "checking whether getloadavg requires setgid... " >&6; }
10070 if ${ac_cv_func_getloadavg_setgid+:} false; then :
10071 $as_echo_n "(cached) " >&6
10073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10074 /* end confdefs.h. */
10075 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
10076 #ifdef LDAV_PRIVILEGED
10077 Yowza Am I SETGID yet
10080 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10081 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then :
10082 ac_cv_func_getloadavg_setgid=yes
10084 ac_cv_func_getloadavg_setgid=no
10089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getloadavg_setgid" >&5
10090 $as_echo "$ac_cv_func_getloadavg_setgid" >&6; }
10091 if test $ac_cv_func_getloadavg_setgid = yes; then
10094 $as_echo "#define GETLOADAVG_PRIVILEGED 1" >>confdefs.h
10100 if test $ac_cv_func_getloadavg_setgid = yes; then
10101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking group of /dev/kmem" >&5
10102 $as_echo_n "checking group of /dev/kmem... " >&6; }
10103 if ${ac_cv_group_kmem+:} false; then :
10104 $as_echo_n "(cached) " >&6
10106 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
10107 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
10108 # If we got an error (system does not support symlinks), try without -L.
10109 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
10110 ac_cv_group_kmem=`$as_echo "$ac_ls_output" \
10111 | sed -ne 's/[ ][ ]*/ /g;
10112 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
10116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_group_kmem" >&5
10117 $as_echo "$ac_cv_group_kmem" >&6; }
10118 KMEM_GROUP=$ac_cv_group_kmem
10120 if test "x$ac_save_LIBS" = x; then
10121 GETLOADAVG_LIBS=$LIBS
10123 GETLOADAVG_LIBS=`$as_echo "$LIBS" | sed "s|$ac_save_LIBS||"`
10129 # AC_FUNC_GETLOADAVG is documented to set the NLIST_STRUCT value, but it
10130 # doesn't. So, we will.
10132 if test "$ac_cv_header_nlist_h" = yes; then :
10133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10134 /* end confdefs.h. */
10140 nl.n_name = "string";
10146 if ac_fn_c_try_compile "$LINENO"; then :
10147 make_cv_nlist_struct=yes
10149 make_cv_nlist_struct=no
10151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10152 if test "$make_cv_nlist_struct" = yes; then :
10154 $as_echo "#define NLIST_STRUCT 1" >>confdefs.h
10161 ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "$ac_includes_default
10162 #include <signal.h>
10163 /* NetBSD declares sys_siglist in unistd.h. */
10165 # include <unistd.h>
10169 if test "x$ac_cv_have_decl_sys_siglist" = xyes; then :
10175 cat >>confdefs.h <<_ACEOF
10176 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
10178 ac_fn_c_check_decl "$LINENO" "_sys_siglist" "ac_cv_have_decl__sys_siglist" "$ac_includes_default
10179 #include <signal.h>
10180 /* NetBSD declares sys_siglist in unistd.h. */
10182 # include <unistd.h>
10186 if test "x$ac_cv_have_decl__sys_siglist" = xyes; then :
10192 cat >>confdefs.h <<_ACEOF
10193 #define HAVE_DECL__SYS_SIGLIST $ac_have_decl
10195 ac_fn_c_check_decl "$LINENO" "__sys_siglist" "ac_cv_have_decl___sys_siglist" "$ac_includes_default
10196 #include <signal.h>
10197 /* NetBSD declares sys_siglist in unistd.h. */
10199 # include <unistd.h>
10203 if test "x$ac_cv_have_decl___sys_siglist" = xyes; then :
10209 cat >>confdefs.h <<_ACEOF
10210 #define HAVE_DECL___SYS_SIGLIST $ac_have_decl
10215 # Check out the wait reality.
10216 for ac_header in sys/wait.h
10218 ac_fn_c_check_header_compile "$LINENO" "sys/wait.h" "ac_cv_header_sys_wait_h" "#include <sys/types.h>
10220 if test "x$ac_cv_header_sys_wait_h" = xyes; then :
10221 cat >>confdefs.h <<_ACEOF
10222 #define HAVE_SYS_WAIT_H 1
10229 for ac_func in waitpid wait3
10231 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10232 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10233 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10234 cat >>confdefs.h <<_ACEOF
10235 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for union wait" >&5
10242 $as_echo_n "checking for union wait... " >&6; }
10243 if ${make_cv_union_wait+:} false; then :
10244 $as_echo_n "(cached) " >&6
10246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10247 /* end confdefs.h. */
10248 #include <sys/types.h>
10249 #include <sys/wait.h>
10253 union wait status; int pid; pid = wait (&status);
10255 /* Some POSIXoid systems have both the new-style macros and the old
10256 union wait type, and they do not work together. If union wait
10257 conflicts with WEXITSTATUS et al, we don't want to use it at all. */
10258 if (WEXITSTATUS (status) != 0) pid = -1;
10260 /* If we have WEXITSTATUS and WTERMSIG, just use them on ints. */
10261 -- blow chunks here --
10264 #ifdef HAVE_WAITPID
10265 /* Make sure union wait works with waitpid. */
10266 pid = waitpid (-1, &status, 0);
10273 if ac_fn_c_try_link "$LINENO"; then :
10274 make_cv_union_wait=yes
10276 make_cv_union_wait=no
10278 rm -f core conftest.err conftest.$ac_objext \
10279 conftest$ac_exeext conftest.$ac_ext
10282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $make_cv_union_wait" >&5
10283 $as_echo "$make_cv_union_wait" >&6; }
10284 if test "$make_cv_union_wait" = yes; then :
10286 $as_echo "#define HAVE_UNION_WAIT 1" >>confdefs.h
10292 # If we're building on Windows/DOS/OS/2, add some support for DOS drive specs.
10293 if test "$PATH_SEPARATOR" = ';'; then :
10295 $as_echo "#define HAVE_DOS_PATHS 1" >>confdefs.h
10300 # See if the user wants to use pmake's "customs" distributed build capability
10304 # Check whether --with-customs was given.
10305 if test "${with_customs+set}" = set; then :
10306 withval=$with_customs; case $withval in #(
10310 make_cppflags="$CPPFLAGS"
10311 case $withval in #(
10315 CPPFLAGS="$CPPFLAGS -I$with_customs/include/customs"
10316 make_ldflags="$LDFLAGS -L$with_customs/lib" ;;
10320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for network libraries" >&5
10321 $as_echo_n "checking for network libraries... " >&6; }
10322 if ${cf_cv_netlibs+:} false; then :
10323 $as_echo_n "(cached) " >&6
10326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: working..." >&5
10327 $as_echo "working..." >&6; }
10329 cf_test_netlibs=yes
10330 for ac_func in gethostname
10332 ac_fn_c_check_func "$LINENO" "gethostname" "ac_cv_func_gethostname"
10333 if test "x$ac_cv_func_gethostname" = xyes; then :
10334 cat >>confdefs.h <<_ACEOF
10335 #define HAVE_GETHOSTNAME 1
10341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostname in -lnsl" >&5
10342 $as_echo_n "checking for gethostname in -lnsl... " >&6; }
10343 if ${ac_cv_lib_nsl_gethostname+:} false; then :
10344 $as_echo_n "(cached) " >&6
10346 ac_check_lib_save_LIBS=$LIBS
10347 LIBS="-lnsl $cf_cv_netlibs $LIBS"
10348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10349 /* end confdefs.h. */
10351 /* Override any GCC internal prototype to avoid an error.
10352 Use char because int might match the return type of a GCC
10353 builtin and then its argument prototype would still apply. */
10357 char gethostname ();
10361 return gethostname ();
10366 if ac_fn_c_try_link "$LINENO"; then :
10367 ac_cv_lib_nsl_gethostname=yes
10369 ac_cv_lib_nsl_gethostname=no
10371 rm -f core conftest.err conftest.$ac_objext \
10372 conftest$ac_exeext conftest.$ac_ext
10373 LIBS=$ac_check_lib_save_LIBS
10375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostname" >&5
10376 $as_echo "$ac_cv_lib_nsl_gethostname" >&6; }
10377 if test "x$ac_cv_lib_nsl_gethostname" = xyes; then :
10380 cf_tr_func=`echo gethostname | tr '[a-z]' '[A-Z]'`
10383 cat >>confdefs.h <<_ACEOF
10384 #define HAVE_$cf_tr_func 1
10387 ac_cv_func_gethostname=yes
10388 cf_cv_netlibs="-lnsl $cf_cv_netlibs"
10391 ac_cv_func_gethostname=unknown
10392 unset ac_cv_func_gethostname 2>/dev/null
10395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostname in -lsocket" >&5
10396 $as_echo_n "checking for gethostname in -lsocket... " >&6; }
10397 if ${ac_cv_lib_socket_gethostname+:} false; then :
10398 $as_echo_n "(cached) " >&6
10400 ac_check_lib_save_LIBS=$LIBS
10401 LIBS="-lsocket $cf_cv_netlibs $LIBS"
10402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10403 /* end confdefs.h. */
10405 /* Override any GCC internal prototype to avoid an error.
10406 Use char because int might match the return type of a GCC
10407 builtin and then its argument prototype would still apply. */
10411 char gethostname ();
10415 return gethostname ();
10420 if ac_fn_c_try_link "$LINENO"; then :
10421 ac_cv_lib_socket_gethostname=yes
10423 ac_cv_lib_socket_gethostname=no
10425 rm -f core conftest.err conftest.$ac_objext \
10426 conftest$ac_exeext conftest.$ac_ext
10427 LIBS=$ac_check_lib_save_LIBS
10429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_gethostname" >&5
10430 $as_echo "$ac_cv_lib_socket_gethostname" >&6; }
10431 if test "x$ac_cv_lib_socket_gethostname" = xyes; then :
10434 cf_tr_func=`echo gethostname | tr '[a-z]' '[A-Z]'`
10437 cat >>confdefs.h <<_ACEOF
10438 #define HAVE_$cf_tr_func 1
10441 ac_cv_func_gethostname=yes
10442 cf_cv_netlibs="-lsocket $cf_cv_netlibs"
10445 ac_cv_func_gethostname=unknown
10446 unset ac_cv_func_gethostname 2>/dev/null
10458 # FIXME: sequent needs this library (i.e., -lsocket -linet -lnsl), but
10459 # I don't know the entrypoints - 97/7/22 TD
10460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -linet" >&5
10461 $as_echo_n "checking for main in -linet... " >&6; }
10462 if ${ac_cv_lib_inet_main+:} false; then :
10463 $as_echo_n "(cached) " >&6
10465 ac_check_lib_save_LIBS=$LIBS
10466 LIBS="-linet $LIBS"
10467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10468 /* end confdefs.h. */
10479 if ac_fn_c_try_link "$LINENO"; then :
10480 ac_cv_lib_inet_main=yes
10482 ac_cv_lib_inet_main=no
10484 rm -f core conftest.err conftest.$ac_objext \
10485 conftest$ac_exeext conftest.$ac_ext
10486 LIBS=$ac_check_lib_save_LIBS
10488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_inet_main" >&5
10489 $as_echo "$ac_cv_lib_inet_main" >&6; }
10490 if test "x$ac_cv_lib_inet_main" = xyes; then :
10491 cf_cv_netlibs="-linet $cf_cv_netlibs"
10495 if test "$ac_cv_func_lsocket" != no ; then
10496 for ac_func in socket
10498 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
10499 if test "x$ac_cv_func_socket" = xyes; then :
10500 cat >>confdefs.h <<_ACEOF
10501 #define HAVE_SOCKET 1
10507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
10508 $as_echo_n "checking for socket in -lsocket... " >&6; }
10509 if ${ac_cv_lib_socket_socket+:} false; then :
10510 $as_echo_n "(cached) " >&6
10512 ac_check_lib_save_LIBS=$LIBS
10513 LIBS="-lsocket $cf_cv_netlibs $LIBS"
10514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10515 /* end confdefs.h. */
10517 /* Override any GCC internal prototype to avoid an error.
10518 Use char because int might match the return type of a GCC
10519 builtin and then its argument prototype would still apply. */
10532 if ac_fn_c_try_link "$LINENO"; then :
10533 ac_cv_lib_socket_socket=yes
10535 ac_cv_lib_socket_socket=no
10537 rm -f core conftest.err conftest.$ac_objext \
10538 conftest$ac_exeext conftest.$ac_ext
10539 LIBS=$ac_check_lib_save_LIBS
10541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
10542 $as_echo "$ac_cv_lib_socket_socket" >&6; }
10543 if test "x$ac_cv_lib_socket_socket" = xyes; then :
10546 cf_tr_func=`echo socket | tr '[a-z]' '[A-Z]'`
10549 cat >>confdefs.h <<_ACEOF
10550 #define HAVE_$cf_tr_func 1
10553 ac_cv_func_socket=yes
10554 cf_cv_netlibs="-lsocket $cf_cv_netlibs"
10557 ac_cv_func_socket=unknown
10558 unset ac_cv_func_socket 2>/dev/null
10561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lbsd" >&5
10562 $as_echo_n "checking for socket in -lbsd... " >&6; }
10563 if ${ac_cv_lib_bsd_socket+:} false; then :
10564 $as_echo_n "(cached) " >&6
10566 ac_check_lib_save_LIBS=$LIBS
10567 LIBS="-lbsd $cf_cv_netlibs $LIBS"
10568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10569 /* end confdefs.h. */
10571 /* Override any GCC internal prototype to avoid an error.
10572 Use char because int might match the return type of a GCC
10573 builtin and then its argument prototype would still apply. */
10586 if ac_fn_c_try_link "$LINENO"; then :
10587 ac_cv_lib_bsd_socket=yes
10589 ac_cv_lib_bsd_socket=no
10591 rm -f core conftest.err conftest.$ac_objext \
10592 conftest$ac_exeext conftest.$ac_ext
10593 LIBS=$ac_check_lib_save_LIBS
10595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_socket" >&5
10596 $as_echo "$ac_cv_lib_bsd_socket" >&6; }
10597 if test "x$ac_cv_lib_bsd_socket" = xyes; then :
10600 cf_tr_func=`echo socket | tr '[a-z]' '[A-Z]'`
10603 cat >>confdefs.h <<_ACEOF
10604 #define HAVE_$cf_tr_func 1
10607 ac_cv_func_socket=yes
10608 cf_cv_netlibs="-lbsd $cf_cv_netlibs"
10611 ac_cv_func_socket=unknown
10612 unset ac_cv_func_socket 2>/dev/null
10625 for ac_func in gethostbyname
10627 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
10628 if test "x$ac_cv_func_gethostbyname" = xyes; then :
10629 cat >>confdefs.h <<_ACEOF
10630 #define HAVE_GETHOSTBYNAME 1
10636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
10637 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
10638 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
10639 $as_echo_n "(cached) " >&6
10641 ac_check_lib_save_LIBS=$LIBS
10642 LIBS="-lnsl $cf_cv_netlibs $LIBS"
10643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10644 /* end confdefs.h. */
10646 /* Override any GCC internal prototype to avoid an error.
10647 Use char because int might match the return type of a GCC
10648 builtin and then its argument prototype would still apply. */
10652 char gethostbyname ();
10656 return gethostbyname ();
10661 if ac_fn_c_try_link "$LINENO"; then :
10662 ac_cv_lib_nsl_gethostbyname=yes
10664 ac_cv_lib_nsl_gethostbyname=no
10666 rm -f core conftest.err conftest.$ac_objext \
10667 conftest$ac_exeext conftest.$ac_ext
10668 LIBS=$ac_check_lib_save_LIBS
10670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
10671 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
10672 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
10675 cf_tr_func=`echo gethostbyname | tr '[a-z]' '[A-Z]'`
10678 cat >>confdefs.h <<_ACEOF
10679 #define HAVE_$cf_tr_func 1
10682 ac_cv_func_gethostbyname=yes
10683 cf_cv_netlibs="-lnsl $cf_cv_netlibs"
10686 ac_cv_func_gethostbyname=unknown
10687 unset ac_cv_func_gethostbyname 2>/dev/null
10698 LIBS="$LIBS $cf_cv_netlibs"
10699 test $cf_test_netlibs = no && echo "$cf_cv_netlibs" >&6
10701 ac_fn_c_check_header_mongrel "$LINENO" "customs.h" "ac_cv_header_customs_h" "$ac_includes_default"
10702 if test "x$ac_cv_header_customs_h" = xyes; then :
10705 LIBS="$LIBS -lcustoms" LDFLAGS="$make_ldflags"
10708 CPPFLAGS="$make_cppflags" make_badcust=yes
10718 # Tell automake about this, so it can include the right .c files.
10719 if test "$use_customs" = true; then
10721 USE_CUSTOMS_FALSE='#'
10723 USE_CUSTOMS_TRUE='#'
10728 # See if the user asked to handle case insensitive file systems.
10730 # Check whether --enable-case-insensitive-file-system was given.
10731 if test "${enable_case_insensitive_file_system+set}" = set; then :
10732 enableval=$enable_case_insensitive_file_system; if test "$enableval" = yes; then :
10733 $as_echo "#define HAVE_CASE_INSENSITIVE_FS 1" >>confdefs.h
10739 # See if we can handle the job server feature, and if the user wants it.
10740 # Check whether --enable-job-server was given.
10741 if test "${enable_job_server+set}" = set; then :
10742 enableval=$enable_job_server; make_cv_job_server="$enableval" user_job_server="$enableval"
10744 make_cv_job_server="yes"
10748 if test "$ac_cv_func_waitpid" = no && test "$ac_cv_func_wait3" = no; then :
10751 has_wait_nohang=yes
10754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SA_RESTART" >&5
10755 $as_echo_n "checking for SA_RESTART... " >&6; }
10756 if ${make_cv_sa_restart+:} false; then :
10757 $as_echo_n "(cached) " >&6
10760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10761 /* end confdefs.h. */
10762 #include <signal.h>
10771 if ac_fn_c_try_compile "$LINENO"; then :
10772 make_cv_sa_restart=yes
10774 make_cv_sa_restart=no
10776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $make_cv_sa_restart" >&5
10779 $as_echo "$make_cv_sa_restart" >&6; }
10781 if test "$make_cv_sa_restart" != no; then :
10783 $as_echo "#define HAVE_SA_RESTART 1" >>confdefs.h
10788 # Only allow jobserver on systems that support it
10789 case /$ac_cv_func_pipe/$ac_cv_func_sigaction/$make_cv_sa_restart/$has_wait_nohang/ in #(
10791 make_cv_job_server=no ;; #(
10796 # Also supported on OS2 and MinGW
10797 case $host_os in #(
10799 make_cv_job_server=yes ;; #(
10804 # If we support it and the user didn't disable it, build with jobserver
10805 case /$make_cv_job_server/$user_job_server/ in #(
10807 : no jobserver ;; #(
10810 $as_echo "#define MAKE_JOBSERVER 1" >>confdefs.h
10815 # If dl*() functions are supported we can enable the load operation
10816 ac_fn_c_check_decl "$LINENO" "dlopen" "ac_cv_have_decl_dlopen" "#include <dlfcn.h>
10818 if test "x$ac_cv_have_decl_dlopen" = xyes; then :
10824 cat >>confdefs.h <<_ACEOF
10825 #define HAVE_DECL_DLOPEN $ac_have_decl
10827 ac_fn_c_check_decl "$LINENO" "dlsym" "ac_cv_have_decl_dlsym" "#include <dlfcn.h>
10829 if test "x$ac_cv_have_decl_dlsym" = xyes; then :
10835 cat >>confdefs.h <<_ACEOF
10836 #define HAVE_DECL_DLSYM $ac_have_decl
10838 ac_fn_c_check_decl "$LINENO" "dlerror" "ac_cv_have_decl_dlerror" "#include <dlfcn.h>
10840 if test "x$ac_cv_have_decl_dlerror" = xyes; then :
10846 cat >>confdefs.h <<_ACEOF
10847 #define HAVE_DECL_DLERROR $ac_have_decl
10851 # Check whether --enable-load was given.
10852 if test "${enable_load+set}" = set; then :
10853 enableval=$enable_load; make_cv_load="$enableval" user_load="$enableval"
10859 case /$ac_cv_have_decl_dlopen/$ac_cv_have_decl_dlsym/$ac_cv_have_decl_dlerror/ in #(
10861 make_cv_load=no ;; #(
10866 # We might need -ldl
10867 if test "$make_cv_load" = yes; then :
10869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
10870 $as_echo_n "checking for library containing dlopen... " >&6; }
10871 if ${ac_cv_search_dlopen+:} false; then :
10872 $as_echo_n "(cached) " >&6
10874 ac_func_search_save_LIBS=$LIBS
10875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10876 /* end confdefs.h. */
10878 /* Override any GCC internal prototype to avoid an error.
10879 Use char because int might match the return type of a GCC
10880 builtin and then its argument prototype would still apply. */
10893 for ac_lib in '' dl; do
10894 if test -z "$ac_lib"; then
10895 ac_res="none required"
10898 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10900 if ac_fn_c_try_link "$LINENO"; then :
10901 ac_cv_search_dlopen=$ac_res
10903 rm -f core conftest.err conftest.$ac_objext \
10905 if ${ac_cv_search_dlopen+:} false; then :
10909 if ${ac_cv_search_dlopen+:} false; then :
10912 ac_cv_search_dlopen=no
10914 rm conftest.$ac_ext
10915 LIBS=$ac_func_search_save_LIBS
10917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
10918 $as_echo "$ac_cv_search_dlopen" >&6; }
10919 ac_res=$ac_cv_search_dlopen
10920 if test "$ac_res" != no; then :
10921 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10930 case /$make_cv_load/$user_load/ in #(
10932 make_cv_load=no ;; #(
10935 $as_echo "#define MAKE_LOAD 1" >>confdefs.h
10940 # If we want load support, we might need to link with export-dynamic.
10941 # See if we can figure it out. Unfortunately this is very difficult.
10942 # For example passing -rdynamic to the SunPRO linker gives a warning
10943 # but succeeds and creates a shared object, not an executable!
10944 if test "$make_cv_load" = yes; then :
10946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking If the linker accepts -Wl,--export-dynamic" >&5
10947 $as_echo_n "checking If the linker accepts -Wl,--export-dynamic... " >&6; }
10948 old_LDFLAGS="$LDFLAGS"
10949 LDFLAGS="$LDFLAGS -Wl,--export-dynamic"
10950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10951 /* end confdefs.h. */
10954 if ac_fn_c_try_link "$LINENO"; then :
10955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10956 $as_echo "yes" >&6; }
10957 AM_LDFLAGS=-Wl,--export-dynamic
10960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10961 $as_echo "no" >&6; }
10962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking If the linker accepts -rdynamic" >&5
10963 $as_echo_n "checking If the linker accepts -rdynamic... " >&6; }
10964 LDFLAGS="$old_LDFLAGS -rdynamic"
10965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10966 /* end confdefs.h. */
10969 if ac_fn_c_try_link "$LINENO"; then :
10970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10971 $as_echo "yes" >&6; }
10972 AM_LDFLAGS=-rdynamic
10975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10976 $as_echo "no" >&6; }
10978 rm -f core conftest.err conftest.$ac_objext \
10979 conftest$ac_exeext conftest.$ac_ext
10982 rm -f core conftest.err conftest.$ac_objext \
10983 conftest$ac_exeext conftest.$ac_ext
10984 LDFLAGS="$old_LDFLAGS"
10988 # if we have both lstat() and readlink() then we can support symlink
10990 if test "$ac_cv_func_lstat" = yes && test "$ac_cv_func_readlink" = yes; then :
10992 $as_echo "#define MAKE_SYMLINKS 1" >>confdefs.h
10997 # Find the SCCS commands, so we can include them in our default rules.
10999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for location of SCCS get command" >&5
11000 $as_echo_n "checking for location of SCCS get command... " >&6; }
11001 if ${make_cv_path_sccs_get+:} false; then :
11002 $as_echo_n "(cached) " >&6
11005 if test -f /usr/sccs/get; then :
11006 make_cv_path_sccs_get=/usr/sccs/get
11008 make_cv_path_sccs_get=get
11012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $make_cv_path_sccs_get" >&5
11013 $as_echo "$make_cv_path_sccs_get" >&6; }
11015 cat >>confdefs.h <<_ACEOF
11016 #define SCCS_GET "$make_cv_path_sccs_get"
11020 ac_clean_files="$ac_clean_files s.conftest conftoast" # Remove these later.
11021 if (/usr/sccs/admin -n s.conftest || admin -n s.conftest) >/dev/null 2>&1 &&
11022 test -f s.conftest; then :
11023 # We successfully created an SCCS file.
11024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if SCCS get command understands -G" >&5
11025 $as_echo_n "checking if SCCS get command understands -G... " >&6; }
11026 if ${make_cv_sys_get_minus_G+:} false; then :
11027 $as_echo_n "(cached) " >&6
11029 if $make_cv_path_sccs_get -Gconftoast s.conftest >/dev/null 2>&1 &&
11030 test -f conftoast; then :
11031 make_cv_sys_get_minus_G=yes
11033 make_cv_sys_get_minus_G=no
11037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $make_cv_sys_get_minus_G" >&5
11038 $as_echo "$make_cv_sys_get_minus_G" >&6; }
11039 if test "$make_cv_sys_get_minus_G" = yes; then :
11041 $as_echo "#define SCCS_GET_MINUS_G 1" >>confdefs.h
11047 rm -f s.conftest conftoast
11049 # Check the system to see if it provides GNU glob. If not, use our
11051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if system libc has GNU glob" >&5
11052 $as_echo_n "checking if system libc has GNU glob... " >&6; }
11053 if ${make_cv_sys_gnu_glob+:} false; then :
11054 $as_echo_n "(cached) " >&6
11056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11057 /* end confdefs.h. */
11059 #include <features.h>
11061 #include <fnmatch.h>
11063 #define GLOB_INTERFACE_VERSION 1
11064 #if !defined _LIBC && defined __GNU_LIBRARY__ && __GNU_LIBRARY__ > 1
11065 # include <gnu-versions.h>
11066 # if _GNU_GLOB_INTERFACE_VERSION == GLOB_INTERFACE_VERSION
11071 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11072 $EGREP "gnu glob" >/dev/null 2>&1; then :
11073 make_cv_sys_gnu_glob=yes
11075 make_cv_sys_gnu_glob=no
11080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $make_cv_sys_gnu_glob" >&5
11081 $as_echo "$make_cv_sys_gnu_glob" >&6; }
11082 if test "$make_cv_sys_gnu_glob" = no; then :
11083 GLOBINC='-I$(srcdir)/glob'
11084 GLOBLIB=glob/libglob.a
11090 # Tell automake about this, so it can build the right .c files.
11091 if test "$make_cv_sys_gnu_glob" = no; then
11092 USE_LOCAL_GLOB_TRUE=
11093 USE_LOCAL_GLOB_FALSE='#'
11095 USE_LOCAL_GLOB_TRUE='#'
11096 USE_LOCAL_GLOB_FALSE=
11100 # Let the makefile know what our build host is
11103 cat >>confdefs.h <<_ACEOF
11104 #define MAKE_HOST "$host"
11113 WINDOWSENV_FALSE='#'
11115 WINDOWSENV_TRUE='#'
11124 WINDOWSENV_FALSE='#'
11126 WINDOWSENV_TRUE='#'
11132 $as_echo "#define WINDOWS32 1" >>confdefs.h
11135 $as_echo "#define HAVE_DOS_PATHS 1" >>confdefs.h
11143 cat >>confdefs.h <<_ACEOF
11144 #define PATH_SEPARATOR_CHAR '$PATH_SEPARATOR'
11148 # Include the Maintainer's Makefile section, if it's here.
11150 MAINT_MAKEFILE=/dev/null
11151 if test -r "$srcdir/maintMakefile"; then :
11152 MAINT_MAKEFILE="$srcdir/maintMakefile"
11157 # Allow building with dmalloc
11158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if malloc debugging is wanted" >&5
11159 $as_echo_n "checking if malloc debugging is wanted... " >&6; }
11161 # Check whether --with-dmalloc was given.
11162 if test "${with_dmalloc+set}" = set; then :
11163 withval=$with_dmalloc; if test "$withval" = yes; then
11164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11165 $as_echo "yes" >&6; }
11167 $as_echo "#define WITH_DMALLOC 1" >>confdefs.h
11169 LIBS="$LIBS -ldmalloc"
11170 LDFLAGS="$LDFLAGS -g"
11172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11173 $as_echo "no" >&6; }
11176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11177 $as_echo "no" >&6; }
11182 # Forcibly disable SET_MAKE. If it's set it breaks things like the test
11186 # Sanity check and inform the user of what we found
11188 if test "x$make_badcust" = xyes; then :
11191 echo "WARNING: --with-customs specified but no customs.h could be found;"
11192 echo " disabling Customs support."
11197 case $with_customs in #(
11198 ""|n|no|y|ye|yes) :
11201 if test -f "$with_customs/lib/libcustoms.a"; then :
11205 echo "WARNING: '$with_customs/lib' does not appear to contain the"
11206 echo " Customs library. You must build and install Customs"
11207 echo " before compiling GNU make."
11213 if test "x$has_wait_nohang" = xno; then :
11215 echo "WARNING: Your system has neither waitpid() nor wait3()."
11216 echo " Without one of these, signal handling is unreliable."
11217 echo " You should be aware that running GNU make with -j"
11218 echo " could result in erratic behavior."
11223 if test "x$make_cv_job_server" = xno && test "x$user_job_server" = xyes; then :
11225 echo "WARNING: Make job server requires a POSIX-ish system that"
11226 echo " supports the pipe(), sigaction(), and either"
11227 echo " waitpid() or wait3() functions. Your system doesn't"
11228 echo " appear to provide one or more of those."
11229 echo " Disabling job server support."
11234 if test "x$make_cv_load" = xno && test "x$user_load" = xyes; then :
11236 echo "WARNING: 'load' support requires a POSIX-ish system that"
11237 echo " supports the dlopen(), dlsym(), and dlerror() functions."
11238 echo " Your system doesn't appear to provide one or more of these."
11239 echo " Disabling 'load' support."
11244 # Specify what files are to be created.
11245 ac_config_files="$ac_config_files Makefile glob/Makefile po/Makefile.in config/Makefile doc/Makefile w32/Makefile tests/config-flags.pm"
11250 cat >confcache <<\_ACEOF
11251 # This file is a shell script that caches the results of configure
11252 # tests run on this system so they can be shared between configure
11253 # scripts and configure runs, see configure's option --config-cache.
11254 # It is not useful on other systems. If it contains results you don't
11255 # want to keep, you may remove or edit it.
11257 # config.status only pays attention to the cache file if you give it
11258 # the --recheck option to rerun configure.
11260 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11261 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11262 # following values.
11266 # The following way of writing the cache mishandles newlines in values,
11267 # but we know of no workaround that is simple, portable, and efficient.
11268 # So, we kill variables containing newlines.
11269 # Ultrix sh set writes to stderr and can't be redirected directly,
11270 # and sets the high bit in the cache file unless we assign to the vars.
11272 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11273 eval ac_val=\$$ac_var
11277 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11278 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11281 _ | IFS | as_nl) ;; #(
11282 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11283 *) { eval $ac_var=; unset $ac_var;} ;;
11289 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11290 *${as_nl}ac_space=\ *)
11291 # `set' does not quote correctly, so add quotes: double-quote
11292 # substitution turns \\\\ into \\, and sed turns \\ into \.
11295 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11298 # `set' quotes correctly as required by POSIX, so do not add quotes.
11299 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11308 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11310 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11312 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11313 if test -w "$cache_file"; then
11314 if test "x$cache_file" != "x/dev/null"; then
11315 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11316 $as_echo "$as_me: updating cache $cache_file" >&6;}
11317 if test ! -f "$cache_file" || test -h "$cache_file"; then
11318 cat confcache >"$cache_file"
11320 case $cache_file in #(
11322 mv -f confcache "$cache_file"$$ &&
11323 mv -f "$cache_file"$$ "$cache_file" ;; #(
11325 mv -f confcache "$cache_file" ;;
11330 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11331 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11336 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11337 # Let make expand exec_prefix.
11338 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11340 DEFS=-DHAVE_CONFIG_H
11345 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11346 # 1. Remove the extension, and $U if already installed.
11347 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11348 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11349 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11350 # will be set to the directory where LIBOBJS objects are built.
11351 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11352 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11354 LIBOBJS=$ac_libobjs
11356 LTLIBOBJS=$ac_ltlibobjs
11359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
11360 $as_echo_n "checking that generated files are newer than configure... " >&6; }
11361 if test -n "$am_sleep_pid"; then
11362 # Hide warnings about reused PIDs.
11363 wait $am_sleep_pid 2>/dev/null
11365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
11366 $as_echo "done" >&6; }
11367 if test -n "$EXEEXT"; then
11369 am__EXEEXT_FALSE='#'
11371 am__EXEEXT_TRUE='#'
11375 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11376 as_fn_error $? "conditional \"AMDEP\" was never defined.
11377 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11379 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11380 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11381 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11383 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11384 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11385 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11387 if test -z "${HAVE_GUILE_TRUE}" && test -z "${HAVE_GUILE_FALSE}"; then
11388 as_fn_error $? "conditional \"HAVE_GUILE\" was never defined.
11389 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11391 if test -z "${USE_CUSTOMS_TRUE}" && test -z "${USE_CUSTOMS_FALSE}"; then
11392 as_fn_error $? "conditional \"USE_CUSTOMS\" was never defined.
11393 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11395 if test -z "${USE_LOCAL_GLOB_TRUE}" && test -z "${USE_LOCAL_GLOB_FALSE}"; then
11396 as_fn_error $? "conditional \"USE_LOCAL_GLOB\" was never defined.
11397 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11399 if test -z "${WINDOWSENV_TRUE}" && test -z "${WINDOWSENV_FALSE}"; then
11400 as_fn_error $? "conditional \"WINDOWSENV\" was never defined.
11401 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11403 if test -z "${WINDOWSENV_TRUE}" && test -z "${WINDOWSENV_FALSE}"; then
11404 as_fn_error $? "conditional \"WINDOWSENV\" was never defined.
11405 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11408 : "${CONFIG_STATUS=./config.status}"
11410 ac_clean_files_save=$ac_clean_files
11411 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11412 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11413 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11415 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11417 # Generated by $as_me.
11418 # Run this file to recreate the current configuration.
11419 # Compiler output produced by configure, useful for debugging
11420 # configure, is in config.log if it exists.
11423 ac_cs_recheck=false
11426 SHELL=\${CONFIG_SHELL-$SHELL}
11429 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11430 ## -------------------- ##
11431 ## M4sh Initialization. ##
11432 ## -------------------- ##
11434 # Be more Bourne compatible
11435 DUALCASE=1; export DUALCASE # for MKS sh
11436 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11439 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11440 # is contrary to our usage. Disable this feature.
11441 alias -g '${1+"$@"}'='"$@"'
11442 setopt NO_GLOB_SUBST
11444 case `(set -o) 2>/dev/null` in #(
11456 # Printing a long string crashes Solaris 7 /usr/bin/printf.
11457 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11458 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11459 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11460 # Prefer a ksh shell builtin over an external printf program on Solaris,
11461 # but without wasting forks for bash or zsh.
11462 if test -z "$BASH_VERSION$ZSH_VERSION" \
11463 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11464 as_echo='print -r --'
11465 as_echo_n='print -rn --'
11466 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11467 as_echo='printf %s\n'
11468 as_echo_n='printf %s'
11470 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11471 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11472 as_echo_n='/usr/ucb/echo -n'
11474 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11475 as_echo_n_body='eval
11479 expr "X$arg" : "X\\(.*\\)$as_nl";
11480 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11482 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11484 export as_echo_n_body
11485 as_echo_n='sh -c $as_echo_n_body as_echo'
11487 export as_echo_body
11488 as_echo='sh -c $as_echo_body as_echo'
11491 # The user is always right.
11492 if test "${PATH_SEPARATOR+set}" != set; then
11494 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11495 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11502 # We need space, tab and new line, in precisely that order. Quoting is
11503 # there to prevent editors from complaining about space-tab.
11504 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11505 # splitting by setting IFS to empty value.)
11508 # Find who we are. Look in the path if we contain no directory separator.
11511 *[\\/]* ) as_myself=$0 ;;
11512 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11513 for as_dir in $PATH
11516 test -z "$as_dir" && as_dir=.
11517 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11523 # We did not find ourselves, most probably we were run as `sh COMMAND'
11524 # in which case we are not to be found in the path.
11525 if test "x$as_myself" = x; then
11528 if test ! -f "$as_myself"; then
11529 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11533 # Unset variables that we do not need and which cause bugs (e.g. in
11534 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
11535 # suppresses any "Segmentation fault" message there. '((' could
11536 # trigger a bug in pdksh 5.2.14.
11537 for as_var in BASH_ENV ENV MAIL MAILPATH
11538 do eval test x\${$as_var+set} = xset \
11539 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11552 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11555 # as_fn_error STATUS ERROR [LINENO LOG_FD]
11556 # ----------------------------------------
11557 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11558 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11559 # script with STATUS, using 1 if that was 0.
11562 as_status=$1; test $as_status -eq 0 && as_status=1
11564 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11565 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11567 $as_echo "$as_me: error: $2" >&2
11568 as_fn_exit $as_status
11572 # as_fn_set_status STATUS
11573 # -----------------------
11574 # Set $? to STATUS, without forking.
11575 as_fn_set_status ()
11578 } # as_fn_set_status
11580 # as_fn_exit STATUS
11581 # -----------------
11582 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11586 as_fn_set_status $1
11592 # Portably unset VAR.
11595 { eval $1=; unset $1;}
11597 as_unset=as_fn_unset
11598 # as_fn_append VAR VALUE
11599 # ----------------------
11600 # Append the text in VALUE to the end of the definition contained in VAR. Take
11601 # advantage of any shell optimizations that allow amortized linear growth over
11602 # repeated appends, instead of the typical quadratic growth present in naive
11604 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11605 eval 'as_fn_append ()
11616 # as_fn_arith ARG...
11617 # ------------------
11618 # Perform arithmetic evaluation on the ARGs, and store the result in the
11619 # global $as_val. Take advantage of shells that can avoid forks. The arguments
11620 # must be portable across $(()) and expr.
11621 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11622 eval 'as_fn_arith ()
11629 as_val=`expr "$@" || test $? -eq 1`
11634 if expr a : '\(a\)' >/dev/null 2>&1 &&
11635 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11641 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11642 as_basename=basename
11647 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11653 as_me=`$as_basename -- "$0" ||
11654 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11655 X"$0" : 'X\(//\)$' \| \
11656 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11658 sed '/^.*\/\([^/][^/]*\)\/*$/{
11672 # Avoid depending upon Character Ranges.
11673 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11674 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11675 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11676 as_cr_digits='0123456789'
11677 as_cr_alnum=$as_cr_Letters$as_cr_digits
11679 ECHO_C= ECHO_N= ECHO_T=
11680 case `echo -n x` in #(((((
11682 case `echo 'xy\c'` in
11683 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
11685 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
11692 rm -f conf$$ conf$$.exe conf$$.file
11693 if test -d conf$$.dir; then
11694 rm -f conf$$.dir/conf$$.file
11697 mkdir conf$$.dir 2>/dev/null
11699 if (echo >conf$$.file) 2>/dev/null; then
11700 if ln -s conf$$.file conf$$ 2>/dev/null; then
11702 # ... but there are two gotchas:
11703 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11704 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11705 # In both cases, we have to default to `cp -pR'.
11706 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11708 elif ln conf$$.file conf$$ 2>/dev/null; then
11716 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11717 rmdir conf$$.dir 2>/dev/null
11722 # Create "$as_dir" as a directory, including parents if necessary.
11727 -*) as_dir=./$as_dir;;
11729 test -d "$as_dir" || eval $as_mkdir_p || {
11733 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11734 *) as_qdir=$as_dir;;
11736 as_dirs="'$as_qdir' $as_dirs"
11737 as_dir=`$as_dirname -- "$as_dir" ||
11738 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11739 X"$as_dir" : 'X\(//\)[^/]' \| \
11740 X"$as_dir" : 'X\(//\)$' \| \
11741 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11742 $as_echo X"$as_dir" |
11743 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11747 /^X\(\/\/\)[^/].*/{
11760 test -d "$as_dir" && break
11762 test -z "$as_dirs" || eval "mkdir $as_dirs"
11763 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
11767 if mkdir -p . 2>/dev/null; then
11768 as_mkdir_p='mkdir -p "$as_dir"'
11770 test -d ./-p && rmdir ./-p
11775 # as_fn_executable_p FILE
11776 # -----------------------
11777 # Test if FILE is an executable regular file.
11778 as_fn_executable_p ()
11780 test -f "$1" && test -x "$1"
11781 } # as_fn_executable_p
11782 as_test_x='test -x'
11783 as_executable_p=as_fn_executable_p
11785 # Sed expression to map a string onto a valid CPP name.
11786 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11788 # Sed expression to map a string onto a valid variable name.
11789 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11793 ## ----------------------------------- ##
11794 ## Main body of $CONFIG_STATUS script. ##
11795 ## ----------------------------------- ##
11797 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11799 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11800 # Save the log message, to keep $0 and so on meaningful, and to
11801 # report actual input values of CONFIG_FILES etc. instead of their
11802 # values after options handling.
11804 This file was extended by GNU make $as_me 4.1, which was
11805 generated by GNU Autoconf 2.69. Invocation command line was
11807 CONFIG_FILES = $CONFIG_FILES
11808 CONFIG_HEADERS = $CONFIG_HEADERS
11809 CONFIG_LINKS = $CONFIG_LINKS
11810 CONFIG_COMMANDS = $CONFIG_COMMANDS
11813 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11818 case $ac_config_files in *"
11819 "*) set x $ac_config_files; shift; ac_config_files=$*;;
11822 case $ac_config_headers in *"
11823 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11827 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11828 # Files that config.status was made for.
11829 config_files="$ac_config_files"
11830 config_headers="$ac_config_headers"
11831 config_commands="$ac_config_commands"
11835 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11837 \`$as_me' instantiates files and other configuration actions
11838 from templates according to the current configuration. Unless the files
11839 and actions are specified as TAGs, all are instantiated by default.
11841 Usage: $0 [OPTION]... [TAG]...
11843 -h, --help print this help, then exit
11844 -V, --version print version number and configuration settings, then exit
11845 --config print configuration, then exit
11846 -q, --quiet, --silent
11847 do not print progress messages
11848 -d, --debug don't remove temporary files
11849 --recheck update $as_me by reconfiguring in the same conditions
11850 --file=FILE[:TEMPLATE]
11851 instantiate the configuration file FILE
11852 --header=FILE[:TEMPLATE]
11853 instantiate the configuration header FILE
11855 Configuration files:
11858 Configuration headers:
11861 Configuration commands:
11864 Report bugs to <bug-make@gnu.org>.
11865 GNU make home page: <http://www.gnu.org/software/make/>.
11866 General help using GNU software: <http://www.gnu.org/gethelp/>."
11869 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11870 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
11872 GNU make config.status 4.1
11873 configured by $0, generated by GNU Autoconf 2.69,
11874 with options \\"\$ac_cs_config\\"
11876 Copyright (C) 2012 Free Software Foundation, Inc.
11877 This config.status script is free software; the Free Software Foundation
11878 gives unlimited permission to copy, distribute and modify it."
11885 test -n "\$AWK" || AWK=awk
11888 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11889 # The default lists apply if the user does not specify any file.
11895 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11896 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11900 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11912 # Handling of the options.
11913 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11915 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11916 $as_echo "$ac_cs_version"; exit ;;
11917 --config | --confi | --conf | --con | --co | --c )
11918 $as_echo "$ac_cs_config"; exit ;;
11919 --debug | --debu | --deb | --de | --d | -d )
11921 --file | --fil | --fi | --f )
11924 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11925 '') as_fn_error $? "missing file argument" ;;
11927 as_fn_append CONFIG_FILES " '$ac_optarg'"
11928 ac_need_defaults=false;;
11929 --header | --heade | --head | --hea )
11932 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11934 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
11935 ac_need_defaults=false;;
11937 # Conflict between --help and --header
11938 as_fn_error $? "ambiguous option: \`$1'
11939 Try \`$0 --help' for more information.";;
11940 --help | --hel | -h )
11941 $as_echo "$ac_cs_usage"; exit ;;
11942 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11943 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11946 # This is an error.
11947 -*) as_fn_error $? "unrecognized option: \`$1'
11948 Try \`$0 --help' for more information." ;;
11950 *) as_fn_append ac_config_targets " $1"
11951 ac_need_defaults=false ;;
11957 ac_configure_extra_args=
11959 if $ac_cs_silent; then
11961 ac_configure_extra_args="$ac_configure_extra_args --silent"
11965 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11966 if \$ac_cs_recheck; then
11967 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11969 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11970 CONFIG_SHELL='$SHELL'
11971 export CONFIG_SHELL
11976 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11980 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11981 ## Running $as_me. ##
11987 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11991 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11992 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
11993 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
11994 # from automake < 1.5.
11995 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
11996 # Capture the value of LINGUAS because we need it to compute CATALOGS.
11997 LINGUAS="${LINGUAS-%UNSET%}"
12002 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12004 # Handling of arguments.
12005 for ac_config_target in $ac_config_targets
12007 case $ac_config_target in
12008 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12009 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12010 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
12011 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12012 "glob/Makefile") CONFIG_FILES="$CONFIG_FILES glob/Makefile" ;;
12013 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
12014 "config/Makefile") CONFIG_FILES="$CONFIG_FILES config/Makefile" ;;
12015 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
12016 "w32/Makefile") CONFIG_FILES="$CONFIG_FILES w32/Makefile" ;;
12017 "tests/config-flags.pm") CONFIG_FILES="$CONFIG_FILES tests/config-flags.pm" ;;
12019 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12024 # If the user did not use the arguments to specify the items to instantiate,
12025 # then the envvar interface is used. Set only those that are not.
12026 # We use the long form for the default assignment because of an extremely
12027 # bizarre bug on SunOS 4.1.3.
12028 if $ac_need_defaults; then
12029 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12030 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12031 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12034 # Have a temporary directory for convenience. Make it in the build tree
12035 # simply because there is no reason against having it here, and in addition,
12036 # creating and moving files from /tmp can sometimes cause problems.
12037 # Hook for its removal unless debugging.
12038 # Note that there is a small window in which the directory will not be cleaned:
12039 # after its creation but before its name has been assigned to `$tmp'.
12043 trap 'exit_status=$?
12044 : "${ac_tmp:=$tmp}"
12045 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
12047 trap 'as_fn_exit 1' 1 2 13 15
12049 # Create a (secure) tmp directory for tmp files.
12052 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12056 tmp=./conf$$-$RANDOM
12057 (umask 077 && mkdir "$tmp")
12058 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12061 # Set up the scripts for CONFIG_FILES section.
12062 # No need to generate them if there are no CONFIG_FILES.
12063 # This happens for instance with `./config.status config.h'.
12064 if test -n "$CONFIG_FILES"; then
12066 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
12067 ac_cs_awk_getline=:
12068 ac_cs_awk_pipe_init=
12069 ac_cs_awk_read_file='
12070 while ((getline aline < (F[key])) > 0)
12073 ac_cs_awk_pipe_fini=
12075 ac_cs_awk_getline=false
12076 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
12077 ac_cs_awk_read_file='
12079 print "cat " F[key] " &&"
12080 '$ac_cs_awk_pipe_init
12081 # The final `:' finishes the AND list.
12082 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
12084 ac_cr=`echo X | tr X '\015'`
12085 # On cygwin, bash can eat \r inside `` if the user requested igncr.
12086 # But we know of no other shell where ac_cr would be empty at this
12087 # point, so we can use a bashism as a fallback.
12088 if test "x$ac_cr" = x; then
12089 eval ac_cr=\$\'\\r\'
12091 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12092 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12095 ac_cs_awk_cr=$ac_cr
12098 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
12101 # Create commands to substitute file output variables.
12103 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
12104 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
12105 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
12108 } >conf$$files.sh &&
12109 . ./conf$$files.sh ||
12110 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12111 rm -f conf$$files.sh
12114 echo "cat >conf$$subs.awk <<_ACEOF" &&
12115 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12117 } >conf$$subs.sh ||
12118 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12119 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
12121 for ac_last_try in false false false false false :; do
12122 . ./conf$$subs.sh ||
12123 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12125 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12126 if test $ac_delim_n = $ac_delim_num; then
12128 elif $ac_last_try; then
12129 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12131 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12134 rm -f conf$$subs.sh
12136 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12137 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
12141 s/^/S["/; s/!.*/"]=/
12151 s/\(.\{148\}\)..*/\1/
12153 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12158 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12165 s/\(.\{148\}\)..*/\1/
12167 s/["\\]/\\&/g; s/^/"/; s/$/"/
12171 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12176 ' <conf$$subs.awk | sed '
12181 ' >>$CONFIG_STATUS || ac_write_fail=1
12182 rm -f conf$$subs.awk
12183 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12185 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
12186 for (key in S) S_is_set[key] = 1
12188 \$ac_cs_awk_pipe_init
12192 nfields = split(line, field, "@")
12194 len = length(field[1])
12195 for (i = 2; i < nfields; i++) {
12197 keylen = length(key)
12198 if (S_is_set[key]) {
12200 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12201 len += length(value) + length(field[++i])
12206 if (nfields == 3 && !substed) {
12208 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
12209 \$ac_cs_awk_read_file
12215 \$ac_cs_awk_pipe_fini
12218 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12219 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12220 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12223 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12224 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12227 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12228 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12229 # trailing colons and then remove the whole line if VPATH becomes empty
12230 # (actually we leave an empty line to preserve line numbers).
12231 if test "x$srcdir" = x.; then
12232 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
12250 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12251 fi # test -n "$CONFIG_FILES"
12253 # Set up the scripts for CONFIG_HEADERS section.
12254 # No need to generate them if there are no CONFIG_HEADERS.
12255 # This happens for instance with `./config.status Makefile'.
12256 if test -n "$CONFIG_HEADERS"; then
12257 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
12261 # Transform confdefs.h into an awk script `defines.awk', embedded as
12262 # here-document in config.status, that substitutes the proper values into
12263 # config.h.in to produce config.h.
12265 # Create a delimiter string that does not exist in confdefs.h, to ease
12266 # handling of long lines.
12268 for ac_last_try in false false :; do
12269 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
12270 if test -z "$ac_tt"; then
12272 elif $ac_last_try; then
12273 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
12275 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12279 # For the awk script, D is an array of macro values keyed by name,
12280 # likewise P contains macro parameters if any. Preserve backslash
12281 # newline sequences.
12283 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12285 s/.\{148\}/&'"$ac_delim"'/g
12288 s/^[ ]*#[ ]*define[ ][ ]*/ /
12295 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12297 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
12301 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12302 D["\1"]=" \3\\\\\\n"\\/p
12304 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12309 s/.\{148\}/&'"$ac_delim"'/g
12314 s/["\\]/\\&/g; s/^/"/; s/$/"/p
12317 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12319 ' <confdefs.h | sed '
12320 s/'"$ac_delim"'/"\\\
12321 "/g' >>$CONFIG_STATUS || ac_write_fail=1
12323 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12324 for (key in D) D_is_set[key] = 1
12327 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12329 split(line, arg, " ")
12330 if (arg[1] == "#") {
12334 defundef = substr(arg[1], 2)
12337 split(mac1, mac2, "(") #)
12339 prefix = substr(line, 1, index(line, defundef) - 1)
12340 if (D_is_set[macro]) {
12341 # Preserve the white space surrounding the "#".
12342 print prefix "define", macro P[macro] D[macro]
12345 # Replace #undef with comments. This is necessary, for example,
12346 # in the case of _POSIX_SOURCE, which is predefined and required
12347 # on some systems where configure will not decide to define it.
12348 if (defundef == "undef") {
12349 print "/*", prefix defundef, macro, "*/"
12357 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12358 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
12359 fi # test -n "$CONFIG_HEADERS"
12362 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
12367 :[FHLC]) ac_mode=$ac_tag; continue;;
12369 case $ac_mode$ac_tag in
12371 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
12372 :[FH]-) ac_tag=-:-;;
12373 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12390 -) ac_f="$ac_tmp/stdin";;
12391 *) # Look for the file first in the build tree, then in the source tree
12392 # (if the path is not absolute). The absolute path cannot be DOS-style,
12393 # because $ac_f cannot contain `:'.
12397 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12399 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12401 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12402 as_fn_append ac_file_inputs " '$ac_f'"
12405 # Let's still pretend it is `configure' which instantiates (i.e., don't
12406 # use $as_me), people would be surprised to read:
12407 # /* config.h. Generated by config.status. */
12408 configure_input='Generated from '`
12409 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12411 if test x"$ac_file" != x-; then
12412 configure_input="$ac_file. $configure_input"
12413 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12414 $as_echo "$as_me: creating $ac_file" >&6;}
12416 # Neutralize special characters interpreted by sed in replacement strings.
12417 case $configure_input in #(
12418 *\&* | *\|* | *\\* )
12419 ac_sed_conf_input=`$as_echo "$configure_input" |
12420 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12421 *) ac_sed_conf_input=$configure_input;;
12425 *:-:* | *:-) cat >"$ac_tmp/stdin" \
12426 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12431 ac_dir=`$as_dirname -- "$ac_file" ||
12432 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12433 X"$ac_file" : 'X\(//\)[^/]' \| \
12434 X"$ac_file" : 'X\(//\)$' \| \
12435 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12436 $as_echo X"$ac_file" |
12437 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12441 /^X\(\/\/\)[^/].*/{
12454 as_dir="$ac_dir"; as_fn_mkdir_p
12458 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12460 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12461 # A ".." for each directory in $ac_dir_suffix.
12462 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12463 case $ac_top_builddir_sub in
12464 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12465 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12468 ac_abs_top_builddir=$ac_pwd
12469 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12470 # for backward compatibility:
12471 ac_top_builddir=$ac_top_build_prefix
12474 .) # We are building in place.
12476 ac_top_srcdir=$ac_top_builddir_sub
12477 ac_abs_top_srcdir=$ac_pwd ;;
12478 [\\/]* | ?:[\\/]* ) # Absolute name.
12479 ac_srcdir=$srcdir$ac_dir_suffix;
12480 ac_top_srcdir=$srcdir
12481 ac_abs_top_srcdir=$srcdir ;;
12482 *) # Relative name.
12483 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12484 ac_top_srcdir=$ac_top_build_prefix$srcdir
12485 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12487 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12497 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12498 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12500 ac_MKDIR_P=$MKDIR_P
12502 [\\/$]* | ?:[\\/]* ) ;;
12503 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12507 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12508 # If the template does not know about datarootdir, expand it.
12509 # FIXME: This hack should be removed a few years after 2.60.
12510 ac_datarootdir_hack=; ac_datarootdir_seen=
12521 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12522 *datarootdir*) ac_datarootdir_seen=yes;;
12523 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12524 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12525 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12527 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12528 ac_datarootdir_hack='
12529 s&@datadir@&$datadir&g
12530 s&@docdir@&$docdir&g
12531 s&@infodir@&$infodir&g
12532 s&@localedir@&$localedir&g
12533 s&@mandir@&$mandir&g
12534 s&\\\${datarootdir}&$datarootdir&g' ;;
12538 # Neutralize VPATH when `$srcdir' = `.'.
12539 # Shell code in configure.ac might set extrasub.
12540 # FIXME: do we really want to maintain this feature?
12541 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12542 ac_sed_extra="$ac_vpsub
12545 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12547 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12548 s|@configure_input@|$ac_sed_conf_input|;t t
12549 s&@top_builddir@&$ac_top_builddir_sub&;t t
12550 s&@top_build_prefix@&$ac_top_build_prefix&;t t
12551 s&@srcdir@&$ac_srcdir&;t t
12552 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12553 s&@top_srcdir@&$ac_top_srcdir&;t t
12554 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12555 s&@builddir@&$ac_builddir&;t t
12556 s&@abs_builddir@&$ac_abs_builddir&;t t
12557 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12558 s&@INSTALL@&$ac_INSTALL&;t t
12559 s&@MKDIR_P@&$ac_MKDIR_P&;t t
12560 $ac_datarootdir_hack
12562 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
12563 if $ac_cs_awk_getline; then
12564 $AWK -f "$ac_tmp/subs.awk"
12566 $AWK -f "$ac_tmp/subs.awk" | $SHELL
12568 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12570 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12571 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
12572 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
12573 "$ac_tmp/out"`; test -z "$ac_out"; } &&
12574 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12575 which seems to be undefined. Please make sure it is defined" >&5
12576 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12577 which seems to be undefined. Please make sure it is defined" >&2;}
12579 rm -f "$ac_tmp/stdin"
12581 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
12582 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
12584 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12590 if test x"$ac_file" != x-; then
12592 $as_echo "/* $configure_input */" \
12593 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
12594 } >"$ac_tmp/config.h" \
12595 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12596 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
12597 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12598 $as_echo "$as_me: $ac_file is unchanged" >&6;}
12601 mv "$ac_tmp/config.h" "$ac_file" \
12602 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12605 $as_echo "/* $configure_input */" \
12606 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
12607 || as_fn_error $? "could not create -" "$LINENO" 5
12609 # Compute "$ac_file"'s index in $config_headers.
12612 for _am_header in $config_headers :; do
12613 case $_am_header in
12614 $_am_arg | $_am_arg:* )
12617 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12620 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
12621 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12622 X"$_am_arg" : 'X\(//\)[^/]' \| \
12623 X"$_am_arg" : 'X\(//\)$' \| \
12624 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
12625 $as_echo X"$_am_arg" |
12626 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12630 /^X\(\/\/\)[^/].*/{
12642 s/.*/./; q'`/stamp-h$_am_stamp_count
12645 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12646 $as_echo "$as_me: executing $ac_file commands" >&6;}
12651 case $ac_file$ac_mode in
12652 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
12653 # Older Autoconf quotes --file arguments for eval, but not when files
12654 # are listed without --file. Let's play safe and only enable the eval
12655 # if we detect the quoting.
12656 case $CONFIG_FILES in
12657 *\'*) eval set x "$CONFIG_FILES" ;;
12658 *) set x $CONFIG_FILES ;;
12663 # Strip MF so we end up with the name of the file.
12664 mf=`echo "$mf" | sed -e 's/:.*$//'`
12665 # Check whether this is an Automake generated Makefile or not.
12666 # We used to match only the files named 'Makefile.in', but
12667 # some people rename them; so instead we look at the file content.
12668 # Grep'ing the first line is not enough: some people post-process
12669 # each Makefile.in and add a new line on top of each file to say so.
12670 # Grep'ing the whole file is not good either: AIX grep has a line
12671 # limit of 2048, but all sed's we know have understand at least 4000.
12672 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
12673 dirpart=`$as_dirname -- "$mf" ||
12674 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12675 X"$mf" : 'X\(//\)[^/]' \| \
12676 X"$mf" : 'X\(//\)$' \| \
12677 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
12679 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12683 /^X\(\/\/\)[^/].*/{
12699 # Extract the definition of DEPDIR, am__include, and am__quote
12700 # from the Makefile without running 'make'.
12701 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
12702 test -z "$DEPDIR" && continue
12703 am__include=`sed -n 's/^am__include = //p' < "$mf"`
12704 test -z "$am__include" && continue
12705 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
12706 # Find all dependency output files, they are included files with
12707 # $(DEPDIR) in their names. We invoke sed twice because it is the
12708 # simplest approach to changing $(DEPDIR) to its actual value in the
12710 for file in `sed -n "
12711 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12712 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
12713 # Make sure the directory exists.
12714 test -f "$dirpart/$file" && continue
12715 fdir=`$as_dirname -- "$file" ||
12716 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12717 X"$file" : 'X\(//\)[^/]' \| \
12718 X"$file" : 'X\(//\)$' \| \
12719 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
12720 $as_echo X"$file" |
12721 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12725 /^X\(\/\/\)[^/].*/{
12738 as_dir=$dirpart/$fdir; as_fn_mkdir_p
12739 # echo "creating $dirpart/$file"
12740 echo '# dummy' > "$dirpart/$file"
12745 "po-directories":C)
12746 for ac_file in $CONFIG_FILES; do
12747 # Support "outfile[:infile[:infile...]]"
12749 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
12751 # PO directories have a Makefile.in generated from Makefile.in.in.
12752 case "$ac_file" in */Makefile.in)
12753 # Adjust a relative srcdir.
12754 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
12755 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
12756 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
12757 # In autoconf-2.13 it is called $ac_given_srcdir.
12758 # In autoconf-2.50 it is called $srcdir.
12759 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
12760 case "$ac_given_srcdir" in
12761 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
12762 /*) top_srcdir="$ac_given_srcdir" ;;
12763 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
12765 # Treat a directory as a PO directory if and only if it has a
12766 # POTFILES.in file. This allows packages to have multiple PO
12767 # directories under different names or in different locations.
12768 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
12769 rm -f "$ac_dir/POTFILES"
12770 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
12771 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
12772 POMAKEFILEDEPS="POTFILES.in"
12773 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
12774 # on $ac_dir but don't depend on user-specified configuration
12776 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
12777 # The LINGUAS file contains the set of available languages.
12778 if test -n "$OBSOLETE_ALL_LINGUAS"; then
12779 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
12781 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
12782 # Hide the ALL_LINGUAS assigment from automake < 1.5.
12783 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
12784 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
12786 # The set of available languages was given in configure.in.
12787 # Hide the ALL_LINGUAS assigment from automake < 1.5.
12788 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
12791 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
12792 # Compute UPDATEPOFILES
12793 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
12794 # Compute DUMMYPOFILES
12795 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
12797 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
12798 case "$ac_given_srcdir" in
12800 *) srcdirpre='$(srcdir)/' ;;
12806 for lang in $ALL_LINGUAS; do
12807 POFILES="$POFILES $srcdirpre$lang.po"
12808 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
12809 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
12810 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
12812 # CATALOGS depends on both $ac_dir and the user's LINGUAS
12813 # environment variable.
12815 if test -n "$ALL_LINGUAS"; then
12816 for presentlang in $ALL_LINGUAS; do
12818 if test "%UNSET%" != "$LINGUAS"; then
12819 desiredlanguages="$LINGUAS"
12821 desiredlanguages="$ALL_LINGUAS"
12823 for desiredlang in $desiredlanguages; do
12824 # Use the presentlang catalog if desiredlang is
12825 # a. equal to presentlang, or
12826 # b. a variant of presentlang (because in this case,
12827 # presentlang can be used as a fallback for messages
12828 # which are not translated in the desiredlang catalog).
12829 case "$desiredlang" in
12830 "$presentlang"*) useit=yes;;
12833 if test $useit = yes; then
12834 INST_LINGUAS="$INST_LINGUAS $presentlang"
12839 if test -n "$INST_LINGUAS"; then
12840 for lang in $INST_LINGUAS; do
12841 CATALOGS="$CATALOGS $lang.gmo"
12844 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
12845 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"
12846 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
12847 if test -f "$f"; then
12849 *.orig | *.bak | *~) ;;
12850 *) cat "$f" >> "$ac_dir/Makefile" ;;
12865 ac_clean_files=$ac_clean_files_save
12867 test $ac_write_fail = 0 ||
12868 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
12871 # configure is writing to config.log, and then calls config.status.
12872 # config.status does its own redirection, appending to config.log.
12873 # Unfortunately, on DOS this fails, as config.log is still kept open
12874 # by configure, so config.status won't be able to write to it; its
12875 # output is simply discarded. So we exec the FD to /dev/null,
12876 # effectively closing config.log, so it can be properly (re)opened and
12877 # appended to by config.status. When coming back to configure, we
12878 # need to make the FD available again.
12879 if test "$no_create" != yes; then
12881 ac_config_status_args=
12882 test "$silent" = yes &&
12883 ac_config_status_args="$ac_config_status_args --quiet"
12885 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12887 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12888 # would make configure fail if this is the last instruction.
12889 $ac_cs_success || as_fn_exit 1
12891 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
12892 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
12893 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
12897 # We only generate the build.sh if we have a build.sh.in; we won't have
12898 # one before we've created a distribution.
12899 if test -f "$srcdir/build.sh.in"; then :
12900 ./config.status --file build.sh