source: trunk/mgpp/configure@ 10887

Last change on this file since 10887 was 10887, checked in by kjdon, 18 years ago

moved '-framework JavaVM' from LDFLAGS to JNIFLAGS - we don't want to link against the Java framework for all the c/c++ programs

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