source: indexers/trunk/mgpp/configure@ 20845

Last change on this file since 20845 was 20845, checked in by oranfry, 15 years ago

removing another check for iconv casing problems

  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
File size: 246.8 KB
Line 
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.61.
4#
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## --------------------- ##
12
13# Be more Bourne compatible
14DUALCASE=1; export DUALCASE # for MKS sh
15if 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
22else
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
25esac
26
27fi
28
29
30
31
32# PATH needs CR
33# Avoid depending upon Character Ranges.
34as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37as_cr_digits='0123456789'
38as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40# The user is always right.
41if 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=:
49 fi
50 rm -f conf$$.sh
51fi
52
53# Support unset when possible.
54if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55 as_unset=unset
56else
57 as_unset=false
58fi
59
60
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.)
66as_nl='
67'
68IFS=" "" $as_nl"
69
70# Find who we are. Look in the path if we contain no directory separator.
71case $0 in
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74for as_dir in $PATH
75do
76 IFS=$as_save_IFS
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79done
80IFS=$as_save_IFS
81
82 ;;
83esac
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.
86if test "x$as_myself" = x; then
87 as_myself=$0
88fi
89if 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; }
92fi
93
94# Work around bugs in pre-3.0 UWIN ksh.
95for as_var in ENV MAIL MAILPATH
96do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97done
98PS1='$ '
99PS2='> '
100PS4='+ '
101
102# NLS nuisances.
103for 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
107do
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
112 fi
113done
114
115# Required to use basename.
116if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
118 as_expr=expr
119else
120 as_expr=false
121fi
122
123if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124 as_basename=basename
125else
126 as_basename=false
127fi
128
129
130# Name of the executable.
131as_me=`$as_basename -- "$0" ||
132$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135echo X/"$0" |
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
137 s//\1/
138 q
139 }
140 /^X\/\(\/\/\)$/{
141 s//\1/
142 q
143 }
144 /^X\/\(\/\).*/{
145 s//\1/
146 q
147 }
148 s/.*/./; q'`
149
150# CDPATH.
151$as_unset CDPATH
152
153
154if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
156 as_have_required=yes
157else
158 as_have_required=no
159fi
160
161 if test $as_have_required = yes && (eval ":
162(as_func_return () {
163 (exit \$1)
164}
165as_func_success () {
166 as_func_return 0
167}
168as_func_failure () {
169 as_func_return 1
170}
171as_func_ret_success () {
172 return 0
173}
174as_func_ret_failure () {
175 return 1
176}
177
178exitcode=0
179if as_func_success; then
180 :
181else
182 exitcode=1
183 echo as_func_success failed.
184fi
185
186if as_func_failure; then
187 exitcode=1
188 echo as_func_failure succeeded.
189fi
190
191if as_func_ret_success; then
192 :
193else
194 exitcode=1
195 echo as_func_ret_success failed.
196fi
197
198if as_func_ret_failure; then
199 exitcode=1
200 echo as_func_ret_failure succeeded.
201fi
202
203if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204 :
205else
206 exitcode=1
207 echo positional parameters were not saved.
208fi
209
210test \$exitcode = 0) || { (exit 1); exit 1; }
211
212(
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
218 :
219else
220 as_candidate_shells=
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223do
224 IFS=$as_save_IFS
225 test -z "$as_dir" && as_dir=.
226 case $as_dir in
227 /*)
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
232done
233IFS=$as_save_IFS
234
235
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
240if 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
247else
248 case `(set -o) 2>/dev/null` in
249 *posix*) set -o posix ;;
250esac
251
252fi
253
254
255:
256_ASEOF
257}; then
258 CONFIG_SHELL=$as_shell
259 as_have_required=yes
260 if { "$as_shell" 2> /dev/null <<\_ASEOF
261if 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
268else
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
271esac
272
273fi
274
275
276:
277(as_func_return () {
278 (exit $1)
279}
280as_func_success () {
281 as_func_return 0
282}
283as_func_failure () {
284 as_func_return 1
285}
286as_func_ret_success () {
287 return 0
288}
289as_func_ret_failure () {
290 return 1
291}
292
293exitcode=0
294if as_func_success; then
295 :
296else
297 exitcode=1
298 echo as_func_success failed.
299fi
300
301if as_func_failure; then
302 exitcode=1
303 echo as_func_failure succeeded.
304fi
305
306if as_func_ret_success; then
307 :
308else
309 exitcode=1
310 echo as_func_ret_success failed.
311fi
312
313if as_func_ret_failure; then
314 exitcode=1
315 echo as_func_ret_failure succeeded.
316fi
317
318if ( set x; as_func_ret_success y && test x = "$1" ); then
319 :
320else
321 exitcode=1
322 echo positional parameters were not saved.
323fi
324
325test $exitcode = 0) || { (exit 1); exit 1; }
326
327(
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; }
332
333_ASEOF
334}; then
335 break
336fi
337
338fi
339
340 done
341
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+"$@"}
348fi
349
350
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; }
357fi
358
359
360fi
361
362fi
363
364
365
366(eval "as_func_return () {
367 (exit \$1)
368}
369as_func_success () {
370 as_func_return 0
371}
372as_func_failure () {
373 as_func_return 1
374}
375as_func_ret_success () {
376 return 0
377}
378as_func_ret_failure () {
379 return 1
380}
381
382exitcode=0
383if as_func_success; then
384 :
385else
386 exitcode=1
387 echo as_func_success failed.
388fi
389
390if as_func_failure; then
391 exitcode=1
392 echo as_func_failure succeeded.
393fi
394
395if as_func_ret_success; then
396 :
397else
398 exitcode=1
399 echo as_func_ret_success failed.
400fi
401
402if as_func_ret_failure; then
403 exitcode=1
404 echo as_func_ret_failure succeeded.
405fi
406
407if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
408 :
409else
410 exitcode=1
411 echo positional parameters were not saved.
412fi
413
414test \$exitcode = 0") || {
415 echo No shell found that supports shell functions.
416 echo Please tell [email protected] about your system,
417 echo including any error possibly output before this
418 echo message
419}
420
421
422
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" || {
427
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 '
439 p
440 /[$]LINENO/=
441 ' <$as_myself |
442 sed '
443 s/[$]LINENO.*/&-/
444 t lineno
445 b
446 :lineno
447 N
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; }; }
456
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
463}
464
465
466if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467 as_dirname=dirname
468else
469 as_dirname=false
470fi
471
472ECHO_C= ECHO_N= ECHO_T=
473case `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;;
479*)
480 ECHO_N='-n';;
481esac
482
483if expr a : '\(a\)' >/dev/null 2>&1 &&
484 test "X`expr 00001 : '.*\(...\)'`" = X001; then
485 as_expr=expr
486else
487 as_expr=false
488fi
489
490rm -f conf$$ conf$$.exe conf$$.file
491if test -d conf$$.dir; then
492 rm -f conf$$.dir/conf$$.file
493else
494 rm -f conf$$.dir
495 mkdir conf$$.dir
496fi
497echo >conf$$.file
498if 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'
506elif ln conf$$.file conf$$ 2>/dev/null; then
507 as_ln_s=ln
508else
509 as_ln_s='cp -p'
510fi
511rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512rmdir conf$$.dir 2>/dev/null
513
514if mkdir -p . 2>/dev/null; then
515 as_mkdir_p=:
516else
517 test -d ./-p && rmdir ./-p
518 as_mkdir_p=false
519fi
520
521if test -x / >/dev/null 2>&1; then
522 as_test_x='test -x'
523else
524 if ls -dL / >/dev/null 2>&1; then
525 as_ls_L_option=L
526 else
527 as_ls_L_option=
528 fi
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
540 '
541fi
542as_executable_p=$as_test_x
543
544# Sed expression to map a string onto a valid CPP name.
545as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
546
547# Sed expression to map a string onto a valid variable name.
548as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
549
550
551
552exec 7<&0 </dev/null 6>&1
553
554# Name of the host.
555# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
556# so uname gets run too.
557ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
558
559#
560# Initializations.
561#
562ac_default_prefix=/usr/local
563ac_clean_files=
564ac_config_libobj_dir=.
565LIBOBJS=
566cross_compiling=no
567subdirs=
568MFLAGS=
569MAKEFLAGS=
570SHELL=${CONFIG_SHELL-/bin/sh}
571
572# Identity of this package.
573PACKAGE_NAME=
574PACKAGE_TARNAME=
575PACKAGE_VERSION=
576PACKAGE_STRING=
577PACKAGE_BUGREPORT=
578
579ac_unique_file="text/MGQuery.cpp"
580# Factoring default headers for most tests.
581ac_includes_default="\
582#include <stdio.h>
583#ifdef HAVE_SYS_TYPES_H
584# include <sys/types.h>
585#endif
586#ifdef HAVE_SYS_STAT_H
587# include <sys/stat.h>
588#endif
589#ifdef STDC_HEADERS
590# include <stdlib.h>
591# include <stddef.h>
592#else
593# ifdef HAVE_STDLIB_H
594# include <stdlib.h>
595# endif
596#endif
597#ifdef HAVE_STRING_H
598# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
599# include <memory.h>
600# endif
601# include <string.h>
602#endif
603#ifdef HAVE_STRINGS_H
604# include <strings.h>
605#endif
606#ifdef HAVE_INTTYPES_H
607# include <inttypes.h>
608#endif
609#ifdef HAVE_STDINT_H
610# include <stdint.h>
611#endif
612#ifdef HAVE_UNISTD_H
613# include <unistd.h>
614#endif"
615
616ac_subst_vars='SHELL
617PATH_SEPARATOR
618PACKAGE_NAME
619PACKAGE_TARNAME
620PACKAGE_VERSION
621PACKAGE_STRING
622PACKAGE_BUGREPORT
623exec_prefix
624prefix
625program_transform_name
626bindir
627sbindir
628libexecdir
629datarootdir
630datadir
631sysconfdir
632sharedstatedir
633localstatedir
634includedir
635oldincludedir
636docdir
637infodir
638htmldir
639dvidir
640pdfdir
641psdir
642libdir
643localedir
644mandir
645DEFS
646ECHO_C
647ECHO_N
648ECHO_T
649LIBS
650build_alias
651host_alias
652target_alias
653build
654build_cpu
655build_vendor
656build_os
657host
658host_cpu
659host_vendor
660host_os
661target
662target_cpu
663target_vendor
664target_os
665PACKAGE
666VERSION
667COMPAT32BITFLAGS
668ENABLE_ACCENTFOLD
669CXX
670CXXFLAGS
671LDFLAGS
672CPPFLAGS
673ac_ct_CXX
674EXEEXT
675OBJEXT
676AWK
677YACC
678YFLAGS
679CC
680CFLAGS
681ac_ct_CC
682INSTALL_PROGRAM
683INSTALL_SCRIPT
684INSTALL_DATA
685LN_S
686SET_MAKE
687RANLIB
688CPP
689GREP
690EGREP
691U
692ANSI2KNR
693UNAC_DIR
694ALLOCA
695LIBOBJS
696JNIINC
697JNISUFFIX
698JNIFLAGS
699LTLIBOBJS'
700ac_subst_files=''
701 ac_precious_vars='build_alias
702host_alias
703target_alias
704CXX
705CXXFLAGS
706LDFLAGS
707LIBS
708CPPFLAGS
709CCC
710YACC
711YFLAGS
712CC
713CFLAGS
714CPP'
715
716
717# Initialize some variables set by options.
718ac_init_help=
719ac_init_version=false
720# The variables have the same names as the options, with
721# dashes changed to underlines.
722cache_file=/dev/null
723exec_prefix=NONE
724no_create=
725no_recursion=
726prefix=NONE
727program_prefix=NONE
728program_suffix=NONE
729program_transform_name=s,x,x,
730silent=
731site=
732srcdir=
733verbose=
734x_includes=NONE
735x_libraries=NONE
736
737# Installation directory options.
738# These are left unexpanded so users can "make install exec_prefix=/foo"
739# and all the variables that are supposed to be based on exec_prefix
740# by default will actually change.
741# Use braces instead of parens because sh, perl, etc. also accept them.
742# (The list follows the same order as the GNU Coding Standards.)
743bindir='${exec_prefix}/bin'
744sbindir='${exec_prefix}/sbin'
745libexecdir='${exec_prefix}/libexec'
746datarootdir='${prefix}/share'
747datadir='${datarootdir}'
748sysconfdir='${prefix}/etc'
749sharedstatedir='${prefix}/com'
750localstatedir='${prefix}/var'
751includedir='${prefix}/include'
752oldincludedir='/usr/include'
753docdir='${datarootdir}/doc/${PACKAGE}'
754infodir='${datarootdir}/info'
755htmldir='${docdir}'
756dvidir='${docdir}'
757pdfdir='${docdir}'
758psdir='${docdir}'
759libdir='${exec_prefix}/lib'
760localedir='${datarootdir}/locale'
761mandir='${datarootdir}/man'
762
763ac_prev=
764ac_dashdash=
765for ac_option
766do
767 # If the previous option needs an argument, assign it.
768 if test -n "$ac_prev"; then
769 eval $ac_prev=\$ac_option
770 ac_prev=
771 continue
772 fi
773
774 case $ac_option in
775 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
776 *) ac_optarg=yes ;;
777 esac
778
779 # Accept the important Cygnus configure options, so we can diagnose typos.
780
781 case $ac_dashdash$ac_option in
782 --)
783 ac_dashdash=yes ;;
784
785 -bindir | --bindir | --bindi | --bind | --bin | --bi)
786 ac_prev=bindir ;;
787 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
788 bindir=$ac_optarg ;;
789
790 -build | --build | --buil | --bui | --bu)
791 ac_prev=build_alias ;;
792 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
793 build_alias=$ac_optarg ;;
794
795 -cache-file | --cache-file | --cache-fil | --cache-fi \
796 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
797 ac_prev=cache_file ;;
798 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
799 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
800 cache_file=$ac_optarg ;;
801
802 --config-cache | -C)
803 cache_file=config.cache ;;
804
805 -datadir | --datadir | --datadi | --datad)
806 ac_prev=datadir ;;
807 -datadir=* | --datadir=* | --datadi=* | --datad=*)
808 datadir=$ac_optarg ;;
809
810 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
811 | --dataroo | --dataro | --datar)
812 ac_prev=datarootdir ;;
813 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
814 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
815 datarootdir=$ac_optarg ;;
816
817 -disable-* | --disable-*)
818 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
819 # Reject names that are not valid shell variable names.
820 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
821 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
822 { (exit 1); exit 1; }; }
823 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
824 eval enable_$ac_feature=no ;;
825
826 -docdir | --docdir | --docdi | --doc | --do)
827 ac_prev=docdir ;;
828 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
829 docdir=$ac_optarg ;;
830
831 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
832 ac_prev=dvidir ;;
833 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
834 dvidir=$ac_optarg ;;
835
836 -enable-* | --enable-*)
837 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
838 # Reject names that are not valid shell variable names.
839 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
840 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
841 { (exit 1); exit 1; }; }
842 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
843 eval enable_$ac_feature=\$ac_optarg ;;
844
845 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
846 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
847 | --exec | --exe | --ex)
848 ac_prev=exec_prefix ;;
849 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
850 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
851 | --exec=* | --exe=* | --ex=*)
852 exec_prefix=$ac_optarg ;;
853
854 -gas | --gas | --ga | --g)
855 # Obsolete; use --with-gas.
856 with_gas=yes ;;
857
858 -help | --help | --hel | --he | -h)
859 ac_init_help=long ;;
860 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
861 ac_init_help=recursive ;;
862 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
863 ac_init_help=short ;;
864
865 -host | --host | --hos | --ho)
866 ac_prev=host_alias ;;
867 -host=* | --host=* | --hos=* | --ho=*)
868 host_alias=$ac_optarg ;;
869
870 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
871 ac_prev=htmldir ;;
872 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
873 | --ht=*)
874 htmldir=$ac_optarg ;;
875
876 -includedir | --includedir | --includedi | --included | --include \
877 | --includ | --inclu | --incl | --inc)
878 ac_prev=includedir ;;
879 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
880 | --includ=* | --inclu=* | --incl=* | --inc=*)
881 includedir=$ac_optarg ;;
882
883 -infodir | --infodir | --infodi | --infod | --info | --inf)
884 ac_prev=infodir ;;
885 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
886 infodir=$ac_optarg ;;
887
888 -libdir | --libdir | --libdi | --libd)
889 ac_prev=libdir ;;
890 -libdir=* | --libdir=* | --libdi=* | --libd=*)
891 libdir=$ac_optarg ;;
892
893 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
894 | --libexe | --libex | --libe)
895 ac_prev=libexecdir ;;
896 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
897 | --libexe=* | --libex=* | --libe=*)
898 libexecdir=$ac_optarg ;;
899
900 -localedir | --localedir | --localedi | --localed | --locale)
901 ac_prev=localedir ;;
902 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
903 localedir=$ac_optarg ;;
904
905 -localstatedir | --localstatedir | --localstatedi | --localstated \
906 | --localstate | --localstat | --localsta | --localst | --locals)
907 ac_prev=localstatedir ;;
908 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
909 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
910 localstatedir=$ac_optarg ;;
911
912 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
913 ac_prev=mandir ;;
914 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
915 mandir=$ac_optarg ;;
916
917 -nfp | --nfp | --nf)
918 # Obsolete; use --without-fp.
919 with_fp=no ;;
920
921 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
922 | --no-cr | --no-c | -n)
923 no_create=yes ;;
924
925 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
926 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
927 no_recursion=yes ;;
928
929 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
930 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
931 | --oldin | --oldi | --old | --ol | --o)
932 ac_prev=oldincludedir ;;
933 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
934 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
935 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
936 oldincludedir=$ac_optarg ;;
937
938 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
939 ac_prev=prefix ;;
940 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
941 prefix=$ac_optarg ;;
942
943 -program-prefix | --program-prefix | --program-prefi | --program-pref \
944 | --program-pre | --program-pr | --program-p)
945 ac_prev=program_prefix ;;
946 -program-prefix=* | --program-prefix=* | --program-prefi=* \
947 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
948 program_prefix=$ac_optarg ;;
949
950 -program-suffix | --program-suffix | --program-suffi | --program-suff \
951 | --program-suf | --program-su | --program-s)
952 ac_prev=program_suffix ;;
953 -program-suffix=* | --program-suffix=* | --program-suffi=* \
954 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
955 program_suffix=$ac_optarg ;;
956
957 -program-transform-name | --program-transform-name \
958 | --program-transform-nam | --program-transform-na \
959 | --program-transform-n | --program-transform- \
960 | --program-transform | --program-transfor \
961 | --program-transfo | --program-transf \
962 | --program-trans | --program-tran \
963 | --progr-tra | --program-tr | --program-t)
964 ac_prev=program_transform_name ;;
965 -program-transform-name=* | --program-transform-name=* \
966 | --program-transform-nam=* | --program-transform-na=* \
967 | --program-transform-n=* | --program-transform-=* \
968 | --program-transform=* | --program-transfor=* \
969 | --program-transfo=* | --program-transf=* \
970 | --program-trans=* | --program-tran=* \
971 | --progr-tra=* | --program-tr=* | --program-t=*)
972 program_transform_name=$ac_optarg ;;
973
974 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
975 ac_prev=pdfdir ;;
976 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
977 pdfdir=$ac_optarg ;;
978
979 -psdir | --psdir | --psdi | --psd | --ps)
980 ac_prev=psdir ;;
981 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
982 psdir=$ac_optarg ;;
983
984 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
985 | -silent | --silent | --silen | --sile | --sil)
986 silent=yes ;;
987
988 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
989 ac_prev=sbindir ;;
990 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
991 | --sbi=* | --sb=*)
992 sbindir=$ac_optarg ;;
993
994 -sharedstatedir | --sharedstatedir | --sharedstatedi \
995 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
996 | --sharedst | --shareds | --shared | --share | --shar \
997 | --sha | --sh)
998 ac_prev=sharedstatedir ;;
999 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1000 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1001 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1002 | --sha=* | --sh=*)
1003 sharedstatedir=$ac_optarg ;;
1004
1005 -site | --site | --sit)
1006 ac_prev=site ;;
1007 -site=* | --site=* | --sit=*)
1008 site=$ac_optarg ;;
1009
1010 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1011 ac_prev=srcdir ;;
1012 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1013 srcdir=$ac_optarg ;;
1014
1015 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1016 | --syscon | --sysco | --sysc | --sys | --sy)
1017 ac_prev=sysconfdir ;;
1018 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1019 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1020 sysconfdir=$ac_optarg ;;
1021
1022 -target | --target | --targe | --targ | --tar | --ta | --t)
1023 ac_prev=target_alias ;;
1024 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1025 target_alias=$ac_optarg ;;
1026
1027 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1028 verbose=yes ;;
1029
1030 -version | --version | --versio | --versi | --vers | -V)
1031 ac_init_version=: ;;
1032
1033 -with-* | --with-*)
1034 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1035 # Reject names that are not valid shell variable names.
1036 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1037 { echo "$as_me: error: invalid package name: $ac_package" >&2
1038 { (exit 1); exit 1; }; }
1039 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1040 eval with_$ac_package=\$ac_optarg ;;
1041
1042 -without-* | --without-*)
1043 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1044 # Reject names that are not valid shell variable names.
1045 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1046 { echo "$as_me: error: invalid package name: $ac_package" >&2
1047 { (exit 1); exit 1; }; }
1048 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1049 eval with_$ac_package=no ;;
1050
1051 --x)
1052 # Obsolete; use --with-x.
1053 with_x=yes ;;
1054
1055 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1056 | --x-incl | --x-inc | --x-in | --x-i)
1057 ac_prev=x_includes ;;
1058 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1059 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1060 x_includes=$ac_optarg ;;
1061
1062 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1063 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1064 ac_prev=x_libraries ;;
1065 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1066 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1067 x_libraries=$ac_optarg ;;
1068
1069 -*) { echo "$as_me: error: unrecognized option: $ac_option
1070Try \`$0 --help' for more information." >&2
1071 { (exit 1); exit 1; }; }
1072 ;;
1073
1074 *=*)
1075 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1076 # Reject names that are not valid shell variable names.
1077 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1078 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1079 { (exit 1); exit 1; }; }
1080 eval $ac_envvar=\$ac_optarg
1081 export $ac_envvar ;;
1082
1083 *)
1084 # FIXME: should be removed in autoconf 3.0.
1085 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1086 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1087 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1088 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1089 ;;
1090
1091 esac
1092done
1093
1094if test -n "$ac_prev"; then
1095 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1096 { echo "$as_me: error: missing argument to $ac_option" >&2
1097 { (exit 1); exit 1; }; }
1098fi
1099
1100# Be sure to have absolute directory names.
1101for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1102 datadir sysconfdir sharedstatedir localstatedir includedir \
1103 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1104 libdir localedir mandir
1105do
1106 eval ac_val=\$$ac_var
1107 case $ac_val in
1108 [\\/$]* | ?:[\\/]* ) continue;;
1109 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1110 esac
1111 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1112 { (exit 1); exit 1; }; }
1113done
1114
1115# There might be people who depend on the old broken behavior: `$host'
1116# used to hold the argument of --host etc.
1117# FIXME: To remove some day.
1118build=$build_alias
1119host=$host_alias
1120target=$target_alias
1121
1122# FIXME: To remove some day.
1123if test "x$host_alias" != x; then
1124 if test "x$build_alias" = x; then
1125 cross_compiling=maybe
1126 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1127 If a cross compiler is detected then cross compile mode will be used." >&2
1128 elif test "x$build_alias" != "x$host_alias"; then
1129 cross_compiling=yes
1130 fi
1131fi
1132
1133ac_tool_prefix=
1134test -n "$host_alias" && ac_tool_prefix=$host_alias-
1135
1136test "$silent" = yes && exec 6>/dev/null
1137
1138
1139ac_pwd=`pwd` && test -n "$ac_pwd" &&
1140ac_ls_di=`ls -di .` &&
1141ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1142 { echo "$as_me: error: Working directory cannot be determined" >&2
1143 { (exit 1); exit 1; }; }
1144test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1145 { echo "$as_me: error: pwd does not report name of working directory" >&2
1146 { (exit 1); exit 1; }; }
1147
1148
1149# Find the source files, if location was not specified.
1150if test -z "$srcdir"; then
1151 ac_srcdir_defaulted=yes
1152 # Try the directory containing this script, then the parent directory.
1153 ac_confdir=`$as_dirname -- "$0" ||
1154$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1155 X"$0" : 'X\(//\)[^/]' \| \
1156 X"$0" : 'X\(//\)$' \| \
1157 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1158echo X"$0" |
1159 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1160 s//\1/
1161 q
1162 }
1163 /^X\(\/\/\)[^/].*/{
1164 s//\1/
1165 q
1166 }
1167 /^X\(\/\/\)$/{
1168 s//\1/
1169 q
1170 }
1171 /^X\(\/\).*/{
1172 s//\1/
1173 q
1174 }
1175 s/.*/./; q'`
1176 srcdir=$ac_confdir
1177 if test ! -r "$srcdir/$ac_unique_file"; then
1178 srcdir=..
1179 fi
1180else
1181 ac_srcdir_defaulted=no
1182fi
1183if test ! -r "$srcdir/$ac_unique_file"; then
1184 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1185 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1186 { (exit 1); exit 1; }; }
1187fi
1188ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1189ac_abs_confdir=`(
1190 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1191 { (exit 1); exit 1; }; }
1192 pwd)`
1193# When building in place, set srcdir=.
1194if test "$ac_abs_confdir" = "$ac_pwd"; then
1195 srcdir=.
1196fi
1197# Remove unnecessary trailing slashes from srcdir.
1198# Double slashes in file names in object file debugging info
1199# mess up M-x gdb in Emacs.
1200case $srcdir in
1201*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1202esac
1203for ac_var in $ac_precious_vars; do
1204 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1205 eval ac_env_${ac_var}_value=\$${ac_var}
1206 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1207 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1208done
1209
1210#
1211# Report the --help message.
1212#
1213if test "$ac_init_help" = "long"; then
1214 # Omit some internal or obsolete options to make the list less imposing.
1215 # This message is too long to be a string in the A/UX 3.1 sh.
1216 cat <<_ACEOF
1217\`configure' configures this package to adapt to many kinds of systems.
1218
1219Usage: $0 [OPTION]... [VAR=VALUE]...
1220
1221To assign environment variables (e.g., CC, CFLAGS...), specify them as
1222VAR=VALUE. See below for descriptions of some of the useful variables.
1223
1224Defaults for the options are specified in brackets.
1225
1226Configuration:
1227 -h, --help display this help and exit
1228 --help=short display options specific to this package
1229 --help=recursive display the short help of all the included packages
1230 -V, --version display version information and exit
1231 -q, --quiet, --silent do not print \`checking...' messages
1232 --cache-file=FILE cache test results in FILE [disabled]
1233 -C, --config-cache alias for \`--cache-file=config.cache'
1234 -n, --no-create do not create output files
1235 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1236
1237Installation directories:
1238 --prefix=PREFIX install architecture-independent files in PREFIX
1239 [$ac_default_prefix]
1240 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1241 [PREFIX]
1242
1243By default, \`make install' will install all the files in
1244\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1245an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1246for instance \`--prefix=\$HOME'.
1247
1248For better control, use the options below.
1249
1250Fine tuning of the installation directories:
1251 --bindir=DIR user executables [EPREFIX/bin]
1252 --sbindir=DIR system admin executables [EPREFIX/sbin]
1253 --libexecdir=DIR program executables [EPREFIX/libexec]
1254 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1255 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1256 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1257 --libdir=DIR object code libraries [EPREFIX/lib]
1258 --includedir=DIR C header files [PREFIX/include]
1259 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1260 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1261 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1262 --infodir=DIR info documentation [DATAROOTDIR/info]
1263 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1264 --mandir=DIR man documentation [DATAROOTDIR/man]
1265 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1266 --htmldir=DIR html documentation [DOCDIR]
1267 --dvidir=DIR dvi documentation [DOCDIR]
1268 --pdfdir=DIR pdf documentation [DOCDIR]
1269 --psdir=DIR ps documentation [DOCDIR]
1270_ACEOF
1271
1272 cat <<\_ACEOF
1273
1274Program names:
1275 --program-prefix=PREFIX prepend PREFIX to installed program names
1276 --program-suffix=SUFFIX append SUFFIX to installed program names
1277 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1278
1279System types:
1280 --build=BUILD configure for building on BUILD [guessed]
1281 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1282 --target=TARGET configure for building compilers for TARGET [HOST]
1283_ACEOF
1284fi
1285
1286if test -n "$ac_init_help"; then
1287
1288 cat <<\_ACEOF
1289
1290Optional Features:
1291 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1292 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1293 --disable-accentfold Disable Accent Folding for MGPP
1294 --enable-override-longlong
1295 overide use of long long with GCC
1296
1297Optional Packages:
1298 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1299 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1300 --with-unac=dir Use local unac library and headers
1301 --with-dmalloc use dmalloc, as in
1302 ftp://ftp.letters.com/src/dmalloc/dmalloc.tar.gz
1303 --with-regex use older regex in lieu of GNU rx for matching
1304 --with-gnu-readline compile with GNU readline support
1305
1306Some influential environment variables:
1307 CXX C++ compiler command
1308 CXXFLAGS C++ compiler flags
1309 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1310 nonstandard directory <lib dir>
1311 LIBS libraries to pass to the linker, e.g. -l<library>
1312 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1313 you have headers in a nonstandard directory <include dir>
1314 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1315 the first program found out of: `bison -y', `byacc', `yacc'.
1316 YFLAGS The list of arguments that will be passed by default to $YACC.
1317 This script will default YFLAGS to the empty string to avoid a
1318 default value of `-d' given by some make applications.
1319 CC C compiler command
1320 CFLAGS C compiler flags
1321 CPP C preprocessor
1322
1323Use these variables to override the choices made by `configure' or to help
1324it to find libraries and programs with nonstandard names/locations.
1325
1326_ACEOF
1327ac_status=$?
1328fi
1329
1330if test "$ac_init_help" = "recursive"; then
1331 # If there are subdirs, report their specific --help.
1332 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1333 test -d "$ac_dir" || continue
1334 ac_builddir=.
1335
1336case "$ac_dir" in
1337.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1338*)
1339 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1340 # A ".." for each directory in $ac_dir_suffix.
1341 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1342 case $ac_top_builddir_sub in
1343 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1344 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1345 esac ;;
1346esac
1347ac_abs_top_builddir=$ac_pwd
1348ac_abs_builddir=$ac_pwd$ac_dir_suffix
1349# for backward compatibility:
1350ac_top_builddir=$ac_top_build_prefix
1351
1352case $srcdir in
1353 .) # We are building in place.
1354 ac_srcdir=.
1355 ac_top_srcdir=$ac_top_builddir_sub
1356 ac_abs_top_srcdir=$ac_pwd ;;
1357 [\\/]* | ?:[\\/]* ) # Absolute name.
1358 ac_srcdir=$srcdir$ac_dir_suffix;
1359 ac_top_srcdir=$srcdir
1360 ac_abs_top_srcdir=$srcdir ;;
1361 *) # Relative name.
1362 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1363 ac_top_srcdir=$ac_top_build_prefix$srcdir
1364 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1365esac
1366ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1367
1368 cd "$ac_dir" || { ac_status=$?; continue; }
1369 # Check for guested configure.
1370 if test -f "$ac_srcdir/configure.gnu"; then
1371 echo &&
1372 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1373 elif test -f "$ac_srcdir/configure"; then
1374 echo &&
1375 $SHELL "$ac_srcdir/configure" --help=recursive
1376 else
1377 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1378 fi || ac_status=$?
1379 cd "$ac_pwd" || { ac_status=$?; break; }
1380 done
1381fi
1382
1383test -n "$ac_init_help" && exit $ac_status
1384if $ac_init_version; then
1385 cat <<\_ACEOF
1386configure
1387generated by GNU Autoconf 2.61
1388
1389Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
13902002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1391This configure script is free software; the Free Software Foundation
1392gives unlimited permission to copy, distribute and modify it.
1393_ACEOF
1394 exit
1395fi
1396cat >config.log <<_ACEOF
1397This file contains any messages produced by compilers while
1398running configure, to aid debugging if configure makes a mistake.
1399
1400It was created by $as_me, which was
1401generated by GNU Autoconf 2.61. Invocation command line was
1402
1403 $ $0 $@
1404
1405_ACEOF
1406exec 5>>config.log
1407{
1408cat <<_ASUNAME
1409## --------- ##
1410## Platform. ##
1411## --------- ##
1412
1413hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1414uname -m = `(uname -m) 2>/dev/null || echo unknown`
1415uname -r = `(uname -r) 2>/dev/null || echo unknown`
1416uname -s = `(uname -s) 2>/dev/null || echo unknown`
1417uname -v = `(uname -v) 2>/dev/null || echo unknown`
1418
1419/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1420/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1421
1422/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1423/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1424/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1425/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1426/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1427/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1428/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1429
1430_ASUNAME
1431
1432as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1433for as_dir in $PATH
1434do
1435 IFS=$as_save_IFS
1436 test -z "$as_dir" && as_dir=.
1437 echo "PATH: $as_dir"
1438done
1439IFS=$as_save_IFS
1440
1441} >&5
1442
1443cat >&5 <<_ACEOF
1444
1445
1446## ----------- ##
1447## Core tests. ##
1448## ----------- ##
1449
1450_ACEOF
1451
1452
1453# Keep a trace of the command line.
1454# Strip out --no-create and --no-recursion so they do not pile up.
1455# Strip out --silent because we don't want to record it for future runs.
1456# Also quote any args containing shell meta-characters.
1457# Make two passes to allow for proper duplicate-argument suppression.
1458ac_configure_args=
1459ac_configure_args0=
1460ac_configure_args1=
1461ac_must_keep_next=false
1462for ac_pass in 1 2
1463do
1464 for ac_arg
1465 do
1466 case $ac_arg in
1467 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1468 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1469 | -silent | --silent | --silen | --sile | --sil)
1470 continue ;;
1471 *\'*)
1472 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1473 esac
1474 case $ac_pass in
1475 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1476 2)
1477 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1478 if test $ac_must_keep_next = true; then
1479 ac_must_keep_next=false # Got value, back to normal.
1480 else
1481 case $ac_arg in
1482 *=* | --config-cache | -C | -disable-* | --disable-* \
1483 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1484 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1485 | -with-* | --with-* | -without-* | --without-* | --x)
1486 case "$ac_configure_args0 " in
1487 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1488 esac
1489 ;;
1490 -* ) ac_must_keep_next=true ;;
1491 esac
1492 fi
1493 ac_configure_args="$ac_configure_args '$ac_arg'"
1494 ;;
1495 esac
1496 done
1497done
1498$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1499$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1500
1501# When interrupted or exit'd, cleanup temporary files, and complete
1502# config.log. We remove comments because anyway the quotes in there
1503# would cause problems or look ugly.
1504# WARNING: Use '\'' to represent an apostrophe within the trap.
1505# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1506trap 'exit_status=$?
1507 # Save into config.log some information that might help in debugging.
1508 {
1509 echo
1510
1511 cat <<\_ASBOX
1512## ---------------- ##
1513## Cache variables. ##
1514## ---------------- ##
1515_ASBOX
1516 echo
1517 # The following way of writing the cache mishandles newlines in values,
1518(
1519 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1520 eval ac_val=\$$ac_var
1521 case $ac_val in #(
1522 *${as_nl}*)
1523 case $ac_var in #(
1524 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1525echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1526 esac
1527 case $ac_var in #(
1528 _ | IFS | as_nl) ;; #(
1529 *) $as_unset $ac_var ;;
1530 esac ;;
1531 esac
1532 done
1533 (set) 2>&1 |
1534 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1535 *${as_nl}ac_space=\ *)
1536 sed -n \
1537 "s/'\''/'\''\\\\'\'''\''/g;
1538 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1539 ;; #(
1540 *)
1541 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1542 ;;
1543 esac |
1544 sort
1545)
1546 echo
1547
1548 cat <<\_ASBOX
1549## ----------------- ##
1550## Output variables. ##
1551## ----------------- ##
1552_ASBOX
1553 echo
1554 for ac_var in $ac_subst_vars
1555 do
1556 eval ac_val=\$$ac_var
1557 case $ac_val in
1558 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1559 esac
1560 echo "$ac_var='\''$ac_val'\''"
1561 done | sort
1562 echo
1563
1564 if test -n "$ac_subst_files"; then
1565 cat <<\_ASBOX
1566## ------------------- ##
1567## File substitutions. ##
1568## ------------------- ##
1569_ASBOX
1570 echo
1571 for ac_var in $ac_subst_files
1572 do
1573 eval ac_val=\$$ac_var
1574 case $ac_val in
1575 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1576 esac
1577 echo "$ac_var='\''$ac_val'\''"
1578 done | sort
1579 echo
1580 fi
1581
1582 if test -s confdefs.h; then
1583 cat <<\_ASBOX
1584## ----------- ##
1585## confdefs.h. ##
1586## ----------- ##
1587_ASBOX
1588 echo
1589 cat confdefs.h
1590 echo
1591 fi
1592 test "$ac_signal" != 0 &&
1593 echo "$as_me: caught signal $ac_signal"
1594 echo "$as_me: exit $exit_status"
1595 } >&5
1596 rm -f core *.core core.conftest.* &&
1597 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1598 exit $exit_status
1599' 0
1600for ac_signal in 1 2 13 15; do
1601 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1602done
1603ac_signal=0
1604
1605# confdefs.h avoids OS command line length limits that DEFS can exceed.
1606rm -f -r conftest* confdefs.h
1607
1608# Predefined preprocessor variables.
1609
1610cat >>confdefs.h <<_ACEOF
1611#define PACKAGE_NAME "$PACKAGE_NAME"
1612_ACEOF
1613
1614
1615cat >>confdefs.h <<_ACEOF
1616#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1617_ACEOF
1618
1619
1620cat >>confdefs.h <<_ACEOF
1621#define PACKAGE_VERSION "$PACKAGE_VERSION"
1622_ACEOF
1623
1624
1625cat >>confdefs.h <<_ACEOF
1626#define PACKAGE_STRING "$PACKAGE_STRING"
1627_ACEOF
1628
1629
1630cat >>confdefs.h <<_ACEOF
1631#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1632_ACEOF
1633
1634
1635# Let the site file select an alternate cache file if it wants to.
1636# Prefer explicitly selected file to automatically selected ones.
1637if test -n "$CONFIG_SITE"; then
1638 set x "$CONFIG_SITE"
1639elif test "x$prefix" != xNONE; then
1640 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1641else
1642 set x "$ac_default_prefix/share/config.site" \
1643 "$ac_default_prefix/etc/config.site"
1644fi
1645shift
1646for ac_site_file
1647do
1648 if test -r "$ac_site_file"; then
1649 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1650echo "$as_me: loading site script $ac_site_file" >&6;}
1651 sed 's/^/| /' "$ac_site_file" >&5
1652 . "$ac_site_file"
1653 fi
1654done
1655
1656if test -r "$cache_file"; then
1657 # Some versions of bash will fail to source /dev/null (special
1658 # files actually), so we avoid doing that.
1659 if test -f "$cache_file"; then
1660 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1661echo "$as_me: loading cache $cache_file" >&6;}
1662 case $cache_file in
1663 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1664 *) . "./$cache_file";;
1665 esac
1666 fi
1667else
1668 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1669echo "$as_me: creating cache $cache_file" >&6;}
1670 >$cache_file
1671fi
1672
1673# Check that the precious variables saved in the cache have kept the same
1674# value.
1675ac_cache_corrupted=false
1676for ac_var in $ac_precious_vars; do
1677 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1678 eval ac_new_set=\$ac_env_${ac_var}_set
1679 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1680 eval ac_new_val=\$ac_env_${ac_var}_value
1681 case $ac_old_set,$ac_new_set in
1682 set,)
1683 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1684echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1685 ac_cache_corrupted=: ;;
1686 ,set)
1687 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1688echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1689 ac_cache_corrupted=: ;;
1690 ,);;
1691 *)
1692 if test "x$ac_old_val" != "x$ac_new_val"; then
1693 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1694echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1695 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1696echo "$as_me: former value: $ac_old_val" >&2;}
1697 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1698echo "$as_me: current value: $ac_new_val" >&2;}
1699 ac_cache_corrupted=:
1700 fi;;
1701 esac
1702 # Pass precious variables to config.status.
1703 if test "$ac_new_set" = set; then
1704 case $ac_new_val in
1705 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1706 *) ac_arg=$ac_var=$ac_new_val ;;
1707 esac
1708 case " $ac_configure_args " in
1709 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1710 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1711 esac
1712 fi
1713done
1714if $ac_cache_corrupted; then
1715 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1716echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1717 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1718echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1719 { (exit 1); exit 1; }; }
1720fi
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738ac_ext=c
1739ac_cpp='$CPP $CPPFLAGS'
1740ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1741ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1742ac_compiler_gnu=$ac_cv_c_compiler_gnu
1743
1744
1745ac_config_headers="$ac_config_headers config.h"
1746
1747
1748ac_aux_dir=
1749for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1750 if test -f "$ac_dir/install-sh"; then
1751 ac_aux_dir=$ac_dir
1752 ac_install_sh="$ac_aux_dir/install-sh -c"
1753 break
1754 elif test -f "$ac_dir/install.sh"; then
1755 ac_aux_dir=$ac_dir
1756 ac_install_sh="$ac_aux_dir/install.sh -c"
1757 break
1758 elif test -f "$ac_dir/shtool"; then
1759 ac_aux_dir=$ac_dir
1760 ac_install_sh="$ac_aux_dir/shtool install -c"
1761 break
1762 fi
1763done
1764if test -z "$ac_aux_dir"; then
1765 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1766echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1767 { (exit 1); exit 1; }; }
1768fi
1769
1770# These three variables are undocumented and unsupported,
1771# and are intended to be withdrawn in a future Autoconf release.
1772# They can cause serious problems if a builder's source tree is in a directory
1773# whose full name contains unusual characters.
1774ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1775ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1776ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1777
1778
1779# Make sure we can run config.sub.
1780$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1781 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1782echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1783 { (exit 1); exit 1; }; }
1784
1785{ echo "$as_me:$LINENO: checking build system type" >&5
1786echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1787if test "${ac_cv_build+set}" = set; then
1788 echo $ECHO_N "(cached) $ECHO_C" >&6
1789else
1790 ac_build_alias=$build_alias
1791test "x$ac_build_alias" = x &&
1792 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1793test "x$ac_build_alias" = x &&
1794 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1795echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1796 { (exit 1); exit 1; }; }
1797ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1798 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1799echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1800 { (exit 1); exit 1; }; }
1801
1802fi
1803{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1804echo "${ECHO_T}$ac_cv_build" >&6; }
1805case $ac_cv_build in
1806*-*-*) ;;
1807*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1808echo "$as_me: error: invalid value of canonical build" >&2;}
1809 { (exit 1); exit 1; }; };;
1810esac
1811build=$ac_cv_build
1812ac_save_IFS=$IFS; IFS='-'
1813set x $ac_cv_build
1814shift
1815build_cpu=$1
1816build_vendor=$2
1817shift; shift
1818# Remember, the first character of IFS is used to create $*,
1819# except with old shells:
1820build_os=$*
1821IFS=$ac_save_IFS
1822case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1823
1824
1825{ echo "$as_me:$LINENO: checking host system type" >&5
1826echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1827if test "${ac_cv_host+set}" = set; then
1828 echo $ECHO_N "(cached) $ECHO_C" >&6
1829else
1830 if test "x$host_alias" = x; then
1831 ac_cv_host=$ac_cv_build
1832else
1833 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1834 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1835echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1836 { (exit 1); exit 1; }; }
1837fi
1838
1839fi
1840{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1841echo "${ECHO_T}$ac_cv_host" >&6; }
1842case $ac_cv_host in
1843*-*-*) ;;
1844*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1845echo "$as_me: error: invalid value of canonical host" >&2;}
1846 { (exit 1); exit 1; }; };;
1847esac
1848host=$ac_cv_host
1849ac_save_IFS=$IFS; IFS='-'
1850set x $ac_cv_host
1851shift
1852host_cpu=$1
1853host_vendor=$2
1854shift; shift
1855# Remember, the first character of IFS is used to create $*,
1856# except with old shells:
1857host_os=$*
1858IFS=$ac_save_IFS
1859case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1860
1861
1862{ echo "$as_me:$LINENO: checking target system type" >&5
1863echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
1864if test "${ac_cv_target+set}" = set; then
1865 echo $ECHO_N "(cached) $ECHO_C" >&6
1866else
1867 if test "x$target_alias" = x; then
1868 ac_cv_target=$ac_cv_host
1869else
1870 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
1871 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
1872echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
1873 { (exit 1); exit 1; }; }
1874fi
1875
1876fi
1877{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1878echo "${ECHO_T}$ac_cv_target" >&6; }
1879case $ac_cv_target in
1880*-*-*) ;;
1881*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
1882echo "$as_me: error: invalid value of canonical target" >&2;}
1883 { (exit 1); exit 1; }; };;
1884esac
1885target=$ac_cv_target
1886ac_save_IFS=$IFS; IFS='-'
1887set x $ac_cv_target
1888shift
1889target_cpu=$1
1890target_vendor=$2
1891shift; shift
1892# Remember, the first character of IFS is used to create $*,
1893# except with old shells:
1894target_os=$*
1895IFS=$ac_save_IFS
1896case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
1897
1898
1899# The aliases save the names the user supplied, while $host etc.
1900# will get canonicalized.
1901test -n "$target_alias" &&
1902 test "$program_prefix$program_suffix$program_transform_name" = \
1903 NONENONEs,x,x, &&
1904 program_prefix=${target_alias}-
1905test "$program_prefix" != NONE &&
1906 program_transform_name="s&^&$program_prefix&;$program_transform_name"
1907# Use a double $ so make ignores it.
1908test "$program_suffix" != NONE &&
1909 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
1910# Double any \ or $. echo might interpret backslashes.
1911# By default was `s,x,x', remove it if useless.
1912cat <<\_ACEOF >conftest.sed
1913s/[\\$]/&&/g;s/;s,x,x,$//
1914_ACEOF
1915program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1916rm -f conftest.sed
1917
1918
1919PACKAGE=mgpp
1920VERSION=1.3
1921
1922cat >>confdefs.h <<_ACEOF
1923#define PACKAGE "$PACKAGE"
1924_ACEOF
1925
1926cat >>confdefs.h <<_ACEOF
1927#define VERSION "$VERSION"
1928_ACEOF
1929
1930
1931
1932
1933
1934{ echo "$as_me:$LINENO: checking to see if architecture is 64-bit" >&5
1935echo $ECHO_N "checking to see if architecture is 64-bit... $ECHO_C" >&6; }
1936arch_64bit=no
1937case "$host_cpu" in
1938x86_64) arch_64bit=yes ;;
1939esac
1940
1941if test "$arch_64bit" = yes; then
1942 { echo "$as_me:$LINENO: result: yes" >&5
1943echo "${ECHO_T}yes" >&6; }
1944 if test -z "$COMPAT32BITFLAGS" ; then
1945 COMPAT32BITFLAGS="-m32"
1946 fi
1947else
1948 { echo "$as_me:$LINENO: result: no" >&5
1949echo "${ECHO_T}no" >&6; }
1950 if test -z "$COMPAT32BITFLAGS" ; then
1951 COMPAT32BITFLAGS=
1952 fi
1953fi
1954
1955
1956# Check whether --enable-accentfold was given.
1957if test "${enable_accentfold+set}" = set; then
1958 enableval=$enable_accentfold; ENABLE_ACCENTFOLD=0
1959else
1960 ENABLE_ACCENTFOLD=1
1961fi
1962
1963cat >>confdefs.h <<\_ACEOF
1964#define ENABLE_ACCENTFOLD $ENABLE_ACCENTFOLD
1965_ACEOF
1966
1967
1968
1969ac_ext=cpp
1970ac_cpp='$CXXCPP $CPPFLAGS'
1971ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1972ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1973ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1974if test -z "$CXX"; then
1975 if test -n "$CCC"; then
1976 CXX=$CCC
1977 else
1978 if test -n "$ac_tool_prefix"; then
1979 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
1980 do
1981 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1982set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1983{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1984echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1985if test "${ac_cv_prog_CXX+set}" = set; then
1986 echo $ECHO_N "(cached) $ECHO_C" >&6
1987else
1988 if test -n "$CXX"; then
1989 ac_cv_prog_CXX="$CXX" # Let the user override the test.
1990else
1991as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1992for as_dir in $PATH
1993do
1994 IFS=$as_save_IFS
1995 test -z "$as_dir" && as_dir=.
1996 for ac_exec_ext in '' $ac_executable_extensions; do
1997 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1998 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
1999 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2000 break 2
2001 fi
2002done
2003done
2004IFS=$as_save_IFS
2005
2006fi
2007fi
2008CXX=$ac_cv_prog_CXX
2009if test -n "$CXX"; then
2010 { echo "$as_me:$LINENO: result: $CXX" >&5
2011echo "${ECHO_T}$CXX" >&6; }
2012else
2013 { echo "$as_me:$LINENO: result: no" >&5
2014echo "${ECHO_T}no" >&6; }
2015fi
2016
2017
2018 test -n "$CXX" && break
2019 done
2020fi
2021if test -z "$CXX"; then
2022 ac_ct_CXX=$CXX
2023 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2024do
2025 # Extract the first word of "$ac_prog", so it can be a program name with args.
2026set dummy $ac_prog; ac_word=$2
2027{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2028echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2029if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2030 echo $ECHO_N "(cached) $ECHO_C" >&6
2031else
2032 if test -n "$ac_ct_CXX"; then
2033 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2034else
2035as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2036for as_dir in $PATH
2037do
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_ac_ct_CXX="$ac_prog"
2043 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2044 break 2
2045 fi
2046done
2047done
2048IFS=$as_save_IFS
2049
2050fi
2051fi
2052ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2053if test -n "$ac_ct_CXX"; then
2054 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2055echo "${ECHO_T}$ac_ct_CXX" >&6; }
2056else
2057 { echo "$as_me:$LINENO: result: no" >&5
2058echo "${ECHO_T}no" >&6; }
2059fi
2060
2061
2062 test -n "$ac_ct_CXX" && break
2063done
2064
2065 if test "x$ac_ct_CXX" = x; then
2066 CXX="g++"
2067 else
2068 case $cross_compiling:$ac_tool_warned in
2069yes:)
2070{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2071whose name does not start with the host triplet. If you think this
2072configuration is useful to you, please write to [email protected]." >&5
2073echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2074whose name does not start with the host triplet. If you think this
2075configuration is useful to you, please write to [email protected]." >&2;}
2076ac_tool_warned=yes ;;
2077esac
2078 CXX=$ac_ct_CXX
2079 fi
2080fi
2081
2082 fi
2083fi
2084# Provide some information about the compiler.
2085echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2086ac_compiler=`set X $ac_compile; echo $2`
2087{ (ac_try="$ac_compiler --version >&5"
2088case "(($ac_try" in
2089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2090 *) ac_try_echo=$ac_try;;
2091esac
2092eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2093 (eval "$ac_compiler --version >&5") 2>&5
2094 ac_status=$?
2095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2096 (exit $ac_status); }
2097{ (ac_try="$ac_compiler -v >&5"
2098case "(($ac_try" in
2099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2100 *) ac_try_echo=$ac_try;;
2101esac
2102eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2103 (eval "$ac_compiler -v >&5") 2>&5
2104 ac_status=$?
2105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2106 (exit $ac_status); }
2107{ (ac_try="$ac_compiler -V >&5"
2108case "(($ac_try" in
2109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2110 *) ac_try_echo=$ac_try;;
2111esac
2112eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2113 (eval "$ac_compiler -V >&5") 2>&5
2114 ac_status=$?
2115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2116 (exit $ac_status); }
2117
2118cat >conftest.$ac_ext <<_ACEOF
2119/* confdefs.h. */
2120_ACEOF
2121cat confdefs.h >>conftest.$ac_ext
2122cat >>conftest.$ac_ext <<_ACEOF
2123/* end confdefs.h. */
2124
2125int
2126main ()
2127{
2128
2129 ;
2130 return 0;
2131}
2132_ACEOF
2133ac_clean_files_save=$ac_clean_files
2134ac_clean_files="$ac_clean_files a.out a.exe b.out"
2135# Try to create an executable without -o first, disregard a.out.
2136# It will help us diagnose broken compilers, and finding out an intuition
2137# of exeext.
2138{ echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
2139echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6; }
2140ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2141#
2142# List of possible output files, starting from the most likely.
2143# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2144# only as a last resort. b.out is created by i960 compilers.
2145ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2146#
2147# The IRIX 6 linker writes into existing files which may not be
2148# executable, retaining their permissions. Remove them first so a
2149# subsequent execution test works.
2150ac_rmfiles=
2151for ac_file in $ac_files
2152do
2153 case $ac_file in
2154 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2155 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2156 esac
2157done
2158rm -f $ac_rmfiles
2159
2160if { (ac_try="$ac_link_default"
2161case "(($ac_try" in
2162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2163 *) ac_try_echo=$ac_try;;
2164esac
2165eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2166 (eval "$ac_link_default") 2>&5
2167 ac_status=$?
2168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2169 (exit $ac_status); }; then
2170 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2171# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2172# in a Makefile. We should not override ac_cv_exeext if it was cached,
2173# so that the user can short-circuit this test for compilers unknown to
2174# Autoconf.
2175for ac_file in $ac_files ''
2176do
2177 test -f "$ac_file" || continue
2178 case $ac_file in
2179 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2180 ;;
2181 [ab].out )
2182 # We found the default executable, but exeext='' is most
2183 # certainly right.
2184 break;;
2185 *.* )
2186 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2187 then :; else
2188 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2189 fi
2190 # We set ac_cv_exeext here because the later test for it is not
2191 # safe: cross compilers may not add the suffix if given an `-o'
2192 # argument, so we may need to know it at that point already.
2193 # Even if this section looks crufty: it has the advantage of
2194 # actually working.
2195 break;;
2196 * )
2197 break;;
2198 esac
2199done
2200test "$ac_cv_exeext" = no && ac_cv_exeext=
2201
2202else
2203 ac_file=''
2204fi
2205
2206{ echo "$as_me:$LINENO: result: $ac_file" >&5
2207echo "${ECHO_T}$ac_file" >&6; }
2208if test -z "$ac_file"; then
2209 echo "$as_me: failed program was:" >&5
2210sed 's/^/| /' conftest.$ac_ext >&5
2211
2212{ { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2213See \`config.log' for more details." >&5
2214echo "$as_me: error: C++ compiler cannot create executables
2215See \`config.log' for more details." >&2;}
2216 { (exit 77); exit 77; }; }
2217fi
2218
2219ac_exeext=$ac_cv_exeext
2220
2221# Check that the compiler produces executables we can run. If not, either
2222# the compiler is broken, or we cross compile.
2223{ echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2224echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6; }
2225# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2226# If not cross compiling, check that we can run a simple program.
2227if test "$cross_compiling" != yes; then
2228 if { ac_try='./$ac_file'
2229 { (case "(($ac_try" in
2230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2231 *) ac_try_echo=$ac_try;;
2232esac
2233eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2234 (eval "$ac_try") 2>&5
2235 ac_status=$?
2236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2237 (exit $ac_status); }; }; then
2238 cross_compiling=no
2239 else
2240 if test "$cross_compiling" = maybe; then
2241 cross_compiling=yes
2242 else
2243 { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2244If you meant to cross compile, use \`--host'.
2245See \`config.log' for more details." >&5
2246echo "$as_me: error: cannot run C++ compiled programs.
2247If you meant to cross compile, use \`--host'.
2248See \`config.log' for more details." >&2;}
2249 { (exit 1); exit 1; }; }
2250 fi
2251 fi
2252fi
2253{ echo "$as_me:$LINENO: result: yes" >&5
2254echo "${ECHO_T}yes" >&6; }
2255
2256rm -f a.out a.exe conftest$ac_cv_exeext b.out
2257ac_clean_files=$ac_clean_files_save
2258# Check that the compiler produces executables we can run. If not, either
2259# the compiler is broken, or we cross compile.
2260{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2261echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2262{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2263echo "${ECHO_T}$cross_compiling" >&6; }
2264
2265{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2266echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2267if { (ac_try="$ac_link"
2268case "(($ac_try" in
2269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2270 *) ac_try_echo=$ac_try;;
2271esac
2272eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2273 (eval "$ac_link") 2>&5
2274 ac_status=$?
2275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2276 (exit $ac_status); }; then
2277 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2278# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2279# work properly (i.e., refer to `conftest.exe'), while it won't with
2280# `rm'.
2281for ac_file in conftest.exe conftest conftest.*; do
2282 test -f "$ac_file" || continue
2283 case $ac_file in
2284 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2285 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2286 break;;
2287 * ) break;;
2288 esac
2289done
2290else
2291 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2292See \`config.log' for more details." >&5
2293echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2294See \`config.log' for more details." >&2;}
2295 { (exit 1); exit 1; }; }
2296fi
2297
2298rm -f conftest$ac_cv_exeext
2299{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2300echo "${ECHO_T}$ac_cv_exeext" >&6; }
2301
2302rm -f conftest.$ac_ext
2303EXEEXT=$ac_cv_exeext
2304ac_exeext=$EXEEXT
2305{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2306echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2307if test "${ac_cv_objext+set}" = set; then
2308 echo $ECHO_N "(cached) $ECHO_C" >&6
2309else
2310 cat >conftest.$ac_ext <<_ACEOF
2311/* confdefs.h. */
2312_ACEOF
2313cat confdefs.h >>conftest.$ac_ext
2314cat >>conftest.$ac_ext <<_ACEOF
2315/* end confdefs.h. */
2316
2317int
2318main ()
2319{
2320
2321 ;
2322 return 0;
2323}
2324_ACEOF
2325rm -f conftest.o conftest.obj
2326if { (ac_try="$ac_compile"
2327case "(($ac_try" in
2328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2329 *) ac_try_echo=$ac_try;;
2330esac
2331eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2332 (eval "$ac_compile") 2>&5
2333 ac_status=$?
2334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2335 (exit $ac_status); }; then
2336 for ac_file in conftest.o conftest.obj conftest.*; do
2337 test -f "$ac_file" || continue;
2338 case $ac_file in
2339 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2340 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2341 break;;
2342 esac
2343done
2344else
2345 echo "$as_me: failed program was:" >&5
2346sed 's/^/| /' conftest.$ac_ext >&5
2347
2348{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2349See \`config.log' for more details." >&5
2350echo "$as_me: error: cannot compute suffix of object files: cannot compile
2351See \`config.log' for more details." >&2;}
2352 { (exit 1); exit 1; }; }
2353fi
2354
2355rm -f conftest.$ac_cv_objext conftest.$ac_ext
2356fi
2357{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2358echo "${ECHO_T}$ac_cv_objext" >&6; }
2359OBJEXT=$ac_cv_objext
2360ac_objext=$OBJEXT
2361{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2362echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2363if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2364 echo $ECHO_N "(cached) $ECHO_C" >&6
2365else
2366 cat >conftest.$ac_ext <<_ACEOF
2367/* confdefs.h. */
2368_ACEOF
2369cat confdefs.h >>conftest.$ac_ext
2370cat >>conftest.$ac_ext <<_ACEOF
2371/* end confdefs.h. */
2372
2373int
2374main ()
2375{
2376#ifndef __GNUC__
2377 choke me
2378#endif
2379
2380 ;
2381 return 0;
2382}
2383_ACEOF
2384rm -f conftest.$ac_objext
2385if { (ac_try="$ac_compile"
2386case "(($ac_try" in
2387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2388 *) ac_try_echo=$ac_try;;
2389esac
2390eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2391 (eval "$ac_compile") 2>conftest.er1
2392 ac_status=$?
2393 grep -v '^ *+' conftest.er1 >conftest.err
2394 rm -f conftest.er1
2395 cat conftest.err >&5
2396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2397 (exit $ac_status); } && {
2398 test -z "$ac_cxx_werror_flag" ||
2399 test ! -s conftest.err
2400 } && test -s conftest.$ac_objext; then
2401 ac_compiler_gnu=yes
2402else
2403 echo "$as_me: failed program was:" >&5
2404sed 's/^/| /' conftest.$ac_ext >&5
2405
2406 ac_compiler_gnu=no
2407fi
2408
2409rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2410ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2411
2412fi
2413{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2414echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
2415GXX=`test $ac_compiler_gnu = yes && echo yes`
2416ac_test_CXXFLAGS=${CXXFLAGS+set}
2417ac_save_CXXFLAGS=$CXXFLAGS
2418{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2419echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
2420if test "${ac_cv_prog_cxx_g+set}" = set; then
2421 echo $ECHO_N "(cached) $ECHO_C" >&6
2422else
2423 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
2424 ac_cxx_werror_flag=yes
2425 ac_cv_prog_cxx_g=no
2426 CXXFLAGS="-g"
2427 cat >conftest.$ac_ext <<_ACEOF
2428/* confdefs.h. */
2429_ACEOF
2430cat confdefs.h >>conftest.$ac_ext
2431cat >>conftest.$ac_ext <<_ACEOF
2432/* end confdefs.h. */
2433
2434int
2435main ()
2436{
2437
2438 ;
2439 return 0;
2440}
2441_ACEOF
2442rm -f conftest.$ac_objext
2443if { (ac_try="$ac_compile"
2444case "(($ac_try" in
2445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2446 *) ac_try_echo=$ac_try;;
2447esac
2448eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2449 (eval "$ac_compile") 2>conftest.er1
2450 ac_status=$?
2451 grep -v '^ *+' conftest.er1 >conftest.err
2452 rm -f conftest.er1
2453 cat conftest.err >&5
2454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2455 (exit $ac_status); } && {
2456 test -z "$ac_cxx_werror_flag" ||
2457 test ! -s conftest.err
2458 } && test -s conftest.$ac_objext; then
2459 ac_cv_prog_cxx_g=yes
2460else
2461 echo "$as_me: failed program was:" >&5
2462sed 's/^/| /' conftest.$ac_ext >&5
2463
2464 CXXFLAGS=""
2465 cat >conftest.$ac_ext <<_ACEOF
2466/* confdefs.h. */
2467_ACEOF
2468cat confdefs.h >>conftest.$ac_ext
2469cat >>conftest.$ac_ext <<_ACEOF
2470/* end confdefs.h. */
2471
2472int
2473main ()
2474{
2475
2476 ;
2477 return 0;
2478}
2479_ACEOF
2480rm -f conftest.$ac_objext
2481if { (ac_try="$ac_compile"
2482case "(($ac_try" in
2483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2484 *) ac_try_echo=$ac_try;;
2485esac
2486eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2487 (eval "$ac_compile") 2>conftest.er1
2488 ac_status=$?
2489 grep -v '^ *+' conftest.er1 >conftest.err
2490 rm -f conftest.er1
2491 cat conftest.err >&5
2492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2493 (exit $ac_status); } && {
2494 test -z "$ac_cxx_werror_flag" ||
2495 test ! -s conftest.err
2496 } && test -s conftest.$ac_objext; then
2497 :
2498else
2499 echo "$as_me: failed program was:" >&5
2500sed 's/^/| /' conftest.$ac_ext >&5
2501
2502 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
2503 CXXFLAGS="-g"
2504 cat >conftest.$ac_ext <<_ACEOF
2505/* confdefs.h. */
2506_ACEOF
2507cat confdefs.h >>conftest.$ac_ext
2508cat >>conftest.$ac_ext <<_ACEOF
2509/* end confdefs.h. */
2510
2511int
2512main ()
2513{
2514
2515 ;
2516 return 0;
2517}
2518_ACEOF
2519rm -f conftest.$ac_objext
2520if { (ac_try="$ac_compile"
2521case "(($ac_try" in
2522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2523 *) ac_try_echo=$ac_try;;
2524esac
2525eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2526 (eval "$ac_compile") 2>conftest.er1
2527 ac_status=$?
2528 grep -v '^ *+' conftest.er1 >conftest.err
2529 rm -f conftest.er1
2530 cat conftest.err >&5
2531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2532 (exit $ac_status); } && {
2533 test -z "$ac_cxx_werror_flag" ||
2534 test ! -s conftest.err
2535 } && test -s conftest.$ac_objext; then
2536 ac_cv_prog_cxx_g=yes
2537else
2538 echo "$as_me: failed program was:" >&5
2539sed 's/^/| /' conftest.$ac_ext >&5
2540
2541
2542fi
2543
2544rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2545fi
2546
2547rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2548fi
2549
2550rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2551 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
2552fi
2553{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2554echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
2555if test "$ac_test_CXXFLAGS" = set; then
2556 CXXFLAGS=$ac_save_CXXFLAGS
2557elif test $ac_cv_prog_cxx_g = yes; then
2558 if test "$GXX" = yes; then
2559 CXXFLAGS="-g -O2"
2560 else
2561 CXXFLAGS="-g"
2562 fi
2563else
2564 if test "$GXX" = yes; then
2565 CXXFLAGS="-O2"
2566 else
2567 CXXFLAGS=
2568 fi
2569fi
2570ac_ext=c
2571ac_cpp='$CPP $CPPFLAGS'
2572ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2573ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2574ac_compiler_gnu=$ac_cv_c_compiler_gnu
2575
2576for ac_prog in gawk mawk nawk awk
2577do
2578 # Extract the first word of "$ac_prog", so it can be a program name with args.
2579set dummy $ac_prog; ac_word=$2
2580{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2581echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2582if test "${ac_cv_prog_AWK+set}" = set; then
2583 echo $ECHO_N "(cached) $ECHO_C" >&6
2584else
2585 if test -n "$AWK"; then
2586 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2587else
2588as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2589for as_dir in $PATH
2590do
2591 IFS=$as_save_IFS
2592 test -z "$as_dir" && as_dir=.
2593 for ac_exec_ext in '' $ac_executable_extensions; do
2594 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2595 ac_cv_prog_AWK="$ac_prog"
2596 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2597 break 2
2598 fi
2599done
2600done
2601IFS=$as_save_IFS
2602
2603fi
2604fi
2605AWK=$ac_cv_prog_AWK
2606if test -n "$AWK"; then
2607 { echo "$as_me:$LINENO: result: $AWK" >&5
2608echo "${ECHO_T}$AWK" >&6; }
2609else
2610 { echo "$as_me:$LINENO: result: no" >&5
2611echo "${ECHO_T}no" >&6; }
2612fi
2613
2614
2615 test -n "$AWK" && break
2616done
2617
2618for ac_prog in 'bison -y' byacc
2619do
2620 # Extract the first word of "$ac_prog", so it can be a program name with args.
2621set dummy $ac_prog; ac_word=$2
2622{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2623echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2624if test "${ac_cv_prog_YACC+set}" = set; then
2625 echo $ECHO_N "(cached) $ECHO_C" >&6
2626else
2627 if test -n "$YACC"; then
2628 ac_cv_prog_YACC="$YACC" # Let the user override the test.
2629else
2630as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2631for as_dir in $PATH
2632do
2633 IFS=$as_save_IFS
2634 test -z "$as_dir" && as_dir=.
2635 for ac_exec_ext in '' $ac_executable_extensions; do
2636 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2637 ac_cv_prog_YACC="$ac_prog"
2638 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2639 break 2
2640 fi
2641done
2642done
2643IFS=$as_save_IFS
2644
2645fi
2646fi
2647YACC=$ac_cv_prog_YACC
2648if test -n "$YACC"; then
2649 { echo "$as_me:$LINENO: result: $YACC" >&5
2650echo "${ECHO_T}$YACC" >&6; }
2651else
2652 { echo "$as_me:$LINENO: result: no" >&5
2653echo "${ECHO_T}no" >&6; }
2654fi
2655
2656
2657 test -n "$YACC" && break
2658done
2659test -n "$YACC" || YACC="yacc"
2660
2661ac_ext=c
2662ac_cpp='$CPP $CPPFLAGS'
2663ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2664ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2665ac_compiler_gnu=$ac_cv_c_compiler_gnu
2666if test -n "$ac_tool_prefix"; then
2667 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2668set dummy ${ac_tool_prefix}gcc; ac_word=$2
2669{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2670echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2671if test "${ac_cv_prog_CC+set}" = set; then
2672 echo $ECHO_N "(cached) $ECHO_C" >&6
2673else
2674 if test -n "$CC"; then
2675 ac_cv_prog_CC="$CC" # Let the user override the test.
2676else
2677as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2678for as_dir in $PATH
2679do
2680 IFS=$as_save_IFS
2681 test -z "$as_dir" && as_dir=.
2682 for ac_exec_ext in '' $ac_executable_extensions; do
2683 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2684 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2685 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2686 break 2
2687 fi
2688done
2689done
2690IFS=$as_save_IFS
2691
2692fi
2693fi
2694CC=$ac_cv_prog_CC
2695if test -n "$CC"; then
2696 { echo "$as_me:$LINENO: result: $CC" >&5
2697echo "${ECHO_T}$CC" >&6; }
2698else
2699 { echo "$as_me:$LINENO: result: no" >&5
2700echo "${ECHO_T}no" >&6; }
2701fi
2702
2703
2704fi
2705if test -z "$ac_cv_prog_CC"; then
2706 ac_ct_CC=$CC
2707 # Extract the first word of "gcc", so it can be a program name with args.
2708set dummy gcc; ac_word=$2
2709{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2710echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2711if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2712 echo $ECHO_N "(cached) $ECHO_C" >&6
2713else
2714 if test -n "$ac_ct_CC"; then
2715 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2716else
2717as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2718for as_dir in $PATH
2719do
2720 IFS=$as_save_IFS
2721 test -z "$as_dir" && as_dir=.
2722 for ac_exec_ext in '' $ac_executable_extensions; do
2723 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2724 ac_cv_prog_ac_ct_CC="gcc"
2725 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2726 break 2
2727 fi
2728done
2729done
2730IFS=$as_save_IFS
2731
2732fi
2733fi
2734ac_ct_CC=$ac_cv_prog_ac_ct_CC
2735if test -n "$ac_ct_CC"; then
2736 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2737echo "${ECHO_T}$ac_ct_CC" >&6; }
2738else
2739 { echo "$as_me:$LINENO: result: no" >&5
2740echo "${ECHO_T}no" >&6; }
2741fi
2742
2743 if test "x$ac_ct_CC" = x; then
2744 CC=""
2745 else
2746 case $cross_compiling:$ac_tool_warned in
2747yes:)
2748{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2749whose name does not start with the host triplet. If you think this
2750configuration is useful to you, please write to [email protected]." >&5
2751echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2752whose name does not start with the host triplet. If you think this
2753configuration is useful to you, please write to [email protected]." >&2;}
2754ac_tool_warned=yes ;;
2755esac
2756 CC=$ac_ct_CC
2757 fi
2758else
2759 CC="$ac_cv_prog_CC"
2760fi
2761
2762if test -z "$CC"; then
2763 if test -n "$ac_tool_prefix"; then
2764 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2765set dummy ${ac_tool_prefix}cc; ac_word=$2
2766{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2767echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2768if test "${ac_cv_prog_CC+set}" = set; then
2769 echo $ECHO_N "(cached) $ECHO_C" >&6
2770else
2771 if test -n "$CC"; then
2772 ac_cv_prog_CC="$CC" # Let the user override the test.
2773else
2774as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2775for as_dir in $PATH
2776do
2777 IFS=$as_save_IFS
2778 test -z "$as_dir" && as_dir=.
2779 for ac_exec_ext in '' $ac_executable_extensions; do
2780 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2781 ac_cv_prog_CC="${ac_tool_prefix}cc"
2782 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2783 break 2
2784 fi
2785done
2786done
2787IFS=$as_save_IFS
2788
2789fi
2790fi
2791CC=$ac_cv_prog_CC
2792if test -n "$CC"; then
2793 { echo "$as_me:$LINENO: result: $CC" >&5
2794echo "${ECHO_T}$CC" >&6; }
2795else
2796 { echo "$as_me:$LINENO: result: no" >&5
2797echo "${ECHO_T}no" >&6; }
2798fi
2799
2800
2801 fi
2802fi
2803if test -z "$CC"; then
2804 # Extract the first word of "cc", so it can be a program name with args.
2805set dummy cc; ac_word=$2
2806{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2807echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2808if test "${ac_cv_prog_CC+set}" = set; then
2809 echo $ECHO_N "(cached) $ECHO_C" >&6
2810else
2811 if test -n "$CC"; then
2812 ac_cv_prog_CC="$CC" # Let the user override the test.
2813else
2814 ac_prog_rejected=no
2815as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2816for as_dir in $PATH
2817do
2818 IFS=$as_save_IFS
2819 test -z "$as_dir" && as_dir=.
2820 for ac_exec_ext in '' $ac_executable_extensions; do
2821 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2822 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2823 ac_prog_rejected=yes
2824 continue
2825 fi
2826 ac_cv_prog_CC="cc"
2827 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2828 break 2
2829 fi
2830done
2831done
2832IFS=$as_save_IFS
2833
2834if test $ac_prog_rejected = yes; then
2835 # We found a bogon in the path, so make sure we never use it.
2836 set dummy $ac_cv_prog_CC
2837 shift
2838 if test $# != 0; then
2839 # We chose a different compiler from the bogus one.
2840 # However, it has the same basename, so the bogon will be chosen
2841 # first if we set CC to just the basename; use the full file name.
2842 shift
2843 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2844 fi
2845fi
2846fi
2847fi
2848CC=$ac_cv_prog_CC
2849if test -n "$CC"; then
2850 { echo "$as_me:$LINENO: result: $CC" >&5
2851echo "${ECHO_T}$CC" >&6; }
2852else
2853 { echo "$as_me:$LINENO: result: no" >&5
2854echo "${ECHO_T}no" >&6; }
2855fi
2856
2857
2858fi
2859if test -z "$CC"; then
2860 if test -n "$ac_tool_prefix"; then
2861 for ac_prog in cl.exe
2862 do
2863 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2864set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2865{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2866echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2867if test "${ac_cv_prog_CC+set}" = set; then
2868 echo $ECHO_N "(cached) $ECHO_C" >&6
2869else
2870 if test -n "$CC"; then
2871 ac_cv_prog_CC="$CC" # Let the user override the test.
2872else
2873as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2874for as_dir in $PATH
2875do
2876 IFS=$as_save_IFS
2877 test -z "$as_dir" && as_dir=.
2878 for ac_exec_ext in '' $ac_executable_extensions; do
2879 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2880 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2881 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2882 break 2
2883 fi
2884done
2885done
2886IFS=$as_save_IFS
2887
2888fi
2889fi
2890CC=$ac_cv_prog_CC
2891if test -n "$CC"; then
2892 { echo "$as_me:$LINENO: result: $CC" >&5
2893echo "${ECHO_T}$CC" >&6; }
2894else
2895 { echo "$as_me:$LINENO: result: no" >&5
2896echo "${ECHO_T}no" >&6; }
2897fi
2898
2899
2900 test -n "$CC" && break
2901 done
2902fi
2903if test -z "$CC"; then
2904 ac_ct_CC=$CC
2905 for ac_prog in cl.exe
2906do
2907 # Extract the first word of "$ac_prog", so it can be a program name with args.
2908set dummy $ac_prog; ac_word=$2
2909{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2910echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2911if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2912 echo $ECHO_N "(cached) $ECHO_C" >&6
2913else
2914 if test -n "$ac_ct_CC"; then
2915 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2916else
2917as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2918for as_dir in $PATH
2919do
2920 IFS=$as_save_IFS
2921 test -z "$as_dir" && as_dir=.
2922 for ac_exec_ext in '' $ac_executable_extensions; do
2923 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2924 ac_cv_prog_ac_ct_CC="$ac_prog"
2925 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2926 break 2
2927 fi
2928done
2929done
2930IFS=$as_save_IFS
2931
2932fi
2933fi
2934ac_ct_CC=$ac_cv_prog_ac_ct_CC
2935if test -n "$ac_ct_CC"; then
2936 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2937echo "${ECHO_T}$ac_ct_CC" >&6; }
2938else
2939 { echo "$as_me:$LINENO: result: no" >&5
2940echo "${ECHO_T}no" >&6; }
2941fi
2942
2943
2944 test -n "$ac_ct_CC" && break
2945done
2946
2947 if test "x$ac_ct_CC" = x; then
2948 CC=""
2949 else
2950 case $cross_compiling:$ac_tool_warned in
2951yes:)
2952{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2953whose name does not start with the host triplet. If you think this
2954configuration is useful to you, please write to [email protected]." >&5
2955echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2956whose name does not start with the host triplet. If you think this
2957configuration is useful to you, please write to [email protected]." >&2;}
2958ac_tool_warned=yes ;;
2959esac
2960 CC=$ac_ct_CC
2961 fi
2962fi
2963
2964fi
2965
2966
2967test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2968See \`config.log' for more details." >&5
2969echo "$as_me: error: no acceptable C compiler found in \$PATH
2970See \`config.log' for more details." >&2;}
2971 { (exit 1); exit 1; }; }
2972
2973# Provide some information about the compiler.
2974echo "$as_me:$LINENO: checking for C compiler version" >&5
2975ac_compiler=`set X $ac_compile; echo $2`
2976{ (ac_try="$ac_compiler --version >&5"
2977case "(($ac_try" in
2978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2979 *) ac_try_echo=$ac_try;;
2980esac
2981eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2982 (eval "$ac_compiler --version >&5") 2>&5
2983 ac_status=$?
2984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2985 (exit $ac_status); }
2986{ (ac_try="$ac_compiler -v >&5"
2987case "(($ac_try" in
2988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2989 *) ac_try_echo=$ac_try;;
2990esac
2991eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2992 (eval "$ac_compiler -v >&5") 2>&5
2993 ac_status=$?
2994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2995 (exit $ac_status); }
2996{ (ac_try="$ac_compiler -V >&5"
2997case "(($ac_try" in
2998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2999 *) ac_try_echo=$ac_try;;
3000esac
3001eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3002 (eval "$ac_compiler -V >&5") 2>&5
3003 ac_status=$?
3004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3005 (exit $ac_status); }
3006
3007{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3008echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3009if test "${ac_cv_c_compiler_gnu+set}" = set; then
3010 echo $ECHO_N "(cached) $ECHO_C" >&6
3011else
3012 cat >conftest.$ac_ext <<_ACEOF
3013/* confdefs.h. */
3014_ACEOF
3015cat confdefs.h >>conftest.$ac_ext
3016cat >>conftest.$ac_ext <<_ACEOF
3017/* end confdefs.h. */
3018
3019int
3020main ()
3021{
3022#ifndef __GNUC__
3023 choke me
3024#endif
3025
3026 ;
3027 return 0;
3028}
3029_ACEOF
3030rm -f conftest.$ac_objext
3031if { (ac_try="$ac_compile"
3032case "(($ac_try" in
3033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3034 *) ac_try_echo=$ac_try;;
3035esac
3036eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3037 (eval "$ac_compile") 2>conftest.er1
3038 ac_status=$?
3039 grep -v '^ *+' conftest.er1 >conftest.err
3040 rm -f conftest.er1
3041 cat conftest.err >&5
3042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3043 (exit $ac_status); } && {
3044 test -z "$ac_c_werror_flag" ||
3045 test ! -s conftest.err
3046 } && test -s conftest.$ac_objext; then
3047 ac_compiler_gnu=yes
3048else
3049 echo "$as_me: failed program was:" >&5
3050sed 's/^/| /' conftest.$ac_ext >&5
3051
3052 ac_compiler_gnu=no
3053fi
3054
3055rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3056ac_cv_c_compiler_gnu=$ac_compiler_gnu
3057
3058fi
3059{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3060echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3061GCC=`test $ac_compiler_gnu = yes && echo yes`
3062ac_test_CFLAGS=${CFLAGS+set}
3063ac_save_CFLAGS=$CFLAGS
3064{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3065echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3066if test "${ac_cv_prog_cc_g+set}" = set; then
3067 echo $ECHO_N "(cached) $ECHO_C" >&6
3068else
3069 ac_save_c_werror_flag=$ac_c_werror_flag
3070 ac_c_werror_flag=yes
3071 ac_cv_prog_cc_g=no
3072 CFLAGS="-g"
3073 cat >conftest.$ac_ext <<_ACEOF
3074/* confdefs.h. */
3075_ACEOF
3076cat confdefs.h >>conftest.$ac_ext
3077cat >>conftest.$ac_ext <<_ACEOF
3078/* end confdefs.h. */
3079
3080int
3081main ()
3082{
3083
3084 ;
3085 return 0;
3086}
3087_ACEOF
3088rm -f conftest.$ac_objext
3089if { (ac_try="$ac_compile"
3090case "(($ac_try" in
3091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3092 *) ac_try_echo=$ac_try;;
3093esac
3094eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3095 (eval "$ac_compile") 2>conftest.er1
3096 ac_status=$?
3097 grep -v '^ *+' conftest.er1 >conftest.err
3098 rm -f conftest.er1
3099 cat conftest.err >&5
3100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3101 (exit $ac_status); } && {
3102 test -z "$ac_c_werror_flag" ||
3103 test ! -s conftest.err
3104 } && test -s conftest.$ac_objext; then
3105 ac_cv_prog_cc_g=yes
3106else
3107 echo "$as_me: failed program was:" >&5
3108sed 's/^/| /' conftest.$ac_ext >&5
3109
3110 CFLAGS=""
3111 cat >conftest.$ac_ext <<_ACEOF
3112/* confdefs.h. */
3113_ACEOF
3114cat confdefs.h >>conftest.$ac_ext
3115cat >>conftest.$ac_ext <<_ACEOF
3116/* end confdefs.h. */
3117
3118int
3119main ()
3120{
3121
3122 ;
3123 return 0;
3124}
3125_ACEOF
3126rm -f conftest.$ac_objext
3127if { (ac_try="$ac_compile"
3128case "(($ac_try" in
3129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3130 *) ac_try_echo=$ac_try;;
3131esac
3132eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3133 (eval "$ac_compile") 2>conftest.er1
3134 ac_status=$?
3135 grep -v '^ *+' conftest.er1 >conftest.err
3136 rm -f conftest.er1
3137 cat conftest.err >&5
3138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3139 (exit $ac_status); } && {
3140 test -z "$ac_c_werror_flag" ||
3141 test ! -s conftest.err
3142 } && test -s conftest.$ac_objext; then
3143 :
3144else
3145 echo "$as_me: failed program was:" >&5
3146sed 's/^/| /' conftest.$ac_ext >&5
3147
3148 ac_c_werror_flag=$ac_save_c_werror_flag
3149 CFLAGS="-g"
3150 cat >conftest.$ac_ext <<_ACEOF
3151/* confdefs.h. */
3152_ACEOF
3153cat confdefs.h >>conftest.$ac_ext
3154cat >>conftest.$ac_ext <<_ACEOF
3155/* end confdefs.h. */
3156
3157int
3158main ()
3159{
3160
3161 ;
3162 return 0;
3163}
3164_ACEOF
3165rm -f conftest.$ac_objext
3166if { (ac_try="$ac_compile"
3167case "(($ac_try" in
3168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3169 *) ac_try_echo=$ac_try;;
3170esac
3171eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3172 (eval "$ac_compile") 2>conftest.er1
3173 ac_status=$?
3174 grep -v '^ *+' conftest.er1 >conftest.err
3175 rm -f conftest.er1
3176 cat conftest.err >&5
3177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3178 (exit $ac_status); } && {
3179 test -z "$ac_c_werror_flag" ||
3180 test ! -s conftest.err
3181 } && test -s conftest.$ac_objext; then
3182 ac_cv_prog_cc_g=yes
3183else
3184 echo "$as_me: failed program was:" >&5
3185sed 's/^/| /' conftest.$ac_ext >&5
3186
3187
3188fi
3189
3190rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3191fi
3192
3193rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3194fi
3195
3196rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3197 ac_c_werror_flag=$ac_save_c_werror_flag
3198fi
3199{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3200echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3201if test "$ac_test_CFLAGS" = set; then
3202 CFLAGS=$ac_save_CFLAGS
3203elif test $ac_cv_prog_cc_g = yes; then
3204 if test "$GCC" = yes; then
3205 CFLAGS="-g -O2"
3206 else
3207 CFLAGS="-g"
3208 fi
3209else
3210 if test "$GCC" = yes; then
3211 CFLAGS="-O2"
3212 else
3213 CFLAGS=
3214 fi
3215fi
3216{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3217echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3218if test "${ac_cv_prog_cc_c89+set}" = set; then
3219 echo $ECHO_N "(cached) $ECHO_C" >&6
3220else
3221 ac_cv_prog_cc_c89=no
3222ac_save_CC=$CC
3223cat >conftest.$ac_ext <<_ACEOF
3224/* confdefs.h. */
3225_ACEOF
3226cat confdefs.h >>conftest.$ac_ext
3227cat >>conftest.$ac_ext <<_ACEOF
3228/* end confdefs.h. */
3229#include <stdarg.h>
3230#include <stdio.h>
3231#include <sys/types.h>
3232#include <sys/stat.h>
3233/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3234struct buf { int x; };
3235FILE * (*rcsopen) (struct buf *, struct stat *, int);
3236static char *e (p, i)
3237 char **p;
3238 int i;
3239{
3240 return p[i];
3241}
3242static char *f (char * (*g) (char **, int), char **p, ...)
3243{
3244 char *s;
3245 va_list v;
3246 va_start (v,p);
3247 s = g (p, va_arg (v,int));
3248 va_end (v);
3249 return s;
3250}
3251
3252/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3253 function prototypes and stuff, but not '\xHH' hex character constants.
3254 These don't provoke an error unfortunately, instead are silently treated
3255 as 'x'. The following induces an error, until -std is added to get
3256 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3257 array size at least. It's necessary to write '\x00'==0 to get something
3258 that's true only with -std. */
3259int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3260
3261/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3262 inside strings and character constants. */
3263#define FOO(x) 'x'
3264int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3265
3266int test (int i, double x);
3267struct s1 {int (*f) (int a);};
3268struct s2 {int (*f) (double a);};
3269int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3270int argc;
3271char **argv;
3272int
3273main ()
3274{
3275return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3276 ;
3277 return 0;
3278}
3279_ACEOF
3280for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3281 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3282do
3283 CC="$ac_save_CC $ac_arg"
3284 rm -f conftest.$ac_objext
3285if { (ac_try="$ac_compile"
3286case "(($ac_try" in
3287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3288 *) ac_try_echo=$ac_try;;
3289esac
3290eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3291 (eval "$ac_compile") 2>conftest.er1
3292 ac_status=$?
3293 grep -v '^ *+' conftest.er1 >conftest.err
3294 rm -f conftest.er1
3295 cat conftest.err >&5
3296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3297 (exit $ac_status); } && {
3298 test -z "$ac_c_werror_flag" ||
3299 test ! -s conftest.err
3300 } && test -s conftest.$ac_objext; then
3301 ac_cv_prog_cc_c89=$ac_arg
3302else
3303 echo "$as_me: failed program was:" >&5
3304sed 's/^/| /' conftest.$ac_ext >&5
3305
3306
3307fi
3308
3309rm -f core conftest.err conftest.$ac_objext
3310 test "x$ac_cv_prog_cc_c89" != "xno" && break
3311done
3312rm -f conftest.$ac_ext
3313CC=$ac_save_CC
3314
3315fi
3316# AC_CACHE_VAL
3317case "x$ac_cv_prog_cc_c89" in
3318 x)
3319 { echo "$as_me:$LINENO: result: none needed" >&5
3320echo "${ECHO_T}none needed" >&6; } ;;
3321 xno)
3322 { echo "$as_me:$LINENO: result: unsupported" >&5
3323echo "${ECHO_T}unsupported" >&6; } ;;
3324 *)
3325 CC="$CC $ac_cv_prog_cc_c89"
3326 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3327echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3328esac
3329
3330
3331ac_ext=c
3332ac_cpp='$CPP $CPPFLAGS'
3333ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3334ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3335ac_compiler_gnu=$ac_cv_c_compiler_gnu
3336
3337# Find a good install program. We prefer a C program (faster),
3338# so one script is as good as another. But avoid the broken or
3339# incompatible versions:
3340# SysV /etc/install, /usr/sbin/install
3341# SunOS /usr/etc/install
3342# IRIX /sbin/install
3343# AIX /bin/install
3344# AmigaOS /C/install, which installs bootblocks on floppy discs
3345# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3346# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3347# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3348# OS/2's system install, which has a completely different semantic
3349# ./install, which can be erroneously created by make from ./install.sh.
3350{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3351echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
3352if test -z "$INSTALL"; then
3353if test "${ac_cv_path_install+set}" = set; then
3354 echo $ECHO_N "(cached) $ECHO_C" >&6
3355else
3356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3357for as_dir in $PATH
3358do
3359 IFS=$as_save_IFS
3360 test -z "$as_dir" && as_dir=.
3361 # Account for people who put trailing slashes in PATH elements.
3362case $as_dir/ in
3363 ./ | .// | /cC/* | \
3364 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3365 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3366 /usr/ucb/* ) ;;
3367 *)
3368 # OSF1 and SCO ODT 3.0 have their own names for install.
3369 # Don't use installbsd from OSF since it installs stuff as root
3370 # by default.
3371 for ac_prog in ginstall scoinst install; do
3372 for ac_exec_ext in '' $ac_executable_extensions; do
3373 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3374 if test $ac_prog = install &&
3375 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3376 # AIX install. It has an incompatible calling convention.
3377 :
3378 elif test $ac_prog = install &&
3379 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3380 # program-specific install script used by HP pwplus--don't use.
3381 :
3382 else
3383 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3384 break 3
3385 fi
3386 fi
3387 done
3388 done
3389 ;;
3390esac
3391done
3392IFS=$as_save_IFS
3393
3394
3395fi
3396 if test "${ac_cv_path_install+set}" = set; then
3397 INSTALL=$ac_cv_path_install
3398 else
3399 # As a last resort, use the slow shell script. Don't cache a
3400 # value for INSTALL within a source directory, because that will
3401 # break other packages using the cache if that directory is
3402 # removed, or if the value is a relative name.
3403 INSTALL=$ac_install_sh
3404 fi
3405fi
3406{ echo "$as_me:$LINENO: result: $INSTALL" >&5
3407echo "${ECHO_T}$INSTALL" >&6; }
3408
3409# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3410# It thinks the first close brace ends the variable substitution.
3411test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3412
3413test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3414
3415test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3416
3417{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
3418echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
3419LN_S=$as_ln_s
3420if test "$LN_S" = "ln -s"; then
3421 { echo "$as_me:$LINENO: result: yes" >&5
3422echo "${ECHO_T}yes" >&6; }
3423else
3424 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3425echo "${ECHO_T}no, using $LN_S" >&6; }
3426fi
3427
3428{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3429echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
3430set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3431if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
3432 echo $ECHO_N "(cached) $ECHO_C" >&6
3433else
3434 cat >conftest.make <<\_ACEOF
3435SHELL = /bin/sh
3436all:
3437 @echo '@@@%%%=$(MAKE)=@@@%%%'
3438_ACEOF
3439# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3440case `${MAKE-make} -f conftest.make 2>/dev/null` in
3441 *@@@%%%=?*=@@@%%%*)
3442 eval ac_cv_prog_make_${ac_make}_set=yes;;
3443 *)
3444 eval ac_cv_prog_make_${ac_make}_set=no;;
3445esac
3446rm -f conftest.make
3447fi
3448if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3449 { echo "$as_me:$LINENO: result: yes" >&5
3450echo "${ECHO_T}yes" >&6; }
3451 SET_MAKE=
3452else
3453 { echo "$as_me:$LINENO: result: no" >&5
3454echo "${ECHO_T}no" >&6; }
3455 SET_MAKE="MAKE=${MAKE-make}"
3456fi
3457
3458if test -n "$ac_tool_prefix"; then
3459 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3460set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3461{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3462echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3463if test "${ac_cv_prog_RANLIB+set}" = set; then
3464 echo $ECHO_N "(cached) $ECHO_C" >&6
3465else
3466 if test -n "$RANLIB"; then
3467 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3468else
3469as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3470for as_dir in $PATH
3471do
3472 IFS=$as_save_IFS
3473 test -z "$as_dir" && as_dir=.
3474 for ac_exec_ext in '' $ac_executable_extensions; do
3475 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3476 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3477 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3478 break 2
3479 fi
3480done
3481done
3482IFS=$as_save_IFS
3483
3484fi
3485fi
3486RANLIB=$ac_cv_prog_RANLIB
3487if test -n "$RANLIB"; then
3488 { echo "$as_me:$LINENO: result: $RANLIB" >&5
3489echo "${ECHO_T}$RANLIB" >&6; }
3490else
3491 { echo "$as_me:$LINENO: result: no" >&5
3492echo "${ECHO_T}no" >&6; }
3493fi
3494
3495
3496fi
3497if test -z "$ac_cv_prog_RANLIB"; then
3498 ac_ct_RANLIB=$RANLIB
3499 # Extract the first word of "ranlib", so it can be a program name with args.
3500set dummy ranlib; ac_word=$2
3501{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3502echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3503if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3504 echo $ECHO_N "(cached) $ECHO_C" >&6
3505else
3506 if test -n "$ac_ct_RANLIB"; then
3507 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3508else
3509as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3510for as_dir in $PATH
3511do
3512 IFS=$as_save_IFS
3513 test -z "$as_dir" && as_dir=.
3514 for ac_exec_ext in '' $ac_executable_extensions; do
3515 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3516 ac_cv_prog_ac_ct_RANLIB="ranlib"
3517 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3518 break 2
3519 fi
3520done
3521done
3522IFS=$as_save_IFS
3523
3524fi
3525fi
3526ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3527if test -n "$ac_ct_RANLIB"; then
3528 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3529echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
3530else
3531 { echo "$as_me:$LINENO: result: no" >&5
3532echo "${ECHO_T}no" >&6; }
3533fi
3534
3535 if test "x$ac_ct_RANLIB" = x; then
3536 RANLIB=":"
3537 else
3538 case $cross_compiling:$ac_tool_warned in
3539yes:)
3540{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3541whose name does not start with the host triplet. If you think this
3542configuration is useful to you, please write to [email protected]." >&5
3543echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3544whose name does not start with the host triplet. If you think this
3545configuration is useful to you, please write to [email protected]." >&2;}
3546ac_tool_warned=yes ;;
3547esac
3548 RANLIB=$ac_ct_RANLIB
3549 fi
3550else
3551 RANLIB="$ac_cv_prog_RANLIB"
3552fi
3553
3554
3555
3556ac_ext=c
3557ac_cpp='$CPP $CPPFLAGS'
3558ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3559ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3560ac_compiler_gnu=$ac_cv_c_compiler_gnu
3561{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3562echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3563# On Suns, sometimes $CPP names a directory.
3564if test -n "$CPP" && test -d "$CPP"; then
3565 CPP=
3566fi
3567if test -z "$CPP"; then
3568 if test "${ac_cv_prog_CPP+set}" = set; then
3569 echo $ECHO_N "(cached) $ECHO_C" >&6
3570else
3571 # Double quotes because CPP needs to be expanded
3572 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3573 do
3574 ac_preproc_ok=false
3575for ac_c_preproc_warn_flag in '' yes
3576do
3577 # Use a header file that comes with gcc, so configuring glibc
3578 # with a fresh cross-compiler works.
3579 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3580 # <limits.h> exists even on freestanding compilers.
3581 # On the NeXT, cc -E runs the code through the compiler's parser,
3582 # not just through cpp. "Syntax error" is here to catch this case.
3583 cat >conftest.$ac_ext <<_ACEOF
3584/* confdefs.h. */
3585_ACEOF
3586cat confdefs.h >>conftest.$ac_ext
3587cat >>conftest.$ac_ext <<_ACEOF
3588/* end confdefs.h. */
3589#ifdef __STDC__
3590# include <limits.h>
3591#else
3592# include <assert.h>
3593#endif
3594 Syntax error
3595_ACEOF
3596if { (ac_try="$ac_cpp conftest.$ac_ext"
3597case "(($ac_try" in
3598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3599 *) ac_try_echo=$ac_try;;
3600esac
3601eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3602 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3603 ac_status=$?
3604 grep -v '^ *+' conftest.er1 >conftest.err
3605 rm -f conftest.er1
3606 cat conftest.err >&5
3607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3608 (exit $ac_status); } >/dev/null && {
3609 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3610 test ! -s conftest.err
3611 }; then
3612 :
3613else
3614 echo "$as_me: failed program was:" >&5
3615sed 's/^/| /' conftest.$ac_ext >&5
3616
3617 # Broken: fails on valid input.
3618continue
3619fi
3620
3621rm -f conftest.err conftest.$ac_ext
3622
3623 # OK, works on sane cases. Now check whether nonexistent headers
3624 # can be detected and how.
3625 cat >conftest.$ac_ext <<_ACEOF
3626/* confdefs.h. */
3627_ACEOF
3628cat confdefs.h >>conftest.$ac_ext
3629cat >>conftest.$ac_ext <<_ACEOF
3630/* end confdefs.h. */
3631#include <ac_nonexistent.h>
3632_ACEOF
3633if { (ac_try="$ac_cpp conftest.$ac_ext"
3634case "(($ac_try" in
3635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3636 *) ac_try_echo=$ac_try;;
3637esac
3638eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3639 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3640 ac_status=$?
3641 grep -v '^ *+' conftest.er1 >conftest.err
3642 rm -f conftest.er1
3643 cat conftest.err >&5
3644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3645 (exit $ac_status); } >/dev/null && {
3646 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3647 test ! -s conftest.err
3648 }; then
3649 # Broken: success on invalid input.
3650continue
3651else
3652 echo "$as_me: failed program was:" >&5
3653sed 's/^/| /' conftest.$ac_ext >&5
3654
3655 # Passes both tests.
3656ac_preproc_ok=:
3657break
3658fi
3659
3660rm -f conftest.err conftest.$ac_ext
3661
3662done
3663# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3664rm -f conftest.err conftest.$ac_ext
3665if $ac_preproc_ok; then
3666 break
3667fi
3668
3669 done
3670 ac_cv_prog_CPP=$CPP
3671
3672fi
3673 CPP=$ac_cv_prog_CPP
3674else
3675 ac_cv_prog_CPP=$CPP
3676fi
3677{ echo "$as_me:$LINENO: result: $CPP" >&5
3678echo "${ECHO_T}$CPP" >&6; }
3679ac_preproc_ok=false
3680for ac_c_preproc_warn_flag in '' yes
3681do
3682 # Use a header file that comes with gcc, so configuring glibc
3683 # with a fresh cross-compiler works.
3684 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3685 # <limits.h> exists even on freestanding compilers.
3686 # On the NeXT, cc -E runs the code through the compiler's parser,
3687 # not just through cpp. "Syntax error" is here to catch this case.
3688 cat >conftest.$ac_ext <<_ACEOF
3689/* confdefs.h. */
3690_ACEOF
3691cat confdefs.h >>conftest.$ac_ext
3692cat >>conftest.$ac_ext <<_ACEOF
3693/* end confdefs.h. */
3694#ifdef __STDC__
3695# include <limits.h>
3696#else
3697# include <assert.h>
3698#endif
3699 Syntax error
3700_ACEOF
3701if { (ac_try="$ac_cpp conftest.$ac_ext"
3702case "(($ac_try" in
3703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3704 *) ac_try_echo=$ac_try;;
3705esac
3706eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3707 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3708 ac_status=$?
3709 grep -v '^ *+' conftest.er1 >conftest.err
3710 rm -f conftest.er1
3711 cat conftest.err >&5
3712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3713 (exit $ac_status); } >/dev/null && {
3714 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3715 test ! -s conftest.err
3716 }; then
3717 :
3718else
3719 echo "$as_me: failed program was:" >&5
3720sed 's/^/| /' conftest.$ac_ext >&5
3721
3722 # Broken: fails on valid input.
3723continue
3724fi
3725
3726rm -f conftest.err conftest.$ac_ext
3727
3728 # OK, works on sane cases. Now check whether nonexistent headers
3729 # can be detected and how.
3730 cat >conftest.$ac_ext <<_ACEOF
3731/* confdefs.h. */
3732_ACEOF
3733cat confdefs.h >>conftest.$ac_ext
3734cat >>conftest.$ac_ext <<_ACEOF
3735/* end confdefs.h. */
3736#include <ac_nonexistent.h>
3737_ACEOF
3738if { (ac_try="$ac_cpp conftest.$ac_ext"
3739case "(($ac_try" in
3740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3741 *) ac_try_echo=$ac_try;;
3742esac
3743eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3744 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3745 ac_status=$?
3746 grep -v '^ *+' conftest.er1 >conftest.err
3747 rm -f conftest.er1
3748 cat conftest.err >&5
3749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3750 (exit $ac_status); } >/dev/null && {
3751 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3752 test ! -s conftest.err
3753 }; then
3754 # Broken: success on invalid input.
3755continue
3756else
3757 echo "$as_me: failed program was:" >&5
3758sed 's/^/| /' conftest.$ac_ext >&5
3759
3760 # Passes both tests.
3761ac_preproc_ok=:
3762break
3763fi
3764
3765rm -f conftest.err conftest.$ac_ext
3766
3767done
3768# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3769rm -f conftest.err conftest.$ac_ext
3770if $ac_preproc_ok; then
3771 :
3772else
3773 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3774See \`config.log' for more details." >&5
3775echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3776See \`config.log' for more details." >&2;}
3777 { (exit 1); exit 1; }; }
3778fi
3779
3780ac_ext=c
3781ac_cpp='$CPP $CPPFLAGS'
3782ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3783ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3784ac_compiler_gnu=$ac_cv_c_compiler_gnu
3785
3786
3787{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3788echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3789if test "${ac_cv_path_GREP+set}" = set; then
3790 echo $ECHO_N "(cached) $ECHO_C" >&6
3791else
3792 # Extract the first word of "grep ggrep" to use in msg output
3793if test -z "$GREP"; then
3794set dummy grep ggrep; ac_prog_name=$2
3795if test "${ac_cv_path_GREP+set}" = set; then
3796 echo $ECHO_N "(cached) $ECHO_C" >&6
3797else
3798 ac_path_GREP_found=false
3799# Loop through the user's path and test for each of PROGNAME-LIST
3800as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3801for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3802do
3803 IFS=$as_save_IFS
3804 test -z "$as_dir" && as_dir=.
3805 for ac_prog in grep ggrep; do
3806 for ac_exec_ext in '' $ac_executable_extensions; do
3807 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3808 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3809 # Check for GNU ac_path_GREP and select it if it is found.
3810 # Check for GNU $ac_path_GREP
3811case `"$ac_path_GREP" --version 2>&1` in
3812*GNU*)
3813 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3814*)
3815 ac_count=0
3816 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3817 while :
3818 do
3819 cat "conftest.in" "conftest.in" >"conftest.tmp"
3820 mv "conftest.tmp" "conftest.in"
3821 cp "conftest.in" "conftest.nl"
3822 echo 'GREP' >> "conftest.nl"
3823 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3824 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3825 ac_count=`expr $ac_count + 1`
3826 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3827 # Best one so far, save it but keep looking for a better one
3828 ac_cv_path_GREP="$ac_path_GREP"
3829 ac_path_GREP_max=$ac_count
3830 fi
3831 # 10*(2^10) chars as input seems more than enough
3832 test $ac_count -gt 10 && break
3833 done
3834 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3835esac
3836
3837
3838 $ac_path_GREP_found && break 3
3839 done
3840done
3841
3842done
3843IFS=$as_save_IFS
3844
3845
3846fi
3847
3848GREP="$ac_cv_path_GREP"
3849if test -z "$GREP"; then
3850 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3851echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3852 { (exit 1); exit 1; }; }
3853fi
3854
3855else
3856 ac_cv_path_GREP=$GREP
3857fi
3858
3859
3860fi
3861{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3862echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3863 GREP="$ac_cv_path_GREP"
3864
3865
3866{ echo "$as_me:$LINENO: checking for egrep" >&5
3867echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3868if test "${ac_cv_path_EGREP+set}" = set; then
3869 echo $ECHO_N "(cached) $ECHO_C" >&6
3870else
3871 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3872 then ac_cv_path_EGREP="$GREP -E"
3873 else
3874 # Extract the first word of "egrep" to use in msg output
3875if test -z "$EGREP"; then
3876set dummy egrep; ac_prog_name=$2
3877if test "${ac_cv_path_EGREP+set}" = set; then
3878 echo $ECHO_N "(cached) $ECHO_C" >&6
3879else
3880 ac_path_EGREP_found=false
3881# Loop through the user's path and test for each of PROGNAME-LIST
3882as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3883for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3884do
3885 IFS=$as_save_IFS
3886 test -z "$as_dir" && as_dir=.
3887 for ac_prog in egrep; do
3888 for ac_exec_ext in '' $ac_executable_extensions; do
3889 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3890 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3891 # Check for GNU ac_path_EGREP and select it if it is found.
3892 # Check for GNU $ac_path_EGREP
3893case `"$ac_path_EGREP" --version 2>&1` in
3894*GNU*)
3895 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3896*)
3897 ac_count=0
3898 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3899 while :
3900 do
3901 cat "conftest.in" "conftest.in" >"conftest.tmp"
3902 mv "conftest.tmp" "conftest.in"
3903 cp "conftest.in" "conftest.nl"
3904 echo 'EGREP' >> "conftest.nl"
3905 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3906 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3907 ac_count=`expr $ac_count + 1`
3908 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3909 # Best one so far, save it but keep looking for a better one
3910 ac_cv_path_EGREP="$ac_path_EGREP"
3911 ac_path_EGREP_max=$ac_count
3912 fi
3913 # 10*(2^10) chars as input seems more than enough
3914 test $ac_count -gt 10 && break
3915 done
3916 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3917esac
3918
3919
3920 $ac_path_EGREP_found && break 3
3921 done
3922done
3923
3924done
3925IFS=$as_save_IFS
3926
3927
3928fi
3929
3930EGREP="$ac_cv_path_EGREP"
3931if test -z "$EGREP"; then
3932 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3933echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3934 { (exit 1); exit 1; }; }
3935fi
3936
3937else
3938 ac_cv_path_EGREP=$EGREP
3939fi
3940
3941
3942 fi
3943fi
3944{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3945echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3946 EGREP="$ac_cv_path_EGREP"
3947
3948
3949
3950{ echo "$as_me:$LINENO: checking for AIX" >&5
3951echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
3952cat >conftest.$ac_ext <<_ACEOF
3953/* confdefs.h. */
3954_ACEOF
3955cat confdefs.h >>conftest.$ac_ext
3956cat >>conftest.$ac_ext <<_ACEOF
3957/* end confdefs.h. */
3958#ifdef _AIX
3959 yes
3960#endif
3961
3962_ACEOF
3963if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3964 $EGREP "yes" >/dev/null 2>&1; then
3965 { echo "$as_me:$LINENO: result: yes" >&5
3966echo "${ECHO_T}yes" >&6; }
3967cat >>confdefs.h <<\_ACEOF
3968#define _ALL_SOURCE 1
3969_ACEOF
3970
3971else
3972 { echo "$as_me:$LINENO: result: no" >&5
3973echo "${ECHO_T}no" >&6; }
3974fi
3975rm -f conftest*
3976
3977
3978{ echo "$as_me:$LINENO: checking for library containing strerror" >&5
3979echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; }
3980if test "${ac_cv_search_strerror+set}" = set; then
3981 echo $ECHO_N "(cached) $ECHO_C" >&6
3982else
3983 ac_func_search_save_LIBS=$LIBS
3984cat >conftest.$ac_ext <<_ACEOF
3985/* confdefs.h. */
3986_ACEOF
3987cat confdefs.h >>conftest.$ac_ext
3988cat >>conftest.$ac_ext <<_ACEOF
3989/* end confdefs.h. */
3990
3991/* Override any GCC internal prototype to avoid an error.
3992 Use char because int might match the return type of a GCC
3993 builtin and then its argument prototype would still apply. */
3994#ifdef __cplusplus
3995extern "C"
3996#endif
3997char strerror ();
3998int
3999main ()
4000{
4001return strerror ();
4002 ;
4003 return 0;
4004}
4005_ACEOF
4006for ac_lib in '' cposix; do
4007 if test -z "$ac_lib"; then
4008 ac_res="none required"
4009 else
4010 ac_res=-l$ac_lib
4011 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4012 fi
4013 rm -f conftest.$ac_objext conftest$ac_exeext
4014if { (ac_try="$ac_link"
4015case "(($ac_try" in
4016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4017 *) ac_try_echo=$ac_try;;
4018esac
4019eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4020 (eval "$ac_link") 2>conftest.er1
4021 ac_status=$?
4022 grep -v '^ *+' conftest.er1 >conftest.err
4023 rm -f conftest.er1
4024 cat conftest.err >&5
4025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4026 (exit $ac_status); } && {
4027 test -z "$ac_c_werror_flag" ||
4028 test ! -s conftest.err
4029 } && test -s conftest$ac_exeext &&
4030 $as_test_x conftest$ac_exeext; then
4031 ac_cv_search_strerror=$ac_res
4032else
4033 echo "$as_me: failed program was:" >&5
4034sed 's/^/| /' conftest.$ac_ext >&5
4035
4036
4037fi
4038
4039rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4040 conftest$ac_exeext
4041 if test "${ac_cv_search_strerror+set}" = set; then
4042 break
4043fi
4044done
4045if test "${ac_cv_search_strerror+set}" = set; then
4046 :
4047else
4048 ac_cv_search_strerror=no
4049fi
4050rm conftest.$ac_ext
4051LIBS=$ac_func_search_save_LIBS
4052fi
4053{ echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
4054echo "${ECHO_T}$ac_cv_search_strerror" >&6; }
4055ac_res=$ac_cv_search_strerror
4056if test "$ac_res" != no; then
4057 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4058
4059fi
4060
4061{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4062echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4063if test "${ac_cv_header_stdc+set}" = set; then
4064 echo $ECHO_N "(cached) $ECHO_C" >&6
4065else
4066 cat >conftest.$ac_ext <<_ACEOF
4067/* confdefs.h. */
4068_ACEOF
4069cat confdefs.h >>conftest.$ac_ext
4070cat >>conftest.$ac_ext <<_ACEOF
4071/* end confdefs.h. */
4072#include <stdlib.h>
4073#include <stdarg.h>
4074#include <string.h>
4075#include <float.h>
4076
4077int
4078main ()
4079{
4080
4081 ;
4082 return 0;
4083}
4084_ACEOF
4085rm -f conftest.$ac_objext
4086if { (ac_try="$ac_compile"
4087case "(($ac_try" in
4088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4089 *) ac_try_echo=$ac_try;;
4090esac
4091eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4092 (eval "$ac_compile") 2>conftest.er1
4093 ac_status=$?
4094 grep -v '^ *+' conftest.er1 >conftest.err
4095 rm -f conftest.er1
4096 cat conftest.err >&5
4097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4098 (exit $ac_status); } && {
4099 test -z "$ac_c_werror_flag" ||
4100 test ! -s conftest.err
4101 } && test -s conftest.$ac_objext; then
4102 ac_cv_header_stdc=yes
4103else
4104 echo "$as_me: failed program was:" >&5
4105sed 's/^/| /' conftest.$ac_ext >&5
4106
4107 ac_cv_header_stdc=no
4108fi
4109
4110rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4111
4112if test $ac_cv_header_stdc = yes; then
4113 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4114 cat >conftest.$ac_ext <<_ACEOF
4115/* confdefs.h. */
4116_ACEOF
4117cat confdefs.h >>conftest.$ac_ext
4118cat >>conftest.$ac_ext <<_ACEOF
4119/* end confdefs.h. */
4120#include <string.h>
4121
4122_ACEOF
4123if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4124 $EGREP "memchr" >/dev/null 2>&1; then
4125 :
4126else
4127 ac_cv_header_stdc=no
4128fi
4129rm -f conftest*
4130
4131fi
4132
4133if test $ac_cv_header_stdc = yes; then
4134 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4135 cat >conftest.$ac_ext <<_ACEOF
4136/* confdefs.h. */
4137_ACEOF
4138cat confdefs.h >>conftest.$ac_ext
4139cat >>conftest.$ac_ext <<_ACEOF
4140/* end confdefs.h. */
4141#include <stdlib.h>
4142
4143_ACEOF
4144if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4145 $EGREP "free" >/dev/null 2>&1; then
4146 :
4147else
4148 ac_cv_header_stdc=no
4149fi
4150rm -f conftest*
4151
4152fi
4153
4154if test $ac_cv_header_stdc = yes; then
4155 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4156 if test "$cross_compiling" = yes; then
4157 :
4158else
4159 cat >conftest.$ac_ext <<_ACEOF
4160/* confdefs.h. */
4161_ACEOF
4162cat confdefs.h >>conftest.$ac_ext
4163cat >>conftest.$ac_ext <<_ACEOF
4164/* end confdefs.h. */
4165#include <ctype.h>
4166#include <stdlib.h>
4167#if ((' ' & 0x0FF) == 0x020)
4168# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4169# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4170#else
4171# define ISLOWER(c) \
4172 (('a' <= (c) && (c) <= 'i') \
4173 || ('j' <= (c) && (c) <= 'r') \
4174 || ('s' <= (c) && (c) <= 'z'))
4175# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4176#endif
4177
4178#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4179int
4180main ()
4181{
4182 int i;
4183 for (i = 0; i < 256; i++)
4184 if (XOR (islower (i), ISLOWER (i))
4185 || toupper (i) != TOUPPER (i))
4186 return 2;
4187 return 0;
4188}
4189_ACEOF
4190rm -f conftest$ac_exeext
4191if { (ac_try="$ac_link"
4192case "(($ac_try" in
4193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4194 *) ac_try_echo=$ac_try;;
4195esac
4196eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4197 (eval "$ac_link") 2>&5
4198 ac_status=$?
4199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4200 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4201 { (case "(($ac_try" in
4202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4203 *) ac_try_echo=$ac_try;;
4204esac
4205eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4206 (eval "$ac_try") 2>&5
4207 ac_status=$?
4208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4209 (exit $ac_status); }; }; then
4210 :
4211else
4212 echo "$as_me: program exited with status $ac_status" >&5
4213echo "$as_me: failed program was:" >&5
4214sed 's/^/| /' conftest.$ac_ext >&5
4215
4216( exit $ac_status )
4217ac_cv_header_stdc=no
4218fi
4219rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4220fi
4221
4222
4223fi
4224fi
4225{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4226echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4227if test $ac_cv_header_stdc = yes; then
4228
4229cat >>confdefs.h <<\_ACEOF
4230#define STDC_HEADERS 1
4231_ACEOF
4232
4233fi
4234
4235# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4236
4237
4238
4239
4240
4241
4242
4243
4244
4245for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4246 inttypes.h stdint.h unistd.h
4247do
4248as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4249{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4250echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4251if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4252 echo $ECHO_N "(cached) $ECHO_C" >&6
4253else
4254 cat >conftest.$ac_ext <<_ACEOF
4255/* confdefs.h. */
4256_ACEOF
4257cat confdefs.h >>conftest.$ac_ext
4258cat >>conftest.$ac_ext <<_ACEOF
4259/* end confdefs.h. */
4260$ac_includes_default
4261
4262#include <$ac_header>
4263_ACEOF
4264rm -f conftest.$ac_objext
4265if { (ac_try="$ac_compile"
4266case "(($ac_try" in
4267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4268 *) ac_try_echo=$ac_try;;
4269esac
4270eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4271 (eval "$ac_compile") 2>conftest.er1
4272 ac_status=$?
4273 grep -v '^ *+' conftest.er1 >conftest.err
4274 rm -f conftest.er1
4275 cat conftest.err >&5
4276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4277 (exit $ac_status); } && {
4278 test -z "$ac_c_werror_flag" ||
4279 test ! -s conftest.err
4280 } && test -s conftest.$ac_objext; then
4281 eval "$as_ac_Header=yes"
4282else
4283 echo "$as_me: failed program was:" >&5
4284sed 's/^/| /' conftest.$ac_ext >&5
4285
4286 eval "$as_ac_Header=no"
4287fi
4288
4289rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4290fi
4291ac_res=`eval echo '${'$as_ac_Header'}'`
4292 { echo "$as_me:$LINENO: result: $ac_res" >&5
4293echo "${ECHO_T}$ac_res" >&6; }
4294if test `eval echo '${'$as_ac_Header'}'` = yes; then
4295 cat >>confdefs.h <<_ACEOF
4296#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4297_ACEOF
4298
4299fi
4300
4301done
4302
4303
4304if test "${ac_cv_header_minix_config_h+set}" = set; then
4305 { echo "$as_me:$LINENO: checking for minix/config.h" >&5
4306echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
4307if test "${ac_cv_header_minix_config_h+set}" = set; then
4308 echo $ECHO_N "(cached) $ECHO_C" >&6
4309fi
4310{ echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4311echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
4312else
4313 # Is the header compilable?
4314{ echo "$as_me:$LINENO: checking minix/config.h usability" >&5
4315echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6; }
4316cat >conftest.$ac_ext <<_ACEOF
4317/* confdefs.h. */
4318_ACEOF
4319cat confdefs.h >>conftest.$ac_ext
4320cat >>conftest.$ac_ext <<_ACEOF
4321/* end confdefs.h. */
4322$ac_includes_default
4323#include <minix/config.h>
4324_ACEOF
4325rm -f conftest.$ac_objext
4326if { (ac_try="$ac_compile"
4327case "(($ac_try" in
4328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4329 *) ac_try_echo=$ac_try;;
4330esac
4331eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4332 (eval "$ac_compile") 2>conftest.er1
4333 ac_status=$?
4334 grep -v '^ *+' conftest.er1 >conftest.err
4335 rm -f conftest.er1
4336 cat conftest.err >&5
4337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4338 (exit $ac_status); } && {
4339 test -z "$ac_c_werror_flag" ||
4340 test ! -s conftest.err
4341 } && test -s conftest.$ac_objext; then
4342 ac_header_compiler=yes
4343else
4344 echo "$as_me: failed program was:" >&5
4345sed 's/^/| /' conftest.$ac_ext >&5
4346
4347 ac_header_compiler=no
4348fi
4349
4350rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4351{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4352echo "${ECHO_T}$ac_header_compiler" >&6; }
4353
4354# Is the header present?
4355{ echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4356echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6; }
4357cat >conftest.$ac_ext <<_ACEOF
4358/* confdefs.h. */
4359_ACEOF
4360cat confdefs.h >>conftest.$ac_ext
4361cat >>conftest.$ac_ext <<_ACEOF
4362/* end confdefs.h. */
4363#include <minix/config.h>
4364_ACEOF
4365if { (ac_try="$ac_cpp conftest.$ac_ext"
4366case "(($ac_try" in
4367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4368 *) ac_try_echo=$ac_try;;
4369esac
4370eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4371 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4372 ac_status=$?
4373 grep -v '^ *+' conftest.er1 >conftest.err
4374 rm -f conftest.er1
4375 cat conftest.err >&5
4376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4377 (exit $ac_status); } >/dev/null && {
4378 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4379 test ! -s conftest.err
4380 }; then
4381 ac_header_preproc=yes
4382else
4383 echo "$as_me: failed program was:" >&5
4384sed 's/^/| /' conftest.$ac_ext >&5
4385
4386 ac_header_preproc=no
4387fi
4388
4389rm -f conftest.err conftest.$ac_ext
4390{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4391echo "${ECHO_T}$ac_header_preproc" >&6; }
4392
4393# So? What about this header?
4394case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4395 yes:no: )
4396 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
4397echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4398 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
4399echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
4400 ac_header_preproc=yes
4401 ;;
4402 no:yes:* )
4403 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
4404echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
4405 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
4406echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
4407 { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
4408echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
4409 { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
4410echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
4411 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
4412echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
4413 { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
4414echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
4415
4416 ;;
4417esac
4418{ echo "$as_me:$LINENO: checking for minix/config.h" >&5
4419echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
4420if test "${ac_cv_header_minix_config_h+set}" = set; then
4421 echo $ECHO_N "(cached) $ECHO_C" >&6
4422else
4423 ac_cv_header_minix_config_h=$ac_header_preproc
4424fi
4425{ echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4426echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
4427
4428fi
4429if test $ac_cv_header_minix_config_h = yes; then
4430 MINIX=yes
4431else
4432 MINIX=
4433fi
4434
4435
4436if test "$MINIX" = yes; then
4437
4438cat >>confdefs.h <<\_ACEOF
4439#define _POSIX_SOURCE 1
4440_ACEOF
4441
4442
4443cat >>confdefs.h <<\_ACEOF
4444#define _POSIX_1_SOURCE 2
4445_ACEOF
4446
4447
4448cat >>confdefs.h <<\_ACEOF
4449#define _MINIX 1
4450_ACEOF
4451
4452fi
4453
4454{ echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
4455echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6; }
4456if test "${ac_cv_prog_cc_stdc+set}" = set; then
4457 echo $ECHO_N "(cached) $ECHO_C" >&6
4458else
4459 ac_cv_prog_cc_stdc=no
4460ac_save_CFLAGS="$CFLAGS"
4461# Don't try gcc -ansi; that turns off useful extensions and
4462# breaks some systems' header files.
4463# AIX -qlanglvl=ansi
4464# Ultrix and OSF/1 -std1
4465# HP-UX -Aa -D_HPUX_SOURCE
4466# SVR4 -Xc
4467for ac_arg in "" -qlanglvl=ansi -std1 "-Aa -D_HPUX_SOURCE" -Xc
4468do
4469 CFLAGS="$ac_save_CFLAGS $ac_arg"
4470 cat >conftest.$ac_ext <<_ACEOF
4471/* confdefs.h. */
4472_ACEOF
4473cat confdefs.h >>conftest.$ac_ext
4474cat >>conftest.$ac_ext <<_ACEOF
4475/* end confdefs.h. */
4476#if !defined(__STDC__) || __STDC__ != 1
4477choke me
4478#endif
4479
4480int
4481main ()
4482{
4483int test (int i, double x);
4484struct s1 {int (*f) (int a);};
4485struct s2 {int (*f) (double a);};
4486 ;
4487 return 0;
4488}
4489_ACEOF
4490rm -f conftest.$ac_objext
4491if { (ac_try="$ac_compile"
4492case "(($ac_try" in
4493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4494 *) ac_try_echo=$ac_try;;
4495esac
4496eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4497 (eval "$ac_compile") 2>conftest.er1
4498 ac_status=$?
4499 grep -v '^ *+' conftest.er1 >conftest.err
4500 rm -f conftest.er1
4501 cat conftest.err >&5
4502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4503 (exit $ac_status); } && {
4504 test -z "$ac_c_werror_flag" ||
4505 test ! -s conftest.err
4506 } && test -s conftest.$ac_objext; then
4507 ac_cv_prog_cc_stdc="$ac_arg"; break
4508else
4509 echo "$as_me: failed program was:" >&5
4510sed 's/^/| /' conftest.$ac_ext >&5
4511
4512
4513fi
4514
4515rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4516done
4517CFLAGS="$ac_save_CFLAGS"
4518
4519fi
4520
4521{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4522echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6; }
4523case "x$ac_cv_prog_cc_stdc" in
4524 x|xno) ;;
4525 *) CC="$CC $ac_cv_prog_cc_stdc" ;;
4526esac
4527
4528
4529{ echo "$as_me:$LINENO: checking for function prototypes" >&5
4530echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6; }
4531if test "$ac_cv_prog_cc_stdc" != no; then
4532 { echo "$as_me:$LINENO: result: yes" >&5
4533echo "${ECHO_T}yes" >&6; }
4534 cat >>confdefs.h <<\_ACEOF
4535#define PROTOTYPES 1
4536_ACEOF
4537
4538 U= ANSI2KNR=
4539else
4540 { echo "$as_me:$LINENO: result: no" >&5
4541echo "${ECHO_T}no" >&6; }
4542 U=_ ANSI2KNR=ansi2knr
4543fi
4544
4545{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
4546echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
4547if test "${ac_cv_c_const+set}" = set; then
4548 echo $ECHO_N "(cached) $ECHO_C" >&6
4549else
4550 cat >conftest.$ac_ext <<_ACEOF
4551/* confdefs.h. */
4552_ACEOF
4553cat confdefs.h >>conftest.$ac_ext
4554cat >>conftest.$ac_ext <<_ACEOF
4555/* end confdefs.h. */
4556
4557int
4558main ()
4559{
4560/* FIXME: Include the comments suggested by Paul. */
4561#ifndef __cplusplus
4562 /* Ultrix mips cc rejects this. */
4563 typedef int charset[2];
4564 const charset cs;
4565 /* SunOS 4.1.1 cc rejects this. */
4566 char const *const *pcpcc;
4567 char **ppc;
4568 /* NEC SVR4.0.2 mips cc rejects this. */
4569 struct point {int x, y;};
4570 static struct point const zero = {0,0};
4571 /* AIX XL C 1.02.0.0 rejects this.
4572 It does not let you subtract one const X* pointer from another in
4573 an arm of an if-expression whose if-part is not a constant
4574 expression */
4575 const char *g = "string";
4576 pcpcc = &g + (g ? g-g : 0);
4577 /* HPUX 7.0 cc rejects these. */
4578 ++pcpcc;
4579 ppc = (char**) pcpcc;
4580 pcpcc = (char const *const *) ppc;
4581 { /* SCO 3.2v4 cc rejects this. */
4582 char *t;
4583 char const *s = 0 ? (char *) 0 : (char const *) 0;
4584
4585 *t++ = 0;
4586 if (s) return 0;
4587 }
4588 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4589 int x[] = {25, 17};
4590 const int *foo = &x[0];
4591 ++foo;
4592 }
4593 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4594 typedef const int *iptr;
4595 iptr p = 0;
4596 ++p;
4597 }
4598 { /* AIX XL C 1.02.0.0 rejects this saying
4599 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4600 struct s { int j; const int *ap[3]; };
4601 struct s *b; b->j = 5;
4602 }
4603 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4604 const int foo = 10;
4605 if (!foo) return 0;
4606 }
4607 return !cs[0] && !zero.x;
4608#endif
4609
4610 ;
4611 return 0;
4612}
4613_ACEOF
4614rm -f conftest.$ac_objext
4615if { (ac_try="$ac_compile"
4616case "(($ac_try" in
4617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4618 *) ac_try_echo=$ac_try;;
4619esac
4620eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4621 (eval "$ac_compile") 2>conftest.er1
4622 ac_status=$?
4623 grep -v '^ *+' conftest.er1 >conftest.err
4624 rm -f conftest.er1
4625 cat conftest.err >&5
4626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4627 (exit $ac_status); } && {
4628 test -z "$ac_c_werror_flag" ||
4629 test ! -s conftest.err
4630 } && test -s conftest.$ac_objext; then
4631 ac_cv_c_const=yes
4632else
4633 echo "$as_me: failed program was:" >&5
4634sed 's/^/| /' conftest.$ac_ext >&5
4635
4636 ac_cv_c_const=no
4637fi
4638
4639rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4640fi
4641{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
4642echo "${ECHO_T}$ac_cv_c_const" >&6; }
4643if test $ac_cv_c_const = no; then
4644
4645cat >>confdefs.h <<\_ACEOF
4646#define const
4647_ACEOF
4648
4649fi
4650
4651{ echo "$as_me:$LINENO: checking for off_t" >&5
4652echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
4653if test "${ac_cv_type_off_t+set}" = set; then
4654 echo $ECHO_N "(cached) $ECHO_C" >&6
4655else
4656 cat >conftest.$ac_ext <<_ACEOF
4657/* confdefs.h. */
4658_ACEOF
4659cat confdefs.h >>conftest.$ac_ext
4660cat >>conftest.$ac_ext <<_ACEOF
4661/* end confdefs.h. */
4662$ac_includes_default
4663typedef off_t ac__type_new_;
4664int
4665main ()
4666{
4667if ((ac__type_new_ *) 0)
4668 return 0;
4669if (sizeof (ac__type_new_))
4670 return 0;
4671 ;
4672 return 0;
4673}
4674_ACEOF
4675rm -f conftest.$ac_objext
4676if { (ac_try="$ac_compile"
4677case "(($ac_try" in
4678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4679 *) ac_try_echo=$ac_try;;
4680esac
4681eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4682 (eval "$ac_compile") 2>conftest.er1
4683 ac_status=$?
4684 grep -v '^ *+' conftest.er1 >conftest.err
4685 rm -f conftest.er1
4686 cat conftest.err >&5
4687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4688 (exit $ac_status); } && {
4689 test -z "$ac_c_werror_flag" ||
4690 test ! -s conftest.err
4691 } && test -s conftest.$ac_objext; then
4692 ac_cv_type_off_t=yes
4693else
4694 echo "$as_me: failed program was:" >&5
4695sed 's/^/| /' conftest.$ac_ext >&5
4696
4697 ac_cv_type_off_t=no
4698fi
4699
4700rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4701fi
4702{ echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
4703echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
4704if test $ac_cv_type_off_t = yes; then
4705 :
4706else
4707
4708cat >>confdefs.h <<_ACEOF
4709#define off_t long int
4710_ACEOF
4711
4712fi
4713
4714{ echo "$as_me:$LINENO: checking for size_t" >&5
4715echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
4716if test "${ac_cv_type_size_t+set}" = set; then
4717 echo $ECHO_N "(cached) $ECHO_C" >&6
4718else
4719 cat >conftest.$ac_ext <<_ACEOF
4720/* confdefs.h. */
4721_ACEOF
4722cat confdefs.h >>conftest.$ac_ext
4723cat >>conftest.$ac_ext <<_ACEOF
4724/* end confdefs.h. */
4725$ac_includes_default
4726typedef size_t ac__type_new_;
4727int
4728main ()
4729{
4730if ((ac__type_new_ *) 0)
4731 return 0;
4732if (sizeof (ac__type_new_))
4733 return 0;
4734 ;
4735 return 0;
4736}
4737_ACEOF
4738rm -f conftest.$ac_objext
4739if { (ac_try="$ac_compile"
4740case "(($ac_try" in
4741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4742 *) ac_try_echo=$ac_try;;
4743esac
4744eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4745 (eval "$ac_compile") 2>conftest.er1
4746 ac_status=$?
4747 grep -v '^ *+' conftest.er1 >conftest.err
4748 rm -f conftest.er1
4749 cat conftest.err >&5
4750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4751 (exit $ac_status); } && {
4752 test -z "$ac_c_werror_flag" ||
4753 test ! -s conftest.err
4754 } && test -s conftest.$ac_objext; then
4755 ac_cv_type_size_t=yes
4756else
4757 echo "$as_me: failed program was:" >&5
4758sed 's/^/| /' conftest.$ac_ext >&5
4759
4760 ac_cv_type_size_t=no
4761fi
4762
4763rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4764fi
4765{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
4766echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
4767if test $ac_cv_type_size_t = yes; then
4768 :
4769else
4770
4771cat >>confdefs.h <<_ACEOF
4772#define size_t unsigned int
4773_ACEOF
4774
4775fi
4776
4777{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
4778echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
4779if test "${ac_cv_header_time+set}" = set; then
4780 echo $ECHO_N "(cached) $ECHO_C" >&6
4781else
4782 cat >conftest.$ac_ext <<_ACEOF
4783/* confdefs.h. */
4784_ACEOF
4785cat confdefs.h >>conftest.$ac_ext
4786cat >>conftest.$ac_ext <<_ACEOF
4787/* end confdefs.h. */
4788#include <sys/types.h>
4789#include <sys/time.h>
4790#include <time.h>
4791
4792int
4793main ()
4794{
4795if ((struct tm *) 0)
4796return 0;
4797 ;
4798 return 0;
4799}
4800_ACEOF
4801rm -f conftest.$ac_objext
4802if { (ac_try="$ac_compile"
4803case "(($ac_try" in
4804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4805 *) ac_try_echo=$ac_try;;
4806esac
4807eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4808 (eval "$ac_compile") 2>conftest.er1
4809 ac_status=$?
4810 grep -v '^ *+' conftest.er1 >conftest.err
4811 rm -f conftest.er1
4812 cat conftest.err >&5
4813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4814 (exit $ac_status); } && {
4815 test -z "$ac_c_werror_flag" ||
4816 test ! -s conftest.err
4817 } && test -s conftest.$ac_objext; then
4818 ac_cv_header_time=yes
4819else
4820 echo "$as_me: failed program was:" >&5
4821sed 's/^/| /' conftest.$ac_ext >&5
4822
4823 ac_cv_header_time=no
4824fi
4825
4826rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4827fi
4828{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
4829echo "${ECHO_T}$ac_cv_header_time" >&6; }
4830if test $ac_cv_header_time = yes; then
4831
4832cat >>confdefs.h <<\_ACEOF
4833#define TIME_WITH_SYS_TIME 1
4834_ACEOF
4835
4836fi
4837
4838{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
4839echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
4840if test "${ac_cv_struct_tm+set}" = set; then
4841 echo $ECHO_N "(cached) $ECHO_C" >&6
4842else
4843 cat >conftest.$ac_ext <<_ACEOF
4844/* confdefs.h. */
4845_ACEOF
4846cat confdefs.h >>conftest.$ac_ext
4847cat >>conftest.$ac_ext <<_ACEOF
4848/* end confdefs.h. */
4849#include <sys/types.h>
4850#include <time.h>
4851
4852int
4853main ()
4854{
4855struct tm tm;
4856 int *p = &tm.tm_sec;
4857 return !p;
4858 ;
4859 return 0;
4860}
4861_ACEOF
4862rm -f conftest.$ac_objext
4863if { (ac_try="$ac_compile"
4864case "(($ac_try" in
4865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4866 *) ac_try_echo=$ac_try;;
4867esac
4868eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4869 (eval "$ac_compile") 2>conftest.er1
4870 ac_status=$?
4871 grep -v '^ *+' conftest.er1 >conftest.err
4872 rm -f conftest.er1
4873 cat conftest.err >&5
4874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4875 (exit $ac_status); } && {
4876 test -z "$ac_c_werror_flag" ||
4877 test ! -s conftest.err
4878 } && test -s conftest.$ac_objext; then
4879 ac_cv_struct_tm=time.h
4880else
4881 echo "$as_me: failed program was:" >&5
4882sed 's/^/| /' conftest.$ac_ext >&5
4883
4884 ac_cv_struct_tm=sys/time.h
4885fi
4886
4887rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4888fi
4889{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
4890echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
4891if test $ac_cv_struct_tm = sys/time.h; then
4892
4893cat >>confdefs.h <<\_ACEOF
4894#define TM_IN_SYS_TIME 1
4895_ACEOF
4896
4897fi
4898
4899
4900
4901# Check whether --with-unac was given.
4902if test "${with_unac+set}" = set; then
4903 withval=$with_unac; UNAC_DIR=$withval
4904else
4905 UNAC_DIR="`pwd`/../packages/unac"
4906fi
4907
4908cat >>confdefs.h <<_ACEOF
4909#define UNAC_DIR "$UNAC_DIR"
4910_ACEOF
4911
4912
4913
4914#AC_ARG_WITH(unac, [ --with-libiconv-prefix=dir Use local libiconv library], LIBICONV_DIR=$withval)
4915#AC_DEFINE_UNQUOTED(LIBICONV_DIR, "$LIBICONV_DIR")
4916#AC_SUBST(LIBICONV_DIR)
4917
4918
4919if test "$ac_cv_prog_cc_stdc" = '-Xc'; then
4920cat >conftest.$ac_ext <<_ACEOF
4921/* confdefs.h. */
4922_ACEOF
4923cat confdefs.h >>conftest.$ac_ext
4924cat >>conftest.$ac_ext <<_ACEOF
4925/* end confdefs.h. */
4926#include <stdio.h>
4927
4928int
4929main ()
4930{
4931 FILE *rubbish = popen("yes", "r");
4932 ;
4933 return 0;
4934}
4935_ACEOF
4936rm -f conftest.$ac_objext
4937if { (ac_try="$ac_compile"
4938case "(($ac_try" in
4939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4940 *) ac_try_echo=$ac_try;;
4941esac
4942eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4943 (eval "$ac_compile") 2>conftest.er1
4944 ac_status=$?
4945 grep -v '^ *+' conftest.er1 >conftest.err
4946 rm -f conftest.er1
4947 cat conftest.err >&5
4948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4949 (exit $ac_status); } && {
4950 test -z "$ac_c_werror_flag" ||
4951 test ! -s conftest.err
4952 } && test -s conftest.$ac_objext; then
4953 :
4954else
4955 echo "$as_me: failed program was:" >&5
4956sed 's/^/| /' conftest.$ac_ext >&5
4957
4958 CC="`echo $CC | sed 's/-Xc/-Xa/'`" ac_cv_prog_cc_stdc='-Xa'
4959fi
4960
4961rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4962fi
4963
4964
4965
4966{ echo "$as_me:$LINENO: checking for main in -lg" >&5
4967echo $ECHO_N "checking for main in -lg... $ECHO_C" >&6; }
4968if test "${ac_cv_lib_g_main+set}" = set; then
4969 echo $ECHO_N "(cached) $ECHO_C" >&6
4970else
4971 ac_check_lib_save_LIBS=$LIBS
4972LIBS="-lg $LIBS"
4973cat >conftest.$ac_ext <<_ACEOF
4974/* confdefs.h. */
4975_ACEOF
4976cat confdefs.h >>conftest.$ac_ext
4977cat >>conftest.$ac_ext <<_ACEOF
4978/* end confdefs.h. */
4979
4980
4981int
4982main ()
4983{
4984return main ();
4985 ;
4986 return 0;
4987}
4988_ACEOF
4989rm -f conftest.$ac_objext conftest$ac_exeext
4990if { (ac_try="$ac_link"
4991case "(($ac_try" in
4992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4993 *) ac_try_echo=$ac_try;;
4994esac
4995eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4996 (eval "$ac_link") 2>conftest.er1
4997 ac_status=$?
4998 grep -v '^ *+' conftest.er1 >conftest.err
4999 rm -f conftest.er1
5000 cat conftest.err >&5
5001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5002 (exit $ac_status); } && {
5003 test -z "$ac_c_werror_flag" ||
5004 test ! -s conftest.err
5005 } && test -s conftest$ac_exeext &&
5006 $as_test_x conftest$ac_exeext; then
5007 ac_cv_lib_g_main=yes
5008else
5009 echo "$as_me: failed program was:" >&5
5010sed 's/^/| /' conftest.$ac_ext >&5
5011
5012 ac_cv_lib_g_main=no
5013fi
5014
5015rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5016 conftest$ac_exeext conftest.$ac_ext
5017LIBS=$ac_check_lib_save_LIBS
5018fi
5019{ echo "$as_me:$LINENO: result: $ac_cv_lib_g_main" >&5
5020echo "${ECHO_T}$ac_cv_lib_g_main" >&6; }
5021if test $ac_cv_lib_g_main = yes; then
5022 cat >>confdefs.h <<_ACEOF
5023#define HAVE_LIBG 1
5024_ACEOF
5025
5026 LIBS="-lg $LIBS"
5027
5028fi
5029
5030
5031{ echo "$as_me:$LINENO: checking for main in -lm" >&5
5032echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6; }
5033if test "${ac_cv_lib_m_main+set}" = set; then
5034 echo $ECHO_N "(cached) $ECHO_C" >&6
5035else
5036 ac_check_lib_save_LIBS=$LIBS
5037LIBS="-lm $LIBS"
5038cat >conftest.$ac_ext <<_ACEOF
5039/* confdefs.h. */
5040_ACEOF
5041cat confdefs.h >>conftest.$ac_ext
5042cat >>conftest.$ac_ext <<_ACEOF
5043/* end confdefs.h. */
5044
5045
5046int
5047main ()
5048{
5049return main ();
5050 ;
5051 return 0;
5052}
5053_ACEOF
5054rm -f conftest.$ac_objext conftest$ac_exeext
5055if { (ac_try="$ac_link"
5056case "(($ac_try" in
5057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5058 *) ac_try_echo=$ac_try;;
5059esac
5060eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5061 (eval "$ac_link") 2>conftest.er1
5062 ac_status=$?
5063 grep -v '^ *+' conftest.er1 >conftest.err
5064 rm -f conftest.er1
5065 cat conftest.err >&5
5066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5067 (exit $ac_status); } && {
5068 test -z "$ac_c_werror_flag" ||
5069 test ! -s conftest.err
5070 } && test -s conftest$ac_exeext &&
5071 $as_test_x conftest$ac_exeext; then
5072 ac_cv_lib_m_main=yes
5073else
5074 echo "$as_me: failed program was:" >&5
5075sed 's/^/| /' conftest.$ac_ext >&5
5076
5077 ac_cv_lib_m_main=no
5078fi
5079
5080rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5081 conftest$ac_exeext conftest.$ac_ext
5082LIBS=$ac_check_lib_save_LIBS
5083fi
5084{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
5085echo "${ECHO_T}$ac_cv_lib_m_main" >&6; }
5086if test $ac_cv_lib_m_main = yes; then
5087 cat >>confdefs.h <<_ACEOF
5088#define HAVE_LIBM 1
5089_ACEOF
5090
5091 LIBS="-lm $LIBS"
5092
5093fi
5094
5095
5096{ echo "$as_me:$LINENO: checking for main in -lstdc++" >&5
5097echo $ECHO_N "checking for main in -lstdc++... $ECHO_C" >&6; }
5098if test "${ac_cv_lib_stdcpp_main+set}" = set; then
5099 echo $ECHO_N "(cached) $ECHO_C" >&6
5100else
5101 ac_check_lib_save_LIBS=$LIBS
5102LIBS="-lstdc++ $LIBS"
5103cat >conftest.$ac_ext <<_ACEOF
5104/* confdefs.h. */
5105_ACEOF
5106cat confdefs.h >>conftest.$ac_ext
5107cat >>conftest.$ac_ext <<_ACEOF
5108/* end confdefs.h. */
5109
5110
5111int
5112main ()
5113{
5114return main ();
5115 ;
5116 return 0;
5117}
5118_ACEOF
5119rm -f conftest.$ac_objext conftest$ac_exeext
5120if { (ac_try="$ac_link"
5121case "(($ac_try" in
5122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5123 *) ac_try_echo=$ac_try;;
5124esac
5125eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5126 (eval "$ac_link") 2>conftest.er1
5127 ac_status=$?
5128 grep -v '^ *+' conftest.er1 >conftest.err
5129 rm -f conftest.er1
5130 cat conftest.err >&5
5131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5132 (exit $ac_status); } && {
5133 test -z "$ac_c_werror_flag" ||
5134 test ! -s conftest.err
5135 } && test -s conftest$ac_exeext &&
5136 $as_test_x conftest$ac_exeext; then
5137 ac_cv_lib_stdcpp_main=yes
5138else
5139 echo "$as_me: failed program was:" >&5
5140sed 's/^/| /' conftest.$ac_ext >&5
5141
5142 ac_cv_lib_stdcpp_main=no
5143fi
5144
5145rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5146 conftest$ac_exeext conftest.$ac_ext
5147LIBS=$ac_check_lib_save_LIBS
5148fi
5149{ echo "$as_me:$LINENO: result: $ac_cv_lib_stdcpp_main" >&5
5150echo "${ECHO_T}$ac_cv_lib_stdcpp_main" >&6; }
5151if test $ac_cv_lib_stdcpp_main = yes; then
5152 cat >>confdefs.h <<_ACEOF
5153#define HAVE_LIBSTDC__ 1
5154_ACEOF
5155
5156 LIBS="-lstdc++ $LIBS"
5157
5158fi
5159
5160
5161{ echo "$as_me:$LINENO: checking for main in -lcrypt" >&5
5162echo $ECHO_N "checking for main in -lcrypt... $ECHO_C" >&6; }
5163if test "${ac_cv_lib_crypt_main+set}" = set; then
5164 echo $ECHO_N "(cached) $ECHO_C" >&6
5165else
5166 ac_check_lib_save_LIBS=$LIBS
5167LIBS="-lcrypt $LIBS"
5168cat >conftest.$ac_ext <<_ACEOF
5169/* confdefs.h. */
5170_ACEOF
5171cat confdefs.h >>conftest.$ac_ext
5172cat >>conftest.$ac_ext <<_ACEOF
5173/* end confdefs.h. */
5174
5175
5176int
5177main ()
5178{
5179return main ();
5180 ;
5181 return 0;
5182}
5183_ACEOF
5184rm -f conftest.$ac_objext conftest$ac_exeext
5185if { (ac_try="$ac_link"
5186case "(($ac_try" in
5187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5188 *) ac_try_echo=$ac_try;;
5189esac
5190eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5191 (eval "$ac_link") 2>conftest.er1
5192 ac_status=$?
5193 grep -v '^ *+' conftest.er1 >conftest.err
5194 rm -f conftest.er1
5195 cat conftest.err >&5
5196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5197 (exit $ac_status); } && {
5198 test -z "$ac_c_werror_flag" ||
5199 test ! -s conftest.err
5200 } && test -s conftest$ac_exeext &&
5201 $as_test_x conftest$ac_exeext; then
5202 ac_cv_lib_crypt_main=yes
5203else
5204 echo "$as_me: failed program was:" >&5
5205sed 's/^/| /' conftest.$ac_ext >&5
5206
5207 ac_cv_lib_crypt_main=no
5208fi
5209
5210rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5211 conftest$ac_exeext conftest.$ac_ext
5212LIBS=$ac_check_lib_save_LIBS
5213fi
5214{ echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_main" >&5
5215echo "${ECHO_T}$ac_cv_lib_crypt_main" >&6; }
5216if test $ac_cv_lib_crypt_main = yes; then
5217 cat >>confdefs.h <<_ACEOF
5218#define HAVE_LIBCRYPT 1
5219_ACEOF
5220
5221 LIBS="-lcrypt $LIBS"
5222
5223fi
5224
5225#if test $ENABLE_ACCENTFOLD = 1; then
5226#AC_HAVE_LIBRARY(iconv)
5227#fi
5228
5229
5230
5231
5232
5233
5234
5235ac_header_dirent=no
5236for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5237 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5238{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
5239echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
5240if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5241 echo $ECHO_N "(cached) $ECHO_C" >&6
5242else
5243 cat >conftest.$ac_ext <<_ACEOF
5244/* confdefs.h. */
5245_ACEOF
5246cat confdefs.h >>conftest.$ac_ext
5247cat >>conftest.$ac_ext <<_ACEOF
5248/* end confdefs.h. */
5249#include <sys/types.h>
5250#include <$ac_hdr>
5251
5252int
5253main ()
5254{
5255if ((DIR *) 0)
5256return 0;
5257 ;
5258 return 0;
5259}
5260_ACEOF
5261rm -f conftest.$ac_objext
5262if { (ac_try="$ac_compile"
5263case "(($ac_try" in
5264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5265 *) ac_try_echo=$ac_try;;
5266esac
5267eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5268 (eval "$ac_compile") 2>conftest.er1
5269 ac_status=$?
5270 grep -v '^ *+' conftest.er1 >conftest.err
5271 rm -f conftest.er1
5272 cat conftest.err >&5
5273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5274 (exit $ac_status); } && {
5275 test -z "$ac_c_werror_flag" ||
5276 test ! -s conftest.err
5277 } && test -s conftest.$ac_objext; then
5278 eval "$as_ac_Header=yes"
5279else
5280 echo "$as_me: failed program was:" >&5
5281sed 's/^/| /' conftest.$ac_ext >&5
5282
5283 eval "$as_ac_Header=no"
5284fi
5285
5286rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5287fi
5288ac_res=`eval echo '${'$as_ac_Header'}'`
5289 { echo "$as_me:$LINENO: result: $ac_res" >&5
5290echo "${ECHO_T}$ac_res" >&6; }
5291if test `eval echo '${'$as_ac_Header'}'` = yes; then
5292 cat >>confdefs.h <<_ACEOF
5293#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
5294_ACEOF
5295
5296ac_header_dirent=$ac_hdr; break
5297fi
5298
5299done
5300# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5301if test $ac_header_dirent = dirent.h; then
5302 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
5303echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
5304if test "${ac_cv_search_opendir+set}" = set; then
5305 echo $ECHO_N "(cached) $ECHO_C" >&6
5306else
5307 ac_func_search_save_LIBS=$LIBS
5308cat >conftest.$ac_ext <<_ACEOF
5309/* confdefs.h. */
5310_ACEOF
5311cat confdefs.h >>conftest.$ac_ext
5312cat >>conftest.$ac_ext <<_ACEOF
5313/* end confdefs.h. */
5314
5315/* Override any GCC internal prototype to avoid an error.
5316 Use char because int might match the return type of a GCC
5317 builtin and then its argument prototype would still apply. */
5318#ifdef __cplusplus
5319extern "C"
5320#endif
5321char opendir ();
5322int
5323main ()
5324{
5325return opendir ();
5326 ;
5327 return 0;
5328}
5329_ACEOF
5330for ac_lib in '' dir; do
5331 if test -z "$ac_lib"; then
5332 ac_res="none required"
5333 else
5334 ac_res=-l$ac_lib
5335 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5336 fi
5337 rm -f conftest.$ac_objext conftest$ac_exeext
5338if { (ac_try="$ac_link"
5339case "(($ac_try" in
5340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5341 *) ac_try_echo=$ac_try;;
5342esac
5343eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5344 (eval "$ac_link") 2>conftest.er1
5345 ac_status=$?
5346 grep -v '^ *+' conftest.er1 >conftest.err
5347 rm -f conftest.er1
5348 cat conftest.err >&5
5349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5350 (exit $ac_status); } && {
5351 test -z "$ac_c_werror_flag" ||
5352 test ! -s conftest.err
5353 } && test -s conftest$ac_exeext &&
5354 $as_test_x conftest$ac_exeext; then
5355 ac_cv_search_opendir=$ac_res
5356else
5357 echo "$as_me: failed program was:" >&5
5358sed 's/^/| /' conftest.$ac_ext >&5
5359
5360
5361fi
5362
5363rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5364 conftest$ac_exeext
5365 if test "${ac_cv_search_opendir+set}" = set; then
5366 break
5367fi
5368done
5369if test "${ac_cv_search_opendir+set}" = set; then
5370 :
5371else
5372 ac_cv_search_opendir=no
5373fi
5374rm conftest.$ac_ext
5375LIBS=$ac_func_search_save_LIBS
5376fi
5377{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5378echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
5379ac_res=$ac_cv_search_opendir
5380if test "$ac_res" != no; then
5381 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5382
5383fi
5384
5385else
5386 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
5387echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
5388if test "${ac_cv_search_opendir+set}" = set; then
5389 echo $ECHO_N "(cached) $ECHO_C" >&6
5390else
5391 ac_func_search_save_LIBS=$LIBS
5392cat >conftest.$ac_ext <<_ACEOF
5393/* confdefs.h. */
5394_ACEOF
5395cat confdefs.h >>conftest.$ac_ext
5396cat >>conftest.$ac_ext <<_ACEOF
5397/* end confdefs.h. */
5398
5399/* Override any GCC internal prototype to avoid an error.
5400 Use char because int might match the return type of a GCC
5401 builtin and then its argument prototype would still apply. */
5402#ifdef __cplusplus
5403extern "C"
5404#endif
5405char opendir ();
5406int
5407main ()
5408{
5409return opendir ();
5410 ;
5411 return 0;
5412}
5413_ACEOF
5414for ac_lib in '' x; do
5415 if test -z "$ac_lib"; then
5416 ac_res="none required"
5417 else
5418 ac_res=-l$ac_lib
5419 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5420 fi
5421 rm -f conftest.$ac_objext conftest$ac_exeext
5422if { (ac_try="$ac_link"
5423case "(($ac_try" in
5424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5425 *) ac_try_echo=$ac_try;;
5426esac
5427eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5428 (eval "$ac_link") 2>conftest.er1
5429 ac_status=$?
5430 grep -v '^ *+' conftest.er1 >conftest.err
5431 rm -f conftest.er1
5432 cat conftest.err >&5
5433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5434 (exit $ac_status); } && {
5435 test -z "$ac_c_werror_flag" ||
5436 test ! -s conftest.err
5437 } && test -s conftest$ac_exeext &&
5438 $as_test_x conftest$ac_exeext; then
5439 ac_cv_search_opendir=$ac_res
5440else
5441 echo "$as_me: failed program was:" >&5
5442sed 's/^/| /' conftest.$ac_ext >&5
5443
5444
5445fi
5446
5447rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5448 conftest$ac_exeext
5449 if test "${ac_cv_search_opendir+set}" = set; then
5450 break
5451fi
5452done
5453if test "${ac_cv_search_opendir+set}" = set; then
5454 :
5455else
5456 ac_cv_search_opendir=no
5457fi
5458rm conftest.$ac_ext
5459LIBS=$ac_func_search_save_LIBS
5460fi
5461{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5462echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
5463ac_res=$ac_cv_search_opendir
5464if test "$ac_res" != no; then
5465 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5466
5467fi
5468
5469fi
5470
5471{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5472echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5473if test "${ac_cv_header_stdc+set}" = set; then
5474 echo $ECHO_N "(cached) $ECHO_C" >&6
5475else
5476 cat >conftest.$ac_ext <<_ACEOF
5477/* confdefs.h. */
5478_ACEOF
5479cat confdefs.h >>conftest.$ac_ext
5480cat >>conftest.$ac_ext <<_ACEOF
5481/* end confdefs.h. */
5482#include <stdlib.h>
5483#include <stdarg.h>
5484#include <string.h>
5485#include <float.h>
5486
5487int
5488main ()
5489{
5490
5491 ;
5492 return 0;
5493}
5494_ACEOF
5495rm -f conftest.$ac_objext
5496if { (ac_try="$ac_compile"
5497case "(($ac_try" in
5498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5499 *) ac_try_echo=$ac_try;;
5500esac
5501eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5502 (eval "$ac_compile") 2>conftest.er1
5503 ac_status=$?
5504 grep -v '^ *+' conftest.er1 >conftest.err
5505 rm -f conftest.er1
5506 cat conftest.err >&5
5507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5508 (exit $ac_status); } && {
5509 test -z "$ac_c_werror_flag" ||
5510 test ! -s conftest.err
5511 } && test -s conftest.$ac_objext; then
5512 ac_cv_header_stdc=yes
5513else
5514 echo "$as_me: failed program was:" >&5
5515sed 's/^/| /' conftest.$ac_ext >&5
5516
5517 ac_cv_header_stdc=no
5518fi
5519
5520rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5521
5522if test $ac_cv_header_stdc = yes; then
5523 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5524 cat >conftest.$ac_ext <<_ACEOF
5525/* confdefs.h. */
5526_ACEOF
5527cat confdefs.h >>conftest.$ac_ext
5528cat >>conftest.$ac_ext <<_ACEOF
5529/* end confdefs.h. */
5530#include <string.h>
5531
5532_ACEOF
5533if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5534 $EGREP "memchr" >/dev/null 2>&1; then
5535 :
5536else
5537 ac_cv_header_stdc=no
5538fi
5539rm -f conftest*
5540
5541fi
5542
5543if test $ac_cv_header_stdc = yes; then
5544 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5545 cat >conftest.$ac_ext <<_ACEOF
5546/* confdefs.h. */
5547_ACEOF
5548cat confdefs.h >>conftest.$ac_ext
5549cat >>conftest.$ac_ext <<_ACEOF
5550/* end confdefs.h. */
5551#include <stdlib.h>
5552
5553_ACEOF
5554if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5555 $EGREP "free" >/dev/null 2>&1; then
5556 :
5557else
5558 ac_cv_header_stdc=no
5559fi
5560rm -f conftest*
5561
5562fi
5563
5564if test $ac_cv_header_stdc = yes; then
5565 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5566 if test "$cross_compiling" = yes; then
5567 :
5568else
5569 cat >conftest.$ac_ext <<_ACEOF
5570/* confdefs.h. */
5571_ACEOF
5572cat confdefs.h >>conftest.$ac_ext
5573cat >>conftest.$ac_ext <<_ACEOF
5574/* end confdefs.h. */
5575#include <ctype.h>
5576#include <stdlib.h>
5577#if ((' ' & 0x0FF) == 0x020)
5578# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5579# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5580#else
5581# define ISLOWER(c) \
5582 (('a' <= (c) && (c) <= 'i') \
5583 || ('j' <= (c) && (c) <= 'r') \
5584 || ('s' <= (c) && (c) <= 'z'))
5585# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5586#endif
5587
5588#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5589int
5590main ()
5591{
5592 int i;
5593 for (i = 0; i < 256; i++)
5594 if (XOR (islower (i), ISLOWER (i))
5595 || toupper (i) != TOUPPER (i))
5596 return 2;
5597 return 0;
5598}
5599_ACEOF
5600rm -f conftest$ac_exeext
5601if { (ac_try="$ac_link"
5602case "(($ac_try" in
5603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5604 *) ac_try_echo=$ac_try;;
5605esac
5606eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5607 (eval "$ac_link") 2>&5
5608 ac_status=$?
5609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5610 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5611 { (case "(($ac_try" in
5612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5613 *) ac_try_echo=$ac_try;;
5614esac
5615eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5616 (eval "$ac_try") 2>&5
5617 ac_status=$?
5618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5619 (exit $ac_status); }; }; then
5620 :
5621else
5622 echo "$as_me: program exited with status $ac_status" >&5
5623echo "$as_me: failed program was:" >&5
5624sed 's/^/| /' conftest.$ac_ext >&5
5625
5626( exit $ac_status )
5627ac_cv_header_stdc=no
5628fi
5629rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5630fi
5631
5632
5633fi
5634fi
5635{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5636echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5637if test $ac_cv_header_stdc = yes; then
5638
5639cat >>confdefs.h <<\_ACEOF
5640#define STDC_HEADERS 1
5641_ACEOF
5642
5643fi
5644
5645
5646
5647
5648
5649
5650
5651
5652
5653for ac_header in fcntl.h limits.h sys/time.h unistd.h crypt.h string.h memory.h sys/procfs.h
5654do
5655as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5656if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5657 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5658echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5659if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5660 echo $ECHO_N "(cached) $ECHO_C" >&6
5661fi
5662ac_res=`eval echo '${'$as_ac_Header'}'`
5663 { echo "$as_me:$LINENO: result: $ac_res" >&5
5664echo "${ECHO_T}$ac_res" >&6; }
5665else
5666 # Is the header compilable?
5667{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
5668echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5669cat >conftest.$ac_ext <<_ACEOF
5670/* confdefs.h. */
5671_ACEOF
5672cat confdefs.h >>conftest.$ac_ext
5673cat >>conftest.$ac_ext <<_ACEOF
5674/* end confdefs.h. */
5675$ac_includes_default
5676#include <$ac_header>
5677_ACEOF
5678rm -f conftest.$ac_objext
5679if { (ac_try="$ac_compile"
5680case "(($ac_try" in
5681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5682 *) ac_try_echo=$ac_try;;
5683esac
5684eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5685 (eval "$ac_compile") 2>conftest.er1
5686 ac_status=$?
5687 grep -v '^ *+' conftest.er1 >conftest.err
5688 rm -f conftest.er1
5689 cat conftest.err >&5
5690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5691 (exit $ac_status); } && {
5692 test -z "$ac_c_werror_flag" ||
5693 test ! -s conftest.err
5694 } && test -s conftest.$ac_objext; then
5695 ac_header_compiler=yes
5696else
5697 echo "$as_me: failed program was:" >&5
5698sed 's/^/| /' conftest.$ac_ext >&5
5699
5700 ac_header_compiler=no
5701fi
5702
5703rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5704{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5705echo "${ECHO_T}$ac_header_compiler" >&6; }
5706
5707# Is the header present?
5708{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
5709echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5710cat >conftest.$ac_ext <<_ACEOF
5711/* confdefs.h. */
5712_ACEOF
5713cat confdefs.h >>conftest.$ac_ext
5714cat >>conftest.$ac_ext <<_ACEOF
5715/* end confdefs.h. */
5716#include <$ac_header>
5717_ACEOF
5718if { (ac_try="$ac_cpp conftest.$ac_ext"
5719case "(($ac_try" in
5720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5721 *) ac_try_echo=$ac_try;;
5722esac
5723eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5724 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5725 ac_status=$?
5726 grep -v '^ *+' conftest.er1 >conftest.err
5727 rm -f conftest.er1
5728 cat conftest.err >&5
5729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5730 (exit $ac_status); } >/dev/null && {
5731 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5732 test ! -s conftest.err
5733 }; then
5734 ac_header_preproc=yes
5735else
5736 echo "$as_me: failed program was:" >&5
5737sed 's/^/| /' conftest.$ac_ext >&5
5738
5739 ac_header_preproc=no
5740fi
5741
5742rm -f conftest.err conftest.$ac_ext
5743{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5744echo "${ECHO_T}$ac_header_preproc" >&6; }
5745
5746# So? What about this header?
5747case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5748 yes:no: )
5749 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5750echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5751 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5752echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5753 ac_header_preproc=yes
5754 ;;
5755 no:yes:* )
5756 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5757echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5758 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5759echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5760 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5761echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5762 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5763echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5764 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5765echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5766 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5767echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5768
5769 ;;
5770esac
5771{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5772echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5773if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5774 echo $ECHO_N "(cached) $ECHO_C" >&6
5775else
5776 eval "$as_ac_Header=\$ac_header_preproc"
5777fi
5778ac_res=`eval echo '${'$as_ac_Header'}'`
5779 { echo "$as_me:$LINENO: result: $ac_res" >&5
5780echo "${ECHO_T}$ac_res" >&6; }
5781
5782fi
5783if test `eval echo '${'$as_ac_Header'}'` = yes; then
5784 cat >>confdefs.h <<_ACEOF
5785#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5786_ACEOF
5787
5788fi
5789
5790done
5791
5792cat >conftest.$ac_ext <<_ACEOF
5793/* confdefs.h. */
5794_ACEOF
5795cat confdefs.h >>conftest.$ac_ext
5796cat >>conftest.$ac_ext <<_ACEOF
5797/* end confdefs.h. */
5798#include <stdio.h>
5799
5800_ACEOF
5801if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5802 $EGREP "fread" >/dev/null 2>&1; then
5803 cat >>confdefs.h <<\_ACEOF
5804#define HAVE_FREAD_DECL 1
5805_ACEOF
5806
5807fi
5808rm -f conftest*
5809
5810cat >conftest.$ac_ext <<_ACEOF
5811/* confdefs.h. */
5812_ACEOF
5813cat confdefs.h >>conftest.$ac_ext
5814cat >>conftest.$ac_ext <<_ACEOF
5815/* end confdefs.h. */
5816#include <stdio.h>
5817
5818_ACEOF
5819if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5820 $EGREP "fgetc" >/dev/null 2>&1; then
5821 cat >>confdefs.h <<\_ACEOF
5822#define HAVE_FGETC_DECL 1
5823_ACEOF
5824
5825fi
5826rm -f conftest*
5827
5828cat >conftest.$ac_ext <<_ACEOF
5829/* confdefs.h. */
5830_ACEOF
5831cat confdefs.h >>conftest.$ac_ext
5832cat >>conftest.$ac_ext <<_ACEOF
5833/* end confdefs.h. */
5834#include <sys/procfs.h>
5835
5836_ACEOF
5837if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5838 $EGREP "pr_brksize" >/dev/null 2>&1; then
5839 cat >>confdefs.h <<\_ACEOF
5840#define HAVE_PR_BRKSIZE 1
5841_ACEOF
5842
5843fi
5844rm -f conftest*
5845
5846
5847# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5848# for constant arguments. Useless!
5849{ echo "$as_me:$LINENO: checking for working alloca.h" >&5
5850echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
5851if test "${ac_cv_working_alloca_h+set}" = set; then
5852 echo $ECHO_N "(cached) $ECHO_C" >&6
5853else
5854 cat >conftest.$ac_ext <<_ACEOF
5855/* confdefs.h. */
5856_ACEOF
5857cat confdefs.h >>conftest.$ac_ext
5858cat >>conftest.$ac_ext <<_ACEOF
5859/* end confdefs.h. */
5860#include <alloca.h>
5861int
5862main ()
5863{
5864char *p = (char *) alloca (2 * sizeof (int));
5865 if (p) return 0;
5866 ;
5867 return 0;
5868}
5869_ACEOF
5870rm -f conftest.$ac_objext conftest$ac_exeext
5871if { (ac_try="$ac_link"
5872case "(($ac_try" in
5873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5874 *) ac_try_echo=$ac_try;;
5875esac
5876eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5877 (eval "$ac_link") 2>conftest.er1
5878 ac_status=$?
5879 grep -v '^ *+' conftest.er1 >conftest.err
5880 rm -f conftest.er1
5881 cat conftest.err >&5
5882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5883 (exit $ac_status); } && {
5884 test -z "$ac_c_werror_flag" ||
5885 test ! -s conftest.err
5886 } && test -s conftest$ac_exeext &&
5887 $as_test_x conftest$ac_exeext; then
5888 ac_cv_working_alloca_h=yes
5889else
5890 echo "$as_me: failed program was:" >&5
5891sed 's/^/| /' conftest.$ac_ext >&5
5892
5893 ac_cv_working_alloca_h=no
5894fi
5895
5896rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5897 conftest$ac_exeext conftest.$ac_ext
5898fi
5899{ echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
5900echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
5901if test $ac_cv_working_alloca_h = yes; then
5902
5903cat >>confdefs.h <<\_ACEOF
5904#define HAVE_ALLOCA_H 1
5905_ACEOF
5906
5907fi
5908
5909{ echo "$as_me:$LINENO: checking for alloca" >&5
5910echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
5911if test "${ac_cv_func_alloca_works+set}" = set; then
5912 echo $ECHO_N "(cached) $ECHO_C" >&6
5913else
5914 cat >conftest.$ac_ext <<_ACEOF
5915/* confdefs.h. */
5916_ACEOF
5917cat confdefs.h >>conftest.$ac_ext
5918cat >>conftest.$ac_ext <<_ACEOF
5919/* end confdefs.h. */
5920#ifdef __GNUC__
5921# define alloca __builtin_alloca
5922#else
5923# ifdef _MSC_VER
5924# include <malloc.h>
5925# define alloca _alloca
5926# else
5927# ifdef HAVE_ALLOCA_H
5928# include <alloca.h>
5929# else
5930# ifdef _AIX
5931 #pragma alloca
5932# else
5933# ifndef alloca /* predefined by HP cc +Olibcalls */
5934char *alloca ();
5935# endif
5936# endif
5937# endif
5938# endif
5939#endif
5940
5941int
5942main ()
5943{
5944char *p = (char *) alloca (1);
5945 if (p) return 0;
5946 ;
5947 return 0;
5948}
5949_ACEOF
5950rm -f conftest.$ac_objext conftest$ac_exeext
5951if { (ac_try="$ac_link"
5952case "(($ac_try" in
5953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5954 *) ac_try_echo=$ac_try;;
5955esac
5956eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5957 (eval "$ac_link") 2>conftest.er1
5958 ac_status=$?
5959 grep -v '^ *+' conftest.er1 >conftest.err
5960 rm -f conftest.er1
5961 cat conftest.err >&5
5962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5963 (exit $ac_status); } && {
5964 test -z "$ac_c_werror_flag" ||
5965 test ! -s conftest.err
5966 } && test -s conftest$ac_exeext &&
5967 $as_test_x conftest$ac_exeext; then
5968 ac_cv_func_alloca_works=yes
5969else
5970 echo "$as_me: failed program was:" >&5
5971sed 's/^/| /' conftest.$ac_ext >&5
5972
5973 ac_cv_func_alloca_works=no
5974fi
5975
5976rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5977 conftest$ac_exeext conftest.$ac_ext
5978fi
5979{ echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
5980echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
5981
5982if test $ac_cv_func_alloca_works = yes; then
5983
5984cat >>confdefs.h <<\_ACEOF
5985#define HAVE_ALLOCA 1
5986_ACEOF
5987
5988else
5989 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5990# that cause trouble. Some versions do not even contain alloca or
5991# contain a buggy version. If you still want to use their alloca,
5992# use ar to extract alloca.o from them instead of compiling alloca.c.
5993
5994ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
5995
5996cat >>confdefs.h <<\_ACEOF
5997#define C_ALLOCA 1
5998_ACEOF
5999
6000
6001{ echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
6002echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
6003if test "${ac_cv_os_cray+set}" = set; then
6004 echo $ECHO_N "(cached) $ECHO_C" >&6
6005else
6006 cat >conftest.$ac_ext <<_ACEOF
6007/* confdefs.h. */
6008_ACEOF
6009cat confdefs.h >>conftest.$ac_ext
6010cat >>conftest.$ac_ext <<_ACEOF
6011/* end confdefs.h. */
6012#if defined CRAY && ! defined CRAY2
6013webecray
6014#else
6015wenotbecray
6016#endif
6017
6018_ACEOF
6019if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6020 $EGREP "webecray" >/dev/null 2>&1; then
6021 ac_cv_os_cray=yes
6022else
6023 ac_cv_os_cray=no
6024fi
6025rm -f conftest*
6026
6027fi
6028{ echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
6029echo "${ECHO_T}$ac_cv_os_cray" >&6; }
6030if test $ac_cv_os_cray = yes; then
6031 for ac_func in _getb67 GETB67 getb67; do
6032 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6033{ echo "$as_me:$LINENO: checking for $ac_func" >&5
6034echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6035if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6036 echo $ECHO_N "(cached) $ECHO_C" >&6
6037else
6038 cat >conftest.$ac_ext <<_ACEOF
6039/* confdefs.h. */
6040_ACEOF
6041cat confdefs.h >>conftest.$ac_ext
6042cat >>conftest.$ac_ext <<_ACEOF
6043/* end confdefs.h. */
6044/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6045 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6046#define $ac_func innocuous_$ac_func
6047
6048/* System header to define __stub macros and hopefully few prototypes,
6049 which can conflict with char $ac_func (); below.
6050 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6051 <limits.h> exists even on freestanding compilers. */
6052
6053#ifdef __STDC__
6054# include <limits.h>
6055#else
6056# include <assert.h>
6057#endif
6058
6059#undef $ac_func
6060
6061/* Override any GCC internal prototype to avoid an error.
6062 Use char because int might match the return type of a GCC
6063 builtin and then its argument prototype would still apply. */
6064#ifdef __cplusplus
6065extern "C"
6066#endif
6067char $ac_func ();
6068/* The GNU C library defines this for functions which it implements
6069 to always fail with ENOSYS. Some functions are actually named
6070 something starting with __ and the normal name is an alias. */
6071#if defined __stub_$ac_func || defined __stub___$ac_func
6072choke me
6073#endif
6074
6075int
6076main ()
6077{
6078return $ac_func ();
6079 ;
6080 return 0;
6081}
6082_ACEOF
6083rm -f conftest.$ac_objext conftest$ac_exeext
6084if { (ac_try="$ac_link"
6085case "(($ac_try" in
6086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6087 *) ac_try_echo=$ac_try;;
6088esac
6089eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6090 (eval "$ac_link") 2>conftest.er1
6091 ac_status=$?
6092 grep -v '^ *+' conftest.er1 >conftest.err
6093 rm -f conftest.er1
6094 cat conftest.err >&5
6095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6096 (exit $ac_status); } && {
6097 test -z "$ac_c_werror_flag" ||
6098 test ! -s conftest.err
6099 } && test -s conftest$ac_exeext &&
6100 $as_test_x conftest$ac_exeext; then
6101 eval "$as_ac_var=yes"
6102else
6103 echo "$as_me: failed program was:" >&5
6104sed 's/^/| /' conftest.$ac_ext >&5
6105
6106 eval "$as_ac_var=no"
6107fi
6108
6109rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6110 conftest$ac_exeext conftest.$ac_ext
6111fi
6112ac_res=`eval echo '${'$as_ac_var'}'`
6113 { echo "$as_me:$LINENO: result: $ac_res" >&5
6114echo "${ECHO_T}$ac_res" >&6; }
6115if test `eval echo '${'$as_ac_var'}'` = yes; then
6116
6117cat >>confdefs.h <<_ACEOF
6118#define CRAY_STACKSEG_END $ac_func
6119_ACEOF
6120
6121 break
6122fi
6123
6124 done
6125fi
6126
6127{ echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
6128echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
6129if test "${ac_cv_c_stack_direction+set}" = set; then
6130 echo $ECHO_N "(cached) $ECHO_C" >&6
6131else
6132 if test "$cross_compiling" = yes; then
6133 ac_cv_c_stack_direction=0
6134else
6135 cat >conftest.$ac_ext <<_ACEOF
6136/* confdefs.h. */
6137_ACEOF
6138cat confdefs.h >>conftest.$ac_ext
6139cat >>conftest.$ac_ext <<_ACEOF
6140/* end confdefs.h. */
6141$ac_includes_default
6142int
6143find_stack_direction ()
6144{
6145 static char *addr = 0;
6146 auto char dummy;
6147 if (addr == 0)
6148 {
6149 addr = &dummy;
6150 return find_stack_direction ();
6151 }
6152 else
6153 return (&dummy > addr) ? 1 : -1;
6154}
6155
6156int
6157main ()
6158{
6159 return find_stack_direction () < 0;
6160}
6161_ACEOF
6162rm -f conftest$ac_exeext
6163if { (ac_try="$ac_link"
6164case "(($ac_try" in
6165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6166 *) ac_try_echo=$ac_try;;
6167esac
6168eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6169 (eval "$ac_link") 2>&5
6170 ac_status=$?
6171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6172 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6173 { (case "(($ac_try" in
6174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6175 *) ac_try_echo=$ac_try;;
6176esac
6177eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6178 (eval "$ac_try") 2>&5
6179 ac_status=$?
6180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6181 (exit $ac_status); }; }; then
6182 ac_cv_c_stack_direction=1
6183else
6184 echo "$as_me: program exited with status $ac_status" >&5
6185echo "$as_me: failed program was:" >&5
6186sed 's/^/| /' conftest.$ac_ext >&5
6187
6188( exit $ac_status )
6189ac_cv_c_stack_direction=-1
6190fi
6191rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6192fi
6193
6194
6195fi
6196{ echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
6197echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
6198
6199cat >>confdefs.h <<_ACEOF
6200#define STACK_DIRECTION $ac_cv_c_stack_direction
6201_ACEOF
6202
6203
6204fi
6205
6206if test $ac_cv_c_compiler_gnu = yes; then
6207 { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
6208echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
6209if test "${ac_cv_prog_gcc_traditional+set}" = set; then
6210 echo $ECHO_N "(cached) $ECHO_C" >&6
6211else
6212 ac_pattern="Autoconf.*'x'"
6213 cat >conftest.$ac_ext <<_ACEOF
6214/* confdefs.h. */
6215_ACEOF
6216cat confdefs.h >>conftest.$ac_ext
6217cat >>conftest.$ac_ext <<_ACEOF
6218/* end confdefs.h. */
6219#include <sgtty.h>
6220Autoconf TIOCGETP
6221_ACEOF
6222if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6223 $EGREP "$ac_pattern" >/dev/null 2>&1; then
6224 ac_cv_prog_gcc_traditional=yes
6225else
6226 ac_cv_prog_gcc_traditional=no
6227fi
6228rm -f conftest*
6229
6230
6231 if test $ac_cv_prog_gcc_traditional = no; then
6232 cat >conftest.$ac_ext <<_ACEOF
6233/* confdefs.h. */
6234_ACEOF
6235cat confdefs.h >>conftest.$ac_ext
6236cat >>conftest.$ac_ext <<_ACEOF
6237/* end confdefs.h. */
6238#include <termio.h>
6239Autoconf TCGETA
6240_ACEOF
6241if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6242 $EGREP "$ac_pattern" >/dev/null 2>&1; then
6243 ac_cv_prog_gcc_traditional=yes
6244fi
6245rm -f conftest*
6246
6247 fi
6248fi
6249{ echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
6250echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
6251 if test $ac_cv_prog_gcc_traditional = yes; then
6252 CC="$CC -traditional"
6253 fi
6254fi
6255
6256{ echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6257echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
6258if test "${ac_cv_type_signal+set}" = set; then
6259 echo $ECHO_N "(cached) $ECHO_C" >&6
6260else
6261 cat >conftest.$ac_ext <<_ACEOF
6262/* confdefs.h. */
6263_ACEOF
6264cat confdefs.h >>conftest.$ac_ext
6265cat >>conftest.$ac_ext <<_ACEOF
6266/* end confdefs.h. */
6267#include <sys/types.h>
6268#include <signal.h>
6269
6270int
6271main ()
6272{
6273return *(signal (0, 0)) (0) == 1;
6274 ;
6275 return 0;
6276}
6277_ACEOF
6278rm -f conftest.$ac_objext
6279if { (ac_try="$ac_compile"
6280case "(($ac_try" in
6281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6282 *) ac_try_echo=$ac_try;;
6283esac
6284eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6285 (eval "$ac_compile") 2>conftest.er1
6286 ac_status=$?
6287 grep -v '^ *+' conftest.er1 >conftest.err
6288 rm -f conftest.er1
6289 cat conftest.err >&5
6290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6291 (exit $ac_status); } && {
6292 test -z "$ac_c_werror_flag" ||
6293 test ! -s conftest.err
6294 } && test -s conftest.$ac_objext; then
6295 ac_cv_type_signal=int
6296else
6297 echo "$as_me: failed program was:" >&5
6298sed 's/^/| /' conftest.$ac_ext >&5
6299
6300 ac_cv_type_signal=void
6301fi
6302
6303rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6304fi
6305{ echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6306echo "${ECHO_T}$ac_cv_type_signal" >&6; }
6307
6308cat >>confdefs.h <<_ACEOF
6309#define RETSIGTYPE $ac_cv_type_signal
6310_ACEOF
6311
6312
6313
6314for ac_func in vprintf
6315do
6316as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6317{ echo "$as_me:$LINENO: checking for $ac_func" >&5
6318echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6319if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6320 echo $ECHO_N "(cached) $ECHO_C" >&6
6321else
6322 cat >conftest.$ac_ext <<_ACEOF
6323/* confdefs.h. */
6324_ACEOF
6325cat confdefs.h >>conftest.$ac_ext
6326cat >>conftest.$ac_ext <<_ACEOF
6327/* end confdefs.h. */
6328/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6329 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6330#define $ac_func innocuous_$ac_func
6331
6332/* System header to define __stub macros and hopefully few prototypes,
6333 which can conflict with char $ac_func (); below.
6334 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6335 <limits.h> exists even on freestanding compilers. */
6336
6337#ifdef __STDC__
6338# include <limits.h>
6339#else
6340# include <assert.h>
6341#endif
6342
6343#undef $ac_func
6344
6345/* Override any GCC internal prototype to avoid an error.
6346 Use char because int might match the return type of a GCC
6347 builtin and then its argument prototype would still apply. */
6348#ifdef __cplusplus
6349extern "C"
6350#endif
6351char $ac_func ();
6352/* The GNU C library defines this for functions which it implements
6353 to always fail with ENOSYS. Some functions are actually named
6354 something starting with __ and the normal name is an alias. */
6355#if defined __stub_$ac_func || defined __stub___$ac_func
6356choke me
6357#endif
6358
6359int
6360main ()
6361{
6362return $ac_func ();
6363 ;
6364 return 0;
6365}
6366_ACEOF
6367rm -f conftest.$ac_objext conftest$ac_exeext
6368if { (ac_try="$ac_link"
6369case "(($ac_try" in
6370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6371 *) ac_try_echo=$ac_try;;
6372esac
6373eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6374 (eval "$ac_link") 2>conftest.er1
6375 ac_status=$?
6376 grep -v '^ *+' conftest.er1 >conftest.err
6377 rm -f conftest.er1
6378 cat conftest.err >&5
6379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6380 (exit $ac_status); } && {
6381 test -z "$ac_c_werror_flag" ||
6382 test ! -s conftest.err
6383 } && test -s conftest$ac_exeext &&
6384 $as_test_x conftest$ac_exeext; then
6385 eval "$as_ac_var=yes"
6386else
6387 echo "$as_me: failed program was:" >&5
6388sed 's/^/| /' conftest.$ac_ext >&5
6389
6390 eval "$as_ac_var=no"
6391fi
6392
6393rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6394 conftest$ac_exeext conftest.$ac_ext
6395fi
6396ac_res=`eval echo '${'$as_ac_var'}'`
6397 { echo "$as_me:$LINENO: result: $ac_res" >&5
6398echo "${ECHO_T}$ac_res" >&6; }
6399if test `eval echo '${'$as_ac_var'}'` = yes; then
6400 cat >>confdefs.h <<_ACEOF
6401#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6402_ACEOF
6403
6404{ echo "$as_me:$LINENO: checking for _doprnt" >&5
6405echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
6406if test "${ac_cv_func__doprnt+set}" = set; then
6407 echo $ECHO_N "(cached) $ECHO_C" >&6
6408else
6409 cat >conftest.$ac_ext <<_ACEOF
6410/* confdefs.h. */
6411_ACEOF
6412cat confdefs.h >>conftest.$ac_ext
6413cat >>conftest.$ac_ext <<_ACEOF
6414/* end confdefs.h. */
6415/* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
6416 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6417#define _doprnt innocuous__doprnt
6418
6419/* System header to define __stub macros and hopefully few prototypes,
6420 which can conflict with char _doprnt (); below.
6421 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6422 <limits.h> exists even on freestanding compilers. */
6423
6424#ifdef __STDC__
6425# include <limits.h>
6426#else
6427# include <assert.h>
6428#endif
6429
6430#undef _doprnt
6431
6432/* Override any GCC internal prototype to avoid an error.
6433 Use char because int might match the return type of a GCC
6434 builtin and then its argument prototype would still apply. */
6435#ifdef __cplusplus
6436extern "C"
6437#endif
6438char _doprnt ();
6439/* The GNU C library defines this for functions which it implements
6440 to always fail with ENOSYS. Some functions are actually named
6441 something starting with __ and the normal name is an alias. */
6442#if defined __stub__doprnt || defined __stub____doprnt
6443choke me
6444#endif
6445
6446int
6447main ()
6448{
6449return _doprnt ();
6450 ;
6451 return 0;
6452}
6453_ACEOF
6454rm -f conftest.$ac_objext conftest$ac_exeext
6455if { (ac_try="$ac_link"
6456case "(($ac_try" in
6457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6458 *) ac_try_echo=$ac_try;;
6459esac
6460eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6461 (eval "$ac_link") 2>conftest.er1
6462 ac_status=$?
6463 grep -v '^ *+' conftest.er1 >conftest.err
6464 rm -f conftest.er1
6465 cat conftest.err >&5
6466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6467 (exit $ac_status); } && {
6468 test -z "$ac_c_werror_flag" ||
6469 test ! -s conftest.err
6470 } && test -s conftest$ac_exeext &&
6471 $as_test_x conftest$ac_exeext; then
6472 ac_cv_func__doprnt=yes
6473else
6474 echo "$as_me: failed program was:" >&5
6475sed 's/^/| /' conftest.$ac_ext >&5
6476
6477 ac_cv_func__doprnt=no
6478fi
6479
6480rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6481 conftest$ac_exeext conftest.$ac_ext
6482fi
6483{ echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
6484echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
6485if test $ac_cv_func__doprnt = yes; then
6486
6487cat >>confdefs.h <<\_ACEOF
6488#define HAVE_DOPRNT 1
6489_ACEOF
6490
6491fi
6492
6493fi
6494done
6495
6496
6497
6498
6499
6500
6501
6502
6503
6504
6505
6506
6507for ac_func in ftime select strftime strtol getrusage times mallinfo setbuffer getpagesize strerror
6508do
6509as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6510{ echo "$as_me:$LINENO: checking for $ac_func" >&5
6511echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6512if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6513 echo $ECHO_N "(cached) $ECHO_C" >&6
6514else
6515 cat >conftest.$ac_ext <<_ACEOF
6516/* confdefs.h. */
6517_ACEOF
6518cat confdefs.h >>conftest.$ac_ext
6519cat >>conftest.$ac_ext <<_ACEOF
6520/* end confdefs.h. */
6521/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6522 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6523#define $ac_func innocuous_$ac_func
6524
6525/* System header to define __stub macros and hopefully few prototypes,
6526 which can conflict with char $ac_func (); below.
6527 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6528 <limits.h> exists even on freestanding compilers. */
6529
6530#ifdef __STDC__
6531# include <limits.h>
6532#else
6533# include <assert.h>
6534#endif
6535
6536#undef $ac_func
6537
6538/* Override any GCC internal prototype to avoid an error.
6539 Use char because int might match the return type of a GCC
6540 builtin and then its argument prototype would still apply. */
6541#ifdef __cplusplus
6542extern "C"
6543#endif
6544char $ac_func ();
6545/* The GNU C library defines this for functions which it implements
6546 to always fail with ENOSYS. Some functions are actually named
6547 something starting with __ and the normal name is an alias. */
6548#if defined __stub_$ac_func || defined __stub___$ac_func
6549choke me
6550#endif
6551
6552int
6553main ()
6554{
6555return $ac_func ();
6556 ;
6557 return 0;
6558}
6559_ACEOF
6560rm -f conftest.$ac_objext conftest$ac_exeext
6561if { (ac_try="$ac_link"
6562case "(($ac_try" in
6563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6564 *) ac_try_echo=$ac_try;;
6565esac
6566eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6567 (eval "$ac_link") 2>conftest.er1
6568 ac_status=$?
6569 grep -v '^ *+' conftest.er1 >conftest.err
6570 rm -f conftest.er1
6571 cat conftest.err >&5
6572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6573 (exit $ac_status); } && {
6574 test -z "$ac_c_werror_flag" ||
6575 test ! -s conftest.err
6576 } && test -s conftest$ac_exeext &&
6577 $as_test_x conftest$ac_exeext; then
6578 eval "$as_ac_var=yes"
6579else
6580 echo "$as_me: failed program was:" >&5
6581sed 's/^/| /' conftest.$ac_ext >&5
6582
6583 eval "$as_ac_var=no"
6584fi
6585
6586rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6587 conftest$ac_exeext conftest.$ac_ext
6588fi
6589ac_res=`eval echo '${'$as_ac_var'}'`
6590 { echo "$as_me:$LINENO: result: $ac_res" >&5
6591echo "${ECHO_T}$ac_res" >&6; }
6592if test `eval echo '${'$as_ac_var'}'` = yes; then
6593 cat >>confdefs.h <<_ACEOF
6594#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6595_ACEOF
6596
6597fi
6598done
6599
6600
6601
6602
6603for ac_func in ftruncate strstr strcasecmp
6604do
6605as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6606{ echo "$as_me:$LINENO: checking for $ac_func" >&5
6607echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6608if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6609 echo $ECHO_N "(cached) $ECHO_C" >&6
6610else
6611 cat >conftest.$ac_ext <<_ACEOF
6612/* confdefs.h. */
6613_ACEOF
6614cat confdefs.h >>conftest.$ac_ext
6615cat >>conftest.$ac_ext <<_ACEOF
6616/* end confdefs.h. */
6617/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6618 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6619#define $ac_func innocuous_$ac_func
6620
6621/* System header to define __stub macros and hopefully few prototypes,
6622 which can conflict with char $ac_func (); below.
6623 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6624 <limits.h> exists even on freestanding compilers. */
6625
6626#ifdef __STDC__
6627# include <limits.h>
6628#else
6629# include <assert.h>
6630#endif
6631
6632#undef $ac_func
6633
6634/* Override any GCC internal prototype to avoid an error.
6635 Use char because int might match the return type of a GCC
6636 builtin and then its argument prototype would still apply. */
6637#ifdef __cplusplus
6638extern "C"
6639#endif
6640char $ac_func ();
6641/* The GNU C library defines this for functions which it implements
6642 to always fail with ENOSYS. Some functions are actually named
6643 something starting with __ and the normal name is an alias. */
6644#if defined __stub_$ac_func || defined __stub___$ac_func
6645choke me
6646#endif
6647
6648int
6649main ()
6650{
6651return $ac_func ();
6652 ;
6653 return 0;
6654}
6655_ACEOF
6656rm -f conftest.$ac_objext conftest$ac_exeext
6657if { (ac_try="$ac_link"
6658case "(($ac_try" in
6659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6660 *) ac_try_echo=$ac_try;;
6661esac
6662eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6663 (eval "$ac_link") 2>conftest.er1
6664 ac_status=$?
6665 grep -v '^ *+' conftest.er1 >conftest.err
6666 rm -f conftest.er1
6667 cat conftest.err >&5
6668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6669 (exit $ac_status); } && {
6670 test -z "$ac_c_werror_flag" ||
6671 test ! -s conftest.err
6672 } && test -s conftest$ac_exeext &&
6673 $as_test_x conftest$ac_exeext; then
6674 eval "$as_ac_var=yes"
6675else
6676 echo "$as_me: failed program was:" >&5
6677sed 's/^/| /' conftest.$ac_ext >&5
6678
6679 eval "$as_ac_var=no"
6680fi
6681
6682rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6683 conftest$ac_exeext conftest.$ac_ext
6684fi
6685ac_res=`eval echo '${'$as_ac_var'}'`
6686 { echo "$as_me:$LINENO: result: $ac_res" >&5
6687echo "${ECHO_T}$ac_res" >&6; }
6688if test `eval echo '${'$as_ac_var'}'` = yes; then
6689 cat >>confdefs.h <<_ACEOF
6690#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6691_ACEOF
6692
6693else
6694 case " $LIBOBJS " in
6695 *" $ac_func.$ac_objext "* ) ;;
6696 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
6697 ;;
6698esac
6699
6700fi
6701done
6702
6703
6704
6705
6706{ echo "$as_me:$LINENO: checking for textdomain" >&5
6707echo $ECHO_N "checking for textdomain... $ECHO_C" >&6; }
6708if test "${ac_cv_func_textdomain+set}" = set; then
6709 echo $ECHO_N "(cached) $ECHO_C" >&6
6710else
6711 cat >conftest.$ac_ext <<_ACEOF
6712/* confdefs.h. */
6713_ACEOF
6714cat confdefs.h >>conftest.$ac_ext
6715cat >>conftest.$ac_ext <<_ACEOF
6716/* end confdefs.h. */
6717/* Define textdomain to an innocuous variant, in case <limits.h> declares textdomain.
6718 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6719#define textdomain innocuous_textdomain
6720
6721/* System header to define __stub macros and hopefully few prototypes,
6722 which can conflict with char textdomain (); below.
6723 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6724 <limits.h> exists even on freestanding compilers. */
6725
6726#ifdef __STDC__
6727# include <limits.h>
6728#else
6729# include <assert.h>
6730#endif
6731
6732#undef textdomain
6733
6734/* Override any GCC internal prototype to avoid an error.
6735 Use char because int might match the return type of a GCC
6736 builtin and then its argument prototype would still apply. */
6737#ifdef __cplusplus
6738extern "C"
6739#endif
6740char textdomain ();
6741/* The GNU C library defines this for functions which it implements
6742 to always fail with ENOSYS. Some functions are actually named
6743 something starting with __ and the normal name is an alias. */
6744#if defined __stub_textdomain || defined __stub___textdomain
6745choke me
6746#endif
6747
6748int
6749main ()
6750{
6751return textdomain ();
6752 ;
6753 return 0;
6754}
6755_ACEOF
6756rm -f conftest.$ac_objext conftest$ac_exeext
6757if { (ac_try="$ac_link"
6758case "(($ac_try" in
6759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6760 *) ac_try_echo=$ac_try;;
6761esac
6762eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6763 (eval "$ac_link") 2>conftest.er1
6764 ac_status=$?
6765 grep -v '^ *+' conftest.er1 >conftest.err
6766 rm -f conftest.er1
6767 cat conftest.err >&5
6768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6769 (exit $ac_status); } && {
6770 test -z "$ac_c_werror_flag" ||
6771 test ! -s conftest.err
6772 } && test -s conftest$ac_exeext &&
6773 $as_test_x conftest$ac_exeext; then
6774 ac_cv_func_textdomain=yes
6775else
6776 echo "$as_me: failed program was:" >&5
6777sed 's/^/| /' conftest.$ac_ext >&5
6778
6779 ac_cv_func_textdomain=no
6780fi
6781
6782rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6783 conftest$ac_exeext conftest.$ac_ext
6784fi
6785{ echo "$as_me:$LINENO: result: $ac_cv_func_textdomain" >&5
6786echo "${ECHO_T}$ac_cv_func_textdomain" >&6; }
6787if test $ac_cv_func_textdomain = yes; then
6788 cat >>confdefs.h <<\_ACEOF
6789#define ENABLE_NLS 1
6790_ACEOF
6791
6792fi
6793
6794
6795# we need to set an extended JNI path for Mac OS/Darwin, as jni.h is on
6796# a non-standard Path
6797# is there a better way to do this??
6798{ echo "$as_me:$LINENO: checking for OS to set JNI options" >&5
6799echo $ECHO_N "checking for OS to set JNI options... $ECHO_C" >&6; }
6800# set defaults
6801JNIINC=""
6802JNISUFFIX="so"
6803JNIFLAGS="-shared"
6804
6805if test "`(uname -s) 2> /dev/null`" = 'Darwin'; then
6806 { echo "$as_me:$LINENO: result: Darwin" >&5
6807echo "${ECHO_T}Darwin" >&6; }
6808 JNIINC="-I/System/Library/Frameworks/JavaVM.framework/Headers/ "
6809 JNISUFFIX="jnilib"
6810 JNIFLAGS="-dynamiclib -fno-common -single_module -framework JavaVM"
6811fi
6812if test "`(uname -s) 2> /dev/null`" = 'SunOS'; then
6813 { echo "$as_me:$LINENO: result: Solaris" >&5
6814echo "${ECHO_T}Solaris" >&6; }
6815 JNIINC="-I\$(JAVA_HOME)/include/solaris "
6816fi
6817if test "`(uname -s) 2> /dev/null`" = 'Linux'; then
6818 { echo "$as_me:$LINENO: result: Linux" >&5
6819echo "${ECHO_T}Linux" >&6; }
6820 JNIINC="-I\$(JAVA_HOME)/include/linux -I\$(JAVA_HOME)/include "
6821fi
6822
6823
6824
6825
6826
6827# *** Custom checking (based on GNU tar configure.in) ***
6828# ---------------------------------------------------------------------------
6829{ echo "$as_me:$LINENO: checking for HP-UX needing gmalloc" >&5
6830echo $ECHO_N "checking for HP-UX needing gmalloc... $ECHO_C" >&6; }
6831if test "`(uname -s) 2> /dev/null`" = 'HP-UX'; then
6832 { echo "$as_me:$LINENO: result: yes" >&5
6833echo "${ECHO_T}yes" >&6; }
6834 case " $LIBOBJS " in
6835 *" gmalloc.$ac_objext "* ) ;;
6836 *) LIBOBJS="$LIBOBJS gmalloc.$ac_objext"
6837 ;;
6838esac
6839
6840 cat >>confdefs.h <<\_ACEOF
6841#define HAVE_VALLOC 1
6842_ACEOF
6843
6844else
6845 { echo "$as_me:$LINENO: result: no" >&5
6846echo "${ECHO_T}no" >&6; }
6847
6848for ac_func in valloc
6849do
6850as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6851{ echo "$as_me:$LINENO: checking for $ac_func" >&5
6852echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6853if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6854 echo $ECHO_N "(cached) $ECHO_C" >&6
6855else
6856 cat >conftest.$ac_ext <<_ACEOF
6857/* confdefs.h. */
6858_ACEOF
6859cat confdefs.h >>conftest.$ac_ext
6860cat >>conftest.$ac_ext <<_ACEOF
6861/* end confdefs.h. */
6862/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6863 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6864#define $ac_func innocuous_$ac_func
6865
6866/* System header to define __stub macros and hopefully few prototypes,
6867 which can conflict with char $ac_func (); below.
6868 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6869 <limits.h> exists even on freestanding compilers. */
6870
6871#ifdef __STDC__
6872# include <limits.h>
6873#else
6874# include <assert.h>
6875#endif
6876
6877#undef $ac_func
6878
6879/* Override any GCC internal prototype to avoid an error.
6880 Use char because int might match the return type of a GCC
6881 builtin and then its argument prototype would still apply. */
6882#ifdef __cplusplus
6883extern "C"
6884#endif
6885char $ac_func ();
6886/* The GNU C library defines this for functions which it implements
6887 to always fail with ENOSYS. Some functions are actually named
6888 something starting with __ and the normal name is an alias. */
6889#if defined __stub_$ac_func || defined __stub___$ac_func
6890choke me
6891#endif
6892
6893int
6894main ()
6895{
6896return $ac_func ();
6897 ;
6898 return 0;
6899}
6900_ACEOF
6901rm -f conftest.$ac_objext conftest$ac_exeext
6902if { (ac_try="$ac_link"
6903case "(($ac_try" in
6904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6905 *) ac_try_echo=$ac_try;;
6906esac
6907eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6908 (eval "$ac_link") 2>conftest.er1
6909 ac_status=$?
6910 grep -v '^ *+' conftest.er1 >conftest.err
6911 rm -f conftest.er1
6912 cat conftest.err >&5
6913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6914 (exit $ac_status); } && {
6915 test -z "$ac_c_werror_flag" ||
6916 test ! -s conftest.err
6917 } && test -s conftest$ac_exeext &&
6918 $as_test_x conftest$ac_exeext; then
6919 eval "$as_ac_var=yes"
6920else
6921 echo "$as_me: failed program was:" >&5
6922sed 's/^/| /' conftest.$ac_ext >&5
6923
6924 eval "$as_ac_var=no"
6925fi
6926
6927rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6928 conftest$ac_exeext conftest.$ac_ext
6929fi
6930ac_res=`eval echo '${'$as_ac_var'}'`
6931 { echo "$as_me:$LINENO: result: $ac_res" >&5
6932echo "${ECHO_T}$ac_res" >&6; }
6933if test `eval echo '${'$as_ac_var'}'` = yes; then
6934 cat >>confdefs.h <<_ACEOF
6935#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6936_ACEOF
6937
6938fi
6939done
6940
6941fi
6942
6943{ echo "$as_me:$LINENO: checking if malloc debugging is wanted" >&5
6944echo $ECHO_N "checking if malloc debugging is wanted... $ECHO_C" >&6; }
6945
6946# Check whether --with-dmalloc was given.
6947if test "${with_dmalloc+set}" = set; then
6948 withval=$with_dmalloc; if test "$withval" = yes; then
6949 { echo "$as_me:$LINENO: result: yes" >&5
6950echo "${ECHO_T}yes" >&6; }
6951 cat >>confdefs.h <<\_ACEOF
6952#define WITH_DMALLOC 1
6953_ACEOF
6954
6955 LIBS="$LIBS -ldmalloc"
6956 LDFLAGS="$LDFLAGS -g"
6957else
6958 { echo "$as_me:$LINENO: result: no" >&5
6959echo "${ECHO_T}no" >&6; }
6960fi
6961else
6962 { echo "$as_me:$LINENO: result: no" >&5
6963echo "${ECHO_T}no" >&6; }
6964fi
6965
6966
6967{ echo "$as_me:$LINENO: checking which of rx or regex is wanted" >&5
6968echo $ECHO_N "checking which of rx or regex is wanted... $ECHO_C" >&6; }
6969
6970# Check whether --with-regex was given.
6971if test "${with_regex+set}" = set; then
6972 withval=$with_regex; if test "$withval" = yes; then
6973 ac_with_regex=1
6974 { echo "$as_me:$LINENO: result: regex" >&5
6975echo "${ECHO_T}regex" >&6; }
6976 cat >>confdefs.h <<\_ACEOF
6977#define WITH_REGEX 1
6978_ACEOF
6979
6980 case " $LIBOBJS " in
6981 *" regex.$ac_objext "* ) ;;
6982 *) LIBOBJS="$LIBOBJS regex.$ac_objext"
6983 ;;
6984esac
6985
6986fi
6987fi
6988
6989if test -z "$ac_with_regex"; then
6990 { echo "$as_me:$LINENO: result: rx" >&5
6991echo "${ECHO_T}rx" >&6; }
6992 { echo "$as_me:$LINENO: checking for re_rx_search" >&5
6993echo $ECHO_N "checking for re_rx_search... $ECHO_C" >&6; }
6994if test "${ac_cv_func_re_rx_search+set}" = set; then
6995 echo $ECHO_N "(cached) $ECHO_C" >&6
6996else
6997 cat >conftest.$ac_ext <<_ACEOF
6998/* confdefs.h. */
6999_ACEOF
7000cat confdefs.h >>conftest.$ac_ext
7001cat >>conftest.$ac_ext <<_ACEOF
7002/* end confdefs.h. */
7003/* Define re_rx_search to an innocuous variant, in case <limits.h> declares re_rx_search.
7004 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7005#define re_rx_search innocuous_re_rx_search
7006
7007/* System header to define __stub macros and hopefully few prototypes,
7008 which can conflict with char re_rx_search (); below.
7009 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7010 <limits.h> exists even on freestanding compilers. */
7011
7012#ifdef __STDC__
7013# include <limits.h>
7014#else
7015# include <assert.h>
7016#endif
7017
7018#undef re_rx_search
7019
7020/* Override any GCC internal prototype to avoid an error.
7021 Use char because int might match the return type of a GCC
7022 builtin and then its argument prototype would still apply. */
7023#ifdef __cplusplus
7024extern "C"
7025#endif
7026char re_rx_search ();
7027/* The GNU C library defines this for functions which it implements
7028 to always fail with ENOSYS. Some functions are actually named
7029 something starting with __ and the normal name is an alias. */
7030#if defined __stub_re_rx_search || defined __stub___re_rx_search
7031choke me
7032#endif
7033
7034int
7035main ()
7036{
7037return re_rx_search ();
7038 ;
7039 return 0;
7040}
7041_ACEOF
7042rm -f conftest.$ac_objext conftest$ac_exeext
7043if { (ac_try="$ac_link"
7044case "(($ac_try" in
7045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7046 *) ac_try_echo=$ac_try;;
7047esac
7048eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7049 (eval "$ac_link") 2>conftest.er1
7050 ac_status=$?
7051 grep -v '^ *+' conftest.er1 >conftest.err
7052 rm -f conftest.er1
7053 cat conftest.err >&5
7054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7055 (exit $ac_status); } && {
7056 test -z "$ac_c_werror_flag" ||
7057 test ! -s conftest.err
7058 } && test -s conftest$ac_exeext &&
7059 $as_test_x conftest$ac_exeext; then
7060 ac_cv_func_re_rx_search=yes
7061else
7062 echo "$as_me: failed program was:" >&5
7063sed 's/^/| /' conftest.$ac_ext >&5
7064
7065 ac_cv_func_re_rx_search=no
7066fi
7067
7068rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7069 conftest$ac_exeext conftest.$ac_ext
7070fi
7071{ echo "$as_me:$LINENO: result: $ac_cv_func_re_rx_search" >&5
7072echo "${ECHO_T}$ac_cv_func_re_rx_search" >&6; }
7073if test $ac_cv_func_re_rx_search = yes; then
7074 :
7075else
7076 { echo "$as_me:$LINENO: checking for unsigned char *" >&5
7077echo $ECHO_N "checking for unsigned char *... $ECHO_C" >&6; }
7078if test "${ac_cv_type_unsigned_char_p+set}" = set; then
7079 echo $ECHO_N "(cached) $ECHO_C" >&6
7080else
7081 cat >conftest.$ac_ext <<_ACEOF
7082/* confdefs.h. */
7083_ACEOF
7084cat confdefs.h >>conftest.$ac_ext
7085cat >>conftest.$ac_ext <<_ACEOF
7086/* end confdefs.h. */
7087$ac_includes_default
7088typedef unsigned char * ac__type_new_;
7089int
7090main ()
7091{
7092if ((ac__type_new_ *) 0)
7093 return 0;
7094if (sizeof (ac__type_new_))
7095 return 0;
7096 ;
7097 return 0;
7098}
7099_ACEOF
7100rm -f conftest.$ac_objext
7101if { (ac_try="$ac_compile"
7102case "(($ac_try" in
7103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7104 *) ac_try_echo=$ac_try;;
7105esac
7106eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7107 (eval "$ac_compile") 2>conftest.er1
7108 ac_status=$?
7109 grep -v '^ *+' conftest.er1 >conftest.err
7110 rm -f conftest.er1
7111 cat conftest.err >&5
7112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7113 (exit $ac_status); } && {
7114 test -z "$ac_c_werror_flag" ||
7115 test ! -s conftest.err
7116 } && test -s conftest.$ac_objext; then
7117 ac_cv_type_unsigned_char_p=yes
7118else
7119 echo "$as_me: failed program was:" >&5
7120sed 's/^/| /' conftest.$ac_ext >&5
7121
7122 ac_cv_type_unsigned_char_p=no
7123fi
7124
7125rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7126fi
7127{ echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_char_p" >&5
7128echo "${ECHO_T}$ac_cv_type_unsigned_char_p" >&6; }
7129
7130# The cast to long int works around a bug in the HP C Compiler
7131# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7132# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7133# This bug is HP SR number 8606223364.
7134{ echo "$as_me:$LINENO: checking size of unsigned char *" >&5
7135echo $ECHO_N "checking size of unsigned char *... $ECHO_C" >&6; }
7136if test "${ac_cv_sizeof_unsigned_char_p+set}" = set; then
7137 echo $ECHO_N "(cached) $ECHO_C" >&6
7138else
7139 if test "$cross_compiling" = yes; then
7140 # Depending upon the size, compute the lo and hi bounds.
7141cat >conftest.$ac_ext <<_ACEOF
7142/* confdefs.h. */
7143_ACEOF
7144cat confdefs.h >>conftest.$ac_ext
7145cat >>conftest.$ac_ext <<_ACEOF
7146/* end confdefs.h. */
7147$ac_includes_default
7148 typedef unsigned char * ac__type_sizeof_;
7149int
7150main ()
7151{
7152static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
7153test_array [0] = 0
7154
7155 ;
7156 return 0;
7157}
7158_ACEOF
7159rm -f conftest.$ac_objext
7160if { (ac_try="$ac_compile"
7161case "(($ac_try" in
7162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7163 *) ac_try_echo=$ac_try;;
7164esac
7165eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7166 (eval "$ac_compile") 2>conftest.er1
7167 ac_status=$?
7168 grep -v '^ *+' conftest.er1 >conftest.err
7169 rm -f conftest.er1
7170 cat conftest.err >&5
7171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7172 (exit $ac_status); } && {
7173 test -z "$ac_c_werror_flag" ||
7174 test ! -s conftest.err
7175 } && test -s conftest.$ac_objext; then
7176 ac_lo=0 ac_mid=0
7177 while :; do
7178 cat >conftest.$ac_ext <<_ACEOF
7179/* confdefs.h. */
7180_ACEOF
7181cat confdefs.h >>conftest.$ac_ext
7182cat >>conftest.$ac_ext <<_ACEOF
7183/* end confdefs.h. */
7184$ac_includes_default
7185 typedef unsigned char * ac__type_sizeof_;
7186int
7187main ()
7188{
7189static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7190test_array [0] = 0
7191
7192 ;
7193 return 0;
7194}
7195_ACEOF
7196rm -f conftest.$ac_objext
7197if { (ac_try="$ac_compile"
7198case "(($ac_try" in
7199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7200 *) ac_try_echo=$ac_try;;
7201esac
7202eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7203 (eval "$ac_compile") 2>conftest.er1
7204 ac_status=$?
7205 grep -v '^ *+' conftest.er1 >conftest.err
7206 rm -f conftest.er1
7207 cat conftest.err >&5
7208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7209 (exit $ac_status); } && {
7210 test -z "$ac_c_werror_flag" ||
7211 test ! -s conftest.err
7212 } && test -s conftest.$ac_objext; then
7213 ac_hi=$ac_mid; break
7214else
7215 echo "$as_me: failed program was:" >&5
7216sed 's/^/| /' conftest.$ac_ext >&5
7217
7218 ac_lo=`expr $ac_mid + 1`
7219 if test $ac_lo -le $ac_mid; then
7220 ac_lo= ac_hi=
7221 break
7222 fi
7223 ac_mid=`expr 2 '*' $ac_mid + 1`
7224fi
7225
7226rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7227 done
7228else
7229 echo "$as_me: failed program was:" >&5
7230sed 's/^/| /' conftest.$ac_ext >&5
7231
7232 cat >conftest.$ac_ext <<_ACEOF
7233/* confdefs.h. */
7234_ACEOF
7235cat confdefs.h >>conftest.$ac_ext
7236cat >>conftest.$ac_ext <<_ACEOF
7237/* end confdefs.h. */
7238$ac_includes_default
7239 typedef unsigned char * ac__type_sizeof_;
7240int
7241main ()
7242{
7243static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
7244test_array [0] = 0
7245
7246 ;
7247 return 0;
7248}
7249_ACEOF
7250rm -f conftest.$ac_objext
7251if { (ac_try="$ac_compile"
7252case "(($ac_try" in
7253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7254 *) ac_try_echo=$ac_try;;
7255esac
7256eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7257 (eval "$ac_compile") 2>conftest.er1
7258 ac_status=$?
7259 grep -v '^ *+' conftest.er1 >conftest.err
7260 rm -f conftest.er1
7261 cat conftest.err >&5
7262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7263 (exit $ac_status); } && {
7264 test -z "$ac_c_werror_flag" ||
7265 test ! -s conftest.err
7266 } && test -s conftest.$ac_objext; then
7267 ac_hi=-1 ac_mid=-1
7268 while :; do
7269 cat >conftest.$ac_ext <<_ACEOF
7270/* confdefs.h. */
7271_ACEOF
7272cat confdefs.h >>conftest.$ac_ext
7273cat >>conftest.$ac_ext <<_ACEOF
7274/* end confdefs.h. */
7275$ac_includes_default
7276 typedef unsigned char * ac__type_sizeof_;
7277int
7278main ()
7279{
7280static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
7281test_array [0] = 0
7282
7283 ;
7284 return 0;
7285}
7286_ACEOF
7287rm -f conftest.$ac_objext
7288if { (ac_try="$ac_compile"
7289case "(($ac_try" in
7290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7291 *) ac_try_echo=$ac_try;;
7292esac
7293eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7294 (eval "$ac_compile") 2>conftest.er1
7295 ac_status=$?
7296 grep -v '^ *+' conftest.er1 >conftest.err
7297 rm -f conftest.er1
7298 cat conftest.err >&5
7299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7300 (exit $ac_status); } && {
7301 test -z "$ac_c_werror_flag" ||
7302 test ! -s conftest.err
7303 } && test -s conftest.$ac_objext; then
7304 ac_lo=$ac_mid; break
7305else
7306 echo "$as_me: failed program was:" >&5
7307sed 's/^/| /' conftest.$ac_ext >&5
7308
7309 ac_hi=`expr '(' $ac_mid ')' - 1`
7310 if test $ac_mid -le $ac_hi; then
7311 ac_lo= ac_hi=
7312 break
7313 fi
7314 ac_mid=`expr 2 '*' $ac_mid`
7315fi
7316
7317rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7318 done
7319else
7320 echo "$as_me: failed program was:" >&5
7321sed 's/^/| /' conftest.$ac_ext >&5
7322
7323 ac_lo= ac_hi=
7324fi
7325
7326rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7327fi
7328
7329rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7330# Binary search between lo and hi bounds.
7331while test "x$ac_lo" != "x$ac_hi"; do
7332 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7333 cat >conftest.$ac_ext <<_ACEOF
7334/* confdefs.h. */
7335_ACEOF
7336cat confdefs.h >>conftest.$ac_ext
7337cat >>conftest.$ac_ext <<_ACEOF
7338/* end confdefs.h. */
7339$ac_includes_default
7340 typedef unsigned char * ac__type_sizeof_;
7341int
7342main ()
7343{
7344static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7345test_array [0] = 0
7346
7347 ;
7348 return 0;
7349}
7350_ACEOF
7351rm -f conftest.$ac_objext
7352if { (ac_try="$ac_compile"
7353case "(($ac_try" in
7354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7355 *) ac_try_echo=$ac_try;;
7356esac
7357eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7358 (eval "$ac_compile") 2>conftest.er1
7359 ac_status=$?
7360 grep -v '^ *+' conftest.er1 >conftest.err
7361 rm -f conftest.er1
7362 cat conftest.err >&5
7363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7364 (exit $ac_status); } && {
7365 test -z "$ac_c_werror_flag" ||
7366 test ! -s conftest.err
7367 } && test -s conftest.$ac_objext; then
7368 ac_hi=$ac_mid
7369else
7370 echo "$as_me: failed program was:" >&5
7371sed 's/^/| /' conftest.$ac_ext >&5
7372
7373 ac_lo=`expr '(' $ac_mid ')' + 1`
7374fi
7375
7376rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7377done
7378case $ac_lo in
7379?*) ac_cv_sizeof_unsigned_char_p=$ac_lo;;
7380'') if test "$ac_cv_type_unsigned_char_p" = yes; then
7381 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned char *)
7382See \`config.log' for more details." >&5
7383echo "$as_me: error: cannot compute sizeof (unsigned char *)
7384See \`config.log' for more details." >&2;}
7385 { (exit 77); exit 77; }; }
7386 else
7387 ac_cv_sizeof_unsigned_char_p=0
7388 fi ;;
7389esac
7390else
7391 cat >conftest.$ac_ext <<_ACEOF
7392/* confdefs.h. */
7393_ACEOF
7394cat confdefs.h >>conftest.$ac_ext
7395cat >>conftest.$ac_ext <<_ACEOF
7396/* end confdefs.h. */
7397$ac_includes_default
7398 typedef unsigned char * ac__type_sizeof_;
7399static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
7400static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
7401#include <stdio.h>
7402#include <stdlib.h>
7403int
7404main ()
7405{
7406
7407 FILE *f = fopen ("conftest.val", "w");
7408 if (! f)
7409 return 1;
7410 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
7411 {
7412 long int i = longval ();
7413 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7414 return 1;
7415 fprintf (f, "%ld\n", i);
7416 }
7417 else
7418 {
7419 unsigned long int i = ulongval ();
7420 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7421 return 1;
7422 fprintf (f, "%lu\n", i);
7423 }
7424 return ferror (f) || fclose (f) != 0;
7425
7426 ;
7427 return 0;
7428}
7429_ACEOF
7430rm -f conftest$ac_exeext
7431if { (ac_try="$ac_link"
7432case "(($ac_try" in
7433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7434 *) ac_try_echo=$ac_try;;
7435esac
7436eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7437 (eval "$ac_link") 2>&5
7438 ac_status=$?
7439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7440 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7441 { (case "(($ac_try" in
7442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7443 *) ac_try_echo=$ac_try;;
7444esac
7445eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7446 (eval "$ac_try") 2>&5
7447 ac_status=$?
7448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7449 (exit $ac_status); }; }; then
7450 ac_cv_sizeof_unsigned_char_p=`cat conftest.val`
7451else
7452 echo "$as_me: program exited with status $ac_status" >&5
7453echo "$as_me: failed program was:" >&5
7454sed 's/^/| /' conftest.$ac_ext >&5
7455
7456( exit $ac_status )
7457if test "$ac_cv_type_unsigned_char_p" = yes; then
7458 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned char *)
7459See \`config.log' for more details." >&5
7460echo "$as_me: error: cannot compute sizeof (unsigned char *)
7461See \`config.log' for more details." >&2;}
7462 { (exit 77); exit 77; }; }
7463 else
7464 ac_cv_sizeof_unsigned_char_p=0
7465 fi
7466fi
7467rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7468fi
7469rm -f conftest.val
7470fi
7471{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_char_p" >&5
7472echo "${ECHO_T}$ac_cv_sizeof_unsigned_char_p" >&6; }
7473
7474
7475
7476cat >>confdefs.h <<_ACEOF
7477#define SIZEOF_UNSIGNED_CHAR_P $ac_cv_sizeof_unsigned_char_p
7478_ACEOF
7479
7480
7481 if test "$ac_cv_sizeof_unsigned_char_p" = 8
7482 then
7483 { echo "$as_me:$LINENO: WARNING: I'm forcing you to use regex because I can't
7484 find a local rx library and the one included with this
7485 distribution doesn't work on 64-bit machines like yours" >&5
7486echo "$as_me: WARNING: I'm forcing you to use regex because I can't
7487 find a local rx library and the one included with this
7488 distribution doesn't work on 64-bit machines like yours" >&2;}
7489 case " $LIBOBJS " in
7490 *" regex.$ac_objext "* ) ;;
7491 *) LIBOBJS="$LIBOBJS regex.$ac_objext"
7492 ;;
7493esac
7494
7495 else
7496 case " $LIBOBJS " in
7497 *" rx.$ac_objext "* ) ;;
7498 *) LIBOBJS="$LIBOBJS rx.$ac_objext"
7499 ;;
7500esac
7501
7502 fi
7503
7504fi
7505
7506fi
7507
7508{ echo "$as_me:$LINENO: checking whether GNU readline requested" >&5
7509echo $ECHO_N "checking whether GNU readline requested... $ECHO_C" >&6; }
7510
7511# Check whether --with-gnu_readline was given.
7512if test "${with_gnu_readline+set}" = set; then
7513 withval=$with_gnu_readline; if test "$withval" = yes; then
7514 { echo "$as_me:$LINENO: result: yes" >&5
7515echo "${ECHO_T}yes" >&6; }
7516 ac_with_gnu_readline=1
7517 else
7518 { echo "$as_me:$LINENO: result: no" >&5
7519echo "${ECHO_T}no" >&6; }
7520 fi
7521else
7522 { echo "$as_me:$LINENO: result: no" >&5
7523echo "${ECHO_T}no" >&6; }
7524fi
7525
7526
7527 if test -n "$ac_with_gnu_readline"; then
7528 if test "${ac_cv_header_readline_readline_h+set}" = set; then
7529 { echo "$as_me:$LINENO: checking for readline/readline.h" >&5
7530echo $ECHO_N "checking for readline/readline.h... $ECHO_C" >&6; }
7531if test "${ac_cv_header_readline_readline_h+set}" = set; then
7532 echo $ECHO_N "(cached) $ECHO_C" >&6
7533fi
7534{ echo "$as_me:$LINENO: result: $ac_cv_header_readline_readline_h" >&5
7535echo "${ECHO_T}$ac_cv_header_readline_readline_h" >&6; }
7536else
7537 # Is the header compilable?
7538{ echo "$as_me:$LINENO: checking readline/readline.h usability" >&5
7539echo $ECHO_N "checking readline/readline.h usability... $ECHO_C" >&6; }
7540cat >conftest.$ac_ext <<_ACEOF
7541/* confdefs.h. */
7542_ACEOF
7543cat confdefs.h >>conftest.$ac_ext
7544cat >>conftest.$ac_ext <<_ACEOF
7545/* end confdefs.h. */
7546$ac_includes_default
7547#include <readline/readline.h>
7548_ACEOF
7549rm -f conftest.$ac_objext
7550if { (ac_try="$ac_compile"
7551case "(($ac_try" in
7552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7553 *) ac_try_echo=$ac_try;;
7554esac
7555eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7556 (eval "$ac_compile") 2>conftest.er1
7557 ac_status=$?
7558 grep -v '^ *+' conftest.er1 >conftest.err
7559 rm -f conftest.er1
7560 cat conftest.err >&5
7561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7562 (exit $ac_status); } && {
7563 test -z "$ac_c_werror_flag" ||
7564 test ! -s conftest.err
7565 } && test -s conftest.$ac_objext; then
7566 ac_header_compiler=yes
7567else
7568 echo "$as_me: failed program was:" >&5
7569sed 's/^/| /' conftest.$ac_ext >&5
7570
7571 ac_header_compiler=no
7572fi
7573
7574rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7575{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7576echo "${ECHO_T}$ac_header_compiler" >&6; }
7577
7578# Is the header present?
7579{ echo "$as_me:$LINENO: checking readline/readline.h presence" >&5
7580echo $ECHO_N "checking readline/readline.h presence... $ECHO_C" >&6; }
7581cat >conftest.$ac_ext <<_ACEOF
7582/* confdefs.h. */
7583_ACEOF
7584cat confdefs.h >>conftest.$ac_ext
7585cat >>conftest.$ac_ext <<_ACEOF
7586/* end confdefs.h. */
7587#include <readline/readline.h>
7588_ACEOF
7589if { (ac_try="$ac_cpp conftest.$ac_ext"
7590case "(($ac_try" in
7591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7592 *) ac_try_echo=$ac_try;;
7593esac
7594eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7595 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7596 ac_status=$?
7597 grep -v '^ *+' conftest.er1 >conftest.err
7598 rm -f conftest.er1
7599 cat conftest.err >&5
7600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7601 (exit $ac_status); } >/dev/null && {
7602 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7603 test ! -s conftest.err
7604 }; then
7605 ac_header_preproc=yes
7606else
7607 echo "$as_me: failed program was:" >&5
7608sed 's/^/| /' conftest.$ac_ext >&5
7609
7610 ac_header_preproc=no
7611fi
7612
7613rm -f conftest.err conftest.$ac_ext
7614{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7615echo "${ECHO_T}$ac_header_preproc" >&6; }
7616
7617# So? What about this header?
7618case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7619 yes:no: )
7620 { echo "$as_me:$LINENO: WARNING: readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
7621echo "$as_me: WARNING: readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7622 { echo "$as_me:$LINENO: WARNING: readline/readline.h: proceeding with the compiler's result" >&5
7623echo "$as_me: WARNING: readline/readline.h: proceeding with the compiler's result" >&2;}
7624 ac_header_preproc=yes
7625 ;;
7626 no:yes:* )
7627 { echo "$as_me:$LINENO: WARNING: readline/readline.h: present but cannot be compiled" >&5
7628echo "$as_me: WARNING: readline/readline.h: present but cannot be compiled" >&2;}
7629 { echo "$as_me:$LINENO: WARNING: readline/readline.h: check for missing prerequisite headers?" >&5
7630echo "$as_me: WARNING: readline/readline.h: check for missing prerequisite headers?" >&2;}
7631 { echo "$as_me:$LINENO: WARNING: readline/readline.h: see the Autoconf documentation" >&5
7632echo "$as_me: WARNING: readline/readline.h: see the Autoconf documentation" >&2;}
7633 { echo "$as_me:$LINENO: WARNING: readline/readline.h: section \"Present But Cannot Be Compiled\"" >&5
7634echo "$as_me: WARNING: readline/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
7635 { echo "$as_me:$LINENO: WARNING: readline/readline.h: proceeding with the preprocessor's result" >&5
7636echo "$as_me: WARNING: readline/readline.h: proceeding with the preprocessor's result" >&2;}
7637 { echo "$as_me:$LINENO: WARNING: readline/readline.h: in the future, the compiler will take precedence" >&5
7638echo "$as_me: WARNING: readline/readline.h: in the future, the compiler will take precedence" >&2;}
7639
7640 ;;
7641esac
7642{ echo "$as_me:$LINENO: checking for readline/readline.h" >&5
7643echo $ECHO_N "checking for readline/readline.h... $ECHO_C" >&6; }
7644if test "${ac_cv_header_readline_readline_h+set}" = set; then
7645 echo $ECHO_N "(cached) $ECHO_C" >&6
7646else
7647 ac_cv_header_readline_readline_h=$ac_header_preproc
7648fi
7649{ echo "$as_me:$LINENO: result: $ac_cv_header_readline_readline_h" >&5
7650echo "${ECHO_T}$ac_cv_header_readline_readline_h" >&6; }
7651
7652fi
7653if test $ac_cv_header_readline_readline_h = yes; then
7654 ac_mg_readline_header_found=1
7655else
7656 { echo "$as_me:$LINENO: WARNING: Can't find GNU readline headers; configuring without \
7657GNU readline support" >&5
7658echo "$as_me: WARNING: Can't find GNU readline headers; configuring without \
7659GNU readline support" >&2;}
7660fi
7661
7662
7663 if test -n "$ac_mg_readline_header_found"; then
7664 # first check whether we can find the readline library itself
7665 { echo "$as_me:$LINENO: checking for main in -lreadline" >&5
7666echo $ECHO_N "checking for main in -lreadline... $ECHO_C" >&6; }
7667if test "${ac_cv_lib_readline_main+set}" = set; then
7668 echo $ECHO_N "(cached) $ECHO_C" >&6
7669else
7670 ac_check_lib_save_LIBS=$LIBS
7671LIBS="-lreadline $LIBS"
7672cat >conftest.$ac_ext <<_ACEOF
7673/* confdefs.h. */
7674_ACEOF
7675cat confdefs.h >>conftest.$ac_ext
7676cat >>conftest.$ac_ext <<_ACEOF
7677/* end confdefs.h. */
7678
7679
7680int
7681main ()
7682{
7683return main ();
7684 ;
7685 return 0;
7686}
7687_ACEOF
7688rm -f conftest.$ac_objext conftest$ac_exeext
7689if { (ac_try="$ac_link"
7690case "(($ac_try" in
7691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7692 *) ac_try_echo=$ac_try;;
7693esac
7694eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7695 (eval "$ac_link") 2>conftest.er1
7696 ac_status=$?
7697 grep -v '^ *+' conftest.er1 >conftest.err
7698 rm -f conftest.er1
7699 cat conftest.err >&5
7700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7701 (exit $ac_status); } && {
7702 test -z "$ac_c_werror_flag" ||
7703 test ! -s conftest.err
7704 } && test -s conftest$ac_exeext &&
7705 $as_test_x conftest$ac_exeext; then
7706 ac_cv_lib_readline_main=yes
7707else
7708 echo "$as_me: failed program was:" >&5
7709sed 's/^/| /' conftest.$ac_ext >&5
7710
7711 ac_cv_lib_readline_main=no
7712fi
7713
7714rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7715 conftest$ac_exeext conftest.$ac_ext
7716LIBS=$ac_check_lib_save_LIBS
7717fi
7718{ echo "$as_me:$LINENO: result: $ac_cv_lib_readline_main" >&5
7719echo "${ECHO_T}$ac_cv_lib_readline_main" >&6; }
7720if test $ac_cv_lib_readline_main = yes; then
7721 ac_mg_readline_lib_found=1
7722 cat >>confdefs.h <<\_ACEOF
7723#define WITH_GNU_READLINE 1
7724_ACEOF
7725
7726 LIBS="$LIBS -lreadline"
7727else
7728 { echo "$as_me:$LINENO: WARNING: Can't find GNU readline library; configuring without \
7729GNU readline support" >&5
7730echo "$as_me: WARNING: Can't find GNU readline library; configuring without \
7731GNU readline support" >&2;}
7732fi
7733
7734 if test -n "$ac_mg_readline_lib_found"; then
7735 # on some systems, readline needs curses. It is difficult to
7736 # determine whether this is necessary on the current system,
7737 # since other undefined symbols can be turned up by an
7738 # AC_CHECK_LIB(readline, readline) test that are actually defined
7739 # by mg itself (e.g. xmalloc, xrealloc). So, if we find libcurses,
7740 # we just bung it on and hope for the best.
7741 { echo "$as_me:$LINENO: checking for main in -lcurses" >&5
7742echo $ECHO_N "checking for main in -lcurses... $ECHO_C" >&6; }
7743if test "${ac_cv_lib_curses_main+set}" = set; then
7744 echo $ECHO_N "(cached) $ECHO_C" >&6
7745else
7746 ac_check_lib_save_LIBS=$LIBS
7747LIBS="-lcurses $LIBS"
7748cat >conftest.$ac_ext <<_ACEOF
7749/* confdefs.h. */
7750_ACEOF
7751cat confdefs.h >>conftest.$ac_ext
7752cat >>conftest.$ac_ext <<_ACEOF
7753/* end confdefs.h. */
7754
7755
7756int
7757main ()
7758{
7759return main ();
7760 ;
7761 return 0;
7762}
7763_ACEOF
7764rm -f conftest.$ac_objext conftest$ac_exeext
7765if { (ac_try="$ac_link"
7766case "(($ac_try" in
7767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7768 *) ac_try_echo=$ac_try;;
7769esac
7770eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7771 (eval "$ac_link") 2>conftest.er1
7772 ac_status=$?
7773 grep -v '^ *+' conftest.er1 >conftest.err
7774 rm -f conftest.er1
7775 cat conftest.err >&5
7776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7777 (exit $ac_status); } && {
7778 test -z "$ac_c_werror_flag" ||
7779 test ! -s conftest.err
7780 } && test -s conftest$ac_exeext &&
7781 $as_test_x conftest$ac_exeext; then
7782 ac_cv_lib_curses_main=yes
7783else
7784 echo "$as_me: failed program was:" >&5
7785sed 's/^/| /' conftest.$ac_ext >&5
7786
7787 ac_cv_lib_curses_main=no
7788fi
7789
7790rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7791 conftest$ac_exeext conftest.$ac_ext
7792LIBS=$ac_check_lib_save_LIBS
7793fi
7794{ echo "$as_me:$LINENO: result: $ac_cv_lib_curses_main" >&5
7795echo "${ECHO_T}$ac_cv_lib_curses_main" >&6; }
7796if test $ac_cv_lib_curses_main = yes; then
7797 LIBS="$LIBS -lcurses"
7798fi
7799
7800 fi
7801 fi
7802 fi
7803
7804
7805# text for endianness
7806{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
7807echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
7808if test "${ac_cv_c_bigendian+set}" = set; then
7809 echo $ECHO_N "(cached) $ECHO_C" >&6
7810else
7811 # See if sys/param.h defines the BYTE_ORDER macro.
7812cat >conftest.$ac_ext <<_ACEOF
7813/* confdefs.h. */
7814_ACEOF
7815cat confdefs.h >>conftest.$ac_ext
7816cat >>conftest.$ac_ext <<_ACEOF
7817/* end confdefs.h. */
7818#include <sys/types.h>
7819#include <sys/param.h>
7820
7821int
7822main ()
7823{
7824#if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
7825 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
7826 bogus endian macros
7827#endif
7828
7829 ;
7830 return 0;
7831}
7832_ACEOF
7833rm -f conftest.$ac_objext
7834if { (ac_try="$ac_compile"
7835case "(($ac_try" in
7836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7837 *) ac_try_echo=$ac_try;;
7838esac
7839eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7840 (eval "$ac_compile") 2>conftest.er1
7841 ac_status=$?
7842 grep -v '^ *+' conftest.er1 >conftest.err
7843 rm -f conftest.er1
7844 cat conftest.err >&5
7845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7846 (exit $ac_status); } && {
7847 test -z "$ac_c_werror_flag" ||
7848 test ! -s conftest.err
7849 } && test -s conftest.$ac_objext; then
7850 # It does; now see whether it defined to BIG_ENDIAN or not.
7851cat >conftest.$ac_ext <<_ACEOF
7852/* confdefs.h. */
7853_ACEOF
7854cat confdefs.h >>conftest.$ac_ext
7855cat >>conftest.$ac_ext <<_ACEOF
7856/* end confdefs.h. */
7857#include <sys/types.h>
7858#include <sys/param.h>
7859
7860int
7861main ()
7862{
7863#if BYTE_ORDER != BIG_ENDIAN
7864 not big endian
7865#endif
7866
7867 ;
7868 return 0;
7869}
7870_ACEOF
7871rm -f conftest.$ac_objext
7872if { (ac_try="$ac_compile"
7873case "(($ac_try" in
7874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7875 *) ac_try_echo=$ac_try;;
7876esac
7877eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7878 (eval "$ac_compile") 2>conftest.er1
7879 ac_status=$?
7880 grep -v '^ *+' conftest.er1 >conftest.err
7881 rm -f conftest.er1
7882 cat conftest.err >&5
7883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7884 (exit $ac_status); } && {
7885 test -z "$ac_c_werror_flag" ||
7886 test ! -s conftest.err
7887 } && test -s conftest.$ac_objext; then
7888 ac_cv_c_bigendian=yes
7889else
7890 echo "$as_me: failed program was:" >&5
7891sed 's/^/| /' conftest.$ac_ext >&5
7892
7893 ac_cv_c_bigendian=no
7894fi
7895
7896rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7897else
7898 echo "$as_me: failed program was:" >&5
7899sed 's/^/| /' conftest.$ac_ext >&5
7900
7901 # It does not; compile a test program.
7902if test "$cross_compiling" = yes; then
7903 # try to guess the endianness by grepping values into an object file
7904 ac_cv_c_bigendian=unknown
7905 cat >conftest.$ac_ext <<_ACEOF
7906/* confdefs.h. */
7907_ACEOF
7908cat confdefs.h >>conftest.$ac_ext
7909cat >>conftest.$ac_ext <<_ACEOF
7910/* end confdefs.h. */
7911short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
7912short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
7913void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
7914short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
7915short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
7916void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
7917int
7918main ()
7919{
7920 _ascii (); _ebcdic ();
7921 ;
7922 return 0;
7923}
7924_ACEOF
7925rm -f conftest.$ac_objext
7926if { (ac_try="$ac_compile"
7927case "(($ac_try" in
7928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7929 *) ac_try_echo=$ac_try;;
7930esac
7931eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7932 (eval "$ac_compile") 2>conftest.er1
7933 ac_status=$?
7934 grep -v '^ *+' conftest.er1 >conftest.err
7935 rm -f conftest.er1
7936 cat conftest.err >&5
7937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7938 (exit $ac_status); } && {
7939 test -z "$ac_c_werror_flag" ||
7940 test ! -s conftest.err
7941 } && test -s conftest.$ac_objext; then
7942 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
7943 ac_cv_c_bigendian=yes
7944fi
7945if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
7946 if test "$ac_cv_c_bigendian" = unknown; then
7947 ac_cv_c_bigendian=no
7948 else
7949 # finding both strings is unlikely to happen, but who knows?
7950 ac_cv_c_bigendian=unknown
7951 fi
7952fi
7953else
7954 echo "$as_me: failed program was:" >&5
7955sed 's/^/| /' conftest.$ac_ext >&5
7956
7957
7958fi
7959
7960rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7961else
7962 cat >conftest.$ac_ext <<_ACEOF
7963/* confdefs.h. */
7964_ACEOF
7965cat confdefs.h >>conftest.$ac_ext
7966cat >>conftest.$ac_ext <<_ACEOF
7967/* end confdefs.h. */
7968$ac_includes_default
7969int
7970main ()
7971{
7972
7973 /* Are we little or big endian? From Harbison&Steele. */
7974 union
7975 {
7976 long int l;
7977 char c[sizeof (long int)];
7978 } u;
7979 u.l = 1;
7980 return u.c[sizeof (long int) - 1] == 1;
7981
7982 ;
7983 return 0;
7984}
7985_ACEOF
7986rm -f conftest$ac_exeext
7987if { (ac_try="$ac_link"
7988case "(($ac_try" in
7989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7990 *) ac_try_echo=$ac_try;;
7991esac
7992eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7993 (eval "$ac_link") 2>&5
7994 ac_status=$?
7995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7996 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7997 { (case "(($ac_try" in
7998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7999 *) ac_try_echo=$ac_try;;
8000esac
8001eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8002 (eval "$ac_try") 2>&5
8003 ac_status=$?
8004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8005 (exit $ac_status); }; }; then
8006 ac_cv_c_bigendian=no
8007else
8008 echo "$as_me: program exited with status $ac_status" >&5
8009echo "$as_me: failed program was:" >&5
8010sed 's/^/| /' conftest.$ac_ext >&5
8011
8012( exit $ac_status )
8013ac_cv_c_bigendian=yes
8014fi
8015rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8016fi
8017
8018
8019fi
8020
8021rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8022fi
8023{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
8024echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
8025case $ac_cv_c_bigendian in
8026 yes)
8027
8028cat >>confdefs.h <<\_ACEOF
8029#define WORDS_BIGENDIAN 1
8030_ACEOF
8031 ;;
8032 no)
8033 ;;
8034 *)
8035 { { echo "$as_me:$LINENO: error: unknown endianness
8036presetting ac_cv_c_bigendian=no (or yes) will help" >&5
8037echo "$as_me: error: unknown endianness
8038presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
8039 { (exit 1); exit 1; }; } ;;
8040esac
8041
8042
8043# ---------------------------------------------------------------------------
8044if test "$ac_cv_func_alloca" = 'no'; then
8045 case " $LIBOBJS " in
8046 *" xmalloc.$ac_objext "* ) ;;
8047 *) LIBOBJS="$LIBOBJS xmalloc.$ac_objext"
8048 ;;
8049esac
8050
8051 case " $LIBOBJS " in
8052 *" error.$ac_objext "* ) ;;
8053 *) LIBOBJS="$LIBOBJS error.$ac_objext"
8054 ;;
8055esac
8056
8057fi
8058
8059
8060# ---------------------------------------------------------------------------
8061# see if the user wants to override use of long long
8062# Check whether --enable-override-longlong was given.
8063if test "${enable_override_longlong+set}" = set; then
8064 enableval=$enable_override_longlong; cat >>confdefs.h <<\_ACEOF
8065#define DISABLE_LONG_LONG 1
8066_ACEOF
8067
8068fi
8069
8070
8071
8072# ---------------------------------------------------------------------------
8073
8074ac_config_files="$ac_config_files Makefile text/Makefile lib/Makefile jni/Makefile java/org/greenstone/mgpp/Makefile"
8075
8076ac_config_commands="$ac_config_commands default"
8077
8078cat >confcache <<\_ACEOF
8079# This file is a shell script that caches the results of configure
8080# tests run on this system so they can be shared between configure
8081# scripts and configure runs, see configure's option --config-cache.
8082# It is not useful on other systems. If it contains results you don't
8083# want to keep, you may remove or edit it.
8084#
8085# config.status only pays attention to the cache file if you give it
8086# the --recheck option to rerun configure.
8087#
8088# `ac_cv_env_foo' variables (set or unset) will be overridden when
8089# loading this file, other *unset* `ac_cv_foo' will be assigned the
8090# following values.
8091
8092_ACEOF
8093
8094# The following way of writing the cache mishandles newlines in values,
8095# but we know of no workaround that is simple, portable, and efficient.
8096# So, we kill variables containing newlines.
8097# Ultrix sh set writes to stderr and can't be redirected directly,
8098# and sets the high bit in the cache file unless we assign to the vars.
8099(
8100 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
8101 eval ac_val=\$$ac_var
8102 case $ac_val in #(
8103 *${as_nl}*)
8104 case $ac_var in #(
8105 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
8106echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
8107 esac
8108 case $ac_var in #(
8109 _ | IFS | as_nl) ;; #(
8110 *) $as_unset $ac_var ;;
8111 esac ;;
8112 esac
8113 done
8114
8115 (set) 2>&1 |
8116 case $as_nl`(ac_space=' '; set) 2>&1` in #(
8117 *${as_nl}ac_space=\ *)
8118 # `set' does not quote correctly, so add quotes (double-quote
8119 # substitution turns \\\\ into \\, and sed turns \\ into \).
8120 sed -n \
8121 "s/'/'\\\\''/g;
8122 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8123 ;; #(
8124 *)
8125 # `set' quotes correctly as required by POSIX, so do not add quotes.
8126 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
8127 ;;
8128 esac |
8129 sort
8130) |
8131 sed '
8132 /^ac_cv_env_/b end
8133 t clear
8134 :clear
8135 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8136 t end
8137 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8138 :end' >>confcache
8139if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
8140 if test -w "$cache_file"; then
8141 test "x$cache_file" != "x/dev/null" &&
8142 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
8143echo "$as_me: updating cache $cache_file" >&6;}
8144 cat confcache >$cache_file
8145 else
8146 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
8147echo "$as_me: not updating unwritable cache $cache_file" >&6;}
8148 fi
8149fi
8150rm -f confcache
8151
8152test "x$prefix" = xNONE && prefix=$ac_default_prefix
8153# Let make expand exec_prefix.
8154test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8155
8156DEFS=-DHAVE_CONFIG_H
8157
8158ac_libobjs=
8159ac_ltlibobjs=
8160for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
8161 # 1. Remove the extension, and $U if already installed.
8162 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
8163 ac_i=`echo "$ac_i" | sed "$ac_script"`
8164 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
8165 # will be set to the directory where LIBOBJS objects are built.
8166 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
8167 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
8168done
8169LIBOBJS=$ac_libobjs
8170
8171LTLIBOBJS=$ac_ltlibobjs
8172
8173
8174
8175: ${CONFIG_STATUS=./config.status}
8176ac_clean_files_save=$ac_clean_files
8177ac_clean_files="$ac_clean_files $CONFIG_STATUS"
8178{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
8179echo "$as_me: creating $CONFIG_STATUS" >&6;}
8180cat >$CONFIG_STATUS <<_ACEOF
8181#! $SHELL
8182# Generated by $as_me.
8183# Run this file to recreate the current configuration.
8184# Compiler output produced by configure, useful for debugging
8185# configure, is in config.log if it exists.
8186
8187debug=false
8188ac_cs_recheck=false
8189ac_cs_silent=false
8190SHELL=\${CONFIG_SHELL-$SHELL}
8191_ACEOF
8192
8193cat >>$CONFIG_STATUS <<\_ACEOF
8194## --------------------- ##
8195## M4sh Initialization. ##
8196## --------------------- ##
8197
8198# Be more Bourne compatible
8199DUALCASE=1; export DUALCASE # for MKS sh
8200if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
8201 emulate sh
8202 NULLCMD=:
8203 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
8204 # is contrary to our usage. Disable this feature.
8205 alias -g '${1+"$@"}'='"$@"'
8206 setopt NO_GLOB_SUBST
8207else
8208 case `(set -o) 2>/dev/null` in
8209 *posix*) set -o posix ;;
8210esac
8211
8212fi
8213
8214
8215
8216
8217# PATH needs CR
8218# Avoid depending upon Character Ranges.
8219as_cr_letters='abcdefghijklmnopqrstuvwxyz'
8220as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8221as_cr_Letters=$as_cr_letters$as_cr_LETTERS
8222as_cr_digits='0123456789'
8223as_cr_alnum=$as_cr_Letters$as_cr_digits
8224
8225# The user is always right.
8226if test "${PATH_SEPARATOR+set}" != set; then
8227 echo "#! /bin/sh" >conf$$.sh
8228 echo "exit 0" >>conf$$.sh
8229 chmod +x conf$$.sh
8230 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
8231 PATH_SEPARATOR=';'
8232 else
8233 PATH_SEPARATOR=:
8234 fi
8235 rm -f conf$$.sh
8236fi
8237
8238# Support unset when possible.
8239if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8240 as_unset=unset
8241else
8242 as_unset=false
8243fi
8244
8245
8246# IFS
8247# We need space, tab and new line, in precisely that order. Quoting is
8248# there to prevent editors from complaining about space-tab.
8249# (If _AS_PATH_WALK were called with IFS unset, it would disable word
8250# splitting by setting IFS to empty value.)
8251as_nl='
8252'
8253IFS=" "" $as_nl"
8254
8255# Find who we are. Look in the path if we contain no directory separator.
8256case $0 in
8257 *[\\/]* ) as_myself=$0 ;;
8258 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8259for as_dir in $PATH
8260do
8261 IFS=$as_save_IFS
8262 test -z "$as_dir" && as_dir=.
8263 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
8264done
8265IFS=$as_save_IFS
8266
8267 ;;
8268esac
8269# We did not find ourselves, most probably we were run as `sh COMMAND'
8270# in which case we are not to be found in the path.
8271if test "x$as_myself" = x; then
8272 as_myself=$0
8273fi
8274if test ! -f "$as_myself"; then
8275 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
8276 { (exit 1); exit 1; }
8277fi
8278
8279# Work around bugs in pre-3.0 UWIN ksh.
8280for as_var in ENV MAIL MAILPATH
8281do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
8282done
8283PS1='$ '
8284PS2='> '
8285PS4='+ '
8286
8287# NLS nuisances.
8288for as_var in \
8289 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
8290 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
8291 LC_TELEPHONE LC_TIME
8292do
8293 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
8294 eval $as_var=C; export $as_var
8295 else
8296 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
8297 fi
8298done
8299
8300# Required to use basename.
8301if expr a : '\(a\)' >/dev/null 2>&1 &&
8302 test "X`expr 00001 : '.*\(...\)'`" = X001; then
8303 as_expr=expr
8304else
8305 as_expr=false
8306fi
8307
8308if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
8309 as_basename=basename
8310else
8311 as_basename=false
8312fi
8313
8314
8315# Name of the executable.
8316as_me=`$as_basename -- "$0" ||
8317$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8318 X"$0" : 'X\(//\)$' \| \
8319 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
8320echo X/"$0" |
8321 sed '/^.*\/\([^/][^/]*\)\/*$/{
8322 s//\1/
8323 q
8324 }
8325 /^X\/\(\/\/\)$/{
8326 s//\1/
8327 q
8328 }
8329 /^X\/\(\/\).*/{
8330 s//\1/
8331 q
8332 }
8333 s/.*/./; q'`
8334
8335# CDPATH.
8336$as_unset CDPATH
8337
8338
8339
8340 as_lineno_1=$LINENO
8341 as_lineno_2=$LINENO
8342 test "x$as_lineno_1" != "x$as_lineno_2" &&
8343 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
8344
8345 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
8346 # uniformly replaced by the line number. The first 'sed' inserts a
8347 # line-number line after each line using $LINENO; the second 'sed'
8348 # does the real work. The second script uses 'N' to pair each
8349 # line-number line with the line containing $LINENO, and appends
8350 # trailing '-' during substitution so that $LINENO is not a special
8351 # case at line end.
8352 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
8353 # scripts with optimization help from Paolo Bonzini. Blame Lee
8354 # E. McMahon (1931-1989) for sed's syntax. :-)
8355 sed -n '
8356 p
8357 /[$]LINENO/=
8358 ' <$as_myself |
8359 sed '
8360 s/[$]LINENO.*/&-/
8361 t lineno
8362 b
8363 :lineno
8364 N
8365 :loop
8366 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
8367 t loop
8368 s/-\n.*//
8369 ' >$as_me.lineno &&
8370 chmod +x "$as_me.lineno" ||
8371 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
8372 { (exit 1); exit 1; }; }
8373
8374 # Don't try to exec as it changes $[0], causing all sort of problems
8375 # (the dirname of $[0] is not the place where we might find the
8376 # original and so on. Autoconf is especially sensitive to this).
8377 . "./$as_me.lineno"
8378 # Exit status is that of the last command.
8379 exit
8380}
8381
8382
8383if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
8384 as_dirname=dirname
8385else
8386 as_dirname=false
8387fi
8388
8389ECHO_C= ECHO_N= ECHO_T=
8390case `echo -n x` in
8391-n*)
8392 case `echo 'x\c'` in
8393 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
8394 *) ECHO_C='\c';;
8395 esac;;
8396*)
8397 ECHO_N='-n';;
8398esac
8399
8400if expr a : '\(a\)' >/dev/null 2>&1 &&
8401 test "X`expr 00001 : '.*\(...\)'`" = X001; then
8402 as_expr=expr
8403else
8404 as_expr=false
8405fi
8406
8407rm -f conf$$ conf$$.exe conf$$.file
8408if test -d conf$$.dir; then
8409 rm -f conf$$.dir/conf$$.file
8410else
8411 rm -f conf$$.dir
8412 mkdir conf$$.dir
8413fi
8414echo >conf$$.file
8415if ln -s conf$$.file conf$$ 2>/dev/null; then
8416 as_ln_s='ln -s'
8417 # ... but there are two gotchas:
8418 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
8419 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
8420 # In both cases, we have to default to `cp -p'.
8421 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
8422 as_ln_s='cp -p'
8423elif ln conf$$.file conf$$ 2>/dev/null; then
8424 as_ln_s=ln
8425else
8426 as_ln_s='cp -p'
8427fi
8428rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
8429rmdir conf$$.dir 2>/dev/null
8430
8431if mkdir -p . 2>/dev/null; then
8432 as_mkdir_p=:
8433else
8434 test -d ./-p && rmdir ./-p
8435 as_mkdir_p=false
8436fi
8437
8438if test -x / >/dev/null 2>&1; then
8439 as_test_x='test -x'
8440else
8441 if ls -dL / >/dev/null 2>&1; then
8442 as_ls_L_option=L
8443 else
8444 as_ls_L_option=
8445 fi
8446 as_test_x='
8447 eval sh -c '\''
8448 if test -d "$1"; then
8449 test -d "$1/.";
8450 else
8451 case $1 in
8452 -*)set "./$1";;
8453 esac;
8454 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
8455 ???[sx]*):;;*)false;;esac;fi
8456 '\'' sh
8457 '
8458fi
8459as_executable_p=$as_test_x
8460
8461# Sed expression to map a string onto a valid CPP name.
8462as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8463
8464# Sed expression to map a string onto a valid variable name.
8465as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8466
8467
8468exec 6>&1
8469
8470# Save the log message, to keep $[0] and so on meaningful, and to
8471# report actual input values of CONFIG_FILES etc. instead of their
8472# values after options handling.
8473ac_log="
8474This file was extended by $as_me, which was
8475generated by GNU Autoconf 2.61. Invocation command line was
8476
8477 CONFIG_FILES = $CONFIG_FILES
8478 CONFIG_HEADERS = $CONFIG_HEADERS
8479 CONFIG_LINKS = $CONFIG_LINKS
8480 CONFIG_COMMANDS = $CONFIG_COMMANDS
8481 $ $0 $@
8482
8483on `(hostname || uname -n) 2>/dev/null | sed 1q`
8484"
8485
8486_ACEOF
8487
8488cat >>$CONFIG_STATUS <<_ACEOF
8489# Files that config.status was made for.
8490config_files="$ac_config_files"
8491config_headers="$ac_config_headers"
8492config_commands="$ac_config_commands"
8493
8494_ACEOF
8495
8496cat >>$CONFIG_STATUS <<\_ACEOF
8497ac_cs_usage="\
8498\`$as_me' instantiates files from templates according to the
8499current configuration.
8500
8501Usage: $0 [OPTIONS] [FILE]...
8502
8503 -h, --help print this help, then exit
8504 -V, --version print version number and configuration settings, then exit
8505 -q, --quiet do not print progress messages
8506 -d, --debug don't remove temporary files
8507 --recheck update $as_me by reconfiguring in the same conditions
8508 --file=FILE[:TEMPLATE]
8509 instantiate the configuration file FILE
8510 --header=FILE[:TEMPLATE]
8511 instantiate the configuration header FILE
8512
8513Configuration files:
8514$config_files
8515
8516Configuration headers:
8517$config_headers
8518
8519Configuration commands:
8520$config_commands
8521
8522Report bugs to <[email protected]>."
8523
8524_ACEOF
8525cat >>$CONFIG_STATUS <<_ACEOF
8526ac_cs_version="\\
8527config.status
8528configured by $0, generated by GNU Autoconf 2.61,
8529 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
8530
8531Copyright (C) 2006 Free Software Foundation, Inc.
8532This config.status script is free software; the Free Software Foundation
8533gives unlimited permission to copy, distribute and modify it."
8534
8535ac_pwd='$ac_pwd'
8536srcdir='$srcdir'
8537INSTALL='$INSTALL'
8538_ACEOF
8539
8540cat >>$CONFIG_STATUS <<\_ACEOF
8541# If no file are specified by the user, then we need to provide default
8542# value. By we need to know if files were specified by the user.
8543ac_need_defaults=:
8544while test $# != 0
8545do
8546 case $1 in
8547 --*=*)
8548 ac_option=`expr "X$1" : 'X\([^=]*\)='`
8549 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
8550 ac_shift=:
8551 ;;
8552 *)
8553 ac_option=$1
8554 ac_optarg=$2
8555 ac_shift=shift
8556 ;;
8557 esac
8558
8559 case $ac_option in
8560 # Handling of the options.
8561 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8562 ac_cs_recheck=: ;;
8563 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
8564 echo "$ac_cs_version"; exit ;;
8565 --debug | --debu | --deb | --de | --d | -d )
8566 debug=: ;;
8567 --file | --fil | --fi | --f )
8568 $ac_shift
8569 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
8570 ac_need_defaults=false;;
8571 --header | --heade | --head | --hea )
8572 $ac_shift
8573 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
8574 ac_need_defaults=false;;
8575 --he | --h)
8576 # Conflict between --help and --header
8577 { echo "$as_me: error: ambiguous option: $1
8578Try \`$0 --help' for more information." >&2
8579 { (exit 1); exit 1; }; };;
8580 --help | --hel | -h )
8581 echo "$ac_cs_usage"; exit ;;
8582 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
8583 | -silent | --silent | --silen | --sile | --sil | --si | --s)
8584 ac_cs_silent=: ;;
8585
8586 # This is an error.
8587 -*) { echo "$as_me: error: unrecognized option: $1
8588Try \`$0 --help' for more information." >&2
8589 { (exit 1); exit 1; }; } ;;
8590
8591 *) ac_config_targets="$ac_config_targets $1"
8592 ac_need_defaults=false ;;
8593
8594 esac
8595 shift
8596done
8597
8598ac_configure_extra_args=
8599
8600if $ac_cs_silent; then
8601 exec 6>/dev/null
8602 ac_configure_extra_args="$ac_configure_extra_args --silent"
8603fi
8604
8605_ACEOF
8606cat >>$CONFIG_STATUS <<_ACEOF
8607if \$ac_cs_recheck; then
8608 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
8609 CONFIG_SHELL=$SHELL
8610 export CONFIG_SHELL
8611 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8612fi
8613
8614_ACEOF
8615cat >>$CONFIG_STATUS <<\_ACEOF
8616exec 5>>config.log
8617{
8618 echo
8619 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8620## Running $as_me. ##
8621_ASBOX
8622 echo "$ac_log"
8623} >&5
8624
8625_ACEOF
8626cat >>$CONFIG_STATUS <<_ACEOF
8627_ACEOF
8628
8629cat >>$CONFIG_STATUS <<\_ACEOF
8630
8631# Handling of arguments.
8632for ac_config_target in $ac_config_targets
8633do
8634 case $ac_config_target in
8635 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
8636 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
8637 "text/Makefile") CONFIG_FILES="$CONFIG_FILES text/Makefile" ;;
8638 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
8639 "jni/Makefile") CONFIG_FILES="$CONFIG_FILES jni/Makefile" ;;
8640 "java/org/greenstone/mgpp/Makefile") CONFIG_FILES="$CONFIG_FILES java/org/greenstone/mgpp/Makefile" ;;
8641 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
8642
8643 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
8644echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
8645 { (exit 1); exit 1; }; };;
8646 esac
8647done
8648
8649
8650# If the user did not use the arguments to specify the items to instantiate,
8651# then the envvar interface is used. Set only those that are not.
8652# We use the long form for the default assignment because of an extremely
8653# bizarre bug on SunOS 4.1.3.
8654if $ac_need_defaults; then
8655 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
8656 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
8657 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
8658fi
8659
8660# Have a temporary directory for convenience. Make it in the build tree
8661# simply because there is no reason against having it here, and in addition,
8662# creating and moving files from /tmp can sometimes cause problems.
8663# Hook for its removal unless debugging.
8664# Note that there is a small window in which the directory will not be cleaned:
8665# after its creation but before its name has been assigned to `$tmp'.
8666$debug ||
8667{
8668 tmp=
8669 trap 'exit_status=$?
8670 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
8671' 0
8672 trap '{ (exit 1); exit 1; }' 1 2 13 15
8673}
8674# Create a (secure) tmp directory for tmp files.
8675
8676{
8677 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
8678 test -n "$tmp" && test -d "$tmp"
8679} ||
8680{
8681 tmp=./conf$$-$RANDOM
8682 (umask 077 && mkdir "$tmp")
8683} ||
8684{
8685 echo "$me: cannot create a temporary directory in ." >&2
8686 { (exit 1); exit 1; }
8687}
8688
8689#
8690# Set up the sed scripts for CONFIG_FILES section.
8691#
8692
8693# No need to generate the scripts if there are no CONFIG_FILES.
8694# This happens for instance when ./config.status config.h
8695if test -n "$CONFIG_FILES"; then
8696
8697_ACEOF
8698
8699
8700
8701ac_delim='%!_!# '
8702for ac_last_try in false false false false false :; do
8703 cat >conf$$subs.sed <<_ACEOF
8704SHELL!$SHELL$ac_delim
8705PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
8706PACKAGE_NAME!$PACKAGE_NAME$ac_delim
8707PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
8708PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
8709PACKAGE_STRING!$PACKAGE_STRING$ac_delim
8710PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
8711exec_prefix!$exec_prefix$ac_delim
8712prefix!$prefix$ac_delim
8713program_transform_name!$program_transform_name$ac_delim
8714bindir!$bindir$ac_delim
8715sbindir!$sbindir$ac_delim
8716libexecdir!$libexecdir$ac_delim
8717datarootdir!$datarootdir$ac_delim
8718datadir!$datadir$ac_delim
8719sysconfdir!$sysconfdir$ac_delim
8720sharedstatedir!$sharedstatedir$ac_delim
8721localstatedir!$localstatedir$ac_delim
8722includedir!$includedir$ac_delim
8723oldincludedir!$oldincludedir$ac_delim
8724docdir!$docdir$ac_delim
8725infodir!$infodir$ac_delim
8726htmldir!$htmldir$ac_delim
8727dvidir!$dvidir$ac_delim
8728pdfdir!$pdfdir$ac_delim
8729psdir!$psdir$ac_delim
8730libdir!$libdir$ac_delim
8731localedir!$localedir$ac_delim
8732mandir!$mandir$ac_delim
8733DEFS!$DEFS$ac_delim
8734ECHO_C!$ECHO_C$ac_delim
8735ECHO_N!$ECHO_N$ac_delim
8736ECHO_T!$ECHO_T$ac_delim
8737LIBS!$LIBS$ac_delim
8738build_alias!$build_alias$ac_delim
8739host_alias!$host_alias$ac_delim
8740target_alias!$target_alias$ac_delim
8741build!$build$ac_delim
8742build_cpu!$build_cpu$ac_delim
8743build_vendor!$build_vendor$ac_delim
8744build_os!$build_os$ac_delim
8745host!$host$ac_delim
8746host_cpu!$host_cpu$ac_delim
8747host_vendor!$host_vendor$ac_delim
8748host_os!$host_os$ac_delim
8749target!$target$ac_delim
8750target_cpu!$target_cpu$ac_delim
8751target_vendor!$target_vendor$ac_delim
8752target_os!$target_os$ac_delim
8753PACKAGE!$PACKAGE$ac_delim
8754VERSION!$VERSION$ac_delim
8755COMPAT32BITFLAGS!$COMPAT32BITFLAGS$ac_delim
8756ENABLE_ACCENTFOLD!$ENABLE_ACCENTFOLD$ac_delim
8757CXX!$CXX$ac_delim
8758CXXFLAGS!$CXXFLAGS$ac_delim
8759LDFLAGS!$LDFLAGS$ac_delim
8760CPPFLAGS!$CPPFLAGS$ac_delim
8761ac_ct_CXX!$ac_ct_CXX$ac_delim
8762EXEEXT!$EXEEXT$ac_delim
8763OBJEXT!$OBJEXT$ac_delim
8764AWK!$AWK$ac_delim
8765YACC!$YACC$ac_delim
8766YFLAGS!$YFLAGS$ac_delim
8767CC!$CC$ac_delim
8768CFLAGS!$CFLAGS$ac_delim
8769ac_ct_CC!$ac_ct_CC$ac_delim
8770INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
8771INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
8772INSTALL_DATA!$INSTALL_DATA$ac_delim
8773LN_S!$LN_S$ac_delim
8774SET_MAKE!$SET_MAKE$ac_delim
8775RANLIB!$RANLIB$ac_delim
8776CPP!$CPP$ac_delim
8777GREP!$GREP$ac_delim
8778EGREP!$EGREP$ac_delim
8779U!$U$ac_delim
8780ANSI2KNR!$ANSI2KNR$ac_delim
8781UNAC_DIR!$UNAC_DIR$ac_delim
8782ALLOCA!$ALLOCA$ac_delim
8783LIBOBJS!$LIBOBJS$ac_delim
8784JNIINC!$JNIINC$ac_delim
8785JNISUFFIX!$JNISUFFIX$ac_delim
8786JNIFLAGS!$JNIFLAGS$ac_delim
8787LTLIBOBJS!$LTLIBOBJS$ac_delim
8788_ACEOF
8789
8790 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 84; then
8791 break
8792 elif $ac_last_try; then
8793 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
8794echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
8795 { (exit 1); exit 1; }; }
8796 else
8797 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8798 fi
8799done
8800
8801ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
8802if test -n "$ac_eof"; then
8803 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
8804 ac_eof=`expr $ac_eof + 1`
8805fi
8806
8807cat >>$CONFIG_STATUS <<_ACEOF
8808cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
8809/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
8810_ACEOF
8811sed '
8812s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
8813s/^/s,@/; s/!/@,|#_!!_#|/
8814:n
8815t n
8816s/'"$ac_delim"'$/,g/; t
8817s/$/\\/; p
8818N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
8819' >>$CONFIG_STATUS <conf$$subs.sed
8820rm -f conf$$subs.sed
8821cat >>$CONFIG_STATUS <<_ACEOF
8822:end
8823s/|#_!!_#|//g
8824CEOF$ac_eof
8825_ACEOF
8826
8827
8828# VPATH may cause trouble with some makes, so we remove $(srcdir),
8829# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
8830# trailing colons and then remove the whole line if VPATH becomes empty
8831# (actually we leave an empty line to preserve line numbers).
8832if test "x$srcdir" = x.; then
8833 ac_vpsub='/^[ ]*VPATH[ ]*=/{
8834s/:*\$(srcdir):*/:/
8835s/:*\${srcdir}:*/:/
8836s/:*@srcdir@:*/:/
8837s/^\([^=]*=[ ]*\):*/\1/
8838s/:*$//
8839s/^[^=]*=[ ]*$//
8840}'
8841fi
8842
8843cat >>$CONFIG_STATUS <<\_ACEOF
8844fi # test -n "$CONFIG_FILES"
8845
8846
8847for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
8848do
8849 case $ac_tag in
8850 :[FHLC]) ac_mode=$ac_tag; continue;;
8851 esac
8852 case $ac_mode$ac_tag in
8853 :[FHL]*:*);;
8854 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
8855echo "$as_me: error: Invalid tag $ac_tag." >&2;}
8856 { (exit 1); exit 1; }; };;
8857 :[FH]-) ac_tag=-:-;;
8858 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
8859 esac
8860 ac_save_IFS=$IFS
8861 IFS=:
8862 set x $ac_tag
8863 IFS=$ac_save_IFS
8864 shift
8865 ac_file=$1
8866 shift
8867
8868 case $ac_mode in
8869 :L) ac_source=$1;;
8870 :[FH])
8871 ac_file_inputs=
8872 for ac_f
8873 do
8874 case $ac_f in
8875 -) ac_f="$tmp/stdin";;
8876 *) # Look for the file first in the build tree, then in the source tree
8877 # (if the path is not absolute). The absolute path cannot be DOS-style,
8878 # because $ac_f cannot contain `:'.
8879 test -f "$ac_f" ||
8880 case $ac_f in
8881 [\\/$]*) false;;
8882 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
8883 esac ||
8884 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
8885echo "$as_me: error: cannot find input file: $ac_f" >&2;}
8886 { (exit 1); exit 1; }; };;
8887 esac
8888 ac_file_inputs="$ac_file_inputs $ac_f"
8889 done
8890
8891 # Let's still pretend it is `configure' which instantiates (i.e., don't
8892 # use $as_me), people would be surprised to read:
8893 # /* config.h. Generated by config.status. */
8894 configure_input="Generated from "`IFS=:
8895 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
8896 if test x"$ac_file" != x-; then
8897 configure_input="$ac_file. $configure_input"
8898 { echo "$as_me:$LINENO: creating $ac_file" >&5
8899echo "$as_me: creating $ac_file" >&6;}
8900 fi
8901
8902 case $ac_tag in
8903 *:-:* | *:-) cat >"$tmp/stdin";;
8904 esac
8905 ;;
8906 esac
8907
8908 ac_dir=`$as_dirname -- "$ac_file" ||
8909$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8910 X"$ac_file" : 'X\(//\)[^/]' \| \
8911 X"$ac_file" : 'X\(//\)$' \| \
8912 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
8913echo X"$ac_file" |
8914 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8915 s//\1/
8916 q
8917 }
8918 /^X\(\/\/\)[^/].*/{
8919 s//\1/
8920 q
8921 }
8922 /^X\(\/\/\)$/{
8923 s//\1/
8924 q
8925 }
8926 /^X\(\/\).*/{
8927 s//\1/
8928 q
8929 }
8930 s/.*/./; q'`
8931 { as_dir="$ac_dir"
8932 case $as_dir in #(
8933 -*) as_dir=./$as_dir;;
8934 esac
8935 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
8936 as_dirs=
8937 while :; do
8938 case $as_dir in #(
8939 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
8940 *) as_qdir=$as_dir;;
8941 esac
8942 as_dirs="'$as_qdir' $as_dirs"
8943 as_dir=`$as_dirname -- "$as_dir" ||
8944$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8945 X"$as_dir" : 'X\(//\)[^/]' \| \
8946 X"$as_dir" : 'X\(//\)$' \| \
8947 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
8948echo X"$as_dir" |
8949 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8950 s//\1/
8951 q
8952 }
8953 /^X\(\/\/\)[^/].*/{
8954 s//\1/
8955 q
8956 }
8957 /^X\(\/\/\)$/{
8958 s//\1/
8959 q
8960 }
8961 /^X\(\/\).*/{
8962 s//\1/
8963 q
8964 }
8965 s/.*/./; q'`
8966 test -d "$as_dir" && break
8967 done
8968 test -z "$as_dirs" || eval "mkdir $as_dirs"
8969 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
8970echo "$as_me: error: cannot create directory $as_dir" >&2;}
8971 { (exit 1); exit 1; }; }; }
8972 ac_builddir=.
8973
8974case "$ac_dir" in
8975.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
8976*)
8977 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
8978 # A ".." for each directory in $ac_dir_suffix.
8979 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
8980 case $ac_top_builddir_sub in
8981 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
8982 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
8983 esac ;;
8984esac
8985ac_abs_top_builddir=$ac_pwd
8986ac_abs_builddir=$ac_pwd$ac_dir_suffix
8987# for backward compatibility:
8988ac_top_builddir=$ac_top_build_prefix
8989
8990case $srcdir in
8991 .) # We are building in place.
8992 ac_srcdir=.
8993 ac_top_srcdir=$ac_top_builddir_sub
8994 ac_abs_top_srcdir=$ac_pwd ;;
8995 [\\/]* | ?:[\\/]* ) # Absolute name.
8996 ac_srcdir=$srcdir$ac_dir_suffix;
8997 ac_top_srcdir=$srcdir
8998 ac_abs_top_srcdir=$srcdir ;;
8999 *) # Relative name.
9000 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
9001 ac_top_srcdir=$ac_top_build_prefix$srcdir
9002 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
9003esac
9004ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
9005
9006
9007 case $ac_mode in
9008 :F)
9009 #
9010 # CONFIG_FILE
9011 #
9012
9013 case $INSTALL in
9014 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
9015 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
9016 esac
9017_ACEOF
9018
9019cat >>$CONFIG_STATUS <<\_ACEOF
9020# If the template does not know about datarootdir, expand it.
9021# FIXME: This hack should be removed a few years after 2.60.
9022ac_datarootdir_hack=; ac_datarootdir_seen=
9023
9024case `sed -n '/datarootdir/ {
9025 p
9026 q
9027}
9028/@datadir@/p
9029/@docdir@/p
9030/@infodir@/p
9031/@localedir@/p
9032/@mandir@/p
9033' $ac_file_inputs` in
9034*datarootdir*) ac_datarootdir_seen=yes;;
9035*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
9036 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
9037echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
9038_ACEOF
9039cat >>$CONFIG_STATUS <<_ACEOF
9040 ac_datarootdir_hack='
9041 s&@datadir@&$datadir&g
9042 s&@docdir@&$docdir&g
9043 s&@infodir@&$infodir&g
9044 s&@localedir@&$localedir&g
9045 s&@mandir@&$mandir&g
9046 s&\\\${datarootdir}&$datarootdir&g' ;;
9047esac
9048_ACEOF
9049
9050# Neutralize VPATH when `$srcdir' = `.'.
9051# Shell code in configure.ac might set extrasub.
9052# FIXME: do we really want to maintain this feature?
9053cat >>$CONFIG_STATUS <<_ACEOF
9054 sed "$ac_vpsub
9055$extrasub
9056_ACEOF
9057cat >>$CONFIG_STATUS <<\_ACEOF
9058:t
9059/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9060s&@configure_input@&$configure_input&;t t
9061s&@top_builddir@&$ac_top_builddir_sub&;t t
9062s&@srcdir@&$ac_srcdir&;t t
9063s&@abs_srcdir@&$ac_abs_srcdir&;t t
9064s&@top_srcdir@&$ac_top_srcdir&;t t
9065s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
9066s&@builddir@&$ac_builddir&;t t
9067s&@abs_builddir@&$ac_abs_builddir&;t t
9068s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
9069s&@INSTALL@&$ac_INSTALL&;t t
9070$ac_datarootdir_hack
9071" $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out
9072
9073test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
9074 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
9075 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
9076 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9077which seems to be undefined. Please make sure it is defined." >&5
9078echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9079which seems to be undefined. Please make sure it is defined." >&2;}
9080
9081 rm -f "$tmp/stdin"
9082 case $ac_file in
9083 -) cat "$tmp/out"; rm -f "$tmp/out";;
9084 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
9085 esac
9086 ;;
9087 :H)
9088 #
9089 # CONFIG_HEADER
9090 #
9091_ACEOF
9092
9093# Transform confdefs.h into a sed script `conftest.defines', that
9094# substitutes the proper values into config.h.in to produce config.h.
9095rm -f conftest.defines conftest.tail
9096# First, append a space to every undef/define line, to ease matching.
9097echo 's/$/ /' >conftest.defines
9098# Then, protect against being on the right side of a sed subst, or in
9099# an unquoted here document, in config.status. If some macros were
9100# called several times there might be several #defines for the same
9101# symbol, which is useless. But do not sort them, since the last
9102# AC_DEFINE must be honored.
9103ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
9104# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
9105# NAME is the cpp macro being defined, VALUE is the value it is being given.
9106# PARAMS is the parameter list in the macro definition--in most cases, it's
9107# just an empty string.
9108ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
9109ac_dB='\\)[ (].*,\\1define\\2'
9110ac_dC=' '
9111ac_dD=' ,'
9112
9113uniq confdefs.h |
9114 sed -n '
9115 t rset
9116 :rset
9117 s/^[ ]*#[ ]*define[ ][ ]*//
9118 t ok
9119 d
9120 :ok
9121 s/[\\&,]/\\&/g
9122 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
9123 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
9124 ' >>conftest.defines
9125
9126# Remove the space that was appended to ease matching.
9127# Then replace #undef with comments. This is necessary, for
9128# example, in the case of _POSIX_SOURCE, which is predefined and required
9129# on some systems where configure will not decide to define it.
9130# (The regexp can be short, since the line contains either #define or #undef.)
9131echo 's/ $//
9132s,^[ #]*u.*,/* & */,' >>conftest.defines
9133
9134# Break up conftest.defines:
9135ac_max_sed_lines=50
9136
9137# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
9138# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
9139# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
9140# et cetera.
9141ac_in='$ac_file_inputs'
9142ac_out='"$tmp/out1"'
9143ac_nxt='"$tmp/out2"'
9144
9145while :
9146do
9147 # Write a here document:
9148 cat >>$CONFIG_STATUS <<_ACEOF
9149 # First, check the format of the line:
9150 cat >"\$tmp/defines.sed" <<\\CEOF
9151/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
9152/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
9153b
9154:def
9155_ACEOF
9156 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
9157 echo 'CEOF
9158 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
9159 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
9160 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
9161 grep . conftest.tail >/dev/null || break
9162 rm -f conftest.defines
9163 mv conftest.tail conftest.defines
9164done
9165rm -f conftest.defines conftest.tail
9166
9167echo "ac_result=$ac_in" >>$CONFIG_STATUS
9168cat >>$CONFIG_STATUS <<\_ACEOF
9169 if test x"$ac_file" != x-; then
9170 echo "/* $configure_input */" >"$tmp/config.h"
9171 cat "$ac_result" >>"$tmp/config.h"
9172 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
9173 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
9174echo "$as_me: $ac_file is unchanged" >&6;}
9175 else
9176 rm -f $ac_file
9177 mv "$tmp/config.h" $ac_file
9178 fi
9179 else
9180 echo "/* $configure_input */"
9181 cat "$ac_result"
9182 fi
9183 rm -f "$tmp/out12"
9184 ;;
9185
9186 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
9187echo "$as_me: executing $ac_file commands" >&6;}
9188 ;;
9189 esac
9190
9191
9192 case $ac_file$ac_mode in
9193 "default":C) test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h ;;
9194
9195 esac
9196done # for ac_tag
9197
9198
9199{ (exit 0); exit 0; }
9200_ACEOF
9201chmod +x $CONFIG_STATUS
9202ac_clean_files=$ac_clean_files_save
9203
9204
9205# configure is writing to config.log, and then calls config.status.
9206# config.status does its own redirection, appending to config.log.
9207# Unfortunately, on DOS this fails, as config.log is still kept open
9208# by configure, so config.status won't be able to write to it; its
9209# output is simply discarded. So we exec the FD to /dev/null,
9210# effectively closing config.log, so it can be properly (re)opened and
9211# appended to by config.status. When coming back to configure, we
9212# need to make the FD available again.
9213if test "$no_create" != yes; then
9214 ac_cs_success=:
9215 ac_config_status_args=
9216 test "$silent" = yes &&
9217 ac_config_status_args="$ac_config_status_args --quiet"
9218 exec 5>/dev/null
9219 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
9220 exec 5>>config.log
9221 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9222 # would make configure fail if this is the last instruction.
9223 $ac_cs_success || { (exit 1); exit 1; }
9224fi
9225
Note: See TracBrowser for help on using the repository browser.