Merge pull request #11 from esorton/bugfix/add-constexpr-keyword-to-arduino-ctags
[arduino-ctags.git] / configure
blobf137cf17578630fa38c5334421a2105e0770b248
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 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
16 emulate sh
17 NULLCMD=:
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 setopt NO_GLOB_SUBST
22 else
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
25 esac
32 # PATH needs CR
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
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
44 chmod +x conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46 PATH_SEPARATOR=';'
47 else
48 PATH_SEPARATOR=:
50 rm -f conf$$.sh
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55 as_unset=unset
56 else
57 as_unset=false
61 # IFS
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
66 as_nl='
68 IFS=" "" $as_nl"
70 # Find who we are. Look in the path if we contain no directory separator.
71 case $0 in
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74 for as_dir in $PATH
76 IFS=$as_save_IFS
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79 done
80 IFS=$as_save_IFS
83 esac
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
87 as_myself=$0
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91 { (exit 1); exit 1; }
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97 done
98 PS1='$ '
99 PS2='> '
100 PS4='+ '
102 # NLS nuisances.
103 for as_var in \
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106 LC_TELEPHONE LC_TIME
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
110 else
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
113 done
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
118 as_expr=expr
119 else
120 as_expr=false
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124 as_basename=basename
125 else
126 as_basename=false
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135 echo X/"$0" |
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
137 s//\1/
140 /^X\/\(\/\/\)$/{
141 s//\1/
144 /^X\/\(\/\).*/{
145 s//\1/
148 s/.*/./; q'`
150 # CDPATH.
151 $as_unset CDPATH
154 if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
156 as_have_required=yes
157 else
158 as_have_required=no
161 if test $as_have_required = yes && (eval ":
162 (as_func_return () {
163 (exit \$1)
165 as_func_success () {
166 as_func_return 0
168 as_func_failure () {
169 as_func_return 1
171 as_func_ret_success () {
172 return 0
174 as_func_ret_failure () {
175 return 1
178 exitcode=0
179 if as_func_success; then
181 else
182 exitcode=1
183 echo as_func_success failed.
186 if as_func_failure; then
187 exitcode=1
188 echo as_func_failure succeeded.
191 if as_func_ret_success; then
193 else
194 exitcode=1
195 echo as_func_ret_success failed.
198 if as_func_ret_failure; then
199 exitcode=1
200 echo as_func_ret_failure succeeded.
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
205 else
206 exitcode=1
207 echo positional parameters were not saved.
210 test \$exitcode = 0) || { (exit 1); exit 1; }
213 as_lineno_1=\$LINENO
214 as_lineno_2=\$LINENO
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
219 else
220 as_candidate_shells=
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
224 IFS=$as_save_IFS
225 test -z "$as_dir" && as_dir=.
226 case $as_dir in
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230 done;;
231 esac
232 done
233 IFS=$as_save_IFS
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241 emulate sh
242 NULLCMD=:
243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244 # is contrary to our usage. Disable this feature.
245 alias -g '${1+"$@"}'='"$@"'
246 setopt NO_GLOB_SUBST
247 else
248 case `(set -o) 2>/dev/null` in
249 *posix*) set -o posix ;;
250 esac
256 _ASEOF
257 }; then
258 CONFIG_SHELL=$as_shell
259 as_have_required=yes
260 if { "$as_shell" 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 emulate sh
263 NULLCMD=:
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
267 setopt NO_GLOB_SUBST
268 else
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
271 esac
277 (as_func_return () {
278 (exit $1)
280 as_func_success () {
281 as_func_return 0
283 as_func_failure () {
284 as_func_return 1
286 as_func_ret_success () {
287 return 0
289 as_func_ret_failure () {
290 return 1
293 exitcode=0
294 if as_func_success; then
296 else
297 exitcode=1
298 echo as_func_success failed.
301 if as_func_failure; then
302 exitcode=1
303 echo as_func_failure succeeded.
306 if as_func_ret_success; then
308 else
309 exitcode=1
310 echo as_func_ret_success failed.
313 if as_func_ret_failure; then
314 exitcode=1
315 echo as_func_ret_failure succeeded.
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
320 else
321 exitcode=1
322 echo positional parameters were not saved.
325 test $exitcode = 0) || { (exit 1); exit 1; }
328 as_lineno_1=$LINENO
329 as_lineno_2=$LINENO
330 test "x$as_lineno_1" != "x$as_lineno_2" &&
331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
333 _ASEOF
334 }; then
335 break
340 done
342 if test "x$CONFIG_SHELL" != x; then
343 for as_var in BASH_ENV ENV
344 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345 done
346 export CONFIG_SHELL
347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
351 if test $as_have_required = no; then
352 echo This script requires a shell more modern than all the
353 echo shells that I found on your system. Please install a
354 echo modern shell, or manually run the script under such a
355 echo shell if you do have one.
356 { (exit 1); exit 1; }
366 (eval "as_func_return () {
367 (exit \$1)
369 as_func_success () {
370 as_func_return 0
372 as_func_failure () {
373 as_func_return 1
375 as_func_ret_success () {
376 return 0
378 as_func_ret_failure () {
379 return 1
382 exitcode=0
383 if as_func_success; then
385 else
386 exitcode=1
387 echo as_func_success failed.
390 if as_func_failure; then
391 exitcode=1
392 echo as_func_failure succeeded.
395 if as_func_ret_success; then
397 else
398 exitcode=1
399 echo as_func_ret_success failed.
402 if as_func_ret_failure; then
403 exitcode=1
404 echo as_func_ret_failure succeeded.
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
409 else
410 exitcode=1
411 echo positional parameters were not saved.
414 test \$exitcode = 0") || {
415 echo No shell found that supports shell functions.
416 echo Please tell autoconf@gnu.org about your system,
417 echo including any error possibly output before this
418 echo message
423 as_lineno_1=$LINENO
424 as_lineno_2=$LINENO
425 test "x$as_lineno_1" != "x$as_lineno_2" &&
426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429 # uniformly replaced by the line number. The first 'sed' inserts a
430 # line-number line after each line using $LINENO; the second 'sed'
431 # does the real work. The second script uses 'N' to pair each
432 # line-number line with the line containing $LINENO, and appends
433 # trailing '-' during substitution so that $LINENO is not a special
434 # case at line end.
435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436 # scripts with optimization help from Paolo Bonzini. Blame Lee
437 # E. McMahon (1931-1989) for sed's syntax. :-)
438 sed -n '
440 /[$]LINENO/=
441 ' <$as_myself |
442 sed '
443 s/[$]LINENO.*/&-/
444 t lineno
446 :lineno
448 :loop
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450 t loop
451 s/-\n.*//
452 ' >$as_me.lineno &&
453 chmod +x "$as_me.lineno" ||
454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455 { (exit 1); exit 1; }; }
457 # Don't try to exec as it changes $[0], causing all sort of problems
458 # (the dirname of $[0] is not the place where we might find the
459 # original and so on. Autoconf is especially sensitive to this).
460 . "./$as_me.lineno"
461 # Exit status is that of the last command.
462 exit
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467 as_dirname=dirname
468 else
469 as_dirname=false
472 ECHO_C= ECHO_N= ECHO_T=
473 case `echo -n x` in
474 -n*)
475 case `echo 'x\c'` in
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
477 *) ECHO_C='\c';;
478 esac;;
480 ECHO_N='-n';;
481 esac
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484 test "X`expr 00001 : '.*\(...\)'`" = X001; then
485 as_expr=expr
486 else
487 as_expr=false
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492 rm -f conf$$.dir/conf$$.file
493 else
494 rm -f conf$$.dir
495 mkdir conf$$.dir
497 echo >conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
499 as_ln_s='ln -s'
500 # ... but there are two gotchas:
501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503 # In both cases, we have to default to `cp -p'.
504 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
505 as_ln_s='cp -p'
506 elif ln conf$$.file conf$$ 2>/dev/null; then
507 as_ln_s=ln
508 else
509 as_ln_s='cp -p'
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
514 if mkdir -p . 2>/dev/null; then
515 as_mkdir_p=:
516 else
517 test -d ./-p && rmdir ./-p
518 as_mkdir_p=false
521 if test -x / >/dev/null 2>&1; then
522 as_test_x='test -x'
523 else
524 if ls -dL / >/dev/null 2>&1; then
525 as_ls_L_option=L
526 else
527 as_ls_L_option=
529 as_test_x='
530 eval sh -c '\''
531 if test -d "$1"; then
532 test -d "$1/.";
533 else
534 case $1 in
535 -*)set "./$1";;
536 esac;
537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538 ???[sx]*):;;*)false;;esac;fi
539 '\'' sh
542 as_executable_p=$as_test_x
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
552 exec 7<&0 </dev/null 6>&1
554 # Name of the host.
555 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
556 # so uname gets run too.
557 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
560 # Initializations.
562 ac_default_prefix=/usr/local
563 ac_clean_files=
564 ac_config_libobj_dir=.
565 LIBOBJS=
566 cross_compiling=no
567 subdirs=
568 MFLAGS=
569 MAKEFLAGS=
570 SHELL=${CONFIG_SHELL-/bin/sh}
572 # Identity of this package.
573 PACKAGE_NAME=
574 PACKAGE_TARNAME=
575 PACKAGE_VERSION=
576 PACKAGE_STRING=
577 PACKAGE_BUGREPORT=
579 ac_unique_file="ctags.h"
580 ac_header_list=
581 # Factoring default headers for most tests.
582 ac_includes_default="\
583 #include <stdio.h>
584 #ifdef HAVE_SYS_TYPES_H
585 # include <sys/types.h>
586 #endif
587 #ifdef HAVE_SYS_STAT_H
588 # include <sys/stat.h>
589 #endif
590 #ifdef STDC_HEADERS
591 # include <stdlib.h>
592 # include <stddef.h>
593 #else
594 # ifdef HAVE_STDLIB_H
595 # include <stdlib.h>
596 # endif
597 #endif
598 #ifdef HAVE_STRING_H
599 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
600 # include <memory.h>
601 # endif
602 # include <string.h>
603 #endif
604 #ifdef HAVE_STRINGS_H
605 # include <strings.h>
606 #endif
607 #ifdef HAVE_INTTYPES_H
608 # include <inttypes.h>
609 #endif
610 #ifdef HAVE_STDINT_H
611 # include <stdint.h>
612 #endif
613 #ifdef HAVE_UNISTD_H
614 # include <unistd.h>
615 #endif"
617 ac_subst_vars='SHELL
618 PATH_SEPARATOR
619 PACKAGE_NAME
620 PACKAGE_TARNAME
621 PACKAGE_VERSION
622 PACKAGE_STRING
623 PACKAGE_BUGREPORT
624 exec_prefix
625 prefix
626 program_transform_name
627 bindir
628 sbindir
629 libexecdir
630 datarootdir
631 datadir
632 sysconfdir
633 sharedstatedir
634 localstatedir
635 includedir
636 oldincludedir
637 docdir
638 infodir
639 htmldir
640 dvidir
641 pdfdir
642 psdir
643 libdir
644 localedir
645 mandir
646 DEFS
647 ECHO_C
648 ECHO_N
649 ECHO_T
650 LIBS
651 build_alias
652 host_alias
653 target_alias
654 install_targets
656 CFLAGS
657 LDFLAGS
658 CPPFLAGS
659 ac_ct_CC
660 EXEEXT
661 OBJEXT
662 LN_S
663 STRIP
664 sort_found
666 GREP
667 EGREP
668 LIBOBJS
669 LTLIBOBJS'
670 ac_subst_files=''
671 ac_precious_vars='build_alias
672 host_alias
673 target_alias
675 CFLAGS
676 LDFLAGS
677 LIBS
678 CPPFLAGS
679 CPP'
682 # Initialize some variables set by options.
683 ac_init_help=
684 ac_init_version=false
685 # The variables have the same names as the options, with
686 # dashes changed to underlines.
687 cache_file=/dev/null
688 exec_prefix=NONE
689 no_create=
690 no_recursion=
691 prefix=NONE
692 program_prefix=NONE
693 program_suffix=NONE
694 program_transform_name=s,x,x,
695 silent=
696 site=
697 srcdir=
698 verbose=
699 x_includes=NONE
700 x_libraries=NONE
702 # Installation directory options.
703 # These are left unexpanded so users can "make install exec_prefix=/foo"
704 # and all the variables that are supposed to be based on exec_prefix
705 # by default will actually change.
706 # Use braces instead of parens because sh, perl, etc. also accept them.
707 # (The list follows the same order as the GNU Coding Standards.)
708 bindir='${exec_prefix}/bin'
709 sbindir='${exec_prefix}/sbin'
710 libexecdir='${exec_prefix}/libexec'
711 datarootdir='${prefix}/share'
712 datadir='${datarootdir}'
713 sysconfdir='${prefix}/etc'
714 sharedstatedir='${prefix}/com'
715 localstatedir='${prefix}/var'
716 includedir='${prefix}/include'
717 oldincludedir='/usr/include'
718 docdir='${datarootdir}/doc/${PACKAGE}'
719 infodir='${datarootdir}/info'
720 htmldir='${docdir}'
721 dvidir='${docdir}'
722 pdfdir='${docdir}'
723 psdir='${docdir}'
724 libdir='${exec_prefix}/lib'
725 localedir='${datarootdir}/locale'
726 mandir='${datarootdir}/man'
728 ac_prev=
729 ac_dashdash=
730 for ac_option
732 # If the previous option needs an argument, assign it.
733 if test -n "$ac_prev"; then
734 eval $ac_prev=\$ac_option
735 ac_prev=
736 continue
739 case $ac_option in
740 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
741 *) ac_optarg=yes ;;
742 esac
744 # Accept the important Cygnus configure options, so we can diagnose typos.
746 case $ac_dashdash$ac_option in
748 ac_dashdash=yes ;;
750 -bindir | --bindir | --bindi | --bind | --bin | --bi)
751 ac_prev=bindir ;;
752 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
753 bindir=$ac_optarg ;;
755 -build | --build | --buil | --bui | --bu)
756 ac_prev=build_alias ;;
757 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
758 build_alias=$ac_optarg ;;
760 -cache-file | --cache-file | --cache-fil | --cache-fi \
761 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
762 ac_prev=cache_file ;;
763 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
764 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
765 cache_file=$ac_optarg ;;
767 --config-cache | -C)
768 cache_file=config.cache ;;
770 -datadir | --datadir | --datadi | --datad)
771 ac_prev=datadir ;;
772 -datadir=* | --datadir=* | --datadi=* | --datad=*)
773 datadir=$ac_optarg ;;
775 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
776 | --dataroo | --dataro | --datar)
777 ac_prev=datarootdir ;;
778 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
779 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
780 datarootdir=$ac_optarg ;;
782 -disable-* | --disable-*)
783 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
784 # Reject names that are not valid shell variable names.
785 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
786 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
787 { (exit 1); exit 1; }; }
788 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
789 eval enable_$ac_feature=no ;;
791 -docdir | --docdir | --docdi | --doc | --do)
792 ac_prev=docdir ;;
793 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
794 docdir=$ac_optarg ;;
796 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
797 ac_prev=dvidir ;;
798 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
799 dvidir=$ac_optarg ;;
801 -enable-* | --enable-*)
802 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
803 # Reject names that are not valid shell variable names.
804 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
805 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
806 { (exit 1); exit 1; }; }
807 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
808 eval enable_$ac_feature=\$ac_optarg ;;
810 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
811 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
812 | --exec | --exe | --ex)
813 ac_prev=exec_prefix ;;
814 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
815 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
816 | --exec=* | --exe=* | --ex=*)
817 exec_prefix=$ac_optarg ;;
819 -gas | --gas | --ga | --g)
820 # Obsolete; use --with-gas.
821 with_gas=yes ;;
823 -help | --help | --hel | --he | -h)
824 ac_init_help=long ;;
825 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
826 ac_init_help=recursive ;;
827 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
828 ac_init_help=short ;;
830 -host | --host | --hos | --ho)
831 ac_prev=host_alias ;;
832 -host=* | --host=* | --hos=* | --ho=*)
833 host_alias=$ac_optarg ;;
835 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
836 ac_prev=htmldir ;;
837 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
838 | --ht=*)
839 htmldir=$ac_optarg ;;
841 -includedir | --includedir | --includedi | --included | --include \
842 | --includ | --inclu | --incl | --inc)
843 ac_prev=includedir ;;
844 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
845 | --includ=* | --inclu=* | --incl=* | --inc=*)
846 includedir=$ac_optarg ;;
848 -infodir | --infodir | --infodi | --infod | --info | --inf)
849 ac_prev=infodir ;;
850 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
851 infodir=$ac_optarg ;;
853 -libdir | --libdir | --libdi | --libd)
854 ac_prev=libdir ;;
855 -libdir=* | --libdir=* | --libdi=* | --libd=*)
856 libdir=$ac_optarg ;;
858 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
859 | --libexe | --libex | --libe)
860 ac_prev=libexecdir ;;
861 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
862 | --libexe=* | --libex=* | --libe=*)
863 libexecdir=$ac_optarg ;;
865 -localedir | --localedir | --localedi | --localed | --locale)
866 ac_prev=localedir ;;
867 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
868 localedir=$ac_optarg ;;
870 -localstatedir | --localstatedir | --localstatedi | --localstated \
871 | --localstate | --localstat | --localsta | --localst | --locals)
872 ac_prev=localstatedir ;;
873 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
874 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
875 localstatedir=$ac_optarg ;;
877 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
878 ac_prev=mandir ;;
879 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
880 mandir=$ac_optarg ;;
882 -nfp | --nfp | --nf)
883 # Obsolete; use --without-fp.
884 with_fp=no ;;
886 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
887 | --no-cr | --no-c | -n)
888 no_create=yes ;;
890 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
891 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
892 no_recursion=yes ;;
894 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
895 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
896 | --oldin | --oldi | --old | --ol | --o)
897 ac_prev=oldincludedir ;;
898 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
899 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
900 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
901 oldincludedir=$ac_optarg ;;
903 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
904 ac_prev=prefix ;;
905 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
906 prefix=$ac_optarg ;;
908 -program-prefix | --program-prefix | --program-prefi | --program-pref \
909 | --program-pre | --program-pr | --program-p)
910 ac_prev=program_prefix ;;
911 -program-prefix=* | --program-prefix=* | --program-prefi=* \
912 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
913 program_prefix=$ac_optarg ;;
915 -program-suffix | --program-suffix | --program-suffi | --program-suff \
916 | --program-suf | --program-su | --program-s)
917 ac_prev=program_suffix ;;
918 -program-suffix=* | --program-suffix=* | --program-suffi=* \
919 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
920 program_suffix=$ac_optarg ;;
922 -program-transform-name | --program-transform-name \
923 | --program-transform-nam | --program-transform-na \
924 | --program-transform-n | --program-transform- \
925 | --program-transform | --program-transfor \
926 | --program-transfo | --program-transf \
927 | --program-trans | --program-tran \
928 | --progr-tra | --program-tr | --program-t)
929 ac_prev=program_transform_name ;;
930 -program-transform-name=* | --program-transform-name=* \
931 | --program-transform-nam=* | --program-transform-na=* \
932 | --program-transform-n=* | --program-transform-=* \
933 | --program-transform=* | --program-transfor=* \
934 | --program-transfo=* | --program-transf=* \
935 | --program-trans=* | --program-tran=* \
936 | --progr-tra=* | --program-tr=* | --program-t=*)
937 program_transform_name=$ac_optarg ;;
939 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
940 ac_prev=pdfdir ;;
941 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
942 pdfdir=$ac_optarg ;;
944 -psdir | --psdir | --psdi | --psd | --ps)
945 ac_prev=psdir ;;
946 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
947 psdir=$ac_optarg ;;
949 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
950 | -silent | --silent | --silen | --sile | --sil)
951 silent=yes ;;
953 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
954 ac_prev=sbindir ;;
955 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
956 | --sbi=* | --sb=*)
957 sbindir=$ac_optarg ;;
959 -sharedstatedir | --sharedstatedir | --sharedstatedi \
960 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
961 | --sharedst | --shareds | --shared | --share | --shar \
962 | --sha | --sh)
963 ac_prev=sharedstatedir ;;
964 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
965 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
966 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
967 | --sha=* | --sh=*)
968 sharedstatedir=$ac_optarg ;;
970 -site | --site | --sit)
971 ac_prev=site ;;
972 -site=* | --site=* | --sit=*)
973 site=$ac_optarg ;;
975 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
976 ac_prev=srcdir ;;
977 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
978 srcdir=$ac_optarg ;;
980 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
981 | --syscon | --sysco | --sysc | --sys | --sy)
982 ac_prev=sysconfdir ;;
983 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
984 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
985 sysconfdir=$ac_optarg ;;
987 -target | --target | --targe | --targ | --tar | --ta | --t)
988 ac_prev=target_alias ;;
989 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
990 target_alias=$ac_optarg ;;
992 -v | -verbose | --verbose | --verbos | --verbo | --verb)
993 verbose=yes ;;
995 -version | --version | --versio | --versi | --vers | -V)
996 ac_init_version=: ;;
998 -with-* | --with-*)
999 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1000 # Reject names that are not valid shell variable names.
1001 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1002 { echo "$as_me: error: invalid package name: $ac_package" >&2
1003 { (exit 1); exit 1; }; }
1004 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1005 eval with_$ac_package=\$ac_optarg ;;
1007 -without-* | --without-*)
1008 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1009 # Reject names that are not valid shell variable names.
1010 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1011 { echo "$as_me: error: invalid package name: $ac_package" >&2
1012 { (exit 1); exit 1; }; }
1013 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1014 eval with_$ac_package=no ;;
1016 --x)
1017 # Obsolete; use --with-x.
1018 with_x=yes ;;
1020 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1021 | --x-incl | --x-inc | --x-in | --x-i)
1022 ac_prev=x_includes ;;
1023 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1024 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1025 x_includes=$ac_optarg ;;
1027 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1028 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1029 ac_prev=x_libraries ;;
1030 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1031 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1032 x_libraries=$ac_optarg ;;
1034 -*) { echo "$as_me: error: unrecognized option: $ac_option
1035 Try \`$0 --help' for more information." >&2
1036 { (exit 1); exit 1; }; }
1039 *=*)
1040 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1041 # Reject names that are not valid shell variable names.
1042 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1043 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1044 { (exit 1); exit 1; }; }
1045 eval $ac_envvar=\$ac_optarg
1046 export $ac_envvar ;;
1049 # FIXME: should be removed in autoconf 3.0.
1050 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1051 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1052 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1053 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1056 esac
1057 done
1059 if test -n "$ac_prev"; then
1060 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1061 { echo "$as_me: error: missing argument to $ac_option" >&2
1062 { (exit 1); exit 1; }; }
1065 # Be sure to have absolute directory names.
1066 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1067 datadir sysconfdir sharedstatedir localstatedir includedir \
1068 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1069 libdir localedir mandir
1071 eval ac_val=\$$ac_var
1072 case $ac_val in
1073 [\\/$]* | ?:[\\/]* ) continue;;
1074 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1075 esac
1076 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1077 { (exit 1); exit 1; }; }
1078 done
1080 # There might be people who depend on the old broken behavior: `$host'
1081 # used to hold the argument of --host etc.
1082 # FIXME: To remove some day.
1083 build=$build_alias
1084 host=$host_alias
1085 target=$target_alias
1087 # FIXME: To remove some day.
1088 if test "x$host_alias" != x; then
1089 if test "x$build_alias" = x; then
1090 cross_compiling=maybe
1091 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1092 If a cross compiler is detected then cross compile mode will be used." >&2
1093 elif test "x$build_alias" != "x$host_alias"; then
1094 cross_compiling=yes
1098 ac_tool_prefix=
1099 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1101 test "$silent" = yes && exec 6>/dev/null
1104 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1105 ac_ls_di=`ls -di .` &&
1106 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1107 { echo "$as_me: error: Working directory cannot be determined" >&2
1108 { (exit 1); exit 1; }; }
1109 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1110 { echo "$as_me: error: pwd does not report name of working directory" >&2
1111 { (exit 1); exit 1; }; }
1114 # Find the source files, if location was not specified.
1115 if test -z "$srcdir"; then
1116 ac_srcdir_defaulted=yes
1117 # Try the directory containing this script, then the parent directory.
1118 ac_confdir=`$as_dirname -- "$0" ||
1119 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1120 X"$0" : 'X\(//\)[^/]' \| \
1121 X"$0" : 'X\(//\)$' \| \
1122 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1123 echo X"$0" |
1124 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1125 s//\1/
1128 /^X\(\/\/\)[^/].*/{
1129 s//\1/
1132 /^X\(\/\/\)$/{
1133 s//\1/
1136 /^X\(\/\).*/{
1137 s//\1/
1140 s/.*/./; q'`
1141 srcdir=$ac_confdir
1142 if test ! -r "$srcdir/$ac_unique_file"; then
1143 srcdir=..
1145 else
1146 ac_srcdir_defaulted=no
1148 if test ! -r "$srcdir/$ac_unique_file"; then
1149 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1150 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1151 { (exit 1); exit 1; }; }
1153 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1154 ac_abs_confdir=`(
1155 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1156 { (exit 1); exit 1; }; }
1157 pwd)`
1158 # When building in place, set srcdir=.
1159 if test "$ac_abs_confdir" = "$ac_pwd"; then
1160 srcdir=.
1162 # Remove unnecessary trailing slashes from srcdir.
1163 # Double slashes in file names in object file debugging info
1164 # mess up M-x gdb in Emacs.
1165 case $srcdir in
1166 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1167 esac
1168 for ac_var in $ac_precious_vars; do
1169 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1170 eval ac_env_${ac_var}_value=\$${ac_var}
1171 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1172 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1173 done
1176 # Report the --help message.
1178 if test "$ac_init_help" = "long"; then
1179 # Omit some internal or obsolete options to make the list less imposing.
1180 # This message is too long to be a string in the A/UX 3.1 sh.
1181 cat <<_ACEOF
1182 \`configure' configures this package to adapt to many kinds of systems.
1184 Usage: $0 [OPTION]... [VAR=VALUE]...
1186 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1187 VAR=VALUE. See below for descriptions of some of the useful variables.
1189 Defaults for the options are specified in brackets.
1191 Configuration:
1192 -h, --help display this help and exit
1193 --help=short display options specific to this package
1194 --help=recursive display the short help of all the included packages
1195 -V, --version display version information and exit
1196 -q, --quiet, --silent do not print \`checking...' messages
1197 --cache-file=FILE cache test results in FILE [disabled]
1198 -C, --config-cache alias for \`--cache-file=config.cache'
1199 -n, --no-create do not create output files
1200 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1202 Installation directories:
1203 --prefix=PREFIX install architecture-independent files in PREFIX
1204 [$ac_default_prefix]
1205 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1206 [PREFIX]
1208 By default, \`make install' will install all the files in
1209 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1210 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1211 for instance \`--prefix=\$HOME'.
1213 For better control, use the options below.
1215 Fine tuning of the installation directories:
1216 --bindir=DIR user executables [EPREFIX/bin]
1217 --sbindir=DIR system admin executables [EPREFIX/sbin]
1218 --libexecdir=DIR program executables [EPREFIX/libexec]
1219 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1220 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1221 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1222 --libdir=DIR object code libraries [EPREFIX/lib]
1223 --includedir=DIR C header files [PREFIX/include]
1224 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1225 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1226 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1227 --infodir=DIR info documentation [DATAROOTDIR/info]
1228 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1229 --mandir=DIR man documentation [DATAROOTDIR/man]
1230 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1231 --htmldir=DIR html documentation [DOCDIR]
1232 --dvidir=DIR dvi documentation [DOCDIR]
1233 --pdfdir=DIR pdf documentation [DOCDIR]
1234 --psdir=DIR ps documentation [DOCDIR]
1235 _ACEOF
1237 cat <<\_ACEOF
1238 _ACEOF
1241 if test -n "$ac_init_help"; then
1243 cat <<\_ACEOF
1245 Optional Features:
1246 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1247 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1248 --enable-etags enable the installation of links for etags
1249 --disable-extended-format
1250 disable extension flags; use original ctags file
1251 format only
1252 --disable-external-sort use internal sort algorithm instead of sort program
1253 --enable-custom-config=FILE
1254 enable custom config file for site-wide defaults
1255 --enable-macro-patterns use patterns as default method to locate macros
1256 instead of line numbers
1257 --enable-maintainer-mode
1258 use maintainer makefile
1259 --enable-shell-globbing=DIR
1260 does shell expand wildcards (yes|no)? yes
1261 --enable-tmpdir=DIR default directory for temporary files ARG=/tmp
1263 Optional Packages:
1264 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1265 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1266 --with-posix-regex use Posix regex interface, if available
1267 --with-readlib include readtags library object during install
1269 Some influential environment variables:
1270 CC C compiler command
1271 CFLAGS C compiler flags
1272 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1273 nonstandard directory <lib dir>
1274 LIBS libraries to pass to the linker, e.g. -l<library>
1275 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1276 you have headers in a nonstandard directory <include dir>
1277 CPP C preprocessor
1279 Use these variables to override the choices made by `configure' or to help
1280 it to find libraries and programs with nonstandard names/locations.
1282 _ACEOF
1283 ac_status=$?
1286 if test "$ac_init_help" = "recursive"; then
1287 # If there are subdirs, report their specific --help.
1288 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1289 test -d "$ac_dir" || continue
1290 ac_builddir=.
1292 case "$ac_dir" in
1293 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1295 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1296 # A ".." for each directory in $ac_dir_suffix.
1297 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1298 case $ac_top_builddir_sub in
1299 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1300 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1301 esac ;;
1302 esac
1303 ac_abs_top_builddir=$ac_pwd
1304 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1305 # for backward compatibility:
1306 ac_top_builddir=$ac_top_build_prefix
1308 case $srcdir in
1309 .) # We are building in place.
1310 ac_srcdir=.
1311 ac_top_srcdir=$ac_top_builddir_sub
1312 ac_abs_top_srcdir=$ac_pwd ;;
1313 [\\/]* | ?:[\\/]* ) # Absolute name.
1314 ac_srcdir=$srcdir$ac_dir_suffix;
1315 ac_top_srcdir=$srcdir
1316 ac_abs_top_srcdir=$srcdir ;;
1317 *) # Relative name.
1318 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1319 ac_top_srcdir=$ac_top_build_prefix$srcdir
1320 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1321 esac
1322 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1324 cd "$ac_dir" || { ac_status=$?; continue; }
1325 # Check for guested configure.
1326 if test -f "$ac_srcdir/configure.gnu"; then
1327 echo &&
1328 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1329 elif test -f "$ac_srcdir/configure"; then
1330 echo &&
1331 $SHELL "$ac_srcdir/configure" --help=recursive
1332 else
1333 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1334 fi || ac_status=$?
1335 cd "$ac_pwd" || { ac_status=$?; break; }
1336 done
1339 test -n "$ac_init_help" && exit $ac_status
1340 if $ac_init_version; then
1341 cat <<\_ACEOF
1342 configure
1343 generated by GNU Autoconf 2.61
1345 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1346 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1347 This configure script is free software; the Free Software Foundation
1348 gives unlimited permission to copy, distribute and modify it.
1349 _ACEOF
1350 exit
1352 cat >config.log <<_ACEOF
1353 This file contains any messages produced by compilers while
1354 running configure, to aid debugging if configure makes a mistake.
1356 It was created by $as_me, which was
1357 generated by GNU Autoconf 2.61. Invocation command line was
1359 $ $0 $@
1361 _ACEOF
1362 exec 5>>config.log
1364 cat <<_ASUNAME
1365 ## --------- ##
1366 ## Platform. ##
1367 ## --------- ##
1369 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1370 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1371 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1372 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1373 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1375 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1376 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1378 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1379 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1380 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1381 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1382 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1383 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1384 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1386 _ASUNAME
1388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1389 for as_dir in $PATH
1391 IFS=$as_save_IFS
1392 test -z "$as_dir" && as_dir=.
1393 echo "PATH: $as_dir"
1394 done
1395 IFS=$as_save_IFS
1397 } >&5
1399 cat >&5 <<_ACEOF
1402 ## ----------- ##
1403 ## Core tests. ##
1404 ## ----------- ##
1406 _ACEOF
1409 # Keep a trace of the command line.
1410 # Strip out --no-create and --no-recursion so they do not pile up.
1411 # Strip out --silent because we don't want to record it for future runs.
1412 # Also quote any args containing shell meta-characters.
1413 # Make two passes to allow for proper duplicate-argument suppression.
1414 ac_configure_args=
1415 ac_configure_args0=
1416 ac_configure_args1=
1417 ac_must_keep_next=false
1418 for ac_pass in 1 2
1420 for ac_arg
1422 case $ac_arg in
1423 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1424 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1425 | -silent | --silent | --silen | --sile | --sil)
1426 continue ;;
1427 *\'*)
1428 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1429 esac
1430 case $ac_pass in
1431 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1433 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1434 if test $ac_must_keep_next = true; then
1435 ac_must_keep_next=false # Got value, back to normal.
1436 else
1437 case $ac_arg in
1438 *=* | --config-cache | -C | -disable-* | --disable-* \
1439 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1440 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1441 | -with-* | --with-* | -without-* | --without-* | --x)
1442 case "$ac_configure_args0 " in
1443 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1444 esac
1446 -* ) ac_must_keep_next=true ;;
1447 esac
1449 ac_configure_args="$ac_configure_args '$ac_arg'"
1451 esac
1452 done
1453 done
1454 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1455 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1457 # When interrupted or exit'd, cleanup temporary files, and complete
1458 # config.log. We remove comments because anyway the quotes in there
1459 # would cause problems or look ugly.
1460 # WARNING: Use '\'' to represent an apostrophe within the trap.
1461 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1462 trap 'exit_status=$?
1463 # Save into config.log some information that might help in debugging.
1465 echo
1467 cat <<\_ASBOX
1468 ## ---------------- ##
1469 ## Cache variables. ##
1470 ## ---------------- ##
1471 _ASBOX
1472 echo
1473 # The following way of writing the cache mishandles newlines in values,
1475 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1476 eval ac_val=\$$ac_var
1477 case $ac_val in #(
1478 *${as_nl}*)
1479 case $ac_var in #(
1480 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1481 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1482 esac
1483 case $ac_var in #(
1484 _ | IFS | as_nl) ;; #(
1485 *) $as_unset $ac_var ;;
1486 esac ;;
1487 esac
1488 done
1489 (set) 2>&1 |
1490 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1491 *${as_nl}ac_space=\ *)
1492 sed -n \
1493 "s/'\''/'\''\\\\'\'''\''/g;
1494 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1495 ;; #(
1497 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1499 esac |
1500 sort
1502 echo
1504 cat <<\_ASBOX
1505 ## ----------------- ##
1506 ## Output variables. ##
1507 ## ----------------- ##
1508 _ASBOX
1509 echo
1510 for ac_var in $ac_subst_vars
1512 eval ac_val=\$$ac_var
1513 case $ac_val in
1514 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1515 esac
1516 echo "$ac_var='\''$ac_val'\''"
1517 done | sort
1518 echo
1520 if test -n "$ac_subst_files"; then
1521 cat <<\_ASBOX
1522 ## ------------------- ##
1523 ## File substitutions. ##
1524 ## ------------------- ##
1525 _ASBOX
1526 echo
1527 for ac_var in $ac_subst_files
1529 eval ac_val=\$$ac_var
1530 case $ac_val in
1531 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1532 esac
1533 echo "$ac_var='\''$ac_val'\''"
1534 done | sort
1535 echo
1538 if test -s confdefs.h; then
1539 cat <<\_ASBOX
1540 ## ----------- ##
1541 ## confdefs.h. ##
1542 ## ----------- ##
1543 _ASBOX
1544 echo
1545 cat confdefs.h
1546 echo
1548 test "$ac_signal" != 0 &&
1549 echo "$as_me: caught signal $ac_signal"
1550 echo "$as_me: exit $exit_status"
1551 } >&5
1552 rm -f core *.core core.conftest.* &&
1553 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1554 exit $exit_status
1556 for ac_signal in 1 2 13 15; do
1557 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1558 done
1559 ac_signal=0
1561 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1562 rm -f -r conftest* confdefs.h
1564 # Predefined preprocessor variables.
1566 cat >>confdefs.h <<_ACEOF
1567 #define PACKAGE_NAME "$PACKAGE_NAME"
1568 _ACEOF
1571 cat >>confdefs.h <<_ACEOF
1572 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1573 _ACEOF
1576 cat >>confdefs.h <<_ACEOF
1577 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1578 _ACEOF
1581 cat >>confdefs.h <<_ACEOF
1582 #define PACKAGE_STRING "$PACKAGE_STRING"
1583 _ACEOF
1586 cat >>confdefs.h <<_ACEOF
1587 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1588 _ACEOF
1591 # Let the site file select an alternate cache file if it wants to.
1592 # Prefer explicitly selected file to automatically selected ones.
1593 if test -n "$CONFIG_SITE"; then
1594 set x "$CONFIG_SITE"
1595 elif test "x$prefix" != xNONE; then
1596 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1597 else
1598 set x "$ac_default_prefix/share/config.site" \
1599 "$ac_default_prefix/etc/config.site"
1601 shift
1602 for ac_site_file
1604 if test -r "$ac_site_file"; then
1605 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1606 echo "$as_me: loading site script $ac_site_file" >&6;}
1607 sed 's/^/| /' "$ac_site_file" >&5
1608 . "$ac_site_file"
1610 done
1612 if test -r "$cache_file"; then
1613 # Some versions of bash will fail to source /dev/null (special
1614 # files actually), so we avoid doing that.
1615 if test -f "$cache_file"; then
1616 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1617 echo "$as_me: loading cache $cache_file" >&6;}
1618 case $cache_file in
1619 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1620 *) . "./$cache_file";;
1621 esac
1623 else
1624 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1625 echo "$as_me: creating cache $cache_file" >&6;}
1626 >$cache_file
1629 ac_header_list="$ac_header_list dirent.h"
1630 ac_header_list="$ac_header_list fcntl.h"
1631 ac_header_list="$ac_header_list fnmatch.h"
1632 ac_header_list="$ac_header_list stat.h"
1633 ac_header_list="$ac_header_list stdlib.h"
1634 ac_header_list="$ac_header_list string.h"
1635 ac_header_list="$ac_header_list time.h"
1636 ac_header_list="$ac_header_list types.h"
1637 ac_header_list="$ac_header_list unistd.h"
1638 ac_header_list="$ac_header_list sys/dir.h"
1639 ac_header_list="$ac_header_list sys/stat.h"
1640 ac_header_list="$ac_header_list sys/times.h"
1641 ac_header_list="$ac_header_list sys/types.h"
1642 # Check that the precious variables saved in the cache have kept the same
1643 # value.
1644 ac_cache_corrupted=false
1645 for ac_var in $ac_precious_vars; do
1646 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1647 eval ac_new_set=\$ac_env_${ac_var}_set
1648 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1649 eval ac_new_val=\$ac_env_${ac_var}_value
1650 case $ac_old_set,$ac_new_set in
1651 set,)
1652 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1653 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1654 ac_cache_corrupted=: ;;
1655 ,set)
1656 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1657 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1658 ac_cache_corrupted=: ;;
1659 ,);;
1661 if test "x$ac_old_val" != "x$ac_new_val"; then
1662 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1663 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1664 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1665 echo "$as_me: former value: $ac_old_val" >&2;}
1666 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1667 echo "$as_me: current value: $ac_new_val" >&2;}
1668 ac_cache_corrupted=:
1669 fi;;
1670 esac
1671 # Pass precious variables to config.status.
1672 if test "$ac_new_set" = set; then
1673 case $ac_new_val in
1674 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1675 *) ac_arg=$ac_var=$ac_new_val ;;
1676 esac
1677 case " $ac_configure_args " in
1678 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1679 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1680 esac
1682 done
1683 if $ac_cache_corrupted; then
1684 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1685 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1686 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1687 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1688 { (exit 1); exit 1; }; }
1707 ac_ext=c
1708 ac_cpp='$CPP $CPPFLAGS'
1709 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1710 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1711 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1714 ac_config_headers="$ac_config_headers config.h"
1778 # Report system info
1779 # ------------------
1780 program_name=`grep 'PROGRAM_NAME *"' ctags.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
1781 program_version=`grep 'PROGRAM_VERSION *"' ctags.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
1782 echo "$program_name, version $program_version"
1783 uname -mrsv 2>/dev/null
1785 # Define convenience macros
1786 # -------------------------
1787 # CHECK_HEADER_DEFINE(LABEL, HEADER [,ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND ] ])
1790 # Checks for configuration options
1791 # --------------------------------
1794 # Check whether --with-posix-regex was given.
1795 if test "${with_posix_regex+set}" = set; then
1796 withval=$with_posix_regex;
1801 # Check whether --with-readlib was given.
1802 if test "${with_readlib+set}" = set; then
1803 withval=$with_readlib;
1807 # AC_ARG_WITH(perl-regex,
1808 # [ --with-perl-regex use Perl pcre interface, if available])
1810 # Check whether --enable-etags was given.
1811 if test "${enable_etags+set}" = set; then
1812 enableval=$enable_etags;
1816 # Check whether --enable-extended-format was given.
1817 if test "${enable_extended_format+set}" = set; then
1818 enableval=$enable_extended_format; cat >>confdefs.h <<\_ACEOF
1819 #define DEFAULT_FILE_FORMAT 1
1820 _ACEOF
1822 else
1823 cat >>confdefs.h <<\_ACEOF
1824 #define DEFAULT_FILE_FORMAT 2
1825 _ACEOF
1830 # Check whether --enable-external-sort was given.
1831 if test "${enable_external_sort+set}" = set; then
1832 enableval=$enable_external_sort;
1836 # Check whether --enable-custom-config was given.
1837 if test "${enable_custom_config+set}" = set; then
1838 enableval=$enable_custom_config;
1842 # Check whether --enable-macro-patterns was given.
1843 if test "${enable_macro_patterns+set}" = set; then
1844 enableval=$enable_macro_patterns;
1848 # Check whether --enable-maintainer-mode was given.
1849 if test "${enable_maintainer_mode+set}" = set; then
1850 enableval=$enable_maintainer_mode;
1854 # Check whether --enable-shell-globbing was given.
1855 if test "${enable_shell_globbing+set}" = set; then
1856 enableval=$enable_shell_globbing;
1860 # Check whether --enable-tmpdir was given.
1861 if test "${enable_tmpdir+set}" = set; then
1862 enableval=$enable_tmpdir; tmpdir_specified=yes
1867 # Process configuration options
1868 # -----------------------------
1870 if test "$enable_maintainer_mode" = yes ; then
1871 { echo "$as_me:$LINENO: result: enabling maintainer mode" >&5
1872 echo "${ECHO_T}enabling maintainer mode" >&6; }
1875 install_targets="install-ctags"
1876 { echo "$as_me:$LINENO: checking whether to install link to etags" >&5
1877 echo $ECHO_N "checking whether to install link to etags... $ECHO_C" >&6; }
1878 if test yes = "$enable_etags"; then
1879 { echo "$as_me:$LINENO: result: yes" >&5
1880 echo "${ECHO_T}yes" >&6; }
1881 install_targets="$install_targets install-etags"
1882 else
1883 { echo "$as_me:$LINENO: result: no" >&5
1884 echo "${ECHO_T}no" >&6; }
1886 { echo "$as_me:$LINENO: checking whether to install readtags object file" >&5
1887 echo $ECHO_N "checking whether to install readtags object file... $ECHO_C" >&6; }
1888 if test yes = "$with_readlib"; then
1889 { echo "$as_me:$LINENO: result: yes" >&5
1890 echo "${ECHO_T}yes" >&6; }
1891 install_targets="$install_targets install-lib"
1892 else
1893 { echo "$as_me:$LINENO: result: no" >&5
1894 echo "${ECHO_T}no" >&6; }
1898 if test "$enable_custom_config" = no -o "$enable_custom_config" = yes ; then
1899 { echo "$as_me:$LINENO: result: no name supplied for custom configuration file" >&5
1900 echo "${ECHO_T}no name supplied for custom configuration file" >&6; }
1901 elif test -n "$enable_custom_config" ; then
1902 cat >>confdefs.h <<_ACEOF
1903 #define CUSTOM_CONFIGURATION_FILE "$enable_custom_config"
1904 _ACEOF
1906 { echo "$as_me:$LINENO: result: $enable_custom_config will be used as custom configuration file" >&5
1907 echo "${ECHO_T}$enable_custom_config will be used as custom configuration file" >&6; }
1910 if test "$enable_macro_patterns" = yes ; then
1911 cat >>confdefs.h <<\_ACEOF
1912 #define MACROS_USE_PATTERNS 1
1913 _ACEOF
1915 { echo "$as_me:$LINENO: result: tag file will use patterns for macros by default" >&5
1916 echo "${ECHO_T}tag file will use patterns for macros by default" >&6; }
1919 # Checks for programs
1920 # -------------------
1922 ac_ext=c
1923 ac_cpp='$CPP $CPPFLAGS'
1924 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1925 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1926 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1927 if test -n "$ac_tool_prefix"; then
1928 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1929 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1930 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1931 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1932 if test "${ac_cv_prog_CC+set}" = set; then
1933 echo $ECHO_N "(cached) $ECHO_C" >&6
1934 else
1935 if test -n "$CC"; then
1936 ac_cv_prog_CC="$CC" # Let the user override the test.
1937 else
1938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1939 for as_dir in $PATH
1941 IFS=$as_save_IFS
1942 test -z "$as_dir" && as_dir=.
1943 for ac_exec_ext in '' $ac_executable_extensions; do
1944 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1945 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1946 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1947 break 2
1949 done
1950 done
1951 IFS=$as_save_IFS
1955 CC=$ac_cv_prog_CC
1956 if test -n "$CC"; then
1957 { echo "$as_me:$LINENO: result: $CC" >&5
1958 echo "${ECHO_T}$CC" >&6; }
1959 else
1960 { echo "$as_me:$LINENO: result: no" >&5
1961 echo "${ECHO_T}no" >&6; }
1966 if test -z "$ac_cv_prog_CC"; then
1967 ac_ct_CC=$CC
1968 # Extract the first word of "gcc", so it can be a program name with args.
1969 set dummy gcc; ac_word=$2
1970 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1971 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1972 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1973 echo $ECHO_N "(cached) $ECHO_C" >&6
1974 else
1975 if test -n "$ac_ct_CC"; then
1976 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1977 else
1978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1979 for as_dir in $PATH
1981 IFS=$as_save_IFS
1982 test -z "$as_dir" && as_dir=.
1983 for ac_exec_ext in '' $ac_executable_extensions; do
1984 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1985 ac_cv_prog_ac_ct_CC="gcc"
1986 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1987 break 2
1989 done
1990 done
1991 IFS=$as_save_IFS
1995 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1996 if test -n "$ac_ct_CC"; then
1997 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1998 echo "${ECHO_T}$ac_ct_CC" >&6; }
1999 else
2000 { echo "$as_me:$LINENO: result: no" >&5
2001 echo "${ECHO_T}no" >&6; }
2004 if test "x$ac_ct_CC" = x; then
2005 CC=""
2006 else
2007 case $cross_compiling:$ac_tool_warned in
2008 yes:)
2009 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2010 whose name does not start with the host triplet. If you think this
2011 configuration is useful to you, please write to autoconf@gnu.org." >&5
2012 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2013 whose name does not start with the host triplet. If you think this
2014 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2015 ac_tool_warned=yes ;;
2016 esac
2017 CC=$ac_ct_CC
2019 else
2020 CC="$ac_cv_prog_CC"
2023 if test -z "$CC"; then
2024 if test -n "$ac_tool_prefix"; then
2025 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2026 set dummy ${ac_tool_prefix}cc; ac_word=$2
2027 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2028 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2029 if test "${ac_cv_prog_CC+set}" = set; then
2030 echo $ECHO_N "(cached) $ECHO_C" >&6
2031 else
2032 if test -n "$CC"; then
2033 ac_cv_prog_CC="$CC" # Let the user override the test.
2034 else
2035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2036 for as_dir in $PATH
2038 IFS=$as_save_IFS
2039 test -z "$as_dir" && as_dir=.
2040 for ac_exec_ext in '' $ac_executable_extensions; do
2041 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2042 ac_cv_prog_CC="${ac_tool_prefix}cc"
2043 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2044 break 2
2046 done
2047 done
2048 IFS=$as_save_IFS
2052 CC=$ac_cv_prog_CC
2053 if test -n "$CC"; then
2054 { echo "$as_me:$LINENO: result: $CC" >&5
2055 echo "${ECHO_T}$CC" >&6; }
2056 else
2057 { echo "$as_me:$LINENO: result: no" >&5
2058 echo "${ECHO_T}no" >&6; }
2064 if test -z "$CC"; then
2065 # Extract the first word of "cc", so it can be a program name with args.
2066 set dummy cc; ac_word=$2
2067 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2068 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2069 if test "${ac_cv_prog_CC+set}" = set; then
2070 echo $ECHO_N "(cached) $ECHO_C" >&6
2071 else
2072 if test -n "$CC"; then
2073 ac_cv_prog_CC="$CC" # Let the user override the test.
2074 else
2075 ac_prog_rejected=no
2076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2077 for as_dir in $PATH
2079 IFS=$as_save_IFS
2080 test -z "$as_dir" && as_dir=.
2081 for ac_exec_ext in '' $ac_executable_extensions; do
2082 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2083 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2084 ac_prog_rejected=yes
2085 continue
2087 ac_cv_prog_CC="cc"
2088 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2089 break 2
2091 done
2092 done
2093 IFS=$as_save_IFS
2095 if test $ac_prog_rejected = yes; then
2096 # We found a bogon in the path, so make sure we never use it.
2097 set dummy $ac_cv_prog_CC
2098 shift
2099 if test $# != 0; then
2100 # We chose a different compiler from the bogus one.
2101 # However, it has the same basename, so the bogon will be chosen
2102 # first if we set CC to just the basename; use the full file name.
2103 shift
2104 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2109 CC=$ac_cv_prog_CC
2110 if test -n "$CC"; then
2111 { echo "$as_me:$LINENO: result: $CC" >&5
2112 echo "${ECHO_T}$CC" >&6; }
2113 else
2114 { echo "$as_me:$LINENO: result: no" >&5
2115 echo "${ECHO_T}no" >&6; }
2120 if test -z "$CC"; then
2121 if test -n "$ac_tool_prefix"; then
2122 for ac_prog in cl.exe
2124 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2125 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2126 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2127 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2128 if test "${ac_cv_prog_CC+set}" = set; then
2129 echo $ECHO_N "(cached) $ECHO_C" >&6
2130 else
2131 if test -n "$CC"; then
2132 ac_cv_prog_CC="$CC" # Let the user override the test.
2133 else
2134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2135 for as_dir in $PATH
2137 IFS=$as_save_IFS
2138 test -z "$as_dir" && as_dir=.
2139 for ac_exec_ext in '' $ac_executable_extensions; do
2140 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2141 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2142 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2143 break 2
2145 done
2146 done
2147 IFS=$as_save_IFS
2151 CC=$ac_cv_prog_CC
2152 if test -n "$CC"; then
2153 { echo "$as_me:$LINENO: result: $CC" >&5
2154 echo "${ECHO_T}$CC" >&6; }
2155 else
2156 { echo "$as_me:$LINENO: result: no" >&5
2157 echo "${ECHO_T}no" >&6; }
2161 test -n "$CC" && break
2162 done
2164 if test -z "$CC"; then
2165 ac_ct_CC=$CC
2166 for ac_prog in cl.exe
2168 # Extract the first word of "$ac_prog", so it can be a program name with args.
2169 set dummy $ac_prog; ac_word=$2
2170 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2171 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2172 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2173 echo $ECHO_N "(cached) $ECHO_C" >&6
2174 else
2175 if test -n "$ac_ct_CC"; then
2176 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2177 else
2178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2179 for as_dir in $PATH
2181 IFS=$as_save_IFS
2182 test -z "$as_dir" && as_dir=.
2183 for ac_exec_ext in '' $ac_executable_extensions; do
2184 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2185 ac_cv_prog_ac_ct_CC="$ac_prog"
2186 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2187 break 2
2189 done
2190 done
2191 IFS=$as_save_IFS
2195 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2196 if test -n "$ac_ct_CC"; then
2197 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2198 echo "${ECHO_T}$ac_ct_CC" >&6; }
2199 else
2200 { echo "$as_me:$LINENO: result: no" >&5
2201 echo "${ECHO_T}no" >&6; }
2205 test -n "$ac_ct_CC" && break
2206 done
2208 if test "x$ac_ct_CC" = x; then
2209 CC=""
2210 else
2211 case $cross_compiling:$ac_tool_warned in
2212 yes:)
2213 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2214 whose name does not start with the host triplet. If you think this
2215 configuration is useful to you, please write to autoconf@gnu.org." >&5
2216 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2217 whose name does not start with the host triplet. If you think this
2218 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2219 ac_tool_warned=yes ;;
2220 esac
2221 CC=$ac_ct_CC
2228 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2229 See \`config.log' for more details." >&5
2230 echo "$as_me: error: no acceptable C compiler found in \$PATH
2231 See \`config.log' for more details." >&2;}
2232 { (exit 1); exit 1; }; }
2234 # Provide some information about the compiler.
2235 echo "$as_me:$LINENO: checking for C compiler version" >&5
2236 ac_compiler=`set X $ac_compile; echo $2`
2237 { (ac_try="$ac_compiler --version >&5"
2238 case "(($ac_try" in
2239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2240 *) ac_try_echo=$ac_try;;
2241 esac
2242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2243 (eval "$ac_compiler --version >&5") 2>&5
2244 ac_status=$?
2245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2246 (exit $ac_status); }
2247 { (ac_try="$ac_compiler -v >&5"
2248 case "(($ac_try" in
2249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2250 *) ac_try_echo=$ac_try;;
2251 esac
2252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2253 (eval "$ac_compiler -v >&5") 2>&5
2254 ac_status=$?
2255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2256 (exit $ac_status); }
2257 { (ac_try="$ac_compiler -V >&5"
2258 case "(($ac_try" in
2259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2260 *) ac_try_echo=$ac_try;;
2261 esac
2262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2263 (eval "$ac_compiler -V >&5") 2>&5
2264 ac_status=$?
2265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2266 (exit $ac_status); }
2268 cat >conftest.$ac_ext <<_ACEOF
2269 /* confdefs.h. */
2270 _ACEOF
2271 cat confdefs.h >>conftest.$ac_ext
2272 cat >>conftest.$ac_ext <<_ACEOF
2273 /* end confdefs.h. */
2276 main ()
2280 return 0;
2282 _ACEOF
2283 ac_clean_files_save=$ac_clean_files
2284 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2285 # Try to create an executable without -o first, disregard a.out.
2286 # It will help us diagnose broken compilers, and finding out an intuition
2287 # of exeext.
2288 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2289 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2290 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2292 # List of possible output files, starting from the most likely.
2293 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2294 # only as a last resort. b.out is created by i960 compilers.
2295 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2297 # The IRIX 6 linker writes into existing files which may not be
2298 # executable, retaining their permissions. Remove them first so a
2299 # subsequent execution test works.
2300 ac_rmfiles=
2301 for ac_file in $ac_files
2303 case $ac_file in
2304 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2305 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2306 esac
2307 done
2308 rm -f $ac_rmfiles
2310 if { (ac_try="$ac_link_default"
2311 case "(($ac_try" in
2312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2313 *) ac_try_echo=$ac_try;;
2314 esac
2315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2316 (eval "$ac_link_default") 2>&5
2317 ac_status=$?
2318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2319 (exit $ac_status); }; then
2320 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2321 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2322 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2323 # so that the user can short-circuit this test for compilers unknown to
2324 # Autoconf.
2325 for ac_file in $ac_files ''
2327 test -f "$ac_file" || continue
2328 case $ac_file in
2329 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2331 [ab].out )
2332 # We found the default executable, but exeext='' is most
2333 # certainly right.
2334 break;;
2335 *.* )
2336 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2337 then :; else
2338 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2340 # We set ac_cv_exeext here because the later test for it is not
2341 # safe: cross compilers may not add the suffix if given an `-o'
2342 # argument, so we may need to know it at that point already.
2343 # Even if this section looks crufty: it has the advantage of
2344 # actually working.
2345 break;;
2347 break;;
2348 esac
2349 done
2350 test "$ac_cv_exeext" = no && ac_cv_exeext=
2352 else
2353 ac_file=''
2356 { echo "$as_me:$LINENO: result: $ac_file" >&5
2357 echo "${ECHO_T}$ac_file" >&6; }
2358 if test -z "$ac_file"; then
2359 echo "$as_me: failed program was:" >&5
2360 sed 's/^/| /' conftest.$ac_ext >&5
2362 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2363 See \`config.log' for more details." >&5
2364 echo "$as_me: error: C compiler cannot create executables
2365 See \`config.log' for more details." >&2;}
2366 { (exit 77); exit 77; }; }
2369 ac_exeext=$ac_cv_exeext
2371 # Check that the compiler produces executables we can run. If not, either
2372 # the compiler is broken, or we cross compile.
2373 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2374 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2375 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2376 # If not cross compiling, check that we can run a simple program.
2377 if test "$cross_compiling" != yes; then
2378 if { ac_try='./$ac_file'
2379 { (case "(($ac_try" in
2380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2381 *) ac_try_echo=$ac_try;;
2382 esac
2383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2384 (eval "$ac_try") 2>&5
2385 ac_status=$?
2386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2387 (exit $ac_status); }; }; then
2388 cross_compiling=no
2389 else
2390 if test "$cross_compiling" = maybe; then
2391 cross_compiling=yes
2392 else
2393 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2394 If you meant to cross compile, use \`--host'.
2395 See \`config.log' for more details." >&5
2396 echo "$as_me: error: cannot run C compiled programs.
2397 If you meant to cross compile, use \`--host'.
2398 See \`config.log' for more details." >&2;}
2399 { (exit 1); exit 1; }; }
2403 { echo "$as_me:$LINENO: result: yes" >&5
2404 echo "${ECHO_T}yes" >&6; }
2406 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2407 ac_clean_files=$ac_clean_files_save
2408 # Check that the compiler produces executables we can run. If not, either
2409 # the compiler is broken, or we cross compile.
2410 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2411 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2412 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2413 echo "${ECHO_T}$cross_compiling" >&6; }
2415 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2416 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2417 if { (ac_try="$ac_link"
2418 case "(($ac_try" in
2419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2420 *) ac_try_echo=$ac_try;;
2421 esac
2422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2423 (eval "$ac_link") 2>&5
2424 ac_status=$?
2425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2426 (exit $ac_status); }; then
2427 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2428 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2429 # work properly (i.e., refer to `conftest.exe'), while it won't with
2430 # `rm'.
2431 for ac_file in conftest.exe conftest conftest.*; do
2432 test -f "$ac_file" || continue
2433 case $ac_file in
2434 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2435 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2436 break;;
2437 * ) break;;
2438 esac
2439 done
2440 else
2441 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2442 See \`config.log' for more details." >&5
2443 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2444 See \`config.log' for more details." >&2;}
2445 { (exit 1); exit 1; }; }
2448 rm -f conftest$ac_cv_exeext
2449 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2450 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2452 rm -f conftest.$ac_ext
2453 EXEEXT=$ac_cv_exeext
2454 ac_exeext=$EXEEXT
2455 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2456 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2457 if test "${ac_cv_objext+set}" = set; then
2458 echo $ECHO_N "(cached) $ECHO_C" >&6
2459 else
2460 cat >conftest.$ac_ext <<_ACEOF
2461 /* confdefs.h. */
2462 _ACEOF
2463 cat confdefs.h >>conftest.$ac_ext
2464 cat >>conftest.$ac_ext <<_ACEOF
2465 /* end confdefs.h. */
2468 main ()
2472 return 0;
2474 _ACEOF
2475 rm -f conftest.o conftest.obj
2476 if { (ac_try="$ac_compile"
2477 case "(($ac_try" in
2478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2479 *) ac_try_echo=$ac_try;;
2480 esac
2481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2482 (eval "$ac_compile") 2>&5
2483 ac_status=$?
2484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2485 (exit $ac_status); }; then
2486 for ac_file in conftest.o conftest.obj conftest.*; do
2487 test -f "$ac_file" || continue;
2488 case $ac_file in
2489 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2490 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2491 break;;
2492 esac
2493 done
2494 else
2495 echo "$as_me: failed program was:" >&5
2496 sed 's/^/| /' conftest.$ac_ext >&5
2498 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2499 See \`config.log' for more details." >&5
2500 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2501 See \`config.log' for more details." >&2;}
2502 { (exit 1); exit 1; }; }
2505 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2507 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2508 echo "${ECHO_T}$ac_cv_objext" >&6; }
2509 OBJEXT=$ac_cv_objext
2510 ac_objext=$OBJEXT
2511 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2512 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2513 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2514 echo $ECHO_N "(cached) $ECHO_C" >&6
2515 else
2516 cat >conftest.$ac_ext <<_ACEOF
2517 /* confdefs.h. */
2518 _ACEOF
2519 cat confdefs.h >>conftest.$ac_ext
2520 cat >>conftest.$ac_ext <<_ACEOF
2521 /* end confdefs.h. */
2524 main ()
2526 #ifndef __GNUC__
2527 choke me
2528 #endif
2531 return 0;
2533 _ACEOF
2534 rm -f conftest.$ac_objext
2535 if { (ac_try="$ac_compile"
2536 case "(($ac_try" in
2537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2538 *) ac_try_echo=$ac_try;;
2539 esac
2540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2541 (eval "$ac_compile") 2>conftest.er1
2542 ac_status=$?
2543 grep -v '^ *+' conftest.er1 >conftest.err
2544 rm -f conftest.er1
2545 cat conftest.err >&5
2546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2547 (exit $ac_status); } && {
2548 test -z "$ac_c_werror_flag" ||
2549 test ! -s conftest.err
2550 } && test -s conftest.$ac_objext; then
2551 ac_compiler_gnu=yes
2552 else
2553 echo "$as_me: failed program was:" >&5
2554 sed 's/^/| /' conftest.$ac_ext >&5
2556 ac_compiler_gnu=no
2559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2560 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2563 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2564 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2565 GCC=`test $ac_compiler_gnu = yes && echo yes`
2566 ac_test_CFLAGS=${CFLAGS+set}
2567 ac_save_CFLAGS=$CFLAGS
2568 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2569 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2570 if test "${ac_cv_prog_cc_g+set}" = set; then
2571 echo $ECHO_N "(cached) $ECHO_C" >&6
2572 else
2573 ac_save_c_werror_flag=$ac_c_werror_flag
2574 ac_c_werror_flag=yes
2575 ac_cv_prog_cc_g=no
2576 CFLAGS="-g"
2577 cat >conftest.$ac_ext <<_ACEOF
2578 /* confdefs.h. */
2579 _ACEOF
2580 cat confdefs.h >>conftest.$ac_ext
2581 cat >>conftest.$ac_ext <<_ACEOF
2582 /* end confdefs.h. */
2585 main ()
2589 return 0;
2591 _ACEOF
2592 rm -f conftest.$ac_objext
2593 if { (ac_try="$ac_compile"
2594 case "(($ac_try" in
2595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2596 *) ac_try_echo=$ac_try;;
2597 esac
2598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2599 (eval "$ac_compile") 2>conftest.er1
2600 ac_status=$?
2601 grep -v '^ *+' conftest.er1 >conftest.err
2602 rm -f conftest.er1
2603 cat conftest.err >&5
2604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2605 (exit $ac_status); } && {
2606 test -z "$ac_c_werror_flag" ||
2607 test ! -s conftest.err
2608 } && test -s conftest.$ac_objext; then
2609 ac_cv_prog_cc_g=yes
2610 else
2611 echo "$as_me: failed program was:" >&5
2612 sed 's/^/| /' conftest.$ac_ext >&5
2614 CFLAGS=""
2615 cat >conftest.$ac_ext <<_ACEOF
2616 /* confdefs.h. */
2617 _ACEOF
2618 cat confdefs.h >>conftest.$ac_ext
2619 cat >>conftest.$ac_ext <<_ACEOF
2620 /* end confdefs.h. */
2623 main ()
2627 return 0;
2629 _ACEOF
2630 rm -f conftest.$ac_objext
2631 if { (ac_try="$ac_compile"
2632 case "(($ac_try" in
2633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2634 *) ac_try_echo=$ac_try;;
2635 esac
2636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2637 (eval "$ac_compile") 2>conftest.er1
2638 ac_status=$?
2639 grep -v '^ *+' conftest.er1 >conftest.err
2640 rm -f conftest.er1
2641 cat conftest.err >&5
2642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2643 (exit $ac_status); } && {
2644 test -z "$ac_c_werror_flag" ||
2645 test ! -s conftest.err
2646 } && test -s conftest.$ac_objext; then
2648 else
2649 echo "$as_me: failed program was:" >&5
2650 sed 's/^/| /' conftest.$ac_ext >&5
2652 ac_c_werror_flag=$ac_save_c_werror_flag
2653 CFLAGS="-g"
2654 cat >conftest.$ac_ext <<_ACEOF
2655 /* confdefs.h. */
2656 _ACEOF
2657 cat confdefs.h >>conftest.$ac_ext
2658 cat >>conftest.$ac_ext <<_ACEOF
2659 /* end confdefs.h. */
2662 main ()
2666 return 0;
2668 _ACEOF
2669 rm -f conftest.$ac_objext
2670 if { (ac_try="$ac_compile"
2671 case "(($ac_try" in
2672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2673 *) ac_try_echo=$ac_try;;
2674 esac
2675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2676 (eval "$ac_compile") 2>conftest.er1
2677 ac_status=$?
2678 grep -v '^ *+' conftest.er1 >conftest.err
2679 rm -f conftest.er1
2680 cat conftest.err >&5
2681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2682 (exit $ac_status); } && {
2683 test -z "$ac_c_werror_flag" ||
2684 test ! -s conftest.err
2685 } && test -s conftest.$ac_objext; then
2686 ac_cv_prog_cc_g=yes
2687 else
2688 echo "$as_me: failed program was:" >&5
2689 sed 's/^/| /' conftest.$ac_ext >&5
2694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2701 ac_c_werror_flag=$ac_save_c_werror_flag
2703 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2704 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2705 if test "$ac_test_CFLAGS" = set; then
2706 CFLAGS=$ac_save_CFLAGS
2707 elif test $ac_cv_prog_cc_g = yes; then
2708 if test "$GCC" = yes; then
2709 CFLAGS="-g -O2"
2710 else
2711 CFLAGS="-g"
2713 else
2714 if test "$GCC" = yes; then
2715 CFLAGS="-O2"
2716 else
2717 CFLAGS=
2720 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2721 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2722 if test "${ac_cv_prog_cc_c89+set}" = set; then
2723 echo $ECHO_N "(cached) $ECHO_C" >&6
2724 else
2725 ac_cv_prog_cc_c89=no
2726 ac_save_CC=$CC
2727 cat >conftest.$ac_ext <<_ACEOF
2728 /* confdefs.h. */
2729 _ACEOF
2730 cat confdefs.h >>conftest.$ac_ext
2731 cat >>conftest.$ac_ext <<_ACEOF
2732 /* end confdefs.h. */
2733 #include <stdarg.h>
2734 #include <stdio.h>
2735 #include <sys/types.h>
2736 #include <sys/stat.h>
2737 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2738 struct buf { int x; };
2739 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2740 static char *e (p, i)
2741 char **p;
2742 int i;
2744 return p[i];
2746 static char *f (char * (*g) (char **, int), char **p, ...)
2748 char *s;
2749 va_list v;
2750 va_start (v,p);
2751 s = g (p, va_arg (v,int));
2752 va_end (v);
2753 return s;
2756 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2757 function prototypes and stuff, but not '\xHH' hex character constants.
2758 These don't provoke an error unfortunately, instead are silently treated
2759 as 'x'. The following induces an error, until -std is added to get
2760 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2761 array size at least. It's necessary to write '\x00'==0 to get something
2762 that's true only with -std. */
2763 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2765 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2766 inside strings and character constants. */
2767 #define FOO(x) 'x'
2768 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2770 int test (int i, double x);
2771 struct s1 {int (*f) (int a);};
2772 struct s2 {int (*f) (double a);};
2773 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2774 int argc;
2775 char **argv;
2777 main ()
2779 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2781 return 0;
2783 _ACEOF
2784 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2785 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2787 CC="$ac_save_CC $ac_arg"
2788 rm -f conftest.$ac_objext
2789 if { (ac_try="$ac_compile"
2790 case "(($ac_try" in
2791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2792 *) ac_try_echo=$ac_try;;
2793 esac
2794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2795 (eval "$ac_compile") 2>conftest.er1
2796 ac_status=$?
2797 grep -v '^ *+' conftest.er1 >conftest.err
2798 rm -f conftest.er1
2799 cat conftest.err >&5
2800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2801 (exit $ac_status); } && {
2802 test -z "$ac_c_werror_flag" ||
2803 test ! -s conftest.err
2804 } && test -s conftest.$ac_objext; then
2805 ac_cv_prog_cc_c89=$ac_arg
2806 else
2807 echo "$as_me: failed program was:" >&5
2808 sed 's/^/| /' conftest.$ac_ext >&5
2813 rm -f core conftest.err conftest.$ac_objext
2814 test "x$ac_cv_prog_cc_c89" != "xno" && break
2815 done
2816 rm -f conftest.$ac_ext
2817 CC=$ac_save_CC
2820 # AC_CACHE_VAL
2821 case "x$ac_cv_prog_cc_c89" in
2823 { echo "$as_me:$LINENO: result: none needed" >&5
2824 echo "${ECHO_T}none needed" >&6; } ;;
2825 xno)
2826 { echo "$as_me:$LINENO: result: unsupported" >&5
2827 echo "${ECHO_T}unsupported" >&6; } ;;
2829 CC="$CC $ac_cv_prog_cc_c89"
2830 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2831 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2832 esac
2835 ac_ext=c
2836 ac_cpp='$CPP $CPPFLAGS'
2837 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2838 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2839 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2842 case `uname` in
2843 HP-UX)
2844 { echo "$as_me:$LINENO: checking HP-UX native compiler" >&5
2845 echo $ECHO_N "checking HP-UX native compiler... $ECHO_C" >&6; }
2846 if test "$CC" = "cc"; then
2847 { echo "$as_me:$LINENO: result: yes; adding compiler options for ANSI support" >&5
2848 echo "${ECHO_T}yes; adding compiler options for ANSI support" >&6; }
2849 CFLAGS="$CFLAGS -Aa -D_HPUX_SOURCE"
2850 else
2851 { echo "$as_me:$LINENO: result: no" >&5
2852 echo "${ECHO_T}no" >&6; }
2855 SunOS)
2856 if uname -r | grep '5\.' >/dev/null 2>&1; then
2857 { echo "$as_me:$LINENO: checking Solaris native compiler" >&5
2858 echo $ECHO_N "checking Solaris native compiler... $ECHO_C" >&6; }
2859 if test "$CC" = "cc" -a "`which cc`" = "/usr/ucb/cc"; then
2860 { echo "$as_me:$LINENO: result: yes; adding compiler option for ANSI support" >&5
2861 echo "${ECHO_T}yes; adding compiler option for ANSI support" >&6; }
2862 CC="$CC -Xa"
2863 else
2864 { echo "$as_me:$LINENO: result: no" >&5
2865 echo "${ECHO_T}no" >&6; }
2869 esac
2871 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
2872 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
2873 LN_S=$as_ln_s
2874 if test "$LN_S" = "ln -s"; then
2875 { echo "$as_me:$LINENO: result: yes" >&5
2876 echo "${ECHO_T}yes" >&6; }
2877 else
2878 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
2879 echo "${ECHO_T}no, using $LN_S" >&6; }
2882 # Extract the first word of "strip", so it can be a program name with args.
2883 set dummy strip; ac_word=$2
2884 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2885 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2886 if test "${ac_cv_prog_STRIP+set}" = set; then
2887 echo $ECHO_N "(cached) $ECHO_C" >&6
2888 else
2889 if test -n "$STRIP"; then
2890 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2891 else
2892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2893 for as_dir in $PATH
2895 IFS=$as_save_IFS
2896 test -z "$as_dir" && as_dir=.
2897 for ac_exec_ext in '' $ac_executable_extensions; do
2898 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2899 ac_cv_prog_STRIP="strip"
2900 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2901 break 2
2903 done
2904 done
2905 IFS=$as_save_IFS
2907 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
2910 STRIP=$ac_cv_prog_STRIP
2911 if test -n "$STRIP"; then
2912 { echo "$as_me:$LINENO: result: $STRIP" >&5
2913 echo "${ECHO_T}$STRIP" >&6; }
2914 else
2915 { echo "$as_me:$LINENO: result: no" >&5
2916 echo "${ECHO_T}no" >&6; }
2922 # Checks for operating environment
2923 # --------------------------------
2925 # Check for temporary directory
2926 { echo "$as_me:$LINENO: checking directory to use for temporary files" >&5
2927 echo $ECHO_N "checking directory to use for temporary files... $ECHO_C" >&6; }
2928 if test -n "$enable_tmpdir"; then
2929 tmpdir="$enable_tmpdir"
2930 elif test -n "$TMPDIR"; then
2931 tmpdir="$TMPDIR"
2932 elif test -n "$TMPDIR"; then
2933 tmpdir="$TMPDIR"
2934 elif test -n "$TMP"; then
2935 tmpdir="$TMP"
2936 elif test -n "$TEMP"; then
2937 tmpdir="$TEMP"
2938 elif test -d "c:/"; then
2939 tmpdir="c:/"
2940 else
2941 tmpdir="/tmp"
2943 if test -d $tmpdir ; then
2944 { echo "$as_me:$LINENO: result: $tmpdir" >&5
2945 echo "${ECHO_T}$tmpdir" >&6; }
2946 cat >>confdefs.h <<_ACEOF
2947 #define TMPDIR "$tmpdir"
2948 _ACEOF
2950 else
2951 { { echo "$as_me:$LINENO: error: $tmpdir does not exist" >&5
2952 echo "$as_me: error: $tmpdir does not exist" >&2;}
2953 { (exit 1); exit 1; }; }
2956 # Check whether system supports #! scripts
2957 { echo "$as_me:$LINENO: checking whether #! works in shell scripts" >&5
2958 echo $ECHO_N "checking whether #! works in shell scripts... $ECHO_C" >&6; }
2959 if test "${ac_cv_sys_interpreter+set}" = set; then
2960 echo $ECHO_N "(cached) $ECHO_C" >&6
2961 else
2962 echo '#! /bin/cat
2963 exit 69
2964 ' >conftest
2965 chmod u+x conftest
2966 (SHELL=/bin/sh; export SHELL; ./conftest >/dev/null 2>&1)
2967 if test $? -ne 69; then
2968 ac_cv_sys_interpreter=yes
2969 else
2970 ac_cv_sys_interpreter=no
2972 rm -f conftest
2974 { echo "$as_me:$LINENO: result: $ac_cv_sys_interpreter" >&5
2975 echo "${ECHO_T}$ac_cv_sys_interpreter" >&6; }
2976 interpval=$ac_cv_sys_interpreter
2978 if test yes = "$interpval"; then
2979 cat >>confdefs.h <<\_ACEOF
2980 #define SYS_INTERPRETER 1
2981 _ACEOF
2985 # Test for case-insensitive filenames
2986 { echo "$as_me:$LINENO: checking for case-insensitive filenames" >&5
2987 echo $ECHO_N "checking for case-insensitive filenames... $ECHO_C" >&6; }
2988 touch conftest.cif
2989 if test -f CONFTEST.CIF; then
2990 { echo "$as_me:$LINENO: result: yes" >&5
2991 echo "${ECHO_T}yes" >&6; }
2992 cat >>confdefs.h <<\_ACEOF
2993 #define CASE_INSENSITIVE_FILENAMES 1
2994 _ACEOF
2996 else
2997 { echo "$as_me:$LINENO: result: no" >&5
2998 echo "${ECHO_T}no" >&6; }
3000 rm -f conftest.cif
3002 { echo "$as_me:$LINENO: checking selected sort method" >&5
3003 echo $ECHO_N "checking selected sort method... $ECHO_C" >&6; }
3004 if test no = "$enable_external_sort"; then
3005 { echo "$as_me:$LINENO: result: simple internal algorithm" >&5
3006 echo "${ECHO_T}simple internal algorithm" >&6; }
3007 else
3008 { echo "$as_me:$LINENO: result: external sort utility" >&5
3009 echo "${ECHO_T}external sort utility" >&6; }
3010 enable_external_sort=no
3011 # Extract the first word of "sort", so it can be a program name with args.
3012 set dummy sort; ac_word=$2
3013 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3014 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3015 if test "${ac_cv_prog_sort_found+set}" = set; then
3016 echo $ECHO_N "(cached) $ECHO_C" >&6
3017 else
3018 if test -n "$sort_found"; then
3019 ac_cv_prog_sort_found="$sort_found" # Let the user override the test.
3020 else
3021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3022 for as_dir in $PATH
3024 IFS=$as_save_IFS
3025 test -z "$as_dir" && as_dir=.
3026 for ac_exec_ext in '' $ac_executable_extensions; do
3027 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3028 ac_cv_prog_sort_found="yes"
3029 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3030 break 2
3032 done
3033 done
3034 IFS=$as_save_IFS
3036 test -z "$ac_cv_prog_sort_found" && ac_cv_prog_sort_found="no"
3039 sort_found=$ac_cv_prog_sort_found
3040 if test -n "$sort_found"; then
3041 { echo "$as_me:$LINENO: result: $sort_found" >&5
3042 echo "${ECHO_T}$sort_found" >&6; }
3043 else
3044 { echo "$as_me:$LINENO: result: no" >&5
3045 echo "${ECHO_T}no" >&6; }
3049 if test "$sort_found" = yes ; then
3050 { echo "$as_me:$LINENO: checking if sort accepts our command line" >&5
3051 echo $ECHO_N "checking if sort accepts our command line... $ECHO_C" >&6; }
3052 touch ${tmpdir}/sort.test
3053 sort -u -f -o ${tmpdir}/sort.test ${tmpdir}/sort.test 1>/dev/null 2>&1
3054 if test $? -ne 0 ; then
3055 { echo "$as_me:$LINENO: result: no" >&5
3056 echo "${ECHO_T}no" >&6; }
3057 else
3058 { echo "$as_me:$LINENO: result: yes" >&5
3059 echo "${ECHO_T}yes" >&6; }
3060 cat >>confdefs.h <<\_ACEOF
3061 #define EXTERNAL_SORT 1
3062 _ACEOF
3064 enable_external_sort=yes
3066 rm -f ${tmpdir}/sort.test
3069 if test "$enable_external_sort" != yes ; then
3070 { echo "$as_me:$LINENO: result: using internal sort algorithm as fallback" >&5
3071 echo "${ECHO_T}using internal sort algorithm as fallback" >&6; }
3075 # Checks for header files
3076 # -----------------------
3079 ac_ext=c
3080 ac_cpp='$CPP $CPPFLAGS'
3081 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3082 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3083 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3084 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3085 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3086 # On Suns, sometimes $CPP names a directory.
3087 if test -n "$CPP" && test -d "$CPP"; then
3088 CPP=
3090 if test -z "$CPP"; then
3091 if test "${ac_cv_prog_CPP+set}" = set; then
3092 echo $ECHO_N "(cached) $ECHO_C" >&6
3093 else
3094 # Double quotes because CPP needs to be expanded
3095 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3097 ac_preproc_ok=false
3098 for ac_c_preproc_warn_flag in '' yes
3100 # Use a header file that comes with gcc, so configuring glibc
3101 # with a fresh cross-compiler works.
3102 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3103 # <limits.h> exists even on freestanding compilers.
3104 # On the NeXT, cc -E runs the code through the compiler's parser,
3105 # not just through cpp. "Syntax error" is here to catch this case.
3106 cat >conftest.$ac_ext <<_ACEOF
3107 /* confdefs.h. */
3108 _ACEOF
3109 cat confdefs.h >>conftest.$ac_ext
3110 cat >>conftest.$ac_ext <<_ACEOF
3111 /* end confdefs.h. */
3112 #ifdef __STDC__
3113 # include <limits.h>
3114 #else
3115 # include <assert.h>
3116 #endif
3117 Syntax error
3118 _ACEOF
3119 if { (ac_try="$ac_cpp conftest.$ac_ext"
3120 case "(($ac_try" in
3121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3122 *) ac_try_echo=$ac_try;;
3123 esac
3124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3125 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3126 ac_status=$?
3127 grep -v '^ *+' conftest.er1 >conftest.err
3128 rm -f conftest.er1
3129 cat conftest.err >&5
3130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3131 (exit $ac_status); } >/dev/null && {
3132 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3133 test ! -s conftest.err
3134 }; then
3136 else
3137 echo "$as_me: failed program was:" >&5
3138 sed 's/^/| /' conftest.$ac_ext >&5
3140 # Broken: fails on valid input.
3141 continue
3144 rm -f conftest.err conftest.$ac_ext
3146 # OK, works on sane cases. Now check whether nonexistent headers
3147 # can be detected and how.
3148 cat >conftest.$ac_ext <<_ACEOF
3149 /* confdefs.h. */
3150 _ACEOF
3151 cat confdefs.h >>conftest.$ac_ext
3152 cat >>conftest.$ac_ext <<_ACEOF
3153 /* end confdefs.h. */
3154 #include <ac_nonexistent.h>
3155 _ACEOF
3156 if { (ac_try="$ac_cpp conftest.$ac_ext"
3157 case "(($ac_try" in
3158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3159 *) ac_try_echo=$ac_try;;
3160 esac
3161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3162 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3163 ac_status=$?
3164 grep -v '^ *+' conftest.er1 >conftest.err
3165 rm -f conftest.er1
3166 cat conftest.err >&5
3167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3168 (exit $ac_status); } >/dev/null && {
3169 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3170 test ! -s conftest.err
3171 }; then
3172 # Broken: success on invalid input.
3173 continue
3174 else
3175 echo "$as_me: failed program was:" >&5
3176 sed 's/^/| /' conftest.$ac_ext >&5
3178 # Passes both tests.
3179 ac_preproc_ok=:
3180 break
3183 rm -f conftest.err conftest.$ac_ext
3185 done
3186 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3187 rm -f conftest.err conftest.$ac_ext
3188 if $ac_preproc_ok; then
3189 break
3192 done
3193 ac_cv_prog_CPP=$CPP
3196 CPP=$ac_cv_prog_CPP
3197 else
3198 ac_cv_prog_CPP=$CPP
3200 { echo "$as_me:$LINENO: result: $CPP" >&5
3201 echo "${ECHO_T}$CPP" >&6; }
3202 ac_preproc_ok=false
3203 for ac_c_preproc_warn_flag in '' yes
3205 # Use a header file that comes with gcc, so configuring glibc
3206 # with a fresh cross-compiler works.
3207 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3208 # <limits.h> exists even on freestanding compilers.
3209 # On the NeXT, cc -E runs the code through the compiler's parser,
3210 # not just through cpp. "Syntax error" is here to catch this case.
3211 cat >conftest.$ac_ext <<_ACEOF
3212 /* confdefs.h. */
3213 _ACEOF
3214 cat confdefs.h >>conftest.$ac_ext
3215 cat >>conftest.$ac_ext <<_ACEOF
3216 /* end confdefs.h. */
3217 #ifdef __STDC__
3218 # include <limits.h>
3219 #else
3220 # include <assert.h>
3221 #endif
3222 Syntax error
3223 _ACEOF
3224 if { (ac_try="$ac_cpp conftest.$ac_ext"
3225 case "(($ac_try" in
3226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3227 *) ac_try_echo=$ac_try;;
3228 esac
3229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3230 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3231 ac_status=$?
3232 grep -v '^ *+' conftest.er1 >conftest.err
3233 rm -f conftest.er1
3234 cat conftest.err >&5
3235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3236 (exit $ac_status); } >/dev/null && {
3237 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3238 test ! -s conftest.err
3239 }; then
3241 else
3242 echo "$as_me: failed program was:" >&5
3243 sed 's/^/| /' conftest.$ac_ext >&5
3245 # Broken: fails on valid input.
3246 continue
3249 rm -f conftest.err conftest.$ac_ext
3251 # OK, works on sane cases. Now check whether nonexistent headers
3252 # can be detected and how.
3253 cat >conftest.$ac_ext <<_ACEOF
3254 /* confdefs.h. */
3255 _ACEOF
3256 cat confdefs.h >>conftest.$ac_ext
3257 cat >>conftest.$ac_ext <<_ACEOF
3258 /* end confdefs.h. */
3259 #include <ac_nonexistent.h>
3260 _ACEOF
3261 if { (ac_try="$ac_cpp conftest.$ac_ext"
3262 case "(($ac_try" in
3263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3264 *) ac_try_echo=$ac_try;;
3265 esac
3266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3267 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3268 ac_status=$?
3269 grep -v '^ *+' conftest.er1 >conftest.err
3270 rm -f conftest.er1
3271 cat conftest.err >&5
3272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3273 (exit $ac_status); } >/dev/null && {
3274 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3275 test ! -s conftest.err
3276 }; then
3277 # Broken: success on invalid input.
3278 continue
3279 else
3280 echo "$as_me: failed program was:" >&5
3281 sed 's/^/| /' conftest.$ac_ext >&5
3283 # Passes both tests.
3284 ac_preproc_ok=:
3285 break
3288 rm -f conftest.err conftest.$ac_ext
3290 done
3291 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3292 rm -f conftest.err conftest.$ac_ext
3293 if $ac_preproc_ok; then
3295 else
3296 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3297 See \`config.log' for more details." >&5
3298 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3299 See \`config.log' for more details." >&2;}
3300 { (exit 1); exit 1; }; }
3303 ac_ext=c
3304 ac_cpp='$CPP $CPPFLAGS'
3305 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3306 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3307 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3310 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3311 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3312 if test "${ac_cv_path_GREP+set}" = set; then
3313 echo $ECHO_N "(cached) $ECHO_C" >&6
3314 else
3315 # Extract the first word of "grep ggrep" to use in msg output
3316 if test -z "$GREP"; then
3317 set dummy grep ggrep; ac_prog_name=$2
3318 if test "${ac_cv_path_GREP+set}" = set; then
3319 echo $ECHO_N "(cached) $ECHO_C" >&6
3320 else
3321 ac_path_GREP_found=false
3322 # Loop through the user's path and test for each of PROGNAME-LIST
3323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3324 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3326 IFS=$as_save_IFS
3327 test -z "$as_dir" && as_dir=.
3328 for ac_prog in grep ggrep; do
3329 for ac_exec_ext in '' $ac_executable_extensions; do
3330 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3331 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3332 # Check for GNU ac_path_GREP and select it if it is found.
3333 # Check for GNU $ac_path_GREP
3334 case `"$ac_path_GREP" --version 2>&1` in
3335 *GNU*)
3336 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3338 ac_count=0
3339 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3340 while :
3342 cat "conftest.in" "conftest.in" >"conftest.tmp"
3343 mv "conftest.tmp" "conftest.in"
3344 cp "conftest.in" "conftest.nl"
3345 echo 'GREP' >> "conftest.nl"
3346 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3347 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3348 ac_count=`expr $ac_count + 1`
3349 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3350 # Best one so far, save it but keep looking for a better one
3351 ac_cv_path_GREP="$ac_path_GREP"
3352 ac_path_GREP_max=$ac_count
3354 # 10*(2^10) chars as input seems more than enough
3355 test $ac_count -gt 10 && break
3356 done
3357 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3358 esac
3361 $ac_path_GREP_found && break 3
3362 done
3363 done
3365 done
3366 IFS=$as_save_IFS
3371 GREP="$ac_cv_path_GREP"
3372 if test -z "$GREP"; then
3373 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3374 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3375 { (exit 1); exit 1; }; }
3378 else
3379 ac_cv_path_GREP=$GREP
3384 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3385 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3386 GREP="$ac_cv_path_GREP"
3389 { echo "$as_me:$LINENO: checking for egrep" >&5
3390 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3391 if test "${ac_cv_path_EGREP+set}" = set; then
3392 echo $ECHO_N "(cached) $ECHO_C" >&6
3393 else
3394 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3395 then ac_cv_path_EGREP="$GREP -E"
3396 else
3397 # Extract the first word of "egrep" to use in msg output
3398 if test -z "$EGREP"; then
3399 set dummy egrep; ac_prog_name=$2
3400 if test "${ac_cv_path_EGREP+set}" = set; then
3401 echo $ECHO_N "(cached) $ECHO_C" >&6
3402 else
3403 ac_path_EGREP_found=false
3404 # Loop through the user's path and test for each of PROGNAME-LIST
3405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3406 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3408 IFS=$as_save_IFS
3409 test -z "$as_dir" && as_dir=.
3410 for ac_prog in egrep; do
3411 for ac_exec_ext in '' $ac_executable_extensions; do
3412 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3413 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3414 # Check for GNU ac_path_EGREP and select it if it is found.
3415 # Check for GNU $ac_path_EGREP
3416 case `"$ac_path_EGREP" --version 2>&1` in
3417 *GNU*)
3418 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3420 ac_count=0
3421 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3422 while :
3424 cat "conftest.in" "conftest.in" >"conftest.tmp"
3425 mv "conftest.tmp" "conftest.in"
3426 cp "conftest.in" "conftest.nl"
3427 echo 'EGREP' >> "conftest.nl"
3428 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3429 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3430 ac_count=`expr $ac_count + 1`
3431 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3432 # Best one so far, save it but keep looking for a better one
3433 ac_cv_path_EGREP="$ac_path_EGREP"
3434 ac_path_EGREP_max=$ac_count
3436 # 10*(2^10) chars as input seems more than enough
3437 test $ac_count -gt 10 && break
3438 done
3439 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3440 esac
3443 $ac_path_EGREP_found && break 3
3444 done
3445 done
3447 done
3448 IFS=$as_save_IFS
3453 EGREP="$ac_cv_path_EGREP"
3454 if test -z "$EGREP"; then
3455 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3456 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3457 { (exit 1); exit 1; }; }
3460 else
3461 ac_cv_path_EGREP=$EGREP
3467 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3468 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3469 EGREP="$ac_cv_path_EGREP"
3472 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3473 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3474 if test "${ac_cv_header_stdc+set}" = set; then
3475 echo $ECHO_N "(cached) $ECHO_C" >&6
3476 else
3477 cat >conftest.$ac_ext <<_ACEOF
3478 /* confdefs.h. */
3479 _ACEOF
3480 cat confdefs.h >>conftest.$ac_ext
3481 cat >>conftest.$ac_ext <<_ACEOF
3482 /* end confdefs.h. */
3483 #include <stdlib.h>
3484 #include <stdarg.h>
3485 #include <string.h>
3486 #include <float.h>
3489 main ()
3493 return 0;
3495 _ACEOF
3496 rm -f conftest.$ac_objext
3497 if { (ac_try="$ac_compile"
3498 case "(($ac_try" in
3499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3500 *) ac_try_echo=$ac_try;;
3501 esac
3502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3503 (eval "$ac_compile") 2>conftest.er1
3504 ac_status=$?
3505 grep -v '^ *+' conftest.er1 >conftest.err
3506 rm -f conftest.er1
3507 cat conftest.err >&5
3508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3509 (exit $ac_status); } && {
3510 test -z "$ac_c_werror_flag" ||
3511 test ! -s conftest.err
3512 } && test -s conftest.$ac_objext; then
3513 ac_cv_header_stdc=yes
3514 else
3515 echo "$as_me: failed program was:" >&5
3516 sed 's/^/| /' conftest.$ac_ext >&5
3518 ac_cv_header_stdc=no
3521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3523 if test $ac_cv_header_stdc = yes; then
3524 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3525 cat >conftest.$ac_ext <<_ACEOF
3526 /* confdefs.h. */
3527 _ACEOF
3528 cat confdefs.h >>conftest.$ac_ext
3529 cat >>conftest.$ac_ext <<_ACEOF
3530 /* end confdefs.h. */
3531 #include <string.h>
3533 _ACEOF
3534 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3535 $EGREP "memchr" >/dev/null 2>&1; then
3537 else
3538 ac_cv_header_stdc=no
3540 rm -f conftest*
3544 if test $ac_cv_header_stdc = yes; then
3545 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3546 cat >conftest.$ac_ext <<_ACEOF
3547 /* confdefs.h. */
3548 _ACEOF
3549 cat confdefs.h >>conftest.$ac_ext
3550 cat >>conftest.$ac_ext <<_ACEOF
3551 /* end confdefs.h. */
3552 #include <stdlib.h>
3554 _ACEOF
3555 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3556 $EGREP "free" >/dev/null 2>&1; then
3558 else
3559 ac_cv_header_stdc=no
3561 rm -f conftest*
3565 if test $ac_cv_header_stdc = yes; then
3566 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3567 if test "$cross_compiling" = yes; then
3569 else
3570 cat >conftest.$ac_ext <<_ACEOF
3571 /* confdefs.h. */
3572 _ACEOF
3573 cat confdefs.h >>conftest.$ac_ext
3574 cat >>conftest.$ac_ext <<_ACEOF
3575 /* end confdefs.h. */
3576 #include <ctype.h>
3577 #include <stdlib.h>
3578 #if ((' ' & 0x0FF) == 0x020)
3579 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3580 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3581 #else
3582 # define ISLOWER(c) \
3583 (('a' <= (c) && (c) <= 'i') \
3584 || ('j' <= (c) && (c) <= 'r') \
3585 || ('s' <= (c) && (c) <= 'z'))
3586 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3587 #endif
3589 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3591 main ()
3593 int i;
3594 for (i = 0; i < 256; i++)
3595 if (XOR (islower (i), ISLOWER (i))
3596 || toupper (i) != TOUPPER (i))
3597 return 2;
3598 return 0;
3600 _ACEOF
3601 rm -f conftest$ac_exeext
3602 if { (ac_try="$ac_link"
3603 case "(($ac_try" in
3604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3605 *) ac_try_echo=$ac_try;;
3606 esac
3607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3608 (eval "$ac_link") 2>&5
3609 ac_status=$?
3610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3611 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3612 { (case "(($ac_try" in
3613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3614 *) ac_try_echo=$ac_try;;
3615 esac
3616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3617 (eval "$ac_try") 2>&5
3618 ac_status=$?
3619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3620 (exit $ac_status); }; }; then
3622 else
3623 echo "$as_me: program exited with status $ac_status" >&5
3624 echo "$as_me: failed program was:" >&5
3625 sed 's/^/| /' conftest.$ac_ext >&5
3627 ( exit $ac_status )
3628 ac_cv_header_stdc=no
3630 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3636 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3637 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3638 if test $ac_cv_header_stdc = yes; then
3640 cat >>confdefs.h <<\_ACEOF
3641 #define STDC_HEADERS 1
3642 _ACEOF
3646 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3656 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3657 inttypes.h stdint.h unistd.h
3659 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3660 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3661 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3662 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3663 echo $ECHO_N "(cached) $ECHO_C" >&6
3664 else
3665 cat >conftest.$ac_ext <<_ACEOF
3666 /* confdefs.h. */
3667 _ACEOF
3668 cat confdefs.h >>conftest.$ac_ext
3669 cat >>conftest.$ac_ext <<_ACEOF
3670 /* end confdefs.h. */
3671 $ac_includes_default
3673 #include <$ac_header>
3674 _ACEOF
3675 rm -f conftest.$ac_objext
3676 if { (ac_try="$ac_compile"
3677 case "(($ac_try" in
3678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3679 *) ac_try_echo=$ac_try;;
3680 esac
3681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3682 (eval "$ac_compile") 2>conftest.er1
3683 ac_status=$?
3684 grep -v '^ *+' conftest.er1 >conftest.err
3685 rm -f conftest.er1
3686 cat conftest.err >&5
3687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3688 (exit $ac_status); } && {
3689 test -z "$ac_c_werror_flag" ||
3690 test ! -s conftest.err
3691 } && test -s conftest.$ac_objext; then
3692 eval "$as_ac_Header=yes"
3693 else
3694 echo "$as_me: failed program was:" >&5
3695 sed 's/^/| /' conftest.$ac_ext >&5
3697 eval "$as_ac_Header=no"
3700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3702 ac_res=`eval echo '${'$as_ac_Header'}'`
3703 { echo "$as_me:$LINENO: result: $ac_res" >&5
3704 echo "${ECHO_T}$ac_res" >&6; }
3705 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3706 cat >>confdefs.h <<_ACEOF
3707 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3708 _ACEOF
3712 done
3719 for ac_header in $ac_header_list
3721 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3722 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3723 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3724 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3725 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3726 echo $ECHO_N "(cached) $ECHO_C" >&6
3728 ac_res=`eval echo '${'$as_ac_Header'}'`
3729 { echo "$as_me:$LINENO: result: $ac_res" >&5
3730 echo "${ECHO_T}$ac_res" >&6; }
3731 else
3732 # Is the header compilable?
3733 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
3734 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
3735 cat >conftest.$ac_ext <<_ACEOF
3736 /* confdefs.h. */
3737 _ACEOF
3738 cat confdefs.h >>conftest.$ac_ext
3739 cat >>conftest.$ac_ext <<_ACEOF
3740 /* end confdefs.h. */
3741 $ac_includes_default
3742 #include <$ac_header>
3743 _ACEOF
3744 rm -f conftest.$ac_objext
3745 if { (ac_try="$ac_compile"
3746 case "(($ac_try" in
3747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3748 *) ac_try_echo=$ac_try;;
3749 esac
3750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3751 (eval "$ac_compile") 2>conftest.er1
3752 ac_status=$?
3753 grep -v '^ *+' conftest.er1 >conftest.err
3754 rm -f conftest.er1
3755 cat conftest.err >&5
3756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3757 (exit $ac_status); } && {
3758 test -z "$ac_c_werror_flag" ||
3759 test ! -s conftest.err
3760 } && test -s conftest.$ac_objext; then
3761 ac_header_compiler=yes
3762 else
3763 echo "$as_me: failed program was:" >&5
3764 sed 's/^/| /' conftest.$ac_ext >&5
3766 ac_header_compiler=no
3769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3770 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3771 echo "${ECHO_T}$ac_header_compiler" >&6; }
3773 # Is the header present?
3774 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
3775 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
3776 cat >conftest.$ac_ext <<_ACEOF
3777 /* confdefs.h. */
3778 _ACEOF
3779 cat confdefs.h >>conftest.$ac_ext
3780 cat >>conftest.$ac_ext <<_ACEOF
3781 /* end confdefs.h. */
3782 #include <$ac_header>
3783 _ACEOF
3784 if { (ac_try="$ac_cpp conftest.$ac_ext"
3785 case "(($ac_try" in
3786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3787 *) ac_try_echo=$ac_try;;
3788 esac
3789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3790 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3791 ac_status=$?
3792 grep -v '^ *+' conftest.er1 >conftest.err
3793 rm -f conftest.er1
3794 cat conftest.err >&5
3795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3796 (exit $ac_status); } >/dev/null && {
3797 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3798 test ! -s conftest.err
3799 }; then
3800 ac_header_preproc=yes
3801 else
3802 echo "$as_me: failed program was:" >&5
3803 sed 's/^/| /' conftest.$ac_ext >&5
3805 ac_header_preproc=no
3808 rm -f conftest.err conftest.$ac_ext
3809 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3810 echo "${ECHO_T}$ac_header_preproc" >&6; }
3812 # So? What about this header?
3813 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3814 yes:no: )
3815 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3816 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3817 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3818 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3819 ac_header_preproc=yes
3821 no:yes:* )
3822 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3823 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3824 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3825 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3826 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3827 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3828 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3829 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3830 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3831 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3832 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3833 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3836 esac
3837 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3838 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3839 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3840 echo $ECHO_N "(cached) $ECHO_C" >&6
3841 else
3842 eval "$as_ac_Header=\$ac_header_preproc"
3844 ac_res=`eval echo '${'$as_ac_Header'}'`
3845 { echo "$as_me:$LINENO: result: $ac_res" >&5
3846 echo "${ECHO_T}$ac_res" >&6; }
3849 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3850 cat >>confdefs.h <<_ACEOF
3851 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3852 _ACEOF
3856 done
3924 # Checks for header file macros
3925 # -----------------------------
3928 { echo "$as_me:$LINENO: checking if L_tmpnam is defined in stdio.h" >&5
3929 echo $ECHO_N "checking if L_tmpnam is defined in stdio.h... $ECHO_C" >&6; }
3930 cat >conftest.$ac_ext <<_ACEOF
3931 /* confdefs.h. */
3932 _ACEOF
3933 cat confdefs.h >>conftest.$ac_ext
3934 cat >>conftest.$ac_ext <<_ACEOF
3935 /* end confdefs.h. */
3936 #include <stdio.h>
3937 #ifdef L_tmpnam
3939 #endif
3941 _ACEOF
3942 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3943 $EGREP "yes" >/dev/null 2>&1; then
3945 { echo "$as_me:$LINENO: result: yes" >&5
3946 echo "${ECHO_T}yes" >&6; }
3949 else
3951 { echo "$as_me:$LINENO: result: no" >&5
3952 echo "${ECHO_T}no" >&6; }
3953 cat >>confdefs.h <<\_ACEOF
3954 #define L_tmpnam 20
3955 _ACEOF
3959 rm -f conftest*
3963 { echo "$as_me:$LINENO: checking if INT_MAX is defined in limits.h" >&5
3964 echo $ECHO_N "checking if INT_MAX is defined in limits.h... $ECHO_C" >&6; }
3965 cat >conftest.$ac_ext <<_ACEOF
3966 /* confdefs.h. */
3967 _ACEOF
3968 cat confdefs.h >>conftest.$ac_ext
3969 cat >>conftest.$ac_ext <<_ACEOF
3970 /* end confdefs.h. */
3971 #include <limits.h>
3972 #ifdef INT_MAX
3974 #endif
3976 _ACEOF
3977 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3978 $EGREP "yes" >/dev/null 2>&1; then
3980 { echo "$as_me:$LINENO: result: yes" >&5
3981 echo "${ECHO_T}yes" >&6; }
3984 else
3986 { echo "$as_me:$LINENO: result: no" >&5
3987 echo "${ECHO_T}no" >&6; }
3989 { echo "$as_me:$LINENO: checking if MAXINT is defined in limits.h" >&5
3990 echo $ECHO_N "checking if MAXINT is defined in limits.h... $ECHO_C" >&6; }
3991 cat >conftest.$ac_ext <<_ACEOF
3992 /* confdefs.h. */
3993 _ACEOF
3994 cat confdefs.h >>conftest.$ac_ext
3995 cat >>conftest.$ac_ext <<_ACEOF
3996 /* end confdefs.h. */
3997 #include <limits.h>
3998 #ifdef MAXINT
4000 #endif
4002 _ACEOF
4003 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4004 $EGREP "yes" >/dev/null 2>&1; then
4006 { echo "$as_me:$LINENO: result: yes" >&5
4007 echo "${ECHO_T}yes" >&6; }
4008 cat >>confdefs.h <<\_ACEOF
4009 #define INT_MAX MAXINT
4010 _ACEOF
4013 else
4015 { echo "$as_me:$LINENO: result: no" >&5
4016 echo "${ECHO_T}no" >&6; }
4017 cat >>confdefs.h <<\_ACEOF
4018 #define INT_MAX 32767
4019 _ACEOF
4023 rm -f conftest*
4027 rm -f conftest*
4031 # Checks for typedefs
4032 # -------------------
4034 { echo "$as_me:$LINENO: checking for size_t" >&5
4035 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
4036 if test "${ac_cv_type_size_t+set}" = set; then
4037 echo $ECHO_N "(cached) $ECHO_C" >&6
4038 else
4039 cat >conftest.$ac_ext <<_ACEOF
4040 /* confdefs.h. */
4041 _ACEOF
4042 cat confdefs.h >>conftest.$ac_ext
4043 cat >>conftest.$ac_ext <<_ACEOF
4044 /* end confdefs.h. */
4045 $ac_includes_default
4046 typedef size_t ac__type_new_;
4048 main ()
4050 if ((ac__type_new_ *) 0)
4051 return 0;
4052 if (sizeof (ac__type_new_))
4053 return 0;
4055 return 0;
4057 _ACEOF
4058 rm -f conftest.$ac_objext
4059 if { (ac_try="$ac_compile"
4060 case "(($ac_try" in
4061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4062 *) ac_try_echo=$ac_try;;
4063 esac
4064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4065 (eval "$ac_compile") 2>conftest.er1
4066 ac_status=$?
4067 grep -v '^ *+' conftest.er1 >conftest.err
4068 rm -f conftest.er1
4069 cat conftest.err >&5
4070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4071 (exit $ac_status); } && {
4072 test -z "$ac_c_werror_flag" ||
4073 test ! -s conftest.err
4074 } && test -s conftest.$ac_objext; then
4075 ac_cv_type_size_t=yes
4076 else
4077 echo "$as_me: failed program was:" >&5
4078 sed 's/^/| /' conftest.$ac_ext >&5
4080 ac_cv_type_size_t=no
4083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4085 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
4086 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
4087 if test $ac_cv_type_size_t = yes; then
4089 else
4091 cat >>confdefs.h <<_ACEOF
4092 #define size_t unsigned int
4093 _ACEOF
4097 { echo "$as_me:$LINENO: checking for off_t" >&5
4098 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
4099 if test "${ac_cv_type_off_t+set}" = set; then
4100 echo $ECHO_N "(cached) $ECHO_C" >&6
4101 else
4102 cat >conftest.$ac_ext <<_ACEOF
4103 /* confdefs.h. */
4104 _ACEOF
4105 cat confdefs.h >>conftest.$ac_ext
4106 cat >>conftest.$ac_ext <<_ACEOF
4107 /* end confdefs.h. */
4108 $ac_includes_default
4109 typedef off_t ac__type_new_;
4111 main ()
4113 if ((ac__type_new_ *) 0)
4114 return 0;
4115 if (sizeof (ac__type_new_))
4116 return 0;
4118 return 0;
4120 _ACEOF
4121 rm -f conftest.$ac_objext
4122 if { (ac_try="$ac_compile"
4123 case "(($ac_try" in
4124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4125 *) ac_try_echo=$ac_try;;
4126 esac
4127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4128 (eval "$ac_compile") 2>conftest.er1
4129 ac_status=$?
4130 grep -v '^ *+' conftest.er1 >conftest.err
4131 rm -f conftest.er1
4132 cat conftest.err >&5
4133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4134 (exit $ac_status); } && {
4135 test -z "$ac_c_werror_flag" ||
4136 test ! -s conftest.err
4137 } && test -s conftest.$ac_objext; then
4138 ac_cv_type_off_t=yes
4139 else
4140 echo "$as_me: failed program was:" >&5
4141 sed 's/^/| /' conftest.$ac_ext >&5
4143 ac_cv_type_off_t=no
4146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4148 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
4149 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
4150 if test $ac_cv_type_off_t = yes; then
4152 else
4154 cat >>confdefs.h <<_ACEOF
4155 #define off_t long int
4156 _ACEOF
4161 { echo "$as_me:$LINENO: checking for fpos_t" >&5
4162 echo $ECHO_N "checking for fpos_t... $ECHO_C" >&6; }
4163 cat >conftest.$ac_ext <<_ACEOF
4164 /* confdefs.h. */
4165 _ACEOF
4166 cat confdefs.h >>conftest.$ac_ext
4167 cat >>conftest.$ac_ext <<_ACEOF
4168 /* end confdefs.h. */
4169 #include <stdio.h>
4171 _ACEOF
4172 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4173 $EGREP "fpos_t" >/dev/null 2>&1; then
4174 { echo "$as_me:$LINENO: result: yes" >&5
4175 echo "${ECHO_T}yes" >&6; }
4176 else
4178 { echo "$as_me:$LINENO: result: no" >&5
4179 echo "${ECHO_T}no" >&6; }
4180 cat >>confdefs.h <<\_ACEOF
4181 #define fpos_t long
4182 _ACEOF
4186 rm -f conftest*
4189 { echo "$as_me:$LINENO: checking for clock_t" >&5
4190 echo $ECHO_N "checking for clock_t... $ECHO_C" >&6; }
4191 cat >conftest.$ac_ext <<_ACEOF
4192 /* confdefs.h. */
4193 _ACEOF
4194 cat confdefs.h >>conftest.$ac_ext
4195 cat >>conftest.$ac_ext <<_ACEOF
4196 /* end confdefs.h. */
4197 #include <time.h>
4199 _ACEOF
4200 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4201 $EGREP "clock_t" >/dev/null 2>&1; then
4202 { echo "$as_me:$LINENO: result: yes" >&5
4203 echo "${ECHO_T}yes" >&6; }
4204 else
4206 { echo "$as_me:$LINENO: result: no" >&5
4207 echo "${ECHO_T}no" >&6; }
4208 cat >>confdefs.h <<\_ACEOF
4209 #define clock_t long
4210 _ACEOF
4214 rm -f conftest*
4218 # Checks for compiler characteristics
4219 # -----------------------------------
4221 # AC_CYGWIN
4222 # AC_MINGW32
4223 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
4224 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
4225 if test "${ac_cv_c_const+set}" = set; then
4226 echo $ECHO_N "(cached) $ECHO_C" >&6
4227 else
4228 cat >conftest.$ac_ext <<_ACEOF
4229 /* confdefs.h. */
4230 _ACEOF
4231 cat confdefs.h >>conftest.$ac_ext
4232 cat >>conftest.$ac_ext <<_ACEOF
4233 /* end confdefs.h. */
4236 main ()
4238 /* FIXME: Include the comments suggested by Paul. */
4239 #ifndef __cplusplus
4240 /* Ultrix mips cc rejects this. */
4241 typedef int charset[2];
4242 const charset cs;
4243 /* SunOS 4.1.1 cc rejects this. */
4244 char const *const *pcpcc;
4245 char **ppc;
4246 /* NEC SVR4.0.2 mips cc rejects this. */
4247 struct point {int x, y;};
4248 static struct point const zero = {0,0};
4249 /* AIX XL C 1.02.0.0 rejects this.
4250 It does not let you subtract one const X* pointer from another in
4251 an arm of an if-expression whose if-part is not a constant
4252 expression */
4253 const char *g = "string";
4254 pcpcc = &g + (g ? g-g : 0);
4255 /* HPUX 7.0 cc rejects these. */
4256 ++pcpcc;
4257 ppc = (char**) pcpcc;
4258 pcpcc = (char const *const *) ppc;
4259 { /* SCO 3.2v4 cc rejects this. */
4260 char *t;
4261 char const *s = 0 ? (char *) 0 : (char const *) 0;
4263 *t++ = 0;
4264 if (s) return 0;
4266 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4267 int x[] = {25, 17};
4268 const int *foo = &x[0];
4269 ++foo;
4271 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4272 typedef const int *iptr;
4273 iptr p = 0;
4274 ++p;
4276 { /* AIX XL C 1.02.0.0 rejects this saying
4277 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4278 struct s { int j; const int *ap[3]; };
4279 struct s *b; b->j = 5;
4281 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4282 const int foo = 10;
4283 if (!foo) return 0;
4285 return !cs[0] && !zero.x;
4286 #endif
4289 return 0;
4291 _ACEOF
4292 rm -f conftest.$ac_objext
4293 if { (ac_try="$ac_compile"
4294 case "(($ac_try" in
4295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4296 *) ac_try_echo=$ac_try;;
4297 esac
4298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4299 (eval "$ac_compile") 2>conftest.er1
4300 ac_status=$?
4301 grep -v '^ *+' conftest.er1 >conftest.err
4302 rm -f conftest.er1
4303 cat conftest.err >&5
4304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4305 (exit $ac_status); } && {
4306 test -z "$ac_c_werror_flag" ||
4307 test ! -s conftest.err
4308 } && test -s conftest.$ac_objext; then
4309 ac_cv_c_const=yes
4310 else
4311 echo "$as_me: failed program was:" >&5
4312 sed 's/^/| /' conftest.$ac_ext >&5
4314 ac_cv_c_const=no
4317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4319 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
4320 echo "${ECHO_T}$ac_cv_c_const" >&6; }
4321 if test $ac_cv_c_const = no; then
4323 cat >>confdefs.h <<\_ACEOF
4324 #define const
4325 _ACEOF
4332 { echo "$as_me:$LINENO: checking if struct stat contains st_ino" >&5
4333 echo $ECHO_N "checking if struct stat contains st_ino... $ECHO_C" >&6; }
4334 cat >conftest.$ac_ext <<_ACEOF
4335 /* confdefs.h. */
4336 _ACEOF
4337 cat confdefs.h >>conftest.$ac_ext
4338 cat >>conftest.$ac_ext <<_ACEOF
4339 /* end confdefs.h. */
4340 #include <sys/stat.h>
4342 main ()
4345 struct stat st;
4346 stat(".", &st);
4347 if (st.st_ino > 0)
4348 exit(0);
4351 return 0;
4353 _ACEOF
4354 rm -f conftest.$ac_objext
4355 if { (ac_try="$ac_compile"
4356 case "(($ac_try" in
4357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4358 *) ac_try_echo=$ac_try;;
4359 esac
4360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4361 (eval "$ac_compile") 2>conftest.er1
4362 ac_status=$?
4363 grep -v '^ *+' conftest.er1 >conftest.err
4364 rm -f conftest.er1
4365 cat conftest.err >&5
4366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4367 (exit $ac_status); } && {
4368 test -z "$ac_c_werror_flag" ||
4369 test ! -s conftest.err
4370 } && test -s conftest.$ac_objext; then
4371 have_st_ino=yes
4372 else
4373 echo "$as_me: failed program was:" >&5
4374 sed 's/^/| /' conftest.$ac_ext >&5
4376 have_st_ino=no
4379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4380 { echo "$as_me:$LINENO: result: $have_st_ino" >&5
4381 echo "${ECHO_T}$have_st_ino" >&6; }
4382 if test yes = "$have_st_ino"; then
4383 cat >>confdefs.h <<\_ACEOF
4384 #define HAVE_STAT_ST_INO 1
4385 _ACEOF
4390 # Checks for library functions
4391 # ----------------------------
4394 for ac_func in fnmatch
4396 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4397 { echo "$as_me:$LINENO: checking for $ac_func" >&5
4398 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
4399 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
4400 echo $ECHO_N "(cached) $ECHO_C" >&6
4401 else
4402 cat >conftest.$ac_ext <<_ACEOF
4403 /* confdefs.h. */
4404 _ACEOF
4405 cat confdefs.h >>conftest.$ac_ext
4406 cat >>conftest.$ac_ext <<_ACEOF
4407 /* end confdefs.h. */
4408 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4409 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4410 #define $ac_func innocuous_$ac_func
4412 /* System header to define __stub macros and hopefully few prototypes,
4413 which can conflict with char $ac_func (); below.
4414 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4415 <limits.h> exists even on freestanding compilers. */
4417 #ifdef __STDC__
4418 # include <limits.h>
4419 #else
4420 # include <assert.h>
4421 #endif
4423 #undef $ac_func
4425 /* Override any GCC internal prototype to avoid an error.
4426 Use char because int might match the return type of a GCC
4427 builtin and then its argument prototype would still apply. */
4428 #ifdef __cplusplus
4429 extern "C"
4430 #endif
4431 char $ac_func ();
4432 /* The GNU C library defines this for functions which it implements
4433 to always fail with ENOSYS. Some functions are actually named
4434 something starting with __ and the normal name is an alias. */
4435 #if defined __stub_$ac_func || defined __stub___$ac_func
4436 choke me
4437 #endif
4440 main ()
4442 return $ac_func ();
4444 return 0;
4446 _ACEOF
4447 rm -f conftest.$ac_objext conftest$ac_exeext
4448 if { (ac_try="$ac_link"
4449 case "(($ac_try" in
4450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4451 *) ac_try_echo=$ac_try;;
4452 esac
4453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4454 (eval "$ac_link") 2>conftest.er1
4455 ac_status=$?
4456 grep -v '^ *+' conftest.er1 >conftest.err
4457 rm -f conftest.er1
4458 cat conftest.err >&5
4459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4460 (exit $ac_status); } && {
4461 test -z "$ac_c_werror_flag" ||
4462 test ! -s conftest.err
4463 } && test -s conftest$ac_exeext &&
4464 $as_test_x conftest$ac_exeext; then
4465 eval "$as_ac_var=yes"
4466 else
4467 echo "$as_me: failed program was:" >&5
4468 sed 's/^/| /' conftest.$ac_ext >&5
4470 eval "$as_ac_var=no"
4473 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4474 conftest$ac_exeext conftest.$ac_ext
4476 ac_res=`eval echo '${'$as_ac_var'}'`
4477 { echo "$as_me:$LINENO: result: $ac_res" >&5
4478 echo "${ECHO_T}$ac_res" >&6; }
4479 if test `eval echo '${'$as_ac_var'}'` = yes; then
4480 cat >>confdefs.h <<_ACEOF
4481 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4482 _ACEOF
4485 done
4488 for ac_func in strstr
4490 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4491 { echo "$as_me:$LINENO: checking for $ac_func" >&5
4492 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
4493 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
4494 echo $ECHO_N "(cached) $ECHO_C" >&6
4495 else
4496 cat >conftest.$ac_ext <<_ACEOF
4497 /* confdefs.h. */
4498 _ACEOF
4499 cat confdefs.h >>conftest.$ac_ext
4500 cat >>conftest.$ac_ext <<_ACEOF
4501 /* end confdefs.h. */
4502 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4503 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4504 #define $ac_func innocuous_$ac_func
4506 /* System header to define __stub macros and hopefully few prototypes,
4507 which can conflict with char $ac_func (); below.
4508 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4509 <limits.h> exists even on freestanding compilers. */
4511 #ifdef __STDC__
4512 # include <limits.h>
4513 #else
4514 # include <assert.h>
4515 #endif
4517 #undef $ac_func
4519 /* Override any GCC internal prototype to avoid an error.
4520 Use char because int might match the return type of a GCC
4521 builtin and then its argument prototype would still apply. */
4522 #ifdef __cplusplus
4523 extern "C"
4524 #endif
4525 char $ac_func ();
4526 /* The GNU C library defines this for functions which it implements
4527 to always fail with ENOSYS. Some functions are actually named
4528 something starting with __ and the normal name is an alias. */
4529 #if defined __stub_$ac_func || defined __stub___$ac_func
4530 choke me
4531 #endif
4534 main ()
4536 return $ac_func ();
4538 return 0;
4540 _ACEOF
4541 rm -f conftest.$ac_objext conftest$ac_exeext
4542 if { (ac_try="$ac_link"
4543 case "(($ac_try" in
4544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4545 *) ac_try_echo=$ac_try;;
4546 esac
4547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4548 (eval "$ac_link") 2>conftest.er1
4549 ac_status=$?
4550 grep -v '^ *+' conftest.er1 >conftest.err
4551 rm -f conftest.er1
4552 cat conftest.err >&5
4553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4554 (exit $ac_status); } && {
4555 test -z "$ac_c_werror_flag" ||
4556 test ! -s conftest.err
4557 } && test -s conftest$ac_exeext &&
4558 $as_test_x conftest$ac_exeext; then
4559 eval "$as_ac_var=yes"
4560 else
4561 echo "$as_me: failed program was:" >&5
4562 sed 's/^/| /' conftest.$ac_ext >&5
4564 eval "$as_ac_var=no"
4567 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4568 conftest$ac_exeext conftest.$ac_ext
4570 ac_res=`eval echo '${'$as_ac_var'}'`
4571 { echo "$as_me:$LINENO: result: $ac_res" >&5
4572 echo "${ECHO_T}$ac_res" >&6; }
4573 if test `eval echo '${'$as_ac_var'}'` = yes; then
4574 cat >>confdefs.h <<_ACEOF
4575 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4576 _ACEOF
4579 done
4583 for ac_func in strcasecmp stricmp
4585 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4586 { echo "$as_me:$LINENO: checking for $ac_func" >&5
4587 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
4588 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
4589 echo $ECHO_N "(cached) $ECHO_C" >&6
4590 else
4591 cat >conftest.$ac_ext <<_ACEOF
4592 /* confdefs.h. */
4593 _ACEOF
4594 cat confdefs.h >>conftest.$ac_ext
4595 cat >>conftest.$ac_ext <<_ACEOF
4596 /* end confdefs.h. */
4597 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4598 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4599 #define $ac_func innocuous_$ac_func
4601 /* System header to define __stub macros and hopefully few prototypes,
4602 which can conflict with char $ac_func (); below.
4603 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4604 <limits.h> exists even on freestanding compilers. */
4606 #ifdef __STDC__
4607 # include <limits.h>
4608 #else
4609 # include <assert.h>
4610 #endif
4612 #undef $ac_func
4614 /* Override any GCC internal prototype to avoid an error.
4615 Use char because int might match the return type of a GCC
4616 builtin and then its argument prototype would still apply. */
4617 #ifdef __cplusplus
4618 extern "C"
4619 #endif
4620 char $ac_func ();
4621 /* The GNU C library defines this for functions which it implements
4622 to always fail with ENOSYS. Some functions are actually named
4623 something starting with __ and the normal name is an alias. */
4624 #if defined __stub_$ac_func || defined __stub___$ac_func
4625 choke me
4626 #endif
4629 main ()
4631 return $ac_func ();
4633 return 0;
4635 _ACEOF
4636 rm -f conftest.$ac_objext conftest$ac_exeext
4637 if { (ac_try="$ac_link"
4638 case "(($ac_try" in
4639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4640 *) ac_try_echo=$ac_try;;
4641 esac
4642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4643 (eval "$ac_link") 2>conftest.er1
4644 ac_status=$?
4645 grep -v '^ *+' conftest.er1 >conftest.err
4646 rm -f conftest.er1
4647 cat conftest.err >&5
4648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4649 (exit $ac_status); } && {
4650 test -z "$ac_c_werror_flag" ||
4651 test ! -s conftest.err
4652 } && test -s conftest$ac_exeext &&
4653 $as_test_x conftest$ac_exeext; then
4654 eval "$as_ac_var=yes"
4655 else
4656 echo "$as_me: failed program was:" >&5
4657 sed 's/^/| /' conftest.$ac_ext >&5
4659 eval "$as_ac_var=no"
4662 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4663 conftest$ac_exeext conftest.$ac_ext
4665 ac_res=`eval echo '${'$as_ac_var'}'`
4666 { echo "$as_me:$LINENO: result: $ac_res" >&5
4667 echo "${ECHO_T}$ac_res" >&6; }
4668 if test `eval echo '${'$as_ac_var'}'` = yes; then
4669 cat >>confdefs.h <<_ACEOF
4670 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4671 _ACEOF
4672 break
4674 done
4678 for ac_func in strncasecmp strnicmp
4680 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4681 { echo "$as_me:$LINENO: checking for $ac_func" >&5
4682 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
4683 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
4684 echo $ECHO_N "(cached) $ECHO_C" >&6
4685 else
4686 cat >conftest.$ac_ext <<_ACEOF
4687 /* confdefs.h. */
4688 _ACEOF
4689 cat confdefs.h >>conftest.$ac_ext
4690 cat >>conftest.$ac_ext <<_ACEOF
4691 /* end confdefs.h. */
4692 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4693 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4694 #define $ac_func innocuous_$ac_func
4696 /* System header to define __stub macros and hopefully few prototypes,
4697 which can conflict with char $ac_func (); below.
4698 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4699 <limits.h> exists even on freestanding compilers. */
4701 #ifdef __STDC__
4702 # include <limits.h>
4703 #else
4704 # include <assert.h>
4705 #endif
4707 #undef $ac_func
4709 /* Override any GCC internal prototype to avoid an error.
4710 Use char because int might match the return type of a GCC
4711 builtin and then its argument prototype would still apply. */
4712 #ifdef __cplusplus
4713 extern "C"
4714 #endif
4715 char $ac_func ();
4716 /* The GNU C library defines this for functions which it implements
4717 to always fail with ENOSYS. Some functions are actually named
4718 something starting with __ and the normal name is an alias. */
4719 #if defined __stub_$ac_func || defined __stub___$ac_func
4720 choke me
4721 #endif
4724 main ()
4726 return $ac_func ();
4728 return 0;
4730 _ACEOF
4731 rm -f conftest.$ac_objext conftest$ac_exeext
4732 if { (ac_try="$ac_link"
4733 case "(($ac_try" in
4734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4735 *) ac_try_echo=$ac_try;;
4736 esac
4737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4738 (eval "$ac_link") 2>conftest.er1
4739 ac_status=$?
4740 grep -v '^ *+' conftest.er1 >conftest.err
4741 rm -f conftest.er1
4742 cat conftest.err >&5
4743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4744 (exit $ac_status); } && {
4745 test -z "$ac_c_werror_flag" ||
4746 test ! -s conftest.err
4747 } && test -s conftest$ac_exeext &&
4748 $as_test_x conftest$ac_exeext; then
4749 eval "$as_ac_var=yes"
4750 else
4751 echo "$as_me: failed program was:" >&5
4752 sed 's/^/| /' conftest.$ac_ext >&5
4754 eval "$as_ac_var=no"
4757 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4758 conftest$ac_exeext conftest.$ac_ext
4760 ac_res=`eval echo '${'$as_ac_var'}'`
4761 { echo "$as_me:$LINENO: result: $ac_res" >&5
4762 echo "${ECHO_T}$ac_res" >&6; }
4763 if test `eval echo '${'$as_ac_var'}'` = yes; then
4764 cat >>confdefs.h <<_ACEOF
4765 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4766 _ACEOF
4767 break
4769 done
4772 for ac_func in fgetpos
4774 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4775 { echo "$as_me:$LINENO: checking for $ac_func" >&5
4776 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
4777 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
4778 echo $ECHO_N "(cached) $ECHO_C" >&6
4779 else
4780 cat >conftest.$ac_ext <<_ACEOF
4781 /* confdefs.h. */
4782 _ACEOF
4783 cat confdefs.h >>conftest.$ac_ext
4784 cat >>conftest.$ac_ext <<_ACEOF
4785 /* end confdefs.h. */
4786 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4787 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4788 #define $ac_func innocuous_$ac_func
4790 /* System header to define __stub macros and hopefully few prototypes,
4791 which can conflict with char $ac_func (); below.
4792 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4793 <limits.h> exists even on freestanding compilers. */
4795 #ifdef __STDC__
4796 # include <limits.h>
4797 #else
4798 # include <assert.h>
4799 #endif
4801 #undef $ac_func
4803 /* Override any GCC internal prototype to avoid an error.
4804 Use char because int might match the return type of a GCC
4805 builtin and then its argument prototype would still apply. */
4806 #ifdef __cplusplus
4807 extern "C"
4808 #endif
4809 char $ac_func ();
4810 /* The GNU C library defines this for functions which it implements
4811 to always fail with ENOSYS. Some functions are actually named
4812 something starting with __ and the normal name is an alias. */
4813 #if defined __stub_$ac_func || defined __stub___$ac_func
4814 choke me
4815 #endif
4818 main ()
4820 return $ac_func ();
4822 return 0;
4824 _ACEOF
4825 rm -f conftest.$ac_objext conftest$ac_exeext
4826 if { (ac_try="$ac_link"
4827 case "(($ac_try" in
4828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4829 *) ac_try_echo=$ac_try;;
4830 esac
4831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4832 (eval "$ac_link") 2>conftest.er1
4833 ac_status=$?
4834 grep -v '^ *+' conftest.er1 >conftest.err
4835 rm -f conftest.er1
4836 cat conftest.err >&5
4837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4838 (exit $ac_status); } && {
4839 test -z "$ac_c_werror_flag" ||
4840 test ! -s conftest.err
4841 } && test -s conftest$ac_exeext &&
4842 $as_test_x conftest$ac_exeext; then
4843 eval "$as_ac_var=yes"
4844 else
4845 echo "$as_me: failed program was:" >&5
4846 sed 's/^/| /' conftest.$ac_ext >&5
4848 eval "$as_ac_var=no"
4851 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4852 conftest$ac_exeext conftest.$ac_ext
4854 ac_res=`eval echo '${'$as_ac_var'}'`
4855 { echo "$as_me:$LINENO: result: $ac_res" >&5
4856 echo "${ECHO_T}$ac_res" >&6; }
4857 if test `eval echo '${'$as_ac_var'}'` = yes; then
4858 cat >>confdefs.h <<_ACEOF
4859 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4860 _ACEOF
4861 have_fgetpos=yes
4863 done
4866 # SEEK_SET should be in stdio.h, but may be in unistd.h on SunOS 4.1.x
4867 if test "$have_fgetpos" != yes ; then
4869 { echo "$as_me:$LINENO: checking if SEEK_SET is defined in stdio.h" >&5
4870 echo $ECHO_N "checking if SEEK_SET is defined in stdio.h... $ECHO_C" >&6; }
4871 cat >conftest.$ac_ext <<_ACEOF
4872 /* confdefs.h. */
4873 _ACEOF
4874 cat confdefs.h >>conftest.$ac_ext
4875 cat >>conftest.$ac_ext <<_ACEOF
4876 /* end confdefs.h. */
4877 #include <stdio.h>
4878 #ifdef SEEK_SET
4880 #endif
4882 _ACEOF
4883 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4884 $EGREP "yes" >/dev/null 2>&1; then
4886 { echo "$as_me:$LINENO: result: yes" >&5
4887 echo "${ECHO_T}yes" >&6; }
4890 else
4892 { echo "$as_me:$LINENO: result: no" >&5
4893 echo "${ECHO_T}no" >&6; }
4895 { echo "$as_me:$LINENO: checking if SEEK_SET is defined in unistd.h" >&5
4896 echo $ECHO_N "checking if SEEK_SET is defined in unistd.h... $ECHO_C" >&6; }
4897 cat >conftest.$ac_ext <<_ACEOF
4898 /* confdefs.h. */
4899 _ACEOF
4900 cat confdefs.h >>conftest.$ac_ext
4901 cat >>conftest.$ac_ext <<_ACEOF
4902 /* end confdefs.h. */
4903 #include <unistd.h>
4904 #ifdef SEEK_SET
4906 #endif
4908 _ACEOF
4909 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4910 $EGREP "yes" >/dev/null 2>&1; then
4912 { echo "$as_me:$LINENO: result: yes" >&5
4913 echo "${ECHO_T}yes" >&6; }
4916 else
4918 { echo "$as_me:$LINENO: result: no" >&5
4919 echo "${ECHO_T}no" >&6; }
4920 cat >>confdefs.h <<\_ACEOF
4921 #define SEEK_SET 0
4922 _ACEOF
4926 rm -f conftest*
4930 rm -f conftest*
4935 for ac_func in mkstemp
4937 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4938 { echo "$as_me:$LINENO: checking for $ac_func" >&5
4939 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
4940 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
4941 echo $ECHO_N "(cached) $ECHO_C" >&6
4942 else
4943 cat >conftest.$ac_ext <<_ACEOF
4944 /* confdefs.h. */
4945 _ACEOF
4946 cat confdefs.h >>conftest.$ac_ext
4947 cat >>conftest.$ac_ext <<_ACEOF
4948 /* end confdefs.h. */
4949 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4950 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4951 #define $ac_func innocuous_$ac_func
4953 /* System header to define __stub macros and hopefully few prototypes,
4954 which can conflict with char $ac_func (); below.
4955 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4956 <limits.h> exists even on freestanding compilers. */
4958 #ifdef __STDC__
4959 # include <limits.h>
4960 #else
4961 # include <assert.h>
4962 #endif
4964 #undef $ac_func
4966 /* Override any GCC internal prototype to avoid an error.
4967 Use char because int might match the return type of a GCC
4968 builtin and then its argument prototype would still apply. */
4969 #ifdef __cplusplus
4970 extern "C"
4971 #endif
4972 char $ac_func ();
4973 /* The GNU C library defines this for functions which it implements
4974 to always fail with ENOSYS. Some functions are actually named
4975 something starting with __ and the normal name is an alias. */
4976 #if defined __stub_$ac_func || defined __stub___$ac_func
4977 choke me
4978 #endif
4981 main ()
4983 return $ac_func ();
4985 return 0;
4987 _ACEOF
4988 rm -f conftest.$ac_objext conftest$ac_exeext
4989 if { (ac_try="$ac_link"
4990 case "(($ac_try" in
4991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4992 *) ac_try_echo=$ac_try;;
4993 esac
4994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4995 (eval "$ac_link") 2>conftest.er1
4996 ac_status=$?
4997 grep -v '^ *+' conftest.er1 >conftest.err
4998 rm -f conftest.er1
4999 cat conftest.err >&5
5000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5001 (exit $ac_status); } && {
5002 test -z "$ac_c_werror_flag" ||
5003 test ! -s conftest.err
5004 } && test -s conftest$ac_exeext &&
5005 $as_test_x conftest$ac_exeext; then
5006 eval "$as_ac_var=yes"
5007 else
5008 echo "$as_me: failed program was:" >&5
5009 sed 's/^/| /' conftest.$ac_ext >&5
5011 eval "$as_ac_var=no"
5014 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5015 conftest$ac_exeext conftest.$ac_ext
5017 ac_res=`eval echo '${'$as_ac_var'}'`
5018 { echo "$as_me:$LINENO: result: $ac_res" >&5
5019 echo "${ECHO_T}$ac_res" >&6; }
5020 if test `eval echo '${'$as_ac_var'}'` = yes; then
5021 cat >>confdefs.h <<_ACEOF
5022 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5023 _ACEOF
5024 have_mkstemp=yes
5026 done
5028 if test "$have_mkstemp" != yes ; then
5030 for ac_func in tempnam
5032 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5033 { echo "$as_me:$LINENO: checking for $ac_func" >&5
5034 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5035 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5036 echo $ECHO_N "(cached) $ECHO_C" >&6
5037 else
5038 cat >conftest.$ac_ext <<_ACEOF
5039 /* confdefs.h. */
5040 _ACEOF
5041 cat confdefs.h >>conftest.$ac_ext
5042 cat >>conftest.$ac_ext <<_ACEOF
5043 /* end confdefs.h. */
5044 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5045 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5046 #define $ac_func innocuous_$ac_func
5048 /* System header to define __stub macros and hopefully few prototypes,
5049 which can conflict with char $ac_func (); below.
5050 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5051 <limits.h> exists even on freestanding compilers. */
5053 #ifdef __STDC__
5054 # include <limits.h>
5055 #else
5056 # include <assert.h>
5057 #endif
5059 #undef $ac_func
5061 /* Override any GCC internal prototype to avoid an error.
5062 Use char because int might match the return type of a GCC
5063 builtin and then its argument prototype would still apply. */
5064 #ifdef __cplusplus
5065 extern "C"
5066 #endif
5067 char $ac_func ();
5068 /* The GNU C library defines this for functions which it implements
5069 to always fail with ENOSYS. Some functions are actually named
5070 something starting with __ and the normal name is an alias. */
5071 #if defined __stub_$ac_func || defined __stub___$ac_func
5072 choke me
5073 #endif
5076 main ()
5078 return $ac_func ();
5080 return 0;
5082 _ACEOF
5083 rm -f conftest.$ac_objext conftest$ac_exeext
5084 if { (ac_try="$ac_link"
5085 case "(($ac_try" in
5086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5087 *) ac_try_echo=$ac_try;;
5088 esac
5089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5090 (eval "$ac_link") 2>conftest.er1
5091 ac_status=$?
5092 grep -v '^ *+' conftest.er1 >conftest.err
5093 rm -f conftest.er1
5094 cat conftest.err >&5
5095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5096 (exit $ac_status); } && {
5097 test -z "$ac_c_werror_flag" ||
5098 test ! -s conftest.err
5099 } && test -s conftest$ac_exeext &&
5100 $as_test_x conftest$ac_exeext; then
5101 eval "$as_ac_var=yes"
5102 else
5103 echo "$as_me: failed program was:" >&5
5104 sed 's/^/| /' conftest.$ac_ext >&5
5106 eval "$as_ac_var=no"
5109 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5110 conftest$ac_exeext conftest.$ac_ext
5112 ac_res=`eval echo '${'$as_ac_var'}'`
5113 { echo "$as_me:$LINENO: result: $ac_res" >&5
5114 echo "${ECHO_T}$ac_res" >&6; }
5115 if test `eval echo '${'$as_ac_var'}'` = yes; then
5116 cat >>confdefs.h <<_ACEOF
5117 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5118 _ACEOF
5119 have_tempnam=yes
5121 done
5124 if test "$have_mkstemp" != yes -a "$have_tempnam" != yes; then
5126 for ac_func in chmod
5128 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5129 { echo "$as_me:$LINENO: checking for $ac_func" >&5
5130 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5131 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5132 echo $ECHO_N "(cached) $ECHO_C" >&6
5133 else
5134 cat >conftest.$ac_ext <<_ACEOF
5135 /* confdefs.h. */
5136 _ACEOF
5137 cat confdefs.h >>conftest.$ac_ext
5138 cat >>conftest.$ac_ext <<_ACEOF
5139 /* end confdefs.h. */
5140 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5141 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5142 #define $ac_func innocuous_$ac_func
5144 /* System header to define __stub macros and hopefully few prototypes,
5145 which can conflict with char $ac_func (); below.
5146 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5147 <limits.h> exists even on freestanding compilers. */
5149 #ifdef __STDC__
5150 # include <limits.h>
5151 #else
5152 # include <assert.h>
5153 #endif
5155 #undef $ac_func
5157 /* Override any GCC internal prototype to avoid an error.
5158 Use char because int might match the return type of a GCC
5159 builtin and then its argument prototype would still apply. */
5160 #ifdef __cplusplus
5161 extern "C"
5162 #endif
5163 char $ac_func ();
5164 /* The GNU C library defines this for functions which it implements
5165 to always fail with ENOSYS. Some functions are actually named
5166 something starting with __ and the normal name is an alias. */
5167 #if defined __stub_$ac_func || defined __stub___$ac_func
5168 choke me
5169 #endif
5172 main ()
5174 return $ac_func ();
5176 return 0;
5178 _ACEOF
5179 rm -f conftest.$ac_objext conftest$ac_exeext
5180 if { (ac_try="$ac_link"
5181 case "(($ac_try" in
5182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5183 *) ac_try_echo=$ac_try;;
5184 esac
5185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5186 (eval "$ac_link") 2>conftest.er1
5187 ac_status=$?
5188 grep -v '^ *+' conftest.er1 >conftest.err
5189 rm -f conftest.er1
5190 cat conftest.err >&5
5191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5192 (exit $ac_status); } && {
5193 test -z "$ac_c_werror_flag" ||
5194 test ! -s conftest.err
5195 } && test -s conftest$ac_exeext &&
5196 $as_test_x conftest$ac_exeext; then
5197 eval "$as_ac_var=yes"
5198 else
5199 echo "$as_me: failed program was:" >&5
5200 sed 's/^/| /' conftest.$ac_ext >&5
5202 eval "$as_ac_var=no"
5205 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5206 conftest$ac_exeext conftest.$ac_ext
5208 ac_res=`eval echo '${'$as_ac_var'}'`
5209 { echo "$as_me:$LINENO: result: $ac_res" >&5
5210 echo "${ECHO_T}$ac_res" >&6; }
5211 if test `eval echo '${'$as_ac_var'}'` = yes; then
5212 cat >>confdefs.h <<_ACEOF
5213 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5214 _ACEOF
5217 done
5219 if test "$tmpdir_specified" = yes ; then
5220 { echo "$as_me:$LINENO: result: use of tmpnam overrides temporary directory selection" >&5
5221 echo "${ECHO_T}use of tmpnam overrides temporary directory selection" >&6; }
5228 for ac_func in opendir findfirst _findfirst
5230 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5231 { echo "$as_me:$LINENO: checking for $ac_func" >&5
5232 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5233 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5234 echo $ECHO_N "(cached) $ECHO_C" >&6
5235 else
5236 cat >conftest.$ac_ext <<_ACEOF
5237 /* confdefs.h. */
5238 _ACEOF
5239 cat confdefs.h >>conftest.$ac_ext
5240 cat >>conftest.$ac_ext <<_ACEOF
5241 /* end confdefs.h. */
5242 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5243 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5244 #define $ac_func innocuous_$ac_func
5246 /* System header to define __stub macros and hopefully few prototypes,
5247 which can conflict with char $ac_func (); below.
5248 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5249 <limits.h> exists even on freestanding compilers. */
5251 #ifdef __STDC__
5252 # include <limits.h>
5253 #else
5254 # include <assert.h>
5255 #endif
5257 #undef $ac_func
5259 /* Override any GCC internal prototype to avoid an error.
5260 Use char because int might match the return type of a GCC
5261 builtin and then its argument prototype would still apply. */
5262 #ifdef __cplusplus
5263 extern "C"
5264 #endif
5265 char $ac_func ();
5266 /* The GNU C library defines this for functions which it implements
5267 to always fail with ENOSYS. Some functions are actually named
5268 something starting with __ and the normal name is an alias. */
5269 #if defined __stub_$ac_func || defined __stub___$ac_func
5270 choke me
5271 #endif
5274 main ()
5276 return $ac_func ();
5278 return 0;
5280 _ACEOF
5281 rm -f conftest.$ac_objext conftest$ac_exeext
5282 if { (ac_try="$ac_link"
5283 case "(($ac_try" in
5284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5285 *) ac_try_echo=$ac_try;;
5286 esac
5287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5288 (eval "$ac_link") 2>conftest.er1
5289 ac_status=$?
5290 grep -v '^ *+' conftest.er1 >conftest.err
5291 rm -f conftest.er1
5292 cat conftest.err >&5
5293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5294 (exit $ac_status); } && {
5295 test -z "$ac_c_werror_flag" ||
5296 test ! -s conftest.err
5297 } && test -s conftest$ac_exeext &&
5298 $as_test_x conftest$ac_exeext; then
5299 eval "$as_ac_var=yes"
5300 else
5301 echo "$as_me: failed program was:" >&5
5302 sed 's/^/| /' conftest.$ac_ext >&5
5304 eval "$as_ac_var=no"
5307 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5308 conftest$ac_exeext conftest.$ac_ext
5310 ac_res=`eval echo '${'$as_ac_var'}'`
5311 { echo "$as_me:$LINENO: result: $ac_res" >&5
5312 echo "${ECHO_T}$ac_res" >&6; }
5313 if test `eval echo '${'$as_ac_var'}'` = yes; then
5314 cat >>confdefs.h <<_ACEOF
5315 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5316 _ACEOF
5317 break
5319 done
5322 for ac_func in strerror
5324 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5325 { echo "$as_me:$LINENO: checking for $ac_func" >&5
5326 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5327 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5328 echo $ECHO_N "(cached) $ECHO_C" >&6
5329 else
5330 cat >conftest.$ac_ext <<_ACEOF
5331 /* confdefs.h. */
5332 _ACEOF
5333 cat confdefs.h >>conftest.$ac_ext
5334 cat >>conftest.$ac_ext <<_ACEOF
5335 /* end confdefs.h. */
5336 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5337 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5338 #define $ac_func innocuous_$ac_func
5340 /* System header to define __stub macros and hopefully few prototypes,
5341 which can conflict with char $ac_func (); below.
5342 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5343 <limits.h> exists even on freestanding compilers. */
5345 #ifdef __STDC__
5346 # include <limits.h>
5347 #else
5348 # include <assert.h>
5349 #endif
5351 #undef $ac_func
5353 /* Override any GCC internal prototype to avoid an error.
5354 Use char because int might match the return type of a GCC
5355 builtin and then its argument prototype would still apply. */
5356 #ifdef __cplusplus
5357 extern "C"
5358 #endif
5359 char $ac_func ();
5360 /* The GNU C library defines this for functions which it implements
5361 to always fail with ENOSYS. Some functions are actually named
5362 something starting with __ and the normal name is an alias. */
5363 #if defined __stub_$ac_func || defined __stub___$ac_func
5364 choke me
5365 #endif
5368 main ()
5370 return $ac_func ();
5372 return 0;
5374 _ACEOF
5375 rm -f conftest.$ac_objext conftest$ac_exeext
5376 if { (ac_try="$ac_link"
5377 case "(($ac_try" in
5378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5379 *) ac_try_echo=$ac_try;;
5380 esac
5381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5382 (eval "$ac_link") 2>conftest.er1
5383 ac_status=$?
5384 grep -v '^ *+' conftest.er1 >conftest.err
5385 rm -f conftest.er1
5386 cat conftest.err >&5
5387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5388 (exit $ac_status); } && {
5389 test -z "$ac_c_werror_flag" ||
5390 test ! -s conftest.err
5391 } && test -s conftest$ac_exeext &&
5392 $as_test_x conftest$ac_exeext; then
5393 eval "$as_ac_var=yes"
5394 else
5395 echo "$as_me: failed program was:" >&5
5396 sed 's/^/| /' conftest.$ac_ext >&5
5398 eval "$as_ac_var=no"
5401 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5402 conftest$ac_exeext conftest.$ac_ext
5404 ac_res=`eval echo '${'$as_ac_var'}'`
5405 { echo "$as_me:$LINENO: result: $ac_res" >&5
5406 echo "${ECHO_T}$ac_res" >&6; }
5407 if test `eval echo '${'$as_ac_var'}'` = yes; then
5408 cat >>confdefs.h <<_ACEOF
5409 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5410 _ACEOF
5413 done
5417 for ac_func in clock times
5419 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5420 { echo "$as_me:$LINENO: checking for $ac_func" >&5
5421 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5422 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5423 echo $ECHO_N "(cached) $ECHO_C" >&6
5424 else
5425 cat >conftest.$ac_ext <<_ACEOF
5426 /* confdefs.h. */
5427 _ACEOF
5428 cat confdefs.h >>conftest.$ac_ext
5429 cat >>conftest.$ac_ext <<_ACEOF
5430 /* end confdefs.h. */
5431 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5432 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5433 #define $ac_func innocuous_$ac_func
5435 /* System header to define __stub macros and hopefully few prototypes,
5436 which can conflict with char $ac_func (); below.
5437 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5438 <limits.h> exists even on freestanding compilers. */
5440 #ifdef __STDC__
5441 # include <limits.h>
5442 #else
5443 # include <assert.h>
5444 #endif
5446 #undef $ac_func
5448 /* Override any GCC internal prototype to avoid an error.
5449 Use char because int might match the return type of a GCC
5450 builtin and then its argument prototype would still apply. */
5451 #ifdef __cplusplus
5452 extern "C"
5453 #endif
5454 char $ac_func ();
5455 /* The GNU C library defines this for functions which it implements
5456 to always fail with ENOSYS. Some functions are actually named
5457 something starting with __ and the normal name is an alias. */
5458 #if defined __stub_$ac_func || defined __stub___$ac_func
5459 choke me
5460 #endif
5463 main ()
5465 return $ac_func ();
5467 return 0;
5469 _ACEOF
5470 rm -f conftest.$ac_objext conftest$ac_exeext
5471 if { (ac_try="$ac_link"
5472 case "(($ac_try" in
5473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5474 *) ac_try_echo=$ac_try;;
5475 esac
5476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5477 (eval "$ac_link") 2>conftest.er1
5478 ac_status=$?
5479 grep -v '^ *+' conftest.er1 >conftest.err
5480 rm -f conftest.er1
5481 cat conftest.err >&5
5482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5483 (exit $ac_status); } && {
5484 test -z "$ac_c_werror_flag" ||
5485 test ! -s conftest.err
5486 } && test -s conftest$ac_exeext &&
5487 $as_test_x conftest$ac_exeext; then
5488 eval "$as_ac_var=yes"
5489 else
5490 echo "$as_me: failed program was:" >&5
5491 sed 's/^/| /' conftest.$ac_ext >&5
5493 eval "$as_ac_var=no"
5496 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5497 conftest$ac_exeext conftest.$ac_ext
5499 ac_res=`eval echo '${'$as_ac_var'}'`
5500 { echo "$as_me:$LINENO: result: $ac_res" >&5
5501 echo "${ECHO_T}$ac_res" >&6; }
5502 if test `eval echo '${'$as_ac_var'}'` = yes; then
5503 cat >>confdefs.h <<_ACEOF
5504 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5505 _ACEOF
5506 break
5508 done
5511 for ac_func in remove
5513 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5514 { echo "$as_me:$LINENO: checking for $ac_func" >&5
5515 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5516 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5517 echo $ECHO_N "(cached) $ECHO_C" >&6
5518 else
5519 cat >conftest.$ac_ext <<_ACEOF
5520 /* confdefs.h. */
5521 _ACEOF
5522 cat confdefs.h >>conftest.$ac_ext
5523 cat >>conftest.$ac_ext <<_ACEOF
5524 /* end confdefs.h. */
5525 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5526 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5527 #define $ac_func innocuous_$ac_func
5529 /* System header to define __stub macros and hopefully few prototypes,
5530 which can conflict with char $ac_func (); below.
5531 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5532 <limits.h> exists even on freestanding compilers. */
5534 #ifdef __STDC__
5535 # include <limits.h>
5536 #else
5537 # include <assert.h>
5538 #endif
5540 #undef $ac_func
5542 /* Override any GCC internal prototype to avoid an error.
5543 Use char because int might match the return type of a GCC
5544 builtin and then its argument prototype would still apply. */
5545 #ifdef __cplusplus
5546 extern "C"
5547 #endif
5548 char $ac_func ();
5549 /* The GNU C library defines this for functions which it implements
5550 to always fail with ENOSYS. Some functions are actually named
5551 something starting with __ and the normal name is an alias. */
5552 #if defined __stub_$ac_func || defined __stub___$ac_func
5553 choke me
5554 #endif
5557 main ()
5559 return $ac_func ();
5561 return 0;
5563 _ACEOF
5564 rm -f conftest.$ac_objext conftest$ac_exeext
5565 if { (ac_try="$ac_link"
5566 case "(($ac_try" in
5567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5568 *) ac_try_echo=$ac_try;;
5569 esac
5570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5571 (eval "$ac_link") 2>conftest.er1
5572 ac_status=$?
5573 grep -v '^ *+' conftest.er1 >conftest.err
5574 rm -f conftest.er1
5575 cat conftest.err >&5
5576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5577 (exit $ac_status); } && {
5578 test -z "$ac_c_werror_flag" ||
5579 test ! -s conftest.err
5580 } && test -s conftest$ac_exeext &&
5581 $as_test_x conftest$ac_exeext; then
5582 eval "$as_ac_var=yes"
5583 else
5584 echo "$as_me: failed program was:" >&5
5585 sed 's/^/| /' conftest.$ac_ext >&5
5587 eval "$as_ac_var=no"
5590 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5591 conftest$ac_exeext conftest.$ac_ext
5593 ac_res=`eval echo '${'$as_ac_var'}'`
5594 { echo "$as_me:$LINENO: result: $ac_res" >&5
5595 echo "${ECHO_T}$ac_res" >&6; }
5596 if test `eval echo '${'$as_ac_var'}'` = yes; then
5597 cat >>confdefs.h <<_ACEOF
5598 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5599 _ACEOF
5600 have_remove=yes
5601 else
5603 { echo "$as_me:$LINENO: checking if remove is defined in unistd.h" >&5
5604 echo $ECHO_N "checking if remove is defined in unistd.h... $ECHO_C" >&6; }
5605 cat >conftest.$ac_ext <<_ACEOF
5606 /* confdefs.h. */
5607 _ACEOF
5608 cat confdefs.h >>conftest.$ac_ext
5609 cat >>conftest.$ac_ext <<_ACEOF
5610 /* end confdefs.h. */
5611 #include <unistd.h>
5612 #ifdef remove
5614 #endif
5616 _ACEOF
5617 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5618 $EGREP "yes" >/dev/null 2>&1; then
5620 { echo "$as_me:$LINENO: result: yes" >&5
5621 echo "${ECHO_T}yes" >&6; }
5624 else
5626 { echo "$as_me:$LINENO: result: no" >&5
5627 echo "${ECHO_T}no" >&6; }
5628 cat >>confdefs.h <<\_ACEOF
5629 #define remove unlink
5630 _ACEOF
5634 rm -f conftest*
5637 done
5641 for ac_func in truncate
5643 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5644 { echo "$as_me:$LINENO: checking for $ac_func" >&5
5645 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5646 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5647 echo $ECHO_N "(cached) $ECHO_C" >&6
5648 else
5649 cat >conftest.$ac_ext <<_ACEOF
5650 /* confdefs.h. */
5651 _ACEOF
5652 cat confdefs.h >>conftest.$ac_ext
5653 cat >>conftest.$ac_ext <<_ACEOF
5654 /* end confdefs.h. */
5655 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5656 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5657 #define $ac_func innocuous_$ac_func
5659 /* System header to define __stub macros and hopefully few prototypes,
5660 which can conflict with char $ac_func (); below.
5661 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5662 <limits.h> exists even on freestanding compilers. */
5664 #ifdef __STDC__
5665 # include <limits.h>
5666 #else
5667 # include <assert.h>
5668 #endif
5670 #undef $ac_func
5672 /* Override any GCC internal prototype to avoid an error.
5673 Use char because int might match the return type of a GCC
5674 builtin and then its argument prototype would still apply. */
5675 #ifdef __cplusplus
5676 extern "C"
5677 #endif
5678 char $ac_func ();
5679 /* The GNU C library defines this for functions which it implements
5680 to always fail with ENOSYS. Some functions are actually named
5681 something starting with __ and the normal name is an alias. */
5682 #if defined __stub_$ac_func || defined __stub___$ac_func
5683 choke me
5684 #endif
5687 main ()
5689 return $ac_func ();
5691 return 0;
5693 _ACEOF
5694 rm -f conftest.$ac_objext conftest$ac_exeext
5695 if { (ac_try="$ac_link"
5696 case "(($ac_try" in
5697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5698 *) ac_try_echo=$ac_try;;
5699 esac
5700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5701 (eval "$ac_link") 2>conftest.er1
5702 ac_status=$?
5703 grep -v '^ *+' conftest.er1 >conftest.err
5704 rm -f conftest.er1
5705 cat conftest.err >&5
5706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5707 (exit $ac_status); } && {
5708 test -z "$ac_c_werror_flag" ||
5709 test ! -s conftest.err
5710 } && test -s conftest$ac_exeext &&
5711 $as_test_x conftest$ac_exeext; then
5712 eval "$as_ac_var=yes"
5713 else
5714 echo "$as_me: failed program was:" >&5
5715 sed 's/^/| /' conftest.$ac_ext >&5
5717 eval "$as_ac_var=no"
5720 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5721 conftest$ac_exeext conftest.$ac_ext
5723 ac_res=`eval echo '${'$as_ac_var'}'`
5724 { echo "$as_me:$LINENO: result: $ac_res" >&5
5725 echo "${ECHO_T}$ac_res" >&6; }
5726 if test `eval echo '${'$as_ac_var'}'` = yes; then
5727 cat >>confdefs.h <<_ACEOF
5728 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5729 _ACEOF
5730 have_truncate=yes
5732 done
5734 # === Cannot nest AC_CHECK_FUNCS() calls
5735 if test "$have_truncate" != yes ; then
5737 for ac_func in ftruncate
5739 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5740 { echo "$as_me:$LINENO: checking for $ac_func" >&5
5741 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5742 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5743 echo $ECHO_N "(cached) $ECHO_C" >&6
5744 else
5745 cat >conftest.$ac_ext <<_ACEOF
5746 /* confdefs.h. */
5747 _ACEOF
5748 cat confdefs.h >>conftest.$ac_ext
5749 cat >>conftest.$ac_ext <<_ACEOF
5750 /* end confdefs.h. */
5751 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5752 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5753 #define $ac_func innocuous_$ac_func
5755 /* System header to define __stub macros and hopefully few prototypes,
5756 which can conflict with char $ac_func (); below.
5757 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5758 <limits.h> exists even on freestanding compilers. */
5760 #ifdef __STDC__
5761 # include <limits.h>
5762 #else
5763 # include <assert.h>
5764 #endif
5766 #undef $ac_func
5768 /* Override any GCC internal prototype to avoid an error.
5769 Use char because int might match the return type of a GCC
5770 builtin and then its argument prototype would still apply. */
5771 #ifdef __cplusplus
5772 extern "C"
5773 #endif
5774 char $ac_func ();
5775 /* The GNU C library defines this for functions which it implements
5776 to always fail with ENOSYS. Some functions are actually named
5777 something starting with __ and the normal name is an alias. */
5778 #if defined __stub_$ac_func || defined __stub___$ac_func
5779 choke me
5780 #endif
5783 main ()
5785 return $ac_func ();
5787 return 0;
5789 _ACEOF
5790 rm -f conftest.$ac_objext conftest$ac_exeext
5791 if { (ac_try="$ac_link"
5792 case "(($ac_try" in
5793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5794 *) ac_try_echo=$ac_try;;
5795 esac
5796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5797 (eval "$ac_link") 2>conftest.er1
5798 ac_status=$?
5799 grep -v '^ *+' conftest.er1 >conftest.err
5800 rm -f conftest.er1
5801 cat conftest.err >&5
5802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5803 (exit $ac_status); } && {
5804 test -z "$ac_c_werror_flag" ||
5805 test ! -s conftest.err
5806 } && test -s conftest$ac_exeext &&
5807 $as_test_x conftest$ac_exeext; then
5808 eval "$as_ac_var=yes"
5809 else
5810 echo "$as_me: failed program was:" >&5
5811 sed 's/^/| /' conftest.$ac_ext >&5
5813 eval "$as_ac_var=no"
5816 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5817 conftest$ac_exeext conftest.$ac_ext
5819 ac_res=`eval echo '${'$as_ac_var'}'`
5820 { echo "$as_me:$LINENO: result: $ac_res" >&5
5821 echo "${ECHO_T}$ac_res" >&6; }
5822 if test `eval echo '${'$as_ac_var'}'` = yes; then
5823 cat >>confdefs.h <<_ACEOF
5824 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5825 _ACEOF
5826 have_ftruncate=yes
5828 done
5830 if test "$have_ftruncate" != yes ; then
5832 for ac_func in chsize
5834 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5835 { echo "$as_me:$LINENO: checking for $ac_func" >&5
5836 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5837 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5838 echo $ECHO_N "(cached) $ECHO_C" >&6
5839 else
5840 cat >conftest.$ac_ext <<_ACEOF
5841 /* confdefs.h. */
5842 _ACEOF
5843 cat confdefs.h >>conftest.$ac_ext
5844 cat >>conftest.$ac_ext <<_ACEOF
5845 /* end confdefs.h. */
5846 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5847 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5848 #define $ac_func innocuous_$ac_func
5850 /* System header to define __stub macros and hopefully few prototypes,
5851 which can conflict with char $ac_func (); below.
5852 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5853 <limits.h> exists even on freestanding compilers. */
5855 #ifdef __STDC__
5856 # include <limits.h>
5857 #else
5858 # include <assert.h>
5859 #endif
5861 #undef $ac_func
5863 /* Override any GCC internal prototype to avoid an error.
5864 Use char because int might match the return type of a GCC
5865 builtin and then its argument prototype would still apply. */
5866 #ifdef __cplusplus
5867 extern "C"
5868 #endif
5869 char $ac_func ();
5870 /* The GNU C library defines this for functions which it implements
5871 to always fail with ENOSYS. Some functions are actually named
5872 something starting with __ and the normal name is an alias. */
5873 #if defined __stub_$ac_func || defined __stub___$ac_func
5874 choke me
5875 #endif
5878 main ()
5880 return $ac_func ();
5882 return 0;
5884 _ACEOF
5885 rm -f conftest.$ac_objext conftest$ac_exeext
5886 if { (ac_try="$ac_link"
5887 case "(($ac_try" in
5888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5889 *) ac_try_echo=$ac_try;;
5890 esac
5891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5892 (eval "$ac_link") 2>conftest.er1
5893 ac_status=$?
5894 grep -v '^ *+' conftest.er1 >conftest.err
5895 rm -f conftest.er1
5896 cat conftest.err >&5
5897 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_exeext &&
5902 $as_test_x conftest$ac_exeext; then
5903 eval "$as_ac_var=yes"
5904 else
5905 echo "$as_me: failed program was:" >&5
5906 sed 's/^/| /' conftest.$ac_ext >&5
5908 eval "$as_ac_var=no"
5911 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5912 conftest$ac_exeext conftest.$ac_ext
5914 ac_res=`eval echo '${'$as_ac_var'}'`
5915 { echo "$as_me:$LINENO: result: $ac_res" >&5
5916 echo "${ECHO_T}$ac_res" >&6; }
5917 if test `eval echo '${'$as_ac_var'}'` = yes; then
5918 cat >>confdefs.h <<_ACEOF
5919 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5920 _ACEOF
5923 done
5929 for ac_func in setenv
5931 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5932 { echo "$as_me:$LINENO: checking for $ac_func" >&5
5933 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5934 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5935 echo $ECHO_N "(cached) $ECHO_C" >&6
5936 else
5937 cat >conftest.$ac_ext <<_ACEOF
5938 /* confdefs.h. */
5939 _ACEOF
5940 cat confdefs.h >>conftest.$ac_ext
5941 cat >>conftest.$ac_ext <<_ACEOF
5942 /* end confdefs.h. */
5943 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5944 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5945 #define $ac_func innocuous_$ac_func
5947 /* System header to define __stub macros and hopefully few prototypes,
5948 which can conflict with char $ac_func (); below.
5949 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5950 <limits.h> exists even on freestanding compilers. */
5952 #ifdef __STDC__
5953 # include <limits.h>
5954 #else
5955 # include <assert.h>
5956 #endif
5958 #undef $ac_func
5960 /* Override any GCC internal prototype to avoid an error.
5961 Use char because int might match the return type of a GCC
5962 builtin and then its argument prototype would still apply. */
5963 #ifdef __cplusplus
5964 extern "C"
5965 #endif
5966 char $ac_func ();
5967 /* The GNU C library defines this for functions which it implements
5968 to always fail with ENOSYS. Some functions are actually named
5969 something starting with __ and the normal name is an alias. */
5970 #if defined __stub_$ac_func || defined __stub___$ac_func
5971 choke me
5972 #endif
5975 main ()
5977 return $ac_func ();
5979 return 0;
5981 _ACEOF
5982 rm -f conftest.$ac_objext conftest$ac_exeext
5983 if { (ac_try="$ac_link"
5984 case "(($ac_try" in
5985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5986 *) ac_try_echo=$ac_try;;
5987 esac
5988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5989 (eval "$ac_link") 2>conftest.er1
5990 ac_status=$?
5991 grep -v '^ *+' conftest.er1 >conftest.err
5992 rm -f conftest.er1
5993 cat conftest.err >&5
5994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5995 (exit $ac_status); } && {
5996 test -z "$ac_c_werror_flag" ||
5997 test ! -s conftest.err
5998 } && test -s conftest$ac_exeext &&
5999 $as_test_x conftest$ac_exeext; then
6000 eval "$as_ac_var=yes"
6001 else
6002 echo "$as_me: failed program was:" >&5
6003 sed 's/^/| /' conftest.$ac_ext >&5
6005 eval "$as_ac_var=no"
6008 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6009 conftest$ac_exeext conftest.$ac_ext
6011 ac_res=`eval echo '${'$as_ac_var'}'`
6012 { echo "$as_me:$LINENO: result: $ac_res" >&5
6013 echo "${ECHO_T}$ac_res" >&6; }
6014 if test `eval echo '${'$as_ac_var'}'` = yes; then
6015 cat >>confdefs.h <<_ACEOF
6016 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6017 _ACEOF
6018 have_setenv=yes
6020 done
6022 # === Cannot nest AC_CHECK_FUNCS() calls
6023 if test "$have_setenv" != yes ; then
6025 for ac_func in putenv
6027 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6028 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6029 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6030 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6031 echo $ECHO_N "(cached) $ECHO_C" >&6
6032 else
6033 cat >conftest.$ac_ext <<_ACEOF
6034 /* confdefs.h. */
6035 _ACEOF
6036 cat confdefs.h >>conftest.$ac_ext
6037 cat >>conftest.$ac_ext <<_ACEOF
6038 /* end confdefs.h. */
6039 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6040 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6041 #define $ac_func innocuous_$ac_func
6043 /* System header to define __stub macros and hopefully few prototypes,
6044 which can conflict with char $ac_func (); below.
6045 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6046 <limits.h> exists even on freestanding compilers. */
6048 #ifdef __STDC__
6049 # include <limits.h>
6050 #else
6051 # include <assert.h>
6052 #endif
6054 #undef $ac_func
6056 /* Override any GCC internal prototype to avoid an error.
6057 Use char because int might match the return type of a GCC
6058 builtin and then its argument prototype would still apply. */
6059 #ifdef __cplusplus
6060 extern "C"
6061 #endif
6062 char $ac_func ();
6063 /* The GNU C library defines this for functions which it implements
6064 to always fail with ENOSYS. Some functions are actually named
6065 something starting with __ and the normal name is an alias. */
6066 #if defined __stub_$ac_func || defined __stub___$ac_func
6067 choke me
6068 #endif
6071 main ()
6073 return $ac_func ();
6075 return 0;
6077 _ACEOF
6078 rm -f conftest.$ac_objext conftest$ac_exeext
6079 if { (ac_try="$ac_link"
6080 case "(($ac_try" in
6081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6082 *) ac_try_echo=$ac_try;;
6083 esac
6084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6085 (eval "$ac_link") 2>conftest.er1
6086 ac_status=$?
6087 grep -v '^ *+' conftest.er1 >conftest.err
6088 rm -f conftest.er1
6089 cat conftest.err >&5
6090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6091 (exit $ac_status); } && {
6092 test -z "$ac_c_werror_flag" ||
6093 test ! -s conftest.err
6094 } && test -s conftest$ac_exeext &&
6095 $as_test_x conftest$ac_exeext; then
6096 eval "$as_ac_var=yes"
6097 else
6098 echo "$as_me: failed program was:" >&5
6099 sed 's/^/| /' conftest.$ac_ext >&5
6101 eval "$as_ac_var=no"
6104 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6105 conftest$ac_exeext conftest.$ac_ext
6107 ac_res=`eval echo '${'$as_ac_var'}'`
6108 { echo "$as_me:$LINENO: result: $ac_res" >&5
6109 echo "${ECHO_T}$ac_res" >&6; }
6110 if test `eval echo '${'$as_ac_var'}'` = yes; then
6111 cat >>confdefs.h <<_ACEOF
6112 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6113 _ACEOF
6114 have_putenv=yes
6116 done
6118 if test "$have_putenv" = yes ; then
6119 cat >conftest.$ac_ext <<_ACEOF
6120 /* confdefs.h. */
6121 _ACEOF
6122 cat confdefs.h >>conftest.$ac_ext
6123 cat >>conftest.$ac_ext <<_ACEOF
6124 /* end confdefs.h. */
6125 #include <stdlib.h>
6127 _ACEOF
6128 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6129 $EGREP "putenv" >/dev/null 2>&1; then
6130 have_putenv_prototype=yes
6132 rm -f conftest*
6134 if test "$have_putenv_prototype" = yes ; then
6135 { echo "$as_me:$LINENO: checking putenv prototype" >&5
6136 echo $ECHO_N "checking putenv prototype... $ECHO_C" >&6; }
6137 cat >conftest.$ac_ext <<_ACEOF
6138 /* confdefs.h. */
6139 _ACEOF
6140 cat confdefs.h >>conftest.$ac_ext
6141 cat >>conftest.$ac_ext <<_ACEOF
6142 /* end confdefs.h. */
6143 #include <stdlib.h>
6145 _ACEOF
6146 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6147 $EGREP "[^A-Za-zo-9_]putenv[ ]*\(.*const.*\)[ ]*;" >/dev/null 2>&1; then
6148 { echo "$as_me:$LINENO: result: correct" >&5
6149 echo "${ECHO_T}correct" >&6; }
6150 else
6152 { echo "$as_me:$LINENO: result: no const" >&5
6153 echo "${ECHO_T}no const" >&6; }
6154 cat >>confdefs.h <<\_ACEOF
6155 #define NON_CONST_PUTENV_PROTOTYPE 1
6156 _ACEOF
6160 rm -f conftest*
6167 # if test yes = "$CYGWIN"; then with_posix_regex=no; fi
6168 if test no != "$with_posix_regex"; then
6170 for ac_func in regcomp
6172 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6173 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6174 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6175 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6176 echo $ECHO_N "(cached) $ECHO_C" >&6
6177 else
6178 cat >conftest.$ac_ext <<_ACEOF
6179 /* confdefs.h. */
6180 _ACEOF
6181 cat confdefs.h >>conftest.$ac_ext
6182 cat >>conftest.$ac_ext <<_ACEOF
6183 /* end confdefs.h. */
6184 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6185 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6186 #define $ac_func innocuous_$ac_func
6188 /* System header to define __stub macros and hopefully few prototypes,
6189 which can conflict with char $ac_func (); below.
6190 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6191 <limits.h> exists even on freestanding compilers. */
6193 #ifdef __STDC__
6194 # include <limits.h>
6195 #else
6196 # include <assert.h>
6197 #endif
6199 #undef $ac_func
6201 /* Override any GCC internal prototype to avoid an error.
6202 Use char because int might match the return type of a GCC
6203 builtin and then its argument prototype would still apply. */
6204 #ifdef __cplusplus
6205 extern "C"
6206 #endif
6207 char $ac_func ();
6208 /* The GNU C library defines this for functions which it implements
6209 to always fail with ENOSYS. Some functions are actually named
6210 something starting with __ and the normal name is an alias. */
6211 #if defined __stub_$ac_func || defined __stub___$ac_func
6212 choke me
6213 #endif
6216 main ()
6218 return $ac_func ();
6220 return 0;
6222 _ACEOF
6223 rm -f conftest.$ac_objext conftest$ac_exeext
6224 if { (ac_try="$ac_link"
6225 case "(($ac_try" in
6226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6227 *) ac_try_echo=$ac_try;;
6228 esac
6229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6230 (eval "$ac_link") 2>conftest.er1
6231 ac_status=$?
6232 grep -v '^ *+' conftest.er1 >conftest.err
6233 rm -f conftest.er1
6234 cat conftest.err >&5
6235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6236 (exit $ac_status); } && {
6237 test -z "$ac_c_werror_flag" ||
6238 test ! -s conftest.err
6239 } && test -s conftest$ac_exeext &&
6240 $as_test_x conftest$ac_exeext; then
6241 eval "$as_ac_var=yes"
6242 else
6243 echo "$as_me: failed program was:" >&5
6244 sed 's/^/| /' conftest.$ac_ext >&5
6246 eval "$as_ac_var=no"
6249 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6250 conftest$ac_exeext conftest.$ac_ext
6252 ac_res=`eval echo '${'$as_ac_var'}'`
6253 { echo "$as_me:$LINENO: result: $ac_res" >&5
6254 echo "${ECHO_T}$ac_res" >&6; }
6255 if test `eval echo '${'$as_ac_var'}'` = yes; then
6256 cat >>confdefs.h <<_ACEOF
6257 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6258 _ACEOF
6261 done
6263 { echo "$as_me:$LINENO: checking if regcomp works" >&5
6264 echo $ECHO_N "checking if regcomp works... $ECHO_C" >&6; }
6265 if test "$cross_compiling" = yes; then
6266 cat >>confdefs.h <<\_ACEOF
6267 #define CHECK_REGCOMP 1
6268 _ACEOF
6270 else
6271 cat >conftest.$ac_ext <<_ACEOF
6272 /* confdefs.h. */
6273 _ACEOF
6274 cat confdefs.h >>conftest.$ac_ext
6275 cat >>conftest.$ac_ext <<_ACEOF
6276 /* end confdefs.h. */
6278 #include <sys/types.h>
6279 #include <regex.h>
6280 main() {
6281 regex_t patbuf;
6282 exit (regcomp (&patbuf, "/hello/", 0) != 0);
6284 _ACEOF
6285 rm -f conftest$ac_exeext
6286 if { (ac_try="$ac_link"
6287 case "(($ac_try" in
6288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6289 *) ac_try_echo=$ac_try;;
6290 esac
6291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6292 (eval "$ac_link") 2>&5
6293 ac_status=$?
6294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6295 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6296 { (case "(($ac_try" in
6297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6298 *) ac_try_echo=$ac_try;;
6299 esac
6300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6301 (eval "$ac_try") 2>&5
6302 ac_status=$?
6303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6304 (exit $ac_status); }; }; then
6305 regcomp_works=yes
6306 else
6307 echo "$as_me: program exited with status $ac_status" >&5
6308 echo "$as_me: failed program was:" >&5
6309 sed 's/^/| /' conftest.$ac_ext >&5
6311 ( exit $ac_status )
6312 regcomp_works=no
6314 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6318 { echo "$as_me:$LINENO: result: $regcomp_works" >&5
6319 echo "${ECHO_T}$regcomp_works" >&6; }
6320 if test yes != "$regcomp_works"; then
6321 cat >>confdefs.h <<\_ACEOF
6322 #define REGCOMP_BROKEN 1
6323 _ACEOF
6328 # if test yes = "$with_perl_regex"; then
6329 # AC_MSG_CHECKING(for Perl regex library)
6330 # pcre_candidates="$with_perl_regex $HOME/local/lib* /usr*/local/lib* /usr/lib*"
6331 # for lib in $pcre_candidates; do
6332 # if test -f $lib/libpcreposix.so; then
6333 # pcre_lib="-L$lib -lpcreposix"
6334 # break
6335 # elif test -f $lib/libpcreposix.a; then
6336 # pcre_lib="$lib/libpcreposix.a"
6337 # break
6338 # fi
6339 # done
6340 # if test -z "$pcre_lib"; then
6341 # AC_MSG_RESULT(not found)
6342 # else
6343 # AC_MSG_RESULT($lib)
6344 # AC_DEFINE(HAVE_REGCOMP)
6345 # LDFLAGS="$LDFLAGS $pcre_lib"
6346 # have_regex=yes
6347 # fi
6348 # fi
6351 # Checks for missing prototypes
6352 # -----------------------------
6353 { echo "$as_me:$LINENO: checking for new missing prototypes..." >&5
6354 echo "$as_me: checking for new missing prototypes..." >&6;}
6358 if test "$have_remove" = yes ; then
6360 cat >conftest.$ac_ext <<_ACEOF
6361 /* confdefs.h. */
6362 _ACEOF
6363 cat confdefs.h >>conftest.$ac_ext
6364 cat >>conftest.$ac_ext <<_ACEOF
6365 /* end confdefs.h. */
6366 #include <stdio.h>
6368 _ACEOF
6369 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6370 $EGREP "[^A-Za-z0-9_]remove([ ]+[A-Za-z0-9_]*)?[ ]*\(" >/dev/null 2>&1; then
6372 else
6374 { echo "$as_me:$LINENO: result: adding prototype for remove" >&5
6375 echo "${ECHO_T}adding prototype for remove" >&6; }
6376 cat >>confdefs.h <<\_ACEOF
6377 #define NEED_PROTO_REMOVE 1
6378 _ACEOF
6382 rm -f conftest*
6384 else
6386 cat >conftest.$ac_ext <<_ACEOF
6387 /* confdefs.h. */
6388 _ACEOF
6389 cat confdefs.h >>conftest.$ac_ext
6390 cat >>conftest.$ac_ext <<_ACEOF
6391 /* end confdefs.h. */
6392 #include <unistd.h>
6394 _ACEOF
6395 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6396 $EGREP "[^A-Za-z0-9_]unlink([ ]+[A-Za-z0-9_]*)?[ ]*\(" >/dev/null 2>&1; then
6398 else
6400 { echo "$as_me:$LINENO: result: adding prototype for unlink" >&5
6401 echo "${ECHO_T}adding prototype for unlink" >&6; }
6402 cat >>confdefs.h <<\_ACEOF
6403 #define NEED_PROTO_UNLINK 1
6404 _ACEOF
6408 rm -f conftest*
6412 cat >conftest.$ac_ext <<_ACEOF
6413 /* confdefs.h. */
6414 _ACEOF
6415 cat confdefs.h >>conftest.$ac_ext
6416 cat >>conftest.$ac_ext <<_ACEOF
6417 /* end confdefs.h. */
6418 #include <stdlib.h>
6420 _ACEOF
6421 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6422 $EGREP "[^A-Za-z0-9_]malloc([ ]+[A-Za-z0-9_]*)?[ ]*\(" >/dev/null 2>&1; then
6424 else
6426 { echo "$as_me:$LINENO: result: adding prototype for malloc" >&5
6427 echo "${ECHO_T}adding prototype for malloc" >&6; }
6428 cat >>confdefs.h <<\_ACEOF
6429 #define NEED_PROTO_MALLOC 1
6430 _ACEOF
6434 rm -f conftest*
6437 cat >conftest.$ac_ext <<_ACEOF
6438 /* confdefs.h. */
6439 _ACEOF
6440 cat confdefs.h >>conftest.$ac_ext
6441 cat >>conftest.$ac_ext <<_ACEOF
6442 /* end confdefs.h. */
6443 #include <stdlib.h>
6445 _ACEOF
6446 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6447 $EGREP "[^A-Za-z0-9_]getenv([ ]+[A-Za-z0-9_]*)?[ ]*\(" >/dev/null 2>&1; then
6449 else
6451 { echo "$as_me:$LINENO: result: adding prototype for getenv" >&5
6452 echo "${ECHO_T}adding prototype for getenv" >&6; }
6453 cat >>confdefs.h <<\_ACEOF
6454 #define NEED_PROTO_GETENV 1
6455 _ACEOF
6459 rm -f conftest*
6462 cat >conftest.$ac_ext <<_ACEOF
6463 /* confdefs.h. */
6464 _ACEOF
6465 cat confdefs.h >>conftest.$ac_ext
6466 cat >>conftest.$ac_ext <<_ACEOF
6467 /* end confdefs.h. */
6468 #include <sys/stat.h>
6470 _ACEOF
6471 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6472 $EGREP "[^A-Za-z0-9_]stat([ ]+[A-Za-z0-9_]*)?[ ]*\(" >/dev/null 2>&1; then
6474 else
6476 { echo "$as_me:$LINENO: result: adding prototype for stat" >&5
6477 echo "${ECHO_T}adding prototype for stat" >&6; }
6478 cat >>confdefs.h <<\_ACEOF
6479 #define NEED_PROTO_STAT 1
6480 _ACEOF
6484 rm -f conftest*
6487 cat >conftest.$ac_ext <<_ACEOF
6488 /* confdefs.h. */
6489 _ACEOF
6490 cat confdefs.h >>conftest.$ac_ext
6491 cat >>conftest.$ac_ext <<_ACEOF
6492 /* end confdefs.h. */
6493 #include <sys/stat.h>
6495 _ACEOF
6496 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6497 $EGREP "[^A-Za-z0-9_]lstat([ ]+[A-Za-z0-9_]*)?[ ]*\(" >/dev/null 2>&1; then
6499 else
6501 { echo "$as_me:$LINENO: result: adding prototype for lstat" >&5
6502 echo "${ECHO_T}adding prototype for lstat" >&6; }
6503 cat >>confdefs.h <<\_ACEOF
6504 #define NEED_PROTO_LSTAT 1
6505 _ACEOF
6509 rm -f conftest*
6511 if test "$have_fgetpos" = yes ; then
6513 cat >conftest.$ac_ext <<_ACEOF
6514 /* confdefs.h. */
6515 _ACEOF
6516 cat confdefs.h >>conftest.$ac_ext
6517 cat >>conftest.$ac_ext <<_ACEOF
6518 /* end confdefs.h. */
6519 #include <stdio.h>
6521 _ACEOF
6522 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6523 $EGREP "[^A-Za-z0-9_]fgetpos([ ]+[A-Za-z0-9_]*)?[ ]*\(" >/dev/null 2>&1; then
6525 else
6527 { echo "$as_me:$LINENO: result: adding prototype for fgetpos" >&5
6528 echo "${ECHO_T}adding prototype for fgetpos" >&6; }
6529 cat >>confdefs.h <<\_ACEOF
6530 #define NEED_PROTO_FGETPOS 1
6531 _ACEOF
6535 rm -f conftest*
6538 if test "$have_truncate" = yes ; then
6540 cat >conftest.$ac_ext <<_ACEOF
6541 /* confdefs.h. */
6542 _ACEOF
6543 cat confdefs.h >>conftest.$ac_ext
6544 cat >>conftest.$ac_ext <<_ACEOF
6545 /* end confdefs.h. */
6546 #include <unistd.h>
6548 _ACEOF
6549 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6550 $EGREP "[^A-Za-z0-9_]truncate([ ]+[A-Za-z0-9_]*)?[ ]*\(" >/dev/null 2>&1; then
6552 else
6554 { echo "$as_me:$LINENO: result: adding prototype for truncate" >&5
6555 echo "${ECHO_T}adding prototype for truncate" >&6; }
6556 cat >>confdefs.h <<\_ACEOF
6557 #define NEED_PROTO_TRUNCATE 1
6558 _ACEOF
6562 rm -f conftest*
6565 if test "$have_ftruncate" = yes ; then
6567 cat >conftest.$ac_ext <<_ACEOF
6568 /* confdefs.h. */
6569 _ACEOF
6570 cat confdefs.h >>conftest.$ac_ext
6571 cat >>conftest.$ac_ext <<_ACEOF
6572 /* end confdefs.h. */
6573 #include <unistd.h>
6575 _ACEOF
6576 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6577 $EGREP "[^A-Za-z0-9_]ftruncate([ ]+[A-Za-z0-9_]*)?[ ]*\(" >/dev/null 2>&1; then
6579 else
6581 { echo "$as_me:$LINENO: result: adding prototype for ftruncate" >&5
6582 echo "${ECHO_T}adding prototype for ftruncate" >&6; }
6583 cat >>confdefs.h <<\_ACEOF
6584 #define NEED_PROTO_FTRUNCATE 1
6585 _ACEOF
6589 rm -f conftest*
6594 # Output files
6595 # ------------
6598 rm -f Makefile
6599 if test "$enable_maintainer_mode" = yes ; then
6600 { echo "$as_me:$LINENO: result: creating maintainer Makefile" >&5
6601 echo "${ECHO_T}creating maintainer Makefile" >&6; }
6602 ln -s maintainer.mak Makefile
6603 makefile_out=
6604 else
6605 makefile_out=Makefile
6607 ac_config_files="$ac_config_files $makefile_out"
6609 cat >confcache <<\_ACEOF
6610 # This file is a shell script that caches the results of configure
6611 # tests run on this system so they can be shared between configure
6612 # scripts and configure runs, see configure's option --config-cache.
6613 # It is not useful on other systems. If it contains results you don't
6614 # want to keep, you may remove or edit it.
6616 # config.status only pays attention to the cache file if you give it
6617 # the --recheck option to rerun configure.
6619 # `ac_cv_env_foo' variables (set or unset) will be overridden when
6620 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6621 # following values.
6623 _ACEOF
6625 # The following way of writing the cache mishandles newlines in values,
6626 # but we know of no workaround that is simple, portable, and efficient.
6627 # So, we kill variables containing newlines.
6628 # Ultrix sh set writes to stderr and can't be redirected directly,
6629 # and sets the high bit in the cache file unless we assign to the vars.
6631 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
6632 eval ac_val=\$$ac_var
6633 case $ac_val in #(
6634 *${as_nl}*)
6635 case $ac_var in #(
6636 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
6637 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
6638 esac
6639 case $ac_var in #(
6640 _ | IFS | as_nl) ;; #(
6641 *) $as_unset $ac_var ;;
6642 esac ;;
6643 esac
6644 done
6646 (set) 2>&1 |
6647 case $as_nl`(ac_space=' '; set) 2>&1` in #(
6648 *${as_nl}ac_space=\ *)
6649 # `set' does not quote correctly, so add quotes (double-quote
6650 # substitution turns \\\\ into \\, and sed turns \\ into \).
6651 sed -n \
6652 "s/'/'\\\\''/g;
6653 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6654 ;; #(
6656 # `set' quotes correctly as required by POSIX, so do not add quotes.
6657 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
6659 esac |
6660 sort
6662 sed '
6663 /^ac_cv_env_/b end
6664 t clear
6665 :clear
6666 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6667 t end
6668 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6669 :end' >>confcache
6670 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
6671 if test -w "$cache_file"; then
6672 test "x$cache_file" != "x/dev/null" &&
6673 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
6674 echo "$as_me: updating cache $cache_file" >&6;}
6675 cat confcache >$cache_file
6676 else
6677 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
6678 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
6681 rm -f confcache
6683 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6684 # Let make expand exec_prefix.
6685 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6687 DEFS=-DHAVE_CONFIG_H
6689 ac_libobjs=
6690 ac_ltlibobjs=
6691 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6692 # 1. Remove the extension, and $U if already installed.
6693 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
6694 ac_i=`echo "$ac_i" | sed "$ac_script"`
6695 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
6696 # will be set to the directory where LIBOBJS objects are built.
6697 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
6698 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
6699 done
6700 LIBOBJS=$ac_libobjs
6702 LTLIBOBJS=$ac_ltlibobjs
6706 : ${CONFIG_STATUS=./config.status}
6707 ac_clean_files_save=$ac_clean_files
6708 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6709 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
6710 echo "$as_me: creating $CONFIG_STATUS" >&6;}
6711 cat >$CONFIG_STATUS <<_ACEOF
6712 #! $SHELL
6713 # Generated by $as_me.
6714 # Run this file to recreate the current configuration.
6715 # Compiler output produced by configure, useful for debugging
6716 # configure, is in config.log if it exists.
6718 debug=false
6719 ac_cs_recheck=false
6720 ac_cs_silent=false
6721 SHELL=\${CONFIG_SHELL-$SHELL}
6722 _ACEOF
6724 cat >>$CONFIG_STATUS <<\_ACEOF
6725 ## --------------------- ##
6726 ## M4sh Initialization. ##
6727 ## --------------------- ##
6729 # Be more Bourne compatible
6730 DUALCASE=1; export DUALCASE # for MKS sh
6731 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
6732 emulate sh
6733 NULLCMD=:
6734 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
6735 # is contrary to our usage. Disable this feature.
6736 alias -g '${1+"$@"}'='"$@"'
6737 setopt NO_GLOB_SUBST
6738 else
6739 case `(set -o) 2>/dev/null` in
6740 *posix*) set -o posix ;;
6741 esac
6748 # PATH needs CR
6749 # Avoid depending upon Character Ranges.
6750 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6751 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6752 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6753 as_cr_digits='0123456789'
6754 as_cr_alnum=$as_cr_Letters$as_cr_digits
6756 # The user is always right.
6757 if test "${PATH_SEPARATOR+set}" != set; then
6758 echo "#! /bin/sh" >conf$$.sh
6759 echo "exit 0" >>conf$$.sh
6760 chmod +x conf$$.sh
6761 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6762 PATH_SEPARATOR=';'
6763 else
6764 PATH_SEPARATOR=:
6766 rm -f conf$$.sh
6769 # Support unset when possible.
6770 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6771 as_unset=unset
6772 else
6773 as_unset=false
6777 # IFS
6778 # We need space, tab and new line, in precisely that order. Quoting is
6779 # there to prevent editors from complaining about space-tab.
6780 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
6781 # splitting by setting IFS to empty value.)
6782 as_nl='
6784 IFS=" "" $as_nl"
6786 # Find who we are. Look in the path if we contain no directory separator.
6787 case $0 in
6788 *[\\/]* ) as_myself=$0 ;;
6789 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6790 for as_dir in $PATH
6792 IFS=$as_save_IFS
6793 test -z "$as_dir" && as_dir=.
6794 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6795 done
6796 IFS=$as_save_IFS
6799 esac
6800 # We did not find ourselves, most probably we were run as `sh COMMAND'
6801 # in which case we are not to be found in the path.
6802 if test "x$as_myself" = x; then
6803 as_myself=$0
6805 if test ! -f "$as_myself"; then
6806 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
6807 { (exit 1); exit 1; }
6810 # Work around bugs in pre-3.0 UWIN ksh.
6811 for as_var in ENV MAIL MAILPATH
6812 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
6813 done
6814 PS1='$ '
6815 PS2='> '
6816 PS4='+ '
6818 # NLS nuisances.
6819 for as_var in \
6820 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
6821 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
6822 LC_TELEPHONE LC_TIME
6824 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
6825 eval $as_var=C; export $as_var
6826 else
6827 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
6829 done
6831 # Required to use basename.
6832 if expr a : '\(a\)' >/dev/null 2>&1 &&
6833 test "X`expr 00001 : '.*\(...\)'`" = X001; then
6834 as_expr=expr
6835 else
6836 as_expr=false
6839 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
6840 as_basename=basename
6841 else
6842 as_basename=false
6846 # Name of the executable.
6847 as_me=`$as_basename -- "$0" ||
6848 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6849 X"$0" : 'X\(//\)$' \| \
6850 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
6851 echo X/"$0" |
6852 sed '/^.*\/\([^/][^/]*\)\/*$/{
6853 s//\1/
6856 /^X\/\(\/\/\)$/{
6857 s//\1/
6860 /^X\/\(\/\).*/{
6861 s//\1/
6864 s/.*/./; q'`
6866 # CDPATH.
6867 $as_unset CDPATH
6871 as_lineno_1=$LINENO
6872 as_lineno_2=$LINENO
6873 test "x$as_lineno_1" != "x$as_lineno_2" &&
6874 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
6876 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
6877 # uniformly replaced by the line number. The first 'sed' inserts a
6878 # line-number line after each line using $LINENO; the second 'sed'
6879 # does the real work. The second script uses 'N' to pair each
6880 # line-number line with the line containing $LINENO, and appends
6881 # trailing '-' during substitution so that $LINENO is not a special
6882 # case at line end.
6883 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
6884 # scripts with optimization help from Paolo Bonzini. Blame Lee
6885 # E. McMahon (1931-1989) for sed's syntax. :-)
6886 sed -n '
6888 /[$]LINENO/=
6889 ' <$as_myself |
6890 sed '
6891 s/[$]LINENO.*/&-/
6892 t lineno
6894 :lineno
6896 :loop
6897 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
6898 t loop
6899 s/-\n.*//
6900 ' >$as_me.lineno &&
6901 chmod +x "$as_me.lineno" ||
6902 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
6903 { (exit 1); exit 1; }; }
6905 # Don't try to exec as it changes $[0], causing all sort of problems
6906 # (the dirname of $[0] is not the place where we might find the
6907 # original and so on. Autoconf is especially sensitive to this).
6908 . "./$as_me.lineno"
6909 # Exit status is that of the last command.
6910 exit
6914 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
6915 as_dirname=dirname
6916 else
6917 as_dirname=false
6920 ECHO_C= ECHO_N= ECHO_T=
6921 case `echo -n x` in
6922 -n*)
6923 case `echo 'x\c'` in
6924 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
6925 *) ECHO_C='\c';;
6926 esac;;
6928 ECHO_N='-n';;
6929 esac
6931 if expr a : '\(a\)' >/dev/null 2>&1 &&
6932 test "X`expr 00001 : '.*\(...\)'`" = X001; then
6933 as_expr=expr
6934 else
6935 as_expr=false
6938 rm -f conf$$ conf$$.exe conf$$.file
6939 if test -d conf$$.dir; then
6940 rm -f conf$$.dir/conf$$.file
6941 else
6942 rm -f conf$$.dir
6943 mkdir conf$$.dir
6945 echo >conf$$.file
6946 if ln -s conf$$.file conf$$ 2>/dev/null; then
6947 as_ln_s='ln -s'
6948 # ... but there are two gotchas:
6949 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
6950 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
6951 # In both cases, we have to default to `cp -p'.
6952 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
6953 as_ln_s='cp -p'
6954 elif ln conf$$.file conf$$ 2>/dev/null; then
6955 as_ln_s=ln
6956 else
6957 as_ln_s='cp -p'
6959 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
6960 rmdir conf$$.dir 2>/dev/null
6962 if mkdir -p . 2>/dev/null; then
6963 as_mkdir_p=:
6964 else
6965 test -d ./-p && rmdir ./-p
6966 as_mkdir_p=false
6969 if test -x / >/dev/null 2>&1; then
6970 as_test_x='test -x'
6971 else
6972 if ls -dL / >/dev/null 2>&1; then
6973 as_ls_L_option=L
6974 else
6975 as_ls_L_option=
6977 as_test_x='
6978 eval sh -c '\''
6979 if test -d "$1"; then
6980 test -d "$1/.";
6981 else
6982 case $1 in
6983 -*)set "./$1";;
6984 esac;
6985 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
6986 ???[sx]*):;;*)false;;esac;fi
6987 '\'' sh
6990 as_executable_p=$as_test_x
6992 # Sed expression to map a string onto a valid CPP name.
6993 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
6995 # Sed expression to map a string onto a valid variable name.
6996 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6999 exec 6>&1
7001 # Save the log message, to keep $[0] and so on meaningful, and to
7002 # report actual input values of CONFIG_FILES etc. instead of their
7003 # values after options handling.
7004 ac_log="
7005 This file was extended by $as_me, which was
7006 generated by GNU Autoconf 2.61. Invocation command line was
7008 CONFIG_FILES = $CONFIG_FILES
7009 CONFIG_HEADERS = $CONFIG_HEADERS
7010 CONFIG_LINKS = $CONFIG_LINKS
7011 CONFIG_COMMANDS = $CONFIG_COMMANDS
7012 $ $0 $@
7014 on `(hostname || uname -n) 2>/dev/null | sed 1q`
7017 _ACEOF
7019 cat >>$CONFIG_STATUS <<_ACEOF
7020 # Files that config.status was made for.
7021 config_files="$ac_config_files"
7022 config_headers="$ac_config_headers"
7024 _ACEOF
7026 cat >>$CONFIG_STATUS <<\_ACEOF
7027 ac_cs_usage="\
7028 \`$as_me' instantiates files from templates according to the
7029 current configuration.
7031 Usage: $0 [OPTIONS] [FILE]...
7033 -h, --help print this help, then exit
7034 -V, --version print version number and configuration settings, then exit
7035 -q, --quiet do not print progress messages
7036 -d, --debug don't remove temporary files
7037 --recheck update $as_me by reconfiguring in the same conditions
7038 --file=FILE[:TEMPLATE]
7039 instantiate the configuration file FILE
7040 --header=FILE[:TEMPLATE]
7041 instantiate the configuration header FILE
7043 Configuration files:
7044 $config_files
7046 Configuration headers:
7047 $config_headers
7049 Report bugs to <bug-autoconf@gnu.org>."
7051 _ACEOF
7052 cat >>$CONFIG_STATUS <<_ACEOF
7053 ac_cs_version="\\
7054 config.status
7055 configured by $0, generated by GNU Autoconf 2.61,
7056 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
7058 Copyright (C) 2006 Free Software Foundation, Inc.
7059 This config.status script is free software; the Free Software Foundation
7060 gives unlimited permission to copy, distribute and modify it."
7062 ac_pwd='$ac_pwd'
7063 srcdir='$srcdir'
7064 _ACEOF
7066 cat >>$CONFIG_STATUS <<\_ACEOF
7067 # If no file are specified by the user, then we need to provide default
7068 # value. By we need to know if files were specified by the user.
7069 ac_need_defaults=:
7070 while test $# != 0
7072 case $1 in
7073 --*=*)
7074 ac_option=`expr "X$1" : 'X\([^=]*\)='`
7075 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
7076 ac_shift=:
7079 ac_option=$1
7080 ac_optarg=$2
7081 ac_shift=shift
7083 esac
7085 case $ac_option in
7086 # Handling of the options.
7087 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7088 ac_cs_recheck=: ;;
7089 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
7090 echo "$ac_cs_version"; exit ;;
7091 --debug | --debu | --deb | --de | --d | -d )
7092 debug=: ;;
7093 --file | --fil | --fi | --f )
7094 $ac_shift
7095 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
7096 ac_need_defaults=false;;
7097 --header | --heade | --head | --hea )
7098 $ac_shift
7099 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
7100 ac_need_defaults=false;;
7101 --he | --h)
7102 # Conflict between --help and --header
7103 { echo "$as_me: error: ambiguous option: $1
7104 Try \`$0 --help' for more information." >&2
7105 { (exit 1); exit 1; }; };;
7106 --help | --hel | -h )
7107 echo "$ac_cs_usage"; exit ;;
7108 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
7109 | -silent | --silent | --silen | --sile | --sil | --si | --s)
7110 ac_cs_silent=: ;;
7112 # This is an error.
7113 -*) { echo "$as_me: error: unrecognized option: $1
7114 Try \`$0 --help' for more information." >&2
7115 { (exit 1); exit 1; }; } ;;
7117 *) ac_config_targets="$ac_config_targets $1"
7118 ac_need_defaults=false ;;
7120 esac
7121 shift
7122 done
7124 ac_configure_extra_args=
7126 if $ac_cs_silent; then
7127 exec 6>/dev/null
7128 ac_configure_extra_args="$ac_configure_extra_args --silent"
7131 _ACEOF
7132 cat >>$CONFIG_STATUS <<_ACEOF
7133 if \$ac_cs_recheck; then
7134 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
7135 CONFIG_SHELL=$SHELL
7136 export CONFIG_SHELL
7137 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7140 _ACEOF
7141 cat >>$CONFIG_STATUS <<\_ACEOF
7142 exec 5>>config.log
7144 echo
7145 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7146 ## Running $as_me. ##
7147 _ASBOX
7148 echo "$ac_log"
7149 } >&5
7151 _ACEOF
7152 cat >>$CONFIG_STATUS <<_ACEOF
7153 _ACEOF
7155 cat >>$CONFIG_STATUS <<\_ACEOF
7157 # Handling of arguments.
7158 for ac_config_target in $ac_config_targets
7160 case $ac_config_target in
7161 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
7162 "$makefile_out") CONFIG_FILES="$CONFIG_FILES $makefile_out" ;;
7164 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
7165 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
7166 { (exit 1); exit 1; }; };;
7167 esac
7168 done
7171 # If the user did not use the arguments to specify the items to instantiate,
7172 # then the envvar interface is used. Set only those that are not.
7173 # We use the long form for the default assignment because of an extremely
7174 # bizarre bug on SunOS 4.1.3.
7175 if $ac_need_defaults; then
7176 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
7177 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
7180 # Have a temporary directory for convenience. Make it in the build tree
7181 # simply because there is no reason against having it here, and in addition,
7182 # creating and moving files from /tmp can sometimes cause problems.
7183 # Hook for its removal unless debugging.
7184 # Note that there is a small window in which the directory will not be cleaned:
7185 # after its creation but before its name has been assigned to `$tmp'.
7186 $debug ||
7188 tmp=
7189 trap 'exit_status=$?
7190 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
7192 trap '{ (exit 1); exit 1; }' 1 2 13 15
7194 # Create a (secure) tmp directory for tmp files.
7197 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
7198 test -n "$tmp" && test -d "$tmp"
7199 } ||
7201 tmp=./conf$$-$RANDOM
7202 (umask 077 && mkdir "$tmp")
7203 } ||
7205 echo "$me: cannot create a temporary directory in ." >&2
7206 { (exit 1); exit 1; }
7210 # Set up the sed scripts for CONFIG_FILES section.
7213 # No need to generate the scripts if there are no CONFIG_FILES.
7214 # This happens for instance when ./config.status config.h
7215 if test -n "$CONFIG_FILES"; then
7217 _ACEOF
7221 ac_delim='%!_!# '
7222 for ac_last_try in false false false false false :; do
7223 cat >conf$$subs.sed <<_ACEOF
7224 SHELL!$SHELL$ac_delim
7225 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
7226 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
7227 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
7228 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
7229 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
7230 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
7231 exec_prefix!$exec_prefix$ac_delim
7232 prefix!$prefix$ac_delim
7233 program_transform_name!$program_transform_name$ac_delim
7234 bindir!$bindir$ac_delim
7235 sbindir!$sbindir$ac_delim
7236 libexecdir!$libexecdir$ac_delim
7237 datarootdir!$datarootdir$ac_delim
7238 datadir!$datadir$ac_delim
7239 sysconfdir!$sysconfdir$ac_delim
7240 sharedstatedir!$sharedstatedir$ac_delim
7241 localstatedir!$localstatedir$ac_delim
7242 includedir!$includedir$ac_delim
7243 oldincludedir!$oldincludedir$ac_delim
7244 docdir!$docdir$ac_delim
7245 infodir!$infodir$ac_delim
7246 htmldir!$htmldir$ac_delim
7247 dvidir!$dvidir$ac_delim
7248 pdfdir!$pdfdir$ac_delim
7249 psdir!$psdir$ac_delim
7250 libdir!$libdir$ac_delim
7251 localedir!$localedir$ac_delim
7252 mandir!$mandir$ac_delim
7253 DEFS!$DEFS$ac_delim
7254 ECHO_C!$ECHO_C$ac_delim
7255 ECHO_N!$ECHO_N$ac_delim
7256 ECHO_T!$ECHO_T$ac_delim
7257 LIBS!$LIBS$ac_delim
7258 build_alias!$build_alias$ac_delim
7259 host_alias!$host_alias$ac_delim
7260 target_alias!$target_alias$ac_delim
7261 install_targets!$install_targets$ac_delim
7262 CC!$CC$ac_delim
7263 CFLAGS!$CFLAGS$ac_delim
7264 LDFLAGS!$LDFLAGS$ac_delim
7265 CPPFLAGS!$CPPFLAGS$ac_delim
7266 ac_ct_CC!$ac_ct_CC$ac_delim
7267 EXEEXT!$EXEEXT$ac_delim
7268 OBJEXT!$OBJEXT$ac_delim
7269 LN_S!$LN_S$ac_delim
7270 STRIP!$STRIP$ac_delim
7271 sort_found!$sort_found$ac_delim
7272 CPP!$CPP$ac_delim
7273 GREP!$GREP$ac_delim
7274 EGREP!$EGREP$ac_delim
7275 LIBOBJS!$LIBOBJS$ac_delim
7276 LTLIBOBJS!$LTLIBOBJS$ac_delim
7277 _ACEOF
7279 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 53; then
7280 break
7281 elif $ac_last_try; then
7282 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
7283 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
7284 { (exit 1); exit 1; }; }
7285 else
7286 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
7288 done
7290 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
7291 if test -n "$ac_eof"; then
7292 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
7293 ac_eof=`expr $ac_eof + 1`
7296 cat >>$CONFIG_STATUS <<_ACEOF
7297 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
7298 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
7299 _ACEOF
7300 sed '
7301 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
7302 s/^/s,@/; s/!/@,|#_!!_#|/
7305 s/'"$ac_delim"'$/,g/; t
7306 s/$/\\/; p
7307 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
7308 ' >>$CONFIG_STATUS <conf$$subs.sed
7309 rm -f conf$$subs.sed
7310 cat >>$CONFIG_STATUS <<_ACEOF
7311 :end
7312 s/|#_!!_#|//g
7313 CEOF$ac_eof
7314 _ACEOF
7317 # VPATH may cause trouble with some makes, so we remove $(srcdir),
7318 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
7319 # trailing colons and then remove the whole line if VPATH becomes empty
7320 # (actually we leave an empty line to preserve line numbers).
7321 if test "x$srcdir" = x.; then
7322 ac_vpsub='/^[ ]*VPATH[ ]*=/{
7323 s/:*\$(srcdir):*/:/
7324 s/:*\${srcdir}:*/:/
7325 s/:*@srcdir@:*/:/
7326 s/^\([^=]*=[ ]*\):*/\1/
7327 s/:*$//
7328 s/^[^=]*=[ ]*$//
7332 cat >>$CONFIG_STATUS <<\_ACEOF
7333 fi # test -n "$CONFIG_FILES"
7336 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS
7338 case $ac_tag in
7339 :[FHLC]) ac_mode=$ac_tag; continue;;
7340 esac
7341 case $ac_mode$ac_tag in
7342 :[FHL]*:*);;
7343 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
7344 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
7345 { (exit 1); exit 1; }; };;
7346 :[FH]-) ac_tag=-:-;;
7347 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
7348 esac
7349 ac_save_IFS=$IFS
7350 IFS=:
7351 set x $ac_tag
7352 IFS=$ac_save_IFS
7353 shift
7354 ac_file=$1
7355 shift
7357 case $ac_mode in
7358 :L) ac_source=$1;;
7359 :[FH])
7360 ac_file_inputs=
7361 for ac_f
7363 case $ac_f in
7364 -) ac_f="$tmp/stdin";;
7365 *) # Look for the file first in the build tree, then in the source tree
7366 # (if the path is not absolute). The absolute path cannot be DOS-style,
7367 # because $ac_f cannot contain `:'.
7368 test -f "$ac_f" ||
7369 case $ac_f in
7370 [\\/$]*) false;;
7371 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
7372 esac ||
7373 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
7374 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
7375 { (exit 1); exit 1; }; };;
7376 esac
7377 ac_file_inputs="$ac_file_inputs $ac_f"
7378 done
7380 # Let's still pretend it is `configure' which instantiates (i.e., don't
7381 # use $as_me), people would be surprised to read:
7382 # /* config.h. Generated by config.status. */
7383 configure_input="Generated from "`IFS=:
7384 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
7385 if test x"$ac_file" != x-; then
7386 configure_input="$ac_file. $configure_input"
7387 { echo "$as_me:$LINENO: creating $ac_file" >&5
7388 echo "$as_me: creating $ac_file" >&6;}
7391 case $ac_tag in
7392 *:-:* | *:-) cat >"$tmp/stdin";;
7393 esac
7395 esac
7397 ac_dir=`$as_dirname -- "$ac_file" ||
7398 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7399 X"$ac_file" : 'X\(//\)[^/]' \| \
7400 X"$ac_file" : 'X\(//\)$' \| \
7401 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
7402 echo X"$ac_file" |
7403 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7404 s//\1/
7407 /^X\(\/\/\)[^/].*/{
7408 s//\1/
7411 /^X\(\/\/\)$/{
7412 s//\1/
7415 /^X\(\/\).*/{
7416 s//\1/
7419 s/.*/./; q'`
7420 { as_dir="$ac_dir"
7421 case $as_dir in #(
7422 -*) as_dir=./$as_dir;;
7423 esac
7424 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
7425 as_dirs=
7426 while :; do
7427 case $as_dir in #(
7428 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
7429 *) as_qdir=$as_dir;;
7430 esac
7431 as_dirs="'$as_qdir' $as_dirs"
7432 as_dir=`$as_dirname -- "$as_dir" ||
7433 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7434 X"$as_dir" : 'X\(//\)[^/]' \| \
7435 X"$as_dir" : 'X\(//\)$' \| \
7436 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
7437 echo X"$as_dir" |
7438 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7439 s//\1/
7442 /^X\(\/\/\)[^/].*/{
7443 s//\1/
7446 /^X\(\/\/\)$/{
7447 s//\1/
7450 /^X\(\/\).*/{
7451 s//\1/
7454 s/.*/./; q'`
7455 test -d "$as_dir" && break
7456 done
7457 test -z "$as_dirs" || eval "mkdir $as_dirs"
7458 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
7459 echo "$as_me: error: cannot create directory $as_dir" >&2;}
7460 { (exit 1); exit 1; }; }; }
7461 ac_builddir=.
7463 case "$ac_dir" in
7464 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
7466 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7467 # A ".." for each directory in $ac_dir_suffix.
7468 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
7469 case $ac_top_builddir_sub in
7470 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
7471 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
7472 esac ;;
7473 esac
7474 ac_abs_top_builddir=$ac_pwd
7475 ac_abs_builddir=$ac_pwd$ac_dir_suffix
7476 # for backward compatibility:
7477 ac_top_builddir=$ac_top_build_prefix
7479 case $srcdir in
7480 .) # We are building in place.
7481 ac_srcdir=.
7482 ac_top_srcdir=$ac_top_builddir_sub
7483 ac_abs_top_srcdir=$ac_pwd ;;
7484 [\\/]* | ?:[\\/]* ) # Absolute name.
7485 ac_srcdir=$srcdir$ac_dir_suffix;
7486 ac_top_srcdir=$srcdir
7487 ac_abs_top_srcdir=$srcdir ;;
7488 *) # Relative name.
7489 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
7490 ac_top_srcdir=$ac_top_build_prefix$srcdir
7491 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
7492 esac
7493 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
7496 case $ac_mode in
7499 # CONFIG_FILE
7502 _ACEOF
7504 cat >>$CONFIG_STATUS <<\_ACEOF
7505 # If the template does not know about datarootdir, expand it.
7506 # FIXME: This hack should be removed a few years after 2.60.
7507 ac_datarootdir_hack=; ac_datarootdir_seen=
7509 case `sed -n '/datarootdir/ {
7513 /@datadir@/p
7514 /@docdir@/p
7515 /@infodir@/p
7516 /@localedir@/p
7517 /@mandir@/p
7518 ' $ac_file_inputs` in
7519 *datarootdir*) ac_datarootdir_seen=yes;;
7520 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
7521 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
7522 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
7523 _ACEOF
7524 cat >>$CONFIG_STATUS <<_ACEOF
7525 ac_datarootdir_hack='
7526 s&@datadir@&$datadir&g
7527 s&@docdir@&$docdir&g
7528 s&@infodir@&$infodir&g
7529 s&@localedir@&$localedir&g
7530 s&@mandir@&$mandir&g
7531 s&\\\${datarootdir}&$datarootdir&g' ;;
7532 esac
7533 _ACEOF
7535 # Neutralize VPATH when `$srcdir' = `.'.
7536 # Shell code in configure.ac might set extrasub.
7537 # FIXME: do we really want to maintain this feature?
7538 cat >>$CONFIG_STATUS <<_ACEOF
7539 sed "$ac_vpsub
7540 $extrasub
7541 _ACEOF
7542 cat >>$CONFIG_STATUS <<\_ACEOF
7544 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7545 s&@configure_input@&$configure_input&;t t
7546 s&@top_builddir@&$ac_top_builddir_sub&;t t
7547 s&@srcdir@&$ac_srcdir&;t t
7548 s&@abs_srcdir@&$ac_abs_srcdir&;t t
7549 s&@top_srcdir@&$ac_top_srcdir&;t t
7550 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
7551 s&@builddir@&$ac_builddir&;t t
7552 s&@abs_builddir@&$ac_abs_builddir&;t t
7553 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
7554 $ac_datarootdir_hack
7555 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out
7557 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
7558 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
7559 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
7560 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7561 which seems to be undefined. Please make sure it is defined." >&5
7562 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7563 which seems to be undefined. Please make sure it is defined." >&2;}
7565 rm -f "$tmp/stdin"
7566 case $ac_file in
7567 -) cat "$tmp/out"; rm -f "$tmp/out";;
7568 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
7569 esac
7573 # CONFIG_HEADER
7575 _ACEOF
7577 # Transform confdefs.h into a sed script `conftest.defines', that
7578 # substitutes the proper values into config.h.in to produce config.h.
7579 rm -f conftest.defines conftest.tail
7580 # First, append a space to every undef/define line, to ease matching.
7581 echo 's/$/ /' >conftest.defines
7582 # Then, protect against being on the right side of a sed subst, or in
7583 # an unquoted here document, in config.status. If some macros were
7584 # called several times there might be several #defines for the same
7585 # symbol, which is useless. But do not sort them, since the last
7586 # AC_DEFINE must be honored.
7587 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
7588 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
7589 # NAME is the cpp macro being defined, VALUE is the value it is being given.
7590 # PARAMS is the parameter list in the macro definition--in most cases, it's
7591 # just an empty string.
7592 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
7593 ac_dB='\\)[ (].*,\\1define\\2'
7594 ac_dC=' '
7595 ac_dD=' ,'
7597 uniq confdefs.h |
7598 sed -n '
7599 t rset
7600 :rset
7601 s/^[ ]*#[ ]*define[ ][ ]*//
7602 t ok
7605 s/[\\&,]/\\&/g
7606 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
7607 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
7608 ' >>conftest.defines
7610 # Remove the space that was appended to ease matching.
7611 # Then replace #undef with comments. This is necessary, for
7612 # example, in the case of _POSIX_SOURCE, which is predefined and required
7613 # on some systems where configure will not decide to define it.
7614 # (The regexp can be short, since the line contains either #define or #undef.)
7615 echo 's/ $//
7616 s,^[ #]*u.*,/* & */,' >>conftest.defines
7618 # Break up conftest.defines:
7619 ac_max_sed_lines=50
7621 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
7622 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
7623 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
7624 # et cetera.
7625 ac_in='$ac_file_inputs'
7626 ac_out='"$tmp/out1"'
7627 ac_nxt='"$tmp/out2"'
7629 while :
7631 # Write a here document:
7632 cat >>$CONFIG_STATUS <<_ACEOF
7633 # First, check the format of the line:
7634 cat >"\$tmp/defines.sed" <<\\CEOF
7635 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
7636 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
7638 :def
7639 _ACEOF
7640 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
7641 echo 'CEOF
7642 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
7643 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
7644 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
7645 grep . conftest.tail >/dev/null || break
7646 rm -f conftest.defines
7647 mv conftest.tail conftest.defines
7648 done
7649 rm -f conftest.defines conftest.tail
7651 echo "ac_result=$ac_in" >>$CONFIG_STATUS
7652 cat >>$CONFIG_STATUS <<\_ACEOF
7653 if test x"$ac_file" != x-; then
7654 echo "/* $configure_input */" >"$tmp/config.h"
7655 cat "$ac_result" >>"$tmp/config.h"
7656 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
7657 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
7658 echo "$as_me: $ac_file is unchanged" >&6;}
7659 else
7660 rm -f $ac_file
7661 mv "$tmp/config.h" $ac_file
7663 else
7664 echo "/* $configure_input */"
7665 cat "$ac_result"
7667 rm -f "$tmp/out12"
7671 esac
7673 done # for ac_tag
7676 { (exit 0); exit 0; }
7677 _ACEOF
7678 chmod +x $CONFIG_STATUS
7679 ac_clean_files=$ac_clean_files_save
7682 # configure is writing to config.log, and then calls config.status.
7683 # config.status does its own redirection, appending to config.log.
7684 # Unfortunately, on DOS this fails, as config.log is still kept open
7685 # by configure, so config.status won't be able to write to it; its
7686 # output is simply discarded. So we exec the FD to /dev/null,
7687 # effectively closing config.log, so it can be properly (re)opened and
7688 # appended to by config.status. When coming back to configure, we
7689 # need to make the FD available again.
7690 if test "$no_create" != yes; then
7691 ac_cs_success=:
7692 ac_config_status_args=
7693 test "$silent" = yes &&
7694 ac_config_status_args="$ac_config_status_args --quiet"
7695 exec 5>/dev/null
7696 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
7697 exec 5>>config.log
7698 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7699 # would make configure fail if this is the last instruction.
7700 $ac_cs_success || { (exit 1); exit 1; }
7704 # vim:ts=4:sw=4: