source: indexers/trunk/mgpp/configure@ 20832

Last change on this file since 20832 was 20832, checked in by ak19, 15 years ago

Libiconv and libexpat are now compiled up during configure time rather than during Make. Committing files affected with adjustments related to this change, of which setup.bash adds the lib folder in common-src packages (generated by compiling libiconv) to the LD_LIBRARY_PATH for now. The last is probably not necessary since libiconv is generated as a static library (not shared).

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