2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.67 for less 1.
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
27 case `(set -o) 2>/dev/null` in #(
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 as_echo_n='sh -c $as_echo_n_body as_echo'
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
91 # Find who we are. Look in the path if we contain no directory separator.
93 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98 test -z "$as_dir" && as_dir=.
99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105 # We did not find ourselves, most probably we were run as `sh COMMAND'
106 # in which case we are not to be found in the path.
107 if test "x$as_myself" = x; then
110 if test ! -f "$as_myself"; then
111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115 # Unset variables that we do not need and which cause bugs (e.g. in
116 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117 # suppresses any "Segmentation fault" message there. '((' could
118 # trigger a bug in pdksh 5.2.14.
119 for as_var in BASH_ENV ENV MAIL MAILPATH
120 do eval test x\${$as_var+set} = xset \
121 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
134 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136 if test "x$CONFIG_SHELL" = x; then
137 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141 # is contrary to our usage. Disable this feature.
142 alias -g '\${1+\"\$@\"}'='\"\$@\"'
145 case \`(set -o) 2>/dev/null\` in #(
153 as_required="as_fn_return () { (exit \$1); }
154 as_fn_success () { as_fn_return 0; }
155 as_fn_failure () { as_fn_return 1; }
156 as_fn_ret_success () { return 0; }
157 as_fn_ret_failure () { return 1; }
160 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167 exitcode=1; echo positional parameters were not saved.
169 test x\$exitcode = x0 || exit 1"
170 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174 test \$(( 1 + 1 )) = 2 || exit 1"
175 if (eval "$as_required") 2>/dev/null; then :
180 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
185 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
188 test -z "$as_dir" && as_dir=.
192 for as_base in sh bash ksh sh5; do
193 # Try only shells that exist, to save several forks.
194 as_shell=$as_dir/$as_base
195 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
196 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 CONFIG_SHELL=$as_shell as_have_required=yes
198 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
206 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
208 CONFIG_SHELL=$SHELL as_have_required=yes
213 if test "x$CONFIG_SHELL" != x; then :
214 # We cannot yet assume a decent shell, so we have to provide a
215 # neutralization value for shells without unset; and this also
216 # works around shells that cannot unset nonexistent variables.
219 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
221 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
224 if test x$as_have_required = xno; then :
225 $as_echo "$0: This script requires a shell more modern than all"
226 $as_echo "$0: the shells that I found on your system."
227 if test x${ZSH_VERSION+set} = xset ; then
228 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
231 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
232 $0: including any error possibly output before this
233 $0: message. Then install a modern shell, or manually run
234 $0: the script under such a shell if you do have one."
240 SHELL=${CONFIG_SHELL-/bin/sh}
242 # Unset more variables known to interfere with behavior of common tools.
243 CLICOLOR_FORCE= GREP_OPTIONS=
244 unset CLICOLOR_FORCE GREP_OPTIONS
246 ## --------------------- ##
247 ## M4sh Shell Functions. ##
248 ## --------------------- ##
251 # Portably unset VAR.
254 { eval $1=; unset $1;}
258 # as_fn_set_status STATUS
259 # -----------------------
260 # Set $? to STATUS, without forking.
268 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
278 # Create "$as_dir" as a directory, including parents if necessary.
283 -*) as_dir=./$as_dir;;
285 test -d "$as_dir" || eval $as_mkdir_p || {
289 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
292 as_dirs="'$as_qdir' $as_dirs"
293 as_dir=`$as_dirname -- "$as_dir" ||
294 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
295 X"$as_dir" : 'X\(//\)[^/]' \| \
296 X"$as_dir" : 'X\(//\)$' \| \
297 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
298 $as_echo X"$as_dir" |
299 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
316 test -d "$as_dir" && break
318 test -z "$as_dirs" || eval "mkdir $as_dirs"
319 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
323 # as_fn_append VAR VALUE
324 # ----------------------
325 # Append the text in VALUE to the end of the definition contained in VAR. Take
326 # advantage of any shell optimizations that allow amortized linear growth over
327 # repeated appends, instead of the typical quadratic growth present in naive
329 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
330 eval 'as_fn_append ()
343 # Perform arithmetic evaluation on the ARGs, and store the result in the
344 # global $as_val. Take advantage of shells that can avoid forks. The arguments
345 # must be portable across $(()) and expr.
346 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
354 as_val=`expr "$@" || test $? -eq 1`
359 # as_fn_error STATUS ERROR [LINENO LOG_FD]
360 # ----------------------------------------
361 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
362 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
363 # script with STATUS, using 1 if that was 0.
366 as_status=$1; test $as_status -eq 0 && as_status=1
368 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
369 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
371 $as_echo "$as_me: error: $2" >&2
372 as_fn_exit $as_status
375 if expr a : '\(a\)' >/dev/null 2>&1 &&
376 test "X`expr 00001 : '.*\(...\)'`" = X001; then
382 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
388 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
394 as_me=`$as_basename -- "$0" ||
395 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
396 X"$0" : 'X\(//\)$' \| \
397 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
399 sed '/^.*\/\([^/][^/]*\)\/*$/{
413 # Avoid depending upon Character Ranges.
414 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
415 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
416 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
417 as_cr_digits='0123456789'
418 as_cr_alnum=$as_cr_Letters$as_cr_digits
421 as_lineno_1=$LINENO as_lineno_1a=$LINENO
422 as_lineno_2=$LINENO as_lineno_2a=$LINENO
423 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
424 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
425 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
437 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
441 chmod +x "$as_me.lineno" ||
442 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
444 # Don't try to exec as it changes $[0], causing all sort of problems
445 # (the dirname of $[0] is not the place where we might find the
446 # original and so on. Autoconf is especially sensitive to this).
448 # Exit status is that of the last command.
452 ECHO_C= ECHO_N= ECHO_T=
453 case `echo -n x` in #(((((
455 case `echo 'xy\c'` in
456 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
458 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
465 rm -f conf$$ conf$$.exe conf$$.file
466 if test -d conf$$.dir; then
467 rm -f conf$$.dir/conf$$.file
470 mkdir conf$$.dir 2>/dev/null
472 if (echo >conf$$.file) 2>/dev/null; then
473 if ln -s conf$$.file conf$$ 2>/dev/null; then
475 # ... but there are two gotchas:
476 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
477 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
478 # In both cases, we have to default to `cp -p'.
479 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
481 elif ln conf$$.file conf$$ 2>/dev/null; then
489 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
490 rmdir conf$$.dir 2>/dev/null
492 if mkdir -p . 2>/dev/null; then
493 as_mkdir_p='mkdir -p "$as_dir"'
495 test -d ./-p && rmdir ./-p
499 if test -x / >/dev/null 2>&1; then
502 if ls -dL / >/dev/null 2>&1; then
509 if test -d "$1"; then
515 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
516 ???[sx]*):;;*)false;;esac;fi
520 as_executable_p=$as_test_x
522 # Sed expression to map a string onto a valid CPP name.
523 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
525 # Sed expression to map a string onto a valid variable name.
526 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
529 test -n "$DJDIR" || exec 7<&0 </dev/null
533 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
534 # so uname gets run too.
535 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
540 ac_default_prefix=/usr/local
542 ac_config_libobj_dir=.
549 # Identity of this package.
551 PACKAGE_TARNAME='less'
553 PACKAGE_STRING='less 1'
557 ac_unique_file="forwback.c"
558 # Factoring default headers for most tests.
559 ac_includes_default="\
561 #ifdef HAVE_SYS_TYPES_H
562 # include <sys/types.h>
564 #ifdef HAVE_SYS_STAT_H
565 # include <sys/stat.h>
571 # ifdef HAVE_STDLIB_H
576 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
581 #ifdef HAVE_STRINGS_H
582 # include <strings.h>
584 #ifdef HAVE_INTTYPES_H
585 # include <inttypes.h>
594 ac_subst_vars='LTLIBOBJS
637 program_transform_name
650 enable_option_checking
657 ac_precious_vars='build_alias
668 # Initialize some variables set by options.
670 ac_init_version=false
671 ac_unrecognized_opts=
673 # The variables have the same names as the options, with
674 # dashes changed to underlines.
682 program_transform_name=s,x,x,
690 # Installation directory options.
691 # These are left unexpanded so users can "make install exec_prefix=/foo"
692 # and all the variables that are supposed to be based on exec_prefix
693 # by default will actually change.
694 # Use braces instead of parens because sh, perl, etc. also accept them.
695 # (The list follows the same order as the GNU Coding Standards.)
696 bindir='${exec_prefix}/bin'
697 sbindir='${exec_prefix}/sbin'
698 libexecdir='${exec_prefix}/libexec'
699 datarootdir='${prefix}/share'
700 datadir='${datarootdir}'
701 sysconfdir='${prefix}/etc'
702 sharedstatedir='${prefix}/com'
703 localstatedir='${prefix}/var'
704 includedir='${prefix}/include'
705 oldincludedir='/usr/include'
706 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
707 infodir='${datarootdir}/info'
712 libdir='${exec_prefix}/lib'
713 localedir='${datarootdir}/locale'
714 mandir='${datarootdir}/man'
720 # If the previous option needs an argument, assign it.
721 if test -n "$ac_prev"; then
722 eval $ac_prev=\$ac_option
728 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
733 # Accept the important Cygnus configure options, so we can diagnose typos.
735 case $ac_dashdash$ac_option in
739 -bindir | --bindir | --bindi | --bind | --bin | --bi)
741 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
744 -build | --build | --buil | --bui | --bu)
745 ac_prev=build_alias ;;
746 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
747 build_alias=$ac_optarg ;;
749 -cache-file | --cache-file | --cache-fil | --cache-fi \
750 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
751 ac_prev=cache_file ;;
752 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
753 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
754 cache_file=$ac_optarg ;;
757 cache_file=config.cache ;;
759 -datadir | --datadir | --datadi | --datad)
761 -datadir=* | --datadir=* | --datadi=* | --datad=*)
762 datadir=$ac_optarg ;;
764 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
765 | --dataroo | --dataro | --datar)
766 ac_prev=datarootdir ;;
767 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
768 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
769 datarootdir=$ac_optarg ;;
771 -disable-* | --disable-*)
772 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
773 # Reject names that are not valid shell variable names.
774 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
775 as_fn_error $? "invalid feature name: $ac_useropt"
776 ac_useropt_orig=$ac_useropt
777 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
778 case $ac_user_opts in
782 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
783 ac_unrecognized_sep=', ';;
785 eval enable_$ac_useropt=no ;;
787 -docdir | --docdir | --docdi | --doc | --do)
789 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
792 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
794 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
797 -enable-* | --enable-*)
798 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
799 # Reject names that are not valid shell variable names.
800 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
801 as_fn_error $? "invalid feature name: $ac_useropt"
802 ac_useropt_orig=$ac_useropt
803 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
804 case $ac_user_opts in
808 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
809 ac_unrecognized_sep=', ';;
811 eval enable_$ac_useropt=\$ac_optarg ;;
813 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
814 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
815 | --exec | --exe | --ex)
816 ac_prev=exec_prefix ;;
817 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
818 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
819 | --exec=* | --exe=* | --ex=*)
820 exec_prefix=$ac_optarg ;;
822 -gas | --gas | --ga | --g)
823 # Obsolete; use --with-gas.
826 -help | --help | --hel | --he | -h)
828 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
829 ac_init_help=recursive ;;
830 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
831 ac_init_help=short ;;
833 -host | --host | --hos | --ho)
834 ac_prev=host_alias ;;
835 -host=* | --host=* | --hos=* | --ho=*)
836 host_alias=$ac_optarg ;;
838 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
840 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
842 htmldir=$ac_optarg ;;
844 -includedir | --includedir | --includedi | --included | --include \
845 | --includ | --inclu | --incl | --inc)
846 ac_prev=includedir ;;
847 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
848 | --includ=* | --inclu=* | --incl=* | --inc=*)
849 includedir=$ac_optarg ;;
851 -infodir | --infodir | --infodi | --infod | --info | --inf)
853 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
854 infodir=$ac_optarg ;;
856 -libdir | --libdir | --libdi | --libd)
858 -libdir=* | --libdir=* | --libdi=* | --libd=*)
861 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
862 | --libexe | --libex | --libe)
863 ac_prev=libexecdir ;;
864 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
865 | --libexe=* | --libex=* | --libe=*)
866 libexecdir=$ac_optarg ;;
868 -localedir | --localedir | --localedi | --localed | --locale)
870 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
871 localedir=$ac_optarg ;;
873 -localstatedir | --localstatedir | --localstatedi | --localstated \
874 | --localstate | --localstat | --localsta | --localst | --locals)
875 ac_prev=localstatedir ;;
876 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
877 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
878 localstatedir=$ac_optarg ;;
880 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
882 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
886 # Obsolete; use --without-fp.
889 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
890 | --no-cr | --no-c | -n)
893 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
894 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
897 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
898 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
899 | --oldin | --oldi | --old | --ol | --o)
900 ac_prev=oldincludedir ;;
901 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
902 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
903 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
904 oldincludedir=$ac_optarg ;;
906 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
908 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
911 -program-prefix | --program-prefix | --program-prefi | --program-pref \
912 | --program-pre | --program-pr | --program-p)
913 ac_prev=program_prefix ;;
914 -program-prefix=* | --program-prefix=* | --program-prefi=* \
915 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
916 program_prefix=$ac_optarg ;;
918 -program-suffix | --program-suffix | --program-suffi | --program-suff \
919 | --program-suf | --program-su | --program-s)
920 ac_prev=program_suffix ;;
921 -program-suffix=* | --program-suffix=* | --program-suffi=* \
922 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
923 program_suffix=$ac_optarg ;;
925 -program-transform-name | --program-transform-name \
926 | --program-transform-nam | --program-transform-na \
927 | --program-transform-n | --program-transform- \
928 | --program-transform | --program-transfor \
929 | --program-transfo | --program-transf \
930 | --program-trans | --program-tran \
931 | --progr-tra | --program-tr | --program-t)
932 ac_prev=program_transform_name ;;
933 -program-transform-name=* | --program-transform-name=* \
934 | --program-transform-nam=* | --program-transform-na=* \
935 | --program-transform-n=* | --program-transform-=* \
936 | --program-transform=* | --program-transfor=* \
937 | --program-transfo=* | --program-transf=* \
938 | --program-trans=* | --program-tran=* \
939 | --progr-tra=* | --program-tr=* | --program-t=*)
940 program_transform_name=$ac_optarg ;;
942 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
944 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
947 -psdir | --psdir | --psdi | --psd | --ps)
949 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
952 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
953 | -silent | --silent | --silen | --sile | --sil)
956 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
958 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
960 sbindir=$ac_optarg ;;
962 -sharedstatedir | --sharedstatedir | --sharedstatedi \
963 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
964 | --sharedst | --shareds | --shared | --share | --shar \
966 ac_prev=sharedstatedir ;;
967 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
968 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
969 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
971 sharedstatedir=$ac_optarg ;;
973 -site | --site | --sit)
975 -site=* | --site=* | --sit=*)
978 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
980 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
983 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
984 | --syscon | --sysco | --sysc | --sys | --sy)
985 ac_prev=sysconfdir ;;
986 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
987 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
988 sysconfdir=$ac_optarg ;;
990 -target | --target | --targe | --targ | --tar | --ta | --t)
991 ac_prev=target_alias ;;
992 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
993 target_alias=$ac_optarg ;;
995 -v | -verbose | --verbose | --verbos | --verbo | --verb)
998 -version | --version | --versio | --versi | --vers | -V)
1002 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1003 # Reject names that are not valid shell variable names.
1004 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1005 as_fn_error $? "invalid package name: $ac_useropt"
1006 ac_useropt_orig=$ac_useropt
1007 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1008 case $ac_user_opts in
1012 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1013 ac_unrecognized_sep=', ';;
1015 eval with_$ac_useropt=\$ac_optarg ;;
1017 -without-* | --without-*)
1018 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1019 # Reject names that are not valid shell variable names.
1020 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1021 as_fn_error $? "invalid package name: $ac_useropt"
1022 ac_useropt_orig=$ac_useropt
1023 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1024 case $ac_user_opts in
1028 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1029 ac_unrecognized_sep=', ';;
1031 eval with_$ac_useropt=no ;;
1034 # Obsolete; use --with-x.
1037 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1038 | --x-incl | --x-inc | --x-in | --x-i)
1039 ac_prev=x_includes ;;
1040 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1041 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1042 x_includes=$ac_optarg ;;
1044 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1045 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1046 ac_prev=x_libraries ;;
1047 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1048 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1049 x_libraries=$ac_optarg ;;
1051 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1052 Try \`$0 --help' for more information"
1056 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1057 # Reject names that are not valid shell variable names.
1058 case $ac_envvar in #(
1059 '' | [0-9]* | *[!_$as_cr_alnum]* )
1060 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1062 eval $ac_envvar=\$ac_optarg
1063 export $ac_envvar ;;
1066 # FIXME: should be removed in autoconf 3.0.
1067 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1068 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1069 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1070 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1076 if test -n "$ac_prev"; then
1077 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1078 as_fn_error $? "missing argument to $ac_option"
1081 if test -n "$ac_unrecognized_opts"; then
1082 case $enable_option_checking in
1084 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1085 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1089 # Check all directory arguments for consistency.
1090 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1091 datadir sysconfdir sharedstatedir localstatedir includedir \
1092 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1093 libdir localedir mandir
1095 eval ac_val=\$$ac_var
1096 # Remove trailing slashes.
1099 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1100 eval $ac_var=\$ac_val;;
1102 # Be sure to have absolute directory names.
1104 [\\/$]* | ?:[\\/]* ) continue;;
1105 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1107 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1110 # There might be people who depend on the old broken behavior: `$host'
1111 # used to hold the argument of --host etc.
1112 # FIXME: To remove some day.
1115 target=$target_alias
1117 # FIXME: To remove some day.
1118 if test "x$host_alias" != x; then
1119 if test "x$build_alias" = x; then
1120 cross_compiling=maybe
1121 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1122 If a cross compiler is detected then cross compile mode will be used" >&2
1123 elif test "x$build_alias" != "x$host_alias"; then
1129 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1131 test "$silent" = yes && exec 6>/dev/null
1134 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1135 ac_ls_di=`ls -di .` &&
1136 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1137 as_fn_error $? "working directory cannot be determined"
1138 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1139 as_fn_error $? "pwd does not report name of working directory"
1142 # Find the source files, if location was not specified.
1143 if test -z "$srcdir"; then
1144 ac_srcdir_defaulted=yes
1145 # Try the directory containing this script, then the parent directory.
1146 ac_confdir=`$as_dirname -- "$as_myself" ||
1147 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1148 X"$as_myself" : 'X\(//\)[^/]' \| \
1149 X"$as_myself" : 'X\(//\)$' \| \
1150 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1151 $as_echo X"$as_myself" |
1152 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1170 if test ! -r "$srcdir/$ac_unique_file"; then
1174 ac_srcdir_defaulted=no
1176 if test ! -r "$srcdir/$ac_unique_file"; then
1177 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1178 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1180 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1182 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1184 # When building in place, set srcdir=.
1185 if test "$ac_abs_confdir" = "$ac_pwd"; then
1188 # Remove unnecessary trailing slashes from srcdir.
1189 # Double slashes in file names in object file debugging info
1190 # mess up M-x gdb in Emacs.
1192 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1194 for ac_var in $ac_precious_vars; do
1195 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1196 eval ac_env_${ac_var}_value=\$${ac_var}
1197 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1198 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1202 # Report the --help message.
1204 if test "$ac_init_help" = "long"; then
1205 # Omit some internal or obsolete options to make the list less imposing.
1206 # This message is too long to be a string in the A/UX 3.1 sh.
1208 \`configure' configures less 1 to adapt to many kinds of systems.
1210 Usage: $0 [OPTION]... [VAR=VALUE]...
1212 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1213 VAR=VALUE. See below for descriptions of some of the useful variables.
1215 Defaults for the options are specified in brackets.
1218 -h, --help display this help and exit
1219 --help=short display options specific to this package
1220 --help=recursive display the short help of all the included packages
1221 -V, --version display version information and exit
1222 -q, --quiet, --silent do not print \`checking ...' messages
1223 --cache-file=FILE cache test results in FILE [disabled]
1224 -C, --config-cache alias for \`--cache-file=config.cache'
1225 -n, --no-create do not create output files
1226 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1228 Installation directories:
1229 --prefix=PREFIX install architecture-independent files in PREFIX
1230 [$ac_default_prefix]
1231 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1234 By default, \`make install' will install all the files in
1235 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1236 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1237 for instance \`--prefix=\$HOME'.
1239 For better control, use the options below.
1241 Fine tuning of the installation directories:
1242 --bindir=DIR user executables [EPREFIX/bin]
1243 --sbindir=DIR system admin executables [EPREFIX/sbin]
1244 --libexecdir=DIR program executables [EPREFIX/libexec]
1245 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1246 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1247 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1248 --libdir=DIR object code libraries [EPREFIX/lib]
1249 --includedir=DIR C header files [PREFIX/include]
1250 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1251 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1252 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1253 --infodir=DIR info documentation [DATAROOTDIR/info]
1254 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1255 --mandir=DIR man documentation [DATAROOTDIR/man]
1256 --docdir=DIR documentation root [DATAROOTDIR/doc/less]
1257 --htmldir=DIR html documentation [DOCDIR]
1258 --dvidir=DIR dvi documentation [DOCDIR]
1259 --pdfdir=DIR pdf documentation [DOCDIR]
1260 --psdir=DIR ps documentation [DOCDIR]
1267 if test -n "$ac_init_help"; then
1268 case $ac_init_help in
1269 short | recursive ) echo "Configuration of less 1:";;
1274 --disable-option-checking ignore unrecognized --enable/--with options
1275 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1276 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1277 --disable-largefile omit support for large files
1280 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1281 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1282 --with-secure Compile in secure mode
1283 --with-no-float Do not use floating point
1284 --with-regex={auto,pcre,posix,regcmp,re_comp,regcomp,regcomp-local} Select a regular expression library auto
1285 --with-editor=PROGRAM use PROGRAM as the default editor vi
1287 Some influential environment variables:
1288 CC C compiler command
1289 CFLAGS C compiler flags
1290 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1291 nonstandard directory <lib dir>
1292 LIBS libraries to pass to the linker, e.g. -l<library>
1293 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1294 you have headers in a nonstandard directory <include dir>
1297 Use these variables to override the choices made by `configure' or to help
1298 it to find libraries and programs with nonstandard names/locations.
1300 Report bugs to the package provider.
1305 if test "$ac_init_help" = "recursive"; then
1306 # If there are subdirs, report their specific --help.
1307 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1308 test -d "$ac_dir" ||
1309 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1314 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1316 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1317 # A ".." for each directory in $ac_dir_suffix.
1318 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1319 case $ac_top_builddir_sub in
1320 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1321 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1324 ac_abs_top_builddir=$ac_pwd
1325 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1326 # for backward compatibility:
1327 ac_top_builddir=$ac_top_build_prefix
1330 .) # We are building in place.
1332 ac_top_srcdir=$ac_top_builddir_sub
1333 ac_abs_top_srcdir=$ac_pwd ;;
1334 [\\/]* | ?:[\\/]* ) # Absolute name.
1335 ac_srcdir=$srcdir$ac_dir_suffix;
1336 ac_top_srcdir=$srcdir
1337 ac_abs_top_srcdir=$srcdir ;;
1339 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1340 ac_top_srcdir=$ac_top_build_prefix$srcdir
1341 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1343 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1345 cd "$ac_dir" || { ac_status=$?; continue; }
1346 # Check for guested configure.
1347 if test -f "$ac_srcdir/configure.gnu"; then
1349 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1350 elif test -f "$ac_srcdir/configure"; then
1352 $SHELL "$ac_srcdir/configure" --help=recursive
1354 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1356 cd "$ac_pwd" || { ac_status=$?; break; }
1360 test -n "$ac_init_help" && exit $ac_status
1361 if $ac_init_version; then
1364 generated by GNU Autoconf 2.67
1366 Copyright (C) 2010 Free Software Foundation, Inc.
1367 This configure script is free software; the Free Software Foundation
1368 gives unlimited permission to copy, distribute and modify it.
1373 ## ------------------------ ##
1374 ## Autoconf initialization. ##
1375 ## ------------------------ ##
1377 # ac_fn_c_try_compile LINENO
1378 # --------------------------
1379 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1380 ac_fn_c_try_compile ()
1382 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1383 rm -f conftest.$ac_objext
1384 if { { ac_try="$ac_compile"
1386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1387 *) ac_try_echo=$ac_try;;
1389 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1390 $as_echo "$ac_try_echo"; } >&5
1391 (eval "$ac_compile") 2>conftest.err
1393 if test -s conftest.err; then
1394 grep -v '^ *+' conftest.err >conftest.er1
1395 cat conftest.er1 >&5
1396 mv -f conftest.er1 conftest.err
1398 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1399 test $ac_status = 0; } && {
1400 test -z "$ac_c_werror_flag" ||
1401 test ! -s conftest.err
1402 } && test -s conftest.$ac_objext; then :
1405 $as_echo "$as_me: failed program was:" >&5
1406 sed 's/^/| /' conftest.$ac_ext >&5
1410 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1411 as_fn_set_status $ac_retval
1413 } # ac_fn_c_try_compile
1415 # ac_fn_c_try_link LINENO
1416 # -----------------------
1417 # Try to link conftest.$ac_ext, and return whether this succeeded.
1420 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1421 rm -f conftest.$ac_objext conftest$ac_exeext
1422 if { { ac_try="$ac_link"
1424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1425 *) ac_try_echo=$ac_try;;
1427 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1428 $as_echo "$ac_try_echo"; } >&5
1429 (eval "$ac_link") 2>conftest.err
1431 if test -s conftest.err; then
1432 grep -v '^ *+' conftest.err >conftest.er1
1433 cat conftest.er1 >&5
1434 mv -f conftest.er1 conftest.err
1436 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1437 test $ac_status = 0; } && {
1438 test -z "$ac_c_werror_flag" ||
1439 test ! -s conftest.err
1440 } && test -s conftest$ac_exeext && {
1441 test "$cross_compiling" = yes ||
1442 $as_test_x conftest$ac_exeext
1446 $as_echo "$as_me: failed program was:" >&5
1447 sed 's/^/| /' conftest.$ac_ext >&5
1451 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1452 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1453 # interfere with the next link command; also delete a directory that is
1454 # left behind by Apple's compiler. We do this before executing the actions.
1455 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1456 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1457 as_fn_set_status $ac_retval
1459 } # ac_fn_c_try_link
1461 # ac_fn_c_try_cpp LINENO
1462 # ----------------------
1463 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1466 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1467 if { { ac_try="$ac_cpp conftest.$ac_ext"
1469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1470 *) ac_try_echo=$ac_try;;
1472 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1473 $as_echo "$ac_try_echo"; } >&5
1474 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1476 if test -s conftest.err; then
1477 grep -v '^ *+' conftest.err >conftest.er1
1478 cat conftest.er1 >&5
1479 mv -f conftest.er1 conftest.err
1481 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1482 test $ac_status = 0; } > conftest.i && {
1483 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1484 test ! -s conftest.err
1488 $as_echo "$as_me: failed program was:" >&5
1489 sed 's/^/| /' conftest.$ac_ext >&5
1493 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1494 as_fn_set_status $ac_retval
1498 # ac_fn_c_try_run LINENO
1499 # ----------------------
1500 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1501 # that executables *can* be run.
1504 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1505 if { { ac_try="$ac_link"
1507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1508 *) ac_try_echo=$ac_try;;
1510 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1511 $as_echo "$ac_try_echo"; } >&5
1512 (eval "$ac_link") 2>&5
1514 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1515 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1516 { { case "(($ac_try" in
1517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1518 *) ac_try_echo=$ac_try;;
1520 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1521 $as_echo "$ac_try_echo"; } >&5
1522 (eval "$ac_try") 2>&5
1524 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1525 test $ac_status = 0; }; }; then :
1528 $as_echo "$as_me: program exited with status $ac_status" >&5
1529 $as_echo "$as_me: failed program was:" >&5
1530 sed 's/^/| /' conftest.$ac_ext >&5
1532 ac_retval=$ac_status
1534 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1535 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1536 as_fn_set_status $ac_retval
1540 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1541 # -------------------------------------------------------
1542 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1543 # the include files in INCLUDES and setting the cache variable VAR
1545 ac_fn_c_check_header_mongrel ()
1547 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1548 if eval "test \"\${$3+set}\"" = set; then :
1549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1550 $as_echo_n "checking for $2... " >&6; }
1551 if eval "test \"\${$3+set}\"" = set; then :
1552 $as_echo_n "(cached) " >&6
1555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1556 $as_echo "$ac_res" >&6; }
1558 # Is the header compilable?
1559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1560 $as_echo_n "checking $2 usability... " >&6; }
1561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1562 /* end confdefs.h. */
1566 if ac_fn_c_try_compile "$LINENO"; then :
1567 ac_header_compiler=yes
1569 ac_header_compiler=no
1571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1573 $as_echo "$ac_header_compiler" >&6; }
1575 # Is the header present?
1576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1577 $as_echo_n "checking $2 presence... " >&6; }
1578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1579 /* end confdefs.h. */
1582 if ac_fn_c_try_cpp "$LINENO"; then :
1583 ac_header_preproc=yes
1585 ac_header_preproc=no
1587 rm -f conftest.err conftest.i conftest.$ac_ext
1588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1589 $as_echo "$ac_header_preproc" >&6; }
1591 # So? What about this header?
1592 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1594 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1595 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1596 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1597 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1600 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1601 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1602 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1603 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1604 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1605 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1606 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1607 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1608 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1609 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1613 $as_echo_n "checking for $2... " >&6; }
1614 if eval "test \"\${$3+set}\"" = set; then :
1615 $as_echo_n "(cached) " >&6
1617 eval "$3=\$ac_header_compiler"
1620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1621 $as_echo "$ac_res" >&6; }
1623 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1625 } # ac_fn_c_check_header_mongrel
1627 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1628 # -------------------------------------------------------
1629 # Tests whether HEADER exists and can be compiled using the include files in
1630 # INCLUDES, setting the cache variable VAR accordingly.
1631 ac_fn_c_check_header_compile ()
1633 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1635 $as_echo_n "checking for $2... " >&6; }
1636 if eval "test \"\${$3+set}\"" = set; then :
1637 $as_echo_n "(cached) " >&6
1639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1640 /* end confdefs.h. */
1644 if ac_fn_c_try_compile "$LINENO"; then :
1649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1653 $as_echo "$ac_res" >&6; }
1654 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1656 } # ac_fn_c_check_header_compile
1658 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1659 # -------------------------------------------
1660 # Tests whether TYPE exists after having included INCLUDES, setting cache
1661 # variable VAR accordingly.
1662 ac_fn_c_check_type ()
1664 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1666 $as_echo_n "checking for $2... " >&6; }
1667 if eval "test \"\${$3+set}\"" = set; then :
1668 $as_echo_n "(cached) " >&6
1671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1672 /* end confdefs.h. */
1683 if ac_fn_c_try_compile "$LINENO"; then :
1684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1685 /* end confdefs.h. */
1696 if ac_fn_c_try_compile "$LINENO"; then :
1701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1707 $as_echo "$ac_res" >&6; }
1708 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1710 } # ac_fn_c_check_type
1712 # ac_fn_c_check_func LINENO FUNC VAR
1713 # ----------------------------------
1714 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1715 ac_fn_c_check_func ()
1717 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1719 $as_echo_n "checking for $2... " >&6; }
1720 if eval "test \"\${$3+set}\"" = set; then :
1721 $as_echo_n "(cached) " >&6
1723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1724 /* end confdefs.h. */
1725 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1726 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1727 #define $2 innocuous_$2
1729 /* System header to define __stub macros and hopefully few prototypes,
1730 which can conflict with char $2 (); below.
1731 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1732 <limits.h> exists even on freestanding compilers. */
1735 # include <limits.h>
1737 # include <assert.h>
1742 /* Override any GCC internal prototype to avoid an error.
1743 Use char because int might match the return type of a GCC
1744 builtin and then its argument prototype would still apply. */
1749 /* The GNU C library defines this for functions which it implements
1750 to always fail with ENOSYS. Some functions are actually named
1751 something starting with __ and the normal name is an alias. */
1752 #if defined __stub_$2 || defined __stub___$2
1764 if ac_fn_c_try_link "$LINENO"; then :
1769 rm -f core conftest.err conftest.$ac_objext \
1770 conftest$ac_exeext conftest.$ac_ext
1773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1774 $as_echo "$ac_res" >&6; }
1775 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1777 } # ac_fn_c_check_func
1778 cat >config.log <<_ACEOF
1779 This file contains any messages produced by compilers while
1780 running configure, to aid debugging if configure makes a mistake.
1782 It was created by less $as_me 1, which was
1783 generated by GNU Autoconf 2.67. Invocation command line was
1795 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1796 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1797 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1798 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1799 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1801 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1802 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1804 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1805 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1806 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1807 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1808 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1809 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1810 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1818 test -z "$as_dir" && as_dir=.
1819 $as_echo "PATH: $as_dir"
1835 # Keep a trace of the command line.
1836 # Strip out --no-create and --no-recursion so they do not pile up.
1837 # Strip out --silent because we don't want to record it for future runs.
1838 # Also quote any args containing shell meta-characters.
1839 # Make two passes to allow for proper duplicate-argument suppression.
1843 ac_must_keep_next=false
1849 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1850 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1851 | -silent | --silent | --silen | --sile | --sil)
1854 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1857 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1859 as_fn_append ac_configure_args1 " '$ac_arg'"
1860 if test $ac_must_keep_next = true; then
1861 ac_must_keep_next=false # Got value, back to normal.
1864 *=* | --config-cache | -C | -disable-* | --disable-* \
1865 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1866 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1867 | -with-* | --with-* | -without-* | --without-* | --x)
1868 case "$ac_configure_args0 " in
1869 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1872 -* ) ac_must_keep_next=true ;;
1875 as_fn_append ac_configure_args " '$ac_arg'"
1880 { ac_configure_args0=; unset ac_configure_args0;}
1881 { ac_configure_args1=; unset ac_configure_args1;}
1883 # When interrupted or exit'd, cleanup temporary files, and complete
1884 # config.log. We remove comments because anyway the quotes in there
1885 # would cause problems or look ugly.
1886 # WARNING: Use '\'' to represent an apostrophe within the trap.
1887 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1888 trap 'exit_status=$?
1889 # Save into config.log some information that might help in debugging.
1893 $as_echo "## ---------------- ##
1894 ## Cache variables. ##
1895 ## ---------------- ##"
1897 # The following way of writing the cache mishandles newlines in values,
1899 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1900 eval ac_val=\$$ac_var
1904 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1905 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1908 _ | IFS | as_nl) ;; #(
1909 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1910 *) { eval $ac_var=; unset $ac_var;} ;;
1915 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1916 *${as_nl}ac_space=\ *)
1918 "s/'\''/'\''\\\\'\'''\''/g;
1919 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1922 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1929 $as_echo "## ----------------- ##
1930 ## Output variables. ##
1931 ## ----------------- ##"
1933 for ac_var in $ac_subst_vars
1935 eval ac_val=\$$ac_var
1937 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1939 $as_echo "$ac_var='\''$ac_val'\''"
1943 if test -n "$ac_subst_files"; then
1944 $as_echo "## ------------------- ##
1945 ## File substitutions. ##
1946 ## ------------------- ##"
1948 for ac_var in $ac_subst_files
1950 eval ac_val=\$$ac_var
1952 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1954 $as_echo "$ac_var='\''$ac_val'\''"
1959 if test -s confdefs.h; then
1960 $as_echo "## ----------- ##
1967 test "$ac_signal" != 0 &&
1968 $as_echo "$as_me: caught signal $ac_signal"
1969 $as_echo "$as_me: exit $exit_status"
1971 rm -f core *.core core.conftest.* &&
1972 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1975 for ac_signal in 1 2 13 15; do
1976 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1980 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1981 rm -f -r conftest* confdefs.h
1983 $as_echo "/* confdefs.h */" > confdefs.h
1985 # Predefined preprocessor variables.
1987 cat >>confdefs.h <<_ACEOF
1988 #define PACKAGE_NAME "$PACKAGE_NAME"
1991 cat >>confdefs.h <<_ACEOF
1992 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1995 cat >>confdefs.h <<_ACEOF
1996 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1999 cat >>confdefs.h <<_ACEOF
2000 #define PACKAGE_STRING "$PACKAGE_STRING"
2003 cat >>confdefs.h <<_ACEOF
2004 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2007 cat >>confdefs.h <<_ACEOF
2008 #define PACKAGE_URL "$PACKAGE_URL"
2012 # Let the site file select an alternate cache file if it wants to.
2013 # Prefer an explicitly selected file to automatically selected ones.
2016 if test -n "$CONFIG_SITE"; then
2017 # We do not want a PATH search for config.site.
2018 case $CONFIG_SITE in #((
2019 -*) ac_site_file1=./$CONFIG_SITE;;
2020 */*) ac_site_file1=$CONFIG_SITE;;
2021 *) ac_site_file1=./$CONFIG_SITE;;
2023 elif test "x$prefix" != xNONE; then
2024 ac_site_file1=$prefix/share/config.site
2025 ac_site_file2=$prefix/etc/config.site
2027 ac_site_file1=$ac_default_prefix/share/config.site
2028 ac_site_file2=$ac_default_prefix/etc/config.site
2030 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2032 test "x$ac_site_file" = xNONE && continue
2033 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2034 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2035 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2036 sed 's/^/| /' "$ac_site_file" >&5
2038 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2039 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2040 as_fn_error $? "failed to load site script $ac_site_file
2041 See \`config.log' for more details" "$LINENO" 5 ; }
2045 if test -r "$cache_file"; then
2046 # Some versions of bash will fail to source /dev/null (special files
2047 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2048 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2049 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2050 $as_echo "$as_me: loading cache $cache_file" >&6;}
2052 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2053 *) . "./$cache_file";;
2057 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2058 $as_echo "$as_me: creating cache $cache_file" >&6;}
2062 # Check that the precious variables saved in the cache have kept the same
2064 ac_cache_corrupted=false
2065 for ac_var in $ac_precious_vars; do
2066 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2067 eval ac_new_set=\$ac_env_${ac_var}_set
2068 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2069 eval ac_new_val=\$ac_env_${ac_var}_value
2070 case $ac_old_set,$ac_new_set in
2072 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2073 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2074 ac_cache_corrupted=: ;;
2076 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2077 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2078 ac_cache_corrupted=: ;;
2081 if test "x$ac_old_val" != "x$ac_new_val"; then
2082 # differences in whitespace do not lead to failure.
2083 ac_old_val_w=`echo x $ac_old_val`
2084 ac_new_val_w=`echo x $ac_new_val`
2085 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2086 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2087 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2088 ac_cache_corrupted=:
2090 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2091 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2092 eval $ac_var=\$ac_old_val
2094 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2095 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2096 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2097 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2100 # Pass precious variables to config.status.
2101 if test "$ac_new_set" = set; then
2103 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2104 *) ac_arg=$ac_var=$ac_new_val ;;
2106 case " $ac_configure_args " in
2107 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2108 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2112 if $ac_cache_corrupted; then
2113 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2114 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2115 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2116 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2117 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2119 ## -------------------- ##
2120 ## Main body of script. ##
2121 ## -------------------- ##
2124 ac_cpp='$CPP $CPPFLAGS'
2125 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2126 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2127 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2131 ac_config_headers="$ac_config_headers defines.h"
2134 # Checks for programs.
2136 ac_cpp='$CPP $CPPFLAGS'
2137 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2138 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2139 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2140 if test -n "$ac_tool_prefix"; then
2141 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2142 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2144 $as_echo_n "checking for $ac_word... " >&6; }
2145 if test "${ac_cv_prog_CC+set}" = set; then :
2146 $as_echo_n "(cached) " >&6
2148 if test -n "$CC"; then
2149 ac_cv_prog_CC="$CC" # Let the user override the test.
2151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2155 test -z "$as_dir" && as_dir=.
2156 for ac_exec_ext in '' $ac_executable_extensions; do
2157 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2158 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2159 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2169 if test -n "$CC"; then
2170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2171 $as_echo "$CC" >&6; }
2173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2174 $as_echo "no" >&6; }
2179 if test -z "$ac_cv_prog_CC"; then
2181 # Extract the first word of "gcc", so it can be a program name with args.
2182 set dummy gcc; ac_word=$2
2183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2184 $as_echo_n "checking for $ac_word... " >&6; }
2185 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2186 $as_echo_n "(cached) " >&6
2188 if test -n "$ac_ct_CC"; then
2189 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2195 test -z "$as_dir" && as_dir=.
2196 for ac_exec_ext in '' $ac_executable_extensions; do
2197 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2198 ac_cv_prog_ac_ct_CC="gcc"
2199 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2208 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2209 if test -n "$ac_ct_CC"; then
2210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2211 $as_echo "$ac_ct_CC" >&6; }
2213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2214 $as_echo "no" >&6; }
2217 if test "x$ac_ct_CC" = x; then
2220 case $cross_compiling:$ac_tool_warned in
2222 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2223 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2224 ac_tool_warned=yes ;;
2232 if test -z "$CC"; then
2233 if test -n "$ac_tool_prefix"; then
2234 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2235 set dummy ${ac_tool_prefix}cc; ac_word=$2
2236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2237 $as_echo_n "checking for $ac_word... " >&6; }
2238 if test "${ac_cv_prog_CC+set}" = set; then :
2239 $as_echo_n "(cached) " >&6
2241 if test -n "$CC"; then
2242 ac_cv_prog_CC="$CC" # Let the user override the test.
2244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2248 test -z "$as_dir" && as_dir=.
2249 for ac_exec_ext in '' $ac_executable_extensions; do
2250 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2251 ac_cv_prog_CC="${ac_tool_prefix}cc"
2252 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2262 if test -n "$CC"; then
2263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2264 $as_echo "$CC" >&6; }
2266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2267 $as_echo "no" >&6; }
2273 if test -z "$CC"; then
2274 # Extract the first word of "cc", so it can be a program name with args.
2275 set dummy cc; ac_word=$2
2276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2277 $as_echo_n "checking for $ac_word... " >&6; }
2278 if test "${ac_cv_prog_CC+set}" = set; then :
2279 $as_echo_n "(cached) " >&6
2281 if test -n "$CC"; then
2282 ac_cv_prog_CC="$CC" # Let the user override the test.
2285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2289 test -z "$as_dir" && as_dir=.
2290 for ac_exec_ext in '' $ac_executable_extensions; do
2291 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2292 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2293 ac_prog_rejected=yes
2297 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2304 if test $ac_prog_rejected = yes; then
2305 # We found a bogon in the path, so make sure we never use it.
2306 set dummy $ac_cv_prog_CC
2308 if test $# != 0; then
2309 # We chose a different compiler from the bogus one.
2310 # However, it has the same basename, so the bogon will be chosen
2311 # first if we set CC to just the basename; use the full file name.
2313 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2319 if test -n "$CC"; then
2320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2321 $as_echo "$CC" >&6; }
2323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2324 $as_echo "no" >&6; }
2329 if test -z "$CC"; then
2330 if test -n "$ac_tool_prefix"; then
2331 for ac_prog in cl.exe
2333 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2334 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2336 $as_echo_n "checking for $ac_word... " >&6; }
2337 if test "${ac_cv_prog_CC+set}" = set; then :
2338 $as_echo_n "(cached) " >&6
2340 if test -n "$CC"; then
2341 ac_cv_prog_CC="$CC" # Let the user override the test.
2343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2347 test -z "$as_dir" && as_dir=.
2348 for ac_exec_ext in '' $ac_executable_extensions; do
2349 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2350 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2351 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2361 if test -n "$CC"; then
2362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2363 $as_echo "$CC" >&6; }
2365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2366 $as_echo "no" >&6; }
2370 test -n "$CC" && break
2373 if test -z "$CC"; then
2375 for ac_prog in cl.exe
2377 # Extract the first word of "$ac_prog", so it can be a program name with args.
2378 set dummy $ac_prog; ac_word=$2
2379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2380 $as_echo_n "checking for $ac_word... " >&6; }
2381 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2382 $as_echo_n "(cached) " >&6
2384 if test -n "$ac_ct_CC"; then
2385 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2391 test -z "$as_dir" && as_dir=.
2392 for ac_exec_ext in '' $ac_executable_extensions; do
2393 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2394 ac_cv_prog_ac_ct_CC="$ac_prog"
2395 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2404 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2405 if test -n "$ac_ct_CC"; then
2406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2407 $as_echo "$ac_ct_CC" >&6; }
2409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2410 $as_echo "no" >&6; }
2414 test -n "$ac_ct_CC" && break
2417 if test "x$ac_ct_CC" = x; then
2420 case $cross_compiling:$ac_tool_warned in
2422 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2423 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2424 ac_tool_warned=yes ;;
2433 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2434 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2435 as_fn_error $? "no acceptable C compiler found in \$PATH
2436 See \`config.log' for more details" "$LINENO" 5 ; }
2438 # Provide some information about the compiler.
2439 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2442 for ac_option in --version -v -V -qversion; do
2443 { { ac_try="$ac_compiler $ac_option >&5"
2445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2446 *) ac_try_echo=$ac_try;;
2448 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2449 $as_echo "$ac_try_echo"; } >&5
2450 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2452 if test -s conftest.err; then
2454 ... rest of stderr output deleted ...
2455 10q' conftest.err >conftest.er1
2456 cat conftest.er1 >&5
2458 rm -f conftest.er1 conftest.err
2459 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2460 test $ac_status = 0; }
2463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2464 /* end confdefs.h. */
2474 ac_clean_files_save=$ac_clean_files
2475 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2476 # Try to create an executable without -o first, disregard a.out.
2477 # It will help us diagnose broken compilers, and finding out an intuition
2479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2480 $as_echo_n "checking whether the C compiler works... " >&6; }
2481 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2483 # The possible output files:
2484 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2487 for ac_file in $ac_files
2490 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2491 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2496 if { { ac_try="$ac_link_default"
2498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2499 *) ac_try_echo=$ac_try;;
2501 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2502 $as_echo "$ac_try_echo"; } >&5
2503 (eval "$ac_link_default") 2>&5
2505 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2506 test $ac_status = 0; }; then :
2507 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2508 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2509 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2510 # so that the user can short-circuit this test for compilers unknown to
2512 for ac_file in $ac_files ''
2514 test -f "$ac_file" || continue
2516 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2519 # We found the default executable, but exeext='' is most
2523 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2525 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2527 # We set ac_cv_exeext here because the later test for it is not
2528 # safe: cross compilers may not add the suffix if given an `-o'
2529 # argument, so we may need to know it at that point already.
2530 # Even if this section looks crufty: it has the advantage of
2537 test "$ac_cv_exeext" = no && ac_cv_exeext=
2542 if test -z "$ac_file"; then :
2543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2544 $as_echo "no" >&6; }
2545 $as_echo "$as_me: failed program was:" >&5
2546 sed 's/^/| /' conftest.$ac_ext >&5
2548 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2549 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2550 as_fn_error 77 "C compiler cannot create executables
2551 See \`config.log' for more details" "$LINENO" 5 ; }
2553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2554 $as_echo "yes" >&6; }
2556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2557 $as_echo_n "checking for C compiler default output file name... " >&6; }
2558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2559 $as_echo "$ac_file" >&6; }
2560 ac_exeext=$ac_cv_exeext
2562 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2563 ac_clean_files=$ac_clean_files_save
2564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2565 $as_echo_n "checking for suffix of executables... " >&6; }
2566 if { { ac_try="$ac_link"
2568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2569 *) ac_try_echo=$ac_try;;
2571 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2572 $as_echo "$ac_try_echo"; } >&5
2573 (eval "$ac_link") 2>&5
2575 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2576 test $ac_status = 0; }; then :
2577 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2578 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2579 # work properly (i.e., refer to `conftest.exe'), while it won't with
2581 for ac_file in conftest.exe conftest conftest.*; do
2582 test -f "$ac_file" || continue
2584 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2585 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2591 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2592 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2593 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2594 See \`config.log' for more details" "$LINENO" 5 ; }
2596 rm -f conftest conftest$ac_cv_exeext
2597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2598 $as_echo "$ac_cv_exeext" >&6; }
2600 rm -f conftest.$ac_ext
2601 EXEEXT=$ac_cv_exeext
2603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2604 /* end confdefs.h. */
2609 FILE *f = fopen ("conftest.out", "w");
2610 return ferror (f) || fclose (f) != 0;
2616 ac_clean_files="$ac_clean_files conftest.out"
2617 # Check that the compiler produces executables we can run. If not, either
2618 # the compiler is broken, or we cross compile.
2619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2620 $as_echo_n "checking whether we are cross compiling... " >&6; }
2621 if test "$cross_compiling" != yes; then
2622 { { ac_try="$ac_link"
2624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2625 *) ac_try_echo=$ac_try;;
2627 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2628 $as_echo "$ac_try_echo"; } >&5
2629 (eval "$ac_link") 2>&5
2631 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2632 test $ac_status = 0; }
2633 if { ac_try='./conftest$ac_cv_exeext'
2634 { { case "(($ac_try" in
2635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2636 *) ac_try_echo=$ac_try;;
2638 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2639 $as_echo "$ac_try_echo"; } >&5
2640 (eval "$ac_try") 2>&5
2642 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2643 test $ac_status = 0; }; }; then
2646 if test "$cross_compiling" = maybe; then
2649 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2650 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2651 as_fn_error $? "cannot run C compiled programs.
2652 If you meant to cross compile, use \`--host'.
2653 See \`config.log' for more details" "$LINENO" 5 ; }
2657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2658 $as_echo "$cross_compiling" >&6; }
2660 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2661 ac_clean_files=$ac_clean_files_save
2662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2663 $as_echo_n "checking for suffix of object files... " >&6; }
2664 if test "${ac_cv_objext+set}" = set; then :
2665 $as_echo_n "(cached) " >&6
2667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2668 /* end confdefs.h. */
2678 rm -f conftest.o conftest.obj
2679 if { { ac_try="$ac_compile"
2681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2682 *) ac_try_echo=$ac_try;;
2684 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2685 $as_echo "$ac_try_echo"; } >&5
2686 (eval "$ac_compile") 2>&5
2688 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2689 test $ac_status = 0; }; then :
2690 for ac_file in conftest.o conftest.obj conftest.*; do
2691 test -f "$ac_file" || continue;
2693 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2694 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2699 $as_echo "$as_me: failed program was:" >&5
2700 sed 's/^/| /' conftest.$ac_ext >&5
2702 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2703 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2704 as_fn_error $? "cannot compute suffix of object files: cannot compile
2705 See \`config.log' for more details" "$LINENO" 5 ; }
2707 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2710 $as_echo "$ac_cv_objext" >&6; }
2711 OBJEXT=$ac_cv_objext
2713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2714 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2715 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
2716 $as_echo_n "(cached) " >&6
2718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2719 /* end confdefs.h. */
2732 if ac_fn_c_try_compile "$LINENO"; then :
2737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2738 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2742 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2743 if test $ac_compiler_gnu = yes; then
2748 ac_test_CFLAGS=${CFLAGS+set}
2749 ac_save_CFLAGS=$CFLAGS
2750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2751 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2752 if test "${ac_cv_prog_cc_g+set}" = set; then :
2753 $as_echo_n "(cached) " >&6
2755 ac_save_c_werror_flag=$ac_c_werror_flag
2756 ac_c_werror_flag=yes
2759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2760 /* end confdefs.h. */
2770 if ac_fn_c_try_compile "$LINENO"; then :
2774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2775 /* end confdefs.h. */
2785 if ac_fn_c_try_compile "$LINENO"; then :
2788 ac_c_werror_flag=$ac_save_c_werror_flag
2790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2791 /* end confdefs.h. */
2801 if ac_fn_c_try_compile "$LINENO"; then :
2804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2809 ac_c_werror_flag=$ac_save_c_werror_flag
2811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
2812 $as_echo "$ac_cv_prog_cc_g" >&6; }
2813 if test "$ac_test_CFLAGS" = set; then
2814 CFLAGS=$ac_save_CFLAGS
2815 elif test $ac_cv_prog_cc_g = yes; then
2816 if test "$GCC" = yes; then
2822 if test "$GCC" = yes; then
2828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
2829 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2830 if test "${ac_cv_prog_cc_c89+set}" = set; then :
2831 $as_echo_n "(cached) " >&6
2833 ac_cv_prog_cc_c89=no
2835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2836 /* end confdefs.h. */
2839 #include <sys/types.h>
2840 #include <sys/stat.h>
2841 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2842 struct buf { int x; };
2843 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2844 static char *e (p, i)
2850 static char *f (char * (*g) (char **, int), char **p, ...)
2855 s = g (p, va_arg (v,int));
2860 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2861 function prototypes and stuff, but not '\xHH' hex character constants.
2862 These don't provoke an error unfortunately, instead are silently treated
2863 as 'x'. The following induces an error, until -std is added to get
2864 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2865 array size at least. It's necessary to write '\x00'==0 to get something
2866 that's true only with -std. */
2867 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2869 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2870 inside strings and character constants. */
2872 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2874 int test (int i, double x);
2875 struct s1 {int (*f) (int a);};
2876 struct s2 {int (*f) (double a);};
2877 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2883 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2888 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2889 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2891 CC="$ac_save_CC $ac_arg"
2892 if ac_fn_c_try_compile "$LINENO"; then :
2893 ac_cv_prog_cc_c89=$ac_arg
2895 rm -f core conftest.err conftest.$ac_objext
2896 test "x$ac_cv_prog_cc_c89" != "xno" && break
2898 rm -f conftest.$ac_ext
2903 case "x$ac_cv_prog_cc_c89" in
2905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
2906 $as_echo "none needed" >&6; } ;;
2908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
2909 $as_echo "unsupported" >&6; } ;;
2911 CC="$CC $ac_cv_prog_cc_c89"
2912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
2913 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
2915 if test "x$ac_cv_prog_cc_c89" != xno; then :
2920 ac_cpp='$CPP $CPPFLAGS'
2921 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2922 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2923 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
2927 $as_echo_n "checking for library containing strerror... " >&6; }
2928 if test "${ac_cv_search_strerror+set}" = set; then :
2929 $as_echo_n "(cached) " >&6
2931 ac_func_search_save_LIBS=$LIBS
2932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2933 /* end confdefs.h. */
2935 /* Override any GCC internal prototype to avoid an error.
2936 Use char because int might match the return type of a GCC
2937 builtin and then its argument prototype would still apply. */
2950 for ac_lib in '' cposix; do
2951 if test -z "$ac_lib"; then
2952 ac_res="none required"
2955 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2957 if ac_fn_c_try_link "$LINENO"; then :
2958 ac_cv_search_strerror=$ac_res
2960 rm -f core conftest.err conftest.$ac_objext \
2962 if test "${ac_cv_search_strerror+set}" = set; then :
2966 if test "${ac_cv_search_strerror+set}" = set; then :
2969 ac_cv_search_strerror=no
2972 LIBS=$ac_func_search_save_LIBS
2974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
2975 $as_echo "$ac_cv_search_strerror" >&6; }
2976 ac_res=$ac_cv_search_strerror
2977 if test "$ac_res" != no; then :
2978 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
2983 ac_cpp='$CPP $CPPFLAGS'
2984 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2985 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2986 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
2988 $as_echo_n "checking how to run the C preprocessor... " >&6; }
2989 # On Suns, sometimes $CPP names a directory.
2990 if test -n "$CPP" && test -d "$CPP"; then
2993 if test -z "$CPP"; then
2994 if test "${ac_cv_prog_CPP+set}" = set; then :
2995 $as_echo_n "(cached) " >&6
2997 # Double quotes because CPP needs to be expanded
2998 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3001 for ac_c_preproc_warn_flag in '' yes
3003 # Use a header file that comes with gcc, so configuring glibc
3004 # with a fresh cross-compiler works.
3005 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3006 # <limits.h> exists even on freestanding compilers.
3007 # On the NeXT, cc -E runs the code through the compiler's parser,
3008 # not just through cpp. "Syntax error" is here to catch this case.
3009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3010 /* end confdefs.h. */
3012 # include <limits.h>
3014 # include <assert.h>
3018 if ac_fn_c_try_cpp "$LINENO"; then :
3021 # Broken: fails on valid input.
3024 rm -f conftest.err conftest.i conftest.$ac_ext
3026 # OK, works on sane cases. Now check whether nonexistent headers
3027 # can be detected and how.
3028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3029 /* end confdefs.h. */
3030 #include <ac_nonexistent.h>
3032 if ac_fn_c_try_cpp "$LINENO"; then :
3033 # Broken: success on invalid input.
3036 # Passes both tests.
3040 rm -f conftest.err conftest.i conftest.$ac_ext
3043 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3044 rm -f conftest.i conftest.err conftest.$ac_ext
3045 if $ac_preproc_ok; then :
3057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3058 $as_echo "$CPP" >&6; }
3060 for ac_c_preproc_warn_flag in '' yes
3062 # Use a header file that comes with gcc, so configuring glibc
3063 # with a fresh cross-compiler works.
3064 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3065 # <limits.h> exists even on freestanding compilers.
3066 # On the NeXT, cc -E runs the code through the compiler's parser,
3067 # not just through cpp. "Syntax error" is here to catch this case.
3068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3069 /* end confdefs.h. */
3071 # include <limits.h>
3073 # include <assert.h>
3077 if ac_fn_c_try_cpp "$LINENO"; then :
3080 # Broken: fails on valid input.
3083 rm -f conftest.err conftest.i conftest.$ac_ext
3085 # OK, works on sane cases. Now check whether nonexistent headers
3086 # can be detected and how.
3087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3088 /* end confdefs.h. */
3089 #include <ac_nonexistent.h>
3091 if ac_fn_c_try_cpp "$LINENO"; then :
3092 # Broken: success on invalid input.
3095 # Passes both tests.
3099 rm -f conftest.err conftest.i conftest.$ac_ext
3102 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3103 rm -f conftest.i conftest.err conftest.$ac_ext
3104 if $ac_preproc_ok; then :
3107 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3108 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3109 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3110 See \`config.log' for more details" "$LINENO" 5 ; }
3114 ac_cpp='$CPP $CPPFLAGS'
3115 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3116 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3117 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3121 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3122 if test "${ac_cv_path_GREP+set}" = set; then :
3123 $as_echo_n "(cached) " >&6
3125 if test -z "$GREP"; then
3126 ac_path_GREP_found=false
3127 # Loop through the user's path and test for each of PROGNAME-LIST
3128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3129 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3132 test -z "$as_dir" && as_dir=.
3133 for ac_prog in grep ggrep; do
3134 for ac_exec_ext in '' $ac_executable_extensions; do
3135 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3136 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3137 # Check for GNU ac_path_GREP and select it if it is found.
3138 # Check for GNU $ac_path_GREP
3139 case `"$ac_path_GREP" --version 2>&1` in
3141 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3144 $as_echo_n 0123456789 >"conftest.in"
3147 cat "conftest.in" "conftest.in" >"conftest.tmp"
3148 mv "conftest.tmp" "conftest.in"
3149 cp "conftest.in" "conftest.nl"
3150 $as_echo 'GREP' >> "conftest.nl"
3151 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3152 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3153 as_fn_arith $ac_count + 1 && ac_count=$as_val
3154 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3155 # Best one so far, save it but keep looking for a better one
3156 ac_cv_path_GREP="$ac_path_GREP"
3157 ac_path_GREP_max=$ac_count
3159 # 10*(2^10) chars as input seems more than enough
3160 test $ac_count -gt 10 && break
3162 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3165 $ac_path_GREP_found && break 3
3170 if test -z "$ac_cv_path_GREP"; then
3171 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3174 ac_cv_path_GREP=$GREP
3178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3179 $as_echo "$ac_cv_path_GREP" >&6; }
3180 GREP="$ac_cv_path_GREP"
3183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3184 $as_echo_n "checking for egrep... " >&6; }
3185 if test "${ac_cv_path_EGREP+set}" = set; then :
3186 $as_echo_n "(cached) " >&6
3188 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3189 then ac_cv_path_EGREP="$GREP -E"
3191 if test -z "$EGREP"; then
3192 ac_path_EGREP_found=false
3193 # Loop through the user's path and test for each of PROGNAME-LIST
3194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3195 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3198 test -z "$as_dir" && as_dir=.
3199 for ac_prog in egrep; do
3200 for ac_exec_ext in '' $ac_executable_extensions; do
3201 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3202 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3203 # Check for GNU ac_path_EGREP and select it if it is found.
3204 # Check for GNU $ac_path_EGREP
3205 case `"$ac_path_EGREP" --version 2>&1` in
3207 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3210 $as_echo_n 0123456789 >"conftest.in"
3213 cat "conftest.in" "conftest.in" >"conftest.tmp"
3214 mv "conftest.tmp" "conftest.in"
3215 cp "conftest.in" "conftest.nl"
3216 $as_echo 'EGREP' >> "conftest.nl"
3217 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3218 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3219 as_fn_arith $ac_count + 1 && ac_count=$as_val
3220 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3221 # Best one so far, save it but keep looking for a better one
3222 ac_cv_path_EGREP="$ac_path_EGREP"
3223 ac_path_EGREP_max=$ac_count
3225 # 10*(2^10) chars as input seems more than enough
3226 test $ac_count -gt 10 && break
3228 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3231 $ac_path_EGREP_found && break 3
3236 if test -z "$ac_cv_path_EGREP"; then
3237 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3240 ac_cv_path_EGREP=$EGREP
3245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3246 $as_echo "$ac_cv_path_EGREP" >&6; }
3247 EGREP="$ac_cv_path_EGREP"
3250 if test $ac_cv_c_compiler_gnu = yes; then
3251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
3252 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
3253 if test "${ac_cv_prog_gcc_traditional+set}" = set; then :
3254 $as_echo_n "(cached) " >&6
3256 ac_pattern="Autoconf.*'x'"
3257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3258 /* end confdefs.h. */
3262 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3263 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
3264 ac_cv_prog_gcc_traditional=yes
3266 ac_cv_prog_gcc_traditional=no
3271 if test $ac_cv_prog_gcc_traditional = no; then
3272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3273 /* end confdefs.h. */
3277 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3278 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
3279 ac_cv_prog_gcc_traditional=yes
3285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
3286 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
3287 if test $ac_cv_prog_gcc_traditional = yes; then
3288 CC="$CC -traditional"
3293 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3294 if test -f "$ac_dir/install-sh"; then
3296 ac_install_sh="$ac_aux_dir/install-sh -c"
3298 elif test -f "$ac_dir/install.sh"; then
3300 ac_install_sh="$ac_aux_dir/install.sh -c"
3302 elif test -f "$ac_dir/shtool"; then
3304 ac_install_sh="$ac_aux_dir/shtool install -c"
3308 if test -z "$ac_aux_dir"; then
3309 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3312 # These three variables are undocumented and unsupported,
3313 # and are intended to be withdrawn in a future Autoconf release.
3314 # They can cause serious problems if a builder's source tree is in a directory
3315 # whose full name contains unusual characters.
3316 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3317 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3318 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3321 # Find a good install program. We prefer a C program (faster),
3322 # so one script is as good as another. But avoid the broken or
3323 # incompatible versions:
3324 # SysV /etc/install, /usr/sbin/install
3325 # SunOS /usr/etc/install
3326 # IRIX /sbin/install
3328 # AmigaOS /C/install, which installs bootblocks on floppy discs
3329 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3330 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3331 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3332 # OS/2's system install, which has a completely different semantic
3333 # ./install, which can be erroneously created by make from ./install.sh.
3334 # Reject install programs that cannot install multiple files.
3335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3336 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3337 if test -z "$INSTALL"; then
3338 if test "${ac_cv_path_install+set}" = set; then :
3339 $as_echo_n "(cached) " >&6
3341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3345 test -z "$as_dir" && as_dir=.
3346 # Account for people who put trailing slashes in PATH elements.
3347 case $as_dir/ in #((
3348 ./ | .// | /[cC]/* | \
3349 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3350 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3353 # OSF1 and SCO ODT 3.0 have their own names for install.
3354 # Don't use installbsd from OSF since it installs stuff as root
3356 for ac_prog in ginstall scoinst install; do
3357 for ac_exec_ext in '' $ac_executable_extensions; do
3358 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3359 if test $ac_prog = install &&
3360 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3361 # AIX install. It has an incompatible calling convention.
3363 elif test $ac_prog = install &&
3364 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3365 # program-specific install script used by HP pwplus--don't use.
3368 rm -rf conftest.one conftest.two conftest.dir
3369 echo one > conftest.one
3370 echo two > conftest.two
3372 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3373 test -s conftest.one && test -s conftest.two &&
3374 test -s conftest.dir/conftest.one &&
3375 test -s conftest.dir/conftest.two
3377 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3390 rm -rf conftest.one conftest.two conftest.dir
3393 if test "${ac_cv_path_install+set}" = set; then
3394 INSTALL=$ac_cv_path_install
3396 # As a last resort, use the slow shell script. Don't cache a
3397 # value for INSTALL within a source directory, because that will
3398 # break other packages using the cache if that directory is
3399 # removed, or if the value is a relative name.
3400 INSTALL=$ac_install_sh
3403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3404 $as_echo "$INSTALL" >&6; }
3406 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3407 # It thinks the first close brace ends the variable substitution.
3408 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3410 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3412 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3415 # Checks for compilation model.
3416 # Check whether --enable-largefile was given.
3417 if test "${enable_largefile+set}" = set; then :
3418 enableval=$enable_largefile;
3421 if test "$enable_largefile" != no; then
3423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
3424 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
3425 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
3426 $as_echo_n "(cached) " >&6
3428 ac_cv_sys_largefile_CC=no
3429 if test "$GCC" != yes; then
3432 # IRIX 6.2 and later do not support large files by default,
3433 # so use the C compiler's -n32 option if that helps.
3434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3435 /* end confdefs.h. */
3436 #include <sys/types.h>
3437 /* Check that off_t can represent 2**63 - 1 correctly.
3438 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3439 since some C++ compilers masquerading as C compilers
3440 incorrectly reject 9223372036854775807. */
3441 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3442 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3443 && LARGE_OFF_T % 2147483647 == 1)
3453 if ac_fn_c_try_compile "$LINENO"; then :
3456 rm -f core conftest.err conftest.$ac_objext
3458 if ac_fn_c_try_compile "$LINENO"; then :
3459 ac_cv_sys_largefile_CC=' -n32'; break
3461 rm -f core conftest.err conftest.$ac_objext
3465 rm -f conftest.$ac_ext
3468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
3469 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
3470 if test "$ac_cv_sys_largefile_CC" != no; then
3471 CC=$CC$ac_cv_sys_largefile_CC
3474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
3475 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
3476 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
3477 $as_echo_n "(cached) " >&6
3480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3481 /* end confdefs.h. */
3482 #include <sys/types.h>
3483 /* Check that off_t can represent 2**63 - 1 correctly.
3484 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3485 since some C++ compilers masquerading as C compilers
3486 incorrectly reject 9223372036854775807. */
3487 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3488 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3489 && LARGE_OFF_T % 2147483647 == 1)
3499 if ac_fn_c_try_compile "$LINENO"; then :
3500 ac_cv_sys_file_offset_bits=no; break
3502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3504 /* end confdefs.h. */
3505 #define _FILE_OFFSET_BITS 64
3506 #include <sys/types.h>
3507 /* Check that off_t can represent 2**63 - 1 correctly.
3508 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3509 since some C++ compilers masquerading as C compilers
3510 incorrectly reject 9223372036854775807. */
3511 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3512 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3513 && LARGE_OFF_T % 2147483647 == 1)
3523 if ac_fn_c_try_compile "$LINENO"; then :
3524 ac_cv_sys_file_offset_bits=64; break
3526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3527 ac_cv_sys_file_offset_bits=unknown
3531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
3532 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
3533 case $ac_cv_sys_file_offset_bits in #(
3536 cat >>confdefs.h <<_ACEOF
3537 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
3542 if test $ac_cv_sys_file_offset_bits = unknown; then
3543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
3544 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
3545 if test "${ac_cv_sys_large_files+set}" = set; then :
3546 $as_echo_n "(cached) " >&6
3549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3550 /* end confdefs.h. */
3551 #include <sys/types.h>
3552 /* Check that off_t can represent 2**63 - 1 correctly.
3553 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3554 since some C++ compilers masquerading as C compilers
3555 incorrectly reject 9223372036854775807. */
3556 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3557 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3558 && LARGE_OFF_T % 2147483647 == 1)
3568 if ac_fn_c_try_compile "$LINENO"; then :
3569 ac_cv_sys_large_files=no; break
3571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3573 /* end confdefs.h. */
3574 #define _LARGE_FILES 1
3575 #include <sys/types.h>
3576 /* Check that off_t can represent 2**63 - 1 correctly.
3577 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3578 since some C++ compilers masquerading as C compilers
3579 incorrectly reject 9223372036854775807. */
3580 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3581 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3582 && LARGE_OFF_T % 2147483647 == 1)
3592 if ac_fn_c_try_compile "$LINENO"; then :
3593 ac_cv_sys_large_files=1; break
3595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3596 ac_cv_sys_large_files=unknown
3600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
3601 $as_echo "$ac_cv_sys_large_files" >&6; }
3602 case $ac_cv_sys_large_files in #(
3605 cat >>confdefs.h <<_ACEOF
3606 #define _LARGE_FILES $ac_cv_sys_large_files
3615 # Checks for general libraries.
3616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgoto in -ltinfo" >&5
3617 $as_echo_n "checking for tgoto in -ltinfo... " >&6; }
3618 if test "${ac_cv_lib_tinfo_tgoto+set}" = set; then :
3619 $as_echo_n "(cached) " >&6
3621 ac_check_lib_save_LIBS=$LIBS
3622 LIBS="-ltinfo $LIBS"
3623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3624 /* end confdefs.h. */
3626 /* Override any GCC internal prototype to avoid an error.
3627 Use char because int might match the return type of a GCC
3628 builtin and then its argument prototype would still apply. */
3641 if ac_fn_c_try_link "$LINENO"; then :
3642 ac_cv_lib_tinfo_tgoto=yes
3644 ac_cv_lib_tinfo_tgoto=no
3646 rm -f core conftest.err conftest.$ac_objext \
3647 conftest$ac_exeext conftest.$ac_ext
3648 LIBS=$ac_check_lib_save_LIBS
3650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tinfo_tgoto" >&5
3651 $as_echo "$ac_cv_lib_tinfo_tgoto" >&6; }
3652 if test "x$ac_cv_lib_tinfo_tgoto" = x""yes; then :
3658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for initscr in -lxcurses" >&5
3659 $as_echo_n "checking for initscr in -lxcurses... " >&6; }
3660 if test "${ac_cv_lib_xcurses_initscr+set}" = set; then :
3661 $as_echo_n "(cached) " >&6
3663 ac_check_lib_save_LIBS=$LIBS
3664 LIBS="-lxcurses $LIBS"
3665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3666 /* end confdefs.h. */
3668 /* Override any GCC internal prototype to avoid an error.
3669 Use char because int might match the return type of a GCC
3670 builtin and then its argument prototype would still apply. */
3683 if ac_fn_c_try_link "$LINENO"; then :
3684 ac_cv_lib_xcurses_initscr=yes
3686 ac_cv_lib_xcurses_initscr=no
3688 rm -f core conftest.err conftest.$ac_objext \
3689 conftest$ac_exeext conftest.$ac_ext
3690 LIBS=$ac_check_lib_save_LIBS
3692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xcurses_initscr" >&5
3693 $as_echo "$ac_cv_lib_xcurses_initscr" >&6; }
3694 if test "x$ac_cv_lib_xcurses_initscr" = x""yes; then :
3700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for initscr in -lncursesw" >&5
3701 $as_echo_n "checking for initscr in -lncursesw... " >&6; }
3702 if test "${ac_cv_lib_ncursesw_initscr+set}" = set; then :
3703 $as_echo_n "(cached) " >&6
3705 ac_check_lib_save_LIBS=$LIBS
3706 LIBS="-lncursesw $LIBS"
3707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3708 /* end confdefs.h. */
3710 /* Override any GCC internal prototype to avoid an error.
3711 Use char because int might match the return type of a GCC
3712 builtin and then its argument prototype would still apply. */
3725 if ac_fn_c_try_link "$LINENO"; then :
3726 ac_cv_lib_ncursesw_initscr=yes
3728 ac_cv_lib_ncursesw_initscr=no
3730 rm -f core conftest.err conftest.$ac_objext \
3731 conftest$ac_exeext conftest.$ac_ext
3732 LIBS=$ac_check_lib_save_LIBS
3734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncursesw_initscr" >&5
3735 $as_echo "$ac_cv_lib_ncursesw_initscr" >&6; }
3736 if test "x$ac_cv_lib_ncursesw_initscr" = x""yes; then :
3742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for initscr in -lncurses" >&5
3743 $as_echo_n "checking for initscr in -lncurses... " >&6; }
3744 if test "${ac_cv_lib_ncurses_initscr+set}" = set; then :
3745 $as_echo_n "(cached) " >&6
3747 ac_check_lib_save_LIBS=$LIBS
3748 LIBS="-lncurses $LIBS"
3749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3750 /* end confdefs.h. */
3752 /* Override any GCC internal prototype to avoid an error.
3753 Use char because int might match the return type of a GCC
3754 builtin and then its argument prototype would still apply. */
3767 if ac_fn_c_try_link "$LINENO"; then :
3768 ac_cv_lib_ncurses_initscr=yes
3770 ac_cv_lib_ncurses_initscr=no
3772 rm -f core conftest.err conftest.$ac_objext \
3773 conftest$ac_exeext conftest.$ac_ext
3774 LIBS=$ac_check_lib_save_LIBS
3776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_initscr" >&5
3777 $as_echo "$ac_cv_lib_ncurses_initscr" >&6; }
3778 if test "x$ac_cv_lib_ncurses_initscr" = x""yes; then :
3784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for initscr in -lcurses" >&5
3785 $as_echo_n "checking for initscr in -lcurses... " >&6; }
3786 if test "${ac_cv_lib_curses_initscr+set}" = set; then :
3787 $as_echo_n "(cached) " >&6
3789 ac_check_lib_save_LIBS=$LIBS
3790 LIBS="-lcurses $LIBS"
3791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3792 /* end confdefs.h. */
3794 /* Override any GCC internal prototype to avoid an error.
3795 Use char because int might match the return type of a GCC
3796 builtin and then its argument prototype would still apply. */
3809 if ac_fn_c_try_link "$LINENO"; then :
3810 ac_cv_lib_curses_initscr=yes
3812 ac_cv_lib_curses_initscr=no
3814 rm -f core conftest.err conftest.$ac_objext \
3815 conftest$ac_exeext conftest.$ac_ext
3816 LIBS=$ac_check_lib_save_LIBS
3818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_initscr" >&5
3819 $as_echo "$ac_cv_lib_curses_initscr" >&6; }
3820 if test "x$ac_cv_lib_curses_initscr" = x""yes; then :
3826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltermcap" >&5
3827 $as_echo_n "checking for tgetent in -ltermcap... " >&6; }
3828 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then :
3829 $as_echo_n "(cached) " >&6
3831 ac_check_lib_save_LIBS=$LIBS
3832 LIBS="-ltermcap $LIBS"
3833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3834 /* end confdefs.h. */
3836 /* Override any GCC internal prototype to avoid an error.
3837 Use char because int might match the return type of a GCC
3838 builtin and then its argument prototype would still apply. */
3851 if ac_fn_c_try_link "$LINENO"; then :
3852 ac_cv_lib_termcap_tgetent=yes
3854 ac_cv_lib_termcap_tgetent=no
3856 rm -f core conftest.err conftest.$ac_objext \
3857 conftest$ac_exeext conftest.$ac_ext
3858 LIBS=$ac_check_lib_save_LIBS
3860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_termcap_tgetent" >&5
3861 $as_echo "$ac_cv_lib_termcap_tgetent" >&6; }
3862 if test "x$ac_cv_lib_termcap_tgetent" = x""yes; then :
3868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltermlib" >&5
3869 $as_echo_n "checking for tgetent in -ltermlib... " >&6; }
3870 if test "${ac_cv_lib_termlib_tgetent+set}" = set; then :
3871 $as_echo_n "(cached) " >&6
3873 ac_check_lib_save_LIBS=$LIBS
3874 LIBS="-ltermlib $LIBS"
3875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3876 /* end confdefs.h. */
3878 /* Override any GCC internal prototype to avoid an error.
3879 Use char because int might match the return type of a GCC
3880 builtin and then its argument prototype would still apply. */
3893 if ac_fn_c_try_link "$LINENO"; then :
3894 ac_cv_lib_termlib_tgetent=yes
3896 ac_cv_lib_termlib_tgetent=no
3898 rm -f core conftest.err conftest.$ac_objext \
3899 conftest$ac_exeext conftest.$ac_ext
3900 LIBS=$ac_check_lib_save_LIBS
3902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_termlib_tgetent" >&5
3903 $as_echo "$ac_cv_lib_termlib_tgetent" >&6; }
3904 if test "x$ac_cv_lib_termlib_tgetent" = x""yes; then :
3910 # Regular expressions (regcmp) are in -lgen on Solaris 2,
3911 # and in -lintl on SCO Unix.
3912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for regcmp in -lgen" >&5
3913 $as_echo_n "checking for regcmp in -lgen... " >&6; }
3914 if test "${ac_cv_lib_gen_regcmp+set}" = set; then :
3915 $as_echo_n "(cached) " >&6
3917 ac_check_lib_save_LIBS=$LIBS
3919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3920 /* end confdefs.h. */
3922 /* Override any GCC internal prototype to avoid an error.
3923 Use char because int might match the return type of a GCC
3924 builtin and then its argument prototype would still apply. */
3937 if ac_fn_c_try_link "$LINENO"; then :
3938 ac_cv_lib_gen_regcmp=yes
3940 ac_cv_lib_gen_regcmp=no
3942 rm -f core conftest.err conftest.$ac_objext \
3943 conftest$ac_exeext conftest.$ac_ext
3944 LIBS=$ac_check_lib_save_LIBS
3946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gen_regcmp" >&5
3947 $as_echo "$ac_cv_lib_gen_regcmp" >&6; }
3948 if test "x$ac_cv_lib_gen_regcmp" = x""yes; then :
3949 cat >>confdefs.h <<_ACEOF
3950 #define HAVE_LIBGEN 1
3957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for regcmp in -lintl" >&5
3958 $as_echo_n "checking for regcmp in -lintl... " >&6; }
3959 if test "${ac_cv_lib_intl_regcmp+set}" = set; then :
3960 $as_echo_n "(cached) " >&6
3962 ac_check_lib_save_LIBS=$LIBS
3964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3965 /* end confdefs.h. */
3967 /* Override any GCC internal prototype to avoid an error.
3968 Use char because int might match the return type of a GCC
3969 builtin and then its argument prototype would still apply. */
3982 if ac_fn_c_try_link "$LINENO"; then :
3983 ac_cv_lib_intl_regcmp=yes
3985 ac_cv_lib_intl_regcmp=no
3987 rm -f core conftest.err conftest.$ac_objext \
3988 conftest$ac_exeext conftest.$ac_ext
3989 LIBS=$ac_check_lib_save_LIBS
3991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_regcmp" >&5
3992 $as_echo "$ac_cv_lib_intl_regcmp" >&6; }
3993 if test "x$ac_cv_lib_intl_regcmp" = x""yes; then :
3994 cat >>confdefs.h <<_ACEOF
3995 #define HAVE_LIBINTL 1
4002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for regcmp in -lPW" >&5
4003 $as_echo_n "checking for regcmp in -lPW... " >&6; }
4004 if test "${ac_cv_lib_PW_regcmp+set}" = set; then :
4005 $as_echo_n "(cached) " >&6
4007 ac_check_lib_save_LIBS=$LIBS
4009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4010 /* end confdefs.h. */
4012 /* Override any GCC internal prototype to avoid an error.
4013 Use char because int might match the return type of a GCC
4014 builtin and then its argument prototype would still apply. */
4027 if ac_fn_c_try_link "$LINENO"; then :
4028 ac_cv_lib_PW_regcmp=yes
4030 ac_cv_lib_PW_regcmp=no
4032 rm -f core conftest.err conftest.$ac_objext \
4033 conftest$ac_exeext conftest.$ac_ext
4034 LIBS=$ac_check_lib_save_LIBS
4036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_PW_regcmp" >&5
4037 $as_echo "$ac_cv_lib_PW_regcmp" >&6; }
4038 if test "x$ac_cv_lib_PW_regcmp" = x""yes; then :
4039 cat >>confdefs.h <<_ACEOF
4040 #define HAVE_LIBPW 1
4048 # Checks for terminal libraries
4049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working terminal libraries" >&5
4050 $as_echo_n "checking for working terminal libraries... " >&6; }
4053 # Check for systems where curses is broken.
4055 if test x`uname -s` = "xHP-UX" >/dev/null 2>&1; then
4056 if test x`uname -r` = "xB.11.00" >/dev/null 2>&1; then
4059 if test x`uname -r` = "xB.11.11" >/dev/null 2>&1; then
4064 if test $curses_broken = 0; then
4067 if test "x$TERMLIBS" = x; then
4068 if test $have_tinfo = yes; then
4071 LIBS="$LIBS $TERMLIBS"
4072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4073 /* end confdefs.h. */
4078 tgetent(0,0); tgetflag(0); tgetnum(0); tgetstr(0,0);
4083 if ac_fn_c_try_link "$LINENO"; then :
4088 rm -f core conftest.err conftest.$ac_objext \
4089 conftest$ac_exeext conftest.$ac_ext
4091 if test $termok = no; then TERMLIBS=""; fi
4096 if test "x$TERMLIBS" = x; then
4097 if test $have_xcurses = yes; then
4098 TERMLIBS="-lxcurses"
4100 LIBS="$LIBS $TERMLIBS"
4101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4102 /* end confdefs.h. */
4107 tgetent(0,0); tgetflag(0); tgetnum(0); tgetstr(0,0);
4112 if ac_fn_c_try_link "$LINENO"; then :
4117 rm -f core conftest.err conftest.$ac_objext \
4118 conftest$ac_exeext conftest.$ac_ext
4120 if test $termok = no; then TERMLIBS=""; fi
4125 if test "x$TERMLIBS" = x; then
4126 if test $have_ncursesw = yes; then
4127 TERMLIBS="-lncursesw"
4129 LIBS="$LIBS $TERMLIBS"
4130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4131 /* end confdefs.h. */
4136 tgetent(0,0); tgetflag(0); tgetnum(0); tgetstr(0,0);
4141 if ac_fn_c_try_link "$LINENO"; then :
4146 rm -f core conftest.err conftest.$ac_objext \
4147 conftest$ac_exeext conftest.$ac_ext
4149 if test $termok = no; then TERMLIBS=""; fi
4154 if test "x$TERMLIBS" = x; then
4155 if test $have_ncurses = yes; then
4156 TERMLIBS="-lncurses"
4158 LIBS="$LIBS $TERMLIBS"
4159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4160 /* end confdefs.h. */
4165 tgetent(0,0); tgetflag(0); tgetnum(0); tgetstr(0,0);
4170 if ac_fn_c_try_link "$LINENO"; then :
4175 rm -f core conftest.err conftest.$ac_objext \
4176 conftest$ac_exeext conftest.$ac_ext
4178 if test $termok = no; then TERMLIBS=""; fi
4183 if test "x$TERMLIBS" = x; then
4184 if test $have_curses = yes; then
4187 LIBS="$LIBS $TERMLIBS"
4188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4189 /* end confdefs.h. */
4194 tgetent(0,0); tgetflag(0); tgetnum(0); tgetstr(0,0);
4199 if ac_fn_c_try_link "$LINENO"; then :
4204 rm -f core conftest.err conftest.$ac_objext \
4205 conftest$ac_exeext conftest.$ac_ext
4207 if test $termok = no; then TERMLIBS=""; fi
4211 # -- Try curses & termcap.
4212 if test "x$TERMLIBS" = x; then
4213 if test $have_curses = yes; then
4214 if test $have_termcap = yes; then
4215 TERMLIBS="-lcurses -ltermcap"
4217 LIBS="$LIBS $TERMLIBS"
4218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4219 /* end confdefs.h. */
4224 tgetent(0,0); tgetflag(0); tgetnum(0); tgetstr(0,0);
4229 if ac_fn_c_try_link "$LINENO"; then :
4234 rm -f core conftest.err conftest.$ac_objext \
4235 conftest$ac_exeext conftest.$ac_ext
4237 if test $termok = no; then TERMLIBS=""; fi
4244 if test "x$TERMLIBS" = x; then
4245 if test $have_termcap = yes; then
4246 TERMLIBS="-ltermcap"
4248 LIBS="$LIBS $TERMLIBS"
4249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4250 /* end confdefs.h. */
4255 tgetent(0,0); tgetflag(0); tgetnum(0); tgetstr(0,0);
4260 if ac_fn_c_try_link "$LINENO"; then :
4265 rm -f core conftest.err conftest.$ac_objext \
4266 conftest$ac_exeext conftest.$ac_ext
4268 if test $termok = no; then TERMLIBS=""; fi
4273 if test "x$TERMLIBS" = x; then
4274 if test $have_termlib = yes; then
4275 TERMLIBS="-lcurses -ltermlib"
4277 LIBS="$LIBS $TERMLIBS"
4278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4279 /* end confdefs.h. */
4284 tgetent(0,0); tgetflag(0); tgetnum(0); tgetstr(0,0);
4289 if ac_fn_c_try_link "$LINENO"; then :
4294 rm -f core conftest.err conftest.$ac_objext \
4295 conftest$ac_exeext conftest.$ac_ext
4297 if test $termok = no; then TERMLIBS=""; fi
4301 if test "x$TERMLIBS" = x; then
4302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Cannot find terminal libraries - configure failed" >&5
4303 $as_echo "Cannot find terminal libraries - configure failed" >&6; }
4306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $TERMLIBS" >&5
4307 $as_echo "using $TERMLIBS" >&6; }
4308 LIBS="$LIBS $TERMLIBS"
4310 # Checks for header files.
4311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4312 $as_echo_n "checking for ANSI C header files... " >&6; }
4313 if test "${ac_cv_header_stdc+set}" = set; then :
4314 $as_echo_n "(cached) " >&6
4316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4317 /* end confdefs.h. */
4331 if ac_fn_c_try_compile "$LINENO"; then :
4332 ac_cv_header_stdc=yes
4334 ac_cv_header_stdc=no
4336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4338 if test $ac_cv_header_stdc = yes; then
4339 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4341 /* end confdefs.h. */
4345 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4346 $EGREP "memchr" >/dev/null 2>&1; then :
4349 ac_cv_header_stdc=no
4355 if test $ac_cv_header_stdc = yes; then
4356 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4358 /* end confdefs.h. */
4362 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4363 $EGREP "free" >/dev/null 2>&1; then :
4366 ac_cv_header_stdc=no
4372 if test $ac_cv_header_stdc = yes; then
4373 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4374 if test "$cross_compiling" = yes; then :
4377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4378 /* end confdefs.h. */
4381 #if ((' ' & 0x0FF) == 0x020)
4382 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4383 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4385 # define ISLOWER(c) \
4386 (('a' <= (c) && (c) <= 'i') \
4387 || ('j' <= (c) && (c) <= 'r') \
4388 || ('s' <= (c) && (c) <= 'z'))
4389 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4392 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4397 for (i = 0; i < 256; i++)
4398 if (XOR (islower (i), ISLOWER (i))
4399 || toupper (i) != TOUPPER (i))
4404 if ac_fn_c_try_run "$LINENO"; then :
4407 ac_cv_header_stdc=no
4409 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4410 conftest.$ac_objext conftest.beam conftest.$ac_ext
4415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4416 $as_echo "$ac_cv_header_stdc" >&6; }
4417 if test $ac_cv_header_stdc = yes; then
4419 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4423 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4424 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4425 inttypes.h stdint.h unistd.h
4427 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4428 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4430 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4431 cat >>confdefs.h <<_ACEOF
4432 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4440 for ac_header in ctype.h errno.h fcntl.h limits.h stdio.h stdlib.h string.h termcap.h termio.h termios.h time.h unistd.h values.h sys/ioctl.h sys/stream.h wctype.h
4442 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4443 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4444 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4445 cat >>confdefs.h <<_ACEOF
4446 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4454 # Checks for typedefs, structures, and compiler characteristics.
4455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
4456 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
4457 if test "${ac_cv_header_stat_broken+set}" = set; then :
4458 $as_echo_n "(cached) " >&6
4460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4461 /* end confdefs.h. */
4462 #include <sys/types.h>
4463 #include <sys/stat.h>
4465 #if defined S_ISBLK && defined S_IFDIR
4466 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
4469 #if defined S_ISBLK && defined S_IFCHR
4470 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
4473 #if defined S_ISLNK && defined S_IFREG
4474 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
4477 #if defined S_ISSOCK && defined S_IFREG
4478 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
4482 if ac_fn_c_try_compile "$LINENO"; then :
4483 ac_cv_header_stat_broken=no
4485 ac_cv_header_stat_broken=yes
4487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
4490 $as_echo "$ac_cv_header_stat_broken" >&6; }
4491 if test $ac_cv_header_stat_broken = yes; then
4493 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
4497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
4498 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
4499 if test "${ac_cv_c_const+set}" = set; then :
4500 $as_echo_n "(cached) " >&6
4502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4503 /* end confdefs.h. */
4508 /* FIXME: Include the comments suggested by Paul. */
4510 /* Ultrix mips cc rejects this. */
4511 typedef int charset[2];
4513 /* SunOS 4.1.1 cc rejects this. */
4514 char const *const *pcpcc;
4516 /* NEC SVR4.0.2 mips cc rejects this. */
4517 struct point {int x, y;};
4518 static struct point const zero = {0,0};
4519 /* AIX XL C 1.02.0.0 rejects this.
4520 It does not let you subtract one const X* pointer from another in
4521 an arm of an if-expression whose if-part is not a constant
4523 const char *g = "string";
4524 pcpcc = &g + (g ? g-g : 0);
4525 /* HPUX 7.0 cc rejects these. */
4527 ppc = (char**) pcpcc;
4528 pcpcc = (char const *const *) ppc;
4529 { /* SCO 3.2v4 cc rejects this. */
4531 char const *s = 0 ? (char *) 0 : (char const *) 0;
4536 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4538 const int *foo = &x[0];
4541 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4542 typedef const int *iptr;
4546 { /* AIX XL C 1.02.0.0 rejects this saying
4547 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4548 struct s { int j; const int *ap[3]; };
4549 struct s *b; b->j = 5;
4551 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4555 return !cs[0] && !zero.x;
4562 if ac_fn_c_try_compile "$LINENO"; then :
4567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
4570 $as_echo "$ac_cv_c_const" >&6; }
4571 if test $ac_cv_c_const = no; then
4573 $as_echo "#define const /**/" >>confdefs.h
4577 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
4578 if test "x$ac_cv_type_off_t" = x""yes; then :
4582 cat >>confdefs.h <<_ACEOF
4583 #define off_t long int
4588 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
4589 if test "x$ac_cv_type_size_t" = x""yes; then :
4593 cat >>confdefs.h <<_ACEOF
4594 #define size_t unsigned int
4599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
4600 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
4601 if test "${ac_cv_header_time+set}" = set; then :
4602 $as_echo_n "(cached) " >&6
4604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4605 /* end confdefs.h. */
4606 #include <sys/types.h>
4607 #include <sys/time.h>
4613 if ((struct tm *) 0)
4619 if ac_fn_c_try_compile "$LINENO"; then :
4620 ac_cv_header_time=yes
4622 ac_cv_header_time=no
4624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
4627 $as_echo "$ac_cv_header_time" >&6; }
4628 if test $ac_cv_header_time = yes; then
4630 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
4635 # Autoheader templates for symbols defined later by AC_DEFINE.
4664 # Checks for identifiers.
4665 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
4666 if test "x$ac_cv_type_off_t" = x""yes; then :
4670 cat >>confdefs.h <<_ACEOF
4671 #define off_t long int
4676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for void" >&5
4677 $as_echo_n "checking for void... " >&6; }
4678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4679 /* end confdefs.h. */
4689 if ac_fn_c_try_compile "$LINENO"; then :
4690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4691 $as_echo "yes" >&6; }; $as_echo "#define HAVE_VOID 1" >>confdefs.h
4694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4695 $as_echo "no" >&6; }
4697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for const" >&5
4699 $as_echo_n "checking for const... " >&6; }
4700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4701 /* end confdefs.h. */
4711 if ac_fn_c_try_compile "$LINENO"; then :
4712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4713 $as_echo "yes" >&6; }; $as_echo "#define HAVE_CONST 1" >>confdefs.h
4716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4717 $as_echo "no" >&6; }
4719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for time_t" >&5
4721 $as_echo_n "checking for time_t... " >&6; }
4722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4723 /* end confdefs.h. */
4733 if ac_fn_c_try_compile "$LINENO"; then :
4734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4735 $as_echo "yes" >&6; }; $as_echo "#define HAVE_TIME_T 1" >>confdefs.h
4738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4739 $as_echo "no" >&6; }
4741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_ino in struct stat" >&5
4743 $as_echo_n "checking for st_ino in struct stat... " >&6; }
4744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4745 /* end confdefs.h. */
4746 #include <sys/types.h>
4747 #include <sys/stat.h>
4751 struct stat s; dev_t dev = s.st_dev; ino_t ino = s.st_ino;
4756 if ac_fn_c_try_compile "$LINENO"; then :
4757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4758 $as_echo "yes" >&6; }; $as_echo "#define HAVE_STAT_INO 1" >>confdefs.h
4761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4762 $as_echo "no" >&6; }
4764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4766 # Checks for library functions.
4767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
4768 $as_echo_n "checking return type of signal handlers... " >&6; }
4769 if test "${ac_cv_type_signal+set}" = set; then :
4770 $as_echo_n "(cached) " >&6
4772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4773 /* end confdefs.h. */
4774 #include <sys/types.h>
4780 return *(signal (0, 0)) (0) == 1;
4785 if ac_fn_c_try_compile "$LINENO"; then :
4786 ac_cv_type_signal=int
4788 ac_cv_type_signal=void
4790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
4793 $as_echo "$ac_cv_type_signal" >&6; }
4795 cat >>confdefs.h <<_ACEOF
4796 #define RETSIGTYPE $ac_cv_type_signal
4800 for ac_func in fsync popen _setjmp sigprocmask sigsetmask snprintf stat system fchmod
4802 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4803 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
4804 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
4805 cat >>confdefs.h <<_ACEOF
4806 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
4813 # AC_CHECK_FUNCS may not work for inline functions, so test these separately.
4814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for memcpy" >&5
4815 $as_echo_n "checking for memcpy... " >&6; }
4816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4817 /* end confdefs.h. */
4830 if ac_fn_c_try_link "$LINENO"; then :
4831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4832 $as_echo "yes" >&6; }; $as_echo "#define HAVE_MEMCPY 1" >>confdefs.h
4835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4836 $as_echo "no" >&6; }
4838 rm -f core conftest.err conftest.$ac_objext \
4839 conftest$ac_exeext conftest.$ac_ext
4841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strchr" >&5
4842 $as_echo_n "checking for strchr... " >&6; }
4843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4844 /* end confdefs.h. */
4857 if ac_fn_c_try_link "$LINENO"; then :
4858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4859 $as_echo "yes" >&6; }; $as_echo "#define HAVE_STRCHR 1" >>confdefs.h
4862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4863 $as_echo "no" >&6; }
4865 rm -f core conftest.err conftest.$ac_objext \
4866 conftest$ac_exeext conftest.$ac_ext
4868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strstr" >&5
4869 $as_echo_n "checking for strstr... " >&6; }
4870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4871 /* end confdefs.h. */
4884 if ac_fn_c_try_link "$LINENO"; then :
4885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4886 $as_echo "yes" >&6; }; $as_echo "#define HAVE_STRSTR 1" >>confdefs.h
4889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4890 $as_echo "no" >&6; }
4892 rm -f core conftest.err conftest.$ac_objext \
4893 conftest$ac_exeext conftest.$ac_ext
4895 # Some systems have termios.h but not the corresponding functions.
4896 ac_fn_c_check_func "$LINENO" "tcgetattr" "ac_cv_func_tcgetattr"
4897 if test "x$ac_cv_func_tcgetattr" = x""yes; then :
4898 $as_echo "#define HAVE_TERMIOS_FUNCS 1" >>confdefs.h
4903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fileno" >&5
4904 $as_echo_n "checking for fileno... " >&6; }
4905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4906 /* end confdefs.h. */
4914 static int x; x = fileno(stdin);
4919 if ac_fn_c_try_link "$LINENO"; then :
4920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4921 $as_echo "yes" >&6; }; $as_echo "#define HAVE_FILENO 1" >>confdefs.h
4924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4925 $as_echo "no" >&6; }
4927 rm -f core conftest.err conftest.$ac_objext \
4928 conftest$ac_exeext conftest.$ac_ext
4930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strerror" >&5
4931 $as_echo_n "checking for strerror... " >&6; }
4932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4933 /* end confdefs.h. */
4947 static char *x; x = strerror(0);
4952 if ac_fn_c_try_link "$LINENO"; then :
4953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4954 $as_echo "yes" >&6; }; $as_echo "#define HAVE_STRERROR 1" >>confdefs.h
4957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4958 $as_echo "no" >&6; }
4960 rm -f core conftest.err conftest.$ac_objext \
4961 conftest$ac_exeext conftest.$ac_ext
4963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys_errlist" >&5
4964 $as_echo_n "checking for sys_errlist... " >&6; }
4965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4966 /* end confdefs.h. */
4971 extern char *sys_errlist[]; static char **x; x = sys_errlist;
4976 if ac_fn_c_try_link "$LINENO"; then :
4977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4978 $as_echo "yes" >&6; }; $as_echo "#define HAVE_SYS_ERRLIST 1" >>confdefs.h
4981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4982 $as_echo "no" >&6; }
4984 rm -f core conftest.err conftest.$ac_objext \
4985 conftest$ac_exeext conftest.$ac_ext
4987 ac_fn_c_check_type "$LINENO" "sigset_t" "ac_cv_type_sigset_t" "#include <signal.h>
4989 if test "x$ac_cv_type_sigset_t" = x""yes; then :
4991 cat >>confdefs.h <<_ACEOF
4992 #define HAVE_SIGSET_T 1
4999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigemptyset" >&5
5000 $as_echo_n "checking for sigemptyset... " >&6; }
5001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5002 /* end confdefs.h. */
5009 sigset_t s; sigemptyset(&s);
5014 if ac_fn_c_try_link "$LINENO"; then :
5015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5016 $as_echo "yes" >&6; }; $as_echo "#define HAVE_SIGEMPTYSET 1" >>confdefs.h
5019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5020 $as_echo "no" >&6; }
5022 rm -f core conftest.err conftest.$ac_objext \
5023 conftest$ac_exeext conftest.$ac_ext
5026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for errno" >&5
5027 $as_echo_n "checking for errno... " >&6; }
5028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5029 /* end confdefs.h. */
5037 static int x; x = errno;
5042 if ac_fn_c_try_link "$LINENO"; then :
5043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes - in errno.h" >&5
5044 $as_echo "yes - in errno.h" >&6; }; $as_echo "#define HAVE_ERRNO 1" >>confdefs.h
5047 rm -f core conftest.err conftest.$ac_objext \
5048 conftest$ac_exeext conftest.$ac_ext
5049 if test $have_errno = no; then
5050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5051 /* end confdefs.h. */
5059 extern int errno; static int x; x = errno;
5064 if ac_fn_c_try_link "$LINENO"; then :
5065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes - must define" >&5
5066 $as_echo "yes - must define" >&6; }; $as_echo "#define HAVE_ERRNO 1" >>confdefs.h
5067 $as_echo "#define MUST_DEFINE_ERRNO 1" >>confdefs.h
5070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5071 $as_echo "no" >&6; }
5073 rm -f core conftest.err conftest.$ac_objext \
5074 conftest$ac_exeext conftest.$ac_ext
5077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for locale" >&5
5078 $as_echo_n "checking for locale... " >&6; }
5079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5080 /* end confdefs.h. */
5083 #include <langinfo.h>
5087 setlocale(LC_CTYPE,""); isprint(0); iscntrl(0);
5092 if ac_fn_c_try_link "$LINENO"; then :
5093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5094 $as_echo "yes" >&6; }; $as_echo "#define HAVE_LOCALE 1" >>confdefs.h
5097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5098 $as_echo "no" >&6; }
5100 rm -f core conftest.err conftest.$ac_objext \
5101 conftest$ac_exeext conftest.$ac_ext
5103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctype functions" >&5
5104 $as_echo_n "checking for ctype functions... " >&6; }
5105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5106 /* end confdefs.h. */
5114 static int x; x = isupper(x); x = tolower(x); x = toupper(x);
5119 if ac_fn_c_try_link "$LINENO"; then :
5120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5121 $as_echo "yes" >&6; }; $as_echo "#define HAVE_UPPER_LOWER 1" >>confdefs.h
5124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5125 $as_echo "no" >&6; }
5127 rm -f core conftest.err conftest.$ac_objext \
5128 conftest$ac_exeext conftest.$ac_ext
5130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctype functions" >&5
5131 $as_echo_n "checking for wctype functions... " >&6; }
5132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5133 /* end confdefs.h. */
5138 iswlower(0); iswupper(0); towlower(0); towupper(0);
5143 if ac_fn_c_try_link "$LINENO"; then :
5144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5145 $as_echo "yes" >&6; }; $as_echo "#define HAVE_WCTYPE 1" >>confdefs.h
5148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5149 $as_echo "no" >&6; }
5151 rm -f core conftest.err conftest.$ac_objext \
5152 conftest$ac_exeext conftest.$ac_ext
5154 # Checks for external variable ospeed in the termcap library.
5156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking termcap for ospeed" >&5
5157 $as_echo_n "checking termcap for ospeed... " >&6; }
5158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5159 /* end confdefs.h. */
5161 #include <sys/types.h>
5163 #include <termios.h>
5166 #include <termcap.h>
5176 if ac_fn_c_try_link "$LINENO"; then :
5177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes - in termcap.h" >&5
5178 $as_echo "yes - in termcap.h" >&6; }; $as_echo "#define HAVE_OSPEED 1" >>confdefs.h
5181 rm -f core conftest.err conftest.$ac_objext \
5182 conftest$ac_exeext conftest.$ac_ext
5183 if test $have_ospeed = no; then
5184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5185 /* end confdefs.h. */
5190 extern short ospeed; ospeed = 0;
5195 if ac_fn_c_try_link "$LINENO"; then :
5196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes - must define" >&5
5197 $as_echo "yes - must define" >&6; }; $as_echo "#define HAVE_OSPEED 1" >>confdefs.h
5198 $as_echo "#define MUST_DEFINE_OSPEED 1" >>confdefs.h
5201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5202 $as_echo "no" >&6; }
5204 rm -f core conftest.err conftest.$ac_objext \
5205 conftest$ac_exeext conftest.$ac_ext
5208 # Compile in secure mode?
5210 # Check whether --with-secure was given.
5211 if test "${with_secure+set}" = set; then :
5212 withval=$with_secure; $as_echo "#define SECURE_COMPILE 1" >>confdefs.h
5215 $as_echo "#define SECURE_COMPILE 0" >>confdefs.h
5220 # Should we use floating point?
5221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for floating point" >&5
5222 $as_echo_n "checking for floating point... " >&6; }
5224 # Check whether --with-no-float was given.
5225 if test "${with_no_float+set}" = set; then :
5226 withval=$with_no_float; WANT_NO_FLOAT=1
5231 if test $WANT_NO_FLOAT = 0; then
5232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5233 /* end confdefs.h. */
5238 double f1 = 12.5; double f2 = f1*f1/2.5;
5243 if ac_fn_c_try_link "$LINENO"; then :
5244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5245 $as_echo "yes" >&6; }; $as_echo "#define HAVE_FLOAT 1" >>confdefs.h
5248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5249 $as_echo "no" >&6; }
5251 rm -f core conftest.err conftest.$ac_objext \
5252 conftest$ac_exeext conftest.$ac_ext
5254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled by user" >&5
5255 $as_echo "disabled by user" >&6; }
5258 # Checks for regular expression functions.
5260 have_posix_regex=unknown
5261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for regcomp" >&5
5262 $as_echo_n "checking for regcomp... " >&6; }
5264 # Select a regular expression library.
5267 # Check whether --with-regex was given.
5268 if test "${with_regex+set}" = set; then :
5269 withval=$with_regex; WANT_REGEX="$withval"
5273 if test $have_regex = no; then
5274 if test $WANT_REGEX = auto -o $WANT_REGEX = posix; then
5275 # Some versions of Solaris have a regcomp() function, but it doesn't work!
5276 # So we run a test program. If we're cross-compiling, do it the old way.
5277 if test "$cross_compiling" = yes; then :
5278 have_posix_regex=unknown
5280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5281 /* end confdefs.h. */
5283 #include <sys/types.h>
5285 main() { regex_t r; regmatch_t rm; char *text = "xabcy";
5286 if (regcomp(&r, "abc", 0)) exit(1);
5287 if (regexec(&r, text, 1, &rm, 0)) exit(1);
5289 if (rm.rm_so != 1) exit(1); /* check for correct offset */
5291 if (rm.rm_sp != text + 1) exit(1); /* check for correct offset */
5295 if ac_fn_c_try_run "$LINENO"; then :
5296 have_posix_regex=yes
5300 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5301 conftest.$ac_objext conftest.beam conftest.$ac_ext
5304 if test $have_posix_regex = yes; then
5305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using POSIX regcomp" >&5
5306 $as_echo "using POSIX regcomp" >&6; }
5307 $as_echo "#define HAVE_POSIX_REGCOMP 1" >>confdefs.h
5310 elif test $have_posix_regex = unknown; then
5311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5312 /* end confdefs.h. */
5314 #include <sys/types.h>
5319 regex_t *r; regfree(r);
5324 if ac_fn_c_try_link "$LINENO"; then :
5325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using POSIX regcomp" >&5
5326 $as_echo "using POSIX regcomp" >&6; }
5327 $as_echo "#define HAVE_POSIX_REGCOMP 1" >>confdefs.h
5330 rm -f core conftest.err conftest.$ac_objext \
5331 conftest$ac_exeext conftest.$ac_ext
5333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5334 $as_echo "no" >&6; }
5339 if test $have_regex = no; then
5340 if test $WANT_REGEX = auto -o $WANT_REGEX = pcre; then
5341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcre_compile in -lpcre" >&5
5342 $as_echo_n "checking for pcre_compile in -lpcre... " >&6; }
5343 if test "${ac_cv_lib_pcre_pcre_compile+set}" = set; then :
5344 $as_echo_n "(cached) " >&6
5346 ac_check_lib_save_LIBS=$LIBS
5348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5349 /* end confdefs.h. */
5351 /* Override any GCC internal prototype to avoid an error.
5352 Use char because int might match the return type of a GCC
5353 builtin and then its argument prototype would still apply. */
5357 char pcre_compile ();
5361 return pcre_compile ();
5366 if ac_fn_c_try_link "$LINENO"; then :
5367 ac_cv_lib_pcre_pcre_compile=yes
5369 ac_cv_lib_pcre_pcre_compile=no
5371 rm -f core conftest.err conftest.$ac_objext \
5372 conftest$ac_exeext conftest.$ac_ext
5373 LIBS=$ac_check_lib_save_LIBS
5375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcre_pcre_compile" >&5
5376 $as_echo "$ac_cv_lib_pcre_pcre_compile" >&6; }
5377 if test "x$ac_cv_lib_pcre_pcre_compile" = x""yes; then :
5378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using pcre" >&5
5379 $as_echo "using pcre" >&6; }; $as_echo "#define HAVE_PCRE 1" >>confdefs.h
5380 LIBS="$LIBS -lpcre" have_regex=yes
5386 if test $have_regex = no; then
5387 if test $WANT_REGEX = auto -o $WANT_REGEX = regcmp; then
5388 ac_fn_c_check_func "$LINENO" "regcmp" "ac_cv_func_regcmp"
5389 if test "x$ac_cv_func_regcmp" = x""yes; then :
5390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using regcmp" >&5
5391 $as_echo "using regcmp" >&6; }; $as_echo "#define HAVE_REGCMP 1" >>confdefs.h
5398 if test $have_regex = no; then
5399 if test $WANT_REGEX = auto -o $WANT_REGEX = regcomp; then
5400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5401 /* end confdefs.h. */
5412 if ac_fn_c_try_link "$LINENO"; then :
5413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using V8 regcomp" >&5
5414 $as_echo "using V8 regcomp" >&6; }; $as_echo "#define HAVE_V8_REGCOMP 1" >>confdefs.h
5417 rm -f core conftest.err conftest.$ac_objext \
5418 conftest$ac_exeext conftest.$ac_ext
5422 if test $have_regex = no && test -f ${srcdir}/regexp.c; then
5423 if test $WANT_REGEX = auto -o $WANT_REGEX = regcomp-local; then
5424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using V8 regcomp -- local source" >&5
5425 $as_echo "using V8 regcomp -- local source" >&6; }; $as_echo "#define HAVE_V8_REGCOMP 1" >>confdefs.h
5426 $as_echo "#define HAVE_REGEXEC2 1" >>confdefs.h
5427 REGEX_O='regexp.$(O)' have_regex=yes
5431 if test $have_regex = no; then
5432 if test $WANT_REGEX = auto -o $WANT_REGEX = re_comp; then
5433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using re_comp" >&5
5434 $as_echo "using re_comp" >&6; }; ac_fn_c_check_func "$LINENO" "re_comp" "ac_cv_func_re_comp"
5435 if test "x$ac_cv_func_re_comp" = x""yes; then :
5436 $as_echo "#define HAVE_RE_COMP 1" >>confdefs.h
5443 if test $have_regex = no; then
5444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot find regular expression library" >&5
5445 $as_echo "cannot find regular expression library" >&6; }; $as_echo "#define NO_REGEX 1" >>confdefs.h
5450 # Check whether --with-editor was given.
5451 if test "${with_editor+set}" = set; then :
5452 withval=$with_editor; cat >>confdefs.h <<_ACEOF
5453 #define EDIT_PGM "$withval"
5457 $as_echo "#define EDIT_PGM \"vi\"" >>confdefs.h
5464 ac_config_files="$ac_config_files Makefile"
5466 cat >confcache <<\_ACEOF
5467 # This file is a shell script that caches the results of configure
5468 # tests run on this system so they can be shared between configure
5469 # scripts and configure runs, see configure's option --config-cache.
5470 # It is not useful on other systems. If it contains results you don't
5471 # want to keep, you may remove or edit it.
5473 # config.status only pays attention to the cache file if you give it
5474 # the --recheck option to rerun configure.
5476 # `ac_cv_env_foo' variables (set or unset) will be overridden when
5477 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5482 # The following way of writing the cache mishandles newlines in values,
5483 # but we know of no workaround that is simple, portable, and efficient.
5484 # So, we kill variables containing newlines.
5485 # Ultrix sh set writes to stderr and can't be redirected directly,
5486 # and sets the high bit in the cache file unless we assign to the vars.
5488 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
5489 eval ac_val=\$$ac_var
5493 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
5494 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
5497 _ | IFS | as_nl) ;; #(
5498 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
5499 *) { eval $ac_var=; unset $ac_var;} ;;
5505 case $as_nl`(ac_space=' '; set) 2>&1` in #(
5506 *${as_nl}ac_space=\ *)
5507 # `set' does not quote correctly, so add quotes: double-quote
5508 # substitution turns \\\\ into \\, and sed turns \\ into \.
5511 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5514 # `set' quotes correctly as required by POSIX, so do not add quotes.
5515 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
5524 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5526 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5528 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
5529 if test -w "$cache_file"; then
5530 test "x$cache_file" != "x/dev/null" &&
5531 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
5532 $as_echo "$as_me: updating cache $cache_file" >&6;}
5533 cat confcache >$cache_file
5535 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
5536 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
5541 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5542 # Let make expand exec_prefix.
5543 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5545 DEFS=-DHAVE_CONFIG_H
5550 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5551 # 1. Remove the extension, and $U if already installed.
5552 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
5553 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
5554 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
5555 # will be set to the directory where LIBOBJS objects are built.
5556 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
5557 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
5561 LTLIBOBJS=$ac_ltlibobjs
5565 : ${CONFIG_STATUS=./config.status}
5567 ac_clean_files_save=$ac_clean_files
5568 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5569 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
5570 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
5572 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
5574 # Generated by $as_me.
5575 # Run this file to recreate the current configuration.
5576 # Compiler output produced by configure, useful for debugging
5577 # configure, is in config.log if it exists.
5583 SHELL=\${CONFIG_SHELL-$SHELL}
5586 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
5587 ## -------------------- ##
5588 ## M4sh Initialization. ##
5589 ## -------------------- ##
5591 # Be more Bourne compatible
5592 DUALCASE=1; export DUALCASE # for MKS sh
5593 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
5596 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
5597 # is contrary to our usage. Disable this feature.
5598 alias -g '${1+"$@"}'='"$@"'
5599 setopt NO_GLOB_SUBST
5601 case `(set -o) 2>/dev/null` in #(
5613 # Printing a long string crashes Solaris 7 /usr/bin/printf.
5614 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5615 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
5616 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
5617 # Prefer a ksh shell builtin over an external printf program on Solaris,
5618 # but without wasting forks for bash or zsh.
5619 if test -z "$BASH_VERSION$ZSH_VERSION" \
5620 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
5621 as_echo='print -r --'
5622 as_echo_n='print -rn --'
5623 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
5624 as_echo='printf %s\n'
5625 as_echo_n='printf %s'
5627 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
5628 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
5629 as_echo_n='/usr/ucb/echo -n'
5631 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
5632 as_echo_n_body='eval
5636 expr "X$arg" : "X\\(.*\\)$as_nl";
5637 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
5639 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
5641 export as_echo_n_body
5642 as_echo_n='sh -c $as_echo_n_body as_echo'
5645 as_echo='sh -c $as_echo_body as_echo'
5648 # The user is always right.
5649 if test "${PATH_SEPARATOR+set}" != set; then
5651 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
5652 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
5659 # We need space, tab and new line, in precisely that order. Quoting is
5660 # there to prevent editors from complaining about space-tab.
5661 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
5662 # splitting by setting IFS to empty value.)
5665 # Find who we are. Look in the path if we contain no directory separator.
5667 *[\\/]* ) as_myself=$0 ;;
5668 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5672 test -z "$as_dir" && as_dir=.
5673 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5679 # We did not find ourselves, most probably we were run as `sh COMMAND'
5680 # in which case we are not to be found in the path.
5681 if test "x$as_myself" = x; then
5684 if test ! -f "$as_myself"; then
5685 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
5689 # Unset variables that we do not need and which cause bugs (e.g. in
5690 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
5691 # suppresses any "Segmentation fault" message there. '((' could
5692 # trigger a bug in pdksh 5.2.14.
5693 for as_var in BASH_ENV ENV MAIL MAILPATH
5694 do eval test x\${$as_var+set} = xset \
5695 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
5708 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
5711 # as_fn_error STATUS ERROR [LINENO LOG_FD]
5712 # ----------------------------------------
5713 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
5714 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
5715 # script with STATUS, using 1 if that was 0.
5718 as_status=$1; test $as_status -eq 0 && as_status=1
5720 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
5721 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
5723 $as_echo "$as_me: error: $2" >&2
5724 as_fn_exit $as_status
5728 # as_fn_set_status STATUS
5729 # -----------------------
5730 # Set $? to STATUS, without forking.
5734 } # as_fn_set_status
5738 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
5748 # Portably unset VAR.
5751 { eval $1=; unset $1;}
5753 as_unset=as_fn_unset
5754 # as_fn_append VAR VALUE
5755 # ----------------------
5756 # Append the text in VALUE to the end of the definition contained in VAR. Take
5757 # advantage of any shell optimizations that allow amortized linear growth over
5758 # repeated appends, instead of the typical quadratic growth present in naive
5760 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
5761 eval 'as_fn_append ()
5772 # as_fn_arith ARG...
5773 # ------------------
5774 # Perform arithmetic evaluation on the ARGs, and store the result in the
5775 # global $as_val. Take advantage of shells that can avoid forks. The arguments
5776 # must be portable across $(()) and expr.
5777 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
5778 eval 'as_fn_arith ()
5785 as_val=`expr "$@" || test $? -eq 1`
5790 if expr a : '\(a\)' >/dev/null 2>&1 &&
5791 test "X`expr 00001 : '.*\(...\)'`" = X001; then
5797 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
5798 as_basename=basename
5803 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
5809 as_me=`$as_basename -- "$0" ||
5810 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5811 X"$0" : 'X\(//\)$' \| \
5812 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
5814 sed '/^.*\/\([^/][^/]*\)\/*$/{
5828 # Avoid depending upon Character Ranges.
5829 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5830 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5831 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5832 as_cr_digits='0123456789'
5833 as_cr_alnum=$as_cr_Letters$as_cr_digits
5835 ECHO_C= ECHO_N= ECHO_T=
5836 case `echo -n x` in #(((((
5838 case `echo 'xy\c'` in
5839 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
5841 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
5848 rm -f conf$$ conf$$.exe conf$$.file
5849 if test -d conf$$.dir; then
5850 rm -f conf$$.dir/conf$$.file
5853 mkdir conf$$.dir 2>/dev/null
5855 if (echo >conf$$.file) 2>/dev/null; then
5856 if ln -s conf$$.file conf$$ 2>/dev/null; then
5858 # ... but there are two gotchas:
5859 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
5860 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
5861 # In both cases, we have to default to `cp -p'.
5862 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
5864 elif ln conf$$.file conf$$ 2>/dev/null; then
5872 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
5873 rmdir conf$$.dir 2>/dev/null
5878 # Create "$as_dir" as a directory, including parents if necessary.
5883 -*) as_dir=./$as_dir;;
5885 test -d "$as_dir" || eval $as_mkdir_p || {
5889 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
5890 *) as_qdir=$as_dir;;
5892 as_dirs="'$as_qdir' $as_dirs"
5893 as_dir=`$as_dirname -- "$as_dir" ||
5894 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5895 X"$as_dir" : 'X\(//\)[^/]' \| \
5896 X"$as_dir" : 'X\(//\)$' \| \
5897 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
5898 $as_echo X"$as_dir" |
5899 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5916 test -d "$as_dir" && break
5918 test -z "$as_dirs" || eval "mkdir $as_dirs"
5919 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
5923 if mkdir -p . 2>/dev/null; then
5924 as_mkdir_p='mkdir -p "$as_dir"'
5926 test -d ./-p && rmdir ./-p
5930 if test -x / >/dev/null 2>&1; then
5933 if ls -dL / >/dev/null 2>&1; then
5940 if test -d "$1"; then
5946 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
5947 ???[sx]*):;;*)false;;esac;fi
5951 as_executable_p=$as_test_x
5953 # Sed expression to map a string onto a valid CPP name.
5954 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5956 # Sed expression to map a string onto a valid variable name.
5957 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5961 ## ----------------------------------- ##
5962 ## Main body of $CONFIG_STATUS script. ##
5963 ## ----------------------------------- ##
5965 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
5967 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5968 # Save the log message, to keep $0 and so on meaningful, and to
5969 # report actual input values of CONFIG_FILES etc. instead of their
5970 # values after options handling.
5972 This file was extended by less $as_me 1, which was
5973 generated by GNU Autoconf 2.67. Invocation command line was
5975 CONFIG_FILES = $CONFIG_FILES
5976 CONFIG_HEADERS = $CONFIG_HEADERS
5977 CONFIG_LINKS = $CONFIG_LINKS
5978 CONFIG_COMMANDS = $CONFIG_COMMANDS
5981 on `(hostname || uname -n) 2>/dev/null | sed 1q`
5986 case $ac_config_files in *"
5987 "*) set x $ac_config_files; shift; ac_config_files=$*;;
5990 case $ac_config_headers in *"
5991 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
5995 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5996 # Files that config.status was made for.
5997 config_files="$ac_config_files"
5998 config_headers="$ac_config_headers"
6002 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6004 \`$as_me' instantiates files and other configuration actions
6005 from templates according to the current configuration. Unless the files
6006 and actions are specified as TAGs, all are instantiated by default.
6008 Usage: $0 [OPTION]... [TAG]...
6010 -h, --help print this help, then exit
6011 -V, --version print version number and configuration settings, then exit
6012 --config print configuration, then exit
6013 -q, --quiet, --silent
6014 do not print progress messages
6015 -d, --debug don't remove temporary files
6016 --recheck update $as_me by reconfiguring in the same conditions
6017 --file=FILE[:TEMPLATE]
6018 instantiate the configuration file FILE
6019 --header=FILE[:TEMPLATE]
6020 instantiate the configuration header FILE
6022 Configuration files:
6025 Configuration headers:
6028 Report bugs to the package provider."
6031 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6032 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
6034 less config.status 1
6035 configured by $0, generated by GNU Autoconf 2.67,
6036 with options \\"\$ac_cs_config\\"
6038 Copyright (C) 2010 Free Software Foundation, Inc.
6039 This config.status script is free software; the Free Software Foundation
6040 gives unlimited permission to copy, distribute and modify it."
6045 test -n "\$AWK" || AWK=awk
6048 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6049 # The default lists apply if the user does not specify any file.
6055 ac_option=`expr "X$1" : 'X\([^=]*\)='`
6056 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
6060 ac_option=`expr "X$1" : 'X\([^=]*\)='`
6072 # Handling of the options.
6073 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6075 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
6076 $as_echo "$ac_cs_version"; exit ;;
6077 --config | --confi | --conf | --con | --co | --c )
6078 $as_echo "$ac_cs_config"; exit ;;
6079 --debug | --debu | --deb | --de | --d | -d )
6081 --file | --fil | --fi | --f )
6084 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6085 '') as_fn_error $? "missing file argument" ;;
6087 as_fn_append CONFIG_FILES " '$ac_optarg'"
6088 ac_need_defaults=false;;
6089 --header | --heade | --head | --hea )
6092 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6094 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
6095 ac_need_defaults=false;;
6097 # Conflict between --help and --header
6098 as_fn_error $? "ambiguous option: \`$1'
6099 Try \`$0 --help' for more information.";;
6100 --help | --hel | -h )
6101 $as_echo "$ac_cs_usage"; exit ;;
6102 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6103 | -silent | --silent | --silen | --sile | --sil | --si | --s)
6107 -*) as_fn_error $? "unrecognized option: \`$1'
6108 Try \`$0 --help' for more information." ;;
6110 *) as_fn_append ac_config_targets " $1"
6111 ac_need_defaults=false ;;
6117 ac_configure_extra_args=
6119 if $ac_cs_silent; then
6121 ac_configure_extra_args="$ac_configure_extra_args --silent"
6125 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6126 if \$ac_cs_recheck; then
6127 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6129 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
6130 CONFIG_SHELL='$SHELL'
6136 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6140 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6141 ## Running $as_me. ##
6147 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6150 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6152 # Handling of arguments.
6153 for ac_config_target in $ac_config_targets
6155 case $ac_config_target in
6156 "defines.h") CONFIG_HEADERS="$CONFIG_HEADERS defines.h" ;;
6157 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
6159 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;;
6164 # If the user did not use the arguments to specify the items to instantiate,
6165 # then the envvar interface is used. Set only those that are not.
6166 # We use the long form for the default assignment because of an extremely
6167 # bizarre bug on SunOS 4.1.3.
6168 if $ac_need_defaults; then
6169 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6170 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
6173 # Have a temporary directory for convenience. Make it in the build tree
6174 # simply because there is no reason against having it here, and in addition,
6175 # creating and moving files from /tmp can sometimes cause problems.
6176 # Hook for its removal unless debugging.
6177 # Note that there is a small window in which the directory will not be cleaned:
6178 # after its creation but before its name has been assigned to `$tmp'.
6182 trap 'exit_status=$?
6183 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
6185 trap 'as_fn_exit 1' 1 2 13 15
6187 # Create a (secure) tmp directory for tmp files.
6190 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
6191 test -n "$tmp" && test -d "$tmp"
6194 tmp=./conf$$-$RANDOM
6195 (umask 077 && mkdir "$tmp")
6196 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
6198 # Set up the scripts for CONFIG_FILES section.
6199 # No need to generate them if there are no CONFIG_FILES.
6200 # This happens for instance with `./config.status config.h'.
6201 if test -n "$CONFIG_FILES"; then
6204 ac_cr=`echo X | tr X '\015'`
6205 # On cygwin, bash can eat \r inside `` if the user requested igncr.
6206 # But we know of no other shell where ac_cr would be empty at this
6207 # point, so we can use a bashism as a fallback.
6208 if test "x$ac_cr" = x; then
6209 eval ac_cr=\$\'\\r\'
6211 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
6212 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
6218 echo 'BEGIN {' >"$tmp/subs1.awk" &&
6223 echo "cat >conf$$subs.awk <<_ACEOF" &&
6224 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
6227 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6228 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
6230 for ac_last_try in false false false false false :; do
6231 . ./conf$$subs.sh ||
6232 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6234 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
6235 if test $ac_delim_n = $ac_delim_num; then
6237 elif $ac_last_try; then
6238 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6240 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6245 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6246 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
6250 s/^/S["/; s/!.*/"]=/
6260 s/\(.\{148\}\)..*/\1/
6262 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
6267 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6274 s/\(.\{148\}\)..*/\1/
6276 s/["\\]/\\&/g; s/^/"/; s/$/"/
6280 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6285 ' <conf$$subs.awk | sed '
6290 ' >>$CONFIG_STATUS || ac_write_fail=1
6291 rm -f conf$$subs.awk
6292 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6294 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
6295 for (key in S) S_is_set[key] = 1
6301 nfields = split(line, field, "@")
6303 len = length(field[1])
6304 for (i = 2; i < nfields; i++) {
6306 keylen = length(key)
6307 if (S_is_set[key]) {
6309 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
6310 len += length(value) + length(field[++i])
6321 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6322 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
6323 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
6326 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
6327 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
6330 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
6331 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
6332 # trailing colons and then remove the whole line if VPATH becomes empty
6333 # (actually we leave an empty line to preserve line numbers).
6334 if test "x$srcdir" = x.; then
6335 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
6353 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6354 fi # test -n "$CONFIG_FILES"
6356 # Set up the scripts for CONFIG_HEADERS section.
6357 # No need to generate them if there are no CONFIG_HEADERS.
6358 # This happens for instance with `./config.status Makefile'.
6359 if test -n "$CONFIG_HEADERS"; then
6360 cat >"$tmp/defines.awk" <<\_ACAWK ||
6364 # Transform confdefs.h into an awk script `defines.awk', embedded as
6365 # here-document in config.status, that substitutes the proper values into
6366 # config.h.in to produce config.h.
6368 # Create a delimiter string that does not exist in confdefs.h, to ease
6369 # handling of long lines.
6371 for ac_last_try in false false :; do
6372 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
6373 if test -z "$ac_t"; then
6375 elif $ac_last_try; then
6376 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
6378 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6382 # For the awk script, D is an array of macro values keyed by name,
6383 # likewise P contains macro parameters if any. Preserve backslash
6384 # newline sequences.
6386 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
6388 s/.\{148\}/&'"$ac_delim"'/g
6391 s/^[ ]*#[ ]*define[ ][ ]*/ /
6398 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
6400 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
6404 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
6405 D["\1"]=" \3\\\\\\n"\\/p
6407 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
6412 s/.\{148\}/&'"$ac_delim"'/g
6417 s/["\\]/\\&/g; s/^/"/; s/$/"/p
6420 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
6422 ' <confdefs.h | sed '
6423 s/'"$ac_delim"'/"\\\
6424 "/g' >>$CONFIG_STATUS || ac_write_fail=1
6426 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6427 for (key in D) D_is_set[key] = 1
6430 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
6432 split(line, arg, " ")
6433 if (arg[1] == "#") {
6437 defundef = substr(arg[1], 2)
6440 split(mac1, mac2, "(") #)
6442 prefix = substr(line, 1, index(line, defundef) - 1)
6443 if (D_is_set[macro]) {
6444 # Preserve the white space surrounding the "#".
6445 print prefix "define", macro P[macro] D[macro]
6448 # Replace #undef with comments. This is necessary, for example,
6449 # in the case of _POSIX_SOURCE, which is predefined and required
6450 # on some systems where configure will not decide to define it.
6451 if (defundef == "undef") {
6452 print "/*", prefix defundef, macro, "*/"
6460 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6461 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
6462 fi # test -n "$CONFIG_HEADERS"
6465 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
6470 :[FHLC]) ac_mode=$ac_tag; continue;;
6472 case $ac_mode$ac_tag in
6474 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;;
6475 :[FH]-) ac_tag=-:-;;
6476 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
6493 -) ac_f="$tmp/stdin";;
6494 *) # Look for the file first in the build tree, then in the source tree
6495 # (if the path is not absolute). The absolute path cannot be DOS-style,
6496 # because $ac_f cannot contain `:'.
6500 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
6502 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;;
6504 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
6505 as_fn_append ac_file_inputs " '$ac_f'"
6508 # Let's still pretend it is `configure' which instantiates (i.e., don't
6509 # use $as_me), people would be surprised to read:
6510 # /* config.h. Generated by config.status. */
6511 configure_input='Generated from '`
6512 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
6514 if test x"$ac_file" != x-; then
6515 configure_input="$ac_file. $configure_input"
6516 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
6517 $as_echo "$as_me: creating $ac_file" >&6;}
6519 # Neutralize special characters interpreted by sed in replacement strings.
6520 case $configure_input in #(
6521 *\&* | *\|* | *\\* )
6522 ac_sed_conf_input=`$as_echo "$configure_input" |
6523 sed 's/[\\\\&|]/\\\\&/g'`;; #(
6524 *) ac_sed_conf_input=$configure_input;;
6528 *:-:* | *:-) cat >"$tmp/stdin" \
6529 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
6534 ac_dir=`$as_dirname -- "$ac_file" ||
6535 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6536 X"$ac_file" : 'X\(//\)[^/]' \| \
6537 X"$ac_file" : 'X\(//\)$' \| \
6538 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
6539 $as_echo X"$ac_file" |
6540 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6557 as_dir="$ac_dir"; as_fn_mkdir_p
6561 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
6563 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
6564 # A ".." for each directory in $ac_dir_suffix.
6565 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
6566 case $ac_top_builddir_sub in
6567 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
6568 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
6571 ac_abs_top_builddir=$ac_pwd
6572 ac_abs_builddir=$ac_pwd$ac_dir_suffix
6573 # for backward compatibility:
6574 ac_top_builddir=$ac_top_build_prefix
6577 .) # We are building in place.
6579 ac_top_srcdir=$ac_top_builddir_sub
6580 ac_abs_top_srcdir=$ac_pwd ;;
6581 [\\/]* | ?:[\\/]* ) # Absolute name.
6582 ac_srcdir=$srcdir$ac_dir_suffix;
6583 ac_top_srcdir=$srcdir
6584 ac_abs_top_srcdir=$srcdir ;;
6586 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
6587 ac_top_srcdir=$ac_top_build_prefix$srcdir
6588 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
6590 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
6600 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
6601 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
6605 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6606 # If the template does not know about datarootdir, expand it.
6607 # FIXME: This hack should be removed a few years after 2.60.
6608 ac_datarootdir_hack=; ac_datarootdir_seen=
6619 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
6620 *datarootdir*) ac_datarootdir_seen=yes;;
6621 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
6622 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
6623 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
6625 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6626 ac_datarootdir_hack='
6627 s&@datadir@&$datadir&g
6628 s&@docdir@&$docdir&g
6629 s&@infodir@&$infodir&g
6630 s&@localedir@&$localedir&g
6631 s&@mandir@&$mandir&g
6632 s&\\\${datarootdir}&$datarootdir&g' ;;
6636 # Neutralize VPATH when `$srcdir' = `.'.
6637 # Shell code in configure.ac might set extrasub.
6638 # FIXME: do we really want to maintain this feature?
6639 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6640 ac_sed_extra="$ac_vpsub
6643 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6645 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6646 s|@configure_input@|$ac_sed_conf_input|;t t
6647 s&@top_builddir@&$ac_top_builddir_sub&;t t
6648 s&@top_build_prefix@&$ac_top_build_prefix&;t t
6649 s&@srcdir@&$ac_srcdir&;t t
6650 s&@abs_srcdir@&$ac_abs_srcdir&;t t
6651 s&@top_srcdir@&$ac_top_srcdir&;t t
6652 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
6653 s&@builddir@&$ac_builddir&;t t
6654 s&@abs_builddir@&$ac_abs_builddir&;t t
6655 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
6656 s&@INSTALL@&$ac_INSTALL&;t t
6657 $ac_datarootdir_hack
6659 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
6660 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6662 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
6663 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
6664 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
6665 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6666 which seems to be undefined. Please make sure it is defined" >&5
6667 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6668 which seems to be undefined. Please make sure it is defined" >&2;}
6672 -) cat "$tmp/out" && rm -f "$tmp/out";;
6673 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
6675 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6681 if test x"$ac_file" != x-; then
6683 $as_echo "/* $configure_input */" \
6684 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
6685 } >"$tmp/config.h" \
6686 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6687 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
6688 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
6689 $as_echo "$as_me: $ac_file is unchanged" >&6;}
6692 mv "$tmp/config.h" "$ac_file" \
6693 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6696 $as_echo "/* $configure_input */" \
6697 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
6698 || as_fn_error $? "could not create -" "$LINENO" 5
6710 ac_clean_files=$ac_clean_files_save
6712 test $ac_write_fail = 0 ||
6713 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
6716 # configure is writing to config.log, and then calls config.status.
6717 # config.status does its own redirection, appending to config.log.
6718 # Unfortunately, on DOS this fails, as config.log is still kept open
6719 # by configure, so config.status won't be able to write to it; its
6720 # output is simply discarded. So we exec the FD to /dev/null,
6721 # effectively closing config.log, so it can be properly (re)opened and
6722 # appended to by config.status. When coming back to configure, we
6723 # need to make the FD available again.
6724 if test "$no_create" != yes; then
6726 ac_config_status_args=
6727 test "$silent" = yes &&
6728 ac_config_status_args="$ac_config_status_args --quiet"
6730 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
6732 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6733 # would make configure fail if this is the last instruction.
6734 $ac_cs_success || as_fn_exit 1
6736 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
6737 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
6738 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}