source: trunk/indexers/mgpp/configure@ 13625

Last change on this file since 13625 was 13625, checked in by kjdon, 17 years ago

now runs configure in packages/unac directory

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