2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63 for less 1.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
43 # Printing a long string crashes Solaris 7 /usr/bin/printf.
44 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
45 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
46 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
47 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 as_echo_n='sh -c $as_echo_n_body as_echo'
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81 # Support unset when possible.
82 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
90 # We need space, tab and new line, in precisely that order. Quoting is
91 # there to prevent editors from complaining about space-tab.
92 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
93 # splitting by setting IFS to empty value.)
96 # Find who we are. Look in the path if we contain no directory separator.
98 *[\\/]* ) as_myself=$0 ;;
99 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
103 test -z "$as_dir" && as_dir=.
104 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
110 # We did not find ourselves, most probably we were run as `sh COMMAND'
111 # in which case we are not to be found in the path.
112 if test "x$as_myself" = x; then
115 if test ! -f "$as_myself"; then
116 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117 { (exit 1); exit 1; }
120 # Work around bugs in pre-3.0 UWIN ksh.
121 for as_var in ENV MAIL MAILPATH
122 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
134 # Required to use basename.
135 if expr a : '\(a\)' >/dev/null 2>&1 &&
136 test "X`expr 00001 : '.*\(...\)'`" = X001; then
142 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
149 # Name of the executable.
150 as_me=`$as_basename -- "$0" ||
151 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
152 X"$0" : 'X\(//\)$' \| \
153 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
155 sed '/^.*\/\([^/][^/]*\)\/*$/{
173 if test "x$CONFIG_SHELL" = x; then
174 if (eval ":") 2>/dev/null; then
180 if test $as_have_required = yes && (eval ":
190 as_func_ret_success () {
193 as_func_ret_failure () {
198 if as_func_success; then
202 echo as_func_success failed.
205 if as_func_failure; then
207 echo as_func_failure succeeded.
210 if as_func_ret_success; then
214 echo as_func_ret_success failed.
217 if as_func_ret_failure; then
219 echo as_func_ret_failure succeeded.
222 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
226 echo positional parameters were not saved.
229 test \$exitcode = 0) || { (exit 1); exit 1; }
234 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
235 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
236 ") 2> /dev/null; then
240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
241 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
244 test -z "$as_dir" && as_dir=.
247 for as_base in sh bash ksh sh5; do
248 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
255 for as_shell in $as_candidate_shells $SHELL; do
256 # Try only shells that exist, to save several forks.
257 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
258 { ("$as_shell") 2> /dev/null <<\_ASEOF
259 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
263 # is contrary to our usage. Disable this feature.
264 alias -g '${1+"$@"}'='"$@"'
267 case `(set -o) 2>/dev/null` in
268 *posix*) set -o posix ;;
277 CONFIG_SHELL=$as_shell
279 if { "$as_shell" 2> /dev/null <<\_ASEOF
280 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
283 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
284 # is contrary to our usage. Disable this feature.
285 alias -g '${1+"$@"}'='"$@"'
288 case `(set -o) 2>/dev/null` in
289 *posix*) set -o posix ;;
305 as_func_ret_success () {
308 as_func_ret_failure () {
313 if as_func_success; then
317 echo as_func_success failed.
320 if as_func_failure; then
322 echo as_func_failure succeeded.
325 if as_func_ret_success; then
329 echo as_func_ret_success failed.
332 if as_func_ret_failure; then
334 echo as_func_ret_failure succeeded.
337 if ( set x; as_func_ret_success y && test x = "$1" ); then
341 echo positional parameters were not saved.
344 test $exitcode = 0) || { (exit 1); exit 1; }
349 test "x$as_lineno_1" != "x$as_lineno_2" &&
350 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
361 if test "x$CONFIG_SHELL" != x; then
362 for as_var in BASH_ENV ENV
363 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
366 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
370 if test $as_have_required = no; then
371 echo This script requires a shell more modern than all the
372 echo shells that I found on your system. Please install a
373 echo modern shell, or manually run the script under such a
374 echo shell if you do have one.
375 { (exit 1); exit 1; }
385 (eval "as_func_return () {
394 as_func_ret_success () {
397 as_func_ret_failure () {
402 if as_func_success; then
406 echo as_func_success failed.
409 if as_func_failure; then
411 echo as_func_failure succeeded.
414 if as_func_ret_success; then
418 echo as_func_ret_success failed.
421 if as_func_ret_failure; then
423 echo as_func_ret_failure succeeded.
426 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
430 echo positional parameters were not saved.
433 test \$exitcode = 0") || {
434 echo No shell found that supports shell functions.
435 echo Please tell bug-autoconf@gnu.org about your system,
436 echo including any error possibly output before this message.
437 echo This can help us improve future autoconf versions.
438 echo Configuration will now proceed without shell functions.
445 test "x$as_lineno_1" != "x$as_lineno_2" &&
446 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
448 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
449 # uniformly replaced by the line number. The first 'sed' inserts a
450 # line-number line after each line using $LINENO; the second 'sed'
451 # does the real work. The second script uses 'N' to pair each
452 # line-number line with the line containing $LINENO, and appends
453 # trailing '-' during substitution so that $LINENO is not a special
455 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
456 # scripts with optimization help from Paolo Bonzini. Blame Lee
457 # E. McMahon (1931-1989) for sed's syntax. :-)
469 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
473 chmod +x "$as_me.lineno" ||
474 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
475 { (exit 1); exit 1; }; }
477 # Don't try to exec as it changes $[0], causing all sort of problems
478 # (the dirname of $[0] is not the place where we might find the
479 # original and so on. Autoconf is especially sensitive to this).
481 # Exit status is that of the last command.
486 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
492 ECHO_C= ECHO_N= ECHO_T=
496 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
502 if expr a : '\(a\)' >/dev/null 2>&1 &&
503 test "X`expr 00001 : '.*\(...\)'`" = X001; then
509 rm -f conf$$ conf$$.exe conf$$.file
510 if test -d conf$$.dir; then
511 rm -f conf$$.dir/conf$$.file
514 mkdir conf$$.dir 2>/dev/null
516 if (echo >conf$$.file) 2>/dev/null; then
517 if ln -s conf$$.file conf$$ 2>/dev/null; then
519 # ... but there are two gotchas:
520 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
521 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
522 # In both cases, we have to default to `cp -p'.
523 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
525 elif ln conf$$.file conf$$ 2>/dev/null; then
533 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
534 rmdir conf$$.dir 2>/dev/null
536 if mkdir -p . 2>/dev/null; then
539 test -d ./-p && rmdir ./-p
543 if test -x / >/dev/null 2>&1; then
546 if ls -dL / >/dev/null 2>&1; then
553 if test -d "$1"; then
559 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
560 ???[sx]*):;;*)false;;esac;fi
564 as_executable_p=$as_test_x
566 # Sed expression to map a string onto a valid CPP name.
567 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
569 # Sed expression to map a string onto a valid variable name.
570 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
574 exec 7<&0 </dev/null 6>&1
577 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
578 # so uname gets run too.
579 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
584 ac_default_prefix=/usr/local
586 ac_config_libobj_dir=.
592 SHELL=${CONFIG_SHELL-/bin/sh}
594 # Identity of this package.
596 PACKAGE_TARNAME='less'
598 PACKAGE_STRING='less 1'
601 ac_unique_file="forwback.c"
602 # Factoring default headers for most tests.
603 ac_includes_default="\
605 #ifdef HAVE_SYS_TYPES_H
606 # include <sys/types.h>
608 #ifdef HAVE_SYS_STAT_H
609 # include <sys/stat.h>
615 # ifdef HAVE_STDLIB_H
620 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
625 #ifdef HAVE_STRINGS_H
626 # include <strings.h>
628 #ifdef HAVE_INTTYPES_H
629 # include <inttypes.h>
638 ac_subst_vars='LTLIBOBJS
681 program_transform_name
693 enable_option_checking
699 ac_precious_vars='build_alias
710 # Initialize some variables set by options.
712 ac_init_version=false
713 ac_unrecognized_opts=
715 # The variables have the same names as the options, with
716 # dashes changed to underlines.
724 program_transform_name=s,x,x,
732 # Installation directory options.
733 # These are left unexpanded so users can "make install exec_prefix=/foo"
734 # and all the variables that are supposed to be based on exec_prefix
735 # by default will actually change.
736 # Use braces instead of parens because sh, perl, etc. also accept them.
737 # (The list follows the same order as the GNU Coding Standards.)
738 bindir='${exec_prefix}/bin'
739 sbindir='${exec_prefix}/sbin'
740 libexecdir='${exec_prefix}/libexec'
741 datarootdir='${prefix}/share'
742 datadir='${datarootdir}'
743 sysconfdir='${prefix}/etc'
744 sharedstatedir='${prefix}/com'
745 localstatedir='${prefix}/var'
746 includedir='${prefix}/include'
747 oldincludedir='/usr/include'
748 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
749 infodir='${datarootdir}/info'
754 libdir='${exec_prefix}/lib'
755 localedir='${datarootdir}/locale'
756 mandir='${datarootdir}/man'
762 # If the previous option needs an argument, assign it.
763 if test -n "$ac_prev"; then
764 eval $ac_prev=\$ac_option
770 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
774 # Accept the important Cygnus configure options, so we can diagnose typos.
776 case $ac_dashdash$ac_option in
780 -bindir | --bindir | --bindi | --bind | --bin | --bi)
782 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
785 -build | --build | --buil | --bui | --bu)
786 ac_prev=build_alias ;;
787 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
788 build_alias=$ac_optarg ;;
790 -cache-file | --cache-file | --cache-fil | --cache-fi \
791 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
792 ac_prev=cache_file ;;
793 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
794 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
795 cache_file=$ac_optarg ;;
798 cache_file=config.cache ;;
800 -datadir | --datadir | --datadi | --datad)
802 -datadir=* | --datadir=* | --datadi=* | --datad=*)
803 datadir=$ac_optarg ;;
805 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
806 | --dataroo | --dataro | --datar)
807 ac_prev=datarootdir ;;
808 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
809 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
810 datarootdir=$ac_optarg ;;
812 -disable-* | --disable-*)
813 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
814 # Reject names that are not valid shell variable names.
815 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
816 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
817 { (exit 1); exit 1; }; }
818 ac_useropt_orig=$ac_useropt
819 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
820 case $ac_user_opts in
824 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
825 ac_unrecognized_sep=', ';;
827 eval enable_$ac_useropt=no ;;
829 -docdir | --docdir | --docdi | --doc | --do)
831 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
834 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
836 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
839 -enable-* | --enable-*)
840 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
841 # Reject names that are not valid shell variable names.
842 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
843 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
844 { (exit 1); exit 1; }; }
845 ac_useropt_orig=$ac_useropt
846 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
847 case $ac_user_opts in
851 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
852 ac_unrecognized_sep=', ';;
854 eval enable_$ac_useropt=\$ac_optarg ;;
856 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
857 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
858 | --exec | --exe | --ex)
859 ac_prev=exec_prefix ;;
860 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
861 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
862 | --exec=* | --exe=* | --ex=*)
863 exec_prefix=$ac_optarg ;;
865 -gas | --gas | --ga | --g)
866 # Obsolete; use --with-gas.
869 -help | --help | --hel | --he | -h)
871 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
872 ac_init_help=recursive ;;
873 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
874 ac_init_help=short ;;
876 -host | --host | --hos | --ho)
877 ac_prev=host_alias ;;
878 -host=* | --host=* | --hos=* | --ho=*)
879 host_alias=$ac_optarg ;;
881 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
883 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
885 htmldir=$ac_optarg ;;
887 -includedir | --includedir | --includedi | --included | --include \
888 | --includ | --inclu | --incl | --inc)
889 ac_prev=includedir ;;
890 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
891 | --includ=* | --inclu=* | --incl=* | --inc=*)
892 includedir=$ac_optarg ;;
894 -infodir | --infodir | --infodi | --infod | --info | --inf)
896 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
897 infodir=$ac_optarg ;;
899 -libdir | --libdir | --libdi | --libd)
901 -libdir=* | --libdir=* | --libdi=* | --libd=*)
904 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
905 | --libexe | --libex | --libe)
906 ac_prev=libexecdir ;;
907 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
908 | --libexe=* | --libex=* | --libe=*)
909 libexecdir=$ac_optarg ;;
911 -localedir | --localedir | --localedi | --localed | --locale)
913 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
914 localedir=$ac_optarg ;;
916 -localstatedir | --localstatedir | --localstatedi | --localstated \
917 | --localstate | --localstat | --localsta | --localst | --locals)
918 ac_prev=localstatedir ;;
919 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
920 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
921 localstatedir=$ac_optarg ;;
923 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
925 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
929 # Obsolete; use --without-fp.
932 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
933 | --no-cr | --no-c | -n)
936 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
937 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
940 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
941 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
942 | --oldin | --oldi | --old | --ol | --o)
943 ac_prev=oldincludedir ;;
944 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
945 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
946 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
947 oldincludedir=$ac_optarg ;;
949 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
951 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
954 -program-prefix | --program-prefix | --program-prefi | --program-pref \
955 | --program-pre | --program-pr | --program-p)
956 ac_prev=program_prefix ;;
957 -program-prefix=* | --program-prefix=* | --program-prefi=* \
958 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
959 program_prefix=$ac_optarg ;;
961 -program-suffix | --program-suffix | --program-suffi | --program-suff \
962 | --program-suf | --program-su | --program-s)
963 ac_prev=program_suffix ;;
964 -program-suffix=* | --program-suffix=* | --program-suffi=* \
965 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
966 program_suffix=$ac_optarg ;;
968 -program-transform-name | --program-transform-name \
969 | --program-transform-nam | --program-transform-na \
970 | --program-transform-n | --program-transform- \
971 | --program-transform | --program-transfor \
972 | --program-transfo | --program-transf \
973 | --program-trans | --program-tran \
974 | --progr-tra | --program-tr | --program-t)
975 ac_prev=program_transform_name ;;
976 -program-transform-name=* | --program-transform-name=* \
977 | --program-transform-nam=* | --program-transform-na=* \
978 | --program-transform-n=* | --program-transform-=* \
979 | --program-transform=* | --program-transfor=* \
980 | --program-transfo=* | --program-transf=* \
981 | --program-trans=* | --program-tran=* \
982 | --progr-tra=* | --program-tr=* | --program-t=*)
983 program_transform_name=$ac_optarg ;;
985 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
987 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
990 -psdir | --psdir | --psdi | --psd | --ps)
992 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
995 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
996 | -silent | --silent | --silen | --sile | --sil)
999 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1001 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1003 sbindir=$ac_optarg ;;
1005 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1006 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1007 | --sharedst | --shareds | --shared | --share | --shar \
1009 ac_prev=sharedstatedir ;;
1010 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1011 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1012 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1014 sharedstatedir=$ac_optarg ;;
1016 -site | --site | --sit)
1018 -site=* | --site=* | --sit=*)
1021 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1023 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1024 srcdir=$ac_optarg ;;
1026 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1027 | --syscon | --sysco | --sysc | --sys | --sy)
1028 ac_prev=sysconfdir ;;
1029 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1030 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1031 sysconfdir=$ac_optarg ;;
1033 -target | --target | --targe | --targ | --tar | --ta | --t)
1034 ac_prev=target_alias ;;
1035 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1036 target_alias=$ac_optarg ;;
1038 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1041 -version | --version | --versio | --versi | --vers | -V)
1042 ac_init_version=: ;;
1045 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1046 # Reject names that are not valid shell variable names.
1047 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1048 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1049 { (exit 1); exit 1; }; }
1050 ac_useropt_orig=$ac_useropt
1051 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1052 case $ac_user_opts in
1056 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1057 ac_unrecognized_sep=', ';;
1059 eval with_$ac_useropt=\$ac_optarg ;;
1061 -without-* | --without-*)
1062 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1063 # Reject names that are not valid shell variable names.
1064 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1065 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1066 { (exit 1); exit 1; }; }
1067 ac_useropt_orig=$ac_useropt
1068 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1069 case $ac_user_opts in
1073 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1074 ac_unrecognized_sep=', ';;
1076 eval with_$ac_useropt=no ;;
1079 # Obsolete; use --with-x.
1082 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1083 | --x-incl | --x-inc | --x-in | --x-i)
1084 ac_prev=x_includes ;;
1085 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1086 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1087 x_includes=$ac_optarg ;;
1089 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1090 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1091 ac_prev=x_libraries ;;
1092 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1093 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1094 x_libraries=$ac_optarg ;;
1096 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1097 Try \`$0 --help' for more information." >&2
1098 { (exit 1); exit 1; }; }
1102 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1103 # Reject names that are not valid shell variable names.
1104 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1105 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1106 { (exit 1); exit 1; }; }
1107 eval $ac_envvar=\$ac_optarg
1108 export $ac_envvar ;;
1111 # FIXME: should be removed in autoconf 3.0.
1112 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1113 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1114 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1115 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1121 if test -n "$ac_prev"; then
1122 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1123 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1124 { (exit 1); exit 1; }; }
1127 if test -n "$ac_unrecognized_opts"; then
1128 case $enable_option_checking in
1130 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1131 { (exit 1); exit 1; }; } ;;
1132 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1136 # Check all directory arguments for consistency.
1137 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1138 datadir sysconfdir sharedstatedir localstatedir includedir \
1139 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1140 libdir localedir mandir
1142 eval ac_val=\$$ac_var
1143 # Remove trailing slashes.
1146 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1147 eval $ac_var=\$ac_val;;
1149 # Be sure to have absolute directory names.
1151 [\\/$]* | ?:[\\/]* ) continue;;
1152 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1154 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1155 { (exit 1); exit 1; }; }
1158 # There might be people who depend on the old broken behavior: `$host'
1159 # used to hold the argument of --host etc.
1160 # FIXME: To remove some day.
1163 target=$target_alias
1165 # FIXME: To remove some day.
1166 if test "x$host_alias" != x; then
1167 if test "x$build_alias" = x; then
1168 cross_compiling=maybe
1169 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1170 If a cross compiler is detected then cross compile mode will be used." >&2
1171 elif test "x$build_alias" != "x$host_alias"; then
1177 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1179 test "$silent" = yes && exec 6>/dev/null
1182 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1183 ac_ls_di=`ls -di .` &&
1184 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1185 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1186 { (exit 1); exit 1; }; }
1187 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1188 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1189 { (exit 1); exit 1; }; }
1192 # Find the source files, if location was not specified.
1193 if test -z "$srcdir"; then
1194 ac_srcdir_defaulted=yes
1195 # Try the directory containing this script, then the parent directory.
1196 ac_confdir=`$as_dirname -- "$as_myself" ||
1197 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1198 X"$as_myself" : 'X\(//\)[^/]' \| \
1199 X"$as_myself" : 'X\(//\)$' \| \
1200 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1201 $as_echo X"$as_myself" |
1202 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1220 if test ! -r "$srcdir/$ac_unique_file"; then
1224 ac_srcdir_defaulted=no
1226 if test ! -r "$srcdir/$ac_unique_file"; then
1227 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1228 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1229 { (exit 1); exit 1; }; }
1231 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1233 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1234 { (exit 1); exit 1; }; }
1236 # When building in place, set srcdir=.
1237 if test "$ac_abs_confdir" = "$ac_pwd"; then
1240 # Remove unnecessary trailing slashes from srcdir.
1241 # Double slashes in file names in object file debugging info
1242 # mess up M-x gdb in Emacs.
1244 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1246 for ac_var in $ac_precious_vars; do
1247 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1248 eval ac_env_${ac_var}_value=\$${ac_var}
1249 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1250 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1254 # Report the --help message.
1256 if test "$ac_init_help" = "long"; then
1257 # Omit some internal or obsolete options to make the list less imposing.
1258 # This message is too long to be a string in the A/UX 3.1 sh.
1260 \`configure' configures less 1 to adapt to many kinds of systems.
1262 Usage: $0 [OPTION]... [VAR=VALUE]...
1264 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1265 VAR=VALUE. See below for descriptions of some of the useful variables.
1267 Defaults for the options are specified in brackets.
1270 -h, --help display this help and exit
1271 --help=short display options specific to this package
1272 --help=recursive display the short help of all the included packages
1273 -V, --version display version information and exit
1274 -q, --quiet, --silent do not print \`checking...' messages
1275 --cache-file=FILE cache test results in FILE [disabled]
1276 -C, --config-cache alias for \`--cache-file=config.cache'
1277 -n, --no-create do not create output files
1278 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1280 Installation directories:
1281 --prefix=PREFIX install architecture-independent files in PREFIX
1282 [$ac_default_prefix]
1283 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1286 By default, \`make install' will install all the files in
1287 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1288 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1289 for instance \`--prefix=\$HOME'.
1291 For better control, use the options below.
1293 Fine tuning of the installation directories:
1294 --bindir=DIR user executables [EPREFIX/bin]
1295 --sbindir=DIR system admin executables [EPREFIX/sbin]
1296 --libexecdir=DIR program executables [EPREFIX/libexec]
1297 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1298 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1299 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1300 --libdir=DIR object code libraries [EPREFIX/lib]
1301 --includedir=DIR C header files [PREFIX/include]
1302 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1303 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1304 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1305 --infodir=DIR info documentation [DATAROOTDIR/info]
1306 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1307 --mandir=DIR man documentation [DATAROOTDIR/man]
1308 --docdir=DIR documentation root [DATAROOTDIR/doc/less]
1309 --htmldir=DIR html documentation [DOCDIR]
1310 --dvidir=DIR dvi documentation [DOCDIR]
1311 --pdfdir=DIR pdf documentation [DOCDIR]
1312 --psdir=DIR ps documentation [DOCDIR]
1319 if test -n "$ac_init_help"; then
1320 case $ac_init_help in
1321 short | recursive ) echo "Configuration of less 1:";;
1326 --disable-option-checking ignore unrecognized --enable/--with options
1327 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1328 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1329 --disable-largefile omit support for large files
1332 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1333 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1334 --with-secure Compile in secure mode
1335 --with-regex={auto,pcre,posix,regcmp,re_comp,regcomp,regcomp-local} Select a regular expression library auto
1336 --with-editor=PROGRAM use PROGRAM as the default editor vi
1338 Some influential environment variables:
1339 CC C compiler command
1340 CFLAGS C compiler flags
1341 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1342 nonstandard directory <lib dir>
1343 LIBS libraries to pass to the linker, e.g. -l<library>
1344 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1345 you have headers in a nonstandard directory <include dir>
1348 Use these variables to override the choices made by `configure' or to help
1349 it to find libraries and programs with nonstandard names/locations.
1355 if test "$ac_init_help" = "recursive"; then
1356 # If there are subdirs, report their specific --help.
1357 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1358 test -d "$ac_dir" ||
1359 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1364 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1366 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1367 # A ".." for each directory in $ac_dir_suffix.
1368 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1369 case $ac_top_builddir_sub in
1370 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1371 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1374 ac_abs_top_builddir=$ac_pwd
1375 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1376 # for backward compatibility:
1377 ac_top_builddir=$ac_top_build_prefix
1380 .) # We are building in place.
1382 ac_top_srcdir=$ac_top_builddir_sub
1383 ac_abs_top_srcdir=$ac_pwd ;;
1384 [\\/]* | ?:[\\/]* ) # Absolute name.
1385 ac_srcdir=$srcdir$ac_dir_suffix;
1386 ac_top_srcdir=$srcdir
1387 ac_abs_top_srcdir=$srcdir ;;
1389 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1390 ac_top_srcdir=$ac_top_build_prefix$srcdir
1391 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1393 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1395 cd "$ac_dir" || { ac_status=$?; continue; }
1396 # Check for guested configure.
1397 if test -f "$ac_srcdir/configure.gnu"; then
1399 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1400 elif test -f "$ac_srcdir/configure"; then
1402 $SHELL "$ac_srcdir/configure" --help=recursive
1404 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1406 cd "$ac_pwd" || { ac_status=$?; break; }
1410 test -n "$ac_init_help" && exit $ac_status
1411 if $ac_init_version; then
1414 generated by GNU Autoconf 2.63
1416 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1417 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1418 This configure script is free software; the Free Software Foundation
1419 gives unlimited permission to copy, distribute and modify it.
1423 cat >config.log <<_ACEOF
1424 This file contains any messages produced by compilers while
1425 running configure, to aid debugging if configure makes a mistake.
1427 It was created by less $as_me 1, which was
1428 generated by GNU Autoconf 2.63. Invocation command line was
1440 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1441 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1442 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1443 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1444 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1446 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1447 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1449 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1450 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1451 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1452 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1453 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1454 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1455 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1463 test -z "$as_dir" && as_dir=.
1464 $as_echo "PATH: $as_dir"
1480 # Keep a trace of the command line.
1481 # Strip out --no-create and --no-recursion so they do not pile up.
1482 # Strip out --silent because we don't want to record it for future runs.
1483 # Also quote any args containing shell meta-characters.
1484 # Make two passes to allow for proper duplicate-argument suppression.
1488 ac_must_keep_next=false
1494 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1495 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1496 | -silent | --silent | --silen | --sile | --sil)
1499 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1502 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1504 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1505 if test $ac_must_keep_next = true; then
1506 ac_must_keep_next=false # Got value, back to normal.
1509 *=* | --config-cache | -C | -disable-* | --disable-* \
1510 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1511 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1512 | -with-* | --with-* | -without-* | --without-* | --x)
1513 case "$ac_configure_args0 " in
1514 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1517 -* ) ac_must_keep_next=true ;;
1520 ac_configure_args="$ac_configure_args '$ac_arg'"
1525 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1526 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1528 # When interrupted or exit'd, cleanup temporary files, and complete
1529 # config.log. We remove comments because anyway the quotes in there
1530 # would cause problems or look ugly.
1531 # WARNING: Use '\'' to represent an apostrophe within the trap.
1532 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1533 trap 'exit_status=$?
1534 # Save into config.log some information that might help in debugging.
1539 ## ---------------- ##
1540 ## Cache variables. ##
1541 ## ---------------- ##
1544 # The following way of writing the cache mishandles newlines in values,
1546 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1547 eval ac_val=\$$ac_var
1551 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1552 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1555 _ | IFS | as_nl) ;; #(
1556 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1557 *) $as_unset $ac_var ;;
1562 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1563 *${as_nl}ac_space=\ *)
1565 "s/'\''/'\''\\\\'\'''\''/g;
1566 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1569 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1577 ## ----------------- ##
1578 ## Output variables. ##
1579 ## ----------------- ##
1582 for ac_var in $ac_subst_vars
1584 eval ac_val=\$$ac_var
1586 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1588 $as_echo "$ac_var='\''$ac_val'\''"
1592 if test -n "$ac_subst_files"; then
1594 ## ------------------- ##
1595 ## File substitutions. ##
1596 ## ------------------- ##
1599 for ac_var in $ac_subst_files
1601 eval ac_val=\$$ac_var
1603 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1605 $as_echo "$ac_var='\''$ac_val'\''"
1610 if test -s confdefs.h; then
1620 test "$ac_signal" != 0 &&
1621 $as_echo "$as_me: caught signal $ac_signal"
1622 $as_echo "$as_me: exit $exit_status"
1624 rm -f core *.core core.conftest.* &&
1625 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1628 for ac_signal in 1 2 13 15; do
1629 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1633 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1634 rm -f -r conftest* confdefs.h
1636 # Predefined preprocessor variables.
1638 cat >>confdefs.h <<_ACEOF
1639 #define PACKAGE_NAME "$PACKAGE_NAME"
1643 cat >>confdefs.h <<_ACEOF
1644 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1648 cat >>confdefs.h <<_ACEOF
1649 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1653 cat >>confdefs.h <<_ACEOF
1654 #define PACKAGE_STRING "$PACKAGE_STRING"
1658 cat >>confdefs.h <<_ACEOF
1659 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1663 # Let the site file select an alternate cache file if it wants to.
1664 # Prefer an explicitly selected file to automatically selected ones.
1667 if test -n "$CONFIG_SITE"; then
1668 ac_site_file1=$CONFIG_SITE
1669 elif test "x$prefix" != xNONE; then
1670 ac_site_file1=$prefix/share/config.site
1671 ac_site_file2=$prefix/etc/config.site
1673 ac_site_file1=$ac_default_prefix/share/config.site
1674 ac_site_file2=$ac_default_prefix/etc/config.site
1676 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1678 test "x$ac_site_file" = xNONE && continue
1679 if test -r "$ac_site_file"; then
1680 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1681 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1682 sed 's/^/| /' "$ac_site_file" >&5
1687 if test -r "$cache_file"; then
1688 # Some versions of bash will fail to source /dev/null (special
1689 # files actually), so we avoid doing that.
1690 if test -f "$cache_file"; then
1691 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1692 $as_echo "$as_me: loading cache $cache_file" >&6;}
1694 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1695 *) . "./$cache_file";;
1699 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1700 $as_echo "$as_me: creating cache $cache_file" >&6;}
1704 # Check that the precious variables saved in the cache have kept the same
1706 ac_cache_corrupted=false
1707 for ac_var in $ac_precious_vars; do
1708 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1709 eval ac_new_set=\$ac_env_${ac_var}_set
1710 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1711 eval ac_new_val=\$ac_env_${ac_var}_value
1712 case $ac_old_set,$ac_new_set in
1714 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1715 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1716 ac_cache_corrupted=: ;;
1718 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1719 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1720 ac_cache_corrupted=: ;;
1723 if test "x$ac_old_val" != "x$ac_new_val"; then
1724 # differences in whitespace do not lead to failure.
1725 ac_old_val_w=`echo x $ac_old_val`
1726 ac_new_val_w=`echo x $ac_new_val`
1727 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1728 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1729 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1730 ac_cache_corrupted=:
1732 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1733 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1734 eval $ac_var=\$ac_old_val
1736 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1737 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1738 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1739 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1742 # Pass precious variables to config.status.
1743 if test "$ac_new_set" = set; then
1745 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1746 *) ac_arg=$ac_var=$ac_new_val ;;
1748 case " $ac_configure_args " in
1749 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1750 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1754 if $ac_cache_corrupted; then
1755 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1756 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1757 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1758 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1759 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1760 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1761 { (exit 1); exit 1; }; }
1789 ac_cpp='$CPP $CPPFLAGS'
1790 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1791 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1792 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1796 ac_config_headers="$ac_config_headers defines.h"
1799 # Checks for programs.
1801 ac_cpp='$CPP $CPPFLAGS'
1802 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1803 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1804 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1805 if test -n "$ac_tool_prefix"; then
1806 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1807 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1808 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
1809 $as_echo_n "checking for $ac_word... " >&6; }
1810 if test "${ac_cv_prog_CC+set}" = set; then
1811 $as_echo_n "(cached) " >&6
1813 if test -n "$CC"; then
1814 ac_cv_prog_CC="$CC" # Let the user override the test.
1816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1820 test -z "$as_dir" && as_dir=.
1821 for ac_exec_ext in '' $ac_executable_extensions; do
1822 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1823 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1824 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1834 if test -n "$CC"; then
1835 { $as_echo "$as_me:$LINENO: result: $CC" >&5
1836 $as_echo "$CC" >&6; }
1838 { $as_echo "$as_me:$LINENO: result: no" >&5
1839 $as_echo "no" >&6; }
1844 if test -z "$ac_cv_prog_CC"; then
1846 # Extract the first word of "gcc", so it can be a program name with args.
1847 set dummy gcc; ac_word=$2
1848 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
1849 $as_echo_n "checking for $ac_word... " >&6; }
1850 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1851 $as_echo_n "(cached) " >&6
1853 if test -n "$ac_ct_CC"; then
1854 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1860 test -z "$as_dir" && as_dir=.
1861 for ac_exec_ext in '' $ac_executable_extensions; do
1862 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1863 ac_cv_prog_ac_ct_CC="gcc"
1864 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1873 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1874 if test -n "$ac_ct_CC"; then
1875 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1876 $as_echo "$ac_ct_CC" >&6; }
1878 { $as_echo "$as_me:$LINENO: result: no" >&5
1879 $as_echo "no" >&6; }
1882 if test "x$ac_ct_CC" = x; then
1885 case $cross_compiling:$ac_tool_warned in
1887 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
1888 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
1889 ac_tool_warned=yes ;;
1897 if test -z "$CC"; then
1898 if test -n "$ac_tool_prefix"; then
1899 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1900 set dummy ${ac_tool_prefix}cc; ac_word=$2
1901 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
1902 $as_echo_n "checking for $ac_word... " >&6; }
1903 if test "${ac_cv_prog_CC+set}" = set; then
1904 $as_echo_n "(cached) " >&6
1906 if test -n "$CC"; then
1907 ac_cv_prog_CC="$CC" # Let the user override the test.
1909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1913 test -z "$as_dir" && as_dir=.
1914 for ac_exec_ext in '' $ac_executable_extensions; do
1915 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1916 ac_cv_prog_CC="${ac_tool_prefix}cc"
1917 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1927 if test -n "$CC"; then
1928 { $as_echo "$as_me:$LINENO: result: $CC" >&5
1929 $as_echo "$CC" >&6; }
1931 { $as_echo "$as_me:$LINENO: result: no" >&5
1932 $as_echo "no" >&6; }
1938 if test -z "$CC"; then
1939 # Extract the first word of "cc", so it can be a program name with args.
1940 set dummy cc; ac_word=$2
1941 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
1942 $as_echo_n "checking for $ac_word... " >&6; }
1943 if test "${ac_cv_prog_CC+set}" = set; then
1944 $as_echo_n "(cached) " >&6
1946 if test -n "$CC"; then
1947 ac_cv_prog_CC="$CC" # Let the user override the test.
1950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1954 test -z "$as_dir" && as_dir=.
1955 for ac_exec_ext in '' $ac_executable_extensions; do
1956 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1957 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1958 ac_prog_rejected=yes
1962 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1969 if test $ac_prog_rejected = yes; then
1970 # We found a bogon in the path, so make sure we never use it.
1971 set dummy $ac_cv_prog_CC
1973 if test $# != 0; then
1974 # We chose a different compiler from the bogus one.
1975 # However, it has the same basename, so the bogon will be chosen
1976 # first if we set CC to just the basename; use the full file name.
1978 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1984 if test -n "$CC"; then
1985 { $as_echo "$as_me:$LINENO: result: $CC" >&5
1986 $as_echo "$CC" >&6; }
1988 { $as_echo "$as_me:$LINENO: result: no" >&5
1989 $as_echo "no" >&6; }
1994 if test -z "$CC"; then
1995 if test -n "$ac_tool_prefix"; then
1996 for ac_prog in cl.exe
1998 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1999 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2000 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2001 $as_echo_n "checking for $ac_word... " >&6; }
2002 if test "${ac_cv_prog_CC+set}" = set; then
2003 $as_echo_n "(cached) " >&6
2005 if test -n "$CC"; then
2006 ac_cv_prog_CC="$CC" # Let the user override the test.
2008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2012 test -z "$as_dir" && as_dir=.
2013 for ac_exec_ext in '' $ac_executable_extensions; do
2014 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2015 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2016 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2026 if test -n "$CC"; then
2027 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2028 $as_echo "$CC" >&6; }
2030 { $as_echo "$as_me:$LINENO: result: no" >&5
2031 $as_echo "no" >&6; }
2035 test -n "$CC" && break
2038 if test -z "$CC"; then
2040 for ac_prog in cl.exe
2042 # Extract the first word of "$ac_prog", so it can be a program name with args.
2043 set dummy $ac_prog; ac_word=$2
2044 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2045 $as_echo_n "checking for $ac_word... " >&6; }
2046 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2047 $as_echo_n "(cached) " >&6
2049 if test -n "$ac_ct_CC"; then
2050 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2056 test -z "$as_dir" && as_dir=.
2057 for ac_exec_ext in '' $ac_executable_extensions; do
2058 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2059 ac_cv_prog_ac_ct_CC="$ac_prog"
2060 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2069 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2070 if test -n "$ac_ct_CC"; then
2071 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2072 $as_echo "$ac_ct_CC" >&6; }
2074 { $as_echo "$as_me:$LINENO: result: no" >&5
2075 $as_echo "no" >&6; }
2079 test -n "$ac_ct_CC" && break
2082 if test "x$ac_ct_CC" = x; then
2085 case $cross_compiling:$ac_tool_warned in
2087 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2088 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2089 ac_tool_warned=yes ;;
2098 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2099 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2100 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2101 See \`config.log' for more details." >&5
2102 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2103 See \`config.log' for more details." >&2;}
2104 { (exit 1); exit 1; }; }; }
2106 # Provide some information about the compiler.
2107 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2110 { (ac_try="$ac_compiler --version >&5"
2112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2113 *) ac_try_echo=$ac_try;;
2115 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2116 $as_echo "$ac_try_echo") >&5
2117 (eval "$ac_compiler --version >&5") 2>&5
2119 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2120 (exit $ac_status); }
2121 { (ac_try="$ac_compiler -v >&5"
2123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2124 *) ac_try_echo=$ac_try;;
2126 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2127 $as_echo "$ac_try_echo") >&5
2128 (eval "$ac_compiler -v >&5") 2>&5
2130 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2131 (exit $ac_status); }
2132 { (ac_try="$ac_compiler -V >&5"
2134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2135 *) ac_try_echo=$ac_try;;
2137 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2138 $as_echo "$ac_try_echo") >&5
2139 (eval "$ac_compiler -V >&5") 2>&5
2141 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2142 (exit $ac_status); }
2144 cat >conftest.$ac_ext <<_ACEOF
2147 cat confdefs.h >>conftest.$ac_ext
2148 cat >>conftest.$ac_ext <<_ACEOF
2149 /* end confdefs.h. */
2159 ac_clean_files_save=$ac_clean_files
2160 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2161 # Try to create an executable without -o first, disregard a.out.
2162 # It will help us diagnose broken compilers, and finding out an intuition
2164 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2165 $as_echo_n "checking for C compiler default output file name... " >&6; }
2166 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2168 # The possible output files:
2169 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2172 for ac_file in $ac_files
2175 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2176 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2181 if { (ac_try="$ac_link_default"
2183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2184 *) ac_try_echo=$ac_try;;
2186 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2187 $as_echo "$ac_try_echo") >&5
2188 (eval "$ac_link_default") 2>&5
2190 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2191 (exit $ac_status); }; then
2192 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2193 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2194 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2195 # so that the user can short-circuit this test for compilers unknown to
2197 for ac_file in $ac_files ''
2199 test -f "$ac_file" || continue
2201 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2204 # We found the default executable, but exeext='' is most
2208 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2210 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2212 # We set ac_cv_exeext here because the later test for it is not
2213 # safe: cross compilers may not add the suffix if given an `-o'
2214 # argument, so we may need to know it at that point already.
2215 # Even if this section looks crufty: it has the advantage of
2222 test "$ac_cv_exeext" = no && ac_cv_exeext=
2228 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2229 $as_echo "$ac_file" >&6; }
2230 if test -z "$ac_file"; then
2231 $as_echo "$as_me: failed program was:" >&5
2232 sed 's/^/| /' conftest.$ac_ext >&5
2234 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2235 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2236 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
2237 See \`config.log' for more details." >&5
2238 $as_echo "$as_me: error: C compiler cannot create executables
2239 See \`config.log' for more details." >&2;}
2240 { (exit 77); exit 77; }; }; }
2243 ac_exeext=$ac_cv_exeext
2245 # Check that the compiler produces executables we can run. If not, either
2246 # the compiler is broken, or we cross compile.
2247 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2248 $as_echo_n "checking whether the C compiler works... " >&6; }
2249 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2250 # If not cross compiling, check that we can run a simple program.
2251 if test "$cross_compiling" != yes; then
2252 if { ac_try='./$ac_file'
2253 { (case "(($ac_try" in
2254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2255 *) ac_try_echo=$ac_try;;
2257 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2258 $as_echo "$ac_try_echo") >&5
2259 (eval "$ac_try") 2>&5
2261 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2262 (exit $ac_status); }; }; then
2265 if test "$cross_compiling" = maybe; then
2268 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2269 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2270 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
2271 If you meant to cross compile, use \`--host'.
2272 See \`config.log' for more details." >&5
2273 $as_echo "$as_me: error: cannot run C compiled programs.
2274 If you meant to cross compile, use \`--host'.
2275 See \`config.log' for more details." >&2;}
2276 { (exit 1); exit 1; }; }; }
2280 { $as_echo "$as_me:$LINENO: result: yes" >&5
2281 $as_echo "yes" >&6; }
2283 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2284 ac_clean_files=$ac_clean_files_save
2285 # Check that the compiler produces executables we can run. If not, either
2286 # the compiler is broken, or we cross compile.
2287 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2288 $as_echo_n "checking whether we are cross compiling... " >&6; }
2289 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
2290 $as_echo "$cross_compiling" >&6; }
2292 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
2293 $as_echo_n "checking for suffix of executables... " >&6; }
2294 if { (ac_try="$ac_link"
2296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2297 *) ac_try_echo=$ac_try;;
2299 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2300 $as_echo "$ac_try_echo") >&5
2301 (eval "$ac_link") 2>&5
2303 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2304 (exit $ac_status); }; then
2305 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2306 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2307 # work properly (i.e., refer to `conftest.exe'), while it won't with
2309 for ac_file in conftest.exe conftest conftest.*; do
2310 test -f "$ac_file" || continue
2312 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2313 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2319 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2320 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2321 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2322 See \`config.log' for more details." >&5
2323 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2324 See \`config.log' for more details." >&2;}
2325 { (exit 1); exit 1; }; }; }
2328 rm -f conftest$ac_cv_exeext
2329 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2330 $as_echo "$ac_cv_exeext" >&6; }
2332 rm -f conftest.$ac_ext
2333 EXEEXT=$ac_cv_exeext
2335 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
2336 $as_echo_n "checking for suffix of object files... " >&6; }
2337 if test "${ac_cv_objext+set}" = set; then
2338 $as_echo_n "(cached) " >&6
2340 cat >conftest.$ac_ext <<_ACEOF
2343 cat confdefs.h >>conftest.$ac_ext
2344 cat >>conftest.$ac_ext <<_ACEOF
2345 /* end confdefs.h. */
2355 rm -f conftest.o conftest.obj
2356 if { (ac_try="$ac_compile"
2358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2359 *) ac_try_echo=$ac_try;;
2361 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2362 $as_echo "$ac_try_echo") >&5
2363 (eval "$ac_compile") 2>&5
2365 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2366 (exit $ac_status); }; then
2367 for ac_file in conftest.o conftest.obj conftest.*; do
2368 test -f "$ac_file" || continue;
2370 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2371 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2376 $as_echo "$as_me: failed program was:" >&5
2377 sed 's/^/| /' conftest.$ac_ext >&5
2379 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2380 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2381 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2382 See \`config.log' for more details." >&5
2383 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
2384 See \`config.log' for more details." >&2;}
2385 { (exit 1); exit 1; }; }; }
2388 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2390 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2391 $as_echo "$ac_cv_objext" >&6; }
2392 OBJEXT=$ac_cv_objext
2394 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2395 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2396 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2397 $as_echo_n "(cached) " >&6
2399 cat >conftest.$ac_ext <<_ACEOF
2402 cat confdefs.h >>conftest.$ac_ext
2403 cat >>conftest.$ac_ext <<_ACEOF
2404 /* end confdefs.h. */
2417 rm -f conftest.$ac_objext
2418 if { (ac_try="$ac_compile"
2420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2421 *) ac_try_echo=$ac_try;;
2423 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2424 $as_echo "$ac_try_echo") >&5
2425 (eval "$ac_compile") 2>conftest.er1
2427 grep -v '^ *+' conftest.er1 >conftest.err
2429 cat conftest.err >&5
2430 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2431 (exit $ac_status); } && {
2432 test -z "$ac_c_werror_flag" ||
2433 test ! -s conftest.err
2434 } && test -s conftest.$ac_objext; then
2437 $as_echo "$as_me: failed program was:" >&5
2438 sed 's/^/| /' conftest.$ac_ext >&5
2443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2444 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2447 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2448 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2449 if test $ac_compiler_gnu = yes; then
2454 ac_test_CFLAGS=${CFLAGS+set}
2455 ac_save_CFLAGS=$CFLAGS
2456 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2457 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2458 if test "${ac_cv_prog_cc_g+set}" = set; then
2459 $as_echo_n "(cached) " >&6
2461 ac_save_c_werror_flag=$ac_c_werror_flag
2462 ac_c_werror_flag=yes
2465 cat >conftest.$ac_ext <<_ACEOF
2468 cat confdefs.h >>conftest.$ac_ext
2469 cat >>conftest.$ac_ext <<_ACEOF
2470 /* end confdefs.h. */
2480 rm -f conftest.$ac_objext
2481 if { (ac_try="$ac_compile"
2483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2484 *) ac_try_echo=$ac_try;;
2486 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2487 $as_echo "$ac_try_echo") >&5
2488 (eval "$ac_compile") 2>conftest.er1
2490 grep -v '^ *+' conftest.er1 >conftest.err
2492 cat conftest.err >&5
2493 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2494 (exit $ac_status); } && {
2495 test -z "$ac_c_werror_flag" ||
2496 test ! -s conftest.err
2497 } && test -s conftest.$ac_objext; then
2500 $as_echo "$as_me: failed program was:" >&5
2501 sed 's/^/| /' conftest.$ac_ext >&5
2504 cat >conftest.$ac_ext <<_ACEOF
2507 cat confdefs.h >>conftest.$ac_ext
2508 cat >>conftest.$ac_ext <<_ACEOF
2509 /* end confdefs.h. */
2519 rm -f conftest.$ac_objext
2520 if { (ac_try="$ac_compile"
2522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2523 *) ac_try_echo=$ac_try;;
2525 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2526 $as_echo "$ac_try_echo") >&5
2527 (eval "$ac_compile") 2>conftest.er1
2529 grep -v '^ *+' conftest.er1 >conftest.err
2531 cat conftest.err >&5
2532 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2533 (exit $ac_status); } && {
2534 test -z "$ac_c_werror_flag" ||
2535 test ! -s conftest.err
2536 } && test -s conftest.$ac_objext; then
2539 $as_echo "$as_me: failed program was:" >&5
2540 sed 's/^/| /' conftest.$ac_ext >&5
2542 ac_c_werror_flag=$ac_save_c_werror_flag
2544 cat >conftest.$ac_ext <<_ACEOF
2547 cat confdefs.h >>conftest.$ac_ext
2548 cat >>conftest.$ac_ext <<_ACEOF
2549 /* end confdefs.h. */
2559 rm -f conftest.$ac_objext
2560 if { (ac_try="$ac_compile"
2562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2563 *) ac_try_echo=$ac_try;;
2565 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2566 $as_echo "$ac_try_echo") >&5
2567 (eval "$ac_compile") 2>conftest.er1
2569 grep -v '^ *+' conftest.er1 >conftest.err
2571 cat conftest.err >&5
2572 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2573 (exit $ac_status); } && {
2574 test -z "$ac_c_werror_flag" ||
2575 test ! -s conftest.err
2576 } && test -s conftest.$ac_objext; then
2579 $as_echo "$as_me: failed program was:" >&5
2580 sed 's/^/| /' conftest.$ac_ext >&5
2585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2592 ac_c_werror_flag=$ac_save_c_werror_flag
2594 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2595 $as_echo "$ac_cv_prog_cc_g" >&6; }
2596 if test "$ac_test_CFLAGS" = set; then
2597 CFLAGS=$ac_save_CFLAGS
2598 elif test $ac_cv_prog_cc_g = yes; then
2599 if test "$GCC" = yes; then
2605 if test "$GCC" = yes; then
2611 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2612 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2613 if test "${ac_cv_prog_cc_c89+set}" = set; then
2614 $as_echo_n "(cached) " >&6
2616 ac_cv_prog_cc_c89=no
2618 cat >conftest.$ac_ext <<_ACEOF
2621 cat confdefs.h >>conftest.$ac_ext
2622 cat >>conftest.$ac_ext <<_ACEOF
2623 /* end confdefs.h. */
2626 #include <sys/types.h>
2627 #include <sys/stat.h>
2628 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2629 struct buf { int x; };
2630 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2631 static char *e (p, i)
2637 static char *f (char * (*g) (char **, int), char **p, ...)
2642 s = g (p, va_arg (v,int));
2647 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2648 function prototypes and stuff, but not '\xHH' hex character constants.
2649 These don't provoke an error unfortunately, instead are silently treated
2650 as 'x'. The following induces an error, until -std is added to get
2651 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2652 array size at least. It's necessary to write '\x00'==0 to get something
2653 that's true only with -std. */
2654 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2656 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2657 inside strings and character constants. */
2659 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2661 int test (int i, double x);
2662 struct s1 {int (*f) (int a);};
2663 struct s2 {int (*f) (double a);};
2664 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2670 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2675 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2676 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2678 CC="$ac_save_CC $ac_arg"
2679 rm -f conftest.$ac_objext
2680 if { (ac_try="$ac_compile"
2682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2683 *) ac_try_echo=$ac_try;;
2685 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2686 $as_echo "$ac_try_echo") >&5
2687 (eval "$ac_compile") 2>conftest.er1
2689 grep -v '^ *+' conftest.er1 >conftest.err
2691 cat conftest.err >&5
2692 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2693 (exit $ac_status); } && {
2694 test -z "$ac_c_werror_flag" ||
2695 test ! -s conftest.err
2696 } && test -s conftest.$ac_objext; then
2697 ac_cv_prog_cc_c89=$ac_arg
2699 $as_echo "$as_me: failed program was:" >&5
2700 sed 's/^/| /' conftest.$ac_ext >&5
2705 rm -f core conftest.err conftest.$ac_objext
2706 test "x$ac_cv_prog_cc_c89" != "xno" && break
2708 rm -f conftest.$ac_ext
2713 case "x$ac_cv_prog_cc_c89" in
2715 { $as_echo "$as_me:$LINENO: result: none needed" >&5
2716 $as_echo "none needed" >&6; } ;;
2718 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
2719 $as_echo "unsupported" >&6; } ;;
2721 CC="$CC $ac_cv_prog_cc_c89"
2722 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2723 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
2728 ac_cpp='$CPP $CPPFLAGS'
2729 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2730 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2731 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2734 { $as_echo "$as_me:$LINENO: checking for library containing strerror" >&5
2735 $as_echo_n "checking for library containing strerror... " >&6; }
2736 if test "${ac_cv_search_strerror+set}" = set; then
2737 $as_echo_n "(cached) " >&6
2739 ac_func_search_save_LIBS=$LIBS
2740 cat >conftest.$ac_ext <<_ACEOF
2743 cat confdefs.h >>conftest.$ac_ext
2744 cat >>conftest.$ac_ext <<_ACEOF
2745 /* end confdefs.h. */
2747 /* Override any GCC internal prototype to avoid an error.
2748 Use char because int might match the return type of a GCC
2749 builtin and then its argument prototype would still apply. */
2762 for ac_lib in '' cposix; do
2763 if test -z "$ac_lib"; then
2764 ac_res="none required"
2767 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2769 rm -f conftest.$ac_objext conftest$ac_exeext
2770 if { (ac_try="$ac_link"
2772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2773 *) ac_try_echo=$ac_try;;
2775 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2776 $as_echo "$ac_try_echo") >&5
2777 (eval "$ac_link") 2>conftest.er1
2779 grep -v '^ *+' conftest.er1 >conftest.err
2781 cat conftest.err >&5
2782 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2783 (exit $ac_status); } && {
2784 test -z "$ac_c_werror_flag" ||
2785 test ! -s conftest.err
2786 } && test -s conftest$ac_exeext && {
2787 test "$cross_compiling" = yes ||
2788 $as_test_x conftest$ac_exeext
2790 ac_cv_search_strerror=$ac_res
2792 $as_echo "$as_me: failed program was:" >&5
2793 sed 's/^/| /' conftest.$ac_ext >&5
2798 rm -rf conftest.dSYM
2799 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2801 if test "${ac_cv_search_strerror+set}" = set; then
2805 if test "${ac_cv_search_strerror+set}" = set; then
2808 ac_cv_search_strerror=no
2811 LIBS=$ac_func_search_save_LIBS
2813 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2814 $as_echo "$ac_cv_search_strerror" >&6; }
2815 ac_res=$ac_cv_search_strerror
2816 if test "$ac_res" != no; then
2817 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
2822 ac_cpp='$CPP $CPPFLAGS'
2823 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2824 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2825 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2826 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2827 $as_echo_n "checking how to run the C preprocessor... " >&6; }
2828 # On Suns, sometimes $CPP names a directory.
2829 if test -n "$CPP" && test -d "$CPP"; then
2832 if test -z "$CPP"; then
2833 if test "${ac_cv_prog_CPP+set}" = set; then
2834 $as_echo_n "(cached) " >&6
2836 # Double quotes because CPP needs to be expanded
2837 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2840 for ac_c_preproc_warn_flag in '' yes
2842 # Use a header file that comes with gcc, so configuring glibc
2843 # with a fresh cross-compiler works.
2844 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2845 # <limits.h> exists even on freestanding compilers.
2846 # On the NeXT, cc -E runs the code through the compiler's parser,
2847 # not just through cpp. "Syntax error" is here to catch this case.
2848 cat >conftest.$ac_ext <<_ACEOF
2851 cat confdefs.h >>conftest.$ac_ext
2852 cat >>conftest.$ac_ext <<_ACEOF
2853 /* end confdefs.h. */
2855 # include <limits.h>
2857 # include <assert.h>
2861 if { (ac_try="$ac_cpp conftest.$ac_ext"
2863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2864 *) ac_try_echo=$ac_try;;
2866 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2867 $as_echo "$ac_try_echo") >&5
2868 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2870 grep -v '^ *+' conftest.er1 >conftest.err
2872 cat conftest.err >&5
2873 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2874 (exit $ac_status); } >/dev/null && {
2875 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2876 test ! -s conftest.err
2880 $as_echo "$as_me: failed program was:" >&5
2881 sed 's/^/| /' conftest.$ac_ext >&5
2883 # Broken: fails on valid input.
2887 rm -f conftest.err conftest.$ac_ext
2889 # OK, works on sane cases. Now check whether nonexistent headers
2890 # can be detected and how.
2891 cat >conftest.$ac_ext <<_ACEOF
2894 cat confdefs.h >>conftest.$ac_ext
2895 cat >>conftest.$ac_ext <<_ACEOF
2896 /* end confdefs.h. */
2897 #include <ac_nonexistent.h>
2899 if { (ac_try="$ac_cpp conftest.$ac_ext"
2901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2902 *) ac_try_echo=$ac_try;;
2904 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2905 $as_echo "$ac_try_echo") >&5
2906 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2908 grep -v '^ *+' conftest.er1 >conftest.err
2910 cat conftest.err >&5
2911 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2912 (exit $ac_status); } >/dev/null && {
2913 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2914 test ! -s conftest.err
2916 # Broken: success on invalid input.
2919 $as_echo "$as_me: failed program was:" >&5
2920 sed 's/^/| /' conftest.$ac_ext >&5
2922 # Passes both tests.
2927 rm -f conftest.err conftest.$ac_ext
2930 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2931 rm -f conftest.err conftest.$ac_ext
2932 if $ac_preproc_ok; then
2944 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
2945 $as_echo "$CPP" >&6; }
2947 for ac_c_preproc_warn_flag in '' yes
2949 # Use a header file that comes with gcc, so configuring glibc
2950 # with a fresh cross-compiler works.
2951 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2952 # <limits.h> exists even on freestanding compilers.
2953 # On the NeXT, cc -E runs the code through the compiler's parser,
2954 # not just through cpp. "Syntax error" is here to catch this case.
2955 cat >conftest.$ac_ext <<_ACEOF
2958 cat confdefs.h >>conftest.$ac_ext
2959 cat >>conftest.$ac_ext <<_ACEOF
2960 /* end confdefs.h. */
2962 # include <limits.h>
2964 # include <assert.h>
2968 if { (ac_try="$ac_cpp conftest.$ac_ext"
2970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2971 *) ac_try_echo=$ac_try;;
2973 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2974 $as_echo "$ac_try_echo") >&5
2975 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2977 grep -v '^ *+' conftest.er1 >conftest.err
2979 cat conftest.err >&5
2980 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2981 (exit $ac_status); } >/dev/null && {
2982 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2983 test ! -s conftest.err
2987 $as_echo "$as_me: failed program was:" >&5
2988 sed 's/^/| /' conftest.$ac_ext >&5
2990 # Broken: fails on valid input.
2994 rm -f conftest.err conftest.$ac_ext
2996 # OK, works on sane cases. Now check whether nonexistent headers
2997 # can be detected and how.
2998 cat >conftest.$ac_ext <<_ACEOF
3001 cat confdefs.h >>conftest.$ac_ext
3002 cat >>conftest.$ac_ext <<_ACEOF
3003 /* end confdefs.h. */
3004 #include <ac_nonexistent.h>
3006 if { (ac_try="$ac_cpp conftest.$ac_ext"
3008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3009 *) ac_try_echo=$ac_try;;
3011 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3012 $as_echo "$ac_try_echo") >&5
3013 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3015 grep -v '^ *+' conftest.er1 >conftest.err
3017 cat conftest.err >&5
3018 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3019 (exit $ac_status); } >/dev/null && {
3020 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3021 test ! -s conftest.err
3023 # Broken: success on invalid input.
3026 $as_echo "$as_me: failed program was:" >&5
3027 sed 's/^/| /' conftest.$ac_ext >&5
3029 # Passes both tests.
3034 rm -f conftest.err conftest.$ac_ext
3037 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3038 rm -f conftest.err conftest.$ac_ext
3039 if $ac_preproc_ok; then
3042 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3043 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3044 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3045 See \`config.log' for more details." >&5
3046 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3047 See \`config.log' for more details." >&2;}
3048 { (exit 1); exit 1; }; }; }
3052 ac_cpp='$CPP $CPPFLAGS'
3053 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3054 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3055 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3058 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3059 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3060 if test "${ac_cv_path_GREP+set}" = set; then
3061 $as_echo_n "(cached) " >&6
3063 if test -z "$GREP"; then
3064 ac_path_GREP_found=false
3065 # Loop through the user's path and test for each of PROGNAME-LIST
3066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3067 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3070 test -z "$as_dir" && as_dir=.
3071 for ac_prog in grep ggrep; do
3072 for ac_exec_ext in '' $ac_executable_extensions; do
3073 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3074 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3075 # Check for GNU ac_path_GREP and select it if it is found.
3076 # Check for GNU $ac_path_GREP
3077 case `"$ac_path_GREP" --version 2>&1` in
3079 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3082 $as_echo_n 0123456789 >"conftest.in"
3085 cat "conftest.in" "conftest.in" >"conftest.tmp"
3086 mv "conftest.tmp" "conftest.in"
3087 cp "conftest.in" "conftest.nl"
3088 $as_echo 'GREP' >> "conftest.nl"
3089 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3090 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3091 ac_count=`expr $ac_count + 1`
3092 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3093 # Best one so far, save it but keep looking for a better one
3094 ac_cv_path_GREP="$ac_path_GREP"
3095 ac_path_GREP_max=$ac_count
3097 # 10*(2^10) chars as input seems more than enough
3098 test $ac_count -gt 10 && break
3100 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3103 $ac_path_GREP_found && break 3
3108 if test -z "$ac_cv_path_GREP"; then
3109 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3110 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3111 { (exit 1); exit 1; }; }
3114 ac_cv_path_GREP=$GREP
3118 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3119 $as_echo "$ac_cv_path_GREP" >&6; }
3120 GREP="$ac_cv_path_GREP"
3123 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
3124 $as_echo_n "checking for egrep... " >&6; }
3125 if test "${ac_cv_path_EGREP+set}" = set; then
3126 $as_echo_n "(cached) " >&6
3128 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3129 then ac_cv_path_EGREP="$GREP -E"
3131 if test -z "$EGREP"; then
3132 ac_path_EGREP_found=false
3133 # Loop through the user's path and test for each of PROGNAME-LIST
3134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3135 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3138 test -z "$as_dir" && as_dir=.
3139 for ac_prog in egrep; do
3140 for ac_exec_ext in '' $ac_executable_extensions; do
3141 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3142 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3143 # Check for GNU ac_path_EGREP and select it if it is found.
3144 # Check for GNU $ac_path_EGREP
3145 case `"$ac_path_EGREP" --version 2>&1` in
3147 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3150 $as_echo_n 0123456789 >"conftest.in"
3153 cat "conftest.in" "conftest.in" >"conftest.tmp"
3154 mv "conftest.tmp" "conftest.in"
3155 cp "conftest.in" "conftest.nl"
3156 $as_echo 'EGREP' >> "conftest.nl"
3157 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3158 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3159 ac_count=`expr $ac_count + 1`
3160 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3161 # Best one so far, save it but keep looking for a better one
3162 ac_cv_path_EGREP="$ac_path_EGREP"
3163 ac_path_EGREP_max=$ac_count
3165 # 10*(2^10) chars as input seems more than enough
3166 test $ac_count -gt 10 && break
3168 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3171 $ac_path_EGREP_found && break 3
3176 if test -z "$ac_cv_path_EGREP"; then
3177 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3178 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3179 { (exit 1); exit 1; }; }
3182 ac_cv_path_EGREP=$EGREP
3187 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3188 $as_echo "$ac_cv_path_EGREP" >&6; }
3189 EGREP="$ac_cv_path_EGREP"
3192 if test $ac_cv_c_compiler_gnu = yes; then
3193 { $as_echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3194 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
3195 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3196 $as_echo_n "(cached) " >&6
3198 ac_pattern="Autoconf.*'x'"
3199 cat >conftest.$ac_ext <<_ACEOF
3202 cat confdefs.h >>conftest.$ac_ext
3203 cat >>conftest.$ac_ext <<_ACEOF
3204 /* end confdefs.h. */
3208 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3209 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3210 ac_cv_prog_gcc_traditional=yes
3212 ac_cv_prog_gcc_traditional=no
3217 if test $ac_cv_prog_gcc_traditional = no; then
3218 cat >conftest.$ac_ext <<_ACEOF
3221 cat confdefs.h >>conftest.$ac_ext
3222 cat >>conftest.$ac_ext <<_ACEOF
3223 /* end confdefs.h. */
3227 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3228 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3229 ac_cv_prog_gcc_traditional=yes
3235 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3236 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
3237 if test $ac_cv_prog_gcc_traditional = yes; then
3238 CC="$CC -traditional"
3243 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3244 if test -f "$ac_dir/install-sh"; then
3246 ac_install_sh="$ac_aux_dir/install-sh -c"
3248 elif test -f "$ac_dir/install.sh"; then
3250 ac_install_sh="$ac_aux_dir/install.sh -c"
3252 elif test -f "$ac_dir/shtool"; then
3254 ac_install_sh="$ac_aux_dir/shtool install -c"
3258 if test -z "$ac_aux_dir"; then
3259 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
3260 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
3261 { (exit 1); exit 1; }; }
3264 # These three variables are undocumented and unsupported,
3265 # and are intended to be withdrawn in a future Autoconf release.
3266 # They can cause serious problems if a builder's source tree is in a directory
3267 # whose full name contains unusual characters.
3268 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3269 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3270 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3273 # Find a good install program. We prefer a C program (faster),
3274 # so one script is as good as another. But avoid the broken or
3275 # incompatible versions:
3276 # SysV /etc/install, /usr/sbin/install
3277 # SunOS /usr/etc/install
3278 # IRIX /sbin/install
3280 # AmigaOS /C/install, which installs bootblocks on floppy discs
3281 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3282 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3283 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3284 # OS/2's system install, which has a completely different semantic
3285 # ./install, which can be erroneously created by make from ./install.sh.
3286 # Reject install programs that cannot install multiple files.
3287 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3288 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3289 if test -z "$INSTALL"; then
3290 if test "${ac_cv_path_install+set}" = set; then
3291 $as_echo_n "(cached) " >&6
3293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3297 test -z "$as_dir" && as_dir=.
3298 # Account for people who put trailing slashes in PATH elements.
3300 ./ | .// | /cC/* | \
3301 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3302 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3305 # OSF1 and SCO ODT 3.0 have their own names for install.
3306 # Don't use installbsd from OSF since it installs stuff as root
3308 for ac_prog in ginstall scoinst install; do
3309 for ac_exec_ext in '' $ac_executable_extensions; do
3310 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3311 if test $ac_prog = install &&
3312 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3313 # AIX install. It has an incompatible calling convention.
3315 elif test $ac_prog = install &&
3316 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3317 # program-specific install script used by HP pwplus--don't use.
3320 rm -rf conftest.one conftest.two conftest.dir
3321 echo one > conftest.one
3322 echo two > conftest.two
3324 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3325 test -s conftest.one && test -s conftest.two &&
3326 test -s conftest.dir/conftest.one &&
3327 test -s conftest.dir/conftest.two
3329 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3342 rm -rf conftest.one conftest.two conftest.dir
3345 if test "${ac_cv_path_install+set}" = set; then
3346 INSTALL=$ac_cv_path_install
3348 # As a last resort, use the slow shell script. Don't cache a
3349 # value for INSTALL within a source directory, because that will
3350 # break other packages using the cache if that directory is
3351 # removed, or if the value is a relative name.
3352 INSTALL=$ac_install_sh
3355 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
3356 $as_echo "$INSTALL" >&6; }
3358 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3359 # It thinks the first close brace ends the variable substitution.
3360 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3362 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3364 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3367 # Checks for compilation model.
3368 # Check whether --enable-largefile was given.
3369 if test "${enable_largefile+set}" = set; then
3370 enableval=$enable_largefile;
3373 if test "$enable_largefile" != no; then
3375 { $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
3376 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
3377 if test "${ac_cv_sys_largefile_CC+set}" = set; then
3378 $as_echo_n "(cached) " >&6
3380 ac_cv_sys_largefile_CC=no
3381 if test "$GCC" != yes; then
3384 # IRIX 6.2 and later do not support large files by default,
3385 # so use the C compiler's -n32 option if that helps.
3386 cat >conftest.$ac_ext <<_ACEOF
3389 cat confdefs.h >>conftest.$ac_ext
3390 cat >>conftest.$ac_ext <<_ACEOF
3391 /* end confdefs.h. */
3392 #include <sys/types.h>
3393 /* Check that off_t can represent 2**63 - 1 correctly.
3394 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3395 since some C++ compilers masquerading as C compilers
3396 incorrectly reject 9223372036854775807. */
3397 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3398 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3399 && LARGE_OFF_T % 2147483647 == 1)
3409 rm -f conftest.$ac_objext
3410 if { (ac_try="$ac_compile"
3412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3413 *) ac_try_echo=$ac_try;;
3415 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3416 $as_echo "$ac_try_echo") >&5
3417 (eval "$ac_compile") 2>conftest.er1
3419 grep -v '^ *+' conftest.er1 >conftest.err
3421 cat conftest.err >&5
3422 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3423 (exit $ac_status); } && {
3424 test -z "$ac_c_werror_flag" ||
3425 test ! -s conftest.err
3426 } && test -s conftest.$ac_objext; then
3429 $as_echo "$as_me: failed program was:" >&5
3430 sed 's/^/| /' conftest.$ac_ext >&5
3435 rm -f core conftest.err conftest.$ac_objext
3437 rm -f conftest.$ac_objext
3438 if { (ac_try="$ac_compile"
3440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3441 *) ac_try_echo=$ac_try;;
3443 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3444 $as_echo "$ac_try_echo") >&5
3445 (eval "$ac_compile") 2>conftest.er1
3447 grep -v '^ *+' conftest.er1 >conftest.err
3449 cat conftest.err >&5
3450 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3451 (exit $ac_status); } && {
3452 test -z "$ac_c_werror_flag" ||
3453 test ! -s conftest.err
3454 } && test -s conftest.$ac_objext; then
3455 ac_cv_sys_largefile_CC=' -n32'; break
3457 $as_echo "$as_me: failed program was:" >&5
3458 sed 's/^/| /' conftest.$ac_ext >&5
3463 rm -f core conftest.err conftest.$ac_objext
3467 rm -f conftest.$ac_ext
3470 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
3471 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
3472 if test "$ac_cv_sys_largefile_CC" != no; then
3473 CC=$CC$ac_cv_sys_largefile_CC
3476 { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
3477 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
3478 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
3479 $as_echo_n "(cached) " >&6
3482 cat >conftest.$ac_ext <<_ACEOF
3485 cat confdefs.h >>conftest.$ac_ext
3486 cat >>conftest.$ac_ext <<_ACEOF
3487 /* end confdefs.h. */
3488 #include <sys/types.h>
3489 /* Check that off_t can represent 2**63 - 1 correctly.
3490 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3491 since some C++ compilers masquerading as C compilers
3492 incorrectly reject 9223372036854775807. */
3493 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3494 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3495 && LARGE_OFF_T % 2147483647 == 1)
3505 rm -f conftest.$ac_objext
3506 if { (ac_try="$ac_compile"
3508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3509 *) ac_try_echo=$ac_try;;
3511 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3512 $as_echo "$ac_try_echo") >&5
3513 (eval "$ac_compile") 2>conftest.er1
3515 grep -v '^ *+' conftest.er1 >conftest.err
3517 cat conftest.err >&5
3518 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3519 (exit $ac_status); } && {
3520 test -z "$ac_c_werror_flag" ||
3521 test ! -s conftest.err
3522 } && test -s conftest.$ac_objext; then
3523 ac_cv_sys_file_offset_bits=no; break
3525 $as_echo "$as_me: failed program was:" >&5
3526 sed 's/^/| /' conftest.$ac_ext >&5
3531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3532 cat >conftest.$ac_ext <<_ACEOF
3535 cat confdefs.h >>conftest.$ac_ext
3536 cat >>conftest.$ac_ext <<_ACEOF
3537 /* end confdefs.h. */
3538 #define _FILE_OFFSET_BITS 64
3539 #include <sys/types.h>
3540 /* Check that off_t can represent 2**63 - 1 correctly.
3541 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3542 since some C++ compilers masquerading as C compilers
3543 incorrectly reject 9223372036854775807. */
3544 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3545 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3546 && LARGE_OFF_T % 2147483647 == 1)
3556 rm -f conftest.$ac_objext
3557 if { (ac_try="$ac_compile"
3559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3560 *) ac_try_echo=$ac_try;;
3562 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3563 $as_echo "$ac_try_echo") >&5
3564 (eval "$ac_compile") 2>conftest.er1
3566 grep -v '^ *+' conftest.er1 >conftest.err
3568 cat conftest.err >&5
3569 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3570 (exit $ac_status); } && {
3571 test -z "$ac_c_werror_flag" ||
3572 test ! -s conftest.err
3573 } && test -s conftest.$ac_objext; then
3574 ac_cv_sys_file_offset_bits=64; break
3576 $as_echo "$as_me: failed program was:" >&5
3577 sed 's/^/| /' conftest.$ac_ext >&5
3582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3583 ac_cv_sys_file_offset_bits=unknown
3587 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
3588 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
3589 case $ac_cv_sys_file_offset_bits in #(
3592 cat >>confdefs.h <<_ACEOF
3593 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
3598 if test $ac_cv_sys_file_offset_bits = unknown; then
3599 { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
3600 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
3601 if test "${ac_cv_sys_large_files+set}" = set; then
3602 $as_echo_n "(cached) " >&6
3605 cat >conftest.$ac_ext <<_ACEOF
3608 cat confdefs.h >>conftest.$ac_ext
3609 cat >>conftest.$ac_ext <<_ACEOF
3610 /* end confdefs.h. */
3611 #include <sys/types.h>
3612 /* Check that off_t can represent 2**63 - 1 correctly.
3613 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3614 since some C++ compilers masquerading as C compilers
3615 incorrectly reject 9223372036854775807. */
3616 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3617 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3618 && LARGE_OFF_T % 2147483647 == 1)
3628 rm -f conftest.$ac_objext
3629 if { (ac_try="$ac_compile"
3631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3632 *) ac_try_echo=$ac_try;;
3634 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3635 $as_echo "$ac_try_echo") >&5
3636 (eval "$ac_compile") 2>conftest.er1
3638 grep -v '^ *+' conftest.er1 >conftest.err
3640 cat conftest.err >&5
3641 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3642 (exit $ac_status); } && {
3643 test -z "$ac_c_werror_flag" ||
3644 test ! -s conftest.err
3645 } && test -s conftest.$ac_objext; then
3646 ac_cv_sys_large_files=no; break
3648 $as_echo "$as_me: failed program was:" >&5
3649 sed 's/^/| /' conftest.$ac_ext >&5
3654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3655 cat >conftest.$ac_ext <<_ACEOF
3658 cat confdefs.h >>conftest.$ac_ext
3659 cat >>conftest.$ac_ext <<_ACEOF
3660 /* end confdefs.h. */
3661 #define _LARGE_FILES 1
3662 #include <sys/types.h>
3663 /* Check that off_t can represent 2**63 - 1 correctly.
3664 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3665 since some C++ compilers masquerading as C compilers
3666 incorrectly reject 9223372036854775807. */
3667 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3668 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3669 && LARGE_OFF_T % 2147483647 == 1)
3679 rm -f conftest.$ac_objext
3680 if { (ac_try="$ac_compile"
3682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3683 *) ac_try_echo=$ac_try;;
3685 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3686 $as_echo "$ac_try_echo") >&5
3687 (eval "$ac_compile") 2>conftest.er1
3689 grep -v '^ *+' conftest.er1 >conftest.err
3691 cat conftest.err >&5
3692 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3693 (exit $ac_status); } && {
3694 test -z "$ac_c_werror_flag" ||
3695 test ! -s conftest.err
3696 } && test -s conftest.$ac_objext; then
3697 ac_cv_sys_large_files=1; break
3699 $as_echo "$as_me: failed program was:" >&5
3700 sed 's/^/| /' conftest.$ac_ext >&5
3705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3706 ac_cv_sys_large_files=unknown
3710 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
3711 $as_echo "$ac_cv_sys_large_files" >&6; }
3712 case $ac_cv_sys_large_files in #(
3715 cat >>confdefs.h <<_ACEOF
3716 #define _LARGE_FILES $ac_cv_sys_large_files
3725 # Checks for general libraries.
3726 { $as_echo "$as_me:$LINENO: checking for tgoto in -ltinfo" >&5
3727 $as_echo_n "checking for tgoto in -ltinfo... " >&6; }
3728 if test "${ac_cv_lib_tinfo_tgoto+set}" = set; then
3729 $as_echo_n "(cached) " >&6
3731 ac_check_lib_save_LIBS=$LIBS
3732 LIBS="-ltinfo $LIBS"
3733 cat >conftest.$ac_ext <<_ACEOF
3736 cat confdefs.h >>conftest.$ac_ext
3737 cat >>conftest.$ac_ext <<_ACEOF
3738 /* end confdefs.h. */
3740 /* Override any GCC internal prototype to avoid an error.
3741 Use char because int might match the return type of a GCC
3742 builtin and then its argument prototype would still apply. */
3755 rm -f conftest.$ac_objext conftest$ac_exeext
3756 if { (ac_try="$ac_link"
3758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3759 *) ac_try_echo=$ac_try;;
3761 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3762 $as_echo "$ac_try_echo") >&5
3763 (eval "$ac_link") 2>conftest.er1
3765 grep -v '^ *+' conftest.er1 >conftest.err
3767 cat conftest.err >&5
3768 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3769 (exit $ac_status); } && {
3770 test -z "$ac_c_werror_flag" ||
3771 test ! -s conftest.err
3772 } && test -s conftest$ac_exeext && {
3773 test "$cross_compiling" = yes ||
3774 $as_test_x conftest$ac_exeext
3776 ac_cv_lib_tinfo_tgoto=yes
3778 $as_echo "$as_me: failed program was:" >&5
3779 sed 's/^/| /' conftest.$ac_ext >&5
3781 ac_cv_lib_tinfo_tgoto=no
3784 rm -rf conftest.dSYM
3785 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3786 conftest$ac_exeext conftest.$ac_ext
3787 LIBS=$ac_check_lib_save_LIBS
3789 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_tinfo_tgoto" >&5
3790 $as_echo "$ac_cv_lib_tinfo_tgoto" >&6; }
3791 if test "x$ac_cv_lib_tinfo_tgoto" = x""yes; then
3797 { $as_echo "$as_me:$LINENO: checking for initscr in -lxcurses" >&5
3798 $as_echo_n "checking for initscr in -lxcurses... " >&6; }
3799 if test "${ac_cv_lib_xcurses_initscr+set}" = set; then
3800 $as_echo_n "(cached) " >&6
3802 ac_check_lib_save_LIBS=$LIBS
3803 LIBS="-lxcurses $LIBS"
3804 cat >conftest.$ac_ext <<_ACEOF
3807 cat confdefs.h >>conftest.$ac_ext
3808 cat >>conftest.$ac_ext <<_ACEOF
3809 /* end confdefs.h. */
3811 /* Override any GCC internal prototype to avoid an error.
3812 Use char because int might match the return type of a GCC
3813 builtin and then its argument prototype would still apply. */
3826 rm -f conftest.$ac_objext conftest$ac_exeext
3827 if { (ac_try="$ac_link"
3829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3830 *) ac_try_echo=$ac_try;;
3832 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3833 $as_echo "$ac_try_echo") >&5
3834 (eval "$ac_link") 2>conftest.er1
3836 grep -v '^ *+' conftest.er1 >conftest.err
3838 cat conftest.err >&5
3839 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3840 (exit $ac_status); } && {
3841 test -z "$ac_c_werror_flag" ||
3842 test ! -s conftest.err
3843 } && test -s conftest$ac_exeext && {
3844 test "$cross_compiling" = yes ||
3845 $as_test_x conftest$ac_exeext
3847 ac_cv_lib_xcurses_initscr=yes
3849 $as_echo "$as_me: failed program was:" >&5
3850 sed 's/^/| /' conftest.$ac_ext >&5
3852 ac_cv_lib_xcurses_initscr=no
3855 rm -rf conftest.dSYM
3856 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3857 conftest$ac_exeext conftest.$ac_ext
3858 LIBS=$ac_check_lib_save_LIBS
3860 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_xcurses_initscr" >&5
3861 $as_echo "$ac_cv_lib_xcurses_initscr" >&6; }
3862 if test "x$ac_cv_lib_xcurses_initscr" = x""yes; then
3868 { $as_echo "$as_me:$LINENO: checking for initscr in -lncursesw" >&5
3869 $as_echo_n "checking for initscr in -lncursesw... " >&6; }
3870 if test "${ac_cv_lib_ncursesw_initscr+set}" = set; then
3871 $as_echo_n "(cached) " >&6
3873 ac_check_lib_save_LIBS=$LIBS
3874 LIBS="-lncursesw $LIBS"
3875 cat >conftest.$ac_ext <<_ACEOF
3878 cat confdefs.h >>conftest.$ac_ext
3879 cat >>conftest.$ac_ext <<_ACEOF
3880 /* end confdefs.h. */
3882 /* Override any GCC internal prototype to avoid an error.
3883 Use char because int might match the return type of a GCC
3884 builtin and then its argument prototype would still apply. */
3897 rm -f conftest.$ac_objext conftest$ac_exeext
3898 if { (ac_try="$ac_link"
3900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3901 *) ac_try_echo=$ac_try;;
3903 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3904 $as_echo "$ac_try_echo") >&5
3905 (eval "$ac_link") 2>conftest.er1
3907 grep -v '^ *+' conftest.er1 >conftest.err
3909 cat conftest.err >&5
3910 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3911 (exit $ac_status); } && {
3912 test -z "$ac_c_werror_flag" ||
3913 test ! -s conftest.err
3914 } && test -s conftest$ac_exeext && {
3915 test "$cross_compiling" = yes ||
3916 $as_test_x conftest$ac_exeext
3918 ac_cv_lib_ncursesw_initscr=yes
3920 $as_echo "$as_me: failed program was:" >&5
3921 sed 's/^/| /' conftest.$ac_ext >&5
3923 ac_cv_lib_ncursesw_initscr=no
3926 rm -rf conftest.dSYM
3927 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3928 conftest$ac_exeext conftest.$ac_ext
3929 LIBS=$ac_check_lib_save_LIBS
3931 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ncursesw_initscr" >&5
3932 $as_echo "$ac_cv_lib_ncursesw_initscr" >&6; }
3933 if test "x$ac_cv_lib_ncursesw_initscr" = x""yes; then
3939 { $as_echo "$as_me:$LINENO: checking for initscr in -lncurses" >&5
3940 $as_echo_n "checking for initscr in -lncurses... " >&6; }
3941 if test "${ac_cv_lib_ncurses_initscr+set}" = set; then
3942 $as_echo_n "(cached) " >&6
3944 ac_check_lib_save_LIBS=$LIBS
3945 LIBS="-lncurses $LIBS"
3946 cat >conftest.$ac_ext <<_ACEOF
3949 cat confdefs.h >>conftest.$ac_ext
3950 cat >>conftest.$ac_ext <<_ACEOF
3951 /* end confdefs.h. */
3953 /* Override any GCC internal prototype to avoid an error.
3954 Use char because int might match the return type of a GCC
3955 builtin and then its argument prototype would still apply. */
3968 rm -f conftest.$ac_objext conftest$ac_exeext
3969 if { (ac_try="$ac_link"
3971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3972 *) ac_try_echo=$ac_try;;
3974 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3975 $as_echo "$ac_try_echo") >&5
3976 (eval "$ac_link") 2>conftest.er1
3978 grep -v '^ *+' conftest.er1 >conftest.err
3980 cat conftest.err >&5
3981 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3982 (exit $ac_status); } && {
3983 test -z "$ac_c_werror_flag" ||
3984 test ! -s conftest.err
3985 } && test -s conftest$ac_exeext && {
3986 test "$cross_compiling" = yes ||
3987 $as_test_x conftest$ac_exeext
3989 ac_cv_lib_ncurses_initscr=yes
3991 $as_echo "$as_me: failed program was:" >&5
3992 sed 's/^/| /' conftest.$ac_ext >&5
3994 ac_cv_lib_ncurses_initscr=no
3997 rm -rf conftest.dSYM
3998 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3999 conftest$ac_exeext conftest.$ac_ext
4000 LIBS=$ac_check_lib_save_LIBS
4002 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_initscr" >&5
4003 $as_echo "$ac_cv_lib_ncurses_initscr" >&6; }
4004 if test "x$ac_cv_lib_ncurses_initscr" = x""yes; then
4010 { $as_echo "$as_me:$LINENO: checking for initscr in -lcurses" >&5
4011 $as_echo_n "checking for initscr in -lcurses... " >&6; }
4012 if test "${ac_cv_lib_curses_initscr+set}" = set; then
4013 $as_echo_n "(cached) " >&6
4015 ac_check_lib_save_LIBS=$LIBS
4016 LIBS="-lcurses $LIBS"
4017 cat >conftest.$ac_ext <<_ACEOF
4020 cat confdefs.h >>conftest.$ac_ext
4021 cat >>conftest.$ac_ext <<_ACEOF
4022 /* end confdefs.h. */
4024 /* Override any GCC internal prototype to avoid an error.
4025 Use char because int might match the return type of a GCC
4026 builtin and then its argument prototype would still apply. */
4039 rm -f conftest.$ac_objext conftest$ac_exeext
4040 if { (ac_try="$ac_link"
4042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4043 *) ac_try_echo=$ac_try;;
4045 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4046 $as_echo "$ac_try_echo") >&5
4047 (eval "$ac_link") 2>conftest.er1
4049 grep -v '^ *+' conftest.er1 >conftest.err
4051 cat conftest.err >&5
4052 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4053 (exit $ac_status); } && {
4054 test -z "$ac_c_werror_flag" ||
4055 test ! -s conftest.err
4056 } && test -s conftest$ac_exeext && {
4057 test "$cross_compiling" = yes ||
4058 $as_test_x conftest$ac_exeext
4060 ac_cv_lib_curses_initscr=yes
4062 $as_echo "$as_me: failed program was:" >&5
4063 sed 's/^/| /' conftest.$ac_ext >&5
4065 ac_cv_lib_curses_initscr=no
4068 rm -rf conftest.dSYM
4069 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4070 conftest$ac_exeext conftest.$ac_ext
4071 LIBS=$ac_check_lib_save_LIBS
4073 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_curses_initscr" >&5
4074 $as_echo "$ac_cv_lib_curses_initscr" >&6; }
4075 if test "x$ac_cv_lib_curses_initscr" = x""yes; then
4081 { $as_echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
4082 $as_echo_n "checking for tgetent in -ltermcap... " >&6; }
4083 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
4084 $as_echo_n "(cached) " >&6
4086 ac_check_lib_save_LIBS=$LIBS
4087 LIBS="-ltermcap $LIBS"
4088 cat >conftest.$ac_ext <<_ACEOF
4091 cat confdefs.h >>conftest.$ac_ext
4092 cat >>conftest.$ac_ext <<_ACEOF
4093 /* end confdefs.h. */
4095 /* Override any GCC internal prototype to avoid an error.
4096 Use char because int might match the return type of a GCC
4097 builtin and then its argument prototype would still apply. */
4110 rm -f conftest.$ac_objext conftest$ac_exeext
4111 if { (ac_try="$ac_link"
4113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4114 *) ac_try_echo=$ac_try;;
4116 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4117 $as_echo "$ac_try_echo") >&5
4118 (eval "$ac_link") 2>conftest.er1
4120 grep -v '^ *+' conftest.er1 >conftest.err
4122 cat conftest.err >&5
4123 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4124 (exit $ac_status); } && {
4125 test -z "$ac_c_werror_flag" ||
4126 test ! -s conftest.err
4127 } && test -s conftest$ac_exeext && {
4128 test "$cross_compiling" = yes ||
4129 $as_test_x conftest$ac_exeext
4131 ac_cv_lib_termcap_tgetent=yes
4133 $as_echo "$as_me: failed program was:" >&5
4134 sed 's/^/| /' conftest.$ac_ext >&5
4136 ac_cv_lib_termcap_tgetent=no
4139 rm -rf conftest.dSYM
4140 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4141 conftest$ac_exeext conftest.$ac_ext
4142 LIBS=$ac_check_lib_save_LIBS
4144 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
4145 $as_echo "$ac_cv_lib_termcap_tgetent" >&6; }
4146 if test "x$ac_cv_lib_termcap_tgetent" = x""yes; then
4152 { $as_echo "$as_me:$LINENO: checking for tgetent in -ltermlib" >&5
4153 $as_echo_n "checking for tgetent in -ltermlib... " >&6; }
4154 if test "${ac_cv_lib_termlib_tgetent+set}" = set; then
4155 $as_echo_n "(cached) " >&6
4157 ac_check_lib_save_LIBS=$LIBS
4158 LIBS="-ltermlib $LIBS"
4159 cat >conftest.$ac_ext <<_ACEOF
4162 cat confdefs.h >>conftest.$ac_ext
4163 cat >>conftest.$ac_ext <<_ACEOF
4164 /* end confdefs.h. */
4166 /* Override any GCC internal prototype to avoid an error.
4167 Use char because int might match the return type of a GCC
4168 builtin and then its argument prototype would still apply. */
4181 rm -f conftest.$ac_objext conftest$ac_exeext
4182 if { (ac_try="$ac_link"
4184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4185 *) ac_try_echo=$ac_try;;
4187 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4188 $as_echo "$ac_try_echo") >&5
4189 (eval "$ac_link") 2>conftest.er1
4191 grep -v '^ *+' conftest.er1 >conftest.err
4193 cat conftest.err >&5
4194 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4195 (exit $ac_status); } && {
4196 test -z "$ac_c_werror_flag" ||
4197 test ! -s conftest.err
4198 } && test -s conftest$ac_exeext && {
4199 test "$cross_compiling" = yes ||
4200 $as_test_x conftest$ac_exeext
4202 ac_cv_lib_termlib_tgetent=yes
4204 $as_echo "$as_me: failed program was:" >&5
4205 sed 's/^/| /' conftest.$ac_ext >&5
4207 ac_cv_lib_termlib_tgetent=no
4210 rm -rf conftest.dSYM
4211 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4212 conftest$ac_exeext conftest.$ac_ext
4213 LIBS=$ac_check_lib_save_LIBS
4215 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_termlib_tgetent" >&5
4216 $as_echo "$ac_cv_lib_termlib_tgetent" >&6; }
4217 if test "x$ac_cv_lib_termlib_tgetent" = x""yes; then
4223 # Regular expressions (regcmp) are in -lgen on Solaris 2,
4224 # and in -lintl on SCO Unix.
4226 { $as_echo "$as_me:$LINENO: checking for regcmp in -lgen" >&5
4227 $as_echo_n "checking for regcmp in -lgen... " >&6; }
4228 if test "${ac_cv_lib_gen_regcmp+set}" = set; then
4229 $as_echo_n "(cached) " >&6
4231 ac_check_lib_save_LIBS=$LIBS
4233 cat >conftest.$ac_ext <<_ACEOF
4236 cat confdefs.h >>conftest.$ac_ext
4237 cat >>conftest.$ac_ext <<_ACEOF
4238 /* end confdefs.h. */
4240 /* Override any GCC internal prototype to avoid an error.
4241 Use char because int might match the return type of a GCC
4242 builtin and then its argument prototype would still apply. */
4255 rm -f conftest.$ac_objext conftest$ac_exeext
4256 if { (ac_try="$ac_link"
4258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4259 *) ac_try_echo=$ac_try;;
4261 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4262 $as_echo "$ac_try_echo") >&5
4263 (eval "$ac_link") 2>conftest.er1
4265 grep -v '^ *+' conftest.er1 >conftest.err
4267 cat conftest.err >&5
4268 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4269 (exit $ac_status); } && {
4270 test -z "$ac_c_werror_flag" ||
4271 test ! -s conftest.err
4272 } && test -s conftest$ac_exeext && {
4273 test "$cross_compiling" = yes ||
4274 $as_test_x conftest$ac_exeext
4276 ac_cv_lib_gen_regcmp=yes
4278 $as_echo "$as_me: failed program was:" >&5
4279 sed 's/^/| /' conftest.$ac_ext >&5
4281 ac_cv_lib_gen_regcmp=no
4284 rm -rf conftest.dSYM
4285 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4286 conftest$ac_exeext conftest.$ac_ext
4287 LIBS=$ac_check_lib_save_LIBS
4289 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gen_regcmp" >&5
4290 $as_echo "$ac_cv_lib_gen_regcmp" >&6; }
4291 if test "x$ac_cv_lib_gen_regcmp" = x""yes; then
4292 cat >>confdefs.h <<_ACEOF
4293 #define HAVE_LIBGEN 1
4301 { $as_echo "$as_me:$LINENO: checking for regcmp in -lintl" >&5
4302 $as_echo_n "checking for regcmp in -lintl... " >&6; }
4303 if test "${ac_cv_lib_intl_regcmp+set}" = set; then
4304 $as_echo_n "(cached) " >&6
4306 ac_check_lib_save_LIBS=$LIBS
4308 cat >conftest.$ac_ext <<_ACEOF
4311 cat confdefs.h >>conftest.$ac_ext
4312 cat >>conftest.$ac_ext <<_ACEOF
4313 /* end confdefs.h. */
4315 /* Override any GCC internal prototype to avoid an error.
4316 Use char because int might match the return type of a GCC
4317 builtin and then its argument prototype would still apply. */
4330 rm -f conftest.$ac_objext conftest$ac_exeext
4331 if { (ac_try="$ac_link"
4333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4334 *) ac_try_echo=$ac_try;;
4336 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4337 $as_echo "$ac_try_echo") >&5
4338 (eval "$ac_link") 2>conftest.er1
4340 grep -v '^ *+' conftest.er1 >conftest.err
4342 cat conftest.err >&5
4343 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4344 (exit $ac_status); } && {
4345 test -z "$ac_c_werror_flag" ||
4346 test ! -s conftest.err
4347 } && test -s conftest$ac_exeext && {
4348 test "$cross_compiling" = yes ||
4349 $as_test_x conftest$ac_exeext
4351 ac_cv_lib_intl_regcmp=yes
4353 $as_echo "$as_me: failed program was:" >&5
4354 sed 's/^/| /' conftest.$ac_ext >&5
4356 ac_cv_lib_intl_regcmp=no
4359 rm -rf conftest.dSYM
4360 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4361 conftest$ac_exeext conftest.$ac_ext
4362 LIBS=$ac_check_lib_save_LIBS
4364 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_regcmp" >&5
4365 $as_echo "$ac_cv_lib_intl_regcmp" >&6; }
4366 if test "x$ac_cv_lib_intl_regcmp" = x""yes; then
4367 cat >>confdefs.h <<_ACEOF
4368 #define HAVE_LIBINTL 1
4376 { $as_echo "$as_me:$LINENO: checking for regcmp in -lPW" >&5
4377 $as_echo_n "checking for regcmp in -lPW... " >&6; }
4378 if test "${ac_cv_lib_PW_regcmp+set}" = set; then
4379 $as_echo_n "(cached) " >&6
4381 ac_check_lib_save_LIBS=$LIBS
4383 cat >conftest.$ac_ext <<_ACEOF
4386 cat confdefs.h >>conftest.$ac_ext
4387 cat >>conftest.$ac_ext <<_ACEOF
4388 /* end confdefs.h. */
4390 /* Override any GCC internal prototype to avoid an error.
4391 Use char because int might match the return type of a GCC
4392 builtin and then its argument prototype would still apply. */
4405 rm -f conftest.$ac_objext conftest$ac_exeext
4406 if { (ac_try="$ac_link"
4408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4409 *) ac_try_echo=$ac_try;;
4411 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4412 $as_echo "$ac_try_echo") >&5
4413 (eval "$ac_link") 2>conftest.er1
4415 grep -v '^ *+' conftest.er1 >conftest.err
4417 cat conftest.err >&5
4418 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4419 (exit $ac_status); } && {
4420 test -z "$ac_c_werror_flag" ||
4421 test ! -s conftest.err
4422 } && test -s conftest$ac_exeext && {
4423 test "$cross_compiling" = yes ||
4424 $as_test_x conftest$ac_exeext
4426 ac_cv_lib_PW_regcmp=yes
4428 $as_echo "$as_me: failed program was:" >&5
4429 sed 's/^/| /' conftest.$ac_ext >&5
4431 ac_cv_lib_PW_regcmp=no
4434 rm -rf conftest.dSYM
4435 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4436 conftest$ac_exeext conftest.$ac_ext
4437 LIBS=$ac_check_lib_save_LIBS
4439 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_PW_regcmp" >&5
4440 $as_echo "$ac_cv_lib_PW_regcmp" >&6; }
4441 if test "x$ac_cv_lib_PW_regcmp" = x""yes; then
4442 cat >>confdefs.h <<_ACEOF
4443 #define HAVE_LIBPW 1
4451 # Checks for terminal libraries
4452 { $as_echo "$as_me:$LINENO: checking for working terminal libraries" >&5
4453 $as_echo_n "checking for working terminal libraries... " >&6; }
4456 # Check for systems where curses is broken.
4458 if test x`uname -s` = "xHP-UX" >/dev/null 2>&1; then
4459 if test x`uname -r` = "xB.11.00" >/dev/null 2>&1; then
4462 if test x`uname -r` = "xB.11.11" >/dev/null 2>&1; then
4467 if test $curses_broken = 0; then
4470 if test "x$TERMLIBS" = x; then
4471 if test $have_tinfo = yes; then
4474 LIBS="$LIBS $TERMLIBS"
4475 cat >conftest.$ac_ext <<_ACEOF
4478 cat confdefs.h >>conftest.$ac_ext
4479 cat >>conftest.$ac_ext <<_ACEOF
4480 /* end confdefs.h. */
4485 tgetent(0,0); tgetflag(0); tgetnum(0); tgetstr(0,0);
4490 rm -f conftest.$ac_objext conftest$ac_exeext
4491 if { (ac_try="$ac_link"
4493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4494 *) ac_try_echo=$ac_try;;
4496 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4497 $as_echo "$ac_try_echo") >&5
4498 (eval "$ac_link") 2>conftest.er1
4500 grep -v '^ *+' conftest.er1 >conftest.err
4502 cat conftest.err >&5
4503 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4504 (exit $ac_status); } && {
4505 test -z "$ac_c_werror_flag" ||
4506 test ! -s conftest.err
4507 } && test -s conftest$ac_exeext && {
4508 test "$cross_compiling" = yes ||
4509 $as_test_x conftest$ac_exeext
4513 $as_echo "$as_me: failed program was:" >&5
4514 sed 's/^/| /' conftest.$ac_ext >&5
4519 rm -rf conftest.dSYM
4520 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4521 conftest$ac_exeext conftest.$ac_ext
4523 if test $termok = no; then TERMLIBS=""; fi
4528 if test "x$TERMLIBS" = x; then
4529 if test $have_xcurses = yes; then
4530 TERMLIBS="-lxcurses"
4532 LIBS="$LIBS $TERMLIBS"
4533 cat >conftest.$ac_ext <<_ACEOF
4536 cat confdefs.h >>conftest.$ac_ext
4537 cat >>conftest.$ac_ext <<_ACEOF
4538 /* end confdefs.h. */
4543 tgetent(0,0); tgetflag(0); tgetnum(0); tgetstr(0,0);
4548 rm -f conftest.$ac_objext conftest$ac_exeext
4549 if { (ac_try="$ac_link"
4551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4552 *) ac_try_echo=$ac_try;;
4554 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4555 $as_echo "$ac_try_echo") >&5
4556 (eval "$ac_link") 2>conftest.er1
4558 grep -v '^ *+' conftest.er1 >conftest.err
4560 cat conftest.err >&5
4561 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4562 (exit $ac_status); } && {
4563 test -z "$ac_c_werror_flag" ||
4564 test ! -s conftest.err
4565 } && test -s conftest$ac_exeext && {
4566 test "$cross_compiling" = yes ||
4567 $as_test_x conftest$ac_exeext
4571 $as_echo "$as_me: failed program was:" >&5
4572 sed 's/^/| /' conftest.$ac_ext >&5
4577 rm -rf conftest.dSYM
4578 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4579 conftest$ac_exeext conftest.$ac_ext
4581 if test $termok = no; then TERMLIBS=""; fi
4586 if test "x$TERMLIBS" = x; then
4587 if test $have_ncursesw = yes; then
4588 TERMLIBS="-lncursesw"
4590 LIBS="$LIBS $TERMLIBS"
4591 cat >conftest.$ac_ext <<_ACEOF
4594 cat confdefs.h >>conftest.$ac_ext
4595 cat >>conftest.$ac_ext <<_ACEOF
4596 /* end confdefs.h. */
4601 tgetent(0,0); tgetflag(0); tgetnum(0); tgetstr(0,0);
4606 rm -f conftest.$ac_objext conftest$ac_exeext
4607 if { (ac_try="$ac_link"
4609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4610 *) ac_try_echo=$ac_try;;
4612 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4613 $as_echo "$ac_try_echo") >&5
4614 (eval "$ac_link") 2>conftest.er1
4616 grep -v '^ *+' conftest.er1 >conftest.err
4618 cat conftest.err >&5
4619 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4620 (exit $ac_status); } && {
4621 test -z "$ac_c_werror_flag" ||
4622 test ! -s conftest.err
4623 } && test -s conftest$ac_exeext && {
4624 test "$cross_compiling" = yes ||
4625 $as_test_x conftest$ac_exeext
4629 $as_echo "$as_me: failed program was:" >&5
4630 sed 's/^/| /' conftest.$ac_ext >&5
4635 rm -rf conftest.dSYM
4636 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4637 conftest$ac_exeext conftest.$ac_ext
4639 if test $termok = no; then TERMLIBS=""; fi
4644 if test "x$TERMLIBS" = x; then
4645 if test $have_ncurses = yes; then
4646 TERMLIBS="-lncurses"
4648 LIBS="$LIBS $TERMLIBS"
4649 cat >conftest.$ac_ext <<_ACEOF
4652 cat confdefs.h >>conftest.$ac_ext
4653 cat >>conftest.$ac_ext <<_ACEOF
4654 /* end confdefs.h. */
4659 tgetent(0,0); tgetflag(0); tgetnum(0); tgetstr(0,0);
4664 rm -f conftest.$ac_objext conftest$ac_exeext
4665 if { (ac_try="$ac_link"
4667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4668 *) ac_try_echo=$ac_try;;
4670 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4671 $as_echo "$ac_try_echo") >&5
4672 (eval "$ac_link") 2>conftest.er1
4674 grep -v '^ *+' conftest.er1 >conftest.err
4676 cat conftest.err >&5
4677 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4678 (exit $ac_status); } && {
4679 test -z "$ac_c_werror_flag" ||
4680 test ! -s conftest.err
4681 } && test -s conftest$ac_exeext && {
4682 test "$cross_compiling" = yes ||
4683 $as_test_x conftest$ac_exeext
4687 $as_echo "$as_me: failed program was:" >&5
4688 sed 's/^/| /' conftest.$ac_ext >&5
4693 rm -rf conftest.dSYM
4694 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4695 conftest$ac_exeext conftest.$ac_ext
4697 if test $termok = no; then TERMLIBS=""; fi
4702 if test "x$TERMLIBS" = x; then
4703 if test $have_curses = yes; then
4706 LIBS="$LIBS $TERMLIBS"
4707 cat >conftest.$ac_ext <<_ACEOF
4710 cat confdefs.h >>conftest.$ac_ext
4711 cat >>conftest.$ac_ext <<_ACEOF
4712 /* end confdefs.h. */
4717 tgetent(0,0); tgetflag(0); tgetnum(0); tgetstr(0,0);
4722 rm -f conftest.$ac_objext conftest$ac_exeext
4723 if { (ac_try="$ac_link"
4725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4726 *) ac_try_echo=$ac_try;;
4728 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4729 $as_echo "$ac_try_echo") >&5
4730 (eval "$ac_link") 2>conftest.er1
4732 grep -v '^ *+' conftest.er1 >conftest.err
4734 cat conftest.err >&5
4735 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4736 (exit $ac_status); } && {
4737 test -z "$ac_c_werror_flag" ||
4738 test ! -s conftest.err
4739 } && test -s conftest$ac_exeext && {
4740 test "$cross_compiling" = yes ||
4741 $as_test_x conftest$ac_exeext
4745 $as_echo "$as_me: failed program was:" >&5
4746 sed 's/^/| /' conftest.$ac_ext >&5
4751 rm -rf conftest.dSYM
4752 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4753 conftest$ac_exeext conftest.$ac_ext
4755 if test $termok = no; then TERMLIBS=""; fi
4759 # -- Try curses & termcap.
4760 if test "x$TERMLIBS" = x; then
4761 if test $have_curses = yes; then
4762 if test $have_termcap = yes; then
4763 TERMLIBS="-lcurses -ltermcap"
4765 LIBS="$LIBS $TERMLIBS"
4766 cat >conftest.$ac_ext <<_ACEOF
4769 cat confdefs.h >>conftest.$ac_ext
4770 cat >>conftest.$ac_ext <<_ACEOF
4771 /* end confdefs.h. */
4776 tgetent(0,0); tgetflag(0); tgetnum(0); tgetstr(0,0);
4781 rm -f conftest.$ac_objext conftest$ac_exeext
4782 if { (ac_try="$ac_link"
4784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4785 *) ac_try_echo=$ac_try;;
4787 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4788 $as_echo "$ac_try_echo") >&5
4789 (eval "$ac_link") 2>conftest.er1
4791 grep -v '^ *+' conftest.er1 >conftest.err
4793 cat conftest.err >&5
4794 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4795 (exit $ac_status); } && {
4796 test -z "$ac_c_werror_flag" ||
4797 test ! -s conftest.err
4798 } && test -s conftest$ac_exeext && {
4799 test "$cross_compiling" = yes ||
4800 $as_test_x conftest$ac_exeext
4804 $as_echo "$as_me: failed program was:" >&5
4805 sed 's/^/| /' conftest.$ac_ext >&5
4810 rm -rf conftest.dSYM
4811 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4812 conftest$ac_exeext conftest.$ac_ext
4814 if test $termok = no; then TERMLIBS=""; fi
4821 if test "x$TERMLIBS" = x; then
4822 if test $have_termcap = yes; then
4823 TERMLIBS="-ltermcap"
4825 LIBS="$LIBS $TERMLIBS"
4826 cat >conftest.$ac_ext <<_ACEOF
4829 cat confdefs.h >>conftest.$ac_ext
4830 cat >>conftest.$ac_ext <<_ACEOF
4831 /* end confdefs.h. */
4836 tgetent(0,0); tgetflag(0); tgetnum(0); tgetstr(0,0);
4841 rm -f conftest.$ac_objext conftest$ac_exeext
4842 if { (ac_try="$ac_link"
4844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4845 *) ac_try_echo=$ac_try;;
4847 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4848 $as_echo "$ac_try_echo") >&5
4849 (eval "$ac_link") 2>conftest.er1
4851 grep -v '^ *+' conftest.er1 >conftest.err
4853 cat conftest.err >&5
4854 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4855 (exit $ac_status); } && {
4856 test -z "$ac_c_werror_flag" ||
4857 test ! -s conftest.err
4858 } && test -s conftest$ac_exeext && {
4859 test "$cross_compiling" = yes ||
4860 $as_test_x conftest$ac_exeext
4864 $as_echo "$as_me: failed program was:" >&5
4865 sed 's/^/| /' conftest.$ac_ext >&5
4870 rm -rf conftest.dSYM
4871 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4872 conftest$ac_exeext conftest.$ac_ext
4874 if test $termok = no; then TERMLIBS=""; fi
4879 if test "x$TERMLIBS" = x; then
4880 if test $have_termlib = yes; then
4881 TERMLIBS="-lcurses -ltermlib"
4883 LIBS="$LIBS $TERMLIBS"
4884 cat >conftest.$ac_ext <<_ACEOF
4887 cat confdefs.h >>conftest.$ac_ext
4888 cat >>conftest.$ac_ext <<_ACEOF
4889 /* end confdefs.h. */
4894 tgetent(0,0); tgetflag(0); tgetnum(0); tgetstr(0,0);
4899 rm -f conftest.$ac_objext conftest$ac_exeext
4900 if { (ac_try="$ac_link"
4902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4903 *) ac_try_echo=$ac_try;;
4905 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4906 $as_echo "$ac_try_echo") >&5
4907 (eval "$ac_link") 2>conftest.er1
4909 grep -v '^ *+' conftest.er1 >conftest.err
4911 cat conftest.err >&5
4912 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4913 (exit $ac_status); } && {
4914 test -z "$ac_c_werror_flag" ||
4915 test ! -s conftest.err
4916 } && test -s conftest$ac_exeext && {
4917 test "$cross_compiling" = yes ||
4918 $as_test_x conftest$ac_exeext
4922 $as_echo "$as_me: failed program was:" >&5
4923 sed 's/^/| /' conftest.$ac_ext >&5
4928 rm -rf conftest.dSYM
4929 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4930 conftest$ac_exeext conftest.$ac_ext
4932 if test $termok = no; then TERMLIBS=""; fi
4936 if test "x$TERMLIBS" = x; then
4937 { $as_echo "$as_me:$LINENO: result: Cannot find terminal libraries - configure failed" >&5
4938 $as_echo "Cannot find terminal libraries - configure failed" >&6; }
4941 { $as_echo "$as_me:$LINENO: result: using $TERMLIBS" >&5
4942 $as_echo "using $TERMLIBS" >&6; }
4943 LIBS="$LIBS $TERMLIBS"
4945 # Checks for header files.
4946 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4947 $as_echo_n "checking for ANSI C header files... " >&6; }
4948 if test "${ac_cv_header_stdc+set}" = set; then
4949 $as_echo_n "(cached) " >&6
4951 cat >conftest.$ac_ext <<_ACEOF
4954 cat confdefs.h >>conftest.$ac_ext
4955 cat >>conftest.$ac_ext <<_ACEOF
4956 /* end confdefs.h. */
4970 rm -f conftest.$ac_objext
4971 if { (ac_try="$ac_compile"
4973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4974 *) ac_try_echo=$ac_try;;
4976 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4977 $as_echo "$ac_try_echo") >&5
4978 (eval "$ac_compile") 2>conftest.er1
4980 grep -v '^ *+' conftest.er1 >conftest.err
4982 cat conftest.err >&5
4983 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4984 (exit $ac_status); } && {
4985 test -z "$ac_c_werror_flag" ||
4986 test ! -s conftest.err
4987 } && test -s conftest.$ac_objext; then
4988 ac_cv_header_stdc=yes
4990 $as_echo "$as_me: failed program was:" >&5
4991 sed 's/^/| /' conftest.$ac_ext >&5
4993 ac_cv_header_stdc=no
4996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4998 if test $ac_cv_header_stdc = yes; then
4999 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5000 cat >conftest.$ac_ext <<_ACEOF
5003 cat confdefs.h >>conftest.$ac_ext
5004 cat >>conftest.$ac_ext <<_ACEOF
5005 /* end confdefs.h. */
5009 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5010 $EGREP "memchr" >/dev/null 2>&1; then
5013 ac_cv_header_stdc=no
5019 if test $ac_cv_header_stdc = yes; then
5020 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5021 cat >conftest.$ac_ext <<_ACEOF
5024 cat confdefs.h >>conftest.$ac_ext
5025 cat >>conftest.$ac_ext <<_ACEOF
5026 /* end confdefs.h. */
5030 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5031 $EGREP "free" >/dev/null 2>&1; then
5034 ac_cv_header_stdc=no
5040 if test $ac_cv_header_stdc = yes; then
5041 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5042 if test "$cross_compiling" = yes; then
5045 cat >conftest.$ac_ext <<_ACEOF
5048 cat confdefs.h >>conftest.$ac_ext
5049 cat >>conftest.$ac_ext <<_ACEOF
5050 /* end confdefs.h. */
5053 #if ((' ' & 0x0FF) == 0x020)
5054 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5055 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5057 # define ISLOWER(c) \
5058 (('a' <= (c) && (c) <= 'i') \
5059 || ('j' <= (c) && (c) <= 'r') \
5060 || ('s' <= (c) && (c) <= 'z'))
5061 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5064 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5069 for (i = 0; i < 256; i++)
5070 if (XOR (islower (i), ISLOWER (i))
5071 || toupper (i) != TOUPPER (i))
5076 rm -f conftest$ac_exeext
5077 if { (ac_try="$ac_link"
5079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5080 *) ac_try_echo=$ac_try;;
5082 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5083 $as_echo "$ac_try_echo") >&5
5084 (eval "$ac_link") 2>&5
5086 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5087 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5088 { (case "(($ac_try" in
5089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5090 *) ac_try_echo=$ac_try;;
5092 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5093 $as_echo "$ac_try_echo") >&5
5094 (eval "$ac_try") 2>&5
5096 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5097 (exit $ac_status); }; }; then
5100 $as_echo "$as_me: program exited with status $ac_status" >&5
5101 $as_echo "$as_me: failed program was:" >&5
5102 sed 's/^/| /' conftest.$ac_ext >&5
5105 ac_cv_header_stdc=no
5107 rm -rf conftest.dSYM
5108 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5114 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5115 $as_echo "$ac_cv_header_stdc" >&6; }
5116 if test $ac_cv_header_stdc = yes; then
5118 cat >>confdefs.h <<\_ACEOF
5119 #define STDC_HEADERS 1
5124 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5134 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5135 inttypes.h stdint.h unistd.h
5137 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5138 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5139 $as_echo_n "checking for $ac_header... " >&6; }
5140 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5141 $as_echo_n "(cached) " >&6
5143 cat >conftest.$ac_ext <<_ACEOF
5146 cat confdefs.h >>conftest.$ac_ext
5147 cat >>conftest.$ac_ext <<_ACEOF
5148 /* end confdefs.h. */
5149 $ac_includes_default
5151 #include <$ac_header>
5153 rm -f conftest.$ac_objext
5154 if { (ac_try="$ac_compile"
5156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5157 *) ac_try_echo=$ac_try;;
5159 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5160 $as_echo "$ac_try_echo") >&5
5161 (eval "$ac_compile") 2>conftest.er1
5163 grep -v '^ *+' conftest.er1 >conftest.err
5165 cat conftest.err >&5
5166 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5167 (exit $ac_status); } && {
5168 test -z "$ac_c_werror_flag" ||
5169 test ! -s conftest.err
5170 } && test -s conftest.$ac_objext; then
5171 eval "$as_ac_Header=yes"
5173 $as_echo "$as_me: failed program was:" >&5
5174 sed 's/^/| /' conftest.$ac_ext >&5
5176 eval "$as_ac_Header=no"
5179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5181 ac_res=`eval 'as_val=${'$as_ac_Header'}
5182 $as_echo "$as_val"'`
5183 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5184 $as_echo "$ac_res" >&6; }
5185 as_val=`eval 'as_val=${'$as_ac_Header'}
5186 $as_echo "$as_val"'`
5187 if test "x$as_val" = x""yes; then
5188 cat >>confdefs.h <<_ACEOF
5189 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5213 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
5215 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5216 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5217 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5218 $as_echo_n "checking for $ac_header... " >&6; }
5219 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5220 $as_echo_n "(cached) " >&6
5222 ac_res=`eval 'as_val=${'$as_ac_Header'}
5223 $as_echo "$as_val"'`
5224 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5225 $as_echo "$ac_res" >&6; }
5227 # Is the header compilable?
5228 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5229 $as_echo_n "checking $ac_header usability... " >&6; }
5230 cat >conftest.$ac_ext <<_ACEOF
5233 cat confdefs.h >>conftest.$ac_ext
5234 cat >>conftest.$ac_ext <<_ACEOF
5235 /* end confdefs.h. */
5236 $ac_includes_default
5237 #include <$ac_header>
5239 rm -f conftest.$ac_objext
5240 if { (ac_try="$ac_compile"
5242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5243 *) ac_try_echo=$ac_try;;
5245 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5246 $as_echo "$ac_try_echo") >&5
5247 (eval "$ac_compile") 2>conftest.er1
5249 grep -v '^ *+' conftest.er1 >conftest.err
5251 cat conftest.err >&5
5252 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5253 (exit $ac_status); } && {
5254 test -z "$ac_c_werror_flag" ||
5255 test ! -s conftest.err
5256 } && test -s conftest.$ac_objext; then
5257 ac_header_compiler=yes
5259 $as_echo "$as_me: failed program was:" >&5
5260 sed 's/^/| /' conftest.$ac_ext >&5
5262 ac_header_compiler=no
5265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5266 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5267 $as_echo "$ac_header_compiler" >&6; }
5269 # Is the header present?
5270 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5271 $as_echo_n "checking $ac_header presence... " >&6; }
5272 cat >conftest.$ac_ext <<_ACEOF
5275 cat confdefs.h >>conftest.$ac_ext
5276 cat >>conftest.$ac_ext <<_ACEOF
5277 /* end confdefs.h. */
5278 #include <$ac_header>
5280 if { (ac_try="$ac_cpp conftest.$ac_ext"
5282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5283 *) ac_try_echo=$ac_try;;
5285 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5286 $as_echo "$ac_try_echo") >&5
5287 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5289 grep -v '^ *+' conftest.er1 >conftest.err
5291 cat conftest.err >&5
5292 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5293 (exit $ac_status); } >/dev/null && {
5294 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5295 test ! -s conftest.err
5297 ac_header_preproc=yes
5299 $as_echo "$as_me: failed program was:" >&5
5300 sed 's/^/| /' conftest.$ac_ext >&5
5302 ac_header_preproc=no
5305 rm -f conftest.err conftest.$ac_ext
5306 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5307 $as_echo "$ac_header_preproc" >&6; }
5309 # So? What about this header?
5310 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5312 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5313 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5314 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5315 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5316 ac_header_preproc=yes
5319 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5320 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5321 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5322 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5323 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5324 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5325 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5326 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5327 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5328 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5329 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5330 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5334 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5335 $as_echo_n "checking for $ac_header... " >&6; }
5336 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5337 $as_echo_n "(cached) " >&6
5339 eval "$as_ac_Header=\$ac_header_preproc"
5341 ac_res=`eval 'as_val=${'$as_ac_Header'}
5342 $as_echo "$as_val"'`
5343 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5344 $as_echo "$ac_res" >&6; }
5347 as_val=`eval 'as_val=${'$as_ac_Header'}
5348 $as_echo "$as_val"'`
5349 if test "x$as_val" = x""yes; then
5350 cat >>confdefs.h <<_ACEOF
5351 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5359 # Checks for typedefs, structures, and compiler characteristics.
5360 { $as_echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
5361 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
5362 if test "${ac_cv_header_stat_broken+set}" = set; then
5363 $as_echo_n "(cached) " >&6
5365 cat >conftest.$ac_ext <<_ACEOF
5368 cat confdefs.h >>conftest.$ac_ext
5369 cat >>conftest.$ac_ext <<_ACEOF
5370 /* end confdefs.h. */
5371 #include <sys/types.h>
5372 #include <sys/stat.h>
5374 #if defined S_ISBLK && defined S_IFDIR
5375 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
5378 #if defined S_ISBLK && defined S_IFCHR
5379 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
5382 #if defined S_ISLNK && defined S_IFREG
5383 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
5386 #if defined S_ISSOCK && defined S_IFREG
5387 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
5391 rm -f conftest.$ac_objext
5392 if { (ac_try="$ac_compile"
5394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5395 *) ac_try_echo=$ac_try;;
5397 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5398 $as_echo "$ac_try_echo") >&5
5399 (eval "$ac_compile") 2>conftest.er1
5401 grep -v '^ *+' conftest.er1 >conftest.err
5403 cat conftest.err >&5
5404 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5405 (exit $ac_status); } && {
5406 test -z "$ac_c_werror_flag" ||
5407 test ! -s conftest.err
5408 } && test -s conftest.$ac_objext; then
5409 ac_cv_header_stat_broken=no
5411 $as_echo "$as_me: failed program was:" >&5
5412 sed 's/^/| /' conftest.$ac_ext >&5
5414 ac_cv_header_stat_broken=yes
5417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5419 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
5420 $as_echo "$ac_cv_header_stat_broken" >&6; }
5421 if test $ac_cv_header_stat_broken = yes; then
5423 cat >>confdefs.h <<\_ACEOF
5424 #define STAT_MACROS_BROKEN 1
5429 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5430 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
5431 if test "${ac_cv_c_const+set}" = set; then
5432 $as_echo_n "(cached) " >&6
5434 cat >conftest.$ac_ext <<_ACEOF
5437 cat confdefs.h >>conftest.$ac_ext
5438 cat >>conftest.$ac_ext <<_ACEOF
5439 /* end confdefs.h. */
5444 /* FIXME: Include the comments suggested by Paul. */
5446 /* Ultrix mips cc rejects this. */
5447 typedef int charset[2];
5449 /* SunOS 4.1.1 cc rejects this. */
5450 char const *const *pcpcc;
5452 /* NEC SVR4.0.2 mips cc rejects this. */
5453 struct point {int x, y;};
5454 static struct point const zero = {0,0};
5455 /* AIX XL C 1.02.0.0 rejects this.
5456 It does not let you subtract one const X* pointer from another in
5457 an arm of an if-expression whose if-part is not a constant
5459 const char *g = "string";
5460 pcpcc = &g + (g ? g-g : 0);
5461 /* HPUX 7.0 cc rejects these. */
5463 ppc = (char**) pcpcc;
5464 pcpcc = (char const *const *) ppc;
5465 { /* SCO 3.2v4 cc rejects this. */
5467 char const *s = 0 ? (char *) 0 : (char const *) 0;
5472 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5474 const int *foo = &x[0];
5477 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5478 typedef const int *iptr;
5482 { /* AIX XL C 1.02.0.0 rejects this saying
5483 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5484 struct s { int j; const int *ap[3]; };
5485 struct s *b; b->j = 5;
5487 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5491 return !cs[0] && !zero.x;
5498 rm -f conftest.$ac_objext
5499 if { (ac_try="$ac_compile"
5501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5502 *) ac_try_echo=$ac_try;;
5504 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5505 $as_echo "$ac_try_echo") >&5
5506 (eval "$ac_compile") 2>conftest.er1
5508 grep -v '^ *+' conftest.er1 >conftest.err
5510 cat conftest.err >&5
5511 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5512 (exit $ac_status); } && {
5513 test -z "$ac_c_werror_flag" ||
5514 test ! -s conftest.err
5515 } && test -s conftest.$ac_objext; then
5518 $as_echo "$as_me: failed program was:" >&5
5519 sed 's/^/| /' conftest.$ac_ext >&5
5524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5526 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5527 $as_echo "$ac_cv_c_const" >&6; }
5528 if test $ac_cv_c_const = no; then
5530 cat >>confdefs.h <<\_ACEOF
5536 { $as_echo "$as_me:$LINENO: checking for off_t" >&5
5537 $as_echo_n "checking for off_t... " >&6; }
5538 if test "${ac_cv_type_off_t+set}" = set; then
5539 $as_echo_n "(cached) " >&6
5542 cat >conftest.$ac_ext <<_ACEOF
5545 cat confdefs.h >>conftest.$ac_ext
5546 cat >>conftest.$ac_ext <<_ACEOF
5547 /* end confdefs.h. */
5548 $ac_includes_default
5558 rm -f conftest.$ac_objext
5559 if { (ac_try="$ac_compile"
5561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5562 *) ac_try_echo=$ac_try;;
5564 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5565 $as_echo "$ac_try_echo") >&5
5566 (eval "$ac_compile") 2>conftest.er1
5568 grep -v '^ *+' conftest.er1 >conftest.err
5570 cat conftest.err >&5
5571 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5572 (exit $ac_status); } && {
5573 test -z "$ac_c_werror_flag" ||
5574 test ! -s conftest.err
5575 } && test -s conftest.$ac_objext; then
5576 cat >conftest.$ac_ext <<_ACEOF
5579 cat confdefs.h >>conftest.$ac_ext
5580 cat >>conftest.$ac_ext <<_ACEOF
5581 /* end confdefs.h. */
5582 $ac_includes_default
5586 if (sizeof ((off_t)))
5592 rm -f conftest.$ac_objext
5593 if { (ac_try="$ac_compile"
5595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5596 *) ac_try_echo=$ac_try;;
5598 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5599 $as_echo "$ac_try_echo") >&5
5600 (eval "$ac_compile") 2>conftest.er1
5602 grep -v '^ *+' conftest.er1 >conftest.err
5604 cat conftest.err >&5
5605 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5606 (exit $ac_status); } && {
5607 test -z "$ac_c_werror_flag" ||
5608 test ! -s conftest.err
5609 } && test -s conftest.$ac_objext; then
5612 $as_echo "$as_me: failed program was:" >&5
5613 sed 's/^/| /' conftest.$ac_ext >&5
5615 ac_cv_type_off_t=yes
5618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5620 $as_echo "$as_me: failed program was:" >&5
5621 sed 's/^/| /' conftest.$ac_ext >&5
5626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5628 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5629 $as_echo "$ac_cv_type_off_t" >&6; }
5630 if test "x$ac_cv_type_off_t" = x""yes; then
5634 cat >>confdefs.h <<_ACEOF
5635 #define off_t long int
5640 { $as_echo "$as_me:$LINENO: checking for size_t" >&5
5641 $as_echo_n "checking for size_t... " >&6; }
5642 if test "${ac_cv_type_size_t+set}" = set; then
5643 $as_echo_n "(cached) " >&6
5645 ac_cv_type_size_t=no
5646 cat >conftest.$ac_ext <<_ACEOF
5649 cat confdefs.h >>conftest.$ac_ext
5650 cat >>conftest.$ac_ext <<_ACEOF
5651 /* end confdefs.h. */
5652 $ac_includes_default
5656 if (sizeof (size_t))
5662 rm -f conftest.$ac_objext
5663 if { (ac_try="$ac_compile"
5665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5666 *) ac_try_echo=$ac_try;;
5668 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5669 $as_echo "$ac_try_echo") >&5
5670 (eval "$ac_compile") 2>conftest.er1
5672 grep -v '^ *+' conftest.er1 >conftest.err
5674 cat conftest.err >&5
5675 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5676 (exit $ac_status); } && {
5677 test -z "$ac_c_werror_flag" ||
5678 test ! -s conftest.err
5679 } && test -s conftest.$ac_objext; then
5680 cat >conftest.$ac_ext <<_ACEOF
5683 cat confdefs.h >>conftest.$ac_ext
5684 cat >>conftest.$ac_ext <<_ACEOF
5685 /* end confdefs.h. */
5686 $ac_includes_default
5690 if (sizeof ((size_t)))
5696 rm -f conftest.$ac_objext
5697 if { (ac_try="$ac_compile"
5699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5700 *) ac_try_echo=$ac_try;;
5702 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5703 $as_echo "$ac_try_echo") >&5
5704 (eval "$ac_compile") 2>conftest.er1
5706 grep -v '^ *+' conftest.er1 >conftest.err
5708 cat conftest.err >&5
5709 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5710 (exit $ac_status); } && {
5711 test -z "$ac_c_werror_flag" ||
5712 test ! -s conftest.err
5713 } && test -s conftest.$ac_objext; then
5716 $as_echo "$as_me: failed program was:" >&5
5717 sed 's/^/| /' conftest.$ac_ext >&5
5719 ac_cv_type_size_t=yes
5722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5724 $as_echo "$as_me: failed program was:" >&5
5725 sed 's/^/| /' conftest.$ac_ext >&5
5730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5732 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
5733 $as_echo "$ac_cv_type_size_t" >&6; }
5734 if test "x$ac_cv_type_size_t" = x""yes; then
5738 cat >>confdefs.h <<_ACEOF
5739 #define size_t unsigned int
5744 { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
5745 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
5746 if test "${ac_cv_header_time+set}" = set; then
5747 $as_echo_n "(cached) " >&6
5749 cat >conftest.$ac_ext <<_ACEOF
5752 cat confdefs.h >>conftest.$ac_ext
5753 cat >>conftest.$ac_ext <<_ACEOF
5754 /* end confdefs.h. */
5755 #include <sys/types.h>
5756 #include <sys/time.h>
5762 if ((struct tm *) 0)
5768 rm -f conftest.$ac_objext
5769 if { (ac_try="$ac_compile"
5771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5772 *) ac_try_echo=$ac_try;;
5774 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5775 $as_echo "$ac_try_echo") >&5
5776 (eval "$ac_compile") 2>conftest.er1
5778 grep -v '^ *+' conftest.er1 >conftest.err
5780 cat conftest.err >&5
5781 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5782 (exit $ac_status); } && {
5783 test -z "$ac_c_werror_flag" ||
5784 test ! -s conftest.err
5785 } && test -s conftest.$ac_objext; then
5786 ac_cv_header_time=yes
5788 $as_echo "$as_me: failed program was:" >&5
5789 sed 's/^/| /' conftest.$ac_ext >&5
5791 ac_cv_header_time=no
5794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5796 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
5797 $as_echo "$ac_cv_header_time" >&6; }
5798 if test $ac_cv_header_time = yes; then
5800 cat >>confdefs.h <<\_ACEOF
5801 #define TIME_WITH_SYS_TIME 1
5807 # Autoheader templates for symbols defined later by AC_DEFINE.
5861 # Checks for identifiers.
5862 { $as_echo "$as_me:$LINENO: checking for off_t" >&5
5863 $as_echo_n "checking for off_t... " >&6; }
5864 if test "${ac_cv_type_off_t+set}" = set; then
5865 $as_echo_n "(cached) " >&6
5868 cat >conftest.$ac_ext <<_ACEOF
5871 cat confdefs.h >>conftest.$ac_ext
5872 cat >>conftest.$ac_ext <<_ACEOF
5873 /* end confdefs.h. */
5874 $ac_includes_default
5884 rm -f conftest.$ac_objext
5885 if { (ac_try="$ac_compile"
5887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5888 *) ac_try_echo=$ac_try;;
5890 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5891 $as_echo "$ac_try_echo") >&5
5892 (eval "$ac_compile") 2>conftest.er1
5894 grep -v '^ *+' conftest.er1 >conftest.err
5896 cat conftest.err >&5
5897 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5898 (exit $ac_status); } && {
5899 test -z "$ac_c_werror_flag" ||
5900 test ! -s conftest.err
5901 } && test -s conftest.$ac_objext; then
5902 cat >conftest.$ac_ext <<_ACEOF
5905 cat confdefs.h >>conftest.$ac_ext
5906 cat >>conftest.$ac_ext <<_ACEOF
5907 /* end confdefs.h. */
5908 $ac_includes_default
5912 if (sizeof ((off_t)))
5918 rm -f conftest.$ac_objext
5919 if { (ac_try="$ac_compile"
5921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5922 *) ac_try_echo=$ac_try;;
5924 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5925 $as_echo "$ac_try_echo") >&5
5926 (eval "$ac_compile") 2>conftest.er1
5928 grep -v '^ *+' conftest.er1 >conftest.err
5930 cat conftest.err >&5
5931 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5932 (exit $ac_status); } && {
5933 test -z "$ac_c_werror_flag" ||
5934 test ! -s conftest.err
5935 } && test -s conftest.$ac_objext; then
5938 $as_echo "$as_me: failed program was:" >&5
5939 sed 's/^/| /' conftest.$ac_ext >&5
5941 ac_cv_type_off_t=yes
5944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5946 $as_echo "$as_me: failed program was:" >&5
5947 sed 's/^/| /' conftest.$ac_ext >&5
5952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5954 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5955 $as_echo "$ac_cv_type_off_t" >&6; }
5956 if test "x$ac_cv_type_off_t" = x""yes; then
5960 cat >>confdefs.h <<_ACEOF
5961 #define off_t long int
5966 { $as_echo "$as_me:$LINENO: checking for void" >&5
5967 $as_echo_n "checking for void... " >&6; }
5968 cat >conftest.$ac_ext <<_ACEOF
5971 cat confdefs.h >>conftest.$ac_ext
5972 cat >>conftest.$ac_ext <<_ACEOF
5973 /* end confdefs.h. */
5983 rm -f conftest.$ac_objext
5984 if { (ac_try="$ac_compile"
5986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5987 *) ac_try_echo=$ac_try;;
5989 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5990 $as_echo "$ac_try_echo") >&5
5991 (eval "$ac_compile") 2>conftest.er1
5993 grep -v '^ *+' conftest.er1 >conftest.err
5995 cat conftest.err >&5
5996 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5997 (exit $ac_status); } && {
5998 test -z "$ac_c_werror_flag" ||
5999 test ! -s conftest.err
6000 } && test -s conftest.$ac_objext; then
6001 { $as_echo "$as_me:$LINENO: result: yes" >&5
6002 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
6007 $as_echo "$as_me: failed program was:" >&5
6008 sed 's/^/| /' conftest.$ac_ext >&5
6010 { $as_echo "$as_me:$LINENO: result: no" >&5
6011 $as_echo "no" >&6; }
6014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6015 { $as_echo "$as_me:$LINENO: checking for const" >&5
6016 $as_echo_n "checking for const... " >&6; }
6017 cat >conftest.$ac_ext <<_ACEOF
6020 cat confdefs.h >>conftest.$ac_ext
6021 cat >>conftest.$ac_ext <<_ACEOF
6022 /* end confdefs.h. */
6032 rm -f conftest.$ac_objext
6033 if { (ac_try="$ac_compile"
6035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6036 *) ac_try_echo=$ac_try;;
6038 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6039 $as_echo "$ac_try_echo") >&5
6040 (eval "$ac_compile") 2>conftest.er1
6042 grep -v '^ *+' conftest.er1 >conftest.err
6044 cat conftest.err >&5
6045 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6046 (exit $ac_status); } && {
6047 test -z "$ac_c_werror_flag" ||
6048 test ! -s conftest.err
6049 } && test -s conftest.$ac_objext; then
6050 { $as_echo "$as_me:$LINENO: result: yes" >&5
6051 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
6052 #define HAVE_CONST 1
6056 $as_echo "$as_me: failed program was:" >&5
6057 sed 's/^/| /' conftest.$ac_ext >&5
6059 { $as_echo "$as_me:$LINENO: result: no" >&5
6060 $as_echo "no" >&6; }
6063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6064 { $as_echo "$as_me:$LINENO: checking for time_t" >&5
6065 $as_echo_n "checking for time_t... " >&6; }
6066 cat >conftest.$ac_ext <<_ACEOF
6069 cat confdefs.h >>conftest.$ac_ext
6070 cat >>conftest.$ac_ext <<_ACEOF
6071 /* end confdefs.h. */
6081 rm -f conftest.$ac_objext
6082 if { (ac_try="$ac_compile"
6084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6085 *) ac_try_echo=$ac_try;;
6087 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6088 $as_echo "$ac_try_echo") >&5
6089 (eval "$ac_compile") 2>conftest.er1
6091 grep -v '^ *+' conftest.er1 >conftest.err
6093 cat conftest.err >&5
6094 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6095 (exit $ac_status); } && {
6096 test -z "$ac_c_werror_flag" ||
6097 test ! -s conftest.err
6098 } && test -s conftest.$ac_objext; then
6099 { $as_echo "$as_me:$LINENO: result: yes" >&5
6100 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
6101 #define HAVE_TIME_T 1
6105 $as_echo "$as_me: failed program was:" >&5
6106 sed 's/^/| /' conftest.$ac_ext >&5
6108 { $as_echo "$as_me:$LINENO: result: no" >&5
6109 $as_echo "no" >&6; }
6112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6113 { $as_echo "$as_me:$LINENO: checking for st_ino in struct stat" >&5
6114 $as_echo_n "checking for st_ino in struct stat... " >&6; }
6115 cat >conftest.$ac_ext <<_ACEOF
6118 cat confdefs.h >>conftest.$ac_ext
6119 cat >>conftest.$ac_ext <<_ACEOF
6120 /* end confdefs.h. */
6121 #include <sys/types.h>
6122 #include <sys/stat.h>
6126 struct stat s; dev_t dev = s.st_dev; ino_t ino = s.st_ino;
6131 rm -f conftest.$ac_objext
6132 if { (ac_try="$ac_compile"
6134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6135 *) ac_try_echo=$ac_try;;
6137 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6138 $as_echo "$ac_try_echo") >&5
6139 (eval "$ac_compile") 2>conftest.er1
6141 grep -v '^ *+' conftest.er1 >conftest.err
6143 cat conftest.err >&5
6144 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6145 (exit $ac_status); } && {
6146 test -z "$ac_c_werror_flag" ||
6147 test ! -s conftest.err
6148 } && test -s conftest.$ac_objext; then
6149 { $as_echo "$as_me:$LINENO: result: yes" >&5
6150 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
6151 #define HAVE_STAT_INO 1
6155 $as_echo "$as_me: failed program was:" >&5
6156 sed 's/^/| /' conftest.$ac_ext >&5
6158 { $as_echo "$as_me:$LINENO: result: no" >&5
6159 $as_echo "no" >&6; }
6162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6164 # Checks for library functions.
6165 { $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6166 $as_echo_n "checking return type of signal handlers... " >&6; }
6167 if test "${ac_cv_type_signal+set}" = set; then
6168 $as_echo_n "(cached) " >&6
6170 cat >conftest.$ac_ext <<_ACEOF
6173 cat confdefs.h >>conftest.$ac_ext
6174 cat >>conftest.$ac_ext <<_ACEOF
6175 /* end confdefs.h. */
6176 #include <sys/types.h>
6182 return *(signal (0, 0)) (0) == 1;
6187 rm -f conftest.$ac_objext
6188 if { (ac_try="$ac_compile"
6190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6191 *) ac_try_echo=$ac_try;;
6193 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6194 $as_echo "$ac_try_echo") >&5
6195 (eval "$ac_compile") 2>conftest.er1
6197 grep -v '^ *+' conftest.er1 >conftest.err
6199 cat conftest.err >&5
6200 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6201 (exit $ac_status); } && {
6202 test -z "$ac_c_werror_flag" ||
6203 test ! -s conftest.err
6204 } && test -s conftest.$ac_objext; then
6205 ac_cv_type_signal=int
6207 $as_echo "$as_me: failed program was:" >&5
6208 sed 's/^/| /' conftest.$ac_ext >&5
6210 ac_cv_type_signal=void
6213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6215 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6216 $as_echo "$ac_cv_type_signal" >&6; }
6218 cat >>confdefs.h <<_ACEOF
6219 #define RETSIGTYPE $ac_cv_type_signal
6232 for ac_func in fsync popen _setjmp sigprocmask sigsetmask snprintf stat system fchmod
6234 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6235 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
6236 $as_echo_n "checking for $ac_func... " >&6; }
6237 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6238 $as_echo_n "(cached) " >&6
6240 cat >conftest.$ac_ext <<_ACEOF
6243 cat confdefs.h >>conftest.$ac_ext
6244 cat >>conftest.$ac_ext <<_ACEOF
6245 /* end confdefs.h. */
6246 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6247 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6248 #define $ac_func innocuous_$ac_func
6250 /* System header to define __stub macros and hopefully few prototypes,
6251 which can conflict with char $ac_func (); below.
6252 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6253 <limits.h> exists even on freestanding compilers. */
6256 # include <limits.h>
6258 # include <assert.h>
6263 /* Override any GCC internal prototype to avoid an error.
6264 Use char because int might match the return type of a GCC
6265 builtin and then its argument prototype would still apply. */
6270 /* The GNU C library defines this for functions which it implements
6271 to always fail with ENOSYS. Some functions are actually named
6272 something starting with __ and the normal name is an alias. */
6273 #if defined __stub_$ac_func || defined __stub___$ac_func
6285 rm -f conftest.$ac_objext conftest$ac_exeext
6286 if { (ac_try="$ac_link"
6288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6289 *) ac_try_echo=$ac_try;;
6291 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6292 $as_echo "$ac_try_echo") >&5
6293 (eval "$ac_link") 2>conftest.er1
6295 grep -v '^ *+' conftest.er1 >conftest.err
6297 cat conftest.err >&5
6298 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6299 (exit $ac_status); } && {
6300 test -z "$ac_c_werror_flag" ||
6301 test ! -s conftest.err
6302 } && test -s conftest$ac_exeext && {
6303 test "$cross_compiling" = yes ||
6304 $as_test_x conftest$ac_exeext
6306 eval "$as_ac_var=yes"
6308 $as_echo "$as_me: failed program was:" >&5
6309 sed 's/^/| /' conftest.$ac_ext >&5
6311 eval "$as_ac_var=no"
6314 rm -rf conftest.dSYM
6315 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6316 conftest$ac_exeext conftest.$ac_ext
6318 ac_res=`eval 'as_val=${'$as_ac_var'}
6319 $as_echo "$as_val"'`
6320 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6321 $as_echo "$ac_res" >&6; }
6322 as_val=`eval 'as_val=${'$as_ac_var'}
6323 $as_echo "$as_val"'`
6324 if test "x$as_val" = x""yes; then
6325 cat >>confdefs.h <<_ACEOF
6326 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6333 # AC_CHECK_FUNCS may not work for inline functions, so test these separately.
6334 { $as_echo "$as_me:$LINENO: checking for memcpy" >&5
6335 $as_echo_n "checking for memcpy... " >&6; }
6336 cat >conftest.$ac_ext <<_ACEOF
6339 cat confdefs.h >>conftest.$ac_ext
6340 cat >>conftest.$ac_ext <<_ACEOF
6341 /* end confdefs.h. */
6354 rm -f conftest.$ac_objext conftest$ac_exeext
6355 if { (ac_try="$ac_link"
6357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6358 *) ac_try_echo=$ac_try;;
6360 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6361 $as_echo "$ac_try_echo") >&5
6362 (eval "$ac_link") 2>conftest.er1
6364 grep -v '^ *+' conftest.er1 >conftest.err
6366 cat conftest.err >&5
6367 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6368 (exit $ac_status); } && {
6369 test -z "$ac_c_werror_flag" ||
6370 test ! -s conftest.err
6371 } && test -s conftest$ac_exeext && {
6372 test "$cross_compiling" = yes ||
6373 $as_test_x conftest$ac_exeext
6375 { $as_echo "$as_me:$LINENO: result: yes" >&5
6376 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
6377 #define HAVE_MEMCPY 1
6381 $as_echo "$as_me: failed program was:" >&5
6382 sed 's/^/| /' conftest.$ac_ext >&5
6384 { $as_echo "$as_me:$LINENO: result: no" >&5
6385 $as_echo "no" >&6; }
6388 rm -rf conftest.dSYM
6389 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6390 conftest$ac_exeext conftest.$ac_ext
6392 { $as_echo "$as_me:$LINENO: checking for strchr" >&5
6393 $as_echo_n "checking for strchr... " >&6; }
6394 cat >conftest.$ac_ext <<_ACEOF
6397 cat confdefs.h >>conftest.$ac_ext
6398 cat >>conftest.$ac_ext <<_ACEOF
6399 /* end confdefs.h. */
6412 rm -f conftest.$ac_objext conftest$ac_exeext
6413 if { (ac_try="$ac_link"
6415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6416 *) ac_try_echo=$ac_try;;
6418 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6419 $as_echo "$ac_try_echo") >&5
6420 (eval "$ac_link") 2>conftest.er1
6422 grep -v '^ *+' conftest.er1 >conftest.err
6424 cat conftest.err >&5
6425 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6426 (exit $ac_status); } && {
6427 test -z "$ac_c_werror_flag" ||
6428 test ! -s conftest.err
6429 } && test -s conftest$ac_exeext && {
6430 test "$cross_compiling" = yes ||
6431 $as_test_x conftest$ac_exeext
6433 { $as_echo "$as_me:$LINENO: result: yes" >&5
6434 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
6435 #define HAVE_STRCHR 1
6439 $as_echo "$as_me: failed program was:" >&5
6440 sed 's/^/| /' conftest.$ac_ext >&5
6442 { $as_echo "$as_me:$LINENO: result: no" >&5
6443 $as_echo "no" >&6; }
6446 rm -rf conftest.dSYM
6447 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6448 conftest$ac_exeext conftest.$ac_ext
6450 { $as_echo "$as_me:$LINENO: checking for strstr" >&5
6451 $as_echo_n "checking for strstr... " >&6; }
6452 cat >conftest.$ac_ext <<_ACEOF
6455 cat confdefs.h >>conftest.$ac_ext
6456 cat >>conftest.$ac_ext <<_ACEOF
6457 /* end confdefs.h. */
6470 rm -f conftest.$ac_objext conftest$ac_exeext
6471 if { (ac_try="$ac_link"
6473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6474 *) ac_try_echo=$ac_try;;
6476 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6477 $as_echo "$ac_try_echo") >&5
6478 (eval "$ac_link") 2>conftest.er1
6480 grep -v '^ *+' conftest.er1 >conftest.err
6482 cat conftest.err >&5
6483 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6484 (exit $ac_status); } && {
6485 test -z "$ac_c_werror_flag" ||
6486 test ! -s conftest.err
6487 } && test -s conftest$ac_exeext && {
6488 test "$cross_compiling" = yes ||
6489 $as_test_x conftest$ac_exeext
6491 { $as_echo "$as_me:$LINENO: result: yes" >&5
6492 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
6493 #define HAVE_STRSTR 1
6497 $as_echo "$as_me: failed program was:" >&5
6498 sed 's/^/| /' conftest.$ac_ext >&5
6500 { $as_echo "$as_me:$LINENO: result: no" >&5
6501 $as_echo "no" >&6; }
6504 rm -rf conftest.dSYM
6505 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6506 conftest$ac_exeext conftest.$ac_ext
6508 # Some systems have termios.h but not the corresponding functions.
6509 { $as_echo "$as_me:$LINENO: checking for tcgetattr" >&5
6510 $as_echo_n "checking for tcgetattr... " >&6; }
6511 if test "${ac_cv_func_tcgetattr+set}" = set; then
6512 $as_echo_n "(cached) " >&6
6514 cat >conftest.$ac_ext <<_ACEOF
6517 cat confdefs.h >>conftest.$ac_ext
6518 cat >>conftest.$ac_ext <<_ACEOF
6519 /* end confdefs.h. */
6520 /* Define tcgetattr to an innocuous variant, in case <limits.h> declares tcgetattr.
6521 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6522 #define tcgetattr innocuous_tcgetattr
6524 /* System header to define __stub macros and hopefully few prototypes,
6525 which can conflict with char tcgetattr (); below.
6526 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6527 <limits.h> exists even on freestanding compilers. */
6530 # include <limits.h>
6532 # include <assert.h>
6537 /* Override any GCC internal prototype to avoid an error.
6538 Use char because int might match the return type of a GCC
6539 builtin and then its argument prototype would still apply. */
6544 /* The GNU C library defines this for functions which it implements
6545 to always fail with ENOSYS. Some functions are actually named
6546 something starting with __ and the normal name is an alias. */
6547 #if defined __stub_tcgetattr || defined __stub___tcgetattr
6554 return tcgetattr ();
6559 rm -f conftest.$ac_objext conftest$ac_exeext
6560 if { (ac_try="$ac_link"
6562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6563 *) ac_try_echo=$ac_try;;
6565 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6566 $as_echo "$ac_try_echo") >&5
6567 (eval "$ac_link") 2>conftest.er1
6569 grep -v '^ *+' conftest.er1 >conftest.err
6571 cat conftest.err >&5
6572 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6573 (exit $ac_status); } && {
6574 test -z "$ac_c_werror_flag" ||
6575 test ! -s conftest.err
6576 } && test -s conftest$ac_exeext && {
6577 test "$cross_compiling" = yes ||
6578 $as_test_x conftest$ac_exeext
6580 ac_cv_func_tcgetattr=yes
6582 $as_echo "$as_me: failed program was:" >&5
6583 sed 's/^/| /' conftest.$ac_ext >&5
6585 ac_cv_func_tcgetattr=no
6588 rm -rf conftest.dSYM
6589 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6590 conftest$ac_exeext conftest.$ac_ext
6592 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_tcgetattr" >&5
6593 $as_echo "$ac_cv_func_tcgetattr" >&6; }
6594 if test "x$ac_cv_func_tcgetattr" = x""yes; then
6595 cat >>confdefs.h <<\_ACEOF
6596 #define HAVE_TERMIOS_FUNCS 1
6602 { $as_echo "$as_me:$LINENO: checking for fileno" >&5
6603 $as_echo_n "checking for fileno... " >&6; }
6604 cat >conftest.$ac_ext <<_ACEOF
6607 cat confdefs.h >>conftest.$ac_ext
6608 cat >>conftest.$ac_ext <<_ACEOF
6609 /* end confdefs.h. */
6617 static int x; x = fileno(stdin);
6622 rm -f conftest.$ac_objext conftest$ac_exeext
6623 if { (ac_try="$ac_link"
6625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6626 *) ac_try_echo=$ac_try;;
6628 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6629 $as_echo "$ac_try_echo") >&5
6630 (eval "$ac_link") 2>conftest.er1
6632 grep -v '^ *+' conftest.er1 >conftest.err
6634 cat conftest.err >&5
6635 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6636 (exit $ac_status); } && {
6637 test -z "$ac_c_werror_flag" ||
6638 test ! -s conftest.err
6639 } && test -s conftest$ac_exeext && {
6640 test "$cross_compiling" = yes ||
6641 $as_test_x conftest$ac_exeext
6643 { $as_echo "$as_me:$LINENO: result: yes" >&5
6644 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
6645 #define HAVE_FILENO 1
6649 $as_echo "$as_me: failed program was:" >&5
6650 sed 's/^/| /' conftest.$ac_ext >&5
6652 { $as_echo "$as_me:$LINENO: result: no" >&5
6653 $as_echo "no" >&6; }
6656 rm -rf conftest.dSYM
6657 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6658 conftest$ac_exeext conftest.$ac_ext
6660 { $as_echo "$as_me:$LINENO: checking for strerror" >&5
6661 $as_echo_n "checking for strerror... " >&6; }
6662 cat >conftest.$ac_ext <<_ACEOF
6665 cat confdefs.h >>conftest.$ac_ext
6666 cat >>conftest.$ac_ext <<_ACEOF
6667 /* end confdefs.h. */
6681 static char *x; x = strerror(0);
6686 rm -f conftest.$ac_objext conftest$ac_exeext
6687 if { (ac_try="$ac_link"
6689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6690 *) ac_try_echo=$ac_try;;
6692 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6693 $as_echo "$ac_try_echo") >&5
6694 (eval "$ac_link") 2>conftest.er1
6696 grep -v '^ *+' conftest.er1 >conftest.err
6698 cat conftest.err >&5
6699 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6700 (exit $ac_status); } && {
6701 test -z "$ac_c_werror_flag" ||
6702 test ! -s conftest.err
6703 } && test -s conftest$ac_exeext && {
6704 test "$cross_compiling" = yes ||
6705 $as_test_x conftest$ac_exeext
6707 { $as_echo "$as_me:$LINENO: result: yes" >&5
6708 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
6709 #define HAVE_STRERROR 1
6713 $as_echo "$as_me: failed program was:" >&5
6714 sed 's/^/| /' conftest.$ac_ext >&5
6716 { $as_echo "$as_me:$LINENO: result: no" >&5
6717 $as_echo "no" >&6; }
6720 rm -rf conftest.dSYM
6721 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6722 conftest$ac_exeext conftest.$ac_ext
6724 { $as_echo "$as_me:$LINENO: checking for sys_errlist" >&5
6725 $as_echo_n "checking for sys_errlist... " >&6; }
6726 cat >conftest.$ac_ext <<_ACEOF
6729 cat confdefs.h >>conftest.$ac_ext
6730 cat >>conftest.$ac_ext <<_ACEOF
6731 /* end confdefs.h. */
6736 extern char *sys_errlist[]; static char **x; x = sys_errlist;
6741 rm -f conftest.$ac_objext conftest$ac_exeext
6742 if { (ac_try="$ac_link"
6744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6745 *) ac_try_echo=$ac_try;;
6747 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6748 $as_echo "$ac_try_echo") >&5
6749 (eval "$ac_link") 2>conftest.er1
6751 grep -v '^ *+' conftest.er1 >conftest.err
6753 cat conftest.err >&5
6754 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6755 (exit $ac_status); } && {
6756 test -z "$ac_c_werror_flag" ||
6757 test ! -s conftest.err
6758 } && test -s conftest$ac_exeext && {
6759 test "$cross_compiling" = yes ||
6760 $as_test_x conftest$ac_exeext
6762 { $as_echo "$as_me:$LINENO: result: yes" >&5
6763 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
6764 #define HAVE_SYS_ERRLIST 1
6768 $as_echo "$as_me: failed program was:" >&5
6769 sed 's/^/| /' conftest.$ac_ext >&5
6771 { $as_echo "$as_me:$LINENO: result: no" >&5
6772 $as_echo "no" >&6; }
6775 rm -rf conftest.dSYM
6776 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6777 conftest$ac_exeext conftest.$ac_ext
6779 { $as_echo "$as_me:$LINENO: checking for sigset_t" >&5
6780 $as_echo_n "checking for sigset_t... " >&6; }
6781 if test "${ac_cv_type_sigset_t+set}" = set; then
6782 $as_echo_n "(cached) " >&6
6784 ac_cv_type_sigset_t=no
6785 cat >conftest.$ac_ext <<_ACEOF
6788 cat confdefs.h >>conftest.$ac_ext
6789 cat >>conftest.$ac_ext <<_ACEOF
6790 /* end confdefs.h. */
6796 if (sizeof (sigset_t))
6802 rm -f conftest.$ac_objext
6803 if { (ac_try="$ac_compile"
6805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6806 *) ac_try_echo=$ac_try;;
6808 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6809 $as_echo "$ac_try_echo") >&5
6810 (eval "$ac_compile") 2>conftest.er1
6812 grep -v '^ *+' conftest.er1 >conftest.err
6814 cat conftest.err >&5
6815 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6816 (exit $ac_status); } && {
6817 test -z "$ac_c_werror_flag" ||
6818 test ! -s conftest.err
6819 } && test -s conftest.$ac_objext; then
6820 cat >conftest.$ac_ext <<_ACEOF
6823 cat confdefs.h >>conftest.$ac_ext
6824 cat >>conftest.$ac_ext <<_ACEOF
6825 /* end confdefs.h. */
6831 if (sizeof ((sigset_t)))
6837 rm -f conftest.$ac_objext
6838 if { (ac_try="$ac_compile"
6840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6841 *) ac_try_echo=$ac_try;;
6843 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6844 $as_echo "$ac_try_echo") >&5
6845 (eval "$ac_compile") 2>conftest.er1
6847 grep -v '^ *+' conftest.er1 >conftest.err
6849 cat conftest.err >&5
6850 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6851 (exit $ac_status); } && {
6852 test -z "$ac_c_werror_flag" ||
6853 test ! -s conftest.err
6854 } && test -s conftest.$ac_objext; then
6857 $as_echo "$as_me: failed program was:" >&5
6858 sed 's/^/| /' conftest.$ac_ext >&5
6860 ac_cv_type_sigset_t=yes
6863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6865 $as_echo "$as_me: failed program was:" >&5
6866 sed 's/^/| /' conftest.$ac_ext >&5
6871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6873 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_sigset_t" >&5
6874 $as_echo "$ac_cv_type_sigset_t" >&6; }
6875 if test "x$ac_cv_type_sigset_t" = x""yes; then
6877 cat >>confdefs.h <<_ACEOF
6878 #define HAVE_SIGSET_T 1
6885 { $as_echo "$as_me:$LINENO: checking for sigemptyset" >&5
6886 $as_echo_n "checking for sigemptyset... " >&6; }
6887 cat >conftest.$ac_ext <<_ACEOF
6890 cat confdefs.h >>conftest.$ac_ext
6891 cat >>conftest.$ac_ext <<_ACEOF
6892 /* end confdefs.h. */
6899 sigset_t s; sigemptyset(&s);
6904 rm -f conftest.$ac_objext conftest$ac_exeext
6905 if { (ac_try="$ac_link"
6907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6908 *) ac_try_echo=$ac_try;;
6910 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6911 $as_echo "$ac_try_echo") >&5
6912 (eval "$ac_link") 2>conftest.er1
6914 grep -v '^ *+' conftest.er1 >conftest.err
6916 cat conftest.err >&5
6917 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6918 (exit $ac_status); } && {
6919 test -z "$ac_c_werror_flag" ||
6920 test ! -s conftest.err
6921 } && test -s conftest$ac_exeext && {
6922 test "$cross_compiling" = yes ||
6923 $as_test_x conftest$ac_exeext
6925 { $as_echo "$as_me:$LINENO: result: yes" >&5
6926 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
6927 #define HAVE_SIGEMPTYSET 1
6931 $as_echo "$as_me: failed program was:" >&5
6932 sed 's/^/| /' conftest.$ac_ext >&5
6934 { $as_echo "$as_me:$LINENO: result: no" >&5
6935 $as_echo "no" >&6; }
6938 rm -rf conftest.dSYM
6939 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6940 conftest$ac_exeext conftest.$ac_ext
6943 { $as_echo "$as_me:$LINENO: checking for errno" >&5
6944 $as_echo_n "checking for errno... " >&6; }
6945 cat >conftest.$ac_ext <<_ACEOF
6948 cat confdefs.h >>conftest.$ac_ext
6949 cat >>conftest.$ac_ext <<_ACEOF
6950 /* end confdefs.h. */
6958 static int x; x = errno;
6963 rm -f conftest.$ac_objext conftest$ac_exeext
6964 if { (ac_try="$ac_link"
6966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6967 *) ac_try_echo=$ac_try;;
6969 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6970 $as_echo "$ac_try_echo") >&5
6971 (eval "$ac_link") 2>conftest.er1
6973 grep -v '^ *+' conftest.er1 >conftest.err
6975 cat conftest.err >&5
6976 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6977 (exit $ac_status); } && {
6978 test -z "$ac_c_werror_flag" ||
6979 test ! -s conftest.err
6980 } && test -s conftest$ac_exeext && {
6981 test "$cross_compiling" = yes ||
6982 $as_test_x conftest$ac_exeext
6984 { $as_echo "$as_me:$LINENO: result: yes - in errno.h" >&5
6985 $as_echo "yes - in errno.h" >&6; }; cat >>confdefs.h <<\_ACEOF
6986 #define HAVE_ERRNO 1
6990 $as_echo "$as_me: failed program was:" >&5
6991 sed 's/^/| /' conftest.$ac_ext >&5
6996 rm -rf conftest.dSYM
6997 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6998 conftest$ac_exeext conftest.$ac_ext
6999 if test $have_errno = no; then
7000 cat >conftest.$ac_ext <<_ACEOF
7003 cat confdefs.h >>conftest.$ac_ext
7004 cat >>conftest.$ac_ext <<_ACEOF
7005 /* end confdefs.h. */
7013 extern int errno; static int x; x = errno;
7018 rm -f conftest.$ac_objext conftest$ac_exeext
7019 if { (ac_try="$ac_link"
7021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7022 *) ac_try_echo=$ac_try;;
7024 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7025 $as_echo "$ac_try_echo") >&5
7026 (eval "$ac_link") 2>conftest.er1
7028 grep -v '^ *+' conftest.er1 >conftest.err
7030 cat conftest.err >&5
7031 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7032 (exit $ac_status); } && {
7033 test -z "$ac_c_werror_flag" ||
7034 test ! -s conftest.err
7035 } && test -s conftest$ac_exeext && {
7036 test "$cross_compiling" = yes ||
7037 $as_test_x conftest$ac_exeext
7039 { $as_echo "$as_me:$LINENO: result: yes - must define" >&5
7040 $as_echo "yes - must define" >&6; }; cat >>confdefs.h <<\_ACEOF
7041 #define HAVE_ERRNO 1
7043 cat >>confdefs.h <<\_ACEOF
7044 #define MUST_DEFINE_ERRNO 1
7048 $as_echo "$as_me: failed program was:" >&5
7049 sed 's/^/| /' conftest.$ac_ext >&5
7051 { $as_echo "$as_me:$LINENO: result: no" >&5
7052 $as_echo "no" >&6; }
7055 rm -rf conftest.dSYM
7056 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7057 conftest$ac_exeext conftest.$ac_ext
7060 { $as_echo "$as_me:$LINENO: checking for locale" >&5
7061 $as_echo_n "checking for locale... " >&6; }
7062 cat >conftest.$ac_ext <<_ACEOF
7065 cat confdefs.h >>conftest.$ac_ext
7066 cat >>conftest.$ac_ext <<_ACEOF
7067 /* end confdefs.h. */
7070 #include <langinfo.h>
7074 setlocale(LC_CTYPE,""); isprint(0); iscntrl(0);
7079 rm -f conftest.$ac_objext conftest$ac_exeext
7080 if { (ac_try="$ac_link"
7082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7083 *) ac_try_echo=$ac_try;;
7085 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7086 $as_echo "$ac_try_echo") >&5
7087 (eval "$ac_link") 2>conftest.er1
7089 grep -v '^ *+' conftest.er1 >conftest.err
7091 cat conftest.err >&5
7092 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7093 (exit $ac_status); } && {
7094 test -z "$ac_c_werror_flag" ||
7095 test ! -s conftest.err
7096 } && test -s conftest$ac_exeext && {
7097 test "$cross_compiling" = yes ||
7098 $as_test_x conftest$ac_exeext
7100 { $as_echo "$as_me:$LINENO: result: yes" >&5
7101 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
7102 #define HAVE_LOCALE 1
7106 $as_echo "$as_me: failed program was:" >&5
7107 sed 's/^/| /' conftest.$ac_ext >&5
7109 { $as_echo "$as_me:$LINENO: result: no" >&5
7110 $as_echo "no" >&6; }
7113 rm -rf conftest.dSYM
7114 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7115 conftest$ac_exeext conftest.$ac_ext
7117 { $as_echo "$as_me:$LINENO: checking for ctype functions" >&5
7118 $as_echo_n "checking for ctype functions... " >&6; }
7119 cat >conftest.$ac_ext <<_ACEOF
7122 cat confdefs.h >>conftest.$ac_ext
7123 cat >>conftest.$ac_ext <<_ACEOF
7124 /* end confdefs.h. */
7132 static int x; x = isupper(x); x = tolower(x); x = toupper(x);
7137 rm -f conftest.$ac_objext conftest$ac_exeext
7138 if { (ac_try="$ac_link"
7140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7141 *) ac_try_echo=$ac_try;;
7143 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7144 $as_echo "$ac_try_echo") >&5
7145 (eval "$ac_link") 2>conftest.er1
7147 grep -v '^ *+' conftest.er1 >conftest.err
7149 cat conftest.err >&5
7150 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7151 (exit $ac_status); } && {
7152 test -z "$ac_c_werror_flag" ||
7153 test ! -s conftest.err
7154 } && test -s conftest$ac_exeext && {
7155 test "$cross_compiling" = yes ||
7156 $as_test_x conftest$ac_exeext
7158 { $as_echo "$as_me:$LINENO: result: yes" >&5
7159 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
7160 #define HAVE_UPPER_LOWER 1
7164 $as_echo "$as_me: failed program was:" >&5
7165 sed 's/^/| /' conftest.$ac_ext >&5
7167 { $as_echo "$as_me:$LINENO: result: no" >&5
7168 $as_echo "no" >&6; }
7171 rm -rf conftest.dSYM
7172 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7173 conftest$ac_exeext conftest.$ac_ext
7175 { $as_echo "$as_me:$LINENO: checking for wctype functions" >&5
7176 $as_echo_n "checking for wctype functions... " >&6; }
7177 cat >conftest.$ac_ext <<_ACEOF
7180 cat confdefs.h >>conftest.$ac_ext
7181 cat >>conftest.$ac_ext <<_ACEOF
7182 /* end confdefs.h. */
7187 iswlower(0); iswupper(0); towlower(0); towupper(0);
7192 rm -f conftest.$ac_objext conftest$ac_exeext
7193 if { (ac_try="$ac_link"
7195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7196 *) ac_try_echo=$ac_try;;
7198 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7199 $as_echo "$ac_try_echo") >&5
7200 (eval "$ac_link") 2>conftest.er1
7202 grep -v '^ *+' conftest.er1 >conftest.err
7204 cat conftest.err >&5
7205 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7206 (exit $ac_status); } && {
7207 test -z "$ac_c_werror_flag" ||
7208 test ! -s conftest.err
7209 } && test -s conftest$ac_exeext && {
7210 test "$cross_compiling" = yes ||
7211 $as_test_x conftest$ac_exeext
7213 { $as_echo "$as_me:$LINENO: result: yes" >&5
7214 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
7215 #define HAVE_WCTYPE 1
7219 $as_echo "$as_me: failed program was:" >&5
7220 sed 's/^/| /' conftest.$ac_ext >&5
7222 { $as_echo "$as_me:$LINENO: result: no" >&5
7223 $as_echo "no" >&6; }
7226 rm -rf conftest.dSYM
7227 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7228 conftest$ac_exeext conftest.$ac_ext
7230 # Checks for external variable ospeed in the termcap library.
7232 { $as_echo "$as_me:$LINENO: checking termcap for ospeed" >&5
7233 $as_echo_n "checking termcap for ospeed... " >&6; }
7234 cat >conftest.$ac_ext <<_ACEOF
7237 cat confdefs.h >>conftest.$ac_ext
7238 cat >>conftest.$ac_ext <<_ACEOF
7239 /* end confdefs.h. */
7241 #include <sys/types.h>
7243 #include <termios.h>
7246 #include <termcap.h>
7256 rm -f conftest.$ac_objext conftest$ac_exeext
7257 if { (ac_try="$ac_link"
7259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7260 *) ac_try_echo=$ac_try;;
7262 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7263 $as_echo "$ac_try_echo") >&5
7264 (eval "$ac_link") 2>conftest.er1
7266 grep -v '^ *+' conftest.er1 >conftest.err
7268 cat conftest.err >&5
7269 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7270 (exit $ac_status); } && {
7271 test -z "$ac_c_werror_flag" ||
7272 test ! -s conftest.err
7273 } && test -s conftest$ac_exeext && {
7274 test "$cross_compiling" = yes ||
7275 $as_test_x conftest$ac_exeext
7277 { $as_echo "$as_me:$LINENO: result: yes - in termcap.h" >&5
7278 $as_echo "yes - in termcap.h" >&6; }; cat >>confdefs.h <<\_ACEOF
7279 #define HAVE_OSPEED 1
7283 $as_echo "$as_me: failed program was:" >&5
7284 sed 's/^/| /' conftest.$ac_ext >&5
7289 rm -rf conftest.dSYM
7290 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7291 conftest$ac_exeext conftest.$ac_ext
7292 if test $have_ospeed = no; then
7293 cat >conftest.$ac_ext <<_ACEOF
7296 cat confdefs.h >>conftest.$ac_ext
7297 cat >>conftest.$ac_ext <<_ACEOF
7298 /* end confdefs.h. */
7303 extern short ospeed; ospeed = 0;
7308 rm -f conftest.$ac_objext conftest$ac_exeext
7309 if { (ac_try="$ac_link"
7311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7312 *) ac_try_echo=$ac_try;;
7314 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7315 $as_echo "$ac_try_echo") >&5
7316 (eval "$ac_link") 2>conftest.er1
7318 grep -v '^ *+' conftest.er1 >conftest.err
7320 cat conftest.err >&5
7321 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7322 (exit $ac_status); } && {
7323 test -z "$ac_c_werror_flag" ||
7324 test ! -s conftest.err
7325 } && test -s conftest$ac_exeext && {
7326 test "$cross_compiling" = yes ||
7327 $as_test_x conftest$ac_exeext
7329 { $as_echo "$as_me:$LINENO: result: yes - must define" >&5
7330 $as_echo "yes - must define" >&6; }; cat >>confdefs.h <<\_ACEOF
7331 #define HAVE_OSPEED 1
7333 cat >>confdefs.h <<\_ACEOF
7334 #define MUST_DEFINE_OSPEED 1
7338 $as_echo "$as_me: failed program was:" >&5
7339 sed 's/^/| /' conftest.$ac_ext >&5
7341 { $as_echo "$as_me:$LINENO: result: no" >&5
7342 $as_echo "no" >&6; }
7345 rm -rf conftest.dSYM
7346 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7347 conftest$ac_exeext conftest.$ac_ext
7350 # Compile in secure mode?
7352 # Check whether --with-secure was given.
7353 if test "${with_secure+set}" = set; then
7354 withval=$with_secure; cat >>confdefs.h <<\_ACEOF
7355 #define SECURE_COMPILE 1
7359 cat >>confdefs.h <<\_ACEOF
7360 #define SECURE_COMPILE 0
7366 # Checks for regular expression functions.
7368 have_posix_regex=unknown
7369 { $as_echo "$as_me:$LINENO: checking for regcomp" >&5
7370 $as_echo_n "checking for regcomp... " >&6; }
7372 # Select a regular expression library.
7375 # Check whether --with-regex was given.
7376 if test "${with_regex+set}" = set; then
7377 withval=$with_regex; WANT_REGEX="$withval"
7381 if test $have_regex = no; then
7382 if test $WANT_REGEX = auto -o $WANT_REGEX = posix; then
7383 # Some versions of Solaris have a regcomp() function, but it doesn't work!
7384 # So we run a test program. If we're cross-compiling, do it the old way.
7385 if test "$cross_compiling" = yes; then
7386 have_posix_regex=unknown
7388 cat >conftest.$ac_ext <<_ACEOF
7391 cat confdefs.h >>conftest.$ac_ext
7392 cat >>conftest.$ac_ext <<_ACEOF
7393 /* end confdefs.h. */
7395 #include <sys/types.h>
7397 main() { regex_t r; regmatch_t rm; char *text = "xabcy";
7398 if (regcomp(&r, "abc", 0)) exit(1);
7399 if (regexec(&r, text, 1, &rm, 0)) exit(1);
7401 if (rm.rm_so != 1) exit(1); /* check for correct offset */
7403 if (rm.rm_sp != text + 1) exit(1); /* check for correct offset */
7407 rm -f conftest$ac_exeext
7408 if { (ac_try="$ac_link"
7410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7411 *) ac_try_echo=$ac_try;;
7413 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7414 $as_echo "$ac_try_echo") >&5
7415 (eval "$ac_link") 2>&5
7417 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7418 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7419 { (case "(($ac_try" in
7420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7421 *) ac_try_echo=$ac_try;;
7423 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7424 $as_echo "$ac_try_echo") >&5
7425 (eval "$ac_try") 2>&5
7427 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7428 (exit $ac_status); }; }; then
7429 have_posix_regex=yes
7431 $as_echo "$as_me: program exited with status $ac_status" >&5
7432 $as_echo "$as_me: failed program was:" >&5
7433 sed 's/^/| /' conftest.$ac_ext >&5
7438 rm -rf conftest.dSYM
7439 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7443 if test $have_posix_regex = yes; then
7444 { $as_echo "$as_me:$LINENO: result: using POSIX regcomp" >&5
7445 $as_echo "using POSIX regcomp" >&6; }
7446 cat >>confdefs.h <<\_ACEOF
7447 #define HAVE_POSIX_REGCOMP 1
7451 elif test $have_posix_regex = unknown; then
7452 cat >conftest.$ac_ext <<_ACEOF
7455 cat confdefs.h >>conftest.$ac_ext
7456 cat >>conftest.$ac_ext <<_ACEOF
7457 /* end confdefs.h. */
7459 #include <sys/types.h>
7464 regex_t *r; regfree(r);
7469 rm -f conftest.$ac_objext conftest$ac_exeext
7470 if { (ac_try="$ac_link"
7472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7473 *) ac_try_echo=$ac_try;;
7475 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7476 $as_echo "$ac_try_echo") >&5
7477 (eval "$ac_link") 2>conftest.er1
7479 grep -v '^ *+' conftest.er1 >conftest.err
7481 cat conftest.err >&5
7482 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7483 (exit $ac_status); } && {
7484 test -z "$ac_c_werror_flag" ||
7485 test ! -s conftest.err
7486 } && test -s conftest$ac_exeext && {
7487 test "$cross_compiling" = yes ||
7488 $as_test_x conftest$ac_exeext
7490 { $as_echo "$as_me:$LINENO: result: using POSIX regcomp" >&5
7491 $as_echo "using POSIX regcomp" >&6; }
7492 cat >>confdefs.h <<\_ACEOF
7493 #define HAVE_POSIX_REGCOMP 1
7497 $as_echo "$as_me: failed program was:" >&5
7498 sed 's/^/| /' conftest.$ac_ext >&5
7503 rm -rf conftest.dSYM
7504 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7505 conftest$ac_exeext conftest.$ac_ext
7507 { $as_echo "$as_me:$LINENO: result: no" >&5
7508 $as_echo "no" >&6; }
7513 if test $have_regex = no; then
7514 if test $WANT_REGEX = auto -o $WANT_REGEX = pcre; then
7515 { $as_echo "$as_me:$LINENO: checking for pcre_compile in -lpcre" >&5
7516 $as_echo_n "checking for pcre_compile in -lpcre... " >&6; }
7517 if test "${ac_cv_lib_pcre_pcre_compile+set}" = set; then
7518 $as_echo_n "(cached) " >&6
7520 ac_check_lib_save_LIBS=$LIBS
7522 cat >conftest.$ac_ext <<_ACEOF
7525 cat confdefs.h >>conftest.$ac_ext
7526 cat >>conftest.$ac_ext <<_ACEOF
7527 /* end confdefs.h. */
7529 /* Override any GCC internal prototype to avoid an error.
7530 Use char because int might match the return type of a GCC
7531 builtin and then its argument prototype would still apply. */
7535 char pcre_compile ();
7539 return pcre_compile ();
7544 rm -f conftest.$ac_objext conftest$ac_exeext
7545 if { (ac_try="$ac_link"
7547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7548 *) ac_try_echo=$ac_try;;
7550 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7551 $as_echo "$ac_try_echo") >&5
7552 (eval "$ac_link") 2>conftest.er1
7554 grep -v '^ *+' conftest.er1 >conftest.err
7556 cat conftest.err >&5
7557 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7558 (exit $ac_status); } && {
7559 test -z "$ac_c_werror_flag" ||
7560 test ! -s conftest.err
7561 } && test -s conftest$ac_exeext && {
7562 test "$cross_compiling" = yes ||
7563 $as_test_x conftest$ac_exeext
7565 ac_cv_lib_pcre_pcre_compile=yes
7567 $as_echo "$as_me: failed program was:" >&5
7568 sed 's/^/| /' conftest.$ac_ext >&5
7570 ac_cv_lib_pcre_pcre_compile=no
7573 rm -rf conftest.dSYM
7574 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7575 conftest$ac_exeext conftest.$ac_ext
7576 LIBS=$ac_check_lib_save_LIBS
7578 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pcre_pcre_compile" >&5
7579 $as_echo "$ac_cv_lib_pcre_pcre_compile" >&6; }
7580 if test "x$ac_cv_lib_pcre_pcre_compile" = x""yes; then
7581 { $as_echo "$as_me:$LINENO: result: using pcre" >&5
7582 $as_echo "using pcre" >&6; }; cat >>confdefs.h <<\_ACEOF
7585 LIBS="$LIBS -lpcre" have_regex=yes
7591 if test $have_regex = no; then
7592 if test $WANT_REGEX = auto -o $WANT_REGEX = regcmp; then
7593 { $as_echo "$as_me:$LINENO: checking for regcmp" >&5
7594 $as_echo_n "checking for regcmp... " >&6; }
7595 if test "${ac_cv_func_regcmp+set}" = set; then
7596 $as_echo_n "(cached) " >&6
7598 cat >conftest.$ac_ext <<_ACEOF
7601 cat confdefs.h >>conftest.$ac_ext
7602 cat >>conftest.$ac_ext <<_ACEOF
7603 /* end confdefs.h. */
7604 /* Define regcmp to an innocuous variant, in case <limits.h> declares regcmp.
7605 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7606 #define regcmp innocuous_regcmp
7608 /* System header to define __stub macros and hopefully few prototypes,
7609 which can conflict with char regcmp (); below.
7610 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7611 <limits.h> exists even on freestanding compilers. */
7614 # include <limits.h>
7616 # include <assert.h>
7621 /* Override any GCC internal prototype to avoid an error.
7622 Use char because int might match the return type of a GCC
7623 builtin and then its argument prototype would still apply. */
7628 /* The GNU C library defines this for functions which it implements
7629 to always fail with ENOSYS. Some functions are actually named
7630 something starting with __ and the normal name is an alias. */
7631 #if defined __stub_regcmp || defined __stub___regcmp
7643 rm -f conftest.$ac_objext conftest$ac_exeext
7644 if { (ac_try="$ac_link"
7646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7647 *) ac_try_echo=$ac_try;;
7649 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7650 $as_echo "$ac_try_echo") >&5
7651 (eval "$ac_link") 2>conftest.er1
7653 grep -v '^ *+' conftest.er1 >conftest.err
7655 cat conftest.err >&5
7656 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7657 (exit $ac_status); } && {
7658 test -z "$ac_c_werror_flag" ||
7659 test ! -s conftest.err
7660 } && test -s conftest$ac_exeext && {
7661 test "$cross_compiling" = yes ||
7662 $as_test_x conftest$ac_exeext
7664 ac_cv_func_regcmp=yes
7666 $as_echo "$as_me: failed program was:" >&5
7667 sed 's/^/| /' conftest.$ac_ext >&5
7669 ac_cv_func_regcmp=no
7672 rm -rf conftest.dSYM
7673 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7674 conftest$ac_exeext conftest.$ac_ext
7676 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_regcmp" >&5
7677 $as_echo "$ac_cv_func_regcmp" >&6; }
7678 if test "x$ac_cv_func_regcmp" = x""yes; then
7679 { $as_echo "$as_me:$LINENO: result: using regcmp" >&5
7680 $as_echo "using regcmp" >&6; }; cat >>confdefs.h <<\_ACEOF
7681 #define HAVE_REGCMP 1
7689 if test $have_regex = no; then
7690 if test $WANT_REGEX = auto -o $WANT_REGEX = regcomp; then
7691 cat >conftest.$ac_ext <<_ACEOF
7694 cat confdefs.h >>conftest.$ac_ext
7695 cat >>conftest.$ac_ext <<_ACEOF
7696 /* end confdefs.h. */
7707 rm -f conftest.$ac_objext conftest$ac_exeext
7708 if { (ac_try="$ac_link"
7710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7711 *) ac_try_echo=$ac_try;;
7713 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7714 $as_echo "$ac_try_echo") >&5
7715 (eval "$ac_link") 2>conftest.er1
7717 grep -v '^ *+' conftest.er1 >conftest.err
7719 cat conftest.err >&5
7720 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7721 (exit $ac_status); } && {
7722 test -z "$ac_c_werror_flag" ||
7723 test ! -s conftest.err
7724 } && test -s conftest$ac_exeext && {
7725 test "$cross_compiling" = yes ||
7726 $as_test_x conftest$ac_exeext
7728 { $as_echo "$as_me:$LINENO: result: using V8 regcomp" >&5
7729 $as_echo "using V8 regcomp" >&6; }; cat >>confdefs.h <<\_ACEOF
7730 #define HAVE_V8_REGCOMP 1
7734 $as_echo "$as_me: failed program was:" >&5
7735 sed 's/^/| /' conftest.$ac_ext >&5
7740 rm -rf conftest.dSYM
7741 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7742 conftest$ac_exeext conftest.$ac_ext
7746 if test $have_regex = no && test -f ${srcdir}/regexp.c; then
7747 if test $WANT_REGEX = auto -o $WANT_REGEX = regcomp-local; then
7748 { $as_echo "$as_me:$LINENO: result: using V8 regcomp -- local source" >&5
7749 $as_echo "using V8 regcomp -- local source" >&6; }; cat >>confdefs.h <<\_ACEOF
7750 #define HAVE_V8_REGCOMP 1
7752 cat >>confdefs.h <<\_ACEOF
7753 #define HAVE_REGEXEC2 1
7755 REGEX_O='regexp.$(O)' have_regex=yes
7759 if test $have_regex = no; then
7760 if test $WANT_REGEX = auto -o $WANT_REGEX = re_comp; then
7761 { $as_echo "$as_me:$LINENO: result: using re_comp" >&5
7762 $as_echo "using re_comp" >&6; }; { $as_echo "$as_me:$LINENO: checking for re_comp" >&5
7763 $as_echo_n "checking for re_comp... " >&6; }
7764 if test "${ac_cv_func_re_comp+set}" = set; then
7765 $as_echo_n "(cached) " >&6
7767 cat >conftest.$ac_ext <<_ACEOF
7770 cat confdefs.h >>conftest.$ac_ext
7771 cat >>conftest.$ac_ext <<_ACEOF
7772 /* end confdefs.h. */
7773 /* Define re_comp to an innocuous variant, in case <limits.h> declares re_comp.
7774 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7775 #define re_comp innocuous_re_comp
7777 /* System header to define __stub macros and hopefully few prototypes,
7778 which can conflict with char re_comp (); below.
7779 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7780 <limits.h> exists even on freestanding compilers. */
7783 # include <limits.h>
7785 # include <assert.h>
7790 /* Override any GCC internal prototype to avoid an error.
7791 Use char because int might match the return type of a GCC
7792 builtin and then its argument prototype would still apply. */
7797 /* The GNU C library defines this for functions which it implements
7798 to always fail with ENOSYS. Some functions are actually named
7799 something starting with __ and the normal name is an alias. */
7800 #if defined __stub_re_comp || defined __stub___re_comp
7812 rm -f conftest.$ac_objext conftest$ac_exeext
7813 if { (ac_try="$ac_link"
7815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7816 *) ac_try_echo=$ac_try;;
7818 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7819 $as_echo "$ac_try_echo") >&5
7820 (eval "$ac_link") 2>conftest.er1
7822 grep -v '^ *+' conftest.er1 >conftest.err
7824 cat conftest.err >&5
7825 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7826 (exit $ac_status); } && {
7827 test -z "$ac_c_werror_flag" ||
7828 test ! -s conftest.err
7829 } && test -s conftest$ac_exeext && {
7830 test "$cross_compiling" = yes ||
7831 $as_test_x conftest$ac_exeext
7833 ac_cv_func_re_comp=yes
7835 $as_echo "$as_me: failed program was:" >&5
7836 sed 's/^/| /' conftest.$ac_ext >&5
7838 ac_cv_func_re_comp=no
7841 rm -rf conftest.dSYM
7842 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7843 conftest$ac_exeext conftest.$ac_ext
7845 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_re_comp" >&5
7846 $as_echo "$ac_cv_func_re_comp" >&6; }
7847 if test "x$ac_cv_func_re_comp" = x""yes; then
7848 cat >>confdefs.h <<\_ACEOF
7849 #define HAVE_RE_COMP 1
7857 if test $have_regex = no; then
7858 { $as_echo "$as_me:$LINENO: result: cannot find regular expression library" >&5
7859 $as_echo "cannot find regular expression library" >&6; }; cat >>confdefs.h <<\_ACEOF
7866 # Check whether --with-editor was given.
7867 if test "${with_editor+set}" = set; then
7868 withval=$with_editor; cat >>confdefs.h <<_ACEOF
7869 #define EDIT_PGM "$withval"
7873 cat >>confdefs.h <<\_ACEOF
7874 #define EDIT_PGM "vi"
7883 ac_config_files="$ac_config_files Makefile"
7885 cat >confcache <<\_ACEOF
7886 # This file is a shell script that caches the results of configure
7887 # tests run on this system so they can be shared between configure
7888 # scripts and configure runs, see configure's option --config-cache.
7889 # It is not useful on other systems. If it contains results you don't
7890 # want to keep, you may remove or edit it.
7892 # config.status only pays attention to the cache file if you give it
7893 # the --recheck option to rerun configure.
7895 # `ac_cv_env_foo' variables (set or unset) will be overridden when
7896 # loading this file, other *unset* `ac_cv_foo' will be assigned the
7901 # The following way of writing the cache mishandles newlines in values,
7902 # but we know of no workaround that is simple, portable, and efficient.
7903 # So, we kill variables containing newlines.
7904 # Ultrix sh set writes to stderr and can't be redirected directly,
7905 # and sets the high bit in the cache file unless we assign to the vars.
7907 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
7908 eval ac_val=\$$ac_var
7912 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
7913 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
7916 _ | IFS | as_nl) ;; #(
7917 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
7918 *) $as_unset $ac_var ;;
7924 case $as_nl`(ac_space=' '; set) 2>&1` in #(
7925 *${as_nl}ac_space=\ *)
7926 # `set' does not quote correctly, so add quotes (double-quote
7927 # substitution turns \\\\ into \\, and sed turns \\ into \).
7930 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7933 # `set' quotes correctly as required by POSIX, so do not add quotes.
7934 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
7943 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7945 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7947 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
7948 if test -w "$cache_file"; then
7949 test "x$cache_file" != "x/dev/null" &&
7950 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
7951 $as_echo "$as_me: updating cache $cache_file" >&6;}
7952 cat confcache >$cache_file
7954 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
7955 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
7960 test "x$prefix" = xNONE && prefix=$ac_default_prefix
7961 # Let make expand exec_prefix.
7962 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7964 DEFS=-DHAVE_CONFIG_H
7968 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
7969 # 1. Remove the extension, and $U if already installed.
7970 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
7971 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
7972 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
7973 # will be set to the directory where LIBOBJS objects are built.
7974 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
7975 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
7979 LTLIBOBJS=$ac_ltlibobjs
7983 : ${CONFIG_STATUS=./config.status}
7985 ac_clean_files_save=$ac_clean_files
7986 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7987 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
7988 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
7989 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7991 # Generated by $as_me.
7992 # Run this file to recreate the current configuration.
7993 # Compiler output produced by configure, useful for debugging
7994 # configure, is in config.log if it exists.
7999 SHELL=\${CONFIG_SHELL-$SHELL}
8002 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8003 ## --------------------- ##
8004 ## M4sh Initialization. ##
8005 ## --------------------- ##
8007 # Be more Bourne compatible
8008 DUALCASE=1; export DUALCASE # for MKS sh
8009 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
8012 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
8013 # is contrary to our usage. Disable this feature.
8014 alias -g '${1+"$@"}'='"$@"'
8015 setopt NO_GLOB_SUBST
8017 case `(set -o) 2>/dev/null` in
8018 *posix*) set -o posix ;;
8027 # Avoid depending upon Character Ranges.
8028 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
8029 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8030 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
8031 as_cr_digits='0123456789'
8032 as_cr_alnum=$as_cr_Letters$as_cr_digits
8037 # Printing a long string crashes Solaris 7 /usr/bin/printf.
8038 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
8039 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
8040 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
8041 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
8042 as_echo='printf %s\n'
8043 as_echo_n='printf %s'
8045 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
8046 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
8047 as_echo_n='/usr/ucb/echo -n'
8049 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
8050 as_echo_n_body='eval
8054 expr "X$arg" : "X\\(.*\\)$as_nl";
8055 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
8057 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
8059 export as_echo_n_body
8060 as_echo_n='sh -c $as_echo_n_body as_echo'
8063 as_echo='sh -c $as_echo_body as_echo'
8066 # The user is always right.
8067 if test "${PATH_SEPARATOR+set}" != set; then
8069 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
8070 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
8075 # Support unset when possible.
8076 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8084 # We need space, tab and new line, in precisely that order. Quoting is
8085 # there to prevent editors from complaining about space-tab.
8086 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
8087 # splitting by setting IFS to empty value.)
8090 # Find who we are. Look in the path if we contain no directory separator.
8092 *[\\/]* ) as_myself=$0 ;;
8093 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8097 test -z "$as_dir" && as_dir=.
8098 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
8104 # We did not find ourselves, most probably we were run as `sh COMMAND'
8105 # in which case we are not to be found in the path.
8106 if test "x$as_myself" = x; then
8109 if test ! -f "$as_myself"; then
8110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
8111 { (exit 1); exit 1; }
8114 # Work around bugs in pre-3.0 UWIN ksh.
8115 for as_var in ENV MAIL MAILPATH
8116 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
8128 # Required to use basename.
8129 if expr a : '\(a\)' >/dev/null 2>&1 &&
8130 test "X`expr 00001 : '.*\(...\)'`" = X001; then
8136 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
8137 as_basename=basename
8143 # Name of the executable.
8144 as_me=`$as_basename -- "$0" ||
8145 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8146 X"$0" : 'X\(//\)$' \| \
8147 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
8149 sed '/^.*\/\([^/][^/]*\)\/*$/{
8170 test "x$as_lineno_1" != "x$as_lineno_2" &&
8171 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
8173 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
8174 # uniformly replaced by the line number. The first 'sed' inserts a
8175 # line-number line after each line using $LINENO; the second 'sed'
8176 # does the real work. The second script uses 'N' to pair each
8177 # line-number line with the line containing $LINENO, and appends
8178 # trailing '-' during substitution so that $LINENO is not a special
8180 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
8181 # scripts with optimization help from Paolo Bonzini. Blame Lee
8182 # E. McMahon (1931-1989) for sed's syntax. :-)
8194 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
8198 chmod +x "$as_me.lineno" ||
8199 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
8200 { (exit 1); exit 1; }; }
8202 # Don't try to exec as it changes $[0], causing all sort of problems
8203 # (the dirname of $[0] is not the place where we might find the
8204 # original and so on. Autoconf is especially sensitive to this).
8206 # Exit status is that of the last command.
8211 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
8217 ECHO_C= ECHO_N= ECHO_T=
8220 case `echo 'x\c'` in
8221 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
8227 if expr a : '\(a\)' >/dev/null 2>&1 &&
8228 test "X`expr 00001 : '.*\(...\)'`" = X001; then
8234 rm -f conf$$ conf$$.exe conf$$.file
8235 if test -d conf$$.dir; then
8236 rm -f conf$$.dir/conf$$.file
8239 mkdir conf$$.dir 2>/dev/null
8241 if (echo >conf$$.file) 2>/dev/null; then
8242 if ln -s conf$$.file conf$$ 2>/dev/null; then
8244 # ... but there are two gotchas:
8245 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
8246 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
8247 # In both cases, we have to default to `cp -p'.
8248 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
8250 elif ln conf$$.file conf$$ 2>/dev/null; then
8258 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
8259 rmdir conf$$.dir 2>/dev/null
8261 if mkdir -p . 2>/dev/null; then
8264 test -d ./-p && rmdir ./-p
8268 if test -x / >/dev/null 2>&1; then
8271 if ls -dL / >/dev/null 2>&1; then
8278 if test -d "$1"; then
8284 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
8285 ???[sx]*):;;*)false;;esac;fi
8289 as_executable_p=$as_test_x
8291 # Sed expression to map a string onto a valid CPP name.
8292 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8294 # Sed expression to map a string onto a valid variable name.
8295 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8300 # Save the log message, to keep $[0] and so on meaningful, and to
8301 # report actual input values of CONFIG_FILES etc. instead of their
8302 # values after options handling.
8304 This file was extended by less $as_me 1, which was
8305 generated by GNU Autoconf 2.63. Invocation command line was
8307 CONFIG_FILES = $CONFIG_FILES
8308 CONFIG_HEADERS = $CONFIG_HEADERS
8309 CONFIG_LINKS = $CONFIG_LINKS
8310 CONFIG_COMMANDS = $CONFIG_COMMANDS
8313 on `(hostname || uname -n) 2>/dev/null | sed 1q`
8318 case $ac_config_files in *"
8319 "*) set x $ac_config_files; shift; ac_config_files=$*;;
8322 case $ac_config_headers in *"
8323 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
8327 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8328 # Files that config.status was made for.
8329 config_files="$ac_config_files"
8330 config_headers="$ac_config_headers"
8334 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8336 \`$as_me' instantiates files from templates according to the
8337 current configuration.
8339 Usage: $0 [OPTION]... [FILE]...
8341 -h, --help print this help, then exit
8342 -V, --version print version number and configuration settings, then exit
8343 -q, --quiet, --silent
8344 do not print progress messages
8345 -d, --debug don't remove temporary files
8346 --recheck update $as_me by reconfiguring in the same conditions
8347 --file=FILE[:TEMPLATE]
8348 instantiate the configuration file FILE
8349 --header=FILE[:TEMPLATE]
8350 instantiate the configuration header FILE
8352 Configuration files:
8355 Configuration headers:
8358 Report bugs to <bug-autoconf@gnu.org>."
8361 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8363 less config.status 1
8364 configured by $0, generated by GNU Autoconf 2.63,
8365 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
8367 Copyright (C) 2008 Free Software Foundation, Inc.
8368 This config.status script is free software; the Free Software Foundation
8369 gives unlimited permission to copy, distribute and modify it."
8374 test -n "\$AWK" || AWK=awk
8377 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8378 # The default lists apply if the user does not specify any file.
8384 ac_option=`expr "X$1" : 'X\([^=]*\)='`
8385 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
8396 # Handling of the options.
8397 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8399 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
8400 $as_echo "$ac_cs_version"; exit ;;
8401 --debug | --debu | --deb | --de | --d | -d )
8403 --file | --fil | --fi | --f )
8406 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8408 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
8409 ac_need_defaults=false;;
8410 --header | --heade | --head | --hea )
8413 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8415 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
8416 ac_need_defaults=false;;
8418 # Conflict between --help and --header
8419 { $as_echo "$as_me: error: ambiguous option: $1
8420 Try \`$0 --help' for more information." >&2
8421 { (exit 1); exit 1; }; };;
8422 --help | --hel | -h )
8423 $as_echo "$ac_cs_usage"; exit ;;
8424 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
8425 | -silent | --silent | --silen | --sile | --sil | --si | --s)
8429 -*) { $as_echo "$as_me: error: unrecognized option: $1
8430 Try \`$0 --help' for more information." >&2
8431 { (exit 1); exit 1; }; } ;;
8433 *) ac_config_targets="$ac_config_targets $1"
8434 ac_need_defaults=false ;;
8440 ac_configure_extra_args=
8442 if $ac_cs_silent; then
8444 ac_configure_extra_args="$ac_configure_extra_args --silent"
8448 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8449 if \$ac_cs_recheck; then
8450 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8452 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
8453 CONFIG_SHELL='$SHELL'
8459 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8463 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8464 ## Running $as_me. ##
8470 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8473 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8475 # Handling of arguments.
8476 for ac_config_target in $ac_config_targets
8478 case $ac_config_target in
8479 "defines.h") CONFIG_HEADERS="$CONFIG_HEADERS defines.h" ;;
8480 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
8482 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
8483 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
8484 { (exit 1); exit 1; }; };;
8489 # If the user did not use the arguments to specify the items to instantiate,
8490 # then the envvar interface is used. Set only those that are not.
8491 # We use the long form for the default assignment because of an extremely
8492 # bizarre bug on SunOS 4.1.3.
8493 if $ac_need_defaults; then
8494 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
8495 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
8498 # Have a temporary directory for convenience. Make it in the build tree
8499 # simply because there is no reason against having it here, and in addition,
8500 # creating and moving files from /tmp can sometimes cause problems.
8501 # Hook for its removal unless debugging.
8502 # Note that there is a small window in which the directory will not be cleaned:
8503 # after its creation but before its name has been assigned to `$tmp'.
8507 trap 'exit_status=$?
8508 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
8510 trap '{ (exit 1); exit 1; }' 1 2 13 15
8512 # Create a (secure) tmp directory for tmp files.
8515 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
8516 test -n "$tmp" && test -d "$tmp"
8519 tmp=./conf$$-$RANDOM
8520 (umask 077 && mkdir "$tmp")
8523 $as_echo "$as_me: cannot create a temporary directory in ." >&2
8524 { (exit 1); exit 1; }
8527 # Set up the scripts for CONFIG_FILES section.
8528 # No need to generate them if there are no CONFIG_FILES.
8529 # This happens for instance with `./config.status config.h'.
8530 if test -n "$CONFIG_FILES"; then
8534 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
8535 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
8541 echo 'BEGIN {' >"$tmp/subs1.awk" &&
8546 echo "cat >conf$$subs.awk <<_ACEOF" &&
8547 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
8550 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
8551 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
8552 { (exit 1); exit 1; }; }
8553 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
8555 for ac_last_try in false false false false false :; do
8556 . ./conf$$subs.sh ||
8557 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
8558 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
8559 { (exit 1); exit 1; }; }
8561 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
8562 if test $ac_delim_n = $ac_delim_num; then
8564 elif $ac_last_try; then
8565 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
8566 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
8567 { (exit 1); exit 1; }; }
8569 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8574 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8575 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
8579 s/^/S["/; s/!.*/"]=/
8589 s/\(.\{148\}\).*/\1/
8591 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
8596 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8603 s/\(.\{148\}\).*/\1/
8605 s/["\\]/\\&/g; s/^/"/; s/$/"/
8609 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8614 ' <conf$$subs.awk | sed '
8619 ' >>$CONFIG_STATUS || ac_write_fail=1
8620 rm -f conf$$subs.awk
8621 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8623 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
8624 for (key in S) S_is_set[key] = 1
8630 nfields = split(line, field, "@")
8632 len = length(field[1])
8633 for (i = 2; i < nfields; i++) {
8635 keylen = length(key)
8636 if (S_is_set[key]) {
8638 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
8639 len += length(value) + length(field[++i])
8650 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8651 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
8652 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
8655 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
8656 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
8657 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
8658 { (exit 1); exit 1; }; }
8661 # VPATH may cause trouble with some makes, so we remove $(srcdir),
8662 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
8663 # trailing colons and then remove the whole line if VPATH becomes empty
8664 # (actually we leave an empty line to preserve line numbers).
8665 if test "x$srcdir" = x.; then
8666 ac_vpsub='/^[ ]*VPATH[ ]*=/{
8670 s/^\([^=]*=[ ]*\):*/\1/
8676 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8677 fi # test -n "$CONFIG_FILES"
8679 # Set up the scripts for CONFIG_HEADERS section.
8680 # No need to generate them if there are no CONFIG_HEADERS.
8681 # This happens for instance with `./config.status Makefile'.
8682 if test -n "$CONFIG_HEADERS"; then
8683 cat >"$tmp/defines.awk" <<\_ACAWK ||
8687 # Transform confdefs.h into an awk script `defines.awk', embedded as
8688 # here-document in config.status, that substitutes the proper values into
8689 # config.h.in to produce config.h.
8691 # Create a delimiter string that does not exist in confdefs.h, to ease
8692 # handling of long lines.
8694 for ac_last_try in false false :; do
8695 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
8696 if test -z "$ac_t"; then
8698 elif $ac_last_try; then
8699 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
8700 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
8701 { (exit 1); exit 1; }; }
8703 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8707 # For the awk script, D is an array of macro values keyed by name,
8708 # likewise P contains macro parameters if any. Preserve backslash
8709 # newline sequences.
8711 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
8713 s/.\{148\}/&'"$ac_delim"'/g
8716 s/^[ ]*#[ ]*define[ ][ ]*/ /
8723 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
8725 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
8729 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
8730 D["\1"]=" \3\\\\\\n"\\/p
8732 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
8737 s/.\{148\}/&'"$ac_delim"'/g
8742 s/["\\]/\\&/g; s/^/"/; s/$/"/p
8745 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
8747 ' <confdefs.h | sed '
8748 s/'"$ac_delim"'/"\\\
8749 "/g' >>$CONFIG_STATUS || ac_write_fail=1
8751 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8752 for (key in D) D_is_set[key] = 1
8755 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
8757 split(line, arg, " ")
8758 if (arg[1] == "#") {
8762 defundef = substr(arg[1], 2)
8765 split(mac1, mac2, "(") #)
8767 prefix = substr(line, 1, index(line, defundef) - 1)
8768 if (D_is_set[macro]) {
8769 # Preserve the white space surrounding the "#".
8770 print prefix "define", macro P[macro] D[macro]
8773 # Replace #undef with comments. This is necessary, for example,
8774 # in the case of _POSIX_SOURCE, which is predefined and required
8775 # on some systems where configure will not decide to define it.
8776 if (defundef == "undef") {
8777 print "/*", prefix defundef, macro, "*/"
8785 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8786 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
8787 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
8788 { (exit 1); exit 1; }; }
8789 fi # test -n "$CONFIG_HEADERS"
8792 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
8797 :[FHLC]) ac_mode=$ac_tag; continue;;
8799 case $ac_mode$ac_tag in
8801 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
8802 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
8803 { (exit 1); exit 1; }; };;
8804 :[FH]-) ac_tag=-:-;;
8805 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
8822 -) ac_f="$tmp/stdin";;
8823 *) # Look for the file first in the build tree, then in the source tree
8824 # (if the path is not absolute). The absolute path cannot be DOS-style,
8825 # because $ac_f cannot contain `:'.
8829 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
8831 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
8832 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
8833 { (exit 1); exit 1; }; };;
8835 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
8836 ac_file_inputs="$ac_file_inputs '$ac_f'"
8839 # Let's still pretend it is `configure' which instantiates (i.e., don't
8840 # use $as_me), people would be surprised to read:
8841 # /* config.h. Generated by config.status. */
8842 configure_input='Generated from '`
8843 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
8845 if test x"$ac_file" != x-; then
8846 configure_input="$ac_file. $configure_input"
8847 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
8848 $as_echo "$as_me: creating $ac_file" >&6;}
8850 # Neutralize special characters interpreted by sed in replacement strings.
8851 case $configure_input in #(
8852 *\&* | *\|* | *\\* )
8853 ac_sed_conf_input=`$as_echo "$configure_input" |
8854 sed 's/[\\\\&|]/\\\\&/g'`;; #(
8855 *) ac_sed_conf_input=$configure_input;;
8859 *:-:* | *:-) cat >"$tmp/stdin" \
8860 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
8861 $as_echo "$as_me: error: could not create $ac_file" >&2;}
8862 { (exit 1); exit 1; }; } ;;
8867 ac_dir=`$as_dirname -- "$ac_file" ||
8868 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8869 X"$ac_file" : 'X\(//\)[^/]' \| \
8870 X"$ac_file" : 'X\(//\)$' \| \
8871 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
8872 $as_echo X"$ac_file" |
8873 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8892 -*) as_dir=./$as_dir;;
8894 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
8898 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
8899 *) as_qdir=$as_dir;;
8901 as_dirs="'$as_qdir' $as_dirs"
8902 as_dir=`$as_dirname -- "$as_dir" ||
8903 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8904 X"$as_dir" : 'X\(//\)[^/]' \| \
8905 X"$as_dir" : 'X\(//\)$' \| \
8906 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
8907 $as_echo X"$as_dir" |
8908 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8925 test -d "$as_dir" && break
8927 test -z "$as_dirs" || eval "mkdir $as_dirs"
8928 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
8929 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
8930 { (exit 1); exit 1; }; }; }
8934 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
8936 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
8937 # A ".." for each directory in $ac_dir_suffix.
8938 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
8939 case $ac_top_builddir_sub in
8940 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
8941 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
8944 ac_abs_top_builddir=$ac_pwd
8945 ac_abs_builddir=$ac_pwd$ac_dir_suffix
8946 # for backward compatibility:
8947 ac_top_builddir=$ac_top_build_prefix
8950 .) # We are building in place.
8952 ac_top_srcdir=$ac_top_builddir_sub
8953 ac_abs_top_srcdir=$ac_pwd ;;
8954 [\\/]* | ?:[\\/]* ) # Absolute name.
8955 ac_srcdir=$srcdir$ac_dir_suffix;
8956 ac_top_srcdir=$srcdir
8957 ac_abs_top_srcdir=$srcdir ;;
8959 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
8960 ac_top_srcdir=$ac_top_build_prefix$srcdir
8961 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
8963 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
8973 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
8974 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
8978 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8979 # If the template does not know about datarootdir, expand it.
8980 # FIXME: This hack should be removed a few years after 2.60.
8981 ac_datarootdir_hack=; ac_datarootdir_seen=
8994 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
8995 *datarootdir*) ac_datarootdir_seen=yes;;
8996 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
8997 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
8998 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
9000 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9001 ac_datarootdir_hack='
9002 s&@datadir@&$datadir&g
9003 s&@docdir@&$docdir&g
9004 s&@infodir@&$infodir&g
9005 s&@localedir@&$localedir&g
9006 s&@mandir@&$mandir&g
9007 s&\\\${datarootdir}&$datarootdir&g' ;;
9011 # Neutralize VPATH when `$srcdir' = `.'.
9012 # Shell code in configure.ac might set extrasub.
9013 # FIXME: do we really want to maintain this feature?
9014 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9015 ac_sed_extra="$ac_vpsub
9018 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9020 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9021 s|@configure_input@|$ac_sed_conf_input|;t t
9022 s&@top_builddir@&$ac_top_builddir_sub&;t t
9023 s&@top_build_prefix@&$ac_top_build_prefix&;t t
9024 s&@srcdir@&$ac_srcdir&;t t
9025 s&@abs_srcdir@&$ac_abs_srcdir&;t t
9026 s&@top_srcdir@&$ac_top_srcdir&;t t
9027 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
9028 s&@builddir@&$ac_builddir&;t t
9029 s&@abs_builddir@&$ac_abs_builddir&;t t
9030 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
9031 s&@INSTALL@&$ac_INSTALL&;t t
9032 $ac_datarootdir_hack
9034 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
9035 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
9036 $as_echo "$as_me: error: could not create $ac_file" >&2;}
9037 { (exit 1); exit 1; }; }
9039 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
9040 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
9041 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
9042 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9043 which seems to be undefined. Please make sure it is defined." >&5
9044 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9045 which seems to be undefined. Please make sure it is defined." >&2;}
9049 -) cat "$tmp/out" && rm -f "$tmp/out";;
9050 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
9052 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
9053 $as_echo "$as_me: error: could not create $ac_file" >&2;}
9054 { (exit 1); exit 1; }; }
9060 if test x"$ac_file" != x-; then
9062 $as_echo "/* $configure_input */" \
9063 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
9064 } >"$tmp/config.h" \
9065 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
9066 $as_echo "$as_me: error: could not create $ac_file" >&2;}
9067 { (exit 1); exit 1; }; }
9068 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
9069 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
9070 $as_echo "$as_me: $ac_file is unchanged" >&6;}
9073 mv "$tmp/config.h" "$ac_file" \
9074 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
9075 $as_echo "$as_me: error: could not create $ac_file" >&2;}
9076 { (exit 1); exit 1; }; }
9079 $as_echo "/* $configure_input */" \
9080 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
9081 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
9082 $as_echo "$as_me: error: could not create -" >&2;}
9083 { (exit 1); exit 1; }; }
9093 { (exit 0); exit 0; }
9095 chmod +x $CONFIG_STATUS
9096 ac_clean_files=$ac_clean_files_save
9098 test $ac_write_fail = 0 ||
9099 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
9100 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
9101 { (exit 1); exit 1; }; }
9104 # configure is writing to config.log, and then calls config.status.
9105 # config.status does its own redirection, appending to config.log.
9106 # Unfortunately, on DOS this fails, as config.log is still kept open
9107 # by configure, so config.status won't be able to write to it; its
9108 # output is simply discarded. So we exec the FD to /dev/null,
9109 # effectively closing config.log, so it can be properly (re)opened and
9110 # appended to by config.status. When coming back to configure, we
9111 # need to make the FD available again.
9112 if test "$no_create" != yes; then
9114 ac_config_status_args=
9115 test "$silent" = yes &&
9116 ac_config_status_args="$ac_config_status_args --quiet"
9118 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
9120 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9121 # would make configure fail if this is the last instruction.
9122 $ac_cs_success || { (exit 1); exit 1; }
9124 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
9125 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
9126 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}