source: main/trunk/greenstone2/common-src/indexers/mgpp/configure@ 22070

Last change on this file since 22070 was 22070, checked in by ak19, 14 years ago

Undoing the commits of 22058 to the indexer folder: USE_GDBM, USE_JDBM are not relevant here (or USE_SQLITE).

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